[hidden] { display: none !important; }
:root {
  /* Golden-ratio type scale: base 16px, steps of phi (1.618) with sqrt(phi) (1.272) half-steps. */
  --phi: 1.618;
  --fs-sm: 12.58px;   /* 16 / 1.272 */
  --fs-base: 16px;
  --fs-md: 20.35px;   /* 16 x 1.272 */
  --fs-lg: 25.89px;   /* 16 x 1.618 */
  --fs-xl: 41.89px;   /* 16 x 1.618^2 */
  --lh: 1.618;        /* body line height */
  --lh-ui: 1.5;       /* compact rows, pills and labels */
  --lh-head: 1.236;   /* headings: 2 / 1.618 */
  --measure: 65ch;    /* 50-75 characters per line */
  --navy: #24224a;
  --navy-2: #312f5c;
  --orange: #ea941f;
  --orange-soft: #fdf3e4;
  --lime: #95c11f;
  --tarmac: #34374a;
  --paper: #f5f6f8;
  --card: #ffffff;
  --ink: #1d1e2c;
  --muted: #5f6475;
  --faint: #9a9fac;
  --line: #e4e6eb;
  --hover: #f7f8fa;

  --green: #3d7a12; --green-bg: #eef6e3;
  --blue: #23589c; --blue-bg: #e8f0fa;
  --amber: #8f5d00; --amber-bg: #fcf1dc;
  --orange-t: #b35a0b; --orange-bg: #fdecdc;
  --grey: #5f6475; --grey-bg: #eef0f3;
  --red: #b42318; --red-bg: #fdecea;

  --shadow: 0 1px 2px rgba(29, 30, 44, .05), 0 4px 16px rgba(29, 30, 44, .06);
  --road-w: 64px;
  --gap: 40px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-base)/var(--lh) var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--navy); padding: 8px 12px; z-index: 50; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; border-bottom: 3px solid var(--orange); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 36px; width: auto; }
.brand-sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .25); }
.brand-name { font: 600 var(--fs-base)/1 var(--head); color: #fff; letter-spacing: .01em; }
.spacer { flex: 1; }
.draft-tag { font-size: var(--fs-sm); color: #d7d5ea; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; padding: 4px 10px; }
.header-btn { background: var(--orange); color: var(--navy); border: 0; border-radius: 6px; padding: 8px 16px; font-weight: 600; font-size: var(--fs-base); cursor: pointer; }
.header-btn:hover { background: #f2a43c; }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 48px; align-items: end; padding-top: 48px; padding-bottom: 32px; }
.intro h1 { font: 700 clamp(30px, 4vw, 42px)/1.15 var(--head); color: var(--navy); margin: 0 0 12px; letter-spacing: -.01em; }
.intro-sub { margin: 0 0 6px; font-size: var(--fs-base); color: var(--muted); max-width: 56ch; }
.intro-date { margin: 0; font-size: var(--fs-base); color: var(--faint); }
.intro-progress { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.gauge { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.gauge strong { font: 700 var(--fs-lg)/1 var(--head); color: var(--navy); }
.gauge span { color: var(--muted); font-size: var(--fs-base); }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.bar i { display: block; height: 100%; }
.bar-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.bar-key b { color: var(--ink); font-weight: 600; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 0 12px; font-size: var(--fs-base); font-weight: 500; cursor: pointer; color: var(--ink); }
.chip .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: #cdd0d8; }
.chip[aria-pressed="false"] { color: var(--faint); background: transparent; }
.chip[aria-pressed="false"] .sw { opacity: .35; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.search { position: relative; display: flex; align-items: center; color: var(--faint); }
.search svg { position: absolute; left: 12px; }
.search input { width: 260px; max-width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 36px; font: inherit; font-size: var(--fs-base); background: var(--card); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--orange); }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 48px; }
.note { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: var(--fs-base); color: var(--muted); }
.note b { display: block; color: var(--navy); font: 600 var(--fs-base)/1.4 var(--head); margin-bottom: 4px; }

/* ---------- status pills: one size, one shape ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 500; border-radius: 6px; padding: 3px 10px; white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.t-green { color: var(--green); background: var(--green-bg); }
.t-blue { color: var(--blue); background: var(--blue-bg); }
.t-amber { color: var(--amber); background: var(--amber-bg); }
.t-orange { color: var(--orange-t); background: var(--orange-bg); }
.t-grey, .t-slate { color: var(--grey); background: var(--grey-bg); }
.t-red { color: var(--red); background: var(--red-bg); }
.sw.t-green { background: var(--green); } .sw.t-blue { background: var(--blue); } .sw.t-amber { background: #c98a12; }
.sw.t-orange { background: var(--orange-t); } .sw.t-grey, .sw.t-slate { background: var(--faint); } .sw.t-red { background: var(--red); }
.confirm { display: block; font-size: var(--fs-sm); color: var(--orange-t); margin-top: 3px; padding-left: 2px; }

/* ---------- the map ---------- */
.map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--road-w) minmax(0, 1fr); column-gap: var(--gap); }
.road { grid-column: 2; grid-row: 1 / span 999; position: relative; background: var(--tarmac); border-radius: 0 0 10px 10px; margin-top: 40px; }
.road::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .55) 0 22px, transparent 22px 44px); }
.truck { position: absolute; left: 50%; top: 0; width: 30px; margin-left: -15px; z-index: 3; will-change: transform; pointer-events: none; }
.truck svg { display: block; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }

