/* Shared look for smoke-test pages: neutral base, one accent, tokens only. */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #5d5d58;
  --border: #dcdcd6;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --ok: #1d7a46;
  --error: #b42318;
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #1f1f1d;
    --text: #ededea;
    --muted: #a9a9a3;
    --border: #3a3a36;
    --accent: #6ea2ff;
    --accent-text: #0b1830;
    --ok: #5cc98c;
    --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
main { max-width: 720px; margin: 0 auto; padding: var(--space-6) var(--space-3) var(--space-5); }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 var(--space-3); }
h2 { font-size: 1.25rem; margin: var(--space-5) 0 var(--space-2); }
p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 var(--space-4); }
ul.points { padding-left: 1.2rem; margin: 0; }
ul.points li { margin-bottom: var(--space-2); }
form { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
label { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
input, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; min-height: 44px; width: 100%;
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
button {
  font: inherit; font-weight: 600; min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius); border: 0; background: var(--accent); color: var(--accent-text);
  cursor: pointer; justify-self: start;
}
button:disabled { opacity: 0.6; cursor: progress; }
[role='status'] { min-height: 1.5em; margin: 0; }
[role='status'][data-kind='ok'] { color: var(--ok); }
[role='status'][data-kind='error'] { color: var(--error); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); margin-top: var(--space-4); }
footer { max-width: 720px; margin: 0 auto; padding: var(--space-4) var(--space-3) var(--space-5); color: var(--muted); font-size: 0.85rem; }
a { color: var(--accent); }
a.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-text);
  font-weight: 600; text-decoration: none;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { overflow-wrap: break-word; }
/* Below md a table becomes stacked cards: one row per block, header as label. */
@media (max-width: 767px) {
  .table-wrap { overflow-x: visible; border: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-2); }
  .table-wrap th, .table-wrap td { border: 0; padding: var(--space-1) 0; }
  .table-wrap th[scope='row'] { font-size: 0.85rem; color: var(--muted); }
  .table-wrap td:nth-child(2) { font-weight: 600; font-size: 1.05rem; }
}
