/* --------------------------------------------------------------------------
   AI Interview Assistant — design system and responsive interface
   -------------------------------------------------------------------------- */

:root {
    --navy-950: #06101f;
    --navy-900: #0a1729;
    --navy-850: #0d1d33;
    --navy-800: #12243d;
    --navy-700: #1a3557;
    --blue-700: #1e50d8;
    --blue-600: #2864ef;
    --blue-500: #3b7aff;
    --blue-100: #eaf1ff;
    --blue-50: #f3f7ff;
    --violet-600: #7657e8;
    --green-700: #11835d;
    --green-600: #16a574;
    --green-100: #dcf8ed;
    --orange-600: #df7827;
    --orange-100: #fff0df;
    --red-600: #d3454c;
    --red-100: #ffeaec;
    --pink-600: #ce4fa1;
    --cyan-600: #118ca3;
    --ink: #152238;
    --text: #283951;
    --muted: #68778d;
    --muted-2: #8a97a9;
    --border: #dfe6ef;
    --border-light: #e9eef5;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --canvas-blue: #f2f6fc;
    --shadow-sm: 0 2px 8px rgba(14, 30, 53, .06);
    --shadow-md: 0 12px 32px rgba(12, 31, 59, .09);
    --shadow-lg: 0 24px 60px rgba(6, 22, 48, .16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --header-height: 72px;
    --container: 1180px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--canvas);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; }
