/* Sticky — Company settings connection experience, review build.
   The product world is preserved exactly: tokens are lifted from
   hd/src/app/globals.css. The review chrome around the product is ink rules and
   compressed structural anchors, so it never competes with the surface it holds. */

:root {
  --canvas: #f7f7f4;
  --ink: #171918;
  --on-ink: #ffffff;
  --panel: #ffffff;
  --subdued: #eeeee8;
  --muted: #5e6461;
  --line: #e4e4de;
  --accent: #b7f34a;
  --brand: #5b7a16;
  --brand-soft: #eef6d8;
  --hover: #eeeee8;
  --active: #e6ecd6;
  --good: #0c7a43;
  --good-bg: #e3f5ec;
  --warn: #8a5300;
  --warn-bg: #fdf0dc;
  --bad: #c0362c;
  --bad-bg: #fdeceb;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --compressed: "Archivo", var(--sans);

  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-raised: 0 4px 12px rgba(16, 24, 40, 0.1), 0 2px 4px rgba(16, 24, 40, 0.06);

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Browser surfaces belong to the design too. */
::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

* {
  scrollbar-color: #c8c9c1 var(--canvas);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--canvas);
}
::-webkit-scrollbar-thumb {
  background: #c8c9c1;
  border: 3px solid var(--canvas);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a9aaa1;
}

/* ─────────────────────────────── review chrome ─────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--ink);
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(22px, 3vw, 34px);
}

.wordmark {
  font-family: var(--compressed);
  font-variation-settings: "wdth" 78, "wght" 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.wordmark .stop {
  color: var(--brand);
}

.masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.masthead__tag {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.masthead h1 {
  font-family: var(--compressed);
  font-variation-settings: "wdth" 66, "wght" 700;
  font-size: clamp(2.6rem, 8.4vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: clamp(20px, 3vw, 34px) 0 0;
  max-width: 16ch;
  text-wrap: balance;
}

.masthead p {
  margin: 18px 0 0;
  max-width: var(--measure);
  font-size: 16px;
  color: var(--ink);
}

.masthead p + p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.factbar {
  margin-top: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

.factbar div {
  background: var(--canvas);
  padding: 11px 13px;
}

.factbar dt {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.factbar dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* section nav */

.railnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 244, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.railnav ol {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.railnav ol::-webkit-scrollbar {
  display: none;
}

.railnav a {
  display: block;
  white-space: nowrap;
  padding: 11px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-variant-numeric: tabular-nums;
}

.railnav a:hover {
  color: var(--ink);
  background: var(--hover);
}

.railnav a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.railnav a .n {
  color: var(--muted);
  margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.railnav a[aria-current="true"] .n {
  color: var(--brand);
}

/* sections */

section.band {
  padding: clamp(46px, 7vw, 92px) var(--gutter);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 52px;
}

section.band--quiet {
  background: var(--subdued);
}

.band__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: clamp(26px, 4vw, 42px);
  max-width: 100%;
}

@media (min-width: 900px) {
  .band__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
  }
}

.band__anchor {
  font-family: var(--compressed);
  font-variation-settings: "wdth" 64, "wght" 700;
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.band__anchor .num {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-variation-settings: normal;
}

.band__lede {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: var(--measure);
}

.band__lede strong {
  color: var(--ink);
  font-weight: 600;
}

.band__lede + .band__lede {
  margin-top: 10px;
}

/* ───────────────────────── the product surface itself ───────────────────────── */

.surface {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.6vw, 30px);
}

.surface--framed {
  box-shadow: var(--shadow-card);
}

.surface__chrome {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.surface__chrome .path {
  font-variant-numeric: tabular-nums;
}

.provenance {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.provenance--live {
  border-color: rgba(12, 122, 67, 0.3);
  background: var(--good-bg);
  color: var(--good);
}

.pagetitle h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

.pagetitle p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 18px 0;
}

.workspace .glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  background: var(--subdued);
  color: var(--muted);
}

.workspace dt {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.workspace dd {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 650;
}

.sectionhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.sectionhead h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.sectionhead p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.cardgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1080px) {
  .cardgrid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ───────────────────────────── the account card ───────────────────────────── */

.acct {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acct__top {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px;
}

.acct__id {
  min-width: 0;
}

.acct__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.005em;
}

.acct__name svg {
  flex: none;
  color: var(--muted);
}

.acct__meta {
  margin: 5px 0 0;
  padding-left: 24px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  align-items: baseline;
}

.acct__meta .key {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

.acct__meta .unverified {
  color: var(--warn);
  font-weight: 600;
}

/* badge — Polaris-style pairs, status colour on data only */

.badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  background: var(--subdued);
  color: var(--ink);
  border: 1px solid transparent;
}

.badge svg {
  flex: none;
}

.badge--good {
  background: var(--good-bg);
  color: var(--good);
}
.badge--warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge--bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.badge--neutral {
  background: var(--subdued);
  color: var(--muted);
}

/* the present-tense claim — the whole point of the redesign */

.claim {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.claim__text {
  font-size: 13.5px;
  font-weight: 550;
  margin: 0;
  min-width: 0;
}

.claim__asof {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.claim__asof .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 7px;
  vertical-align: 1px;
}

.claim--good .claim__asof .dot {
  background: var(--good);
}
.claim--warn .claim__asof .dot {
  background: var(--warn);
}
.claim--bad .claim__asof .dot {
  background: var(--bad);
}

/* evidence bar — 12 segments, never colour alone */

.evidence {
  padding: 0 16px 14px;
}

.evidence__bar {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.evidence__seg {
  height: 7px;
  flex: 1 1 0;
  min-width: 4px;
  border-radius: 1px;
  background: var(--subdued);
  border: 1px solid transparent;
}

.evidence__seg[data-state="current"] {
  background: var(--good);
}
.evidence__seg[data-state="running"] {
  background: repeating-linear-gradient(
    115deg,
    var(--brand) 0 3px,
    var(--brand-soft) 3px 6px
  );
}
.evidence__seg[data-state="stale"] {
  background: var(--warn-bg);
  border-color: var(--warn);
}
.evidence__seg[data-state="failed"] {
  background: var(--bad);
}
.evidence__seg[data-state="waiting"] {
  background: var(--subdued);
  border-color: var(--line);
}

.evidence__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}

.evidence__count {
  font-variant-numeric: tabular-nums;
}
.evidence__count b {
  color: var(--ink);
  font-weight: 650;
}

/* the one next action */

.action {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.action--bad {
  background: var(--bad-bg);
  border-top-color: rgba(192, 54, 44, 0.22);
}
.action--warn {
  background: var(--warn-bg);
  border-top-color: rgba(138, 83, 0, 0.22);
}
.action--quiet {
  background: var(--subdued);
}

.action__owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  justify-self: start;
  background: var(--ink);
  color: var(--on-ink);
}

.action__owner--sticky {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
}

.action__text {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
}

.action__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.action__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* rows: ads + optional sources */

.srcrow {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  justify-content: space-between;
}

.srcrow__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}

.srcrow__label svg {
  color: var(--muted);
  flex: none;
}

.srcrow__state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.dbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 9px;
}

.dseg {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--good);
}

