/* ============================================================
   INTERVUAL — Design System
   Tokens, base, and shared components. Dark is primary; light
   is the equal twin on the same token names.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Figtree:wght@400;450;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens: DARK (default) ---------- */
:root,
[data-theme="dark"] {
  /* surfaces */
  --bg: oklch(0.17 0.018 264);
  --bg-deep: oklch(0.13 0.016 264);
  --surface: oklch(0.21 0.02 264);
  --surface-2: oklch(0.245 0.022 264);
  --surface-3: oklch(0.285 0.024 264);
  --hover: oklch(0.30 0.026 264 / 0.6);
  --line: oklch(1 0 0 / 0.09);
  --line-strong: oklch(1 0 0 / 0.16);

  /* text */
  --text: oklch(0.97 0.005 264);
  --text-2: oklch(0.78 0.012 264);
  --text-3: oklch(0.62 0.014 264);
  --text-faint: oklch(0.50 0.014 264);

  /* brand accent — electric indigo -> violet */
  --accent: oklch(0.66 0.20 280);
  --accent-2: oklch(0.62 0.21 292);
  --accent-soft: oklch(0.66 0.20 280 / 0.16);
  --accent-line: oklch(0.66 0.20 280 / 0.40);
  --on-accent: oklch(0.99 0.01 280);

  /* signal */
  --live: oklch(0.66 0.21 18);
  --live-soft: oklch(0.66 0.21 18 / 0.16);
  --success: oklch(0.74 0.16 162);
  --success-soft: oklch(0.74 0.16 162 / 0.16);
  --warn: oklch(0.80 0.15 78);
  --warn-soft: oklch(0.80 0.15 78 / 0.16);

  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow: 0 8px 24px -8px oklch(0 0 0 / 0.55);
  --shadow-lg: 0 24px 60px -18px oklch(0 0 0 / 0.65);
  --glow: 0 0 0 1px var(--accent-line), 0 8px 30px -6px oklch(0.66 0.20 280 / 0.35);
}

/* ---------- Tokens: LIGHT ---------- */
[data-theme="light"] {
  --bg: oklch(0.985 0.004 264);
  --bg-deep: oklch(0.955 0.006 264);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.975 0.005 264);
  --surface-3: oklch(0.955 0.008 264);
  --hover: oklch(0.93 0.01 264 / 0.7);
  --line: oklch(0.2 0.02 264 / 0.10);
  --line-strong: oklch(0.2 0.02 264 / 0.18);

  --text: oklch(0.23 0.02 264);
  --text-2: oklch(0.40 0.018 264);
  --text-3: oklch(0.54 0.016 264);
  --text-faint: oklch(0.64 0.014 264);

  --accent: oklch(0.55 0.22 280);
  --accent-2: oklch(0.52 0.23 292);
  --accent-soft: oklch(0.55 0.22 280 / 0.12);
  --accent-line: oklch(0.55 0.22 280 / 0.30);
  --on-accent: oklch(0.99 0.01 280);

  --live: oklch(0.58 0.22 18);
  --live-soft: oklch(0.58 0.22 18 / 0.12);
  --success: oklch(0.58 0.15 162);
  --success-soft: oklch(0.58 0.15 162 / 0.12);
  --warn: oklch(0.68 0.15 70);
  --warn-soft: oklch(0.68 0.15 70 / 0.14);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 264 / 0.08);
  --shadow: 0 8px 24px -10px oklch(0.2 0.02 264 / 0.18);
  --shadow-lg: 0 24px 60px -20px oklch(0.2 0.02 264 / 0.22);
  --glow: 0 0 0 1px var(--accent-line), 0 8px 30px -8px oklch(0.55 0.22 280 / 0.25);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Figtree', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5 { font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--text); }
.mono { font-family: 'JetBrains Mono', monospace; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }
svg { display: block; }
.ic { width: 17px; height: 17px; flex: none; }
.h-top .ic, .who .ic, .meter .ic, .a-top .ic, .eyebrow .ic { width: 14px; height: 14px; }
.trend .ic { width: 13px; height: 13px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); background-clip: content-box; }

