/* =========================================================
   INTERVIEWPAL V2
   PHASE 2 — VISUAL FOUNDATION
========================================================= */


/* =========================================================
   1. DESIGN TOKENS
========================================================= */

:root {

    /* Surfaces */
    --ip-page-bg: #f5f7fb;
    --ip-surface: #ffffff;
    --ip-surface-soft: #f8fafc;
    --ip-surface-alt: #eef2ff;

    /* Text */
    --ip-text: #172033;
    --ip-text-soft: #526078;
    --ip-text-muted: #748095;

    /* Brand */
    --ip-primary: #4f46e5;
    --ip-primary-dark: #3730a3;
    --ip-primary-soft: #eef2ff;

    --ip-secondary: #0891b2;
    --ip-secondary-soft: #ecfeff;

    --ip-purple: #7c3aed;
    --ip-blue: #2563eb;
    --ip-green: #059669;
    --ip-orange: #ea580c;

    /* Borders */
    --ip-border: #e1e7ef;
    --ip-border-strong: #cbd5e1;

    /* Header */
    --ip-header-bg: rgba(255, 255, 255, 0.94);

    /* Shadows */
    --ip-shadow-sm:
        0 4px 16px rgba(15, 23, 42, 0.06);

    --ip-shadow-md:
        0 12px 32px rgba(15, 23, 42, 0.08);

    --ip-shadow-lg:
        0 24px 60px rgba(15, 23, 42, 0.12);

    /* Radius */
    --ip-radius-sm: 10px;
    --ip-radius-md: 16px;
    --ip-radius-lg: 22px;
    --ip-radius-xl: 30px;

    /* Layout */
    --ip-content-width: 1180px;
}


/* =========================================================
   2. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    margin: 0;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            var(--ip-page-bg) 30%,
            #f8fafc 100%
        );

    color: var(--ip-text);

    line-height: 1.6;
}


button,
input,
textarea,
select {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
}


img,
video,
canvas {
    max-width: 100%;
}


[hidden] {
    display: none !important;
}


/* =========================================================
   3. ACCESSIBILITY
========================================================= */

.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


:focus-visible {

    outline: 3px solid
        rgba(79, 70, 229, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   4. GENERAL LAYOUT
========================================================= */

main {
    width: 100%;
}


.section {

    width:
        min(
            var(--ip-content-width),
            calc(100% - 40px)
        );

    margin:
        0
        auto;

    padding:
        72px
        0;
}


.section-heading {

    max-width: 720px;

    margin-bottom: 34px;
}


.section-heading h2 {

    margin:
        6px
        0
        12px;

    font-size:
        clamp(
            1.75rem,
            3vw,
            2.55rem
        );

    line-height: 1.15;

    letter-spacing: -0.03em;
}


.section-heading p {

    margin: 0;

    color: var(--ip-text-soft);

    font-size: 1.02rem;
}


.eyebrow {

    margin:
        0
        0
        8px;

    color: var(--ip-primary);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   5. BUTTONS
========================================================= */

.button {

    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        11px
        19px;

    border-radius: 12px;

    border: 1px solid transparent;

    font-weight: 750;

    font-size: 0.94rem;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--ip-primary),
            var(--ip-blue)
        );

    box-shadow:
        0 10px 24px
        rgba(79, 70, 229, 0.22);
}


.button-primary:hover {

    box-shadow:
        0 14px 30px
        rgba(79, 70, 229, 0.28);
}


.button-secondary {

    color: var(--ip-text);

    background: #ffffff;

    border-color: var(--ip-border-strong);

    box-shadow: var(--ip-shadow-sm);
}


.button-secondary:hover {

    border-color:
        rgba(
            79,
            70,
            229,
            0.45
        );

    color: var(--ip-primary);
}


/* =========================================================
   6. SITE HEADER
========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: var(--ip-header-bg);

    border-bottom:
        1px solid
        rgba(203, 213, 225, 0.72);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);
}


.site-header-inner {

    width:
        min(
            var(--ip-content-width),
            calc(100% - 40px)
        );

    min-height: 72px;

    margin:
        0
        auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 22px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: max-content;

    color: var(--ip-text);

    text-decoration: none;
}


.brand-icon {

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #ffffff;

    font-size: 0.8rem;

    font-weight: 900;

    letter-spacing: 0.03em;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #0891b2
        );

    box-shadow:
        0 8px 20px
        rgba(79, 70, 229, 0.23);
}


.brand-copy {

    display: flex;

    flex-direction: column;

    line-height: 1.05;
}


.brand-copy strong {

    font-size: 1rem;

    letter-spacing: -0.02em;
}


.brand-copy small {

    margin-top: 5px;

    color: var(--ip-text-muted);

    font-size: 0.68rem;

    font-weight: 650;
}


/* =========================================================
   NAVIGATION
========================================================= */

.primary-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;
}


.primary-nav a {

    padding:
        9px
        12px;

    border-radius: 9px;

    color: var(--ip-text-soft);

    font-size: 0.88rem;

    font-weight: 650;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}


.primary-nav a:hover {

    color: var(--ip-primary);

    background: var(--ip-primary-soft);
}


.header-actions {

    display: flex;

    align-items: center;

    gap: 7px;
}


.icon-button,
.mobile-menu-button {

    width: 40px;
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border:
        1px solid
        var(--ip-border);

    border-radius: 11px;

    background: #ffffff;

    color: var(--ip-text);

    font-size: 1rem;
}


.mobile-menu-button {
    display: none;
}


/* =========================================================
   7. HERO
========================================================= */

.hero {

    position: relative;

    overflow: hidden;

    padding:
        82px
        20px
        90px;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(99, 102, 241, 0.16),
            transparent 33%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(6, 182, 212, 0.15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f7f8ff 0%,
            #ffffff 45%,
            #f0fbff 100%
        );

    border-bottom:
        1px solid
        var(--ip-border);
}


.hero::before {

    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    top: -280px;
    right: -170px;

    border-radius: 50%;

    border:
        80px solid
        rgba(79, 70, 229, 0.035);

    pointer-events: none;
}


.hero-inner {

    position: relative;

    z-index: 1;

    width:
        min(
            var(--ip-content-width),
            100%
        );

    margin:
        0
        auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, 0.92fr);

    align-items: center;

    gap:
        clamp(
            42px,
            7vw,
            90px
        );
}


.hero-content {
    max-width: 680px;
}


.hero h1 {

    max-width: 700px;

    margin:
        8px
        0
        22px;

    font-size:
        clamp(
            2.45rem,
            5.2vw,
            4.75rem
        );

    line-height: 0.98;

    letter-spacing: -0.055em;

    color: #111827;
}


.hero h1 span {

    display: block;

    margin-top: 9px;

    color: var(--ip-primary);
}


.hero-description {

    max-width: 650px;

    margin: 0;

    color: var(--ip-text-soft);

    font-size:
        clamp(
            1rem,
            1.4vw,
            1.15rem
        );

    line-height: 1.75;
}


.hero-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.hero-trust {

    display: flex;

    flex-wrap: wrap;

    gap:
        8px
        18px;

    margin-top: 24px;

    color: var(--ip-text-muted);

    font-size: 0.82rem;

    font-weight: 600;
}


/* =========================================================
   HERO DEMO PANEL
========================================================= */

.hero-panel {

    position: relative;

    padding: 24px;

    border:
        1px solid
        rgba(203, 213, 225, 0.8);

    border-radius: 26px;

    background:
        rgba(
            255,
            255,
            255,
            0.9
        );

    box-shadow: var(--ip-shadow-lg);
}


.hero-panel::before {

    content: "";

    position: absolute;

    inset:
        -1px
        auto
        auto
        10%;

    width: 80%;
    height: 3px;

    border-radius:
        0
        0
        99px
        99px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ip-primary),
            var(--ip-secondary),
            transparent
        );
}


.hero-panel-header {

    display: flex;

    align-items: center;

    gap: 9px;

    padding-bottom: 17px;

    border-bottom:
        1px solid
        var(--ip-border);

    color: var(--ip-text-soft);

    font-size: 0.78rem;

    font-weight: 750;

    letter-spacing: 0.03em;
}


.status-dot {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #10b981;

    box-shadow:
        0 0 0 5px
        rgba(16, 185, 129, 0.12);
}


.hero-question {

    margin:
        22px
        0;

    padding: 21px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f8faff,
            #f2f7ff
        );

    border:
        1px solid
        #dfe6f2;
}


.question-label {

    display: block;

    margin-bottom: 9px;

    color: var(--ip-primary);

    font-size: 0.67rem;

    font-weight: 850;

    letter-spacing: 0.09em;
}


.hero-question strong {

    display: block;

    font-size:
        clamp(
            1rem,
            1.4vw,
            1.12rem
        );

    line-height: 1.5;
}


.hero-feature-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.hero-feature-grid div {

    min-height: 90px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 7px;

    padding: 15px;

    border-radius: 15px;

    background: #ffffff;

    border:
        1px solid
        var(--ip-border);
}


.hero-feature-grid span {

    font-size: 1.3rem;
}


.hero-feature-grid strong {

    color: var(--ip-text-soft);

    font-size: 0.78rem;
}


/* =========================================================
   8. PRACTICE PATHS
========================================================= */

.practice-paths {

    padding-top: 76px;
}


.practice-path-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


.practice-path-card {

    position: relative;

    min-height: 280px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 30px;

    overflow: hidden;

    border:
        1px solid
        var(--ip-border);

    border-radius: 22px;

    background: #ffffff;

    box-shadow: var(--ip-shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.practice-path-card:hover {

    transform: translateY(-4px);

    border-color:
        rgba(
            79,
            70,
            229,
            0.28
        );

    box-shadow: var(--ip-shadow-md);
}


.practice-path-card.featured {

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f4f2ff 100%
        );
}


.path-icon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 21px;

    border-radius: 15px;

    background:
        var(--ip-primary-soft);

    font-size: 1.45rem;
}


.card-kicker {

    margin:
        0
        0
        5px;

    color: var(--ip-primary);

    font-size: 0.68rem;

    font-weight: 850;

    letter-spacing: 0.1em;
}


.practice-path-card h3 {

    margin:
        0
        0
        10px;

    font-size: 1.35rem;

    line-height: 1.2;
}


.practice-path-card p:not(.card-kicker) {

    margin: 0;

    color: var(--ip-text-soft);

    font-size: 0.94rem;
}


.text-link {

    margin-top: auto;

    padding-top: 28px;

    color: var(--ip-primary);

    font-size: 0.9rem;

    font-weight: 800;

    text-decoration: none;
}


.text-link-button {

    border: 0;

    background: none;

    padding:
        28px
        0
        0;

    font: inherit;
}


/* =========================================================
   9. CATEGORY SECTION
========================================================= */

.categories-section {

    padding-top: 56px;
}


.category-search {

    max-width: 560px;

    margin-bottom: 38px;
}


.category-search input,
.question-search-wrap input {

    width: 100%;

    height: 50px;

    padding:
        0
        18px;

    border:
        1px solid
        var(--ip-border-strong);

    border-radius: 14px;

    background: #ffffff;

    color: var(--ip-text);

    outline: none;

    box-shadow: var(--ip-shadow-sm);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.category-search input:focus,
.question-search-wrap input:focus {

    border-color:
        rgba(
            79,
            70,
            229,
            0.72
        );

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.1);
}


.category-search input::placeholder,
.question-search-wrap input::placeholder {

    color: #94a3b8;
}


/* =========================================================
   CATEGORY GROUP
========================================================= */

.category-group {

    margin-top: 42px;
}


.category-group + .category-group {

    padding-top: 42px;

    border-top:
        1px solid
        var(--ip-border);
}


.category-group-heading {

    margin-bottom: 20px;
}


.category-group-heading > div {

    display: flex;

    align-items: center;

    gap: 13px;
}


.category-group-icon {

    width: 44px;
    height: 44px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #ecfeff
        );

    font-size: 1.3rem;
}


.category-group-heading h3 {

    margin:
        0
        0
        2px;

    font-size: 1.2rem;
}


.category-group-heading p {

    margin: 0;

    color: var(--ip-text-muted);

    font-size: 0.85rem;
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.category-grid-small {

    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


.category-card {

    position: relative;

    min-width: 0;
    min-height: 108px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        16px;

    text-align: left;

    border:
        1px solid
        var(--ip-border);

    border-radius: 16px;

    background: #ffffff;

    color: var(--ip-text);

    box-shadow:
        0 4px 14px
        rgba(15, 23, 42, 0.035);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}


.category-card::after {

    content: "›";

    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    color: #a5afbf;

    font-size: 1.3rem;

    font-weight: 700;
}


.category-card:hover {

    transform: translateY(-3px);

    border-color:
        rgba(
            79,
            70,
            229,
            0.34
        );

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f8ff
        );

    box-shadow: var(--ip-shadow-md);
}


.category-card:hover::after {

    color: var(--ip-primary);
}


.category-card.active {

    border-color:
        rgba(
            79,
            70,
            229,
            0.52
        );

    background: var(--ip-primary-soft);

    box-shadow:
        0 0 0 3px
        rgba(79, 70, 229, 0.08);
}


.category-icon {

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 12px;

    background: #f3f6fa;

    font-size: 1.25rem;
}


.category-card-copy {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding-right: 13px;
}


.category-card-copy strong {

    overflow: hidden;

    font-size: 0.91rem;

    line-height: 1.25;

    text-overflow: ellipsis;
}


.category-card-copy small {

    display: -webkit-box;

    overflow: hidden;

    color: var(--ip-text-muted);

    font-size: 0.72rem;

    line-height: 1.35;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   LEGACY CATEGORY SELECT

   Kept in DOM for JavaScript compatibility.
   We do not want this to dominate the new interface.
========================================================= */

.legacy-category-control {

    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);

    white-space: nowrap;
}


/* =========================================================
   10. INTERVIEW WORKSPACE
========================================================= */

.interview-workspace {

    margin-top: 10px;

    margin-bottom: 70px;

    padding:
        38px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 24px;

    background: #ffffff;

    box-shadow: var(--ip-shadow-md);
}


.workspace-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 28px;

    border-bottom:
        1px solid
        var(--ip-border);
}


