/* prompt-scraper — the look (docs/design.md §6), modelled on localseoguide.com, not copied.
   Tokens first; everything below is written against roles. Light only for M2. */
:root {
  --bg: #f4fcfc;
  --surface: #ffffff;
  --surface-2: #dcf5f7;
  --surface-3: #ddeff0;
  --line: #cfe6e8;
  --ink: #001a1b;
  --ink-2: rgba(0, 26, 27, 0.68);
  --ink-3: rgba(0, 26, 27, 0.5);
  --teal: #00bac5;
  --teal-dark: #00666d;
  --mint: #4ee4c3;
  --orange: #f8620e;
  --orange-hover: #ff7a2f;
  --orange-active: #d1540e;
  --yellow: #f3be42;
  --yellow-tint: #ffefdb;
  --good: #0a7d4f;
  --bad: #c2410c;
  --own: #eb6834;            /* the own brand: bars, row markers (its chart line comes from metrics.PALETTES) */
  --own-row: #fff7f2;
  --own-tint: #ffe2d1;
  --own-ink: #a83d00;
  --topbar: #00666d;
  --teal-fill: #00666d;      /* teal as a fill (the chosen tile, hovers); --teal-dark is teal as text and lines */
  --teal-fill-line: #00666d;
  --on-fill: #ffffff;
  --on-fill-2: rgba(255,255,255,.75);
  --on-orange: #ffffff;
  --on-heat: #ffffff;
  --field: #ffffff;
  --good-tint: #e3f7ee;
  --good-line: #bfe8d5;
  --warn-ink: #8a5a00;
  --warn-line: #f6dcae;
  --bad-tint: #fdebe3;
  --bad-line: #f6cdbb;
  --chart-ink: rgba(0,26,27,.55);
  --chart-grid: rgba(0,26,27,.07);
  --chart-tip: #001a1b;
  --bar-line: rgba(0,26,27,.28);
  --cell-line: #ffffff;
  --radius: .625rem;
  --shadow: 0 13px 30px rgba(0, 26, 27, .08);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body); letter-spacing: .2px;
}
a { color: var(--link, var(--orange)); text-decoration: none; }
a:hover { color: var(--orange-active); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }

