/* /example demo shell. Design brief: example/.design/ (PRODUCT.md, DESIGN.md). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gu-bg);
  color: var(--gu-ink);
  font: 400 16px/1.5 var(--gu-font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gu-deep); text-underline-offset: 3px; }
a:hover { color: var(--gu-ink); }
:focus-visible { outline: 2px solid var(--gu-deep); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--gu-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell (layout from the dashboard mock) ---------- */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }

.rail { background: var(--gu-bg-2); border-right: 1px solid var(--gu-rule); }
.rail-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 20px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gu-ink); padding: 0 4px; }
.brand img { width: 26px; height: 26px; mix-blend-mode: multiply; }
.brand span { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }

.client { display: grid; gap: 8px; min-width: 0; padding: 12px 4px; border-top: 1px solid var(--gu-rule); border-bottom: 1px solid var(--gu-rule); }
.client-card { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.client-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gu-ink); color: var(--gu-surface); font-weight: 700; }
.client-name { font-weight: 700; line-height: 1.25; }
.client-name small { display: block; font-weight: 400; color: var(--gu-body); font-size: 13px; }
.client-label, .nav-label { font: 500 11px/1 var(--gu-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gu-meta); }
.switcher { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.switcher label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.switcher input { position: absolute; opacity: 0; pointer-events: none; }
.switcher input:checked + label { background: var(--gu-surface); border-color: var(--gu-border); box-shadow: var(--gu-shadow); }
.switcher input:focus-visible + label { outline: 2px solid var(--gu-deep); outline-offset: 1px; }
.switcher label > span:first-child { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.switcher label > span:last-child { font-size: 12px; color: var(--gu-meta); font-variant-numeric: tabular-nums; }
.switcher .mini-badge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--gu-ink); color: var(--gu-surface); font-size: 11px; }

nav[aria-label="Report"] { display: grid; gap: 8px; }
.nav-label { padding: 0 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps a {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center;
  padding: 10px 10px; border-radius: 10px; border: 1px solid transparent;
  color: var(--gu-body); text-decoration: none; font-weight: 500;
}
.steps a svg { width: 18px; height: 18px; color: var(--gu-meta); }
.steps a[aria-current="step"] { color: var(--gu-ink); font-weight: 700; background: var(--gu-surface); border-color: var(--gu-border); box-shadow: var(--gu-shadow); }
.steps a[aria-current="step"] svg { color: var(--gu-deep); }
@media (hover: hover) { .steps a:hover { background: oklch(22% .012 70 / .05); color: var(--gu-ink); } }

.rail-links { display: grid; gap: 2px; margin-top: auto; }
.rail-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--gu-ink); font-weight: 500; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.rail-link svg { width: 18px; height: 18px; color: var(--gu-meta); }
@media (hover: hover) { .rail-link:hover { background: oklch(22% .012 70 / .05); } }

/* The person behind the read, and the one ask. */
.person { display: grid; gap: 10px; padding: 14px; background: var(--gu-surface); border: 1px solid var(--gu-border); border-radius: var(--gu-radius-panel); box-shadow: var(--gu-shadow); }
.person-head { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gu-tint); color: var(--gu-deep); font-weight: 700; font-size: 13px; }
.person-name { font-weight: 700; line-height: 1.2; }
.person-name a { font-weight: 500; font-size: 12px; color: var(--gu-meta); }
.person p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--gu-body); }
.btn-book {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px;
  background: var(--gu-deep); color: oklch(99% .003 85); text-decoration: none; font-weight: 700;
}
.btn-book:hover { background: var(--gu-deep-hover); color: oklch(99% .003 85); }
.rail-email { margin: 0; text-align: center; font-size: 12px; color: var(--gu-meta); }
.rail-email a { color: var(--gu-body); }

/* ---------- Top bar, banner, main ---------- */
.col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 4; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(20px, 3vw, 40px); background: var(--gu-bg); border-bottom: 1px solid var(--gu-rule);
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gu-meta); min-width: 0; white-space: nowrap; }
.crumbs b { color: var(--gu-ink); font-weight: 700; }
.tb-actions { display: flex; align-items: center; gap: 8px; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid transparent; background: none; color: var(--gu-ink);
  font-weight: 500; text-decoration: none; cursor: pointer;
}
.tb-btn svg { width: 18px; height: 18px; }
.tb-btn.outline { border-color: var(--gu-border); background: var(--gu-surface); }
@media (hover: hover) { .tb-btn:hover { background: oklch(22% .012 70 / .05); } .tb-btn.outline:hover { background: var(--gu-surface-2); } }

