/* Yanut base styles (visual language v2): reset, type, shared components. Needs tokens.css.
   Fonts come from partials/_head.html (@font-face, self-hosted). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 500 var(--t-2)/1.6 var(--f-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 560; line-height: 1.15; margin: 0 0 var(--s-3);
  color: var(--c-ink); text-wrap: balance; font-variation-settings: var(--opsz-sub); letter-spacing: -0.01em;
}
h1 { font-size: var(--t-6); letter-spacing: -0.02em; }
h2 { font-size: var(--t-5); }
h3 { font-size: var(--t-4); }
h4 { font-size: var(--t-3); }
p { margin: 0 0 var(--s-4); max-width: 68ch; text-wrap: pretty; }
a { color: var(--c-ink); text-decoration-color: var(--c-line-strong); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color var(--d-1) var(--ease); }
a:hover { text-decoration-color: currentColor; }
small, .muted { color: var(--c-ink-2); font-size: var(--t-1); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-5) 0; }
img, svg { max-width: 100%; }
ul, ol { padding-left: 1.25rem; }
code, kbd { font-family: var(--f-mono); font-size: 0.92em; }
strong, b { font-weight: 700; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 10;
  background: var(--c-ink); color: var(--c-paper); padding: var(--s-2) var(--s-4); border-radius: var(--r-1);
}
.skip-link:focus { top: var(--s-3); }

/* Page width and left edge are the opening page's (site.css .s-wrap): 76rem. */
.wrap { width: min(100% - 2 * var(--s-4), 76rem); margin-inline: auto; }
@media (min-width: 48rem) { .wrap { width: min(100% - 2 * var(--s-6), 76rem); } }
.wrap--narrow { width: min(100% - 2 * var(--s-4), 36rem); margin-inline: auto; }
main { padding-block: var(--s-6) var(--s-8); }
/* Presenter and public pages: a column that keeps the footer at the bottom. */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.shell > main { flex: 1 0 auto; width: min(100% - 2 * var(--s-4), 76rem); }
@media (min-width: 48rem) { .shell > main { width: min(100% - 2 * var(--s-6), 76rem); } }

/* Wordmark: brand name in Fraunces and a small accent dot (partials/_wordmark.html). */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.08em; font: 600 1.375rem/1 var(--f-display); font-variation-settings: var(--opsz-sub); letter-spacing: -0.02em; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.wordmark__dot { display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--c-accent); transform: translateY(-0.02em); }
a.wordmark:hover { color: var(--c-ink); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--c-line); background: var(--c-paper); }
.topbar__in { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; flex-wrap: wrap; }
.topbar__brand { font: 600 1.375rem/1 var(--f-display); font-variation-settings: var(--opsz-sub); letter-spacing: -0.02em; color: var(--c-ink); text-decoration: none; margin-right: auto; }
.topbar__brand::after { content: ""; display: inline-block; width: 0.22em; height: 0.22em; margin-left: 0.08em; border-radius: 50%; background: var(--c-accent); }
.topbar__in > .wordmark { margin-right: auto; }