/* ---------- Utility ---------- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
}
.chip.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip.success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.chip.live { background: var(--live-soft); border-color: transparent; color: var(--live); }
.chip svg { width: 14px; height: 14px; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: .55; box-shadow: 0 0 0 4px transparent; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 11px; font-weight: 600; font-size: 13.5px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
  transition: all .16s ease; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--grad); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 18px -6px oklch(0.62 0.21 286 / 0.6); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 10px 26px -6px oklch(0.62 0.21 286 / 0.7); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn.danger { background: var(--live-soft); color: var(--live); border-color: transparent; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--text-2);
  border: 1px solid transparent; transition: all .16s ease;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 28px; }
.card-title { font-size: 15px; font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }

/* progress */
.bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* ---------- Layout shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-deep); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
/* Brand stays pinned; the nav list below it scrolls when it doesn't fit. */
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.side-foot { display: flex; flex-direction: column; gap: 4px; flex: none; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
.lang-btn { width: auto; gap: 6px; padding: 0 10px; }
.lang-btn span { font-size: 12px; font-weight: 600; }
.brand { display: flex; align-items: center; gap: 11px; padding: 8px 8px 18px; flex: none; }
.brand .logo { width: 38px; height: 34px; display: grid; place-items: center; flex: none; }
.brand .logo svg { width: 100%; height: 100%; }
.brand .name { font-family: 'Sora'; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.brand .name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-label { padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px;
  color: var(--text-3); font-weight: 500; font-size: 13.5px; transition: all .14s ease; width: 100%; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item .badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.nav-item.active .badge { background: var(--accent); color: var(--on-accent); }

/* Active live-session indicator (designer JobBridge_9): red, pulsing, only while a session runs */
.live-bar-host { display: flex; align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 6px 0 13px; border-radius: 11px; background: var(--live-soft); border: 1px solid transparent; color: var(--live); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; max-width: 340px; }
.live-pill:hover { filter: brightness(1.04); }
.live-pill .dot { background: var(--live); }
.live-pill .lp-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pill .lp-time { background: var(--live); color: #fff; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; flex: none; white-space: nowrap; }
.live-pill .lp-back { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); color: var(--text); padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; flex: none; }
.live-pill .lp-back svg { width: 13px; height: 13px; }
@media (max-width: 760px) { .live-pill .lp-label, .live-pill .lp-back { display: none; } .live-pill { padding: 0 11px; } }
.menu-btn { position: relative; }
.menu-btn.has-live::after { content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 99px; background: var(--live); box-shadow: 0 0 0 2px var(--bg); animation: pulse 1.6s ease-in-out infinite; }
.nav-item .live-badge-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--live); padding: 2px 8px 2px 7px; border-radius: 99px; }
.nav-item .live-badge-nav .dot { width: 6px; height: 6px; background: #fff; }

/* Theme toggle: dark shows the sun (go light), light shows the moon (go dark) */
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: inline-block; }

/* Registration gift (designer-approved): hero plaque + compact badge */
.gift-plaque { display: flex; align-items: center; gap: 20px; max-width: 760px; margin: 30px auto 0; padding: 20px 22px; border-radius: 18px; text-align: left; background: linear-gradient(120deg, var(--success-soft), var(--accent-soft)); border: 1px solid var(--accent-line); }
.gift-plaque .gp-ic { width: 54px; height: 54px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px -8px var(--accent); }
.gift-plaque .gp-ic svg { width: 26px; height: 26px; }
.gift-plaque .gp-main { flex: 1; min-width: 0; }
.gift-plaque .gp-title { font-family: 'Sora'; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.gift-plaque .gp-title b { color: var(--accent); }
.gift-plaque .gp-sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.gift-plaque .gp-deadline { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; font-weight: 600; color: var(--live); background: var(--live-soft); padding: 4px 10px; border-radius: 8px; }
.gift-plaque .gp-deadline svg { width: 13px; height: 13px; }
.gift-plaque .gp-btn { flex: none; }
@media (max-width: 720px) { .gift-plaque { flex-direction: column; align-items: flex-start; text-align: left; } .gift-plaque .gp-btn { width: 100%; } }
.gift-badge { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-radius: 13px; background: var(--success-soft); border: 1px solid transparent; font-size: 13.5px; line-height: 1.5; color: var(--text); margin-bottom: 20px; }
.gift-badge .gb-emoji { font-size: 20px; line-height: 1.2; flex: none; }
.gift-badge b { color: var(--success); }
.gift-badge .gb-dl { color: var(--live); font-weight: 600; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
}
.search {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--text-3); flex: 1; max-width: 380px;
}
.search svg { width: 16px; height: 16px; }
.search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 13.5px; }
.search kbd { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-faint); font-family: 'JetBrains Mono'; }

