/* ArcturusSDR website. Colour tokens are defined once (WEB-02): dark by
   default, light when the visitor chooses it. Components are documented in
   docs/development.md. */

:root, [data-theme="dark"] {
  --bg: #0e1116;
  --bg-2: #12161d;
  --surface: #171c24;
  --surface-2: #1e2430;
  --border: #2a3240;
  --border-strong: #3a4558;
  --text: #e7eaf0;
  --text-2: #b4bccb;
  --muted: #8b95a7;
  --accent: #3d9bff;
  --accent-2: #6fc0ff;
  --accent-ink: #04121f;
  --accent-soft: rgba(61, 155, 255, 0.14);
  --gold: #f4a742;
  --gold-soft: rgba(244, 167, 66, 0.15);
  --ok: #3fb984;
  --ok-soft: rgba(63, 185, 132, 0.14);
  --warn: #e3a52b;
  --warn-soft: rgba(227, 165, 43, 0.15);
  --danger: #ef5d55;
  --danger-soft: rgba(239, 93, 85, 0.14);
  --hw-green: #3fb984;
  --hw-green-soft: rgba(63, 185, 132, 0.14);
  --hw-yellow: #e8cf4a;
  --hw-yellow-soft: rgba(232, 207, 74, 0.14);
  --hw-orange: #f28b3b;
  --hw-orange-soft: rgba(242, 139, 59, 0.15);
  --hw-red: #ef5d55;
  --hw-red-soft: rgba(239, 93, 85, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  --glow: 0 0 0 1px rgba(61, 155, 255, 0.35), 0 0 24px rgba(61, 155, 255, 0.18);
  --code-bg: #0b0e13;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --border: #d9dfea;
  --border-strong: #c3ccdb;
  --text: #151a22;
  --text-2: #3b4556;
  --muted: #5f6b7e;
  --accent: #0b6fd8;
  --accent-2: #0959ae;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 111, 216, 0.10);
  --gold: #b86a00;
  --gold-soft: rgba(184, 106, 0, 0.10);
  --ok: #1f8a5b;
  --ok-soft: rgba(31, 138, 91, 0.10);
  --warn: #9a6a00;
  --warn-soft: rgba(154, 106, 0, 0.10);
  --danger: #c8322a;
  --danger-soft: rgba(200, 50, 42, 0.08);
  --hw-green: #1f8a5b;
  --hw-green-soft: rgba(31, 138, 91, 0.10);
  --hw-yellow: #7f6a00;
  --hw-yellow-soft: rgba(214, 180, 0, 0.16);
  --hw-orange: #b25009;
  --hw-orange-soft: rgba(230, 120, 30, 0.12);
  --hw-red: #c8322a;
  --hw-red-soft: rgba(200, 50, 42, 0.08);
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.08), 0 8px 24px rgba(20, 30, 50, 0.06);
  --glow: 0 0 0 1px rgba(11, 111, 216, 0.3), 0 0 18px rgba(11, 111, 216, 0.12);
  --code-bg: #eef1f6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Room for the scrollbar on every page, so a long page is no narrower than a
   short one and wrapped rows (the account tabs) stay put from page to page. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
[data-theme="light"] a { color: var(--accent); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 1em; border-radius: 8px; overflow-x: auto; border: 1px solid var(--border); }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Layout */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-sm { padding-top: 28px; padding-bottom: 28px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Text helpers */
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--accent-2); font-weight: 600; margin-bottom: 0.6em; }
[data-theme="light"] .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.select-all { user-select: all; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.wordmark { font-size: 1.15rem; letter-spacing: 0.01em; }
.wm-a { color: #c9d1dc; }
[data-theme="light"] .wm-a { color: #4a5568; }
.wm-b { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav > a, .nav-menu > summary { white-space: nowrap; color: var(--text-2); padding: 8px 10px; border-radius: 8px; font-size: 0.95rem; cursor: pointer; list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: " ▾"; font-size: 0.75em; }
.site-nav > a:hover, .nav-menu > summary:hover, .site-nav .active, .mobile-nav .active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 60; }
.menu-panel a { color: var(--text); padding: 8px 12px; border-radius: 8px; }
.menu-panel a:hover { background: var(--surface-2); text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.header-tools > * { flex-shrink: 0; }
.header-tools .user-btn { flex-shrink: 1; display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; position: relative; }
.icon-btn:hover { color: var(--text); text-decoration: none; border-color: var(--border-strong); }
.badge-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #1b1200; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
/* Small screens: the menu button opens a copy of the main links. */
.nav-toggle { display: none; }
.nav-toggle > summary { list-style: none; cursor: pointer; padding: 10px 8px; }
.nav-toggle > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--text); position: relative; content: ""; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.mobile-nav { position: absolute; left: 0; right: 0; top: 60px; display: flex; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow); }
.mobile-nav > a, .mobile-nav .nav-menu > summary { color: var(--text); padding: 10px 8px; border-radius: 8px; }
.mobile-nav .menu-panel { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
.site-header .wrap { position: relative; }
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .hide-sm { display: none !important; }
}
@media (max-width: 420px) {
  .header-tools { gap: 4px; }
  .header-tools .user-btn { max-width: 96px; }
  .header-tools .badge-gold { display: none; }
  .header-tools .btn-sm { padding: 6px 8px; }
  .wordmark { font-size: 1rem; }
}
/* An admin viewing the site as someone else (src/lib/view-as.js) */
.view-as-bar { background: var(--warn-soft); color: var(--text); border-bottom: 1px solid var(--border); padding: 6px 0; font-size: 0.92rem; }
.view-as-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.view-as-menu .menu-panel { left: auto; right: 0; min-width: 300px; padding: 12px; }
.view-as-menu select { width: 100%; }
.announcement { background: var(--gold-soft); border-bottom: 1px solid var(--border); color: var(--text); padding: 8px 0; font-size: 0.92rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1200; }
.btn-sm { padding: 6px 12px; font-size: 0.875rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
form.inline { display: inline; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card h2, .card h3 { margin-top: 0; }
.card-link { display: block; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card-highlight { border-color: var(--accent); box-shadow: var(--glow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.stat { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
[data-theme="light"] .badge-accent { color: var(--accent); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
/* Hardware support: a dot and a word, never the colour alone (owner, 2026-11-02:
   red not tested, orange problems, yellow minor issues, green working). */
.hw-status { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.hw-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.hw-green { color: var(--hw-green); background: var(--hw-green-soft); }
.hw-yellow { color: var(--hw-yellow); background: var(--hw-yellow-soft); }
.hw-orange { color: var(--hw-orange); background: var(--hw-orange-soft); }
.hw-red { color: var(--hw-red); background: var(--hw-red-soft); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid var(--border); background: var(--surface); }
.alert-ok { background: var(--ok-soft); border-color: transparent; }
.alert-info { background: var(--accent-soft); border-color: transparent; }
.alert-warn { background: var(--warn-soft); border-color: transparent; }
.alert-danger { background: var(--danger-soft); border-color: transparent; }
main > .wrap > .alert:first-child { margin-top: 16px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label, .label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 4px; }
.form .field { display: grid; gap: 4px; }
.form .hint, .hint { color: var(--muted); font-size: 0.84rem; font-weight: 400; }
.narrow-form { max-width: 420px; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="number"], input[type="password"], input[type="date"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.95rem;
}
textarea { min-height: 120px; resize: vertical; }
textarea.code, textarea.markdown { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; min-height: 280px; }
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: 16px; height: 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.warn-text { color: var(--warn); font-size: 0.85rem; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
th a { color: inherit; }

/* Tabs and filters */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
/* Not bold: a wider active tab moved the others between rows on every click. */
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { color: var(--muted); font-weight: 400; margin-left: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters > * { flex: 0 1 auto; }
.filters input[type="search"] { min-width: 220px; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }

/* Prose (Markdown output) */
.prose { max-width: 760px; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 10px; border: 1px solid var(--border); }
.prose blockquote { margin: 0 0 1em; padding: 0.4em 1em; border-left: 3px solid var(--accent); color: var(--text-2); background: var(--surface); border-radius: 0 8px 8px 0; }
.prose table { margin: 1em 0; border: 1px solid var(--border); }
.prose ul, .prose ol { padding-left: 1.4em; }

/* Hero and marketing */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; border-bottom: 1px solid var(--border); background:
  radial-gradient(900px 400px at 85% -10%, rgba(61, 155, 255, 0.18), transparent 60%),
  radial-gradient(600px 300px at 10% 110%, rgba(244, 167, 66, 0.10), transparent 60%), var(--bg); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 14em; }
.hero .lead { max-width: 38em; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero-media { border-radius: 16px; border: 1px solid var(--border-strong); overflow: hidden; box-shadow: var(--shadow), var(--glow); background: #05080c; aspect-ratio: 16 / 10; }
.hero-media img, .hero-media video, .hero-media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-media { border-radius: 14px; border: 1px solid var(--border); overflow: hidden; background: #05080c; aspect-ratio: 16 / 10; }
.feature-media img, .feature-media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; }
.feature-row:nth-child(even) .feature-media { order: -1; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row:nth-child(even) .feature-media { order: 0; } }
.app-tile { display: flex; flex-direction: column; gap: 10px; }
.app-tile .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; }
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.9rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding-left: 1.6em; position: relative; margin: 0.35em 0; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan .btn { margin-top: auto; }
.ribbon { align-self: flex-start; }

/* Account and admin */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 28px 0 20px; }
.page-head h1 { margin: 0; }
/* Admin pages run wider than .wrap: the side nav takes 250px and the issue and crash tables need the room. */
.is-admin .wrap { max-width: 1560px; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 48px; }
.admin-nav { position: sticky; top: 80px; align-self: start; display: grid; gap: 16px; font-size: 0.93rem; }
.admin-nav-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 4px 10px; }
.admin-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.admin-nav a.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.admin-main .page-head { margin-top: 0; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline > li { position: relative; padding: 0 0 18px 18px; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.timeline > li.staff::before { border-color: var(--accent); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); }
.mail-body { white-space: pre-wrap; }
/* Account › Notifications: the choices come first and stay at the top, not centred against a long Recent list. */
.notifications-split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
@media (max-width: 860px) { .notifications-split { grid-template-columns: 1fr; } }
details.card > summary { cursor: pointer; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 48px; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.footer-grid nav { display: grid; gap: 6px; align-content: start; font-size: 0.92rem; }
.footer-grid nav a { color: var(--text-2); }
.footer-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 6px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .admin-nav { display: none; } body { background: #fff; color: #000; } }
