/* AgriStats — single stylesheet for index, history and admin.
   Tokens: warm paper #f7f6f1 / surface #fffdf8, deep green #047857.
   Source Serif 4 headings, Source Sans 3 body, IBM Plex Mono only for
   data / measurement. Labels are >= 0.75rem and --text-faint passes AA
   (light #5d685f on #f7f6f1 = 5.4:1, on #fffdf8 = 5.7:1; dark #9aa79e on
   #0e1512 = 7.4:1, on #151e19 = 6.8:1; body text higher still).
   Craft floor: no kicker/eyebrow, no section numbers, no side-tab accent
   (the verdict box uses a full border), no emojis, no gradient text,
   no nested cards as page structure. */

:root {
  --bg: #f7f6f1;
  --surface: #fffdf8;
  --surface-2: #f1efe7;
  --border: #e2ded2;
  --border-dark: #c8c2ae;
  --text: #1b231e;
  --text-muted: #5d685f;
  --text-faint: #5d685f;
  --primary: #047857;
  --primary-hover: #065f46;
  --primary-deep: #064e3b;
  --primary-light: #e7f2ec;
  --badge-bg: #e7f2ec;
  --badge-text: #065f46;
  --table-header: #f1efe7;
  --sig: #b91c1c;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --shadow-sm: 0 1px 2px 0 rgb(27 35 30 / 0.05);
  --shadow: 0 10px 28px -12px rgb(27 35 30 / 0.18);
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
}

[data-theme="dark"] {
  --bg: #0e1512;
  --surface: #151e19;
  --surface-2: #1b261f;
  --border: #27352d;
  --border-dark: #3d4f43;
  --text: #edf1ec;
  --text-muted: #9aa79d;
  --text-faint: #9aa79e;
  --primary: #34d399;
  --primary-hover: #10b981;
  --primary-deep: #064e3b;
  --primary-light: #122b21;
  --badge-bg: #122b21;
  --badge-text: #a7f3d0;
  --table-header: #1b261f;
  --sig: #f87171;
  --danger: #f87171;
  --danger-bg: #2a1518;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4);
  --shadow: 0 12px 30px -12px rgb(0 0 0 / 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; color: var(--text); }
h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--primary); }
code, .mono { font-family: var(--font-mono); font-size: 0.85rem; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--surface);
  color: var(--text); padding: 0.5rem 1rem; z-index: 1000;
  border: 1px solid var(--border-dark);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { text-decoration: none; color: var(--text); margin-right: auto; }
.brand-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.brand-sub {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.4rem 0.7rem; border-radius: 8px;
}
.main-nav a:hover { background: var(--table-header); color: var(--primary); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-light); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.auth-user { font-size: 0.85rem; color: var(--text-muted); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Banners, notices, errors */
.banner {
  background: var(--primary-light); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 1rem; margin: 1rem 0 0;
  font-size: 0.9rem; color: var(--text);
}
.notice {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 1rem; margin: 0.75rem 0;
  font-size: 0.9rem; color: var(--text-muted);
}
.error-region {
  background: var(--danger-bg); border: 1px solid var(--danger);
  color: var(--text); border-radius: 10px; padding: 0.7rem 1rem;
  margin: 0.75rem 0; font-size: 0.9rem;
}
.error-region:empty { display: none; }
.confirm-bar {
  background: var(--surface); border: 1px solid var(--border-dark);
  border-radius: 10px; padding: 0.8rem 1rem; margin: 0.75rem 0;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.9rem;
}
.confirm-bar p { margin: 0; flex: 1 1 16rem; }

/* One button system */
.btn {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-dark); background: var(--surface); color: var(--text);
  text-decoration: none; display: inline-block; line-height: 1.4;
}
.btn:hover { border-color: var(--text-muted); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .btn-primary { color: #06281c; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn[disabled], .btn:disabled {
  opacity: 0.55; cursor: not-allowed; text-decoration: none;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

/* Page sections */
main { padding-bottom: 2.5rem; }
.page-intro { padding: 1.25rem 0 0.25rem; }
.page-intro p { color: var(--text-muted); font-size: 0.95rem; max-width: 720px; }
section.block { margin-top: 2rem; }
.section-sub { color: var(--text-muted); font-size: 0.9rem; max-width: 760px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem;
}
.card-header-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.card-header-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.toolbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; min-width: 7rem; }
.form-group label, .field-label {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}
input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-dark);
  border-radius: 8px; padding: 0.5rem 0.6rem; width: 100%;
}
input[type="number"] { font-family: var(--font-mono); }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
.experiment-fields {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 0.25rem;
}
.experiment-fields .form-group { flex: 1 1 12rem; }