.workspace-header h2 {

    margin:
        5px
        0
        8px;

    font-size:
        clamp(
            1.65rem,
            3vw,
            2.3rem
        );

    line-height: 1.15;
}


.workspace-header p {

    max-width: 700px;

    margin: 0;

    color: var(--ip-text-soft);
}


.workspace-toolbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding:
        24px
        0;
}


.question-search-wrap {

    width: min(500px, 100%);
}


.question-filters {

    display: flex;

    align-items: center;

    gap: 8px;

    overflow-x: auto;

    scrollbar-width: none;
}


.question-filters::-webkit-scrollbar {
    display: none;
}


.filter-pill {

    flex: 0 0 auto;

    padding:
        8px
        13px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 999px;

    background: #ffffff;

    color: var(--ip-text-soft);

    font-size: 0.78rem;

    font-weight: 750;
}


.filter-pill:hover {

    color: var(--ip-primary);

    border-color:
        rgba(
            79,
            70,
            229,
            0.35
        );
}


.filter-pill.active {

    color: #ffffff;

    border-color: var(--ip-primary);

    background: var(--ip-primary);
}


/* =========================================================
   QUESTION LIST — FOR LATER JS PHASE
========================================================= */

.question-list {

    display: grid;

    gap: 12px;
}


.question-card {

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 16px;

    padding:
        18px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 16px;

    background: #ffffff;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.question-card:hover {

    transform: translateY(-2px);

    border-color:
        rgba(
            79,
            70,
            229,
            0.3
        );

    box-shadow: var(--ip-shadow-sm);
}


.question-number {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--ip-primary-soft);

    color: var(--ip-primary);

    font-size: 0.78rem;

    font-weight: 850;
}


.question-card-content {
    min-width: 0;
}


.question-card-content h3 {

    margin:
        0
        0
        5px;

    font-size: 0.96rem;

    line-height: 1.4;
}


.question-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.question-meta span {

    padding:
        4px
        8px;

    border-radius: 999px;

    background: #f1f5f9;

    color: var(--ip-text-muted);

    font-size: 0.67rem;

    font-weight: 700;
}


.question-card-actions {

    display: flex;

    align-items: center;

    gap: 7px;
}


/* =========================================================
   LEGACY ACCORDION

   Temporary compatibility styling.
   We will replace this visually in Phase 4.
========================================================= */

.legacy-accordion {

    margin-top: 24px;
}


.accordion-item {

    overflow: hidden;

    margin-bottom: 12px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 15px;

    background: #ffffff;
}


.accordion-header {

    width: 100%;

    padding:
        16px
        18px;

    border: 0;

    background: #ffffff;

    color: var(--ip-text);

    text-align: left;

    font-size: 0.94rem;

    font-weight: 750;
}


.accordion-header:hover {

    background: #f8fafc;
}


.accordion-body {

    padding:
        0
        18px
        18px;
}


/* =========================================================
   11. CUSTOM INTERVIEW
========================================================= */

.custom-interview-section {

    padding-top: 40px;
}


.custom-interview-card {

    max-width: 900px;

    margin:
        0
        auto;

    padding:
        clamp(
            25px,
            4vw,
            44px
        );

    border:
        1px solid
        var(--ip-border);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f8ff
        );

    box-shadow: var(--ip-shadow-md);
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 20px;
}


.form-group label {

    color: var(--ip-text);

    font-size: 0.86rem;

    font-weight: 750;
}


.form-group input,
.form-group textarea {

    width: 100%;

    padding:
        13px
        15px;

    border:
        1px solid
        var(--ip-border-strong);

    border-radius: 13px;

    background: #ffffff;

    color: var(--ip-text);

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.form-group input {
    min-height: 50px;
}


.form-group textarea {

    min-height: 190px;

    resize: vertical;

    line-height: 1.6;
}


.form-group input:focus,
.form-group textarea:focus {

    border-color:
        rgba(
            79,
            70,
            229,
            0.72
        );

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.1);
}


.form-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
}


.form-status {

    margin-top: 18px;

    padding: 12px;

    border-radius: 10px;

    background: var(--ip-primary-soft);

    color: var(--ip-primary);

    font-size: 0.86rem;

    font-weight: 700;
}


/* =========================================================
   12. HOW IT WORKS
========================================================= */

.how-it-works {

    padding-top: 82px;
}


.steps-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


.step-card {

    position: relative;

    min-height: 230px;

    padding: 23px;

    overflow: hidden;

    border:
        1px solid
        var(--ip-border);

    border-radius: 18px;

    background: #ffffff;

    box-shadow: var(--ip-shadow-sm);
}


.step-number {

    display: inline-block;

    margin-bottom: 35px;

    color:
        rgba(
            79,
            70,
            229,
            0.22
        );

    font-size: 2.45rem;

    font-weight: 900;

    line-height: 1;
}


.step-card h3 {

    margin:
        0
        0
        8px;

    font-size: 1.04rem;
}


.step-card p {

    margin: 0;

    color: var(--ip-text-soft);

    font-size: 0.87rem;
}


/* =========================================================
   13. OPTIONAL AI SECTION
========================================================= */

.ai-section {

    padding:
        35px
        0
        65px;
}


.ai-card {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding:
        clamp(
            26px,
            5vw,
            46px
        );

    overflow: hidden;

    border:
        1px solid
        #d9ddff;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(6, 182, 212, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f6f5ff,
            #ffffff
        );
}


.ai-copy {

    max-width: 720px;
}


.ai-copy h2 {

    margin:
        5px
        0
        12px;

    font-size:
        clamp(
            1.55rem,
            3vw,
            2.2rem
        );

    line-height: 1.15;
}


.ai-copy p:last-child {

    margin: 0;

    color: var(--ip-text-soft);
}


/* =========================================================
   14. RESOURCE / SEO CONTENT
========================================================= */

.resources-section {

    padding-top: 70px;
}


.resources-copy {

    max-width: 880px;

    color: var(--ip-text-soft);

    font-size: 0.98rem;
}


.resources-copy p {

    margin:
        0
        0
        16px;
}


.resource-links {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-top: 34px;
}


.resource-links article {

    display: flex;

    flex-direction: column;

    min-height: 205px;

    padding: 23px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 18px;

    background: #ffffff;

    box-shadow: var(--ip-shadow-sm);
}


.resource-links h3 {

    margin:
        0
        0
        8px;

    font-size: 1rem;
}


.resource-links p {

    margin: 0;

    color: var(--ip-text-soft);

    font-size: 0.86rem;
}


.resource-category-link {

    margin-top: auto;

    padding:
        22px
        0
        0;

    border: 0;

    background: none;

    color: var(--ip-primary);

    text-align: left;

    font-size: 0.84rem;

    font-weight: 800;
}


/* =========================================================
   15. FAQ
========================================================= */

.faq-section {

    padding-top: 65px;

    padding-bottom: 90px;
}


.faq-list {

    max-width: 900px;

    display: grid;

    gap: 10px;
}


.faq-list details {

    border:
        1px solid
        var(--ip-border);

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 2px 10px
        rgba(15, 23, 42, 0.035);
}


.faq-list summary {

    position: relative;

    padding:
        18px
        50px
        18px
        19px;

    list-style: none;

    cursor: pointer;

    font-weight: 750;

    font-size: 0.94rem;
}


.faq-list summary::-webkit-details-marker {
    display: none;
}


.faq-list summary::after {

    content: "+";

    position: absolute;

    top: 50%;
    right: 18px;

    transform:
        translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--ip-primary-soft);

    color: var(--ip-primary);

    font-size: 1.15rem;
}


.faq-list details[open] summary::after {
    content: "−";
}


.faq-list details p {

    margin: 0;

    padding:
        0
        19px
        20px;

    color: var(--ip-text-soft);

    font-size: 0.89rem;
}


/* =========================================================
   16. FOOTER
========================================================= */

.site-footer {

    border-top:
        1px solid
        #dce3ec;

    background: #111827;

    color: #d5dbea;
}


.footer-inner {

    width:
        min(
            var(--ip-content-width),
            calc(100% - 40px)
        );

    margin:
        0
        auto;

    padding:
        42px
        0;

    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: start;

    gap:
        30px
        50px;
}


.footer-brand strong {

    color: #ffffff;

    font-size: 1.08rem;
}


.footer-brand p {

    margin:
        5px
        0
        0;

    color: #9ca7ba;

    font-size: 0.82rem;
}


.footer-links {

    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap:
        10px
        18px;
}


.footer-links a {

    color: #cbd5e1;

    font-size: 0.8rem;

    font-weight: 650;

    text-decoration: none;
}


.footer-links a:hover {

    color: #ffffff;
}


.footer-copyright {

    grid-column:
        1
        / -1;

    margin:
        5px
        0
        0;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: #7f8ca2;

    font-size: 0.74rem;
}


/* =========================================================
   17. MODAL ROOT
========================================================= */

#modalRoot:empty {
    display: none;
}


.ip-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(
            15,
            23,
            42,
            0.62
        );

    backdrop-filter: blur(7px);

    -webkit-backdrop-filter: blur(7px);
}


.ip-modal {

    width: min(720px, 100%);

    max-height: min(85vh, 850px);

    overflow-y: auto;

    padding: 27px;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 30px 80px
        rgba(15, 23, 42, 0.3);
}


/* =========================================================
   18. DARK THEME FOUNDATION
========================================================= */

html.dark-theme {

    --ip-page-bg: #0b1020;

    --ip-surface: #111827;
    --ip-surface-soft: #161f30;
    --ip-surface-alt: #172033;

    --ip-text: #edf2f8;
    --ip-text-soft: #bdc7d6;
    --ip-text-muted: #8593a8;

    --ip-border: #293449;
    --ip-border-strong: #364258;

    --ip-header-bg:
        rgba(
            11,
            16,
            32,
            0.94
        );
}


html.dark-theme body {

    background:
        linear-gradient(
            180deg,
            #0b1020,
            #111827
        );
}


html.dark-theme .hero {

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(79, 70, 229, 0.2),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(8, 145, 178, 0.13),
            transparent 30%
        ),
        #101827;
}


html.dark-theme .hero h1 {
    color: #f8fafc;
}


html.dark-theme .hero-panel,
html.dark-theme .practice-path-card,
html.dark-theme .category-card,
html.dark-theme .interview-workspace,
html.dark-theme .resource-links article,
html.dark-theme .faq-list details,
html.dark-theme .step-card,
html.dark-theme .custom-interview-card {

    background: var(--ip-surface);

    border-color: var(--ip-border);
}


html.dark-theme .hero-question,
html.dark-theme .hero-feature-grid div {

    background: var(--ip-surface-soft);

    border-color: var(--ip-border);
}


html.dark-theme .category-card:hover {

    background:
        #182236;
}


html.dark-theme .category-icon {

    background: #1c2637;
}


html.dark-theme .button-secondary,
html.dark-theme .icon-button,
html.dark-theme .mobile-menu-button,
html.dark-theme .category-search input,
html.dark-theme .question-search-wrap input,
html.dark-theme .filter-pill,
html.dark-theme .form-group input,
html.dark-theme .form-group textarea {

    background: var(--ip-surface);

    color: var(--ip-text);

    border-color: var(--ip-border-strong);
}


html.dark-theme .ai-card {

    background:
        linear-gradient(
            135deg,
            #17162b,
            #111827
        );

    border-color: #383558;
}


html.dark-theme .accordion-item,
html.dark-theme .accordion-header {

    background: var(--ip-surface);

    color: var(--ip-text);

    border-color: var(--ip-border);
}


html.dark-theme .accordion-header:hover {

    background: var(--ip-surface-soft);
}


/* =========================================================
   19. TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero {

        padding-top: 65px;
    }


    .hero-inner {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, 0.8fr);

        gap: 40px;
    }


    .category-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .steps-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .primary-nav {

        gap: 2px;
    }


    .primary-nav a {

        padding:
            8px
            8px;

        font-size: 0.8rem;
    }

}


/* =========================================================
   20. SMALL TABLET
========================================================= */