/* Plain footer of the public pages */
.site-foot { border-top: 1px solid var(--c-line); padding-block: var(--s-6); color: var(--c-ink-2); font-size: var(--t-1); }
.site-foot__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); flex-wrap: wrap; }
.site-foot .wordmark { font-size: 1.125rem; }
.site-foot__nav { display: flex; align-items: center; gap: var(--s-2) var(--s-5); flex-wrap: wrap; }
.site-foot__nav a { color: var(--c-ink-2); text-decoration: none; white-space: nowrap; font-weight: 600; }
.site-foot__nav a:hover { color: var(--c-ink); }
.site-foot__nav span { white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.topbar a { color: var(--c-ink-2); text-decoration: none; min-height: 24px; font-weight: 600; font-size: var(--t-1); }
.topbar a:hover { color: var(--c-ink); }
.topbar a[aria-current="page"] { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-ink); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.topbar a.btn { color: var(--c-ink); }
.topbar a.wordmark { color: var(--c-ink); font-size: 1.375rem; font-weight: 600; min-height: 0; }
.topbar form { margin: 0; }

/* Layout helpers */
.stack > * + * { margin-top: var(--s-4); }
.stack--lg > * + * { margin-top: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.row > .field { flex: 1 1 16rem; margin-bottom: 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
/* A plain list inside a stack keeps the stack's spacing (the reset above would win otherwise). */
.stack > .list-plain:not(:first-child) { margin-top: var(--s-4); }
.stack--lg > .list-plain:not(:first-child) { margin-top: var(--s-6); }

.devbox { border-style: dashed; }

/* Buttons. Primary: ink fill. The accent fill (.btn--accent) is for the one action that starts or
   sends. Ordinary: surface with a strong hairline. Quiet: text, hairline on hover. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: var(--s-2) var(--s-5);
  font: 600 var(--t-2)/1.2 var(--f-sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  color: var(--c-ink); background: var(--c-surface);
  border: 1px solid var(--c-control-line); border-radius: var(--r-1);
  transition: background-color var(--d-1) var(--ease), border-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
}
.btn:hover { border-color: var(--c-ink-3); background: var(--c-surface); color: var(--c-ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.btn--primary:hover { background: var(--c-ink-hover); border-color: var(--c-ink-hover); color: var(--c-paper); }
.btn--primary:disabled { background: var(--c-ink-2); border-color: var(--c-ink-2); }
.btn--accent { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.btn--accent:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-accent-ink); }
.btn--quiet { background: transparent; border-color: var(--c-line); color: var(--c-ink); font-weight: 600; }
.btn--quiet:hover { background: transparent; border-color: var(--c-ink-3); }
.btn--danger { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-danger); }
.btn--quiet.btn--danger { background: transparent; border-color: var(--c-line); }
.btn--danger:hover, .btn--quiet.btn--danger:hover { background: var(--c-danger-tint); border-color: var(--c-danger); color: var(--c-danger); }
.btn--sm { min-height: 36px; padding: var(--s-1) var(--s-3); font-size: var(--t-1); }
.btn--lg { min-height: 52px; padding: var(--s-3) var(--s-6); font-size: var(--t-3); }
.confirm { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
@media (max-width: 40rem) { .btn--lg { min-height: 52px; } }

/* Forms */
.field { display: block; margin-bottom: var(--s-4); }
.field__label { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.field__hint { display: block; color: var(--c-ink-2); font-size: var(--t-1); margin-top: var(--s-1); }
.field__error { display: block; color: var(--c-danger); font-size: var(--t-1); margin: var(--s-1) 0 0; font-weight: 600; }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="date"],
select, textarea {
  width: 100%; min-height: 48px; padding: var(--s-2) var(--s-3);
  font: inherit; color: var(--c-ink); background: var(--c-surface);
  border: 1px solid var(--c-control-line); border-radius: var(--r-1);
  transition: border-color var(--d-1) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--c-ink-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--c-ink-3); }
textarea { min-height: 6rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; border-color: var(--c-ink); }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--c-ink); vertical-align: -0.15em; margin-right: var(--s-2); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--c-danger); }

/* Messages */
/* Notices: a hairline box with a small round mark before the text. Never a thick side border. */
:root { --notice-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --notice-bang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.2' fill='%23fff'/%3E%3C/svg%3E"); --notice-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.flash, [data-yanut-message][data-state], .msg--error, .msg[data-state="error"] { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-1); background: var(--c-surface); color: var(--c-ink); }
.flash::before, [data-yanut-message][data-state]::before, .msg--error::before, .msg[data-state="error"]::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1em; border-radius: 50%; background: var(--c-ink-3) center / 100% no-repeat; }
.flash--ok, [data-yanut-message][data-state="ok"] { border-color: var(--c-ok); background: var(--c-ok-tint); }
.flash--ok::before, [data-yanut-message][data-state="ok"]::before { background-color: var(--c-ok); background-image: var(--notice-tick); }
.flash--error, [data-yanut-message][data-state="error"], .msg--error, .msg[data-state="error"] { border-color: var(--c-danger); background: var(--c-danger-tint); }
.flash--error::before, [data-yanut-message][data-state="error"]::before, .msg--error::before, .msg[data-state="error"]::before { background-color: var(--c-danger); background-image: var(--notice-cross); }
.flash--warn { border-color: var(--c-warn); background: var(--c-warn-tint); }
.flash--warn::before { background-color: var(--c-warn); background-image: var(--notice-bang); }
.flash { margin-bottom: var(--s-4); }
.flash p { margin: 0; }
[data-yanut-message]:empty { display: none; }

