/* ─────────────────────────────────────────────────────────────────────
   INFLUEX — COPY EXTRACTION
   Palette pulled from cxo.fig: black canvas, harvest gold, warm cream.
   Type: Montserrat (UI + display), Inter (keys / ids).
   ───────────────────────────────────────────────────────────────────── */

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

@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Thin.ttf')    format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Light.ttf')   format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Bold.ttf')    format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Black.ttf')   format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* Canvas */
  --ink-0:        #000000;
  --ink-1:        #08070a;   /* page bg */
  --ink-2:        #0e0c0a;   /* card bg */
  --ink-3:        #16130e;   /* elevated */
  --ink-4:        #221d15;   /* input bg / hover */

  /* Cream + gold (Influex brand) */
  --cream-1:      #fff2c6;   /* primary text */
  --cream-2:      #ecc777;
  --cream-3:      #fee191;
  --gold-1:       #bd8332;   /* harvest gold */
  --gold-2:       #d7b574;
  --gold-deep:    #5d4015;

  /* Functional */
  --line-faint:   rgba(189, 131, 50, 0.14);
  --line:         rgba(189, 131, 50, 0.28);
  --line-strong:  rgba(189, 131, 50, 0.5);
  --shadow-glow:  0 0 60px -20px rgba(189, 131, 50, 0.45);

  --danger:       #ff6358;
  --success:      #b7d199;

  /* Type */
  --font-ui:      'Montserrat', system-ui, sans-serif;
  --font-mono:    'Inter', ui-monospace, monospace;

  /* Rhythm */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
}

/* ----------- reset ----------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-ui);
  font-weight: 400;
  background: var(--ink-1);
  color: var(--cream-1);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Subtle warm grain so the surface feels like a film negative, not a tab. */
  background-image:
    radial-gradient(1200px 700px at 20% -10%, rgba(189,131,50,0.08), transparent 60%),
    radial-gradient(900px 600px at 110% 30%, rgba(254,225,145,0.04), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(189,131,50,0.05), transparent 60%);
  background-attachment: fixed;
}

/* Film grain layer for the whole app */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#root { position: relative; z-index: 2; min-height: 100vh; }

/* ----------- typography ----------- */
.h-display {
  font-family: var(--font-ui);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cream-1);
}
.h-eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.h-section {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--cream-1);
}
.t-mono   { font-family: var(--font-mono); }
.t-muted  { color: rgba(255, 242, 198, 0.5); }
.t-fade   { color: rgba(255, 242, 198, 0.35); }
.t-tiny   { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

::selection { background: var(--gold-1); color: var(--ink-0); }

/* ----------- shared chrome ----------- */
.shell { max-width: 1200px; margin: 0 auto; padding: 40px 56px 120px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line-faint);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-2);
}
.brand-mark {
  width: 26px; height: 26px; position: relative;
  border: 1px solid var(--gold-1);
  border-radius: 50%;
  display: grid; place-items: center;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 6px;
  border-top: 1px solid var(--gold-1);
  border-bottom: 1px solid var(--gold-1);
  transform: rotate(-22deg);
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px;
  width: 1px; background: var(--gold-1); transform: translateX(-50%);
}

