/* StaffHash styles. Colours, type and spacing come from the brand tokens (Documents/StaffHash/tokens.css). */

@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --surface-100: #ffffff;
  --surface-200: #f4f4f1;
  --surface-300: #ecece7;
  --ink: #0a0b0c;
  --ink-2: #2b2d31;
  --ink-muted: #5e6066;
  --hairline: #e6e6e1;
  --hairline-strong: #d6d6d0;
  --grape: #5b3df5;
  --on-grape: #ffffff;
  --grape-soft: rgba(91, 61, 245, 0.07);
  --grape-line: rgba(91, 61, 245, 0.35);
  --volt: #d7ff3f;
  --on-volt: #0a0b0c;
  --success: #0e7a4e;
  --success-soft: rgba(14, 122, 78, 0.08);
  --warning: #b54708;
  --warning-soft: rgba(181, 71, 8, 0.08);
  --danger: #c4320a;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 1px 2px rgba(10, 11, 12, 0.05);
  --shadow-md: 0 1px 2px rgba(10, 11, 12, 0.04), 0 12px 32px -12px rgba(10, 11, 12, 0.14);
  --shadow-lg: 0 2px 4px rgba(10, 11, 12, 0.04), 0 24px 56px -20px rgba(10, 11, 12, 0.22);

  /* Always-dark surfaces (on Ink the accent is Volt) */
  --dark-bg: #0a0b0c;
  --dark-panel: #131417;
  --dark-line: #26282c;
  --dark-text: #f4f4f1;
  --dark-muted: #a1a3a8;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-28: 112px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 24px; --radius-pill: 999px;

  --font-display: "DM Sans", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #0a0b0c;
    --surface-200: #121316;
    --surface-300: #1a1c20;
    --ink: #f4f4f1;
    --ink-2: #d9dad6;
    --ink-muted: #a1a3a8;
    --hairline: #24262a;
    --hairline-strong: #34363b;
    --grape: #9d8bff;
    --on-grape: #0a0b0c;
    --grape-soft: rgba(157, 139, 255, 0.1);
    --grape-line: rgba(157, 139, 255, 0.45);
    --success: #3ddc97;
    --success-soft: rgba(61, 220, 151, 0.1);
    --warning: #fdb022;
    --warning-soft: rgba(253, 176, 34, 0.1);
    --danger: #ff7a59;
    --header-bg: rgba(10, 11, 12, 0.8);
    --shadow-sm: none;
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 56px -20px rgba(0, 0, 0, 0.7);
    --dark-bg: #121316;
    --dark-panel: #0a0b0c;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.app { background: var(--surface-200); }
main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; }

a { color: var(--grape); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 var(--space-3); }
h1 { font-weight: 700; font-size: 32px; line-height: 38px; letter-spacing: -0.025em; }
h2 { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 17px; line-height: 24px; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.muted, small { color: var(--ink-muted); }
small { font-size: 14px; line-height: 20px; }
.accent { color: var(--grape); }
.mono, .code { font: 500 13px/20px var(--font-mono); letter-spacing: 0.01em; }
.code { font-size: 18px; line-height: 28px; letter-spacing: 0.06em; word-break: break-all; }
.overline {
  font: 600 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grape); margin-bottom: var(--space-4);
}

.ico { width: 16px; height: 16px; flex: none; }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 560px) { .container { padding: 0 var(--space-4); } }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: var(--space-16) var(--space-4) var(--space-20); }
.wrap > h1:first-child, .wrap > div > h1:first-child { margin-bottom: var(--space-2); }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
header.site .container { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
header.site nav.site:last-child { margin-left: auto; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); }
.logo img { display: block; width: 96px; height: auto; }
.logo:hover { text-decoration: none; }
.logo .tag { font: 600 11px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 2px 8px; }

nav.site { display: flex; align-items: center; gap: var(--space-6); font-size: 14px; font-weight: 500; }
nav.site a:not(.btn), nav.site button.link { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
nav.site a:not(.btn):hover, nav.site button.link:hover { color: var(--grape); }
nav.primary { margin-left: var(--space-10); gap: var(--space-6); }
nav.primary a:not(.btn) { color: var(--ink-muted); }
nav.primary a:not(.btn):hover { color: var(--ink); }
nav.site .hide-sm { display: inline; }
@media (max-width: 1000px) { .hide-md { display: none !important; } }
@media (max-width: 720px) { nav.site .hide-sm { display: none; } nav.site { gap: var(--space-4); } }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-muted); background: var(--surface-100); }
footer.site a { color: var(--ink-muted); }
footer.site a:hover { color: var(--ink); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); padding: var(--space-16) 0 var(--space-12); }
.footer-grid h4 { font: 600 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--space-4); }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid h4 + a { margin-top: 0; }
.footer-brand img { width: 96px; height: auto; display: block; margin-bottom: var(--space-4); }
.footer-brand p { max-width: 260px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); font-size: 13px; }
.footer-grid + .footer-base { border-top: 1px solid var(--hairline); }
footer.site .links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: var(--space-12); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Buttons ---------- */

