/* Jesus Boot Camp admin — v2 design.
   Direction: a calm, Linear-style workspace in the app's warm palette.
   Research — Mobbin: Linear (inset canvas, tinted sidebar, quiet status icons, dense rows), Twenty / Plane
   (record page: content + right-hand properties panel + timeline), Canny / HoneyBook / Pinterest (greeting,
   metric strip with dividers, "needs attention"). 21st.dev: Dashboard Sidebar (inset workspace frame), Audit Log
   With Icon Tiles (activity feed). Transitions: Button press (150ms, .97), Toast (350/250ms), Accordion (250ms
   grid-rows), all off under prefers-reduced-motion. */

/* The app's own type: Plus Jakarta Sans for UI, Lora for headings and Scripture (self-hosted, CSP-safe). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/admin/static/fonts/PlusJakartaSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/admin/static/fonts/PlusJakartaSans_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/admin/static/fonts/PlusJakartaSans_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("/admin/static/fonts/Lora_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("/admin/static/fonts/Lora_400Regular_Italic.ttf") format("truetype"); }

:root {
  --canvas: #F5EAD6;      /* sidebar + page background (warm tint) */
  --panel: #FFF8EC;       /* the raised work surface */
  --raised: #FFFFFF;
  --soft: #F5EAD6;
  --hover: #EEDFC4;
  --text: #1C1917;
  --text-2: #57504A;      /* 7.4:1 on panel */
  --muted: #6B635C;       /* 5.6:1 */
  --border: #E8DCC6;
  --border-strong: #D8C7A6;
  --brand: #1C1917; --on-brand: #FFF8EC;
  --gold: #FFC21A; --path: #F28C28;
  --good: #2B7056; --good-bg: #E3F1EA; --check-mark: #FFFFFF;
  --warn: #9F522F; --warn-bg: #FBEBDD;
  --bad: #B42318; --bad-bg: #FDE8E6;
  --info: #3E5C76; --info-bg: #E7EEF4;
  --focus: #1C1917;
  --shadow: 0 1px 2px rgba(28,25,23,.05), 0 0 0 1px rgba(28,25,23,.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0C0A09; --panel: #161311; --raised: #1C1917; --soft: #292524; --hover: #2A2623;
    --text: #F6EEDD; --text-2: #CFC6BA; --muted: #A8A29E; --border: #292524; --border-strong: #3A3531;
    --brand: #F6EEDD; --on-brand: #0C0A09;
    --good: #4FB38A; --good-bg: #173A2D; --check-mark: #0C0A09; --warn: #E59A6B; --warn-bg: #3A2416; --bad: #F2766B; --bad-bg: #3D1714;
    --info: #8FB3D1; --info-bg: #1B2A36; --focus: #FFC21A;
    --shadow: 0 0 0 1px rgba(255,248,236,.04);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
h1 { font: 400 26px/1.25 var(--serif); margin: 0; letter-spacing: -.01em; }
h2 { font-size: 14px; font-weight: 650; margin: 0; }
h3 { font-size: 13px; font-weight: 650; margin: 0 0 6px; color: var(--muted); }
p { margin: 0 0 8px; }
code { font: 12px/1.4 var(--mono); }
.wrap { word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i-inline { vertical-align: -3px; }
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ================= Frame: tinted sidebar + inset canvas (Linear / 21st.dev Dashboard Sidebar) ================= */
.frame { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; font-weight: 650; }
.logo { width: 30px; height: 30px; object-fit: contain; flex: none; display: block; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.env { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 2px 6px; }
.nav-label { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.nav a[aria-current="page"] .i { color: var(--path); }
.side-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.me { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.me strong { display: block; font-size: 13px; line-height: 1.2; }
.me small { color: var(--muted); font-size: 11.5px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; background: none; border: 0; font: inherit; width: 100%; cursor: pointer; }
.side-foot a:hover, .side-foot button:hover { background: var(--hover); color: var(--text); }

.canvas { margin: 8px 8px 8px 0; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--text); }
.topbar .here { color: var(--text); font-weight: 600; }
.topbar .sep { opacity: .5; }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.main { padding: 26px 28px 40px; width: 100%; max-width: 1240px; }
.foot { margin-top: 36px; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }

/* ================= Page header ================= */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 64ch; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }

/* ================= Surfaces ================= */
.panel { background: var(--raised); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-head .link { font-size: 12.5px; }
.panel-body { padding: 16px; }
.panel.flush { overflow-x: auto; }
.panel.danger { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); background: var(--bad-bg); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.split.wide-side { grid-template-columns: minmax(0, 1fr) 400px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.grow { flex: 1 1 240px; }
.inline { display: inline; }

/* ================= Status icons (Linear-style) ================= */
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.st::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; box-sizing: border-box; }
.st.draft::before { border: 1.5px dashed var(--muted); }
.st.review::before { border: 1.5px solid var(--warn); background: conic-gradient(var(--warn) 0 50%, transparent 50% 100%); }
.st.live::before { background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.2l1.8 1.8 3.8-4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.st.held::before { background: var(--bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.7 3.8v4.4M7.3 3.8v4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.st.off::before { border: 1.5px solid var(--border-strong); }
.st.none::before { display: none; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; border-radius: 6px; padding: 1px 7px; white-space: nowrap; background: var(--soft); color: var(--text-2); border: 1px solid var(--border); }
.tag.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.tag.info { background: var(--info-bg); color: var(--info); border-color: transparent; }

/* ================= Tabs (server-rendered filters) ================= */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.count { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 0 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 32px; width: 100%; }

/* ================= Tables ================= */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 9px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 150ms var(--ease); }
.table tbody tr:hover { background: var(--soft); }
.table .title { font-weight: 600; text-decoration: none; }
.table .title:hover { text-decoration: underline; }
.table .sub { display: block; color: var(--muted); font-size: 12px; }
.idcode { color: var(--muted); font: 12px/1 var(--mono); }
.event-cell { min-width: 280px; }
.target-cell { max-width: 180px; word-break: break-all; }
.details-cell { max-width: 300px; }
.details-cell code { white-space: normal; word-break: break-word; }
.num-col { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ================= Overview ================= */
.greet h1 { font-size: 28px; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--raised); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.metric { padding: 14px 18px; text-decoration: none; border-left: 1px solid var(--border); transition: background-color 150ms var(--ease); }
.metric:first-child { border-left: 0; border-radius: 12px 0 0 12px; }
.metric:last-child { border-radius: 0 12px 12px 0; }
.metric:hover { background: var(--soft); }
.metric .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.metric .value { font: 650 26px/1.2 var(--font); font-variant-numeric: tabular-nums; margin-top: 4px; }
.metric .value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.bar { display: block; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; margin: 4px 0 12px; }
.bar-bg { fill: var(--soft); } .bar-live { fill: var(--good); } .bar-review { fill: var(--warn); } .bar-draft { fill: var(--border-strong); } .bar-held { fill: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); }

.attn { display: flex; flex-direction: column; }
.attn a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; border-top: 1px solid var(--border); transition: background-color 150ms var(--ease); }
.attn a:first-child { border-top: 0; }
.attn a:hover { background: var(--soft); }
.attn .txt { flex: 1; min-width: 0; }
.attn .txt strong { display: block; font-weight: 600; }
.attn .txt span { color: var(--muted); font-size: 12.5px; }
.tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--text-2); }
.tile.good { background: var(--good-bg); color: var(--good); } .tile.warn { background: var(--warn-bg); color: var(--warn); }
.tile.bad { background: var(--bad-bg); color: var(--bad); } .tile.info { background: var(--info-bg); color: var(--info); }

/* Activity feed with icon tiles (21st.dev Audit Log With Icon Tiles) */
.feed { list-style: none; margin: 0; padding: 4px 0; }
.feed li { display: flex; gap: 12px; padding: 10px 16px; align-items: flex-start; }
.feed .what { flex: 1; min-width: 0; }
.feed .what strong { font-weight: 600; }
.feed .what .sub { display: block; color: var(--muted); font-size: 12.5px; }
.feed time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ================= Record page (Twenty / Plane) ================= */
.record-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; padding: 0; margin: 0 0 6px; }
.stepper li { height: 6px; border-radius: 999px; background: var(--soft); position: relative; }
.stepper li.done { background: var(--good); }
.stepper li.now { background: var(--path); }
.step-caption { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.step-caption strong { color: var(--text); }
.props { display: flex; flex-direction: column; }
.prop { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 7px 16px; align-items: baseline; font-size: 13px; }
.prop dt { color: var(--muted); display: flex; gap: 7px; align-items: center; }
.prop dd { margin: 0; word-break: break-word; }
.props-group { padding: 8px 0; border-top: 1px solid var(--border); }
.props-group:first-child { border-top: 0; }
.versions { list-style: none; margin: 0; padding: 6px 8px; }
.versions a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; transition: background-color 150ms var(--ease); }
.versions a:hover { background: var(--soft); }
.versions a[aria-current="true"] { background: var(--soft); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 12px 16px 12px 36px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 18px; bottom: 18px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 2px solid var(--path); }
.timeline .sub { display: block; color: var(--muted); font-size: 12px; }
.prose p { line-height: 1.65; }
.verse { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--path); background: var(--soft); border-radius: 0 10px 10px 0; font: 17px/1.55 var(--serif); }
.verse cite { display: block; margin-top: 6px; font: 600 12.5px/1.4 var(--font); color: var(--muted); font-style: normal; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.callout .i { margin-top: 2px; }
.callout.warn { background: var(--warn-bg); color: var(--text); } .callout.warn .i { color: var(--warn); }
.callout.bad { background: var(--bad-bg); } .callout.bad .i { color: var(--bad); }
.callout.info { background: var(--info-bg); } .callout.info .i { color: var(--info); }
.callout.good { background: var(--good-bg); } .callout.good .i { color: var(--good); }

.nowrap-row { flex-wrap: nowrap; align-items: center; gap: 10px; }
.title-plain { display: block; font-weight: 600; }
.record-h { font-size: 22px; margin-bottom: 4px; }
.center-tile { margin: 0 auto 10px; }
.empty p { margin: 4px 0 14px; }

/* ================= Forms ================= */
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 13px; }
input, select, textarea { font: 14px/1.4 var(--font); color: var(--text); background: var(--raised); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; min-height: 36px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
input[type="checkbox"] { min-height: auto; width: 16px; height: 16px; accent-color: var(--good); }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
input.code { font: 600 24px/1.2 var(--mono); letter-spacing: 8px; text-align: center; padding: 10px; }

/* ================= Buttons (Transitions: Button press, 150ms, scale .97) ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--text); font: 600 13px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease); }
.btn:hover { background: var(--soft); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--gold); color: #1C1917; border-color: var(--gold); font-weight: 700; } /* the app's pill gold, near-black text 11.8:1 */
.btn.primary:hover { background: color-mix(in srgb, var(--gold) 90%, #1C1917); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--on-brand); } /* cream on red (light) 6.2:1, near-black on coral (dark) 7.6:1 */
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: var(--soft); }
.btn.block { width: 100%; min-height: 40px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.danger-text { color: var(--bad); }

/* ================= Accordion (Transitions recipe, 250ms grid-rows) ================= */
:root { --acc-expand: 250ms; --acc-collapse: 250ms; --acc-chevron: 250ms; --acc-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-acc { border: 1px solid var(--border); border-radius: 12px; background: var(--raised); margin-bottom: 16px; }
.t-acc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: none; border: 0; font: 600 13.5px/1.3 var(--font); color: var(--text); cursor: pointer; text-align: left; border-radius: 12px; }
.t-acc-head:hover { background: var(--soft); }
.t-acc-head .grow { flex: 1; }
.t-acc-chevron { display: inline-flex; transform: scaleY(1); transform-origin: center; transition: transform var(--acc-chevron) var(--acc-ease); color: var(--muted); }
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron { transform: scaleY(-1); }
.t-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--acc-collapse) var(--acc-ease); }
.t-acc[data-open="true"] .t-acc-panel { grid-template-rows: 1fr; transition: grid-template-rows var(--acc-expand) var(--acc-ease); }
.t-acc-panel-inner { overflow: hidden; opacity: 0; filter: blur(2px); transition: opacity var(--acc-collapse) var(--acc-ease), filter var(--acc-collapse) var(--acc-ease); }
.t-acc[data-open="true"] .t-acc-panel-inner { opacity: 1; filter: blur(0); transition: opacity var(--acc-expand) var(--acc-ease), filter var(--acc-expand) var(--acc-ease); }
.t-acc-body { padding: 4px 16px 16px; }
.no-js .t-acc-panel { grid-template-rows: 1fr; }
.no-js .t-acc-panel-inner { opacity: 1; filter: none; }

/* ================= Sign-in ================= */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--panel); }
.auth-aside { background: var(--canvas); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border); }
.auth-aside .quote { font: 22px/1.45 var(--serif); max-width: 30ch; }
.auth-aside .quote cite { display: block; margin-top: 10px; font: 600 13px/1.4 var(--font); color: var(--muted); font-style: normal; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth h1 { font-size: 26px; }
.auth-brand { display: none; padding: 0; }
.auth .lede { color: var(--muted); margin-top: 6px; }
.auth .fine { color: var(--muted); font-size: 12px; text-align: center; }
.steps { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--border); }
.secret code { font-size: 14px; letter-spacing: 1px; flex: 1; }