/* ----------- buttons ----------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-1);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold-1); color: var(--gold-2); }
.btn-primary {
  background: var(--cream-3);
  border-color: var(--cream-3);
  color: var(--ink-0);
}
.btn-primary:hover {
  background: var(--gold-1);
  border-color: var(--gold-1);
  color: var(--ink-0);
}
.btn-ghost { border-color: transparent; color: var(--cream-2); }
.btn-ghost:hover { border-color: var(--line); color: var(--cream-1); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 10px; letter-spacing: 0.18em; }

/* ----------- inputs ----------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 14px 16px;
  color: var(--cream-1);
  font-size: 15px;
  line-height: 1.55;
  transition: border-color 0.18s ease, background 0.18s ease;
  outline: none;
  font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--gold-1);
  background: var(--ink-3);
}
.input::placeholder, .textarea::placeholder { color: rgba(255, 242, 198, 0.25); }
.textarea { resize: vertical; min-height: 100px; font-family: inherit; }

.input-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ----------- card ----------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line-faint);
  border-radius: var(--r-3);
  padding: 28px;
}
.card-hover {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-hover:hover {
  border-color: var(--line);
}

/* ----------- chips ----------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(189,131,50,0.08);
  border: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-1);
}
.chip-primary { background: var(--cream-3); color: var(--ink-0); border-color: var(--cream-3); }
.chip-primary .chip-dot { background: var(--ink-0); }
.chip-success { color: var(--success); border-color: rgba(183,209,153,0.4); }
.chip-success .chip-dot { background: var(--success); }
.chip-progress { color: var(--gold-2); border-color: rgba(215,181,116,0.35); }
.chip-progress .chip-dot { background: var(--gold-2); animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ----------- helpers ----------- */
.divider { height: 1px; background: var(--line-faint); margin: 32px 0; }
.row { display: flex; align-items: center; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.spacer { flex: 1; }

.empty {
  border: 1px dashed var(--line-faint);
  border-radius: var(--r-3);
  padding: 48px 32px;
  text-align: center;
  color: var(--cream-2);
}

/* ----------- scrollbar ----------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(189,131,50,0.18);
  border-radius: 10px;
  border: 2px solid var(--ink-1);
}
::-webkit-scrollbar-thumb:hover { background: rgba(189,131,50,0.35); }

/* ─────────────────────────────────────────────────────────────────────
   LOGIN
   ───────────────────────────────────────────────────────────────────── */
.login-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-poster {
  position: relative;
  border-right: 1px solid var(--line-faint);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 64px;
}
.login-poster::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 30% 30%, rgba(189,131,50,0.22), transparent 60%),
    radial-gradient(500px 400px at 80% 80%, rgba(255,99,88,0.06), transparent 60%);
}
.login-poster-content { position: relative; z-index: 2; }
.login-poster h1 {
  font-weight: 200;
  font-size: 72px;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 24px;
  text-wrap: balance;
}
.login-poster h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream-3);
}
.login-poster p {
  font-size: 16px;
  color: var(--cream-2);
  line-height: 1.6;
  max-width: 460px;
}
.login-poster-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 18px;
  color: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
}
.login-form {
  display: grid; place-items: center;
  padding: 64px;
}
.login-card { width: 100%; max-width: 420px; }
.login-card .field-label { margin-bottom: 4px; }
.login-key-input {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.32em;
  text-align: center;
  padding: 22px 16px;
  text-transform: uppercase;
}
.login-error {
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-top: 4px;
  min-height: 16px;
}

/* ─────────────────────────────────────────────────────────────────────
   DASHBOARD
   ───────────────────────────────────────────────────────────────────── */
.dash-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line-faint);
  margin-bottom: 48px;
}
.dash-hero .eyebrow { margin-bottom: 18px; }
.dash-hero h1 {
  font-weight: 200;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 18px;
  text-wrap: balance;
}
.dash-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream-3);
}
.dash-hero p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  color: var(--cream-2);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}
.dash-stat {
  padding: 24px 32px;
  border-right: 1px solid var(--line-faint);
}
.dash-stat:last-child { border-right: none; }
.dash-stat-n {
  font-weight: 200; font-size: 44px; letter-spacing: -0.02em;
  color: var(--cream-1);
  line-height: 1;
}
.dash-stat-l {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2);
}

.dash-progress-track {
  height: 2px;
  background: rgba(189,131,50,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 22px;
}
.dash-progress-fill {
  height: 100%; background: var(--cream-3);
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.page-group { margin-top: 48px; }
.page-group-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 18px;
}
.page-group-head .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-2);
}
.page-group-head .rule {
  flex: 1; height: 1px; background: var(--line-faint);
}
.page-group-head .count {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--cream-2);
}

