/* InternLog — shared stylesheet (single CSS file for entire project) */

:root {
  color-scheme: light;
  /* InternLog palette: lavender #CBB3E8, acid lime #D4FF3F, vermilion #E34234. */
  --base: #241532;
  --base-hover: #3a2552;
  --on-base: #f8f3fd;
  --on-base-muted: #cbb3e8;
  --bg: #f7f3fc;
  --surface: #ffffff;
  --text: #241532;
  --muted: #6c5a80;
  --border: #e2d6f0;
  --primary: #d4ff3f;
  --primary-dark: #bce82a;
  --primary-light: #cbb3e8;
  --primary-ink: #241532;
  --success: #55720a;
  --success-bg: #eeffc2;
  --warning: #6b4a86;
  --warning-bg: #f0e7f8;
  --danger: #e34234;
  --danger-bg: #fce6e3;
  --info: #6b4a86;
  --info-bg: #f0e7f8;
  --purple: #6b4a86;
  --purple-bg: #f0e7f8;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: none;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ff-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --ff-sans: "Inter", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --ff-serif: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); transition: color .15s ease; }
a:hover { color: var(--text); text-decoration-color: var(--text); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; text-transform: none; }

/* ---------- Landing ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap, .wrap {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-style: normal; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-block; object-fit: contain;
  background: transparent; box-shadow: none;
}
.brand small { display: block; font-family: var(--ff-mono); font-style: normal; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a.nav { color: var(--text); font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-radius: 9999px; }
.nav-links a.nav:hover { color: var(--text); background: var(--primary-light); text-decoration: none; }



.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.25rem, 1rem + 3vw, 2.25rem); padding-block: clamp(2.5rem, 1.5rem + 6vh, 3.75rem) clamp(1.5rem, 1rem + 3vh, 2.5rem); align-items: center; }
/* Single-column hero (landing): one centered narrow column at every width */
.hero-single { grid-template-columns: 1fr; max-width: 760px; }
/* CTA button row: wraps cleanly instead of colliding on narrow screens */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2rem, 1.25rem + 4vw, 2.75rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.03em; font-weight: 700; color: var(--text); text-transform: uppercase; }
.hero p.lead { font-family: var(--ff-sans); font-style: normal; font-weight: 400; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; color: var(--muted); margin: 0 0 24px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.hero-card h3 { margin: 0 0 14px; font-size: 16px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; gap: 12px; }
.mini-row:first-of-type { border-top: 0; }
.mini-row strong { font-family: var(--ff-sans); font-weight: 700; font-size: 14px; }
.section { padding-block: clamp(1.75rem, 1rem + 4vw, 2.75rem); }
/* Roomier section rhythm (keeps the shared side gutters, unlike inline padding) */
.section-roomy { padding-top: clamp(2rem, 1.5rem + 5vw, 3.5rem); padding-bottom: clamp(2rem, 1.5rem + 5vw, 3.5rem); }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 1.75rem); margin: 0 0 8px; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.section p.sub { font-family: var(--ff-sans); font-style: normal; font-weight: 400; font-size: clamp(15px, 2vw, 19px); color: var(--muted); margin: 0 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1rem, .8rem + 1.5vw, 1.25rem); box-shadow: none;
  min-width: 0;
}
.card:hover { box-shadow: none; border-color: var(--text); }
.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.card p { margin: 0; color: var(--muted); font-family: var(--ff-sans); font-style: normal; font-weight: 400; font-size: 14px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.step .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 14px; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.site-footer p { color: var(--muted); font-size: 14px; }
.site-footer nav a { font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Buttons: tactile 3D keys (OpenSourceUI Tactile 3D adaptation, MIT) ----------
   Solid / soft keycaps with layered depth; press sinks the key in. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--primary); border-radius: 9999px;
  padding: 12px 22px; font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -2px 0 rgb(0 0 0 / .32), 0 3px 0 rgb(0 0 0 / .30), 0 7px 14px rgb(0 0 0 / .14);
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; color: var(--primary-ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -2px 0 rgb(0 0 0 / .32), 0 4px 0 rgb(0 0 0 / .30), 0 9px 16px rgb(0 0 0 / .16); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgb(0 0 0 / .35), 0 0 0 rgb(0 0 0 / 0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: inset 0 1px 0 rgb(128 128 128 / .18), inset 0 -2px 0 rgb(0 0 0 / .07), 0 3px 0 rgb(0 0 0 / .12), 0 6px 12px rgb(0 0 0 / .06); }
.btn-secondary:hover { background: var(--primary-light); color: var(--text); border-color: var(--text); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(128 128 128 / .18), inset 0 -2px 0 rgb(0 0 0 / .07), 0 4px 0 rgb(0 0 0 / .12), 0 8px 14px rgb(0 0 0 / .08); }
.btn-secondary:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgb(0 0 0 / .18), 0 0 0 rgb(0 0 0 / 0); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; box-shadow: inset 0 1px 0 rgb(128 128 128 / .15), inset 0 -2px 0 rgb(227 66 52 / .12), 0 3px 0 rgb(227 66 52 / .25); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), inset 0 -2px 0 rgb(0 0 0 / .25), 0 4px 0 rgb(0 0 0 / .30); }
.btn-danger:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgb(0 0 0 / .3), 0 0 0 rgb(0 0 0 / 0); }
.btn-success { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -2px 0 rgb(0 0 0 / .32), 0 3px 0 rgb(0 0 0 / .30); }
.btn-success:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--primary-ink); transform: translateY(-1px); }
.btn-success:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgb(0 0 0 / .35), 0 0 0 rgb(0 0 0 / 0); }
.btn-sm { padding: 10px 18px; font-size: 12px; font-family: var(--ff-mono); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; border-radius: 9999px; min-height: 40px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-secondary, .btn-danger, .btn-success { transition: none; }
  .btn:hover, .btn-secondary:hover, .btn-danger:hover, .btn-success:hover,
  .btn:active, .btn-secondary:active, .btn-danger:active, .btn-success:active { transform: none; }
}
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.form-group { margin-bottom: 15px; }
label { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; color: var(--text); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 14px; font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}
/* Custom chevron for native selects (OpenSourceUI Select Field visual language) */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 13px;
}
select:disabled { opacity: .55; cursor: not-allowed; }
textarea { min-height: 90px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(227,66,52,.18);
}
.field-error { color: var(--danger); font-size: 13px; margin-top: 5px; display: none; font-weight: 500; }
.field-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.form-actions-left { display: flex; gap: 10px; align-items: center; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkbox-row input { margin-top: 3px; }
/* Custom checkbox mark (OpenSourceUI Checkbox Field adaptation, MIT) */
.checkbox-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 18px; height: 18px; margin-top: 1px; padding: 0;
  border: 1.5px solid var(--border); border-radius: 6px; background: var(--surface);
  cursor: pointer; display: inline-grid; place-items: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.checkbox-row input[type="checkbox"]:hover { border-color: var(--text); }
.checkbox-row input[type="checkbox"]:checked {
  background-color: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241532' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.checkbox-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.checkbox-row input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Auth layout ---------- */
/* Invalid fields tint their label without any JavaScript (progressive enhancement) */
.form-group:has(input[aria-invalid="true"]) > label,
.form-group:has(select[aria-invalid="true"]) > label { color: var(--danger); }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel {
  background: var(--base);
  color: var(--on-base); padding: 56px 44px; display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Galaxy backdrop (injected by initGalaxy): absolute canvas layer,
   panel content stacks above it. Desktop left-side panel. */
.galaxy-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.auth-panel .galaxy-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.auth-panel .galaxy-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}
/* Soft aurora glows above the starfield, below content (reactbits feel) */
.auth-panel .galaxy-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 300px at 15% 12%, rgba(203, 179, 232, 0.22), transparent 65%),
    radial-gradient(520px 380px at 85% 88%, rgba(212, 255, 63, 0.12), transparent 65%);
}
.auth-panel > *:not(.galaxy-container) {
  position: relative;
  z-index: 1;
}
/* ---------- Auth UX polish (reactbits inspo: eyebrow, rhythm, chips) ---------- */
.auth-panel .brand {
  margin-bottom: 28px;
}
.auth-panel h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
  text-wrap: balance;
}
.auth-panel > p:first-of-type {
  font-size: 15px;
  max-width: 42ch;
}
/* Feature checklist: dot markers, no default bullets */
.auth-panel ul {
  list-style: none;
  padding: 0;
  gap: 10px;
  margin-top: 6px;
}
.auth-panel ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(203, 179, 232, 0.28);
  border-radius: 9999px;
  width: fit-content;
  max-width: 100%;
}
.auth-panel ul li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
/* Inline note box (login/company pages): turn into a glass chip */
.auth-panel p[style] {
  background: rgba(203, 179, 232, 0.14) !important;
  border: 1px solid rgba(203, 179, 232, 0.28) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(4px);
}
/* Form side: rhythm + focus */
.auth-card {
  padding: clamp(24px, 20px + 2vw, 34px);
}
.auth-card h2 {
  letter-spacing: -0.02em;
}
.auth-card > p.muted:first-of-type {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.auth-card .form-group {
  margin-bottom: 16px;
}
.auth-card input:not([type="checkbox"]),
.auth-card select,
.auth-card textarea {
  min-height: 46px;
}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--text);
}
.auth-card .password-toggle {
  font-size: 11px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  min-height: 0;
}
.auth-card .password-toggle:hover {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.auth-card .btn[type="submit"] {
  min-height: 50px;
  width: 100%;
}
.auth-card .checkbox-row {
  align-items: center;
}
.auth-card .checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: none;
}
.auth-links {
  align-items: center;
}
/* Mobile: panel becomes a compact hero, galaxy stays as short backdrop */
@media (max-width: 1000px) {
  .auth-panel {
    min-height: 420px;
  }
  .auth-panel ul li {
    font-size: 12px;
  }
}
.auth-panel p { color: var(--on-base-muted); margin: 0 0 20px; line-height: 1.6; font-size: 15px; }
.auth-panel ul { margin: 0; padding-inline-start: 20px; color: var(--on-base); display: flex; flex-direction: column; gap: 8px; }
.auth-panel ul li { font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.auth-panel .brand { color: var(--on-base); }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 490px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: none;
}
.auth-card h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.2rem + 1.5vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.auth-card p.muted, .muted { color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 66px; }
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--text); font-weight: 600; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 8px; border-radius: 9999px; min-height: 44px;
}
.password-toggle:hover { color: var(--text); }