@media (max-width: 820px) {

    .section {

        width:
            min(
                100% - 30px,
                var(--ip-content-width)
            );

        padding:
            58px
            0;
    }


    .site-header-inner {

        width:
            calc(100% - 26px);

        min-height: 66px;
    }


    /* Do NOT stack the header */

    .site-header-inner {

        flex-direction: row;

        flex-wrap: nowrap;
    }


    .primary-nav {

        display: none;
    }


    .mobile-menu-button {

        display: inline-flex;
    }


    .brand-copy small {
        display: none;
    }


    .hero {

        padding:
            58px
            15px
            65px;
    }


    .hero-inner {

        grid-template-columns: 1fr;

        gap: 38px;
    }


    .hero-content {

        max-width: 740px;
    }


    .hero-panel {

        max-width: 650px;
    }


    .practice-path-grid {

        gap: 14px;
    }


    .practice-path-card {

        min-height: 250px;

        padding: 23px;
    }


    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .category-grid-small {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .category-grid-small .category-card {

        min-height: 100px;
    }


    .workspace-header {

        align-items: stretch;
    }


    .workspace-toolbar {

        flex-direction: column;

        align-items: stretch;
    }


    .question-search-wrap {

        width: 100%;
    }


    .ai-card {

        align-items: flex-start;

        flex-direction: column;

        gap: 22px;
    }


    .resource-links {

        gap: 12px;
    }

}


/* =========================================================
   21. MOBILE
========================================================= */

@media (max-width: 650px) {

    body {

        font-size: 15px;
    }


    .section {

        width:
            calc(100% - 24px);

        padding:
            48px
            0;
    }


    /* =====================================================
       MOBILE HEADER — STAYS ONE ROW
    ====================================================== */

    .site-header-inner {

        width:
            calc(100% - 20px);

        min-height: 62px;

        gap: 8px;
    }


    .brand {

        min-width: 0;

        gap: 8px;
    }


    .brand-icon {

        width: 36px;
        height: 36px;

        border-radius: 11px;

        font-size: 0.67rem;
    }


    .brand-copy {

        min-width: 0;
    }


    .brand-copy strong {

        overflow: hidden;

        max-width: 140px;

        font-size: 0.91rem;

        text-overflow: ellipsis;

        white-space: nowrap;
    }


    .header-actions {

        flex: 0 0 auto;
    }


    .icon-button,
    .mobile-menu-button {

        width: 36px;
        height: 36px;

        border-radius: 10px;
    }


    /* =====================================================
       HERO
    ====================================================== */

    .hero {

        padding:
            48px
            12px
            55px;
    }


    .hero h1 {

        font-size:
            clamp(
                2.25rem,
                12vw,
                3.3rem
            );

        line-height: 1;
    }


    .hero-description {

        font-size: 0.96rem;

        line-height: 1.65;
    }


    .hero-actions {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        width: 100%;
    }


    .hero-actions .button {

        width: 100%;

        min-width: 0;

        padding:
            10px
            9px;

        font-size: 0.78rem;
    }


    .hero-trust {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, max-content));

        gap:
            6px
            12px;

        font-size: 0.71rem;
    }


    .hero-panel {

        padding: 17px;

        border-radius: 20px;
    }


    .hero-question {

        margin:
            17px
            0;

        padding: 16px;
    }


    .hero-feature-grid {

        gap: 7px;
    }


    .hero-feature-grid div {

        min-height: 78px;

        padding: 12px;
    }


    /* =====================================================
       PRACTICE PATHS

       Remain side-by-side instead of stacking.
    ====================================================== */

    .practice-path-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }


    .practice-path-card {

        min-width: 0;
        min-height: 260px;

        padding: 17px;

        border-radius: 17px;
    }


    .path-icon {

        width: 41px;
        height: 41px;

        margin-bottom: 15px;

        font-size: 1.15rem;
    }


    .card-kicker {

        font-size: 0.57rem;
    }


    .practice-path-card h3 {

        font-size: 0.96rem;

        line-height: 1.3;
    }


    .practice-path-card p:not(.card-kicker) {

        display: -webkit-box;

        overflow: hidden;

        font-size: 0.77rem;

        line-height: 1.45;

        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }


    .text-link {

        padding-top: 18px;

        font-size: 0.75rem;
    }


    .text-link-button {

        padding:
            18px
            0
            0;
    }


    /* =====================================================
       CATEGORY AREA
    ====================================================== */

    .category-search {

        margin-bottom: 30px;
    }


    .category-group {

        margin-top: 34px;
    }


    .category-group + .category-group {

        padding-top: 34px;
    }


    .category-group-heading p {
        display: none;
    }


    .category-grid,
    .category-grid-small {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .category-card {

        min-height: 94px;

        gap: 9px;

        padding:
            12px
            26px
            12px
            11px;

        border-radius: 14px;
    }


    .category-icon {

        width: 35px;
        height: 35px;

        border-radius: 10px;

        font-size: 1rem;
    }


    .category-card-copy {

        padding-right: 0;
    }


    .category-card-copy strong {

        font-size: 0.76rem;
    }


    .category-card-copy small {

        font-size: 0.63rem;

        -webkit-line-clamp: 2;
    }


    .category-card::after {

        right: 9px;

        font-size: 1.05rem;
    }


    /* =====================================================
       WORKSPACE
    ====================================================== */

    .interview-workspace {

        width:
            calc(100% - 24px);

        padding: 20px;

        border-radius: 19px;
    }


    .workspace-header {

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items: end;

        gap: 12px;
    }


    .workspace-header .button {

        padding:
            9px
            12px;

        font-size: 0.72rem;
    }


    .workspace-header p:not(.eyebrow) {

        font-size: 0.82rem;
    }


    .question-filters {

        width: 100%;
    }


    .question-card {

        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap: 10px;

        padding: 13px;
    }


    .question-card-actions {

        grid-column:
            1
            / -1;

        padding-left: 50px;
    }


    /* =====================================================
       HOW IT WORKS

       Two columns instead of long vertical stack.
    ====================================================== */

    .steps-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .step-card {

        min-height: 205px;

        padding: 16px;
    }


    .step-number {

        margin-bottom: 25px;

        font-size: 1.9rem;
    }


    .step-card h3 {

        font-size: 0.88rem;
    }


    .step-card p {

        font-size: 0.73rem;

        line-height: 1.45;
    }


    /* =====================================================
       SEO RESOURCE CARDS

       Also remain two-column on normal phones.
    ====================================================== */

    .resource-links {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .resource-links article {

        min-height: 205px;

        padding: 16px;
    }


    .resource-links h3 {

        font-size: 0.84rem;

        line-height: 1.3;
    }


    .resource-links p {

        display: -webkit-box;

        overflow: hidden;

        font-size: 0.72rem;

        line-height: 1.45;

        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }


    .resource-category-link {

        font-size: 0.71rem;
    }


    /* =====================================================
       AI
    ====================================================== */

    .ai-card {

        padding: 22px;

        border-radius: 19px;
    }


    .ai-card .button {

        width: auto;
    }


    /* =====================================================
       FOOTER
    ====================================================== */

    .footer-inner {

        width:
            calc(100% - 26px);

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap:
            20px
            12px;

        padding:
            32px
            0;
    }


    .footer-links {

        display: grid;

        grid-template-columns:
            repeat(2, auto);

        gap:
            7px
            13px;
    }


    .footer-links a {

        font-size: 0.69rem;
    }

}


/* =========================================================
   22. VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .brand-copy strong {

        max-width: 115px;
    }


    .hero {

        padding-top: 40px;
    }


    .hero-actions {

        grid-template-columns:
            1fr
            1fr;
    }


    .hero-actions .button {

        min-height: 44px;

        font-size: 0.72rem;
    }


    .hero-trust {

        grid-template-columns: 1fr;
    }


    .hero-feature-grid div {

        min-height: 72px;
    }


    .hero-feature-grid strong {

        font-size: 0.7rem;
    }


    .category-card {

        min-height: 88px;
    }


    .category-card-copy small {
        display: none;
    }


    .practice-path-card {

        min-height: 235px;

        padding: 14px;
    }


    .practice-path-card p:not(.card-kicker) {

        -webkit-line-clamp: 3;
    }


    .resource-links article {

        min-height: 185px;

        padding: 14px;
    }


    .step-card {

        min-height: 190px;

        padding: 14px;
    }


    .footer-brand p {
        display: none;
    }

}


/* =========================================================
   23. ULTRA SMALL SCREENS
========================================================= */

@media (max-width: 350px) {

    /*
       At extremely narrow widths we finally allow certain
       two-column sections to become one column because keeping
       two cards side-by-side would damage readability.
    */

    .practice-path-grid,
    .category-grid,
    .category-grid-small,
    .steps-grid,
    .resource-links {

        grid-template-columns: 1fr;
    }


    .practice-path-card {

        min-height: auto;
    }


    .category-card-copy small {
        display: block;
    }

}


/* =========================================================
   PHASE 4 — PRACTICE WORKSPACE
========================================================= */


/* =========================================================
   PRACTICE MODAL
========================================================= */

.ip-practice-modal {

    width:
        min(
            940px,
            100%
        );

    max-height:
        min(
            92vh,
            1000px
        );

    padding:
        clamp(
            20px,
            3vw,
            32px
        );
}


.practice-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 22px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        var(--ip-border);
}


.practice-modal-header h2 {

    max-width: 760px;

    margin:
        5px
        0
        0;

    font-size:
        clamp(
            1.25rem,
            3vw,
            1.85rem
        );

    line-height: 1.4;

    letter-spacing: -0.02em;
}


/* =========================================================
   QUESTION PROGRESS
========================================================= */

.practice-question-progress {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 15px;

    color: var(--ip-text-muted);

    font-size: 0.75rem;

    font-weight: 700;
}


/* =========================================================
   STAR GUIDE
========================================================= */

.star-guide {

    margin-top: 22px;

    padding: 18px;

    border:
        1px solid
        #dce2ff;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #f8f8ff,
            #f8fdff
        );
}


.star-guide-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;
}


.star-guide-heading > div {

    display: flex;

    align-items: center;

    gap: 11px;
}


.star-guide-icon {

    width: 39px;
    height: 39px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 11px;

    background: #ffffff;

    font-size: 1.1rem;
}


.star-guide-heading strong {

    display: block;

    font-size: 0.88rem;
}


.star-guide-heading small {

    display: block;

    margin-top: 2px;

    color: var(--ip-text-muted);

    font-size: 0.7rem;
}


.star-toggle-button {

    flex: 0 0 auto;

    border: 0;

    background: transparent;

    color: var(--ip-primary);

    font-size: 0.72rem;

    font-weight: 800;
}


.star-guide-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 16px;
}


.star-guide-grid article {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    min-width: 0;

    padding: 11px;

    border:
        1px solid
        rgba(
            79,
            70,
            229,
            0.09
        );

    border-radius: 11px;

    background:
        rgba(
            255,
            255,
            255,
            0.72
        );
}


.star-guide-grid article > span {

    width: 26px;
    height: 26px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 8px;

    color: #ffffff;

    background: var(--ip-primary);

    font-size: 0.67rem;

    font-weight: 900;
}


.star-guide-grid strong {

    display: block;

    font-size: 0.72rem;
}


.star-guide-grid p {

    margin:
        2px
        0
        0;

    color: var(--ip-text-muted);

    font-size: 0.65rem;

    line-height: 1.35;
}


/* =========================================================
   ANSWER AREA
========================================================= */

.practice-response-section {

    margin-top: 24px;
}


.practice-response-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 9px;
}


.practice-response-heading label {

    display: block;

    font-size: 0.91rem;

    font-weight: 800;
}


.practice-response-heading small {

    display: block;

    margin-top: 2px;

    color: var(--ip-text-muted);

    font-size: 0.7rem;
}


.response-stats {

    flex: 0 0 auto;

    color: var(--ip-text-muted);

    font-size: 0.72rem;

    font-weight: 700;
}


.practice-answer {

    width: 100%;

    min-height: 210px;

    padding: 16px;

    resize: vertical;

    border:
        1px solid
        var(--ip-border-strong);

    border-radius: 14px;

    outline: none;

    background: var(--ip-surface);

    color: var(--ip-text);

    line-height: 1.65;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.practice-answer:focus {

    border-color:
        rgba(
            79,
            70,
            229,
            0.75
        );

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.09);
}


.practice-response-footer {

    display: flex;

    justify-content: flex-end;

    margin-top: 7px;

    color: var(--ip-text-muted);

    font-size: 0.7rem;
}


.practice-validation {

    margin-top: 8px;

    padding:
        9px
        11px;

    border:
        1px solid
        #fecaca;

    border-radius: 9px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 0.75rem;

    font-weight: 700;
}


/* =========================================================
   MAIN ACTIONS
========================================================= */

.practice-main-actions {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 18px;
}


/* =========================================================
   FEEDBACK
========================================================= */

.practice-feedback {

    margin-top: 30px;

    padding-top: 28px;

    border-top:
        1px solid
        var(--ip-border);
}


.feedback-header h3 {

    margin:
        4px
        0
        18px;

    font-size: 1.35rem;
}


/* =========================================================
   SCORE GRID
========================================================= */