.avatar { width: 34px; height: 34px; border-radius: 99px; background: var(--grad); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--on-accent); flex: none; }
.token-pill { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.token-pill svg { width: 15px; height: 15px; color: var(--accent); }

.content { padding: 28px 26px 64px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--text-3); margin-top: 6px; font-size: 14.5px; }

/* grid helpers */
.row { display: flex; gap: 16px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* stat */
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.stat .ico svg { width: 20px; height: 20px; }
.stat .val { font-family: 'Sora'; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.stat .lbl { color: var(--text-3); font-size: 13px; }
.trend { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.trend.up { color: var(--success); }
.trend.down { color: var(--live); }

/* view transition */
.view { animation: fade .45s cubic-bezier(.2,.7,.2,1); }
@keyframes fade { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .view, .tline, .hint, .answer { animation: none !important; } }

/* mobile */
.menu-btn { display: none; }
.scrim { display: none; position: fixed; inset: 0; background: oklch(0 0 0 / 0.5); z-index: 50; }
@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 260px; transform: translateX(-100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; }
  .menu-btn { display: inline-flex; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .content { padding: 18px 14px 56px; }
  .g-2, .g-4 { grid-template-columns: 1fr; }
  .search { display: none; }
  .topbar { padding: 0 14px; }
  .hide-sm { display: none !important; }
}

/* ---- Global responsive collapse for inline two-column grids ---- */
@media (max-width: 920px) {
  .content .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .page-head h1 { font-size: 22px; }
}
@media (max-width: 760px) {
  .table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 580px; }
  .modal { max-width: 100% !important; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
}
@media (max-width: 440px) {
  .otp { gap: 7px; }
  .otp input { width: 100%; max-width: 48px; height: 56px; font-size: 22px; }
  .btn.lg { height: 44px; font-size: 14px; padding: 0 18px; }
  .page-head h1 { font-size: 20px; }
  .avatar { width: 30px; height: 30px; }
}
/* ============================================================
   INTERVUAL — Component styles (tables, forms, tabs, modals,
   states, marketing, auth, admin). Builds on styles.css tokens.
   ============================================================ */

/* ---------- Section / block ---------- */
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 19px; }
.section-head .sub { color: var(--text-3); font-size: 13.5px; margin-top: 3px; }

/* breadcrumb */
.crumb { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.crumb a:hover { color: var(--text); }
.crumb svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 15px; font-weight: 500; font-size: 13.5px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all .15s; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-color: var(--accent); }

/* segmented */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 13px; border-radius: 8px; font-weight: 500; font-size: 12.5px; color: var(--text-3); transition: all .14s; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 7px; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 0 14px; height: 44px; color: var(--text); font-size: 14px; outline: none; transition: all .15s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input-group { position: relative; }
.input-group .input { padding-left: 42px; }
.input-group > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-faint); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* toggle */
.switch { position: relative; width: 44px; height: 25px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); cursor: pointer; transition: all .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 99px; background: #fff; transition: all .2s; box-shadow: var(--shadow-sm); }
.switch.on { background: var(--accent); border-color: transparent; }
.switch.on::after { left: 21px; }
.switch.sm { width: 36px; height: 21px; }
.switch.sm::after { width: 15px; height: 15px; }
.switch.sm.on::after { left: 17px; }

.check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; cursor: pointer; transition: all .15s; }
.check.on { background: var(--accent); border-color: var(--accent); }
.check svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.check.on svg { opacity: 1; }

.radio-row { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .15s; }
.radio-row:hover { border-color: var(--line-strong); }
.radio-row.sel { border-color: var(--accent); background: var(--accent-soft); }