/* ---------- App layout ---------- */
.app-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--base); color: var(--on-base); padding: 20px 14px; position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--base);
}
.sidebar .brand { color: var(--on-base); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  color: var(--on-base-muted); padding: 12px 16px; border-radius: 9999px;
  font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  display: flex; align-items: center; gap: 10px; min-height: 44px;
}
.sidebar nav a:hover { background: var(--base-hover); text-decoration: none; color: var(--on-base); }
.sidebar nav a.active { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.sidebar .side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(203, 179, 232, 0.28); }
.main { min-width: 0; background: var(--bg); display: flex; flex-direction: column; }
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px clamp(1rem, .75rem + 2vw, 1.5rem); display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 20;
  container-type: inline-size;
}
.topbar h1 { font-size: clamp(1.2rem, 1.05rem + 1vw, 1.5rem); margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text); min-width: 0; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; }
/* Container-relative (not viewport): squeeze the topbar when the content column itself is narrow,
   e.g. tablet widths with the sidebar open */
@container (max-width: 560px) {
  .user-chip [data-user-email] { display: none; }
  .topbar { gap: 10px; }
}
.user-chip strong { color: var(--text); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-sans); font-style: normal; font-weight: 700; font-size: 14px; border: 1px solid var(--primary);
}
.menu-btn {
  display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 9999px;
  padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 700; min-height: 44px;
}
.content { padding: clamp(1rem, .75rem + 2vw, 1.5rem); max-width: 1120px; width: 100%; box-sizing: border-box; container-type: inline-size; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; margin: 18px 0; }
.stat-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: none;
}
.stat .label { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 2vw, 2rem); letter-spacing: -0.02em; margin-top: 4px; color: var(--text); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.toolbar input[type="text"], .toolbar input[type="search"], .toolbar select { width: auto; }
.search-input { flex: 1 1 220px; min-width: 0; max-width: 100%; }

/* ---------- Search field with icon + clear (OpenSourceUI Search Input adaptation, MIT) ----------
   Applied by initSearchFields() in js/script.js; the landing spotlight bar is separate. */
.search-field { position: relative; flex: 1 1 220px; min-width: 0; display: flex; align-items: center; }
.toolbar .search-field input.search-input { flex: 1; width: 100%; min-width: 0; padding-left: 38px; padding-right: 36px; }
.search-field-icon { position: absolute; left: 13px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; display: inline-flex; }
.search-field-icon svg { width: 100%; height: 100%; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.search-clear { position: absolute; right: 8px; width: 24px; height: 24px; border: 0; background: none; border-radius: 7px; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.search-field.has-value .search-clear { display: inline-flex; }
.search-clear:hover { background: var(--primary-light); color: var(--text); }

/* ---------- Spin loader (OpenSourceUI Spin Loader adaptation, MIT) ---------- */
.spin-loader { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; }
.spin-loader::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--text); animation: spin360 .7s linear infinite; }
.spin-loader-lg::after { width: 28px; height: 28px; border-width: 3px; }
.spin-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
@keyframes spin360 { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spin-loader::after { animation: none; border-top-color: var(--border); }
}

/* ---------- Spotlight search (OpenSourceUI SpotlightBar adaptation, MIT) ----------
   Frosted command-search bar with live suggestions + keyboard nav.
   Behavior lives in js/landing.js; see THIRD_PARTY_NOTICES.md. */
