/* Base styles for the HR pages and the applicant's interview page.
   Night navy, signal blue from the logo, brass for primary actions only. Geist is self-hosted (CSP). */
@font-face { font-family: Geist; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geist; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0b1430;
  --night-raised: #14204a;
  --night-line: rgba(160, 185, 255, 0.14);
  --navy: #121a33;
  --navy-surface: #eef2fb;
  --signal: #3d8bff;
  --signal-soft: rgba(61, 139, 255, 0.14);
  --brass: #e0ae52;
  --brass-deep: #c8933a;
  --brass-ink: #2a1b00;
  --page: #f2f4f9;
  --surface: #ffffff;
  --sunken: #f6f8fc;
  --ink: #121a33;
  --muted: #5d6784;
  --faint: #8b93ab;
  --border: #e3e7f0;
  --border-strong: #cdd4e3;
  --red: #c0352b;
  --red-surface: #fdeeec;
  --green: #18794e;
  --green-surface: #e7f5ee;
  --amber: #8a5a00;
  --amber-surface: #fdf3dc;
  --info: #2b67d1;
  --info-surface: #eaf1fe;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(18, 26, 51, 0.03);
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target { scroll-margin-top: 24px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 34px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.035em; font-weight: 650; }
h2 { font-size: 17px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.015em; font-weight: 620; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 620; }
p { margin: 0 0 12px; }
a { color: var(--info); text-underline-offset: 3px; }

.muted { color: var(--muted); }
/* Breadcrumb above a page title. */
.eyebrow { font-size: 14px; color: var(--muted); margin: 0 0 4px; }

/* ---- Buttons: one system. Brass = the one main action on a screen; white = everything else. ---- */
button, .button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
button.small, .button.small { min-height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
button.block, .button.block { display: flex; width: 100%; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.primary { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); box-shadow: 0 1px 2px rgba(42, 27, 0, 0.12); }
.primary:hover:not(:disabled) { background: #e9bb63; border-color: #e9bb63; }
.secondary { background: var(--surface); color: var(--navy); border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(18, 26, 51, 0.04); }
.secondary:hover:not(:disabled) { background: var(--sunken); border-color: #b4bdd1; }
.danger { background: var(--surface); color: var(--red); border-color: #efc2bd; }
.danger:hover:not(:disabled) { background: var(--red-surface); border-color: #e7a59e; }
.linkish { background: none; border: 0; padding: 0; min-height: 0; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }

/* ---- Forms ---- */
label { display: block; font-weight: 560; font-size: 14px; }
label .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
input[type='text'], input[type='password'], input[type='number'], input[type='email'], textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); outline: none; }
textarea { min-height: 96px; resize: vertical; field-sizing: content; max-height: 70vh; line-height: 1.55; }

.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Surfaces ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card.narrow { max-width: 420px; margin: 10vh auto 0; }
.flash { background: var(--info-surface); border: 1px solid #c8d9fb; color: #1d4d9e; border-radius: 10px; padding: 10px 14px; }
.flash.bad { background: var(--red-surface); border-color: #f4c6c1; color: var(--red); }
.flash.ok { background: var(--green-surface); border-color: #bde3cf; color: var(--green); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 560;
  white-space: nowrap;
  background: var(--sunken);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--green-surface); color: var(--green); box-shadow: inset 0 0 0 1px #c3e5d2; }
.chip.warn { background: var(--amber-surface); color: var(--amber); box-shadow: inset 0 0 0 1px #f1dca6; }
.chip.bad { background: var(--red-surface); color: var(--red); box-shadow: inset 0 0 0 1px #f4c6c1; }
.chip.info { background: var(--info-surface); color: var(--info); box-shadow: inset 0 0 0 1px #c8d9fb; }

table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.grid th, table.grid td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.grid th { font-size: 13px; font-weight: 560; color: var(--muted); background: var(--sunken); }
table.grid tbody tr { transition: background-color 0.12s; }
table.grid tbody tr:hover { background: #fafbfe; }
table.grid tr:last-child td { border-bottom: 0; }

.log {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 60px;
  margin: 0 0 10px;
}

[hidden] { display: none !important; }

/* ---- Interview record on the applicant page ---- */
.interview-record > * + * { margin-top: 14px; }
.summary { background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.summary > * + * { margin-top: 10px; }
.summary h3 { margin-top: 16px; }
.summary h3:first-child { margin-top: 0; }
.summary ul { margin: 0; padding-left: 20px; }
.rating { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 560; }
.facts { margin: 0; }
.facts dt { font-weight: 560; font-size: 14px; }
.facts dd { margin: 0 0 8px; }
.transcript { list-style: none; margin: 0; padding: 0; }
.transcript .turn { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); max-width: 92%; }
.transcript .turn + .turn { margin-top: 10px; }
.transcript .turn p { margin: 0; }
.transcript .turn p + p, .transcript .turn audio { margin-top: 6px; }
.transcript .interviewer { background: var(--navy-surface); border-color: #dbe3f6; border-bottom-left-radius: 4px; }
.transcript .candidate { background: var(--surface); margin-left: auto; border-bottom-right-radius: 4px; }
.transcript .who { font-size: 12.5px; font-weight: 560; color: var(--muted); }
.transcript .who .chip { margin-left: 6px; }
.transcript audio { display: block; width: 100%; max-width: 420px; height: 36px; }

/* ---- HR frame: a dark sidebar shell ---- */
body.admin {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--page);
}
.bar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 14px;
  color: #fff;
  background:
    radial-gradient(420px 300px at 0% 0%, rgba(61, 139, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1838, var(--night));
  border-right: 1px solid var(--night-line);
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 0 8px; }
.brand > span { display: grid; line-height: 1.2; }
.brand img { border-radius: 10px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -6px rgba(61, 139, 255, 0.7); }
.wordmark { font-weight: 650; letter-spacing: -0.01em; font-size: 15px; }
.product { font-size: 13px; color: #8fb6ff; }
.bar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bar nav a, .bar nav .linkish {
  display: block;
  color: #aeb9d8;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  width: 100%;
}
.bar nav a:hover, .bar nav .linkish:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.bar nav a[aria-current='page'] { color: #fff; background: linear-gradient(90deg, rgba(61, 139, 255, 0.26), rgba(61, 139, 255, 0.06)); box-shadow: inset 2px 0 0 var(--signal); }
.bar nav form { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--night-line); }
body.admin main {
  min-width: 0;
  background:
    linear-gradient(180deg, #e8edf8, transparent 260px),
    var(--page);
}
.page { max-width: 1160px; margin: 0 auto; padding: 44px 40px 80px; }
.page > * + * { margin-top: 20px; }
.page > h1 + *, .page-head + * { margin-top: 24px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; font-size: 16px; }
@media (max-width: 900px) {
  body.admin { display: block; }
  .bar { position: sticky; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; }
  .bar nav { flex-direction: row; flex-wrap: wrap; flex: none; }
  .bar nav a, .bar nav .linkish { padding: 6px 9px; font-size: 13.5px; width: auto; }
  .bar nav form { margin: 0; padding: 0; border: 0; }
  .bar nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--signal); }
  .page { padding: 28px 16px 64px; }
  h1 { font-size: 28px; }
}

/* ---- Applicant's interview page: an open, dark room, no boxes ---- */
body.interview {
  min-height: 100vh;
  min-height: 100dvh;
  color: #e9eeff;
  background:
    radial-gradient(70vw 60vh at 50% -8%, rgba(61, 139, 255, 0.28), transparent 70%),
    radial-gradient(50vw 40vh at 100% 105%, rgba(224, 174, 82, 0.1), transparent 70%),
    linear-gradient(rgba(143, 182, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 44px,
    var(--night);
  background-attachment: fixed;
}
.stage {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) 22px calc(36px + env(safe-area-inset-bottom));
}
.stage > * + * { margin-top: 28px; }
.stage > .muted { color: #9aa6c7; }
.brandline { display: flex; align-items: center; gap: 10px; color: #fff; }
.brandline img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.brandline .wordmark { font-size: 15px; }
.panel { padding: 8px 0 0; }
.panel > * + * { margin-top: 18px; }
.panel h1 { font-size: clamp(36px, 9vw, 52px); line-height: 1.02; letter-spacing: -0.045em; margin: 0; color: #fff; font-weight: 640; }
.panel ul { margin: 0; padding: 0; list-style: none; color: #c9d2ec; border-top: 1px solid var(--night-line); }
.panel li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--night-line); position: relative; }
.panel li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.panel .eyebrow { color: #8fb6ff; font-weight: 560; font-size: 15px; }
.panel .muted, .panel p { color: #c9d2ec; }
.panel a { color: #8fb6ff; }
.panel .secondary { background: rgba(255, 255, 255, 0.05); color: #fff; border-color: rgba(255, 255, 255, 0.18); box-shadow: none; }
.panel .secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.panel input[type='text'], .panel input[type='email'], .panel textarea {
  background: rgba(5, 10, 28, 0.55);
  border-color: rgba(160, 185, 255, 0.22);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
}
.panel textarea::placeholder { color: #7f8bb0; }

.progress { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #9aa6c7; font-variant-numeric: tabular-nums; }
.progress > span { white-space: nowrap; }
.segments { flex: 1; display: flex; gap: 5px; }
.segments span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); transition: background-color 0.4s; }
.segments .done { background: var(--signal); }
.segments .now { background: linear-gradient(90deg, var(--signal), rgba(143, 182, 255, 0.35)); box-shadow: 0 0 10px rgba(61, 139, 255, 0.8); }

/* The interviewer: the Discover Group mark inside rings that show what is happening. */
.voice { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 6px; }
.orb { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.orb::before { content: ''; position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 139, 255, 0.35), transparent 70%); filter: blur(8px); }
.orb img { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(11, 20, 48, 0.92), 0 0 0 9px rgba(143, 182, 255, 0.4), 0 0 50px rgba(61, 139, 255, 0.6); }
.orb span { position: absolute; inset: 40px; border-radius: 50%; border: 1px solid rgba(143, 182, 255, 0.35); }
.orb span:nth-child(2) { inset: 20px; border-color: rgba(143, 182, 255, 0.18); }
.orb span:nth-child(3) { inset: 0; border-color: rgba(143, 182, 255, 0.08); }
.speaking .orb span { animation: ripple 2.1s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; border-color: rgba(143, 182, 255, 0.6); }
.speaking .orb span:nth-child(2) { animation-delay: 0.7s; }
.speaking .orb span:nth-child(3) { animation-delay: 1.4s; }
.listening .orb::before { background: radial-gradient(circle, rgba(255, 90, 80, 0.35), transparent 70%); }
.listening .orb span { border-color: rgba(255, 120, 108, 0.55); animation: breathe 1.4s ease-in-out infinite; }
.listening .orb span:nth-child(2) { animation-delay: 0.2s; }
.listening .orb span:nth-child(3) { animation-delay: 0.4s; }
.listening .orb img { box-shadow: 0 0 0 8px rgba(11, 20, 48, 0.92), 0 0 0 9px rgba(255, 120, 108, 0.5), 0 0 50px rgba(255, 90, 80, 0.5); }
.thinking .orb span:nth-child(1) { border-color: transparent; border-top-color: var(--signal); border-width: 2px; animation: spin 1.1s linear infinite; }
.thinking .orb span:nth-child(2) { border-color: transparent; border-bottom-color: rgba(143, 182, 255, 0.5); animation: spin 1.8s linear infinite reverse; }
@keyframes ripple { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }

.question { font-size: clamp(22px, 5.4vw, 28px); line-height: 1.38; font-weight: 480; letter-spacing: -0.02em; margin-bottom: 0; color: #fff; text-wrap: pretty; text-align: center; }
.speaker { font-size: 13.5px; color: #8fb6ff; margin: 0 !important; font-weight: 560; }
.panel .status { color: #9aa6c7; font-size: 15px; min-height: 22px; margin-bottom: 0; text-align: center; }
.panel .status.live { color: #ff8a7f; font-weight: 560; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; margin-right: 8px; box-shadow: 0 0 10px #ff5a4f; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .dot, .orb span { animation: none !important; }
  .segments span, button { transition: none; }
}

.bigbtn { display: flex; width: 100%; min-height: 58px; font-size: 17px; border-radius: 999px; }
.bigbtn + .bigbtn { margin-top: 10px; }
.panel .primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 34px -14px rgba(224, 174, 82, 0.8); }
.stop { background: #e5483d; color: #fff; border-color: #b8322a; box-shadow: 0 14px 34px -12px rgba(229, 72, 61, 0.8); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; color: #e9eeff; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); cursor: pointer; }
.consent:has(input:checked) { border-color: rgba(61, 139, 255, 0.6); background: rgba(61, 139, 255, 0.1); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--signal); }
.typed textarea { min-height: 150px; font-size: 16px; }
.note { background: rgba(224, 174, 82, 0.12); border: 1px solid rgba(224, 174, 82, 0.35); color: #f3d79e; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.panel .note p { color: inherit; }
.note > * + * { margin-top: 8px; }
.footnote { color: #7f8bb0; font-size: 12.5px; text-align: center; }


/* The meeting uses the applicant room's dark palette; HR pages keep light surfaces. */
body.interview {
  --surface: #101c3b;
  --sunken: #142242;
  --ink: #e9eeff;
  --navy: #e9eeff;
  --navy-surface: #203456;
  --muted: #adb9d5;
  --border: rgba(160, 185, 255, 0.2);
  --border-strong: #455577;
  --gold-surface: rgba(224, 174, 82, 0.14);
  --green: #6dd6a1;
  --green-surface: rgba(109, 214, 161, 0.12);
  --red: #ffaaa1;
  --red-surface: rgba(255, 170, 161, 0.12);
}
.summary .said { margin: 0; }
.summary .said + .said { margin-top: 6px; }
.conversation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  max-height: 52vh;
  max-height: 52dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 8px !important;
  margin: 0;
  scrollbar-width: thin;
}
.conversation .chat-message { border-radius: 14px; padding: 12px 14px; max-width: 93%; margin: 0; }
.chat-ai { align-self: flex-start; background: var(--navy-surface); border-bottom-left-radius: 4px !important; }
.chat-you { align-self: flex-end; background: var(--gold-surface); border-bottom-right-radius: 4px !important; }
.chat-speaker { color: var(--muted); font-size: 12px; font-weight: 600; margin: 0 0 5px; }
.chat-text { font-size: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
@media (max-width: 380px) {
  .conversation .chat-message { max-width: 96%; padding: 10px 12px; }
  .chat-text { font-size: 16px; }
}

/* ---- Hands-free interview call ---- */
body.interview .stage { max-width: 900px; }
body.interview .stage > .panel { max-width: 600px; margin-left: auto; margin-right: auto; }
.meeting { background: var(--surface); border: 1px solid #2f3f62; border-radius: 20px; padding: 26px; box-shadow: 0 16px 50px #050c2029; }
.meeting > * + * { margin-top: 20px; }
.call-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.call-heading h1 { margin: 0; font-size: 25px; }
.call-badge { color: var(--green); background: var(--green-surface); border: 1px solid rgba(109, 214, 161, 0.3); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.call-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.call-tile { position: relative; min-height: 235px; padding: 26px 16px 22px; border: 2px solid var(--border); border-radius: 16px; background: var(--sunken); text-align: center; transition: border-color .18s, box-shadow .18s; }
.call-tile.tile-ai { color: #fff; background: radial-gradient(ellipse at top, #243a65, #132447 75%); border-color: #23385e; }
.call-tile.is-speaking { border-color: #3dbe83; box-shadow: 0 0 0 3px #3dbe831c; }
.call-avatar { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.ai-avatar { background: #ffffff12; color: #f6cb79; border: 1px solid #ffffff2a; }
.you-avatar { background: var(--gold-surface); color: #f3d79e; border: 1px solid rgba(224, 174, 82, 0.4); }
.call-tile h2 { margin: 0 0 4px; font-size: 16px; }
.tile-status { font-size: 13px; color: var(--muted); margin: 0; }
.tile-ai .tile-status { color: #c7d3eb; }
.mic-meter { width: 64px; height: 4px; overflow: hidden; border-radius: 999px; background: var(--border-strong); margin: 12px auto 0; }
.mic-meter span { display: block; height: 100%; width: 0; background: var(--green); transition: width .1s; }
.call-status { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-height: 22px; }
.call-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.call-status.is-live { color: var(--green); font-weight: 600; }
.call-caption { border-radius: 12px; border: 1px solid var(--border); background: var(--sunken); padding: 18px 20px; }
.call-caption .speaker { margin-bottom: 8px !important; }
.call-caption .question { text-align: left; margin: 0; font-size: 18px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.call-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); padding-top: 20px; }
.call-control { min-height: 48px; padding: 11px 16px; font-size: 14px; }
.mic-muted { color: var(--red); background: var(--red-surface); border-color: rgba(255, 170, 161, 0.4); }
.call-exceptions { display: flex; justify-content: center; gap: 10px; }
.call-hint { margin-bottom: 0; color: var(--muted); font-size: 13px; text-align: center; }
.call-transcript { border-top: 1px solid var(--border); padding-top: 16px; }
.call-transcript summary { color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 5px 0; }
.call-transcript .conversation { margin-top: 14px; max-height: 40vh; max-height: 40dvh; }
.call-typed { display: flex; flex-direction: column; gap: 12px; }
.call-typed textarea { min-height: 120px; }
.call-typed textarea::placeholder { color: var(--muted); opacity: 1; }
.call-typed button { align-self: flex-end; }
@media (max-width: 600px) {
  .meeting { padding: 18px 14px; border-radius: 16px; }
  .meeting > * + * { margin-top: 16px; }
  .call-heading { align-items: flex-start; gap: 10px; }
  .call-heading h1 { font-size: 22px; }
  .call-heading .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .call-badge { font-size: 11px; padding: 4px 8px; }
  .call-tiles { gap: 10px; }
  .call-tile { min-height: 192px; padding: 20px 8px 16px; }
  .call-avatar { width: 66px; height: 66px; font-size: 24px; margin-bottom: 14px; }
  .call-tile h2 { font-size: 14px; }
  .tile-status { font-size: 12px; }
  .call-caption { padding: 14px; }
  .call-caption .question { font-size: 17px; }
  .call-controls { gap: 8px; }
  .call-control { flex: 1 1 auto; padding: 10px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .call-tile, .mic-meter span { transition: none; }
}

/* A button whose form is being sent: a spinner before its label. */
button.busy, button.busy:disabled { opacity: 1; cursor: progress; }
button.busy::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
@media (prefers-reduced-motion: reduce) { button.busy::before { animation-duration: 2.4s; } }