.junction { position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 var(--fs-sm)/1 var(--head); border: 2px solid var(--orange); cursor: pointer; display: grid; place-items: center; padding: 0; }
.junction:hover { background: var(--orange); color: var(--navy); }

.slot { position: relative; padding: 0 0 64px; }
.slot.left { grid-column: 1; }
.slot.right { grid-column: 3; --stagger: 180px; padding-top: var(--stagger); }
.slot.full { grid-column: 1 / span 3; padding-bottom: 56px; z-index: 4; }
.slip { position: absolute; top: calc(var(--stagger, 0px) + 39px); height: 3px; width: var(--gap); background: var(--orange); }
.slot.left .slip { right: calc(-1 * var(--gap)); }
.slot.right .slip { left: calc(-1 * var(--gap)); }

/* ---------- road cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.card-head { background: var(--navy); color: #fff; padding: 18px 24px 20px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.road-no { font: 600 var(--fs-sm)/1 var(--head); letter-spacing: .06em; color: var(--orange); margin: 0 0 6px; }
.card h2 { margin: 0; font: 700 var(--fs-md)/1.25 var(--head); }
.card h2 button { all: unset; cursor: pointer; }
.card h2 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card h2 button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.view-road { flex: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
.view-road:hover { background: rgba(255, 255, 255, .1); }

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.step { position: relative; font-size: var(--fs-sm); color: #9f9dbf; padding-top: 16px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); border: 2px solid #5a5888; box-sizing: border-box; z-index: 1; }
.step::after { content: ""; position: absolute; top: 4px; left: 10px; right: 0; height: 2px; background: #4a4878; }
.step:last-child::after { display: none; }
.step.on { color: #fff; }
.step.on::before { background: var(--orange); border-color: var(--orange); }
.step.on:not(.now)::after { background: var(--orange); }
.step.now { font-weight: 600; }

.intro-card { padding: 16px 24px 0; margin: 0; font-size: var(--fs-base); color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 4px 0; }
.row { border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-btn, .lane-btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 156px 14px; gap: 16px; align-items: start; text-align: left; background: none; border: 0; cursor: pointer; }
.row-btn { padding: 16px 20px 16px 24px; }
.row-btn:hover, .lane-btn:hover { background: var(--hover); }
.row-btn:hover .chev, .lane-btn:hover .chev { color: var(--orange); transform: translateX(2px); }
.row-title { display: block; font-weight: 600; font-size: var(--fs-base); line-height: 1.35; color: var(--ink); }
.row-sub { display: block; font-size: var(--fs-base); color: var(--muted); margin-top: 2px; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.row-status { padding-top: 1px; }
.chev { color: #c4c7cf; margin-top: 4px; transition: transform .15s, color .15s; }
.mini { display: inline-flex; align-items: center; gap: 8px; }
.mini-bar { width: 56px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--green); }
.waiting { color: var(--orange-t); }
.updated { color: var(--blue); font-weight: 500; }

.lanes { list-style: none; margin: -6px 0 12px 24px; padding: 0; border-left: 2px solid var(--line); }
.lane-btn { padding: 8px 20px 8px 16px; font-size: var(--fs-base); }
.lane-btn .row-title { font-weight: 500; font-size: var(--fs-base); }
.lane-btn .lane-of { display: block; font-size: var(--fs-sm); color: var(--faint); }
.dim { opacity: .3; }
.hit > .row-btn { box-shadow: inset 3px 0 0 var(--orange); }

.road-needs { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; background: var(--orange-soft); border: 0; border-top: 1px solid #f5ddb8; padding: 12px 24px; font-size: var(--fs-base); color: #87470a; cursor: pointer; font-weight: 500; }
.road-needs:hover { background: #fbe8c9; }
.card-foot { background: var(--paper); border-top: 1px solid var(--line); padding: 14px 24px 16px; font-size: var(--fs-base); color: var(--muted); }
.card-foot h3 { margin: 0 0 2px; font: 600 var(--fs-sm)/1.4 var(--head); color: var(--navy); }

.card.k-trunk .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.k-trunk .row { border-top: 1px solid var(--line); }
.card.k-trunk .row:nth-child(-n+2) { border-top: 0; }
.card.k-trunk .row:nth-child(odd) { border-right: 1px solid var(--line); }
.card.k-trunk .intro-card { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card.k-next { box-shadow: none; }
.card.k-next .card-head { background: var(--card); color: var(--navy); border-bottom: 1px solid var(--line); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.foot { color: var(--faint); font-size: var(--fs-sm); padding: 24px 0 40px; border-top: 1px solid var(--line); margin-top: 24px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(29, 30, 44, .4); z-index: 20; animation: fade .2s ease-out; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--card); z-index: 21; overflow-y: auto; box-shadow: -12px 0 40px rgba(0, 0, 0, .18); animation: slide .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.drawer-close:hover { background: rgba(255, 255, 255, .2); }
.d-head { background: var(--navy); color: #fff; padding: 28px 68px 24px 32px; border-bottom: 3px solid var(--orange); }
.d-crumb { background: none; border: 0; padding: 0; color: #b9b7d6; font-size: var(--fs-sm); cursor: pointer; text-align: left; }
button.d-crumb:hover { color: #fff; text-decoration: underline; }
.d-head h2 { font: 700 var(--fs-lg)/1.2 var(--head); margin: 8px 0 8px; }
.d-head p { margin: 0 0 14px; color: #d0cee6; }
.d-marks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.d-head .confirm { display: inline; color: #f5c27a; margin: 0; }
.d-body { padding: 28px 32px 48px; }
.d-body h3 { font: 600 var(--fs-base)/1.4 var(--head); color: var(--navy); margin: 28px 0 10px; }
.d-body h3:first-child { margin-top: 0; }
.d-body p { margin: 0 0 10px; max-width: 64ch; }
.dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.dates div { background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.dates dt { font-size: var(--fs-sm); color: var(--muted); }
.dates dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.checks li:first-child { border-top: 0; }
.box { flex: none; width: 18px; height: 18px; border: 1.5px solid #c4c7cf; border-radius: 4px; margin-top: 2px; display: grid; place-items: center; }
.checks .done .box { background: var(--green); border-color: var(--green); }
.checks .done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.checks small { color: var(--faint); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-line { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 4px; }
.progress-line .mini-bar { width: 120px; height: 6px; }
.needs-box { background: var(--orange-soft); border-radius: 10px; padding: 2px 16px; }
.needs-box .checks li { border-color: #f5ddb8; }
.d-lanes { display: grid; gap: 6px; }
.d-lane { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 12px; align-items: center; background: var(--paper); border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; text-align: left; cursor: pointer; }
.d-lane:hover { border-color: var(--line); background: #eef0f3; }
.d-lane:hover .chev { color: var(--orange); }
.ext { color: var(--blue); font-weight: 600; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.history li:first-child { border-top: 0; }
.history time { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: 1px; }
.history .road-of { display: block; font-size: var(--fs-sm); color: var(--muted); }
.history button { background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; text-align: left; display: block; }
.history button:hover { text-decoration: underline; }
.quiet { color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .notes { grid-template-columns: 1fr; }
  .card.k-trunk .rows { grid-template-columns: 1fr; }
  .card.k-trunk .row:nth-child(2) { border-top: 1px solid var(--line); }
  .card.k-trunk .row:nth-child(odd) { border-right: 0; }
}
@media (max-width: 900px) {
  :root { --road-w: 40px; --gap: 20px; }
  .wrap { padding: 0 16px; }
  .map { grid-template-columns: var(--road-w) minmax(0, 1fr); }
  .road { grid-column: 1; }
  .slot { grid-row: auto !important; --stagger: 0px !important; }
  .slot.left, .slot.right { grid-column: 2; padding-top: 0; }
  .slot.full { grid-column: 1 / span 2; grid-row: 1 !important; }
  .slot.left .slip { right: auto; left: calc(-1 * var(--gap)); }
  .truck { width: 24px; margin-left: -12px; }
  .brand-name, .brand-sep, .draft-tag { display: none; }
  .row-btn, .lane-btn { grid-template-columns: minmax(0, 1fr) auto 14px; }
  .dates { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .scrim { animation: none; }
}

/* ---------- v3 refinements ---------- */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; counter-reset: step; overflow: hidden; }
.how { position: relative; padding: 18px 22px 18px 64px; counter-increment: step; font-size: var(--fs-base); color: var(--muted); }
.how + .how { border-left: 1px solid var(--line); }
.how::before { content: counter(step); position: absolute; left: 22px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 var(--fs-sm)/28px var(--head); text-align: center; }
.how:last-child::before { background: var(--orange); color: var(--navy); }
.how b { display: block; font: 600 var(--fs-base)/1.4 var(--head); color: var(--navy); margin-bottom: 2px; }
.intro { padding-bottom: 24px; }
.intro-sub { max-width: 62ch; color: var(--ink); }
.row-status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.row-status .confirm { margin-top: 0; }
.row-btn { align-items: center; padding-top: 14px; padding-bottom: 14px; }
.row-sub { font-size: var(--fs-sm); color: var(--faint); }
.road-needs { background: var(--card); color: var(--ink); border-top: 1px solid var(--line); padding: 14px 20px 14px 24px; }
.road-needs:hover { background: var(--hover); }
.road-needs:hover .chev { color: var(--orange); }
.needs-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.needs-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--orange); color: var(--navy); font: 700 var(--fs-sm)/1 var(--head); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .how + .how { border-left: 0; border-top: 1px solid var(--line); } }
.notes { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- compact top section ---------- */
.intro { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 28px; padding-bottom: 20px; }
.intro h1 { font-size: clamp(26px, 3vw, 32px); margin: 0 0 8px; }
.intro-sub { font-size: var(--fs-base); line-height: 1.55; margin: 0 0 14px; max-width: 78ch; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 0 0 10px; padding: 0; list-style: none; background: none; border: 0; border-radius: 0; overflow: visible; }
.how { display: inline-flex; align-items: center; gap: 8px; padding: 0; font: 600 var(--fs-base)/1.3 var(--head); color: var(--ink); border: 0 !important; cursor: help; }
.how::before { content: none; }
.how + .how::before { content: ""; display: inline-block; width: 22px; height: 1.5px; background: var(--faint); margin: 0 6px 0 2px; position: static; }
.how-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--ink); font: 700 var(--fs-sm)/1 var(--head); }
.how:last-child .how-n { background: var(--orange); color: #24224a; }
.note-line { margin: 0; font-size: var(--fs-sm); color: var(--muted); max-width: 78ch; }
.note-line b { color: var(--ink); font-weight: 600; }
.intro-progress { padding: 16px 18px; margin-top: 4px; }
.gauge { margin-bottom: 10px; gap: 10px; }
.gauge strong { font-size: var(--fs-lg); }
.intro-progress .intro-date { margin: 10px 0 0; font-size: var(--fs-sm); }
.toolbar { flex-wrap: nowrap; align-items: flex-start; padding-bottom: 28px; }
.chips { gap: 6px; }
.chip { height: 32px; padding: 0 10px; font-size: var(--fs-sm); gap: 7px; }
.search { flex: 0 0 200px; }
.search input { width: 200px; height: 32px; font-size: var(--fs-sm); }
.notes { display: none; }
@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; gap: 16px; }
  .toolbar { flex-wrap: wrap; }
}
.chip { padding: 0 9px; gap: 6px; }
.chips { gap: 5px; flex: 1 1 auto; }
.search { flex: 0 1 180px; min-width: 120px; }
.search input { width: 100%; }

