/* Interview Room (2026-11-07): loaded with interview.js */
.iv-wrap { display: grid; gap: 14px; min-width: 0; }
.iv-wrap .pp-card { margin-bottom: 0; }
.iv-grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.iv-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border-default); }
.iv-hero h3 { margin: 0 0 4px; font-size: 19px; }
.iv-hero p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; max-width: 62ch; }
.iv-hero-left { text-align: center; flex-shrink: 0; }
.iv-hero-left b { display: block; font-size: 28px; line-height: 1; }
.iv-hero-left span { font-size: 12px; color: var(--text-secondary); }
.iv-resume { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface-2); }
.iv-resume span { flex: 1; min-width: 160px; }

.iv-form { display: grid; gap: 16px; }
.iv-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.iv-form legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 8px; }
.iv-form legend small, .iv-more small { font-weight: 400; color: var(--text-secondary); }
.iv-form select, .iv-form input[type=text], .iv-form input:not([type]), .iv-form textarea, .iv-more input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface-2); color: var(--text-primary); font: inherit; font-size: 15px; box-sizing: border-box; }
.iv-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.iv-choices label { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid var(--border-default); border-radius: 12px; cursor: pointer; background: var(--bg-surface); }
.iv-choices label.on { border-color: var(--brand-500, #6366f1); box-shadow: inset 0 0 0 1px var(--brand-500, #6366f1); background: var(--bg-surface-2); }
.iv-choices label.disabled { opacity: .55; cursor: not-allowed; }
.iv-choices label:focus-within { outline: 2px solid var(--brand-500, #6366f1); outline-offset: 2px; }
.iv-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iv-choices span { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.iv-file { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.iv-file.col { display: grid; }
.iv-file > span { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.iv-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.iv-more summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.iv-more label { display: grid; gap: 5px; margin-top: 10px; font-size: 14px; }
.iv-weak { display: flex; gap: 9px; margin: 0; padding: 10px 12px; font-size: 14px; border-radius: 10px; background: var(--bg-surface-2); line-height: 1.45; }

/* the room */
.iv-steps { display: flex; gap: 4px; }
.iv-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--border-default); }
.iv-steps .done { background: var(--brand-500, #6366f1); }
.iv-steps .now { background: var(--brand-500, #6366f1); opacity: .5; }
.iv-roomhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.iv-roomhead small { display: block; color: var(--text-secondary); font-size: 13px; }
.iv-roomhead b { font-size: 18px; }
.iv-meta { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text-secondary); }
.iv-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-primary); }
.iv-timer.long { color: #b45309; }
.iv-q { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border-default); }
.iv-panel { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: var(--brand-500, #6366f1); }
.iv-q-body { display: flex; gap: 10px; flex: 1; min-width: 0; align-items: flex-start; }
.iv-q-body p { margin: 0; flex: 1; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.iv-replay { background: transparent; border: 0; color: var(--text-secondary); cursor: pointer; padding: 8px; font-size: 16px; border-radius: 8px; }
.iv-replay:hover { background: var(--bg-surface-2); }
.iv-error { padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #b91c1c; background: color-mix(in srgb, #dc2626 10%, transparent); }
[data-theme="dark"] .iv-error, [data-theme="dim"] .iv-error { color: #fca5a5; }
.iv-answer { display: grid; gap: 10px; }
.iv-answer textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 16px; line-height: 1.55; resize: vertical; }
.iv-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iv-mic.on { background: #dc2626; border-color: #dc2626; color: #fff; }
.iv-end { color: var(--text-secondary); }

/* the report */
.iv-reporthead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.iv-reporthead .iv-grow b { display: block; }
.iv-reporthead small { color: var(--text-secondary); }
.iv-result { display: flex; gap: 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border-default); background: var(--bg-surface); align-items: center; flex-wrap: wrap; }
.iv-score { flex-shrink: 0; }
.iv-score b { display: block; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.iv-score span { font-size: 13px; color: var(--text-secondary); }
.iv-res-body { flex: 1; min-width: 220px; }
.iv-res-body h3 { margin: 0 0 4px; font-size: 20px; }
.iv-res-body p { margin: 0; line-height: 1.5; }
.iv-result.ok h3 i, .iv-verdict-sm.ok i { color: #059669; }
.iv-result.warn h3 i, .iv-verdict-sm.warn i { color: #d97706; }
.iv-result.bad h3 i, .iv-verdict-sm.bad i { color: #dc2626; }
.iv-result.info h3 i, .iv-verdict-sm.info i { color: var(--text-secondary); }
.iv-verdict-sm { white-space: nowrap; font-size: 13px; }
.iv-panelnote { margin-top: 10px !important; font-style: italic; color: var(--text-secondary); }
.iv-panelnote small { display: block; font-style: normal; font-size: 12px; margin-top: 2px; }
.iv-pending { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.iv-pending p { margin: 0; }
.iv-bars { display: grid; gap: 9px; }
.iv-bar { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 34px auto; gap: 10px; align-items: center; font-size: 14px; }
.iv-bar i { height: 8px; border-radius: 4px; background: var(--bg-surface-2); overflow: hidden; display: block; }
.iv-bar u { display: block; height: 100%; border-radius: 4px; background: var(--brand-500, #6366f1); }
.iv-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.iv-bar small { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.iv-tiles { margin-top: 4px; }
.iv-note { font-size: 13px; color: var(--text-secondary); margin: 10px 0 0; }
.iv-gaps { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.iv-gaps p { margin: 3px 0 0; line-height: 1.5; font-size: 14px; }
.iv-fix i, .iv-good i, .iv-miss i { margin-right: 4px; color: var(--text-secondary); }
.iv-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iv-plan label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; }
.iv-plan input { margin-top: 4px; flex-shrink: 0; }
.iv-plan input:checked + span { color: var(--text-secondary); text-decoration: line-through; }
.iv-revise { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.iv-revise div { padding: 10px 12px; border-radius: 10px; background: var(--bg-surface-2); display: grid; gap: 2px; }
.iv-revise span { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.iv-turns { display: grid; gap: 8px; }
.iv-turn { border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface); }
.iv-turn summary { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; cursor: pointer; list-style: none; }
.iv-turn summary::-webkit-details-marker { display: none; }
.iv-turn-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--bg-surface-2); }
.iv-turn-q { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.iv-turn-s { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.iv-turn-s small { color: var(--text-secondary); }
.iv-turn.weak .iv-turn-s b, .iv-turn.skip .iv-turn-s b { color: #dc2626; }
.iv-turn.good .iv-turn-s b { color: #059669; }
.iv-turn-body { padding: 0 13px 13px; font-size: 14px; line-height: 1.55; }
.iv-turn-body h5 { margin: 12px 0 4px; font-size: 13px; }
.iv-turn-body p { margin: 6px 0; overflow-wrap: anywhere; }
.iv-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.iv-tags span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg-surface-2); color: var(--text-secondary); }
.iv-said { padding: 9px 11px; border-radius: 9px; background: var(--bg-surface-2); white-space: pre-wrap; }
.iv-model { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border-default); white-space: pre-line; }
.iv-retry-res { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--border-default); }
.iv-retry { margin-top: 10px; display: grid; gap: 8px; justify-items: start; }
.iv-retry textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface-2); color: var(--text-primary); font: inherit; font-size: 15px; }
.iv-actions { justify-content: space-between; }
.iv-del { color: #dc2626; border-color: rgba(220,38,38,.35); }

/* progress */
.iv-chart { position: relative; margin: 6px 0 4px; }
.iv-chart svg { width: 100%; height: auto; display: block; }
.iv-grid { stroke: var(--border-default); stroke-width: 1; }
.iv-axis { font-size: 12px; fill: var(--text-secondary); }
.iv-val { font-size: 13px; font-weight: 700; fill: var(--text-primary); }
.iv-line { fill: none; stroke: var(--brand-500, #6366f1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.iv-mark { fill: var(--brand-500, #6366f1); stroke: var(--bg-surface); stroke-width: 2; }
.iv-dot { cursor: default; outline: none; }
.iv-dot:focus .iv-mark, .iv-dot:hover .iv-mark { stroke: var(--text-primary); }
.iv-tip { position: absolute; padding: 3px 8px; font-size: 12px; border-radius: 6px; background: var(--text-primary); color: var(--bg-surface); white-space: nowrap; pointer-events: none; }
.iv-table-wrap { overflow-x: auto; margin-top: 12px; }

@media (max-width: 640px) {
  .iv-hero { align-items: flex-start; }
  .iv-q { padding: 14px; gap: 10px; }
  .iv-panel { width: 36px; height: 36px; font-size: 16px; }
  .iv-q-body p { font-size: 16px; }
  .iv-bar { grid-template-columns: 1fr auto; row-gap: 3px; }
  .iv-bar i { grid-column: 1 / -1; grid-row: 2; }
  .iv-bar small { grid-column: 1 / -1; }
  .iv-tools .btn { flex: 1 1 auto; justify-content: center; }
  .iv-tools .iv-grow { display: none; }
  .iv-table-wrap th:nth-child(3), .iv-table-wrap td:nth-child(3) { display: none; }
  .iv-table-wrap th, .iv-table-wrap td { padding-left: 4px; padding-right: 4px; }
  .iv-verdict-sm { white-space: normal; }
}
@media print {
  #appHeader, .app-footer, .pp-head, .pp-tabs, .iv-reporthead button, .iv-retry, .iv-actions, #askFab { display: none !important; }
  .iv-turn { break-inside: avoid; }
  .iv-wrap { color: #000; }
}
.iv-wrap .rv-sub { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.45; }
.iv-wrap .rv-actions { justify-content: flex-start; flex-wrap: wrap; align-items: center; }
.iv-wrap .iv-actions { justify-content: space-between; }