/* form layout */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:680px){ .form-row { grid-template-columns: 1fr; } }
.settings-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: none; }
.settings-row .t { font-weight: 600; font-size: 14px; }
.settings-row .d { color: var(--text-3); font-size: 13px; margin-top: 3px; max-width: 520px; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 13px 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .u { display: flex; align-items: center; gap: 11px; }
.tbl .u .avatar { width: 32px; height: 32px; font-size: 12px; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--text-3); }
.pager { display: flex; gap: 4px; }
.pager button { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }
.pager button.active { background: var(--accent); color: #fff; border-color: transparent; }
.pager button:hover:not(.active) { background: var(--hover); }

/* badge / status */
.badge2 { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.badge2.ok { background: var(--success-soft); color: var(--success); }
.badge2.warn { background: var(--warn-soft); color: var(--warn); }
.badge2.bad { background: var(--live-soft); color: var(--live); }
.badge2.info { background: var(--accent-soft); color: var(--accent); }
.badge2.neutral { background: var(--surface-3); color: var(--text-2); }

/* filter bar */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { flex: 0 1 320px; max-width: none; }
.spacer { flex: 1; }

/* ---------- States: empty / loading / error ---------- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 24px; gap: 14px; }
.state .glyph { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3); }
.state .glyph svg { width: 28px; height: 28px; }
.state h3 { font-size: 17px; }
.state p { color: var(--text-3); font-size: 13.5px; max-width: 360px; line-height: 1.5; }
.state.error .glyph { background: var(--live-soft); color: var(--live); border-color: transparent; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.spinner { width: 34px; height: 34px; border-radius: 99px; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
.modal-scrim { position: fixed; inset: 0; background: oklch(0 0 0 / .55); backdrop-filter: blur(4px); z-index: 200; display: grid; place-items: center; padding: 20px; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.modal.wide { max-width: 640px; }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 20px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 14px 22px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.modal-foot { padding: 16px 22px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 6px; }

/* ---------- Marketing ---------- */
.mkt { min-height: 100vh; background: var(--bg); }
.mkt-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 0 max(24px, 5vw); height: 70px; border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(12px); }
.mkt-nav .links { display: flex; gap: 6px; margin-left: 12px; }
.mkt-nav .links a { padding: 8px 13px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.mkt-nav .links a:hover { background: var(--hover); color: var(--text); }
@media(max-width:860px){ .mkt-nav .links { display: none; } }
.mkt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(24px,5vw); }
.hero { text-align: center; padding: 90px 0 70px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; margin: 0 auto; }
.hero p { font-size: clamp(16px,2vw,20px); color: var(--text-2); max-width: 56ch; margin: 22px auto 0; line-height: 1.5; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media(max-width:900px){ .feature-grid { grid-template-columns: 1fr; } }
.feat { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.feat .fi { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { color: var(--text-3); font-size: 14px; line-height: 1.55; }
.mkt-foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 50px max(24px,5vw); color: var(--text-3); font-size: 13.5px; }
.mkt-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; max-width: 1180px; margin: 0 auto; }
@media(max-width:760px){ .mkt-foot .cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
.mkt-foot a { display: block; padding: 5px 0; color: var(--text-3); }
.mkt-foot a:hover { color: var(--text); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
@media(max-width:900px){ .price-grid { grid-template-columns: 1fr; } }
.price-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.price-card.feat-plan { border-color: var(--accent); box-shadow: var(--glow); position: relative; }
.price-card .amount { font-family: Sora; font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.price-card ul { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.price-card li svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 1px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media(max-width:920px){ .auth { grid-template-columns: 1fr; } .auth .auth-aside { display: none; } }
.auth-aside { background: linear-gradient(150deg, oklch(0.2 0.05 280), oklch(0.16 0.04 292)); padding: 50px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; color: oklch(0.97 0.01 280); }
.auth-aside .blob { position: absolute; border-radius: 99px; filter: blur(40px); opacity: .5; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .lead { color: var(--text-3); margin-bottom: 26px; font-size: 14.5px; }
.oauth-btn { width: 100%; height: 46px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; transition: all .15s; }
.oauth-btn:hover { background: var(--surface-2); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.otp { display: flex; gap: 10px; justify-content: center; }
.otp input { width: 54px; height: 64px; text-align: center; font-size: 26px; font-family: Sora; font-weight: 600; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); outline: none; }
.otp input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.center-card { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }

/* ---------- Admin ---------- */
.app.admin .sidebar { background: var(--bg-deep); }
.admin-tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; background: var(--live-soft); color: var(--live); text-transform: uppercase; }
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi .v { font-family: Sora; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.kpi .l { color: var(--text-3); font-size: 12.5px; }

/* timeline / audit */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 99px; background: var(--accent); border: 3px solid var(--bg); }
.tl-item .when { font-size: 12px; color: var(--text-faint); }

/* code block */
.code { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: 'JetBrains Mono'; font-size: 12.5px; line-height: 1.7; color: var(--text-2); overflow-x: auto; }
.code .k { color: var(--accent); } .code .s { color: var(--success); } .code .c { color: var(--text-faint); }

/* misc */
.divider-line { height: 1px; background: var(--line); margin: 22px 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-3); } .kv dd { color: var(--text); font-weight: 500; }
.progress-ring-lg { width: 120px; height: 120px; }
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; border-radius: 22px; margin: 0 auto; }

.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }

/* ---------- Command palette (⌘K) ---------- */
.cmdk-scrim { position: fixed; inset: 0; background: oklch(0 0 0 / .5); backdrop-filter: blur(5px); z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 20px 20px; animation: fadein .15s ease; }
.cmdk { width: 100%; max-width: 600px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s cubic-bezier(.2,.8,.2,1); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 19px; height: 19px; color: var(--text-3); flex: none; }
.cmdk-in input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; }
.cmdk-in input::placeholder { color: var(--text-faint); }
.cmdk-in kbd { font-size: 11px; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-faint); font-family: 'JetBrains Mono'; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-grp { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding: 12px 12px 6px; }
.cmdk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: 14px; font-weight: 500; }
.cmdk-row .cmdk-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.cmdk-row .cmdk-ic svg { width: 16px; height: 16px; }
.cmdk-row .cmdk-go { margin-left: auto; width: 15px; height: 15px; color: var(--text-faint); opacity: 0; }
.cmdk-row.active { background: var(--accent-soft); color: var(--accent); }
.cmdk-row.active .cmdk-ic { background: var(--accent); color: var(--on-accent); }
.cmdk-row.active .cmdk-go { opacity: 1; color: var(--accent); }
.cmdk-empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 14px; }
.cmdk-foot { display: flex; gap: 18px; padding: 11px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; color: var(--text-faint); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 13px; padding: 11px 16px 11px 11px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(14px) scale(.97); transition: all .3s cubic-bezier(.2,.8,.2,1); min-width: 240px; }
.toast.show { opacity: 1; transform: none; }
.toast .ti { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.toast .ti svg { width: 16px; height: 16px; }
.toast.ok .ti { background: var(--success-soft); color: var(--success); }
.toast.bad .ti { background: var(--live-soft); color: var(--live); }

/* ============================================================
   LIVE SCREENS — Mock Interview, Screen Copilot, Work Session
   Spec from designer "Ответы разработке" (timings exact).
   ============================================================ */

/* layout shells */
.live-wrap, .cop-wrap, .wl-wrap { display: grid; gap: 18px; height: calc(100vh - 64px); padding: 18px 0; }
.live-wrap { grid-template-columns: 1fr 384px; }
.cop-wrap { grid-template-columns: 1fr 404px; }
.wl-wrap { grid-template-columns: 1fr 404px; }
@media (max-width: 1080px) { .live-wrap, .cop-wrap, .wl-wrap { grid-template-columns: 1fr; height: auto; } }
.live-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.live-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 99px; background: var(--live-soft); color: var(--live); font-weight: 700; font-size: 13px; }
.rec.reconnecting { background: var(--surface-2); color: var(--text-3); }
.timer { font-family: 'JetBrains Mono'; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.who-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.who-chip .av { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); }

