/* Mülakat Süreci: Soru Bankası ile aynı görsel dil, bağımsız sekme stilleri.
   Mevcut select / cbx bileşenlerine ve ortak tema değişkenlerine dokunmaz. */
#sim-view {
  --iv-ink: #30382f; --iv-muted: #697064; --iv-line: #e0e2d9;
  --iv-paper: #fffefa; --iv-soft: #f2f3ed;
  --iv-accent: #af5438; --iv-accent-soft: #f7e9df;
  --iv-green: #294d40; --iv-garden: #e8eddf;
  --iv-shadow: 0 10px 30px -20px #35433555;
}
[data-theme="mulakat-dark"] #sim-view {
  --iv-ink: #e8e9de; --iv-muted: #acb3a6; --iv-line: #364137;
  --iv-paper: #212a25; --iv-soft: #28322b;
  --iv-accent: #edaa87; --iv-accent-soft: #3d312b;
  --iv-green: #b7d1ad; --iv-garden: #2b382d;
  --iv-shadow: 0 10px 30px -20px #000a;
}
#sim-view [hidden] { display: none !important; }
#sim-view :where(.iv-hero, .iv-config-heading, .iv-start-button, .iv-stage-summary, .iv-setup-note, .iv-room-heading, .iv-session-ribbon, #room-tiles, #next-question-bar) svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.7; }
#sim-view .iv-overline { font-size: 9px; font-weight: 800; letter-spacing: .13em; line-height: 1.6; }
#sim-view .iv-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 800; letter-spacing: .13em; color: var(--iv-muted); }
#sim-view .iv-status-dot { width: 6px; height: 6px; background: var(--iv-accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--iv-accent-soft); margin-right: 3px; }
#sim-view .iv-eyebrow-rule { width: 18px; height: 1px; background: var(--iv-line); }

