html[data-theme="light"] { color-scheme: light; }
:root {
  --bg: #d5dbe0;
  --panel: #ffffff;
  --ink: #0e1114;
  --soft: #4b5560;
  --line: #c3cbd2;
  --band: #0e1114;
  --red: #e8251a;
  --org: #ff7a1a;
  --grey: #8592a0;
  --chip: #eef1f4;
  --cH: #fbd9d6;
  --cM: #ffe6d1;
  --cL: #eef1f4;
}
* { box-sizing: border-box; min-width: 0; }
body.report {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, sans-serif;
  overflow-x: clip;
}
h1, h2, h3 { font-family: "Inter Tight", Inter, system-ui, sans-serif; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 6px; }
h3 { font-size: 18px; font-weight: 700; }
.band { padding: clamp(28px, 4vw, 56px) max(5vw, 16px); }
.wrap { max-width: 1240px; margin: 0 auto; }
.lede { color: var(--soft); max-width: 70ch; margin: 0 0 18px; }
.top { background: var(--band); color: #fff; }
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font: 600 13px Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover, .share-btn:focus-visible { background: #fff; color: #0e1114; outline: none; }
.share-btn[data-copied="true"] { background: #fff; color: #0e1114; }
.flag {
  display: inline-block;
  margin: 0 0 12px;
  font: 700 12px Inter, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 4px 10px;
}
.top p { color: #b8c2cc; max-width: 72ch; margin: 14px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 26px; }
.stat { border-left: 3px solid #39424b; padding-left: 12px; }
.stat b { display: block; font: 800 clamp(26px, 3vw, 36px)/1.05 "Inter Tight", sans-serif; }
.stat.hot { border-color: var(--red); }
.stat.hot b { color: #ff5a4f; }
.stat span { font-size: 14px; color: #b8c2cc; }
nav.scroll {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 8px max(5vw, 16px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex: none;
}
nav a:hover, nav a:focus-visible { background: var(--bg); outline: none; }
@media (min-width: 900px) {
  nav.scroll { position: sticky; top: 0; z-index: 5; }
  section.band { scroll-margin-top: 72px; }
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--soft); margin: 0 0 12px; }
.legend i, .sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ctl { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ctl button, .seg button, .tchips button {
  font: 600 14px Inter, sans-serif;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.seg button[aria-pressed="true"], .ctl button[aria-pressed="true"] { background: var(--band); color: #fff; border-color: var(--band); }
.tchips button[aria-pressed="false"] { opacity: 0.4; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tchips button { display: flex; align-items: center; gap: 6px; font-size: 13px; min-height: 36px; }
.tchips i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lanes {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr)) 190px;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.lh { font: 600 13px Inter, sans-serif; color: var(--soft); padding: 6px 4px; border-bottom: 2px solid var(--line); }
.lh small { display: block; font-weight: 400; font-size: 12px; }
.ln {
  font: 700 15px/1.2 "Inter Tight", sans-serif;
  padding: 10px 8px;
  border-left: 5px solid var(--grey);
  background: var(--chip);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ln.H { border-color: var(--red); }
.ln.M { border-color: var(--org); }
.ln em { font: 500 12px Inter, sans-serif; font-style: normal; color: var(--soft); }
.lc { display: flex; flex-direction: column; gap: 5px; padding: 4px; position: relative; }
.lc:not(.c1)::before { content: ""; position: absolute; left: -7px; top: 50%; width: 6px; height: 2px; background: var(--line); }
.ch { font-size: 13px; line-height: 1.3; padding: 6px 8px; border-radius: 7px; background: var(--chip); border: 1.5px solid var(--chip); }
.ch i { display: block; font-style: normal; color: var(--soft); font-size: 12px; }
.ch.k { border-left: 4px solid var(--ink); }
.ch.g { background: transparent; border: 1.5px dashed var(--grey); }
.ops {
  grid-column: 6;
  background: var(--band);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops h3 { color: #fff; }
.ops .ch { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.ops .ch.g { border: 1.5px dashed rgba(255, 255, 255, 0.45); background: transparent; }
.ops .ch i { color: #b8c2cc; }
.hide-k .ch.k, .hide-g .ch.g { opacity: 0.15; }
table.lane-table { display: none !important; }
.print-only { display: none !important; }
body.for-print .screen-lanes,
body.for-print #lanegrid { display: none !important; }
body.for-print table.lane-table { display: table !important; }
.geo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.mapbox { position: relative; height: 540px; background: #cfe3f3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.land { fill: #f4f1ea; }
.bord { fill: none; stroke: #c9c2b6; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.flow { fill: none; stroke-width: 1.3; opacity: 0.35; vector-effect: non-scaling-stroke; }
.flow.hi { opacity: 0.95; stroke-width: 2.4; }
.pin { cursor: pointer; }
.pin.dim { opacity: 0.2; }
.mctl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.mctl button { width: 44px; height: 40px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 16px Inter, sans-serif; cursor: pointer; }
.mctl button.wide { font-size: 12px; width: 62px; }
.mcard .tag, .detail .tag { display: inline-block; font: 700 12px Inter, sans-serif; color: #fff; border-radius: 999px; padding: 3px 10px; margin: 0 6px 8px 0; }
.tH { background: var(--red); }
.tM { background: var(--org); }
.tL { background: var(--grey); }
.mcard h3 { margin: 4px 0; }
.mcard p, .detail dd { font-size: 15px; margin: 8px 0; }
.mcard .pl { color: var(--soft); font-size: 14px; }
.mcard a { color: inherit; cursor: pointer; text-decoration: underline; font-size: 14px; display: block; margin: 3px 0; }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ph h3 { margin: 8px 0 6px; }
.ph p { font-size: 15px; margin: 6px 0; }
.ph .who { color: var(--soft); font-size: 14px; }
.ph .tag { display: inline-block; font: 700 12px Inter, sans-serif; background: var(--org); color: #fff; border-radius: 999px; padding: 3px 10px; margin: 0 6px 8px 0; }
.tag.fS { background: #4b5560; } .tag.fT { background: #2563eb; } .tag.fEc { background: #0e1114; }
.tag.fEn { background: #15803d; } .tag.fP { background: #e8251a; } .tag.fL { background: #6d28d9; }
.tag.fEt { background: #c2410c; } .tag.fD { background: #0369a1; }
.tag.rateH { background: #e8251a; } .tag.rateM { background: #ff7a1a; } .tag.rateL { background: #8592a0; }
.tag.fS { background: #4b5560; } .tag.fT { background: #2563eb; } .tag.fEc { background: #0e1114; }
.tag.fEn { background: #15803d; } .tag.fP { background: #e8251a; } .tag.fL { background: #6d28d9; }
.tag.fEt { background: #c2410c; } .tag.fD { background: #0369a1; }
.tag.rateH { background: #e8251a; } .tag.rateM { background: #ff7a1a; } .tag.rateL { background: #8592a0; }
.board { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.mxp { display: flex; flex-direction: column; }
.fig { position: relative; min-height: 420px; }
.fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dot { cursor: pointer; }
.dot text { font: 700 10.5px Inter, sans-serif; fill: #fff; pointer-events: none; }
.dot.dim { opacity: 0.15; }
.dot.sel circle { stroke: var(--ink); stroke-width: 3; }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--soft); margin-top: 8px; }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.detail dl { margin: 10px 0 0; display: grid; gap: 8px; }
.detail dt, .mcard dt { font: 600 12px Inter, sans-serif; color: var(--soft); }
.detail dd { margin: 0; }
.toplist { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.toplist li { border-bottom: 1px solid var(--line); }
.toplist button {
  all: unset;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 2px;
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  box-sizing: border-box;
}
.sc { font: 700 13px Inter, sans-serif; padding: 2px 8px; border-radius: 6px; color: #fff; }
.prods, .scen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.prod .ex { font: 700 12px Inter, sans-serif; color: #fff; background: var(--red); border-radius: 999px; padding: 3px 10px; display: inline-block; margin: 8px 0; }
.prod .ex.h { background: var(--org); }
.route { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 8px 0 10px; font-size: 13px; }
.route span { background: var(--bg); border-radius: 6px; padding: 3px 7px; }
.route em { font-style: normal; color: var(--soft); }
.prod ul, .scen ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.prod .st, .scen p { font-size: 14px; color: var(--soft); margin: 4px 0; }
.prod h4 { font: 600 12px Inter, sans-serif; color: var(--soft); margin: 12px 0 2px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; overflow-wrap: normal; word-break: normal; hyphens: none; }
thead th { font: 600 13px Inter, sans-serif; color: var(--soft); background: #f7f9fb; white-space: nowrap; }
td.c, th.c { text-align: center; font-weight: 700; white-space: nowrap; width: 1%; }
tbody tr.reg { cursor: pointer; }
tbody tr.reg:hover, tbody tr.reg.on { background: var(--bg); }
.tl { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.tl li { position: relative; padding: 0 0 14px 18px; }
.tl li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--grey); border: 2px solid var(--bg); }
.tl li.r::before { background: var(--red); }
.tl b { font: 700 14px "Inter Tight", sans-serif; display: block; }
.src li { font-size: 14px; margin: 4px 0; overflow-wrap: anywhere; }
.src a { color: inherit; }
.note { font-size: 13px; color: var(--soft); margin-top: 10px; }
@media (max-width: 980px) {
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lh { display: none; }
  .ops { grid-column: auto; grid-row: auto !important; }
  .ln, .lc { grid-row: auto !important; }
  .ln { margin-top: 12px; flex-direction: row; justify-content: space-between; align-items: center; }
  .lc { padding-left: 14px; border-left: 2px solid var(--line); }
  .lc::before { display: none; }
  .lc::after { content: attr(data-t); font: 600 12px Inter, sans-serif; color: var(--soft); }
  .geo { grid-template-columns: minmax(0, 1fr); }
  .mapbox { height: 420px; }
}
@media (max-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .fig { min-height: 340px; }
}
@media (max-width: 600px) {
  .stack thead { display: none; }
  .stack tr { display: grid; padding-block: 10px; }
  .stack td { display: flow-root; border: 0; padding: 3px 0 3px 8em; }
  .stack td::before { content: attr(data-l); float: inline-start; width: 7.5em; margin-inline-start: -8em; color: var(--soft); font-size: 12px; font-weight: 600; white-space: normal; }
  .stack td.c { text-align: left; width: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot, .chip { transition: opacity 0.25s; }
}