button, .btn {
  font: 600 15px/20px var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--grape);
  background: var(--grape);
  color: var(--on-grape);
  cursor: pointer;
  justify-self: start;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(10, 11, 12, 0.12);
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button.secondary, .btn.secondary { background: var(--surface-100); color: var(--ink); border-color: var(--hairline-strong); box-shadow: var(--shadow-sm); }
button.secondary:hover, .btn.secondary:hover { border-color: var(--ink-muted); filter: none; }
button.link { background: none; border: 0; padding: 0; color: var(--grape); font-weight: 500; box-shadow: none; }
button.link:hover { text-decoration: underline; text-underline-offset: 3px; filter: none; }
.btn.sm, button.sm { padding: 7px 14px; font-size: 14px; border-radius: var(--radius-sm); }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.volt { background: var(--volt); border-color: var(--volt); color: var(--on-volt); box-shadow: none; }
.btn.ghost-dark { background: transparent; border-color: #3a3c41; color: #f4f4f1; box-shadow: none; }
.btn.ghost-dark:hover { border-color: #f4f4f1; filter: none; }
button:disabled { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 2px solid var(--grape); outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Cards and panels ---------- */

.card {
  background: var(--surface-100);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-sm);
}
.card > h2:first-child { margin-bottom: var(--space-2); }
.panel { background: var(--surface-200); border-radius: var(--radius-lg); padding: var(--space-8); }
body.app .panel, .page .panel { background: var(--surface-100); border: 1px solid var(--hairline); }
@media (max-width: 560px) { .card { padding: var(--space-6) var(--space-4); } }

.notice {
  background: var(--grape-soft);
  border: 1px solid var(--grape-line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
}
.error { color: var(--danger); font-weight: 500; }
.secure-note { text-align: center; }

/* Status chips: always a coloured dot plus a word */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/16px var(--font-sans);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  white-space: nowrap;
  justify-self: start;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.verified { color: var(--success); background: var(--success-soft); border-color: transparent; }
.chip.awaiting { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.chip.declined { color: var(--danger); }

/* ---------- Forms ---------- */

form { display: grid; gap: var(--space-4); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
fieldset + fieldset { border-top: 1px solid var(--hairline); padding-top: var(--space-6); margin-top: var(--space-2); }
legend { float: left; width: 100%; font: 600 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-1); padding: 0; }

label { display: grid; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; }
label.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 22px; font-weight: 400; }
label.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--grape); flex: none; }

input[type="text"], input[type="email"], input[type="date"], input[type="month"], select {
  font: 400 16px/24px var(--font-sans);
  padding: 10px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-100);
  color: var(--ink);
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--ink-muted); opacity: 0.7; }
input:focus, select:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 4px var(--grape-soft); }
select { width: auto; justify-self: start; }

/* ---------- Records (spells) ---------- */

ul.spells { list-style: none; padding: 0; margin: var(--space-4) 0; display: grid; gap: var(--space-3); }
.spell {
  background: var(--surface-100);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, background 0.15s;
}
.spell:has(input:checked) { border-color: var(--grape); background: linear-gradient(var(--grape-soft), var(--grape-soft)), var(--surface-100); }
.spell strong { font: 600 17px/24px var(--font-display); letter-spacing: -0.01em; }
.spell .roles { display: block; white-space: pre-line; margin: 6px 0; }
.spell-body { display: grid; gap: 2px; }
.spell-body .chip { margin-bottom: var(--space-1); }

dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; }
dl.meta dt { color: var(--ink-muted); }
dl.meta dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Dashboard and company pages ---------- */

.card + .card, .card + section.card, section.card + section.card, .notice + .card { margin-top: var(--space-6); }
.card h3 { margin-top: var(--space-6); }
.card form h3:first-child { margin-top: 0; }
.spell .actions { margin-top: var(--space-2); }
.actions.spaced { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.count {
  display: inline-block; min-width: 22px; padding: 0 7px; margin-left: var(--space-2);
  border-radius: var(--radius-pill); background: var(--warning-soft); color: var(--warning);
  font: 600 13px/22px var(--font-sans); text-align: center; vertical-align: middle;
}
.inline-form { grid-template-columns: 1fr auto; align-items: end; margin-top: var(--space-6); }
.prefix-input { display: flex; align-items: center; gap: var(--space-2); }
.prefix-input > span { color: var(--ink-muted); font-weight: 400; white-space: nowrap; }
.role-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-3); }
.role-row + .role-row { border-top: 1px dashed var(--hairline); padding-top: var(--space-3); }
.role-checks { display: grid; gap: var(--space-2); }
@media (max-width: 560px) {
  .role-row, .inline-form { grid-template-columns: 1fr; }
  .prefix-input { flex-direction: column; align-items: stretch; }
}

/* App pages: mini.js mounts on .page, which holds the header, main and footer */
.page { flex: 1; display: flex; flex-direction: column; background: var(--surface-200); }
.page > main { flex: 1; }
.after-chip { margin-top: var(--space-4); }

/* =====================================================================
   Landing page
   ===================================================================== */

.landing h2 { font: 700 44px/50px var(--font-display); letter-spacing: -0.035em; }
.landing .lead { font-size: 18px; line-height: 28px; }
section.band { padding: var(--space-28) 0; }
.section-head { max-width: 620px; margin-bottom: var(--space-16); }
.section-head h2 { margin-bottom: var(--space-4); }
@media (max-width: 720px) {
  .landing h2 { font-size: 32px; line-height: 38px; }
  section.band { padding: var(--space-20) 0; }
  .section-head { margin-bottom: var(--space-10); }
}

/* ---------- Hero ---------- */

.hero { padding: var(--space-20) 0 var(--space-16); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 13px; font-weight: 500; line-height: 20px; color: var(--ink-2);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 4px 12px 4px 4px; margin-bottom: var(--space-8); background: var(--surface-100);
  box-shadow: var(--shadow-sm);
}
.eyebrow:hover { text-decoration: none; border-color: var(--hairline-strong); }
.eyebrow .ico { width: 14px; height: 14px; color: var(--ink-muted); }
.eyebrow-tag { background: var(--grape-soft); color: var(--grape); border-radius: var(--radius-pill); padding: 0 8px; font-weight: 600; font-size: 12px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--space-12); align-items: end; }
.hero h1 { font: 700 68px/72px var(--font-display); letter-spacing: -0.045em; margin: 0; }
.hero-side .lead { margin-bottom: var(--space-8); color: var(--ink-muted); }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero h1 { font-size: 60px; line-height: 62px; max-width: 760px; }
  .hero-side { max-width: 600px; }
}
@media (max-width: 560px) {
  .hero { padding-top: var(--space-12); }
  .hero h1 { font-size: 42px; line-height: 46px; letter-spacing: -0.04em; }
  .eyebrow { font-size: 12px; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* The product stage under the hero */
.stage {
  margin-top: var(--space-16);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: var(--space-16) var(--space-12);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, var(--grape-soft), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--hairline-strong) 1px, transparent 0) 0 0 / 20px 20px,
    var(--surface-200);
  overflow: hidden;
}
.flow { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; }
.flow-link { position: relative; height: 1px; background: repeating-linear-gradient(90deg, var(--grape-line) 0 6px, transparent 6px 10px); }
.flow-link::after { content: ""; position: absolute; right: -2px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--grape); }
.flow-link span { display: none; }
.flow .ui-approve { transform: translateY(-12px); box-shadow: var(--shadow-lg); border-color: var(--grape-line); }
@media (max-width: 1000px) {
  .stage { padding: var(--space-10) var(--space-6); }
  .flow { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .flow-link { height: 32px; width: 1px; justify-self: center; background: repeating-linear-gradient(180deg, var(--grape-line) 0 6px, transparent 6px 10px); }
  .flow-link::after { right: -3px; top: auto; bottom: -2px; }
  .flow .ui-approve { transform: none; }
}
@media (max-width: 560px) { .stage { padding: var(--space-6) var(--space-3); margin-top: var(--space-12); } }

/* Mock product UI */
.ui {
  background: var(--surface-100);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 18px;
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.ui-bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  font-weight: 600; color: var(--ink); background: var(--surface-100);
}
.ui-step {
  width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--grape-soft); color: var(--grape); font: 600 11px/1 var(--font-sans);
}
.ui-time { margin-left: auto; color: var(--ink-muted); font-weight: 500; font-size: 12px; }
.ui-body { padding: 16px; display: grid; gap: 8px; }
.ui-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }
.ui-value { font-weight: 500; color: var(--ink); margin-top: -4px; }
.ui-value.mono { font-size: 12px; }
.ui-body > .chip { margin-top: 6px; }
.ui-title { font: 600 15px/20px var(--font-display); letter-spacing: -0.01em; margin: 2px 0; }
.ui strong { font-weight: 600; color: var(--ink); display: block; }
.ui small { font-size: 12px; line-height: 16px; display: block; }

