    /* ── 1. Primitive palette ──
       Gray: cool blue-gray (OKLCH hue 260), the same family Toss TDS, Daangn SEED and KRDS use.
       Blue: 샐틈 indigo-blue (hue 267). It sits between IDPW's blue (263) and SKT's indigo (272) and stays clear of violet.
       Step rule borrowed from KRDS: 600 and darker pass 4.5:1 on white; 500 is for fills and icons only. */
    :root {
      --gray-0:#ffffff; --gray-50:#f9fafc; --gray-100:#f2f4f8; --gray-150:#ebeef3; --gray-200:#e3e6ec; --gray-300:#d0d5de;
      --gray-400:#b0b8c4; --gray-500:#8b94a3; --gray-600:#626c7c; --gray-700:#4c5666; --gray-800:#313b4a; --gray-900:#181e29;
      --blue-50:#f2f6fe; --blue-100:#e3ebff; --blue-200:#c9d9fe; --blue-300:#a1bcff; --blue-400:#7197fe;
      --blue-500:#4771fe; --blue-600:#345aed; --blue-700:#2a4ac9; --blue-800:#203b9f; --blue-900:#15286c;
      --red-50:#fff2f0; --red-100:#ffe2df; --red-300:#ffa09a; --red-500:#ed3f45; --red-600:#db2332; --red-700:#bc1f2b;
      --orange-50:#fff5ed; --orange-100:#ffe6d2; --orange-300:#feb674; --orange-500:#f58e02; --orange-700:#a25d04;
      --green-50:#ebfbf1; --green-100:#cff4dd; --green-300:#7bdca6; --green-500:#15ad6e; --green-700:#077649;
      --yellow-100:#fff4c8; --yellow-300:#ffe160; --yellow-400:#f5d336;

      /* ── 2. Semantic tokens. Components read only these, so a dark theme later means redefining this block. ── */
      --bg-page:var(--gray-100); --bg-surface:var(--gray-0); --bg-subtle:var(--gray-50); --bg-muted:var(--gray-150); --bg-inverse:var(--gray-900);
      --fg-default:var(--gray-900); --fg-body:var(--gray-800); --fg-muted:var(--gray-700); --fg-subtle:var(--gray-600); --fg-disabled:var(--gray-500); --fg-inverse:var(--gray-0);
      --stroke-subtle:var(--gray-150); --stroke:var(--gray-200); --stroke-strong:var(--gray-300); --stroke-control:var(--gray-500);
      /* Brand blue is for actions, links and "my" selections only. */
      --brand:var(--blue-600); --brand-hover:var(--blue-700); --brand-fg:var(--blue-700); --brand-accent:var(--blue-500);
      --brand-weak:var(--blue-50); --brand-weak-hover:var(--blue-100); --brand-stroke:var(--blue-200);
      --link:var(--blue-600); --link-underline:var(--blue-200);
      /* Status sets: weak = tint background, fg = text (4.5:1+ on white and on its weak tint), solid = fills, dots and icons. */
      --danger-weak:var(--red-50); --danger-stroke:var(--red-100); --danger-solid:var(--red-600); --danger-icon:var(--red-500); --danger-fg:var(--red-700);
      --warning-weak:var(--orange-50); --warning-stroke:var(--orange-100); --warning-solid:var(--orange-500); --warning-fg:var(--orange-700);
      --success-weak:var(--green-50); --success-stroke:var(--green-100); --success-solid:var(--green-500); --success-fg:var(--green-700);
      --neutral-weak:var(--gray-100); --neutral-fg:var(--gray-700);
      /* The yellow highlighter is the brand's one editorial accent: hero keyword, logo check, text selection. */
      --highlight:var(--yellow-300); --highlight-soft:var(--yellow-100);
      --focus-ring:var(--blue-500);

      /* ── 3. Type, shape and depth ── */
      /* Sizes follow the KRDS type scale (PC here, mobile in the 620px query). */
      --fs-display:40px; --fs-h2:32px; --fs-h3:24px; --fs-h4:19px; --fs-h5:17px;
      --fs-lead:19px; --fs-body:17px; --fs-small:15px; --fs-caption:13px;
      /* Four weights. System fonts (Pretendard is blocked by the CSP) only snap cleanly to these; Malgun Gothic has 400 and 700. */
      --fw-regular:400; --fw-medium:500; --fw-semibold:600; --fw-bold:700;
      /* Tracking in em so it scales with the mobile type sizes. */
      --ls-display:-.03em; --ls-heading:-.025em; --ls-title:-.02em;
      --r-xs:6px; --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
      --read:760px;
      --shadow-sm:0 1px 2px rgba(24,30,41,.05);
      --shadow:0 1px 2px rgba(24,30,41,.05),0 12px 28px -20px rgba(24,30,41,.22);
      --shadow-lg:0 2px 6px rgba(24,30,41,.06),0 30px 70px -24px rgba(24,30,41,.32);
    }
    * { box-sizing:border-box; }
    html { scroll-behavior:smooth; scroll-padding-top:96px; }
    body { margin:0; color:var(--fg-default); background:var(--bg-page); font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; font-size:var(--fs-body); line-height:1.65; word-break:keep-all; overflow-wrap:anywhere; -webkit-font-smoothing:antialiased; }
    button,input,select { font:inherit; }
    button,a,input { -webkit-tap-highlight-color:transparent; }
    button { cursor:pointer; color:inherit; }
    button:disabled { cursor:not-allowed; opacity:.5; }
    button,a { touch-action:manipulation; }
    a { color:inherit; text-decoration:none; }
    svg { width:20px; height:20px; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
    [data-icon] { display:inline-flex; }
    ::selection { background:var(--highlight); color:var(--fg-default); }
    :focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
    [hidden] { display:none !important; }
    .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
    .skip { position:fixed; top:-70px; left:20px; padding:12px 16px; border-radius:var(--r-sm); background:var(--bg-inverse); color:var(--fg-inverse); z-index:30; }
    .skip:focus { top:10px; }
    /* Reading column for content; the header keeps a wider bar so the menu fits. */
    .container { max-width:calc(var(--read) + 80px); margin:auto; padding:0 40px; }
    .container.wide { max-width:1200px; }

    /* header */
    header { position:sticky; top:0; z-index:10; background:rgba(242,244,248,.88); background:color-mix(in srgb,var(--bg-page) 88%,transparent); -webkit-backdrop-filter:saturate(1.6) blur(16px); backdrop-filter:saturate(1.6) blur(16px); border-bottom:1px solid var(--stroke); }
    .header-inner { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
    .brand { display:flex; align-items:center; gap:10px; color:var(--fg-default); flex-shrink:0; }
    .brand-mark { width:34px; height:34px; border-radius:var(--r-sm); background:var(--brand); color:var(--highlight); display:grid; place-items:center; box-shadow:0 6px 14px -8px rgba(52,90,237,.8); }
    .brand-mark svg { width:18px; height:18px; stroke-width:2.8; }
    .brand-name { font-size:var(--fs-h3); font-weight:var(--fw-bold); letter-spacing:-.04em; }
    .brand-name i,.footer-brand i { font-style:normal; color:var(--brand); }
    .brand-sub { border-left:1px solid var(--stroke-strong); padding-left:12px; margin-left:2px; font-size:var(--fs-caption); color:var(--fg-subtle); }
    nav { display:flex; gap:2px; margin-left:auto; align-items:center; }
    nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border-radius:var(--r-pill); font-size:var(--fs-small); font-weight:var(--fw-semibold); color:var(--fg-muted); white-space:nowrap; transition:background .15s,color .15s; }
    nav a:hover { background:var(--bg-muted); color:var(--fg-default); }
    .header-actions { display:flex; align-items:center; gap:8px; }
    .alert-trigger,.privacy-trigger { display:flex; align-items:center; gap:7px; min-height:44px; border:1px solid var(--stroke-strong); background:var(--bg-surface); border-radius:var(--r-pill); padding:0 16px 0 14px; font-size:var(--fs-small); font-weight:var(--fw-semibold); color:var(--fg-default); white-space:nowrap; transition:border-color .15s,background .15s; }
    .alert-trigger:hover,.privacy-trigger:hover { border-color:var(--gray-400); background:var(--bg-subtle); }
    .alert-trigger svg,.privacy-trigger svg { width:16px; height:16px; }
    .privacy-trigger svg { color:var(--success-fg); }
    .alert-count { min-width:20px; height:20px; padding:0 6px; border-radius:var(--r-pill); background:var(--danger-solid); color:var(--fg-inverse); font-size:var(--fs-caption); font-weight:var(--fw-bold); display:grid; place-items:center; }

    /* Hero: a light card with big type, in the Korean service style. The yellow underline highlighter is the brand mark. */
    .hero { position:relative; isolation:isolate; overflow:hidden; margin:32px 0 0; padding:44px 44px 26px; border-radius:var(--r-xl); background:var(--bg-surface); border:1px solid var(--stroke); box-shadow:var(--shadow); }
    .hero:after { content:""; position:absolute; z-index:-1; width:560px; height:560px; right:-220px; top:-300px; border-radius:50%; background:radial-gradient(circle,var(--blue-100),rgba(227,235,255,0) 64%); pointer-events:none; }
    .eyebrow { display:inline-flex; align-items:center; gap:9px; color:var(--brand-fg); font-size:var(--fs-small); font-weight:var(--fw-semibold); margin:0 0 14px; }
    .eyebrow:before { content:""; width:7px; height:7px; border-radius:50%; background:var(--brand-accent); box-shadow:0 0 0 4px var(--brand-weak-hover); }
    h1 { font-size:var(--fs-display); line-height:1.32; letter-spacing:var(--ls-display); font-weight:var(--fw-bold); margin:0 0 18px; color:var(--fg-default); }
    h1 .hl { padding:0 4px; margin:0 -4px; background:linear-gradient(transparent 58%,var(--highlight) 58%,var(--highlight) 92%,transparent 92%); -webkit-box-decoration-break:clone; box-decoration-break:clone; }
    .intro { color:var(--fg-muted); font-size:var(--fs-lead); line-height:1.65; margin:0; max-width:32em; }
    .hero-search { margin:30px 0 0; }
    .hero-search label { display:block; font-size:var(--fs-small); font-weight:var(--fw-semibold); margin-bottom:10px; color:var(--fg-default); }
    .hero-search-row { display:flex; padding:6px; gap:6px; background:var(--bg-surface); border:1.5px solid var(--stroke-strong); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); transition:border-color .15s,box-shadow .15s; }
    .hero-search-row:focus-within { border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-weak-hover); }
    .hero-search .search { flex:1; min-width:0; margin:0; }
    .hero-search .search input,.hero-search .search input:focus { min-height:50px; border:0; border-radius:var(--r-sm); padding:12px 8px 12px 44px; box-shadow:none; }
    .hero-search .search svg { left:14px; }
    .hero-search button { flex-shrink:0; min-height:50px; padding:8px 24px; border:0; border-radius:var(--r-md); background:var(--brand); color:var(--fg-inverse); font-size:var(--fs-body); font-weight:var(--fw-bold); transition:background .15s; }
    .hero-search button:hover { background:var(--brand-hover); }
    .search-help { color:var(--fg-subtle); font-size:var(--fs-small); line-height:1.6; margin:10px 0 0; }
    .hero-meta { display:flex; gap:6px 16px; flex-wrap:wrap; margin-top:26px; padding-top:14px; border-top:1px solid var(--stroke); font-size:var(--fs-caption); color:var(--fg-subtle); }


    /* layout & section heads */
    .content-grid { display:block; padding-bottom:8px; }
    .main-col { min-width:0; }
    .block { margin-bottom:72px; }
    .section-top { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-bottom:10px; }
    h2 { font-size:var(--fs-h2); line-height:1.3; letter-spacing:var(--ls-heading); font-weight:var(--fw-bold); margin:0; }
    .section-count { display:inline-block; vertical-align:middle; position:relative; top:-3px; margin-left:10px; padding:1px 11px; border-radius:var(--r-pill); background:var(--brand-weak-hover); color:var(--brand-fg); font-size:var(--fs-small); font-weight:var(--fw-semibold); letter-spacing:0; line-height:1.6; }
    .section-lead { font-size:var(--fs-body); color:var(--fg-muted); margin:0 0 20px; line-height:1.65; }
    .small-muted { font-size:var(--fs-small); color:var(--fg-subtle); padding-bottom:4px; }

    /* controls */
    .search { position:relative; margin-bottom:14px; }
    .search svg { position:absolute; left:17px; top:50%; transform:translateY(-50%); color:var(--fg-subtle); width:19px; height:19px; }
    .search input { width:100%; min-height:52px; border:1px solid var(--stroke-strong); background:var(--bg-surface); padding:13px 16px 13px 48px; border-radius:var(--r-md); font-size:var(--fs-body); color:var(--fg-default); box-shadow:var(--shadow-sm); transition:border-color .15s,box-shadow .15s; }
    .search input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-weak-hover); }
    .search input::placeholder { color:var(--fg-subtle); opacity:1; }
    .filter-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
    .tabs { display:flex; width:fit-content; max-width:100%; flex-wrap:wrap; gap:2px; padding:4px; background:var(--bg-muted); border:1px solid var(--stroke); border-radius:var(--r-md); }
    .tab { font-size:var(--fs-small); font-weight:var(--fw-semibold); border:none; min-height:44px; padding:8px 16px; border-radius:var(--r-sm); background:transparent; color:var(--fg-subtle); white-space:nowrap; transition:color .15s,background .15s; }
    .tab:hover { color:var(--fg-default); }
    .tab[aria-pressed="true"] { background:var(--bg-surface); color:var(--fg-default); font-weight:var(--fw-bold); box-shadow:0 1px 3px rgba(24,30,41,.12),0 0 0 1px rgba(24,30,41,.04); }
    .week-tabs { margin-bottom:16px; }
    .only-mine { display:flex; align-items:center; gap:8px; min-height:44px; font-size:var(--fs-small); color:var(--fg-muted); cursor:pointer; font-weight:var(--fw-medium); }
    input[type=checkbox],input[type=radio] { accent-color:var(--brand); cursor:pointer; }
    .only-mine input { width:18px; height:18px; margin:0; }
    .mini { min-height:44px; border:1px solid var(--stroke-strong); background:var(--bg-surface); border-radius:var(--r-pill); padding:8px 16px; font-size:var(--fs-small); font-weight:var(--fw-semibold); display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; color:var(--fg-default); transition:border-color .15s,background .15s; }
    .mini svg { width:15px; height:15px; }
    .mini:hover { border-color:var(--gray-400); background:var(--bg-subtle); }
    .text-link { display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:8px 0; border:0; background:none; font-size:var(--fs-small); font-weight:var(--fw-semibold); color:var(--link); text-decoration:underline; text-decoration-color:var(--link-underline); text-decoration-thickness:1.5px; text-underline-offset:5px; transition:text-decoration-color .15s; }
    .text-link svg { width:14px; height:14px; transition:transform .15s; }
    .text-link:hover { text-decoration-color:currentColor; }
    .text-link:hover svg { transform:translateX(2px); }
    /* Chips, from strongest to quietest: status (tinted), source (tinted by certainty), data items (outline). */
    .badge { display:inline-flex; align-items:center; gap:4px; font-size:var(--fs-caption); line-height:1.6; padding:3px 10px; border-radius:var(--r-pill); font-weight:var(--fw-semibold); background:var(--success-weak); color:var(--success-fg); }
    .badge.news { background:var(--neutral-weak); color:var(--neutral-fg); }
    .badge.community { background:var(--warning-weak); color:var(--warning-fg); }
    .badge.fact-status { background:var(--brand-weak); color:var(--brand-fg); }
    .badge.deadline { background:var(--neutral-weak); color:var(--neutral-fg); }
    .badge.deadline.urgent { background:var(--danger-weak); color:var(--danger-fg); }
    .badge.deadline.caution { background:var(--warning-weak); color:var(--warning-fg); }
    .badge.deadline.open { background:var(--success-weak); color:var(--success-fg); }
    .badge svg { width:12px; height:12px; stroke-width:2.2; }
    .mine-tag { display:inline-block; vertical-align:middle; position:relative; top:-2px; margin-left:8px; padding:1px 9px; border-radius:var(--r-pill); background:var(--brand); color:var(--fg-inverse); font-size:var(--fs-caption); font-weight:var(--fw-bold); letter-spacing:0; line-height:1.6; }
    .data-tags { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0 16px; }
    .data-tag { font-size:var(--fs-caption); line-height:1.6; border:1px solid var(--stroke); background:var(--bg-surface); color:var(--fg-muted); padding:2px 10px; border-radius:var(--r-pill); font-weight:var(--fw-medium); }
    .data-tag.strong { color:var(--fg-default); border-color:var(--stroke-strong); font-weight:var(--fw-bold); }
    @keyframes flash { from { background-color:var(--blue-100); } to { background-color:transparent; } }
    .flash { animation:flash 1.8s ease-out; }

    /* Weekly brief: one column per item: meta line, title, summary, chips, caveat, actions. */
    .brief-list { background:var(--bg-surface); border:1px solid var(--stroke); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
    .brief-row { padding:28px 32px 22px; border-top:1px solid var(--stroke-subtle); outline-offset:-3px; transition:background .2s; }
    .brief-row:first-child { border-top:0; }
    .brief-row:hover { background:var(--bg-subtle); }
    .brief-row.mine { background:linear-gradient(90deg,var(--brand-weak),rgba(242,246,254,0) 65%); box-shadow:inset 3px 0 0 var(--brand-accent); }
    .brief-meta { display:flex; flex-wrap:wrap; align-items:center; margin:0 0 4px; font-size:var(--fs-small); color:var(--fg-subtle); font-variant-numeric:tabular-nums; }
    .brief-meta > span + span:before { content:"·"; margin:0 8px; color:var(--gray-400); }
    .brief-meta b { margin-right:5px; color:var(--fg-default); font-weight:var(--fw-bold); }
    .brief-org { margin:0; font-size:var(--fs-h3); font-weight:var(--fw-bold); letter-spacing:var(--ls-title); line-height:1.4; }
    .brief-org .brief-service { font-weight:var(--fw-medium); color:var(--fg-subtle); }
    .brief-desc { font-size:var(--fs-body); color:var(--fg-body); margin:10px 0 14px; line-height:1.7; }
    .brief-chips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
    /* Caveats read as footnotes, not grey notice boxes. */
    .brief-caveat,.card-caveat { margin:16px 0 0; padding:1px 0 1px 14px; border-left:2px solid var(--stroke-strong); font-size:var(--fs-small); color:var(--fg-subtle); line-height:1.7; }
    .brief-caveat strong,.card-caveat strong { color:var(--fg-muted); font-weight:var(--fw-bold); margin-right:6px; }
    .brief-desc,.brief-caveat,.card-summary,.card-scope,.card-caveat,.dl-note,.section-lead { max-width:44em; }
    .brief-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; margin-top:14px; }
    .brief-empty { padding:48px 20px; text-align:center; color:var(--fg-subtle); font-size:var(--fs-body); }
    .card-note { display:flex; gap:10px; margin:16px 0 0; padding:14px 18px; border-radius:var(--r-md); background:var(--bg-subtle); border:1px solid var(--stroke); font-size:var(--fs-small); line-height:1.7; color:var(--fg-muted); }
    .card-note svg { width:16px; height:16px; margin-top:4px; color:var(--fg-subtle); }
    /* Ads sit on a grey band with a label so they never read as part of the brief. */
    .ad-slot { margin:20px 0 0; border:1px dashed var(--stroke-strong); border-radius:var(--r-md); padding:18px 20px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px 14px; color:var(--fg-subtle); font-size:var(--fs-caption); background:repeating-linear-gradient(135deg,var(--bg-muted) 0 10px,var(--gray-100) 10px 20px); }
    .ad-slot b { font-size:var(--fs-caption); font-weight:var(--fw-semibold); color:var(--fg-subtle); border:1px solid var(--stroke-strong); border-radius:var(--r-xs); padding:0 6px; margin-right:8px; background:var(--bg-surface); }

    .source-asof { display:block; color:var(--fg-subtle); font-size:var(--fs-caption); margin-top:8px; }
    .estimate-section { margin-top:28px; padding:22px 20px; border:1px dashed var(--stroke-strong); border-radius:var(--r-lg); background:var(--bg-subtle); }
    .estimate-section h3 { margin:0 0 6px; font-size:var(--fs-h4); font-weight:var(--fw-bold); letter-spacing:var(--ls-title); }
    .estimate-lead { margin:0 0 16px; font-size:var(--fs-small); color:var(--fg-muted); line-height:1.7; }
    .deadline-row.estimate { border-color:var(--stroke); background:var(--bg-surface); }
    .dday.estimate { display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--neutral-weak); color:var(--neutral-fg); font-size:var(--fs-small); letter-spacing:0; line-height:1.5; }
    .dday.estimate small { max-width:100%; }
    .modal-section .dday.estimate { font-size:var(--fs-small); }

    /* deadline timeline */
    .timeline { background:var(--bg-surface); border:1px solid var(--stroke); border-radius:var(--r-lg); padding:20px 24px 16px; margin:0 0 18px; box-shadow:var(--shadow-sm); }
    .tl-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; margin-bottom:8px; }
    .tl-head b { font-size:var(--fs-h5); font-weight:var(--fw-bold); letter-spacing:-.01em; }
    .tl-head span { font-size:var(--fs-caption); color:var(--fg-subtle); }
    .tl-body { --label:190px; --end:52px; position:relative; padding-top:24px; display:grid; gap:2px; }
    .tl-grid { position:absolute; top:0; bottom:0; left:calc(var(--label) + 14px); right:calc(var(--end) + 14px); pointer-events:none; }
    .tl-zone { position:absolute; left:0; top:24px; bottom:0; background:linear-gradient(90deg,var(--red-50),rgba(255,242,240,.45)); border-radius:0 8px 8px 0; }
    .tl-tick { position:absolute; top:0; bottom:0; border-left:1px dashed var(--stroke-strong); }
    .tl-tick span { position:absolute; top:1px; left:6px; font-size:var(--fs-caption); color:var(--fg-subtle); font-weight:var(--fw-semibold); white-space:nowrap; line-height:1.4; }
    .tl-tick.today { border-left:2px solid var(--brand); }
    .tl-tick.today span { left:-1px; transform:translateX(-50%); top:0; padding:0 8px; border-radius:var(--r-pill); background:var(--brand); color:var(--fg-inverse); font-size:var(--fs-caption); font-weight:var(--fw-bold); }
    .tl-row { position:relative; display:grid; grid-template-columns:var(--label) minmax(0,1fr) var(--end); gap:14px; align-items:center; width:100%; border:0; background:none; padding:7px 0; text-align:left; font-size:var(--fs-small); border-radius:var(--r-sm); }
    .tl-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--fg-subtle); transition:color .15s; }
    .tl-name b { font-weight:var(--fw-bold); color:var(--fg-default); margin-right:5px; }
    .tl-row:hover .tl-name { color:var(--fg-default); }
    .tl-lane { position:relative; height:22px; }
    .tl-bar { position:absolute; top:5px; height:12px; min-width:10px; border-radius:var(--r-pill); background:linear-gradient(90deg,var(--green-100),var(--green-500)); transition:transform .2s; transform-origin:left center; }
    .tl-bar:after { content:""; position:absolute; right:-2px; top:50%; width:14px; height:14px; margin-top:-7px; border-radius:50%; background:var(--success-solid); box-shadow:0 0 0 3px var(--bg-surface); }
    .tl-row.urgent .tl-bar { background:linear-gradient(90deg,var(--red-100),var(--red-500)); }
    .tl-row.urgent .tl-bar:after { background:var(--danger-solid); }
    .tl-row.upcoming .tl-bar { background:repeating-linear-gradient(135deg,var(--gray-200) 0 6px,var(--gray-300) 6px 12px); }
    .tl-row.upcoming .tl-bar:after { background:var(--gray-500); }
    .tl-row:hover .tl-bar { transform:scaleY(1.25); }
    .tl-d { font-size:var(--fs-small); font-weight:var(--fw-bold); text-align:right; color:var(--success-fg); font-variant-numeric:tabular-nums; white-space:nowrap; }
    .tl-row.urgent .tl-d { color:var(--danger-fg); }
    .tl-row.upcoming .tl-d { color:var(--fg-subtle); }
    .tl-foot { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; margin-top:12px; padding-top:12px; border-top:1px solid var(--stroke-subtle); font-size:var(--fs-caption); color:var(--fg-subtle); }
    .tl-legend { display:flex; flex-wrap:wrap; gap:4px 16px; }
    .tl-legend i { display:inline-block; width:18px; height:8px; border-radius:var(--r-pill); margin-right:6px; vertical-align:1px; background:var(--success-solid); }
    .tl-legend i.urgent { background:var(--danger-icon); }
    .tl-legend i.upcoming { background:repeating-linear-gradient(135deg,var(--gray-200) 0 3px,var(--gray-400) 3px 6px); }

    /* Deadlines: actions sit under the text, so the eye never travels to the far edge.
       D-day colours: red only within 7 days, amber for "check now", green while open, grey before start or after close. */
    .deadline-list { display:grid; gap:12px; }
    .dl-group { display:flex; align-items:center; gap:10px; margin:20px 2px 2px; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--fg-subtle); }
    .dl-group:first-child { margin-top:0; }
    .dl-group:after { content:""; flex:1; height:1px; background:var(--stroke); }
    .deadline-row { display:grid; grid-template-columns:84px minmax(0,1fr); gap:4px 20px; align-items:start; background:var(--bg-surface); border:1px solid var(--stroke); border-radius:var(--r-lg); padding:22px 24px; outline-offset:-3px; box-shadow:var(--shadow-sm); transition:border-color .2s,box-shadow .2s; }
    .deadline-row:hover { border-color:var(--stroke-strong); box-shadow:var(--shadow); }
    .deadline-row.mine { border-color:var(--brand-stroke); box-shadow:inset 3px 0 0 var(--brand-accent),var(--shadow-sm); }
    .deadline-row.ongoing,.deadline-row.unknown,.deadline-row.closed { background:var(--bg-subtle); box-shadow:none; }
    .deadline-row.closed .dl-title { color:var(--fg-subtle); }
    .dday { display:grid; place-content:center; min-height:64px; border-radius:var(--r-md); font-weight:var(--fw-bold); font-size:var(--fs-h3); letter-spacing:-.02em; background:var(--success-weak); color:var(--success-fg); text-align:center; line-height:1.15; padding:6px 4px; font-variant-numeric:tabular-nums; }
    .dday small { display:block; font-size:var(--fs-caption); font-weight:var(--fw-semibold); letter-spacing:0; margin-top:4px; }
    .dday.urgent { background:var(--danger-weak); color:var(--danger-fg); font-size:var(--fs-h5); }
    .dday.caution { background:var(--warning-weak); color:var(--warning-fg); font-size:var(--fs-h5); }
    .dday.closed { background:var(--neutral-weak); color:var(--fg-subtle); font-size:var(--fs-small); }
    .dday.upcoming { background:var(--neutral-weak); color:var(--fg-muted); font-size:var(--fs-h5); }
    .dday.unknown,.dday.ongoing { min-height:56px; background:transparent; border:1.5px dashed var(--stroke-strong); color:var(--fg-subtle); font-size:var(--fs-small); }
    .dl-type { font-size:var(--fs-caption); font-weight:var(--fw-bold); color:var(--brand-fg); }
    .deadline-row.closed .dl-type { color:var(--fg-subtle); }
    .dl-title { font-size:var(--fs-h4); font-weight:var(--fw-bold); letter-spacing:var(--ls-title); margin:2px 0 4px; line-height:1.45; }
    .dl-meta { font-size:var(--fs-small); color:var(--fg-subtle); font-variant-numeric:tabular-nums; }
    .dl-note { font-size:var(--fs-small); color:var(--fg-body); margin:10px 0 0; line-height:1.7; }
    .dl-actions { grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; margin-top:8px; }
    .deadline-empty { border:1px dashed var(--stroke-strong); border-radius:var(--r-lg); padding:34px 20px; text-align:center; font-size:var(--fs-small); color:var(--fg-subtle); background:var(--bg-subtle); }

    /* incidents */
    .incident-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
    .incident-card { border:1px solid var(--stroke); background:var(--bg-surface); border-radius:var(--r-lg); padding:28px 32px 22px; display:flex; flex-direction:column; min-width:0; box-shadow:var(--shadow-sm); transition:border-color .2s,box-shadow .2s; }
    .incident-card:hover { border-color:var(--stroke-strong); box-shadow:var(--shadow); }
    .incident-card.watched { border-color:var(--brand-stroke); box-shadow:inset 3px 0 0 var(--brand-accent),var(--shadow-sm); }
    .card-top { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
    .identity { display:flex; align-items:center; gap:14px; min-width:0; }
    /* One neutral monogram style for every sector; the sector is already written next to it. */
    .service-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:var(--r-md); font-size:var(--fs-small); font-weight:var(--fw-bold); letter-spacing:-.04em; background:var(--bg-muted); color:var(--fg-muted); flex-shrink:0; }
    .service-title { font-size:var(--fs-h3); font-weight:var(--fw-bold); letter-spacing:var(--ls-title); line-height:1.35; margin:0; }
    .service-category { font-size:var(--fs-small); color:var(--fg-subtle); margin-top:2px; font-variant-numeric:tabular-nums; }
    .watch-button { min-height:44px; border:1px solid var(--stroke-strong); background:var(--bg-surface); border-radius:var(--r-pill); padding:8px 16px 8px 13px; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:var(--fs-small); font-weight:var(--fw-semibold); color:var(--fg-default); white-space:nowrap; transition:background .15s,border-color .15s,color .15s; }
    .watch-button:hover { border-color:var(--brand); color:var(--brand); }
    .watch-button svg { width:16px; height:16px; stroke-width:2.2; }
    .watch-button[aria-pressed="true"] { background:var(--brand); border-color:var(--brand); color:var(--fg-inverse); }
    .card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:14px 0 0; }
    .card-date { font-size:var(--fs-caption); color:var(--fg-subtle); }
    .card-summary { font-size:var(--fs-body); line-height:1.7; color:var(--fg-body); margin:0; }
    .card-caveat p { margin:0; }
    .card-caveat p+p { margin-top:8px; }
    .incident-scope { border:0; margin:8px 0 4px; }
    .incident-scope summary { padding:8px 0; min-height:44px; font-size:var(--fs-small); color:var(--brand-fg); }
    .card-scope { font-size:var(--fs-small); line-height:1.7; color:var(--fg-body); margin:4px 0 12px; }
    .incident-scope .data-tags { margin:0 0 8px; }
    .card-bottom { border-top:1px solid var(--stroke-subtle); padding-top:14px; margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; }
    .route-state { font-size:var(--fs-small); color:var(--fg-muted); display:flex; align-items:center; gap:8px; min-width:0; flex:1 1 240px; }
    .route-state:before { content:""; width:7px; height:7px; background:var(--success-solid); border-radius:50%; flex-shrink:0; box-shadow:0 0 0 3px var(--success-weak); }
    .route-state.uncertain:before { background:var(--warning-solid); box-shadow:0 0 0 3px var(--warning-weak); }
    /* Tonal button (Korean "weak" button): the main way into a detail, quieter than a filled CTA. */
    .detail-button { display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:8px 16px 8px 18px; border:0; border-radius:var(--r-pill); background:var(--brand-weak); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--brand-fg); white-space:nowrap; transition:background .15s; }
    .detail-button:hover { background:var(--brand-weak-hover); }
    .detail-button svg { width:15px; height:15px; transition:transform .15s; }
    .detail-button:hover svg { transform:translateX(3px); }
    .saved-status { background:var(--success-weak); margin-top:12px; padding:8px 12px; border-radius:var(--r-sm); font-size:var(--fs-small); color:var(--success-fg); font-weight:var(--fw-semibold); display:flex; align-items:center; gap:6px; }
    .saved-status svg { width:14px; height:14px; }
    #incidents:focus-visible { outline-offset:6px; }
    .search-status { font-size:var(--fs-small); color:var(--fg-subtle); margin:0 0 16px; }
    .empty { grid-column:1/-1; text-align:center; padding:52px 25px; border:1px dashed var(--stroke-strong); border-radius:var(--r-lg); color:var(--fg-subtle); background:var(--bg-subtle); }
    .empty svg { width:32px; height:32px; margin-bottom:10px; color:var(--fg-subtle); }
    .empty p { margin:8px 0 20px; font-size:var(--fs-small); }
    .secondary { min-height:44px; border:1px solid var(--stroke-strong); border-radius:var(--r-pill); padding:10px 18px; background:var(--bg-surface); font-size:var(--fs-small); font-weight:var(--fw-semibold); display:inline-flex; align-items:center; justify-content:center; gap:7px; color:var(--fg-default); }
    .secondary:hover { border-color:var(--gray-400); background:var(--bg-subtle); }
    .secondary svg { width:15px; height:15px; }
    .primary { min-height:48px; border:1px solid var(--brand); border-radius:var(--r-pill); padding:12px 22px; background:var(--brand); color:var(--fg-inverse); font-size:var(--fs-body); font-weight:var(--fw-bold); display:inline-flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 8px 18px -10px rgba(52,90,237,.75); transition:background .15s; }
    .primary:hover { background:var(--brand-hover); }
    .primary svg { width:16px; height:16px; }
    /* Irreversible actions are red, never brand blue. */
    .primary.danger { background:var(--danger-solid); border-color:var(--danger-solid); box-shadow:0 8px 18px -10px rgba(219,35,50,.7); }
    .primary.danger:hover { background:var(--red-700); }

    /* side */
    .side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; margin-bottom:72px; }
    .alert-panel,.record-panel { border:1px solid var(--stroke); background:var(--bg-surface); border-radius:var(--r-lg); padding:24px; outline-offset:3px; box-shadow:var(--shadow-sm); }
    .record-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:4px; }
    .record-heading h2 { font-size:var(--fs-h3); letter-spacing:var(--ls-title); display:flex; flex-wrap:wrap; align-items:center; }
    .record-heading > [data-icon] { width:38px; height:38px; border-radius:var(--r-md); display:grid; place-items:center; flex-shrink:0; background:var(--brand-weak); color:var(--brand); }
    .record-panel .record-heading > [data-icon] { background:var(--success-weak); color:var(--success-fg); }
    .record-heading > [data-icon] svg { width:18px; height:18px; }
    .unread-pill { font-size:var(--fs-caption); font-weight:var(--fw-bold); color:var(--fg-inverse); background:var(--danger-solid); border-radius:var(--r-pill); padding:0 9px; margin-left:8px; letter-spacing:0; line-height:1.6; }
    .record-description { font-size:var(--fs-small); line-height:1.65; color:var(--fg-subtle); margin:0 0 16px; }
    .keyword-form { display:flex; gap:6px; margin:0 0 10px; }
    .keyword-form input { flex:1; min-width:0; min-height:46px; border:1px solid var(--stroke-strong); border-radius:var(--r-md); padding:9px 14px; font-size:var(--fs-body); background:var(--bg-subtle); color:var(--fg-default); transition:border-color .15s,box-shadow .15s,background .15s; }
    .keyword-form input::placeholder { color:var(--fg-subtle); opacity:1; }
    .keyword-form input:focus { outline:none; background:var(--bg-surface); border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-weak-hover); }
    .chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
    .chips:empty { display:none; }
    .chip { display:inline-flex; align-items:center; gap:3px; font-size:var(--fs-small); border:1px solid var(--brand-stroke); background:var(--brand-weak); color:var(--brand-fg); border-radius:var(--r-pill); padding:4px 6px 4px 12px; font-weight:var(--fw-semibold); }
    .chip button { border:0; background:none; padding:0; width:44px; height:44px; margin:-10px -8px -10px -10px; display:grid; place-items:center; color:var(--brand-fg); border-radius:50%; }
    .chip button:hover { background:var(--brand-weak-hover); }
    .chip button svg { width:12px; height:12px; }
    .chip-suggest { min-height:44px; border:1px dashed var(--stroke-strong); background:transparent; color:var(--fg-muted); padding:6px 14px; font-size:var(--fs-small); border-radius:var(--r-pill); font-weight:var(--fw-medium); transition:all .15s; }
    .chip-suggest:hover { border-style:solid; border-color:var(--brand-stroke); background:var(--brand-weak); color:var(--brand-fg); }
    .chip-label { font-size:var(--fs-caption); color:var(--fg-subtle); align-self:center; margin-right:2px; }
    .alert-list { border-top:1px solid var(--stroke-subtle); }
    .alert-item { width:100%; text-align:left; border:0; background:transparent; border-bottom:1px solid var(--stroke-subtle); padding:12px 4px 12px 18px; position:relative; display:block; border-radius:0; transition:background .15s; }
    .alert-item:hover { background:var(--bg-subtle); }
    .alert-item:before { content:""; position:absolute; left:3px; top:21px; width:7px; height:7px; border-radius:50%; background:var(--gray-300); }
    .alert-item.unread:before { background:var(--danger-icon); box-shadow:0 0 0 3px var(--danger-weak); }
    .alert-item strong { display:block; font-size:var(--fs-body); font-weight:var(--fw-bold); line-height:1.55; }
    .alert-item.read strong { font-weight:var(--fw-medium); color:var(--fg-subtle); }
    .alert-item span { display:block; font-size:var(--fs-small); color:var(--fg-subtle); margin-top:3px; }
    .alert-kind { display:inline !important; font-size:var(--fs-caption) !important; font-weight:var(--fw-bold); color:var(--brand-fg) !important; margin:0 6px 0 0 !important; }
    .alert-kind.deadline { color:var(--danger-fg) !important; }
    .alert-kind.caution { color:var(--warning-fg) !important; }
    .alert-kind.start { color:var(--fg-muted) !important; }
    .alert-empty { font-size:var(--fs-small); color:var(--fg-subtle); margin:12px 0 0; padding:12px 14px; line-height:1.7; background:var(--bg-subtle); border-radius:var(--r-md); }
    .alert-foot { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px 12px; margin-top:12px; font-size:var(--fs-caption); color:var(--fg-subtle); }
    .link-button { border:0; background:none; min-height:44px; padding:8px 0; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--link); }
    .link-button:hover:not(:disabled) { text-decoration:underline; text-underline-offset:3px; }
    .progress-label { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; font-size:var(--fs-small); color:var(--fg-muted); font-weight:var(--fw-semibold); }
    .progress-label strong { font-size:var(--fs-h2); font-weight:var(--fw-bold); color:var(--fg-default); letter-spacing:var(--ls-display); font-variant-numeric:tabular-nums; }
    .progress-label strong small { color:var(--fg-subtle); font-size:var(--fs-small); font-weight:var(--fw-medium); letter-spacing:0; }
    .empty-records .progress-label,.empty-records .progress-track { display:none; }
    .progress-track { height:8px; background:var(--bg-muted); border-radius:var(--r-pill); overflow:hidden; }
    .progress-track>div { height:100%; width:0; background:var(--brand); border-radius:var(--r-pill); transition:width .35s; }
    .record-list { margin:16px 0; }
    .record-empty { font-size:var(--fs-small); color:var(--fg-subtle); padding:14px; line-height:1.7; border:1px dashed var(--stroke-strong); border-radius:var(--r-md); background:var(--bg-subtle); }
    .record-item { width:100%; min-height:48px; border:0; border-bottom:1px solid var(--stroke-subtle); padding:12px 2px; background:transparent; display:flex; justify-content:space-between; align-items:center; text-align:left; flex-wrap:wrap; gap:6px 10px; font-size:var(--fs-body); font-weight:var(--fw-semibold); }
    .record-item:last-child { border:0; }
    .record-item span:last-child { color:var(--neutral-fg); font-size:var(--fs-caption); font-weight:var(--fw-semibold); padding:2px 10px; border-radius:var(--r-pill); background:var(--neutral-weak); }
    .record-item .affected { color:var(--danger-fg) !important; background:var(--danger-weak) !important; }
    .record-item .clear { color:var(--success-fg) !important; background:var(--success-weak) !important; }
    .record-legend { font-size:var(--fs-small); color:var(--fg-subtle); margin:14px 0 0; line-height:1.7; }
    .storage-box { border-top:1px solid var(--stroke-subtle); padding-top:16px; margin-top:18px; }
    .switch-label { min-height:44px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-size:var(--fs-body); font-weight:var(--fw-bold); gap:10px; }
    /* Off track uses gray-500 so the control boundary keeps 3:1 against white. */
    .switch { appearance:none; -webkit-appearance:none; width:40px; height:24px; border-radius:var(--r-pill); background:var(--stroke-control); position:relative; margin:0; flex-shrink:0; transition:background .2s; }
    .switch:before { content:""; position:absolute; width:18px; height:18px; background:var(--bg-surface); border-radius:50%; top:3px; left:3px; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
    .switch:checked { background:var(--brand); }
    .switch:checked:before { transform:translateX(16px); }
    .storage-hint { font-size:var(--fs-small); line-height:1.7; color:var(--fg-subtle); margin:8px 0 14px; }
    .storage-hint.error { color:var(--danger-fg); }
    .record-tools { display:flex; gap:7px; }
    .record-tools button { flex:1; min-height:44px; font-size:var(--fs-small); font-weight:var(--fw-semibold); border:1px solid var(--stroke-strong); background:var(--bg-surface); color:var(--fg-default); border-radius:var(--r-pill); padding:8px; transition:background .15s; }
    .record-tools button:hover:not(:disabled) { background:var(--bg-subtle); }
    .side-tip { grid-column:1/-1; display:flex; gap:14px; padding:20px 22px; border:1px dashed var(--stroke-strong); border-radius:var(--r-lg); }
    .side-tip>[data-icon] { width:38px; height:38px; border-radius:var(--r-md); display:grid; place-items:center; flex-shrink:0; background:var(--success-weak); color:var(--success-fg); }
    .side-tip>[data-icon] svg { width:18px; height:18px; }
    .side-tip h3 { font-size:var(--fs-h5); font-weight:var(--fw-bold); margin:4px 0 6px; letter-spacing:-.01em; }
    .side-tip p { font-size:var(--fs-small); color:var(--fg-subtle); line-height:1.7; margin:0; }
    .side-tip button { min-height:44px; padding:8px 0; border:0; background:none; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--link); margin-top:4px; }
    .side-tip button:hover { text-decoration:underline; text-underline-offset:3px; }

    /* todo */
    .todo-section { margin-bottom:72px; }
    .todo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    .todo-item { display:grid; grid-template-columns:22px minmax(0,1fr); gap:14px; background:var(--bg-surface); border:1px solid var(--stroke); border-radius:var(--r-lg); padding:22px; box-shadow:var(--shadow-sm); transition:background .2s,border-color .2s; }
    .todo-item:hover { border-color:var(--stroke-strong); }
    .todo-item.done { background:var(--bg-subtle); border-color:var(--stroke-subtle); box-shadow:none; }
    .todo-item input { width:20px; height:20px; margin:4px 0 0; accent-color:var(--success-fg); }
    .todo-title { font-size:var(--fs-h4); font-weight:var(--fw-bold); letter-spacing:var(--ls-title); cursor:pointer; display:block; line-height:1.45; }
    .todo-item.done .todo-title { color:var(--fg-subtle); text-decoration:line-through; text-decoration-color:var(--gray-400); text-decoration-thickness:2px; }
    .todo-desc { font-size:var(--fs-small); color:var(--fg-subtle); margin:8px 0 14px; line-height:1.7; }
    .todo-foot { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between; }
    .when-tags { display:flex; flex-wrap:wrap; gap:5px; }
    .when-tag { font-size:var(--fs-caption); font-weight:var(--fw-semibold); padding:2px 10px; border-radius:var(--r-pill); background:var(--neutral-weak); color:var(--neutral-fg); }
    .todo-links { display:flex; flex-wrap:wrap; gap:0 16px; }

    /* help */
    .help-section { margin-bottom:72px; padding:32px 32px 12px; border:1px solid var(--stroke); background:var(--bg-surface); border-radius:var(--r-xl); box-shadow:var(--shadow-sm); }
    .help-section h2 { font-size:var(--fs-h3); letter-spacing:var(--ls-title); margin-bottom:4px; }
    .help-section .help-caption { font-size:var(--fs-small); color:var(--fg-subtle); margin:0 0 8px; }
    details { border-bottom:1px solid var(--stroke-subtle); }
    details:last-child { border:0; }
    summary { list-style:none; cursor:pointer; min-height:44px; padding:16px 0; font-size:var(--fs-h5); font-weight:var(--fw-semibold); display:flex; align-items:center; justify-content:space-between; gap:16px; }
    summary::-webkit-details-marker { display:none; }
    summary:after { content:"+"; width:28px; height:28px; border-radius:50%; background:var(--bg-muted); color:var(--fg-muted); display:grid; place-items:center; font-size:var(--fs-h4); font-weight:var(--fw-medium); line-height:1; flex-shrink:0; transition:transform .2s,background .2s,color .2s; }
    summary:hover:after { background:var(--brand-weak); color:var(--brand-fg); }
    details[open] > summary:after { transform:rotate(45deg); background:var(--brand); color:var(--fg-inverse); }
    details p { color:var(--fg-body); font-size:var(--fs-body); line-height:1.75; margin:0 0 18px; padding-right:44px; }

    /* footer */
    footer { background:var(--bg-surface); border-top:1px solid var(--stroke); color:var(--fg-subtle); padding:40px 0 44px; font-size:var(--fs-caption); }
    .footer-inner { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:16px 24px; }
    .footer-inner > div:first-child { color:var(--fg-muted); font-size:var(--fs-small); }
    .footer-brand { display:block; font-size:var(--fs-h3); color:var(--fg-default); font-weight:var(--fw-bold); letter-spacing:-.04em; margin-bottom:4px; }
    .footer-right { line-height:1.8; }

    /* dialogs */
    dialog { border:0; padding:0; width:min(680px,calc(100vw - 32px)); max-height:88vh; max-height:88dvh; color:var(--fg-default); border-radius:var(--r-xl); background:var(--bg-surface); box-shadow:0 40px 120px -20px rgba(24,30,41,.45); }
    dialog::backdrop { background:rgba(24,30,41,.5); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
    .modal { padding:30px 32px; }
    .modal-top { display:flex; justify-content:space-between; gap:20px; align-items:start; margin-bottom:20px; }
    .modal-top h2 { font-size:var(--fs-h2); letter-spacing:var(--ls-heading); margin:4px 0 4px; }
    .modal-top p { font-size:var(--fs-small); color:var(--fg-subtle); margin:0; }
    .modal-top > div > p:first-child { font-size:var(--fs-caption); font-weight:var(--fw-bold); letter-spacing:.02em; color:var(--brand-fg); }
    .modal-actions { display:flex; gap:6px; align-items:center; flex-shrink:0; }
    .close-button { border:1px solid var(--stroke-strong); border-radius:50%; width:44px; height:44px; background:var(--bg-surface); display:grid; place-items:center; flex-shrink:0; color:var(--fg-subtle); }
    .close-button:hover { color:var(--fg-default); border-color:var(--gray-400); }
    .close-button svg { width:16px; height:16px; }
    .modal-section { padding:22px 0; border-top:1px solid var(--stroke-subtle); }
    .modal-section h3 { font-size:var(--fs-h4); font-weight:var(--fw-bold); margin:0 0 10px; letter-spacing:var(--ls-title); }
    .modal-section p { font-size:var(--fs-body); color:var(--fg-body); margin:0 0 10px; line-height:1.75; }
    .modal-section .badge.fact-status { margin-bottom:10px; }
    .modal-section .data-tags { margin-bottom:10px; }
    .modal-section .deadline-list { gap:8px; }
    .modal-section .deadline-row { grid-template-columns:68px minmax(0,1fr); padding:14px 16px; gap:4px 14px; box-shadow:none; }
    .modal-section .dday { min-height:52px; font-size:var(--fs-h5); }
    .modal-section .dl-title { font-size:var(--fs-h5); }
    .modal-section .dl-note { font-size:var(--fs-small); margin:8px 0 0; }
    .notice { padding:14px 16px; background:var(--brand-weak); border-radius:var(--r-md); font-size:var(--fs-small); color:var(--fg-body); line-height:1.7; }
    .notice.caution { background:var(--warning-weak); color:var(--warning-fg); }
    ol.steps { padding-left:22px; margin:14px 0 18px; font-size:var(--fs-body); color:var(--fg-body); line-height:1.8; }
    ol.steps li::marker { color:var(--brand); font-weight:var(--fw-bold); }
    .source-list { padding:0; list-style:none; margin:0; }
    .source-list li { font-size:var(--fs-small); margin:10px 0; }
    .source-list a { display:inline-flex; align-items:center; gap:5px; color:var(--link); text-decoration:underline; text-decoration-color:var(--link-underline); text-underline-offset:3px; }
    .source-list svg { width:13px; height:13px; }
    .source-list small { font-size:var(--fs-caption); color:var(--fg-subtle); margin-left:7px; }
    fieldset { padding:0; margin:0; border:0; min-width:0; }
    legend { font-size:var(--fs-h4); font-weight:var(--fw-bold); letter-spacing:var(--ls-title); padding:0; margin:0 0 10px; }
    .radio-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
    .radio-option { display:flex; align-items:center; gap:8px; border:1px solid var(--stroke-strong); padding:12px 14px; font-size:var(--fs-small); font-weight:var(--fw-medium); border-radius:var(--r-md); cursor:pointer; transition:border-color .15s,background .15s; }
    .radio-option:hover { border-color:var(--gray-400); }
    .radio-option:has(input:checked) { border-color:var(--brand); background:var(--brand-weak); box-shadow:inset 0 0 0 1px var(--brand); }
    .radio-option input { margin:0; }
    .action-check { display:flex; align-items:center; gap:8px; font-size:var(--fs-small); margin-top:14px; color:var(--fg-muted); }
    .form-hint { font-size:var(--fs-small) !important; color:var(--fg-subtle) !important; margin-top:10px !important; }
    .modal-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:18px; }
    .modal-footer>span { font-size:var(--fs-small); color:var(--fg-subtle); }
    .privacy-list { padding:0; list-style:none; margin:0; }
    .privacy-list li { display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--stroke-subtle); }
    .privacy-list li:last-child { border:0; }
    .privacy-list li > [data-icon] { width:38px; height:38px; border-radius:var(--r-md); display:grid; place-items:center; flex-shrink:0; background:var(--brand-weak); color:var(--brand); }
    .privacy-list svg { width:18px; height:18px; }
    .privacy-list strong { font-size:var(--fs-h5); font-weight:var(--fw-bold); }
    .privacy-list p { font-size:var(--fs-small); color:var(--fg-subtle); line-height:1.75; margin:4px 0 0; }
    .toast { position:fixed; bottom:26px; left:50%; transform:translateX(-50%); background:var(--bg-inverse); color:var(--fg-inverse); border-radius:var(--r-md); padding:13px 20px; box-shadow:var(--shadow-lg); z-index:50; font-size:var(--fs-small); font-weight:var(--fw-medium); max-width:calc(100vw - 36px); width:max-content; }
    .noscript { padding:20px; background:var(--warning-weak); color:var(--warning-fg); text-align:center; }

    @media(max-width:1100px) {
      .container.wide { padding:0 28px; }
      .brand-sub { display:none; }
      .header-inner { gap:8px; }
      nav a { padding:0 10px; }
      .privacy-trigger>span:last-child { display:none; }
      .privacy-trigger { width:44px; padding:0; justify-content:center; }
    }
    @media(max-width:800px) {
      .header-inner { flex-wrap:wrap; padding-top:10px; }
      .header-actions { margin-left:auto; }
      nav { order:3; width:100%; margin:0; padding-bottom:6px; overflow-x:auto; scrollbar-width:none; }
      nav::-webkit-scrollbar { display:none; }
      html { scroll-padding-top:128px; }
      .side { grid-template-columns:minmax(0,1fr); }
      .todo-grid { grid-template-columns:minmax(0,1fr); }
      .tl-body { --label:170px; }
    }
    @media(max-width:620px) {
      :root { --fs-display:28px; --fs-h2:24px; --fs-h3:22px; --fs-lead:17px; --r-lg:16px; --r-xl:20px; }
      html { scroll-padding-top:128px; }
      .container,.container.wide { padding:0 16px; }
      .header-inner { gap:4px 8px; }
      .brand-mark { width:30px; height:30px; border-radius:var(--r-sm); }
      nav { gap:0; margin:0 -8px; width:calc(100% + 16px); -webkit-mask-image:linear-gradient(90deg,#000 86%,transparent); mask-image:linear-gradient(90deg,#000 86%,transparent); }
      nav a { padding:0 9px; }
      .alert-trigger-label { display:none; }
      .alert-trigger,.privacy-trigger { width:44px; padding:0; justify-content:center; position:relative; }
      .alert-count { position:absolute; top:-3px; right:-3px; }
      .hero { margin:16px 0 0; padding:24px 20px 16px; }
      .hero:after { width:340px; height:340px; right:-160px; top:-180px; }
      .hero .eyebrow { display:none; }
      h1 { margin-bottom:12px; }
      .hero-search { margin-top:20px; }
      .hero-search label { margin-bottom:8px; }
      .hero-search .search input,.hero-search .search input:focus { padding:12px 4px 12px 36px; }
      .hero-search .search svg { left:10px; width:17px; }
      .hero-search button { padding:8px 18px; }
      .hero-meta { margin-top:16px; padding-top:12px; }
      .block { margin-bottom:52px; }
      .section-count { font-size:var(--fs-caption); margin-left:8px; top:-2px; padding:0 9px; }
      #brief .section-top { flex-wrap:nowrap; align-items:center; }
      #copy-brief { width:44px; padding:0; flex-shrink:0; }
      .copy-label,.brief-range { display:none; }
      .brief-row { padding:22px 18px 16px; }
      .brief-desc { margin:8px 0 12px; }
      .brief-caveat,.card-caveat { margin-top:14px; }
      .brief-actions { gap:4px 16px; margin-top:10px; }
      .timeline { padding:16px 14px; }
      .tl-body { --label:110px; --end:48px; }
      .tl-row { gap:8px; min-height:48px; font-size:var(--fs-caption); }
      .tl-grid { left:calc(var(--label) + 8px); right:calc(var(--end) + 8px); }
      .tl-name { white-space:normal; line-height:1.45; }
      .tl-name b { display:block; margin:0; }
      .tl-d { font-size:var(--fs-caption); }
      /* D-day becomes a pill above the title so the text gets the full card width. */
      .deadline-row { padding:18px 16px; gap:10px; grid-template-columns:minmax(0,1fr); }
      .deadline-row.ongoing,.deadline-row.unknown { padding:16px; }
      .dday,.dday.estimate { justify-self:start; display:inline-flex; flex-direction:row; align-items:baseline; gap:6px; min-height:0; padding:4px 12px; border-radius:var(--r-pill); font-size:var(--fs-h5); line-height:1.4; }
      .dday small { display:inline; margin:0; }
      .dday.urgent,.dday.caution,.dday.upcoming,.dday.closed { font-size:var(--fs-small); }
      .dday.unknown,.dday.ongoing { min-height:0; font-size:var(--fs-caption); }
      .dl-actions { grid-column:1; gap:4px 16px; margin-top:0; }
      .ad-slot { padding:14px; }
      .incident-card { padding:22px 18px 16px; }
      .identity { gap:12px; }
      .service-icon { width:40px; height:40px; border-radius:var(--r-md); font-size:var(--fs-caption); }
      .watch-button { margin-left:auto; }
      .card-bottom { align-items:flex-start; }
      .tabs { width:100%; }
      .tab { padding:8px 12px; }
      .alert-panel,.record-panel { padding:20px 18px; }
      .side-tip { padding:18px; }
      .help-section { padding:24px 20px 8px; }
      details p { padding-right:0; }
      .footer-inner { flex-direction:column; gap:14px; }
      .modal { padding:22px 18px; }
      .modal-top { flex-wrap:wrap; gap:12px; }
      .modal-actions { margin-left:auto; }
      .modal-section .deadline-row { grid-template-columns:minmax(0,1fr); gap:8px; }
      .modal-section .dday { min-height:0; font-size:var(--fs-small); }
      .radio-grid { grid-template-columns:minmax(0,1fr); }
      .radio-option { min-height:48px; }
      .modal-footer { align-items:stretch; flex-direction:column; }
      .modal-footer .primary { width:100%; }
    }
    @media(prefers-reduced-motion:reduce) { *,*:before,*:after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
    @media print {
      header,.hero-search,.filter-row,.week-tabs,.search,.watch-button,.detail-button,.record-tools,.storage-box,.side-tip,.help-section,.ad-slot,.alert-panel,.timeline,.mini,footer,.toast { display:none !important; }
      body { background:white; }
      .container { max-width:100%; padding:0; }
      .hero { padding:10px 0; margin:0 0 20px; display:block; background:none; border:0; box-shadow:none; }
      .hero:after { display:none; }
      .eyebrow { border:0; padding:0; color:#000; }
      h1,.intro,.hero-meta { color:#000; }
      h1 .hl { background:none; padding:0; margin:0; }
      h1 { font-size:28px; }
      .content-grid { display:block; }
      .incident-card,.brief-row,.deadline-row,.todo-item { break-inside:avoid; box-shadow:none; }
    }

    /* Backup controls keep the v3 button styling while accommodating import. */
    .record-tools { flex-wrap:wrap; }
    .record-tools button { flex:1 1 110px; }
    .footer-right a { color:var(--link); text-decoration:underline; text-underline-offset:3px; }

    .migration-notice { margin-top:24px; padding:24px; border:1px solid var(--brand-stroke); border-radius:var(--r-md); background:var(--brand-weak); }
    .migration-notice h2 { margin:0 0 12px; font-size:var(--fs-h4); }
    .migration-notice p { margin:0 0 12px; color:var(--fg-body); }
    .migration-notice a { color:var(--brand-fg); text-decoration:underline; text-underline-offset:3px; }

    /* Four views share a quiet reading surface and persistent navigation. */
    :root { --read:1080px; --bg-page:#f8f9fc; --fs-body:16px; --fs-display:38px; --fs-h2:27px; }
    html { scroll-padding-top:140px; }
    .container { max-width:1160px; padding:0 40px; }
    header { background:rgba(255,255,255,.96); }
    .header-inner { min-height:68px; }
    .container.wide { max-width:1160px; }
    .header-actions { margin-left:auto; }
    .privacy-trigger { border:0; background:transparent; font-size:13px; color:var(--fg-subtle); }
    .alert-trigger { border:0; background:var(--bg-subtle); font-size:13px; }
    nav.view-tabs { width:100%; mask-image:none; -webkit-mask-image:none; display:flex; justify-content:flex-start; gap:8px; margin:auto; border-top:1px solid var(--stroke-subtle); }
    .view-tabs a { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; min-height:56px; min-width:116px; padding:0 20px; border-radius:0; font-size:16px; color:var(--fg-subtle); }
    .view-tabs a:hover { background:var(--brand-weak); }
    .view-tabs a[aria-selected=true] { color:var(--brand); font-weight:700; }
    .view-tabs a[aria-selected=true]:after { content:""; position:absolute; left:16px; right:16px; bottom:-1px; height:3px; background:var(--brand); border-radius:3px 3px 0 0; }
    .view-tabs svg { width:19px; height:19px; }
    .view-panel { padding:36px 0 56px; min-height:60vh; }
    #panel-news { padding-top:0; }
    .hero { display:grid; grid-template-columns:1.05fr 1fr; gap:12px 48px; align-items:center; margin:0; padding:38px 0 26px; border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
    .hero:after { display:none; }
    .eyebrow { font-size:13px; margin-bottom:12px; }
    .eyebrow:before { width:5px; height:5px; box-shadow:none; }
    h1 { font-size:38px; line-height:1.36; margin:0; }
    h1 .hl { background:none; padding:0; margin:0; }
    .intro { font-size:15px; margin-top:14px; }
    .hero-tool { min-width:0; }
    .hero-search { margin:0; }
    .hero-search label.sr-only { margin:0; }
    .hero-search label { font-size:15px; margin-bottom:10px; }
    .hero-search-row { border:1px solid var(--stroke-strong); border-radius:12px; padding:5px; }
    .hero-search .search input,.hero-search .search input:focus { min-height:44px; font-size:15px; padding-left:38px; }
    .hero-search button { min-height:44px; padding:8px 20px; border-radius:8px; font-size:15px; }
    .search-help { font-size:12px; margin-top:8px; }
    .hero-shortcuts { display:flex; gap:7px; flex-wrap:wrap; margin-top:14px; }
    .hero-shortcuts button { min-height:34px; padding:5px 12px; background:white; border:1px solid var(--stroke); border-radius:999px; font-size:12px; color:var(--fg-muted); }
    .hero-shortcuts button:hover { color:var(--brand); border-color:var(--brand-stroke); background:var(--brand-weak); }
    .hero-meta { grid-column:1/-1; margin:12px 0 0; padding-top:16px; font-size:12px; border-color:var(--stroke); }
    .block { margin-bottom:0; }
    #panel-news .hero { margin-bottom:18px; }
    .section-top { align-items:center; margin-bottom:10px; }
    h2 { font-size:27px; }
    .section-lead { font-size:14px; margin-bottom:18px; max-width:58em; }
    .section-count { font-size:12px; margin-left:8px; top:-2px; }
    .small-muted { font-size:12px; }
    .week-tabs { margin-bottom:20px; background:transparent; padding:0; border:0; gap:7px; }
    .week-tabs .tab { background:transparent; border:1px solid var(--stroke); border-radius:999px; font-size:13px; min-height:36px; padding:5px 14px; }
    .week-tabs .tab[aria-pressed=true] { background:var(--fg-default); border-color:var(--fg-default); color:white; box-shadow:none; }
    .brief-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible; align-items:start; }
    .brief-row,.brief-row:first-child { padding:23px 24px 18px; background:white; border:1px solid var(--stroke); border-radius:14px; box-shadow:none; }
    .brief-row:hover { background:white; border-color:var(--stroke-strong); }
    .brief-meta { font-size:12px; margin-bottom:8px; }
    .brief-org { font-size:22px; line-height:1.45; }
    .brief-org .brief-service { font-size:16px; }
    .brief-chips { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
    .badge { font-size:12px; padding:3px 8px; }
    .brief-desc { font-size:15px; margin:0 0 14px; line-height:1.7; }
    .brief-actions { margin-top:14px; border-top:1px solid var(--stroke-subtle); padding-top:8px; display:flex; gap:16px; flex-wrap:wrap; }
    .brief-actions .detail-button { margin-left:0; }
    .content-details { margin:12px 0 0; padding:0; border:0; }
    .content-details summary { min-height:40px; padding:6px 0; font-size:13px; font-weight:500; color:var(--fg-subtle); }
    .content-details summary:hover { color:var(--brand); }
    .content-details p { margin:10px 0; padding:0; font-size:14px; line-height:1.75; }
    .content-details .brief-caveat,.content-details .card-caveat { margin:12px 0; background:var(--bg-subtle); border:0; border-radius:8px; padding:12px; }
    .detail-asof { color:var(--fg-subtle); font-size:12px !important; }
    .source-links { display:flex; flex-wrap:wrap; gap:4px 18px; }
    .source-links .text-link { font-size:12px; min-height:40px; }
    .card-note { font-size:12px; margin:20px 0 0; }
    .card-note details { width:100%; }
    .card-note summary { color:var(--fg-subtle); min-height:30px; font-size:12px; }
    .card-note details p { font-size:12px; padding:0; }
    .timeline { margin:22px 0; box-shadow:none; border-radius:12px; }
    .deadline-list { background:transparent; border:0; box-shadow:none; border-radius:0; overflow:visible; display:grid; gap:12px; }
    .deadline-row { padding:22px; border:1px solid var(--stroke); border-radius:12px; background:white; grid-template-columns:86px minmax(0,1fr); gap:20px; }
    .dl-title { font-size:18px; }
    .dl-meta { font-size:13px; margin-top:6px; }
    .dl-actions { grid-column:2; display:flex; justify-content:flex-start; flex-wrap:wrap; gap:6px 18px; margin-top:-8px; }
    .dday { align-self:start; min-height:66px; border-radius:10px; font-size:22px; }
    .dday.ongoing,.dday.unknown,.dday.upcoming,.dday.caution { font-size:15px; }
    .dl-group { margin:12px 0 0; padding:0; background:none; border:0; }
    .estimate-section { margin-top:32px; border-top:1px solid var(--stroke); padding-top:24px; }
    .service-nav { width:100%; mask-image:none; -webkit-mask-image:none; display:flex; gap:6px; margin:0 0 28px; }
    .service-nav a { padding:6px 12px; font-size:13px; min-height:36px; background:white; border:1px solid var(--stroke); }
    .service-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:30px; align-items:start; }
    .service-discovery,.side { min-width:0; }
    .side { position:static; display:grid; grid-template-columns:1fr; gap:20px; margin-top:0; }
    .incident-grid { display:grid; grid-template-columns:1fr; gap:14px; }
    .incident-card { padding:22px; border-radius:14px; box-shadow:none; }
    .service-title { font-size:21px; }
    .service-category { font-size:12px; }
    .card-summary { font-size:14px; margin:16px 0 12px; }
    .card-meta { gap:6px; }
    .incident-scope { margin:12px 0; }
    .card-bottom { padding-top:12px; gap:12px; }
    .route-state { font-size:12px; }
    .detail-button { font-size:13px; min-height:40px; }
    .alert-panel,.record-panel { padding:22px; box-shadow:none; border-radius:14px; }
    .record-heading h2 { font-size:19px; }
    .record-description { font-size:12px; }
    .alert-item strong { font-size:13px; }
    .alert-item > span { font-size:12px; }
    .record-empty .text-link { display:flex; font-size:13px; }
    .side-tip { display:none; }
    .todo-section { margin:0; }
    .todo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    .todo-item { padding:22px; border-radius:12px; box-shadow:none; }
    .todo-title { font-size:17px; }
    .when-tags { margin-top:9px; }
    .when-tag { font-size:12px; }
    .todo-links { display:flex; gap:0 16px; flex-wrap:wrap; }
    .help-section { margin-top:44px; padding:28px; border-radius:14px; background:white; grid-template-columns:210px minmax(0,1fr); }
    .help-section h2 { font-size:23px; }
    .help-section summary { font-size:14px; }
    footer { padding:26px 0; }
    .footer-inner { gap:24px; font-size:13px; }
    .footer-right { font-size:11px; }
    .footer-help { display:inline-flex; min-height:36px; font-size:12px; }
    @media(max-width:950px) {
      .service-layout { grid-template-columns:minmax(0,1fr); }
      .side { grid-template-columns:repeat(2,minmax(0,1fr)); }
      .hero { gap:16px 28px; }
      h1 { font-size:32px; }
    }
    @media(max-width:620px) {
      :root { --fs-body:15px; }
      html { scroll-padding-top:122px; }
      .container,.container.wide { padding:0 20px; }
      .header-inner { min-height:60px; gap:10px; padding-top:0; flex-wrap:nowrap; }
      .brand-name { font-size:22px; }
      .brand-mark { width:30px; height:30px; }
      .brand-sub { display:none; }
      .header-actions { gap:4px; }
      .privacy-trigger { padding:0; width:36px; min-height:40px; }
      .privacy-trigger span:not([data-icon]) { display:none; }
      .alert-trigger { padding:0 9px; min-height:38px; }
      .alert-trigger-label { display:none; }
      nav.view-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:0 12px; overflow:visible; }
      .view-tabs a { min-width:0; min-height:52px; font-size:14px; gap:6px; padding:0 4px; }
      .view-tabs svg { width:17px; height:17px; }
      .view-tabs a[aria-selected=true]:after { left:6px; right:6px; }
      .view-panel { padding:26px 0 36px; }
      #panel-news { padding-top:0; }
      .hero { display:block; margin:0; padding:22px 0 16px; }
      .eyebrow { font-size:11px; margin-bottom:10px; }
      h1 { font-size:29px; line-height:1.35; }
      .hero-tool { margin-top:12px; }
      .hero-search { margin:0; }
      .hero-search label { font-size:13px; margin-bottom:8px; }
      .hero-search-row { border-radius:10px; }
      .hero-search .search input,.hero-search .search input:focus { font-size:16px; min-height:44px; }
      .hero-search button { min-height:44px; padding:7px 16px; }
      .search-help { font-size:12px; margin-top:7px; }
      .hero-shortcuts { margin-top:11px; gap:6px; }
      .hero-shortcuts button { font-size:12px; padding:4px 10px; min-height:40px; }
      .hero-meta { margin-top:14px; padding-top:10px; font-size:12px; gap:4px 12px; }
      h2 { font-size:23px; }
      .section-top { align-items:center; gap:8px; margin-bottom:8px; }
      .section-lead { font-size:14px; margin-bottom:14px; line-height:1.65; }
      .section-count { font-size:12px; margin-left:7px; padding:1px 7px; }
      .brief-range { display:none; }
      .week-tabs { margin-bottom:14px; gap:6px; width:auto; }
      .week-tabs .tab { min-height:40px; font-size:12px; padding:4px 12px; }
      .brief-list { grid-template-columns:minmax(0,1fr); gap:14px; }
      .brief-row,.brief-row:first-child { padding:19px 18px 14px; border-radius:12px; }
      .brief-meta { font-size:12px; margin-bottom:6px; }
      .brief-org { font-size:21px; }
      .brief-org .brief-service { font-size:14px; }
      .brief-chips { margin:10px 0; gap:5px; }
      .brief-desc { margin:0 0 8px; font-size:15px; }
      .badge { font-size:12px; }
      .brief-actions { margin-top:10px; gap:12px; }
      .content-details summary { font-size:12px; }
      .content-details p { font-size:14px; }
      .deadline-row { padding:18px; grid-template-columns:68px minmax(0,1fr); gap:12px; }
      .dday,.dday.estimate { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:60px; padding:8px 4px; border-radius:9px; font-size:19px; }
      .dday.urgent { font-size:19px; }
      .dday.upcoming,.dday.caution,.dday.ongoing,.dday.unknown,.dday.closed { font-size:12px; }
      .dday small { display:block; font-size:12px; }
      .dl-title { font-size:16px; }
      .dl-meta { font-size:12px; }
      .dl-type { font-size:12px; }
      .dl-actions { grid-column:1/-1; margin-top:0; gap:2px 14px; }
      .dl-actions .mini { font-size:12px; padding:6px 10px; min-height:40px; }
      .dl-actions .text-link { font-size:12px; min-height:40px; }
      .service-nav { margin-bottom:22px; gap:6px; flex-wrap:wrap; }
      .service-nav a { font-size:12px; padding:5px 10px; min-height:40px; }
      .side { grid-template-columns:minmax(0,1fr); gap:18px; }
      .service-layout { gap:26px; }
      .incident-card { padding:18px; }
      .service-title { font-size:20px; }
      .service-icon { width:36px; height:36px; }
      .service-category { font-size:12px; }
      .card-top { gap:10px; }
      .watch-button { flex-shrink:0; }
      .card-summary { font-size:15px; }
      .search input,.keyword-form input { font-size:16px; }
      .route-state { font-size:12px; }
      .detail-button { font-size:12px; }
      .todo-grid { grid-template-columns:minmax(0,1fr); }
      .todo-item { padding:18px; }
      .todo-title { font-size:16px; }
      .help-section { display:block; padding:22px 18px; margin-top:32px; }
      .help-caption { font-size:12px; margin:8px 0 18px; }
      .help-section summary { font-size:13px; }
      .footer-inner { font-size:12px; }
      .modal-section .deadline-row { grid-template-columns:68px minmax(0,1fr); }
      .modal-section .dl-actions { grid-column:1/-1; }
    }

    .discovery-disclosure,.records-disclosure { margin:18px 0 32px; padding:16px 20px; border:1px solid var(--stroke); border-radius:12px; background:var(--bg-surface); }
    .discovery-disclosure>summary,.records-disclosure>summary { cursor:pointer; font-weight:700; min-height:36px; display:flex; align-items:center; }
    .discovery-disclosure .block { margin:20px 0 0; }
    .records-disclosure .side { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:18px; }
    .records-disclosure .side-tip { grid-column:1/-1; }
    .keyword-options { margin:12px 0; }
    .keyword-options>summary,.past-schedules>summary,.result-disclosure>summary { cursor:pointer; font-weight:600; padding:8px 0; }
    .related-news { padding:12px 0; display:grid; gap:12px; }
    .related-news p { font-size:14px; line-height:1.7; margin:8px 0; }
    .related-news .text-link { margin-right:12px; }
    .current-route .route-state { display:block; font-size:15px; margin-bottom:10px; }
    .current-route .notice { margin-bottom:16px; }
    .official-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
    .related-tasks { margin-top:20px; padding-top:16px; border-top:1px solid var(--stroke-subtle); }
    .related-tasks h4 { margin:0 0 8px; }
    .related-tasks>div { margin-top:14px; }
    .related-tasks>div p { font-size:13px; margin-bottom:4px; }
    .storage-status { font-size:13px; color:var(--fg-subtle); padding:10px 0; line-height:1.65; }
    @media(max-width:640px) {
      .discovery-disclosure,.records-disclosure { padding:12px; }
      .records-disclosure .side { grid-template-columns:minmax(0,1fr); }
      .current-route { padding-top:14px; }
      .current-route .primary { width:100%; padding:10px 14px; }
      #detail-content .modal-top { flex-wrap:nowrap; gap:8px; margin-bottom:12px; }
      #detail-content .modal-actions { flex-shrink:0; }
      #detail-content .modal-actions .mini { font-size:0; padding:8px; }
      #detail-content .modal-actions .mini svg { margin:0; }
    }
