/* Biotech Console — modern dashboard styles */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-0: #FFFFFF;
  --surface-1: #FBFCFE;
  --surface-2: #F3F7FC;
  --surface-3: #E9EFF7;
  --ink: #16202B;
  --ink-2: #3A4550;
  --ink-3: #66707C;
  --ink-4: #93A0AC;
  --line: #E4E9F0;
  --line-2: #D3DBE6;
  /* Default theme: Biotech Blue (#1D63D8) — matches the public dashboard */
  --accent: oklch(0.55 0.185 258);
  --accent-2: oklch(0.95 0.035 258);
  --accent-ink: oklch(0.32 0.13 258);
  --warn: oklch(0.72 0.14 75);
  --danger: oklch(0.6 0.18 25);
  --pos: oklch(0.62 0.13 155);
  --neg: oklch(0.62 0.16 25);
  --chart-1: oklch(0.56 0.14 152);
  --chart-2: oklch(0.55 0.185 258);
  --chart-3: oklch(0.72 0.15 70);
  --chart-4: oklch(0.55 0.22 292);
  --chart-5: oklch(0.58 0.19 25);
  --chart-6: oklch(0.58 0.1 195);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-1: 0 1px 0 oklch(0.85 0.01 80 / 0.5);
  --shadow-2: 0 4px 16px -8px oklch(0.2 0.01 80 / 0.12);
  --gap: 16px;
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.008 250);
  --surface: oklch(0.2 0.01 250);
  --surface-0: oklch(0.2 0.01 250);
  --surface-1: oklch(0.212 0.01 250);
  --surface-2: oklch(0.225 0.01 250);
  --surface-3: oklch(0.26 0.012 250);
  --ink: oklch(0.97 0.005 90);
  --ink-2: oklch(0.82 0.008 90);
  --ink-3: oklch(0.65 0.008 90);
  --ink-4: oklch(0.5 0.008 90);
  --line: oklch(0.28 0.012 250);
  --line-2: oklch(0.34 0.014 250);
  /* Dark mode default: Biotech Blue lighter */
  --accent: oklch(0.72 0.16 258);
  --accent-2: oklch(0.26 0.07 258);
  --accent-ink: oklch(0.9 0.1 258);
  --shadow-1: 0 1px 0 oklch(0.1 0.01 250 / 0.6);
  --shadow-2: 0 8px 30px -12px oklch(0 0 0 / 0.5);
}

/* ── Color Themes (light) ─────────────────────────────── */
/* 0. Biotech Blue — #1D63D8 (DEFAULT, matches the public dashboard) */
[data-color-theme="biotech"] {
  --accent: oklch(0.55 0.185 258);
  --accent-2: oklch(0.95 0.035 258);
  --accent-ink: oklch(0.32 0.13 258);
}
[data-theme="dark"][data-color-theme="biotech"] {
  --accent: oklch(0.72 0.16 258);
  --accent-2: oklch(0.26 0.07 258);
  --accent-ink: oklch(0.9 0.1 258);
}

/* 1. Terracotta — #D97757 */
[data-color-theme="terracotta"] {
  --accent: oklch(0.63 0.155 42);
  --accent-2: oklch(0.96 0.04 42);
  --accent-ink: oklch(0.38 0.1 42);
}
[data-theme="dark"][data-color-theme="terracotta"] {
  --accent: oklch(0.76 0.14 42);
  --accent-2: oklch(0.28 0.06 42);
  --accent-ink: oklch(0.92 0.08 42);
}

/* 2. Ocean Blue — #2563EB */
[data-color-theme="ocean"] {
  --accent: oklch(0.55 0.18 250);
  --accent-2: oklch(0.95 0.04 250);
  --accent-ink: oklch(0.3 0.12 250);
}
[data-theme="dark"][data-color-theme="ocean"] {
  --accent: oklch(0.72 0.16 250);
  --accent-2: oklch(0.26 0.07 250);
  --accent-ink: oklch(0.9 0.1 250);
}