.main { min-width: 0; padding: 28px clamp(20px, 3vw, 40px) 56px; }
.wrap { max-width: 1120px; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 20; background: oklch(20% .012 70 / .28); opacity: 0; pointer-events: none; transition: opacity var(--gu-med) var(--gu-ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21; width: min(460px, 100%);
  display: flex; flex-direction: column; gap: 16px; padding: 24px;
  background: var(--gu-surface); border-left: 1px solid var(--gu-border); box-shadow: -8px 0 32px oklch(20% .012 70 / .1);
  transform: translateX(100%); transition: transform var(--gu-med) var(--gu-ease); overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer p { margin: 0; color: var(--gu-body); font-size: 15px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--gu-ink); }
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon-btn:hover { background: oklch(22% .012 70 / .06); } }

/* ---------- Platform logos: small, brand colour, neutral glyph when there's no mark ---------- */
.logo { display: inline-block; flex: none; width: 16px; height: 16px; background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo.glyph { background: none; -webkit-mask: none; mask: none; color: var(--gu-meta); }
.logo.glyph svg { width: 16px; height: 16px; display: block; }
.name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.name > .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.step { animation: rise var(--gu-med) var(--gu-ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.headline {
  margin: 0;
  font: 700 clamp(28px, 2.6vw, 36px)/1.15 var(--gu-display);
  letter-spacing: -0.025em; text-wrap: balance; hyphens: manual;
}
.headline .lead { color: inherit; }
.headline .num { font-variant-numeric: tabular-nums lining-nums; }
.sub { margin: 12px 0 0; color: var(--gu-body); font-size: 17px; max-width: 64ch; }
.sub strong { display: block; color: var(--gu-ink); font-weight: 500; margin-top: 4px; }

.files-label, .section-label {
  margin: 0; font: 500 11px/1 var(--gu-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gu-meta);
}

/* Checks: two columns, the item with a detail line runs full width last. */

/* Data tables */
.section { margin-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.section-head p { margin: 0; font-size: 14px; color: var(--gu-meta); }

.table { display: grid; }
.tr {
  display: grid; align-items: center; column-gap: 20px;
  grid-template-columns: minmax(150px, 1.2fr) 88px minmax(120px, 0.9fr) minmax(200px, 1.4fr);
}
.th { padding: 0 12px 10px; font: 500 11px/1.2 var(--gu-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gu-meta); }
.th .r { text-align: right; }
.row { border-top: 1px solid var(--gu-rule); }
.row:last-child { border-bottom: 1px solid var(--gu-rule); }
.row > button.td {
  width: 100%; background: none; border: 0; padding: 14px 12px; text-align: left; cursor: pointer;
  border-radius: var(--gu-radius-row);
  transition: background var(--gu-fast) var(--gu-ease);
}
.row.open > button.td { background: color-mix(in srgb, var(--gu-tint) 55%, transparent); }
@media (hover: hover) { .row > button.td:hover { background: color-mix(in srgb, var(--gu-tint) 55%, transparent); } }
.name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-cell { font: 400 15px/1 var(--gu-mono); font-variant-numeric: tabular-nums; text-align: right; }

.share { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; }
.share .mono { font-size: 13px; color: var(--gu-body); text-align: right; }
.bar { height: 4px; background: color-mix(in srgb, var(--gu-ink) 9%, transparent); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gu-ink); border-radius: 2px; transform-origin: left; transition: transform var(--gu-med) var(--gu-ease); }

/* Paused weeks: one shared timeline per row, so the stagger reads down the column. */
.timeline { position: relative; height: 14px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: color-mix(in srgb, var(--gu-ink) 18%, transparent); }
.timeline i { position: absolute; top: 1px; height: 12px; background: var(--gu-ink); border-radius: 2px; }
.th .axis { display: flex; justify-content: space-between; }

.note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--gu-med) var(--gu-ease); }
.row.open .note { grid-template-rows: 1fr; }
.note > div { overflow: hidden; }
.note p { margin: 0; padding: 2px 12px 16px; color: var(--gu-body); font-size: 15px; max-width: 70ch; }

/* Next action */
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 0 8px; border-top: 1px solid var(--gu-rule-strong); }
.next p { margin: 0; color: var(--gu-body); max-width: 52ch; }
.btn-next {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--gu-radius-pill);
  background: var(--gu-accent); color: var(--gu-ink); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background var(--gu-fast) var(--gu-ease);
}
.btn-next:hover { background: #F07B33; color: var(--gu-ink); }
.btn-next span { transition: transform var(--gu-fast) var(--gu-ease); }
.btn-next:hover span { transform: translateX(3px); }
.link-quiet { color: var(--gu-body); font-weight: 500; }

/* Steps not built yet: a conversion moment, not a to-do list. */

.foot {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--gu-rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--gu-meta);
}
.foot p { margin: 0; max-width: 72ch; }
.foot a { color: var(--gu-meta); }