.page-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-faint);
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}
.page-row:hover { background: rgba(189,131,50,0.04); }
.page-row.sub { padding-left: 32px; }
.page-row.sub::before {
  content: ""; position: absolute;
  left: 14px; top: -1px; bottom: 50%;
  border-left: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  width: 14px;
  border-bottom-left-radius: 8px;
}
.page-row .index {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--gold-2);
}
.page-row .title {
  display: flex; flex-direction: column; gap: 4px;
}
.page-row .title-main {
  font-size: 22px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--cream-1);
}
.page-row .title-sub {
  font-size: 13px; color: var(--cream-2);
  font-weight: 400;
  line-height: 1.5;
}
.page-row .pct {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--cream-2);
  min-width: 56px; text-align: right;
}
.page-row.complete .title-main { color: var(--cream-3); }
.page-row .arrow {
  font-family: var(--font-mono);
  color: var(--gold-2);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.page-row:hover .arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────────────
   CANVAS (Typeform-style progressive flow)
   ───────────────────────────────────────────────────────────────────── */
.canvas-stage {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.canvas-top {
  padding: 22px 56px;
  border-bottom: 1px solid var(--line-faint);
  display: flex; align-items: center; gap: 28px;
}
.canvas-top .crumbs {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-2);
}
.canvas-top .crumbs .sep { color: var(--gold-deep); }
.canvas-top .save-state {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2);
  display: flex; align-items: center; gap: 8px;
}
.canvas-top .save-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}
.canvas-top .save-state.saving .save-dot {
  background: var(--gold-1); animation: pulse 1s ease-in-out infinite;
}

.canvas-progress {
  position: relative;
  height: 3px;
  background: rgba(189,131,50,0.1);
}
.canvas-progress-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-1), var(--cream-3));
  width: 0;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.canvas-body {
  display: grid;
  place-items: center;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}

.canvas-step {
  width: 100%;
  max-width: 880px;
  animation: stepIn 0.5s cubic-bezier(.2,.7,.2,1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-2);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.step-eyebrow .num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--cream-3);
  font-size: 11px;
}
.step-title {
  font-weight: 200;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 14px;
  text-wrap: balance;
}
.step-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream-3);
}
.step-purpose {
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-2);
  margin-bottom: 36px;
  max-width: 640px;
}
.step-fields { display: flex; flex-direction: column; gap: 24px; }

.canvas-foot {
  padding: 20px 56px;
  border-top: 1px solid var(--line-faint);
  display: flex; align-items: center; gap: 24px;
  background: var(--ink-1);
}
.canvas-foot .hint {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-2);
}
.canvas-foot .hint kbd {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cream-1);
  background: var(--ink-3);
  margin: 0 2px;
}

/* ----------- image drop ----------- */
.imgdrop {
  border: 1px dashed var(--line);
  border-radius: var(--r-3);
  padding: 28px;
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.imgdrop.over {
  border-color: var(--cream-3);
  background: var(--ink-3);
}
.imgdrop-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px;
  color: var(--cream-2);
  text-align: center;
}
.imgdrop-empty .glyph {
  width: 44px; height: 44px;
  border: 1px solid var(--gold-1);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 18px;
}
.imgdrop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.imgdrop-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-faint);
}
.imgdrop-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.imgdrop-item .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--cream-2);
  display: flex; justify-content: space-between;
}
.imgdrop-item .del {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.8);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream-1);
  opacity: 0; transition: opacity 0.2s ease;
}
.imgdrop-item:hover .del { opacity: 1; }

/* ----------- rich text editor ----------- */
.rte-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-bottom: none;
  border-top-left-radius: var(--r-2);
  border-top-right-radius: var(--r-2);
  flex-wrap: wrap;
}
.rte-tool {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.rte-tool:hover { background: var(--ink-4); color: var(--cream-1); }
.rte-tool.active { background: var(--gold-1); color: var(--ink-0); }
.rte-tool b { font-weight: 700; }
.rte-tool i { font-style: italic; }
.rte-tool-sep {
  width: 1px; height: 18px; background: var(--line);
  margin: 0 6px;
}
.rte-body {
  min-height: 240px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-2) var(--r-2);
  padding: 22px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-1);
  outline: none;
  font-family: var(--font-ui);
}
.rte-body:focus { border-color: var(--gold-1); }
.rte-body:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 242, 198, 0.25);
}
.rte-body h1 { font-weight: 300; font-size: 32px; margin: 0 0 12px; letter-spacing: -0.02em; }
.rte-body h2 { font-weight: 400; font-size: 24px; margin: 0 0 10px; letter-spacing: -0.01em; }
.rte-body p { margin: 0 0 14px; }
.rte-body p:last-child { margin-bottom: 0; }
.rte-body ul, .rte-body ol { padding-left: 22px; margin: 0 0 14px; }