/* 3. Emerald — #059669 */
[data-color-theme="emerald"] {
  --accent: oklch(0.58 0.13 155);
  --accent-2: oklch(0.96 0.04 155);
  --accent-ink: oklch(0.32 0.08 155);
}
[data-theme="dark"][data-color-theme="emerald"] {
  --accent: oklch(0.74 0.14 155);
  --accent-2: oklch(0.28 0.06 155);
  --accent-ink: oklch(0.9 0.09 155);
}

/* 4. Violet — #7C3AED */
[data-color-theme="violet"] {
  --accent: oklch(0.52 0.22 295);
  --accent-2: oklch(0.96 0.05 295);
  --accent-ink: oklch(0.3 0.14 295);
}
[data-theme="dark"][data-color-theme="violet"] {
  --accent: oklch(0.73 0.2 295);
  --accent-2: oklch(0.28 0.08 295);
  --accent-ink: oklch(0.92 0.12 295);
}

/* 5. Rose — #E11D48 */
[data-color-theme="rose"] {
  --accent: oklch(0.57 0.22 10);
  --accent-2: oklch(0.96 0.05 10);
  --accent-ink: oklch(0.35 0.14 10);
}
[data-theme="dark"][data-color-theme="rose"] {
  --accent: oklch(0.74 0.2 10);
  --accent-2: oklch(0.28 0.08 10);
  --accent-ink: oklch(0.92 0.12 10);
}

/* 6. Slate Teal — #0891B2 */
[data-color-theme="teal"] {
  --accent: oklch(0.6 0.13 210);
  --accent-2: oklch(0.95 0.04 210);
  --accent-ink: oklch(0.32 0.09 210);
}
[data-theme="dark"][data-color-theme="teal"] {
  --accent: oklch(0.74 0.12 210);
  --accent-2: oklch(0.28 0.06 210);
  --accent-ink: oklch(0.9 0.08 210);
}

[data-density="compact"] {
  --gap: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-feature-settings: "tnum"; }

/* === App shell === */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: var(--vh100, 100vh);
}
[data-sidebar="collapsed"] .app { grid-template-columns: 64px 1fr; }

/* === Sidebar === */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: var(--vh100, 100vh);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  height: 60px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.08);
  flex-shrink: 0;
  object-fit: contain;
  padding: 2px;
}
.sidebar-brand .sidebar-expanded-only { min-width: 0; flex: 1; }
.brand-name { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-collapsed-only { display: none; }
[data-sidebar="collapsed"] .sidebar-expanded-only { display: none; }
[data-sidebar="collapsed"] .sidebar-collapsed-only { display: block; }

.sidebar-org {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  margin: 12px 12px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.sidebar-org:hover { background: var(--surface-3); }
.org-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: oklch(0.4 0.08 280);
  color: white;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.org-name { font-size: 13px; font-weight: 500; }
.org-role { font-size: 11px; color: var(--ink-3); }

.sidebar-nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  padding: 14px 10px 6px;
  font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active {
  background: var(--surface-3);
  color: var(--ink);
}
.nav-item .nav-icon { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-item .nav-count {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--ink-4);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
}
.nav-item.active .nav-count { background: var(--surface); color: var(--ink-2); }
.nav-sub {
  margin-left: 26px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  margin-top: 2px;
  margin-bottom: 4px;
}
.nav-sub .nav-item { font-size: 12.5px; padding: 5px 10px; }

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 12px;
}
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}
.user-pill:hover { background: var(--surface-2); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.5 0.1 200));
  color: white;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.user-name { font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.user-sub { font-size: 11px; color: var(--ink-3); line-height: 1.2; }

/* === Main / Topbar === */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs .crumb-sep { color: var(--ink-4); }
.crumbs .crumb-active { color: var(--ink); font-weight: 500; }
.topbar-spacer { flex: 1; }
.cmdk {
  display: flex; align-items: center; gap: 8px;
  width: 280px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
}
.cmdk:hover { background: var(--surface-3); }
.cmdk .kbd {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-3);
}
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

