/* ============================================================
   Wikiehpad Lead Dashboard — shared design language v2
   Modern pastel · soft neon · minimalist SaaS
   ============================================================ */

:root {
  /* surfaces */
  --bg:           #F6F8FB;
  --bg-deep:      #EEF2F7;
  --paper:        #FFFFFF;
  --hairline:     #ECEEF3;
  --hairline-2:   #DDE2EB;

  /* ink */
  --ink:          #0F172A;
  --ink-soft:     #334155;
  --muted:        #6B7280;
  --muted-soft:   #94A3B8;

  /* accents (pastel-neon) */
  --coral:        #FB7185;
  --coral-soft:   #FDA4AF;
  --coral-fill:   #FFE4E6;

  --mint:         #34D399;
  --mint-soft:    #6EE7B7;
  --mint-fill:    #D1FAE5;

  --azure:        #60A5FA;
  --azure-soft:   #93C5FD;
  --azure-fill:   #DBEAFE;

  --peach:        #FB923C;
  --peach-soft:   #FDBA74;
  --peach-fill:   #FFEDD5;

  --lavender:     #A78BFA;
  --lavender-soft:#C4B5FD;
  --lavender-fill:#EDE9FE;

  --teal:         #2DD4BF;
  --teal-soft:    #5EEAD4;
  --teal-fill:    #CCFBF1;

  /* shadows — soft, layered, very subtle */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 2px 8px rgba(15,23,42,0.04);
  --shadow-md: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -8px rgba(15,23,42,0.08);
  --shadow-lg: 0 4px 16px -4px rgba(15,23,42,0.06), 0 24px 48px -16px rgba(15,23,42,0.12);

  /* radius — softer, larger */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* type */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

/* very soft atmospheric tint behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1100px 600px at 88% -8%,  rgba(167,139,250,0.10), transparent 60%),
    radial-gradient(900px  500px at -8% 108%, rgba(96,165,250,0.10),  transparent 60%),
    radial-gradient(700px  500px at 110% 110%, rgba(251,113,133,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 36px 96px;
}

/* ============ Header ============ */
.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.brand { display: flex; flex-direction: column; gap: 10px; }

/* Moonshot Growth brand mark — bars logo from tools/main-design-system.
   Brand colors are inlined here (not imported) to keep the dashboard
   self-contained. */
.moonshot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.moonshot-wordmark {
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.moonshot-suffix {
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: lowercase;
  font-style: italic;
  font-size: 10px;
}
.moonshot-badge-bars {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
}
.moonshot-badge-bars span {
  display: block;
  width: 2px;
}
.moonshot-badge-bars span:nth-child(1) { height: 10px; background: #E63946; } /* scarlet */
.moonshot-badge-bars span:nth-child(2) { height: 8px;  background: #F4A261; } /* saffron */
.moonshot-badge-bars span:nth-child(3) { height: 6px;  background: #457B9D; } /* blue */
.moonshot-badge-bars span:nth-child(4) { height: 4px;  background: #2A9D8F; } /* emerald */

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-eyebrow::before {
  content: '';
  width: 18px; height: 1.5px;
  background: linear-gradient(90deg, var(--coral), var(--lavender));
  border-radius: 999px;
}

.brand-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.brand-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral) 0%, var(--lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; color: var(--muted); }

.stack-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}

.meta .ts {
  font-family: var(--font-mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* ============ Tabs ============ */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: linear-gradient(135deg, var(--ink) 0%, #1F2937 100%);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(15,23,42,0.35);
}
.tab .badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--coral-fill);
  color: var(--coral);
}
.tab.active .badge { background: rgba(255,255,255,0.18); color: #fff; }

/* ============ Views ============ */
.view { display: none; }
.view.active { display: block; animation: viewFade 380ms cubic-bezier(.2,.7,.2,1); }
@keyframes viewFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Grid ============ */
.grid { display: grid; gap: 18px; }
.kpi-grid          { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.kpi-grid.compact  { grid-template-columns: repeat(3, 1fr); }
.kpi-grid.seven    { grid-template-columns: repeat(7, 1fr); }
.split             { grid-template-columns: 2fr 1fr; gap: 20px; }
.split-today       { grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 1100px) {
  .kpi-grid, .kpi-grid.seven { grid-template-columns: repeat(3, 1fr); }
  .split, .split-today { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { padding: 28px 18px 64px; }
  .app-header { flex-direction: column; align-items: flex-start; }
  .kpi-grid, .kpi-grid.compact, .kpi-grid.seven { grid-template-columns: repeat(2, 1fr); }
  .brand-title { font-size: 26px; }
}

/* ============ Cards ============ */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.card:hover { box-shadow: var(--shadow-md); }

.card.large {
  padding: 26px 26px 22px;
  border-radius: var(--r-lg);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.card-sub {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ============ KPI ============ */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: 'tnum' 1, 'ss01' 1;
}
.kpi-value.small {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.kpi-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  font-weight: 500;
}

/* delta pills — soft tinted bg, dark legible text */
.delta {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.delta.up   { background: var(--mint-fill);  color: #047857; }
.delta.down { background: var(--coral-fill); color: #BE123C; }
.delta.flat { background: var(--hairline);   color: var(--muted); }

/* KPI accent dot/orb in top-right */
.kpi .accent-bar {
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-fill);
}
.kpi.k-1 .accent-bar { background: var(--ink);       box-shadow: 0 0 0 4px var(--hairline); }
.kpi.k-2 .accent-bar { background: var(--coral);     box-shadow: 0 0 0 4px var(--coral-fill); }
.kpi.k-3 .accent-bar { background: var(--peach);     box-shadow: 0 0 0 4px var(--peach-fill); }
.kpi.k-4 .accent-bar { background: var(--mint);      box-shadow: 0 0 0 4px var(--mint-fill); }
.kpi.k-5 .accent-bar { background: var(--azure);     box-shadow: 0 0 0 4px var(--azure-fill); }
.kpi.k-6 .accent-bar { background: var(--lavender);  box-shadow: 0 0 0 4px var(--lavender-fill); }
.kpi.k-7 .accent-bar { background: var(--teal);      box-shadow: 0 0 0 4px var(--mint-fill); }

/* ============ Time-series card ============ */
.timeseries-card { min-height: 440px; }
.chart-wrap        { position: relative; height: 360px; }
.chart-wrap.small  { height: 280px; }
.chart-wrap.tiny   { height: 60px; }

/* ============ Range toggle ============ */
.range-toggle {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px;
  background: var(--bg-deep);
}
.range-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.range-toggle button:hover { color: var(--ink); }
.range-toggle button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #1F2937);
  box-shadow: 0 2px 8px -2px rgba(15,23,42,0.3);
}

/* ============ Source list (animated bars) ============ */
.source-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.source-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.source-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg-deep);
}

.source-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.source-name .lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.source-name .lbl .pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.source-bar {
  height: 6px;
  background: var(--bg-deep);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.source-bar > i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms cubic-bezier(.22,.61,.36,1);
}

.source-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: 'tnum' 1;
}

/* ============ Section title ============ */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline), transparent);
  min-width: 60px;
}
.section-title:first-of-type { margin-top: 0; }

/* ============ Footer ============ */
.app-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ============ Overlays ============ */
.state-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: inherit;
}
.state-overlay.show { display: flex; }
.state-overlay .spin {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--hairline);
  border-top-color: var(--coral);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-overlay .msg { font-size: 12px; color: var(--muted); font-weight: 500; }
.state-overlay.error .msg {
  color: #BE123C;
  font-family: var(--font-mono);
  max-width: 60ch;
  text-align: center;
  line-height: 1.55;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ AOS micro-overrides ============ */
[data-aos] { transition-property: opacity, transform; }

/* ============ Date range picker ============ */
.range-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}
.range-bar .left {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.range-bar .label-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 4px;
}
.range-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.range-presets .chip {
  appearance: none; border: 1px solid transparent;
  background: var(--bg-deep);
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 160ms ease;
  letter-spacing: -0.005em;
}
.range-presets .chip:hover {
  background: var(--paper);
  border-color: var(--hairline-2);
}
.range-presets .chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #1F2937);
  border-color: transparent;
  box-shadow: 0 2px 8px -2px rgba(15,23,42,0.3);
}

.range-custom {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.range-custom.hidden { display: none; }
.range-custom input[type='date'] {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--hairline-2);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.range-custom input[type='date']:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-fill);
}

