/* ==========================================================================
   EclipseMC Content Creator — design system

   A fusion of the two references:
   · eclipsemc.be  — deep navy ground, orange primary, violet accents, pill
                     buttons, Orbitron wordmark, soft glows.
   · swurfyy.com   — near-black depth, Space Grotesk headings at weight 600
                     with tight tracking, hairline borders, generous rhythm.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@700;900&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* Ground: EclipseMC navy pulled toward Swurfyy's near-black. */
  --bg:            hsl(240 62% 6%);
  --bg-deep:       hsl(240 70% 4%);
  --surface:       hsl(240 46% 10%);
  --surface-2:     hsl(248 44% 13%);
  --surface-3:     hsl(252 40% 17%);

  --line:          hsl(255 40% 100% / 0.09);
  --line-strong:   hsl(255 40% 100% / 0.16);

  --text:          hsl(240 20% 97%);
  --text-muted:    hsl(240 14% 72%);
  --text-dim:      hsl(240 12% 55%);

  --orange:        hsl(33 100% 50%);
  --orange-soft:   hsl(33 100% 50% / 0.12);
  --violet:        hsl(276 95% 68%);
  --violet-soft:   hsl(276 95% 68% / 0.14);
  --blue:          hsl(199 88% 64%);
  --green:         hsl(160 72% 46%);
  --amber:         hsl(45 100% 58%);
  --red:           hsl(352 88% 62%);

  --grad-hero: linear-gradient(180deg, hsl(272 62% 22%) 0%, hsl(258 60% 14%) 38%, hsl(240 62% 6%) 100%);
  --grad-card: linear-gradient(150deg, hsl(258 42% 16%) 0%, hsl(242 46% 10%) 100%);
  --grad-text: linear-gradient(96deg, var(--violet) 0%, var(--blue) 62%, var(--orange) 130%);

  --glow-orange: 0 0 44px hsl(33 100% 50% / 0.22);
  --glow-violet: 0 0 44px hsl(276 95% 68% / 0.22);

  --r-sm: 8px;
  --r:    13px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px hsl(240 60% 2% / 0.5);
  --shadow-2: 0 12px 34px -12px hsl(240 60% 2% / 0.85);
  --shadow-3: 0 28px 70px -24px hsl(240 60% 2% / 0.95);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1200px;
  --nav-h: 68px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Wide content scrolls inside its own container (.table-wrap, .job-log);
     the page itself never scrolls sideways. */
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A faint starfield keeps the large dark areas from reading as flat black. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, hsl(0 0% 100% / 0.32), transparent),
    radial-gradient(1px 1px at 78% 12%, hsl(0 0% 100% / 0.22), transparent),
    radial-gradient(1.4px 1.4px at 34% 62%, hsl(276 95% 80% / 0.3), transparent),
    radial-gradient(1px 1px at 88% 74%, hsl(0 0% 100% / 0.2), transparent),
    radial-gradient(1px 1px at 56% 88%, hsl(199 88% 80% / 0.24), transparent),
    radial-gradient(1px 1px at 22% 92%, hsl(0 0% 100% / 0.16), transparent);
  background-size: 100% 100%;
  opacity: 0.75;
}

body > * { position: relative; z-index: 1; }

