/* The home page (DESIGN.md, Home): the hero, the run's five steps as stations on the page's own
   track, where it waits for you, beyond the ticket, the limits, Works with and Request access. */
.hero { padding-top: 104px; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto 24px; }
.hero .lede { margin: 0 auto 32px; }
.hero .ctas { justify-content: center; }
.hero .small { margin-top: 18px; }
/* the demo: a window, not a wall. Capped at the portal's own design width, and at a height that
   still shows a whole screen of it, so wide and tall monitors don't get a 2,500px-wide portal */
.demo { margin: 72px auto 0; padding: 0 16px; max-width: calc(1360px + 32px); --demo-h: clamp(600px, calc(100vh - 150px), 820px); }
.demo .frame { border-radius: 20px; }
section.block { margin-top: 144px; }
header.site.scrolled { box-shadow: 0 1px 0 var(--outline), 0 8px 24px -16px rgb(0 0 0 / .25); }

/* small shared parts */
.lbl { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.flush { margin: 0 !important; }  /* was an inline style (the CSP refuses those), so it outranks as one did */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border: 1px solid var(--outline); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag.you { border-color: transparent; background: var(--needs-fill); color: var(--needs); }
.tag.ok { border-color: transparent; background: var(--ok-fill); color: var(--ok); }
.tag.bad { border-color: transparent; background: var(--bad-fill); color: var(--bad); }
.ok { color: var(--ok); font-weight: 600; } .bad { color: var(--bad); font-weight: 600; } .you { color: var(--needs); font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ticks.no li::before { width: 11px; height: 2px; top: 11px; left: 3px; border: 0; background: var(--bad); transform: rotate(45deg); box-shadow: none; }
.ticks.no li::after { content: ""; position: absolute; left: 3px; top: 11px; width: 11px; height: 2px; background: var(--bad); transform: rotate(-45deg); }

/* each step's evidence is a small window of the product, as big as the step deserves */
.art { grid-column: 2; grid-row: 1 / 6; align-self: center; min-height: 420px; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--outline); border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 15px; overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; }

.art p { margin: 0; }
.win-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--outline); font-weight: 600; }
.win-h .grow { flex: 1 1 auto; min-width: 0; }
.win-b { padding: 18px; display: grid; gap: 18px; flex: 1; align-content: start; }

.win-f { padding: 14px 18px; border-top: 1px solid var(--outline); background: var(--surface); color: var(--muted); font-size: 14px; }
.quote { padding: 12px 14px; border-radius: 10px; background: var(--surface); }
.quote small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.near { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.near li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 1px solid var(--outline); border-radius: 8px; }
.near li span:last-child { color: var(--muted); white-space: nowrap; }
.tabs-f { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--outline); font: 13px var(--mono); overflow: hidden; }
.tabs-f span { padding: 9px 10px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs-f span.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs-f .add { color: var(--ok); }
.diff { margin: 0; padding: 10px 0; font: 13px/1.6 var(--mono); overflow: hidden; }
.diff span { display: block; padding: 0 18px 0 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.diff i { display: inline-block; width: 44px; padding-right: 12px; text-align: right; font-style: normal; color: var(--control); user-select: none; }
.diff .p { background: var(--ok-fill); } .diff .p i { color: var(--ok); }

.runs { display: grid; gap: 6px; }
.runs > div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--surface); font-size: 14px; }
.runs > div > :last-child { margin-left: auto; color: var(--muted); }
.back { margin-left: 102px; font-size: 13px; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.rv { border: 1px solid var(--outline); border-radius: 10px; overflow: hidden; }
.rv .diff { padding: 6px 0; }
.rv-note { margin: 0 12px 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); }
.rv-note p + p { margin-top: 6px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pr-meta { color: var(--muted); font-size: 14px; }
.pr-checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--outline); border-radius: 10px; }
.pr-checks li { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; font-size: 14px; }
.pr-checks li + li { border-top: 1px solid var(--outline); }
.pr-checks li > :last-child { margin-left: auto; color: var(--muted); }
.merge { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.merge .fake { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px dashed var(--control); color: var(--muted); font-weight: 600; font-size: 14px; }

@media (max-width: 960px), (prefers-reduced-motion: reduce) {

  .art { opacity: 1; transform: none; margin: 12px 0 0 18px; min-height: 0; box-shadow: var(--shadow); pointer-events: auto; }
}

/* ---- 2. the gates you can run */

.gates { background: var(--raised); border: 1px solid var(--outline); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.gates .cols { display: grid; grid-template-columns: 1fr 1fr; }
.gates .col { padding: 18px 20px; min-width: 0; }
.gates .col + .col { border-left: 1px solid var(--outline); }
.gates h3 { font-size: 15px; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.gates h3 .mono { font-size: 13px; color: var(--muted); font-weight: 400; }
.gates ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 13px/1.45 var(--mono); }
.gates li { padding: 6px 8px; border-radius: 8px; background: var(--surface); color: var(--muted); overflow-wrap: anywhere; }
.gates li.new { background: var(--bad-fill); color: var(--bad); }
.gates li.gone { text-decoration: line-through; opacity: .6; }
.gates li.wait { opacity: 0; }
.gates .bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--outline); }
.gates .verdict { margin: 0; font-weight: 600; flex: 1 1 260px; }
.gates .verdict[data-t="bad"] { color: var(--bad); } .gates .verdict[data-t="ok"] { color: var(--ok); }
.gates .btn { min-height: 38px; font-size: 15px; padding: 0 16px; }

