:root {
    --coach-navy: #07192d;
    --coach-blue: #1f64e7;
    --coach-blue-dark: #0d3f86;
    --coach-gold: #f6c33c;
    --coach-ink: #102846;
    --coach-muted: #58708f;
    --coach-border: #d7e2f0;
    --coach-surface: #ffffff;
    --coach-soft: #f4f8fd;
    --coach-green: #087f5b;
    --coach-red: #b42318;
}

.interview-page {
    margin: 0;
    color: var(--coach-ink);
    background: #edf3fa;
}

.interview-main {
    width: min(1820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.interview-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--coach-muted);
    font-size: .95rem;
}

.interview-breadcrumb a {
    color: var(--coach-blue);
    font-weight: 700;
    text-decoration: none;
}

.interview-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    gap: 28px;
    align-items: center;
    padding: 34px 38px;
    border: 1px solid #173b68;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 73% 10%, rgba(62, 139, 255, .22), transparent 32%),
        linear-gradient(125deg, #07192d 0%, #0b2a52 100%);
    box-shadow: 0 18px 45px rgba(7, 25, 45, .14);
}

.interview-intro small,
.interview-builder > small,
.prompt-results-head small,
.framework-panel > small,
.review-panel > small,
.model-panel > small,
.followup-panel > small {
    color: var(--coach-gold);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.interview-intro h1 {
    margin: 8px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1.02;
}

.interview-intro > div > p {
    max-width: 850px;
    margin: 0;
    color: #d3e3f8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.interview-intro-note {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-left: 4px solid var(--coach-gold);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}

.interview-intro-note strong { color: var(--coach-gold); font-size: 1rem; }
.interview-intro-note p { margin: 7px 0 0; color: #e8f1fc; line-height: 1.55; }

.interview-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.interview-dashboard article {
    min-height: 118px;
    padding: 20px 22px;
    border: 1px solid var(--coach-border);
    border-radius: 14px;
    background: var(--coach-surface);
}

.interview-dashboard small { display: block; color: var(--coach-muted); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.interview-dashboard strong { display: block; margin: 9px 0 2px; color: var(--coach-blue-dark); font-size: 1.75rem; line-height: 1.1; }
.interview-dashboard article:last-child strong { font-size: 1.1rem; }
.interview-dashboard span { color: var(--coach-muted); font-size: .84rem; }

.interview-library {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    min-height: 660px;
    overflow: hidden;
    border: 1px solid var(--coach-border);
    border-radius: 18px;
    background: var(--coach-surface);
    box-shadow: 0 12px 36px rgba(32, 64, 100, .08);
}

.interview-builder {
    padding: 28px;
    border-right: 1px solid var(--coach-border);
    background: #f7faff;
}

.interview-builder h2 { margin: 8px 0 26px; color: var(--coach-ink); font-size: 1.55rem; }
.interview-builder label,
.answer-label,
.remediation > label:not(.retry-check) { display: block; margin: 17px 0 7px; color: var(--coach-ink); font-weight: 800; }

.interview-builder select,
.interview-builder input,
.question-panel textarea,
.remediation textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfcfe3;
    border-radius: 10px;
    color: var(--coach-ink);
    background: #fff;
    font: inherit;
}

.interview-builder select,
.interview-builder input { min-height: 50px; padding: 10px 12px; }
.question-panel textarea,
.remediation textarea { padding: 14px 15px; line-height: 1.55; resize: vertical; }
.interview-builder select:focus,
.interview-builder input:focus,
.question-panel textarea:focus,
.remediation textarea:focus { outline: 3px solid rgba(31,100,231,.18); border-color: var(--coach-blue); }

.field-help { margin: 8px 0 0; color: var(--coach-muted); font-size: .87rem; line-height: 1.5; }

#loadPrompts,
#reviewAnswer,
#calculateReview,
#completeReview,
.think-timer button {
    min-height: 48px;
    border: 1px solid var(--coach-blue);
    border-radius: 10px;
    color: #fff;
    background: var(--coach-blue);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#loadPrompts { width: 100%; margin-top: 22px; }
button:disabled { cursor: not-allowed !important; opacity: .55; }

.builder-rule {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #efd171;
    border-radius: 11px;
    background: #fff9e7;
}

.builder-rule strong { color: #765400; }
.builder-rule p { margin: 6px 0 0; color: #694f10; font-size: .9rem; line-height: 1.5; }

.prompt-results { min-width: 0; padding: 30px; }
.prompt-results-head { display: flex; align-items: flex-start; justify-content: space-between; min-height: 75px; border-bottom: 1px solid var(--coach-border); }
.prompt-results-head h2 { margin: 7px 0 5px; font-size: 1.65rem; }
.prompt-results-head p { margin: 0 0 18px; color: var(--coach-muted); }

.interview-empty {
    display: grid;
    min-height: 460px;
    place-content: center;
    text-align: center;
}

.interview-empty span { display: grid; width: 72px; height: 72px; margin: 0 auto 18px; place-items: center; border-radius: 20px; background: #e6effd; font-size: 2rem; }
.interview-empty h3 { margin: 0 0 8px; font-size: 1.5rem; }
.interview-empty p { max-width: 520px; margin: 0; color: var(--coach-muted); line-height: 1.6; }

.interview-loading { display: grid; min-height: 420px; place-content: center; justify-items: center; gap: 14px; color: var(--coach-muted); }
.interview-loading span { width: 38px; height: 38px; border: 4px solid #d9e6f8; border-top-color: var(--coach-blue); border-radius: 50%; animation: coach-spin .7s linear infinite; }
@keyframes coach-spin { to { transform: rotate(360deg); } }

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0;
}

.prompt-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 21px;
    border: 1px solid var(--coach-border);
    border-top: 4px solid #8eb8f5;
    border-radius: 13px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.prompt-card:hover { transform: translateY(-2px); border-color: #8bb6ef; box-shadow: 0 12px 28px rgba(31, 73, 125, .1); }
.prompt-card.is-complete { border-top-color: #27a77b; }
.prompt-card-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-card-meta span { padding: 5px 8px; border-radius: 999px; color: #1f5699; background: #eaf2ff; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.prompt-card-meta span:last-child { color: #6d5200; background: #fff4c9; }
.prompt-card h3 { margin: 17px 0 10px; font-size: 1.18rem; line-height: 1.45; }
.prompt-card p { margin: 0 0 18px; color: var(--coach-muted); font-size: .92rem; line-height: 1.5; }
.prompt-card button { min-height: 43px; margin-top: auto; border: 1px solid #9cbce6; border-radius: 9px; color: var(--coach-blue-dark); background: #f3f7fd; font: inherit; font-weight: 800; cursor: pointer; }
.prompt-card button:hover { color: #fff; background: var(--coach-blue-dark); }

.prompt-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 18px; border-top: 1px solid var(--coach-border); }
.prompt-pagination button,
.secondary-button { min-height: 42px; padding: 9px 15px; border: 1px solid #9db8d8; border-radius: 9px; color: var(--coach-blue-dark); background: #f5f8fc; font: inherit; font-weight: 800; cursor: pointer; }
.prompt-pagination span { color: var(--coach-muted); font-size: .9rem; }
.interview-error,.review-warning { color: var(--coach-red); font-weight: 700; }

.practice-workspace {
    overflow: hidden;
    border: 1px solid #173b68;
    border-radius: 18px;
    background: var(--coach-surface);
    box-shadow: 0 18px 45px rgba(7, 25, 45, .13);
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    color: #d8e8fb;
    background: var(--coach-navy);
}

.workspace-toolbar > div { display: flex; align-items: center; gap: 12px; }
.workspace-toolbar .secondary-button { color: #fff; border-color: #46698f; background: #173653; }
.workspace-toolbar span { font-size: .9rem; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 720px; }
.question-panel { min-width: 0; padding: 34px; border-right: 1px solid var(--coach-border); }
.coach-panel { min-width: 0; padding: 30px; background: #f7faff; }
.prompt-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-meta span { padding: 6px 10px; border-radius: 999px; color: #0b4f9e; background: #e5f0ff; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.question-panel h2 { margin: 18px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.2; }
.question-context { color: var(--coach-muted); font-size: 1rem; line-height: 1.65; }

.interviewer-goal { margin: 23px 0; padding: 17px 19px; border-left: 4px solid var(--coach-blue); border-radius: 8px; background: #eef5ff; }
.interviewer-goal small { color: #1c579b; font-weight: 900; letter-spacing: .08em; }
.interviewer-goal p { margin: 7px 0 0; line-height: 1.55; }

.think-timer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid #bed2eb; border-radius: 12px; background: #fbfdff; }
.think-timer small { display: block; color: var(--coach-muted); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.think-timer strong { display: block; margin: 5px 0; color: var(--coach-blue-dark); font-size: 1.65rem; }
.think-timer p { margin: 0; color: var(--coach-muted); font-size: .85rem; }
.think-timer button { flex: 0 0 auto; padding: 10px 16px; }

.answer-label { margin-top: 25px; }
.draft-status { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--coach-muted); font-size: .8rem; }
.primary-actions,.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-actions button,.result-actions button { flex: 1 1 190px; padding: 9px 14px; }
.action-note { margin: 10px 0 0; color: var(--coach-muted); font-size: .85rem; line-height: 1.45; }

.coach-welcome { display: grid; min-height: 610px; place-content: center; justify-items: center; text-align: center; }
.coach-welcome > span { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 22px; color: var(--coach-blue); background: #e5effe; font-size: 2.5rem; font-weight: 900; }
.coach-welcome h3 { margin: 20px 0 9px; font-size: 1.5rem; }
.coach-welcome p { max-width: 450px; margin: 0; color: var(--coach-muted); line-height: 1.65; }

.framework-panel,.review-panel,.review-result,.model-panel,.followup-panel { margin-bottom: 18px; padding: 22px; border: 1px solid var(--coach-border); border-radius: 13px; background: #fff; }
.framework-panel h3,.review-panel h3,.model-panel h3,.followup-panel h3 { margin: 7px 0 12px; font-size: 1.25rem; }
.framework-panel ol,.remediation ol { margin: 0; padding-left: 22px; }
.framework-panel li,.remediation li { margin-bottom: 10px; line-height: 1.5; }
.avoid-box { margin-top: 16px; padding: 13px; border-radius: 9px; color: #773329; background: #fff0ed; }
.avoid-box p { margin: 5px 0 0; line-height: 1.45; }

.review-panel > p { color: var(--coach-muted); line-height: 1.5; }
.rubric-list { display: grid; gap: 9px; margin: 16px 0; }
.rubric-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--coach-border); border-radius: 9px; cursor: pointer; }
.rubric-item:has(input:checked) { border-color: #71bc9e; background: #eaf8f2; }
.rubric-item input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--coach-green); }
#calculateReview { width: 100%; }

.review-score { display: flex; align-items: center; gap: 14px; }
.review-score > span { display: grid; flex: 0 0 72px; height: 72px; place-items: center; border-radius: 50%; color: #fff; background: var(--coach-blue-dark); font-size: 1.25rem; font-weight: 900; }
.review-score small { color: #9a6b00; font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.review-score h3 { margin: 5px 0 0; font-size: 1.2rem; }
.review-result > p { color: var(--coach-muted); line-height: 1.55; }
.missing-evidence { padding: 14px 16px; border-radius: 9px; background: #fff8e4; }
.missing-evidence ul { margin: 8px 0 0; padding-left: 20px; }
.missing-evidence li { margin-bottom: 7px; line-height: 1.4; }
.remediation { margin-top: 15px; padding: 16px; border: 1px solid #f0c65a; border-radius: 10px; background: #fffdf6; }
.retry-check { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; font-weight: 700; }
.retry-check input { width: 20px; height: 20px; accent-color: var(--coach-green); }

.model-panel { border-left: 4px solid var(--coach-green); }
.model-panel p { color: #244667; line-height: 1.7; white-space: pre-line; }
.followup-panel { border-left: 4px solid var(--coach-gold); }
.followup-item { margin-top: 12px; padding: 14px; border: 1px solid var(--coach-border); border-radius: 9px; }
.followup-item strong { display: block; line-height: 1.45; }
.followup-item button { margin-top: 10px; border: 0; color: var(--coach-blue); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.followup-guidance { margin: 9px 0 0; padding: 11px; border-radius: 7px; color: #2b4a69; background: #edf5ff; line-height: 1.5; }

.interview-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.interview-guide article { padding: 24px; border: 1px solid var(--coach-border); border-radius: 14px; background: #fff; }
.interview-guide span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--coach-gold); background: var(--coach-navy); font-weight: 900; }
.interview-guide h2 { margin: 15px 0 8px; font-size: 1.2rem; }
.interview-guide p { margin: 0; color: var(--coach-muted); line-height: 1.55; }

@media (max-width: 1180px) {
    .interview-dashboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .interview-library { grid-template-columns: 310px minmax(0,1fr); }
    .prompt-grid { grid-template-columns: 1fr; }
    .workspace-grid { grid-template-columns: 1fr; }
    .question-panel { border-right: 0; border-bottom: 1px solid var(--coach-border); }
}

.builder-rule a { display: inline-block; margin-top: .35rem; color: #155eef; font-size: .78rem; font-weight: 900; text-decoration: none; }

@media (max-width: 820px) {
    .interview-main { width: min(100% - 20px, 1820px); padding-top: 15px; }
    .interview-intro { grid-template-columns: 1fr; padding: 28px 24px; }
    .interview-library { grid-template-columns: 1fr; }
    .interview-builder { border-right: 0; border-bottom: 1px solid var(--coach-border); }
    .prompt-results { padding: 24px; }
    .interview-guide { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .interview-dashboard { grid-template-columns: 1fr 1fr; }
    .interview-dashboard article { min-height: 100px; padding: 16px; }
    .interview-dashboard strong { font-size: 1.4rem; }
    .prompt-results,.interview-builder,.question-panel,.coach-panel { padding: 20px; }
    .workspace-toolbar { align-items: stretch; flex-direction: column; }
    .workspace-toolbar > div { justify-content: space-between; }
    .think-timer { align-items: stretch; flex-direction: column; }
    .draft-status { flex-direction: column; }
    .interview-intro h1 { font-size: 2.35rem; }
}