.toolbar-spotlight { align-items: center; }
.spotlight {
  position: relative; flex: 1 1 280px; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
}
.spotlight:focus-within { border-color: var(--text); }
.spot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spot-icon { flex: none; width: 16px; height: 16px; color: var(--muted); }
.toolbar-spotlight input.spot-input { flex: 1; width: 100%; border: 0; background: transparent; padding: 0; box-shadow: none; font-size: 14px; }
.toolbar-spotlight input.spot-input:focus { outline: none; border: 0; box-shadow: none; }
.spot-kbd { flex: none; font-family: var(--ff-mono); font-size: 10px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; }
.spot-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  margin: 0; padding: 8px; list-style: none;
  border: 1px solid var(--border); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto;
}
.spot-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; border-radius: 10px; padding: 10px; cursor: pointer; text-align: left; color: var(--text); font-size: 14px; font-family: inherit; }
.spot-option .spot-label { display: block; font-weight: 600; }
.spot-option .spot-sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.spot-option.is-active { background: var(--primary-light); }
.spot-hint { flex: none; font-family: var(--ff-mono); font-size: 10px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; }
@media (max-width: 760px) {
  .toolbar-spotlight .spotlight { flex-basis: 100%; }
  .spot-kbd { display: none; }
}
:root[data-theme="dark"] .spotlight { background: color-mix(in srgb, var(--surface) 82%, transparent); }
:root[data-theme="dark"] .spot-list { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.table-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow-x: auto; overflow-y: hidden; box-shadow: none;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; font-variant-numeric: tabular-nums; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--bg); font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .12s ease; }
tr:hover td { background: color-mix(in srgb, var(--primary-light) 55%, var(--surface)); }
table strong { font-family: var(--ff-sans); font-weight: 700; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-select { width: auto; font-size: 13px; padding: 10px 16px; border-radius: 9999px; min-height: 40px; }
.link-btn {
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 12px; border-radius: 9999px; min-height: 40px;
}
.link-btn:hover { color: var(--text); background: var(--primary-light); text-decoration: none; }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { color: var(--danger); background: var(--danger-bg); }

/* Badges — readable text always included, never color-only */
.badge {
  display: inline-flex; align-items: center; border-radius: 9999px;
  padding: 4px 12px; font-family: var(--ff-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--border); white-space: nowrap;
  background: var(--surface); color: var(--text);
}
.badge-applied { background: var(--surface); color: var(--text); border-color: var(--border); }
.badge-shortlisted { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bg); }
.badge-interview { background: var(--primary-light); color: var(--text); border-color: var(--border); }
.badge-selected { background: var(--success-bg); color: var(--success); border-color: var(--success-bg); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bg); }
.badge-active { background: var(--success-bg); color: var(--success); border-color: var(--success-bg); }
.badge-disabled { background: var(--bg); color: var(--muted); border-color: var(--border); }

/* Status overview bars */
.status-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.status-bar-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: center; font-family: var(--ff-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.status-track { background: var(--primary-light); border-radius: 9999px; height: 8px; overflow: hidden; }
.status-fill { height: 100%; border-radius: 9999px; background: var(--primary); }
.status-fill-applied { background: var(--purple); }
.status-fill-shortlisted { background: var(--primary-dark); }
.status-fill-interview { background: var(--text); }
.status-fill-selected { background: var(--success); }
.status-fill-rejected { background: var(--danger); }
.status-bar-row strong { font-family: var(--ff-sans); font-style: normal; font-weight: 700; font-size: 14px; color: var(--text); }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.empty h3 { margin: 0 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.3rem, 1.1rem + 1.6vw, 1.625rem); }
.empty p { font-family: var(--ff-sans); font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); margin: 0 0 16px; }

/* Toasts: light snackbar (OpenSourceUI Toast Notification adaptation, MIT) */
#toast-container { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; max-width: min(380px, 90vw); }
.toast {
  display: inline-flex; align-items: center; gap: 10px; max-width: 320px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: 0 4px 24px -2px rgb(0 0 0 / .10), 0 0 0 1px rgb(0 0 0 / .02);
  animation: toastIn .34s cubic-bezier(.25,.46,.45,.94);
}
.toast-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--base); }
.toast-icon svg { width: 11px; height: 11px; color: #fff; }
:root[data-theme="dark"] .toast-icon svg { color: var(--primary-ink); }
.toast-success .toast-icon { background: var(--success); }
.toast-error .toast-icon { background: var(--danger); }
.toast-warning .toast-icon { background: var(--warning); }
.toast-info .toast-icon { background: var(--base); }
:root[data-theme="dark"] .toast-info .toast-icon { background: var(--primary); }
.toast-text { flex: 1; min-width: 0; line-height: 1.35; }
.toast-close { flex: none; border: 0; background: none; cursor: pointer; padding: 2px 6px; font-size: 13px; line-height: 1; color: var(--muted); border-radius: 6px; }
.toast-close:hover { color: var(--text); background: var(--primary-light); }
.toast-exit { transform: translateY(12px); opacity: 0; transition: transform .26s ease-in, opacity .26s ease-in; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .toast-exit { transition: none; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 9000;
}
.modal-backdrop.open { display: flex; }
.modal-backdrop.open .modal, dialog[open].og-job-dialog { animation: modalIn .22s cubic-bezier(.16,1,.3,1); }
@keyframes modalIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.open .modal, dialog[open].og-job-dialog { animation: none; }
}
.modal {
  background: var(--surface); border-radius: 27px; max-width: min(580px, 100%);
  padding: clamp(1.1rem, .9rem + 2vw, 1.5rem); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  width: 100%; box-sizing: border-box;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.modal-header h3 { margin: 0; font-size: clamp(1.1rem, 1rem + 1vw, 1.3rem); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--text); min-width: 0; }
.modal-close-icon {
  background: var(--primary); border: 0; font-size: 16px; cursor: pointer; color: var(--primary-ink);
  line-height: 1; padding: 0; border-radius: 50%; width: 36px; height: 36px; min-height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close-icon:hover { color: var(--primary-ink); background: var(--primary-dark); }
.modal dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; margin: 0 0 20px; }
.modal dt { color: var(--muted); font-family: var(--ff-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.modal dd { margin: 0; word-break: break-word; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; }

/* Profile */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head > div { min-width: 0; }
.profile-head h2 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 2.4vw, 2rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; overflow-wrap: break-word; }
.profile-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-sans); font-style: normal; font-weight: 700; font-size: 24px;
  box-shadow: none;
}
.alert { border-radius: 14px; padding: 11px 16px; font-size: 14px; margin: 12px 0; border: 1px solid var(--border); background: var(--surface); }
.alert-error { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: var(--success-bg); color: var(--success); }
.admin-note { background: var(--warning-bg); border: 1px solid var(--warning-bg); color: var(--warning); border-radius: 14px; padding: 11px 16px; font-size: 13px; }