.ui-check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px;
}
.ui-check .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--hairline-strong); flex: none; margin-top: 1px; position: relative; }
.ui-check.on { border-color: var(--grape-line); background: var(--grape-soft); }
.ui-check.on .box { background: var(--grape); border-color: var(--grape); }
.ui-check.on .box::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid var(--on-grape); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ui-button {
  display: block; text-align: center; margin-top: 6px;
  background: var(--grape); color: var(--on-grape); font-weight: 600; font-size: 13px;
  padding: 9px 12px; border-radius: 10px;
}
.ui-button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline-strong); }
.ui-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }

.ui-ref { padding-bottom: 4px; }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.ui-row.big { padding: 14px 0; }
.ui-row.big strong { font: 600 15px/22px var(--font-display); }
.ui-row.big small { font-size: 13px; line-height: 20px; }
.ui-foot { font-size: 11px; color: var(--ink-muted); border-top: 1px solid var(--hairline); padding-top: 10px; }

.ui-wide { font-size: 14px; line-height: 20px; }
.ui-wide .ui-body { padding: 20px 24px; gap: 10px; }
.ui-wide .ui-bar { padding: 14px 24px; }
.ui-wide .ui-check strong { font-size: 14px; }

.timeline { display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--hairline); padding-top: 14px; font-size: 12px; color: var(--ink-muted); }
.timeline div { display: inline-flex; align-items: center; gap: 6px; }
.timeline b { color: var(--ink); font-weight: 600; }
.timeline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-strong); }
.timeline .dot.on { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

.ui-table { font-size: 13px; }
.ui-table .tr { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--hairline); align-items: center; }
.ui-table .tr:first-child { border-top: 0; }
.ui-table .th { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-200); }
.ui-table .mono { font-size: 12px; }
@media (max-width: 560px) {
  .ui-table .tr { grid-template-columns: 1fr 1fr; padding: 10px 16px; }
  .ui-table .tr > :nth-child(3) { display: none; }
  .ui-wide .ui-body { padding: 16px; }
  .ui-wide .ui-bar { padding: 12px 16px; }
}

/* ---------- Proof points ---------- */

.proof { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-8) var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.proof-list li + li { border-left: 1px solid var(--hairline); }
.proof-list li:first-child { padding-left: 0; }
.proof-list strong { display: block; color: var(--ink); font-weight: 600; }
.proof-list .ico { width: 20px; height: 20px; color: var(--grape); margin-top: 1px; }
@media (max-width: 1000px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list li { padding: var(--space-6) var(--space-4) var(--space-6) 0; }
  .proof-list li + li { border-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 560px) { .proof-list { grid-template-columns: 1fr; } .proof-list li:nth-child(n+2) { border-top: 1px solid var(--hairline); } }

/* ---------- Statement ---------- */

.statement p { font: 600 36px/46px var(--font-display); letter-spacing: -0.03em; max-width: 980px; color: var(--ink); margin: 0; }
.statement p span { color: var(--ink-muted); opacity: 0.85; }
@media (max-width: 720px) { .statement p { font-size: 26px; line-height: 34px; } }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.steps li { border-top: 1px solid var(--hairline-strong); padding-top: var(--space-6); }
.steps h3 { font-size: 19px; line-height: 26px; margin: var(--space-4) 0 var(--space-2); }
.steps p { color: var(--ink-muted); }
.step-num { font: 500 13px/20px var(--font-mono); color: var(--grape); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- Feature rows ---------- */

.feature { border-top: 1px solid var(--hairline); }
.feature-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-20); align-items: center; }
.feature.alt .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: var(--space-4); }
.feature-copy .lead { margin-bottom: var(--space-8); }
.feature-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--hairline);
  padding: var(--space-12);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, var(--grape-soft), transparent 70%),
    var(--surface-200);
}
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .feature.alt .feature-copy { order: 0; }
  .feature-visual { padding: var(--space-6); }
}
@media (max-width: 560px) { .feature-visual { padding: var(--space-3); border-radius: var(--radius-md); } }

ul.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; gap: var(--space-3); }
ul.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grape-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3df5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hint { font-size: 14px; line-height: 22px; color: var(--ink-muted); border-left: 2px solid var(--grape-line); padding-left: var(--space-4); }
.hint .mono { color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.more:hover .ico { transform: translateX(2px); }
.more .ico { transition: transform 0.15s; }

/* ---------- Security (Ink: accent is Volt) ---------- */

.ink-band { background: var(--dark-bg); color: var(--dark-text); border-radius: var(--radius-lg); padding: var(--space-16); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .ink-band, .cta-panel { border: 1px solid var(--hairline); } }
.ink-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 85% 0%, rgba(215, 255, 63, 0.07), transparent 70%);
}
.ink-band > * { position: relative; }
.ink-band h2, .ink-band h3 { color: var(--dark-text); }
.ink-band .accent { color: var(--volt); }
.ink-band .overline { color: var(--volt); }
.ink-band p, .ink-band .lead { color: var(--dark-muted); }
.security-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: center; }
.security-grid h2 { font-size: 56px; line-height: 60px; margin-bottom: var(--space-4); }