.error { padding: 64px 0; max-width: 56ch; }
.error p { color: var(--gu-body); }

/* ---------- Mobile ---------- */
.mbar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; z-index: 5; border-right: 0; border-bottom: 1px solid var(--gu-rule); }
  .rail-inner { position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 10px 16px 8px; overflow: visible; }
  .rail-inner > * { min-width: 0; }
  .brand span { white-space: nowrap; }
  .client { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .client-card { grid-template-columns: auto; justify-items: end; }
  .client-badge, .client-name small, .client-label { display: none; }
  .agency .client { grid-column: 1 / -1; grid-row: 2; }
  .switcher { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .switcher label { padding: 6px 10px; justify-content: center; }
  .switcher label > span:last-child { display: none; }
  .rail-inner > nav { grid-column: 1 / -1; grid-row: 2; }
  .agency .rail-inner > nav { grid-row: 3; }
  .nav-label, .rail-links, .person { display: none; }
  .steps { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .steps a { grid-template-columns: auto; justify-items: center; text-align: center; font-size: 12.5px; padding: 6px 2px; gap: 3px; }
  .steps a svg { width: 16px; height: 16px; }
  /* The top bar shrinks to two icon buttons in the logo row; the banner names the client. */
  .topbar { position: fixed; top: 6px; right: 12px; z-index: 6; height: auto; padding: 0; background: none; border: 0; }
  .crumbs, .tb-label { display: none; }
  .tb-btn { width: 40px; padding: 0; justify-content: center; }
  .app:not(.agency) .client { display: none; }
  .main { padding: 16px 16px 104px; }
  
  
  .tr { grid-template-columns: minmax(0, 1fr) 64px 52px; column-gap: 10px; }
  .tr > :nth-child(4) { display: none; }
  .name { white-space: normal; line-height: 1.3; }
  .share { grid-template-columns: 1fr; }
  .share .bar { display: none; }
  .mbar {
    display: grid; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 12px 20px calc(10px + env(safe-area-inset-bottom));
    background: var(--gu-bg); border-top: 1px solid var(--gu-rule);
  }
  .mbar .rail-email { font-size: 12px; }
}

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

/* ---------- Step 02: finding cards ---------- */
.teaser { color: var(--gu-ink) !important; font-size: 18px; }
.card { padding: 32px 0 48px; border-bottom: 1px solid var(--gu-rule); }
.card + .card { padding-top: 56px; }
.headline.h2 { font-size: clamp(22px, 2vw, 26px); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 14px; font-size: 13px; color: var(--gu-meta); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .hint { margin-left: auto; }
.legend .dot { position: static; transform: none; }

.dots { display: grid; }
.dr {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.7fr) 52px 52px;
}
.dh { padding: 0 12px 10px; font: 500 11px/1.2 var(--gu-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gu-meta); }
.dh .r { text-align: right; }
.axis-ticks { position: relative; height: 12px; margin: 0 7px; }
.axis-ticks span { position: absolute; transform: translateX(-50%); letter-spacing: 0; }
.dots .row > button.td { padding: 12px 12px; }
.dots .name { white-space: normal; line-height: 1.25; }
.nowrap { white-space: nowrap; }
.track { position: relative; height: 18px; margin: 0 7px; }
.has-ref .track::before { content: ''; position: absolute; left: var(--ref); top: -12px; bottom: -12px; width: 0; border-left: 1px dashed color-mix(in srgb, var(--gu-ink) 45%, transparent); }
.axis-ticks .ref-label { top: -16px; font-size: 10px; color: var(--gu-ink); white-space: nowrap; }
.has-ref .dh { padding-top: 16px; }
.seg { position: absolute; top: 8px; height: 2px; background: color-mix(in srgb, var(--gu-ink) 35%, transparent); }
.dot { position: absolute; top: 9px; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); display: inline-block; }
.dot.open { background: var(--gu-bg); border: 1.5px solid var(--gu-meta); }
.dot.fill { background: var(--gu-ink); }
/* Off-scale: the open dot sits at the edge behind a break mark. */
.brk { position: absolute; top: 2px; width: 6px; height: 14px; transform: translateX(-20px) skewX(-20deg); border-left: 1.5px solid var(--gu-meta); border-right: 1.5px solid var(--gu-meta); background: var(--gu-bg); }
.row.hot .brk { background: var(--gu-surface-2); }
/* Next dollar: a tick, with an arrow from the modeled average. */
.tick { position: absolute; top: 2px; width: 3px; height: 14px; background: var(--gu-ink); border-radius: 1px; transform: translateX(-50%); display: inline-block; }
.seg.arrow::before { content: ''; position: absolute; left: -1px; top: -3px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-right: 6px solid color-mix(in srgb, var(--gu-ink) 45%, transparent); }
.legend .tick { position: static; transform: none; height: 12px; }
.legend .ref-key { display: none; }
.legend .ref-key i { width: 0; height: 12px; border-left: 1px dashed var(--gu-ink); }
.legend .dot.open, .legend .dot.fill { width: 10px; height: 10px; }
.val { font: 400 15px/1 var(--gu-mono); font-variant-numeric: tabular-nums; text-align: right; }
.val.dim { color: var(--gu-meta); }

/* The two rows that tell the story: tint, heavier name, numbers set large. */
.dots .row.hot > button.td { background: var(--gu-surface-2); }
.dots .row.hot .name { font-weight: 600; }
.dots .row.hot .val { font: 700 19px/1 var(--gu-display); font-variant-numeric: tabular-nums; }
.dots .row.hot .val:not(.dim) { color: var(--gu-ink); }
.dots .row.hot.open > button.td { background: oklch(22% .012 70 / .07); }

.next .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .card { padding: 32px 0 40px; }
  
  
  .axis-ticks .ref-label { display: none; }
  .has-ref .dh { padding-top: 0; }
  .has-ref .track::before { top: -3px; bottom: -3px; }
  .legend .ref-key { display: inline-flex; }
  .legend .hint { margin-left: 0; width: 100%; }
  .dr { grid-template-columns: minmax(0, 1fr) 52px 52px; grid-template-areas: "name a b" "track track track"; row-gap: 10px; }
  .dr > .name { grid-area: name; }
  .dr > .track, .dr > .axis-ticks { grid-area: track; }
  .dh > span:first-child { grid-area: name; }
  .dr > .val.dim, .dr > .ha { grid-area: a; }
  .dr > .val:not(.dim), .dr > .hb { grid-area: b; }
  .dots .row.hot .val { font-size: 20px; }
}