/* === Page === */
.page { padding: 24px 28px 60px; max-width: 1440px; }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 4px;
}
.page-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }

/* Primary */
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: none; }
.btn-primary:hover {
  background: oklch(from var(--accent) calc(l - 0.06) c h);
  border-color: oklch(from var(--accent) calc(l - 0.06) c h);
  color: #fff;
}
[data-theme="dark"] .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="dark"] .btn-primary:hover {
  background: oklch(from var(--accent) calc(l + 0.06) c h);
  border-color: oklch(from var(--accent) calc(l + 0.06) c h);
  color: #fff;
}

/* Success */
.btn-success { background: var(--pos); color: #fff; border-color: var(--pos); box-shadow: none; }
.btn-success:hover {
  background: oklch(from var(--pos) calc(l - 0.06) c h);
  border-color: oklch(from var(--pos) calc(l - 0.06) c h);
  color: #fff;
}
[data-theme="dark"] .btn-success:hover {
  background: oklch(from var(--pos) calc(l + 0.06) c h);
  border-color: oklch(from var(--pos) calc(l + 0.06) c h);
  color: #fff;
}

/* Danger */
.btn-danger { background: var(--neg); color: #fff; border-color: var(--neg); box-shadow: none; }
.btn-danger:hover {
  background: oklch(from var(--neg) calc(l - 0.06) c h);
  border-color: oklch(from var(--neg) calc(l - 0.06) c h);
  color: #fff;
}
[data-theme="dark"] .btn-danger:hover {
  background: oklch(from var(--neg) calc(l + 0.06) c h);
  border-color: oklch(from var(--neg) calc(l + 0.06) c h);
  color: #fff;
}

/* Outline */
.btn-outline { background: transparent; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
.btn-outline:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

/* Ghost / icon / size variants */
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 32px; padding: 0; justify-content: center; }
.btn .btn-icon-only { width: 14px; height: 14px; }

/* === KPI grid === */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 18px 0;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 138px;
}
.kpi-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.kpi-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.kpi-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.kpi-menu {
  margin-left: auto;
  color: var(--ink-4);
}
.kpi-value {
  font-family: "Geist Mono", monospace;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.kpi-value .kpi-unit { font-size: 14px; color: var(--ink-3); margin-left: 2px; font-weight: 400; }
.kpi-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  font-family: "Geist Mono", monospace;
  margin-top: 4px;
  color: var(--ink-3);
}
.kpi-delta .delta-pill {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.kpi-delta.pos .delta-pill { background: oklch(0.96 0.04 155); color: oklch(0.36 0.08 155); border-color: oklch(0.86 0.06 155); }
.kpi-delta.neg .delta-pill { background: oklch(0.96 0.04 25); color: oklch(0.42 0.1 25); border-color: oklch(0.86 0.06 25); }
[data-theme="dark"] .kpi-delta.pos .delta-pill { background: oklch(0.28 0.06 155); color: oklch(0.85 0.12 155); border-color: oklch(0.36 0.08 155); }
[data-theme="dark"] .kpi-delta.neg .delta-pill { background: oklch(0.28 0.06 25); color: oklch(0.85 0.12 25); border-color: oklch(0.36 0.08 25); }
.kpi-spark {
  margin: 8px -18px 0;
  display: block;
}

/* === Card === */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.card-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.card-body { padding: 18px; }
.card-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
}

.tabs {
  display: flex; gap: 2px;
  background: var(--surface-2);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tab {
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 6px;
  color: var(--ink-3);
  font-weight: 500;
}
.tab:hover { color: var(--ink-2); }
.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* === Grid layouts === */
.row-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.row-2-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

/* === Tables === */
.table-wrap { overflow-x: auto; }
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.t th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
table.t td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
table.t tr:last-child td { border-bottom: none; }
table.t tbody tr:hover td { background: var(--surface-2); }
.t-num { font-family: "Geist Mono", monospace; font-feature-settings: "tnum"; }
.t-r { text-align: right; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.status.active { background: oklch(0.96 0.03 155); color: oklch(0.36 0.08 155); border-color: oklch(0.86 0.05 155); }
.status.warn { background: oklch(0.97 0.04 80); color: oklch(0.42 0.09 80); border-color: oklch(0.86 0.05 80); }
.status.danger { background: oklch(0.96 0.04 25); color: oklch(0.42 0.1 25); border-color: oklch(0.86 0.06 25); }
[data-theme="dark"] .status.active { background: oklch(0.28 0.05 155); color: oklch(0.85 0.12 155); border-color: oklch(0.36 0.06 155); }
[data-theme="dark"] .status.warn { background: oklch(0.28 0.06 80); color: oklch(0.85 0.12 80); border-color: oklch(0.36 0.08 80); }
.status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -6px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 9px; font-weight: 600;
  display: grid; place-items: center;
}
.avatar-stack .av:first-child { margin-left: 0; }

.row-icon-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-icon-actions .icon-btn { width: 26px; height: 26px; }

/* === Form === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: span 2; }
.field-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-hint { font-size: 11.5px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / 0.18);
}
.textarea { min-height: 88px; resize: vertical; font-family: inherit; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

.dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  background: var(--surface-2);
}
.dropzone strong { color: var(--ink); }

.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.toggle-track {
  width: 28px; height: 16px;
  background: var(--line-2);
  border-radius: 999px;
  position: relative;
  transition: background .15s;
}
.toggle-track::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle.on .toggle-track { background: var(--accent); }
.toggle.on .toggle-track::after { transform: translateX(12px); }

/* === Activity / List === */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item .av-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.list-text { flex: 1; min-width: 0; }
.list-text .li-main { font-size: 13px; color: var(--ink); }
.list-text .li-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.list-time { font-size: 11.5px; color: var(--ink-4); font-family: "Geist Mono", monospace; flex-shrink: 0; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-3); }
.legend-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* Misc */
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.muted { color: var(--ink-3); }
.search-input {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  width: 240px;
  color: var(--ink-3);
}
.search-input input { background: transparent; border: none; outline: none; flex: 1; font-size: 13px; }
.search-input input::placeholder { color: var(--ink-4); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-2);
}
.chip .chip-x { color: var(--ink-4); margin-left: 2px; cursor: pointer; }
.chip:hover .chip-x { color: var(--ink-2); }