.db { background: var(--dark-panel); border: 1px solid var(--dark-line); border-radius: 14px; font-size: 13px; overflow: hidden; }
.db-head { display: flex; justify-content: space-between; gap: var(--space-4); padding: 12px 20px; border-bottom: 1px solid var(--dark-line); color: var(--dark-muted); font-weight: 500; }
.db-head .mono { font-size: 12px; color: var(--dark-muted); }
.db dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; padding: 20px; font: 500 13px/20px var(--font-mono); }
.db dt { color: var(--dark-muted); }
.db dd { margin: 0; color: var(--volt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-foot { padding: 12px 20px; border-top: 1px solid var(--dark-line); color: var(--dark-text); font-weight: 500; }

.sec-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-10); margin-top: var(--space-16); padding-top: var(--space-10); border-top: 1px solid var(--dark-line); }
.sec-points p { font-size: 15px; line-height: 24px; }
@media (max-width: 1000px) {
  .ink-band { padding: var(--space-10) var(--space-6); }
  .security-grid, .sec-points { grid-template-columns: 1fr; gap: var(--space-8); }
  .security-grid h2 { font-size: 40px; line-height: 44px; }
}
@media (max-width: 560px) {
  .ink-band { padding: var(--space-8) var(--space-4); border-radius: var(--radius-md); }
  .db dl { grid-template-columns: 1fr; gap: 2px; padding: 16px; }
  .db dd { margin-bottom: 10px; }
  .db-head, .db-foot { padding: 12px 16px; }
}

/* ---------- Comparison ---------- */

.compare { border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; line-height: 22px; }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; }
.compare-row + .compare-row { border-top: 1px solid var(--hairline); }
.compare-row > span { padding: var(--space-5) var(--space-6); }
.compare-row > :nth-child(1) { font-weight: 600; color: var(--ink); }
.compare-row > :nth-child(2) { color: var(--ink-muted); }
.compare-row > :nth-child(3) { background: var(--grape-soft); color: var(--ink); font-weight: 500; border-left: 1px solid var(--grape-line); }
.compare-head > span { padding-top: var(--space-6); padding-bottom: var(--space-6); font: 600 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; }
.compare-head > :nth-child(1) { color: var(--ink-muted); }
.compare-logo { width: 84px; height: auto; display: block; }
@media (prefers-color-scheme: dark) { .compare-logo { content: url(/img/logo-white.svg); } }
@media (max-width: 720px) {
  .compare { font-size: 14px; line-height: 20px; border-radius: var(--radius-md); }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > :nth-child(1) { grid-column: 1 / -1; padding-bottom: 0; }
  .compare-head > :nth-child(1) { display: none; }
  .compare-row > span { padding: var(--space-3) var(--space-4); }
  .compare-row > :nth-child(1) { padding-top: var(--space-4); }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-16); align-items: start; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-6) 0; font: 600 18px/26px var(--font-display); letter-spacing: -0.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--font-sans); color: var(--ink-muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); padding: 0 var(--space-10) var(--space-6) 0; margin: 0; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } .faq summary { font-size: 16px; } }

/* ---------- Closing CTA ---------- */

.closing { padding-top: 0; }
.cta-panel {
  background: var(--dark-bg); color: var(--dark-text); border-radius: var(--radius-lg);
  padding: var(--space-16); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-10); flex-wrap: wrap;
  background-image: radial-gradient(ellipse 50% 80% at 100% 100%, rgba(215, 255, 63, 0.08), transparent 70%);
}
.cta-panel h2 { color: var(--dark-text); max-width: 640px; margin-bottom: var(--space-4); }
.cta-panel .accent { color: var(--volt); }
.cta-panel .lead { color: var(--dark-muted); }
@media (max-width: 720px) { .cta-panel { padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); } .cta-panel .actions .btn { flex: 1 1 100%; } }

/* =====================================================================
   Multi-page site
   ===================================================================== */

section.band.tight-top { padding-top: 0; }
section.band.soft { background: var(--surface-200); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
section.band.soft + section.band, section.band + section.band.soft { border-top-color: var(--hairline); }
section.band h2, .page-hero h2 { font: 700 44px/50px var(--font-display); letter-spacing: -0.035em; }

/* Current page in the nav */
nav.site a[aria-current="page"] { color: var(--ink) !important; }
nav.primary a[aria-current="page"] { position: relative; }
nav.primary a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--grape); border-radius: 2px; }

/* Mobile menu: a <details> so it needs no JavaScript */
.show-md { display: none; }
@media (max-width: 1000px) { .show-md { display: block; } }
details.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary span, details.menu summary span::before, details.menu summary span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s; }
details.menu summary span::before, details.menu summary span::after { content: ""; position: absolute; left: 0; }
details.menu summary span::before { top: -5px; }
details.menu summary span::after { top: 5px; }
details.menu[open] summary span { background: transparent; }
details.menu[open] summary span::before { transform: translateY(5px) rotate(45deg); }
details.menu[open] summary span::after { transform: translateY(-5px) rotate(-45deg); }
.menu-panel {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 64px); z-index: 30;
  border-top: 1px solid var(--hairline);
  background: var(--surface-100); padding: var(--space-4) var(--space-6) var(--space-8);
  display: flex; flex-direction: column; overflow-y: auto;
}
.menu-panel a { font: 600 20px/28px var(--font-display); letter-spacing: -0.015em; color: var(--ink) !important; padding: var(--space-4) 0; border-bottom: 1px solid var(--hairline); }
nav.site .menu-panel a[aria-current="page"] { color: var(--grape) !important; }