/* ---------- golden-ratio typography ---------- */
.intro h1 { font-size: var(--fs-xl); line-height: var(--lh-head); }
.intro-sub { font-size: var(--fs-base); line-height: var(--lh); max-width: var(--measure); }
.note-line { max-width: var(--measure); line-height: var(--lh-ui); }
.how { font-size: var(--fs-base); }
.gauge strong { font-size: var(--fs-lg); line-height: var(--lh-head); }
.gauge span, .intro-progress .intro-date { font-size: var(--fs-sm); }
.card h2 { font-size: var(--fs-md); line-height: var(--lh-head); }
.d-head h2 { font-size: var(--fs-lg); line-height: var(--lh-head); }
.row-title { font-size: var(--fs-base); line-height: var(--lh-ui); }
.lane-btn .row-title, .lane-btn { font-size: var(--fs-base); }
.pill, .chip, .confirm, .view-road, .road-no, .step, .search input, .draft-tag, .header-btn, .d-crumb, .history time, .history .road-of, .dates dt, .progress-line, .mini, .row-meta, .needs-count { font-size: var(--fs-sm); line-height: var(--lh-ui); }
.brand-name { font-size: var(--fs-base); }
.intro-card, .card-foot, .road-needs, .d-body, .d-body p, .checks li { font-size: var(--fs-base); line-height: var(--lh); }
.d-body p, .d-head p, .intro-card { max-width: var(--measure); }
.d-body h3, .card-foot h3, .note-line b { font-size: var(--fs-base); line-height: var(--lh-head); }
.card-foot h3 { margin-bottom: 4px; }
.note-line, .note-line b { font-size: var(--fs-sm); }
.d-body p, .d-head p { max-width: var(--measure); }
.intro-card { max-width: none; padding-right: max(24px, calc(100% - var(--measure) - 24px)); }