/* Cards, badges. Cards are flat; only floating things get --sh-2 (.float). */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--s-5); }
.card--flat { border-radius: var(--r-1); padding: var(--s-4); }
.float { box-shadow: var(--sh-2); }
.raised { box-shadow: var(--sh-1); }
.badge {
  display: inline-block; padding: 1px var(--s-2); font-size: 0.8125rem; font-weight: 600; line-height: 1.5;
  white-space: nowrap; color: var(--c-ink-2); background: var(--c-bar); border-radius: 6px;
}
.badge--ok { color: var(--c-ok); background: var(--c-ok-tint); }
.badge--warn { color: var(--c-warn); background: var(--c-warn-tint); }
.badge--danger { color: var(--c-danger); background: var(--c-danger-tint); }
.badge--accent { color: var(--c-accent); background: var(--c-accent-tint); }
/* Status dot: the one round shape allowed besides the wordmark's dot. */
.dot { display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--c-ink-3); vertical-align: 0.1em; }
.dot--live { background: var(--c-accent); }
.dot--ok { background: var(--c-ok); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-2); }
.table caption { text-align: left; color: var(--c-ink-2); font-size: var(--t-1); padding-bottom: var(--s-2); }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table th { font-size: var(--t-1); font-weight: 600; color: var(--c-ink-2); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* Connection banner (presenter and screen) */
[data-conn-banner] { padding: var(--s-2) var(--s-4); background: var(--c-warn-tint); color: var(--c-warn); text-align: center; font-weight: 600; border-bottom: 1px solid var(--c-warn); }
[data-conn-banner][hidden] { display: none; }

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

/* Messages written by yanut.js carry their kind: the error also has a bar and a hidden "Hata:" lead */
/* Pressed states: darker, never a shadow */
.btn:active:not(:disabled) { filter: brightness(0.92); transform: translateY(1px); }
.btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }

/* ---- Presenter and public pages (UC) ---- */

/* Page frame: heading row, section labels, crumbs, empty states */
.page { padding-top: var(--s-5); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-head h1, .doc__title, .auth__title, .editor-bar__title {
  font-family: var(--f-display); font-weight: 560; font-variation-settings: var(--opsz-display);
  letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance;
}
.page-head h1, .doc__title { font-size: var(--t-h2); }
.crumb { margin: 0 0 var(--s-3); font-size: var(--t-1); font-weight: 600; }
.crumb a { color: var(--c-ink-2); text-decoration: none; }
.crumb a:hover { color: var(--c-ink); text-decoration: underline; }
.section-label { font: 560 var(--t-4)/1.2 var(--f-display); font-variation-settings: var(--opsz-sub); letter-spacing: -0.01em; margin: 0 0 var(--s-3); }
.empty { margin: var(--s-7) 0; font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink-2); max-width: 34rem; text-wrap: pretty; }
.check { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0; }
.check input { flex: none; margin: 0.25em 0 0; }
.code { font-family: var(--f-sans); font-weight: 800; letter-spacing: 0.06em; color: var(--c-ink); }

/* Disclosure: a quiet bordered summary with a drawn chevron */
details.starters > summary, details.deck-settings > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 44px; padding: var(--s-2) var(--s-4); font-weight: 600;
  border: 1px solid var(--c-control-line); border-radius: var(--r-1); background: var(--c-surface);
  transition: border-color var(--d-1) var(--ease);
}
details.starters > summary::-webkit-details-marker, details.deck-settings > summary::-webkit-details-marker { display: none; }
details.starters > summary::after, details.deck-settings > summary::after {
  content: ""; width: 0.45em; height: 0.45em; margin-top: -0.2em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--d-1) var(--ease);
}
details[open].starters > summary::after, details[open].deck-settings > summary::after { transform: rotate(-135deg); margin-top: 0.15em; }
details.starters > summary:hover, details.deck-settings > summary:hover { border-color: var(--c-ink-3); }

