/* Direction: Northlight Studio portal — porcelain paper, deep violet ink, geometric display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #edebf6;
  --border: #ded9ee;
  --border-strong: #b0adb9;
  --ink: #16122a;
  --muted: #5d5878;
  --accent: #5327d6;
  --accent-hover: #4721b6;
  --accent-ink: #ffffff;
  --accent-text: #4a21bf;
  --accent-strong: #371286;
  --accent-soft: #e9e3fd;
  --accent-border: #ad98ea;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dbe7e4;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #eee2de;
  --warning-strong: #a64c08;
  --danger: #be123c;
  --danger-ink: #ffffff;
  --danger-soft: #efdae4;
  --danger-strong: #be123c;
  --chart-1: #5327d6;
  --chart-2: #c11c93;
  --chart-3: #813001;
  --chart-4: #776e15;
  --chart-5: #065c3f;
  --chart-6: #147b98;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.03em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --shadow-card: 0 1px 2px rgb(22 18 42 / 0.05), 0 18px 40px -26px rgb(22 18 42 / 0.28);
  --card-pad: 1.35rem;
  --x-on-dark: #ffffff;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #070310;
  --surface: #201c28;
  --surface-2: #13101c;
  --border: #2a2631;
  --border-strong: #514f58;
  --ink: #f6f5fb;
  --muted: #96949d;
  --accent: #5327d6;
  --accent-hover: #6d47dc;
  --accent-ink: #ffffff;
  --accent-text: #987be6;
  --accent-strong: #8f70e4;
  --accent-soft: #180b3c;
  --accent-border: #291369;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0a1f1a;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2d150e;
  --warning-strong: #c57a40;
  --danger: #be123c;
  --danger-ink: #ffffff;
  --danger-soft: #2f061a;
  --danger-strong: #d05573;
  --chart-1: #6b4ef9;
  --chart-2: #ea39b4;
  --chart-3: #d0540d;
  --chart-4: #978c1e;
  --chart-5: #19976b;
  --chart-6: #1c9bbe;
}

/* Northlight Studio portal — a few textures no primitive covers */

.auth-panel {
  background-color: var(--accent-strong);
  background-image: radial-gradient(120% 90% at 12% 8%, rgb(255 255 255 / 0.18), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgb(0 0 0 / 0.35), transparent 65%);
}

.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}

.bar-track {
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  background-image: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: 999px;
  height: 100%;
  transition: width 0.5s ease;
}

.thread-scroll {
  max-height: 26rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rise {
  animation: rise 0.5s ease both;
}
@keyframes rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}
html.reduced-motion .rise,
html.reduced-motion .bar-fill {
  animation: none;
  transition: none;
}