.donut-legend { display: grid; gap: 8px; margin-top: 12px; }
.donut-legend-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.donut-legend-row .ln { color: var(--ink-2); }
.donut-legend-row .val { font-family: "Geist Mono", monospace; color: var(--ink); }
.donut-legend-row .pct { color: var(--ink-3); font-family: "Geist Mono", monospace; font-size: 11.5px; min-width: 32px; text-align: right; }

/* Banner */
.banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: oklch(0.97 0.03 80);
  border: 1px solid oklch(0.88 0.06 80);
  color: oklch(0.32 0.08 80);
  font-size: 12.5px;
  margin-bottom: 16px;
}
[data-theme="dark"] .banner { background: oklch(0.28 0.05 80); border-color: oklch(0.4 0.07 80); color: oklch(0.92 0.06 80); }
.banner .banner-icon { flex-shrink: 0; margin-top: 1px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
/* Public/marketing surfaces for landing + login — additive to styles.css */

.public {
  background: var(--bg);
  min-height: var(--vh100, 100vh);
  display: flex;
  flex-direction: column;
}

/* Public header */
.pub-status {
  height: 32px;
  display: flex; align-items: center;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-feature-settings: "tnum";
  gap: 18px;
}
.pub-status .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 3px oklch(from var(--pos) l c h / 0.2);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pub-status .sep { color: var(--ink-4); }

.pub-header {
  display: flex; align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 28px;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: oklch(from var(--surface) l c h / 0.85);
}
.pub-brand {
  display: flex; align-items: center; gap: 10px;
}
.pub-brand .brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), oklch(0.5 0.1 200));
  display: grid; place-items: center;
  color: white; font-weight: 700;
  font-size: 14px; letter-spacing: -0.03em;
}
.pub-brand .pub-wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.pub-brand .pub-wordmark span { color: var(--ink-3); font-weight: 400; }