/* Design selector: real buttons */
.design-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 0.75rem;
}
@media (max-width: 860px) { .design-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .design-grid { grid-template-columns: 1fr; } }
.design-box {
  text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer;
  font-family: var(--font-sans); color: var(--text);
}
.design-box:hover { border-color: var(--border-dark); }
.design-box.active, .design-box[aria-pressed="true"] {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.design-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.design-summary { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.active-badge {
  display: none; font-size: 0.75rem; font-weight: 700; color: var(--badge-text);
  background: var(--badge-bg); border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.4rem;
}
.design-box.active .active-badge { display: inline-block; }

/* Grid controls, pre-flight, data table */
.grid-controls { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; margin: 1rem 0; }
.preflight {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted);
  background: var(--table-header); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.55rem 0.8rem; margin: 0.75rem 0;
}
.preflight.warn { color: var(--text); border-color: var(--border-dark); }
.data-table-wrapper { overflow-x: auto; margin: 0.75rem 0; }
table.data-table, table.anova-table {
  border-collapse: collapse; width: 100%; background: var(--surface);
  font-size: 0.92rem;
}
table.data-table th, table.data-table td,
table.anova-table th, table.anova-table td {
  border: 1px solid var(--border); padding: 0.45rem 0.55rem; text-align: left;
}
table.data-table th, table.anova-table th {
  background: var(--table-header); font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted);
}
table.data-table input[type="number"] { width: 5.5rem; padding: 0.35rem 0.45rem; }
table.data-table input.treat-label-input { width: 6.5rem; font-weight: 600; }
table.data-table input.tr-letter-input { width: 2.6rem; text-align: center; font-weight: 700; color: var(--primary); }
tr.tested-row td { background: var(--primary-light); }
.example-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--badge-text);
  background: var(--badge-bg); border: 1px solid var(--primary);
  border-radius: 999px; padding: 0.15rem 0.65rem; margin: 0.5rem 0 0;
}
.file-toolbar { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.file-tip { font-size: 0.85rem; color: var(--text-muted); }
.file-input-wrapper { position: relative; overflow: hidden; }
.file-input-wrapper input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}

/* Post-hoc checklist */
.checklist-card { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; margin: 1rem 0; background: var(--surface); }
.checklist-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25rem; }
.checklist-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.5rem 1.25rem; }
.check-item { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.check-item .gloss { display: block; font-size: 0.8rem; color: var(--text-muted); }
.recommended { font-size: 0.75rem; font-weight: 700; color: var(--badge-text); }

/* Calculate row */
.calc-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; margin: 1rem 0; }
.calc-row .btn-primary { font-size: 0.95rem; padding: 0.65rem 1.75rem; }
.calc-status { font-size: 0.9rem; color: var(--text-muted); }

/* Results */
.results-section { margin-top: 1.75rem; }
.verdict-box {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; background: var(--surface);
}
.verdict-box.significant { background: var(--badge-bg); border-color: var(--primary); }
.verdict-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px;
  padding: 0.2rem 0.7rem; margin-bottom: 0.6rem; background: var(--primary); color: #fff;
}
[data-theme="dark"] .verdict-badge { color: #06281c; }
.verdict-box.non-significant .verdict-badge { background: var(--table-header); color: var(--text-muted); border: 1px solid var(--border-dark); }
.verdict-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.verdict-desc { font-size: 0.92rem; line-height: 1.65; }
.verdict-fline { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 0.6rem; color: var(--text-muted); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-card { border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.9rem; background: var(--surface); }
.stat-card .val { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; }
.stat-card .lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }
.stat-card .def { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.45; }
.legend { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.sig-star { color: var(--sig); font-weight: 700; }
.cld-badge {
  display: inline-block; background: #e0f2fe; color: #075985; border: 1px solid #bae6fd;
  border-radius: 999px; padding: 0.05rem 0.55rem; font-family: var(--font-mono); font-size: 0.85rem;
}
[data-theme="dark"] .cld-badge { background: #0c2f42; color: #bae6fd; border-color: #155e75; }
.result-h { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.6rem; }
.chart-container { display: flex; justify-content: center; margin-top: 1rem; }
.chart-alt { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.math-display {
  padding: 0.9rem 0.75rem; background: var(--table-header); border: 1px solid var(--border);
  border-radius: 10px; margin: 0.75rem 0; font-size: 0.95rem; overflow-x: auto; text-align: center;
}
.katex { color: var(--text); font-size: 1.05em; }
.ss-math .katex { font-size: 1.12em; }
.lib-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Field Layout Map */
details.layout-details { margin-top: 2rem; }
details.layout-details > summary {
  cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  padding: 0.75rem 0; list-style-position: inside;
}
.layout-controls { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 0.9rem; }
.layout-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.9rem; max-width: 760px; }
.layout-summary { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 1rem; }
.layout-map-wrap { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1.1rem; overflow-x: auto; }
.layout-map-wrap svg { display: block; max-width: 100%; height: auto; }
.layout-placeholder { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 2.5rem 1rem; }
.layout-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.layout-legend-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600; }
.layout-legend-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border-dark); flex: none; }
#layoutTitle { width: 15rem; }