/* Sub-page hero */
.page-hero { padding: var(--space-20) 0; }
.page-hero h1 { font: 700 56px/60px var(--font-display); letter-spacing: -0.04em; margin-bottom: var(--space-6); }
.page-hero .lead { max-width: 560px; margin-bottom: var(--space-8); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: center; }
.page-hero-narrow { max-width: 760px; }
@media (max-width: 1000px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .page-hero h1 { font-size: 44px; line-height: 48px; }
}
@media (max-width: 560px) {
  .page-hero { padding: var(--space-12) 0; }
  .page-hero h1 { font-size: 36px; line-height: 40px; }
  .page-hero .actions .btn { flex: 1 1 100%; }
}

/* Icon cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.fcard {
  background: var(--surface-100); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: var(--space-8); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fcard:has(.more):hover { border-color: var(--grape-line); box-shadow: var(--shadow-md); }
.fcard h3 { font-size: 19px; line-height: 26px; margin: var(--space-6) 0 var(--space-2); }
.fcard p { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.fcard .more { margin-top: auto; padding-top: var(--space-6); }
.icon-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grape-soft); color: var(--grape); }
.icon-tile .ico { width: 20px; height: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .fcard { padding: var(--space-6); } }

.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps.four { grid-template-columns: 1fr; } }

.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-16); }
.split-head .section-head { margin-bottom: 0; }
@media (max-width: 720px) { .split-head { margin-bottom: var(--space-10); } }

.ink-band .more { color: var(--volt); margin-top: var(--space-2); }

/* More mock UI */
.ui-field { display: grid; gap: 4px; }
.ui-field span { font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.ui-field b { font-weight: 500; border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 8px 12px; background: var(--surface-100); }
.ui-field b.mono { font-size: 13px; }
.ui-note { color: var(--ink-muted); margin: 0 0 4px; }
.ui-note b { color: var(--ink); font-weight: 600; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.ui-stats div { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.ui-stats b { font: 700 22px/28px var(--font-display); letter-spacing: -0.02em; }
.ui-stats span { font-size: 12px; color: var(--ink-muted); }
.ui-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 8px; }
.ui-code span { border: 1px solid var(--hairline-strong); border-radius: 10px; text-align: center; padding: 10px 0; font: 600 20px/24px var(--font-display); }
.ui-code span:last-child { border-color: var(--grape); box-shadow: 0 0 0 3px var(--grape-soft); }

/* FAQ page */
.chips-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips-nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); padding: 6px 14px; }
.chips-nav a:hover { border-color: var(--grape); color: var(--grape); text-decoration: none; }
.faq-band { padding: var(--space-16) 0; border-top: 1px solid var(--hairline); }
.faq-band .section-head h2 { font-size: 32px; line-height: 38px; }
@media (max-width: 880px) { .faq-band .section-head { margin-bottom: var(--space-6); } }

/* ---------- Print (recruiter reports) ---------- */

@media print {
  :root { --surface-100: #fff; --surface-200: #fff; --ink: #000; --ink-muted: #444; --hairline: #bbb; }
  body.app, .page { background: #fff; }
  header.site { position: static; backdrop-filter: none; background: none; }
  .no-print, nav.site, footer.site { display: none !important; }
  .card, .spell { box-shadow: none; }
  .wrap { padding: 0; }
}

.ui-body > .ui-row:first-child { border-top: 0; padding-top: 4px; }
.ui-time { white-space: nowrap; }

/* =====================================================================
   App shell (signed-in dashboard): sidebar + content, tabs, tables, dialogs
   ===================================================================== */

body.shell-body { background: var(--surface-200); display: block; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: var(--space-6);
  padding: var(--space-5) var(--space-4);
  background: var(--surface-100);
  border-right: 1px solid var(--hairline);
}
.sidebar .logo { padding: 6px var(--space-2); }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 8px 10px; border-radius: var(--radius-sm);
  font: 500 14px/20px var(--font-sans); color: var(--ink-muted);
  transition: background 0.12s, color 0.12s;
}
.side-nav a:hover { background: var(--surface-200); color: var(--ink); text-decoration: none; }
.side-nav a.on { background: var(--grape-soft); color: var(--grape); font-weight: 600; }
.side-nav .ico { width: 18px; height: 18px; }
.nav-badge {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--grape); color: var(--on-grape); font: 600 11px/20px var(--font-sans); text-align: center;
}

.side-foot { margin-top: auto; display: grid; gap: var(--space-4); }
.side-links { display: flex; gap: var(--space-4); padding: 0 10px; font-size: 13px; }
.side-links a { color: var(--ink-muted); }
.side-links a:hover { color: var(--ink); text-decoration: none; }
.user-card {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-100);
}
.user-text { display: grid; min-width: 0; flex: 1; }
.user-text strong { font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Before the name arrives, show placeholders rather than an empty box */
.user-text strong:empty, .user-text small:empty { height: 12px; border-radius: 4px; background: var(--surface-300); margin: 4px 0; }
.user-text strong:empty { width: 70%; }
.user-text small:empty { width: 90%; }

.avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grape-soft); color: var(--grape);
  font: 600 12px/1 var(--font-sans); letter-spacing: 0.02em;
}
.avatar:empty { background: var(--surface-300); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; background: var(--surface-300); color: var(--ink-2); }

button.icon-btn {
  width: 32px; height: 32px; padding: 0; flex: none;
  background: transparent; border: 0; box-shadow: none; color: var(--ink-muted); border-radius: var(--radius-sm);
}
button.icon-btn:hover { background: var(--surface-200); color: var(--ink); filter: none; }
button.icon-btn .ico { width: 18px; height: 18px; }

/* ---------- Content ---------- */

.content { padding: var(--space-10) var(--space-10) var(--space-16); max-width: 1240px; width: 100%; margin: 0 auto; }
.view:not([hidden]) { animation: view-in 0.2s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-8); }
.page-head h1 { font-size: 28px; line-height: 34px; margin: 0; }
.page-head p { margin: var(--space-1) 0 0; }
.page-date { font-size: 13px; line-height: 20px; color: var(--ink-muted); margin: 0 0 var(--space-1) !important; }
.page-head .actions { gap: var(--space-2); }
.page-head button .ico, .empty button .ico { width: 16px; height: 16px; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.stat {
  display: grid; gap: var(--space-1); align-content: start;
  padding: var(--space-5); border-radius: var(--radius-md);
  background: var(--surface-100); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
  color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
a.stat:hover { text-decoration: none; border-color: var(--hairline-strong); box-shadow: var(--shadow-md); }
.stat-label { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.stat-num { font: 700 32px/40px var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--hairline-strong); }
.dot.success { background: var(--success); }
.dot.warning { background: var(--warning); }

/* Panels */
.panel-card {
  background: var(--surface-100); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-6); overflow: hidden;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--hairline); }