.range-bar .right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.range-bar .right .pill {
  background: var(--bg-deep);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
  color: var(--ink-soft);
}

/* ============ Secondary stats strip ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 16px;
  box-shadow: var(--shadow-xs);
}
.stats-strip .stat {
  background: var(--paper);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat .stat-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: 'tnum' 1;
  line-height: 1.1;
}
.stat .stat-value.small { font-size: 16px; }

@media (max-width: 1100px) {
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .range-bar .right { display: none; }
}

/* ============ Chart metric selector ============ */
.metric-chips {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.metric-chips .mchip {
  appearance: none; border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  letter-spacing: -0.005em;
}
.metric-chips .mchip:hover { color: var(--ink); }
.metric-chips .mchip .sw {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
}
.metric-chips .mchip[data-metric='leads']   .sw { background: var(--coral); }
.metric-chips .mchip[data-metric='convGA']  .sw { background: var(--mint); }
.metric-chips .mchip[data-metric='spend']   .sw { background: var(--peach); }
.metric-chips .mchip[data-metric='clicks']  .sw { background: var(--azure); }
.metric-chips .mchip.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15,23,42,0.10), 0 0 0 1px var(--hairline-2);
}

/* ============ Sync status strip ============ */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}
.sync-status.warn { background: var(--peach-fill); color: #9A3412; }
.sync-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
}
.sync-status.warn .dot { background: var(--peach); }

/* delta arrows */
.delta .arrow { font-size: 9px; opacity: 0.85; }

/* ============ Password gate modal ============ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  animation: authFade 280ms ease both;
}
.auth-overlay.show { display: flex; }

@keyframes authFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-modal {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: min(420px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: authSlide 380ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes authSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-eyebrow::before {
  content: '';
  width: 18px; height: 1.5px;
  background: linear-gradient(90deg, var(--coral), var(--lavender));
  border-radius: 999px;
}

.auth-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.auth-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-input {
  appearance: none;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.auth-input::placeholder { color: var(--muted-soft); }
.auth-input:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--coral-fill);
}

.auth-submit {
  appearance: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #1F2937);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 2px 10px -2px rgba(15,23,42,0.30);
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(15,23,42,0.35);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  font-size: 12px;
  color: #BE123C;
  background: var(--coral-fill);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-weight: 600;
  display: none;
}
.auth-error.show { display: block; }

.auth-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* hide the dashboard shell until authenticated, prevents flash */
.shell.locked {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