/* ---------- Original landing restructure components ---------- */
.soft-pill-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; font-family: sans-serif; font-weight: 600; border: none; outline: none; transition: background-color 200ms cubic-bezier(.32,.72,0,1), box-shadow 200ms cubic-bezier(.32,.72,0,1), color 200ms cubic-bezier(.32,.72,0,1), transform 200ms cubic-bezier(.32,.72,0,1); }
.soft-pill-button[data-size="sm"] { height: 36px; gap: 6px; padding: 0 16px; border-radius: 9999px; font-size: 12px; }
.soft-pill-button[data-size="md"] { height: 40px; gap: 8px; padding: 0 20px; border-radius: 9999px; font-size: 14px; }
.soft-pill-button[data-size="lg"] { height: 48px; gap: 8px; padding: 0 24px; border-radius: 9999px; font-size: 14px; }
.soft-pill-button[data-variant="light"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 8px 20px rgb(0 0 0 / .08); }
.soft-pill-button[data-variant="light"]:hover { background: var(--primary-light); color: var(--text); }
.soft-pill-button[data-variant="light"]:active { background: color-mix(in srgb, var(--primary-light) 70%, var(--surface)); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 3px 8px rgb(0 0 0 / .06); }
.soft-pill-button[data-variant="dark"] { background: var(--base); color: var(--on-base); box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 8px 20px rgb(0 0 0 / .25); }
.soft-pill-button[data-variant="dark"]:hover { background: var(--base-hover); }
.soft-pill-button[data-variant="dark"]:active { background: var(--base); box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 3px 8px rgb(0 0 0 / .2); }
.soft-pill-button:active { transform: translateY(1px); }
.soft-pill-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.soft-pill-button:disabled { pointer-events: none; cursor: not-allowed; opacity: .4; }
p.soft-pill-button { cursor: default; font-family: var(--ff-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
:root[data-theme="dark"] .soft-pill-button[data-variant="light"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 8px 20px rgb(0 0 0 / .25); }
:root[data-theme="dark"] .soft-pill-button[data-variant="light"]:hover { background: var(--primary-light); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-family: var(--ff-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 16px; }
.hero-proof li + li::before { content: "·"; color: var(--border); }
@media (prefers-reduced-motion: reduce) { .soft-pill-button { transition: none; } .soft-pill-button:active { transform: none; } }

/* ---------- Landing feature grid (Magic Bento adaptation) ---------- */
/* React Bits Magic Bento: feature cards with cursor-tracked border glow.
   Wired in index.html (.landing-feature-grid.bento) + initMagicBento. */
.bento {
  display: grid;
  gap: 0.5em;
}
.bento .magic-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 200px;
  width: 100%;
  max-width: 100%;
  padding: 1.25em;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--base);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-intensity: 0;
  --glow-radius: 200px;
}
.bento .magic-bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow:
    0 4px 20px rgba(107, 74, 134, 0.35),
    0 0 30px rgba(203, 179, 232, 0.3);
}
.bento .magic-bento-card__header,
.bento .magic-bento-card__content {
  display: flex;
  position: relative;
  z-index: 2;
  color: var(--on-base);
}
.bento .magic-bento-card__header {
  gap: 0.75em;
  justify-content: space-between;
  align-items: center;
}
.bento .magic-bento-card__label,
.bento .magic-bento-card__index {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--on-base-muted);
}
.bento .magic-bento-card__content { flex-direction: column; }
.bento .magic-bento-card__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 0.25em;
  color: var(--on-base);
}
.bento .magic-bento-card__description {
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-base-muted);
  margin: 0;
}
.bento .magic-bento-card--text-autohide .magic-bento-card__title,
.bento .magic-bento-card--text-autohide .magic-bento-card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bento .magic-bento-card--text-autohide .magic-bento-card__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.bento .magic-bento-card--text-autohide .magic-bento-card__description {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
/* Cursor-tracked border glow (purple accent from the snippet) */
.bento .magic-bento-card--border-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(203, 179, 232, calc(var(--glow-intensity) * 0.85)) 0%,
    rgba(212, 255, 63, calc(var(--glow-intensity) * 0.45)) 30%,
    transparent 60%
  );
  border-radius: inherit;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 599px) {
  .bento { grid-template-columns: 1fr; }
  .bento .magic-bento-card { min-height: 180px; aspect-ratio: auto; }
}
@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .magic-bento-card:nth-child(3) { grid-column: span 2; grid-row: span 2; }
  .bento .magic-bento-card:nth-child(4) { grid-column: 1 / span 2; grid-row: 2 / span 2; }
  .bento .magic-bento-card:nth-child(6) { grid-column: 4; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .bento .magic-bento-card,
  .bento .magic-bento-card--border-glow::after {
    transition: none;
  }
  .bento .magic-bento-card:hover { transform: none; }
}
.timeline { position: relative; }
.timeline .steps { position: relative; }
.timeline .steps::before { content: ""; position: absolute; top: 34px; left: 24px; right: 24px; border-top: 1px solid var(--border); }
.timeline .step { position: relative; }
.timeline .step .num { position: relative; z-index: 1; }
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1.25rem + 3vw, 2.75rem); text-align: center; margin-bottom: clamp(1.75rem, 1rem + 4vw, 2.75rem); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem); text-transform: uppercase; }
.cta-band p { color: var(--muted); margin: 0 0 20px; }
.cta-band .cta-row { justify-content: center; margin: 0; }
/* Footer columns */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  width: 100%;
  padding-top: 28px;
  padding-bottom: 8px;
}
.site-footer .footer-heading {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 10px;
}
.site-footer .footer-col nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .timeline .steps::before { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .cta-band { text-align: start; }
  .cta-band .cta-row { justify-content: flex-start; }
  .hero-single .hero-proof { justify-content: center; }
}

/* Responsive — only viewport-level shifts live here.
   Component reflow is intrinsic (auto-fit grids, clamp, container queries). */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-panel { padding: 32px 24px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-single { text-align: center; }
  .hero-single .cta-row { justify-content: center; }
  .section { text-align: center; }
  .section .card, .section .step { text-align: start; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 1000;
    transform: translateX(-105%); transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(36,21,50,.55); z-index: 900; display: none; }
  .sidebar-backdrop.show { display: block; }
  .modal dl { grid-template-columns: 1fr; gap: 4px; }
  .modal dd { margin-bottom: 8px; }
}
/* Short landscape screens (phones held sideways): tighten vertical rhythm */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { padding-block: 28px 20px; }
  .auth-panel { padding: 24px; }
  .auth-form-side { padding: 24px 20px; }
  .section { padding-block: 24px; }
}