.panel-head h2 { font-size: 16px; line-height: 24px; margin: 0; }
.panel-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.panel-link .ico { width: 14px; height: 14px; }
.panel-link:hover { text-decoration: none; }

/* Table of checks */
.table { font-size: 14px; line-height: 20px; }
.tr {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.1fr) 120px;
  gap: var(--space-4); align-items: center;
  padding: 12px var(--space-6); border-top: 1px solid var(--hairline);
}
.tr.th { border-top: 0; padding-top: 10px; padding-bottom: 10px; background: var(--surface-200); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.tr:not(.th):hover { background: color-mix(in srgb, var(--surface-200) 55%, transparent); }
.cell-person { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.cell-stack { display: grid; min-width: 0; }
.cell-stack strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-stack small { font-size: 12px; line-height: 16px; }
.cell-stack small:empty { display: none; }
.cell-company { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-date { color: var(--ink-muted); white-space: nowrap; }
.cell-action { display: flex; justify-content: flex-end; }

/* Status chips with a tone */
.chip[data-tone="success"] { color: var(--success); background: var(--success-soft); border-color: transparent; }
.chip[data-tone="warning"] { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.chip[data-tone="danger"] { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: transparent; }
.chip[data-tone="neutral"] { color: var(--ink-muted); background: var(--surface-200); border-color: transparent; }

/* Company rows on the overview */
.rows { display: grid; }
.row-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center;
  padding: 14px var(--space-6); color: var(--ink); font-size: 14px; line-height: 20px;
}
.row-link + .row-link { border-top: 1px solid var(--hairline); }
.row-link:hover { background: color-mix(in srgb, var(--surface-200) 55%, transparent); text-decoration: none; }
.row-link .chev { color: var(--ink-muted); transition: transform 0.15s; }
.row-link:hover .chev { transform: translateX(2px); color: var(--ink); }
.org-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--dark-bg); color: var(--volt); font: 700 13px/1 var(--font-display); letter-spacing: 0.02em;
}
.org-mark.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }

/* Company cards */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
.company-card {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-6); border-radius: var(--radius-md);
  background: var(--surface-100); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
}
.company-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.company-card h3 { margin: 0; font-size: 17px; }
.company-url { color: var(--ink-muted); margin: 0; font-size: 12px; }
.company-note { font-size: 14px; line-height: 20px; color: var(--ink-2); margin: var(--space-3) 0 0; }
.company-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--hairline); }
.company-note + .company-foot { margin-top: var(--space-5); }

/* Invitations */
.invites { margin-bottom: var(--space-6); }
.invite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.invite {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  background: linear-gradient(var(--grape-soft), var(--grape-soft)), var(--surface-100);
  border: 1px solid var(--grape-line);
  transition: opacity 0.15s;
}
.invite.is-busy { opacity: 0.6; }
.invite-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grape); color: var(--on-grape); flex: none; }
.invite-text { display: grid; flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.invite-text strong { font-weight: 600; }
.invite .actions { gap: var(--space-2); }

/* Checks toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--hairline); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-200); border: 1px solid var(--hairline); }
.segmented button {
  background: transparent; border: 0; box-shadow: none; color: var(--ink-muted);
  padding: 6px 12px; border-radius: 7px; font-size: 13px; line-height: 18px; font-weight: 500;
}
.segmented button:hover { color: var(--ink); filter: none; }
.segmented button:active { transform: none; }
.segmented button.on { background: var(--surface-100); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--hairline); }
.seg-count { color: var(--ink-muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.search { position: relative; display: block; flex: 0 1 320px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.search input {
  width: 100%; font: 400 14px/20px var(--font-sans); padding: 8px 12px 8px 36px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: var(--surface-100); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 4px var(--grape-soft); }

/* Empty states */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--space-2); padding: var(--space-12) var(--space-6); }
.empty h3 { margin: var(--space-2) 0 0; }
.empty p { max-width: 440px; margin: 0 0 var(--space-3); }
.empty button { justify-self: center; }
.empty.compact { padding: var(--space-6); }
.empty.compact p { margin-bottom: var(--space-2); }
.empty-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grape-soft); color: var(--grape); }
.empty-icon .ico { width: 24px; height: 24px; }
.empty-icon.danger { background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); }
.empty-page { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding-top: var(--space-20); }
.empty-page h1 { font-size: 24px; line-height: 32px; margin: var(--space-2) 0 0; }

