:root {
  --ink: #141210;
  --muted: #5C574E;
  --faint: #8A8478;
  --paper: #EAE2D4;
  --surface: #FFFBF5;
  --sunken: #E3DACB;
  --line: rgba(20, 18, 16, 0.11);
  --navy: #0A2C3E;
  --navy-2: #16384C;
  --orange: #D4550A;
  --orange-soft: #FFF0E3;
  --red: #B83628;
  --red-soft: #FBECEA;
  --green: #1F7A4D;
  --green-soft: #E7F4EC;
  --amber: #A64408;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --shadow-soft: 0 1px 0 rgba(255,255,255,0.75), 0 12px 32px rgba(20,18,16,0.05);
}

* { box-sizing: border-box; }

button {
  -webkit-appearance: none;
  appearance: none;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 400px at 6% -12%, rgba(212, 85, 10, 0.07), transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(10, 44, 62, 0.07), transparent 52%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.drawer-open { overflow: hidden; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  border-radius: 9px;
  flex: 0 0 36px;
  background: transparent;
}
.brand-name { font-size: 15px; font-weight: 750; letter-spacing: -0.04em; }
.subtitle { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-weight: 550; }

.tocnav { display: flex; gap: 3px; padding: 3px; background: rgba(20,18,16,0.06); border-radius: 999px; }
.tocnav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 650 13px/1 var(--sans);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 140ms var(--ease);
}
.tocnav button:hover { color: var(--ink); }
.tocnav button:active { transform: scale(0.98); }
.tocnav button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.tocnav button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.mast-meta { text-align: right; }
.mast-meta strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: -0.01em; }
.mast-meta span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-family: var(--mono); }

.kpi-band {
  border-bottom: 1px solid var(--line);
  padding: 14px 28px 16px;
}
.kpi-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.kpi {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px 15px;
  cursor: pointer;
  box-shadow: none;
  transition: background 160ms var(--ease);
}
.kpi:last-child { border-right: 0; }
.kpi:hover { background: rgba(10, 44, 62, 0.03); }
.kpi:active { background: rgba(10, 44, 62, 0.05); }
.kpi.warn {
  background: linear-gradient(90deg, rgba(212, 85, 10, 0.08), transparent 55%);
  box-shadow: inset 3px 0 0 var(--orange);
}
.kpi.miss {
  background: linear-gradient(90deg, rgba(184, 54, 40, 0.08), transparent 55%);
  box-shadow: inset 3px 0 0 var(--red);
}
.kpi.miss .v { color: var(--red); }
.kpi.warn .v { color: var(--orange); }
.kpi .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.kpi .v {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 5px; }
.kpi .hint {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--navy);
}

code { font-family: var(--mono); font-size: 12px; }

.page { max-width: 1280px; margin: 0 auto; padding: 20px 28px 72px; }
.panel { display: none; }
.panel.active { display: block; animation: rise 360ms var(--ease); }
.panel[hidden] { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.grain {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.grain-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: rgba(20,18,16,0.06);
  border-radius: 12px;
  align-self: center;
}
.grain-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 650 12px/1 var(--sans);
  padding: 8px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.grain-switch button:hover { color: var(--ink); }
.grain-switch button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
}
.offer-chip {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #8A3B08;
  max-width: 56ch;
  line-height: 1.35;
  background: var(--orange-soft);
  border: 1px solid rgba(212, 85, 10, 0.18);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.brief {
  background: linear-gradient(145deg, var(--navy) 0%, #0F3548 55%, var(--navy-2) 100%);
  color: #F6F1E8;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 40px rgba(10, 44, 62, 0.18);
}
.brief p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  max-width: 64ch;
  text-wrap: pretty;
}
.brief .now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font: 700 13px/1.2 var(--sans);
  padding: 11px 12px 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 220px;
  white-space: nowrap;
  transition: transform 140ms var(--ease), filter 140ms var(--ease);
}
.brief .now-btn:hover { filter: brightness(1.05); }
.brief .now-btn:active { transform: scale(0.98); }
.brief .now-btn i {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 14px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tile > .stack { flex: 1; }
.tile.accent-conv {
  border-color: rgba(184, 54, 40, 0.22);
  box-shadow: inset 0 2px 0 var(--red), var(--shadow-soft);
}
.tile.accent-ops {
  border-color: rgba(212, 85, 10, 0.22);
  box-shadow: inset 0 2px 0 var(--orange), var(--shadow-soft);
}
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }

.tile-kicker, .drawer-kicker, .sec-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.tile h2, .sec h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: balance;
}
.tile .lede, .sec p {
  margin: 5px 0 12px;
  font-size: 13px;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  padding: 8px 0 0;
  border-bottom: 2px solid rgba(10, 44, 62, 0.14);
  margin: 0 0 2px;
}
.j-step {
  margin: 0;
  padding: 0 2px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  display: block;
  border-radius: 8px;
  transition: background 140ms var(--ease);
}
.j-step:hover { background: rgba(10, 44, 62, 0.03); }
.j-step:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.j-track {
  height: 120px;
  width: 32px;
  margin: 0 auto 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}
.j-bar {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: var(--navy);
  box-sizing: border-box;
}
.j-bar.is-unknown {
  background: repeating-linear-gradient(
    -45deg,
    #8F8676 0 2px,
    #E2D9C9 2px 6px
  );
  min-height: 56px;
}
.j-bar.is-zero {
  background: var(--red);
  min-height: 20px;
}
.j-step.is-stuck .j-bar.is-unknown {
  box-shadow: inset 0 0 0 2px var(--orange);
}
.j-val {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.j-lab {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.j-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
  font-family: var(--mono);
  line-height: 1.2;
}
.j-step.is-zero .j-val { color: var(--red); }
.j-step.is-unknown .j-val {
  color: var(--muted);
  font-style: normal;
  font-weight: 550;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.callout {
  margin: 10px 0 0;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: #8A3B08;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.stack { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.rank-btn, .action-btn, .bot, .radar-card, .focus-card, .camp-hit {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  transition: transform 140ms var(--ease), border-color 140ms var(--ease), background 140ms var(--ease);
}
.rank-btn:hover, .action-btn:hover, .bot:hover, .radar-card:hover, .focus-card:hover, .camp-hit:hover {
  transform: translateY(-1px);
  border-color: rgba(10,44,62,0.2);
  background: #FFFCFA;
}
.rank-btn:active, .action-btn:active, .bot:active, .radar-card:active, .focus-card:active, .camp-hit:active {
  transform: scale(0.995);
}
.rank-btn .row { display: flex; gap: 10px; align-items: flex-start; }
.rank {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  display: grid;
  place-items: center;
}
.rank-btn strong, .action-btn strong, .bot h3, .radar-card h3, .focus-card h3, .camp-hit h3 {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
  margin: 0;
}
.rank-btn p, .action-btn p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--sunken);
  color: var(--muted);
}
.pill.live, .pill.try { background: var(--green-soft); color: var(--green); }
.pill.paused, .pill.watch { background: #FFF6E8; color: var(--amber); }
.pill.draft, .pill.skip, .pill.not_started { background: var(--sunken); color: var(--muted); }
.pill.miss, .pill.conversion, .pill.structural { background: var(--red-soft); color: var(--red); }
.pill.proposed, .pill.channel { background: var(--orange-soft); color: #9A3412; }
.pill.ops { background: #EEF3F7; color: var(--navy); }
.pill.supply { background: #FFF6E8; color: var(--amber); }
.pill.benchmark { background: #EEF3F7; color: var(--navy); }
.pill.vendor { background: var(--sunken); color: var(--muted); }
.pill.operator_test { background: var(--orange-soft); color: #9A3412; }

.battery {
  height: 18px;
  border-radius: 99px;
  background: var(--sunken);
  overflow: hidden;
  display: flex;
  border: 1px solid var(--line);
}
.battery > i {
  display: block;
  height: 100%;
}
.battery .used { background: var(--navy); }
.battery .left { background: var(--orange); }
.battery.is-unknown {
  background: repeating-linear-gradient(90deg, var(--sunken), var(--sunken) 8px, #ddd4c6 8px, #ddd4c6 16px);
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.metric-row:first-of-type { border-top: 0; }
.metric-row b { font-family: var(--mono); font-weight: 550; }

.src-dock, .fleet-legend, .radar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ext, .src-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 680;
}
.ext:hover, .src-chip:hover { border-color: var(--navy); }
.ext svg { width: 12px; height: 12px; }

.camp-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}
.camp-metrics span { display: block; font-size: 10px; font-weight: 720; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.camp-metrics b { display: block; margin-top: 3px; font-family: var(--mono); font-size: 16px; font-weight: 550; }

.test-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.test-chip {
  appearance: none;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.test-chip.not_started { border-style: dashed; }
.test-chip.live { box-shadow: inset 3px 0 0 var(--green); }
.test-chip.proposed { box-shadow: inset 3px 0 0 var(--orange); }
.test-chip h3 { margin: 8px 0 6px; font-size: 14px; }
.test-chip p { margin: 0; font-size: 12px; color: var(--muted); }
.test-chip .kind { font-size: 10px; font-weight: 760; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bot { min-height: 100%; }
.bot.live { box-shadow: inset 3px 0 0 var(--green); }
.bot.paused { box-shadow: inset 3px 0 0 var(--amber); }
.bot.draft { box-shadow: inset 3px 0 0 var(--faint); }
.bot-top { display: flex; justify-content: space-between; gap: 8px; }
.bot-job { margin: 6px 0 10px; font-size: 12.5px; color: var(--muted); }
.bot-kpi {
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 10px;
}
.bot-kpi span, .bot-out span {
  display: block;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.bot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bot-stats span { display: block; font-size: 11px; color: var(--faint); font-weight: 680; }
.bot-stats b { display: block; margin-top: 2px; font-size: 13px; }
.bot-out { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.bot-id { margin: 8px 0 0; font-size: 11px; color: var(--faint); font-family: var(--mono); }

.focus-stack { display: flex; flex-direction: column; gap: 10px; }
.focus-card { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.focus-gap { grid-column: 1 / -1; }
.focus-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.focus-card h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.focus-card p { margin: 0; font-size: 13px; color: var(--muted); }
.focus-test {
  grid-column: 1 / -1;
  background: var(--orange-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.radar-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}
.radar-filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: 680 12px/1 var(--sans);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.radar-filters button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radar-card { padding: 16px; }
.radar-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.radar-card .metric {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--navy);
  margin: 8px 0 0;
}
.radar-card .why {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 10px;
  font-size: 13px;
}

.proof { margin-top: 12px; }
.proof figcaption, .proof-cap {
  margin-top: 8px;
  font-size: 11px;
  color: var(--faint);
}
.pbar { display: grid; grid-template-columns: 132px 1fr 92px; gap: 8px; align-items: center; margin: 8px 0; }
.pbar-l { font-size: 12px; font-weight: 650; }
.pbar-t { height: 12px; background: rgba(10,44,62,0.08); border-radius: 4px; overflow: hidden; }
.pbar-t > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #1a5a78); border-radius: 4px; }
.pbar-v { font-family: var(--mono); font-size: 11px; text-align: right; color: var(--muted); }
.psplit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.psplit div {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
}
.psplit div:last-child { background: var(--orange); }
.psplit b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 500; }
.psplit span { display: block; margin-top: 4px; font-size: 12px; opacity: 0.85; }

.unknown {
  color: var(--faint);
  font-style: normal;
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: -0.02em;
}
button.unknown, .unknown-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: 600 13px var(--mono);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  padding: 0;
}

.src { font-size: 11px; color: var(--faint); margin-top: 10px; }
.empty {
  border: 1px dashed rgba(20,18,16,0.2);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.takeaways, .next-list { margin: 0; padding-left: 18px; }
.takeaways li, .next-list li { margin: 8px 0; }
.goal-track { height: 10px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.goal-track.unknown-track {
  background: repeating-linear-gradient(90deg, var(--sunken), var(--sunken) 6px, #ddd4c6 6px, #ddd4c6 12px);
}
.goal-fill { height: 10px; background: var(--orange); }

.icon-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

#drawer[hidden] { display: none; }
#drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.38);
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(20,18,16,0.12);
  display: flex;
  flex-direction: column;
  animation: slide 280ms var(--ease);
}
@keyframes slide {
  from { transform: translateX(16px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.drawer-body { padding: 16px 18px 28px; overflow: auto; }
.drawer-body p { margin: 0 0 10px; color: var(--muted); }
.drawer-body .ext { margin-top: 8px; }

footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
footer p { margin: 0 0 6px; }
.load-error { padding: 24px 28px; color: var(--red); font-weight: 700; }

.note-bar {
  margin-top: 12px;
  background: var(--orange-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #9A3412;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  .span-8, .span-7, .span-5, .span-4 { grid-column: span 12; }
  .bot-grid, .radar-grid, .test-board { grid-template-columns: 1fr 1fr; }
  .focus-card { grid-template-columns: 1fr; }
  .brief { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .top { position: static; }
  .tocnav { position: sticky; top: 0; z-index: 40; overflow-x: auto; }
  .top-inner { grid-template-columns: 1fr; padding: 10px 16px; }
  .mast-meta { text-align: left; }
  .page { padding-left: 16px; padding-right: 16px; }
  .kpi-band { padding-left: 16px; padding-right: 16px; }
  .kpi-band-inner, .bot-grid, .radar-grid, .test-board, .camp-metrics, .journey, .psplit { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: 0; }
  .journey { border-bottom: 0; gap: 14px; }
  .j-track { height: 88px; }
  .kpi .v { font-size: 24px; }
  .pbar { grid-template-columns: 1fr; }
}