.feedback-score-grid {

    display: grid;

    grid-template-columns:
        1.45fr
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.feedback-score-grid article {

    min-height: 112px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 16px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 14px;

    background: var(--ip-surface-soft);
}


.feedback-score-grid article > span {

    color: var(--ip-text-muted);

    font-size: 0.68rem;

    font-weight: 750;
}


.feedback-score-grid article > strong {

    margin-top: 6px;

    font-size: 1.3rem;
}


.feedback-main-score {

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #eff8ff
        )
        !important;
}


.feedback-main-score strong {

    font-size:
        clamp(
            2rem,
            5vw,
            3rem
        )
        !important;

    line-height: 1;
}


.feedback-main-score small {

    margin-top: 3px;

    color: var(--ip-text-muted);

    font-size: 0.65rem;
}


/* =========================================================
   SCORE COLORS
========================================================= */

.score-low {
    color: #dc2626;
}


.score-medium {
    color: #d97706;
}


.score-good {
    color: #2563eb;
}


.score-great {
    color: #059669;
}


/* =========================================================
   COACHING
========================================================= */

.feedback-coaching {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 14px;
}


.feedback-panel {

    padding: 18px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 14px;

    background: var(--ip-surface);
}


.feedback-panel h4 {

    margin:
        0
        0
        12px;

    font-size: 0.88rem;
}


.feedback-panel ul {

    display: grid;

    gap: 8px;

    margin: 0;

    padding-left: 18px;

    color: var(--ip-text-soft);

    font-size: 0.78rem;

    line-height: 1.5;
}


/* =========================================================
   KEYWORDS
========================================================= */

.keyword-review {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 14px;
}


.keyword-review-column {

    padding: 17px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 14px;

    background: var(--ip-surface-soft);
}


.keyword-review-column h4 {

    margin:
        0
        0
        11px;

    font-size: 0.79rem;
}


.keyword-chip-list {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.keyword-chip {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding:
        5px
        8px;

    border-radius: 999px;

    font-size: 0.65rem;

    font-weight: 750;
}


.keyword-chip.matched {

    background: #ecfdf5;

    color: #047857;

    border:
        1px solid
        #a7f3d0;
}


.keyword-chip.missed {

    background: #fff7ed;

    color: #c2410c;

    border:
        1px solid
        #fed7aa;
}


.keyword-empty {

    color: var(--ip-text-muted);

    font-size: 0.7rem;
}


/* =========================================================
   MODEL ANSWER
========================================================= */

.practice-model-answer {

    margin-top: 14px;

    border:
        1px solid
        var(--ip-border);

    border-radius: 14px;

    background: var(--ip-surface);
}


.practice-model-answer summary {

    padding: 15px;

    cursor: pointer;

    font-size: 0.82rem;

    font-weight: 800;
}


.practice-model-answer-content {

    padding:
        0
        17px
        18px;

    color: var(--ip-text-soft);

    font-size: 0.82rem;

    line-height: 1.6;
}


.practice-model-answer-content h3,
.practice-model-answer-content strong {

    color: var(--ip-text);
}


/* =========================================================
   NEXT ACTIONS
========================================================= */

.feedback-next-actions {

    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .feedback-score-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .star-guide-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .ip-practice-modal {

        padding: 18px;
    }


    .practice-modal-header {

        gap: 10px;
    }


    .practice-question-progress {

        font-size: 0.65rem;
    }


    .star-guide {

        padding: 13px;
    }


    .star-guide-heading small {
        display: none;
    }


    /*
       Important:
       STAR remains 2 x 2 instead of becoming
       a long vertical stack.
    */

    .star-guide-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }


    .star-guide-grid article {

        padding: 9px;
    }


    .practice-response-heading {

        align-items: flex-start;
    }


    .practice-answer {

        min-height: 190px;

        padding: 13px;
    }


    .practice-response-footer {

        justify-content: flex-start;
    }


    /*
       Scores remain 2 x 2.
    */

    .feedback-score-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .feedback-score-grid article {

        min-height: 100px;

        padding: 12px;
    }


    .feedback-coaching,
    .keyword-review {

        grid-template-columns: 1fr;
    }


    .feedback-next-actions {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .feedback-next-actions .button {

        width: 100%;

        padding:
            10px
            8px;

        font-size: 0.75rem;
    }

    .practice-question-progress {
    align-items: flex-start;
    gap: 10px;
}


.practice-progress-right {
    gap: 8px;
}


.practice-question-timer {
    padding: 6px 9px;
    font-size: 0.8rem;
}


.practice-timer-message {
    flex-direction: column;
    gap: 4px;
}

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .practice-modal-header h2 {

        font-size: 1.08rem;
    }


    .star-guide-grid article > div p {
        display: none;
    }


    .star-guide-grid article {

        min-height: 48px;

        align-items: center;
    }


    .practice-main-actions {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .practice-main-actions .button {

        width: 100%;

        padding:
            10px
            8px;

        font-size: 0.74rem;
    }

}


/* =========================================================
   DARK MODE
========================================================= */

html.dark-theme .star-guide {

    background:
        linear-gradient(
            135deg,
            #171a31,
            #12202b
        );

    border-color: #34395d;
}


html.dark-theme .star-guide-grid article {

    background:
        rgba(
            17,
            24,
            39,
            0.65
        );

    border-color: var(--ip-border);
}


html.dark-theme .star-guide-icon {

    background: var(--ip-surface-soft);
}


html.dark-theme .practice-validation {

    background: #341616;

    color: #fecaca;

    border-color: #7f1d1d;
}


html.dark-theme .feedback-main-score {

    background:
        linear-gradient(
            135deg,
            #1a1830,
            #152436
        )
        !important;
}


html.dark-theme .keyword-chip.matched {

    background: #0d2d24;

    color: #6ee7b7;

    border-color: #135c48;
}


html.dark-theme .keyword-chip.missed {

    background: #342015;

    color: #fdba74;

    border-color: #713f12;
}


/* =========================================================
   GUIDED MOCK INTERVIEW
========================================================= */

.mock-setup-modal,
.mock-complete-modal {
    width: min(680px, calc(100% - 32px));
}


.mock-setup-intro {
    margin: 20px 0 24px;
}


.mock-setup-intro > p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}


.mock-setup-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.mock-setup-summary span {
    display: inline-flex;
    align-items: center;

    min-height: 32px;
    padding: 6px 10px;

    border: 1px solid var(--border-color);
    border-radius: 999px;

    background: var(--surface-soft);

    font-size: 0.78rem;
    font-weight: 700;
}


.mock-setup-section {
    margin-top: 24px;
}


.mock-setup-label {
    display: block;
    margin-bottom: 10px;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: var(--text-secondary);
}


.mock-question-count-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}


.mock-count-option {
    min-width: 0;

    padding: 16px 12px;

    border: 1px solid var(--border-color);
    border-radius: 14px;

    background: var(--surface);

    color: var(--text-primary);

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.mock-count-option:hover {
    transform: translateY(-2px);
}


.mock-count-option.active {
    border-color: var(--primary);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6366f1
        );

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px
        rgba(79, 70, 229, 0.22);
}


.mock-selection-status {
    margin-top: 12px;

    padding: 10px 12px;

    border-radius: 12px;

    background: var(--surface-soft);

    border: 1px solid var(--border-color);

    font-size: 0.82rem;

    text-align: center;
}


.mock-selection-status strong {
    color: var(--primary);
}



.mock-count-option.active span {
    color: rgba(255, 255, 255, 0.85);
}


.mock-count-option strong {
    display: block;

    font-size: 1.35rem;
    line-height: 1;
}


.mock-count-option span {
    display: block;

    margin-top: 6px;

    font-size: 0.78rem;
    color: var(--text-secondary);
}


.mock-interview-note {
    margin-top: 24px;
    padding: 16px;

    border-radius: 14px;

    background: var(--surface-soft);
    border: 1px solid var(--border-color);
}


.mock-interview-note strong {
    display: block;
    margin-bottom: 5px;
}


.mock-interview-note p {
    margin: 0;

    color: var(--text-secondary);
    line-height: 1.65;
}


/* =========================================================
   MOCK COMPLETION
========================================================= */

.mock-complete-modal {
    text-align: center;
}


.mock-complete-icon {
    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #16a34a
        );

    color: #fff;

    font-size: 1.7rem;
    font-weight: 900;
}


.mock-complete-intro {
    max-width: 540px;

    margin:
        10px auto
        24px;

    color: var(--text-secondary);

    line-height: 1.7;
}


.mock-complete-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin: 24px 0;
}


.mock-complete-stats article {
    padding: 16px 10px;

    border: 1px solid var(--border-color);
    border-radius: 14px;

    background: var(--surface-soft);
}


.mock-complete-stats strong {
    display: block;

    font-size: 1.25rem;
}


.mock-complete-stats span {
    display: block;

    margin-top: 5px;

    font-size: 0.75rem;

    color: var(--text-secondary);
}


.mock-complete-message {
    padding: 18px;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background: var(--surface-soft);

    text-align: left;
}


.mock-complete-message strong {
    display: block;
    margin-bottom: 6px;
}


.mock-complete-message p {
    margin: 0;

    color: var(--text-secondary);
    line-height: 1.65;
}


/* =========================================================
   MOCK MOBILE
========================================================= */

@media (max-width: 650px) {

    .mock-question-count-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .mock-count-option {
        padding: 13px 6px;
    }


    .mock-count-option strong {
        font-size: 1.15rem;
    }


    .mock-complete-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .mock-complete-stats article {
        padding: 13px 5px;
    }


    .mock-complete-stats strong {
        font-size: 1.05rem;
    }


    .mock-complete-stats span {
        font-size: 0.68rem;
    }

}

/* =========================================================
   PRACTICE INTERVIEW SETUP
========================================================= */

.practice-setup-modal {
    width: min(920px, calc(100vw - 32px));
    max-height: 92vh;
    overflow-y: auto;
}


.practice-setup-intro {
    margin-top: 18px;
}


.practice-setup-intro > p {
    margin: 0 0 14px;
    line-height: 1.65;
    color: var(--text-muted);
}


/* =========================================================
   SETUP SECTION
========================================================= */

.practice-setup-section {
    margin-top: 24px;
    padding: 22px;

    border: 1px solid var(--border-color);
    border-radius: 18px;

    background: var(--surface);
}


.practice-setup-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 18px;
}


.practice-setup-step {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6366f1
        );

    color: #fff;

    font-size: 0.82rem;
    font-weight: 800;
}


.practice-setup-section-heading h3 {
    margin: 0;

    font-size: 1rem;
}


.practice-setup-section-heading p {
    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 0.86rem;
    line-height: 1.5;
}


/* =========================================================
   QUESTION TOOLBAR
========================================================= */

.practice-selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 14px;
}


.practice-selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-wrap: wrap;
}


.practice-selection-button {
    min-height: 36px;

    padding: 7px 12px;

    border: 1px solid var(--border-color);
    border-radius: 999px;

    background: var(--surface-soft);

    color: var(--text);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.practice-selection-button:hover {
    border-color: var(--primary);

    transform: translateY(-1px);
}


.practice-selected-count {
    flex: 0 0 auto;

    padding: 8px 12px;

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--primary) 10%,
            transparent
        );

    color: var(--primary);

    font-size: 0.78rem;
    font-weight: 800;
}


/* =========================================================
   QUESTION SEARCH
========================================================= */

.practice-question-search-wrap {
    margin-bottom: 12px;
}


.practice-setup-search {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: var(--surface);

    color: var(--text);

    font: inherit;

    outline: none;
}


.practice-setup-search:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
}


/* =========================================================
   QUESTION SELECTOR
========================================================= */

.practice-question-selector {
    max-height: 340px;

    overflow-y: auto;

    display: grid;
    gap: 8px;

    padding: 4px 4px 4px 0;
}


.practice-setup-question {
    display: grid;

    grid-template-columns:
        auto
        auto
        minmax(0, 1fr);

    align-items: start;

    gap: 10px;

    padding: 12px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: var(--surface);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.practice-setup-question:hover {
    border-color:
        color-mix(
            in srgb,
            var(--primary) 45%,
            var(--border-color)
        );
}


.practice-setup-question.selected {
    border-color:
        color-mix(
            in srgb,
            var(--primary) 55%,
            var(--border-color)
        );

    background:
        color-mix(
            in srgb,
            var(--primary) 7%,
            var(--surface)
        );
}


.practice-setup-question input {
    margin-top: 3px;

    width: 17px;
    height: 17px;

    accent-color: var(--primary);
}


.practice-setup-question-number {
    min-width: 32px;

    color: var(--primary);

    font-size: 0.77rem;
    font-weight: 800;
}


.practice-setup-question-text {
    min-width: 0;

    font-size: 0.86rem;
    line-height: 1.5;

    color: var(--text);
}


/* =========================================================
   TIMER
========================================================= */

.practice-time-options {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}


.practice-time-option {
    min-width: 0;

    padding: 13px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    border: 1px solid var(--border-color);
    border-radius: 14px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;
}


.practice-time-option strong {
    font-size: 1rem;
}


.practice-time-option span {
    font-size: 0.72rem;

    color: var(--text-muted);
}


.practice-time-option.active {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 9%,
            var(--surface)
        );

    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--primary) 10%,
            transparent
        );
}


.practice-time-option.active strong {
    color: var(--primary);
}


/* =========================================================
   RESPONSE METHOD
========================================================= */

.practice-response-options {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}