/* Başlangıç: bir kapak, ardından tek bir hazırlık alanı. */
#sim-view .iv-hero { display: grid; grid-template-columns: 1fr 370px; align-items: center; gap: 42px; padding: 6px 0 33px; border-bottom: 1px solid var(--iv-line); color: var(--iv-ink); }
#sim-view .iv-hero h1 { font-size: clamp(38px, 4.6vw, 57px); font-weight: 650; letter-spacing: -.055em; line-height: 1.04; margin: 18px 0 14px; }
#sim-view .iv-hero h1 em { color: var(--iv-accent); font-style: normal; }
#sim-view .iv-hero-copy > p { font-size: 14px; line-height: 1.7; color: var(--iv-muted); }
#sim-view .iv-hero-features { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; }
#sim-view .iv-hero-features > span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; color: var(--iv-muted); }
#sim-view .iv-hero-features svg { width: 14px; height: 14px; color: var(--iv-green); }
#sim-view .iv-rehearsal-card { border: 1px solid color-mix(in srgb, var(--iv-green) 14%, transparent); background: var(--iv-garden); border-radius: 18px; overflow: hidden; }
#sim-view .iv-rehearsal-art { height: 179px; position: relative; overflow: hidden; background-image: radial-gradient(color-mix(in srgb, var(--iv-green) 13%, transparent) .75px, transparent .75px); background-size: 14px 14px; }
#sim-view .iv-art-orbit { position: absolute; width: 280px; height: 118px; border: 1px solid color-mix(in srgb, var(--iv-green) 18%, transparent); border-radius: 50%; left: 47px; top: 32px; transform: rotate(-15deg); }
#sim-view .iv-art-spark { position: absolute; left: 50px; top: 45px; color: var(--iv-accent); font-size: 32px; transform: rotate(12deg); }
#sim-view .iv-art-note { position: absolute; width: 119px; height: 135px; left: 98px; top: 16px; padding: 14px; background: #fffdf3; color: #374838; border: 1px solid #aebaa1; border-radius: 10px; transform: rotate(-9deg); box-shadow: 3px 5px 0 #35433512; transition: transform .4s ease; }
#sim-view .iv-art-note > span:first-child { font: 700 7px 'JetBrains Mono', monospace; letter-spacing: .05em; }
#sim-view .iv-art-note > b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; margin: 15px 0 13px; }
#sim-view .iv-art-note-line { display: block; height: 3px; width: 90%; background: #e0e3d8; border-radius: 3px; margin-top: 5px; }
#sim-view .iv-art-note-line:last-child { width: 60%; }
#sim-view .iv-art-mic { position: absolute; top: 41px; left: 197px; width: 87px; height: 99px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; background: #365742; color: #fffdf3; border: 1px solid #243d2c; border-radius: 18px; transform: rotate(12deg); box-shadow: 3px 5px 0 #35433512; transition: transform .4s ease; }
#sim-view .iv-art-mic > svg { width: 39px; height: 39px; stroke-width: 1.4; }
#sim-view .iv-art-wave { display: flex; gap: 4px; align-items: center; height: 15px; }
#sim-view .iv-art-wave b { width: 3px; height: 6px; background: #cbd4b9; border-radius: 4px; }
#sim-view .iv-art-wave b:nth-child(2), #sim-view .iv-art-wave b:nth-child(4) { height: 11px; }
#sim-view .iv-art-wave b:nth-child(3) { height: 16px; }
#sim-view .iv-art-caption { position: absolute; bottom: 13px; right: 17px; font: italic 11px Georgia, serif; color: var(--iv-green); transform: rotate(-5deg); }
#sim-view .iv-rehearsal-card:hover .iv-art-note { transform: translateY(-3px) rotate(-12deg); }
#sim-view .iv-rehearsal-card:hover .iv-art-mic { transform: translate(2px, -3px) rotate(16deg); }
#sim-view .iv-rehearsal-caption { position: relative; padding: 17px 20px; border-top: 1px solid color-mix(in srgb, var(--iv-green) 12%, transparent); }
#sim-view .iv-rehearsal-caption .iv-overline { color: var(--iv-green); font-size: 8px; }
#sim-view .iv-rehearsal-caption p { font-size: 12px; font-weight: 600; margin-top: 5px; padding-right: 18px; }
#sim-view .iv-rehearsal-caption > svg { position: absolute; right: 20px; top: 29px; color: var(--iv-green); width: 16px; }
#sim-view .iv-config-panel { margin-top: 28px; padding: 28px 30px 23px; background: var(--iv-paper); border: 1px solid var(--iv-line); border-radius: 16px; box-shadow: var(--iv-shadow); }
#sim-view .iv-config-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; color: var(--iv-ink); }
#sim-view .iv-config-heading .iv-overline { color: var(--iv-accent); }
#sim-view .iv-config-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.035em; margin-top: 8px; }
#sim-view .iv-config-heading p { color: var(--iv-muted); font-size: 12px; line-height: 1.6; margin-top: 8px; }
#sim-view .iv-config-mark { width: 43px; height: 43px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--iv-soft); color: var(--iv-green); }
#sim-view .iv-start-button { background: var(--iv-green); color: var(--iv-paper); border: 1px solid transparent; box-shadow: none; text-transform: none; border-radius: 11px; padding-inline: 21px; font-size: 13px; gap: 9px; }
#sim-view .iv-start-button:hover { background: color-mix(in srgb, var(--iv-green) 88%, var(--iv-ink)); box-shadow: 0 5px 15px -9px var(--iv-green); }
#sim-view .iv-start-button > svg { width: 15px; height: 15px; }
#sim-view .iv-start-button > svg:last-child { margin-left: 9px; }
#sim-view .iv-stage-area { border-top: 1px solid var(--iv-line); margin-top: 28px; padding-top: 22px; }
#sim-view .iv-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#sim-view .iv-stage-kicker { font-size: 8px; font-weight: 800; letter-spacing: .13em; color: var(--iv-muted); }
#sim-view .iv-stage-heading h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin-top: 5px; color: var(--iv-ink); }
#sim-view #stage-confidence { font-size: 10px; }
#sim-view #stage-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 10px; }
#sim-view .stage-step { position: relative; gap: 12px; padding: 18px 15px; min-height: 79px; border: 1px solid var(--iv-line); border-radius: 11px; background: var(--iv-paper); color: var(--iv-ink); font-size: 13px; font-weight: 600; box-shadow: none; }
#sim-view .stage-step > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#sim-view .stage-step .num { width: 29px; height: 29px; font-size: 10px; font-weight: 500; background: var(--iv-soft); color: var(--iv-muted); border: 1px solid var(--iv-line); }
#sim-view .stage-step .sub { margin-top: 5px; font-size: 10px; font-weight: 400; line-height: 1.45; color: var(--iv-muted); opacity: 1; }
#sim-view .stage-step:hover { border-color: color-mix(in srgb, var(--iv-accent) 45%, var(--iv-line)); background: var(--iv-soft); transform: translateY(-2px); }
#sim-view .stage-step[aria-checked="true"] { background: var(--iv-accent-soft); border-color: color-mix(in srgb, var(--iv-accent) 55%, var(--iv-line)); color: var(--iv-accent); }
#sim-view .stage-step[aria-checked="true"] .num { background: var(--iv-accent); border-color: transparent; color: var(--iv-paper); }
#sim-view .stage-step[aria-checked="true"] .sub { color: var(--iv-accent); opacity: .85; }
#sim-view .stage-step.is-extra { border-style: dashed; padding: 10px 12px; min-height: 46px; font-size: 12px; }
#sim-view .stage-step.is-extra .num { width: 23px; height: 23px; }
#sim-view .iv-stage-summary { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; padding: 11px 13px; border-radius: 8px; background: var(--iv-soft); color: var(--iv-muted); }
#sim-view .iv-stage-summary svg { width: 13px; height: 13px; margin-top: 2px; }
#sim-view #stage-count { font-size: 11px; font-weight: 400; line-height: 1.7; color: var(--iv-muted); }
#sim-view #stage-count b { font-weight: 600; color: var(--iv-ink); }
#sim-view .stage-more { margin-top: 13px; font-size: 11px; font-weight: 500; color: var(--iv-muted); min-height: 32px; }
#sim-view .stage-more:hover { color: var(--iv-accent); }
#sim-view .iv-setup-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: var(--iv-muted); font-size: 11px; text-align: center; line-height: 1.6; }
#sim-view .iv-setup-note svg { width: 14px; height: 14px; }

