/* Oak Home — Aornos house style.
   Black glaze, clay and cream (see aornos-marketing-site/brand). Light mode is cream paper with glaze ink.
   Theme: <html data-theme="light|dark"> forces one; without it the system setting decides (oak.js). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f0e6;
  --surface: #fffaf2;
  --surface-2: #f0e7da;
  --border: #e2d6c4;
  --border-strong: #cdbca5;
  --text: #1e1916;
  --text-dim: #6b5d50;
  --accent: #a95b2c;
  --accent-hover: #8a4a24;
  --accent-ink: #fffaf2;
  --accent-soft: rgba(169, 91, 44, 0.11);
  --ok: #3d7a4c;
  --ok-soft: rgba(61, 122, 76, 0.12);
  --warn: #9a6a14;
  --warn-soft: rgba(166, 116, 28, 0.14);
  --danger: #b0412e;
  --danger-soft: rgba(176, 65, 46, 0.11);
  --chart-1: #a95b2c;
  --chart-2: #3f7f7a;
  --chart-3: #7c7a2e;
  --chart-4: #87506f;
  --shadow: 0 1px 2px rgba(30, 25, 22, 0.06), 0 4px 16px rgba(30, 25, 22, 0.05);

  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar: 15.5rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1e1916;
    --surface: #27201c;
    --surface-2: #30271f;
    --border: #3b302a;
    --border-strong: #52443a;
    --text: #efe3cf;
    --text-dim: #a8998a;
    --accent: #c9733f;
    --accent-hover: #e08a54;
    --accent-ink: #1e1916;
    --accent-soft: rgba(201, 115, 63, 0.14);
    --ok: #86b993;
    --ok-soft: rgba(134, 185, 147, 0.13);
    --warn: #dcaa4c;
    --warn-soft: rgba(220, 170, 76, 0.13);
    --danger: #e3826b;
    --danger-soft: rgba(227, 130, 107, 0.13);
    --chart-1: #c9733f;
    --chart-2: #7cb8b1;
    --chart-3: #c4bf6a;
    --chart-4: #c58fae;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.18);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e1916;
  --surface: #27201c;
  --surface-2: #30271f;
  --border: #3b302a;
  --border-strong: #52443a;
  --text: #efe3cf;
  --text-dim: #a8998a;
  --accent: #c9733f;
  --accent-hover: #e08a54;
  --accent-ink: #1e1916;
  --accent-soft: rgba(201, 115, 63, 0.14);
  --ok: #86b993;
  --ok-soft: rgba(134, 185, 147, 0.13);
  --warn: #dcaa4c;
  --warn-soft: rgba(220, 170, 76, 0.13);
  --danger: #e3826b;
  --danger-soft: rgba(227, 130, 107, 0.13);
  --chart-1: #c9733f;
  --chart-2: #7cb8b1;
  --chart-3: #c4bf6a;
  --chart-4: #c58fae;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: 0.01em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }
small, .dim { color: var(--text-dim); }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 1.2em; line-height: 1;
  display: inline-block; vertical-align: -0.2em; font-variation-settings: "FILL" 0, "wght" 400, "opsz" 20; user-select: none; }
.icon-filled { font-variation-settings: "FILL" 1, "wght" 400, "opsz" 20; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.shell > .sidebar { grid-column: 1; grid-row: 1; }
.shell > .main { grid-column: 2; grid-row: 1; }
.scrim { display: none; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem 0.9rem;
  background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.65rem; padding: 0 0.5rem; color: var(--text); }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-group > p { margin: 0 0 0.3rem; padding: 0 0.6rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.nav-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.6rem; border-radius: var(--radius-sm); color: var(--text); font-size: 0.93rem; }
.nav-link .icon { color: var(--text-dim); }
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-link[aria-current="page"] .icon { color: var(--accent); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.who { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0 0.5rem; font-size: 0.9rem; }
.who strong { font-weight: 500; }
.foot-actions { display: flex; gap: 0.35rem; padding: 0 0.3rem; flex-wrap: wrap; }

.topbar { display: none; }
.main { min-width: 0; padding: 2rem clamp(1rem, 3vw, 2.75rem) 4rem; }
.page { max-width: 72rem; margin: 0 auto; }
.page.narrow { max-width: 36rem; }
.page.medium { max-width: 50rem; }

@media (max-width: 860px) {
  .shell { display: block; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    position: sticky; top: 0; z-index: 30; padding: 0.6rem 1rem;
    background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .sidebar {
    position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(18rem, 85vw);
    transform: translateX(-102%); transition: transform 0.18s ease; box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 16, 14, 0.45); }
  .main { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: 1.5rem; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.eyebrow { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.eyebrow a { color: inherit; }
.page-head .meta { margin: 0.35rem 0 0; color: var(--text-dim); }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 0.75rem; }
.section-head h2 { margin: 0; }

/* Sub-navigation within a section */
.tabs { display: flex; gap: 0.25rem; margin: -0.5rem 0 1.25rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: 0.5rem 0.85rem; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 0.92rem; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.25rem; padding: 0.4rem 0.95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 500 0.9rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 45%, var(--border)); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { filter: brightness(0.92); color: #fff; background: var(--danger); }
.btn-sm { min-height: 1.9rem; padding: 0.2rem 0.6rem; font-size: 0.83rem; }
.btn-icon { min-height: 2rem; width: 2rem; padding: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.card-title h3 { margin: 0; }
.card-foot { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
a.card { display: block; color: inherit; transition: border-color 0.12s, transform 0.12s; }
a.card:hover { border-color: var(--accent); text-decoration: none; color: inherit; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.cols > .chart { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; font-size: 0.92rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.stat-value { margin-top: 0.2rem; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.85rem; }
.gain { color: var(--ok); }
.loss { color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
.table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in oklab, var(--surface-2) 55%, transparent); }
.table th.num, .table td.num { text-align: right; }
.table td.row-actions { text-align: right; white-space: nowrap; width: 1%; }
.table .empty-row td { text-align: center; color: var(--text-dim); padding: 2.25rem 1rem; }

/* ---------- Lists, badges, misc ---------- */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500;
  background: var(--surface-2); color: var(--text-dim); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.empty { padding: 2.25rem 1rem; text-align: center; color: var(--text-dim); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty .btn { margin-top: 0.75rem; }
.prose { max-width: 42rem; }
.prose ol, .prose ul { padding-left: 1.25rem; }
.codeblock { font-family: var(--font-mono); font-size: 0.85rem; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.callout { padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 0.92rem; }
.callout-warn { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 35%, transparent); }

/* Disclosure (accordions): native <details> */
details.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
details.panel + details.panel { margin-top: 0.6rem; }
details.panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "chevron_right"; font-family: "Material Symbols Outlined"; font-size: 1.25rem; color: var(--text-dim); transition: transform 0.15s; }
details.panel[open] > summary::before { transform: rotate(90deg); }
details.panel > summary .grow { flex: 1; }
details.panel > .panel-body { padding: 0 1.1rem 1rem; }
details.panel > .list, details.panel > .table-wrap { border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.field > label, .field legend { font-size: 0.86rem; font-weight: 500; }
.field.is-required > label::after { content: " *"; color: var(--accent); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field fieldset > div { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 0.3rem; }
.field fieldset label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.field .help { font-size: 0.8rem; }
.field .error { color: var(--danger); font-size: 0.82rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-check > label { display: flex; align-items: center; gap: 0.55rem; font-weight: 400; cursor: pointer; }
.form-errors { margin-bottom: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 0.9rem; }
.form-errors p { margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="search"],
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="tel"], select, textarea {
  width: 100%; min-height: 2.4rem; padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.95rem;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; }
select[multiple] { min-height: 8rem; }
.form-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }

/* ---------- Messages ---------- */
.messages { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.message { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); font-size: 0.92rem; }
.message.success { border-left-color: var(--ok); }
.message.warning { border-left-color: var(--warn); }
.message.error { border-left-color: var(--danger); }

/* ---------- Charts (d3, styled from tokens so they follow the theme) ---------- */
.chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem 0.5rem; box-shadow: var(--shadow); }
.chart h3 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 0.25rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tick text, .chart .axis-label { fill: var(--text-dim); font: 11px var(--font-body); }
.chart .domain, .chart .tick line { stroke: var(--border-strong); }
.chart .grid line { stroke: var(--border); stroke-dasharray: 2 3; }
.chart .grid .domain { display: none; }
.chart .legend text { fill: var(--text-dim); font: 11px var(--font-body); }
.chart-tip { position: absolute; pointer-events: none; opacity: 0; z-index: 50; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); font-size: 0.78rem; line-height: 1.45; transition: opacity 0.1s; }

/* ---------- Media ---------- */
.posters { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 9.5rem), 1fr)); }
.poster-card { display: flex; flex-direction: column; gap: 0.4rem; color: inherit; min-width: 0; }
.poster-card:hover { color: inherit; text-decoration: none; }
.poster-card:hover .poster { border-color: var(--accent); }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; transition: border-color 0.12s; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .fallback { padding: 0.75rem; text-align: center; font-family: var(--font-display); font-size: 1rem; color: var(--text-dim); }
.poster .badge { position: absolute; left: 0.4rem; top: 0.4rem; background: color-mix(in oklab, var(--surface) 88%, transparent); color: var(--text); }
.poster .vault { position: absolute; right: 0.4rem; top: 0.4rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 999px; background: color-mix(in oklab, var(--surface) 88%, transparent); color: var(--ok); font-size: 1rem; }
.badge-vault { background: var(--ok-soft); color: var(--ok); }
.poster-card .name { font-weight: 500; font-size: 0.9rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.poster-card small { line-height: 1.3; }
.bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.stars { color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stars .icon { font-size: 1.05em; }
.title-hero { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 1.75rem; align-items: start; margin-bottom: 1.5rem; }
.title-hero .poster { max-width: 13rem; }
@media (max-width: 640px) { .title-hero { grid-template-columns: 7rem 1fr; gap: 1rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.status-buttons .btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.result { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; }
.result .poster { width: 4rem; box-shadow: none; }
@media (max-width: 640px) { .result { grid-template-columns: 3.25rem 1fr; } .result .actions { grid-column: 1 / -1; } }
.attribution { margin-top: 2.5rem; font-size: 0.78rem; color: var(--text-dim); }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(100%, 24rem); text-align: center; }
.auth-card .mark { width: 72px; height: 72px; margin-bottom: 1rem; }
.auth-card h1 { font-size: 1.6rem; letter-spacing: 0.04em; }
.auth-card .btn-primary { width: 100%; min-height: 2.75rem; font-size: 1rem; margin: 1.25rem 0 1rem; }
.auth-card details { text-align: left; margin-top: 1rem; font-size: 0.9rem; }
.auth-card summary { cursor: pointer; color: var(--text-dim); text-align: center; }
.auth-card form { margin-top: 1rem; text-align: left; }

/* HTMX: rows fade out as they are removed */
.htmx-swapping { opacity: 0; transition: opacity 0.25s ease; }
.htmx-request .btn, .btn.htmx-request { opacity: 0.6; pointer-events: none; }