.dseg[data-state="off"] {
  background: var(--bad-bg);
  box-shadow: inset 0 0 0 1px var(--bad);
}

.dmiss {
  color: var(--bad);
  font-weight: 650;
}

.coverage {
  white-space: nowrap;
}

.coverage--gap {
  color: var(--warn);
  font-weight: 600;
}

@media (max-width: 560px) {
  .coverage {
    white-space: normal;
  }
}

.optlist {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.optlist__head {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1px;
}

.optlist li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.optlist li .nm {
  color: var(--ink);
  font-weight: 500;
}

/* disclosure — per-check detail */

.checks {
  border-top: 1px solid var(--line);
}

.checks__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  text-align: left;
}

.checks__toggle:hover {
  background: var(--hover);
}

.checks__toggle svg {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  flex: none;
}

.checks__toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.checks__body[hidden] {
  display: none;
}

.checks__body {
  padding: 2px 16px 16px;
  border-top: 1px solid var(--line);
  animation: unfold 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.checktable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.checktable th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 9px 8px 7px 0;
  border-bottom: 1px solid var(--line);
}

.checktable th:last-child,
.checktable td:last-child {
  text-align: right;
  padding-right: 0;
}

.checktable td {
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.checktable tr:last-child td {
  border-bottom: 0;
}

.checktable .nm {
  font-weight: 550;
}

.checktable .st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.checktable .st::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--muted);
}

.checktable .st[data-state="current"]::before {
  background: var(--good);
}
.checktable .st[data-state="stale"]::before {
  background: var(--warn);
}
.checktable .st[data-state="failed"]::before {
  background: var(--bad);
}
.checktable .st[data-state="running"]::before {
  background: var(--brand);
}
.checktable .st[data-state="waiting"]::before {
  background: transparent;
  border: 1px solid var(--line);
}