/* Görüşme: bağlam üstte, soru ve cevap aynı hizada. */
#sim-view .iv-room { color: var(--iv-ink); padding-bottom: 25px; }
#sim-view .iv-room > * + * { margin-top: 18px; }
#sim-view .iv-room-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 5px 0 10px; }
#sim-view .iv-room-heading h2 { font-size: 39px; font-weight: 650; letter-spacing: -.05em; margin-top: 13px; }
#sim-view .iv-room-heading h2 em { color: var(--iv-accent); font-style: normal; }
#sim-view .iv-room-heading > p { font-size: 12px; color: var(--iv-muted); line-height: 1.7; padding-bottom: 2px; text-align: right; }
#sim-view .iv-session-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 24px; background: var(--iv-paper); border: 1px solid var(--iv-line); border-radius: 13px; }
#sim-view .iv-session-info { min-width: 0; }
#sim-view .iv-session-label { display: inline-flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 800; letter-spacing: .13em; color: var(--iv-muted); }
#sim-view .iv-session-label .rec-dot { width: 5px; height: 5px; background: var(--iv-accent); }
#sim-view .iv-session-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
#sim-view #question-company-badge { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
#sim-view #question-stage-badge { font-size: 12px; color: var(--iv-muted); }
#sim-view .iv-session-context > svg { width: 13px; height: 13px; color: var(--iv-muted); }
#sim-view #question-origin { font-size: 13px; font-weight: 700; padding: 6px 12px; gap: 6px; margin-top: 12px; max-width: 100%; white-space: normal; line-height: 1.5; }
#sim-view #question-origin svg { width: 16px; height: 16px; }
#sim-view .iv-session-metrics { display: flex; gap: 27px; align-items: center; flex-shrink: 0; }
#sim-view .iv-question-position, #sim-view .iv-time-block { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#sim-view .iv-session-metrics .iv-overline { color: var(--iv-muted); font-size: 8px; }
#sim-view #question-counter { font-size: 18px; font-weight: 500; letter-spacing: -.06em; white-space: nowrap; }
#sim-view .iv-time-block { border-left: 1px solid var(--iv-line); padding-left: 25px; }
#sim-view #sim-timer { display: flex; align-items: center; gap: 8px; color: var(--iv-ink); font-size: 23px; font-weight: 500; line-height: 1.2; border-radius: 6px; padding: 1px 3px; background: transparent; }
#sim-view #sim-timer svg { width: 17px; height: 17px; color: var(--iv-muted); }
#sim-view .iv-room-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
#sim-view .iv-interviewer-card, #sim-view .iv-candidate-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--iv-line); border-radius: 15px; background: var(--iv-paper); box-shadow: var(--iv-shadow); }
#sim-view .iv-person-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 23px 18px; }
#sim-view .iv-person-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
#sim-view .iv-person-avatar { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; }
#sim-view .iv-person-avatar svg { width: 21px; height: 21px; }
#sim-view .iv-interviewer-avatar { background: var(--iv-garden); color: var(--iv-green); }
#sim-view .iv-candidate-avatar { background: var(--iv-accent-soft); color: var(--iv-accent); }
#sim-view .iv-person-name { font-size: 14px; font-weight: 700; line-height: 1.45; }
#sim-view .iv-person-status { font-size: 11px; color: var(--iv-muted); margin-top: 3px; }
#sim-view #interviewer-waveform { color: var(--iv-green); flex-shrink: 0; }
#sim-view .iv-interviewer-profile { font-size: 10px; line-height: 1.65; color: var(--iv-muted); padding: 0 23px 17px; border-bottom: 1px solid var(--iv-line); }
#sim-view .iv-question-body { flex: 1; min-height: 275px; padding: 27px 26px 24px; overflow-wrap: anywhere; }
#sim-view .iv-question-label { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 800; letter-spacing: .12em; color: var(--iv-accent); margin-bottom: 15px; }
#sim-view .iv-question-label svg { width: 12px; height: 12px; }
#sim-view #question-title { font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
#sim-view #question-text { font-size: 14px; line-height: 1.85; color: var(--iv-muted); margin-top: 17px; white-space: pre-line; }
#sim-view .iv-question-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--iv-line); padding: 13px 20px; }
#sim-view .iv-tool-button { min-height: 36px; height: auto; padding: 9px 10px; border: 1px solid transparent; background: transparent; color: var(--iv-green); border-radius: 7px; box-shadow: none; font-size: 11px; font-weight: 600; gap: 7px; text-transform: none; }
#sim-view .iv-tool-button svg { width: 15px; height: 15px; }
#sim-view .iv-tool-button:hover { background: var(--iv-garden); }
#sim-view .iv-question-tools-note { font: italic 11px Georgia, serif; color: var(--iv-muted); margin-left: auto; }
#sim-view .iv-candidate-card { padding: 0 23px 21px; }
#sim-view .iv-answer-workspace { display: flex; flex-direction: column; flex: 1; min-width: 0; }
#sim-view .iv-candidate-card .iv-person-header { padding-inline: 0; padding-bottom: 23px; }
#sim-view .iv-voice-button { min-height: 36px; height: auto; padding: 9px 10px; border: 1px solid var(--iv-line); background: var(--iv-paper); color: var(--iv-ink); border-radius: 8px; font-size: 10px; font-weight: 600; gap: 6px; text-transform: none; box-shadow: none; flex-shrink: 0; }
#sim-view .iv-voice-button svg { width: 14px; height: 14px; }
#sim-view .iv-voice-button:hover { background: var(--iv-accent-soft); color: var(--iv-accent); }
#sim-view .iv-voice-button.recording { color: oklch(var(--er)); background: oklch(var(--er) / .10); border-color: oklch(var(--er) / .25); }
#sim-view .iv-answer-composer { display: flex; flex-direction: column; flex: 1; min-height: 306px; padding: 18px; border: 1px solid var(--iv-line); background: var(--iv-paper); border-radius: 11px; transition: border-color .2s, box-shadow .2s; }
#sim-view .iv-answer-composer:focus-within { border-color: var(--iv-accent); box-shadow: 0 0 0 3px var(--iv-accent-soft); }
#sim-view .iv-answer-composer > label { color: var(--iv-muted); font-size: 8px; }
#sim-view #candidate-answer { display: block; width: 100%; flex: 1; min-height: 220px; padding: 15px 0 8px !important; border: 0 !important; outline: none !important; box-shadow: none !important; border-radius: 0; background: transparent !important; color: var(--iv-ink); font-size: 14px; line-height: 1.85; font-weight: 400; resize: vertical; }
#sim-view #candidate-answer::placeholder { color: var(--iv-muted); opacity: .75; }
#sim-view .iv-composer-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--iv-line); color: var(--iv-muted); font-size: 8px; line-height: 1.5; }
#sim-view .iv-composer-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
#sim-view .iv-composer-foot svg { width: 11px; height: 11px; }
#sim-view .iv-answer-hint { padding: 11px 13px; background: var(--iv-accent-soft); color: var(--iv-accent); border-radius: 8px; font-size: 12px; line-height: 1.6; margin-top: 12px; }
#sim-view .iv-submit-button { min-height: 44px; height: auto; margin-top: 16px; padding: 12px 16px; width: 100%; color: var(--iv-paper); background: var(--iv-green); border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; gap: 8px; text-transform: none; box-shadow: none; }
#sim-view .iv-submit-button:hover { background: color-mix(in srgb, var(--iv-green) 88%, var(--iv-ink)); }
#sim-view .iv-submit-button:disabled { background: var(--iv-soft); color: var(--iv-muted); border-color: var(--iv-line); }
#sim-view .iv-room :where(button, textarea):focus-visible, #sim-view :where(.iv-start-button, .stage-step, .stage-more):focus-visible { outline: 2px solid var(--iv-accent); outline-offset: 3px; }