/* Deck list */
.newdeck { display: flex; gap: var(--s-2); flex: 1 1 24rem; max-width: 34rem; }
.newdeck__field { flex: 1 1 auto; min-width: 0; margin: 0; }
.newdeck .btn { flex: none; white-space: nowrap; }
.starters { margin-bottom: var(--s-6); }
.starters__list { margin-top: var(--s-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: 0 var(--s-5); }
.starters__item { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--c-line); }
.starters__item:first-child { border-top: 0; }
.starters__item p { margin: 0; }
.starters__item form { margin: 0; flex: none; }
.live-now { margin-bottom: var(--s-6); }
.live-now__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); flex-wrap: wrap; padding: var(--s-4) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); }
.live-now__title { margin: 0; font-weight: 700; font-size: var(--t-3); }
.live-now__main p:last-child { margin: 0; }
.live-now__acts { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr)); gap: var(--s-4); margin: 0 0 var(--s-4); }
.deckcard { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5); min-height: 12.5rem; padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); transition: border-color var(--d-2) var(--ease); }
.deckcard:hover { border-color: var(--c-line-strong); }
.deckcard__title { font: 560 var(--t-h3)/1.15 var(--f-display); font-variation-settings: var(--opsz-sub); letter-spacing: -0.01em; margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.deckcard__title a { text-decoration: none; }
.deckcard__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.deckcard__meta { margin: 0; color: var(--c-ink-2); font-size: var(--t-1); }
.deckcard__acts { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.deckcard__acts form { margin: 0; }
.deckcard__del { margin-left: auto !important; }
.recent { margin-top: var(--s-8); }
.recent__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); border-bottom: 1px solid var(--c-line); margin-bottom: 0; padding-bottom: var(--s-3); }
.recent__head .section-label { margin: 0; }
.recent__head a { font-weight: 600; font-size: var(--t-1); white-space: nowrap; }
.rows__item { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
.rows__item p { margin: 0; }

/* The deck editor's rules live in apps/decks/static/decks/editor.css. */

/* Facts row: the quiet figures under a report or session title */
.facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-5) 0; padding: var(--s-4) 0; border-block: 1px solid var(--c-line); }
.facts > div { display: block; min-width: 0; }
.facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--c-ink-2); margin: 0 0 2px; }
.facts dd { margin: 0; font: 800 var(--t-4)/1.2 var(--f-sans); font-variant-numeric: tabular-nums; min-width: 0; }
.facts dd code { font: 800 var(--t-4)/1.2 var(--f-sans); letter-spacing: 0.04em; }
.facts__wide { flex-basis: 100%; }
.facts__wide dd, .facts__wide dd code { font: 500 0.8125rem/1.5 var(--f-mono); letter-spacing: 0; color: var(--c-ink-2); }
/* The summary page keeps its labelled list */
.facts.facts--list { display: grid; gap: var(--s-3); padding: 0; border-block: 0; }
.facts--list > div { display: grid; grid-template-columns: 14rem 1fr; gap: var(--s-3); border-bottom: 1px solid var(--c-line); padding-bottom: var(--s-3); }
.facts--list dd { font: 700 var(--t-3)/1.3 var(--f-sans); }
@media (max-width: 36rem) { .facts--list > div { grid-template-columns: 1fr; gap: var(--s-1); } }

/* Report document */
.doc { max-width: 60rem; }
.doc__sub { margin: var(--s-2) 0 0; color: var(--c-ink-2); font-size: var(--t-lead); }
.doc__note { margin-top: calc(-1 * var(--s-2)); }
.doc .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-7); }
.doc .actions form { margin: 0; }
.doc h2.section-label { font-size: var(--t-5); margin-bottom: var(--s-4); }
.summary-h { margin-top: var(--s-7); }

/* Tables: hairlines only */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-2); }
.table caption { text-align: left; color: var(--c-ink-2); font-size: var(--t-1); padding-bottom: var(--s-3); }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table th { font-size: 0.8125rem; font-weight: 700; color: var(--c-ink-2); border-bottom-color: var(--c-line-strong); }
.table tbody tr:hover { background: color-mix(in srgb, var(--c-surface) 70%, transparent); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.table code { font-family: var(--f-sans); font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }

/* One composed column on paper: sign-in, confirm, pairing, verification */
.auth { max-width: 30rem; padding-block: var(--s-7) var(--s-8); display: grid; gap: var(--s-5); }
.auth--wide { max-width: 38rem; }
.auth > * { margin: 0; min-width: 0; }
.auth__title { font-size: var(--t-h1); }
.auth__lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink-2); text-wrap: pretty; }
.auth__form { display: grid; gap: var(--s-5); }
.auth__form .field { margin: 0; }
.auth__btn { width: 100%; }
.auth__again { font-size: var(--t-1); font-weight: 600; }
.devbox { padding: var(--s-4); border: 1px dashed var(--c-ink-3); border-radius: var(--r-1); background: transparent; font-size: var(--t-1); }
.devbox p { margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.devbox p:last-child { margin: 0; }
.verdict { padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); }
.verdict > * + * { margin-top: var(--s-3); }
.verdict h2 { margin: 0; font-size: var(--t-h3); }
.verdict p { margin-bottom: 0; }
.verdict code { overflow-wrap: anywhere; word-break: break-all; }

/* Pairing page (S5): the link is long and must wrap on a phone; the QR sits on white. */
.pair-card { justify-self: start; display: grid; gap: var(--s-4); padding: var(--s-5); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-2); box-shadow: var(--sh-2); max-width: 100%; }
.pair-card .muted { margin: 0; }
.pair-url { overflow-wrap: anywhere; }
.pair-qr svg { display: block; width: min(100%, 17rem); height: auto; aspect-ratio: 1; }
.actions form { margin: 0; }

/* Buttons keep 44 px; the large ones 52 px. */
@media (max-width: 40rem) { .newdeck { flex-wrap: wrap; } .newdeck__field { flex-basis: 100%; } .newdeck .btn { width: 100%; } }