/* ---------- Theme toggle (injected by script.js; works on every page) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--primary-light); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle-floating { position: fixed; left: 16px; bottom: 16px; z-index: 9000; background: var(--surface); box-shadow: var(--shadow-lg); }
.topbar .theme-toggle { margin-inline-start: 2px; }
.nav-links .theme-toggle { width: 40px; height: 40px; }

/* ---------- Dark mode: same base-black language, lifted surfaces ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --base: #1a1026;
  --base-hover: #2e1d42;
  --on-base: #f8f3fd;
  --on-base-muted: #cbb3e8;
  --bg: #120a1c;
  --surface: #1d1229;
  --text: #f4eefa;
  --muted: #b8a6c9;
  --border: #3a2a4e;
  --primary: #d4ff3f;
  --primary-dark: #bce82a;
  --primary-light: #3a2a4e;
  --primary-ink: #1a1026;
  --success: #d4ff3f;
  --success-bg: #26330a;
  --warning: #cbb3e8;
  --warning-bg: #2e2140;
  --danger: #ff6b5e;
  --danger-bg: #3a1512;
  --info: #cbb3e8;
  --info-bg: #2e2140;
  --purple: #cbb3e8;
  --purple-bg: #2e2140;
  --shadow-sm: none;
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] ::selection { background: var(--primary); color: var(--primary-ink); }
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] .site-header { background: var(--surface); }
:root[data-theme="dark"] .brand { color: var(--text); }
:root[data-theme="dark"] .brand-mark {
  background: transparent; box-shadow: none;
}
:root[data-theme="dark"] .nav-links a.nav { color: var(--muted); }
:root[data-theme="dark"] .nav-links a.nav:hover { color: var(--text); background: var(--primary-light); }
:root[data-theme="dark"] .hero h1 { color: var(--text); }
:root[data-theme="dark"] .site-footer { background: var(--surface); }
:root[data-theme="dark"] .btn { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
:root[data-theme="dark"] .btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--primary-ink); }
:root[data-theme="dark"] .btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] .btn-secondary:hover { background: var(--primary-light); color: var(--text); border-color: var(--text); }
:root[data-theme="dark"] label { color: var(--muted); }
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] input[type="date"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="url"],
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { background: var(--surface); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: var(--muted); opacity: 1; }
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus { border-color: var(--text); box-shadow: none; }
:root[data-theme="dark"] .checkbox-row input { accent-color: var(--primary); }
:root[data-theme="dark"] .auth-panel { background: var(--base); }
:root[data-theme="dark"] .auth-panel h1 { color: var(--on-base); }
:root[data-theme="dark"] .auth-panel p { color: var(--muted); }
:root[data-theme="dark"] .auth-panel ul { color: var(--text); }
:root[data-theme="dark"] .auth-form-side { background: var(--bg); }
:root[data-theme="dark"] .sidebar { background: var(--base); }
:root[data-theme="dark"] .sidebar nav a { color: var(--on-base-muted); }
:root[data-theme="dark"] .sidebar nav a:hover { color: var(--on-base); background: var(--base-hover); }
:root[data-theme="dark"] .sidebar nav a.active { background: var(--primary); color: var(--primary-ink); }
:root[data-theme="dark"] .topbar { background: var(--surface); }
:root[data-theme="dark"] .topbar h1 { color: var(--text); }
:root[data-theme="dark"] .user-chip strong { color: var(--text); }
:root[data-theme="dark"] .avatar { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
:root[data-theme="dark"] .menu-btn { background: var(--surface); }
:root[data-theme="dark"] th { background: var(--surface); }
:root[data-theme="dark"] .table-wrap { background: var(--surface); }
:root[data-theme="dark"] table { color: var(--text); }
:root[data-theme="dark"] td { color: var(--text); }
:root[data-theme="dark"] tr:hover td { background: var(--primary-light); }
:root[data-theme="dark"] .stat { background: var(--surface); }
:root[data-theme="dark"] .stat .value { color: var(--text); }
:root[data-theme="dark"] .empty { background: var(--surface); }
:root[data-theme="dark"] .auth-card { background: var(--surface); }
:root[data-theme="dark"] .auth-card h2 { color: var(--text); }
:root[data-theme="dark"] .modal-close-icon { background: var(--primary); color: var(--primary-ink); }
:root[data-theme="dark"] .link-btn.danger:hover { color: var(--danger); background: var(--danger-bg); }
:root[data-theme="dark"] .btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
:root[data-theme="dark"] .btn-danger:hover { background: var(--danger); color: var(--primary-ink); }
:root[data-theme="dark"] .badge-applied { background: var(--surface); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] .badge-shortlisted { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bg); }
:root[data-theme="dark"] .badge-interview { background: var(--primary-light); color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] .badge-selected { background: var(--success-bg); color: var(--success); border-color: var(--success-bg); }
:root[data-theme="dark"] .badge-rejected { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bg); }
:root[data-theme="dark"] .badge-active { background: var(--success-bg); color: var(--success); border-color: var(--success-bg); }
:root[data-theme="dark"] .badge-disabled { background: var(--primary-light); color: var(--muted); border-color: var(--border); }
:root[data-theme="dark"] .status-track { background: var(--primary-light); }
:root[data-theme="dark"] .toast { background: var(--surface); color: var(--text); box-shadow: none; }
:root[data-theme="dark"] .modal { background: var(--surface); }
:root[data-theme="dark"] .modal-header h3 { color: var(--text); }
:root[data-theme="dark"] .modal-close-icon:hover { background: var(--primary-dark); }
:root[data-theme="dark"] .profile-avatar {
  background: var(--primary);
  color: var(--primary-ink); box-shadow: none;
}
:root[data-theme="dark"] .alert { background: var(--surface); }
:root[data-theme="dark"] .alert-error { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--danger); }
:root[data-theme="dark"] .alert-success { background: var(--success-bg); border-color: var(--success-bg); color: var(--success); }
:root[data-theme="dark"] .admin-note { background: var(--warning-bg); border-color: var(--warning-bg); color: var(--warning); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Curved Loop (React Bits adaptation, responsive) ----------
   Base comes from the provided snippet. The raw snippet uses
   min-height:100vh + fixed 6rem white text, which only suits a dark
   fullscreen demo — so below it is adapted into a compact, full-bleed,
   responsive band that fits the landing page (and any page). */
.curved-loop-jacket {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.curved-loop-svg {
  user-select: none;
  width: 100%;
  aspect-ratio: 100 / 12;
  overflow: visible;
  display: block;
  font-size: 6rem;
  fill: #ffffff;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

/* Responsive overrides — these win over the snippet above.
   Immersive: bands share the page background so the marquee reads as
   part of the page, not a separate strip. */
.curved-loop-jacket {
  min-height: 0;
  padding-block: clamp(1.25rem, 1rem + 3vw, 2.5rem);
  padding-inline: 0;
  background: transparent;
  border-block: none;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.curved-loop-jacket--light {
  background: transparent;
  border-block: none;
}
.curved-loop-jacket--tight {
  padding-block: clamp(0.75rem, 0.5rem + 2vw, 1.25rem);
}
.curved-loop-svg {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  /* SVG <text> font-size is in viewBox units, then scaled by
     display-width / 1000. A fixed 64px unit font renders ~69px on a
     1080px screen and ~23px on a 360px phone — naturally responsive.
     Smaller breakpoints use LARGER unit sizes to stay legible. */
  font-size: 64px;
  overflow: visible;
  max-width: 100%;
  fill: var(--text);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.curved-loop-jacket--light .curved-loop-svg {
  fill: var(--text);
}
.curved-loop-svg text {
  font-family: inherit;
  font-weight: inherit;
  text-transform: uppercase;
  letter-spacing: inherit;
  white-space: nowrap;
}
.curved-loop-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Pause on hover / focus for readability, keep animating otherwise */
@media (hover: hover) {
  .curved-loop-jacket:hover .curved-loop-svg text,
  .curved-loop-jacket:focus-within .curved-loop-svg text {
    animation-play-state: paused;
  }
}
/* Narrow screens: give the wave more vertical room so text never clips.
   Unit font-size goes UP on small screens to compensate for viewBox
   downscaling (see note above). */
@media (max-width: 768px) {
  .curved-loop-svg {
    aspect-ratio: 100 / 18;
    font-size: 76px;
  }
}
@media (max-width: 480px) {
  .curved-loop-jacket {
    padding-block: 1rem;
  }
  .curved-loop-svg {
    aspect-ratio: 100 / 24;
    font-size: 88px;
  }
}
/* Dark mode: transparent like light mode, ink text follows theme */
:root[data-theme="dark"] .curved-loop-jacket {
  background: transparent;
  border-block-color: transparent;
}
:root[data-theme="dark"] .curved-loop-jacket--light {
  background: transparent;
  border-block-color: transparent;
}
:root[data-theme="dark"] .curved-loop-jacket--light .curved-loop-svg {
  fill: var(--text);
}
/* Reduced motion: static curved text, no loop */
@media (prefers-reduced-motion: reduce) {
  .curved-loop-svg textPath {
    animation: none !important;
  }
}

/* ---------- Pill Nav (React Bits adaptation) ---------- */
.pill-nav-container {
  position: absolute;
  top: 1em;
  z-index: 99;
}

@media (max-width: 768px) {
  .pill-nav-container {
    width: 100%;
    left: 0;
  }
}

.pill-nav {
  --nav-h: 42px;
  --logo: 36px;
  --pill-pad-x: 18px;
  --pill-gap: 3px;
  width: max-content;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pill-nav {
    width: 100%;
    justify-content: space-between;
    padding: 0 1rem;
    background: transparent;
  }
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: var(--primary);
  border-radius: 9999px;
}


.pill-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: var(--pill-gap);
  margin: 0;
  padding: 3px;
  height: 100%;
}

.pill-list > li {
  display: flex;
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--pill-pad-x);
  background: var(--pill-bg, var(--surface));
  color: var(--pill-text, var(--text));
  text-decoration: none;
  border-radius: 9999px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 16px;
  line-height: 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: var(--primary);
  z-index: 1;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.pill .label-stack {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 2;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1;
  will-change: transform;
}

.pill .pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hover-text, var(--primary-ink));
  z-index: 3;
  display: inline-block;
  will-change: transform, opacity;
}

.pill.is-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50px;
  z-index: 4;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

.mobile-menu-button {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
  }
}