/* ---------- Step 03: the plan ---------- */
.plan-table { margin: 40px 0 0; }
.pr {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: minmax(150px, 1.3fr) 64px 16px 64px minmax(180px, 1.3fr) 84px;
}
.pr.th { padding: 0 12px 10px; font: 500 11px/1.2 var(--gu-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gu-meta); }
.pr .r { text-align: right; }
.pr .c { text-align: center; }
.num-cell.dim { color: var(--gu-meta); }
.arrow-cell { color: var(--gu-meta); text-align: center; }
.move { display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 12px; }
.move .mono { font-size: 13px; text-align: right; color: var(--gu-body); }
.move-track { position: relative; height: 10px; }
.move-track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px solid var(--gu-rule-strong); }
.move-track i { position: absolute; top: 2px; height: 6px; border-radius: 2px; background: var(--gu-meta); }
.pr.up .move-track i { background: var(--gu-accent); }
.pr.up .move .mono { color: var(--gu-deep); font-weight: 500; }
.pr.down .move-track i { background: var(--gu-ink); }
.pr.down .move .mono { color: var(--gu-ink); }
.pr.hold .move-track i { min-width: 4px; }
.caption { margin: 14px 0 0; font-size: 13px; color: var(--gu-meta); max-width: 72ch; }

.decisions { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.decisions li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--gu-rule); }
.decisions li:last-child { border-bottom: 1px solid var(--gu-rule); }
.decisions h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; }
.decisions p { margin: 0; color: var(--gu-body); font-size: 15px; max-width: 70ch; }
.badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.decisions .increase .badge { background: var(--gu-accent); color: var(--gu-ink); }
.decisions .reduce .badge { background: var(--gu-ink); color: var(--gu-bg); }
.decisions .hold .badge { border: 1px solid var(--gu-rule-strong); color: var(--gu-body); }

