/* AI Mock Interview: a video-call style room with the real interviewer photo. */
.iv-page { background: var(--grain); }
.eb-badge { display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #f3c46b; border: 1px solid rgba(243,196,107,.45); border-radius: 999px; padding: .35em 1em; margin-bottom: 1rem; }
.eb-bar { height: 8px; background: #e6e1d7; border-radius: 99px; overflow: hidden; }
.eb-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s; }

/* ---------- hero + lobby */
.iv-hero { color: #fff; text-align: center; padding: clamp(36px, 6vw, 64px) 0 clamp(70px, 9vw, 96px);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px), linear-gradient(160deg, #26324d, #1b253d 70%); }
.iv-hero h1 { color: #fff; font-weight: 900; font-size: clamp(1.9rem, 5.5vw, 3rem); margin: 0 0 .5rem; }
.iv-hero h1 span { color: var(--orange); }
.iv-hero-sub { color: #dfe5f3; max-width: 38em; margin: 0 auto; font-size: 1.05rem; }
.iv-lobby { margin-top: -48px; padding-bottom: 60px; max-width: 860px; }
.iv-step { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin: 2rem 0 1rem; }
.iv-step span { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .95rem; flex: none; }
.iv-lobby > .iv-step:first-child { margin-top: 0; color: #fff; }
.iv-lobby > .iv-step:first-child span { background: var(--orange); color: var(--navy-ink); }
.iv-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iv-card { position: relative; text-align: left; background: #fff; border: 3px solid transparent; border-radius: 20px; padding: 0 0 16px; cursor: pointer; overflow: hidden; box-shadow: var(--shadow); font: inherit; color: var(--ink); transition: transform .15s, border-color .15s; }
.iv-card:hover { transform: translateY(-2px); }
.iv-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; display: block; margin-bottom: 12px; }
.iv-card b, .iv-card span, .iv-card small { display: block; padding: 0 16px; }
.iv-card b { font-size: 1.15rem; color: var(--navy); }
.iv-card span { color: var(--muted); font-size: .9rem; }
.iv-card small { color: var(--orange-2); font-weight: 600; margin-top: 4px; }
.iv-card[aria-pressed="true"] { border-color: var(--orange); }
.iv-card[aria-pressed="true"]::after { content: "✓ Selected"; position: absolute; top: 12px; right: 12px; background: var(--orange); color: var(--navy-ink); font-weight: 700; font-size: .8rem; padding: .3em .8em; border-radius: 999px; }
.iv-lengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.iv-lengths button { background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 14px 8px; cursor: pointer; font: inherit; color: var(--navy); min-height: 44px; }
.iv-lengths button b { display: block; font-size: 1.7rem; line-height: 1; }
.iv-lengths button span { display: block; font-size: .85rem; }
.iv-lengths button small { color: var(--muted); }
.iv-lengths button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.iv-start { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 1.6rem 0; }
.iv-start .btn { font-size: 1.05rem; padding: 1em 1.6em; }
.iv-tips { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.iv-tips .checklist { margin: .6rem 0 0; }
.iv-hist { display: flex; align-items: center; gap: 12px; justify-content: space-between; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.iv-score-pill { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; border-radius: 999px; padding: .2em .7em; font-size: .85rem; }
.iv-buy { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center; background: #fff; border: 2px solid var(--orange); border-radius: 20px; padding: 22px; margin-top: 2rem; }
.iv-buy-box { text-align: center; display: grid; gap: 8px; }

/* ---------- interview room */
.iv-room { display: grid; grid-template-columns: 330px 1fr; gap: 24px; padding: 28px 0 60px; align-items: start; }
.iv-stage { position: sticky; top: 92px; background: #121a2c; color: #fff; border-radius: 22px; padding: 14px 14px 18px; text-align: center; box-shadow: var(--shadow-lg); }
.iv-stage b { display: block; font-size: 1.1rem; margin-top: 10px; }
.iv-stage .muted { color: #aab4cc; }
.iv-avatar { --level: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: #0d1426; outline: 3px solid transparent; transition: outline-color .2s; }
.iv-avatar img, .iv-avatar video { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; transform: scale(calc(1 + var(--level) * .05)); transition: transform .08s linear; }
.iv-avatar.talking { outline-color: var(--orange); box-shadow: 0 0 0 6px rgba(243,154,29,.18); }
.iv-ring { position: absolute; left: 10px; bottom: 10px; display: none; gap: 3px; align-items: flex-end; height: 22px; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.55); }
.iv-avatar.talking .iv-ring { display: flex; }
.iv-ring::before, .iv-ring::after { content: ""; width: 4px; border-radius: 2px; background: var(--orange); animation: ivBar .7s ease-in-out infinite; height: 60%; }
.iv-ring::after { animation-delay: .35s; height: 90%; }
@keyframes ivBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.iv-progress { margin-top: 14px; text-align: left; }
.iv-progress .eb-bar { background: rgba(255,255,255,.15); margin-bottom: 6px; }
.iv-main { min-width: 0; }
.iv-qcard { background: #fff; border-radius: 20px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.iv-qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-q { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 700; color: var(--navy); line-height: 1.4; margin: .8rem 0 0; }
.iv-answer { background: #fff; border-radius: 20px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); margin-top: 16px; display: grid; gap: 14px; }
.iv-mic-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.iv-mic { display: inline-flex; align-items: center; gap: .6rem; border: 0; border-radius: 999px; padding: .9em 1.5em; background: var(--navy); color: #fff; font: 600 1rem var(--font); cursor: pointer; min-height: 52px; }
.iv-mic span { font-size: 1.3rem; }
.iv-mic.on { background: var(--bad); animation: ivPulse 1.4s ease-in-out infinite; }
.iv-mic:disabled { opacity: .5; cursor: not-allowed; }
@keyframes ivPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.45); } 50% { box-shadow: 0 0 0 12px rgba(192,57,43,0); } }
.iv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.iv-thinking { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--navy); font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.iv-dots { display: inline-flex; gap: 4px; }
.iv-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: ivDot 1s infinite; }
.iv-dots i:nth-child(2) { animation-delay: .15s; } .iv-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ivDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.iv-intro { background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--line); text-align: center; }
.iv-intro p { font-size: 1.08rem; color: var(--navy); }

/* feedback */
.iv-feedback { margin-top: 16px; background: #fff; border-radius: 20px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; scroll-margin-top: 90px; }
.iv-feedback .eb-tip { background: #eef2fb; border-left: 5px solid var(--navy); border-radius: 14px; padding: 12px 14px; margin: 0; }
.iv-feedback .eb-tip b { display: block; color: var(--navy); }
.iv-fb-head { display: flex; gap: 16px; align-items: center; }
.iv-score { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; line-height: 1; }
.iv-score b { font-size: 1.9rem; } .iv-score span { font-size: .8rem; opacity: .85; }
.iv-score.big { width: 110px; height: 110px; } .iv-score.big b { font-size: 2.6rem; }
.iv-score.iv-great, .iv-verdict.iv-great, .iv-score-pill.iv-great { background: var(--ok); }
.iv-score.iv-good, .iv-verdict.iv-good, .iv-score-pill.iv-good { background: var(--orange-2); }
.iv-score.iv-needs_work, .iv-verdict.iv-needs_work, .iv-score-pill.iv-needs_work { background: var(--bad); }
.iv-verdict { display: inline-block; color: #fff; font-weight: 700; border-radius: 999px; padding: .3em .9em; font-size: .9rem; margin-bottom: 4px; }
.iv-fb-block { border-radius: 14px; padding: 12px 14px; }
.iv-fb-block > b { display: block; margin-bottom: 4px; }
.iv-fb-block ul { margin: 0; padding-left: 1.2em; } .iv-fb-block li { margin: .3em 0; line-height: 1.55; }
.iv-fb-block p { margin: 0; line-height: 1.7; }
.iv-good { background: #e9f6ee; } .iv-good > b { color: var(--ok); }
.iv-imp { background: var(--orange-soft); } .iv-imp > b { color: var(--orange-2); }
.iv-eng { background: #f1effa; } .iv-eng > b { color: #5b4fb0; }
.iv-better { background: #f6f3ec; border-left: 5px solid var(--navy); } .iv-better > b { color: var(--navy); }

/* report */
.iv-report { max-width: 880px; padding: 32px 0 70px; }
.iv-rp-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.iv-rp-head img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; object-position: center 25%; }
.iv-rp-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; }
.iv-rp-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.iv-verdict-banner { margin: 18px 0 8px; color: #fff; font-weight: 800; font-size: 1.2rem; border-radius: 14px; padding: 14px 18px; }
.iv-verdict-banner.iv-great { background: var(--ok); } .iv-verdict-banner.iv-good { background: var(--orange-2); } .iv-verdict-banner.iv-needs_work { background: var(--navy); }
.iv-rp-summary { font-size: 1.05rem; line-height: 1.7; }
.iv-rp-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
.iv-rp-q summary { cursor: pointer; padding: 14px 16px; line-height: 1.5; }
.iv-rp-q .iv-feedback { margin: 0 12px 12px; box-shadow: none; }

@media (max-width: 860px) {
  .iv-room { grid-template-columns: 1fr; padding-top: 16px; }
  .iv-stage { position: static; display: grid; grid-template-columns: 76px 1fr; gap: 0 12px; text-align: left; align-items: center; padding: 10px; border-radius: 16px; }
  .iv-stage .iv-avatar { grid-row: span 3; border-radius: 12px; }
  .iv-stage b { margin: 0; font-size: 1rem; }
  .iv-progress { margin-top: 4px; }
  .iv-ring { left: 4px; bottom: 4px; height: 14px; padding: 2px 5px; }
  .iv-buy { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .iv-pick { gap: 10px; }
  .iv-card b { font-size: 1rem; } .iv-card span, .iv-card small { font-size: .8rem; }
  .iv-card b, .iv-card span, .iv-card small { padding: 0 10px; }
  .iv-fb-head { align-items: flex-start; }
}
@media print {
  #site-header, #site-footer, .iv-noprint, .mobile-cta { display: none !important; }
  .iv-page { background: #fff; }
  .iv-rp-q { break-inside: avoid; }
  .iv-score, .iv-verdict, .iv-verdict-banner, .iv-fb-block, .iv-score-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.iv-lengths > div { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 10px; color: var(--navy); text-align: center; }
.iv-lengths > div b { display: block; font-size: 1.7rem; line-height: 1.1; }
.iv-lengths > div span { display: block; font-size: .88rem; }
.iv-lengths > div small { color: var(--muted); font-size: .78rem; }
.iv-end { margin-top: 12px; width: 100%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #dfe5f3; border-radius: 999px; padding: .55em 1em; font: 600 .85rem var(--font); cursor: pointer; min-height: 40px; }
.iv-end:hover { background: rgba(255,255,255,.08); }
.iv-continue { background: var(--orange-soft); border-radius: 16px; padding: 16px; }
.iv-continue p { margin: 0 0 .8rem; }
@media (max-width: 860px) { .iv-end { grid-column: 1 / -1; margin-top: 8px; padding: .4em; } }
@media (max-width: 560px) { .iv-lengths { grid-template-columns: 1fr; } }
.iv-req { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--bad); color: #fff; border-radius: 999px; padding: .2em .7em; font-weight: 700; }
.iv-check { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; }
.iv-check-row, .iv-mic-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.iv-meter { flex: 1; min-width: 120px; height: 10px; background: #ece7dc; border-radius: 99px; overflow: hidden; }
.iv-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--orange)); transition: width .08s linear; }
.iv-timer { font: 700 1.05rem var(--font); color: var(--navy); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.iv-review { display: grid; gap: 10px; }
.iv-review audio { width: 100%; }
.iv-self { position: absolute; right: 8px; bottom: 8px; width: 34%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 2px solid #fff; transform: scaleX(-1); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
#lb-start:disabled { opacity: .5; }
@media (max-width: 860px) {
  .iv-stage { grid-template-columns: 76px 1fr 1fr; }
  .iv-stage > :not(.iv-avatar):not(.iv-end) { grid-column: 2 / -1; }
  .iv-stage .iv-avatar { grid-row: 1 / span 3; }
  .iv-end { grid-column: auto; }
  #rm-cam { grid-column: 1 / 3; }
}

/* Separate silent avatar animation from the audible, per-question media. */
#rm-motion { position: absolute; inset: 0; transform: none; }
.iv-avatar-status { display: block; color: #f3c46b; font-size: .85rem; margin-top: 8px; line-height: 1.45; }
.iv-avatar-note { display: block; color: #aab4cc; font-size: .7rem; line-height: 1.4; margin-top: 4px; }
.iv-motion-control { font-size: .75rem; min-height: 36px; margin-top: 8px; }
@media (max-width: 860px) {
  .iv-stage .iv-avatar-status, .iv-stage .iv-avatar-note, .iv-stage .iv-motion-control { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-ring::before, .iv-ring::after { animation: none; }
}

.iv-stage-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.iv-stage-controls .iv-end { margin-top: 0; font-size: .75rem; min-height: 40px; }
@media (max-width: 860px) {
  .iv-stage { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; }
  .iv-stage #rm-avatar { grid-column: 1; grid-row: 1 / span 4; }
  .iv-stage #rm-name { grid-column: 2; grid-row: 1; }
  .iv-stage #rm-role { grid-column: 2; grid-row: 2; }
  .iv-stage #rm-avatar-status { grid-column: 2; grid-row: 3; margin-top: 0; }
  .iv-stage > .iv-avatar-note { grid-column: 2; grid-row: 4; margin-top: 0; }
  .iv-stage > .iv-progress, .iv-stage #rm-avatar-controls { grid-column: 1 / -1; }
  #rm-avatar-controls .iv-end, #rm-avatar-controls #rm-cam { grid-column: auto; }
}

/* Spacious room: two video panels first, questions and feedback below. */
.iv-room { display: block; width: 80vw; max-width: 1800px; padding: 24px 0 60px; }
@media (max-width: 1100px) { .iv-room { width: calc(100% - 32px); } }

.iv-meeting { background: #16191f; border: 1px solid #30343e; border-radius: 22px; padding: 18px; color: #f3f5fa; box-shadow: 0 18px 48px rgba(16,22,34,.16); }
.iv-meeting-head, .iv-meeting-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-meeting-head { justify-content: space-between; margin-bottom: 14px; }
.iv-meeting-head b { font-size: 1rem; }
.iv-call-sub { color: #aeb7c5; font-size: .8rem; }
.iv-call-dot { width: 8px; height: 8px; border-radius: 50%; background: #62d59a; }
.iv-expand { background: #282d36; color: #eef2f8; border: 1px solid #424957; border-radius: 10px; padding: 8px 12px; font: 500 .8rem var(--font); cursor: pointer; }
.iv-call-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.iv-participant { min-width: 0; }
.iv-call-tile, #rm-avatar { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0b1019; }
.iv-call-tile > img, .iv-call-tile > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; transform: none; border: 0; border-radius: 0; box-shadow: none; }
#rm-self { right: auto; bottom: auto; aspect-ratio: auto; object-fit: cover; transform: scaleX(-1); }
.iv-participant-label { position: static; max-width: none; min-height: 42px; background: #202632; border: 1px solid #303a49; border-radius: 0 0 10px 10px; padding: 9px 12px; display: flex; flex-wrap: wrap; gap: 3px 12px; justify-content: space-between; align-items: center; }
.iv-participant-label b { font-size: .84rem; }
.iv-participant-label span { color: #bec8d8; font-size: .68rem; }

/* Student tile quick-action button (top right of webcam tile) */
.iv-tile-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font: 600 0.72rem var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
}
.iv-tile-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}
.iv-tile-btn[aria-pressed="true"], .iv-end[aria-pressed="true"]#rm-blur {
  background: rgba(98, 213, 154, 0.2);
  border-color: #62d59a;
  color: #a7f3d0;
}

/* Subtitles: broadcast-style overlay when interviewer Mitch speaks */
.iv-subtitles { position: static; margin-top: 16px; width: 100%; background: #202632; border: 1px solid #465268; border-radius: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.6; color: #fff; overflow-wrap: anywhere; }
@keyframes ivSubIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.iv-sub-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--orange);
  color: var(--navy-ink);
  border-radius: 999px;
  padding: 2px 7px;
  margin-right: 6px;
  vertical-align: middle;
}
.iv-sub-text { font-weight: 500; color: #f8fafc; }

.iv-participant-meta { display: grid; gap: 3px; padding: 8px 2px 0; color: #aeb7c5; font-size: .73rem; line-height: 1.5; }
.iv-meeting .iv-avatar-status { margin: 0; font-size: .8rem; }
.iv-meeting .iv-ring { left: auto; right: 10px; bottom: 10px; z-index: 3; }
.iv-camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px; text-align: center; background: radial-gradient(ellipse at 50% 35%, #293240, #131a25 75%); }
.iv-camera-initial { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #36465f; color: #f5f7fc; font-weight: 600; font-size: 1.5rem; margin-bottom: 8px; }
.iv-camera-placeholder b { font-size: .9rem; }
.iv-camera-placeholder p { font-size: .74rem; color: #b9c3d2; margin: 4px 0 10px; max-width: 28em; }
.iv-camera-enable { border: 1px solid #8496af; border-radius: 9px; background: #35465e; color: #fff; padding: 6px 12px; font: 600 .73rem var(--font); cursor: pointer; }
.iv-call-bottom { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 12px; }
.iv-meeting .iv-progress { flex: 1; margin: 0; max-width: 440px; }
.iv-meeting .iv-progress > span { display: block; font-size: .73rem; color: #bdc6d5; margin-top: 4px; }
.iv-meeting .eb-bar { height: 5px; background: #363d49; }
.iv-meeting .iv-avatar-note { margin: 0; text-align: right; }
.iv-meeting .iv-stage-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #303844; }
.iv-meeting .iv-end { width: auto; min-width: 120px; min-height: 40px; padding: 8px 14px; margin: 0; border-radius: 10px; background: #282d36; color: #f1f4fa; border-color: #465060; font-size: .78rem; }
.iv-meeting .iv-end:hover { background: #353d49; }
.iv-meeting .iv-end[aria-pressed="true"] { border-color: #74bc98; }
.iv-meeting .iv-call-end { background: #a3343d; border-color: #bb4750; }
.iv-meeting .iv-call-end:hover { background: #b23a44; }

/* Interactive Console (Right Column on desktop) */
.iv-room > .iv-main { margin-top: 24px; max-width: none; width: 100%; }
.iv-qcard { background: #fff; border-radius: 18px; padding: 16px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.iv-qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-q { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; color: var(--navy); line-height: 1.4; margin: .6rem 0 0; }
.iv-answer { background: #fff; border-radius: 18px; padding: 16px 20px; border: 1px solid var(--line); margin-top: 12px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.iv-text-label textarea { min-height: 90px; max-height: 160px; font-size: .95rem; line-height: 1.5; resize: vertical; }

/* Immediate Feedback Card in active console: fits in frame, no scroll down needed */
.iv-feedback { margin-top: 12px; background: #fff; border-radius: 18px; padding: 16px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; max-height: none; overflow: visible; }
.iv-feedback::-webkit-scrollbar { width: 6px; }
.iv-feedback::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

/* Full Feedback History Section below */
.iv-history-section { grid-column: 1 / -1; margin-top: 28px; background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 22px 24px; box-shadow: var(--shadow); }
.iv-history-head { margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.iv-history-head h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.2rem; }
.iv-history-list { display: grid; gap: 12px; }
.iv-history-item { background: #fbfbfd; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s; }
.iv-history-item[open] { border-color: var(--navy); }
.iv-history-item summary { cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); list-style: none; user-select: none; }
.iv-history-item summary::-webkit-details-marker { display: none; }
.iv-hist-sum-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iv-hist-tag { font-size: .75rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; }
.iv-tag-ok { background: #e9f6ee; color: var(--ok); }
.iv-tag-skip { background: #f1f5f9; color: var(--muted); }
.iv-history-content { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 12px; }

.iv-meeting:fullscreen { border-radius: 0; overflow: auto; display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.iv-meeting:fullscreen .iv-call-grid { width: 100%; }
@media (max-width: 700px) {
  .iv-meeting { padding: 12px; border-radius: 16px; }
  .iv-meeting-head { gap: 8px; }
  .iv-call-sub { display: none; }
  .iv-call-grid { grid-template-columns: 1fr; gap: 12px; }
  .iv-call-tile, #rm-avatar { aspect-ratio: 16 / 9; }
  .iv-camera-initial { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 6px; }
  .iv-camera-placeholder { padding: 12px; }
  .iv-camera-placeholder p { margin-bottom: 8px; }
  .iv-call-bottom { display: block; }
  .iv-meeting .iv-progress { max-width: none; }
  .iv-meeting .iv-avatar-note { margin-top: 6px; text-align: left; }
  .iv-meeting .iv-stage-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .iv-meeting .iv-end { min-width: 0; width: 100%; padding: 8px 6px; font-size: .73rem; }
  .iv-room > .iv-main { margin-top: 14px; }
  .iv-subtitles { bottom: 38px; font-size: .8rem; padding: 6px 10px; }
}
#room { padding: 0; }
.iv-participant-label b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .iv-camera-placeholder { padding-bottom: 50px; }
  .iv-camera-placeholder .iv-camera-initial, .iv-camera-placeholder p { display: none; }
  .iv-camera-placeholder b { font-size: .84rem; margin-bottom: 8px; }
}

#room:fullscreen { background: var(--grain); overflow: auto; }
#room:fullscreen .iv-room { padding-top: 20px; }

/* Labels have their own rows; subtitles and camera actions never cover a face. */
.iv-call-tile, #rm-avatar { border-radius: 12px 12px 0 0; }
.iv-meeting .iv-camera-placeholder { padding: 20px; }
.iv-meeting .iv-camera-enable { flex-shrink: 0; }
.iv-meeting-head > div { min-width: 0; }
.iv-call-sub { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .iv-room { padding-top: 14px; }
  .iv-subtitles { margin-top: 12px; padding: 12px; font-size: .83rem; }
  .iv-meeting .iv-camera-placeholder { padding: 12px; }
  .iv-meeting .iv-call-end { grid-column: 1 / -1; }
  .iv-participant-label { gap: 3px 8px; padding: 8px 10px; }
}

#rm-self-blurred { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); z-index: 1; }
#rm-self.iv-blur-source { opacity: 0; }

/* One practice workspace: video, feedback and next action stay together. */
.iv-room { width: 95%; max-width: none; }
.iv-workspace { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.iv-visual, .iv-workspace > .iv-main { min-width: 0; }
.iv-workspace > .iv-main { margin: 0; color: var(--ink); max-height: calc(100dvh - 205px); overflow-y: auto; scrollbar-gutter: stable; border-radius: 16px; }
.iv-workspace .iv-qcard, .iv-workspace .iv-feedback { margin-top: 0; }
.iv-workspace .iv-feedback { padding: 0; gap: 0; overflow: visible; }
.iv-feedback-nav { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.iv-feedback-nav b { color: var(--navy); font-size: .9rem; }
.iv-feedback-nav .btn { padding: .65em 1em; }
.iv-feedback-body { padding: 16px; display: grid; gap: 12px; }
.iv-workspace .iv-qcard:not(.hidden) ~ .iv-feedback { margin-top: 12px; }
.iv-workspace .iv-call-tile, .iv-workspace #rm-avatar { aspect-ratio: 4 / 3; }
.iv-workspace .iv-call-bottom { flex-wrap: wrap; }
.iv-workspace .iv-avatar-note { text-align: left; }
.iv-meeting:fullscreen { display: block; }
.iv-meeting:fullscreen .iv-workspace > .iv-main { max-height: calc(100dvh - 120px); }
@media (max-width: 1000px) {
  .iv-workspace { grid-template-columns: minmax(0,1fr); }
  .iv-workspace > .iv-main { max-height: none; overflow: visible; }
  .iv-feedback-nav { top: 75px; }
  .iv-meeting:fullscreen .iv-workspace > .iv-main { max-height: none; }
}
@media (max-width: 700px) {
  .iv-room { width: 95%; }
  .iv-workspace .iv-call-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .iv-workspace .iv-camera-placeholder b { font-size: .7rem; }
  .iv-workspace .iv-camera-enable { padding: 5px; font-size: .65rem; }
  .iv-workspace .iv-participant-label { padding: 6px; min-height: 48px; }
  .iv-workspace .iv-participant-label b { font-size: .73rem; }
  .iv-workspace .iv-participant-label span { font-size: .6rem; }
  .iv-feedback-nav { padding: 10px; }
}

.iv-meeting { scroll-margin-top: 120px; }
@media (min-width: 1001px) {
  .iv-workspace .iv-call-tile, .iv-workspace #rm-avatar { aspect-ratio: auto; height: clamp(220px, calc(100dvh - 410px), 460px); }
  .iv-workspace .iv-stage-controls .iv-end { min-width: 0; padding: 8px 9px; font-size: .72rem; }
}
.iv-workspace #audio-library-preview { color: var(--ink); background: #fff; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: .75rem; }

.iv-encouragement-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: #253d34; border: 1px solid #74bc98; border-radius: 10px; color: #e3f4e9; font-size: .78rem; }