.pub-nav {
  display: flex; gap: 4px; margin-left: 28px;
}
.pub-nav a {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.pub-nav a:hover { background: var(--surface-2); color: var(--ink); }
.pub-nav a.active { color: var(--ink); background: var(--surface-2); }

.pub-header-spacer { flex: 1; }
.pub-header .btn-primary { padding: 9px 16px; white-space: nowrap; }
.pub-header .btn { white-space: nowrap; }

/* Hero */
.hero {
  padding: 64px 28px 36px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-eyebrow .new {
  background: var(--accent);
  color: oklch(0.15 0.01 200);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 18px;
  max-width: 860px;
  text-wrap: balance;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), oklch(0.55 0.13 200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 10px; align-items: center; }
.hero-ctas .btn { padding: 11px 18px; font-size: 14px; }
.hero-meta {
  display: flex; gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta-item .label { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hero-meta-item .val { font-family: "Geist Mono", monospace; font-size: 16px; margin-top: 4px; font-weight: 500; }
.hero-meta-item .val .pos { color: var(--pos); }

/* Stats section */
.stats-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 28px;
  width: 100%;
}
.stats-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.stats-h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.stats-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  --tone: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 0;
  display: flex; flex-direction: column;
  min-height: 196px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s, box-shadow .18s, background .18s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 160px at 100% 0%, oklch(from var(--tone) l c h / 0.07), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 0;
}
.stat-card > * { position: relative; z-index: 1; }
.stat-card:hover {
  border-color: oklch(from var(--tone) l c h / 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px oklch(from var(--tone) l c h / 0.45),
              0 1px 0 var(--line);
}
.stat-card:hover::before { opacity: 1; }
.stat-card-corner {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 3px;
  background: var(--tone);
  border-radius: 0 0 3px 0;
  opacity: 0.85;
  z-index: 2;
}
.stat-card-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.stat-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.stat-card:hover .stat-icon { transform: scale(1.04) rotate(-1deg); }
.stat-card-meta {
  flex: 1;
  min-width: 0;
}
.stat-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.stat-card-cat {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-top: 4px;
  font-weight: 500;
}
.stat-card-val {
  font-family: "Geist Mono", monospace;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.stat-card-val .unit { font-size: 14px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }

.stat-card-deltarow {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
}
.stat-card-vs { color: var(--ink-4); }
.stat-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.stat-chip.pos {
  background: oklch(from var(--pos) l c h / 0.12);
  color: var(--pos);
}
.stat-chip.neg {
  background: oklch(from var(--neg) l c h / 0.1);
  color: var(--neg);
}

.stat-card-spark {
  margin: 16px -18px 0;
  position: relative;
  height: 48px;
}
.spark-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px oklch(from var(--tone) l c h / 0.25);
  transform: translate(-50%, 50%);
  pointer-events: none;
}
.stat-card:hover .spark-dot {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px oklch(from var(--tone) l c h / 0.45);
}
.stat-card-arrow {
  color: var(--ink-4);
  opacity: 0;
  transition: opacity .18s, transform .18s;
  align-self: flex-start;
  margin-top: 2px;
}
.stat-card:hover .stat-card-arrow { opacity: 1; transform: translate(2px, -2px); color: var(--tone); }

/* Highlights row */
.highlights {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-banner {
  padding: 36px 30px 36px;
  background:
    radial-gradient(800px 220px at 80% 0%, oklch(from var(--accent) l c h / 0.18), transparent 65%),
    radial-gradient(600px 200px at 0% 100%, oklch(0.7 0.1 280 / 0.15), transparent 60%),
    linear-gradient(120deg, var(--surface-2), var(--surface));
  position: relative;
  border-bottom: 1px solid var(--line);
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.feature-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 10px;
  max-width: 480px;
}
.feature-body {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.55;
}
.feature-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}
.feature-stats > div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.feature-stats > div:last-child { border-right: none; }
.feature-stats .fs-num { font-family: "Geist Mono", monospace; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.feature-stats .fs-lbl { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.side-card-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.side-card-list { padding: 6px 0; flex: 1; }
.side-card-row {
  padding: 10px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.side-card-row:last-child { border-bottom: none; }
.side-card-row .sidx {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  flex-shrink: 0;
}
.side-card-row .name { flex: 1; }
.side-card-row .num { font-family: "Geist Mono", monospace; color: var(--ink-2); }
.side-card-row .delta { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--pos); margin-left: 6px; }

/* Resources */
.resources {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 28px 60px;
  width: 100%;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.res-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 18px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.res-card .res-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
}
.res-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; }
.res-body { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.res-link {
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
}

/* Footer */
.pub-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 28px 20px;
  margin-top: auto;
}
.pub-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
}
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 0;
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* ====== Login ====== */
.login-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: minmax(var(--vh100, 100vh), auto);
  min-height: var(--vh100, 100vh);
}
.login-art {
  background:
    radial-gradient(900px 500px at 25% 30%, oklch(from var(--accent) l c h / 0.32), transparent 60%),
    radial-gradient(700px 500px at 80% 80%, oklch(0.5 0.14 285 / 0.32), transparent 65%),
    linear-gradient(160deg, oklch(0.22 0.05 200), oklch(0.16 0.04 250));
  color: white;
  padding: 44px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(900px 700px at 40% 40%, black, transparent 80%);
          mask-image: radial-gradient(900px 700px at 40% 40%, black, transparent 80%);
  pointer-events: none;
}
.login-art > * { position: relative; z-index: 1; }
.login-art .brand-mark { width: 36px; height: 36px; font-size: 15px; }

/* ============ Bio scene wrapper ============ */
.bio-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* drifting cell-like particles */
.bio-particles { position: absolute; inset: 0; }
.bio-particles span {
  position: absolute;
  bottom: -12px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85), rgba(180,230,200,0.15) 70%, transparent);
  border-radius: 50%;
  filter: blur(0.4px);
  animation: bio-drift linear infinite;
}
@keyframes bio-drift {
  0%   { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate3d(36px, -110vh, 0) scale(1.1); opacity: 0; }
}