/* ----------- complete checkbox ----------- */
.complete-box {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.complete-box:hover { border-color: var(--gold-1); background: var(--ink-3); }
.complete-box.checked {
  border-color: var(--cream-3);
  background: rgba(254, 225, 145, 0.04);
}
.complete-box .box {
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold-1);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 18px;
  flex-shrink: 0;
}
.complete-box.checked .box {
  background: var(--cream-3);
  border-color: var(--cream-3);
}
.complete-box .label-main {
  font-size: 18px;
  font-weight: 400;
  color: var(--cream-1);
}
.complete-box .label-sub {
  font-size: 13px;
  color: var(--cream-2);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────────
   ADMIN
   ───────────────────────────────────────────────────────────────────── */
.admin-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line-faint);
  margin: 32px 0 0;
}
.admin-tab {
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-2);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.18s ease;
}
.admin-tab:hover { color: var(--cream-1); }
.admin-tab.active { color: var(--cream-3); border-bottom-color: var(--cream-3); }

.admin-nav {
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line-faint);
  border-radius: 999px;
}
.admin-nav-link {
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-2);
  border-radius: 999px;
  transition: all 0.18s ease;
}
.admin-nav-link:hover { color: var(--cream-1); }
.admin-nav-link.active { background: var(--cream-3); color: var(--ink-0); }

.client-row {
  display: grid;
  grid-template-columns: 1fr 240px 200px 140px 120px;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-faint);
  transition: background 0.18s ease;
}
.client-row:hover { background: rgba(189,131,50,0.04); }
.client-row .name {
  font-size: 18px; font-weight: 400;
  color: var(--cream-1);
}
.client-row .name-sub {
  font-size: 12px; color: var(--cream-2); margin-top: 2px;
}
.client-row .key {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--gold-2);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  user-select: all;
}
.client-row .key:hover { color: var(--cream-3); border-color: var(--gold-1); }

.sitemap-builder {
  display: flex; flex-direction: column; gap: 8px;
}
.sitemap-page {
  display: grid;
  grid-template-columns: 24px 1fr 140px 160px 36px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line-faint);
  border-radius: var(--r-2);
}
.sitemap-page.sub { margin-left: 32px; background: var(--ink-3); }
.sitemap-page .handle {
  display: flex; flex-direction: column; gap: 2px;
  align-items: center; justify-content: center;
  color: var(--gold-2);
}
.sitemap-page .handle .rte-tool { padding: 0; }
.sitemap-page input.input { padding: 8px 10px; font-size: 14px; }
.sitemap-page select.select { padding: 8px 10px; font-size: 12px; font-family: var(--font-mono); }

.section-builder {
  display: flex; flex-direction: column; gap: 8px;
}
.section-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ink-2);
  border: 1px solid var(--line-faint);
  border-radius: var(--r-2);
}
.section-row .order {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-2);
  text-align: center;
}

.submission-view {
  display: flex; flex-direction: column; gap: 28px;
}
.submission-page {
  background: var(--ink-2);
  border: 1px solid var(--line-faint);
  border-radius: var(--r-3);
  padding: 28px 32px;
}
.submission-section {
  border-top: 1px solid var(--line-faint);
  padding-top: 22px;
  margin-top: 22px;
}
.submission-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.submission-section h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
}
.field-show { margin: 0 0 14px; }
.field-show:last-child { margin-bottom: 0; }
.field-show .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: 4px;
}
.field-show .val {
  font-size: 15px;
  color: var(--cream-1);
  line-height: 1.5;
  white-space: pre-wrap;
}
.field-show .val.empty { color: rgba(255,242,198,0.25); font-style: italic; }

.thumbgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.thumbgrid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line-faint);
}

/* ─────────────────────────────────────────────────────────────────────
   MODAL
   ───────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 100;
  padding: 40px;
}
.modal {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-glow);
}
.modal h3 {
  font-weight: 300; font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.modal p {
  color: var(--cream-2); font-size: 14px; line-height: 1.6;
  margin: 0 0 24px;
}
