:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e5e9f0;
  --line-strong: #d8dee9;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #059669;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --sidebar: 236px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ shell */

.app { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 18px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #2563eb);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  border: 0; background: none; width: 100%; text-align: left; font-size: 14px;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nav-item .chev { margin-left: auto; color: var(--muted); width: 14px; height: 14px; }
.nav-item .star { margin-left: auto; color: #f59e0b; width: 14px; height: 14px; }

.nav-label {
  margin: 18px 10px 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.subnav { display: flex; flex-direction: column; gap: 1px; padding-left: 34px; }
.subnav a { padding: 6px 8px; border-radius: 8px; color: #475569; font-size: 13px; }
.subnav a:hover { background: var(--surface-2); }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px; border-radius: 10px; cursor: pointer;
}
.user-card:hover { background: var(--surface-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fde8dc; color: #b45309;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  flex: 0 0 34px;
}
.user-meta { min-width: 0; }
.user-meta strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ main */

.main { margin-left: var(--sidebar); padding: 0 40px 48px; }
.inner { max-width: 1120px; margin: 0 auto; }

.banner {
  margin: 0 -40px 30px;
  padding: 22px 40px;
  background: linear-gradient(100deg, #1d4ed8 0%, #2563eb 45%, #0d9488 100%);
  color: #fff;
  display: flex; align-items: center; gap: 18px;
}
.banner .b-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; flex: 0 0 38px;
}
.banner-text { max-width: 720px; font-size: 13.5px; line-height: 1.6; }
.banner-text strong { font-weight: 700; }
.banner .spacer { flex: 1; }
.banner .learn {
  background: #fff; color: #1e293b; border: 0; border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.banner .close {
  background: none; border: 0; color: rgba(255, 255, 255, 0.85); cursor: pointer;
  padding: 6px; border-radius: 999px; display: grid; place-items: center;
}
.banner .close:hover { background: rgba(255, 255, 255, 0.14); }

/* ------------------------------------------------------------------ page head */

.page-head { margin: 26px 0 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -0.02em; font-weight: 700; }
.page-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 30px 0 14px;
}
.section-head h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-head .spacer { flex: 1; }
.section-head .link { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ------------------------------------------------------------------ stat cards */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.stat .ic {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; flex: 0 0 38px;
}
.stat .body { min-width: 0; }
.stat .body strong { display: block; font-size: 14.5px; font-weight: 600; }
.stat .body span { display: block; font-size: 12.5px; color: var(--muted); }
.stat .act { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------ launch cards */

.launch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative;
  border-radius: 16px;
  padding: 22px;
  min-height: 196px;
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 0; text-align: left; cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.tile::after {
  content: "";
  position: absolute;
  right: -40px; top: -50px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.tile::before {
  content: "";
  position: absolute;
  right: 40px; bottom: -70px;
  width: 150px; height: 150px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(18deg);
}
.tile.interview { background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%); }
.tile.build { background: linear-gradient(135deg, #831843 0%, #a21caf 55%, #d946ef 100%); }
.tile.trivia { background: linear-gradient(135deg, #065f46 0%, #047857 55%, #10b981 100%); }
.tile .t-ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.tile h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; position: relative; z-index: 1; }
.tile p { margin: 0 0 18px; font-size: 12.8px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); position: relative; z-index: 1; }
.tile .launch-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  position: relative; z-index: 1;
}
.tile:hover .launch-btn { background: rgba(255, 255, 255, 0.3); }

/* ------------------------------------------------------------------ two column */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }

.panel { background: transparent; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-head .spacer { flex: 1; }
.panel-head .link { font-size: 13px; font-weight: 600; }
.panel-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }

.rows { display: flex; flex-direction: column; gap: 10px; }
.row-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.row-card:hover { border-color: var(--line-strong); }
.row-card .ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; flex: 0 0 34px;
}
.row-card .body { min-width: 0; flex: 1; }
.row-card .body strong { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-card .body .chips { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.row-card .chev { color: #94a3b8; flex: 0 0 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px; color: #475569;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip.blue { background: var(--blue-soft); border-color: #dbeafe; color: #1d4ed8; }

.live {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff7ed; color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 999px; padding: 1px 8px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #f97316; }

.meta-line { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------------ generic cards (existing views) */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.card h3 { margin: 0 0 8px; font-size: 14px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.row .fill, .row .grow-fill { flex: 1 1 220px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pill {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; color: #475569;
}

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
}
.item .grow { min-width: 0; }
.item strong { display: block; }
.item.danger { border-color: #fecaca; background: #fef2f2; }

/* ------------------------------------------------------------------ forms */

label { display: block; font-size: 12.5px; color: #475569; margin: 14px 0 6px; font-weight: 500; }

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { padding: 7px; background: var(--surface-2); }

button {
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.04); }
button.ghost { background: #fff; color: #334155; border: 1px solid var(--line-strong); font-weight: 500; }
button.ghost:hover { background: var(--surface-2); }
button.danger { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }

/* ------------------------------------------------------------------ feedback */

.error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
}
.notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 13px;
}

/* ------------------------------------------------------------------ live session / review */

.answer {
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  font-size: 14px;
}
.transcript { max-height: 220px; overflow-y: auto; color: var(--muted); font-size: 13px; white-space: pre-wrap; }

/* ------------------------------------------------------------------ auth pages */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.auth-card .brand { justify-content: center; padding-bottom: 22px; }
.auth-card h1 { font-size: 22px; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 6px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .stats { grid-template-columns: 1fr; }
  .launch { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  :root { --sidebar: 72px; }
  .brand span, .nav-item span, .nav-label, .subnav, .user-meta { display: none; }
  .nav-item { justify-content: center; }
  .main { padding: 0 18px 32px; }
  .banner { margin: 0 -18px 22px; padding: 18px; }
}

/* ------------------------------------------------------------------ icon sizing */

svg { display: inline-block; vertical-align: middle; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; }
.brand svg, .user-card svg { width: 16px; height: 16px; }
.stat .ic svg, .row-card .ic svg, .tile .t-ic svg { width: 18px; height: 18px; }
.banner svg { width: 18px; height: 18px; }
.b-icon svg { width: 20px; height: 20px; }
.section-head h2 svg, .panel-head h2 svg { width: 17px; height: 17px; color: #475569; }
.link svg { width: 14px; height: 14px; }
.launch-btn svg { width: 14px; height: 14px; }
.chev { width: 14px; height: 14px; color: #94a3b8; flex: 0 0 14px; }
.icon-btn {
  background: none; border: 0; padding: 6px; border-radius: 8px;
  color: #94a3b8; cursor: pointer; display: grid; place-items: center; margin-left: auto;
}
.icon-btn:hover { background: var(--surface-2); color: #475569; }
.icon-btn svg { width: 16px; height: 16px; }
.nav-item.active svg { color: var(--blue); }
.row-card .chev { margin-left: 2px; }

/* ------------------------------------------------------------------ fidelity pass */

.brand {
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 2px 0 20px;
  text-align: center;
}
.brand .mark { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.brand span:last-child { font-size: 17px; letter-spacing: -0.02em; }

.banner { position: relative; justify-content: center; }
.banner .spacer { display: none; }
.banner .close { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); }
.banner-text { max-width: 640px; text-align: center; }
.banner .b-icon { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); }

.tile-mark { position: absolute; right: 6px; top: 18px; opacity: 0.16; z-index: 0; }
.tile-mark svg { width: 132px; height: 132px; stroke-width: 0.9; }

.chip.doc { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; }
.chip svg { width: 12px; height: 12px; flex: 0 0 12px; }

.help-bubble {
  position: fixed; right: 26px; bottom: 26px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #2563eb; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
  z-index: 30;
}
.help-bubble:hover { filter: brightness(1.06); }
.help-bubble svg { width: 22px; height: 22px; }

.tile { min-height: 190px; }
.item .grow strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.banner { justify-content: center; }
.banner .b-icon { position: static; transform: none; flex: 0 0 38px; }
.banner-text { text-align: left; max-width: 560px; }
.banner .close { right: 22px; }

/* ------------------------------------------------------------------ assistants list + form */

.page-header { display: flex; align-items: flex-start; gap: 16px; margin: 26px 0 18px; }
.page-header h1 { margin: 0 0 2px; font-size: 28px; letter-spacing: -0.02em; }
.page-header p { margin: 0; color: var(--muted); font-size: 14px; }
.page-header .spacer { flex: 1; }
.btn-primary {
  background: var(--blue); color: #fff; border: 0; border-radius: 9px;
  padding: 10px 16px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
.btn-primary svg { width: 16px; height: 16px; }
.total-pill {
  display: inline-block; margin-left: 8px; font-size: 12px; color: #64748b;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 1px 9px; vertical-align: middle;
}

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.table-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search { flex: 1; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px; color: #94a3b8; background: #fff; }
.search input { border: 0; padding: 0; outline: none; width: 100%; background: transparent; box-shadow: none; }
.search svg { width: 16px; height: 16px; }
.table-top .ghost { display: inline-flex; align-items: center; gap: 6px; }
.table-top .ghost svg { width: 15px; height: 15px; }

table.grid { width: 100%; border-collapse: collapse; }
table.grid th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #94a3b8; font-weight: 600; padding: 12px 16px; background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
table.grid td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
table.grid tbody tr:hover td { background: #f8fafc; }
table.grid .num { width: 72px; color: #94a3b8; font-size: 13px; }
table.grid a { font-weight: 500; }
.table-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #64748b; font-size: 12.5px; }
.pager { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px;
  background: #fff; border: 1px solid var(--line); color: #475569; font-size: 12.5px;
}
.pager button.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: 0.4; }
.pager select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.pager .ellipsis { padding: 0 4px; color: #94a3b8; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 96px; }
.form-head { padding: 20px 28px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.form-body { padding: 6px 28px 30px; }
.section-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; font-weight: 700; margin: 26px 0 18px; }
.form-row { margin-bottom: 20px; max-width: 660px; }
.form-row.wide { max-width: none; }
.form-row label { margin: 0 0 7px; font-size: 13px; color: var(--text); font-weight: 600; display: block; }
.form-row label .opt { color: #94a3b8; font-weight: 500; margin-left: 6px; }
.req { color: var(--red); margin-left: 2px; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }

.editor { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.toolbar { display: flex; align-items: center; gap: 2px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: #fbfdff; flex-wrap: wrap; }
.toolbar button { background: none; border: 0; padding: 5px 8px; border-radius: 6px; color: #475569; font-size: 13px; font-weight: 600; }
.toolbar button:hover { background: #eef2f7; }
.toolbar svg { width: 15px; height: 15px; }
.toolbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.editor textarea { border: 0; border-radius: 0; min-height: 210px; padding: 14px 16px; resize: vertical; box-shadow: none; }
.editor textarea:focus { box-shadow: none; border: 0; }
.editor .counter { padding: 6px 14px; border-top: 1px solid var(--line); color: #94a3b8; font-size: 12px; }

.add-tile {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px dashed #cbd5e1; background: #fff; color: #334155;
  border-radius: 9px; padding: 10px 16px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.add-tile:hover { border-color: var(--blue); color: var(--blue); background: #f8fbff; }
.add-tile svg { width: 15px; height: 15px; }

.form-footer {
  position: fixed; left: var(--sidebar); right: 0; bottom: 0; z-index: 15;
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  padding: 12px 40px; display: flex; justify-content: flex-end; gap: 10px;
  backdrop-filter: blur(8px);
}
.form-footer .wrap { max-width: 1120px; margin: 0 auto; width: 100%; display: flex; justify-content: flex-end; gap: 10px; }
.form-footer button { display: inline-flex; align-items: center; gap: 7px; }
.form-footer svg { width: 15px; height: 15px; }
.btn-outline { background: #fff; border: 1px solid var(--line-strong); color: #334155; font-weight: 600; }
button[disabled] { opacity: 0.45; cursor: not-allowed; }

.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-card { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.modal-head .spacer { flex: 1; }
.modal-head button { background: none; border: 0; color: #64748b; padding: 4px; }
.modal-body { padding: 14px 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; cursor: pointer; background: #fff; width: 100%; text-align: left; }
.pick-row:hover { border-color: var(--blue); background: #f8fbff; }
.pick-row .grow { min-width: 0; }
.pick-row strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row span { font-size: 11.5px; color: var(--muted); }
.selected-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sel-chip { display: inline-flex; align-items: center; gap: 7px; background: #eff6ff; border: 1px solid #dbeafe; color: #1d4ed8; border-radius: 8px; padding: 5px 9px; font-size: 12.5px; max-width: 340px; }
.sel-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-chip button { background: none; border: 0; color: #1d4ed8; padding: 0; display: grid; place-items: center; }
.sel-chip svg { width: 13px; height: 13px; }

.help-bubble { bottom: 86px; }

.user-card { position: relative; }
.new-badge {
  margin-left: auto; background: #2563eb; color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 999px; padding: 2px 7px;
}
.menu-pop {
  position: absolute; left: 10px; right: 10px; bottom: 64px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16); padding: 6px; z-index: 40;
}
.menu-pop a, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  border-radius: 7px; font-size: 13px; color: #334155; background: none; border: 0; font-weight: 500;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop button { color: var(--red); }

/* ------------------------------------------------------------------ rich text editor */

.editor-surface {
  min-height: 210px;
  max-height: 60vh;
  padding: 14px 16px;
  outline: none;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.editor-surface:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.editor-surface p { margin: 0 0 10px; }
.editor-surface h1, .editor-surface h2, .editor-surface h3 { margin: 14px 0 8px; line-height: 1.3; }
.editor-surface ul, .editor-surface ol { margin: 0 0 10px; padding-left: 22px; }
.editor-surface blockquote {
  margin: 0 0 10px; padding-left: 12px;
  border-left: 3px solid #e2e8f0; color: #475569;
}
.editor-surface pre {
  background: #0f172a; color: #e2e8f0; padding: 12px;
  border-radius: 8px; overflow: auto; font-size: 13px;
}
.editor-surface code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.editor-surface pre code { background: none; padding: 0; color: inherit; }
.editor-md {
  border: 0; border-radius: 0; min-height: 210px; padding: 14px 16px;
  max-height: 60vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; resize: vertical; box-shadow: none;
}
.editor-md:focus { box-shadow: none; }
.editor-mode-notice { padding: 8px 16px; font-size: 12px; color: #526586; background: #f2f6ff; border-top: 1px solid #e3eafa; }
.editor[data-mode="large-text"] .editor-md { height: 360px; overflow: auto; tab-size: 4; }
.editor .toolbar button:disabled, .editor .toolbar select:disabled { opacity: .4; cursor: default; }
.prompt-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.prompt-label-row label { margin: 0; }
.prompt-label-row button { flex-shrink: 0; }
@media (max-width: 540px) { .prompt-label-row { flex-wrap: wrap; } .editor[data-mode="large-text"] .editor-md { height: 300px; } }
.toolbar select {
  width: auto; padding: 4px 6px; font-size: 12.5px;
  border: 0; background: transparent; color: #475569; box-shadow: none;
}
.toolbar .md-toggle { font-size: 11.5px; color: #64748b; padding: 4px 8px; }
.toolbar .md-toggle.active { background: #e0e7ff; color: #3730a3; }
.editor .hidden { display: none !important; }
.editor-expanded {
  position: fixed; inset: 24px; z-index: 60;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35); margin: 0; overflow: hidden;
}
.editor-expanded .editor-surface, .editor-expanded .editor-md { flex: 1; max-height: none; }

/* ------------------------------------------------------------------ session review */

.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs .tab {
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  padding: 10px 14px; font-weight: 600; color: #64748b; font-size: 13.5px;
}
.tabs .tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tabs .tab .count {
  font-size: 11px; background: #f1f5f9; border-radius: 999px;
  padding: 1px 6px; margin-left: 6px; color: #475569;
}
.tabs .spacer { flex: 1; }
.tabs .ghost { padding: 6px 12px; }

.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid; grid-template-columns: 40px 92px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.tl-row:last-child { border-bottom: 0; }
.tl-index { color: #94a3b8; font-size: 12px; }
.tl-time { color: #64748b; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tl-text { font-size: 14px; line-height: 1.55; }

.qa-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.qa-q { font-weight: 600; color: #334155; margin-bottom: 8px; }
.qa-q::before { content: "Q "; color: #94a3b8; font-weight: 700; }
.qa-a { white-space: pre-wrap; line-height: 1.6; }
.qa-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #94a3b8; font-size: 12px; }
.qa-foot button { padding: 4px 10px; font-size: 12px; }

.tl-text .speaker {
  display: inline-block; margin-right: 8px; padding: 1px 7px;
  background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff;
  border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 1px;
}
.tl-row.seekable { cursor: pointer; border-radius: 8px; }
.tl-row.seekable:hover { background: #f8fafc; }

/* launch dialog */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal-card { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.modal-card label { margin-top: 10px; display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meter { height: 6px; background: #e2e8f0; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#6366f1,#22c55e); transition: width .08s linear; }

/* recent questions */
.recent { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.recent-item { text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.recent-item:hover { background: #eef2ff; border-color: #c7d2fe; }

/* response type picker */
.pick-btn { text-align: left; }
.pick-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 46vh; overflow: auto; }
.pick-item { text-align: left; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.pick-item:hover { background: #f8fafc; }
.pick-item.active { border-color: #6366f1; background: #eef2ff; }
#tSearch { margin-top: 8px; }

/* ---------------------------------------------------------------- website fixes */
.answer.md { white-space: normal; line-height: 1.6; }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 10px 20px; padding: 0; }
.md pre { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.md h1, .md h2, .md h3, .md h4 { margin: 12px 0 6px; font-size: 15px; }
.qa-a.md { white-space: normal; }
.pill.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.chip-select { width: auto; padding: 2px 6px; font-size: 12px; border-radius: 6px; margin: 0 2px; height: auto; }
a.item { color: inherit; text-decoration: none; }
a.item:hover { border-color: #c7d2fe; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: 10px; }
.bars span { flex: 1 1 0; min-width: 2px; background: linear-gradient(180deg, #6366f1, #a5b4fc); border-radius: 3px 3px 0 0; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.assistant-page-header { justify-content: space-between; }
.assistant-dialog { max-width: 740px; }
.assistant-dialog h2 { margin: 0; }
.assistant-dialog footer { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.assistant-dialog .editor-surface { min-height: 160px; }
.material-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 18px 0; gap: 8px; }
.material-tabs button { color: #64748b; border: 0; border-radius: 0; background: none; border-bottom: 2px solid transparent; }
.material-tabs [aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.assistant-dialog .upload-zone { min-height: 170px; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #f8fafc; cursor: pointer; }
.upload-zone span { color: #64748b; font-size: 13px; }
.upload-zone input { max-width: 330px; font-size: 13px; }
.assistant-dialog .material-option { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.material-option small { display: block; color: #64748b; font-weight: normal; margin-top: 3px; }
.material-option input, #assistantForm input[type="checkbox"] { width: auto; }
.empty-state { text-align: center; color: #64748b; padding: 25px 12px; }
.sel-chip .ghost { color: inherit; padding: 0; font-size: inherit; font-weight: 500; }
#assistantForm .form-footer .wrap { display: flex; align-items: center; gap: 10px; }
.assistant-workspace { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(310px, 1.65fr) minmax(230px, 1fr); gap: 16px; align-items: stretch; }
.assistant-workspace > .card { min-width: 0; margin: 0; padding: 18px; }
.assistant-workspace h2 { font-size: 16px; margin: 0 0 18px; }
.assistant-workspace h3 { font-size: 14px; margin: 24px 0 14px; }
.assistant-workspace .transcription-panel, .assistant-workspace .insights-panel { display: flex; flex-direction: column; min-height: 66vh; }
.assistant-workspace .transcription-panel .empty-state, .workspace-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; color: #64748b; padding: 25px 8px; line-height: 1.7; }
.assistant-workspace .insights-panel > .row { flex-wrap: wrap; }
.assistant-workspace .insights-panel h2 { margin: 0; }
.assistant-workspace .settings-panel label { display: block; font-weight: 600; margin: 18px 0 10px; }
.assistant-workspace .settings-panel .inline-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.inline-check input { width: auto; margin: 0; }
.assistant-workspace .fill { width: 100%; }
.assistant-workspace #micLevel { display: block; height: 100%; background: #22c55e; }
.assistant-workspace #sessionLimit { padding: 0; }
.live-workspace .answer { flex: 1; min-height: 280px; margin-top: 20px; }
.live-workspace .transcript { flex: 1; min-height: 250px; white-space: pre-wrap; margin: 0; border: 0; padding: 0; }
.live-workspace #qLabel { margin-top: 15px; }
.question-composer textarea { resize: vertical; min-width: 0; flex: 1; }
.question-composer { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.answer-actions { margin-top: 12px; }
.recent-details { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.recent-details summary { cursor: pointer; color: #64748b; font-size: 13px; }
.screen-preview { width: 100%; max-height: 200px; margin: 10px 0; background: #0f172a; border-radius: 8px; object-fit: contain; }
.session-heading { flex-wrap: wrap; gap: 8px; }
@media (max-width: 1250px) { .assistant-workspace { grid-template-columns: minmax(180px, .75fr) minmax(310px, 1.5fr); } .assistant-workspace .settings-panel { grid-column: 1 / -1; } }
@media (max-width: 700px) { .assistant-workspace { display: flex; flex-direction: column; } .assistant-workspace .insights-panel { order: 0; min-height: 45vh; } .assistant-workspace .settings-panel { order: 1; } .assistant-workspace .transcription-panel { order: 2; min-height: 200px; } }
@media (max-width: 900px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The meeting space follows the reference's full-height three-panel layout. */
.session-space { height: 100dvh; background: #f5f5f5; }
.session-space .sidebar, .session-space .help-bubble { display: none; }
.session-space .main { margin: 0; padding: 0; width: 100%; }
.session-space .inner { max-width: none; margin: 0; padding: 0; }
.session-space .assistant-workspace { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(380px, 2fr) minmax(270px, 1fr); gap: 0; height: 100dvh; padding: 16px; }
.session-space .assistant-workspace > .card { border: 0; border-radius: 0; box-shadow: none; padding: 16px; min-height: 0; }
.session-space .transcription-panel, .session-space .settings-panel { background: transparent; grid-column: auto; order: 0; }
.session-space .settings-panel { overflow-y: auto; scrollbar-width: thin; padding-left: 24px !important; }
.session-space .insights-panel { background: #fff; min-height: 0; overflow: hidden; order: 0; }
.session-space h2 { color: #35383e; font-size: 14px; font-weight: 600; margin: 0; }
.session-space h3 { color: #41454d; font-size: 13px; font-weight: 500; }
.space-panel-heading { display: flex; align-items: center; gap: 10px; min-height: 32px; flex-shrink: 0; }
.session-space .space-panel-heading h2 { margin: 0; }
.session-space .space-panel-heading button { padding: 6px 10px; font-size: 12px; min-height: 30px; }
.space-panel-heading svg, .question-composer svg, .answer-actions svg, .response-type-button svg, .space-clock svg { height: 16px; width: 16px; vertical-align: middle; flex-shrink: 0; }
.session-space .generate-button { background: #edf4ff; border: 1px solid #dbe7ff; color: #3b82f6; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.session-space .generate-button:disabled { opacity: .6; }
.session-space .transcript { flex: 1; min-height: 0; max-height: none; overflow: auto; padding: 20px 0; font-size: 14px; line-height: 1.8; background: transparent; color: #4b5563; scrollbar-width: thin; }
.session-space .transcript:empty { flex: 0; padding: 0; }
.transcript-empty { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; color: #b2b9c3; text-align: center; font-size: 12px; }
.transcript-empty > svg { height: 32px; width: 32px; stroke-width: 1.2; }
.microphone-glyph { font-size: 32px; font-weight: 300; }
.space-clock { display: flex; align-items: center; gap: 8px; color: #9198a1; font-size: 12px; margin-top: auto; padding-top: 20px; }
.space-clock #state { display: none; }
.space-clock .connection-state { margin-left: auto; font-size: 10px; }
.session-space .recent-details { margin-top: 10px; padding-top: 10px; border-color: #e7e9ec; }
.session-space .workspace-empty { font-size: 13px; padding: 24px 14px; line-height: 1.7; color: #9aa1ac; align-items: center; }
.session-space .workspace-empty h3 { font-weight: 500; margin: 12px 0 0; color: #8c94a1; }
.session-space .workspace-empty p { max-width: 300px; margin: 6px 0; }
.assistant-glyph { display: grid; place-items: center; height: 64px; width: 64px; color: #8795ab; }
.assistant-glyph svg { height: 48px; width: 48px; }
.session-space kbd { display: inline-block; border: 1px solid #e0e4e9; padding: 0 5px; border-radius: 4px; background: #f8fafc; font: inherit; font-size: 11px; color: #7b8493; }
.space-tip { background: #eef4ff; border: 1px solid #dce8ff; border-radius: 10px; padding: 26px 30px; text-align: center; color: #5275b4; font-size: 13px; margin: 0 14px 30px; }
.space-tip strong { font-size: 20px; color: #2461d9; line-height: 1.4; }
.space-tip p { line-height: 1.6; }
.space-tip a { display: inline-flex; align-items: center; gap: 30px; padding: 8px 14px; border: 1px solid #bdd2ff; border-radius: 6px; color: #275dd0; font-size: 12px; }
.session-space .question-composer { display: flex; align-items: flex-end; gap: 8px; border: 1px solid #e2e5eb; border-radius: 7px; padding: 8px 10px; margin: 12px 0 0; background: #fff; flex-shrink: 0; }
.session-space .question-composer textarea, .session-space .question-composer input { border: 0; outline: 0; box-shadow: none; min-width: 0; min-height: 36px; max-height: 130px; width: 100%; margin: 0; padding: 8px 2px; background: transparent; resize: vertical; font-size: 13px; }
.session-space .question-composer:focus-within { border-color: #83aaff; box-shadow: 0 0 0 2px #edf3ff; }
.session-space .question-composer button { min-height: 36px; padding: 7px 10px; border-radius: 5px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.session-space .question-composer button:disabled { background: #e9edf2; border-color: #e9edf2; color: #a1a8b1; opacity: 1; }
.session-space .settings-panel label { font-size: 12px; margin: 20px 0 8px; color: #50555d; }
.session-space .settings-panel .help { font-size: 11px; line-height: 1.6; margin: 8px 0; color: #949ba5; }
.session-space .settings-panel select, .session-space .settings-panel button { font-size: 12px; padding: 9px 12px; border-radius: 6px; }
.session-space .settings-panel .inline-check { font-size: 12px; }
.session-space .settings-panel #grantMic { background: transparent; border: 1px solid #84aaff; color: #3978eb; }
.session-space .settings-panel #grantMic.access-granted { color: #16a34a; background: #e9f8ed; border-color: #75d791; opacity: 1; }
.session-space .space-audio-tip { padding: 10px; margin: 16px 0; border: 1px solid #ffe5a1; border-radius: 6px; background: #fff9e8; color: #a58131; font-size: 11px; line-height: 1.6; }
.session-space .meter { height: 4px; }
.session-space input[type=range] { accent-color: #347cff; }
.session-space .start-session-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.session-space .start-session-actions button { flex: 1; white-space: nowrap; padding: 9px 8px; }
.session-space #startFree { color: #946b0e; border-color: #f5cf66; background: #ffefb2; }
.session-space #leaveSpace { color: #ed5261; border: 1px solid #fca6ad; background: transparent; margin-top: 14px; }
.session-space .record-switch { justify-content: space-between; }
.record-switch input { appearance: none; width: 32px; height: 18px; border-radius: 20px; background: #d8dce2; border: 0; position: relative; cursor: pointer; padding: 0; }
.record-switch input::before { content: ''; position: absolute; height: 14px; width: 14px; border-radius: 50%; background: #fff; top: 2px; left: 2px; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.record-switch input:checked { background: #3b82f6; }
.record-switch input:checked::before { transform: translateX(14px); }
.space-answer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 18px; font-size: 11px; color: #939ba8; min-height: 40px; }
.live-caption { color: #6b8abb; font-size: 12px; padding: 8px 4px; max-height: 65px; overflow: auto; flex-shrink: 0; }
.session-space .response-type-button { background: #f0f5ff; color: #5e7caa; padding: 5px 9px; border-radius: 5px; font-size: 11px; }
.session-space .answer { border: 0; border-radius: 0; background: #fff; padding: 24px 6px 10px; margin: 0; flex: 1; min-height: 0; max-height: none; overflow: auto; font-size: 15px; line-height: 1.8; scrollbar-width: thin; }
.session-space .answer > .workspace-empty { height: 100%; }
.session-space .answer-actions { gap: 6px; flex-wrap: wrap; margin: 8px 0 0; padding: 8px 0; border-top: 1px solid #eef0f3; }
.session-space .answer-actions button { font-size: 11px; padding: 4px 8px; }
.session-space .spoken-question { padding: 10px 12px; border-radius: 6px; background: #f1f6ff; color: #5278b2; font-size: 12px; max-height: 82px; overflow: auto; margin: 8px 0 0 !important; flex-shrink: 0; }
.insights-timer { color: #9098a4; font-size: 12px; font-variant-numeric: tabular-nums; }
.session-space .end-session { border-color: #f6b2bc; color: #de5667; background: #fff; }
.session-space .mobile-panel-toggle, .session-space .mobile-panel-close { display: none; }
.answer-thinking { display: flex; align-items: center; gap: 10px; color: #929daf; font-size: 13px; }
.thinking-dot { width: 8px; height: 8px; border-radius: 50%; background: #5287f5; animation: thinking 1.1s ease-in-out infinite; }
@keyframes thinking { 50% { opacity: .25; } }
.candidate-invite { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(130px, 1fr) minmax(180px, 1.5fr) auto; align-items: end; gap: 14px; margin: 20px 0; }
.candidate-invite .inline-check { grid-column: 1 / -1; }
.table-scroll { width: 100%; overflow-x: auto; margin: 16px 0; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll th { text-align: left; color: #64748b; font-size: 12px; white-space: nowrap; }
.table-scroll td, .table-scroll th { padding: 12px; border-bottom: 1px solid #e8edf4; vertical-align: top; }
.table-scroll td { font-size: 13px; }
.table-scroll .help { margin: 5px 0 0; }
.wrap { flex-wrap: wrap; }
.practice-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 16px; margin: 18px 0; }
.practice-stats strong, .practice-stats span { display: block; }
.practice-stats strong { font-size: 26px; color: #19345b; font-variant-numeric: tabular-nums; }
.practice-stats span { font-size: 12px; color: #64748b; margin-top: 6px; }
.practice-days { display: grid; gap: 10px; max-height: 330px; overflow: auto; }
.practice-day { display: grid; grid-template-columns: 110px minmax(60px, 1fr) 100px; align-items: center; gap: 14px; font-size: 13px; }
.practice-day meter, .feedback-dimension meter { width: 100%; height: 12px; accent-color: #2763eb; }
.feedback-dimensions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.feedback-dimension { border: 1px solid #e2e8f0; background: #f8faff; border-radius: 10px; padding: 16px; }
.feedback-score { font-size: 30px; color: #2763eb; }
.pronunciation-words { line-height: 2.6; }
.pronunciation-words .needs-practice { color: #9a3412; background: #fff1e6; border: 1px solid #fdba74; }
.recording-clip + .recording-clip { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.recording-clip video { background: #152032; border-radius: 10px; }
#practiceFeedback > .card { margin-bottom: 18px; }
@media (max-width: 900px) { .candidate-invite { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .candidate-invite { grid-template-columns: 1fr; } .practice-day { grid-template-columns: 90px minmax(40px, 1fr) 70px; gap: 8px; } .practice-stats { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .thinking-dot { animation: none; } }
@media (max-width: 980px) {
  .session-space .assistant-workspace { display: flex; padding: 8px; flex-direction: column; }
  .session-space .insights-panel { height: 100%; flex: 1; }
  .session-space .transcription-panel, .session-space .settings-panel { display: none; }
  .session-space .mobile-panel-toggle, .session-space .mobile-panel-close { display: inline-flex; align-items: center; }
  .session-space .show-settings .settings-panel, .session-space .show-transcript .transcription-panel { display: flex; flex-direction: column; position: fixed; inset: 8px 8px 8px auto; width: min(370px, calc(100vw - 16px)); background: #f8f9fb; border: 1px solid #e2e6ef; z-index: 30; box-shadow: -15px 0 50px #25365a20; }
  .session-space .show-transcript .transcription-panel { inset: 8px auto 8px 8px; }
  .session-space .mobile-panel-close { margin-left: auto; }
  .session-space .space-tip { margin-bottom: 24px; max-width: 530px; align-self: center; }
}
@media (max-width: 470px) {
  .session-space .assistant-workspace > .insights-panel { padding: 12px; }
  .session-space .space-panel-heading { gap: 5px; }
  .session-space .space-panel-heading h2 { font-size: 13px; }
  .session-space .space-panel-heading button { padding: 5px 6px; }
  .session-space .generate-button svg { display: none; }
  .session-space .insights-timer { font-size: 10px; }
  .session-space .space-tip { padding: 20px 16px; margin: 0 0 12px; }
}
.reasoning-toggle { min-width: 68px; border-radius: 999px; background: #e8edf5; color: #334155; border: 1px solid #cbd5e1; font-weight: 700; }
.reasoning-toggle[aria-checked="true"] { background: #245bf0; color: #fff; border-color: #245bf0; }
.reasoning-toggle:focus-visible { outline: 3px solid #a5baff; outline-offset: 3px; }