.checktable tr[data-stop="true"] {
  background: var(--bad-bg);
}

.checktable tr[data-stop="true"] td:first-child {
  box-shadow: inset 2px 0 0 var(--bad);
  padding-left: 9px;
}

.stopnote {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--bad);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.stopnote svg {
  flex: none;
  margin-top: 1px;
}

.rawcode {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--on-ink);
}
.btn--primary:hover {
  background: #2b2e2c;
}

.btn--secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: #c9cac3;
}
.btn--secondary:hover {
  background: var(--hover);
}

.btn--tertiary {
  background: none;
  color: var(--brand);
  padding-inline: 4px;
}
.btn--tertiary:hover {
  background: var(--brand-soft);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn svg {
  flex: none;
}

.spin {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* progress (setting up) */

.setup {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
}

.setup__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
}

.setup__row .lbl {
  font-weight: 600;
}
.setup__row .ct {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.setup__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* page-level failure states */

.pagealert {
  border: 1px solid rgba(192, 54, 44, 0.3);
  background: var(--bad-bg);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.pagealert svg {
  flex: none;
  color: var(--bad);
  margin-top: 2px;
}

.pagealert h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
}

.pagealert p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.pagealert .btn {
  margin-top: 10px;
}

.acct--broken {
  border-color: rgba(192, 54, 44, 0.32);
}

/* ─────────────────────────── the freshness decision ─────────────────────────── */

.callgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 980px) {
  .callgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.callpane {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callpane__head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.callpane__head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.options {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(22px, 3vw, 30px);
}

@media (min-width: 760px) {
  .options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.options > div {
  background: var(--panel);
  padding: 15px 16px;
}

.options h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.options .rec {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
}

.options p {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ──────────────────────────────── walkthrough ──────────────────────────────── */

.walk {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
  .walk {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 52px);
    align-items: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  border-bottom: 1px solid var(--line);
}

.steps button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 13px 4px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.steps button:hover {
  background: var(--hover);
}

.steps button .n {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.steps button .t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.steps button .d {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.steps button[aria-selected="true"] {
  background: var(--brand-soft);
}

.steps button[aria-selected="true"] .n {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}

.walkstage {
  min-width: 0;
}

.walkstage__panel[hidden] {
  display: none;
}

.walkstage__panel {
  animation: rise 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.walkstage__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--measure);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

/* ─────────────────────────────── state gallery ─────────────────────────────── */

.gallery {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1080px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.specimen {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.specimen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  border-top: 1px solid var(--ink);
  padding-top: 9px;
}

.specimen__head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.specimen__head .tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 6px;
  margin-left: auto;
}

.specimen__head .tag[data-kind="live"] {
  color: var(--good);
  border-color: rgba(12, 122, 67, 0.3);
  background: var(--good-bg);
}

.specimen > p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 56ch;
}

/* ───────────────────────────── changed / decisions ───────────────────────────── */

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.ledger th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0 14px 9px 0;
  border-bottom: 1px solid var(--ink);
}

.ledger td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ledger td:last-child,
.ledger th:last-child {
  padding-right: 0;
}

.ledger .was {
  color: var(--muted);
}

.ledger .now {
  font-weight: 550;
}

@media (max-width: 820px) {
  .ledger,
  .ledger tbody,
  .ledger tr,
  .ledger td {
    display: block;
    width: 100%;
  }
  .ledger thead {
    display: none;
  }
  .ledger tr {
    border-bottom: 1px solid var(--ink);
    padding: 14px 0;
  }
  .ledger td {
    border: 0;
    padding: 0 0 6px;
  }
  .ledger td::before {
    content: attr(data-th);
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 3px;
  }
}

.asks {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 860px) {
  .asks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.asks > div {
  background: var(--panel);
  padding: 18px;
}

.asks h3 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 650;
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.asks h3 .q {
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-weight: 700;
}

.asks p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.asks p + p {
  margin-top: 8px;
}

.asks .rec {
  color: var(--ink);
  font-weight: 550;
}

.colophon {
  padding: clamp(34px, 5vw, 60px) var(--gutter) clamp(44px, 6vw, 72px);
  font-size: 12.5px;
  color: var(--muted);
}

.colophon ul {
  margin: 10px 0 0;
  padding-left: 18px;
  max-width: var(--measure);
}

.colophon li + li {
  margin-top: 5px;
}

.colophon code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: var(--subdued);
  padding: 1px 5px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