/* ============ DNA helix ============ */
.bio-dna-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}
.bio-dna {
  width: 220px;
  height: 100%;
  filter: drop-shadow(0 0 14px oklch(0.6 0.12 165 / 0.4));
}
.dna-flow {
  animation: dna-flow 6.5s linear infinite;
}
/* One period = DNA_PERIOD * DNA_SPACING = 8 * 6.5 = 52 user units; the
   viewBox shows totalH/2 = 117 units. Translating by 52 loops seamlessly. */
@keyframes dna-flow {
  from { transform: translateY(0); }
  to   { transform: translateY(-52px); }
}

/* ============ Floaters ============ */
.bio-floater {
  position: absolute;
  width: 90px; height: 90px;
  display: grid; place-items: center;
  opacity: 0.85;
  animation: bio-float ease-in-out infinite;
  pointer-events: none;
}
.bio-floater.is-petri { width: 130px; height: 130px; opacity: 0.7; }
.mol-svg, .petri-svg { width: 100%; height: 100%; display: block; }
@keyframes bio-float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(8px, -10px) rotate(20deg); }
  50%      { transform: translate(-6px, -18px) rotate(-15deg); }
  75%      { transform: translate(-12px, -8px) rotate(8deg); }
}
/* Inherit base scale set inline by stacking on top */
.bio-floater[style*="scale"] { animation-name: bio-float-s; }
@keyframes bio-float-s {
  0%, 100% { transform: scale(var(--s, 1)) translate(0, 0) rotate(0); }
  50%      { transform: scale(var(--s, 1)) translate(-8px, -22px) rotate(-12deg); }
}

