@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations"), url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-ext.woff2") format("woff2-variations"), url("fonts/bricolage-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #e8ecf1;
  --paper: #ffffff;
  --ink: #102036;
  --ink-2: #2b3a50;
  --slate: #5b6779;
  --line: #d2d9e2;
  --field: #f5f7fa;
  --verified: #0b7a57;
  --verified-soft: #e2f3ec;
  --blocked: #b23a2b;
  --blocked-soft: #f9e7e4;
  --signal: #e9b23b;
  --screen: #102036;
  --screen-text: #f2f5f9;
  --screen-dim: #8fa0b8;
  --seal: #34c28f;
  --focus: #e9b23b;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1622;
    --paper: #13202f;
    --ink: #e9eef4;
    --ink-2: #c7d1dd;
    --slate: #93a1b3;
    --line: #243548;
    --field: #0f1b28;
    --verified: #4fd1a1;
    --verified-soft: #10302a;
    --blocked: #f08a7a;
    --blocked-soft: #3a1c1a;
    --screen: #050c15;
    --screen-text: #f2f5f9;
    --screen-dim: #7d8da3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "opsz" 14;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2 { font-weight: 700; margin: 0; }
h2 { font-size: 1.25rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }

a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--field); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

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

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark rect { fill: #102036; stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1.5; }
.brand-mark path { fill: none; stroke: var(--seal); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who { color: var(--slate); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main.wrap { padding-top: 28px; padding-bottom: 64px; }

/* ---------- Buttons & fields ---------- */
.btn {
  font: inherit; font-weight: 650; font-size: 0.98rem;
  border-radius: var(--radius-sm); padding: 11px 18px; min-height: 46px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--slate); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); min-height: 38px; padding: 7px 14px; font-size: 0.92rem; }
.btn-quiet:hover { border-color: var(--slate); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--slate); font-size: 0.84rem; }

