/* Voice interview practice: mode switch, interviewer picker and the call screen.
   Colours come from the site variables in styles.css (forest, mint, paper). */

#interview-view[data-stage^="voice-"] .iv-hero-copy{display:none}
#interview-view[data-stage^="voice-"] .iv-hero{padding-bottom:20px}
#voice-pick :is(h2,h3),#voice-call :is(h2,h3),.iv-unlock b{background:none;-webkit-text-fill-color:currentColor}

/* Text or voice */
.iv-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 4px;padding:6px;border:1px solid #d6e5d9;border-radius:15px;background:#edf5ed}
.iv-mode[hidden]{display:none}
.iv-mode-btn{display:flex;align-items:center;gap:12px;min-width:0;padding:11px 14px;border:1px solid transparent;border-radius:10px;color:#56695f;background:transparent;text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.iv-mode-btn svg{flex:none;width:22px;height:22px}
.iv-mode-btn span{display:grid;min-width:0}
.iv-mode-btn b{font-size:.84rem;font-weight:800;line-height:1.25}
.iv-mode-btn small{margin-top:2px;font-size:.72rem;color:var(--muted)}
.iv-mode-btn:hover{color:var(--forest-deep);background:rgba(255,255,255,.6)}
.iv-mode-btn.is-active{border-color:#c2d8c8;color:var(--forest-deep);background:#fff;box-shadow:0 3px 10px rgba(23,63,53,.08)}
.iv-mode-btn.is-off{opacity:.62;cursor:not-allowed}
.iv-voice-off{margin:10px 0 0;padding:12px 14px;border:1px solid #e3d3a4;border-radius:12px;color:#5d4a14;background:#fbf4dc;font-size:.88rem;line-height:1.5}
.iv-voice-off[hidden]{display:none}
.iv-mode-btn:focus-visible{outline:3px solid var(--forest-deep);outline-offset:2px}

/* Picker */
.iv-voice-pick{max-width:1040px}
.iv-voice-pick[hidden]{display:none}
.iv-voice-pick-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.iv-voice-pick-head h2{margin:0;color:var(--forest-deep);font-size:1.5rem;letter-spacing:-.035em}
.iv-voice-pick-head p{margin:6px 0 0;color:var(--muted);font-size:.84rem}
.iv-voice-progress{margin-bottom:20px;padding:18px 22px;border:1px solid rgba(36,90,74,.15);border-radius:16px;background:var(--paper);box-shadow:0 8px 24px rgba(23,63,53,.06)}
.iv-voice-progress-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.iv-voice-progress-top b{color:var(--forest-deep);font-size:.95rem}
.iv-voice-progress-top span{padding:5px 11px;border-radius:999px;color:var(--forest);background:var(--mint);font-size:.72rem;font-weight:800}
.iv-voice-bar{height:8px;margin:12px 0 10px;overflow:hidden;border-radius:999px;background:#e3eee6}
.iv-voice-bar i{display:block;height:100%;border-radius:999px;background:var(--forest);transition:width .4s ease}
.iv-voice-progress p{margin:0;color:var(--muted);font-size:.82rem;line-height:1.55}
.iv-voice-progress p b{color:var(--forest-deep)}
.iv-character-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.iv-character-grid li{margin:0;padding:0}
.iv-char{display:flex;flex-direction:column;gap:12px;height:100%;padding:20px;border:1px solid rgba(36,90,74,.15);border-radius:18px;background:var(--paper);box-shadow:0 8px 24px rgba(23,63,53,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.iv-char:not(.is-locked):hover{border-color:var(--iv-fg,var(--forest));box-shadow:0 14px 34px rgba(23,63,53,.12);transform:translateY(-2px)}
.iv-char.is-locked{background:#f3f5f1}
.iv-char.is-locked .iv-avatar,.iv-char.is-locked .iv-char-blurb,.iv-char.is-locked .iv-char-traits{opacity:.5;filter:grayscale(.6)}
.iv-char-top{display:flex;align-items:center;gap:14px}
.iv-char-top h3{margin:0;color:var(--forest-deep);font-size:1rem;letter-spacing:-.02em}
.iv-char-top p{margin:2px 0 0;color:var(--muted);font-size:.78rem}
.iv-char-top>div{min-width:0;flex:1}
.iv-lock{flex:none;width:22px;height:22px;color:var(--muted)}
.iv-avatar{flex:none;display:block}
.iv-char-blurb{margin:0;color:#4f6258;font-size:.84rem;line-height:1.55}
.iv-char-level{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.iv-pips{display:inline-flex;gap:3px}
.iv-pips i{width:7px;height:7px;border-radius:50%;background:#d9e4dc}
.iv-pips i.on{background:var(--iv-fg,var(--forest))}
.iv-char-traits{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.iv-char-traits li{padding:4px 10px;border-radius:999px;color:var(--iv-fg,var(--forest));background:var(--iv-bg,var(--mint));font-size:.7rem;font-weight:800}
.iv-char .button{margin-top:auto;width:100%;justify-content:center;gap:8px}
.iv-char .button:disabled{opacity:.55;cursor:not-allowed}

/* Call screen */
.iv-call{position:relative;max-width:760px;margin:0 auto;padding:26px 28px 28px;border-radius:26px;color:#f3faf6;background:var(--forest-deep);box-shadow:0 26px 70px rgba(23,63,53,.28);text-align:center}
.iv-call[hidden]{display:none}
.iv-call-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.iv-call-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;color:#d4f0e1;background:rgba(255,255,255,.1);font-size:.74rem;font-weight:800;letter-spacing:.03em}
.iv-call-pill::before{content:"";width:8px;height:8px;border-radius:50%;background:#8fdeb9}
.iv-call[data-call-state="ringing"] .iv-call-pill::before,.iv-call[data-call-state="thinking"] .iv-call-pill::before{background:#f5d78e}
.iv-call[data-call-state="listening"] .iv-call-pill::before{background:#7ee0b4;box-shadow:0 0 0 4px rgba(126,224,180,.25)}
.iv-call-timer{padding:6px 14px;border-radius:999px;color:#d4f0e1;background:rgba(255,255,255,.1);font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums}
.iv-call-timer.is-low{color:#3f2d0a;background:#f5d78e}
.iv-call-avatar{position:relative;display:grid;place-items:center;width:200px;height:200px;margin:22px auto 8px}
.iv-call-avatar::before,.iv-call-avatar::after{content:"";position:absolute;inset:6px;border-radius:50%;border:2px solid rgba(143,222,185,.0);pointer-events:none}
.iv-call-avatar .iv-avatar{position:relative;z-index:1;filter:drop-shadow(0 14px 22px rgba(0,0,0,.28))}
.iv-call-avatar[data-state="speaking"]::before{animation:ivRing 1.7s ease-out infinite}
.iv-call-avatar[data-state="speaking"]::after{animation:ivRing 1.7s ease-out .85s infinite}
.iv-call-avatar[data-state="ringing"]::before{animation:ivRing 1.2s ease-out infinite}
.iv-call-avatar[data-state="ringing"]::after{animation:ivRing 1.2s ease-out .6s infinite}
.iv-call-avatar[data-state="listening"]::before{border-color:rgba(126,224,180,.7);inset:0;box-shadow:0 0 0 6px rgba(126,224,180,.12)}
.iv-call-avatar[data-state="thinking"] .iv-avatar{animation:ivThink 1.4s ease-in-out infinite}
@keyframes ivRing{0%{transform:scale(.8);border-color:rgba(143,222,185,.75);opacity:1}100%{transform:scale(1.28);border-color:rgba(143,222,185,0);opacity:0}}
@keyframes ivThink{0%,100%{opacity:1}50%{opacity:.6}}
.iv-call h2{margin:0;color:#fff;font-size:1.55rem;letter-spacing:-.035em}
.iv-call-title{margin:6px 0 0;color:#a9cdbb;font-size:.84rem}
.iv-call-progress{display:flex;justify-content:center;gap:6px;margin:16px 0 4px}
.iv-call-progress i{width:26px;height:5px;border-radius:999px;background:rgba(255,255,255,.18)}
.iv-call-progress i.on{background:#8fdeb9}
.iv-call-captions{display:grid;gap:12px;margin:20px 0 6px;text-align:left}
.iv-cap-them{margin:0;padding:18px 22px;border-radius:4px 20px 20px 20px;color:var(--forest-deep);background:#fffefa;font-size:clamp(1.02rem,2vw,1.2rem);font-weight:600;line-height:1.5;min-height:3.4em}
.iv-cap-them:empty{visibility:hidden}
.iv-cap-you{margin:0;padding:14px 20px;border-radius:20px 4px 20px 20px;color:#e7f6ee;background:rgba(255,255,255,.12);font-size:.98rem;line-height:1.5;justify-self:end;max-width:90%;min-height:1.5em}
.iv-cap-you:empty{display:none}
.iv-call-type{display:grid;gap:10px;margin:12px 0 0;text-align:left}
.iv-call-type[hidden]{display:none}
.iv-call-type textarea{width:100%;min-height:96px;padding:14px 16px;border:1px solid rgba(255,255,255,.2);border-radius:14px;color:var(--text);background:#fffefa;resize:vertical}
.iv-call-type .button{justify-self:end}
.iv-call-controls{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:14px 18px;margin-top:22px}
.iv-call-btn{display:grid;justify-items:center;gap:8px;min-width:78px;padding:0;border:0;color:#cfe8da;background:none;font-size:.72rem;font-weight:800;cursor:pointer}
.iv-call-btn svg{box-sizing:content-box;width:24px;height:24px;padding:16px;border-radius:50%;color:#fff;background:rgba(255,255,255,.14);transition:background-color .15s ease,transform .15s ease}
.iv-call-btn:hover svg{background:rgba(255,255,255,.24);transform:translateY(-1px)}
.iv-call-btn:focus-visible{outline:3px solid rgba(143,222,185,.6);outline-offset:4px;border-radius:12px}
.iv-call-btn[aria-pressed="true"] svg{background:rgba(255,255,255,.3)}
.iv-call-mic svg{padding:20px;color:var(--forest-deep);background:#8fdeb9}
.iv-call-mic:hover svg{background:#a7ebc9}
.iv-call-mic.is-on svg{background:#fff;box-shadow:0 0 0 6px rgba(143,222,185,.35)}
.iv-call-hangup svg{background:var(--danger)}
.iv-call-hangup:hover svg{background:#b13c4d}
.iv-level{width:min(220px,60%);height:6px;margin:14px auto 0;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.iv-level[hidden]{display:none}
.iv-level i{display:block;height:100%;width:0;border-radius:3px;background:#5fd4a0;transition:width .08s linear}
.iv-call-note{min-height:1.4em;margin:16px 0 0;color:#a9cdbb;font-size:.8rem;line-height:1.5}
.iv-call-note[data-state="error"]{color:#ffd0d6}

/* After the call */
.iv-unlock{display:flex;align-items:center;gap:14px;margin-top:18px;padding:14px 18px;border:1px solid rgba(36,90,74,.15);border-radius:14px;background:var(--paper)}
.iv-unlock.is-new{border-color:#aacabb;background:var(--mint)}
.iv-unlock b{display:block;color:var(--forest-deep);font-size:.9rem}
.iv-unlock p{margin:3px 0 0;color:#4f6258;font-size:.8rem;line-height:1.5}
.iv-unlock .iv-avatar{flex:none}

@media(max-width:680px){
  .iv-mode{grid-template-columns:1fr}
  .iv-voice-pick-head{align-items:flex-start;flex-direction:column}
  .iv-character-grid{grid-template-columns:1fr}
  .iv-call{padding:20px 16px 24px;border-radius:20px}
  .iv-call-avatar{width:160px;height:160px}
  .iv-call-avatar .iv-avatar{width:130px;height:130px}
  .iv-call-btn{min-width:68px}
}
@media(prefers-reduced-motion:reduce){
  .iv-call-avatar::before,.iv-call-avatar::after,.iv-call-avatar .iv-avatar{animation:none!important}
  .iv-voice-bar i,.iv-char{transition:none}
}

.iv-voice-clear{float:right;margin:0 0 6px 12px;padding:0;border:0;color:var(--muted);background:none;font-size:.74rem;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.iv-voice-clear:hover{color:var(--forest-deep)}

.nr-confirm-dialog .nr-confirm-content p{white-space:pre-line}

/* Saved job checks picker: search, filters, sort and a card grid */
.iv-onboard{max-width:980px}
.iv-job-tools{display:grid;gap:12px;margin:18px 0 6px}
.iv-job-tools[hidden]{display:none}
.iv-job-row{display:flex;align-items:center;gap:12px}
.iv-job-search{display:flex;flex:1;min-width:0;align-items:center;gap:12px;min-height:48px;padding:0 16px;border:1px solid rgba(23,63,53,.16);border-radius:12px;background:#fffefa;transition:border-color .18s ease,box-shadow .18s ease}
.iv-job-search:hover{border-color:rgba(23,63,53,.3)}
.iv-job-search:focus-within{border-color:var(--forest);box-shadow:0 0 0 3px rgba(57,167,123,.22)}
.iv-job-search svg{width:19px;flex:none;fill:none;stroke:var(--forest);stroke-width:1.8;stroke-linecap:round}
.iv-job-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:max(16px,.92rem)}
.iv-job-search input::placeholder{color:#66736b}
.iv-job-sort{display:flex;flex:none;align-items:center;gap:10px;color:var(--muted);font-size:.78rem;font-weight:700}
.iv-job-sort .nr-select{min-width:168px}
.iv-job-filters{display:flex;flex-wrap:wrap;gap:8px;padding:5px;border:1px solid #d6e5d9;border-radius:14px;background:#edf5ed;width:fit-content;max-width:100%}
.iv-job-filters button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px;border:1px solid transparent;border-radius:10px;color:#56695f;background:transparent;font-size:.8rem;font-weight:800;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.iv-job-filters button i{min-width:22px;padding:2px 7px;border-radius:999px;color:var(--forest);background:rgba(255,255,255,.7);font-size:.68rem;font-style:normal;text-align:center}
.iv-job-filters button:hover{color:var(--forest-deep);background:rgba(255,255,255,.6)}
.iv-job-filters button.is-active{border-color:#c2d8c8;color:var(--forest-deep);background:#fff;box-shadow:0 3px 10px rgba(23,63,53,.08)}
.iv-job-filters button:focus-visible{outline:3px solid var(--forest-deep);outline-offset:2px}
.iv-job-count{min-height:1.2em;margin:2px 0 0;color:var(--muted);font-size:.76rem;font-weight:700}
.iv-roles .interview-job-list{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px;margin-top:12px}
.iv-roles .interview-job-list>li:only-child:has(.interview-empty){grid-column:1/-1}
.iv-roles .interview-job-card.iv-job{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main go" "meta meta";align-items:start;gap:12px 14px;height:100%;padding:16px 18px;border-radius:14px}
.iv-roles .interview-job-card .iv-job-main{grid-area:main;display:grid;gap:3px;min-width:0;color:inherit;font-size:inherit}
.iv-roles .interview-job-card .iv-job-main b{overflow:hidden;font-size:1rem;line-height:1.3;text-overflow:ellipsis}
.iv-roles .interview-job-card .iv-job-main em{overflow:hidden;color:#4f6258;font-size:.84rem;font-style:normal;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.iv-roles .interview-job-card .iv-job-main small{margin:0}
.iv-roles .interview-job-card .iv-job-meta{grid-area:meta;display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:inherit}
.iv-roles .interview-job-card .iv-job-go{grid-area:go}
.iv-job-score,.iv-job-cv{display:inline-flex;align-items:center;min-height:26px;padding:0 11px;border-radius:999px;font-size:.7rem;font-weight:800;line-height:1}
.iv-roles .interview-job-card .iv-job-score{min-width:34px;justify-content:center;color:var(--forest-deep);background:#e3eee6}
.iv-roles .interview-job-card .iv-job-score.is-good{color:#14532d;background:#d4f0e1}
.iv-roles .interview-job-card .iv-job-score.is-ok{color:#6b4d00;background:#f9e8b5}
.iv-roles .interview-job-card .iv-job-score.is-low{color:#8a2d3b;background:#f9dde1}
.iv-roles .interview-job-card .iv-job-cv{color:#5c6b63;background:#eef0ec}
.iv-roles .interview-job-card .iv-job-cv.has-cv{color:var(--forest);background:var(--mint)}
.iv-job-more{display:flex;justify-content:center;margin-top:14px}
.iv-job-more[hidden]{display:none}
.iv-job-note{margin:14px 0 0;padding:11px 14px;border-radius:12px;color:#4f6258;background:#f3f6f1;font-size:.78rem;line-height:1.55}
.iv-job-note[hidden]{display:none}
@media(max-width:680px){
  .iv-job-row{flex-direction:column;align-items:stretch}
  .iv-job-sort{justify-content:space-between}
  .iv-job-sort .nr-select{flex:1}
  .iv-job-filters{width:100%}
  .iv-job-filters button{flex:1 1 auto;justify-content:center;padding:0 10px}
  .iv-roles .interview-job-list{grid-template-columns:1fr}
}

/* Score history under the job list */
.iv-history{margin-top:22px;padding:20px 22px;border:1px solid #d6e5d9;border-radius:16px;background:#fffefa}
.iv-history[hidden]{display:none}
.iv-history-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px}
.iv-history-head h2{margin:0;font-size:1.1rem;color:var(--forest-deep)}
.iv-history-trend{display:flex;align-items:center;gap:10px;margin:0;color:#4f6258;font-size:.82rem;font-weight:700}
.iv-history-spark{flex:none;color:var(--forest)}
.iv-history-list{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.iv-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:#f3f6f1}
.iv-history-main{display:grid;gap:2px;min-width:0}
.iv-history-main b{overflow:hidden;color:var(--forest-deep);font-size:.92rem;text-overflow:ellipsis;white-space:nowrap}
.iv-history-main span{overflow:hidden;color:#4f6258;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}
.iv-history-row time{color:#60786a;font-size:.76rem;font-weight:700;white-space:nowrap}
.iv-history-score{min-width:58px;justify-content:center;color:var(--forest-deep);background:#e3eee6}
.iv-history-score.is-good{color:#14532d;background:#d4f0e1}
.iv-history-score.is-ok{color:#6b4d00;background:#f9e8b5}
.iv-history-score.is-low{color:#8a2d3b;background:#f9dde1}
.iv-history-empty{padding:12px;border-radius:12px;color:#4f6258;background:#f3f6f1;font-size:.84rem}
.iv-history-note{margin:12px 0 0;color:#60786a;font-size:.76rem;line-height:1.5}
@media(max-width:520px){.iv-history-row{grid-template-columns:minmax(0,1fr) auto}.iv-history-row time{grid-column:1;grid-row:2}.iv-history-score{grid-row:1/3;grid-column:2}}

.iv-admin-switch{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:10px;color:#4f6258;background:#f3f6f1;font-size:.78rem;font-weight:700;cursor:pointer}
.iv-admin-switch input{width:18px;height:18px;accent-color:var(--forest)}

/* Call controls: every button is the same size so the labels line up */
.iv-call-controls{align-items:flex-start;gap:14px 12px}
.iv-call-btn{align-content:start;width:92px;min-width:0}
.iv-call-btn svg,.iv-call-mic svg{box-sizing:border-box;width:60px;height:60px;padding:17px}
.iv-call-btn span{display:block;min-height:2.5em;text-align:center;line-height:1.25}
.iv-call-mic.is-on svg{box-shadow:0 0 0 5px rgba(143,222,185,.4)}
@media(max-width:420px){.iv-call-controls{gap:14px 6px}.iv-call-btn{width:76px}.iv-call-btn svg,.iv-call-mic svg{width:54px;height:54px;padding:15px}}

/* Interview feedback: written to be easy to read (short blocks, plain labels,
   left-aligned, roomy line spacing, no italics) with an optional larger size. */
.interview-feedback.ivf{--ivf-size:1.04rem;max-width:860px;margin:0 auto;color:#1f2d27;font-size:var(--ivf-size);line-height:1.8;letter-spacing:.012em;word-spacing:.05em;text-align:left}
.interview-feedback.ivf.ivf-large{--ivf-size:1.28rem;line-height:1.9}
.ivf :is(h2,h3){background:none;-webkit-text-fill-color:currentColor;font-style:normal}
.ivf-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:center;padding:34px 36px}
.ivf-score{display:grid;place-items:center;align-content:center;width:132px;height:132px;border-radius:50%;border:6px solid var(--forest);color:var(--forest-deep);background:#fffefa;text-align:center;box-shadow:0 10px 28px rgba(23,63,53,.12)}
.ivf-score[hidden]{display:none}
.ivf-score b{font-size:3rem;line-height:1;font-weight:800;letter-spacing:-.04em}
.ivf-score span{margin-top:4px;color:#4f6258;font-size:.8rem;font-weight:700;letter-spacing:0}
.ivf-score.is-good{border-color:#2f9e6d}
.ivf-score.is-ok{border-color:#d9a21b}
.ivf-score.is-low{border-color:#d1566a}
.ivf-hero:has(.ivf-score[hidden]){grid-template-columns:1fr}
.ivf-hero-copy h2{margin:0;font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.3;letter-spacing:-.02em;color:var(--forest-deep)}
.ivf-hero-copy>p:not(.eyebrow){max-width:62ch;margin:12px 0 0;color:#2e3f37;font-size:var(--ivf-size);line-height:1.8}
.ivf-tools{display:flex;gap:10px;margin-top:16px}
.ivf-tool{min-height:42px;padding:0 16px;border:1px solid var(--line-strong);border-radius:10px;color:var(--forest-deep);background:#fffefa;font-size:.88rem;font-weight:800;cursor:pointer}
.ivf-tool:hover{border-color:var(--forest);background:#fff}
.ivf-tool[aria-pressed="true"]{border-color:var(--forest);background:var(--mint)}
.ivf-tool:focus-visible,.ivf-listen:focus-visible{outline:3px solid var(--forest-deep);outline-offset:2px}
.ivf-list{gap:18px;padding:28px 32px 4px}
.ivf-list>li.ivf-card{display:grid;gap:14px;padding:24px 26px;border:1px solid var(--line);border-radius:18px;background:#fffefa;box-shadow:0 6px 20px rgba(23,63,53,.05)}
.ivf-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ivf-q-num{padding:6px 14px;border-radius:999px;color:var(--forest);background:var(--mint);font-size:.82rem;font-weight:800;letter-spacing:0}
.ivf-listen{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--line-strong);border-radius:999px;color:var(--forest-deep);background:#fff;font-size:.84rem;font-weight:800;cursor:pointer}
.ivf-listen svg{width:18px;height:18px}
.ivf-listen:hover{border-color:var(--forest)}
.ivf-listen.is-reading{color:#fff;background:var(--forest);border-color:var(--forest)}
.ivf-listen.is-reading span::after{content:"ing"}
.ivf-q{margin:0;color:var(--forest-deep);font-size:calc(var(--ivf-size) * 1.18);line-height:1.5;font-weight:800;letter-spacing:-.01em}
.ivf-block{display:grid;gap:6px;padding:16px 18px;border-left:5px solid #c9d6cd;border-radius:6px 14px 14px 6px;background:#f5f7f4}
.ivf-label{display:inline-flex;align-items:center;gap:9px;font-size:.9rem;font-weight:800;letter-spacing:0;color:#2a3d34}
.ivf-label svg{width:20px;height:20px;flex:none}
.ivf-block p{max-width:66ch;margin:0;color:#1f2d27;font-size:var(--ivf-size);line-height:inherit;font-style:normal}
.ivf-said{border-left-color:#aab8b0;background:#f3f4f2}
.ivf-said p{color:#3b4a43}
.ivf-noticed{border-left-color:var(--green);background:#e7f4ed}
.ivf-noticed .ivf-label{color:#14532d}
.ivf-next{border-left-color:#d9a21b;background:#fdf3d6}
.ivf-next .ivf-label{color:#6b4d00}
.interview-feedback.ivf>.button-row{padding:22px 32px 36px}
@media(max-width:680px){
  .ivf-hero{grid-template-columns:1fr;justify-items:start;gap:18px;padding:26px 20px}
  .ivf-score{width:112px;height:112px}
  .ivf-list{padding:20px 14px 2px}
  .ivf-list>li.ivf-card{padding:20px 16px}
  .interview-feedback.ivf>.button-row{padding:18px 14px 28px}
}

.ivf-list>li.ivf-card::before{content:none;display:none}

/* The "please take a break" pop-up */
.iv-support-dialog{width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;overflow:auto;border:1px solid var(--line-strong);border-radius:22px;color:#1f2d27;background:#fffefa;box-shadow:0 30px 90px rgba(23,63,53,.35)}
.iv-support-dialog::backdrop{background:rgba(20,45,37,.7)}
.iv-support-card{display:grid;gap:14px;padding:28px 28px 26px;font-size:1.05rem;line-height:1.75;letter-spacing:.012em;text-align:left}
.iv-support-card h2{margin:0;color:var(--forest-deep);font-size:1.7rem;line-height:1.25;background:none;-webkit-text-fill-color:currentColor}
.iv-support-card h3{margin:6px 0 0;color:var(--forest-deep);font-size:1.1rem;background:none;-webkit-text-fill-color:currentColor}
.iv-support-card p{margin:0;max-width:60ch}
.iv-support-pause{padding:12px 16px;border-left:5px solid #d9a21b;border-radius:6px 14px 14px 6px;background:#fdf3d6;font-weight:700}
.iv-support-links{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.iv-support-links li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#f3f8f4}
.iv-support-links li>a:first-child{display:grid;gap:2px;flex:1 1 240px;color:var(--forest-deep);text-decoration:none}
.iv-support-links li>a:first-child b{font-size:1.05rem;text-decoration:underline;text-underline-offset:3px}
.iv-support-links li>a:first-child span{color:#4f6258;font-size:.9rem;line-height:1.5}
.iv-support-call{flex:none;padding:10px 16px;border-radius:999px;color:#fff;background:var(--forest);font-weight:800;font-size:.9rem;text-decoration:none}
.iv-support-call:hover{background:var(--forest-deep)}
.iv-support-links a:focus-visible,.iv-support-card .button:focus-visible{outline:3px solid var(--forest-deep);outline-offset:3px}
.iv-support-emergency{padding:12px 16px;border-radius:12px;background:#fbe0e4;color:#7a1f2e;font-weight:800}
.iv-support-emergency a{color:inherit}
.iv-support-card .button{justify-self:start;min-height:50px;margin-top:4px;font-size:.95rem}
@media(max-width:520px){.iv-support-card{padding:22px 18px}.iv-support-call{flex:1 1 100%;text-align:center}}

/* Score on each feedback card */
.ivf-rating{margin-left:auto;margin-right:12px;padding:6px 14px;border-radius:999px;color:var(--forest-deep);background:#e3eee6;font-size:.86rem;font-weight:800}
.ivf-note{margin:10px 0 0;color:#4f6258;font-size:.88rem;line-height:1.6}
.ivf-note[hidden]{display:none}

/* Typing dots while the interviewer gets their reply ready */
.iv-dots{display:inline-flex;align-items:center;gap:6px;height:1.5em}
.iv-dots i{width:10px;height:10px;border-radius:50%;background:var(--forest);opacity:.35;animation:ivDot 1.2s ease-in-out infinite}
.iv-dots i:nth-child(2){animation-delay:.18s}
.iv-dots i:nth-child(3){animation-delay:.36s}
@keyframes ivDot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-6px);opacity:1}}
@media(prefers-reduced-motion:reduce){.iv-dots i{animation:none;opacity:.7}}

/* Progress strip at the top of the interview page */
.iv-voice-strip{margin:16px 0 4px;padding:16px 18px;border:1px solid #d6e5d9;border-radius:16px;background:#f3f9f4}
.iv-voice-strip[hidden]{display:none}
.iv-strip-main{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.iv-strip-avatar{display:grid;flex:none;width:48px;height:48px}
.iv-strip-avatar.is-next svg{filter:grayscale(.85);opacity:.7}
.iv-strip-copy{display:grid;gap:2px;min-width:0;flex:1 1 200px}
.iv-strip-copy b{color:var(--forest-deep);font-size:.95rem}
.iv-strip-copy span{color:#4f6258;font-size:.84rem;line-height:1.5}
.iv-strip-copy span b{color:var(--forest-deep);font-size:inherit}
.iv-strip-chip{padding:6px 12px;border-radius:999px;color:var(--forest);background:var(--mint);font-size:.74rem;font-weight:800;white-space:nowrap}
.iv-voice-strip .iv-voice-bar{margin:12px 0 0}
@media(max-width:680px){.iv-strip-chip{white-space:normal}}

/* The three steps run the full width of the page */
.iv-steps{max-width:none}

/* Wider feedback summary */
.interview-feedback.ivf{max-width:1080px}
.ivf-hero-copy>p:not(.eyebrow),.ivf-block p{max-width:80ch}
.ivf-hero{padding:38px 44px}
.ivf-list{padding:30px 44px 4px}
.interview-feedback.ivf>.button-row{padding:22px 44px 40px}
@media(max-width:680px){.ivf-hero{padding:26px 20px}.ivf-list{padding:20px 14px 2px}.interview-feedback.ivf>.button-row{padding:18px 14px 28px}}

/* Mute button */
.iv-call-mic .ic-off{display:none}
.iv-call-mic.is-muted .ic-on{display:none}
.iv-call-mic.is-muted .ic-off{display:block}
.iv-call-mic.is-muted svg{color:#fff;background:var(--danger)}
.iv-call-mic.is-muted:hover svg{background:#b13c4d}
.iv-call-mic.is-muted{color:#ffd0d6}

/* Interviewer voice on / off, next to the status */
.iv-call-top{gap:10px}
.iv-call-sound{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:36px;padding:0 14px;border:0;border-radius:999px;color:#d4f0e1;background:rgba(255,255,255,.1);font-size:.74rem;font-weight:800;cursor:pointer}
.iv-call-sound svg{width:18px;height:18px}
.iv-call-sound:hover{background:rgba(255,255,255,.2)}
.iv-call-sound.is-off{color:#ffd0d6;background:rgba(198,75,92,.35)}
.iv-call-sound:focus-visible,.iv-support-btn:focus-visible{outline:3px solid rgba(143,222,185,.6);outline-offset:3px}
.iv-support-btn{margin:10px auto 0;min-height:42px;padding:0 18px;border:1px solid rgba(255,255,255,.35);border-radius:999px;color:#fff;background:transparent;font-size:.85rem;font-weight:800;cursor:pointer}
.iv-support-btn[hidden]{display:none}
.iv-support-btn:hover{background:rgba(255,255,255,.12)}

/* The interviewer has left */
.iv-call-avatar.is-gone .iv-avatar{filter:grayscale(1);opacity:.4;transition:opacity .8s ease,filter .8s ease}
.iv-call[data-call-state="ended"] .iv-call-pill::before{background:#c64b5c}
.iv-call[data-call-state="muted"] .iv-call-pill::before{background:#c64b5c}

/* One bar for the whole journey: a segment for each interviewer */
.iv-track{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:14px 0 8px}
.iv-track i{height:12px;border-radius:999px;background:#dfe9e2}
.iv-track i.is-full{background:var(--forest)}
.iv-track i.is-part{background:linear-gradient(to right,var(--green) var(--p),#dfe9e2 var(--p))}
.iv-track-label{margin:0;color:#4f6258;font-size:.84rem;line-height:1.5}
.iv-track-label b{color:var(--forest-deep)}
.iv-voice-strip .iv-track{margin-top:14px}

/* Dialogs: the card scrolls, not the rounded dialog, with a thin quiet scrollbar */
.iv-support-dialog{overflow:hidden;border-radius:22px}
.iv-support-card{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9cdc1 transparent;gap:12px;padding:24px 28px 24px}
.iv-support-card::-webkit-scrollbar{width:8px}
.iv-support-card::-webkit-scrollbar-track{background:transparent;margin:14px 0}
.iv-support-card::-webkit-scrollbar-thumb{border-radius:999px;background:#b9cdc1}
.iv-support-links{gap:8px}
.iv-support-links li{padding:12px 14px}
.iv-support-dialog.is-notice{width:min(520px,calc(100% - 28px))}
@media(max-height:760px){.iv-support-card{padding:20px 22px;font-size:.98rem;line-height:1.65}.iv-support-card h2{font-size:1.45rem}}

/* Compact support dialog: two columns so it fits without scrolling on most screens */
.iv-support-dialog{width:min(700px,calc(100% - 28px))}
.iv-support-card{font-size:.98rem;line-height:1.6}
.iv-support-lead{font-size:1rem}
.iv-support-links{grid-template-columns:repeat(2,minmax(0,1fr))}
.iv-support-links li{flex-wrap:nowrap;align-items:center;gap:8px}
.iv-support-links li>a:first-child{flex:1 1 auto;min-width:0}
.iv-support-call{flex:none;padding:8px 12px;font-size:.84rem;white-space:nowrap}
.iv-support-card .iv-support-pause{padding:10px 14px}
@media(max-width:560px){.iv-support-links{grid-template-columns:1fr}}

@media(max-width:760px){.iv-mode{grid-template-columns:1fr}}
/* Chat interview: a typed conversation, so the voice controls are not needed */
#voice-call[data-chat] #voice-mic,#voice-call[data-chat] #voice-sound,#voice-call[data-chat] #voice-type-toggle{display:none}

/* Microphone and speaker choice */
.iv-devices{margin:16px 0 4px;padding:14px 16px;border:1px solid #d6e4da;border-radius:16px;background:#fff}
.iv-devices-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.iv-devices-head h3{margin:0;color:var(--forest-deep);font-size:1rem}
.iv-devices-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:10px}
.iv-devices-grid label{display:grid;gap:4px;font-size:.78rem;font-weight:800;color:var(--forest-deep)}
.iv-devices-grid select{padding:8px 10px;border-radius:10px;border:1px solid #c2d8c8;font:inherit;font-weight:600;max-width:100%}
.iv-meter{height:8px;margin-top:12px;border-radius:999px;background:#dfe9e2;overflow:hidden}
.iv-meter i{display:block;height:100%;width:0;background:var(--forest);transition:width .08s linear}
.iv-devices-note{margin:8px 0 0;color:#5d7168;font-size:.76rem}

/* Language support (language-support.js) */
.iv-lang{margin:16px 0 4px;padding:14px 16px;border:1px solid #d6e4da;border-radius:16px;background:#fff}
.iv-lang[hidden],.iv-lang [hidden]{display:none}
.iv-lang h3{margin:0 0 8px;color:var(--forest-deep);font-size:1rem}
.iv-lang-switch{display:flex;align-items:flex-start;gap:10px;color:#1f2d27;font-size:.9rem;font-weight:700;cursor:pointer}
.iv-lang-switch input{flex:none;width:20px;height:20px;margin-top:2px;accent-color:var(--forest)}
.iv-lang-what{margin:12px 0 0;padding-left:20px;color:#3d4f46;font-size:.84rem;line-height:1.6}
.iv-lang-phrases{margin-top:10px;font-size:.84rem}
.iv-lang-phrases summary{cursor:pointer;color:var(--forest-deep);font-weight:800}
.iv-lang-phrases ul{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.iv-lang-phrases li{display:grid;gap:2px;padding:10px 12px;border-radius:10px;background:#f3f6f1}
.iv-lang-phrases li b{color:#5d7168;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.iv-cap-trans{margin:8px 0 0;padding:12px 18px;border-radius:4px 16px 16px 16px;color:#e7f6ee;background:rgba(255,255,255,.14);font-size:.95rem;line-height:1.5}
.iv-cap-trans[hidden]{display:none}
.iv-speaking{margin:18px 0;padding:18px 20px;border:1px solid #d6e4da;border-radius:16px;background:#fff}
.iv-speaking h3{margin:0 0 6px;color:var(--forest-deep);font-size:1.1rem}
.iv-speaking-note{margin:0 0 14px;max-width:66ch;color:#4f6258;font-size:.88rem;line-height:1.6}
.iv-speaking-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.iv-speaking-grid div{display:grid;gap:4px;padding:12px 14px;border-radius:12px;background:#f3f6f1}
.iv-speaking-grid span{color:#5d7168;font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.iv-speaking-grid b{color:var(--forest-deep);font-size:1rem}
.iv-speaking-tips{margin:14px 0;padding-left:20px;max-width:66ch;color:#1f2d27;font-size:.95rem;line-height:1.65}
.iv-translated{margin-top:8px !important;padding-top:8px;border-top:1px dashed #c9d6cd}

/* ---- Chat interview: a message thread ---- */
.iv-chat{display:flex;flex-direction:column;max-width:820px;height:min(82vh,780px);height:min(82dvh,780px);min-height:480px;margin:0 auto;overflow:hidden;border:1px solid var(--line-strong);border-radius:22px;background:var(--paper);box-shadow:0 22px 60px rgba(23,63,53,.14)}
.iv-chat[hidden]{display:none}
.iv-chat-head{display:flex;align-items:center;gap:14px;padding:14px 18px;color:#f3faf6;background:var(--forest-deep)}
.iv-chat-avatar{flex:none;width:52px;height:52px;overflow:hidden;border-radius:50%;background:var(--iv-bg,#d9efe1);box-shadow:0 0 0 3px rgba(255,255,255,.18)}
.iv-chat-avatar .iv-avatar{width:52px;height:52px}
.iv-chat-who{min-width:0;flex:1}
.iv-chat-who h2{margin:0;overflow:hidden;font-size:1.02rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap;color:#fff;background:none;-webkit-text-fill-color:currentColor}
.iv-chat-who p{margin:2px 0 0;overflow:hidden;font-size:.76rem;color:#bfe3d1;text-overflow:ellipsis;white-space:nowrap}
.iv-chat-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:.72rem;font-weight:700;color:#d4f0e1}
.iv-chat-state{display:inline-flex;align-items:center;gap:6px}
.iv-chat-state::before{content:"";width:8px;height:8px;border-radius:50%;background:#6fdba8}
.iv-chat[data-chat-state="typing"] .iv-chat-state::before{background:#f2d27a}
.iv-chat[data-chat-state="chat ended"] .iv-chat-state::before{background:#9aa8a1}
.iv-chat-timer{font-variant-numeric:tabular-nums}
.iv-chat-timer.is-low{color:#ffb4a8}
.iv-chat-end{flex:none;padding:9px 14px;border:1px solid rgba(255,255,255,.35);border-radius:10px;color:#fff;background:rgba(255,255,255,.08);font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}
.iv-chat-end:hover{background:rgba(255,255,255,.18)}
.iv-chat-end:focus-visible,.iv-chat-chip:focus-visible,.iv-chat-send:focus-visible,.iv-chat-mic:focus-visible{outline:3px solid var(--forest-deep);outline-offset:2px}
.iv-chat-progress{display:flex;gap:4px;padding:0;background:#e6eee9}
.iv-chat-progress i{flex:1;height:4px;background:#d3dfd8}
.iv-chat-progress i.on{background:var(--green)}
.iv-chat-thread{display:flex;flex:1;flex-direction:column;gap:12px;margin:0;padding:22px 18px 10px;overflow-y:auto;list-style:none;background:linear-gradient(180deg,#f3f8f4,#fffefa);scroll-behavior:smooth;overscroll-behavior:contain}
.iv-msg{display:flex;align-items:flex-end;gap:10px;max-width:86%;animation:ivMsgIn .22s ease both}
.iv-msg.is-you{align-self:flex-end;flex-direction:row-reverse}
.iv-msg-face{flex:none;width:36px;height:36px;overflow:hidden;border-radius:50%;background:var(--iv-bg,#d9efe1)}
.iv-msg-face .iv-avatar{width:36px;height:36px}
.iv-msg-bubble{min-width:0;padding:10px 14px 11px;border:1px solid rgba(36,90,74,.14);border-radius:18px 18px 18px 5px;color:var(--text);background:#fff;box-shadow:0 3px 10px rgba(23,63,53,.06)}
.iv-msg.is-you .iv-msg-bubble{border-color:transparent;border-radius:18px 18px 5px 18px;color:#fff;background:var(--forest)}
.iv-msg-name{display:block;margin-bottom:2px;font-size:.68rem;font-weight:800;letter-spacing:.02em;color:var(--muted)}
.iv-msg.is-you .iv-msg-name{color:#bfe3d1}
.iv-msg-bubble p{margin:0;font-size:.95rem;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.iv-msg.is-assist .iv-msg-bubble{border:1px dashed rgba(255,255,255,.55);background:#4a7f6e}
.iv-msg.is-assist .iv-msg-bubble p{font-size:.85rem}
.iv-msg.is-typing .iv-msg-bubble{padding:12px 16px}
.iv-msg-system{align-self:center;padding:5px 14px;border-radius:999px;color:var(--muted);background:#e8f0eb;font-size:.76rem;font-weight:700}
.iv-chat-note{min-height:0;margin:0;padding:6px 18px 0;font-size:.82rem;line-height:1.5;color:var(--status-info,#4b6158)}
.iv-chat-note:empty{display:none}
.iv-chat-note[data-state="error"]{color:var(--error,#a52c41)}
.iv-chat-tools{display:flex;flex-wrap:wrap;gap:8px;padding:10px 18px 0}
.iv-chat-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--line-strong);border-radius:999px;color:var(--forest-deep);background:#fff;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.iv-chat-chip svg{width:16px;height:16px}
.iv-chat-chip small{font-size:.72rem;font-weight:600;color:var(--muted)}
.iv-chat-chip:hover:not(:disabled){background:var(--mint)}
.iv-chat-chip:disabled{opacity:.5;cursor:not-allowed}
.iv-chat-chip.is-support{border-color:#e3d3a4;background:#fbf4dc;color:#5d4a14}
.iv-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:8px;padding:10px 18px 14px}
.iv-chat-composer textarea{grid-column:1;width:100%;min-height:46px;max-height:168px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:14px;background:#fff;font:inherit;font-size:.95rem;line-height:1.5;resize:none}
.iv-chat-composer textarea:focus-visible{outline:0;border-color:var(--green);box-shadow:0 0 0 4px rgba(57,167,123,.16)}
.iv-chat-mic,.iv-chat-send{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;cursor:pointer}
.iv-chat-mic{border:1px solid var(--line-strong);color:var(--forest-deep);background:#fff}
.iv-chat-mic[hidden]{display:none}
.iv-chat-mic.is-on{border-color:#c0392b;color:#fff;background:#c0392b}
.iv-chat-send{border:0;color:#fff;background:var(--forest)}
.iv-chat-send:disabled{opacity:.45;cursor:not-allowed}
.iv-chat-mic svg,.iv-chat-send svg{width:20px;height:20px}
.iv-chat-hintline{grid-column:1/-1;font-size:.72rem;color:var(--muted)}
.iv-chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@keyframes ivMsgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.iv-msg{animation:none}.iv-chat-thread{scroll-behavior:auto}}

.iv-transcript{margin:0 0 18px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.iv-transcript summary{cursor:pointer;font-weight:800;color:var(--forest-deep)}
.iv-transcript ol{display:grid;gap:10px;margin:14px 0 4px;padding:0;list-style:none}
.iv-transcript li{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:#f3f8f4}
.iv-transcript li.is-you{background:#e8f4ee}
.iv-transcript li.is-assist span{font-style:normal;color:var(--muted)}
.iv-transcript b{font-size:.76rem;color:var(--muted)}
.iv-transcript span{font-size:.92rem;line-height:1.55;white-space:pre-wrap}

@media(max-width:680px){
  .iv-chat{height:calc(100dvh - 150px);min-height:440px;border-radius:16px}
  .iv-chat-head{flex-wrap:wrap;gap:10px;padding:12px 14px}
  .iv-chat-who{flex:1 1 calc(100% - 200px)}
  .iv-chat-meta{order:3;flex-direction:row;gap:12px;width:100%;justify-content:space-between}
  .iv-chat-end{padding:8px 12px}
  .iv-chat-thread{padding:16px 12px 8px}
  .iv-msg{max-width:94%}
  .iv-chat-tools{padding:8px 12px 0}
  .iv-chat-composer{padding:8px 12px 12px}
}