/* ---- switches */
.sw { appearance: none; position: relative; flex: none; width: 34px; height: 20px; min-height: 0; padding: 0; border: 0; margin: 0; border-radius: 999px; background: var(--track); cursor: pointer; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--raised); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.sw:checked { background: var(--ink); } .sw:checked::after { transform: translateX(14px); background: var(--on-ink); }
.sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sum { margin: 0; color: var(--muted); }
.sum b { color: var(--ink); }

/* the product's panels: a piece of the real screen */

.panel-ui { background: var(--raised); border: 1px solid var(--outline); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.panel-ui .ph { display: flex; gap: 10px; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--outline); font-weight: 700; }
.panel-ui .ph span { font-weight: 400; color: var(--muted); font-size: 14px; }

@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }

.plan { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs > div { aspect-ratio: 4 / 3; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); padding: 8px; display: grid; gap: 5px; align-content: start; position: relative; }
.thumbs > div i { display: block; height: 7px; border-radius: 3px; background: var(--track); }
.thumbs > div i.w { width: 60%; } .thumbs > div i.h { height: 22px; }
.thumbs > div.pick { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs > div b { position: absolute; left: 8px; bottom: 6px; font-size: 12px; }
.shot { position: relative; border: 1px solid var(--outline); border-radius: 8px; background: var(--surface); padding: 12px; display: grid; gap: 7px; }
.shot i { display: block; height: 8px; border-radius: 3px; background: var(--track); }
.shot i.w { width: 45%; } .shot i.row { height: 26px; background: var(--raised); border: 1px solid var(--outline); }
.pin { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 3px var(--raised); }
.shot .pin { right: 18%; top: 38%; }
.cmts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.cmts li { padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.cmts .mono { font-size: 12px; color: var(--muted); margin-right: 6px; }
.btn-s { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.btn-s.p { background: var(--ink); color: var(--on-ink); } .btn-s.q { border: 1px solid var(--outline); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* the screens beyond the ticket */

.panel-ui .pb { padding: 18px; display: grid; gap: 14px; }
.panel-ui .pb > p { margin: 0; color: var(--muted); font-size: 15px; }
.score { display: flex; gap: 14px; align-items: center; }
.score .big { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 14px; }
.cats li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; }
.cats li .meter { grid-column: 1 / -1; height: 6px; }
.cats li .meter > i { background: var(--ink); }
.cats li .meter > i.lo { background: var(--bad); }
.cats li span:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.sugg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.sugg li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--outline); border-radius: 8px; }
.browser { border: 1px solid var(--outline); border-radius: 10px; overflow: hidden; background: var(--surface); }
.browser .bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--outline); background: var(--raised); font: 12px var(--mono); color: var(--muted); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--track); }
.browser .bar span { flex: 1; min-width: 0; padding: 3px 8px; border-radius: 6px; background: var(--surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .page { padding: 12px; display: grid; gap: 6px; font-size: 13px; }
.browser .page .r { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 6px; background: var(--raised); }
.browser .page .r u { color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; }
/* limits: the controls that hold it, as they look in the portal */
.ctrls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ctrl { display: grid; gap: 12px; align-content: start; padding: 20px; background: var(--raised); border: 1px solid var(--outline); border-radius: 16px; }
.ctrl h3 { margin: 0; font-size: 17px; }
.ctrl p { margin: 0; color: var(--muted); font-size: 15px; }
.ctrl .face { padding: 12px 14px; border-radius: 10px; background: var(--surface); font-size: 14px; display: grid; gap: 8px; }
.ctrl .face .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ctrl .face .meter > i { background: var(--ink); }

/* ---- request access */

.ask-sec h2 { margin: 0; }

/* what happens next, beside the form */
.ask-a { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.next { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: n; display: grid; gap: 0; }
.next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--outline); }
.next li::before { content: counter(n); grid-row: 1 / 3; font: 600 14px var(--mono); color: var(--muted); padding-top: 2px; }
.next li b { font-size: 16px; } .next li span { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
   .ask-a { grid-template-columns: 1fr; gap: 28px; }

  .ctrls { grid-template-columns: 1fr 1fr; }
  section.block { margin-top: 104px; }

}
@media (max-width: 640px) {
  .hero { padding-top: 56px; text-align: left; }
  .hero h1, .hero .lede { margin-left: 0; }
  .hero .ctas { justify-content: flex-start; }
  .demo { margin-top: 40px; padding: 0 12px; }
  .demo .frame { border-radius: 14px; }
  .gates .cols { grid-template-columns: 1fr; } .gates .col + .col { border-left: 0; border-top: 1px solid var(--outline); }
   .cats, .ctrls, .thumbs { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .art { margin-left: 0; }
   .back { margin-left: 0; }

}

/* the page's own track (track.css, the portal's): a line in the left margin from the run down to
   the request, with a station at each section; it fills as you read, and the last station is open:
   your turn. It needs the margin, so it shows from 1320px: the line 30px left of the container,
   and each station's name beside its dot */
.flow { --line-x: calc(50% - 600px - 30px); }
@media (max-width: 1319px) { .flow::before, .flow::after, .flow .track-station::before, .flow .track-name { display: none; } }
/* reaching the last station is your turn: the open ring takes the needs-you halo */
.flow .track-end.passed::before { box-shadow: 0 0 0 4px var(--needs-fill); }

/* your turns: the run's track with its rounds switched on in place, and one screen beside it */

.turn-card { background: var(--raised); border: 1px solid var(--outline); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.turn-card .ph { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--outline); }
.turn-card .ph .tag:last-child { margin-left: auto; }
.turn-card .pb { padding: 18px; display: grid; gap: 12px; font-size: 16px; }
.turn-card .pb > p { margin: 0; }
 .turn-card .pb .acts { margin-top: 0; }
.turn-card .pf { padding: 12px 18px; border-top: 1px solid var(--outline); background: var(--surface); color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .turn-card.swap { animation: card-in .3s var(--ease); } }

/* request access: the left column */
.ask-lede { margin: 10px 0 0; color: var(--muted); font-size: 18px; max-width: 40ch; }
.next-h { margin: 28px 0 0; font-size: 15px; }
.next { margin-top: 10px; }

/* ---- one track. The run's five steps are stations on it, not a
   second, pinned track of their own; Beyond the ticket in three columns; Works with ---------- */
.step { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 56px; align-items: start; margin-top: 64px; }
.step-t { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; align-content: start; position: sticky; top: 104px; }
.step-t .n { grid-row: 1 / 3; font: 600 14px var(--mono); color: var(--muted); padding-top: 5px; }
.step-t h3 { margin: 0; font-size: 22px; letter-spacing: -.015em; }
.step-t p { margin: 0; color: var(--muted); font-size: 16px; }
.step-a .art { opacity: 1; transform: none; pointer-events: auto; min-height: 0; box-shadow: var(--shadow); }
.step-a .gates { box-shadow: var(--shadow); }
.step-a > .small { margin-top: 10px; }
/* a step sits inside its section's padding, so its station sits that much further out */
.flow .step.track-station { --dot-x: -60px; --dot-y: 6px; }
.beyond { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.by { display: grid; gap: 12px; align-content: start; }
.by h3 { margin: 0; font-size: 20px; }
.by > p { margin: 0; color: var(--muted); font-size: 15px; }
.by > .small { margin: 0; }
.by .browser .page { font-size: 12px; }
.cats.one { grid-template-columns: 1fr; }
.works { margin: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.works > div { padding: 18px 0; }
.works dt { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.works dd { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .step, .beyond { grid-template-columns: 1fr; gap: 16px; }
  .step-t { position: static; }
  .works { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .works { grid-template-columns: 1fr; } .works > div { padding: 14px 0; border-bottom: 1px solid var(--outline); } }
/* the steps' columns may shrink below their content (the diff's long lines scroll inside it) */
.step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
@media (max-width: 960px) { .step, .beyond { grid-template-columns: minmax(0, 1fr); } }

/* the product's screens: tabs, and rows that open */
.wtabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--outline); }
.wtabs button, .tabs-f button { position: relative; padding: 10px 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs-f button { font: 13px var(--mono); padding: 9px 10px; }
.wtabs button[aria-selected="true"], .tabs-f button[aria-selected="true"] { color: var(--ink); }
.wtabs button[aria-selected="true"]::after, .tabs-f button[aria-selected="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.wtabs button:focus-visible, .tabs-f button:focus-visible, button.why:focus-visible, .stop-tabs button:focus-visible, .mini-tabs button:focus-visible, .dl:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.tabs-f { overflow-x: auto; scrollbar-width: none; }
.diff:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.near li { display: block; padding: 0; border: 0; }
button.why { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--outline); border-radius: 8px; background: var(--raised); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
button.why > span:last-child { color: var(--muted); white-space: nowrap; }
button.why::after { content: ""; flex: none; width: 7px; height: 7px; margin: 6px 2px 0 0; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
button.why[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 9px; }
button.why + p, button.why + div { margin: 6px 2px 2px; font-size: 14px; color: var(--muted); }
.near li + li { margin-top: 6px; }
.rv > button.why { border: 0; border-radius: 0; border-bottom: 1px solid var(--outline); }
.rv > button.why[aria-expanded="false"] { border-bottom: 0; }
.rv > button.why + div { margin: 0; color: inherit; }
.pr-checks li { display: block; padding: 0; }
.pr-checks button.why { border: 0; border-radius: 0; display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline; }
.pr-checks button.why + p { margin: 0 12px 10px; }
.merge button.fake { cursor: pointer; background: none; font: inherit; font-weight: 600; font-size: 14px; }
.merge-why.said { color: var(--ink); font-weight: 600; }
/* where it waits for you: one line, the rounds as switches between the steps */
.flowline { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.flowline li { display: flex; align-items: center; font-size: 14px; font-weight: 600; }
.flowline li + li::before { content: ""; width: 12px; height: 2px; background: var(--track); margin: 0 4px; }
.fl-step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-right: 8px; }
.fl-step.always .dot { width: 12px; height: 12px; background: var(--surface); border: 3px solid var(--ink); }
.fl-round button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px 0 7px; border: 1.5px dashed var(--control); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.fl-round button[aria-checked="true"] { border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink); }
.fl-round button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sw-mini { position: relative; width: 22px; height: 14px; border-radius: 999px; background: var(--track); }
.sw-mini::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--raised); transition: transform .15s; }
.fl-round button[aria-checked="true"] .sw-mini { background: var(--on-ink); }
.fl-round button[aria-checked="true"] .sw-mini::after { transform: translateX(8px); background: var(--ink); }
.turn-view { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px; }
.stop-tabs { display: grid; gap: 4px; }
.stop-tabs button { min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.stop-tabs button[aria-selected="true"] { background: var(--raised); color: var(--ink); border-color: var(--control); box-shadow: var(--shadow); }
.turn-view .turn-card { min-height: 0; }
/* beyond the ticket: two by two, with release notes */
.beyond { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.mini-tabs { display: flex; gap: 4px; }
.mini-tabs button { min-height: 32px; padding: 0 12px; border: 1px solid var(--outline); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mini-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.note-box { padding: 12px 14px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.note-box .lbl { margin: 8px 0 2px; }
.note-h { margin: 0; font-weight: 700; }
ul.note { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.btn-s { border: 0; font-family: inherit; cursor: pointer; }
.btn-s.q { background: none; color: var(--ink); }
.btn-s:disabled { opacity: .55; cursor: default; }
.small-say { font-size: 13px; }
.dl { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dl-say { margin: 0; font-size: 13px; min-height: 1.4em; }
/* limits: what it can't promise, in the section's own voice */
.cant { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink); }
.cant h3 { margin: 0 0 12px; font-size: 20px; }
.cant-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.cant-row b { display: block; font-size: 17px; margin-bottom: 4px; }
.cant-row p { margin: 0; color: var(--muted); font-size: 15px; }
/* works with: where tickets come from, where the change goes, and what's between */

@media (max-width: 960px) {
  .turn-view, .beyond, .cant-row { grid-template-columns: 1fr; }
  .stop-tabs { display: flex; flex-wrap: wrap; }

}

/* a panel or reason that is hidden stays hidden, whatever display its own class sets */
[hidden] { display: none !important; }

/* reviews of your team's PRs: the blocker reads at the card's own size, not as a block */
.by .rv .diff { padding: 4px 0; font-size: 12.5px; }
.by .rv-note { margin: 0 10px 10px; padding: 8px 10px; font-size: 14px; }
.by .rv-note p + p { margin-top: 2px; }

 .wtrack .big { font-size: clamp(22px, 1rem + .9vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
/* works with: the track */
.wtrack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 0 32px; position: relative; }
.wtrack::before { content: ""; position: absolute; left: 7px; right: 14%; top: 7px; height: 2px; background: var(--ink); }
.wtrack > li { position: relative; padding-top: 30px; display: grid; gap: 6px; align-content: start; }
.wtrack .dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }

.wtrack p { margin: 0; }
.wtrack .wk { font-size: 13px; font-weight: 600; color: var(--muted); }
.wtrack .muted { font-size: 15px; }
@media (max-width: 960px) {

  .wtrack { grid-template-columns: 1fr; gap: 24px; } .wtrack::before { left: 7px; right: auto; top: 7px; bottom: 30px; width: 2px; height: auto; }
  .wtrack > li { padding: 0 0 0 34px; } .wtrack .dot { top: 2px; }
}
/* the track's line: a segment from each stop to the next, so it ends at the last one */
.wtrack::before { display: none; }
.wtrack > li:not(:last-child)::after { content: ""; position: absolute; top: 7px; left: 16px; right: -32px; height: 2px; background: var(--ink); }
@media (max-width: 960px) { .wtrack > li:not(:last-child)::after { top: 18px; bottom: -24px; left: 7px; right: auto; width: 2px; height: auto; } }
/* the blocker: one line under the diff, no box of its own */
.by .rv-note { margin: 0; padding: 8px 10px; border-radius: 0; background: none; border-top: 1px solid var(--outline); }

/* around the work: four cards, one size */
.beyond { grid-auto-rows: 1fr; align-items: stretch; }
.by { display: flex; flex-direction: column; gap: 12px; }
.by > .panel-ui { flex: 1; }
/* works with: generic names large, the products small beneath; nightlab's stop holds what it uses */
.wtrack { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 0 40px; }
.wtrack > li:not(:last-child)::after { right: -40px; }
.wtrack .names { margin: 0; font-size: 15px; color: var(--muted); }
.wtrack .mid .big { margin-bottom: 6px; }
.uses { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.uses > li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--outline); }
.uses > li::after { display: none; }
.uses b { font-size: 16px; }
.uses .names { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) {
  .beyond { grid-auto-rows: auto; }
  .wtrack { grid-template-columns: minmax(0, 1fr); }
}

/* beyond the ticket: each card is three rows of the section's grid (subgrid), so a row's headings,
   blurbs and screens line up, and the two screens in a row are one height. The screens' contents
   are balanced to within about 20px a row; what's left goes to one gap in the shorter screen, above
   its last part, so it reads as spacing rather than an empty foot. */
@media (min-width: 961px) {
  .beyond { grid-template-rows: auto auto auto 4px auto auto auto; grid-auto-rows: auto; gap: 12px 24px; }
  .by { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
  .by:nth-child(n+3) { grid-row: 5 / span 3; }
  .by > .panel-ui { display: flex; flex-direction: column; }
  .by > .panel-ui > .pb { flex: 1; display: flex; flex-direction: column; }
  .by .pb > :last-child { margin-top: auto; }
  .by [data-preview] > .browser, .by [data-notes] > .note-box { flex: 1; }
}
.dl-say { font-size: inherit; min-height: 0; }
/* works with: generic icons from the portal's set (lucide), a tile per product, and per stop what nightlab does there */
svg.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wtrack .big { display: flex; align-items: center; gap: 10px; }
.wtrack .big .ic { width: 26px; height: 26px; }
.wtrack .wdesc { font-size: 16px; color: var(--muted); }
.wtrack .wmark { position: absolute; z-index: 1; top: -6px; left: -6px; width: 28px; height: 28px; color: var(--ink); }
.wtrack .wmark svg { display: block; width: 100%; height: 100%; }
.uses b { display: flex; align-items: center; gap: 8px; }
.uses b .ic { width: 18px; height: 18px; }
.tiles { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tiles li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ptile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--raised); border: 1px solid var(--outline); font-size: 12px; font-weight: 700; color: var(--ink); }
.uses .ptile { background: var(--surface); }
.ptile img { width: 18px; height: 18px; object-fit: contain; }
.ptile .ic { width: 16px; height: 16px; }
.ptile .on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ptile .on-dark { display: block; } :root:not([data-theme="light"]) .ptile .on-light { display: none; } }
:root[data-theme="dark"] .ptile .on-dark { display: block; } :root[data-theme="dark"] .ptile .on-light { display: none; }
@media (max-width: 960px) { .wtrack .wmark { top: -4px; } .wtrack { row-gap: 36px; } .wtrack > li:not(:last-child)::after { bottom: -36px; } }

/* works with: each stop is a card, and what nightlab does there is the card's foot. nightlab's stop
   holds what it uses: Your checks and Your tools side by side, Your model beneath, all in the
   track's middle column, the end cards as tall as it. */
.wtrack > li { gap: 12px; }
.wcard { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 0; border-radius: 16px; background: var(--raised); border: 1px solid var(--outline); box-shadow: var(--shadow); overflow: hidden; }
.wcard .wdoes { margin: 12px -18px 0; padding: 14px 18px 16px; background: var(--surface); border-top: 1px solid var(--outline); }
.wdoes-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wdoes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.wdoes li { position: relative; padding-left: 16px; }
.wdoes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.uses { margin: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.uses .u-model { grid-column: 1 / -1; }
.uses > li { align-content: start; gap: 4px; }
/* the end cards reach the foot of the middle column; their foot takes the extra height */
.wt-a > li { display: flex; flex-direction: column; }
@media (min-width: 961px) { .wt-a { grid-template-columns: minmax(0, 1fr) minmax(0, 2.8fr) minmax(0, 1fr); } .wt-a .wcore .wdoes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 20px; } .wt-a .wend .big { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 24px; } }
.wt-a > .wend > .wcard { flex: 1; }
/* the centre ends level with the sides: its uses fill the column, and Your model, their last row, takes the rest */
.wt-a > .mid > .uses { flex: 1; grid-template-rows: auto 1fr; }
.wt-a .wend .wdoes { flex: 1; }

@media (prefers-reduced-motion: no-preference) {

  .wdoes ul:not([hidden]) { animation: card-in .25s var(--ease); }
}

@media (max-width: 640px) { .uses { grid-template-columns: minmax(0, 1fr); } }

/* works with: the stops closer together, so it reads as one flow */
.wtrack { --wgap: 12px; column-gap: var(--wgap); }  /* as Your checks to Your tools */
.wtrack > li:not(:last-child)::after { right: calc(-1 * var(--wgap)); }

@media (max-width: 960px) {
  .wtrack { row-gap: var(--wgap); }
  .wtrack > li:not(:last-child)::after { right: auto; bottom: calc(-1 * var(--wgap)); }

}
/* the products' own logos, each with clear space inside its tile; GitLab's file carries its own */
.ptile.logo { background: var(--raised); }
.ptile.logo-gitlab img { width: 28px; height: 28px; }

/* works with: the end stops' icons are the track's markers, tiles like nightlab's mark (rx 8 of 32),
   so the three cards start level with their eyebrow */
.wtrack .wico { display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--surface); }
.wtrack .wico .ic { width: 17px; height: 17px; }

/* works with: one gap everywhere: between the stops, under nightlab's card, between its uses */
.wtrack { --wgap: 8px; }
.wtrack > li, .uses { gap: var(--wgap); }

/* ---- the product pieces as the portal draws them. The selected item is the ink pill, horizontal
   choices sit on a rail, never a bar or an underline (apps/web DESIGN.md, Selection); a question as its questions round draws one; and
   cost as one note near the limit (limit-note.tsx). The rail and selected fills are the portal's
   own tokens (tokens.css). */
.wtabs { display: flex; flex-wrap: wrap; gap: 2px; align-self: flex-start; margin: 12px 18px 0; padding: 3px; border: 0; border-radius: 18px; background: var(--rail); }
.wtabs button { min-height: 32px; padding: 0 12px; border-radius: 999px; }
.wtabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.wtabs button[aria-selected="true"]::after, .tabs-f button[aria-selected="true"]::after { content: none; }
@media (hover: hover) { .wtabs button[aria-selected="false"]:hover { color: var(--ink); background: color-mix(in srgb, var(--raised) 60%, transparent); } }
/* a file has colours of its own (its +38), so the one in view takes the selected fill and an ink edge */
.tabs-f { gap: 4px; padding: 6px 12px; }
.tabs-f button { border-radius: 10px; }
.tabs-f button[aria-selected="true"] { background: var(--selected); box-shadow: inset 0 0 0 2px var(--ink); }
/* the stops: a vertical list beside the screen (no rail), a rail where they run across */
.stop-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: none; }
@media (max-width: 960px) { .stop-tabs { gap: 2px; padding: 3px; border-radius: 18px; background: var(--rail); justify-self: start; } .stop-tabs button { min-height: 34px; border-radius: 999px; } }
.mini-tabs { gap: 2px; padding: 3px; border-radius: 18px; background: var(--rail); justify-self: start; }
.mini-tabs button { border-color: transparent; }
.thumbs > div.pick { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--selected); }
.q-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.q-top > div { flex: 1 1 14rem; min-width: 0; }
.turn-card .pb .q-tag { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.turn-card .pb .q-q { margin: 0; font-weight: 600; }
.q-ask { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 1px solid var(--control); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.q-ask svg, .lnote svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-choices { display: grid; gap: 8px; }
.q-c { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--control); border-radius: 10px; font-size: 15px; }
.q-c > i { width: 16px; height: 16px; flex: none; margin-top: 3px; border: 1.5px solid var(--control); border-radius: 50%; }
.q-c.on { border-color: var(--ink); background: var(--selected); }
.q-c.on > i { border: 5px solid var(--ink); }
.q-c b { font-weight: 600; }
.q-c em { display: inline-block; white-space: nowrap; margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; }
.q-c small { display: block; color: var(--muted); font-size: 13px; }
.turn-card .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.q-n { font-size: 14px; }
.ctrl .face .lnote { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.ctrl .face .lnote svg { margin-top: 3px; }
.ctrl .face .lnote u { color: var(--ink); font-weight: 600; text-underline-offset: 2px; }
.ctrl .face .lnote.used { padding: 8px 12px; border: 1px solid var(--outline); border-radius: 14px; background: var(--raised); color: var(--ink); }

/* the page's track where there's no margin for it (under 1320px) is the header's bottom edge
   (track.css's .edge-track, placed by site.css), with each station at its share of the page; the headings name where you are */
@media (min-width: 1320px) { .edge-track { display: none; } }
@media (max-width: 1319px) { header.site:has(.edge-track) { border-bottom-color: transparent; } }