input {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--field); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; min-height: 46px;
}
input::placeholder { color: var(--slate); opacity: .7; }
input:focus { outline: none; border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 45%, transparent); }
input:disabled { opacity: .55; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hint { color: var(--slate); margin: 6px 0 0; font-size: 0.94rem; max-width: 60ch; }
.hint strong { color: var(--ink); font-weight: 650; }
.muted { color: var(--slate); }

/* ---------- Flash ---------- */
.flash {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 22px;
  font-weight: 550; border: 1px solid transparent;
}
.flash svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flash-success { background: var(--verified-soft); color: var(--verified); border-color: color-mix(in srgb, var(--verified) 25%, transparent); }
.flash-error { background: var(--blocked-soft); color: var(--blocked); border-color: color-mix(in srgb, var(--blocked) 25%, transparent); }

/* ---------- The caller screen (signature element) ---------- */
.screen {
  position: relative; overflow: hidden;
  background: var(--screen); color: var(--screen-text);
  border-radius: var(--radius-lg);
  padding: 22px 28px 26px;
  background-image:
    radial-gradient(120% 140% at 100% 0%, rgba(52,194,143,.16), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
}
.screen-top { display: flex; justify-content: space-between; align-items: center; color: var(--screen-dim); font-size: 0.92rem; }
.screen-bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.screen-bars i { display: block; width: 4px; background: var(--screen-dim); border-radius: 1px; }
.screen-bars i:nth-child(1) { height: 25%; } .screen-bars i:nth-child(2) { height: 50%; }
.screen-bars i:nth-child(3) { height: 75%; } .screen-bars i:nth-child(4) { height: 100%; }

.screen-number {
  font-weight: 640;
  font-stretch: 75%;
  font-variation-settings: "opsz" 96, "wdth" 75;
  font-size: clamp(2.6rem, 8.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
  white-space: nowrap;
}
.screen-number-empty { color: var(--screen-dim); font-weight: 450; }

.screen-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.screen-meta { color: var(--screen-dim); font-size: 0.92rem; }

.seal {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--seal); font-weight: 650; font-size: 1rem;
}
.seal svg { width: 22px; height: 22px; }
.seal svg path:first-child { fill: var(--seal); }
.seal svg .tick { fill: none; stroke: var(--screen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* One orchestrated moment: the seal stamps in once */
@media (prefers-reduced-motion: no-preference) {
  .screen .seal { animation: stamp .55s cubic-bezier(.2,.9,.3,1.3) .35s both; }
  @keyframes stamp { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
}

/* ---------- Public page ---------- */
.public { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 24px; }
.public h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96; font-weight: 720;
  max-width: 15ch;
}
.lede { color: var(--slate); font-size: 1.1rem; max-width: 52ch; margin: 18px 0 30px; }
.screen-demo .screen-number { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.screen-caption { margin: 18px 0 0; color: var(--screen-dim); font-size: 0.86rem; }

.auth { padding: 8px 24px 26px; position: sticky; top: 24px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.tab {
  font: inherit; font-weight: 600; color: var(--slate); background: none; border: 0;
  padding: 16px 0 13px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.nojs-title { display: none; }
.auth:not(.js-ready) .tabs { display: none; }
.auth:not(.js-ready) .nojs-title { display: block; margin-top: 18px; }
.auth.js-ready .tabpanel[hidden] { display: none; }

/* ---------- Dashboard ---------- */
.is-app .screen-live { margin-bottom: 22px; }
.screen-live.is-empty { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }

.grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; align-items: start; }

.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 22px 44px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-head { display: flex; align-items: center; gap: 12px; font-weight: 650; min-height: 30px; margin-left: -44px; margin-bottom: 10px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 0.9rem; font-weight: 700; border: 2px solid var(--line); color: var(--slate); background: var(--paper);
}
.step.is-current .step-num { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.step.is-done .step-num { border-color: var(--verified); color: var(--verified); }
.step.is-waiting .step-head { color: var(--slate); }
.step .hint { margin: 0 0 10px; }

.inline-form { display: flex; gap: 10px; align-items: stretch; }
.inline-form .grow { flex: 1; min-width: 0; }

.code-input { font-size: 1.5rem; letter-spacing: 0.35em; font-weight: 600; padding-left: 16px; }
.code-input::placeholder { letter-spacing: 0.35em; }

.testmode {
  margin: 22px 0 0; padding: 12px 14px; font-size: 0.9rem; color: var(--ink-2);
  border-left: 3px solid var(--signal); background: color-mix(in srgb, var(--signal) 10%, var(--paper));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

#dial h2 { margin-bottom: 18px; }
.locked {
  display: flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  background: var(--verified-soft); color: var(--verified); font-weight: 650;
  border: 1px solid color-mix(in srgb, var(--verified) 22%, transparent);
}
.locked svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.override { border-top: 1px dashed var(--line); padding-top: 12px; }
.override summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 0.94rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.override summary::-webkit-details-marker { display: none; }
.override summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.override[open] summary::before { transform: rotate(45deg); }
.override .field { margin-top: 12px; }

/* ---------- Activity ---------- */
.activity-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tally { margin: 0; color: var(--slate); font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-blocked { margin-left: 10px; }
.dot-sent { background: var(--verified); } .dot-blocked { background: var(--blocked); }

.table-scroll { position: relative; overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { text-align: left; font-weight: 600; color: var(--slate); font-size: 0.86rem; padding: 8px 12px 10px 0; border-bottom: 1px solid var(--line); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.when span { color: var(--slate); }
td s { color: var(--blocked); text-decoration-thickness: 1.5px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.84rem; font-weight: 650; }
.pill-sent { background: var(--verified-soft); color: var(--verified); }
.pill-blocked { background: var(--blocked-soft); color: var(--blocked); }
.empty { margin: 0; padding: 22px; text-align: center; color: var(--slate); border: 1px dashed var(--line); border-radius: var(--radius-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .public { grid-template-columns: 1fr; gap: 32px; padding-top: 4px; }
  .auth { position: static; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 18px; }
  .who { display: none; }
  .panel { padding: 20px 18px; }
  .auth { padding: 4px 18px 22px; }
  .screen { padding: 18px 20px 22px; border-radius: 18px; }
  .screen-number { font-size: clamp(2rem, 11vw, 3rem); margin: 16px 0 14px; }
  .inline-form { flex-direction: column; }
  .table-scroll { margin: 0 -18px; padding: 0 18px; }
}

/* ---------- Shared bits added for admin ---------- */
.btn-link { display: inline-block; text-decoration: none; }
em { font-style: normal; color: var(--slate); font-weight: 400; }
.small { font-size: 0.84rem; }
select {
  font: inherit; color: var(--ink); width: 100%; min-height: 46px;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.auth-title { padding: 18px 0 16px; }
.dial-hint { margin: 6px 0 18px; }
#dial .dial-hint + .form { margin-top: 0; }
.pill-pending { background: color-mix(in srgb, var(--signal) 22%, var(--paper)); color: var(--ink); }
.pill-neutral { background: var(--field); color: var(--ink-2); border: 1px solid var(--line); }

.topnav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topnav > a { text-decoration: none; font-weight: 600; color: var(--slate); padding: 8px 12px; border-radius: 8px; }
.topnav > a:hover { color: var(--ink); }
.topnav > a[aria-current="page"] { color: var(--ink); background: var(--field); }
.topnav .topbar-user { margin-left: 10px; }

/* ---------- Admin ---------- */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: 2rem; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.subnav a { text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--slate); padding: 8px 14px; border-radius: 9px; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stack { display: grid; gap: 22px; }

.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; border: 2px solid var(--line); color: var(--slate); }
.checklist li.ok .ck { background: var(--verified); border-color: var(--verified); color: #fff; }
.checklist strong { display: block; line-height: 30px; }
.checklist li.ok strong { color: var(--ink-2); }
.checklist p { margin: 0; color: var(--slate); font-size: 0.93rem; max-width: 60ch; }
.checklist a { display: inline-block; margin-top: 6px; font-weight: 650; color: var(--ink); }

.balance-figure {
  margin: 12px 0 2px; font-weight: 650; font-stretch: 80%;
  font-variation-settings: "opsz" 72, "wdth" 80; font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.01em;
}
.glance { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.glance div { padding: 12px 0; border-top: 1px solid var(--line); }
.glance div:nth-child(-n+2) { border-top: 0; }
.glance dt { color: var(--slate); font-size: 0.88rem; }
.glance dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 650; font-variation-settings: "opsz" 48; }

.settings { display: grid; gap: 22px; }
.settings .panel { scroll-margin-top: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--field); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.check strong { display: block; font-weight: 650; }
.check small { color: var(--slate); font-size: 0.88rem; }
.check:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { font-size: 0.88rem; color: var(--ink-2); }
.savebar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.savebar .btn { min-width: 180px; }

.linkbtn { font: inherit; background: none; border: 0; padding: 4px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.92rem; }
.linkbtn.danger { color: var(--blocked); }
.numrow { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.menu { position: relative; }
.menu summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; list-style: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; display: inline-block; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--field); }
.menu:not([open]) .menu-body { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 260px; box-shadow: 0 12px 32px rgba(16, 32, 54, .14); display: grid; gap: 10px; }
.menu-body form:first-child { display: grid; justify-items: start; }
.pwrow { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.pwrow input { min-height: 38px; padding: 7px 10px; font-size: 0.9rem; }
.pwrow .btn { min-height: 38px; padding: 7px 12px; }
tr.is-disabled td { color: var(--slate); }
table.users td { white-space: normal; }

/* ---------- Installer ---------- */
.install { max-width: 620px; margin: 0 auto; }
.install h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; font-variation-settings: "opsz" 72; margin-bottom: 8px; }
.progress { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; }
.progress li { flex: 1; font-size: 0.86rem; font-weight: 600; color: var(--slate); padding-top: 10px; border-top: 3px solid var(--line); }
.progress li.on { color: var(--ink); border-top-color: var(--ink); }
.progress li.ok { color: var(--verified); border-top-color: var(--verified); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 0.94rem; }
.checks .mark { font-weight: 800; }
.checks .yes .mark { color: var(--verified); }
.checks .no .mark { color: var(--blocked); }
.checks small { display: block; color: var(--slate); }
.finish { display: grid; gap: 12px; margin: 18px 0 24px; padding-left: 20px; }

@media (max-width: 880px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .two, .three { grid-template-columns: 1fr; }
  .topnav > a { padding: 8px 8px; }
  .topnav .topbar-user { margin-left: 2px; }
  .brand span { display: none; }
  .admin-head h1 { font-size: 1.6rem; }
  .copyrow { flex-direction: column; }
}

/* ---------- Password reset & account ---------- */
.forgot { justify-self: center; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); text-underline-offset: 3px; }
.narrow { max-width: 560px; margin: 0 auto; }
.narrow-title, .page-title { font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -0.02em; font-variation-settings: "opsz" 72; margin-bottom: 8px; }
.page-title { margin-bottom: 18px; }
.resend { margin-top: 14px; font-size: 0.92rem; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.backlink { margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.backlink a { font-weight: 600; text-underline-offset: 3px; }
.details { margin: 10px 0 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; }
.details dt { color: var(--slate); }
.details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .topnav { gap: 0; }
  .topnav > a { padding: 8px 6px; font-size: 0.92rem; }
}

/* Voice provider fields */
.voice-fields { display: grid; gap: 16px; }
.voice-fields[hidden] { display: none; }