/* ---------- decluttered top ---------- */
.intro { display: block; padding-top: 32px; padding-bottom: 20px; }
.intro h1 { margin-bottom: 10px; }
.intro-sub { margin: 0; color: var(--muted); }
.header-date { font-size: var(--fs-sm); color: #b9b7d6; }
.toolbar { align-items: center; padding-top: 4px; padding-bottom: 32px; gap: 24px; }
.chips { gap: 2px; }
.chip { background: transparent; border: 0; height: 30px; padding: 0 10px; border-radius: 6px; color: var(--ink); }
.chip:hover { background: var(--hover); }
.chip .n { color: var(--faint); }
.chip[aria-pressed="false"] { background: transparent; color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }
.sw { width: 8px; height: 8px; border-radius: 50%; }
.tool-right { display: flex; align-items: center; gap: 20px; flex: none; }
.progress-inline { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pi-pct { font: 700 var(--fs-base)/1 var(--head); color: var(--ink); }
.pi-label { font-size: var(--fs-sm); color: var(--muted); }
.pi-bar { width: 96px; height: 6px; }
.search { flex: none; }
.search input { width: 180px; }
.notes-end { margin: 8px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.note-end { margin: 0; font-size: var(--fs-base); line-height: var(--lh); color: var(--muted); max-width: var(--measure); }
.note-end b { display: block; font: 600 var(--fs-base)/var(--lh-head) var(--head); color: var(--ink); margin-bottom: 4px; }
.notes-end:empty { display: none; }
@media (max-width: 1100px) { .toolbar { flex-wrap: wrap; } }
@media (max-width: 900px) { .header-date { display: none; } .tool-right { width: 100%; justify-content: space-between; } }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.title-row h1 { margin: 0 !important; }
.pi-bar { width: 120px; }
.pi-pct { font-size: var(--fs-md); }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; padding: 0 8px; }
@media (max-width: 1100px) { .toolbar { flex-wrap: nowrap; } }
@media (max-width: 900px) { .toolbar { flex-wrap: wrap; } .chips { flex-wrap: wrap; } }

/* ---------- attachments ---------- */
.att-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.att-img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.att-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.att-img:hover img { transform: scale(1.03); }
.att-docs { display: grid; gap: 6px; }
.att-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.att-doc:hover { border-color: var(--line); }
.att-doc:hover .chev { color: var(--orange); }
.att-icon { font: 700 var(--fs-sm)/1 var(--head); color: #fff; background: var(--red); border-radius: 4px; padding: 6px 6px; }
.att-name { overflow-wrap: anywhere; font-weight: 500; }
.att-name small { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