/* Birebir İK/yönetici görüşmesi: yerel önizleme ve konuşma sırası. */
#sim-view .iv-live-toolbar { padding: 18px 22px; border: 1px solid var(--iv-line); border-radius: 13px; background: var(--iv-garden); }
#sim-view .iv-live-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
#sim-view .iv-live-mode-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#sim-view .iv-live-privacy { padding-top: 16px; margin-top: 16px; border-top: 1px solid color-mix(in srgb, var(--iv-green) 20%, transparent); }
#sim-view .iv-live-privacy strong { display: block; margin-top: 4px; font-size: clamp(16px, 2vw, 22px); font-weight: 800; line-height: 1.35; letter-spacing: -.015em; color: var(--iv-green); }
#sim-view .iv-live-privacy p { font-size: 12px; line-height: 1.65; margin: 7px 0 0; color: var(--iv-muted); }
#sim-view .iv-live-dialog .iv-live-privacy { padding: 18px; border: 1px solid var(--iv-line); border-radius: 11px; background: var(--iv-garden); }
#sim-view .iv-live-dialog .iv-live-privacy strong { font-size: 23px; }
#sim-view .iv-live-toolbar .iv-overline { color: var(--iv-green); }
#sim-view .iv-live-toolbar h3 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; margin: 4px 0; }
#sim-view #live-status { color: var(--iv-muted); font-size: 11px; line-height: 1.6; }
#sim-view .iv-live-toggle { background: var(--iv-green); color: var(--iv-paper); border: 1px solid transparent; border-radius: 9px; min-height: 40px; height: auto; padding: 11px 15px; font-size: 12px; font-weight: 600; text-transform: none; box-shadow: none; }
#sim-view .iv-live-toggle:disabled { opacity: .55; }
#sim-view .iv-live-message { margin-top: 12px; padding: 11px 13px; border: 1px solid var(--iv-line); border-radius: 9px; background: var(--iv-paper); color: var(--iv-accent); font-size: 12px; line-height: 1.6; }
#sim-view .iv-live-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; margin: auto; border: 1px solid var(--iv-line); border-radius: 18px; background: var(--iv-paper); color: var(--iv-ink); box-shadow: 0 25px 80px #0003; }
#sim-view .iv-live-dialog::backdrop { background: #14211abb; backdrop-filter: blur(4px); }
#sim-view .iv-live-dialog > .iv-overline { color: var(--iv-accent); }
#sim-view .iv-live-dialog h3 { font-size: 29px; letter-spacing: -.04em; margin: 10px 0 16px; }
#sim-view .iv-live-dialog p { font-size: 13px; line-height: 1.75; color: var(--iv-muted); margin-top: 12px; }
#sim-view .iv-live-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
#sim-view .iv-live-preview { position: relative; overflow: hidden; border-radius: 11px; margin-bottom: 16px; aspect-ratio: 16 / 9; max-height: 230px; background: #17271f; }
#sim-view #live-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
#sim-view .iv-live-preview-label { position: absolute; bottom: 10px; left: 10px; padding: 5px 9px; border-radius: 6px; color: #fff; background: #17271fcc; font-size: 10px; }
#sim-view .iv-live-exit { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 7px 11px; border: 1px solid #ffffff33; border-radius: 7px; color: #f2f3ed; background: #17271fcc; font-size: 10px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
#sim-view .iv-live-exit:hover { background: #17271f; }
#sim-view .iv-live-camera-placeholder .iv-live-toggle { margin-top: 2px; }
#sim-view .iv-live .iv-live-preview { flex: 1; min-height: 330px; max-height: none; margin-bottom: 0; aspect-ratio: auto; }
#sim-view .iv-live #live-video { position: absolute; inset: 0; }
#sim-view .iv-live-camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 25px; color: #f2f3ed; background: radial-gradient(ellipse at 50% 35%, #314d3d, #17271f 75%); text-align: center; }
#sim-view .iv-live-camera-placeholder > svg { width: 42px; height: 42px; stroke-width: 1.2; color: #c2d3be; }
#sim-view .iv-live-camera-placeholder strong { font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
#sim-view .iv-live-camera-placeholder p { max-width: 270px; font-size: 12px; line-height: 1.6; color: #c2d3be; }
#sim-view .iv-live-camera-placeholder > span { font-size: 8px; font-weight: 700; letter-spacing: .12em; color: #c2d3be; margin-top: 12px; }
#sim-view .iv-live-presence { display: flex; flex-direction: column; align-items: center; gap: 19px; padding: 27px 20px 15px; color: var(--iv-green); }
#sim-view .iv-live-orbit { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--iv-green) 20%, transparent); background: var(--iv-soft); box-shadow: 0 0 0 9px var(--iv-garden); }
#sim-view .iv-live-orbit span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--iv-green); color: var(--iv-paper); font-family: 'Bricolage Grotesque', sans-serif; font-size: 29px; font-weight: 500; }
#sim-view .iv-live-presence[data-state="speaking"] .iv-live-orbit { animation: iv-speaking 1.35s ease-in-out infinite; }
#sim-view .iv-live .iv-question-body { min-height: 155px; padding-top: 19px; }
#sim-view .iv-live > .iv-room-heading { display: none; }
#sim-view .iv-live .iv-answer-composer { min-height: 170px; }
#sim-view .iv-live #candidate-answer { min-height: 110px; }
#sim-view .iv-live-transcript { padding: 23px; border: 1px solid var(--iv-line); border-radius: 15px; background: var(--iv-paper); box-shadow: var(--iv-shadow); }
#sim-view .iv-live-listening { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
#sim-view .iv-live-listening strong { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--iv-green); }
#sim-view .iv-live-listening p { margin-top: 5px; font-size: 11px; line-height: 1.6; color: var(--iv-muted); }
#sim-view .iv-live-listening-wave { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 4px; width: 46px; height: 46px; border-radius: 12px; background: var(--iv-garden); }
#sim-view .iv-live-listening-wave span { width: 3px; height: 5px; border-radius: 3px; background: var(--iv-green); transform-origin: center; }
#sim-view .iv-live-listening[data-state="listening"] .iv-live-listening-wave span { animation: iv-listening .85s ease-in-out infinite alternate; }
#sim-view .iv-live-listening-wave span:nth-child(2), #sim-view .iv-live-listening-wave span:nth-child(4) { animation-delay: -.3s; }
#sim-view .iv-live-listening-wave span:nth-child(3) { animation-delay: -.65s; }
#sim-view .iv-live-transcript .iv-submit-button { align-self: flex-end; width: auto; min-width: 210px; }
@keyframes iv-listening { to { transform: scaleY(4); } }
#sim-view .iv-live-reply { padding: 18px 23px; border-top: 1px solid var(--iv-line); background: var(--iv-soft); overflow-wrap: anywhere; }
#sim-view .iv-live-reply p { margin: 9px 0 13px; font-size: 14px; line-height: 1.7; }
#sim-view .iv-live-reply > div { display: flex; flex-wrap: wrap; gap: 8px; }
#sim-view .iv-live-reply small { display: block; margin-top: 8px; color: var(--iv-muted); font-size: 10px; }
@keyframes iv-speaking { 50% { box-shadow: 0 0 0 17px var(--iv-garden); transform: scale(1.03); } }
@media (max-width: 640px) {
  #sim-view .iv-live-toolbar-row { align-items: stretch; flex-direction: column; gap: 12px; }
  #sim-view .iv-live-mode-actions > button { flex: 1; }
  #sim-view .iv-live-transcript { padding: 17px; }
  #sim-view .iv-live-transcript .iv-submit-button { width: 100%; }
  #sim-view .iv-live .iv-live-preview { min-height: 260px; }
  #sim-view .iv-live-dialog { padding: 22px; }
  #sim-view .iv-live-dialog-actions > button { flex: 1; }
  #sim-view .iv-live .iv-live-presence { padding-top: 18px; }
  #sim-view .iv-live .iv-question-body { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { #sim-view .iv-live-presence .iv-live-orbit, #sim-view .iv-live-listening .iv-live-listening-wave span { animation: none; } }

/* Alt eylem şeridi yalnız görüşme sekmesinde görünür. */
#sim-view #next-question-bar { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(1104px, calc(100% - 32px)); padding: 0; border: 1px solid var(--iv-line); border-radius: 13px; background: color-mix(in srgb, var(--iv-paper) 96%, transparent); box-shadow: 0 7px 40px -14px #24302b35; animation: iv-dock-in .2s ease-out; }
#sim-view .iv-next-inner { display: flex; align-items: center; gap: 13px; padding: 12px 16px; }
#sim-view #next-score { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 500; background: var(--iv-soft); color: var(--iv-muted); }
#sim-view #next-score.good { background: var(--iv-garden); color: var(--iv-green); }
#sim-view #next-score.bad { background: oklch(var(--er) / .10); color: oklch(var(--er)); }
#sim-view .iv-next-hint { font-size: 12px; color: var(--iv-muted); line-height: 1.5; min-width: 0; }
#sim-view .iv-next-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; flex-shrink: 0; }
#sim-view .iv-end-button, #sim-view .iv-next-button { min-height: 38px; height: auto; font-size: 11px; font-weight: 600; border-radius: 8px; padding: 10px 14px; gap: 7px; text-transform: none; box-shadow: none; }
#sim-view .iv-end-button { border: 1px solid oklch(var(--er) / .22); background: transparent; color: oklch(var(--er)); }
#sim-view .iv-end-button:hover { background: oklch(var(--er) / .08); border-color: oklch(var(--er) / .4); }
#sim-view .iv-next-button { background: var(--iv-green); color: var(--iv-paper); border: 1px solid transparent; }
#sim-view .iv-next-button:hover { background: color-mix(in srgb, var(--iv-green) 88%, var(--iv-ink)); }
#sim-view .iv-next-inner button svg { width: 14px; height: 14px; }
@keyframes iv-dock-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Aynı sekmenin kodlama, test ve sonuç yüzeylerinin dış çerçevesi. */
#sim-view :where(#process-bar, #code-panel, #quiz-panel, #feedback-report-panel, #interview-summary) .surface { border-color: var(--iv-line); border-width: 1px; border-radius: 14px; background: var(--iv-paper); box-shadow: var(--iv-shadow); }
#sim-view #process-bar .process-step.now { background: var(--iv-green); color: var(--iv-paper); }
#sim-view #process-bar .process-step.now .process-dot { background: color-mix(in srgb, var(--iv-paper) 22%, transparent); color: var(--iv-paper); }
#sim-view #process-bar .process-step.done .process-dot { background: var(--iv-garden); color: var(--iv-green); }
#sim-view .iv-room:has(#interview-summary:not([hidden])) > :where(.iv-room-heading, .iv-session-ribbon) { display: none; }
#sim-view :where(#quiz-panel, #feedback-report-panel, #interview-summary) { scroll-margin-top: 90px; }

@media (max-width: 1050px) {
  #sim-view .iv-hero { grid-template-columns: 1fr 330px; gap: 20px; }
  #sim-view .iv-art-note { left: 80px; }
  #sim-view .iv-art-mic { left: 179px; }
  #sim-view .iv-art-spark { left: 33px; }
  #sim-view .iv-hero-features { gap: 9px 14px; }
  #sim-view .iv-person-header { padding-inline: 18px; }
  #sim-view .iv-candidate-card { padding-inline: 18px; }
  #sim-view .iv-person-name { font-size: 13px; }
  #sim-view .iv-question-body { padding-inline: 21px; }
  #sim-view .iv-question-tools-note { display: none; }
}
@media (max-width: 900px) {
  #sim-view .iv-hero { grid-template-columns: 1fr 290px; }
  #sim-view .iv-hero h1 { font-size: 43px; }
  #sim-view .iv-hero-copy > p { font-size: 12px; }
  #sim-view .iv-hero-features { gap: 8px 12px; }
  #sim-view .iv-hero-features > span { font-size: 9px; }
  #sim-view .iv-art-note { left: 65px; }
  #sim-view .iv-art-mic { left: 164px; }
  #sim-view .iv-art-spark { left: 21px; }
  #sim-view .iv-rehearsal-caption { padding-inline: 16px; }
  #sim-view .iv-rehearsal-caption p { font-size: 11px; }
  #sim-view .iv-config-panel { padding: 25px; }
  #sim-view .iv-start-button { grid-column: 1 / -1; }
  #sim-view .iv-room-tiles { grid-template-columns: 1fr; gap: 16px; }
  #sim-view .iv-question-body { min-height: 190px; }
  #sim-view .iv-question-tools-note { display: block; }
  #sim-view .iv-person-name { font-size: 14px; }
  #sim-view .iv-answer-composer { min-height: 300px; }
  #sim-view #candidate-answer { min-height: 215px; }
  #sim-view .iv-room { scroll-margin-top: 130px; }
}
@media (max-width: 600px) {
  #sim-view .iv-hero { grid-template-columns: 1fr; gap: 19px; padding: 0 0 22px; }
  #sim-view .iv-eyebrow { font-size: 8px; gap: 7px; letter-spacing: .08em; }
  #sim-view .iv-hero h1 { font-size: 43px; margin-top: 16px; }
  #sim-view .iv-hero-copy > p { font-size: 13px; }
  #sim-view .iv-hero-features { margin-top: 17px; gap: 8px 14px; }
  #sim-view .iv-hero-features > span { font-size: 9px; }
  #sim-view .iv-rehearsal-card { display: flex; align-items: center; min-height: 99px; border-radius: 12px; }
  #sim-view .iv-rehearsal-art { width: 115px; height: 99px; flex-shrink: 0; }
  #sim-view .iv-art-orbit, #sim-view .iv-art-spark, #sim-view .iv-art-caption { display: none; }
  #sim-view .iv-art-note { width: 65px; height: 78px; top: 9px; left: 14px; padding: 8px; border-radius: 6px; }
  #sim-view .iv-art-note > span:first-child { font-size: 4px; }
  #sim-view .iv-art-note > b { font-size: 13px; margin: 8px 0 7px; }
  #sim-view .iv-art-note-line { height: 2px; margin-top: 3px; }
  #sim-view .iv-art-mic { width: 45px; height: 55px; top: 27px; left: 65px; border-radius: 10px; gap: 5px; }
  #sim-view .iv-art-mic > svg { width: 22px; height: 22px; }
  #sim-view .iv-art-wave { height: 8px; gap: 2px; transform: scale(.65); }
  #sim-view .iv-rehearsal-caption { padding: 15px 14px 15px 5px; border: 0; }
  #sim-view .iv-rehearsal-caption .iv-overline { font-size: 7px; letter-spacing: .1em; }
  #sim-view .iv-rehearsal-caption p { font-size: 12px; line-height: 1.5; padding: 0; }
  #sim-view .iv-rehearsal-caption > svg { display: none; }
  #sim-view .iv-config-panel { margin-top: 20px; padding: 22px 19px 17px; border-radius: 13px; }
  #sim-view .iv-config-heading { margin-bottom: 23px; gap: 10px; align-items: flex-start; }
  #sim-view .iv-config-heading h2 { font-size: 23px; line-height: 1.2; }
  #sim-view .iv-config-heading p { font-size: 11px; }
  #sim-view .iv-config-mark { display: none; }
  #sim-view .iv-start-button { margin-top: 4px; font-size: 13px; }
  #sim-view .iv-stage-area { margin-top: 23px; padding-top: 20px; }
  #sim-view .iv-stage-heading { align-items: flex-start; gap: 8px; }
  #sim-view .iv-stage-heading h3 { font-size: 20px; }
  #sim-view #stage-confidence { max-width: 135px; font-size: 9px; line-height: 1.5; }
  #sim-view #stage-steps { grid-template-columns: 1fr; gap: 8px; }
  #sim-view .stage-step { min-height: 66px; padding: 13px; }
  #sim-view .stage-step .num { width: 27px; height: 27px; }
  #sim-view #stage-steps-other { flex-direction: column; }
  #sim-view #stage-count { font-size: 10px; }
  #sim-view .iv-stage-summary { padding: 11px; }
  #sim-view .iv-setup-note { font-size: 10px; padding: 0 9px; }
  #sim-view .iv-room-heading { align-items: flex-start; gap: 10px; padding: 0 0 5px; }
  #sim-view .iv-room-heading h2 { font-size: 33px; }
  #sim-view .iv-room-heading > p { display: none; }
  #sim-view .iv-session-ribbon { flex-direction: column; align-items: stretch; gap: 16px; padding: 17px 18px; border-radius: 12px; }
  #sim-view .iv-session-metrics { justify-content: space-between; gap: 16px; border-top: 1px solid var(--iv-line); padding-top: 14px; }
  #sim-view .iv-question-position { align-items: flex-start; gap: 6px; }
  #sim-view .iv-time-block { border: 0; padding: 0; gap: 6px; }
  #sim-view #question-counter { font-size: 16px; }
  #sim-view #sim-timer { font-size: 21px; }
  #sim-view #question-stage-badge { font-size: 11px; }
  #sim-view #question-company-badge { font-size: 16px; }
  #sim-view .iv-person-header { padding: 18px 17px 15px; gap: 8px; }
  #sim-view .iv-person-avatar { width: 36px; height: 36px; border-radius: 10px; }
  #sim-view .iv-person-avatar svg { width: 20px; height: 20px; }
  #sim-view .iv-person-identity { gap: 9px; }
  #sim-view .iv-person-name { font-size: 12px; }
  #sim-view .iv-person-status { font-size: 10px; }
  #sim-view .iv-interviewer-profile { padding: 0 17px 14px; font-size: 9px; }
  #sim-view .iv-question-body { padding: 23px 20px; min-height: 190px; }
  #sim-view #question-title { font-size: 22px; }
  #sim-view #question-text { font-size: 14px; }
  #sim-view .iv-question-tools { padding: 11px 13px; }
  #sim-view .iv-question-tools-note { display: none; }
  #sim-view .iv-tool-button { min-height: 40px; font-size: 11px; }
  #sim-view .iv-candidate-card { padding: 0 16px 17px; }
  #sim-view .iv-candidate-card .iv-person-header { padding-bottom: 18px; flex-wrap: wrap; }
  #sim-view .iv-voice-button { min-height: 37px; font-size: 9px; padding: 9px; gap: 4px; }
  #sim-view .iv-answer-composer { padding: 15px; min-height: 316px; }
  #sim-view #candidate-answer { font-size: 16px; min-height: 235px; line-height: 1.75; }
  #sim-view #candidate-answer::placeholder { font-size: 13px; }
  #sim-view .iv-composer-foot { font-size: 8px; }
  #sim-view .iv-submit-button { min-height: 46px; }
  #sim-view #next-question-bar { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); border-radius: 11px; }
  #sim-view .iv-next-inner { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; padding: 11px 12px; }
  #sim-view #next-score { width: 30px; height: 32px; font-size: 11px; }
  #sim-view .iv-next-hint { font-size: 10px; }
  #sim-view .iv-end-button, #sim-view .iv-next-button { font-size: 10px; min-height: 36px; padding: 9px 10px; gap: 5px; }
  #sim-view .iv-next-inner:has(#btn-next-question:not([hidden])) .iv-next-hint { grid-column: 2 / -1; }
  #sim-view .iv-next-inner:has(#btn-next-question:not([hidden])) .iv-next-actions { grid-column: 1 / -1; justify-content: flex-end; width: 100%; }
  #sim-view :where(#quiz-panel, #feedback-report-panel, #interview-summary) { scroll-margin-top: 135px; }
}
@media (prefers-reduced-motion: reduce) {
  #sim-view :where(.iv-hero, .iv-room, .iv-stage-area) *, #sim-view #next-question-bar { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  #sim-view .stage-step:hover { transform: none; }
}
@media (forced-colors: active) {
  #sim-view .stage-step[aria-checked="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  #sim-view :where(.iv-interviewer-card, .iv-candidate-card, .iv-session-ribbon, .iv-answer-composer) { border-color: CanvasText; }
}