/* Wiki / About */
.theory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.theory-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.theory-card h3 { font-size: 1.15rem; }
.theory-card p, .theory-card li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.theory-card ul { padding-left: 0; list-style: none; }
.theory-card li { position: relative; padding-left: 1.15rem; margin-bottom: 0.45rem; }
.theory-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1px; background: var(--primary); }
.theory-card li strong { color: var(--text); font-weight: 600; }
.chooser { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0 1.25rem; max-width: 720px; }
.chooser button {
  text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 0.6rem 0.9rem; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--text);
}
.chooser button:hover { border-color: var(--primary); }
.about-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.5; max-width: 720px; }
footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--text-muted); padding: 2rem 0; margin-top: 2rem; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); }

/* History / Admin */
.history-list, .admin-totals { display: grid; gap: 0.75rem; margin-top: 1rem; }
.totals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.total-card { border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.9rem; background: var(--surface); }
.total-card .val { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; }
.total-card .lbl { font-size: 0.75rem; color: var(--text-muted); }
.history-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem;
  background: var(--surface); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.history-item .meta { flex: 1 1 18rem; }
.history-item .meta strong { font-family: var(--font-display); }
.history-detail { margin-top: 1rem; }
.empty-state {
  border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem;
  background: var(--surface); color: var(--text-muted); font-size: 0.92rem;
  line-height: 1.65; margin-top: 1rem; max-width: 720px;
}
.empty-state h3 { color: var(--text); }

/* Print: hide navigation, hero, layout, wiki; add a print-only header. */
.print-only { display: none; }
@media print {
  header, footer, .file-toolbar, #layoutDetails, #wiki, #about,
  .calc-row, .checklist-card, .design-grid, .skip-link, .banner, .confirm-bar {
    display: none !important;
  }
  body { background: #fff; color: #111; }
  .print-only { display: block; border-bottom: 2px solid #111; padding-bottom: 0.5rem; margin-bottom: 1rem; }
  .print-only h1, .print-title { font-size: 1.3rem; margin: 0; font-family: var(--font-display); font-weight: 700; }
  .print-only p { font-size: 0.85rem; margin: 0.15rem 0 0; }
  .card { border: none; padding: 0; }
  :root { --text: #111 !important; --text-muted: #333 !important; --text-faint: #444 !important; --surface: #fff !important; --surface-2: #fff !important; --table-header: #fff !important; }
}

/* Landing page */
.hero { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.6rem; font-weight: 700; margin: 0 0 0.1rem; letter-spacing: -0.01em; }
.hero-sub {
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 1rem;
}
.hero-text { font-size: 1.05rem; line-height: 1.65; max-width: 720px; color: var(--text); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.btn-large { font-size: 1rem; padding: 0.7rem 1.75rem; }
.hero-facts {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
  gap: 0.4rem 1.5rem; font-size: 0.9rem; color: var(--text-muted);
}
.hero-facts li { position: relative; padding-left: 1.15rem; }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 1px; background: var(--primary);
}
@media (max-width: 520px) { .hero h1 { font-size: 2rem; } }

/* Feature list (landing): plain list, not icon tiles */
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 760px; }
.feature-list li {
  position: relative; padding-left: 1.15rem; margin-bottom: 0.7rem;
  font-size: 0.95rem; line-height: 1.6; color: var(--text-muted);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 9px; height: 1px; background: var(--primary);
}
.feature-list li strong { color: var(--text); font-weight: 600; }

/* Design cards (landing): name, description, what it controls */
.design-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 640px) { .design-cards { grid-template-columns: 1fr; } }
.design-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.design-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.design-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.design-card .design-fact {
  font-size: 0.85rem; color: var(--text); font-weight: 600; margin-bottom: 0;
}
.design-card .design-fact::before {
  content: ""; display: inline-block; width: 9px; height: 1px;
  background: var(--primary); margin-right: 0.5rem; vertical-align: middle;
}

/* How it works: an ordered list — the sequence is the information */
.steps { margin: 1rem 0 1.5rem; padding-left: 1.4rem; max-width: 760px; }
.steps li { margin-bottom: 0.7rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); padding-left: 0.35rem; }
.steps li::marker { font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.steps li strong { color: var(--text); font-weight: 600; }

/* Auth page: centred card */
.auth-page { display: flex; flex-direction: column; align-items: center; padding-top: 2rem; }
.auth-page .banner { width: 100%; max-width: 480px; }
.auth-card {
  width: 100%; max-width: 480px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem; margin-top: 1rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.45rem; margin: 0.75rem 0 0.25rem; }
.auth-tabs { display: flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.auth-tab {
  flex: 1; background: var(--surface-2); border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted); padding: 0.65rem 0.5rem;
}
.auth-tab.active { background: var(--primary); color: #fff; }
[data-theme="dark"] .auth-tab.active { color: #06281c; }
.auth-card .form-group { margin: 0.9rem 0; }
.auth-card .form-group label { font-size: 0.85rem; }
.password-field { display: flex; gap: 0.5rem; }
.password-field input { flex: 1 1 auto; min-width: 0; }
.btn-block { display: block; width: 100%; margin-top: 0.75rem; text-align: center; }
.auth-fineprint { font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0 0; line-height: 1.6; }
