:root {
  color-scheme: dark;
  --bg: #07100f;
  --surface: rgba(12, 27, 25, 0.78);
  --surface-solid: #0e1d1b;
  --line: rgba(159, 232, 202, 0.14);
  --muted: #93a9a3;
  --text: #effcf7;
  --mint: #7df1c3;
  --mint-dark: #153f34;
  --amber: #f6c96b;
  --danger: #ff908c;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page-glow { position: fixed; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .13; z-index: -1; }
.glow-one { background: #27efac; top: -16rem; right: -6rem; }
.glow-two { background: #2888ff; bottom: -22rem; left: -12rem; opacity: .09; }

.topbar { max-width: 1180px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--mint), #b7ffe3); color: #062218; font-weight: 900; letter-spacing: -.05em; box-shadow: 0 10px 35px rgba(69, 237, 174, .19); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.status-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); background: rgba(11, 25, 23, .72); border-radius: 999px; color: var(--muted); font-size: 12px; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.logout-button { min-height: 36px; padding: 0 13px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); background: rgba(11, 25, 23, .72); font-size: 11px; }

main { max-width: 1180px; margin: 0 auto; padding: 34px 24px 80px; }
.hero { min-height: 310px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding: 34px 0 50px; }
.eyebrow { margin: 0 0 10px; color: var(--mint); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
h1 { max-width: 760px; font-size: clamp(42px, 6.5vw, 78px); line-height: .98; letter-spacing: -.055em; margin: 0; font-weight: 750; }
.hero-copy { max-width: 680px; color: #abc0b9; font-size: 18px; line-height: 1.65; margin: 24px 0 0; }
.hero-metric { width: 190px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(125, 241, 195, .08), rgba(12, 27, 25, .45)); border-radius: 22px; }
.hero-metric span, .hero-metric small { color: var(--muted); display: block; font-size: 11px; }
.hero-metric strong { display: block; font-size: 48px; letter-spacing: -.05em; margin: 4px 0; }

.panel, .auth-card { border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(20px); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, .2); }
.auth-card { display: grid; grid-template-columns: .75fr 1.25fr; gap: 30px; padding: 30px; align-items: end; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
label { display: block; color: #c4d4cf; font-size: 13px; margin: 16px 0 8px; }
input, textarea, select { width: 100%; border: 1px solid rgba(159, 232, 202, .18); background: rgba(3, 13, 11, .72); color: var(--text); border-radius: 13px; padding: 13px 14px; outline: none; transition: border .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: rgba(125, 241, 195, .65); box-shadow: 0 0 0 4px rgba(125, 241, 195, .08); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%); background-position: calc(100% - 18px) 53%, calc(100% - 12px) 53%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.inline-control { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.inline-control button, .primary { border: 0; background: var(--mint); color: #062218; font-weight: 800; border-radius: 13px; padding: 0 20px; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.login-button { margin-top: 20px; }

.console { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(520px, 1.28fr); gap: 22px; align-items: start; }
.panel { padding: 26px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mode-badge { color: var(--mint); border: 1px solid rgba(125, 241, 195, .24); background: rgba(125, 241, 195, .07); padding: 7px 10px; border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.mode-badge.dry { color: var(--amber); border-color: rgba(246, 201, 107, .28); background: rgba(246, 201, 107, .07); }
.check { display: flex; align-items: flex-start; gap: 10px; color: #b4c8c1; line-height: 1.45; margin-top: 16px; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--mint); }
.call-note { margin: 20px 0; padding: 14px; border-radius: 15px; background: rgba(3, 13, 11, .5); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.call-note span, .call-note small { color: var(--muted); font-size: 11px; }
.call-note small { grid-column: 1 / -1; }
.primary { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.primary:disabled { opacity: .45; cursor: wait; }
.primary i { font-style: normal; font-size: 20px; }
.form-message { min-height: 18px; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.form-message.error { color: var(--danger); }
.privacy-note { margin: 20px 0; padding: 14px; display: flex; gap: 12px; align-items: flex-start; border-radius: 15px; border: 1px solid rgba(125, 241, 195, .12); background: rgba(3, 13, 11, .5); }
.privacy-note p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.privacy-note strong { color: #d9eee7; }
.privacy-icon { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(125, 241, 195, .12); color: var(--mint); font-weight: 900; }
.link-result { margin-top: 22px; padding: 18px; border-radius: 18px; border: 1px solid rgba(125, 241, 195, .2); background: linear-gradient(145deg, rgba(125, 241, 195, .08), rgba(3, 13, 11, .58)); }
.link-result label { margin-top: 0; }
.link-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.secondary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(3, 13, 11, .56); color: var(--text); border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 12px; }

.icon-button { width: 38px; height: 38px; border-radius: 12px; color: var(--text); border: 1px solid var(--line); background: rgba(3, 13, 11, .45); font-size: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 11px 10px; border-bottom: 1px solid var(--line); }
td { padding: 14px 10px; border-bottom: 1px solid rgba(159, 232, 202, .08); color: #c5d7d1; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 42px 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.status.completed::before, .status.active::before { background: var(--mint); }
.status.invited::before { background: #79b8ff; }
.status.failed::before, .status.declined::before { background: var(--danger); }
.view-button { color: var(--mint); background: none; border: 0; padding: 6px; }

.detail-panel { grid-column: 1 / -1; }
.danger-link { color: var(--danger); border: 0; background: none; font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-item { min-height: 84px; padding: 14px; background: rgba(3, 13, 11, .48); border-radius: 14px; border: 1px solid rgba(159, 232, 202, .07); }
.profile-item span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 7px; }
.profile-item strong { font-size: 13px; line-height: 1.45; font-weight: 600; }
.profile-item.wide { grid-column: span 2; }
.transcript-heading { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 12px; }
.transcript-heading h3 { margin: 0; font-size: 16px; }
.transcript-heading span { color: var(--muted); font-size: 10px; }
.transcript { display: grid; gap: 9px; }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 16px; font-size: 12px; line-height: 1.5; }
.bubble.assistant { background: var(--mint-dark); border-bottom-left-radius: 4px; }
.bubble.candidate { justify-self: end; background: rgba(71, 103, 174, .22); border-bottom-right-radius: 4px; }
.bubble small { display: block; color: var(--muted); margin-top: 5px; font-size: 9px; }

.hidden { display: none !important; }
footer { max-width: 1180px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 20px; }

/* Candidate interview */
.candidate-body { min-height: 100svh; display: flex; flex-direction: column; }
.candidate-topbar { width: 100%; }
.secure-label { color: var(--muted); font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; }
.secure-label span { color: var(--mint); text-shadow: 0 0 12px var(--mint); margin-right: 5px; }
.candidate-main { width: min(760px, 100%); flex: 1; display: grid; place-items: center; padding-top: 24px; padding-bottom: 50px; }
.interview-card { width: 100%; padding: clamp(26px, 5vw, 46px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(155deg, rgba(16, 37, 34, .92), rgba(7, 18, 16, .88)); backdrop-filter: blur(24px); box-shadow: 0 30px 100px rgba(0, 0, 0, .32); }
.interview-title { font-size: clamp(36px, 7vw, 61px); line-height: 1; max-width: 620px; }
.interview-lead { color: #b1c5bf; font-size: 16px; line-height: 1.65; margin: 22px 0 0; }
.interview-lead strong { color: var(--text); }
.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 24px; }
.notice-grid > div { min-height: 150px; padding: 16px; border: 1px solid rgba(159, 232, 202, .09); border-radius: 17px; background: rgba(3, 13, 11, .42); }
.notice-grid span { color: var(--mint); font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.notice-grid p { margin: 28px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.notice-grid strong { color: #dfeee9; font-size: 12px; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 15px; border: 1px solid rgba(125, 241, 195, .18); border-radius: 15px; background: rgba(125, 241, 195, .045); line-height: 1.5; }
.consent-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--mint); }
.candidate-primary { margin-top: 22px; }
.text-button { width: 100%; margin-top: 12px; padding: 10px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.state-card { min-height: 420px; display: grid; align-content: center; justify-items: center; text-align: center; }
.state-card .interview-title { margin-top: 4px; }
.state-card .interview-lead { max-width: 500px; }
.loader-orb { width: 56px; height: 56px; margin-bottom: 22px; border: 2px solid rgba(125, 241, 195, .14); border-top-color: var(--mint); border-radius: 50%; animation: spin 1s linear infinite; }
.success-mark, .error-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 20px; font-size: 27px; font-weight: 900; }
.success-mark { background: rgba(125, 241, 195, .12); color: var(--mint); }
.error-mark { background: rgba(255, 144, 140, .12); color: var(--danger); }
.close-window { min-width: 160px; margin-top: 24px; }
.live-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.session-title { font-size: clamp(34px, 6vw, 54px); }
.timer { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.voice-stage { min-height: 330px; display: grid; place-items: center; align-content: center; text-align: center; }
.voice-orb { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #d5fff0, var(--mint) 27%, #176d55 72%); box-shadow: 0 0 0 14px rgba(125, 241, 195, .04), 0 26px 70px rgba(49, 226, 159, .21); color: #062218; font-weight: 950; letter-spacing: -.06em; font-size: 28px; }
.voice-orb i { position: absolute; inset: -1px; border: 1px solid rgba(125, 241, 195, .3); border-radius: 50%; animation: pulse 2.3s ease-out infinite; }
.voice-orb i:nth-child(2) { animation-delay: .7s; }
.voice-orb i:nth-child(3) { animation-delay: 1.4s; }
.voice-orb[data-mode="listening"] { box-shadow: 0 0 0 14px rgba(125, 241, 195, .06), 0 26px 85px rgba(49, 226, 159, .34); }
.voice-orb[data-mode="thinking"] { filter: hue-rotate(38deg); }
.voice-orb[data-mode="muted"] { filter: saturate(.25); }
.voice-status { font-size: 17px; font-weight: 750; margin: 0; }
.voice-helper { color: var(--muted); font-size: 11px; margin-top: 7px; }
.session-controls { display: flex; justify-content: center; gap: 18px; }
.round-control { width: 72px; height: 72px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 24px; border: 1px solid var(--line); background: rgba(3, 13, 11, .56); color: var(--text); }
.round-control span { font-size: 18px; }
.round-control small { color: var(--muted); font-size: 10px; }
.round-control[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.end-control { border-color: rgba(255, 144, 140, .25); color: var(--danger); }
.live-transcript { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.live-transcript summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.compact-transcript { max-height: 240px; overflow-y: auto; margin-top: 14px; padding-right: 5px; }
.candidate-footer { width: 100%; }

@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-metric { display: none; }
  .auth-card, .console { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-grid { grid-template-columns: 1fr; }
  .notice-grid > div { min-height: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px; }
  .notice-grid p { margin: 0; }
}

@media (max-width: 560px) {
  .topbar { padding: 18px; }
  .status-pill b { display: none; }
  main { padding: 12px 16px 60px; }
  .hero { min-height: 260px; padding-bottom: 34px; }
  h1 { font-size: 43px; }
  .hero-copy { font-size: 15px; }
  .panel, .auth-card { padding: 20px; border-radius: 19px; }
  .auth-card { grid-template-columns: 1fr; }
  .inline-control { grid-template-columns: 1fr; }
  .inline-control button { min-height: 46px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-item.wide { grid-column: auto; }
  footer { flex-direction: column; }
  .secure-label { border: 0; padding: 0; }
  .secure-label { font-size: 0; }
  .secure-label span { font-size: 12px; }
  .candidate-main { padding: 10px 14px 36px; }
  .interview-card { padding: 24px 20px; border-radius: 22px; }
  .interview-title { font-size: 38px; }
  .voice-stage { min-height: 290px; }
  .voice-orb { width: 112px; height: 112px; }
  .candidate-footer { text-align: center; }
}