.close { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; padding: 56px 0; border-bottom: 1px solid var(--gu-rule); align-items: start; }
.close .sub { margin: 16px 0 24px; }
.close .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .pr { grid-template-columns: minmax(0, 1fr) 46px 12px 46px 64px; column-gap: 8px; }
  .pr > :nth-child(6) { display: none; }
  .move { grid-template-columns: 1fr; }
  .move .mono { font-size: 12px; }
  .close { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  
  
}

.outcome-line { margin: 10px 0 0; font-size: 15px; color: var(--gu-ink); max-width: 72ch; }
.m-budget { display: none; }

.btn-inline { display: inline-flex; padding: 13px 24px; }

.mbar { transition: transform var(--gu-med) var(--gu-ease); }
.mbar.away { transform: translateY(110%); }
@media (max-width: 860px) {
  .m-budget { display: block; font-size: 11px; color: var(--gu-meta); margin-top: 3px; }
  .move-track { display: block; height: 6px; }
  .move { grid-template-columns: 1fr; gap: 4px; }
  .move-track i { top: 0; height: 4px; }
}

/* ---------- Leaner layout (Oct 26 review): headline, one chart, small facts ---------- */
.hero-found { padding: 28px 0 20px; }
.hero-found .sub { margin-top: 8px; }
.meta-line { margin: 10px 0 0; font-size: 14px; color: var(--gu-meta); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.file-chip { display: inline-flex; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--gu-surface-2); color: var(--gu-ink); font-size: 13px; }
.file-chip span { color: var(--gu-meta); }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--gu-radius-pill); border: 1px solid var(--gu-border); background: var(--gu-surface); font-size: 13px; color: var(--gu-body); }
.chip span[aria-hidden]:first-child { color: var(--gu-ink); font-weight: 700; }
.chip.flag { background: var(--gu-tint); border-color: transparent; color: var(--gu-ink); }
.chip.flag span[aria-hidden]:first-child { color: var(--gu-deep); }
.flag-note { margin: 8px 0 0; font-size: 13px; color: var(--gu-body); }

.panel { background: var(--gu-surface); border: 1px solid var(--gu-border); border-radius: var(--gu-radius-panel); box-shadow: var(--gu-shadow); padding: 20px 20px 16px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px; border-radius: 10px; background: var(--gu-surface-2); }
.tabs button { padding: 7px 14px; border: 0; border-radius: 8px; background: none; font-weight: 500; color: var(--gu-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gu-surface); color: var(--gu-ink); font-weight: 700; box-shadow: var(--gu-shadow); }
.panel .caption { margin-top: 12px; }

.actions-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; }
.actions-list li { display: flex; gap: 10px; font-size: 15px; color: var(--gu-ink); font-weight: 500; }
.actions-list li span { color: var(--gu-deep); }
.next { border-top: 0; padding-top: 24px; justify-content: flex-end; }

/* Rows open on click: a small chevron says so, instead of a hint line. */
.row > button.td { position: relative; padding-right: 32px !important; }
.row > button.td::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--gu-meta); border-bottom: 1.5px solid var(--gu-meta); transform: translateY(-70%) rotate(45deg); transition: transform var(--gu-fast) var(--gu-ease); }
.row.open > button.td::after { transform: translateY(-30%) rotate(-135deg); }
.dh, .pr.th, .tr.th { padding-right: 32px !important; }

.close { display: block; padding: 40px 0; }
.close .sub { margin: 6px 0 20px; }
.close-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.close-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.close-links a { color: var(--gu-ink); font-weight: 500; }

.foot .synthetic { flex-basis: 100%; color: var(--gu-meta); }
.foot .synthetic b { color: var(--gu-body); font-weight: 700; }