.practice-response-option {
    position: relative;

    min-width: 0;

    padding: 16px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    text-align: left;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background: var(--surface);

    color: var(--text);

    font: inherit;

    cursor: pointer;
}


.practice-response-option.active {
    border-color: var(--primary);

    background:
        color-mix(
            in srgb,
            var(--primary) 8%,
            var(--surface)
        );

    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--primary) 10%,
            transparent
        );
}


.practice-response-option.unavailable {
    opacity: 0.55;

    cursor: not-allowed;
}


.practice-response-icon {
    flex: 0 0 auto;

    font-size: 1.35rem;
}


.practice-response-option-content {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 0;
}


.practice-response-option-content strong {
    font-size: 0.9rem;
}


.practice-response-option-content small {
    color: var(--text-muted);

    line-height: 1.45;
}


.practice-capability {
    width: fit-content;

    margin-top: 3px;

    font-size: 0.67rem;
    font-weight: 800;
}


.practice-capability.available {
    color: #15803d;
}


.practice-capability.unavailable {
    color: var(--text-muted);
}


.practice-media-note {
    margin: 12px 0 0;

    color: var(--text-muted);

    font-size: 0.76rem;
    line-height: 1.5;
}


/* =========================================================
   FINAL SUMMARY
========================================================= */

.practice-setup-final-summary {
    margin-top: 20px;

    padding: 15px 17px;

    border-radius: 15px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--primary) 22%,
            var(--border-color)
        );

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--primary) 7%,
                var(--surface)
            ),
            var(--surface)
        );
}


.practice-setup-final-summary div {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 12px;
}


.practice-setup-final-summary span {
    color: var(--text-muted);

    font-size: 0.76rem;
    font-weight: 700;
}


.practice-setup-final-summary strong {
    text-align: right;

    color: var(--primary);

    font-size: 0.82rem;
}


.practice-setup-actions {
    margin-top: 18px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .practice-setup-modal {
        width:
            min(
                100%,
                calc(100vw - 16px)
            );

        max-height: 95vh;
    }


    .practice-setup-section {
        padding: 16px;
    }


    .practice-selection-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }


    .practice-selection-actions {
        flex-wrap: nowrap;

        width: 100%;

        overflow-x: auto;

        padding-bottom: 4px;
    }


    .practice-selection-button {
        flex: 0 0 auto;
    }


    .practice-selected-count {
        align-self: flex-start;
    }


    .practice-question-selector {
        max-height: 300px;
    }


    .practice-time-options {
        grid-template-columns:
            repeat(5, minmax(64px, 1fr));

        overflow-x: auto;

        padding-bottom: 4px;
    }


    .practice-response-options {
        grid-template-columns: 1fr;
    }


    .practice-response-option {
        padding: 13px;
    }


    .practice-setup-final-summary div {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .practice-setup-final-summary strong {
        text-align: left;
    }


    .practice-setup-actions {
        display: grid;

        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap: 8px;
    }

}

/* =========================================================
   SELECTED RANDOM QUESTION BUTTON
========================================================= */

.practice-selection-button.active,
.practice-selection-button[aria-pressed="true"] {
    background: #4f46e5 !important;

    border-color: #4f46e5 !important;

    color: #ffffff !important;

    box-shadow:
        0 6px 18px
        rgba(79, 70, 229, 0.28);

    transform:
        translateY(-1px);
}


.practice-selection-button.active:hover,
.practice-selection-button[aria-pressed="true"]:hover {
    background: #4338ca !important;

    border-color: #4338ca !important;

    color: #ffffff !important;
}

/* =========================================================
   SELECTED TIMER OPTION
========================================================= */

.practice-time-option.active,
.practice-time-option[aria-pressed="true"] {
    background: #4f46e5 !important;

    border-color: #4f46e5 !important;

    color: #ffffff !important;

    box-shadow:
        0 6px 18px
        rgba(79, 70, 229, 0.28);

    transform:
        translateY(-1px);
}


.practice-time-option.active strong,
.practice-time-option.active span,
.practice-time-option[aria-pressed="true"] strong,
.practice-time-option[aria-pressed="true"] span {
    color: #ffffff !important;
}

/* =========================================================
   PRACTICE QUESTION TIMER
========================================================= */

.practice-progress-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


.practice-question-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 11px;

    border: 1px solid #c7d2fe;
    border-radius: 999px;

    background: #eef2ff;
    color: #3730a3;

    font-size: 0.88rem;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.practice-question-timer strong {
    color: inherit;
    font-variant-numeric: tabular-nums;
}


.practice-question-timer.timer-warning {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}


.practice-question-timer.timer-expired {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}


/* =========================================================
   TIME EXPIRED MESSAGE
========================================================= */

.practice-timer-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 18px 0;

    padding: 14px 16px;

    border: 1px solid #fecaca;
    border-radius: 14px;

    background: #fef2f2;
    color: #7f1d1d;
}


.practice-timer-message[hidden] {
    display: none;
}


.practice-timer-message strong {
    flex-shrink: 0;
}


.practice-timer-message span {
    line-height: 1.5;
}

/* =========================================================
   PHASE 5C — MEDIA RESPONSE
========================================================= */

.practice-media-response {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
}

.practice-media-response-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.practice-media-response-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: #eef2ff;
    font-size: 1.25rem;
}

.practice-media-response-header > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.practice-media-response-header strong {
    color: #172033;
    font-size: 1rem;
}

.practice-media-response-header span {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.practice-media-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
}

.practice-media-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #94a3b8;
}

.practice-media-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.practice-media-help {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}


/* =========================================================
   MEDIA RESPONSE — MOBILE
========================================================= */

@media (max-width: 650px) {

    .practice-media-response {
        padding: 14px;
    }

    .practice-media-response-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .practice-media-controls .button {
        width: 100%;
    }

}

/* =========================================================
   PHASE 5C.2 — VOICE RECORDING STATES
========================================================= */

.practice-voice-duration {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: #334155;
}

.practice-media-status.is-recording {
    border-color: #fecaca;
    background: #fff7f7;
}

.practice-media-status.is-recording
.practice-media-status-dot {
    background: #dc2626;
    animation: practice-recording-pulse 1.25s infinite;
}

.practice-media-status.is-recording
.practice-voice-duration {
    color: #b91c1c;
}

.practice-media-status.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.practice-media-status.is-complete
.practice-media-status-dot {
    background: #16a34a;
}

.practice-media-error {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.84rem;
    line-height: 1.5;
}

@keyframes practice-recording-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }

}

/* =========================================================
   PRACTICE MODE — MICROPHONE DIAGNOSTICS
========================================================= */

.practice-microphone-info {
    margin-top: 12px;
}


/* =========================================================
   ACTIVE MICROPHONE
========================================================= */

.practice-microphone-device {
    display: flex;
    align-items: center;

    width: fit-content;
    max-width: 100%;

    padding: 7px 10px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;

    background: var(--surface-soft, #f8fafc);

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;

    color: var(--text-muted, #64748b);

    overflow-wrap: anywhere;
}


/* =========================================================
   MICROPHONE WARNING
========================================================= */

.practice-microphone-warning {
    margin-top: 10px;
    padding: 11px 12px;

    border: 1px solid #f59e0b;
    border-radius: 12px;

    background: #fffbeb;

    font-size: 0.82rem;
    line-height: 1.45;

    color: #92400e;
}


.practice-microphone-warning strong,
.practice-microphone-warning span {
    display: block;
}


.practice-microphone-warning strong {
    margin-bottom: 3px;
}


/* =========================================================
   MICROPHONE HELP
========================================================= */

.practice-microphone-help {
    margin-top: 10px;

    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;

    background: var(--surface, #ffffff);

    overflow: hidden;
}


.practice-microphone-help summary {
    padding: 10px 12px;

    cursor: pointer;

    font-size: 0.82rem;
    font-weight: 700;

    color: var(--text-color, #0f172a);

    list-style: none;
}


.practice-microphone-help summary::-webkit-details-marker {
    display: none;
}


.practice-microphone-help summary::after {
    content: "+";

    float: right;

    font-size: 1rem;
    font-weight: 700;
}


.practice-microphone-help[open] summary::after {
    content: "−";
}


.practice-microphone-help-content {
    padding: 0 12px 12px;

    border-top: 1px solid var(--border-color, #e5e7eb);

    font-size: 0.82rem;
    line-height: 1.55;

    color: var(--text-muted, #475569);
}


.practice-microphone-help-content > strong {
    display: block;

    margin-top: 12px;

    color: var(--text-color, #0f172a);
}


.practice-microphone-help-content p {
    margin: 8px 0;
}


.practice-microphone-help-content ol {
    margin: 10px 0;
    padding-left: 22px;
}


.practice-microphone-help-content li {
    margin: 5px 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .practice-microphone-device {
        width: 100%;
        box-sizing: border-box;
    }


    .practice-microphone-help summary {
        padding: 11px;
    }


    .practice-microphone-help-content {
        padding:
            0
            11px
            11px;
    }

}

/* =========================================================
   PRACTICE VIDEO — CAMERA PREVIEW
========================================================= */

.practice-video-preview-wrapper {
    position: relative;

    width: 100%;
    max-width: 720px;

    margin: 16px auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border: 1px solid
        var(--border-color, #e5e7eb);

    border-radius: 16px;

    background: #0f172a;
}


/* =========================================================
   LIVE VIDEO
========================================================= */

.practice-video-preview {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.practice-video-preview[hidden] {
    display: none;
}


/* =========================================================
   CAMERA PLACEHOLDER
========================================================= */

.practice-video-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 20px;

    text-align: center;

    color: #e2e8f0;
}


.practice-video-placeholder[hidden] {
    display: none;
}


.practice-video-placeholder-icon {
    display: block;

    margin-bottom: 3px;

    font-size: 2rem;
}


.practice-video-placeholder strong {
    font-size: 0.95rem;

    color: #ffffff;
}


.practice-video-placeholder small {
    max-width: 340px;

    font-size: 0.78rem;
    line-height: 1.45;

    color: #cbd5e1;
}


/* =========================================================
   MOBILE VIDEO
========================================================= */

@media (max-width: 650px) {

    .practice-video-preview-wrapper {
        margin:
            12px
            auto;

        border-radius: 12px;
    }


    .practice-video-placeholder {
        padding: 14px;
    }

}

/* =========================================================
   PRACTICE VIDEO — RECORDING STATUS
========================================================= */

.practice-video-recording-status {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 12px;

    padding:
        8px
        12px;

    border-radius: 999px;

    background: #fef2f2;

    font-size: 0.82rem;
    line-height: 1;

    color: #991b1b;
}


.practice-video-recording-status[hidden] {
    display: none;
}


.practice-video-recording-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #dc2626;

    animation:
        practiceVideoRecordingPulse
        1.2s
        infinite;
}


.practice-video-recording-status strong {
    font-size: 0.8rem;
    font-weight: 800;
}


#practiceVideoDuration {
    min-width: 40px;

    font-variant-numeric:
        tabular-nums;

    font-weight: 700;
}


@keyframes practiceVideoRecordingPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }

}

/* =========================================================
   PRACTICE VIDEO — RECORDING REVIEW
========================================================= */

.practice-video-review {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.practice-video-review[hidden] {
    display: none;
}

.practice-video-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.practice-video-review-heading strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 800;
}

.practice-video-review-heading span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
}

.practice-video-playback {
    display: block;
    width: 100%;
    max-height: 420px;
    border-radius: 14px;
    background: #0f172a;
}

.practice-video-review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {

    .practice-video-review {
        padding: 12px;
        border-radius: 14px;
    }

    .practice-video-playback {
        max-height: 320px;
    }

    .practice-video-review-actions {
        flex-wrap: nowrap;
    }

    .practice-video-review-actions .button {
        width: auto;
        flex: 0 1 auto;
    }

}

/* =========================================================
   ACCEPTED VIDEO RESPONSE
========================================================= */

.practice-video-accepted {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 14px;
    padding: 13px 15px;

    border: 1px solid #bbf7d0;
    border-radius: 14px;

    background: #f0fdf4;
}

.practice-video-accepted[hidden] {
    display: none;
}

.practice-video-accepted-icon {
    display: grid;
    place-items: center;

    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #166534;
    color: #ffffff;

    font-size: 1rem;
    font-weight: 900;
}

.practice-video-accepted strong,
.practice-video-accepted span {
    display: block;
}

.practice-video-accepted strong {
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.practice-video-accepted span {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #475569;
}


@media (max-width: 640px) {

    .practice-video-review-actions {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .practice-video-review-actions .button {
        width: 100%;
        min-width: 0;
    }

}

/* =========================================================
   MOCK INTERVIEW RESULTS
========================================================= */

.mock-complete-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: min(88vh, 900px);
    overflow-y: auto;
}


.mock-results-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}


.mock-results-hero .mock-complete-icon {
    flex: 0 0 auto;
}


.mock-results-hero h2 {
    margin: 2px 0 6px;
}


.mock-results-hero p {
    margin-bottom: 0;
}


/* =========================================================
   SESSION STATS
========================================================= */

.mock-complete-stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}


.mock-complete-stats article {
    min-width: 0;
    padding: 15px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}


.mock-complete-stats strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.15rem;
    line-height: 1.2;
}


.mock-complete-stats span {
    display: block;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #64748b;
}


.mock-complete-stats .mock-mode-value {
    font-size: 0.82rem;
}


/* =========================================================
   PRACTICE SIGNAL
========================================================= */

.mock-results-signal {
    padding: 18px;
    margin: 20px 0;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
}


.mock-results-signal > span {
    display: block;
    margin-bottom: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}


.mock-results-signal > strong {
    display: block;
    margin-bottom: 7px;
    font-size: 1.15rem;
}


.mock-results-signal p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}