/* ================= Toast (Transitions "Toast open / close") ================= */
:root { --toast-open: 350ms; --toast-close: 250ms; --toast-distance: 16px; --toast-blur: 2px; --toast-scale: 0.97; --toast-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.toast-wrap { position: fixed; left: 16px; right: 16px; bottom: 24px; display: flex; justify-content: center; pointer-events: none; z-index: 20; }
.toast { pointer-events: auto; background: var(--brand); color: var(--on-brand); border-radius: 12px; padding: 10px 10px 10px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 100%; font-weight: 500; }
.t-toast { opacity: 0; transform: translateY(var(--toast-distance)) scale(var(--toast-scale)); filter: blur(var(--toast-blur)); will-change: transform, opacity, filter;
  transition: opacity var(--toast-close) var(--toast-ease), transform var(--toast-close) var(--toast-ease), filter var(--toast-close) var(--toast-ease); }
.t-toast.is-open { opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
  transition: opacity var(--toast-open) var(--toast-ease), transform var(--toast-open) var(--toast-ease), filter var(--toast-open) var(--toast-ease); }
.toast-x { background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; opacity: .7; }
.toast-x:hover { opacity: 1; }

/* ================= A10 Releases and flags ================= */
/* Release matrix: a ladder per flag (Vercel per-environment rows, Okta early access → betas, Shopify traffic share). */
.matrix th.rung-col, .matrix td.rung-col { text-align: center; width: 96px; }
.rung { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-strong); vertical-align: middle; position: relative; }
.rung.past { background: color-mix(in srgb, var(--good) 35%, transparent); border-color: transparent; }
.rung.now { background: var(--good); border-color: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.rung.now.is-off { background: var(--muted); border-color: var(--muted); box-shadow: 0 0 0 3px var(--soft); }
.rung.next { border: 1.5px dashed var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.rung.now.next { border-style: solid; }
.feature-cell { min-width: 260px; }
.feature-cell .idcode { margin-left: 4px; font-weight: 500; }
.legend .rung { width: 10px; height: 10px; margin-right: 2px; box-shadow: none; }
.rung-note { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; color: var(--text-2); }
.pending { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pending:first-child { border-top: 0; }
.pending .txt { flex: 1 1 260px; min-width: 0; }
.pending .txt strong { display: block; font-weight: 600; }
.pending .txt span { color: var(--muted); font-size: 12.5px; }
.pending .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-note { margin: 0; padding: 10px 16px 14px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); }
.panel-note.top { border-top: 0; padding-top: 10px; padding-bottom: 0; }
.mail-status .panel-note:last-child { padding-bottom: 14px; }
.mail-status .panel-note.warn-text { border-top: 0; color: var(--warn); }
.list { list-style: none; margin: 0; padding: 4px 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 9px 16px; }
.list .sub, .prop .sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.t-acc.flat { border: 0; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; margin: 0; background: transparent; }
.timeline li.tl-rolled_back::before, .timeline li.tl-rejected::before { border-color: var(--bad); }
.timeline li.tl-withdrawn::before { border-color: var(--border-strong); }
.timeline li.tl-approved::before { border-color: var(--good); }
.timeline li.tl-pending::before { border-color: var(--warn); border-style: dashed; }

/* ================= A05 Media QA ================= */
.st.fail::before { background: var(--bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.2 4.2l3.6 3.6M7.8 4.2 4.2 7.8' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
a.st { text-decoration: none; }
a.st:hover { text-decoration: underline; }
.url-cell { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last-run { display: flex; align-items: center; gap: 6px; margin: -8px 0 14px; }
/* Diagnostic timeline: one bar per check, oldest → newest (21st.dev Status Bar, Better Stack). */
.qa-bars { display: inline-flex; gap: 2px; align-items: stretch; height: 22px; vertical-align: middle; }
.qa-bars.lg { height: 26px; }
.qa-bar { display: block; width: 5px; border-radius: 2px; background: var(--soft); transform-origin: bottom; transition: transform 150ms var(--ease), opacity 150ms var(--ease); }
.qa-bars.lg .qa-bar { width: 6px; }
.qa-bar.pass { background: var(--good); } .qa-bar.warn { background: var(--warn); } .qa-bar.fail { background: var(--bad); }
a.qa-bar:hover { transform: scaleY(1.15); }
a.qa-bar:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.checks { list-style: none; margin: 0; padding: 8px 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 16px; }
.checks li .st { margin-top: 3px; }
.checks strong { font-weight: 600; }
.checks .sub { display: block; color: var(--muted); font-size: 12.5px; }
.checks li.check-fail { background: color-mix(in srgb, var(--bad-bg) 60%, transparent); }
.props.measured { border-top: 1px solid var(--border); }
.hash { font-size: 11.5px; word-break: break-all; }
.btn.sm { min-height: 26px; padding: 2px 8px; font-size: 12px; }
.file-issue { border-top: 1px solid var(--border); align-items: center; }
.grid2.tight { gap: 10px; }
.grid2 .span2 { grid-column: 1 / -1; }
.btn.is-busy { cursor: progress; opacity: .92; }

/* Transitions: Shimmer text (in-progress label while checks download files) */
:root { --shimmer-dur: 2000ms; --shimmer-base: var(--muted); --shimmer-highlight: var(--text); --shimmer-band: 400%; --shimmer-ease: linear; }
.t-shimmer { position: relative; display: inline-block; color: var(--shimmer-base); }
.t-shimmer::before { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, transparent 0%, transparent 40%, var(--shimmer-highlight) 50%, transparent 60%, transparent 100%); background-size: var(--shimmer-band) 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: t-shimmer var(--shimmer-dur) var(--shimmer-ease) infinite; }
@keyframes t-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.btn.primary .t-shimmer { --shimmer-base: color-mix(in srgb, #1C1917 70%, transparent); --shimmer-highlight: #1C1917; }

/* Transitions: Text states swap ("Run check" → "Starting…" as the form submits) */
:root { --text-swap-dur: 150ms; --text-swap-translate-y: 4px; --text-swap-blur: 2px; --text-swap-ease: ease-in-out; }
.t-text-swap { display: inline-block; transform: translateY(0); filter: blur(0); opacity: 1; transition: transform var(--text-swap-dur) var(--text-swap-ease), filter var(--text-swap-dur) var(--text-swap-ease), opacity var(--text-swap-dur) var(--text-swap-ease); will-change: transform, filter, opacity; }
.t-text-swap.is-exit { transform: translateY(calc(var(--text-swap-translate-y) * -1)); filter: blur(var(--text-swap-blur)); opacity: 0; }
.t-text-swap.is-enter-start { transform: translateY(var(--text-swap-translate-y)); filter: blur(var(--text-swap-blur)); opacity: 0; transition: none; }


/* ================= A04 Translation workspace ================= */
.tr-cell { display: block; text-decoration: none; padding: 2px 0; }
.tr-cell:hover .st { text-decoration: underline; }
.tr-cell .sub { display: block; color: var(--muted); font-size: 12px; }
.fine-print { display: flex; gap: 6px; align-items: flex-start; margin: -6px 0 16px; }
.warn-text { color: var(--warn); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-direction: column; gap: 10px; }
.choice .check { align-items: flex-start; }
.choice .check input { margin-top: 3px; }
.choice .sub { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

/* Side by side: English source | translation (Etsy, Framer, ElevenLabs) */
.tr-grid { display: flex; flex-direction: column; }
.tr-head, .tr-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 10px 16px; }
.tr-head { font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.tr-head::before { content: ""; }
.tr-row { border-bottom: 1px solid var(--border); align-items: start; }
.tr-row:last-child { border-bottom: 0; }
.tr-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tr-src { color: var(--text-2); line-height: 1.6; font-size: 13.5px; }
.tr-src .sub, .tr-dst .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.tr-dst { line-height: 1.6; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.tr-dst input, .tr-dst textarea, .tr-dst select { width: 100%; }
.tr-dst textarea { resize: vertical; line-height: 1.55; }
.tr-row.is-empty .tr-dst textarea, .tr-row.is-empty .tr-dst input { border-color: color-mix(in srgb, var(--warn) 55%, var(--border-strong)); }
.tr-scripture { border-top: 1px solid var(--border); }
.tr-scripture h3 { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 16px 0; color: var(--text); font-size: 13px; }
.tr-actions { border-top: 1px solid var(--border); align-items: center; justify-content: flex-end; }
.tr-actions .check { flex: 1 1 200px; }

/* Side-by-side diff of the English source (21st.dev Diff Viewer: split view, word-level highlights) */
.diff { display: flex; flex-direction: column; }
.diff-head, .diff-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.diff-head span { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.diff-row { border-bottom: 1px solid var(--border); }
.diff-label { grid-column: 1 / -1; padding: 8px 16px 0; font-size: 12px; font-weight: 600; color: var(--text-2); }
.diff-side { padding: 6px 16px 10px; line-height: 1.6; font-size: 13.5px; white-space: pre-wrap; }
.diff-side.old { border-right: 1px solid var(--border); }
.diff del { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 3px; padding: 0 1px; }
.diff ins { background: var(--good-bg); color: var(--good); text-decoration: none; border-radius: 3px; padding: 0 1px; font-weight: 550; }
.revalidate { border-top: 1px solid var(--border); }

/* Review checklist (Transitions: Checkbox check) */
.checklist { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; }
.checklist legend { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 0 6px; }
.check-item { position: relative; display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 8px; font-weight: 500; color: var(--text); font-size: 13px; cursor: pointer; transition: background-color 150ms var(--ease); }
.check-item:hover { background: var(--soft); }
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
:root { --check-box: 150ms; --check-draw: 350ms; --check-delay: 0ms; --check-uncheck: 150ms; --check-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-check { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; display: grid; place-items: center; background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--border-strong); transition: background var(--check-box) var(--check-ease), box-shadow var(--check-box) var(--check-ease); }
.t-check svg { width: 10px; height: 10px; overflow: visible; }
.t-check svg path { fill: none; stroke: var(--check-mark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--check-len, 15); stroke-dashoffset: var(--check-len, 15); transition: stroke-dashoffset var(--check-uncheck) var(--check-ease); }
.check-item input:checked + .t-check, .t-check[aria-checked="true"] { background: var(--good); box-shadow: inset 0 0 0 1.5px var(--good); }
.check-item input:checked + .t-check svg path, .t-check[aria-checked="true"] svg path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--check-draw) var(--check-ease) var(--check-delay); }
.check-item input:focus-visible + .t-check { outline: 2px solid var(--focus); outline-offset: 2px; }
.tags-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Transitions: Error state shake (approving with points unticked) */
:root { --input-border-dur: 150ms; --shake-distance: 6px; --shake-overshoot: 4px; --shake-dur-a: 80ms; --shake-dur-b: 60ms; --shake-ease: cubic-bezier(0.22, 1, 0.36, 1); --revert-hold: 3000ms; --revert-dur: 280ms; }
.t-input { transition: border-color var(--input-border-dur) ease-out; will-change: transform; }
.t-input.is-error { border-color: var(--bad); transition: border-color var(--revert-dur, 280ms) ease-out; }
.t-error-msg { margin: 6px 2px 0; color: var(--bad); font-size: 12.5px; font-weight: 550; opacity: 0; visibility: hidden; transition: opacity var(--revert-dur, 280ms) ease-out, visibility 0s linear var(--revert-dur, 280ms); }
.t-input-wrap.is-error .t-error-msg { opacity: 1; visibility: visible; transition: opacity var(--revert-dur, 280ms) ease-out, visibility 0s linear 0s; }
.t-input.is-shaking { animation: t-input-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear; }
@keyframes t-input-shake {
  0% { transform: translateX(0); animation-timing-function: var(--shake-ease); }
  28.57% { transform: translateX(var(--shake-distance)); animation-timing-function: var(--shake-ease); }
  57.14% { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57% { transform: translateX(var(--shake-overshoot)); animation-timing-function: var(--shake-ease); }
  100% { transform: translateX(0); }
}

/* ================= A08 Email delivery ================= */
.delivery-tools { justify-content: space-between; }
details.scopes { margin-top: 8px; font-size: 12.5px; }
details.scopes summary { cursor: pointer; font-weight: 600; }
details.scopes p { margin: 6px 0 0; color: var(--text-2); line-height: 1.7; }
.metrics.metrics-6 { grid-template-columns: repeat(6, 1fr); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.seg-delivered { fill: var(--good); background: var(--good); }
.seg-bounced { fill: var(--bad); background: var(--bad); }
.seg-refused { fill: var(--warn); background: var(--warn); }
.seg-notsent { fill: var(--muted); background: var(--muted); }
.seg-pending { fill: var(--border-strong); background: var(--border-strong); }
.dot.is-partial-key { background: color-mix(in srgb, var(--good) 45%, transparent); }
.dchart { display: block; width: 100%; height: 180px; overflow: visible; }
.dchart-base { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dbar rect { transition: opacity 150ms var(--ease); }
.dbar.is-partial rect { opacity: .45; }
.dbar:hover rect { opacity: .82; }
.dbar.is-partial:hover rect { opacity: .6; }
.dchart-labels { display: flex; margin: 6px 0 12px; }
.dchart-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.delivery-table .num-col { width: auto; color: var(--text); text-align: right; }
.delivery-table .num-col .sub { display: block; color: var(--muted); font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .t-shimmer::before { animation: none !important; }
  .t-text-swap { transition: none !important; }
  .t-check, .t-check svg path { transition: none !important; }
  .t-input { animation: none !important; transform: none !important; }
}

/* ================= Small screens ================= */
@media (max-width: 960px) {
  .frame { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding-bottom: 0; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav-label { display: none; }
  .side-foot { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 8px; gap: 4px; }
  .side-foot a, .side-foot button { width: auto; }
  .side-foot form { display: inline; }
  .me { flex: 1 1 100%; }
  .canvas { margin: 8px; }
  .main { padding: 20px 16px 32px; }
  .split, .split.wide-side, .grid2 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-left: 0; border-top: 1px solid var(--border); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-brand { display: flex; }
  .matrix th.rung-col, .matrix td.rung-col { width: 64px; padding-left: 6px; padding-right: 6px; }
  .feature-cell { min-width: 150px; }
  .panel-head { flex-wrap: wrap; }
  .url-cell { max-width: 220px; }
  .grid2 .span2 { grid-column: auto; }
  .metrics.metrics-6 { grid-template-columns: repeat(3, 1fr); }
  .dchart { height: 140px; }
  .dchart-labels span:nth-child(even) { visibility: hidden; }
  .tr-head { display: none; }
  .tr-row { grid-template-columns: 1fr; gap: 6px; }
  .tr-src { padding-left: 10px; border-left: 2px solid var(--border-strong); }
  .diff-head { display: none; }
  .diff-row { grid-template-columns: 1fr; }
  .diff-side.old { border-right: 0; }
  .commerce .sec-prog .mini-bar { display: none; }
  .price-form { flex-wrap: wrap; }
}

/* ---------- A14 Commerce settings: a compliance checklist, not a checkout ---------- */
.mode-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); font-size: 13.5px; }
.mode-banner .tile { background: var(--raised); color: var(--info); }
.mode-pill { font: 700 11px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--info); border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 9px; white-space: nowrap; }

.commerce { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.commerce-side { position: sticky; top: 16px; }
@media (max-width: 1180px) { .commerce { grid-template-columns: 1fr; } .commerce-side { position: static; order: -1; } }
.csec { scroll-margin-top: 16px; }
.sec-title { display: flex; align-items: center; gap: 10px; }
.sec-num { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 700 11.5px/1 var(--font); background: var(--soft); color: var(--text-2); }
.sec-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec-prog.is-done { color: var(--good); font-weight: 600; }
.mini-bar { display: block; width: 64px; height: 6px; border-radius: 999px; overflow: hidden; }
.sec-intro { margin: 0; padding: 12px 16px 0; color: var(--text-2); font-size: 13px; max-width: 72ch; }
.sec-form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.sec-note { margin: 0; padding: 10px 16px 14px; color: var(--muted); font-size: 12.5px; }
.sec-callout { margin: 0 16px 14px; }
fieldset.bare { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.bare[disabled] input, fieldset.bare[disabled] select { background: var(--soft); color: var(--text-2); }
.last-change { margin: 0; font-size: 12px; color: var(--muted); }

/* Business model: radio cards */
.model-choice { display: flex; flex-direction: column; gap: 8px; }
.model-card { position: relative; flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.model-card:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.model-card input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.model-card strong { display: block; font-weight: 600; font-size: 13.5px; }
.model-card .sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.model-dot { width: 18px; height: 18px; margin-top: 1px; flex: none; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--border-strong); transition: box-shadow 150ms var(--ease); }
.model-card:has(input:checked) { border-color: var(--text); background: var(--panel); }
.model-card input:checked + .model-dot { box-shadow: inset 0 0 0 5.5px var(--text); }
.model-card input:focus-visible + .model-dot { outline: 2px solid var(--focus); outline-offset: 2px; }
fieldset.bare[disabled] .model-card { cursor: default; }

/* Offers: one row each, controls labelled above, what's still needed underneath */
.offer-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--border); }
.offer { padding: 12px 16px; border-top: 1px solid var(--border); }
.offer:first-child { border-top: 0; }
.offer.is-free { background: color-mix(in srgb, var(--good-bg) 45%, transparent); }
.offer-main { display: flex; align-items: center; gap: 12px; }
.ctrl.c-price { width: 206px; } .ctrl.c-test { width: 76px; } .ctrl.c-live { width: 64px; } .ctrl.c-learners { width: 158px; }
.price-form .small { white-space: nowrap; }
.price-wrap { position: relative; display: inline-flex; }
.price-wrap .t-error-msg { position: absolute; top: calc(100% + 4px); left: 0; z-index: 2; margin: 0; padding: 3px 8px; white-space: nowrap; border-radius: 6px; background: var(--raised); box-shadow: 0 2px 8px rgba(28,25,23,.12), 0 0 0 1px var(--border); }
.proof-field { flex: 1 1 280px; }
.proof-field label { display: flex; }
@media (max-width: 720px) {
  .offer-main { flex-wrap: wrap; }
  .offer-ctrls { width: 100%; padding-left: 44px; }
  .offer-ctrls .ctrl { width: auto; }
  .offer-needs { margin-left: 0; }
}
.offer-name { flex: 1 1 160px; min-width: 0; }
.offer-name strong { display: block; font-weight: 600; }
.offer-name .sub { display: block; color: var(--muted); font-size: 12.5px; }
.offer-ctrls { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.ctrl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 52px; }
.ctrl-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.toggle-form { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.offer-needs { margin: 8px 0 0 44px; font-size: 12.5px; color: var(--text-2); }
.offer-needs strong { font-weight: 600; color: var(--warn); }
.price-form { display: flex; align-items: center; gap: 6px; }
.money { display: inline-flex; align-items: center; padding-left: 9px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--raised); color: var(--muted); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.money input { width: 76px; min-height: 30px; padding: 4px 8px 4px 3px; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.money input:focus { box-shadow: none; }
.money:focus-within { border-color: var(--text-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.toggle-label { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.locked { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; color: var(--muted); font-size: 12.5px; }
.locked .i, .tag .i { width: 13px; height: 13px; }

/* Toggle (Transitions: Toggle). The thumb overshoots past the end, swings back and settles. */
:root { --toggle-dur: 350ms; --toggle-travel: 14.66px; --toggle-ov1: 1px; --toggle-ov2: 0px; --toggle-track: 0ms; --toggle-ease: cubic-bezier(0.34, 1.35, 0.64, 1); }
.t-toggle { position: relative; width: 34.66px; height: 20px; flex: none; padding: 2px; border: 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background var(--toggle-track) var(--toggle-ease); }
.t-toggle[data-on="true"] { background: var(--info); }
.t-toggle:disabled { cursor: not-allowed; opacity: .5; }
.t-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.t-toggle-thumb { display: block; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(28,25,23,.25); translate: 0 0; will-change: translate; }
.t-toggle[data-on="true"] .t-toggle-thumb { translate: var(--toggle-travel) 0; }
.t-toggle.is-init[data-on="true"] .t-toggle-thumb { animation: t-toggle-on var(--toggle-dur) var(--toggle-ease) both; }
.t-toggle.is-init[data-on="false"] .t-toggle-thumb { animation: t-toggle-off var(--toggle-dur) var(--toggle-ease) both; }
@keyframes t-toggle-on {
  0% { translate: 0 0; }
  55% { translate: calc(var(--toggle-travel) + var(--toggle-ov1)) 0; }
  80% { translate: calc(var(--toggle-travel) - var(--toggle-ov2)) 0; }
  100% { translate: var(--toggle-travel) 0; }
}
@keyframes t-toggle-off {
  0% { translate: var(--toggle-travel) 0; }
  55% { translate: calc(0px - var(--toggle-ov1)) 0; }
  80% { translate: var(--toggle-ov2) 0; }
  100% { translate: 0 0; }
}

/* Store regions */
.region-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--border); font-size: 12.5px; }

/* Readiness checklist rows (each a flat accordion holding its proof) */
.cchecks { list-style: none; margin: 12px 0 0; padding: 0; }
.cc.t-acc.flat { border-radius: 0; }
.cc.t-acc.flat:last-child { border-radius: 0 0 12px 12px; }
.cc .t-acc-head { align-items: flex-start; gap: 12px; padding: 11px 16px; border-radius: 0; font-weight: 500; }
.cc:last-child .t-acc-head { border-radius: 0 0 12px 12px; }
.cc[data-open="true"]:last-child .t-acc-head { border-radius: 0; }
.cc-text { min-width: 0; }
.cc-title { display: block; font-weight: 600; font-size: 13.5px; }
.cc-text .sub { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; font-weight: 400; overflow-wrap: anywhere; }
.cc.is-done .cc-title { color: var(--text-2); }
.cc.is-na .cc-title { color: var(--muted); }
.cc-body { padding: 0 16px 14px 48px; display: flex; flex-direction: column; gap: 8px; }
.cc-body p { margin: 0; }
.proof-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.proof-form label { flex: 1 1 280px; }
.cstat { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; }
.cstat.open { border: 1.5px dashed var(--muted); }
.cstat.na { border: 1.5px solid var(--border); background: var(--soft); }
.cstat.done { background: var(--good); }
.cstat svg { display: block; width: 20px; height: 20px; overflow: visible; }
.cstat svg path { fill: none; stroke: var(--check-mark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Success check (Transitions: Success check): a check just recorded fades, turns upright, settles and draws. */
:root { --check-opacity-dur: 500ms; --check-rotate-dur: 500ms; --check-rotate-from: 80deg; --check-bob-dur: 500ms; --check-y-amount: 40px; --check-blur-dur: 500ms; --check-blur-from: 10px; --check-path-dur: 500ms; --check-path-delay: 80ms; --check-ease-out: cubic-bezier(0.22, 1, 0.36, 1); --check-ease-opacity: cubic-bezier(0.22, 1, 0.36, 1); --check-ease-rotate: cubic-bezier(0.22, 1, 0.36, 1); --check-ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1); --check-ease-path: cubic-bezier(0.22, 1, 0.36, 1); }
.t-success-check { transform-origin: center; opacity: 0; will-change: transform, opacity, filter; }
.cstat.t-success-check { --check-y-amount: 10px; --check-blur-from: 4px; } /* scaled to a 20px row icon */
.t-success-check svg path { stroke-dasharray: 12; stroke-dashoffset: 12; }
.t-success-check[data-state="in"] {
  animation: t-check-fade var(--check-opacity-dur) var(--check-ease-opacity) forwards, t-check-rotate var(--check-rotate-dur) var(--check-ease-rotate) forwards,
    t-check-blur var(--check-blur-dur) var(--check-ease-out) forwards, t-check-bob var(--check-bob-dur) var(--check-ease-bob) forwards;
}
.t-success-check[data-state="in"] svg path { animation: t-check-draw var(--check-path-dur) var(--check-ease-path) var(--check-path-delay, 0ms) forwards; }
.no-js .t-success-check { opacity: 1; }
.no-js .t-success-check svg path { stroke-dashoffset: 0; }
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate { from { transform: rotate(var(--check-rotate-from)); } to { transform: rotate(0deg); } }
@keyframes t-check-blur { from { filter: blur(var(--check-blur-from)); } to { filter: blur(0); } }
@keyframes t-check-bob { from { translate: 0 var(--check-y-amount); } to { translate: 0 0; } }
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }

/* Readiness side card */
.ready-count { margin: 0; font-size: 13px; color: var(--text-2); }
.ready-count .num { margin-right: 2px; font: 650 28px/1.1 var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
.ready .bar { margin: 8px 0 12px; }
.sec-nav { list-style: none; margin: 0 0 14px; padding: 0; }
.sec-nav a { display: flex; align-items: center; gap: 10px; margin: 0 -8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: 13px; transition: background-color 150ms var(--ease); }
.sec-nav a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); } /* see-through, works on any card tint */
.sec-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-count.is-done { color: var(--good); font-weight: 600; }
.side-h { margin: 0 0 8px; }
.blockers { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.blockers li { display: flex; align-items: flex-start; gap: 8px; }
.blockers .i { width: 14px; height: 14px; margin-top: 2px; flex: none; color: var(--warn); }
.all-clear { display: flex; align-items: center; gap: 8px; color: var(--good); font-weight: 600; font-size: 13px; }
.ready .fine-print { margin: 0; }
.live-pending { border-top: 1px solid var(--border); }
.live-hist { margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) {
  .t-toggle-thumb { animation: none !important; }
  .t-success-check { animation: none !important; opacity: 1; }
  .t-success-check svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------- A11 Incidents and the audit chain ---------- */
.good-text { color: var(--good); } .bad-text { color: var(--bad); }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font: 700 11px/16px var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.nav-count.bad { background: var(--bad); color: var(--on-brand); }
.metrics.metrics-4 { grid-template-columns: repeat(4, 1fr); }
.metric-note { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.field-label { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* Severity: a tag, a dot, and radio cards that say what each level means */
.sev-tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--soft); color: var(--text-2); }
.sev-tag.bad { background: var(--bad); color: var(--on-brand); }
.sev-tag.warn { background: var(--warn-bg); color: var(--warn); }
.sev-tag.info { background: var(--info-bg); color: var(--info); }
.sev-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--border-strong); }
.sev-dot.bad { background: var(--bad); } .sev-dot.warn { background: var(--warn); } .sev-dot.info { background: var(--info); }
.sev-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sev-card { position: relative; flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.sev-card:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.sev-card input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sev-card .sev-dot { margin-top: 4px; box-shadow: 0 0 0 3px var(--raised), 0 0 0 4px transparent; transition: box-shadow 150ms var(--ease); }
.sev-card:has(input:checked) { border-color: var(--text); background: var(--panel); }
.sev-card input:checked + .sev-dot { box-shadow: 0 0 0 3px var(--panel), 0 0 0 4.5px var(--text); }
.sev-card input:focus-visible + .sev-dot { outline: 2px solid var(--focus); outline-offset: 4px; }
.sev-card strong { display: block; font-weight: 600; }
.sev-card .sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.legend-reset { padding: 0; }

/* Incident status dots: investigating (red), identified (orange), monitoring (blue); resolved uses .st.live */
.st.inc-investigating::before { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.st.inc-identified::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.st.inc-monitoring::before { background: var(--info); box-shadow: 0 0 0 3px var(--info-bg); }

/* List */
.inc-list { list-style: none; margin: 0; padding: 0; }
.inc-row a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); text-decoration: none; transition: background-color 150ms var(--ease); }
.inc-row:first-child a { border-top: 0; }
.inc-row a:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.inc-row .sev-tag { min-width: 52px; justify-content: center; }
.inc-main { min-width: 0; }
.inc-title { display: block; font-weight: 600; }
.inc-main .sub { display: block; color: var(--muted); font-size: 12.5px; }
.inc-row.is-closed .inc-title { color: var(--text-2); font-weight: 550; }
.inc-row > a > .i { color: var(--muted); }
.declare { margin-bottom: 16px; }

/* Detail */
.inc-head h1 { margin-top: 2px; }
.inc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.stepper.four { grid-template-columns: repeat(4, 1fr); }
.stepper.four li.now { background: var(--bad); }
.step-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.step-labels span.is-now { color: var(--text); font-weight: 650; }
.ack-callout { align-items: center; }
.ack-callout .grow { flex: 1; }
.inc-timeline { padding-top: 16px; padding-bottom: 16px; }
.inc-timeline li { padding-bottom: 18px; }
.inc-timeline li.ev-acknowledged::before { border-color: var(--info); }
.inc-timeline li.ev-declared::before { border-color: var(--bad); background: var(--bad); }
.inc-timeline li.to-resolved::before { border-color: var(--good); background: var(--good); }
.inc-timeline li.ev-linked::before { border-color: var(--good); }
.inc-timeline .sev-tag { font-size: 11.5px; padding: 0 6px; }
.ev-changes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; }
.chg s { color: var(--muted); }
.ev-body { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); white-space: pre-line; overflow-wrap: anywhere; }
.linked { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--raised); }
.linked .sub { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

/* Audit: chain panel and details as readable pairs */
.chain-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.chain-row h2 { margin-bottom: 4px; }
.chain-row p { margin: 0 0 4px; max-width: 80ch; }
.chain-row form { align-self: center; }
.chain-check svg { width: 20px; height: 20px; }
.chain-check svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kv { display: inline-block; margin: 0 12px 2px 0; white-space: nowrap; }
.audit-table .kv { margin-right: 10px; font-size: 12.5px; }
@media (max-width: 720px) {
  .sev-choice { grid-template-columns: 1fr; }
  .metrics.metrics-4 { grid-template-columns: repeat(2, 1fr); }
  .chain-row { flex-wrap: wrap; }
}

/* Text morph (Transitions): “Acknowledge” → “Acknowledged”; only the differing letters cross-blur, the width eases. */
:root { --text-morph-dur: 180ms; --text-morph-resize-dur: 240ms; --text-morph-blur: 2px; --text-morph-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-morph { white-space: nowrap; }
.t-morph-swap { display: inline-grid; vertical-align: bottom; justify-items: start; transition: width var(--text-morph-resize-dur) var(--text-morph-ease); }
.t-morph-swap > span { grid-area: 1 / 1; white-space: pre; transition: opacity var(--text-morph-dur) var(--text-morph-ease), filter var(--text-morph-dur) var(--text-morph-ease); }
.t-morph-new { opacity: 0; filter: blur(var(--text-morph-blur)); }
.t-morph-swap.is-morphing .t-morph-old { opacity: 0; filter: blur(var(--text-morph-blur)); }
.t-morph-swap.is-morphing .t-morph-new { opacity: 1; filter: blur(0); }

/* Texts reveal (Transitions): the update you just posted rises into the timeline with a staggered blur. */
:root { --stagger-dur: 500ms; --stagger-distance: 12px; --stagger-stagger: 40ms; --stagger-blur: 3px; --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-stagger-line { display: block; opacity: 0; transform: translateY(var(--stagger-distance)); filter: blur(var(--stagger-blur)); transition: opacity var(--stagger-dur) var(--stagger-ease), transform var(--stagger-dur) var(--stagger-ease), filter var(--stagger-dur) var(--stagger-ease); will-change: transform, opacity, filter; }
.t-stagger-line--2 { transition-delay: var(--stagger-stagger); }
.t-stagger.is-shown .t-stagger-line { opacity: 1; transform: translateY(0); filter: blur(0); }
.no-js .t-stagger-line { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .t-morph-swap, .t-morph-swap > span, .t-stagger-line { transition: none !important; }
}

/* ---------- A07 Class-email subscribers ---------- */
.sub-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sub-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--raised); font-size: 12.5px; color: var(--text-2); }
.sub-steps li.now { border-color: var(--text); background: var(--panel); color: var(--text); }
.sub-step-n { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 11.5px/1 var(--font); background: var(--soft); color: var(--text-2); }
.sub-steps li.done .sub-step-n { background: var(--good); color: var(--check-mark); }
.sub-steps li.now .sub-step-n { background: var(--gold); color: #1C1917; }
.sub-steps strong { color: var(--text); font-weight: 650; }

.metrics.inset { margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.metrics.inset .metric:first-child, .metrics.inset .metric:last-child { border-radius: 0; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.panel-foot .muted { flex: 1 1 260px; }
.dry-run { border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); }
.dry-run h3 { margin: 4px 0 6px; }
.skipped { margin: 0; }
.skipped-list { margin: 0; padding: 4px 16px 12px 40px; font-size: 12.5px; color: var(--text-2); }

/* Flags: one colour family each, never purple */
.flag-tag { display: inline-flex; align-items: center; margin: 0 4px 3px 0; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--text-2); }
.flag-tag.duplicate { background: var(--bad-bg); color: var(--bad); }
.flag-tag.conflict, .flag-tag.alias { background: var(--warn-bg); color: var(--warn); }
.flag-tag.unknown_class { background: var(--info-bg); color: var(--info); }
.flag-tag.inactive { background: var(--soft); color: var(--muted); }
.flag-tag.clean { background: var(--good-bg); color: var(--good); }
.flag-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-variant-numeric: tabular-nums; }
.flag-counts .flag-tag { margin-right: 6px; }
.flag-why { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.person-list { list-style: none; margin: 0; padding: 0; }
.person-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.person-list li:first-child { border-top: 0; }

/* List */
.find { display: flex; gap: 8px; align-items: flex-start; }
.find-wrap { position: relative; display: block; }
.find-wrap .search { max-width: none; width: 280px; }
.find-wrap .t-error-msg { position: absolute; top: calc(100% + 4px); left: 0; z-index: 2; margin: 0; padding: 3px 8px; white-space: nowrap; border-radius: 6px; background: var(--raised); box-shadow: 0 2px 8px rgba(28,25,23,.12), 0 0 0 1px var(--border); }
.inset-tabs { margin: 0; padding: 0 8px; }
.people-table td { vertical-align: top; }
.people-table .sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Upload: a dashed drop zone with the real file input stretched over it */
.upload-acc { margin-top: 16px; }
.drop { position: relative; flex-direction: row; align-items: center; gap: 14px; padding: 22px 18px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--panel); color: var(--text); font-weight: 500; cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.drop:hover, .drop.is-over { border-color: var(--text-2); background: color-mix(in srgb, var(--text) 4%, var(--panel)); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; }
.drop input[type=file]:focus-visible + .i { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.drop > .i { width: 22px; height: 22px; flex: none; color: var(--muted); }
.drop-text { display: flex; flex-direction: column; gap: 3px; }
.drop.t-input.is-error { border-color: var(--bad); border-style: solid; }

/* One person: side-by-side compare */
.mask-title { font-family: var(--mono); font-size: 22px; letter-spacing: 0; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: start; margin-bottom: 16px; }
.compare .panel { margin-bottom: 0; }
.compare-arrow { align-self: center; display: grid; place-items: center; color: var(--muted); }
.sub-rows { list-style: none; margin: 0; padding: 0; }
.sub-rows li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--border); }
.sub-rows li:first-child { border-top: 0; }
.sub-rows li.is-off strong { color: var(--muted); }
.sub-rows .sub { display: block; color: var(--muted); font-size: 12.5px; }
.class-choice { display: flex; flex-direction: column; gap: 8px; }
.sev-card.is-disabled { opacity: .6; cursor: not-allowed; }
.other-class select { margin-top: 6px; width: 100%; max-width: 360px; }
.kept-check, .approve-check { display: inline-block; vertical-align: -4px; margin-right: 6px; color: var(--good); }
.kept-check svg, .approve-check svg { width: 18px; height: 18px; }
.kept-check svg path, .approve-check svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .sub-steps { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; gap: 8px; }
  .compare-arrow { transform: rotate(90deg); }
  .find { width: 100%; }
  .find-wrap, .find-wrap .search { width: 100%; flex: 1; }
}

/* ---------- A12 Product analytics: weekly totals, never a person ---------- */
.analytics-tools { align-items: center; }
.period-tabs { margin: 0 8px 0 0; border-bottom: 0; }
.period-tabs a { padding: 6px 10px; }
.north { margin-bottom: 16px; }
.north-row { display: flex; align-items: center; gap: 18px; padding: 16px; }
.north-row h2 { margin-bottom: 4px; }
.north-row p { margin: 0 0 4px; }
.north-figure { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); }
.north-pct { font: 650 26px/1 var(--font); color: var(--good); font-variant-numeric: tabular-nums; }

.legend .key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.key.s-opened { background: var(--path); } .key.s-completed { background: var(--good); } .key.s-day7 { background: var(--info); }
.line-chart { display: block; width: 100%; height: auto; overflow: visible; }
.line-chart .grid { stroke: var(--border); stroke-width: 1; }
.line-chart .tick { fill: var(--muted); font: 500 11px var(--font); }
.line-chart .line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .dot { stroke: var(--raised); stroke-width: 2; }
.line-chart .count { font: 650 11px var(--font); font-variant-numeric: tabular-nums; }
.line-chart .s-opened { stroke: var(--path); } .line-chart .dot.s-opened, .line-chart .count.s-opened { fill: var(--path); }
.line-chart .s-completed { stroke: var(--good); } .line-chart .dot.s-completed, .line-chart .count.s-completed { fill: var(--good); }
.line-chart .s-day7 { stroke: var(--info); }
.line-chart .line.s-day7 { stroke-dasharray: 5 4; }
.key.s-day7 { background: repeating-linear-gradient(90deg, var(--info) 0 5px, transparent 5px 8px); } .line-chart .dot.s-day7, .line-chart .count.s-day7 { fill: var(--info); }
.line-chart .dot { stroke: var(--raised); }
.num-table { margin: 0; }
.num-table th, .num-table td { padding-top: 7px; padding-bottom: 7px; }
.num-col { text-align: right; font-variant-numeric: tabular-nums; }

.class-funnel .sub { display: block; color: var(--muted); font-size: 12px; }
.rate { display: inline-flex; align-items: center; gap: 8px; }
.rate-bar { display: block; width: 90px; height: 6px; border-radius: 999px; overflow: hidden; }
.share-list { list-style: none; margin: 0; padding: 6px 0; }
.share-list li { display: flex; align-items: center; gap: 10px; padding: 7px 16px; font-size: 13px; }
.share-list li.cohort:first-of-type, .share-list li + li.cohort:not(.cohort + .cohort) { border-top: 1px solid var(--border); }
.share-list .num { font-weight: 650; font-variant-numeric: tabular-nums; }
.dictionary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 13px; }
.dictionary ul { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  .dictionary { grid-template-columns: 1fr; }
  .north-row { flex-direction: column; align-items: flex-start; }
}

/* E10: development-only outbox of link codes */
.outbox { margin-top: 16px; border-style: dashed; }
.outbox-list { padding: 4px 16px 12px; }
.outbox-list .code { font: 650 18px/1 var(--mono); letter-spacing: 3px; }

/* J13 correction note on a new version */
fieldset.correction { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 14px; background: var(--soft); }
fieldset.correction legend { padding: 0 6px; font-weight: 600; }

/* L04 topic class picker */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }

/* M12: keep the sender's own line breaks */
.prose .pre { white-space: pre-wrap; }

/* A09 Table report cases */
.steps-list li { align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--border); }
.steps-list li:first-child { border-top: 0; }
.steps-list li > form, .steps-list li > .muted, .steps-list li > .tag { margin-left: auto; flex: none; align-self: center; }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; min-height: 32px; cursor: pointer; }
label.check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.outcome-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 16px; }
.case-photo { border-radius: 12px; max-width: 100%; height: auto; display: block; }
.plain-list { margin: 0; padding: 12px 16px 4px 34px; display: grid; gap: 6px; font-size: 13px; }
label.check.t-input, .outcome-choice.t-input { border: 1px solid transparent; border-radius: 8px; padding: 2px 8px; margin-left: -8px; }

/* L08 book text box */
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.5; }
.qr-box { display: flex; justify-content: center; padding: 12px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; width: fit-content; margin: 4px auto; }
.qr { display: block; width: 180px; height: 180px; image-rendering: pixelated; border-radius: 6px; }