img, video, canvas { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: #fff;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); }
h4 { font-size: 1rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--orange); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

code, kbd, pre, .mono {
  font-family: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.86em;
}

::selection { background: var(--violet); color: #0b0618; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.stack > * + * { margin-top: var(--gap, 1rem); }

.page { padding: 40px 0 96px; }
.page-narrow { max-width: 760px; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; max-width: 62ch; }

/* Eyebrow: the one place Orbitron appears outside the wordmark. */
.eyebrow {
  font-family: Orbitron, 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}
.eyebrow.violet { color: var(--violet); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: hsl(240 62% 6% / 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.wordmark .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--orange), var(--violet));
  box-shadow: var(--glow-orange);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #10061e;
  flex: none;
}
.wordmark .sub {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover { background: hsl(0 0% 100% / 0.05); color: #fff; }
.nav-link.active { background: var(--orange-soft); color: var(--orange); }
.nav-link .count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 7px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ── Avatar & user menu ─────────────────────────────────────────────────── */

.avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #100722;
  flex: none;
  letter-spacing: 0.02em;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar.sm { width: 26px; height: 26px; font-size: 0.66rem; }

.usermenu { position: relative; }
.usermenu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  background: hsl(0 0% 100% / 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.usermenu-trigger:hover { border-color: var(--line-strong); background: hsl(0 0% 100% / 0.07); }
.usermenu-name { font-weight: 500; }

.usermenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 232px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-3);
  padding: 7px;
  display: none;
}
.usermenu-panel.open { display: block; }
.usermenu-panel .who {
  padding: 10px 11px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.usermenu-panel .who strong { display: block; font-size: 0.9rem; }
.usermenu-panel .who span { font-size: 0.78rem; color: var(--text-dim); }
.usermenu-panel a,
.usermenu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.usermenu-panel a:hover,
.usermenu-panel button:hover { background: hsl(0 0% 100% / 0.06); color: #fff; }
.usermenu-panel button.danger:hover { background: hsl(352 88% 62% / 0.14); color: var(--red); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: hsl(0 0% 100% / 0.06);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.885rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--orange);
  --btn-fg: #150a02;
  --btn-bd: transparent;
}
.btn-primary:hover { box-shadow: var(--glow-orange); }

.btn-violet {
  --btn-bg: var(--violet);
  --btn-fg: #16062b;
  --btn-bd: transparent;
}
.btn-violet:hover { box-shadow: var(--glow-violet); }

.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: hsl(0 0% 100% / 0.06); }

.btn-danger { --btn-bg: hsl(352 88% 62% / 0.12); --btn-fg: var(--red); --btn-bd: hsl(352 88% 62% / 0.3); }
.btn-danger:hover { --btn-bg: hsl(352 88% 62% / 0.2); }

.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 30px; font-size: 0.98rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Cards & panels ─────────────────────────────────────────────────────── */

.card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-2);
}
.card.tight { padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-head p { margin: 4px 0 0; font-size: 0.86rem; }

.panel {
  background: hsl(240 46% 10% / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}

/* `1fr` is short for `minmax(auto, 1fr)`, which refuses to shrink below the
   content's min-content width — that is what pushes a nested two-column form
   past a phone viewport. `minmax(0, 1fr)` lets the track actually shrink. */
.grid { display: grid; gap: 20px; }
.grid > *, .split > *, .feature-grid > *, .project-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* Six landing-page features read best three-up; a 230px track would break to four. */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(296px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { min-width: 0; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: 0.815rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}
.label .opt { color: var(--text-dim); font-weight: 400; }

.hint { font-size: 0.79rem; color: var(--text-dim); margin-top: 7px; line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  background: hsl(240 55% 5% / 0.68);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: hsl(240 12% 45%); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: hsl(240 55% 5% / 0.9);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.input.error, .select.error, .textarea.error { border-color: var(--red); }

.textarea { resize: vertical; min-height: 92px; line-height: 1.55; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238e8aa8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.error-text {
  display: block;
  color: var(--red);
  font-size: 0.79rem;
  margin-top: 6px;
  font-weight: 500;
}

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: hsl(240 55% 5% / 0.45);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.check:hover { border-color: var(--line-strong); }
.check input { margin: 3px 0 0; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.check-body strong { display: block; font-size: 0.875rem; font-weight: 600; }
.check-body span { font-size: 0.79rem; color: var(--text-dim); }

/* File drop zone */
.dropzone {
  /* Een <label> is standaard inline; zonder display:block wikkelt de streepjes-
     rand zich om de regels heen en valt het vak zichtbaar uiteen. */
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 34px 24px;
  text-align: center;
  background: hsl(240 55% 5% / 0.4);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange); background: var(--orange-soft); }
.dropzone .big { font-size: 2rem; margin-bottom: 8px; }
.dropzone strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.dropzone span { font-size: 0.82rem; color: var(--text-dim); }
.dropzone input[type='file'] { display: none; }
.dropzone.filled { border-style: solid; border-color: var(--green); background: hsl(160 72% 46% / 0.08); }

/* ── Badges & pills ─────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge.plain::before { display: none; }

.badge-green  { background: hsl(160 72% 46% / 0.13); color: var(--green);  border-color: hsl(160 72% 46% / 0.28); }
.badge-amber  { background: hsl(45 100% 58% / 0.13); color: var(--amber);  border-color: hsl(45 100% 58% / 0.28); }
.badge-red    { background: hsl(352 88% 62% / 0.13); color: var(--red);    border-color: hsl(352 88% 62% / 0.28); }
.badge-violet { background: var(--violet-soft);      color: var(--violet); border-color: hsl(276 95% 68% / 0.28); }
.badge-blue   { background: hsl(199 88% 64% / 0.13); color: var(--blue);   border-color: hsl(199 88% 64% / 0.28); }
.badge-orange { background: var(--orange-soft);      color: var(--orange); border-color: hsl(33 100% 50% / 0.28); }
.badge-grey   { background: hsl(0 0% 100% / 0.06);   color: var(--text-dim); border-color: var(--line); }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 640px; }
.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: hsl(240 55% 5% / 0.55);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s var(--ease); }
.table tbody tr:hover { background: hsl(0 0% 100% / 0.028); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.user-cell { display: flex; align-items: center; gap: 11px; }
.user-cell strong { display: block; font-weight: 600; font-size: 0.885rem; }
.user-cell span { font-size: 0.775rem; color: var(--text-dim); }

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.alert {
  display: flex;
  gap: 13px;
  padding: 14px 17px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: hsl(240 46% 10% / 0.8);
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.55;
}
.alert .icon { font-size: 1.05rem; line-height: 1.3; flex: none; }
.alert strong { display: block; margin-bottom: 3px; color: #fff; }
.alert p { margin: 0; font-size: 0.86rem; }
.alert-success { border-color: hsl(160 72% 46% / 0.36); background: hsl(160 72% 46% / 0.09); }
.alert-warn    { border-color: hsl(45 100% 58% / 0.36);  background: hsl(45 100% 58% / 0.08); }
.alert-error   { border-color: hsl(352 88% 62% / 0.36);  background: hsl(352 88% 62% / 0.09); }
.alert-info    { border-color: hsl(199 88% 64% / 0.32);  background: hsl(199 88% 64% / 0.07); }

/* ── Empty state ────────────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 62px 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: hsl(240 55% 5% / 0.3);
}
.empty .big { font-size: 2.6rem; margin-bottom: 14px; opacity: 0.55; }
.empty h3 { margin-bottom: 8px; }
.empty p { max-width: 44ch; margin-inline: auto; margin-bottom: 22px; }

/* ── Progress ───────────────────────────────────────────────────────────── */

.progress {
  height: 7px;
  border-radius: var(--r-pill);
  background: hsl(240 55% 5% / 0.85);
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress-bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--violet), var(--orange));
  transition: width 0.4s var(--ease);
  width: 0;
}
.progress-bar.indeterminate {
  width: 34% !important;
  animation: slide 1.5s ease-in-out infinite;
}
@keyframes slide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(330%); }
}

.job-log {
  margin-top: 14px;
  max-height: 190px;
  overflow-y: auto;
  padding: 12px 14px;
  background: hsl(240 60% 3% / 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Stats ──────────────────────────────────────────────────────────────── */

.stat {
  padding: 17px 19px;
  background: hsl(240 55% 5% / 0.5);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.stat .k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.stat .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .v.sm { font-size: 1.08rem; }
.stat .d { font-size: 0.775rem; color: var(--text-dim); margin-top: 5px; }

/* ── Project cards ──────────────────────────────────────────────────────── */

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  color: inherit;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: hsl(276 95% 68% / 0.42);
  box-shadow: var(--shadow-3), var(--glow-violet);
  color: inherit;
}
.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, hsl(258 50% 20%), hsl(240 55% 8%));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .ph { font-size: 2rem; opacity: 0.4; }
.project-thumb .corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.project-body { padding: 17px 19px 19px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.03rem; margin-bottom: 5px; }
.project-body .sub {
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-meta {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.775rem;
  color: var(--text-dim);
}

/* ── Timeline (pipeline steps) ──────────────────────────────────────────── */

.steps { display: flex; flex-direction: column; gap: 2px; }
.step {
  display: flex;
  gap: 15px;
  padding: 14px 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 44px;
  bottom: -2px;
  width: 1.5px;
  background: var(--line);
}
.step-dot {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex: none;
  z-index: 1;
  color: var(--text-dim);
}
.step.done .step-dot { background: hsl(160 72% 46% / 0.16); border-color: var(--green); color: var(--green); }
.step.active .step-dot {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 5px hsl(33 100% 50% / 0.1);
}
.step-body { flex: 1; min-width: 0; padding-top: 3px; }
.step-body h4 { margin-bottom: 3px; font-size: 0.925rem; }
.step-body p { font-size: 0.82rem; margin: 0; }
.step-body .actions { margin-top: 12px; }

/* ── Script editor ──────────────────────────────────────────────────────── */

.overlay-row, .vo-row, .clip-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: hsl(240 55% 5% / 0.45);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 9px;
}
.overlay-row { grid-template-columns: minmax(0, 2.2fr) 78px 78px 108px 100px 34px; }
.vo-row      { grid-template-columns: 60px minmax(0, 1fr) 34px; }
.clip-row    { grid-template-columns: 84px 84px minmax(0, 1fr) 34px; }

.overlay-row .input, .vo-row .input, .clip-row .input,
.overlay-row .select, .clip-row .select { padding: 8px 11px; font-size: 0.83rem; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: hsl(0 0% 100% / 0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all 0.16s var(--ease);
  flex: none;
}
.icon-btn:hover { border-color: hsl(352 88% 62% / 0.5); color: var(--red); background: hsl(352 88% 62% / 0.1); }

.mini-head {
  display: grid;
  gap: 10px;
  padding: 0 12px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mini-head.overlay { grid-template-columns: minmax(0, 2.2fr) 78px 78px 108px 100px 34px; }
.mini-head.vo      { grid-template-columns: 60px minmax(0, 1fr) 34px; }
.mini-head.clip    { grid-template-columns: 84px 84px minmax(0, 1fr) 34px; }

.spoken-preview {
  font-size: 0.76rem;
  color: var(--violet);
  padding: 5px 12px 0;
  font-style: italic;
}

/* ── Video preview ──────────────────────────────────────────────────────── */

.video-frame {
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  max-width: 320px;
  margin-inline: auto;
}
.video-frame video { width: 100%; aspect-ratio: 9 / 16; background: #000; }

.sheet-img {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #000;
}

/* ── Landing page ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 88px;
  background: var(--grad-hero);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(276 95% 68% / 0.3) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 58ch; margin-bottom: 32px; color: hsl(240 20% 90% / 0.82); }

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 8px;
  border-radius: var(--r-pill);
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.pill-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px hsl(160 72% 46% / 0.2);
  margin-left: 5px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--grad-card);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.feature:hover { border-color: hsl(33 100% 50% / 0.34); transform: translateY(-2px); }
.feature .ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--orange-soft);
  border: 1px solid hsl(33 100% 50% / 0.24);
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: 0.875rem; margin: 0; }

.section { padding: 84px 0; }
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head p { font-size: 1rem; }

.flow-list { counter-reset: flow; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.flow-item { background: var(--surface); padding: 22px 26px; display: flex; gap: 20px; align-items: flex-start; }
.flow-item::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
  flex: none;
  padding-top: 2px;
  min-width: 30px;
}
.flow-item h4 { margin-bottom: 4px; }
.flow-item p { font-size: 0.875rem; margin: 0; }

/* ── Auth pages ─────────────────────────────────────────────────────────── */

.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 52px 24px 76px;
}
.auth-card { width: 100%; max-width: 452px; }
.auth-card .card { padding: 34px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 1.75rem; margin-bottom: 8px; }
.auth-head p { font-size: 0.895rem; margin: 0; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 0.865rem; color: var(--text-dim); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, hsl(240 62% 6%) 0%, hsl(272 52% 12%) 100%);
  padding: 44px 0 34px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--orange); }

/* ── Utilities ──────────────────────────────────────────────────────────── */

.muted { color: var(--text-dim); }
.small { font-size: 0.82rem; }
.tiny  { font-size: 0.74rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono-num { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.copy-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: hsl(240 60% 3% / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.copy-field button {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-family: Inter, sans-serif;
  flex: none;
}
.copy-field button:hover { color: var(--orange); border-color: var(--orange); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 10px 16px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .overlay-row { grid-template-columns: 1fr 1fr; }
  .mini-head { display: none; }
  .overlay-row .icon-btn, .vo-row .icon-btn, .clip-row .icon-btn { justify-self: end; }
  .clip-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  :root { --nav-h: 62px; }

  /* Two side-by-side fields need 380px plus the gap; below this width they
     stack instead of forcing the page to scroll sideways. */
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .table { min-width: 520px; }
  .shell { padding-inline: 18px; }
  .nav-inner { padding-inline: 18px; }
  .nav-toggle { display: grid; place-items: center; }
  .wordmark .sub { display: none; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 14px 18px 20px;
    background: hsl(240 62% 6% / 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 0.95rem; }

  .usermenu-name { display: none; }
  .page { padding: 26px 0 68px; }
  .card { padding: 20px; }
  .auth-card .card { padding: 24px; }
  .hero { padding: 62px 0 58px; }
  .section { padding: 56px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .vo-row { grid-template-columns: 52px 1fr 34px; }
  .flow-item { padding: 18px; gap: 14px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn-row { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .overlay-row, .clip-row { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .nav, .footer, .btn-row, .job-log { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Een voice-overzin die niet in zijn clip past — geen fout, wel een keuze om
   bewust te maken, dus opvallend zonder de rij als kapot te markeren. */
.vo-overrun { color: var(--amber); font-weight: 500; }

/* Stemkiezer: groepskoppen leesbaar houden in de donkere select. */
.select optgroup { background: var(--surface-2); color: var(--text-dim); font-style: normal; }
.select option { background: var(--surface-2); color: var(--text); }
