:root {
  color-scheme: light;
  --background: #f2efe8;
  --surface: #fffcf6;
  --text: #211b16;
  --secondary: #655f56;
  --accent: #9a4729;
  --line: #e0d9ce;
  --app-width: 36rem;
  --gutter: clamp(1rem, 4.5vw, 1.45rem);
  --round: 1rem;
}
* { box-sizing: border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100dvh; background:var(--background); color:var(--text); font:1rem/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
a:focus-visible, input:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
h1:focus { outline:none; }
h1,h2,p { margin:0; }
svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.navigation { position:sticky; top:0; z-index:2; padding-top:env(safe-area-inset-top, 0px); background:rgba(242,239,232,.91); backdrop-filter:blur(20px) saturate(140%); -webkit-backdrop-filter:blur(20px) saturate(140%); }
.navigation-inner { width:min(100%,var(--app-width)); min-height:3rem; margin:auto; padding:0 var(--gutter); display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.wordmark { font-weight:720; letter-spacing:-.025em; }
.wordmark b { color:var(--accent); margin-right:.12em; }
.frontier-link,.back { min-height:2.75rem; display:inline-flex; align-items:center; color:var(--accent); }
.frontier-link { font-size:.875rem; font-weight:550; }
.back { padding-right:.4rem; gap:.55rem; font-weight:550; }
.back-chevron { width:.58rem; height:.58rem; margin-left:.15rem; border-left:2px solid; border-bottom:2px solid; transform:rotate(45deg); }
.app { max-width:var(--app-width); margin:0 auto; padding:.35rem var(--gutter) calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.view-title { margin:0 0 1rem; }
.view-title h1 { font-size:clamp(1.95rem, 9vw, 2.5rem); font-weight:760; letter-spacing:-.055em; line-height:1.18; overflow-wrap:anywhere; }
.view-title p { font-size:.875rem; color:var(--secondary); margin-top:.25rem; }
.brief { padding:.88rem 1rem 1rem; background:#f5e7d8; border-radius:var(--round); }
.brief h2 { margin:.4rem 0 .35rem; font-size:1.26rem; line-height:1.35; font-weight:730; letter-spacing:-.022em; }
.brief > p:last-child { line-height:1.5; }
.section { margin-top:1.1rem; }
.section-heading { margin:0 0 .35rem .84rem; font-size:.875rem; font-weight:600; color:var(--secondary); }
.grouped { background:var(--surface); border-radius:var(--round); overflow:hidden; }
.row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; min-height:3.15rem; padding:.53rem .9rem; column-gap:.52rem; position:relative; }
.row + .row::before { content:""; position:absolute; top:0; left:.9rem; right:0; border-top:1px solid var(--line); }
.row:hover { background:#f8f2e8; }
.row:active { background:#efe6da; }
.row-title { line-height:1.35; overflow-wrap:anywhere; }
.row-meta { color:var(--secondary); font-size:.875rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.topic-row::after,.story-row::after { content:""; width:.43rem; height:.43rem; border-top:1.5px solid #81786e; border-right:1.5px solid #81786e; transform:rotate(45deg); margin-right:.15rem; grid-column:3; grid-row:1; }
.story-row::after { grid-row:1 / span 2; }
.story-row { grid-template-columns:minmax(0,1fr) auto auto; row-gap:.12rem; }
.story-row .row-meta { grid-column:1; font-size:.8125rem; }
.topic-intro { margin:-.3rem 0 .9rem; color:var(--secondary); }
.search { display:flex; align-items:center; gap:.4rem; background:#eae5dc; border-radius:.72rem; padding:0 .65rem; }
.search svg { width:1.15rem; height:1.15rem; flex-shrink:0; color:var(--secondary); }
.search input { width:100%; min-height:2.75rem; padding:0 .15rem; color:var(--text); border:0; background:transparent; font:inherit; }
.search input::placeholder { color:var(--secondary); }
.empty { color:var(--secondary); margin:1rem .75rem; }
.detail-title p { margin:0 0 .38rem; color:var(--accent); font-weight:600; }
.detail-title h1 { font-size:clamp(1.75rem, 7vw, 2.15rem); line-height:1.32; }
.story-content { background:var(--surface); border-radius:var(--round); padding:1rem; }
.evidence { display:inline-flex; padding:.18rem .52rem; border-radius:999px; background:#f4e7d8; color:#754025; font-size:.875rem; }
.story-content p { margin-top:.65rem; font-size:1.06rem; line-height:1.7; }
.detail-links { margin-top:.88rem; }
.detail-links .row { grid-template-columns:1fr auto; color:var(--accent); }
.external-icon { width:1.1rem; height:1.1rem; }
.tab-bar { position:fixed; z-index:2; inset:auto 0 0; padding-bottom:env(safe-area-inset-bottom, 0px); background:rgba(255,252,246,.89); border-top:1px solid var(--line); backdrop-filter:blur(20px) saturate(140%); -webkit-backdrop-filter:blur(20px) saturate(140%); }
.tab-bar-inner { max-width:26rem; min-height:3.65rem; margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.14rem; min-height:3.5rem; color:var(--secondary); font-size:.8125rem; line-height:1.2; }
.tab svg { width:1.39rem; height:1.39rem; }
.tab[aria-current="page"] { color:var(--accent); font-weight:720; }
.tab[aria-current="page"] svg { stroke-width:2; }
@media (min-width:48rem) {
  .tab-bar-inner { max-width:var(--app-width); }
  .navigation-inner { min-height:3.3rem; }
}

.tab-bar-inner { grid-template-columns:repeat(5,minmax(0,1fr)); max-width:var(--app-width); }
.tab { font-size:.74rem; }
.section-top { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; }
.section-top a { color:var(--accent); margin-right:.35rem; padding:.35rem .25rem; font-size:.875rem; }
.subsearch { margin-top:.75rem; }
.workspace-search,.text-form textarea { width:100%; border:0; border-radius:.75rem; background:var(--field,#eae5dc); color:var(--text); font:inherit; padding:.65rem .8rem; }
.workspace-search::placeholder,.text-form textarea::placeholder { color:var(--secondary); }
.segment { display:flex; padding:.2rem; border-radius:.7rem; background:var(--field,#eae5dc); }
.segment button { flex:1; min-width:0; border:0; background:transparent; color:var(--text); font:inherit; font-size:.875rem; min-height:2.6rem; padding:.2rem .3rem; cursor:pointer; }
.segment button[aria-pressed="true"] { border-radius:.53rem; background:var(--surface); font-weight:650; }
.plain-button { border:0; padding:.55rem .95rem; border-radius:999px; background:var(--surface); color:var(--accent); font:inherit; font-weight:650; min-height:2.75rem; cursor:pointer; }
.plain-button[aria-pressed="true"] { background:var(--field,#eae5dc); }
.detail-actions { margin-top:.8rem; }
.text-form { margin-top:.8rem; display:grid; justify-items:start; gap:.55rem; }
.text-form textarea { min-height:4.5rem; resize:vertical; }
.note { padding:.75rem .9rem; white-space:pre-wrap; overflow-wrap:anywhere; }
.note + .note { border-top:1px solid var(--line); }
.story-content + .story-content { margin-top:.55rem; }
.story-content p { white-space:pre-wrap; overflow-wrap:anywhere; }
.preference { padding:.55rem .9rem; min-height:3.15rem; display:flex; justify-content:space-between; align-items:center; gap:.6rem; }
.preference + .preference { border-top:1px solid var(--line); }
.preference select { font:inherit; color:var(--accent); background:var(--surface); border:0; max-width:55%; }
.schedule { background:var(--surface); border-radius:var(--round); padding:.25rem .8rem; }
.schedule summary { cursor:pointer; min-height:2.75rem; padding:.55rem 0; font-weight:650; }
[data-density="compact"] .row { min-height:2.8rem; padding-block:.38rem; }
:root[data-theme="dark"] {
  color-scheme:dark; --background:#211d19; --surface:#302923; --text:#f5ebe0; --secondary:#c6b8aa;
  --accent:#f2aa83; --line:#50443a; --field:#3a322b;
  --bar:rgba(33,29,25,.9); --brief:#463328; --brief-text:#f1bd9e; --active:#40352c;
}
@media (prefers-color-scheme:dark) {
  :root[data-theme="system"] {
    color-scheme:dark; --background:#211d19; --surface:#302923; --text:#f5ebe0; --secondary:#c6b8aa;
    --accent:#f2aa83; --line:#50443a; --field:#3a322b;
    --bar:rgba(33,29,25,.9); --brief:#463328; --brief-text:#f1bd9e; --active:#40352c;
  }
}
.navigation { background:var(--bar,rgba(242,239,232,.91)); }
.tab-bar { background:var(--bar,rgba(255,252,246,.89)); }
.brief,.evidence { background:var(--brief,#f5e7d8); }
.search { background:var(--field,#eae5dc); }
.row:hover,.row:active { background:var(--active,#f8f2e8); }
.message-row { padding-block:.7rem; }
.message-row .message-excerpt { grid-column:1; color:var(--secondary); font-size:.875rem; line-height:1.45; }
.message-row::after { grid-row:1 / span 3; }
.schedule-example { margin:.5rem 0 0; padding:0 .75rem; font-size:.875rem; color:var(--accent); }

:root {
  --map-capital:#e6cdbb;
  --map-market:#e6d9be;
  --map-policy:#d9ded0;
  --map-hardware:#d7e0e3;
  --map-models:#e1dbe7;
  --map-stroke:rgba(54,40,32,.07);
}
:root[data-theme="dark"] {
  --map-capital:#5b3a2d;
  --map-market:#554833;
  --map-policy:#3a483b;
  --map-hardware:#354750;
  --map-models:#483a53;
  --map-stroke:rgba(255,255,255,.08);
}
@media (prefers-color-scheme:dark) {
  :root[data-theme="system"] {
    --map-capital:#5b3a2d;
    --map-market:#554833;
    --map-policy:#3a483b;
    --map-hardware:#354750;
    --map-models:#483a53;
    --map-stroke:rgba(255,255,255,.08);
  }
}
.editorial-lead { padding: .9rem 1rem 1rem; }
.editorial-lead h2 { margin-top:0; font-size:clamp(1.19rem, 5.7vw, 1.48rem); text-wrap:balance; }
.editorial-lead p { line-height:1.55; }
.map-section { margin-top:.85rem; }
.map-section .section-top .section-heading { margin-left:.25rem; font-size:1.05rem; color:var(--text); }
.map-section .section-top a { margin-right:0; }
.treemap { display:flex; height:clamp(15.5rem, 68vw, 18rem); margin:-2px; }
.topic-column { display:grid; flex:var(--weight) 1 0; min-width:0; }
.topic-tile { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; min-height:0; min-width:0; overflow:hidden; padding:.28rem clamp(.55rem, 2.75vw, 1.05rem); }
.topic-tile::before { content:""; position:absolute; inset:2px; border-radius:.8rem; background:var(--tile-bg); border:1px solid var(--map-stroke); z-index:0; }
.topic-tile > span { position:relative; }
.topic-tile:focus-visible { outline-offset:-4px; border-radius:.8rem; }
.topic-tile:hover::before { filter:brightness(.985); }
.topic-tile:active::before { filter:brightness(.94); }
.topic-tile[data-topic="capital"] { --tile-bg:var(--map-capital); }
.topic-tile[data-topic="market"] { --tile-bg:var(--map-market); }
.topic-tile[data-topic="policy"] { --tile-bg:var(--map-policy); }
.topic-tile[data-topic="hardware"] { --tile-bg:var(--map-hardware); }
.topic-tile[data-topic="models"] { --tile-bg:var(--map-models); }
.tile-name { font-weight:690; font-size:clamp(.93rem, 4vw, 1.12rem); line-height:1.26; }
.tile-number { font-size:1.04rem; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.25; margin-top:.14rem; }
.topic-column:first-child .tile-number { font-size:clamp(1.3rem, 6vw, 1.8rem); letter-spacing:-.05em; }
.tile-clue { margin-top:.2rem; font-size:.8125rem; line-height:1.3; color:var(--secondary); }
.map-note { color:var(--secondary); font-size:.8125rem; margin:.45rem .25rem 0; }
.highlights-section { margin-top:1rem; }
.highlights-section > .section-heading { margin-left:.25rem; font-size:1.05rem; color:var(--text); }
@media (max-width:22rem) {
  .editorial-lead { padding:.8rem; }
  .editorial-lead p { font-size:.95rem; }
}

.evidence { color:var(--brief-text,#754025); }