::selection { background: #cbdcff; color: #0c2d73; }
:focus-visible { outline: 3px solid rgba(40, 100, 239, .35); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: -100px;
    padding: 10px 16px;
    color: white;
    background: var(--blue-600);
    border-radius: 8px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Header ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: var(--header-height);
    color: #dbe6f6;
    background: rgba(6, 16, 31, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}
.site-header--public {
    color: var(--text);
    background: rgba(255, 255, 255, .96);
    border-bottom-color: var(--border-light);
}
.nav-container {
    width: min(1240px, calc(100% - 40px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--blue-500), #6d58e8);
    box-shadow: 0 7px 16px rgba(44, 99, 229, .25);
}
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.brand-mark svg .brand-mark__spark { fill: #fff; stroke-width: .8; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; letter-spacing: -.01em; }
.brand-copy strong { color: #fff; font-size: 16px; font-weight: 750; }
.brand-copy span { color: #93a6c0; font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.site-header--public .brand-copy strong { color: var(--ink); }
.site-header--public .brand-copy span { color: var(--muted); }
.primary-nav { height: 100%; display: flex; align-items: center; gap: 7px; }
.nav-link {
    height: 100%;
    padding: 0 15px;
    display: grid;
    place-items: center;
    color: #aab9cd;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link.is-active { color: #fff; border-bottom-color: var(--blue-500); }
.nav-divider { width: 1px; height: 30px; margin-inline: 10px; background: rgba(255, 255, 255, .12); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px; }
.avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #285ec9, #6149cb);
    border: 2px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}
.user-chip__copy { display: flex; flex-direction: column; line-height: 1.25; }
.user-chip__copy strong { max-width: 150px; overflow: hidden; color: #eff5ff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__copy small { color: #8599b3; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.logout-form { margin: 0 0 0 3px; }
.icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #94a7c0;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: .2s;
}
.icon-button:hover { color: white; background: rgba(255, 255, 255, .08); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.public-nav { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.nav-toggle { display: none; }

/* Reusable components ------------------------------------------------------ */
.main-content { min-height: calc(100vh - var(--header-height) - 76px); }
.btn {
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, color .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--blue-600), #3158d8); border-color: var(--blue-600); box-shadow: 0 7px 18px rgba(40, 100, 239, .22); }
.btn--primary:hover { background: linear-gradient(135deg, #1e58e5, #274ecb); box-shadow: 0 10px 24px rgba(40, 100, 239, .28); }
.btn--secondary { color: #244674; background: #fff; border-color: #cbd7e7; }
.btn--secondary:hover { border-color: #9eb2ce; background: #f8fbff; }
.btn--ghost { color: var(--blue-700); background: var(--blue-50); border-color: #d6e2fb; }
.btn--ghost-light { color: #edf4ff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .34); }
.btn--light { color: #14366c; background: #fff; border-color: #fff; box-shadow: 0 9px 22px rgba(3, 17, 41, .2); }
.btn--small { min-height: 36px; padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.btn--large { min-height: 50px; padding: 13px 22px; }
.btn--block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after { border-color: #b8c7dc; border-top-color: var(--blue-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-700); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; background: var(--blue-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(59, 122, 255, .12); }
.eyebrow--light { color: #bad1fa; }
.eyebrow--light i { background: #70a5ff; box-shadow: 0 0 0 4px rgba(112, 165, 255, .15); }
.section-kicker { display: block; margin-bottom: 7px; color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-heading { margin-bottom: 25px; }
.section-heading h2 { margin-bottom: 8px; font-size: 25px; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.flash-region { position: fixed; z-index: 500; top: 84px; right: 22px; width: min(400px, calc(100% - 32px)); display: grid; gap: 10px; pointer-events: none; }
.flash {
    padding: 13px 13px 13px 14px;
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    align-items: center;
    gap: 9px;
    color: #243650;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    pointer-events: auto;
    animation: slideIn .28s ease both;
}
.flash--success { border-left-color: var(--green-600); }
.flash--error { border-left-color: var(--red-600); }
.flash--info { border-left-color: var(--blue-500); }
.flash__icon { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--blue-500); border-radius: 50%; font-weight: 850; }
.flash--success .flash__icon { background: var(--green-600); }
.flash--error .flash__icon { background: var(--red-600); }
.flash__close { color: #7b899b; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; }
.flash.is-leaving { animation: slideOut .25s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(24px); } }
.mode-notice, .demo-banner { color: #62420e; background: #fff7de; border: 1px solid #efdaa2; border-radius: 10px; }
.mode-notice { padding: 10px 12px; margin-bottom: 20px; font-size: 12px; }
.status-dot { width: 7px; height: 7px; display: inline-block; background: #37c38f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(55, 195, 143, .1); }
.site-footer { color: #8090a5; background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.footer-note { display: flex; align-items: center; gap: 8px; }

/* Authentication ---------------------------------------------------------- */
.auth-page { background: #fff; }
.auth-main { min-height: calc(100vh - var(--header-height)); }
.auth-shell { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: minmax(430px, .95fr) minmax(500px, 1.05fr); }
.auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #dce8fb;
    background:
        linear-gradient(145deg, rgba(10, 30, 58, .96), rgba(8, 22, 43, .99)),
        radial-gradient(circle at 30% 20%, #244d92, transparent 60%);
}
.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .17;
    background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom right, black, transparent 78%);
}
.auth-visual__glow { position: absolute; border-radius: 50%; filter: blur(1px); }
.auth-visual__glow--one { width: 400px; height: 400px; left: -190px; bottom: -130px; background: rgba(48, 96, 210, .2); }
.auth-visual__glow--two { width: 240px; height: 240px; top: 7%; right: -100px; border: 1px solid rgba(107, 151, 238, .2); box-shadow: 0 0 90px rgba(50, 90, 194, .18) inset; }
.auth-visual__content { position: relative; z-index: 1; width: min(520px, calc(100% - 80px)); margin: 0 auto; padding-block: 54px; }
.auth-visual h1 { margin: 22px 0 18px; color: #fff; font-size: clamp(37px, 4vw, 54px); letter-spacing: -.045em; }
.auth-visual h1 span { color: #76a6ff; }
.auth-visual__content > p { max-width: 500px; margin-bottom: 31px; color: #aebfd6; font-size: 16px; }
.feature-stack { display: grid; gap: 12px; }
.mini-feature { padding: 13px 15px; display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.mini-feature__icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; color: #82b0ff; background: rgba(80, 130, 231, .13); border-radius: 10px; }
.mini-feature__icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mini-feature div { display: flex; flex-direction: column; }
.mini-feature strong { color: #edf4ff; font-size: 13px; }
.mini-feature small { color: #91a5bf; font-size: 11px; }
.quote-card { margin-top: 30px; padding: 18px 20px 16px 48px; position: relative; background: rgba(5, 15, 30, .32); border-left: 2px solid #457de5; border-radius: 0 12px 12px 0; }
.quote-card .quote-mark { position: absolute; top: 1px; left: 17px; color: #5e93f3; font: 44px/1 Georgia, serif; }
.quote-card p { margin-bottom: 4px; color: #bdcbe0; font-size: 13px; font-style: italic; }
.quote-card span { color: #6681a5; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.auth-panel { display: grid; place-items: center; padding: 46px; background: #fff; }
.auth-card { width: min(430px, 100%); }
.auth-card--register { width: min(455px, 100%); }
.auth-card__heading { margin-bottom: 28px; }
.auth-card__heading h2 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.035em; }
.auth-card__heading p { margin: 0; color: var(--muted); }
.mobile-brand-kicker { display: none; }
.form-stack { display: grid; gap: 19px; }
.form-stack--compact { gap: 14px; }
.field-group { display: grid; gap: 7px; }
.field-group label { color: #26384f; font-size: 12px; font-weight: 750; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.input-wrap { position: relative; }
.input-wrap > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    width: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8290a4;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 45px 0 43px;
    color: var(--ink);
    background: #fbfcfe;
    border: 1px solid #d7dfe9;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input::placeholder { color: #a0aaba; }
.input-wrap input:focus { background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 122, 255, .1); }
.password-toggle { position: absolute; z-index: 2; top: 50%; right: 11px; width: 32px; height: 32px; padding: 7px; color: #8190a3; background: transparent; border: 0; border-radius: 7px; transform: translateY(-50%); cursor: pointer; }
.password-toggle:hover { color: var(--blue-600); background: var(--blue-50); }
.password-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: center; }
.password-meter > span { height: 3px; background: #e2e7ee; border-radius: 5px; transition: background .2s; }
.password-meter small { grid-column: 1 / -1; color: var(--muted-2); font-size: 10px; }
.password-meter[data-strength="1"] > span:nth-child(1) { background: var(--red-600); }
.password-meter[data-strength="2"] > span:nth-child(-n+2) { background: var(--orange-600); }
.password-meter[data-strength="3"] > span:nth-child(-n+3) { background: #d3a81b; }
.password-meter[data-strength="4"] > span { background: var(--green-600); }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--blue-700); font-weight: 750; }
.auth-legal { margin: 17px 0 0; padding-top: 16px; color: #99a3b2; border-top: 1px solid var(--border-light); text-align: center; font-size: 10px; }
.registration-steps { display: grid; gap: 19px; margin-top: 34px; }
.registration-step { display: flex; align-items: center; gap: 15px; }
.registration-step b { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #8cb6ff; background: rgba(65, 110, 211, .15); border: 1px solid rgba(105, 148, 238, .18); border-radius: 50%; font-size: 10px; letter-spacing: .05em; }
.registration-step div { display: flex; flex-direction: column; }
.registration-step strong { color: #edf4ff; font-size: 13px; }
.registration-step small { color: #8fa3bd; }
.visual-metric-row { margin-top: 38px; padding-top: 23px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .09); }
.visual-metric-row div { display: flex; flex-direction: column; }
.visual-metric-row strong { color: #fff; font-size: 24px; }
.visual-metric-row span { color: #8298b5; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }

/* Dashboard --------------------------------------------------------------- */
.dashboard-hero { color: #fff; background: linear-gradient(115deg, var(--navy-950), #102846 72%, #15345b); }
.dashboard-hero__inner { min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.dashboard-hero h1 { margin: 10px 0 8px; color: #fff; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; }
.dashboard-hero p { max-width: 700px; margin: 0; color: #9eb1ca; }
.dashboard-content { padding-block: 30px 72px; }
.demo-banner { margin-bottom: 22px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; }
.demo-banner__icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #d69a25; border-radius: 8px; font-size: 12px; font-weight: 850; }
.demo-banner div { display: flex; align-items: baseline; gap: 10px; }
.demo-banner p { margin: 0; font-size: 12px; }
.demo-banner code { padding: 1px 4px; background: rgba(255, 255, 255, .65); border-radius: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: -66px; position: relative; }
.stat-card { min-height: 130px; padding: 24px; display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.stat-card__icon { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); border-radius: 13px; }
.stat-card__icon--violet { color: var(--violet-600); background: #eeeafd; }
.stat-card__icon--green { color: var(--green-700); background: var(--green-100); }
.stat-card__icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-card > div { display: flex; flex-direction: column; }
.stat-card span { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.stat-card strong em { color: #8290a3; font-size: 13px; font-style: normal; font-weight: 650; }
.stat-card small { color: #9aa5b4; font-size: 10px; }
.section-block { margin-top: 54px; }
.time-pill, .result-count { display: inline-flex; align-items: center; color: #63748a; background: #edf2f8; border-radius: 999px; font-size: 11px; font-weight: 650; }
.time-pill { padding: 9px 13px; gap: 7px; }
.time-pill svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.result-count { padding: 7px 12px; }
.active-list { display: grid; gap: 10px; }
.active-card { padding: 16px 18px; display: grid; grid-template-columns: 38px minmax(200px, 1fr) minmax(150px, .5fr) auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; transition: border .2s, box-shadow .2s, transform .2s; }
.active-card:hover { border-color: #bdcce0; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.active-card__badge { width: 35px; height: 35px; display: grid; place-items: center; color: var(--blue-700); background: var(--blue-100); border-radius: 9px; font-size: 12px; font-weight: 800; }
.active-card__copy { display: flex; flex-direction: column; }
.active-card__copy strong { color: var(--ink); }
.active-card__copy span, .active-card__progress > span { color: var(--muted); font-size: 11px; }
.active-card__progress > div { height: 5px; margin-top: 6px; overflow: hidden; background: #e8edf4; border-radius: 9px; }
.active-card__progress i { height: 100%; display: block; background: linear-gradient(90deg, var(--blue-500), var(--violet-600)); border-radius: inherit; }
.active-card__action { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-700); font-size: 12px; font-weight: 750; }
.active-card__action svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.category-section { scroll-margin-top: 100px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card {
    --category: var(--blue-600);
    --category-bg: var(--blue-100);
    min-height: 154px;
    padding: 20px 18px;
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr 20px;
    align-items: start;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.category-card:hover { transform: translateY(-2px); border-color: #b8c7da; box-shadow: var(--shadow-md); }
.category-card:has(input:focus-visible) { outline: 3px solid rgba(40, 100, 239, .3); outline-offset: 2px; }
.category-card.is-selected, .category-card:has(input:checked) { border-color: var(--category); background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--category-bg) 55%, white)); box-shadow: 0 10px 25px color-mix(in srgb, var(--category) 14%, transparent); }
.category-card input { position: absolute; opacity: 0; pointer-events: none; }
.category-card--violet { --category: #7257d9; --category-bg: #eeeafd; }
.category-card--blue { --category: #2864ef; --category-bg: #eaf1ff; }
.category-card--orange { --category: #d9792c; --category-bg: #fff0df; }
.category-card--cyan { --category: #168ca2; --category-bg: #e1f7fa; }
.category-card--green { --category: #13855f; --category-bg: #dcf8ed; }
.category-card--pink { --category: #ca519d; --category-bg: #fbe7f4; }
.category-card__icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--category); background: var(--category-bg); border-radius: 13px; font-weight: 850; letter-spacing: -.03em; }
.category-card__content { display: flex; flex-direction: column; }
.category-card__content strong { margin: 2px 0 7px; color: var(--ink); font-size: 14px; line-height: 1.25; }
.category-card__content small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.category-card__arrow { align-self: center; color: #a1acba; }
.category-card__arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.category-card__check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: var(--category); border-radius: 50%; font-size: 11px; font-weight: 900; opacity: 0; transform: scale(.5); transition: .2s; }
.category-card.is-selected .category-card__check, .category-card:has(input:checked) .category-card__check { opacity: 1; transform: scale(1); }
.category-card.is-selected .category-card__arrow, .category-card:has(input:checked) .category-card__arrow { opacity: 0; }
.category-action-bar { margin-top: 18px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: var(--shadow-sm); }
.selection-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.selection-status__dot { width: 8px; height: 8px; background: #bcc6d2; border-radius: 50%; }
.selection-status.has-selection { color: var(--green-700); font-weight: 700; }
.selection-status.has-selection .selection-status__dot { background: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.reports-section { scroll-margin-top: 96px; }
.reports-table-wrap { overflow: hidden; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.reports-table { width: 100%; border-collapse: collapse; }
.reports-table th { padding: 13px 18px; color: #7a889a; background: #f8fafc; border-bottom: 1px solid var(--border-light); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.reports-table td { padding: 16px 18px; color: #526279; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.reports-table tr:last-child td { border-bottom: 0; }
.reports-table tbody tr { transition: background .18s; }
.reports-table tbody tr:hover { background: #fafcff; }
.report-category-cell { min-width: 220px; display: flex; align-items: center; gap: 11px; }
.report-category-cell > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue-700); background: var(--blue-100); border-radius: 9px; font-weight: 850; }
.report-category-cell div { display: flex; flex-direction: column; }
.report-category-cell strong { max-width: 285px; color: var(--ink); font-size: 12px; }
.report-category-cell small { color: #93a0b1; font-size: 9px; }
.table-score { color: var(--ink); font-size: 17px; }
.table-score small { color: #8a96a7; font-size: 9px; }
.performance-badge { width: max-content; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.performance-badge i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.performance-badge--great { color: #087753; background: #dff7ed; }
.performance-badge--good { color: #2363bf; background: #e5efff; }
.performance-badge--fair { color: #a36012; background: #fff1db; }
.performance-badge--practice { color: #b5474c; background: #ffe8ea; }
.table-action { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-700); font-size: 11px; font-weight: 750; white-space: nowrap; }
.table-action svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.empty-state { padding: 54px 25px; display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px dashed #cbd5e2; border-radius: var(--radius-md); text-align: center; }
.empty-state__icon { width: 55px; height: 55px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); border-radius: 15px; }
.empty-state__icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.empty-state h3 { margin: 16px 0 7px; }
.empty-state p { max-width: 540px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }

/* Interview --------------------------------------------------------------- */
.interview-page { background: #f3f6fa; }
.interview-topbar { color: #fff; background: linear-gradient(110deg, var(--navy-950), #102946); border-top: 1px solid rgba(255, 255, 255, .03); }
.interview-topbar__inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #9eb4d0; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-indicator i { width: 7px; height: 7px; background: #43d39e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(67, 211, 158, .12); }
.interview-identity h1 { margin: 6px 0 0; color: white; font-size: 26px; letter-spacing: -.03em; }
.interview-meta { display: flex; align-items: center; gap: 12px; }
.interview-timer { min-width: 94px; display: inline-flex; align-items: center; gap: 7px; color: #c1d0e4; font-variant-numeric: tabular-nums; font-size: 12px; }
.interview-timer svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.interview-layout { padding-block: 25px 62px; }
.interview-progress { padding: 16px 22px 19px; background: #fff; border: 1px solid var(--border-light); border-radius: 13px; box-shadow: var(--shadow-sm); }
.progress-heading { margin-bottom: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.progress-heading strong { color: var(--ink); }
.stepper { display: flex; align-items: center; }
.stepper__item { display: flex; align-items: center; gap: 7px; color: #95a2b2; flex: 0 0 auto; }
.stepper__item > span { width: 26px; height: 26px; display: grid; place-items: center; background: #edf1f6; border: 2px solid #edf1f6; border-radius: 50%; font-size: 10px; font-weight: 800; }
.stepper__item small { font-size: 9px; font-weight: 700; }
.stepper__item.is-complete { color: var(--green-700); }
.stepper__item.is-complete > span { color: #fff; background: var(--green-600); border-color: var(--green-600); }
.stepper__item.is-active > span { color: var(--blue-700); background: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); }
.stepper__item.is-active small { color: var(--blue-700); }
.stepper__item.is-complete.is-active > span { color: #fff; background: var(--green-600); border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.stepper__line { height: 3px; flex: 1; margin: 0 10px; background: #e8edf3; border-radius: 8px; }
.stepper__line.is-complete { background: var(--green-600); }
.interview-grid { margin-top: 18px; display: grid; grid-template-columns: .88fr 1.12fr; gap: 18px; align-items: start; }
.interview-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.question-card { min-height: 480px; padding: 25px; }
.card-label-row { display: flex; align-items: center; justify-content: space-between; }
.question-number { color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.difficulty-badge { padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; color: #7b6751; background: #fbf3e7; border-radius: 999px; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.difficulty-badge i { width: 5px; height: 5px; background: #d7983a; border-radius: 50%; }
.ai-speaker { margin-top: 30px; display: flex; align-items: center; gap: 11px; }
.ai-avatar { width: 41px; height: 41px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--blue-600), var(--violet-600)); border-radius: 12px; box-shadow: 0 7px 16px rgba(63, 91, 207, .2); }
.ai-avatar svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; }
.ai-speaker div { display: flex; flex-direction: column; }
.ai-speaker strong { color: var(--ink); font-size: 12px; }
.ai-speaker small { color: var(--muted-2); font-size: 9px; }
.question-text { margin: 23px 0 32px; color: #1b2b42; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.45; letter-spacing: -.025em; white-space: pre-wrap; }
.question-tip { margin-top: auto; padding: 14px; display: flex; gap: 10px; color: #61728a; background: #f4f7fb; border: 1px solid #e5ebf2; border-radius: 10px; font-size: 10px; }
.question-tip svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: #5275af; stroke-width: 1.5; stroke-linecap: round; }
.question-tip strong { color: #3d567c; }
.answer-card { padding: 25px; }
.answer-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.answer-card__heading h2 { margin: 0; font-size: 20px; }
.privacy-note { padding: 5px 7px; display: inline-flex; align-items: center; gap: 5px; color: #66768a; background: #f4f7fa; border-radius: 6px; font-size: 8px; white-space: nowrap; }
.privacy-note svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.answer-card textarea {
    width: 100%;
    min-height: 265px;
    margin-top: 20px;
    padding: 16px;
    resize: vertical;
    color: #24354d;
    background: #fbfcfe;
    border: 1px solid #d7dfe9;
    border-radius: 11px 11px 0 0;
    font-size: 13px;
    line-height: 1.7;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.answer-card textarea:focus { background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 122, 255, .09); }
.answer-card textarea::placeholder { color: #9ba6b5; }
.textarea-meta { min-height: 34px; margin-top: -7px; padding: 8px 12px; display: flex; justify-content: space-between; color: #8b98aa; background: #f5f7fa; border: 1px solid #d7dfe9; border-top: 0; border-radius: 0 0 9px 9px; font-size: 9px; }
.textarea-meta b { color: #596b82; }
.answer-actions { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: #65758a; font-size: 11px; font-weight: 650; }
.text-link:hover { color: var(--blue-700); }
.text-link svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.interview-integrity { margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 30px; color: #8a97a7; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.interview-integrity span { display: inline-flex; align-items: center; gap: 6px; }
.interview-integrity svg { width: 14px; fill: none; stroke: #6e829d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.generation-state { margin-top: 18px; padding: 70px 25px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.generation-state__icon { width: 68px; height: 68px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); border-radius: 20px; }
.generation-state__icon svg { width: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.generation-state h2 { margin: 21px 0 9px; }
.generation-state p { max-width: 620px; margin-bottom: 23px; color: var(--muted); }

/* Evaluation -------------------------------------------------------------- */
.evaluation-shell { margin-top: 18px; }
.evaluation-heading { padding: 25px 29px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.evaluation-heading h2 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -.025em; }
.evaluation-heading p { max-width: 800px; margin: 0; color: var(--muted); }
.score-orb { --ring: var(--blue-600); width: 106px; height: 106px; flex: 0 0 auto; position: relative; display: grid; place-items: center; background: conic-gradient(var(--ring) var(--score-angle), #e8edf4 0); border-radius: 50%; }
.score-orb::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.score-orb > div { position: relative; display: flex; align-items: baseline; }
.score-orb strong { color: var(--ink); font-size: 30px; letter-spacing: -.05em; }
.score-orb span { color: var(--muted); font-size: 10px; font-weight: 700; }
.score-orb--great { --ring: var(--green-600); }
.score-orb--fair { --ring: var(--orange-600); }
.score-orb--low { --ring: var(--red-600); }
.evaluation-summary { margin-top: 15px; padding: 18px 22px; display: flex; gap: 13px; color: #385478; background: #edf4ff; border: 1px solid #dce8fb; border-radius: 12px; }
.evaluation-summary__icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue-600); background: #fff; border-radius: 9px; }
.evaluation-summary__icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.evaluation-summary div > span { color: #5272a1; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.evaluation-summary p { margin: 3px 0 0; font-size: 13px; }
.feedback-grid { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feedback-card { padding: 21px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; }
.feedback-card--positive { border-top: 3px solid var(--green-600); }
.feedback-card--improve { border-top: 3px solid var(--orange-600); }
.feedback-card__title { display: flex; align-items: center; gap: 9px; }
.feedback-card__title span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 8px; font-weight: 850; }
.feedback-card--improve .feedback-card__title span { color: #a96216; background: var(--orange-100); }
.feedback-card h3 { margin: 0; font-size: 14px; }
.feedback-card ul { margin: 15px 0 0; padding-left: 19px; }
.feedback-card li { margin: 7px 0; color: #58697f; font-size: 12px; }
.feedback-card--positive li::marker { color: var(--green-600); }
.feedback-card--improve li::marker { color: var(--orange-600); }
.model-answer-card { margin-top: 15px; padding: 24px; background: linear-gradient(135deg, #111f38, #162e50); border-radius: 13px; box-shadow: var(--shadow-md); }
.model-answer-card__heading { display: flex; align-items: center; gap: 11px; }
.model-answer-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #91b8ff; background: rgba(82, 131, 231, .14); border: 1px solid rgba(124, 164, 244, .15); border-radius: 10px; }
.model-answer-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.model-answer-card__heading div { display: flex; flex-direction: column; }
.model-answer-card__heading div span { color: #7591b7; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.model-answer-card h3 { margin: 1px 0 0; color: #f2f6fd; font-size: 16px; }
.model-answer-card > p { margin: 17px 0 0; color: #b7c6d9; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.your-answer-disclosure { margin-top: 15px; background: #fff; border: 1px solid var(--border-light); border-radius: 11px; }
.your-answer-disclosure summary { padding: 14px 18px; display: flex; justify-content: space-between; color: #52657e; font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
.your-answer-disclosure summary::-webkit-details-marker { display: none; }
.your-answer-disclosure[open] summary { border-bottom: 1px solid var(--border-light); }
.your-answer-disclosure p { margin: 0; padding: 16px 18px; color: #647389; font-size: 12px; white-space: pre-wrap; }
.evaluation-actions { margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.evaluation-actions form { margin: 0; }

/* Report ------------------------------------------------------------------ */
.report-page { background: #f3f6fa; }
.report-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #071426, #102d52); }
.report-hero__pattern { position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 80% 30%, #568eee 0, transparent 25%), linear-gradient(130deg, transparent 58%, rgba(78, 129, 219, .16) 58%, transparent 76%); }
.report-hero__inner { position: relative; min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.report-title h1 { margin: 10px 0 7px; color: #fff; font-size: clamp(32px, 4vw, 43px); letter-spacing: -.04em; }
.report-title p { margin: 0; color: #9eb3cf; }
.report-actions { display: flex; gap: 9px; }
.report-content { margin-top: -32px; padding-bottom: 65px; position: relative; }
.report-score-card { min-height: 230px; padding: 27px 31px; display: grid; grid-template-columns: 145px 1fr auto; align-items: center; gap: 30px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.final-score-ring { width: 132px; height: 132px; display: grid; place-items: center; position: relative; background: conic-gradient(var(--blue-600) var(--score-angle), #e7ecf3 0); border-radius: 50%; }
.final-score-ring::before { content: ""; position: absolute; inset: 10px; background: white; border-radius: 50%; }
.final-score-ring > div { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.final-score-ring span { color: #77869a; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.final-score-ring strong { color: var(--ink); font-size: 39px; letter-spacing: -.06em; }
.final-score-ring small { color: #8491a2; font-size: 9px; }
.score-card__summary h2 { margin: 11px 0 7px; font-size: 24px; letter-spacing: -.03em; }
.score-card__summary p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; }
.score-facts { padding-left: 27px; display: grid; grid-template-columns: repeat(3, minmax(85px, 1fr)); gap: 23px; border-left: 1px solid var(--border-light); }
.score-facts div { display: flex; flex-direction: column; }
.score-facts span { color: #8290a1; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.score-facts strong { color: var(--ink); font-size: 22px; }
.score-facts strong small { color: #8b97a7; font-size: 9px; }
.score-facts .score-date { max-width: 95px; margin-top: 3px; font-size: 11px; line-height: 1.3; }
.report-section { margin-top: 48px; }
.report-section__heading { margin-bottom: 20px; }
.report-section__heading h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.report-section__heading--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.insight-card { overflow: hidden; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.insight-card::before { content: ""; height: 4px; display: block; background: var(--green-600); }
.insight-card--weak::before { background: var(--orange-600); }
.insight-card__top { padding: 20px 22px 13px; display: flex; align-items: center; gap: 11px; }
.insight-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 10px; font-weight: 850; }
.insight-card--weak .insight-icon { color: #aa651d; background: var(--orange-100); }
.insight-card__top div { display: flex; flex-direction: column; }
.insight-card__top div > span { color: #8a97a8; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.insight-card h3 { margin: 1px 0 0; font-size: 17px; }
.insight-card ul { margin: 0; padding: 4px 22px 21px; list-style: none; }
.insight-card li { padding: 10px 0; display: flex; align-items: flex-start; gap: 10px; color: #586a80; border-top: 1px solid #eef2f6; font-size: 12px; }
.insight-card li span { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 50%; font-size: 9px; font-weight: 850; }
.insight-card--weak li span { color: #a7621b; background: var(--orange-100); }
.improvement-plan { padding: 31px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 47px; align-items: center; background: linear-gradient(140deg, #101f39, #193556); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.plan-icon { width: 45px; height: 45px; margin-bottom: 17px; display: grid; place-items: center; color: #8db6ff; background: rgba(87, 135, 230, .14); border: 1px solid rgba(119, 159, 240, .16); border-radius: 12px; }
.plan-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.improvement-plan .section-kicker { color: #83a9e7; }
.improvement-plan h2 { margin: 4px 0 8px; color: #fff; font-size: 25px; }
.improvement-plan__intro p { margin: 0; color: #94a9c4; font-size: 12px; }
.plan-list { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.plan-list li { padding: 12px 14px; display: flex; align-items: center; gap: 13px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .075); border-radius: 10px; }
.plan-list li > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: #8cb7ff; background: rgba(76, 122, 215, .15); border-radius: 8px; font-size: 9px; font-weight: 850; }
.plan-list p { margin: 0; color: #c0ccdc; font-size: 11px; }
.breakdown-list { display: grid; gap: 10px; }
.breakdown-item { overflow: hidden; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: var(--shadow-sm); }
.breakdown-item summary { min-height: 76px; padding: 15px 18px; display: grid; grid-template-columns: 34px 1fr 60px 24px; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.breakdown-item summary::-webkit-details-marker { display: none; }
.breakdown-item[open] summary { background: #fbfcfe; border-bottom: 1px solid var(--border-light); }
.breakdown-number { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue-700); background: var(--blue-100); border-radius: 9px; font-size: 11px; font-weight: 850; }
.breakdown-question { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.45; }
.breakdown-score { width: max-content; padding: 5px 8px; color: var(--blue-700); background: var(--blue-100); border-radius: 7px; font-size: 13px; font-weight: 800; }
.breakdown-score small { font-size: 8px; }
.breakdown-score--great { color: var(--green-700); background: var(--green-100); }
.breakdown-score--fair { color: #a35e14; background: var(--orange-100); }
.breakdown-score--low { color: var(--red-600); background: var(--red-100); }
.breakdown-chevron { color: #8e9aab; transition: transform .2s; }
.breakdown-chevron svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.breakdown-item[open] .breakdown-chevron { transform: rotate(180deg); }
.breakdown-body { padding: 21px 23px 24px 70px; }
.breakdown-feedback > strong, .breakdown-answer strong, .breakdown-model strong { color: var(--ink); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.breakdown-feedback p, .breakdown-answer p, .breakdown-model p { margin: 5px 0 0; color: #607087; font-size: 12px; white-space: pre-wrap; }
.breakdown-columns { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.breakdown-columns > div { padding: 14px; background: #f7f9fc; border-radius: 9px; }
.breakdown-columns strong { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.positive-text { color: var(--green-700); }
.warning-text { color: #a76219; }
.breakdown-columns ul { margin: 7px 0 0; padding-left: 17px; color: #637288; font-size: 11px; }
.breakdown-answer { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.breakdown-model { margin-top: 13px; padding: 14px; background: #edf4ff; border-left: 3px solid var(--blue-500); border-radius: 0 9px 9px 0; }
.report-cta { margin-top: 48px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #fff; background: linear-gradient(120deg, #174fc0, #24409b); border-radius: var(--radius-lg); box-shadow: 0 18px 36px rgba(26, 65, 160, .2); }
.report-cta h2 { margin: 8px 0 5px; color: #fff; font-size: 25px; }
.report-cta p { margin: 0; color: #c2d4f5; font-size: 12px; }
.report-footnote { margin-top: 25px; display: flex; justify-content: space-between; color: #8e9aaa; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }

/* Error ------------------------------------------------------------------- */
.error-page { background: #f5f8fc; }
.error-state { min-height: calc(100vh - var(--header-height)); padding: 70px 20px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { position: absolute; color: #e9eef6; font-size: clamp(170px, 30vw, 350px); font-weight: 900; line-height: 1; letter-spacing: -.08em; pointer-events: none; }
.error-state__icon, .error-state h1, .error-state p, .error-state__actions { position: relative; }
.error-state__icon { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--blue-600), var(--violet-600)); border-radius: 18px; box-shadow: var(--shadow-md); font-size: 25px; font-weight: 850; }
.error-state h1 { margin: 20px 0 8px; font-size: 33px; }
.error-state p { max-width: 560px; color: var(--muted); }
.error-state__actions { margin-top: 15px; display: flex; gap: 9px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1050px) {
    .auth-shell { grid-template-columns: .85fr 1.15fr; }
    .auth-visual__content { width: min(480px, calc(100% - 52px)); }
    .auth-visual h1 { font-size: 39px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .report-score-card { grid-template-columns: 130px 1fr; }
    .score-facts { grid-column: 1 / -1; padding: 19px 0 0; border-left: 0; border-top: 1px solid var(--border-light); }
}

@media (max-width: 820px) {
    :root { --header-height: 64px; }
    .nav-container { width: min(100% - 28px, 1240px); }
    .brand-mark { width: 34px; height: 34px; }
    .brand-mark svg { width: 24px; }
    .nav-toggle { width: 40px; height: 40px; display: grid; align-content: center; gap: 5px; padding: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; }
    .nav-toggle span:not(.sr-only) { height: 2px; display: block; background: #d5dfed; border-radius: 4px; transition: .2s; }
    .primary-nav { height: auto; padding: 12px; position: fixed; top: 64px; right: 14px; left: 14px; display: none; align-items: stretch; flex-direction: column; background: var(--navy-900); border: 1px solid rgba(255,255,255,.1); border-radius: 0 0 13px 13px; box-shadow: var(--shadow-lg); }
    .primary-nav.is-open { display: flex; }
    .nav-link { min-height: 43px; height: auto; display: flex; border: 0; border-radius: 8px; }
    .nav-link:hover, .nav-link.is-active { background: rgba(255,255,255,.06); }
    .nav-divider { width: 100%; height: 1px; margin: 5px 0; }
    .user-chip { order: 4; }
    .logout-form { position: absolute; right: 19px; bottom: 17px; }
    .auth-shell { display: block; }
    .auth-visual { display: none; }
    .auth-panel { min-height: calc(100vh - var(--header-height)); padding: 48px 24px; }
    .mobile-brand-kicker { display: block; margin-bottom: 8px; color: var(--blue-700); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .dashboard-hero__inner { min-height: 225px; padding-bottom: 45px; align-items: flex-start; justify-content: center; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; margin-top: -32px; }
    .stat-card { min-height: 104px; }
    .section-heading--split { align-items: flex-start; flex-direction: column; gap: 10px; }
    .active-card { grid-template-columns: 38px 1fr auto; }
    .active-card__progress { grid-column: 2 / -1; }
    .category-action-bar { align-items: stretch; flex-direction: column; }
    .category-action-bar .btn { width: 100%; }
    .reports-table thead { display: none; }
    .reports-table, .reports-table tbody, .reports-table tr, .reports-table td { display: block; }
    .reports-table tr { padding: 16px; border-bottom: 1px solid var(--border-light); }
    .reports-table tr:last-child { border-bottom: 0; }
    .reports-table td { padding: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; }
    .reports-table td::before { content: attr(data-label); color: #8a96a7; font-size: 9px; font-weight: 750; text-transform: uppercase; }
    .reports-table td:first-child::before, .reports-table td:last-child::before { display: none; }
    .report-category-cell { min-width: 0; }
    .reports-table td:last-child { padding-top: 12px; justify-content: flex-end; }
    .interview-grid { grid-template-columns: 1fr; }
    .question-card { min-height: auto; }
    .feedback-grid { grid-template-columns: 1fr; }
    .report-hero__inner { min-height: 225px; align-items: flex-start; justify-content: center; flex-direction: column; }
    .report-content { margin-top: -22px; }
    .report-score-card { grid-template-columns: 120px 1fr; gap: 20px; }
    .final-score-ring { width: 116px; height: 116px; }
    .insights-grid { grid-template-columns: 1fr; }
    .improvement-plan { grid-template-columns: 1fr; gap: 24px; }
    .report-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
    .container { width: min(100% - 28px, var(--container)); }
    .brand-copy strong { font-size: 14px; }
    .brand-copy span { font-size: 8px; }
    .public-nav span { display: none; }
    .flash-region { top: 74px; right: 14px; }
    .auth-panel { padding: 35px 20px; align-items: start; }
    .auth-card__heading h2 { font-size: 27px; }
    .dashboard-hero__inner { min-height: 250px; }
    .dashboard-hero__inner .btn { width: 100%; }
    .dashboard-content { padding-bottom: 50px; }
    .demo-banner { align-items: flex-start; }
    .demo-banner div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .stat-card { padding: 19px; }
    .section-block { margin-top: 42px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 130px; }
    .active-card { grid-template-columns: 35px 1fr; }
    .active-card__action { display: none; }
    .active-card__progress { grid-column: 1 / -1; }
    .footer-inner { padding-block: 18px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
    .interview-topbar__inner { min-height: 128px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 12px; }
    .interview-meta { width: 100%; justify-content: space-between; }
    .interview-progress { padding-inline: 14px; }
    .progress-heading { font-size: 8px; }
    .stepper__item small { display: none; }
    .stepper__line { margin-inline: 6px; }
    .question-card, .answer-card { padding: 19px; }
    .question-text { font-size: 20px; }
    .answer-card__heading { align-items: flex-start; flex-direction: column; }
    .answer-card textarea { min-height: 230px; }
    .answer-actions { align-items: stretch; flex-direction: column-reverse; }
    .answer-actions .btn { width: 100%; }
    .text-link { justify-content: center; }
    .interview-integrity { align-items: flex-start; flex-direction: column; gap: 7px; }
    .evaluation-heading { padding: 21px; align-items: flex-start; flex-direction: column-reverse; }
    .score-orb { width: 84px; height: 84px; }
    .score-orb strong { font-size: 24px; }
    .evaluation-actions { align-items: stretch; flex-direction: column-reverse; }
    .evaluation-actions .btn, .evaluation-actions form { width: 100%; }
    .model-answer-card { padding: 20px; }
    .report-actions { width: 100%; }
    .report-actions .btn { flex: 1; }
    .report-score-card { padding: 23px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .score-facts { width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: left; }
    .score-facts strong { font-size: 17px; }
    .report-section { margin-top: 40px; }
    .report-section__heading--split { align-items: flex-start; flex-direction: column; }
    .improvement-plan { padding: 24px; }
    .breakdown-item summary { grid-template-columns: 30px 1fr 52px 18px; gap: 8px; padding: 12px; }
    .breakdown-question { font-size: 10px; }
    .breakdown-body { padding: 18px; }
    .breakdown-columns { grid-template-columns: 1fr; }
    .report-cta { padding: 27px; }
    .report-footnote { align-items: flex-start; flex-direction: column; gap: 5px; }
    .error-state__actions { width: 100%; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    @page { margin: 14mm; }
    body { color: #111; background: #fff; font-size: 11pt; }
    .site-header, .site-footer, .no-print, .flash-region { display: none !important; }
    .report-hero { color: #111; background: #fff; }
    .report-hero__inner { min-height: auto; padding: 0 0 16px; }
    .report-title h1 { color: #111; }
    .report-title p, .eyebrow--light { color: #555; }
    .report-content { width: 100%; margin: 0; padding: 0; }
    .report-score-card, .insight-card, .breakdown-item, .improvement-plan { break-inside: avoid; box-shadow: none; }
    .improvement-plan { color: #111; background: #f3f4f6; }
    .improvement-plan h2, .plan-list p { color: #111; }
    .improvement-plan__intro p { color: #555; }
    .breakdown-item { margin-bottom: 9px; }
    .breakdown-item:not([open]) .breakdown-body { display: block; }
}