/* --- frame ---------------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--topbar); color: #fff;
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: .75rem 1rem;
  display: flex; align-items: flex-start; gap: 1.25rem;
}
/* the left part keeps its natural width and wraps only once the right part is down to its narrowest */
.topbar-main { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; }
.wordmark { font: 800 1.15rem var(--font-head); color: #fff; display: flex; align-items: center; gap: .5rem; }
.wordmark:hover { color: #fff; }
/* the logo's white is part of its art (the swoosh), so it sits on a white disc rather than being cut out */
/* Response and API kept visibly apart when both are shown (docs/design.md §2.1) */
.surface-row th { text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); border-bottom: 2px solid var(--line); padding-bottom: .2rem; }
.split-surface { margin: .9rem 0 .3rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.split-surface:first-of-type { margin-top: 0; }
.wordmark img { width: 2rem; height: 2rem; flex: none; object-fit: cover; border-radius: 50%; background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; }   /* a narrow window wraps whole tabs, never a tab's name */
.tabs a {
  color: rgba(255,255,255,.82); font-weight: 600; padding: .4rem .9rem; border-radius: 3rem; white-space: nowrap;
}
.tabs a:hover { color: #fff; background: rgba(255,255,255,.1); }
.tabs a.on { color: var(--teal-dark); background: #fff; }
.switcher { margin-left: auto; }
.switcher select {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 3rem; padding: .35rem .9rem; font: inherit; font-size: .9rem;
}
.switcher option { color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.2px; font-size: .75rem; font-weight: 700; color: var(--teal-dark); }

/* --- filters: one row above the charts ------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem;
  padding: .4rem; margin-bottom: 1.25rem;
}
.seg { display: inline-flex; background: var(--surface-3); border-radius: 3rem; padding: .2rem; }
.seg a { padding: .3rem .8rem; border-radius: 3rem; color: var(--ink-2); font-weight: 600; font-size: .875rem; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.filters select {
  font: inherit; font-size: .875rem; color: var(--ink); background: var(--surface-3);
  border: 0; border-radius: 3rem; padding: .4rem .9rem; max-width: 100%;
}
.filters .span { margin-left: auto; padding: 0 .8rem; font-size: .8rem; color: var(--ink-3); }

/* --- cards ----------------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.card.signature { border-radius: var(--radius) var(--radius) 1.875rem var(--radius); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1rem; }
.two { grid-template-columns: 2fr 1fr; }
/* a side card that sums up a long list stays in view while the list scrolls (the schedule estimate does the same) */
.two > .stay { position: sticky; top: 5rem; align-self: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .two > .stay { position: static; } }

.kpi { padding: 1rem 1.1rem; }
.kpi .label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.kpi .value { font: 800 2rem/1.1 var(--font-head); margin: .3rem 0 .2rem; font-variant-numeric: tabular-nums; }
/* tiles that choose the chart: the chosen one is filled, the rest lift on hover */
a.kpi.tab { display: block; color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
a.kpi.tab:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
a.kpi.tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
a.kpi.tab:not(.on)::after { content: "Show on chart ›"; display: block; margin-top: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .4px; color: var(--teal-dark); opacity: 0; transition: opacity .12s; }
a.kpi.tab:hover::after { opacity: 1; }
@media (hover: none) { a.kpi.tab:not(.on)::after { content: "Show on chart ›"; opacity: .7; } a.kpi.tab:hover { transform: none; } }
.kpi.on, a.kpi.tab.on, .kpi.hero { background: var(--teal-fill); color: var(--on-fill); border-color: var(--teal-fill-line); }
.kpi.on .label, .kpi.on .delta.flat, .kpi.hero .label, .kpi.hero .delta.flat { color: var(--on-fill-2); }
.delta { font-size: .8rem; font-weight: 700; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-3); }
.kpi.on .delta.up, .kpi.hero .delta.up { color: var(--mint); }
.kpi.on .delta.down, .kpi.hero .delta.down { color: var(--yellow); }

/* --- tables ---------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); font-weight: 700; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .6rem; border-bottom: 1px solid var(--surface-3); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tr.own td { background: var(--own-row); }
.swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.pill { display: inline-block; padding: .05rem .55rem; border-radius: 3rem; background: var(--surface-2); color: var(--teal-dark); font-size: .75rem; font-weight: 600; margin: 0 .2rem .2rem 0; }
.pill.warn { background: var(--yellow-tint); color: var(--warn-ink); }

/* a value with a thin bar behind it: magnitude without a chart */
/* A value's bar: an outlined box that is the whole 0–100%, filled to the value (--w, 0–100). It flows
   right under the number, so the pair stays centred in the cell however tall the row is. */
.bar { min-width: 5rem; }
.bar .meter { display: block; height: 10px; margin-top: .3rem; padding: 1px; border: 1px solid var(--bar-line); border-radius: 3px; }
.bar .meter i { display: block; height: 100%; width: calc(var(--w, 0) * 1%); border-radius: 2px; background: var(--teal); }
.bar.own .meter i { background: var(--own); }
.cell-empty { color: var(--ink-3); }
td.prompt-cell { min-width: 16rem; }
/* sequential: one hue, light to dark, by value */
/* heat cells are parted by a line in a colour none of them can take, so like neighbours stay apart */
td.heat { background: color-mix(in oklab, var(--teal) calc(var(--v) * 85%), var(--surface));
  border: 2px solid var(--cell-line); border-width: 0 2px 2px 0; }
td.heat.dark { color: var(--on-heat); font-weight: 700; }

/* --- split by target ------------------------------------------------------------------------- */
.split-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; margin-bottom: .85rem; }
.split-row .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.split-row .fill { height: 100%; border-radius: 4px; background: var(--own); }

/* --- chart ----------------------------------------------------------------------------------- */
.chart-box { position: relative; height: 300px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--ink-2); margin-top: .5rem; }
.legend b { color: var(--ink); }

/* --- answers --------------------------------------------------------------------------------- */
.answer-text { font-size: .95rem; line-height: 1.7; }
.answer-text h1, .answer-text h2, .answer-text h3, .answer-text h4 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.answer-text p { margin: 0 0 .7rem; }
.answer-text ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.answer-text mark { background: none; border-radius: 3px; padding: 0 .15rem; font-weight: 700; box-shadow: inset 0 -.45em 0 var(--hl, #ffe2d1); color: inherit; }
.answer-text a { word-break: break-word; }
.links li { margin-bottom: .35rem; word-break: break-word; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--surface-3); }
.history li:last-child { border-bottom: 0; }
.dot-yes, .dot-no { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.dot-yes { background: var(--own); }
.dot-no { background: var(--surface-3); border: 1px solid var(--line); }

.btn {
  display: inline-block; background: var(--orange); color: var(--on-orange); font-weight: 700; border-radius: 3rem;
  padding: .55rem 1.3rem; box-shadow: 0 2px 2px rgba(0,0,0,.2);
}
.btn:hover { background: var(--orange-hover); color: var(--on-orange); box-shadow: 0 4px 4px rgba(0,0,0,.3); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  .filters { border-radius: var(--radius); }
  .filters .span { margin-left: 0; width: 100%; padding: .2rem .5rem; }
  .switcher { margin-left: 0; width: 100%; }
  .switcher select { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { padding: .8rem .9rem; }
  .kpi .value { font-size: 1.45rem; }
  .topbar-inner { gap: .6rem 1rem; padding: .6rem 1rem; }
  .chart-box { height: 240px; }
  .hide-sm { display: none; }
  td.prompt-cell { min-width: 0; }
  th { letter-spacing: .2px; padding: .5rem .4rem; }
  td { padding: .55rem .4rem; }
  .bar { min-width: 3.2rem; }
}

/* --- M3: setup, forms, runs (docs/design.md §13) — phone-first, one column -------------------- */
.notice { border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1rem; font-weight: 600; font-size: .9rem;
  background: var(--surface-2); color: var(--teal-dark); border: 1px solid var(--line); }
.notice.success { background: var(--good-tint); color: var(--good); border-color: var(--good-line); }
.notice.warning, .notice.warn { background: var(--yellow-tint); color: var(--warn-ink); border-color: var(--warn-line); }
.notice.error { background: var(--bad-tint); color: var(--bad); border-color: var(--bad-line); }
.subnav { margin-bottom: 1rem; max-width: 100%; overflow-x: auto; }
.lead { margin: 0 0 1rem; max-width: 46rem; }
.stack { display: grid; gap: .75rem; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.row-card { display: flex; align-items: center; gap: .75rem; color: inherit; padding: 1rem 1.1rem; }
a.row-card:hover, .row-card a.row-main:hover { color: inherit; border-color: var(--teal); }
a.row-card:hover { border-color: var(--teal); }
.row-main { flex: 1; min-width: 0; color: inherit; display: block; }
.row-main h2 { font-size: 1.05rem; }
.row-main p { margin: .25rem 0 0; }
.row-card.own { border-left: 4px solid var(--own); }
.row-card.paused { opacity: .65; }
.row-card.status-error { border-left: 4px solid var(--bad); }
.row-card.status-new { border-left: 4px solid var(--good); }
.chev { font-size: 1.6rem; color: var(--ink-3); line-height: 1; }
.prompt-text { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pill.own-pill { background: var(--own-tint); color: var(--own-ink); }
.pill.muted-pill { background: var(--surface-3); color: var(--ink-2); }
.pill.bad-pill { background: var(--bad-tint); color: var(--bad); }
.good { color: var(--good); }
.bad, .error { color: var(--bad); }
.warn-text { color: var(--warn-ink); }
.big { font: 700 1.25rem/1.4 var(--font-head); margin: 0 0 .5rem; overflow-wrap: anywhere; }
.sample { background: var(--surface-3); border-radius: .4rem; padding: .7rem .9rem; font-size: .8rem; overflow-x: auto; }

/* forms */
.form h2 { margin-bottom: .75rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; padding: 0; }
.form input[type=text], .form input[type=search], .form input[type=number], .form input[type=file],
.form input[type=email], .form input[type=password],
.form textarea, .form select, .filters input[type=search] {
  width: 100%; font: inherit; font-size: 1rem; /* 16px: iOS zooms into anything smaller */
  color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: .5rem; padding: .55rem .7rem;
}
.filters input[type=search] { width: auto; flex: 1 1 12rem; border-radius: 3rem; background: var(--surface-3); border: 0; padding: .4rem .9rem; font-size: 1rem; }
.form textarea { resize: vertical; }
.form :focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--bad); }
.help { font-size: .82rem; color: var(--ink-2); margin: .3rem 0 0; }
p.error { font-size: .85rem; font-weight: 600; margin: .3rem 0 0; }
.checks { display: grid; gap: .3rem; }
.checks.row { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.checks.long { max-height: 22rem; overflow-y: auto; padding-right: .3rem; }
.check { display: flex; gap: .55rem; align-items: baseline; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--orange); transform: translateY(.15rem); }
.api-row { flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.api-row select { width: auto; }
.optin { margin-top: .8rem; border-top: 1px solid var(--surface-3); padding-top: .6rem; }
.optin summary { cursor: pointer; font-weight: 700; color: var(--teal-dark); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
button.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal-dark); box-shadow: none; padding: .45rem 1.15rem; }
.btn.ghost:hover { background: var(--teal-fill); color: var(--on-fill); }
.btn.danger { background: var(--bad); }
.btn.small-btn { padding: .3rem .85rem; font-size: .85rem; white-space: nowrap; }
.danger-link { color: var(--bad); font-weight: 600; font-size: .9rem; margin-left: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 12rem; margin: 0; }

/* schedule editor: the estimate rides beside the form on a wide screen, under it on a phone */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1rem; align-items: start; }
.estimate-col { position: sticky; top: 5rem; }
.estimate .value { font: 800 2.2rem/1.1 var(--font-head); margin: .3rem 0 .5rem; font-variant-numeric: tabular-nums; }
.estimate .value small { font: 600 .9rem var(--font-body); color: var(--ink-2); }

/* runs & spend */
.spend-line { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.spend-line .value { font: 800 2rem/1.1 var(--font-head); }
.spend .track { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.spend .fill { height: 100%; background: var(--teal); border-radius: 5px; }
.spend.warn .fill { background: var(--yellow); }
.spend.over .fill { background: var(--bad); }
.run-title { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .estimate-col { position: static; }
}
@media (max-width: 640px) {
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }   /* a phone scrolls them sideways instead */
  .tabs a { padding: .35rem .7rem; font-size: .92rem; white-space: nowrap; }
  .two-fields { grid-template-columns: 1fr; }
  .subnav { scrollbar-width: none; }
  .subnav a { padding: .3rem .55rem; font-size: .82rem; }
  .page-head .btn { padding: .45rem 1rem; font-size: .9rem; }
  .danger-link { margin-left: 0; width: 100%; }
  .row-card { padding: .85rem .9rem; }
}

/* Save/Cancel repeated beside the heading (§13); a prompt picker that filters in place */
.top-actions { align-self: flex-end; }
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.picker-tools { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .6rem; }
.picker-tools input[type=search] { flex: 1 1 14rem; width: auto; }
.checks.picker { max-height: 28rem; overflow-y: auto; padding-right: .3rem; gap: .45rem; }
.checks .check[hidden] { display: none; }
.check.paused > span { color: var(--ink-2); }
@media (max-width: 640px) {
  .top-actions, .head-side { align-self: stretch; align-items: stretch; }
  .head-side .small { text-align: right; }
}

/* Schedule pills (§13): outlined with a clock, so they never read as a category; each opens its schedule */
.pill.sched { display: inline-flex; align-items: center; gap: .3rem; background: var(--surface); color: var(--teal-dark);
  border: 1.5px solid var(--teal-dark); padding: .02rem .55rem .02rem .45rem; }
.pill.sched svg { width: .8rem; height: .8rem; flex: none; }
a.pill.sched:hover { background: var(--teal-fill); color: var(--on-fill); }
.pill.sched.via { border-style: dashed; }
.pill.sched.off { border-color: var(--line); color: var(--ink-3); text-decoration: line-through; }
.pill.unsched { background: transparent; color: var(--ink-3); border: 1.5px dashed var(--line); }
a.pill.unsched { text-decoration: none; }
a.pill.unsched:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
/* A schedule's Save and Cancel return to the card that opened it (#p-…, #c-…); keep it clear of the pinned header. */
.row-card[id], #settings { scroll-margin-top: 7rem; }
.row-card.has-side { align-items: center; }
.row-side { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem; max-width: 45%; }
.row-side .pill { margin: 0 0 .2rem .2rem; }
.row-card a.chev { color: var(--ink-3); padding: .2rem .1rem .2rem .4rem; }
.runs-in { margin: .35rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: var(--ink-2); }
.runs-in .pill { margin: 0; }
@media (max-width: 640px) {
  .row-card.has-side { flex-wrap: wrap; }
  .row-card.has-side .row-main { flex: 1 1 80%; }
  .row-side { order: 3; flex-basis: 100%; max-width: none; justify-content: flex-start; }
  .row-side .pill { margin: 0 .25rem .2rem 0; }
}

/* Answer page: the prompt as asked, under the date (a quotation, in the colour prompts are linked in) */
.asked { margin: .7rem 0 0; padding-left: .8rem; border-left: 3px solid var(--orange); color: var(--orange-active);
  font-style: italic; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.asked .small { font-style: normal; color: var(--ink-2); }
.answer-text { position: relative; }
.answer-text.has-copy { padding-top: 3rem; }
.copy-btn { position: absolute; top: .7rem; right: .7rem; display: inline-flex; align-items: center; gap: .3rem;
  background: var(--surface); color: var(--teal-dark); border: 1.5px solid var(--line); border-radius: .5rem;
  padding: .3rem .5rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.copy-btn:hover { border-color: var(--teal-dark); }
.copy-btn svg { width: 1.1rem; height: 1.1rem; }
.copy-btn .done { display: none; }
.copy-btn.copied { color: var(--good, #1a7f37); border-color: currentColor; }
.copy-btn.copied .idle { display: none; }
.copy-btn.copied .done { display: inline; }
/* Overview tiles: the counts behind each number, under it */
.kpi .of { font-size: .78rem; font-weight: 600; color: var(--ink-2); margin: 0 0 .25rem; font-variant-numeric: tabular-nums; }
.kpi.on .of { color: var(--on-fill-2); }
/* The chart's legend: each name opens Prompts for that brand */
.legend a { color: inherit; }
.legend a:hover { color: var(--teal-dark); text-decoration: underline; }
.swatch.own { width: .85rem; height: .85rem; box-shadow: 0 1px 4px rgba(235,104,52,.6); }
.chart-hint { margin: .4rem 0 0; }
/* Prompts: whose visibility the table shows, chosen in its heading */
.brand-pick { font: inherit; color: var(--teal-dark); background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: .5rem; padding: .05rem 1.6rem .05rem .45rem; max-width: 100%; }
/* Prompts: every other brand's visibility on the same answers, highest first; a brand never named is dimmed */
td.others { min-width: 11rem; font-size: .85rem; line-height: 1.55; white-space: nowrap; }
td.others .num { color: var(--ink-2); }
td.others .none { color: var(--ink-3); }
td.others .none .swatch { opacity: .45; }
/* Date range picker (periods.py): the range and its name on a pill; presets beside a custom start/end */
.pop { position: relative; }
.pop > summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  background: var(--surface-3); border-radius: 3rem; padding: .35rem .9rem .35rem .75rem; font-size: .875rem; font-weight: 600; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary::after { content: "▾"; color: var(--ink-3); font-size: .8rem; }
.pop > summary svg { width: 1rem; height: 1rem; color: var(--teal-dark); flex: none; }
.pop .dp-name { font-weight: 500; font-size: .78rem; color: var(--ink-2); }
.pop[open] > summary { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--teal-dark); }
.dp-panel { position: absolute; z-index: 30; top: calc(100% + .4rem); left: 0; display: flex; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0,26,27,.18); min-width: 30rem; }
.dp-presets { padding: .4rem 0; border-right: 1px solid var(--surface-3); min-width: 11rem; }
.dp-group + .dp-group { border-top: 1px solid var(--surface-3); margin-top: .3rem; padding-top: .3rem; }
.dp-presets a { display: block; padding: .38rem 1rem; color: var(--ink); font-size: .875rem; }
.dp-presets a:hover { background: var(--surface-3); color: var(--ink); }
.dp-presets a.on { background: var(--surface-2); color: var(--teal-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--teal-dark); }
.dp-custom { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.dp-custom .dp-title { margin: 0; font-weight: 700; font-size: .9rem; }
.dp-custom label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.dp-custom input[type=date] { font: inherit; font-size: .95rem; color: var(--ink); border: 1.5px solid var(--line); border-radius: .5rem; padding: .35rem .5rem; }
.dp-custom .help { margin: 0; }
.dp-custom .btn { align-self: flex-start; }
@media (max-width: 640px) {
  .pop { flex: 1 1 100%; }
  .pop > summary { width: 100%; flex-wrap: wrap; row-gap: 0; }
  .dp-panel { position: fixed; left: .75rem; right: .75rem; top: auto; bottom: .75rem; min-width: 0; flex-direction: column;
    max-height: 80vh; overflow: auto; }
  .dp-presets { border-right: 0; border-bottom: 1px solid var(--surface-3); display: grid; grid-template-columns: 1fr 1fr; }
  .dp-group { display: contents; }
}
/* Prompts: the measure the table shows, chosen in its column header (the Overview tiles' `metric`) */
.measure-pick { font: inherit; text-transform: inherit; letter-spacing: inherit; color: var(--teal-dark); font-weight: 700;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: .5rem; padding: .15rem 1.4rem .15rem .4rem; cursor: pointer; }
/* Prompt text filter (Search Console's query filter): containing / not / exact / regex, case ignored */
.pop.textpick > summary .tp-q { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop.textpick.active > summary { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--teal-dark); }
.pop.textpick.bad > summary { background: var(--bad-tint); color: var(--bad); }
.tp-panel { min-width: 22rem; max-width: 26rem; }
.tp-panel select, .tp-panel input[type=text] { font: inherit; font-size: .95rem; color: var(--ink); border: 1.5px solid var(--line);
  border-radius: .5rem; padding: .4rem .5rem; background: var(--surface); }
.tp-panel code { background: var(--surface-3); border-radius: 3px; padding: 0 .2rem; font-size: .8rem; }
.tp-panel .actions { display: flex; gap: .5rem; align-items: center; }
@media (min-width: 641px) { .pop.textpick .dp-panel { left: auto; right: 0; } }
/* A run's page: what each task state means, under the table */
.states { margin: .8rem 0 0; display: grid; gap: .25rem; color: var(--ink-2); }
.states div { display: flex; gap: .4rem; }
.states dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.states dd { margin: 0; }

/* --- Slate: a dark look matching Local SEO Guide's redesign (Brian's trial, 2026-11) ------------------
   Its tokens are the site's own (#4a525a slate, #535c64 cards, #e3eaec text, #e8692e orange, #00bac5
   teal; Bricolage Grotesque, Figtree, JetBrains Mono), plus lighter link, status and brand colours where
   the site's would fall under 3:1 on slate. Chosen with the header's Look menu (cookie ps_theme); the
   brand colours on charts and swatches come from metrics.PALETTES, since they are written inline. */
html[data-theme="slate"] {
  color-scheme: dark;        /* native menus, date pickers and scrollbars draw dark too */
  --bg: #4a525a;
  --surface: #535c64;
  --surface-2: #2c4c50;
  --surface-3: #5c666f;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.24);
  --ink: #e3eaec;
  --head: #ffffff;
  --ink-2: #b9c4c7;
  --ink-3: rgba(227,234,236,.6);
  --teal: #00bac5;
  --teal-dark: #7ae6ec;
  --mint: #5fe0b5;
  --orange: #e8692e;
  --orange-hover: #ff8a50;
  --orange-active: #ff8a50;
  --link: #ffbc96;
  --yellow: #ffd34d;
  --yellow-tint: #544c31;
  --good: #5fe0b5;
  --bad: #ffa07a;
  --own: #ff9a66;
  --own-row: rgba(255,154,102,.10);
  --own-tint: #5a3f33;
  --own-ink: #ffc2a3;
  --topbar: #4a525a;
  --teal-fill: #2c4c50;
  --teal-fill-line: #00bac5;
  --on-fill: #ffffff;
  --on-fill-2: rgba(255,255,255,.75);
  --on-orange: #1b0e06;
  --on-heat: #1b0e06;
  --field: #4a525a;
  --good-tint: rgba(95,224,181,.14);
  --good-line: rgba(95,224,181,.4);
  --warn-ink: #ffd34d;
  --warn-line: rgba(255,211,77,.45);
  --bad-tint: rgba(255,160,122,.16);
  --bad-line: rgba(255,160,122,.45);
  --chart-ink: rgba(227,234,236,.72);
  --chart-grid: rgba(255,255,255,.09);
  --chart-tip: #2b3136;
  --bar-line: rgba(255,255,255,.45);
  --cell-line: #2f353b;
  --radius: 18px;
  --shadow: none;
  --font-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
[data-theme="slate"] body { letter-spacing: 0; }
[data-theme="slate"] h1, [data-theme="slate"] h2, [data-theme="slate"] h3 { color: var(--head); }
[data-theme="slate"] h1 { letter-spacing: -.035em; font-size: 2.3rem; }
[data-theme="slate"] h2 { letter-spacing: -.02em; font-weight: 800; }
[data-theme="slate"] a:hover { color: #ffffff; }
/* small labels: the site's mono caps */
[data-theme="slate"] .eyebrow, [data-theme="slate"] th, [data-theme="slate"] .kpi .label, [data-theme="slate"] .dp-title {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }
[data-theme="slate"] .eyebrow { color: var(--orange-hover); }
[data-theme="slate"] .eyebrow a { color: inherit; }
[data-theme="slate"] .kpi .label { color: var(--ink-2); }
/* header: slate like the page, a hairline under it, outlined pill tabs; the open tab is teal */
[data-theme="slate"] .topbar { border-bottom: 1px solid var(--line); }
[data-theme="slate"] .wordmark { font-family: var(--font-head); letter-spacing: -.02em; }
[data-theme="slate"] .tabs a { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; }
[data-theme="slate"] .tabs a:hover { background: rgba(255,255,255,.06); }
[data-theme="slate"] .tabs a.on { background: var(--teal); color: #04282b; box-shadow: none; }
[data-theme="slate"] .switcher select { background: var(--surface); border-color: var(--line-strong); }
[data-theme="slate"] .switcher option { color: inherit; }
/* cards and controls: flat, hairline-edged, round */
[data-theme="slate"] .card { border-color: var(--line); }
[data-theme="slate"] .btn { box-shadow: none; }
[data-theme="slate"] .btn:hover { box-shadow: none; }
[data-theme="slate"] .btn.ghost { color: #ffffff; border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); padding: .55rem 1.3rem; }
[data-theme="slate"] .btn.ghost:hover { background: rgba(255,255,255,.08); color: #ffffff; }
[data-theme="slate"] .seg a.on { background: var(--teal); color: #04282b; box-shadow: none; }
[data-theme="slate"] .filters { background: transparent; border-color: var(--line); }
[data-theme="slate"] .filters select, [data-theme="slate"] .pop > summary { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-theme="slate"] .form input, [data-theme="slate"] .form textarea, [data-theme="slate"] .form select { border-color: var(--line-strong); }
[data-theme="slate"] .kpi.on .delta.up { color: var(--mint); }
[data-theme="slate"] .dp-panel { box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.page-head .clear-filters { align-self: flex-end; margin-left: auto; }
.clear-filters { font-size: .8rem; font-weight: 700; color: var(--ink-2); padding: .35rem .7rem; border-radius: 3rem; white-space: nowrap; }
.clear-filters:hover { color: var(--ink); background: var(--surface-3); }
/* a run's engines: each row opens that engine's prompts; the five measures start after a rule */
tr.go { cursor: pointer; }
tr.go:hover td { background: var(--surface-3); }
td.sep, th.sep { border-left: 1px solid var(--line); }
tfoot th, tfoot td { border-bottom: 0; border-top: 1px solid var(--line); font-weight: 700; }
/* Runs list: each run's own five measures, as columns on the right of its card */
.run-stats { display: grid; grid-template-columns: repeat(5, minmax(5.5rem, auto)); gap: .2rem 1.2rem; margin: 0 .4rem 0 auto;
  align-self: center; text-align: right; }
.run-stats dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.run-stats dd { margin: 0; font: 800 1.15rem/1.3 var(--font-head); font-variant-numeric: tabular-nums; }
[data-theme="slate"] .run-stats dt { font-family: var(--font-mono); }
@media (max-width: 900px) {
  .run-stats { grid-template-columns: repeat(5, auto); margin: .6rem 0 0; text-align: left; gap: .2rem .9rem; }
}
@media (max-width: 900px) {
  .row-card:has(.run-stats) { flex-wrap: wrap; }
  .row-card .run-stats { order: 3; flex-basis: 100%; }
}

/* Query fan-out (docs/design.md §14.5) */
.lede { margin: -.25rem 0 1rem; max-width: 46rem; }
.fan-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fan-q > summary { cursor: pointer; font-weight: 600; color: var(--link, var(--orange)); }
.fan-q[open] > summary { margin-bottom: .5rem; }
.fan-list { list-style: none; margin: 0; padding: 0; }
.fan-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.fan-list li:first-child { border-top: 0; }
.fan-text { flex: 1 1 18rem; }
.fan-meta { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.fan-meta .pill { margin: 0; white-space: nowrap; }
.pill.track { background: transparent; box-shadow: inset 0 0 0 1px var(--orange); color: var(--orange); }
.pill.track:hover { background: var(--orange); color: var(--on-orange); }
.pill.tracked { background: var(--surface-2); color: var(--good); }
.cover { font-weight: 700; }
.cover:not(.some) { color: var(--ink-3); }
.fan-table td { vertical-align: top; }
/* on a phone a row stacks: its numbers on one line, then the prompt and its searches at full width */
@media (max-width: 640px) {
  .fan-table thead { display: none; }
  .fan-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
  .fan-table td { border: 0; padding: 0; text-align: left; }
  .fan-table td.prompt-cell { order: 2; flex: 1 0 100%; padding-top: .3rem; }
  .fan-table td[data-label]::after { content: " " attr(data-label); color: var(--ink-2); font-size: .8rem; font-weight: 400; }
  .fan-table td[data-label] br { display: none; }
  .fan-table td[data-label] .small { margin-left: .3rem; }
}

/* Categories, Decision Journey, Sources, Brands you're not tracking (docs/design.md §5, §14.7) */
.lede { margin: 0 0 1rem; max-width: 48rem; }
.card-head label select { margin-left: .25rem; }
.group-table th.on, .group-table td.chosen { background: var(--surface-2); }
.group-table td .delta { font-weight: 600; }
.group-table tr.none-row td { color: var(--ink-2); }
.matrix td:first-child { white-space: nowrap; }
.journey-head { margin: 0 0 .75rem; }
.journey-head h2 { font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: .5rem; }
.stage { padding: 1rem 1.1rem; position: relative; }
.stage + .stage::before { content: "›"; position: absolute; left: -.85rem; top: 1rem; font: 800 1.2rem var(--font-head); color: var(--ink-3); }
.stage.bare { opacity: .75; }
.stage-top { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.stage-top h3 { font-size: 1.1rem; }
.stage-top .small { margin-left: auto; }
.stage-step { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--surface-2); color: var(--teal-dark); font-size: .75rem; font-weight: 800; }
.stage-value { font: 800 2rem/1.1 var(--font-head); }
.stage .of { margin: .15rem 0 .1rem; font-weight: 600; }
.stage-brands { margin-top: .8rem; display: grid; gap: .45rem; }
.stage-brands li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; font-size: .88rem; }
.stage-brands li.chosen { font-weight: 700; }
.stage-brands li.none { color: var(--ink-3); }
.stage-brands .meter { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.stage-brands .meter i { display: block; height: 100%; width: calc(var(--w, 0) * 1%); border-radius: 3px; }
.unstaged { padding: .8rem 1rem; margin-top: .5rem; font-size: .9rem; }
.type-split { display: grid; gap: .4rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.type-row { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; color: inherit; padding: .3rem .4rem; border-radius: var(--radius); }
.type-row:hover, .type-row.on { background: var(--surface-2); color: inherit; }
.type-row .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.type-row .fill { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.type-row .fill.own { background: var(--own); }
.src-table td { vertical-align: top; }
.fan-text.url { word-break: break-all; font-size: .85rem; }
.show-sm { display: none; }
.others .rival { display: inline-block; margin: 0 .8rem .15rem 0; white-space: nowrap; }
.untracked-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.untracked-list li:first-child { border-top: 0; }
.u-name { flex: 1 1 12rem; font-weight: 600; }
.untracked .more > summary { cursor: pointer; color: var(--link, var(--orange)); font-weight: 600; padding: .4rem 0; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .stage + .stage::before { content: "⌄"; left: 50%; top: -1.1rem; }
}
@media (max-width: 640px) {
  .show-sm { display: inline-block; }
  .stage-value { font-size: 1.6rem; }
}

/* Users and sign-in (docs/design.md §14.3) */
.auth { max-width: 30rem; margin: 2rem auto; }
.auth.manage { max-width: 44rem; margin-top: 0; }
.auth-form h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-form .actions { justify-content: space-between; }
.auth-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.auth-brand img { border-radius: 50%; background: #fff; }
.auth-brand h1 { margin: 0; }
.auth-brand p { margin: 0; }
.auth-panel { margin-bottom: 1rem; }
.auth-img { display: block; width: 12rem; height: 12rem; margin: 0 auto 1rem; background: #fff; padding: .5rem; border-radius: var(--radius); }
.form.narrow { max-width: 36rem; }
.one-project { margin-left: auto; color: var(--on-fill-2); font-weight: 600; }
/* always at the right edge; when the Project switcher is there, it does the pushing and the menu sits beside it */
/* the right part takes the room left over, laid out right to left: the menu's column first, so when the switcher does
   not fit beside it, the switcher wraps onto a line below, still against the right edge */
.topbar-end { flex: 1 1 0%; display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; gap: .6rem .75rem; }
.topbar-me { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.usermenu { position: relative; }
.usermenu > summary { list-style: none; cursor: pointer; }
.usermenu > summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; color: var(--teal-dark); font: 800 1rem var(--font-head); }
.usermenu[open] .avatar, .usermenu > summary:hover .avatar { box-shadow: 0 0 0 3px var(--mint); }
.um-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; width: 16rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem 0; display: grid; }
.um-panel > a, .um-out { display: block; padding: .5rem 1rem; color: var(--ink); font-weight: 600; font-size: .92rem; text-align: left; }
.um-panel > a:hover, .um-out:hover { background: var(--surface-2); color: var(--ink); }
.um-out { width: 100%; border: 0; background: none; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; border-top: 1px solid var(--line); margin-top: .3rem; }
.um-who { margin: 0; padding: .5rem 1rem .7rem; font-size: .85rem; color: var(--ink-2); border-bottom: 1px solid var(--line); word-break: break-all; }
.um-who b { color: var(--ink); }
.um-look { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem 1rem; }
.seg button { border: 0; background: none; font: inherit; padding: .25rem .7rem; border-radius: 3rem; color: var(--ink-2); font-weight: 600; font-size: .8rem; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.field > label.role-choice, .field > label.check { display: block; margin-bottom: .6rem; font-weight: 400; font-size: .95rem; }
.role-choice .help { display: block; margin: .1rem 0 0 1.65rem; }
.projects-field[hidden] { display: none; }
.link-card { margin-bottom: 1rem; border-color: var(--orange); }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: .5rem; background: var(--field); color: var(--ink); }
.users-table tr.off td { color: var(--ink-3); }
.warn-ink { color: var(--warn-ink); font-weight: 600; }
button.danger-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; color: var(--bad); margin: 0; }
@media (max-width: 640px) {
  /* the avatar sits beside the wordmark, so the menu stays top right above the tabs and switcher */
  /* one wrapping row again (the main part dissolves), ordered so the menu lands beside the wordmark */
  .topbar-inner { flex-wrap: wrap; align-items: center; }
  .topbar-main, .topbar-end { display: contents; }
  .wordmark { order: 0; } .topbar-me { order: 1; margin-left: auto; } .tabs { order: 2; } .switcher { order: 3; }
  .um-panel { width: min(16rem, calc(100vw - 2rem)); }
}

/* Admin area and white-label (docs/design.md §14.4) */
.admin-nav { flex-wrap: wrap; gap: .15rem; border-radius: 1rem; }
.admin-nav a { white-space: nowrap; }
tr.off td { color: var(--ink-3); }
.check.off, .api-row.off label { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.check.off .muted { text-decoration: none; display: inline-block; }
.types-table input[type=text] { width: 100%; }
.agency-preview { border-radius: 50%; background: #fff; object-fit: cover; }
/* under the menu, on the top bar's own colour, so it stays in view on every page (the sign-in page too) */
.powered { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; line-height: 1; white-space: nowrap; }
.powered:hover { color: #fff; }
.powered img { border-radius: 50%; background: #fff; }
.add-sched > summary { cursor: pointer; list-style: none; display: inline-block; }
.add-sched > summary::-webkit-details-marker { display: none; }
.add-sched[open] > summary { margin-bottom: .3rem; }
/* Shaded pills, one tint per Project (Admin → Engines): the group reads at a glance. Light text tones on Slate. */
.pill.tone-0 { background: #d9f2f4; color: #00585e; }
.pill.tone-1 { background: #ffe2d1; color: #8f3500; }
.pill.tone-2 { background: #e6e1fb; color: #4b3aa8; }
.pill.tone-3 { background: #dff3e6; color: #19673a; }
.pill.tone-4 { background: #fdf0cc; color: #7a5600; }
.pill.tone-5 { background: #fde1ec; color: #9b2457; }
a.pill[class*="tone-"]:hover { filter: brightness(.93); }
[data-theme="slate"] .pill.tone-0 { background: rgba(0,186,197,.22); color: #9eeef3; }
[data-theme="slate"] .pill.tone-1 { background: rgba(255,154,102,.22); color: #ffc7a8; }
[data-theme="slate"] .pill.tone-2 { background: rgba(195,180,255,.22); color: #d9cfff; }
[data-theme="slate"] .pill.tone-3 { background: rgba(95,224,181,.2); color: #a9f0d6; }
[data-theme="slate"] .pill.tone-4 { background: rgba(255,211,77,.2); color: #ffe69a; }
[data-theme="slate"] .pill.tone-5 { background: rgba(255,158,196,.22); color: #ffc6dc; }
[data-theme="slate"] a.pill[class*="tone-"]:hover { filter: brightness(1.15); }

/* the License page (docs/design.md §14.2.1) */
textarea.mono { font-family: var(--font-mono); font-size: .76rem; line-height: 1.35; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .5rem 0 0; font-size: .92rem; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.license-banner a { margin-left: .35rem; white-space: nowrap; }

/* The setup wizard's steps (docs/design.md §14.2.2) */
.wizard-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: var(--ink-3); }
.wizard-steps li { display: flex; align-items: center; gap: .45rem; }
.wizard-steps .n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .8rem; }
.wizard-steps li.done { color: var(--ink-2); }
.wizard-steps li.done .n { background: var(--good-tint); color: var(--good); border-color: var(--good-line); }
.wizard-steps li.on { color: var(--ink); font-weight: 700; }
.wizard-steps li.on .n { background: var(--teal); color: var(--on-fill); border-color: var(--teal); }
.auth.wizard { max-width: 34rem; }
.mail-hint { font-weight: 400; }

/* A Project's tabs before it has answers: the way to its first ones (tracker/readiness.py) */
.getting-started h2 { margin-bottom: .3rem; }
.gs-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.gs-steps li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .8rem; align-items: center;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gs-steps li p { margin: .15rem 0 0; }
.gs-steps .n { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.gs-steps li.done { opacity: .75; }
.gs-steps li.done .n { background: var(--good-tint); color: var(--good); border-color: var(--good-line); }
.gs-steps li.next { border-color: var(--teal); }
.gs-steps li.next .n { background: var(--teal); color: var(--on-fill); border-color: var(--teal); }
@media (max-width: 640px) { .gs-steps li { grid-template-columns: 1.8rem minmax(0, 1fr); } .gs-steps li .btn { grid-column: 2; justify-self: start; } }