/* stage + orb */
.stage { flex: 1; border-radius: 22px; background: radial-gradient(90% 70% at 50% 0%, var(--accent-soft), transparent 60%), radial-gradient(120% 100% at 50% 100%, var(--surface-2), var(--surface)); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 330px; padding: 34px; }
.stage .ivtag { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.stage .ivtag .av { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.stage .scorefly { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 13px; box-shadow: var(--shadow); }
.stage .scorenum { font-family: 'Sora'; font-weight: 700; font-size: 18px; color: var(--success); }
.orb { position: relative; width: 160px; height: 160px; display: grid; place-items: center; }
.orb .core { width: 118px; height: 118px; border-radius: 99px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 80px -6px var(--accent), inset 0 -8px 24px oklch(0 0 0/.25); position: relative; z-index: 2; }
.orb .core svg { width: 42px; height: 42px; color: #fff; }
.orb .r { position: absolute; border-radius: 99px; border: 1.5px solid var(--accent-line); inset: 8px; }
.orb .r1 { animation: ring 2.6s ease-out infinite; }
.orb .r2 { animation: ring 2.6s ease-out infinite .9s; }
.orb .r3 { animation: ring 2.6s ease-out infinite 1.8s; }
@keyframes ring { 0% { transform: scale(.78); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb .r { display: none; } }
.interviewer-q { max-width: 580px; text-align: center; margin-top: 28px; font-family: 'Sora'; font-size: 22px; font-weight: 500; line-height: 1.4; min-height: 1.4em; }
.ststate { margin-top: 14px; display: flex; align-items: center; gap: 9px; color: var(--text-3); font-size: 13px; }

/* waveform / equalizer */
.waveform { display: flex; align-items: center; gap: 4px; height: 34px; }
.waveform i { width: 4px; border-radius: 99px; background: var(--accent); animation: wv 1s ease-in-out infinite; }
@keyframes wv { 0%, 100% { height: 7px; } 50% { height: 30px; } }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.mini-wave i { width: 3px; border-radius: 9px; background: var(--accent); animation: wv 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .waveform i { height: 16px !important; animation: none; } .mini-wave i, .vu i { animation: none; } }

/* transcript with typing caret + diarization colors */
.transcript { flex: none; height: 188px; overflow-y: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; }
.tline { display: flex; gap: 11px; margin-bottom: 13px; }
.tline .who { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; width: 74px; flex: none; padding-top: 2px; }
.tline.ai .who { color: var(--accent); }
.tline.me .who { color: var(--success); }
.tline .txt { font-size: 14px; line-height: 1.55; color: var(--text); }
.tline .txt.live::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* coach panel */
.coach-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; }
.coach-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.coach-score { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.coach-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; overflow-y: auto; flex: 1; }
.hint { border-radius: 14px; padding: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.hint.key { border-color: var(--accent-line); background: var(--accent-soft); animation: popin .4s ease; }
@keyframes popin { from { transform: translateY(10px); } to { transform: none; } }
.hint .h-top { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.hint ul { margin: 0; padding-left: 17px; font-size: 13px; line-height: 1.65; color: var(--text-2); }
.meter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.meter .bar { flex: 1; }
.meter .bar > span { transition: width .6s ease; }

/* Screen Copilot — meet tiles, diarization VU, detected/thinking/answer */
.screen-frame { border-radius: 18px; border: 1px solid var(--line-strong); overflow: hidden; background: var(--bg-deep); display: flex; flex-direction: column; min-height: 340px; }
.sf-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sf-dot { width: 11px; height: 11px; border-radius: 99px; }
.sf-url { margin-left: 10px; font-size: 12px; color: var(--text-3); font-family: 'JetBrains Mono'; background: var(--surface); padding: 3px 12px; border-radius: 7px; border: 1px solid var(--line); }
.sf-body { flex: 1; position: relative; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 28px); overflow: hidden; }
.shared-app { width: 90%; max-width: 640px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.meet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.meet-tile { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); display: flex; align-items: flex-end; padding: 10px; position: relative; transition: box-shadow .3s; }
.meet-tile.speaking { box-shadow: inset 0 0 0 2px var(--success); }
.meet-tile .nm { font-size: 11px; font-weight: 600; background: oklch(0 0 0 /.45); color: #fff; padding: 3px 8px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.meet-tile .face { position: absolute; inset: 0; display: grid; place-items: center; }
.meet-tile .face div { width: 56px; height: 56px; border-radius: 99px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: 'Sora'; font-size: 20px; }
.vu { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.vu i { width: 2.5px; border-radius: 9px; background: var(--success); animation: vumini .9s ease-in-out infinite; }
@keyframes vumini { 0%, 100% { height: 4px; } 50% { height: 11px; } }
.capture-badge { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: oklch(0 0 0 /.6); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; z-index: 3; }
.listen-badge { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; z-index: 3; box-shadow: var(--shadow); }
.cop-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; }
.cop-h { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.cop-stream { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.detected { border-radius: 13px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; animation: popin .35s ease; }
.detected .who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.detected .dtxt.live::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--text-2); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.thinking { border-radius: 14px; padding: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.thinking .tdots { display: flex; gap: 4px; }
.thinking .tdots i { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); animation: tdot 1.2s infinite; }
.thinking .tdots i:nth-child(2) { animation-delay: .2s; }
.thinking .tdots i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.answer { border-radius: 14px; padding: 15px; background: var(--accent-soft); border: 1px solid var(--accent-line); animation: popin .4s ease; }
.answer .a-top { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 9px; }
.answer .a-top .lat { margin-left: auto; color: var(--text-3); font-weight: 600; text-transform: none; letter-spacing: 0; font-family: 'JetBrains Mono'; font-size: 10.5px; }
.answer p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.answer .keypts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cop-foot { padding: 13px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.cop-input { flex: 1; height: 38px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 13px; color: var(--text); outline: none; font-size: 13px; }

/* Work Session IDE + suggestion stream */
.ide { border-radius: 16px; border: 1px solid var(--line-strong); overflow: hidden; background: var(--bg-deep); display: flex; flex-direction: column; min-height: 360px; }
.ide-bar { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ide-tab { padding: 5px 12px; border-radius: 7px; font-family: 'JetBrains Mono'; font-size: 12px; color: var(--text-3); }
.ide-tab.on { background: var(--bg-deep); color: var(--text); }
.code { font-family: 'JetBrains Mono'; font-size: 13px; line-height: 1.7; padding: 14px; color: var(--text-2); overflow: auto; }
.code .k { color: var(--accent); }
.code .s { color: var(--success); }
.code .c { color: var(--text-faint); }
.ln { display: flex; gap: 16px; padding: 1px 6px; border-radius: 5px; transition: background .3s; }
.ln .n { color: var(--text-faint); width: 24px; text-align: right; user-select: none; }
.ln.look { background: oklch(0.66 0.2 280 / 0.14); box-shadow: inset 2px 0 0 var(--accent); }
.ln.added { background: oklch(0.74 0.16 162 / 0.14); box-shadow: inset 2px 0 0 var(--success); }
.wl-stream { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wl-card { border-radius: 14px; padding: 14px; animation: popin .4s ease; }
.wl-card.voice { background: var(--surface-2); border: 1px solid var(--line); }
.wl-card.sug { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.wl-card.applied { background: var(--success-soft); border: 1px solid transparent; }
.wl-card .c-top { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.wl-card.voice .c-top { color: var(--text-3); }
.wl-card.sug .c-top { color: var(--accent); }
.wl-card.applied .c-top { color: var(--success); }
.wl-card p { font-size: 13.5px; line-height: 1.55; margin: 0; color: var(--text-2); }

/* Mobile live: bottom-sheet hint panel (spec §9) */
@media (max-width: 720px) {
  .live-sheet-toggle { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: inline-flex; }
  .live-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 72vh; background: var(--surface); border-top: 1px solid var(--line-strong); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 75; overflow-y: auto; }
  .live-sheet.open { transform: none; }
}

/* modal pop (spec §10) */
@keyframes pop { from { transform: scale(.94); } to { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   LEGACY TOKEN COMPATIBILITY
   The live screens (MockInterview / ScreenShare / WorkSessionLive) still
   carry large embedded <style> blocks authored against the previous design
   system. Rather than rewrite ~10k lines of working real-time markup, we
   alias the old token names to the new theme-aware tokens. Because CSS
   custom properties resolve at use time, these inherit light/dark
   automatically from the active --bg/--text/etc.
   ============================================================ */
:root,
[data-theme="dark"],
[data-theme="light"] {
  /* surfaces */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-deep);
  --bg-tertiary: var(--surface-2);
  --bg-card: var(--surface);
  --bg-card-solid: var(--surface);
  --bg-hover: var(--hover);
  --bg-input: var(--surface);

  /* lines / borders */
  --border-color: var(--line);
  --border-input: var(--line-strong);

  /* text */
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--text-3);
  --text-placeholder: var(--text-faint);

  /* brand / primary scale → accent */
  --color-primary-50: var(--accent-soft);
  --color-primary-100: var(--accent-soft);
  --color-primary-300: var(--accent-2);
  --color-primary-400: var(--accent-2);
  --color-primary-500: var(--accent);
  --color-primary-600: var(--accent);
  --color-primary-700: var(--accent);
  --color-primary-800: var(--accent);

  /* neutral scale → theme-aware surfaces/text */
  --color-neutral-50: var(--surface-2);
  --color-neutral-100: var(--surface-2);
  --color-neutral-200: var(--surface-3);
  --color-neutral-300: var(--line-strong);
  --color-neutral-400: var(--text-faint);
  --color-neutral-500: var(--text-3);
  --color-neutral-600: var(--text-3);
  --color-neutral-700: var(--text-2);
  --color-neutral-800: var(--text);
  --color-neutral-900: var(--text);

  /* signals */
  --color-success: var(--success);
  --color-success-dark: var(--success);
  --color-success-light: var(--success-soft);
  --color-warning: var(--warn);
  --color-warning-dark: var(--warn);
  --color-warning-light: var(--warn-soft);
  --color-error: var(--live);
  --color-error-dark: var(--live);
  --color-error-light: var(--live-soft);

  /* shadows */
  --shadow-md: var(--shadow);
  --shadow-xl: var(--shadow-lg);
}

/* ============================================================
   MOCK INTERVIEW — redesigned dialog (v4 designer handoff)
   Chat thread with AI/candidate bubbles, per-answer feedback cards,
   composer and coach panel. Used by MockInterview Interview phase.
   ============================================================ */
.iv-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 2px; }
.iv-msg { display: flex; gap: 11px; max-width: 88%; }
.iv-msg.me { flex-direction: row-reverse; align-self: flex-end; }
.iv-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 12px; color: #fff; background: var(--grad); }
.iv-av.me { border-radius: 99px; }
.iv-bub { border-radius: 14px; padding: 13px 16px; font-size: 14px; line-height: 1.55; }
.iv-bub.ai { background: var(--surface-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.iv-bub.me { background: var(--accent-soft); border: 1px solid var(--accent-line); border-top-right-radius: 4px; }
.iv-spk { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.iv-wm { display: inline-flex; gap: 2px; height: 11px; align-items: flex-end; }
.iv-wm i { width: 2.5px; border-radius: 9px; background: var(--accent); animation: wv .9s ease-in-out infinite; }
.iv-code { margin-top: 10px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: 'JetBrains Mono'; font-size: 12px; line-height: 1.8; color: var(--text-2); overflow-x: auto; }
.iv-code .k { color: var(--accent); }
.iv-fb { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; background: var(--surface); animation: popin .4s ease; }
.iv-fb .fb-h { display: flex; gap: 13px; align-items: flex-start; }
.fb-score { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: 18px; flex: none; }
.fb-score span { font-size: 11px; opacity: .7; font-weight: 600; }
.fb-score.good { background: var(--success-soft); color: var(--success); }
.fb-score.medium { background: var(--warn-soft); color: var(--warn); }
.fb-score.low { background: var(--live-soft); color: var(--live); }
.fb-gap { background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.fb-gap b { color: var(--warn); }
.fb-dispute { margin-top: 11px; font-size: 12.5px; color: var(--text-3); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.fb-disputed { margin-top: 11px; font-size: 12.5px; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 6px; }
.iv-composer { display: flex; gap: 9px; align-items: flex-end; margin-top: 8px; }
.iv-composer .inp { flex: 1; min-height: 46px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface); padding: 12px 15px; color: var(--text); outline: none; font-size: 14px; resize: none; line-height: 1.4; font-family: inherit; }
.iv-composer .inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.iv-tool { width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text-2); cursor: pointer; flex: none; transition: all .15s; }
.iv-tool:hover { background: var(--hover); }
.iv-tool svg { width: 19px; height: 19px; }
.iv-tool.send { background: var(--grad); color: #fff; border-color: transparent; }
.iv-tool.send:disabled { opacity: .5; cursor: not-allowed; }
.iv-tool.rec { background: var(--surface); }
.iv-tool.rec.on { background: var(--live-soft); color: var(--live); border-color: transparent; }
.iv-tool.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.iv-prog { height: 5px; border-radius: 99px; background: var(--surface-3); width: 110px; overflow: hidden; }
.iv-prog > span { display: block; height: 100%; background: var(--grad); transition: width .6s ease; }
.star-h { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.star-h summary { cursor: pointer; list-style: none; padding: 13px 15px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); display: flex; align-items: center; gap: 7px; }
.star-h summary::-webkit-details-marker { display: none; }
.star-h summary svg { width: 14px; height: 14px; }
.star-h .sc { padding: 0 15px 14px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.iv-typing { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; border-top-left-radius: 4px; padding: 14px 16px; display: flex; gap: 5px; align-items: center; }
.iv-typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--text-faint); animation: tdot 1.2s infinite; }
.iv-typing i:nth-child(2) { animation-delay: .2s; }
.iv-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
