/* ==========================================================================
   VoiceIQ UI — shared design system (see DESIGN.md)
   Loaded on every page after the page's own <style>, before feature sheets.
   ========================================================================== */

/* Self-hosted type (SIL Open Font License — see /fonts/*-OFL.txt) */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/bricolage-grotesque-400.woff") format("woff"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/bricolage-grotesque-700.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/instrument-sans-400.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/instrument-sans-400i.woff") format("woff"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/instrument-sans-700.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-400.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-700.woff") format("woff"); }

:root {
  --font-display: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Instrument Sans", "Inter", ui-sans-serif, system-ui, sans-serif;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f5f6;
  --surface-3: #eaecee;
  --text: #101214;
  --muted: #485259;
  --faint: #8a9199;
  --line: #e6e8ea;
  --line-strong: #d3d7db;
  --ink: #090a0c;
  --ink-text: #eef0f1;
  --accent: #101214;
  --accent-ink: #000000;
  --accent-soft: #f4f5f6;
  --accent-text: #101214;
  --signal: #22c55e;
  --signal-soft: #eafaf0;
  --signal-text: #166534;
  --danger: #d1403b;
  --danger-soft: #fbe9e8;
  --success: #1f9d5b;
  --success-soft: #e6f6ec;
  --warn: #b7791f;
  --warn-soft: #fbf1dc;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --shadow: 0 1px 2px rgba(16,18,20,.05), 0 8px 24px rgba(16,18,20,.06);
  --ring: 0 0 0 3px rgba(16,18,20,.12);
  --accent-fg: #ffffff;

  /* legacy aliases used by older selectors */
  --dark: var(--ink);
  --card: var(--surface);
  --surface-polish: var(--surface-2);
  --danger-soft: #fbe7e6;
  --success-soft: #e3f6ea;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0b0c0e;
  --surface: #121416;
  --surface-2: #191c1f;
  --surface-3: #22262a;
  --text: #eef0f1;
  --muted: #9aa3ab;
  --faint: #6b7379;
  --line: #24282c;
  --line-strong: #33393e;
  --ink: #eef0f1;
  --ink-text: #0b0c0e;
  --accent: #eef0f1;
  --accent-ink: #ffffff;
  --accent-soft: #191c1f;
  --accent-text: #eef0f1;
  --signal: #4ade80;
  --signal-soft: #10261a;
  --signal-text: #86efac;
  --danger: #ff7b76;
  --danger-soft: #3a1d1f;
  --success: #5fd39a;
  --success-soft: #14291f;
  --warn: #f0b95a;
  --warn-soft: #332812;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(238,240,241,.18);
  --accent-fg: #0b0c0e;
  --dark: #0b0c0e;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
strong, b { font-weight: 600; }
::selection { background: var(--accent-soft); color: var(--accent-text); }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Ambient blobs from the old design — turned into a quiet, single violet wash */
.ambient { position: fixed; width: 720px; height: 720px; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .18; z-index: -2; }
.ambient-one { background: var(--accent); top: -320px; left: -260px; }
.ambient-two { background: var(--signal); top: 40vh; right: -420px; opacity: .10; }
html[data-theme="dark"] .ambient { opacity: .12; }
html[data-theme="dark"] .ambient-two { opacity: .05; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.035em; color: var(--text); }
.brand-iq { color: var(--accent); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark span { width: 2px; border-radius: 999px; background: var(--ink-text); display: block; }
.brand-mark span:nth-child(1), .brand-mark span:nth-child(5) { height: 7px; opacity: .65; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(4) { height: 13px; }
.brand-mark span:nth-child(3) { height: 18px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; border-radius: 99px; background: var(--accent); }
.nav-cta, .nav-links a.nav-cta { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--ink-text) !important; font-weight: 600; font-size: 13px; transition: opacity .15s ease; }
.nav-cta:hover { opacity: .86; }
.nav-cta.active::after { display: none; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 4px auto; border-radius: 2px; }

/* Theme toggle injected by site-session.js */
.voiceiq-theme-toggle { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); display: grid; place-items: center; font: 600 15px/1 var(--font-body); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.voiceiq-theme-toggle:hover { border-color: var(--line-strong); background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.button-dark { background: var(--ink); color: var(--ink-text); }
.button-dark:hover { opacity: .86; }
.button-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button-ghost:hover { background: var(--surface-2); }
.button-light { background: var(--surface); color: var(--text); border-color: var(--line); }
.button-light:hover { background: var(--surface-2); }
.button-accent { background: var(--accent); color: var(--accent-fg); }
.button-accent:hover { background: var(--accent-ink); }
.button-large { min-height: 54px; padding-inline: 28px; font-size: 15px; }
.button-small { min-height: 38px; padding-inline: 16px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Kickers, eyebrows, labels
   -------------------------------------------------------------------------- */
.mini-label, .kicker, .section-label, .card-number, .step-index, .field-label, .account-kicker, .dashboard-kicker, .admin-kicker, .voice-entry-index {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field-label { display: block; margin-bottom: 8px; }
.eyebrow {
  width: max-content; max-width: 100%; margin: 0 auto 28px; display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }

/* --------------------------------------------------------------------------
   Hero (marketing)
   -------------------------------------------------------------------------- */
.hero { padding: 104px 0 64px; text-align: center; }
.hero h1, .page-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(56px, 8vw, 112px); line-height: .92; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span, .page-hero h1 span, .section-heading h2 span, .dark-panel h2 span, .cta-panel h2 span, .auth-intro h1 span, .member-shell h1 span { color: var(--accent-text); font-weight: 700; }
.dark-panel h2 span { color: var(--accent); }
.hero-copy { max-width: 640px; margin: 30px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust-row { margin: 26px auto 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.trust-row i { width: 4px; height: 4px; background: var(--line-strong); border-radius: 50%; }

.page-hero { padding: 96px 0 64px; }
.page-hero .eyebrow { margin-left: 0; }
.page-hero h1 { max-width: 960px; font-size: clamp(52px, 7vw, 96px); }
.page-hero p { max-width: 640px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.page-hero .hero-actions { justify-content: flex-start; }

/* Sample player card in the hero */
.voice-card { margin: 64px auto 0; width: min(980px, 100%); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); text-align: left; position: relative; overflow: hidden; }
.voice-card::before { display: none; }
.voice-card-top, .sample-grid { position: relative; z-index: 1; }
.voice-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.voice-card h3 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.03em; }
.generation-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--signal-soft); color: var(--signal-text); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.generation-note > span { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-text); }
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.sample-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .15s ease; }
.sample-card:hover { border-color: var(--line-strong); }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sample-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sample-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.sample-person div:last-child { display: flex; flex-direction: column; min-width: 0; }
.sample-person strong { font-size: 14px; font-weight: 600; }
.sample-person small { margin-top: 2px; font-size: 12px; color: var(--faint); }
.sample-badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; }
.sample-player { display: flex; align-items: center; gap: 12px; }
.sample-play { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; transition: opacity .15s ease; }
.sample-play:hover { opacity: .85; }
.sample-play span { font-size: 11px; transform: translateX(1px); }
.sample-wave-wrap { min-width: 0; flex: 1; }
.sample-wave { height: 44px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.sample-wave span { flex: 1 1 1px; min-width: 1px; max-width: 3px; border-radius: 999px; background: var(--line-strong); transition: background .08s linear; }
.sample-wave span.active { background: var(--accent); }
.sample-time { display: flex; justify-content: space-between; margin-top: 6px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }

.logo-strip { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Sections & headings
   -------------------------------------------------------------------------- */
.section { padding: 112px 0; }
.section.compact { padding-top: 72px; padding-bottom: 88px; }
.section-heading { margin-bottom: 44px; }
.section-heading.centered { text-align: center; }
.section-heading h2, .dark-panel h2 { max-width: 820px; margin: 14px 0 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.section-heading.centered h2 { margin-inline: auto; }
.section-heading p { max-width: 620px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.section-heading.centered p { margin-inline: auto; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.feature-card { min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; transition: border-color .18s ease; overflow: hidden; position: relative; }
.feature-card:hover, .info-card:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
.feature-card.large { grid-row: 1 / span 2; min-height: 574px; background: var(--ink); color: var(--ink-text); border-color: transparent; }
.feature-card.large::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 42%), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 100% 100%, 18px 18px; opacity: .9; }
html[data-theme="dark"] .feature-card.large { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.feature-card.large > * { position: relative; z-index: 1; }
.feature-card.large p { color: color-mix(in srgb, currentColor 68%, transparent); }
.feature-card.large .card-number { color: color-mix(in srgb, currentColor 60%, transparent); }
.feature-icon { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 20px; color: var(--text); }
.ripple-icon { width: 100%; height: 240px; border: 0; background: transparent; position: relative; }
.ripple-icon span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; }
.ripple-icon span:nth-child(1) { width: 230px; height: 230px; }
.ripple-icon span:nth-child(2) { width: 150px; height: 150px; }
.ripple-icon span:nth-child(3) { width: 70px; height: 70px; background: var(--accent); box-shadow: inset 0 0 0 22px var(--signal); border: 0; }
.feature-card h3, .step h3, .info-card h3 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.feature-card p, .step p, .info-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* Steps */
.contrast-section { padding: 112px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .contrast-section { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.step-visual { height: 205px; margin: 22px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.upload-visual { flex-direction: column; gap: 18px; }
.upload-ring { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 22px; }
.fake-file { width: 75%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: center; color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.fake-file span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.fake-file b { color: var(--text); font-weight: 600; }
.fake-file em { font-style: normal; }
.scan-bars { width: 82%; height: 120px; display: flex; gap: 4px; align-items: center; }
.scan-bar { flex: 1; border-radius: 99px; background: var(--line-strong); }
.scan-line { position: absolute; left: 10%; right: 10%; height: 1px; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: scan 2.5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 28%; } 50% { top: 72%; } }
.type-visual { flex-direction: column; gap: 12px; padding: 20px; }
.type-box { width: 100%; min-height: 90px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font-size: 13px; text-align: left; }
.cursor { display: inline-block; width: 1px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--text); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.generate-pill { align-self: flex-end; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: var(--ink-text); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); display: flex; flex-direction: column; transition: border-color .18s ease; }
.info-icon { width: 46px; height: 46px; margin-bottom: auto; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 18px; font-weight: 700; }

/* Public database grid */
.database-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.database-note { color: var(--muted); font-size: 13px; }
.database-count { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.database-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.voice-entry { min-height: 120px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; transition: border-color .15s ease, background .15s ease; }
.voice-entry:hover { border-color: var(--line-strong); background: var(--surface-2); transform: none; box-shadow: none; }
.voice-entry-index { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--faint); }
.voice-entry strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.voice-entry small { color: var(--faint); font-size: 12px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.team-card { min-width: 0; }
.team-photo-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: grayscale(100%) contrast(1.05); transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.team-card:hover .team-photo { transform: scale(1.03); filter: grayscale(0); }
.team-index { position: absolute; top: 12px; right: 12px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.team-info { padding: 16px 4px 4px; }
.team-info h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.03em; }
.team-info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Dark panel */
.dark-wrap { padding: 0 0 112px; }
.dark-panel { min-height: 500px; padding: 60px; border-radius: var(--radius-l); background: var(--ink); color: var(--ink-text); display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; overflow: hidden; position: relative; }
html[data-theme="dark"] .dark-panel { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.dark-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 40%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 100% 100%, 18px 18px; width: auto; height: auto; top: 0; right: 0; border-radius: 0; filter: none; }
.dark-copy, .safety-card { position: relative; z-index: 1; }
.dark-copy p { max-width: 560px; color: color-mix(in srgb, currentColor 66%, transparent); line-height: 1.65; font-size: 16px; }
.dark-panel .kicker, .dark-panel .mini-label { color: color-mix(in srgb, currentColor 60%, transparent); }
.safety-card { padding: 26px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: var(--radius); background: color-mix(in srgb, currentColor 6%, transparent); }
.shield-mark { width: 54px; height: 54px; margin-bottom: 28px; border-radius: 16px; display: grid; place-items: center; background: var(--signal); color: #111114; font-size: 22px; }
.safety-line { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); color: color-mix(in srgb, currentColor 62%, transparent); font-size: 13px; }
.safety-line b { color: inherit; font-weight: 600; }
.dark-panel .safety-line b { color: var(--ink-text); }
html[data-theme="dark"] .dark-panel .safety-line b { color: var(--text); }

/* Submit / recorder */
.submit-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 16px; align-items: start; }
.prompt-card, .recorder-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.prompt-card { position: sticky; top: 92px; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.prompt-head strong { font-size: 14px; font-weight: 600; }
.copy-prompt { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.voice-prompt { margin: 0; color: var(--text); font-size: 16px; line-height: 1.75; }
.prompt-foot { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.55; }
.model-alias { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius-s); outline: none; background: var(--surface); color: var(--text); }
.model-alias:focus { border-color: var(--accent); box-shadow: var(--ring); }
.recorder-box { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.recorder-status { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.mic-orb { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); position: relative; }
.mic-orb::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--faint); }
.mic-orb.live { background: var(--danger-soft); box-shadow: 0 0 0 7px color-mix(in srgb, var(--danger) 12%, transparent); animation: micPulse 1.2s ease-in-out infinite; }
.mic-orb.live::after { background: var(--danger); }
@keyframes micPulse { 50% { transform: scale(1.06); } }
.recorder-status div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.recorder-status strong { font-size: 13px; font-weight: 600; }
.recorder-status span { color: var(--faint); font-size: 12px; }
.record-timer { color: var(--text) !important; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px !important; }
.recorder-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.record-button, .record-again, .submit-recording { min-height: 46px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.record-button { border: 0; background: var(--ink); color: var(--ink-text); }
.record-button.recording { background: var(--danger); color: #fff; }
.record-again { padding: 0 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.recording-preview { width: 100%; margin-top: 16px; height: 42px; }
.consent-row { margin-top: 20px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-row input { margin-top: 2px; accent-color: var(--accent); }
.submit-recording { width: 100%; margin-top: 18px; border: 0; background: var(--ink); color: var(--ink-text); }
.submit-recording:disabled { cursor: not-allowed; background: var(--surface-3); color: var(--faint); }
.submit-message { min-height: 18px; margin: 11px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.submit-message.error { color: var(--danger); }
.submit-message.success { color: var(--success); }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

/* CTA panel */
.cta-panel { margin-bottom: 96px; padding: 48px 52px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent-soft) 90%, transparent), transparent 45%); }
.cta-panel > * { position: relative; }
.cta-panel h2 { max-width: 680px; margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.site-legal-footer { color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.site-legal-footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Shared primitives used across member / staff pages
   -------------------------------------------------------------------------- */
/* Inputs */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]), select, textarea).creator-name,
.creator-name, .search, .public-search, .restore-input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text); font-size: 15px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.creator-name { padding: 12px 14px; min-height: 120px; line-height: 1.55; resize: vertical; }
.creator-name:focus, .search:focus, .public-search:focus, .restore-input:focus { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.creator-name::placeholder, .search::placeholder { color: var(--faint); }
select.creator-name { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Small utility buttons (.btn used by admin / owner / chat) */
.btn { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease, opacity .15s ease; }
.btn:hover { background: var(--surface-2); transform: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn-primary:hover { opacity: .86; background: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); opacity: .85; }
.btn-success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Pills / badges / counters */
.count-pill, .live-pill, .owned-badge, .community-status, .database-count, .dashboard-model-badge, .plus-pill, .badge, .role-tag, .audit-role, .profile-special-tag, .custom-member-tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.count-pill, .plus-pill { background: var(--accent-soft); color: var(--accent-text); }
.live-pill { background: var(--signal-soft); color: var(--signal-text); }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 30%, transparent); }

/* Cards */
.member-card, .panel-card, .admin-stat, .dashboard-stat, .dashboard-side-card, .dashboard-recent-card, .chat-card, .creator-main, .creator-side, .auth-card, .creator-account-card, .profile-stat, .owner-control {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none;
}

/* Segmented tabs */
.admin-tabs, .auth-tabs, .library-tabs, .mode-toggle, .model-toggle-group { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.admin-tabs button, .auth-tabs button { min-height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.admin-tabs button:hover, .auth-tabs button:hover { color: var(--text); }
.admin-tabs button.active, .auth-tabs button.active { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: none; }

/* Empty states */
.empty, .dashboard-empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--muted); font-size: 13px; }

/* Modals */
.modal-backdrop { background: rgba(13,15,20,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Member gate (pre-auth shell) */
.member-gate { max-width: 520px; margin: 18vh auto; padding: 32px; font-family: var(--font-body); line-height: 1.6; color: var(--muted); }
.member-gate h1 { font-family: var(--font-display); font-size: 32px; color: var(--text); margin-bottom: 8px; }
.member-gate a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Online users panel (styles injected by site-session.js are overridden here) */
body .voiceiq-online-toggle { top: auto; bottom: 18px; right: 18px; min-height: 38px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow); backdrop-filter: none; }
body .voiceiq-online-toggle::before { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
body .voiceiq-online-panel { top: auto; bottom: 66px; right: 18px; max-height: min(520px, calc(100vh - 100px)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: none; }
body .voiceiq-online-head { border-bottom: 1px solid var(--line); }
body .voiceiq-online-head strong { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body .voiceiq-online-head span { background: var(--signal-soft); color: var(--signal-text); font: 600 11px/1 var(--font-mono); }
body .voiceiq-online-empty { color: var(--faint); font: 500 12px/1.5 var(--font-body); }
body .voiceiq-online-user { border-radius: var(--radius-s); }
body .voiceiq-online-user:hover { background: var(--surface-2); }
body .voiceiq-online-avatar { border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 600 12px/1 var(--font-mono); }
body .voiceiq-online-user.owner .voiceiq-online-avatar { background: var(--accent); color: #fff; }
body .voiceiq-online-user.admin .voiceiq-online-avatar { background: var(--ink); color: var(--ink-text); }
body .voiceiq-online-name strong { font: 600 13px/1.2 var(--font-body); color: var(--text); }
body .voiceiq-online-role { font: 600 10px/1 var(--font-mono); letter-spacing: .08em; padding: 4px 6px; }
body .voiceiq-online-role.owner { background: var(--accent-soft); color: var(--accent-text); }
body .voiceiq-online-role.admin { background: var(--ink); color: var(--ink-text); }
body .voiceiq-online-tag { font: 600 10px/1 var(--font-mono); }

/* Range inputs */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--surface-3); outline: none; accent-color: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); cursor: pointer; }
input[type="range"]:focus-visible { outline: none; box-shadow: var(--ring); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav-links { gap: 18px; }
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-card.large { grid-row: auto; min-height: 420px; }
  .steps, .info-grid { grid-template-columns: 1fr; }
  .info-grid.two { grid-template-columns: 1fr; }
  .database-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .dark-panel, .submit-layout { grid-template-columns: 1fr; }
  .prompt-card { position: static; }
  .dark-panel { min-height: 0; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav { height: 64px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 64px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .2s ease; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 12px; font-size: 15px; border-radius: var(--radius-s); }
  .nav-links a:hover { background: var(--surface-2); }
  .nav-links a.active::after { display: none; }
  .nav-cta, .nav-links a.nav-cta { margin-top: 6px; }
  .hero { padding-top: 72px; }
  .page-hero { padding-top: 64px; }
  .hero h1, .page-hero h1 { letter-spacing: -.04em; }
  .hero-copy { font-size: 16px; }
  .voice-card { padding: 18px; margin-top: 48px; }
  .voice-card-top { align-items: flex-start; flex-direction: column; }
  .sample-grid { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .contrast-section { padding: 80px 0; }
  .section-heading { margin-bottom: 30px; }
  .database-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-panel { padding: 30px; }
  .cta-panel { padding: 32px; flex-direction: column; align-items: flex-start; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .hero-actions, .page-hero .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .logo-strip { grid-template-columns: 1fr; }
  .database-grid, .team-grid { grid-template-columns: 1fr; }
  .recorder-status { grid-template-columns: 42px 1fr; }
  .record-timer { grid-column: 2; }
  .recorder-actions { grid-template-columns: 1fr; }
  .record-again { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scan-line, .cursor, .mic-orb.live { animation: none !important; }
}