/* Inline error banner */
.alert {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 10px 10px var(--space-4); margin-bottom: var(--space-6); border-radius: var(--radius-md);
  color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, var(--surface-100)); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  font-size: 14px; line-height: 20px; font-weight: 500;
}
.alert > span { flex: 1; }
.alert .icon-btn { color: inherit; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 18px 10px 14px; border-radius: var(--radius-pill);
  background: var(--dark-bg); color: var(--dark-text); box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 20px; font-weight: 500; max-width: calc(100vw - 32px);
}
.toast:not([hidden]) { animation: toast-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.toast .ico { color: var(--volt); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Dialogs ---------- */

dialog.modal {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: var(--surface-100); color: var(--ink); box-shadow: var(--shadow-lg);
}
dialog.modal[open] { animation: modal-in 0.18s ease-out; }
dialog.modal::backdrop { background: rgba(10, 11, 12, 0.42); backdrop-filter: blur(2px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
dialog.modal form { padding: var(--space-6); gap: var(--space-4); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin: -4px -8px 0 0; }
.modal-head h2 { margin: 0; font-size: 20px; }
dialog.modal p.muted { margin: 0; font-size: 14px; line-height: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* An input with a fixed prefix inside the same box */
.affix {
  display: flex; align-items: center;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: var(--surface-100); box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.affix:focus-within { border-color: var(--grape); box-shadow: 0 0 0 4px var(--grape-soft); }
.affix > span { padding-left: 12px; color: var(--ink-muted); font-weight: 400; font-size: 16px; white-space: nowrap; }
.affix input[type="text"] { border: 0; box-shadow: none; padding-left: 1px; background: transparent; }
.affix input[type="text"]:focus { box-shadow: none; }

/* ---------- Authenticator setup ---------- */

.setup { display: grid; place-items: start center; padding-top: var(--space-10); }
.setup-card {
  width: min(520px, 100%); padding: var(--space-10); border-radius: var(--radius-lg);
  background: var(--surface-100); border: 1px solid var(--hairline); box-shadow: var(--shadow-md);
}
.setup-card h1 { font-size: 26px; line-height: 32px; margin: var(--space-5) 0 var(--space-2); }
.setup-steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-6); }
.setup-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-4); }
.setup-steps li > div { display: grid; gap: 2px; justify-items: start; }
.setup-steps strong { font-size: 15px; line-height: 22px; font-weight: 600; }
.setup-steps b { color: var(--ink-2); font-weight: 600; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grape-soft); color: var(--grape); font: 600 13px/1 var(--font-sans); }
.setup-reveal { margin-top: var(--space-3); }
.secret-box {
  display: flex; align-items: center; gap: var(--space-2); justify-self: stretch;
  margin-top: var(--space-3); padding: 8px 8px 8px 14px; border-radius: var(--radius-sm);
  background: var(--surface-200); border: 1px dashed var(--hairline-strong);
}
.secret-box .code { flex: 1; font-size: 16px; line-height: 24px; }
.code-form { display: flex; gap: var(--space-2); margin-top: var(--space-3); justify-self: stretch; }
.code-form input { font: 500 20px/24px var(--font-mono) !important; letter-spacing: 0.3em; text-align: center; max-width: 180px; }
.setup-card .error { margin: var(--space-5) 0 0; }

/* ---------- Skeletons ---------- */

.sk { border-radius: 6px; background: linear-gradient(90deg, var(--surface-300) 0%, var(--surface-200) 50%, var(--surface-300) 100%) 0 0 / 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk-line { height: 12px; margin: 6px 0; }
.sk-title { height: 28px; margin-top: var(--space-3); width: 280px; max-width: 100%; }
.sk-num { height: 30px; width: 56px; margin-top: var(--space-3); }
.sk-dot { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.sk-row { display: flex; align-items: center; gap: var(--space-4); padding: 16px var(--space-6); border-top: 1px solid var(--hairline); }
.sk-row .sk-line:last-child { margin-left: auto; }
.page-head > .grow { flex: 1; }
.w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (prefers-color-scheme: dark) { .org-mark { box-shadow: inset 0 0 0 1px var(--hairline-strong); } }

@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]), .toast:not([hidden]), dialog.modal[open], .sk { animation: none; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: var(--space-8) var(--space-6) var(--space-16); }
}

@media (max-width: 860px) {
  /* Sidebar becomes a top bar with tabs underneath */
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 30; height: auto;
    display: grid; grid-template-columns: 1fr auto; gap: 0; padding: 0 var(--space-4);
    border-right: 0; border-bottom: 1px solid var(--hairline);
    background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
  .sidebar .logo { padding: 14px 0; align-self: center; }
  .side-foot { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  .side-links, .user-text { display: none; }
  .user-card { border: 0; padding: 0; background: none; gap: var(--space-1); }
  .side-nav { grid-column: 1 / -1; display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; border-radius: 0; padding: 10px 8px 12px; background: none !important; border-bottom: 2px solid transparent; }
  .side-nav a.on { border-bottom-color: var(--grape); }
  .side-nav .ico { display: none; }
  .content { padding: var(--space-6) var(--space-4) var(--space-16); }
  .page-head { align-items: flex-start; }
}

@media (max-width: 720px) {
  /* Table rows become stacked cards */
  .tr.th { display: none; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); padding: 14px var(--space-4); }
  .table > .tr:nth-child(2) { border-top: 0; }
  .cell-person { grid-column: 1; }
  .cell-status { grid-column: 2; grid-row: 1; }
  .cell-company, .cell-date { grid-column: 1 / -1; padding-left: 40px; font-size: 13px; line-height: 18px; }
  .cell-company { margin-bottom: -6px; }
  .cell-action { grid-column: 1 / -1; justify-content: flex-start; padding-left: 40px; }
  .cell-action:not(:has(a:not([hidden]))) { display: none; }
  .toolbar { padding: var(--space-3) var(--space-4); }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1; padding: 6px 8px; }
  .search { flex: 1 1 100%; }
  .panel-head { padding: var(--space-4); }
  .row-link { padding: 14px var(--space-4); grid-template-columns: auto minmax(0, 1fr) auto; }
  .row-link .chev { display: none; }
  .invite { flex-wrap: wrap; }
  .invite .actions { width: 100%; padding-left: 52px; }
  .page-head .actions { width: 100%; }
  .page-head .actions button { flex: 1; }
  .field-pair { grid-template-columns: 1fr; }
  .setup-card { padding: var(--space-6); }
  .setup { padding-top: 0; }
}

@media (max-width: 420px) {
  .stats { gap: var(--space-3); }
  .stat { padding: var(--space-4); }
  .stat-num { font-size: 26px; line-height: 32px; }
  .stat-foot { display: none; }
}

/* ---------- Admin portal (shares the app shell) ---------- */

.sidebar .logo { gap: var(--space-2); }
.side-label { display: block; padding: var(--space-4) 10px var(--space-1); font: 600 11px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.side-nav .side-label:first-child { padding-top: 0; }
.grow { flex: 1; min-width: 0; }
.sk-dot.lg { width: 44px; height: 44px; border-radius: 12px; }

.review-list { display: grid; gap: var(--space-4); }
.review-card {
  padding: var(--space-6); border-radius: var(--radius-md);
  background: var(--surface-100); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; gap: var(--space-4); }
.review-title { flex: 1; min-width: 0; display: grid; }
.review-title h2 { font-size: 18px; line-height: 24px; margin: 0; overflow-wrap: anywhere; }
.review-title a { font-size: 12px; color: var(--ink-muted); justify-self: start; }
.review-title a:hover { color: var(--grape); }
.review-card > .sk-line { margin-top: var(--space-4); }

dl.facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4);
  margin: var(--space-5) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--hairline);
  font-size: 14px; line-height: 20px;
}
dl.facts dt { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); margin-bottom: var(--space-1); }
dl.facts dd { margin: 0; display: grid; overflow-wrap: anywhere; }
dl.facts dd small { font-size: 13px; }
dl.facts dd .chip { justify-self: start; }