/* ============ Sequencing ticker (top "marquee") ============ */
.bio-ticker {
  position: absolute;
  top: 22px;
  left: 44px;
  right: 44px;
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  background: rgba(10, 20, 22, 0.5);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 14px 8px 12px;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.bt-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 0 3px oklch(0.78 0.18 145 / 0.3), 0 0 8px oklch(0.78 0.18 145 / 0.7);
  flex-shrink: 0;
  animation: bt-blink 1.6s ease-in-out infinite;
}
@keyframes bt-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.bt-label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: oklch(0.85 0.12 145);
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.18);
  padding-right: 10px;
}
.bt-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 14px, black calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 14px, black calc(100% - 24px), transparent 100%);
}
.bt-row {
  display: flex; flex-direction: column;
  gap: 1px;
  white-space: nowrap;
  animation: bio-seq 42s linear infinite;
  will-change: transform;
}
.bt-seq {
  display: inline-flex;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.bt-seq.bt-comp { opacity: 0.55; font-size: 9.5px; }
.bt-base { padding: 0 0.5px; }
.bt-A { color: oklch(0.78 0.18 145); }
.bt-T { color: oklch(0.78 0.16 200); }
.bt-G { color: oklch(0.82 0.14 80);  }
.bt-C { color: oklch(0.8 0.16 30);   }
.bt-sp { width: 4px; display: inline-block; }
.bt-sep { color: rgba(255,255,255,0.4); padding: 0 4px; }
@keyframes bio-seq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Pulse / waveform ============ */
.bio-pulse-wrap {
  position: absolute;
  left: 44px; right: 44px;
  bottom: 28px;
  z-index: 1;
}
.bio-pulse {
  width: 100%; height: 56px;
  display: block;
  filter: drop-shadow(0 0 6px oklch(0.7 0.18 165 / 0.45));
}
.pulse-shift {
  animation: pulse-shift 3.6s linear infinite;
}
@keyframes pulse-shift {
  from { transform: translateX(0); }
  to   { transform: translateX(-100px); }
}
.bio-pulse-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: oklch(0.85 0.12 145);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.bp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 6px oklch(0.78 0.18 145 / 0.7);
  animation: bt-blink 1.6s ease-in-out infinite;
}

/* ============ Tagline (replaces quote + stats) ============ */
.bio-tagline {
  max-width: 380px;
  position: relative;
  margin-bottom: 28px;
}
.bio-tagline-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: oklch(0.85 0.12 145);
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.bio-tagline-h {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}
.bio-tagline-sub {
  font-size: 13.5px;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .bio-particles span,
  .dna-flow,
  .bio-floater,
  .bt-row,
  .pulse-shift,
  .bt-pulse,
  .bp-dot { animation: none !important; }
}
.login-art-brand {
  display: flex; align-items: center; gap: 12px;
}
.login-art-brand .brand-emblem {
  width: 44px; height: 56px; border-radius: 8px;
  background: #fff; display: grid; place-items: center;
  flex-shrink: 0; padding: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.login-art-brand .brand-emblem img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-art-brand .name-hindi { font-family: "Noto Sans Devanagari", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; opacity: 0.9; margin-bottom: 1px; }
.login-art-brand .name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.login-art-brand .sub { font-size: 12px; opacity: 0.65; margin-top: 2px; }
.login-art-quote {
  margin-top: auto;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 460px;
  text-wrap: balance;
}
.login-art-cite {
  margin-top: 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.login-art-cite .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.7 0.08 30), oklch(0.55 0.1 50));
  display: grid; place-items: center;
  font-weight: 600;
}
.login-art-cite .who { font-weight: 500; }
.login-art-cite .what { opacity: 0.65; font-size: 12px; }