/* =========================================================
   RESULTS COACHING
========================================================= */

.mock-results-coaching {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}


.mock-results-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}


.mock-results-panel-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}


.mock-results-panel-heading h3 {
    margin: 0;
    font-size: 0.95rem;
}


.mock-results-panel-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #f1f5f9;
    font-weight: 900;
}


.mock-results-panel ul {
    margin: 0;
    padding-left: 19px;
}


.mock-results-panel li {
    margin-bottom: 9px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #475569;
}


.mock-results-panel li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .mock-complete-modal {
        width: min(
            100%,
            calc(100vw - 18px)
        );
        max-height: 92vh;
    }


    .mock-results-hero {
        gap: 11px;
    }


    .mock-complete-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .mock-results-coaching {
        grid-template-columns:
            1fr;
    }


    .mock-results-panel {
        padding: 14px;
    }


    .mock-results-signal {
        padding: 15px;
    }

}

/* =========================================================
   MOCK INTERVIEW — QUESTION REVIEW
========================================================= */

.mock-response-review-section {
    margin: 24px 0;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}


.mock-response-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}


.mock-response-review-header h3 {
    margin: 2px 0 6px;
    font-size: 1.05rem;
}


.mock-response-review-header > div > p:last-child {
    max-width: 540px;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #64748b;
}


.mock-response-review-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    white-space: nowrap;
}


/* =========================================================
   QUESTION REVIEW CARD
========================================================= */

.mock-response-review-list {
    display: grid;
    gap: 10px;
}


.mock-question-review {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
}


.mock-question-review > summary {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto
        auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}


.mock-question-review > summary::-webkit-details-marker {
    display: none;
}


.mock-question-review > summary:hover {
    background: #f8fafc;
}


.mock-question-review-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 900;
    color: #334155;
}


.mock-question-review-heading {
    min-width: 0;
}


.mock-question-review-heading span {
    display: block;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}


.mock-question-review-heading strong {
    display: block;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.4;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.mock-question-review-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
}


.mock-question-review-status.is-reviewed {
    background: #ecfdf5;
    color: #166534;
}


.mock-question-review-chevron {
    font-size: 0.9rem;
    color: #64748b;
    transition: transform 0.2s ease;
}


.mock-question-review[open]
.mock-question-review-chevron {
    transform: rotate(180deg);
}


/* =========================================================
   EXPANDED QUESTION CONTENT
========================================================= */

.mock-question-review-content {
    padding: 0 15px 16px;
    border-top: 1px solid #f1f5f9;
}


.mock-review-answer {
    padding: 15px 0;
}


.mock-review-answer h4,
.mock-review-concepts h4 {
    margin: 0 0 8px;
    font-size: 0.78rem;
}


.mock-review-answer p {
    margin: 0;
    padding: 13px 14px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
}


.mock-review-answer
.mock-review-no-answer {
    color: #64748b;
    font-style: italic;
}


/* =========================================================
   SAVED COACHING SIGNALS
========================================================= */

.mock-review-signal-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 15px;
}


.mock-review-signal-grid article {
    min-width: 0;
    padding: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
}


.mock-review-signal-grid span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.67rem;
    color: #64748b;
}


.mock-review-signal-grid strong {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #0f172a;
}


/* =========================================================
   CONCEPT REVIEW
========================================================= */

.mock-review-concepts {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.mock-review-concepts section {
    min-width: 0;
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
}


.mock-review-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.mock-review-concept-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.68rem;
    line-height: 1.3;
    color: #475569;
}


.mock-review-empty-text {
    display: block;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #64748b;
}


.mock-review-not-reviewed {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    background: #f8fafc;
    font-size: 0.77rem;
    line-height: 1.5;
    color: #64748b;
}


/* =========================================================
   QUESTION REVIEW — MOBILE
========================================================= */

@media (max-width: 640px) {

    .mock-response-review-header {
        display: block;
    }


    .mock-response-review-count {
        display: inline-block;
        margin-top: 10px;
    }


    .mock-question-review > summary {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
        gap: 9px;
        padding: 12px;
    }


    .mock-question-review-status {
        grid-column: 2;
        justify-self: start;
    }


    .mock-question-review-chevron {
        grid-column: 3;
        grid-row: 1 / span 2;
    }


    .mock-question-review-heading strong {
        white-space: normal;
    }


    .mock-review-signal-grid {
        grid-template-columns:
            1fr;
    }


    .mock-review-concepts {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   INTERVIEWPAL AI ENGINE MANAGER
========================================================= */

.ai-engine-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: min(880px, calc(100vh - 32px));
    overflow-y: auto;
}

.ai-engine-intro {
    margin: 8px 0 0;
    max-width: 560px;
    color: #64748b;
    line-height: 1.6;
}


/* =========================================================
   PROVIDERS
========================================================= */

.ai-engine-providers {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.ai-provider-card {
    padding: 20px;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #ffffff;
}

.ai-provider-card.is-selected {
    border-color: #6366f1;
    box-shadow:
        0 0 0 3px
        rgba(99, 102, 241, 0.08);
}

.ai-provider-card.is-disabled {
    background: #f8fafc;
    opacity: 0.72;
}

.ai-provider-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ai-provider-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai-provider-title-row h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.ai-provider-title-row p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-provider-radio {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #ffffff;
}

.ai-provider-radio.is-selected {
    border: 5px solid #4f46e5;
}


/* =========================================================
   STATUS
========================================================= */

.ai-provider-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ai-provider-status.is-checking {
    color: #92400e;
    background: #fef3c7;
}

.ai-provider-status.is-ready {
    color: #166534;
    background: #dcfce7;
}

.ai-provider-status.is-offline {
    color: #991b1b;
    background: #fee2e2;
}

.ai-provider-status.is-coming {
    color: #475569;
    background: #e2e8f0;
}


/* =========================================================
   BENEFITS
========================================================= */

.ai-provider-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.ai-provider-benefits span {
    padding: 5px 9px;
    border-radius: 999px;

    background: #f1f5f9;
    color: #475569;

    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================================
   MODEL FIELD
========================================================= */

.ai-engine-field {
    margin-top: 20px;
}

.ai-engine-field label {
    display: block;
    margin-bottom: 7px;

    color: #334155;
    font-size: 0.85rem;
    font-weight: 800;
}

.ai-engine-field select {
    width: 100%;
    min-height: 44px;

    padding: 9px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;
    color: #0f172a;

    font: inherit;
}

.ai-engine-field select:focus {
    outline: 3px solid rgba(99, 102, 241, 0.14);
    border-color: #6366f1;
}

.ai-engine-field select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.ai-engine-field-help {
    margin: 7px 0 0;

    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}


/* =========================================================
   CONNECTION
========================================================= */

.ai-connection-message {
    margin-top: 16px;
    padding: 11px 13px;

    border-radius: 10px;

    background: #f8fafc;
    color: #475569;

    font-size: 0.84rem;
    line-height: 1.5;
}

.ai-connection-message.is-success {
    background: #f0fdf4;
    color: #166534;
}

.ai-connection-message.is-warning {
    background: #fffbeb;
    color: #92400e;
}

.ai-connection-message.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.ai-refresh-button {
    margin-top: 12px;

    padding: 8px 0;

    border: 0;
    background: transparent;

    color: #4f46e5;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;

    cursor: pointer;
}

.ai-refresh-button:hover {
    text-decoration: underline;
}

.ai-refresh-button:disabled {
    opacity: 0.55;
    cursor: wait;
}


/* =========================================================
   BROWSER AI
========================================================= */

.ai-browser-description {
    margin: 16px 0 0;

    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.6;
}


/* =========================================================
   TEST PANEL
========================================================= */

.ai-engine-test-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 20px;
    padding: 18px 20px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #f8fafc;
}

.ai-engine-test-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.ai-engine-test-panel p {
    margin: 5px 0 0;
    max-width: 470px;

    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ai-engine-test-panel button {
    flex: 0 0 auto;
}


/* =========================================================
   TEST RESULT
========================================================= */

.ai-test-result {
    display: grid;
    gap: 5px;

    margin-top: 12px;
    padding: 14px 16px;

    border-radius: 12px;

    font-size: 0.85rem;
    line-height: 1.5;
}

.ai-test-result.is-testing {
    background: #eff6ff;
    color: #1d4ed8;
}

.ai-test-result.is-success {
    background: #f0fdf4;
    color: #166534;
}

.ai-test-result.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.ai-test-result strong,
.ai-test-result span,
.ai-test-result small {
    display: block;
}

.ai-test-result small {
    margin-top: 2px;
    opacity: 0.75;
}


/* =========================================================
   FOOTER
========================================================= */

.ai-engine-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #e2e8f0;
}

.ai-engine-footer p {
    margin: 0;
    max-width: 470px;

    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .ai-engine-modal {
        width: min(
            calc(100vw - 20px),
            760px
        );

        max-height:
            calc(100vh - 20px);
    }

    .ai-provider-card {
        padding: 16px;
    }

    .ai-provider-heading {
        gap: 10px;
    }

    .ai-provider-status {
        font-size: 0.62rem;
    }

    .ai-engine-test-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-engine-test-panel button {
        width: 100%;
    }

    .ai-engine-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-engine-footer button {
        width: 100%;
    }

}

/* =========================================================
   AI INTERVIEW COACH
========================================================= */

.ai-coach-panel {
    margin-top: 28px;
    padding: 24px;

    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.08),
            rgba(139, 92, 246, 0.04)
        );
}


.ai-coach-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}


.ai-coach-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border-radius: 14px;

    background:
        rgba(99, 102, 241, 0.12);

    font-size: 1.25rem;
}


.ai-coach-heading {
    min-width: 0;
}


.ai-coach-eyebrow {
    display: block;

    margin-bottom: 5px;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #6366f1;
}


.ai-coach-heading h4 {
    margin: 0 0 7px;

    font-size: 1.08rem;
    font-weight: 800;
}


.ai-coach-heading p {
    margin: 0;

    font-size: 0.9rem;
    line-height: 1.6;

    opacity: 0.8;
}


.ai-coach-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 18px;
    padding: 13px 15px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.58);
}


.ai-coach-privacy > span {
    flex: 0 0 auto;
}


.ai-coach-privacy div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.ai-coach-privacy strong {
    font-size: 0.82rem;
}


.ai-coach-privacy small {
    font-size: 0.76rem;
    line-height: 1.45;

    opacity: 0.72;
}


.ai-coach-actions {
    display: flex;
    align-items: center;

    margin-top: 18px;
}


.ai-coach-button {
    min-height: 44px;
}


.ai-coach-status {
    margin-top: 16px;
    padding: 13px 15px;

    border-radius: 12px;

    font-size: 0.85rem;
    line-height: 1.5;

    background:
        rgba(99, 102, 241, 0.08);
}


.ai-coach-results {
    margin-top: 18px;
}


/* =========================================================
   DARK THEME
========================================================= */

.dark-theme .ai-coach-panel {
    border-color:
        rgba(129, 140, 248, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.14),
            rgba(139, 92, 246, 0.07)
        );
}


.dark-theme .ai-coach-privacy {
    background:
        rgba(255, 255, 255, 0.05);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .ai-coach-panel {
        margin-top: 22px;
        padding: 18px;
    }


    .ai-coach-header {
        gap: 12px;
    }


    .ai-coach-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;

        border-radius: 12px;
    }


    .ai-coach-actions {
        width: 100%;
    }


    .ai-coach-button {
        width: 100%;
    }

}

/* =========================================================
   AI COACH RAW RESPONSE
========================================================= */

.ai-coach-raw-response {
    margin: 0;
    padding: 18px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.72);

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.65;
}


.dark-theme .ai-coach-raw-response {
    background:
        rgba(255, 255, 255, 0.05);
}


#generateAICoaching:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* =========================================================
   STRUCTURED AI COACHING RESULTS
========================================================= */

.ai-coaching-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}


.ai-coaching-card {
    padding: 20px;

    border:
        1px solid
        rgba(99, 102, 241, 0.14);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.72);

    box-sizing: border-box;
}


.ai-coaching-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 14px;
}


.ai-coaching-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border-radius: 10px;

    background:
        rgba(99, 102, 241, 0.1);

    font-size: 0.9rem;
    font-weight: 800;
}


.ai-coaching-card-header > div {
    min-width: 0;
}


.ai-coaching-card-eyebrow {
    display: block;

    margin-bottom: 3px;

    font-size: 0.66rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #6366f1;
}


.ai-coaching-card h5 {
    margin: 0;

    font-size: 0.98rem;
    font-weight: 800;

    line-height: 1.3;
}


.ai-coaching-card-text {
    margin: 0;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    font-size: 0.88rem;
    line-height: 1.7;
}