/* ---------- Weekly revenue and spend ---------- */
.weekly .section-head { flex-wrap: wrap; }
.weekly .legend { margin: 0; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sw.line { height: 2px; border-radius: 1px; background: var(--gu-ink); }
.wk { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.wk-y { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-size: 12px; color: var(--gu-meta); text-align: right; font-variant-numeric: tabular-nums; margin-top: -7px; padding-bottom: 0; }
.wk-plot { position: relative; }
.wk-plot svg { display: block; width: 100%; height: 200px; border-bottom: 1px solid var(--gu-rule-strong); }
.wk-plot .grid { stroke: var(--gu-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wk-plot .spend { fill: none; stroke: var(--gu-ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.wk-plot g:hover rect { filter: brightness(0.92); }
.wk-x { position: relative; height: 20px; font-size: 12px; color: var(--gu-meta); }
.wk-x span { position: absolute; top: 4px; transform: translateX(-50%); }

/* ---------- Step sequence strip ---------- */
.flow { margin: 20px 0 4px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.flow li { position: relative; }
.flow li + li::before { content: ''; position: absolute; left: -12px; right: calc(100% - 4px); top: 21px; height: 1px; background: var(--gu-rule-strong); }
.flow a { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; margin-right: 16px; border-radius: 12px; text-decoration: none; color: var(--gu-body); border: 1px solid transparent; }
.flow-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gu-rule-strong); font-size: 13px; font-weight: 700; color: var(--gu-meta); background: var(--gu-bg); }
.flow-t { display: grid; line-height: 1.25; min-width: 0; }
.flow-t span { font-size: 13px; }
.flow-t b { font-size: 15px; color: var(--gu-ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow a[aria-current="step"] { background: var(--gu-surface); border-color: var(--gu-border); box-shadow: var(--gu-shadow); }
.flow a[aria-current="step"] .flow-n { background: var(--gu-deep); border-color: var(--gu-deep); color: oklch(99% .003 85); }
@media (hover: hover) { .flow a:not([aria-current]):hover { background: oklch(22% .012 70 / .04); } }

@media (max-width: 860px) {
  .rail-inner > nav { display: none; }
  .flow { margin: 4px 0 0; }
  .flow a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; margin-right: 6px; }
  .flow li + li::before { display: none; }
  .flow-t span { font-size: 12px; }
  .flow-t b { font-size: 13px; white-space: normal; }
  .wk { grid-template-columns: 40px 1fr; }
  .wk-y, .wk-plot svg { height: 150px; }
}

/* ---------- Rail stepper: numbered steps joined by a line, each with its key number ---------- */
.rail-flow { gap: 0; }
.rail-flow li { position: relative; }
.rail-flow li + li::before { content: ''; position: absolute; left: 22px; top: -10px; height: 20px; width: 1px; background: var(--gu-rule-strong); }
.rail-flow a { grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 10px; }
.rail-flow .flow-t span { font-size: 13px; color: var(--gu-meta); font-weight: 500; }
.rail-flow .flow-t b { font-size: 14.5px; }
.rail-flow a[aria-current="step"] .flow-n { background: var(--gu-deep); border-color: var(--gu-deep); color: oklch(99% .003 85); }
.rail-flow a[aria-current="step"] .flow-t span { color: var(--gu-ink); }
@media (min-width: 861px) { .flow { display: none; } }

/* ---------- Drawer content ---------- */
.drawer-label { margin: 12px 0 0; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gu-meta); scroll-margin-top: 16px; }
.qa details { border-top: 1px solid var(--gu-rule); }
.qa details:last-child { border-bottom: 1px solid var(--gu-rule); }
.qa summary { list-style: none; cursor: pointer; padding: 12px 28px 12px 0; position: relative; font-weight: 500; color: var(--gu-ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 6px; top: 18px; width: 7px; height: 7px; border-right: 1.5px solid var(--gu-meta); border-bottom: 1.5px solid var(--gu-meta); transform: rotate(45deg); transition: transform var(--gu-fast) var(--gu-ease); }
.qa details[open] summary::after { transform: rotate(-135deg); top: 21px; }
.qa details p { padding: 0 0 14px; font-size: 14.5px; }
.qa a, .drawer-foot a { color: var(--gu-deep); }
.methods { margin: 4px 0 0; }
.methods dt { font-weight: 700; font-size: 14px; margin-top: 12px; }
.methods dd { margin: 2px 0 0; font-size: 14px; color: var(--gu-body); }
.drawer-fine { margin-top: 12px !important; font-size: 12px !important; color: var(--gu-meta) !important; }
.foot .foot-links { flex-basis: 100%; }
.foot .foot-links a { color: var(--gu-meta); }

/* Period labels: small, in the existing meta style. */
.panel .period { float: right; margin-top: 10px; font-size: 14px; color: var(--gu-meta); }
@media (max-width: 860px) { .panel .period { float: none; display: block; margin: -8px 0 12px; } }
.tabs .t-short { display: none; }
@media (max-width: 860px) { .tabs .t-long { display: none; } .tabs .t-short { display: inline; } }