.login-art-stats {
  position: absolute;
  bottom: 44px;
  right: 44px;
  width: 280px;
  background: oklch(0.95 0.005 90 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(20px);
}
.login-art-stats .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.login-art-stats .v { font-family: "Geist Mono", monospace; font-size: 26px; font-weight: 500; margin-top: 4px; letter-spacing: -0.02em; }
.login-art-stats .d { font-size: 11.5px; opacity: 0.8; font-family: "Geist Mono", monospace; margin-top: 4px; }

.login-form-side {
  display: flex; flex-direction: column;
  padding: 32px 44px 44px;
  background: var(--bg);
  position: relative;
  overflow-y: auto;
}
.login-form-side .lf-top {
  display: flex; justify-content: flex-end; gap: 6px; align-items: center;
  font-size: 13px; color: var(--ink-3);
  white-space: nowrap;
}
.login-form-side .lf-top a { color: var(--accent-ink); font-weight: 500; }
.login-form-card {
  max-width: 380px;
  width: 100%;
  margin: auto;
}
.login-h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.login-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 28px;
}
.login-form { display: grid; gap: 16px; }
.login-form .field-label { display: flex; justify-content: space-between; align-items: baseline; }
.login-form .input { padding: 11px 12px; font-size: 14px; }
.login-form .field-label a { font-size: 12px; color: var(--accent-ink); font-weight: 500; }
.login-form .btn-primary { padding: 11px; justify-content: center; font-size: 14px; font-weight: 500; }
.login-form .btn-sso {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.login-form .btn-sso:hover { background: var(--surface-2); color: var(--ink); }
.divider-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-4); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 8px 0;
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.captcha {
  display: flex; gap: 8px;
}
.captcha-glyph {
  width: 116px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, oklch(from var(--accent) l c h / 0.08) 8px 9px),
    var(--surface-2);
  font-family: "Geist Mono", monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: grid; place-items: center;
  color: var(--ink);
  user-select: none;
  position: relative;
}
.captcha-glyph::after {
  content: "";
  position: absolute; left: 8px; right: 8px;
  top: 50%; height: 1px;
  background: oklch(from var(--accent) l c h / 0.6);
  transform: rotate(-6deg);
}
.captcha-refresh {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--ink-2);
  cursor: pointer;
}
.captcha-refresh:hover { background: var(--surface-2); color: var(--ink); }
.captcha .input { flex: 1; height: 42px; }

.login-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 28px;
}
.login-foot a { color: var(--ink-2); }
.login-foot .mono { font-family: "Geist Mono", monospace; }

/* Status indicator on landing */
.pub-status-link {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
}
.pub-status-link a { color: var(--accent-ink); font-weight: 500; }

/* Marquee strip */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  padding-left: 28px;
}
.marquee span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.marquee .label { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.marquee .num { font-family: "Geist Mono", monospace; font-weight: 500; }
.marquee .dlt { font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--pos); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Activity timeline + RFP callout */
.activity-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 12px;
  width: 100%;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.activity-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 0;
}
.activity-row {
  display: grid;
  grid-template-columns: 70px 14px 1fr;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.activity-row:last-child { border-bottom: none; }
.activity-time {
  font-size: 11.5px;
  color: var(--ink-3);
  padding-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.activity-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--ink-4);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}
.activity-dot.pos { background: var(--pos); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px oklch(from var(--pos) l c h / 0.3); }
.activity-dot.accent { background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px oklch(from var(--accent) l c h / 0.3); }
.activity-body {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: baseline;
}
.activity-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent-2);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.rfp-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.rfp-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.rfp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  gap: 14px;
}
.rfp-row:last-of-type { border-bottom: none; }
.rfp-title { font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; }
.rfp-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.rfp-num { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Footer "live" pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 500;
}

/* === Pagination === */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.pagination-info { font-size: 12.5px; color: var(--ink-3); }
.pagination-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pagination-current { cursor: default; }
.pagination-disabled { opacity: .5; cursor: not-allowed; }
.pagination-dots { padding: 0 4px; color: var(--ink-4); font-size: 13px; }