.ai-coaching-comparison {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.ai-coaching-list {
    display: grid;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.ai-coaching-list li {
    position: relative;

    padding-left: 18px;

    font-size: 0.86rem;
    line-height: 1.6;
}


.ai-coaching-list li::before {
    content: "•";

    position: absolute;

    left: 2px;
    top: 0;

    font-weight: 900;
}


.ai-coaching-strengths {
    border-color:
        rgba(22, 163, 74, 0.18);
}


.ai-coaching-strengths
.ai-coaching-card-icon {
    background:
        rgba(22, 163, 74, 0.1);
}


.ai-coaching-improvements {
    border-color:
        rgba(217, 119, 6, 0.2);
}


.ai-coaching-improvements
.ai-coaching-card-icon {
    background:
        rgba(217, 119, 6, 0.1);
}


.ai-coaching-example {
    border-color:
        rgba(99, 102, 241, 0.24);

    background:
        rgba(99, 102, 241, 0.055);
}


.ai-coaching-follow-up {
    border-style: dashed;
}


/* =========================================================
   DARK THEME
========================================================= */

.dark-theme
.ai-coaching-card {
    border-color:
        rgba(129, 140, 248, 0.2);

    background:
        rgba(255, 255, 255, 0.045);
}


.dark-theme
.ai-coaching-example {
    background:
        rgba(99, 102, 241, 0.09);
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 640px
) {

    .ai-coaching-grid {
        gap: 12px;
    }


    .ai-coaching-comparison {
        /*
         * Keep strengths and improvements
         * side-by-side instead of vertically
         * stacking the entire section.
         */

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 10px;
    }


    .ai-coaching-card {
        padding: 16px;
    }


    .ai-coaching-comparison
    .ai-coaching-card {
        padding: 14px;
    }


    .ai-coaching-comparison
    .ai-coaching-card-header {
        gap: 8px;
    }


    .ai-coaching-comparison
    .ai-coaching-card-icon {
        width: 28px;
        height: 28px;

        flex-basis: 28px;
    }


    .ai-coaching-card-text {
        font-size: 0.84rem;
    }


    .ai-coaching-list li {
        padding-left: 14px;

        font-size: 0.8rem;
    }

}

/* =========================================================
   AI GROUNDING PROTECTION
========================================================= */

.ai-coaching-grounded {
    border-style: dashed;
}


.ai-coaching-grounded
.ai-coaching-card-text {
    white-space: pre-wrap;
}


.ai-coaching-grounded
.ai-coaching-card-icon {
    background:
        rgba(99, 102, 241, 0.12);
}

/* =========================================================
   COMPLETED INTERVIEW — AI COACHING REVIEW
========================================================= */

.mock-review-ai-section {
    position: relative;

    margin-top: 20px;
    padding: 18px;

    overflow: hidden;

    border:
        1px solid
        rgba(99, 102, 241, 0.18);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(238, 242, 255, 0.72),
            rgba(255, 255, 255, 0.96)
        );
}


/*
 * Small accent at the top helps distinguish
 * AI coaching from the standard review above it.
 */

.mock-review-ai-section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 18px;
    right: 18px;

    height: 3px;

    border-radius:
        0
        0
        999px
        999px;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6,
            #0891b2
        );
}


/* =========================================================
   AI REVIEW HEADING
========================================================= */

.mock-review-ai-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 16px;
    padding-bottom: 14px;

    border-bottom:
        1px solid
        rgba(99, 102, 241, 0.12);
}


.mock-review-ai-heading > div {
    min-width: 0;
}


.mock-review-ai-heading span {
    display: block;

    margin-bottom: 4px;

    color: #6366f1;

    font-size: 0.66rem;
    font-weight: 850;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


.mock-review-ai-heading h4 {
    margin: 0;

    color: #0f172a;

    font-size: 1rem;
    font-weight: 850;

    line-height: 1.3;
}


/* =========================================================
   MODEL BADGE
========================================================= */

.mock-review-ai-heading small {
    flex: 0 0 auto;

    max-width: 180px;

    padding:
        5px
        9px;

    overflow: hidden;

    border:
        1px solid
        rgba(99, 102, 241, 0.16);

    border-radius: 999px;

    background:
        rgba(99, 102, 241, 0.08);

    color: #4f46e5;

    font-size: 0.64rem;
    font-weight: 800;

    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   AI GRID INSIDE COMPLETED REVIEW
========================================================= */

.mock-review-ai-grid {
    gap: 12px;
}


/*
 * The generic AI cards are intentionally slightly
 * tighter inside the completed interview summary.
 */

.mock-review-ai-grid
.ai-coaching-card {
    padding: 16px;

    background:
        rgba(255, 255, 255, 0.88);

    box-shadow:
        0 3px 12px
        rgba(15, 23, 42, 0.035);
}


.mock-review-ai-grid
.ai-coaching-card-header {
    margin-bottom: 10px;
}


.mock-review-ai-grid
.ai-coaching-card h5 {
    font-size: 0.9rem;
}


.mock-review-ai-grid
.ai-coaching-card-text {
    color: #334155;

    font-size: 0.82rem;
    line-height: 1.65;
}


.mock-review-ai-grid
.ai-coaching-list li {
    color: #334155;

    font-size: 0.8rem;
    line-height: 1.55;
}


/* =========================================================
   ILLUSTRATIVE / PROTECTED ANSWER
========================================================= */

.mock-review-ai-grid
.ai-coaching-example {
    background:
        linear-gradient(
            145deg,
            rgba(238, 242, 255, 0.9),
            rgba(255, 255, 255, 0.92)
        );
}


.mock-review-ai-grid
.ai-coaching-grounded {
    background:
        rgba(248, 250, 252, 0.94);
}


/* =========================================================
   INTERVIEWER FOLLOW-UP
========================================================= */

.mock-review-ai-grid
.ai-coaching-follow-up {
    background:
        rgba(248, 250, 252, 0.8);
}


/* =========================================================
   DARK THEME
========================================================= */

.dark-theme
.mock-review-ai-section {
    border-color:
        rgba(129, 140, 248, 0.22);

    background:
        linear-gradient(
            145deg,
            rgba(79, 70, 229, 0.09),
            rgba(17, 24, 39, 0.96)
        );
}


.dark-theme
.mock-review-ai-heading {
    border-bottom-color:
        rgba(129, 140, 248, 0.16);
}


.dark-theme
.mock-review-ai-heading h4 {
    color: var(--ip-text);
}


.dark-theme
.mock-review-ai-heading span {
    color: #a5b4fc;
}


.dark-theme
.mock-review-ai-heading small {
    border-color:
        rgba(129, 140, 248, 0.22);

    background:
        rgba(99, 102, 241, 0.12);

    color: #c7d2fe;
}


.dark-theme
.mock-review-ai-grid
.ai-coaching-card {
    background:
        rgba(255, 255, 255, 0.045);
}


.dark-theme
.mock-review-ai-grid
.ai-coaching-card-text,
.dark-theme
.mock-review-ai-grid
.ai-coaching-list li {
    color: var(--ip-text-soft);
}


.dark-theme
.mock-review-ai-grid
.ai-coaching-example {
    background:
        rgba(99, 102, 241, 0.09);
}


.dark-theme
.mock-review-ai-grid
.ai-coaching-grounded,
.dark-theme
.mock-review-ai-grid
.ai-coaching-follow-up {
    background:
        rgba(255, 255, 255, 0.035);
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 640px
) {

    .mock-review-ai-section {
        margin-top: 16px;

        padding:
            15px
            12px;

        border-radius: 14px;
    }


    .mock-review-ai-section::before {
        left: 12px;
        right: 12px;
    }


    /*
     * Keep heading and model on one row whenever
     * possible instead of vertically stacking them.
     */

    .mock-review-ai-heading {
        gap: 8px;

        margin-bottom: 13px;
        padding-bottom: 12px;
    }


    .mock-review-ai-heading h4 {
        font-size: 0.9rem;
    }


    .mock-review-ai-heading span {
        font-size: 0.58rem;
    }


    .mock-review-ai-heading small {
        max-width: 120px;

        padding:
            4px
            7px;

        font-size: 0.57rem;
    }


    .mock-review-ai-grid {
        gap: 10px;
    }


    .mock-review-ai-grid
    .ai-coaching-card {
        padding: 13px;
    }


    .mock-review-ai-grid
    .ai-coaching-card-text {
        font-size: 0.8rem;
    }


    .mock-review-ai-grid
    .ai-coaching-list li {
        font-size: 0.77rem;
    }

}


/* =========================================================
   INTERVIEWPAL — DARK MODE COMPONENT FIXES
========================================================= */

html.dark-theme {

    /*
     * Compatibility variables used by newer
     * InterviewPal practice components.
     */

    --surface: #111827;
    --surface-soft: #161f30;

    --text: #edf2f8;
    --text-secondary: #bdc7d6;
    --text-muted: #94a3b8;

    --border-color: #334155;

    --primary: #6366f1;
}


/* =========================================================
   QUESTION BROWSER — DARK MODE
========================================================= */

html.dark-theme
.question-card {
    background: #111827;

    border-color: #334155;

    color: #edf2f8;
}


html.dark-theme
.question-card:hover {
    background: #161f30;

    border-color:
        rgba(129, 140, 248, 0.55);
}


html.dark-theme
.question-card-content h3 {
    color: #edf2f8;
}


html.dark-theme
.question-meta span {
    background: #1e293b;

    color: #cbd5e1;
}


html.dark-theme
.question-number {
    background:
        rgba(99, 102, 241, 0.16);

    color: #a5b4fc;
}


/* =========================================================
   PRACTICE SETUP — DARK MODE
========================================================= */

html.dark-theme
.practice-setup-modal {
    background: #111827;

    color: #edf2f8;
}


html.dark-theme
.practice-setup-modal h2,
html.dark-theme
.practice-setup-modal h3,
html.dark-theme
.practice-setup-modal h4,
html.dark-theme
.practice-setup-modal strong {
    color: #edf2f8;
}


html.dark-theme
.practice-setup-intro > p,
html.dark-theme
.practice-setup-section-heading p,
html.dark-theme
.practice-media-note {
    color: #94a3b8;
}


html.dark-theme
.practice-setup-section {
    background: #161f30;

    border-color: #334155;
}


html.dark-theme
.practice-setup-question {
    background: #111827;

    border-color: #334155;
}


html.dark-theme
.practice-setup-question:hover {
    background: #182236;

    border-color:
        rgba(129, 140, 248, 0.55);
}


html.dark-theme
.practice-setup-question.selected {
    background:
        rgba(99, 102, 241, 0.13);

    border-color: #818cf8;
}


html.dark-theme
.practice-setup-question-text {
    color: #e2e8f0;
}


html.dark-theme
.practice-setup-question-number {
    color: #a5b4fc;
}


html.dark-theme
.practice-setup-final-summary {
    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.12),
            #111827
        );

    border-color:
        rgba(129, 140, 248, 0.28);
}

/* =========================================================
   QUESTION CARD ACTION BUTTONS
========================================================= */

.question-card-actions button {
    min-height: 36px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        7px
        13px;

    border:
        1px solid
        var(--ip-border-strong);

    border-radius: 9px;

    background: #ffffff;

    color: var(--ip-text);

    font-size: 0.78rem;
    font-weight: 800;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.question-card-actions button:hover {
    transform:
        translateY(-1px);
}


/*
 * View
 */

.question-card-actions
button:first-child {
    color: #4f46e5;

    border-color:
        rgba(79, 70, 229, 0.24);

    background: #eef2ff;
}


.question-card-actions
button:first-child:hover {
    border-color: #6366f1;

    background: #e0e7ff;
}


/*
 * Practice — primary action
 */

.question-card-actions
button:last-child {
    color: #ffffff;

    border-color: #4f46e5;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #2563eb
        );

    box-shadow:
        0 5px 14px
        rgba(79, 70, 229, 0.18);
}


.question-card-actions
button:last-child:hover {
    border-color: #4338ca;

    background:
        linear-gradient(
            135deg,
            #4338ca,
            #1d4ed8
        );

    box-shadow:
        0 7px 18px
        rgba(79, 70, 229, 0.25);
}


/* DARK MODE */

html.dark-theme
.question-card-actions
button:first-child {
    color: #c7d2fe;

    border-color:
        rgba(129, 140, 248, 0.32);

    background:
        rgba(99, 102, 241, 0.12);
}


html.dark-theme
.question-card-actions
button:first-child:hover {
    background:
        rgba(99, 102, 241, 0.2);
}


html.dark-theme
.question-card-actions
button:last-child {
    color: #ffffff;

    border-color: #6366f1;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #2563eb
        );
}


/* =========================================================
   MODAL CLOSE BUTTONS
========================================================= */

.ip-modal-close,
.practice-modal-close,
.practice-setup-close,
.modal-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        var(--ip-border);

    border-radius: 11px;

    background: #f8fafc;

    color: #475569;

    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 8px
        rgba(15, 23, 42, 0.05);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}


.ip-modal-close:hover,
.practice-modal-close:hover,
.practice-setup-close:hover,
.modal-close:hover {
    transform: rotate(4deg);

    border-color: #fca5a5;

    background: #fef2f2;

    color: #dc2626;
}