.review-note { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-200); font-size: 14px; line-height: 20px; }
.review-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--hairline); }
.review-actions .actions { gap: var(--space-2); }

textarea {
  font: 400 15px/22px var(--font-sans); padding: 10px 12px; width: 100%; resize: vertical;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: var(--surface-100); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }
textarea:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 4px var(--grape-soft); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

@media (max-width: 1100px) { dl.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .side-label { display: none; } .sidebar .logo .tag { display: none; } }
@media (max-width: 720px) {
  dl.facts { grid-template-columns: 1fr 1fr; }
  .review-card { padding: var(--space-4); }
  .review-head .chip { align-self: flex-start; }
  .review-actions .actions { width: 100%; }
  .review-actions .actions button { flex: 1; }
  .page-head .search { flex: 1 1 100%; }
}

/* ================================================================
   Sign in and sign up
   Form on the left, a fixed brand panel on the right. The panel is the same on both pages,
   so moving between them only changes the form.
   ================================================================ */

body.auth-body { background: var(--surface-100); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.auth-main { display: flex; flex-direction: column; min-width: 0; padding: var(--space-6) var(--space-10); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 40px; }
.auth-top-link { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.auth-top-link a { font-weight: 600; }

/* Top-aligned at the same height on both pages, so the heading doesn't jump when you switch. */
.auth-center { flex: 1; display: grid; place-items: start center; padding: clamp(var(--space-12), 13vh, 136px) 0 var(--space-12); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
.auth-sub { color: var(--ink-muted); font-size: 15px; line-height: 23px; margin-bottom: var(--space-8); }
.auth-sub strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.auth-form { gap: var(--space-5); }
.auth-form input[type="text"], .auth-form input[type="email"] { padding: 11px 14px; }
.auth-form label.check { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.auth-form label.check input { margin-top: 2px; }
button.block, .btn.block { width: 100%; justify-self: stretch; padding-top: 12px; padding-bottom: 12px; }

.auth-error {
  margin: 0; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent);
}

.auth-hint { margin: var(--space-6) 0 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.auth-hint strong { color: var(--ink-2); font-weight: 600; }
.auth-hint button.link { font-size: inherit; line-height: inherit; }

.auth-switch {
  margin-top: var(--space-8); padding: var(--space-4);
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--surface-200);
  text-align: center; font-size: 15px; line-height: 22px; color: var(--ink-2);
}
.auth-switch a { font-weight: 600; margin-left: 2px; }

.auth-status { text-align: left; }
.auth-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-6);
  border-radius: var(--radius-md); background: var(--grape-soft); color: var(--grape);
  box-shadow: inset 0 0 0 1px var(--grape-line);
}
.auth-icon .ico { width: 22px; height: 22px; }
.auth-icon.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 25%, transparent); }

.code-input { font: 500 24px/32px var(--font-mono) !important; letter-spacing: 0.35em; text-align: center; padding: 12px !important; }
.code-input::placeholder { letter-spacing: 0.35em; opacity: 0.35; }

.spinner {
  display: block; width: 32px; height: 32px; margin-bottom: var(--space-6);
  border-radius: 50%; border: 3px solid var(--grape-soft); border-top-color: var(--grape);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
button.loading { position: relative; color: transparent !important; }
button.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--on-grape);
  animation: spin 0.7s linear infinite;
}

.auth-foot { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.auth-foot .links { display: flex; gap: var(--space-5); }
.auth-foot a { color: var(--ink-muted); }
.auth-foot a:hover { color: var(--ink); }

/* Brand panel */
.auth-aside {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
}
.auth-aside-inner {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-16) clamp(var(--space-10), 6vw, var(--space-20));
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(91, 61, 245, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(215, 255, 63, 0.1), transparent 70%),
    var(--dark-bg);
  border: 1px solid var(--dark-line);
  color: var(--dark-text);
}
.auth-aside-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%);
}
.auth-aside-inner > * { position: relative; max-width: 480px; }
.auth-kicker { font: 600 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt); margin-bottom: var(--space-4); }
.auth-aside h2 { color: #fff; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; margin-bottom: var(--space-10); }

.auth-points { list-style: none; margin: 0 0 var(--space-12); padding: 0; display: grid; gap: var(--space-6); }
.auth-points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.auth-points li > span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--volt);
}
.auth-points li > div { display: grid; gap: 2px; padding-top: 1px; }
.auth-points strong { font-size: 15px; line-height: 22px; font-weight: 600; color: #fff; }
.auth-points small { font-size: 14px; line-height: 21px; color: var(--dark-muted); }

.auth-sample {
  display: grid; gap: 2px; padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.auth-sample-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); font-size: 12px; line-height: 16px; color: var(--dark-muted); }
.auth-sample-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill);
  font-weight: 600; color: #3ddc97; background: rgba(61, 220, 151, 0.12); white-space: nowrap;
}
.auth-sample-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.auth-sample strong { font: 600 17px/24px var(--font-display); color: #fff; letter-spacing: -0.01em; }
.auth-sample small { font-size: 14px; line-height: 20px; color: var(--dark-muted); }

@media (max-width: 1100px) {
  .auth { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .auth-main { padding: var(--space-6) var(--space-8); }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}
@media (max-width: 560px) {
  .auth-main { padding: var(--space-4); }
  .auth-top-link { display: none; }          /* the switch link under the form does the job */
  .auth-center { place-items: start center; padding: var(--space-10) 0 var(--space-12); }
  .auth-box h1 { font-size: 26px; line-height: 32px; }
  .auth-foot { flex-direction: column; gap: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .spinner, button.loading::after { animation-duration: 2.4s; }
}