.hamburger-line {
  width: 16px;
  height: 2px;
  background: var(--primary-ink);
  border-radius: 1px;
  transition: all 0.01s ease;
  transform-origin: center;
}

.mobile-menu-popover {
  position: absolute;
  top: 3em;
  left: 1rem;
  right: 1rem;
  background: var(--surface);
  border-radius: 27px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 998;
  opacity: 0;
  transform-origin: top center;
  visibility: hidden;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-popover .mobile-menu-link {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  background-color: var(--surface);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.mobile-menu-popover .mobile-menu-link:hover {
  cursor: pointer;
  background-color: var(--base);
  color: var(--hover-text, var(--primary-ink));
}

/* ---------- Pill Nav: InternLog responsive integration ----------
   The snippet above is a floating absolute component. Below it is docked
   into the sticky .site-header, themed to InternLog, and made responsive:
   - desktop: brand left, pill cluster right, no overflow
   - 1000px and below: tighter pads, scroll-safe
   - mobile: brand + hamburger, popover drops from header */
.site-header--pill {
  overflow: visible;
}
.nav-bar--pill {
  gap: 12px;
  min-height: 64px;
  height: auto;
  padding-block: 8px;
}
.nav-bar--pill .pill-nav-container {
  position: static;
  top: auto;
  z-index: 60;
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 0;
  /* Vars live on the container so BOTH nav (button) and its sibling
     .mobile-menu-popover inherit them. Previously they were only on
     .pill-nav, leaving the popover on fallbacks = white text on white. */
  --base: var(--primary);
  --pill-bg: var(--surface);
  --pill-text: var(--text);
  --hover-text: var(--primary-ink);
}
.nav-bar--pill .pill-nav {
  --nav-h: 44px;
  --pill-pad-x: 16px;
  --pill-gap: 3px;
  /* Theme mapping: black container, white pills */
  --base: var(--primary);
  --pill-bg: var(--surface);
  --pill-text: var(--text);
  --hover-text: var(--primary-ink);
  width: auto;
  max-width: 100%;
}
.nav-bar--pill .pill-nav-items {
  max-width: 100%;
  box-shadow: none;
  border: 1px solid var(--base);
}
.nav-bar--pill .pill-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.nav-bar--pill .pill-list::-webkit-scrollbar {
  display: none;
}
.nav-bar--pill .pill {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 13px;
  min-height: 38px;
  line-height: 1;
  overflow: hidden;
}
.nav-bar--pill .pill .label-stack {
  display: block;
  overflow: hidden;
}
.nav-bar--pill .pill .pill-label,
.nav-bar--pill .pill .pill-label-hover {
  white-space: nowrap;
}
.nav-bar--pill .pill .hover-circle {
  /* Fixed geometry: no JS measuring. Circle starts collapsed at bottom
     center and scales to cover the pill. Single source = CSS. */
  width: 160%;
  aspect-ratio: 1 / 1;
  height: auto;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 12%) scale(0);
  transform-origin: 50% 100%;
}
/* Register CTA: static pill, no circle/slide — bg shift only.
   This kills the flicker (was: dark circle over blue bg + double-driven labels). */
.nav-bar--pill .pill--cta .hover-circle,
.nav-bar--pill .pill--cta .pill-label-hover {
  display: none;
}
.nav-bar--pill .pill--cta .pill-label {
  transform: none !important;
}
.nav-bar--pill .pill:hover {
  text-decoration: none;
  color: var(--pill-text);
}
.nav-bar--pill .pill:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* Active dot was clipped by .pill{overflow:hidden} + bottom:-6px — pull it inside */
.nav-bar--pill .pill.is-active::after {
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
/* CTA pill (Register) — filled base black, plain hover */
.nav-bar--pill .pill--cta {
  background: var(--primary);
  color: var(--primary-ink);
}
.nav-bar--pill .pill--cta:hover {
  background: var(--primary-dark);
  color: var(--primary-ink);
  text-decoration: none;
}
/* Theme toggle sits after the pill cluster */
.nav-bar--pill .theme-toggle {
  flex: none;
}
/* No-JS / CSS-only fallback: hide duplicate hover label until hover,
   then slide it in — JS enhances with the expanding circle */
.nav-bar--pill .pill .hover-circle {
  transform: translate(-50%, 0) scale(0);
}
.nav-bar--pill .pill .pill-label,
.nav-bar--pill .pill .pill-label-hover {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
}
.nav-bar--pill .pill .pill-label-hover {
  transform: translateY(100%);
  opacity: 0;
}
@media (hover: hover) {
  .nav-bar--pill .pill:not(.pill--cta):hover .hover-circle {
    transform: translate(-50%, 50%) scale(1);
  }
  .nav-bar--pill .pill:not(.pill--cta):hover .pill-label {
    transform: translateY(-100%);
  }
  .nav-bar--pill .pill:not(.pill--cta):hover .pill-label-hover {
    transform: translateY(0);
    opacity: 1;
  }
}
.nav-bar--pill .pill:not(.pill--cta):focus-visible .hover-circle {
  transform: translate(-50%, 50%) scale(1);
}
.nav-bar--pill .pill:not(.pill--cta):focus-visible .pill-label {
  transform: translateY(-100%);
}
.nav-bar--pill .pill:not(.pill--cta):focus-visible .pill-label-hover {
  transform: translateY(0);
  opacity: 1;
}
/* Popover needs an anchor: container is the positioning context */
.nav-bar--pill .pill-nav-container {
  position: relative;
}
/* Snippet order makes .desktop-only{display:block} override
   .pill-nav-items{display:flex} — restore flex on desktop */
.nav-bar--pill .pill-nav-items.desktop-only {
  display: flex;
}
@media (max-width: 768px) {
  .nav-bar--pill .pill-nav-items.desktop-only {
    display: none;
  }
}
.nav-bar--pill .mobile-menu-popover {
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  min-width: min(320px, 80vw);
  padding: 3px;
  background: var(--surface);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  transform: translateY(-6px) scale(0.98);
}
.nav-bar--pill .mobile-menu-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.nav-bar--pill .mobile-menu-popover .mobile-menu-link {
  color: var(--pill-text);
  background-color: var(--pill-bg);
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-bar--pill .mobile-menu-popover .mobile-menu-link:hover {
  background-color: var(--base);
  color: var(--hover-text);
  text-decoration: none;
}
/* Hamburger morphs to X when open */
.nav-bar--pill .mobile-menu-button[aria-expanded="true"] .hamburger-line:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-bar--pill .mobile-menu-button[aria-expanded="true"] .hamburger-line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
/* Medium screens: tighten before switching to hamburger */
@media (max-width: 1000px) {
  .nav-bar--pill .pill-nav {
    --pill-pad-x: 12px;
  }
  .nav-bar--pill .pill {
    font-size: 12px;
  }
}
/* Mobile: brand left, hamburger right; hide desktop pills entirely */
@media (max-width: 768px) {
  .nav-bar--pill {
    height: 64px;
    padding-block: 0;
  }
  .nav-bar--pill .pill-nav-container {
    width: auto;
    left: auto;
    margin-left: auto;
  }
  .nav-bar--pill .pill-nav {
    width: auto;
    padding: 0;
  }
}
/* Dark mode: pill cluster follows theme */
:root[data-theme="dark"] .nav-bar--pill .pill-nav {
  --base: var(--primary);
  --pill-bg: var(--surface);
  --pill-text: var(--text);
  --hover-text: var(--primary-ink);
}
:root[data-theme="dark"] .nav-bar--pill .pill-nav-items {
  background: var(--primary);
  border-color: var(--primary-dark);
}
:root[data-theme="dark"] .nav-bar--pill .pill .hover-circle {
  background: var(--primary-dark);
}
:root[data-theme="dark"] .nav-bar--pill .pill .pill-label-hover {
  color: var(--primary-ink);
}
:root[data-theme="dark"] .nav-bar--pill .pill--cta {
  background: var(--primary);
  color: var(--primary-ink);
}
:root[data-theme="dark"] .nav-bar--pill .pill--cta:hover {
  background: var(--primary-dark);
  color: var(--primary-ink);
}
:root[data-theme="dark"] .nav-bar--pill .pill-nav-container {
  --base: var(--primary);
  --pill-bg: var(--surface);
  --pill-text: var(--text);
  --hover-text: var(--primary-ink);
}
:root[data-theme="dark"] .nav-bar--pill .hamburger-line {
  background: var(--primary-ink);
}
:root[data-theme="dark"] .nav-bar--pill .mobile-menu-button {
  background: var(--primary);
  border: 1px solid var(--primary-dark);
}
:root[data-theme="dark"] .nav-bar--pill .mobile-menu-popover {
  background: var(--surface);
  border: 1px solid var(--border);
}
:root[data-theme="dark"] .nav-bar--pill .mobile-menu-popover .mobile-menu-link {
  color: var(--pill-text);
  background-color: var(--surface);
}
:root[data-theme="dark"] .nav-bar--pill .mobile-menu-popover .mobile-menu-link:hover {
  background: var(--primary);
  color: var(--primary-ink);
}
/* Reduced motion: no hover-circle slide */
@media (prefers-reduced-motion: reduce) {
  .pill .hover-circle,
  .pill .pill-label,
  .pill .pill-label-hover,
  .mobile-menu-popover {
    transition: none !important;
    animation: none !important;
  }
}
/* The application is blocked until Java and its database are ready. */
.backend-connection-dialog { width: min(520px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); max-height: calc(100dvh - 40px); overflow-y: auto; }
.backend-connection-dialog::backdrop { background: rgb(18 10 28 / .58); backdrop-filter: blur(4px); }
.backend-connection-dialog h2 { margin: 0; font-size: 24px; line-height: 1.2; text-transform: none; }
.backend-connection-dialog p { font-size: 13px; line-height: 1.7; }
.backend-connection-dialog .modal-footer { justify-content: flex-end; }

/* Functional additions use the original card/form language, not a redesign. */
[hidden] { display: none !important; }
#internships { scroll-margin-top: 90px; }
#landingJobs > .empty { grid-column: 1 / -1; }
.og-job-card { display: flex; flex-direction: column; gap: 12px; }
.og-job-top, .og-job-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.og-job-description { flex: 1; }
.og-job-bottom { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.og-job-dialog { width: min(580px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); color: var(--text); }
.og-job-dialog::backdrop { background: rgb(0 0 0 / .55); }
.og-job-dialog dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; padding-block: 15px; font-size: 14px; }
.og-job-dialog dt { color: var(--muted); }
.og-job-dialog dd { margin: 0; overflow-wrap: anywhere; }
#landingJobDescription { white-space: pre-wrap; overflow-wrap: anywhere; }
.og-job-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 15px; }
.og-job-skills span { background: var(--primary-light); padding: 5px 10px; border-radius: 999px; font-size: 12px; }
.workspace-drawer-close { display: none; position: absolute; right: 14px; top: 24px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 22px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 768px) { .workspace-drawer-close { display: inline-flex; } .og-job-dialog dl { grid-template-columns: 1fr; } .og-job-dialog dd { margin-bottom: 8px; } }

/* ---------- Stepper (React Bits Stepper adaptation, vanilla, no GSAP) ----------
   Frameless multi-step flow for auth forms; the auth-card stays the frame and
   the auth-panel background is untouched. Wired by initAuthStepper() in
   js/script.js from .stepper-pane sections. See THIRD_PARTY_NOTICES.md. */
.stepper-track { position: relative; display: flex; gap: 4px; background: var(--primary-light); border: 1px solid var(--border); border-radius: 16px; padding: 4px; margin: 0 0 22px; }
.stepper-glider { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 12px; background: var(--primary); opacity: 0; transition: transform .5s cubic-bezier(.22,1,.36,1), width .5s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
.stepper-glider.is-placed { opacity: 1; }
.stepper-seg { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; cursor: pointer; border-radius: 12px; padding: 9px 10px; font-family: inherit; color: var(--muted); min-height: 44px; }
.stepper-seg:disabled { cursor: default; }
.stepper-seg[data-status="active"] { color: var(--primary-ink); }
.stepper-seg[data-status="complete"] { color: var(--text); }
.stepper-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--ff-mono); font-size: 12px; font-weight: 500; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); }
.stepper-seg[data-status="active"] .stepper-badge { background: transparent; border-color: transparent; color: var(--primary-ink); }
.stepper-seg[data-status="complete"] .stepper-badge { background: var(--success-bg); border-color: var(--success-bg); color: var(--success); }
.stepper-badge svg { width: 13px; height: 13px; }
.stepper-seg-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-view { position: relative; }
.stepper-pane[hidden] { display: none; }
.stepper-pane.is-active { animation: paneIn .45s cubic-bezier(.22,1,.36,1); }
.stepper-pane.is-back.is-active { animation-name: paneInBack; }
@keyframes paneIn { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes paneInBack { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
.stepper-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.stepper-foot .stepper-back[hidden], .stepper-foot .stepper-next[hidden] { display: none; }
:root[data-theme="dark"] .stepper-glider { background: var(--primary); }
:root[data-theme="dark"] .stepper-seg[data-status="active"] { color: var(--primary-ink); }
:root[data-theme="dark"] .stepper-seg[data-status="active"] .stepper-badge { color: var(--primary-ink); }
@media (prefers-reduced-motion: reduce) {
  .stepper-glider, .stepper-pane.is-active { transition: none; animation: none; }
}

/* ---------- StaggeredMenu (React Bits adaptation, vanilla CSS, no GSAP) ----------
   Overlay menu with prelayers + staggered items. Built by initStaggeredMenu()
   in js/script.js from the page's own nav links; static navs stay in markup
   as the no-JS fallback and hide under body.sm-nav. See THIRD_PARTY_NOTICES. */
.sm-toggle { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 9999px; background: var(--primary); color: var(--primary-ink); border: 1px solid var(--primary); cursor: pointer; font-family: var(--ff-mono); font-style: normal; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.sm-toggle:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
:root[data-theme="dark"] .sm-toggle:hover { color: var(--primary-ink); }
.sm-toggle-text { height: 1em; overflow: hidden; }
.sm-toggle-textInner { display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.sm-toggle-line { height: 1em; line-height: 1; white-space: nowrap; }
body[data-sm-open] .sm-toggle-textInner { transform: translateY(-50%); }
.sm-icon { position: relative; width: 14px; height: 14px; flex: none; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.sm-icon-h, .sm-icon-v { position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.sm-icon-v { transform: rotate(90deg); }
body[data-sm-open] .sm-icon { transform: rotate(225deg); }
.nav-bar--pill .sm-toggle { margin-left: auto; }
.staggered-menu-wrapper { position: fixed; inset: 0; z-index: 9400; pointer-events: none; }
.sm-prelayers { position: absolute; inset: 0; }
.sm-prelayer { position: absolute; inset: 0; transform: translateX(100%); transition: transform .5s cubic-bezier(.76,0,.24,1); }
.sm-prelayer:nth-child(1) { background: #1a1026; }
.sm-prelayer:nth-child(2) { background: #2e1d42; transition-delay: .07s; }
.sm-prelayer:nth-child(3) { background: #cbb3e8; transition-delay: .14s; }
body[data-sm-open] .sm-prelayer { transform: translateX(0); }
.sm-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 94vw); background: var(--surface); transform: translateX(100%); transition: transform .55s cubic-bezier(.76,0,.24,1) .12s; pointer-events: auto; overflow-y: auto; display: flex; }
body[data-sm-open] .sm-panel { transform: translateX(0); }
body[data-sm-open] .topbar, body[data-sm-open] .site-header { z-index: 9600; }
.sm-panel-inner { margin: 0; width: 100%; padding: 96px 34px 32px; }
.sm-panel-list { list-style: none; margin: 0; padding: 0; counter-reset: sm-item; }
.sm-panel-itemWrap { overflow: hidden; }
.sm-panel-item { display: flex; align-items: baseline; gap: 14px; padding: 9px 4px; text-decoration: none; color: var(--text); opacity: 0; transform: translateY(140%) rotate(4deg); transition: opacity .45s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
body[data-sm-open] .sm-panel-item { opacity: 1; transform: none; }
.sm-panel-item::before { counter-increment: sm-item; content: counter(sm-item, decimal-leading-zero); font-family: var(--ff-mono); font-size: 11px; font-weight: 500; color: var(--muted); flex: none; }
.sm-panel-itemLabel { font-family: var(--ff-display); font-weight: 700; font-size: clamp(26px, 4.6vw, 38px); line-height: 1.12; letter-spacing: -.02em; transition: transform .2s ease; }
.sm-panel-item:hover { text-decoration: none; }
.sm-panel-item:hover .sm-panel-itemLabel { transform: translateX(8px); }
.sm-panel-item.is-active .sm-panel-itemLabel { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.sm-socials { margin-top: 28px; opacity: 0; transition: opacity .5s ease; }
body[data-sm-open] .sm-socials { opacity: 1; }
.sm-socials-title { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.sm-socials-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-socials-link { display: inline-block; padding: 6px 4px; font-size: 14px; font-weight: 600; color: var(--text); }
/* Static navs hide once the overlay takes over (they remain for no-JS). */
body.sm-nav .pill-nav-container { display: none; }
body.sm-nav .sidebar, body.sm-nav .sidebar-backdrop, body.sm-nav .menu-btn { display: none; }
body.sm-nav .app-layout { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .sm-toggle-textInner, .sm-icon, .sm-prelayer, .sm-panel, .sm-panel-item, .sm-socials, .sm-panel-itemLabel { transition: none; }
}

/* ---------- UI/UX Pro Max pass: a11y + interaction fixes ---------- */
/* Every clickable element shows a pointer. */
.mobile-menu-link, .sm-panel-item, .sm-socials-link,
.sidebar nav a, .site-footer nav a,
.modal-backdrop.open, .sidebar-backdrop.show { cursor: pointer; }
button, .btn { touch-action: manipulation; }
/* Visible focus where it was missing or washed out. */
.mobile-menu-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sm-panel-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 22%, transparent); }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] select:focus, :root[data-theme="dark"] textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgb(255 255 255 / .18); }
.spotlight:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 14%, transparent); }
/* Skip link: keyboard users jump past navigation. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10001; padding: 12px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; transform: translateY(-250%); font-weight: 600; font-size: 14px; text-decoration: none; }
.skip-link:focus-visible { transform: translateY(0); }
/* Error summary: focusable, linked list kept alongside inline errors. */
.form-error-summary { display: none; margin: 0 0 16px; }
.form-error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-error-summary li { margin: 2px 0; }
.form-error-summary a { color: inherit; font-weight: 600; }
/* Busy submit buttons: disabled + spinner, label hidden but announced via aria-busy. */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--text); animation: spin360 .7s linear infinite; }
/* Reflow without clipping: wrap rows, break long tokens, ellipsize the topbar. */
.mini-row { flex-wrap: wrap; }
.og-job-top, .og-job-bottom { flex-wrap: wrap; }
th, td { overflow-wrap: anywhere; }
.topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip > span:last-child { min-width: 0; }
.user-chip strong { display: block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Unstyled link class used by landing empty states. */
.landing-text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
/* Legibility over the animated auth backdrop (composed-result scrim rule). */
.auth-panel p, .auth-panel ul li { text-shadow: 0 1px 10px rgb(0 0 0 / .55); }
/* Placeholder contrast: explicit pairs for both themes. */
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: var(--muted); opacity: 1; }
/* Dismiss control meets the 24px web target minimum. */
.toast-close { min-width: 28px; min-height: 28px; }
/* Destructive panel entry stays separated from normal items. */
.sm-panel-item.is-danger { color: var(--danger); }
.sm-panel-itemWrap.has-separator { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
/* Icon sizing token for the hamburger mark. */
.menu-icon { display: inline-flex; width: 16px; height: 16px; }
.menu-icon svg { width: 100%; height: 100%; }
/* Readable 16px inputs on touch devices (no iOS auto-zoom). */
@media (pointer: coarse) {
  input[type="text"], input[type="email"], input[type="password"], input[type="date"],
  input[type="number"], input[type="url"], input[type="search"], select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation: none; }
}

/* ---------- Landing redesign: announcement, product visual, FAQ ---------- */
.hero-announce { margin: 0 0 18px; }
.hero-announce a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 12px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9999px; padding: 8px 16px; text-decoration: none; box-shadow: var(--shadow); }
.hero-announce a:hover { border-color: var(--text); text-decoration: none; }
.hero-announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.hero-visual { margin: 44px 0 0; }
.mock { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; text-align: start; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.mock-dot:first-child { background: var(--danger); opacity: .55; }
.mock-url { margin-left: 8px; font-family: var(--ff-mono); font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; }
.mock-body { padding: 20px; display: grid; gap: 16px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-row strong { font-size: 15px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-stats > div { border: 1px solid var(--border); border-radius: 14px; padding: 12px 10px; text-align: center; background: var(--surface); }
.mock-stats strong { display: block; font-family: var(--ff-display); font-size: clamp(1.3rem, 1rem + 2vw, 1.7rem); letter-spacing: -.02em; }
.mock-stats > div > span:last-child { font-family: var(--ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mock-list { display: grid; gap: 8px; }
.mock-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.mock-list strong { display: block; font-size: 14px; }
.mock-list span span { font-size: 12px; color: var(--muted); }
.mock-bars { display: grid; gap: 10px; }
.mock-bars > div { display: grid; grid-template-columns: 100px 1fr 32px; gap: 10px; align-items: center; font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mock-bars strong { font-family: var(--ff-sans); font-size: 14px; color: var(--text); text-align: end; }
.hero-visual figcaption { margin-top: 12px; font-size: 12px; text-align: center; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 400; font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.faq details p { margin: 12px 0 4px; color: var(--muted); font-size: 14px; max-width: 70ch; }
@media (max-width: 760px) {
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-bars > div { grid-template-columns: 84px 1fr 28px; }
  .hero-visual { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-announce a { transition: none; }
}