/* DARK MODE */

html.dark-theme
.ip-modal-close,
html.dark-theme
.practice-modal-close,
html.dark-theme
.practice-setup-close,
html.dark-theme
.modal-close {
    border-color: #334155;

    background: #1e293b;

    color: #cbd5e1;
}


html.dark-theme
.ip-modal-close:hover,
html.dark-theme
.practice-modal-close:hover,
html.dark-theme
.practice-setup-close:hover,
html.dark-theme
.modal-close:hover {
    border-color:
        rgba(248, 113, 113, 0.45);

    background:
        rgba(127, 29, 29, 0.28);

    color: #fca5a5;
}

/* =========================================================
   SELECTED PRACTICE METHOD
========================================================= */

.practice-response-option {
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.practice-response-option:not(.unavailable):hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(79, 70, 229, 0.42);
}


/*
 * Strong selected state.
 */

.practice-response-option.active,
.practice-response-option[aria-pressed="true"] {
    border-color: #4f46e5 !important;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        )
        !important;

    color: #ffffff !important;

    box-shadow:
        0 7px 20px
        rgba(79, 70, 229, 0.28);

    transform:
        translateY(-2px);
}


/*
 * Force all text inside the selected
 * method to remain readable.
 */

.practice-response-option.active
.practice-response-option-content strong,

.practice-response-option.active
.practice-response-option-content small,

.practice-response-option.active
.practice-response-icon,

.practice-response-option[aria-pressed="true"]
.practice-response-option-content strong,

.practice-response-option[aria-pressed="true"]
.practice-response-option-content small,

.practice-response-option[aria-pressed="true"]
.practice-response-icon {
    color: #ffffff !important;
}


/*
 * Selected indicator.
 */

.practice-response-option.active::after,
.practice-response-option[aria-pressed="true"]::after {
    content: "✓ Selected";

    position: absolute;

    top: 9px;
    right: 9px;

    padding:
        4px
        7px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.18);

    color: #ffffff;

    font-size: 0.59rem;
    font-weight: 850;

    letter-spacing: 0.02em;
}


/*
 * Capability text needs special handling
 * because it normally uses green.
 */

.practice-response-option.active
.practice-capability,

.practice-response-option[aria-pressed="true"]
.practice-capability {
    color: #ffffff !important;

    opacity: 0.9;
}


/* DARK MODE */

html.dark-theme
.practice-response-option {
    background: #111827;

    border-color: #334155;

    color: #edf2f8;
}


html.dark-theme
.practice-response-option:not(.unavailable):hover {
    background: #182236;

    border-color:
        rgba(129, 140, 248, 0.58);
}


html.dark-theme
.practice-response-option.active,

html.dark-theme
.practice-response-option[aria-pressed="true"] {
    border-color: #818cf8 !important;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #3730a3
        )
        !important;

    color: #ffffff !important;
}


/* =========================================================
   ALL MODALS — DARK MODE
========================================================= */

html.dark-theme
.ip-modal {
    background: var(--ip-surface);

    color: var(--ip-text);

    border:
        1px solid
        var(--ip-border);
}


html.dark-theme
.ip-practice-modal {
    background: var(--ip-surface);

    color: var(--ip-text);
}


/*
 * Practice question heading
 */

html.dark-theme
.practice-modal-header h2 {
    color: var(--ip-text);
}


html.dark-theme
.practice-response-heading label {
    color: var(--ip-text);
}

/* =========================================================
   PRACTICE STAR GUIDE — DARK MODE TEXT
========================================================= */

html.dark-theme
.star-guide-heading strong,

html.dark-theme
.star-guide-grid strong {
    color: var(--ip-text);
}


html.dark-theme
.star-guide-heading small,

html.dark-theme
.star-guide-grid p {
    color: var(--ip-text-muted);
}


html.dark-theme
.star-toggle-button {
    color: #a5b4fc;
}

/* =========================================================
   PRACTICE MODAL CLOSE BUTTON
========================================================= */

.practice-modal-header > button {
    width: 38px;
    height: 38px;

    flex:
        0
        0
        38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        #cbd5e1;

    border-radius: 11px;

    background: #f8fafc;

    color: #475569;

    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 3px 10px
        rgba(15, 23, 42, 0.06);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.practice-modal-header > button:hover {
    transform:
        translateY(-1px);

    background: #fef2f2;

    border-color: #fca5a5;

    color: #dc2626;

    box-shadow:
        0 5px 14px
        rgba(220, 38, 38, 0.1);
}


.practice-modal-header > button:focus-visible {
    outline:
        3px solid
        rgba(79, 70, 229, 0.2);

    outline-offset: 2px;
}


/* DARK MODE */

html.dark-theme
.practice-modal-header > button {
    background: #1e293b;

    border-color: #475569;

    color: #e2e8f0;

    box-shadow: none;
}


html.dark-theme
.practice-modal-header > button:hover {
    background:
        rgba(127, 29, 29, 0.32);

    border-color: #ef4444;

    color: #fecaca;
}

/* =========================================================
   OTHER INTERVIEWPAL MODAL CLOSE BUTTONS
========================================================= */

.practice-setup-modal
.practice-modal-header > button,

.mock-setup-modal
.practice-modal-header > button {
    width: 38px;
    height: 38px;

    flex:
        0
        0
        38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        #cbd5e1;

    border-radius: 11px;

    background: #f8fafc;

    color: #475569;

    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;
}


html.dark-theme
.practice-setup-modal
.practice-modal-header > button,

html.dark-theme
.mock-setup-modal
.practice-modal-header > button {
    background: #1e293b;

    border-color: #475569;

    color: #e2e8f0;
}

/* =========================================================
   CUSTOM INTERVIEW — VISUAL POLISH
   Phase 3
========================================================= */

.custom-interview-section {
    width: 100%;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) 0;
}

.custom-interview-card {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--ip-border);
    border-radius: 24px;
    background: var(--ip-surface);
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.08);
}

.custom-interview-card .section-heading {
    max-width: 760px;
    margin-bottom: clamp(24px, 4vw, 34px);
}

.custom-interview-card .section-heading h2 {
    margin: 6px 0 10px;
    color: var(--ip-text);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.custom-interview-card .section-heading > p:last-child {
    max-width: 700px;
    margin: 0;
    color: var(--ip-text-soft);
    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

.custom-interview-card #customInterviewForm {
    display: grid;
    gap: 22px;
}

.custom-interview-card .form-group {
    display: grid;
    gap: 9px;
}

.custom-interview-card .form-group label {
    color: var(--ip-text);
    font-size: 0.94rem;
    font-weight: 700;
}

.custom-interview-card .form-group input,
.custom-interview-card .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ip-border-strong);
    border-radius: 14px;
    background: var(--ip-surface-soft);
    color: var(--ip-text);
    font: inherit;
    line-height: 1.55;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.custom-interview-card .form-group input {
    min-height: 52px;
    padding: 0 16px;
}

.custom-interview-card .form-group textarea {
    min-height: 190px;
    padding: 14px 16px;
    resize: vertical;
}

.custom-interview-card .form-group input::placeholder,
.custom-interview-card .form-group textarea::placeholder {
    color: var(--ip-text-muted);
}

.custom-interview-card .form-group input:hover,
.custom-interview-card .form-group textarea:hover {
    border-color: var(--ip-border-strong);
}

.custom-interview-card .form-group input:focus,
.custom-interview-card .form-group textarea:focus {
    border-color: var(--primary, #6366f1);
    background: var(--ip-surface);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12);
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.custom-interview-card .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
}

.custom-interview-card .form-actions .button {
    min-height: 48px;
    border-radius: 12px;
}

.custom-interview-card .form-status {
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid var(--ip-border);
    border-radius: 12px;
    background: var(--ip-surface-soft);
    color: var(--ip-text-soft);
    line-height: 1.5;
}


/* =========================================================
   GENERATED RESULTS
========================================================= */

.custom-interview-results {
    width: min(100%, 1000px);
    margin: clamp(28px, 5vw, 48px) auto 0;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--ip-border);
    border-radius: 24px;
    background: var(--ip-surface);
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.07);
}

.custom-interview-results-heading {
    margin-bottom: 18px;
}

.custom-interview-results-heading .eyebrow {
    margin-bottom: 6px;
}

.custom-interview-results-heading h3 {
    margin: 0;
    color: var(--ip-text);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.custom-interview-results-heading p:last-child {
    margin: 9px 0 0;
    color: var(--ip-text-soft);
    line-height: 1.6;
}


/* =========================================================
   RESULT META
========================================================= */

.custom-interview-results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 18px;
}

.custom-interview-results-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid var(--ip-border);
    border-radius: 999px;
    background: var(--ip-surface-soft);
    color: var(--ip-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   SELECTION STATUS
========================================================= */

.custom-interview-selection-status {
    margin: 0 0 14px;
    color: var(--ip-text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================================
   QUESTION LIST
========================================================= */

.custom-interview-question-list {
    display: grid;
    gap: 12px;
}

.custom-interview-question {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 17px;
    border: 1px solid var(--ip-border);
    border-radius: 17px;
    background: var(--ip-surface-soft);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}

.custom-interview-question:hover {
    border-color: var(--ip-border-strong);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}


/* =========================================================
   QUESTION SELECTOR
========================================================= */

.custom-interview-question-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.custom-interview-question-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-interview-question-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 2px solid var(--ip-border-strong);
    border-radius: 7px;
    background: var(--ip-surface);
    color: transparent;
    font-size: 0.8rem;
    font-weight: 900;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.custom-interview-question-checkbox:checked
+ .custom-interview-question-checkmark {
    border-color: var(--primary, #6366f1);
    background: var(--primary, #6366f1);
    color: #ffffff;
    box-shadow:
        0 4px 12px rgba(99, 102, 241, 0.25);
}

.custom-interview-question-checkbox:focus-visible
+ .custom-interview-question-checkmark {
    outline: 3px solid rgba(99, 102, 241, 0.2);
    outline-offset: 2px;
}

.custom-interview-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--ip-surface);
    color: var(--ip-text-muted);
    font-size: 0.75rem;
    font-weight: 800;
}


/* =========================================================
   SELECTED QUESTION STATE
========================================================= */

.custom-interview-question:has(
    .custom-interview-question-checkbox:checked
) {
    border-color: rgba(99, 102, 241, 0.42);
    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.07),
            var(--ip-surface-soft)
        );
}


/* =========================================================
   QUESTION CONTENT
========================================================= */

.custom-interview-question-content {
    min-width: 0;
}

.custom-interview-question-type {
    margin: 0 0 6px;
    color: var(--primary, #6366f1);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-interview-question-content h4 {
    margin: 0;
    color: var(--ip-text);
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}


/* =========================================================
   TOPIC TAGS
========================================================= */

.custom-interview-question-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.custom-interview-question-topics span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid var(--ip-border);
    border-radius: 999px;
    background: var(--ip-surface);
    color: var(--ip-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}


/* =========================================================
   RESULT ACTIONS
========================================================= */

.custom-interview-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--ip-border);
}

.custom-interview-results-actions .button {
    min-height: 48px;
    border-radius: 12px;
}


/* =========================================================
   DARK THEME REFINEMENT
========================================================= */

html.dark-theme .custom-interview-card,
html.dark-theme .custom-interview-results {
    background: var(--ip-surface);
    border-color: var(--ip-border);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.22);
}

html.dark-theme .custom-interview-question {
    background: var(--ip-surface-soft);
}

html.dark-theme
.custom-interview-question:hover {
    background: #1b2638;
}

html.dark-theme
.custom-interview-question:has(
    .custom-interview-question-checkbox:checked
) {
    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.13),
            var(--ip-surface-soft)
        );
}

html.dark-theme
.custom-interview-question-number {
    background: var(--ip-surface);
}

html.dark-theme
.custom-interview-question-topics span {
    background: var(--ip-surface);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .custom-interview-section {
        padding: 28px 0 42px;
    }

    .custom-interview-card,
    .custom-interview-results {
        border-radius: 20px;
    }

    .custom-interview-question {
        gap: 12px;
        padding: 15px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .custom-interview-section {
        padding: 20px 0 34px;
    }

    .custom-interview-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .custom-interview-results {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .custom-interview-card .section-heading h2 {
        font-size: 1.55rem;
    }

    .custom-interview-card .form-group textarea {
        min-height: 170px;
    }

    .custom-interview-card .form-actions,
    .custom-interview-results-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .custom-interview-card .form-actions .button,
    .custom-interview-results-actions .button {
        width: 100%;
    }

    .custom-interview-results-meta {
        gap: 6px;
    }

    .custom-interview-results-meta span {
        font-size: 0.74rem;
    }

    .custom-interview-question {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 15px;
    }

    .custom-interview-question-select {
        width: 100%;
        justify-content: flex-start;
    }

    .custom-interview-question-number {
        min-height: 28px;
    }

    .custom-interview-question-content h4 {
        font-size: 0.95rem;
        line-height: 1.55;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .custom-interview-card {
        padding: 18px 13px;
    }

    .custom-interview-results {
        padding: 18px 12px;
    }

    .custom-interview-question {
        padding: 13px;
    }

    .custom-interview-results-meta span {
        width: 100%;
        justify-content: center;
    }

}