:root {
    --page: #eef3f8;
    --sidebar: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f4f8fc;
    --surface-muted: #eaf0f6;
    --text: #06162d;
    --muted: #41546d;
    --soft-text: #7b8da4;
    --border: #dbe4ef;
    --accent: #7d3cff;
    --accent-strong: #6f2cff;
    --accent-soft: #f0e2ff;
    --accent-pale: #f7efff;
    --success: #00a878;
    --success-soft: #e6fbf2;
    --danger: #ef4444;
    --danger-soft: #ffe8e8;
    --warning-soft: #fff7d7;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 42px rgba(18, 32, 55, 0.08);
    --shadow-card: 0 24px 50px rgba(78, 49, 118, 0.11);
}

/* Demo offer: quiet mobile-first preview and purchase screen. */
.demo-offer-page {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #ffffff;
    color: #07143f;
    font-family: "Inter", "Lexend", sans-serif;
}

.demo-offer-page * {
    box-sizing: border-box;
}

.demo-offer-page button,
.demo-offer-page a {
    -webkit-tap-highlight-color: transparent;
}

.demo-offer {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    background: #ffffff;
}

.demo-offer-shell {
    width: min(100%, 390px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 14px 8px 22px;
    background: #ffffff;
    box-shadow: none;
}

.demo-topbar {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.demo-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #536074;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}

.demo-brand-mark {
    width: 22px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #07143f;
}

.demo-brand-mark svg {
    width: 22px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.demo-menu-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    color: #57677b;
    cursor: pointer;
}

.demo-menu-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.demo-offer-hero {
    position: static;
    overflow: visible;
    padding: 27px 12px 17px;
    text-align: center;
}

.demo-offer-hero::before,
.demo-offer-hero-lines {
    content: none;
    display: none;
}

.demo-offer-hero h1 {
    margin: 0;
    color: #07143f;
    font-size: clamp(34px, 10.6vw, 41px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.demo-offer-subtitle {
    margin: 11px 0 0;
    color: #07143f;
    font-size: clamp(17px, 5.45vw, 21px);
    font-weight: 650;
    line-height: 1.28;
}

.demo-offer-intro {
    margin: 14px 0 0;
    color: #536074;
    font-size: clamp(13px, 3.9vw, 15px);
    font-weight: 500;
    line-height: 1.48;
}

.demo-offer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 7px;
}

.demo-offer-action {
    min-width: 0;
    min-height: 80px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    justify-items: stretch;
    gap: 14px;
    border: 1px solid #d9e9f9;
    border-radius: 12px;
    padding: 12px 15px;
    background: #eff7ff;
    color: #07143f;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 41, 71, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.demo-offer-action.is-test {
    border-color: #d4ece5;
    background: #effaf6;
}

.demo-offer-action:hover,
.demo-offer-action:focus-visible {
    transform: translateY(-1px);
    border-color: #c7dff7;
    box-shadow: 0 10px 20px rgba(15, 41, 71, 0.08);
}

.demo-offer-action.is-test:hover,
.demo-offer-action.is-test:focus-visible {
    border-color: #c6e5dc;
}

.demo-offer-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #276cd8;
}

.demo-offer-action.is-test .demo-offer-action-icon {
    color: #218775;
}

.demo-offer-action-icon svg {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.15;
}

.demo-offer-action-copy {
    min-width: 0;
    display: block;
}

.demo-offer-action-copy strong {
    display: block;
    margin: 0;
    color: #07143f;
    font-size: clamp(15px, 4.35vw, 17px);
    font-weight: 850;
    line-height: 1.15;
}

.demo-offer-action-copy small {
    display: block;
    margin-top: 6px;
    color: #34445b;
    font-size: clamp(12px, 3.55vw, 13.5px);
    font-weight: 500;
    line-height: 1.2;
}

.demo-offer-action-chevron {
    justify-self: end;
    color: #07143f;
    font-size: 29px;
    font-weight: 450;
    line-height: 1;
}

.demo-offer-action::after {
    content: none;
    display: none;
}

.demo-price-strip {
    min-height: 63px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    margin-top: 19px;
    padding: 10px 12px;
    background: #fbfcff;
    box-shadow: 0 7px 16px rgba(15, 41, 71, 0.04);
}

.demo-price-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #07143f;
}

.demo-price-icon svg {
    width: 29px;
    height: 29px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.demo-price-copy {
    min-width: 0;
    display: block;
}

.demo-price-copy strong {
    display: block;
    color: #596276;
    font-size: clamp(12px, 3.65vw, 14px);
    font-weight: 750;
    line-height: 1.18;
}

.demo-price-copy small {
    display: block;
    margin-top: 4px;
    color: #07143f;
    font-size: clamp(10.5px, 3.2vw, 12px);
    font-weight: 650;
    line-height: 1.15;
}

.demo-price-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: #07143f;
    font-size: clamp(26px, 7.5vw, 30px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.demo-price-amount small {
    font-size: 0.55em;
    font-weight: 850;
}

.demo-shopier-cta {
    min-height: 53px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    border: 1px solid #08184d;
    border-radius: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #07184f;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(7, 24, 79, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.demo-shopier-cta:hover,
.demo-shopier-cta:focus-visible {
    transform: translateY(-1px);
    background: #091d5d;
    box-shadow: 0 12px 24px rgba(7, 24, 79, 0.28);
}

.demo-shopier-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
}

.demo-shopier-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.demo-shopier-cta strong {
    color: #ffffff;
    font-size: clamp(13px, 4.15vw, 15px);
    font-weight: 850;
    line-height: 1.12;
    text-align: left;
    white-space: normal;
}

.demo-shopier-cta > b {
    justify-self: end;
    color: #ffffff;
    font-size: 29px;
    font-weight: 450;
    line-height: 1;
}

.demo-offer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 17px 0 0;
    color: #627189;
    font-size: clamp(12px, 3.55vw, 13.5px);
    font-weight: 550;
    line-height: 1.2;
    text-align: center;
}

.demo-offer-note svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: #2f72e8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.demo-offer-note i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

@media (min-width: 520px) {
    .demo-offer {
        align-items: start;
        padding: 0;
    }

    .demo-offer-shell {
        border-right: 1px solid #eef1f5;
        border-left: 1px solid #eef1f5;
    }
}

@media (max-width: 340px) {
    .demo-offer-shell {
        padding-right: 7px;
        padding-left: 7px;
    }

    .demo-shopier-cta strong {
        font-size: 14px;
    }

    .demo-price-strip {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 7px;
    }
}

/* Conversion-focused demo refinements. */
.student-main-day-detail .demo-question-intro.demo-question-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%);
    box-shadow: 0 8px 22px rgba(15, 41, 71, 0.06);
}

.student-main-day-detail .demo-question-intro-copy {
    min-width: 0;
}

.student-main-day-detail .demo-question-intro.demo-question-offer strong {
    margin-bottom: 4px;
    color: #b8913a;
}

.student-main-day-detail .demo-question-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #0B1E36;
    border-radius: 12px;
    color: #ffffff;
    background: #0B1E36;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.student-main-day-detail .demo-question-cta svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex: 0 0 auto;
}

.test-completion-modal-actions.is-demo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.test-completion-action {
    text-decoration: none;
}

.test-completion-action.is-shopier {
    border-color: #c39a34;
    background: linear-gradient(135deg, #0B1E36 0%, #14365f 100%);
    color: #ffffff;
}

@media (max-width: 760px) {
    .student-main-day-detail .demo-question-intro.demo-question-offer {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px 14px;
    }

    .student-main-day-detail .demo-question-cta {
        width: 100%;
        min-height: 44px;
    }

    .test-completion-modal-actions.is-demo {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Demo question bank: keep mobile rows compact and non-overflowing. */
.student-main-day-detail .demo-question-intro {
    margin: 0 0 14px;
    padding: 15px 16px;
    border: 1px solid #eadbb7;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%);
    box-shadow: 0 6px 18px rgba(15, 41, 71, 0.05);
}

.student-main-day-detail .demo-question-intro strong {
    display: block;
    margin-bottom: 4px;
    color: #b8913a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.student-main-day-detail .demo-question-intro p {
    margin: 0;
    color: #14304f;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.55;
}

.student-main-day-detail .test-back-button.demo-pdf-return-button {
    color: #0b1e36;
    text-decoration: none;
}

.student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: #6b7280;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
}

.student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count b {
    color: #0f2947;
    font-size: 14px;
    font-weight: 900;
}

.student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .student-main-day-detail .stitch-day-detail-hero {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        padding: 14px;
    }

    .student-main-day-detail .stitch-day-detail-hero h1 {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .student-main-day-detail .stitch-day-detail-hero small {
        max-width: 72px;
        justify-self: end;
        margin-left: 0;
        padding: 0 9px;
        white-space: nowrap;
    }

    .student-main-day-detail .stitch-test-row.is-demo-test-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "kind action"
            "question question";
        gap: 9px 10px;
        align-items: center;
    }

    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-test-kind {
        grid-area: kind;
        min-width: 0;
    }

    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-row-action {
        grid-area: action;
        width: auto;
        min-width: 82px;
        justify-self: end;
    }

    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count {
        grid-area: question;
        width: 100%;
        min-height: 34px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 7px 10px;
        border-radius: 10px;
        background: #f4f6f8;
        text-align: left;
    }

    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count b,
    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-progress-pill-rail {
        display: none;
    }
}

@media (max-width: 380px) {
    .student-main-day-detail .stitch-test-row.is-demo-test-row .stitch-question-count {
        flex-direction: column;
        align-items: flex-start;
    }
}

.student-main-day-detail .demo-question-intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    padding: 15px 16px;
    border: 1px solid #eadbb7;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7ea 100%);
    box-shadow: 0 6px 18px rgba(15, 41, 71, 0.05);
}

.student-main-day-detail .demo-question-intro strong {
    display: block;
    margin-bottom: 4px;
    color: #b8913a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.student-main-day-detail .demo-question-intro p {
    margin: 0;
    color: #14304f;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.55;
}

.student-main-day-detail .test-back-button.demo-pdf-return-button {
    color: #0b1e36;
    text-decoration: none;
}

.stitch-test-row.is-demo-test-row .stitch-question-count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: #6b7280;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
}

.stitch-test-row.is-demo-test-row .stitch-question-count b {
    color: #0f2947;
    font-size: 14px;
    font-weight: 900;
}

.stitch-test-row.is-demo-test-row .stitch-question-count small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .stitch-test-row.is-demo-test-row .stitch-question-count {
        align-items: flex-start;
        text-align: left;
    }
}

/* Demo topbar final tweak: centered brand, no hamburger. */
.demo-topbar {
    justify-content: center;
}

.demo-brand {
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
}

.demo-brand-mark,
.demo-brand-mark svg {
    width: 24px;
    height: 22px;
}

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

.demo-price-values {
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
}

.demo-price-values del {
    color: #7a8495;
    font-size: clamp(12px, 3.35vw, 13px);
    font-weight: 800;
    line-height: 1;
    text-decoration-color: #7a8495;
    text-decoration-thickness: 2px;
}

.demo-price-values .demo-price-amount {
    margin-top: 0;
}

/* Demo topbar final tweak: centered brand, no hamburger. */
.demo-topbar {
    justify-content: center;
}

.demo-brand {
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
}

.demo-brand-mark,
.demo-brand-mark svg {
    width: 24px;
    height: 22px;
}

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

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--page);
}

button,
input,
select {
    font: inherit;
}

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

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--page);
}

.auth-card,
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.auth-card {
    width: min(420px, 100%);
    padding: 32px;
}

.brand {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 800;
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
}

.demo-gateway-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #07182c;
}

.demo-gateway {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: grid;
    align-items: center;
    color: #ffffff;
    isolation: isolate;
}

.demo-gateway-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #07182c;
}

.demo-gateway::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 28vh;
    background: linear-gradient(180deg, rgba(7, 24, 44, 0), rgba(7, 24, 44, 0.78));
    pointer-events: none;
}

.demo-gateway-content {
    width: min(760px, calc(100vw - 48px));
    margin-left: clamp(24px, 7vw, 108px);
    padding: clamp(32px, 8vh, 84px) 0;
}

.demo-gateway-brand {
    margin: 0 0 14px;
    color: #f7d987;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.demo-gateway h1 {
    margin: 0;
    max-width: 720px;
    font-family: Merriweather, Georgia, serif;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
}

.demo-gateway-content > p:not(.demo-gateway-brand):not(.demo-gateway-note) {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.demo-gateway-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.demo-gateway-action {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(247, 217, 135, 0.68);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.demo-gateway-action span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(247, 217, 135, 0.18);
    color: #f7d987;
    font-size: 16px;
    line-height: 1;
}

.demo-gateway-action span svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.demo-gateway-action:hover,
.demo-gateway-action:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: #f7d987;
    outline: none;
}

.demo-gateway-action.is-primary {
    background: #f7d987;
    color: #07182c;
}

.demo-gateway-action.is-primary span {
    background: rgba(7, 24, 44, 0.12);
    color: #07182c;
}

.demo-gateway-action.is-buy {
    border-color: rgba(34, 197, 94, 0.68);
}

.demo-gateway-action.is-buy span {
    background: rgba(34, 197, 94, 0.18);
    color: #8ef0b0;
}

.demo-gateway-note {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .demo-gateway {
        display: grid;
        place-items: center;
        padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    }

    .demo-gateway-content {
        width: 82vw;
        max-width: 560px;
        margin: 0 auto;
        max-height: calc(100dvh - 36px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        text-align: center;
    }

    .demo-gateway-brand {
        margin-bottom: 10px;
    }

    .demo-gateway h1 {
        max-width: 100%;
        font-size: clamp(28px, 8.8vw, 38px);
        line-height: 1.02;
    }

    .demo-gateway-content > p:not(.demo-gateway-brand):not(.demo-gateway-note) {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.42;
    }

    .demo-gateway-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 520px;
        margin-top: 22px;
    }

    .demo-gateway-action {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        flex-direction: column;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
        text-align: center;
    }

    .demo-gateway-action span {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .demo-gateway-action span svg {
        width: 22px;
        height: 22px;
    }

    .demo-gateway-action.is-buy {
        grid-column: 1 / -1;
        min-height: 62px;
        aspect-ratio: auto;
        flex-direction: row;
        font-size: 16px;
    }

    .demo-gateway-note {
        margin-top: 14px;
        font-size: 12px;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .demo-gateway-brand {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .demo-gateway h1 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .demo-gateway-content > p:not(.demo-gateway-brand):not(.demo-gateway-note) {
        margin-top: 10px;
        font-size: 14px;
    }

    .demo-gateway-actions {
        margin-top: 14px;
        gap: 7px;
    }

    .demo-gateway-action {
        padding: 12px;
    }

    .demo-gateway-action span {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .demo-gateway-action span svg {
        width: 18px;
        height: 18px;
    }

    .demo-gateway-action.is-buy {
        min-height: 54px;
    }

    .demo-gateway-note {
        display: none;
    }
}

@media (min-width: 761px) and (max-width: 1024px) {
    .demo-gateway {
        place-items: center;
        padding: 32px;
    }

    .demo-gateway-content {
        width: min(100%, 660px);
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .demo-gateway h1,
    .demo-gateway-content > p:not(.demo-gateway-brand):not(.demo-gateway-note) {
        margin-left: auto;
        margin-right: auto;
    }

    .demo-gateway-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: min(100%, 560px);
        margin-left: auto;
        margin-right: auto;
    }

    .demo-gateway-action {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        flex-direction: column;
        padding: 20px;
        font-size: 17px;
        text-align: center;
    }

    .demo-gateway-action span {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .demo-gateway-action span svg {
        width: 25px;
        height: 25px;
    }

    .demo-gateway-action.is-buy {
        grid-column: 1 / -1;
        min-height: 70px;
        aspect-ratio: auto;
        flex-direction: row;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .demo-gateway-content {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .demo-gateway h1 {
        font-size: clamp(32px, 9vh, 54px);
    }

    .demo-gateway-content > p:not(.demo-gateway-brand):not(.demo-gateway-note) {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.35;
    }

    .demo-gateway-actions {
        margin-top: 18px;
    }
}

.demo-gateway-lead,
.demo-gateway-support,
.demo-gateway-demo-copy {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0;
}

.demo-gateway-lead {
    margin: 20px 0 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.45;
}

.demo-gateway-support {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(15px, 1.55vw, 18px);
    font-weight: 600;
    line-height: 1.48;
}

.demo-gateway-demo-copy {
    margin: 12px 0 0;
    color: rgba(247, 217, 135, 0.94);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
}

.demo-gateway-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(560px, 100%);
    margin-top: 26px;
}

.demo-gateway-action {
    position: relative;
    min-height: 0;
    aspect-ratio: 1 / 1;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    overflow: hidden;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.demo-gateway-action::after {
    content: "›";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247, 217, 135, 0.54);
    border-radius: 999px;
    background: rgba(7, 24, 44, 0.14);
    color: currentColor;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.demo-gateway-action:hover,
.demo-gateway-action:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(247, 217, 135, 0.24);
}

.demo-gateway-action:hover::after,
.demo-gateway-action:focus-visible::after {
    transform: translateX(3px);
    background: rgba(247, 217, 135, 0.18);
}

.demo-gateway-action:active {
    transform: translateY(-1px) scale(0.99);
}

.demo-gateway-action-icon {
    flex: 0 0 auto;
}

.demo-gateway-action strong {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 17px;
    line-height: 1.2;
}

.demo-gateway-action small {
    display: block;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.demo-gateway-action.is-primary small {
    color: rgba(7, 24, 44, 0.7);
}

.demo-gateway-offer {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(247, 217, 135, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 10px 14px;
    text-align: center;
}

.demo-gateway-offer strong {
    color: #f7d987;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.demo-gateway-offer small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.demo-gateway-action.is-buy {
    grid-column: 1 / -1;
    min-height: 70px;
    aspect-ratio: auto;
    flex-direction: row;
    gap: 12px;
    border-color: rgba(34, 197, 94, 0.92);
    background: linear-gradient(135deg, #15b981, #0d8f68);
    color: #ffffff;
    padding: 0 54px 0 20px;
    box-shadow: 0 22px 44px rgba(13, 143, 104, 0.28);
}

.demo-gateway-action.is-buy::after {
    top: 50%;
    right: 16px;
    color: #ffffff;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.demo-gateway-action.is-buy:hover::after,
.demo-gateway-action.is-buy:focus-visible::after {
    transform: translate(3px, -50%);
    background: rgba(255, 255, 255, 0.22);
}

.demo-gateway-action.is-buy .demo-gateway-action-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.demo-gateway-action.is-buy strong {
    font-size: 16px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .demo-gateway-content {
        width: min(86vw, 320px);
    }

    .demo-gateway-brand {
        margin-bottom: 8px;
    }

    .demo-gateway h1 {
        font-size: clamp(27px, 8.4vw, 38px);
        line-height: 1.04;
    }

    .demo-gateway-lead,
    .demo-gateway-support,
    .demo-gateway-demo-copy {
        max-width: 100%;
    }

    .demo-gateway-lead {
        margin-top: 12px;
        font-size: 14.5px;
        line-height: 1.4;
    }

    .demo-gateway-support {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.38;
    }

    .demo-gateway-demo-copy {
        margin-top: 7px;
        font-size: 12.5px;
        line-height: 1.36;
    }

    .demo-gateway-actions {
        gap: 10px;
        width: 100%;
        margin-top: 16px;
    }

    .demo-gateway-action {
        padding: 14px 10px;
    }

    .demo-gateway-action::after {
        top: 9px;
        right: 9px;
        width: 26px;
        height: 26px;
        font-size: 22px;
    }

    .demo-gateway-action strong {
        font-size: 14px;
    }

    .demo-gateway-action small {
        font-size: 11.5px;
    }

    .demo-gateway-offer {
        padding: 8px 10px;
    }

    .demo-gateway-offer strong {
        font-size: 12.5px;
    }

    .demo-gateway-offer small {
        font-size: 11px;
    }

    .demo-gateway-action.is-buy {
        min-height: 58px;
        gap: 9px;
        padding: 0 42px 0 14px;
    }

    .demo-gateway-action.is-buy strong {
        font-size: 13.5px;
    }

    .demo-gateway-note {
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.35;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .demo-gateway-content {
        width: min(84vw, 304px);
    }

    .demo-gateway h1 {
        font-size: clamp(24px, 7.8vw, 32px);
    }

    .demo-gateway-lead {
        margin-top: 8px;
        font-size: 13px;
    }

    .demo-gateway-support,
    .demo-gateway-demo-copy {
        margin-top: 5px;
        font-size: 11.5px;
    }

    .demo-gateway-actions {
        gap: 7px;
        margin-top: 10px;
    }

    .demo-gateway-action {
        gap: 6px;
        padding: 10px 8px;
    }

    .demo-gateway-action::after {
        width: 23px;
        height: 23px;
        font-size: 20px;
    }

    .demo-gateway-action strong {
        font-size: 12.5px;
    }

    .demo-gateway-action small {
        font-size: 10.5px;
    }

    .demo-gateway-offer {
        padding: 6px 8px;
    }

    .demo-gateway-offer strong,
    .demo-gateway-action.is-buy strong {
        font-size: 12px;
    }

    .demo-gateway-offer small,
    .demo-gateway-note {
        display: block;
        font-size: 10px;
    }

    .demo-gateway-action.is-buy {
        min-height: 50px;
    }
}

@media (min-width: 761px) and (max-width: 1024px) {
    .demo-gateway-lead {
        margin-top: 18px;
        font-size: 19px;
    }

    .demo-gateway-support {
        font-size: 16px;
    }

    .demo-gateway-demo-copy {
        font-size: 14px;
    }

    .demo-gateway-actions {
        width: min(100%, 560px);
    }

    .demo-gateway-action {
        aspect-ratio: 1 / 0.92;
    }

    .demo-gateway-action.is-buy {
        aspect-ratio: auto;
    }
}

/* Demo gateway refresh */
.demo-gateway-page {
    background: #f3f5f8;
}

.demo-gateway {
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f3f5f8;
}

.demo-gateway::after {
    display: none;
}

.demo-gateway-bg {
    display: none;
}

.demo-gateway-content {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.72fr);
    align-items: center;
    gap: clamp(36px, 4.5vw, 64px);
    width: min(1180px, calc(100vw - 64px));
    margin: 0;
    padding: clamp(44px, 5vw, 64px);
    border: 1px solid #e0e5ed;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(17, 42, 78, 0.1);
}

.demo-gateway-intro {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 36px 0 72px;
}

.demo-gateway-intro > :not(.demo-gateway-art) {
    position: relative;
    z-index: 1;
}

.demo-gateway-art {
    position: absolute;
    right: -46px;
    bottom: -32px;
    z-index: 0;
    width: min(780px, 134%);
    max-width: none;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
}

.demo-gateway h1 {
    max-width: 640px;
    color: #09275f;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(42px, 3.7vw, 50px);
    font-weight: 900;
    line-height: 1.02;
    text-align: left;
}

.demo-gateway-divider {
    width: min(100%, 520px);
    height: 2px;
    margin: 24px 0 0;
    background: #e2d2a6;
}

.demo-gateway-content .demo-gateway-lead {
    max-width: 590px;
    margin: 22px 0 0;
    color: #172543;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 500;
    line-height: 1.55;
}

.demo-gateway-lead strong,
.demo-gateway-info strong {
    color: #f06b1b;
    font-weight: 900;
}

.demo-gateway-info {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    max-width: 560px;
    margin-top: 30px;
    padding: 18px 22px;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(17, 58, 115, 0.06);
}

.demo-gateway-info-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #073477;
}

.demo-gateway-info-icon svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.demo-gateway-info p {
    margin: 0;
    color: #18294d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.42;
}

.demo-gateway-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    margin: 0;
}

.demo-gateway-action-list {
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(11, 39, 86, 0.06);
}

.demo-gateway-action {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 116px;
    aspect-ratio: auto;
    padding: 18px 18px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #102348;
    box-shadow: none;
    text-align: left;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.demo-gateway-action::after {
    display: none;
}

.demo-gateway-action + .demo-gateway-action {
    border-top: 1px solid #e2e6ec;
}

.demo-gateway-action:hover,
.demo-gateway-action:focus-visible {
    transform: none;
    border-color: transparent;
    outline: none;
    background: #f6f9fd;
    box-shadow: inset 4px 0 0 #0a377e;
}

.demo-gateway-action:active {
    transform: scale(0.99);
}

.demo-gateway-action .demo-gateway-action-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #073477;
}

.demo-gateway-action .demo-gateway-action-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.demo-gateway-action-copy {
    min-width: 0;
}

.demo-gateway-action .demo-gateway-action-copy {
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: normal;
}

.demo-gateway-action strong {
    display: block;
    color: inherit;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.26;
}

.demo-gateway-action small {
    display: block;
    margin-top: 5px;
    color: #4f6079;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.demo-gateway-action .demo-gateway-chevron {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #102348;
    transition: transform 160ms ease;
}

.demo-gateway-chevron svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.demo-gateway-action:hover .demo-gateway-chevron,
.demo-gateway-action:focus-visible .demo-gateway-chevron {
    transform: translateX(3px);
}

.demo-gateway-action.is-primary {
    background: #ffffff;
    color: #102348;
}

.demo-gateway-action.is-primary .demo-gateway-action-icon {
    background: transparent;
    color: #073477;
}

.demo-gateway-action.is-primary .demo-gateway-action-copy,
.demo-gateway-action.is-primary .demo-gateway-chevron {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.demo-gateway-action.is-primary .demo-gateway-chevron {
    width: 24px;
    height: 24px;
}

.demo-gateway-action.is-primary small {
    color: #4f6079;
}

.demo-gateway-action.is-buy {
    grid-template-columns: 54px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 72px;
    aspect-ratio: auto;
    padding: 12px 16px;
    border: 1px solid #062b67;
    border-radius: 14px;
    background: #073477;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(7, 52, 119, 0.2);
    text-align: left;
}

.demo-gateway-action.is-buy:hover,
.demo-gateway-action.is-buy:focus-visible {
    transform: translateY(-2px);
    border-color: #062b67;
    background: #062b67;
    box-shadow: 0 18px 32px rgba(7, 52, 119, 0.26);
}

.demo-gateway-action.is-buy .demo-gateway-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.demo-gateway-action.is-buy .demo-gateway-action-icon svg {
    width: 26px;
    height: 26px;
}

.demo-gateway-action.is-buy strong {
    color: #ffffff;
    font-size: 16px;
}

.demo-gateway-action.is-buy .demo-gateway-chevron {
    color: #ffffff;
}

.demo-gateway-buy-note {
    margin: 0;
    color: #50617a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 900px) {
    .demo-gateway {
        padding: 26px;
    }

    .demo-gateway-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        width: min(680px, calc(100vw - 52px));
        padding: 34px;
    }

    .demo-gateway h1,
    .demo-gateway-content .demo-gateway-lead {
        max-width: 100%;
        text-align: center;
    }

    .demo-gateway-intro {
        padding: 52px 0 42px;
    }

    .demo-gateway-art {
        right: 50%;
        bottom: -44px;
        width: min(720px, 122%);
        transform: translateX(50%);
        opacity: 0.1;
    }

    .demo-gateway-divider {
        width: min(100%, 520px);
        margin: 20px auto 0;
    }

    .demo-gateway-info {
        max-width: 560px;
        margin: 24px auto 0;
    }

    .demo-gateway-actions {
        width: min(100%, 560px);
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .demo-gateway-page,
    .demo-gateway {
        background: #ffffff;
    }

    .demo-gateway {
        padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
    }

    .demo-gateway-content {
        display: block;
        width: min(390px, calc(100vw - 40px));
        max-height: none;
        margin: 0 auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
        text-align: center;
    }

    .demo-gateway h1 {
        font-size: clamp(29px, 8.3vw, 35px);
        line-height: 1.04;
        text-align: center;
    }

    .demo-gateway-intro {
        padding: 46px 0 28px;
    }

    .demo-gateway-art {
        bottom: -16px;
        width: 520px;
        opacity: 0.085;
    }

    .demo-gateway-divider {
        width: 76%;
        height: 1px;
        margin-top: 17px;
    }

    .demo-gateway-content .demo-gateway-lead {
        margin-top: 15px;
        color: #172543;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.42;
        text-align: center;
    }

    .demo-gateway-info {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
        margin-top: 20px;
        padding: 14px 16px;
        border-radius: 14px;
        text-align: left;
    }

    .demo-gateway-info-icon {
        width: 52px;
        height: 52px;
    }

    .demo-gateway-info-icon svg {
        width: 50px;
        height: 50px;
    }

    .demo-gateway-info p {
        font-size: 15.5px;
        line-height: 1.35;
    }

    .demo-gateway-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        margin-top: 20px;
    }

    .demo-gateway-action-list {
        border-radius: 14px;
    }

    .demo-gateway-action {
        grid-template-columns: 52px minmax(0, 1fr) 20px;
        gap: 12px;
        min-height: 88px;
        aspect-ratio: auto;
        padding: 13px 14px;
    }

    .demo-gateway-action .demo-gateway-action-icon {
        width: 48px;
        height: 48px;
    }

    .demo-gateway-action .demo-gateway-action-icon svg {
        width: 42px;
        height: 42px;
    }

    .demo-gateway-action strong {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .demo-gateway-action small {
        margin-top: 3px;
        font-size: 11.5px;
    }

    .demo-gateway-action.is-buy {
        grid-template-columns: 46px minmax(0, 1fr) 20px;
        min-height: 62px;
        padding: 8px 13px;
        border-radius: 12px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon {
        width: 42px;
        height: 42px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon svg {
        width: 23px;
        height: 23px;
    }

    .demo-gateway-action.is-buy strong {
        font-size: 14px;
        line-height: 1.2;
    }

    .demo-gateway-buy-note {
        margin-top: -2px;
        font-size: 11.5px;
        line-height: 1.35;
    }
}

@media (max-width: 760px) and (max-height: 720px) {
    .demo-gateway {
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .demo-gateway h1 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .demo-gateway-intro {
        padding: 34px 0 20px;
    }

    .demo-gateway-art {
        bottom: -10px;
        width: 460px;
    }

    .demo-gateway-divider {
        margin-top: 11px;
    }

    .demo-gateway-content .demo-gateway-lead {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.36;
    }

    .demo-gateway-info {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 11px;
        margin-top: 13px;
        padding: 10px 12px;
    }

    .demo-gateway-info-icon,
    .demo-gateway-info-icon svg {
        width: 43px;
        height: 43px;
    }

    .demo-gateway-info p {
        font-size: 13.5px;
    }

    .demo-gateway-actions {
        gap: 9px;
        margin-top: 13px;
    }

    .demo-gateway-action {
        grid-template-columns: 44px minmax(0, 1fr) 18px;
        gap: 10px;
        min-height: 70px;
        padding: 9px 11px;
    }

    .demo-gateway-action .demo-gateway-action-icon,
    .demo-gateway-action .demo-gateway-action-icon svg {
        width: 38px;
        height: 38px;
    }

    .demo-gateway-action strong {
        font-size: 13.5px;
    }

    .demo-gateway-action small {
        font-size: 10.5px;
    }

    .demo-gateway-action.is-buy {
        grid-template-columns: 38px minmax(0, 1fr) 18px;
        min-height: 52px;
        padding: 6px 11px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon {
        width: 34px;
        height: 34px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon svg {
        width: 19px;
        height: 19px;
    }

    .demo-gateway-action.is-buy strong {
        font-size: 12.5px;
    }
}

/* Demo product showcase */
.demo-gateway-intro {
    overflow: visible;
    padding: 0;
}

.demo-gateway-art {
    position: static;
    display: block;
    width: min(100%, 560px);
    max-width: 100%;
    margin: 18px auto -18px;
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .demo-gateway-intro {
        padding: 0;
    }

    .demo-gateway-art {
        width: min(100%, 430px);
        margin: 14px auto -10px;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) {
    .demo-gateway-intro {
        padding: 0;
    }

    .demo-gateway-art {
        width: min(100%, 292px);
        margin: 12px auto -4px;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 760px) and (max-height: 720px) {
    .demo-gateway-art {
        width: min(100%, 225px);
        margin: 6px auto -8px;
    }
}

/* Demo showcase placement */
.demo-gateway-visual {
    display: grid;
    place-items: center;
    width: min(100%, 590px);
    margin: 0 0 22px;
}

.demo-gateway-visual .demo-gateway-art {
    position: static;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    opacity: 1;
    transform: none;
}

.demo-campaign-card {
    width: 100%;
    display: grid;
    gap: 11px;
    border: 1px solid rgba(218, 181, 83, 0.92);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 218, 116, 0.2), transparent 38%),
        linear-gradient(135deg, #08265d, #073477 62%, #0b438a);
    color: #ffffff;
    padding: 18px 20px;
    box-shadow: 0 18px 34px rgba(7, 52, 119, 0.2);
    text-align: left;
}

.demo-campaign-eyebrow,
.demo-campaign-countdown-label,
.demo-campaign-deadline,
.demo-campaign-ended-copy {
    margin: 0;
}

.demo-campaign-eyebrow {
    color: #f8dc8e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-campaign-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.demo-campaign-heading > strong,
.demo-campaign-ended-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.12;
}

.demo-campaign-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.demo-campaign-price del {
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    font-weight: 800;
}

.demo-campaign-price b {
    color: #f8dc8e;
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
}

.demo-campaign-countdown-label {
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 800;
}

.demo-campaign-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.demo-campaign-countdown span {
    min-width: 0;
    display: grid;
    gap: 3px;
    place-items: center;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 7px 4px;
}

.demo-campaign-countdown b {
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.demo-campaign-countdown small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.demo-campaign-deadline,
.demo-campaign-ended-copy {
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.demo-campaign-card.is-ended {
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 22px;
}

@media (max-width: 900px) {
    .demo-gateway-visual {
        width: min(100%, 400px);
        margin: 0 auto 18px;
    }
}

@media (max-width: 760px) {
    .demo-gateway {
        place-items: start center;
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .demo-gateway-visual {
        width: 100%;
        margin-bottom: 14px;
    }

    .demo-campaign-card {
        gap: 8px;
        border-radius: 14px;
        padding: 13px 14px;
    }

    .demo-campaign-eyebrow {
        font-size: 9.5px;
    }

    .demo-campaign-heading {
        gap: 10px;
    }

    .demo-campaign-heading > strong,
    .demo-campaign-ended-title {
        font-size: 16px;
    }

    .demo-campaign-price {
        gap: 6px;
    }

    .demo-campaign-price del {
        font-size: 11px;
    }

    .demo-campaign-price b {
        font-size: 23px;
    }

    .demo-campaign-countdown-label {
        font-size: 11px;
    }

    .demo-campaign-countdown {
        gap: 6px;
    }

    .demo-campaign-countdown span {
        min-height: 44px;
        border-radius: 8px;
        padding: 5px 2px;
    }

    .demo-campaign-countdown b {
        font-size: 18px;
    }

    .demo-campaign-countdown small {
        font-size: 8.5px;
    }

    .demo-campaign-deadline,
    .demo-campaign-ended-copy {
        font-size: 9.5px;
    }
}

@media (max-width: 760px) and (max-height: 720px) {
    .demo-gateway-visual {
        margin-bottom: 8px;
    }

    .demo-campaign-card {
        gap: 6px;
        padding: 10px 11px;
    }

    .demo-campaign-countdown span {
        min-height: 38px;
    }

    .demo-campaign-countdown b {
        font-size: 16px;
    }

    .demo-campaign-deadline {
        display: none;
    }
}

/* Demo campaign reference fidelity */
.demo-gateway-page {
    background: #ffffff;
}

.demo-gateway {
    min-height: 100vh;
    place-items: start center;
    padding: 34px 20px 48px;
    background: #ffffff;
}

.demo-gateway-content {
    display: block;
    width: min(760px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.demo-gateway-intro {
    padding: 0;
    text-align: center;
}

.demo-gateway-visual {
    width: 100%;
    max-width: 730px;
    margin: 0 auto 42px;
}

.demo-campaign-card {
    position: relative;
    isolation: isolate;
    gap: 18px;
    overflow: hidden;
    width: 100%;
    padding: 28px 32px 27px;
    border: 2px solid #d7a82b;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 18%, rgba(39, 107, 201, 0.42), transparent 27%),
        radial-gradient(circle at 88% 95%, rgba(5, 35, 83, 0.2), transparent 34%),
        linear-gradient(128deg, #061b43 0%, #062b63 58%, #053472 100%);
    box-shadow: 0 18px 30px rgba(5, 28, 65, 0.18), 0 0 18px rgba(215, 168, 43, 0.26);
}

.demo-campaign-card::before {
    position: absolute;
    right: -88px;
    bottom: -104px;
    z-index: -1;
    width: 390px;
    height: 460px;
    border-left: 1px solid rgba(224, 181, 67, 0.48);
    background: repeating-linear-gradient(106deg, transparent 0 15px, rgba(226, 184, 69, 0.3) 15px 16px, transparent 16px 31px);
    content: "";
    opacity: 0.9;
    transform: rotate(11deg);
}

.demo-campaign-card::after {
    position: absolute;
    right: 7%;
    bottom: -7px;
    z-index: -1;
    width: 128px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 220, 116, 0.46);
    content: "";
    filter: blur(13px);
}

.demo-campaign-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    width: fit-content;
    padding: 9px 17px;
    border-radius: 7px;
    background: linear-gradient(180deg, #f9d968, #e6b531);
    color: #15213a;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 12px rgba(0, 0, 0, 0.16);
}

.demo-campaign-eyebrow-icon,
.demo-campaign-deadline-icon,
.demo-gateway-buy-note-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
}

.demo-campaign-eyebrow-icon,
.demo-campaign-eyebrow-icon svg {
    width: 19px;
    height: 19px;
}

.demo-campaign-eyebrow-icon svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.2;
}

.demo-campaign-heading {
    align-items: center;
    gap: 22px;
}

.demo-campaign-heading > strong,
.demo-campaign-ended-title {
    max-width: 360px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.04;
}

.demo-campaign-price {
    flex-direction: column;
    align-items: end;
    gap: 2px;
    margin-left: auto;
}

.demo-campaign-price del {
    color: rgba(255, 255, 255, 0.68);
    font-size: 22px;
    line-height: 1;
}

.demo-campaign-price b {
    color: #f4cf57;
    font-size: 70px;
    letter-spacing: 0;
    line-height: 0.9;
    text-shadow: 0 5px 0 #9f6f0c, 0 9px 16px rgba(0, 0, 0, 0.42);
}

.demo-campaign-countdown-label {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.demo-campaign-countdown {
    gap: 11px;
}

.demo-campaign-countdown span {
    min-height: 102px;
    gap: 6px;
    border: 1px solid rgba(139, 183, 244, 0.48);
    border-radius: 16px;
    background: rgba(7, 42, 95, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-campaign-countdown b {
    font-size: 45px;
    line-height: 1;
}

.demo-campaign-countdown small {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.demo-campaign-deadline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 18px;
}

.demo-campaign-deadline-icon,
.demo-campaign-deadline-icon svg {
    width: 22px;
    height: 22px;
}

.demo-campaign-deadline-icon svg,
.demo-gateway-buy-note-icon svg {
    fill: none;
    stroke: #e1ba42;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.demo-gateway h1 {
    max-width: none;
    color: #06265d;
    font-size: 56px;
    line-height: 0.98;
    text-align: center;
}

.demo-gateway h1 span {
    display: block;
}

.demo-gateway h1 span + span {
    color: #c69119;
    text-shadow: 0 2px 0 rgba(128, 82, 3, 0.12);
}

.demo-gateway-divider {
    width: min(72%, 520px);
    height: 3px;
    margin: 23px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #c8951d 18%, #e5b838 82%, transparent);
}

.demo-gateway-content .demo-gateway-lead {
    max-width: 690px;
    margin: 20px auto 0;
    color: #12234a;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.46;
    text-align: center;
}

.demo-gateway-actions {
    gap: 23px;
    width: 100%;
    max-width: 730px;
    margin: 38px auto 0;
}

.demo-gateway-action-list {
    display: grid;
    gap: 20px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.demo-gateway-action,
.demo-gateway-action.is-primary {
    grid-template-columns: 84px minmax(0, 1fr) 26px;
    gap: 20px;
    min-height: 150px;
    padding: 22px 30px;
    border: 1px solid #e7ebf1;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 11px 27px rgba(24, 48, 85, 0.1);
}

.demo-gateway-action + .demo-gateway-action {
    border-top: 1px solid #e7ebf1;
}

.demo-gateway-action:hover,
.demo-gateway-action:focus-visible {
    background: #ffffff;
    box-shadow: 0 15px 32px rgba(24, 48, 85, 0.15);
    transform: translateY(-2px);
}

.demo-gateway-action .demo-gateway-action-icon,
.demo-gateway-action.is-primary .demo-gateway-action-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0b4a99, #061d50);
    color: #ffffff;
    box-shadow: 0 8px 14px rgba(6, 38, 89, 0.16);
}

.demo-gateway-action .demo-gateway-action-icon svg {
    width: 51px;
    height: 51px;
    stroke-width: 1.9;
}

.demo-gateway-action strong {
    color: #08275e;
    font-size: 25px;
}

.demo-gateway-action small {
    margin-top: 5px;
    color: #3f506f;
    font-size: 17px;
}

.demo-gateway-action .demo-gateway-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    height: auto;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffe49a, #f2c34e);
    color: #302305;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 8px rgba(172, 116, 5, 0.15);
}

.demo-gateway-action .demo-gateway-action-badge svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.demo-gateway-action .demo-gateway-action-badge > span {
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.demo-gateway-action .demo-gateway-chevron {
    color: #092b67;
}

.demo-gateway-chevron svg {
    width: 25px;
    height: 25px;
    stroke-width: 3.2;
}

.demo-gateway-action.is-buy {
    grid-template-columns: 74px minmax(0, 1fr) 28px;
    gap: 20px;
    min-height: 114px;
    padding: 15px 28px;
    border: 3px solid #e2b836;
    border-radius: 20px;
    background: linear-gradient(120deg, #06265e, #073d83);
    box-shadow: 0 15px 22px rgba(168, 116, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.demo-gateway-action.is-buy:hover,
.demo-gateway-action.is-buy:focus-visible {
    border-color: #f0c94f;
    background: linear-gradient(120deg, #052151, #063673);
}

.demo-gateway-action.is-buy .demo-gateway-action-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ffe48c, #e9b42e);
    color: #13264a;
}

.demo-gateway-action.is-buy .demo-gateway-action-icon svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.9;
}

.demo-gateway-action.is-buy strong {
    color: #ffffff;
    font-size: 30px;
    text-align: center;
}

.demo-gateway-action.is-buy .demo-gateway-chevron {
    color: #f5d15d;
}

.demo-gateway-buy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 3px;
    color: #33445f;
    font-size: 17px;
    font-weight: 600;
}

.demo-gateway-buy-note-icon,
.demo-gateway-buy-note-icon svg {
    width: 22px;
    height: 22px;
}

.demo-gateway-buy-note-icon svg {
    fill: #073477;
    stroke: #ffffff;
}

@media (max-width: 760px) {
    .demo-gateway-page {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .demo-gateway {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        padding: 18px 15px 30px;
    }

    .demo-gateway-content {
        width: min(100%, 430px);
    }

    .demo-gateway-visual {
        margin-bottom: 28px;
    }

    .demo-campaign-card {
        gap: 12px;
        padding: 16px 15px;
        border-radius: 17px;
    }

    .demo-campaign-eyebrow {
        gap: 6px;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 11px;
    }

    .demo-campaign-eyebrow-icon,
    .demo-campaign-eyebrow-icon svg {
        width: 15px;
        height: 15px;
    }

    .demo-campaign-heading {
        gap: 8px;
    }

    .demo-campaign-heading > strong,
    .demo-campaign-ended-title {
        max-width: 190px;
        font-size: 22px;
    }

    .demo-campaign-price {
        gap: 1px;
    }

    .demo-campaign-price del {
        font-size: 15px;
    }

    .demo-campaign-price b {
        font-size: 47px;
        text-shadow: 0 3px 0 #9f6f0c, 0 6px 10px rgba(0, 0, 0, 0.38);
    }

    .demo-campaign-countdown-label {
        font-size: 14px;
    }

    .demo-campaign-countdown {
        gap: 6px;
    }

    .demo-campaign-countdown span {
        min-height: 66px;
        gap: 3px;
        border-radius: 9px;
        padding: 6px 2px;
    }

    .demo-campaign-countdown b {
        font-size: 29px;
    }

    .demo-campaign-countdown small {
        font-size: 12px;
    }

    .demo-campaign-deadline {
        gap: 7px;
        font-size: 12.5px;
    }

    .demo-campaign-deadline-icon,
    .demo-campaign-deadline-icon svg {
        width: 17px;
        height: 17px;
    }

    .demo-gateway h1 {
        font-size: clamp(34px, 9.4vw, 40px);
        line-height: 0.99;
    }

    .demo-gateway-divider {
        width: 72%;
        height: 2px;
        margin-top: 17px;
    }

    .demo-gateway-content .demo-gateway-lead {
        margin-top: 15px;
        font-size: 16px;
        line-height: 1.42;
    }

    .demo-gateway-actions {
        gap: 17px;
        margin-top: 27px;
    }

    .demo-gateway-action-list {
        gap: 16px;
    }

    .demo-gateway-action,
    .demo-gateway-action.is-primary {
        grid-template-columns: 64px minmax(0, 1fr) 19px;
        gap: 14px;
        min-height: 111px;
        padding: 15px 18px;
        border-radius: 15px;
    }

    .demo-gateway-action .demo-gateway-action-icon,
    .demo-gateway-action.is-primary .demo-gateway-action-icon {
        width: 62px;
        height: 62px;
    }

    .demo-gateway-action .demo-gateway-action-icon svg {
        width: 40px;
        height: 40px;
    }

    .demo-gateway-action strong {
        font-size: 20px;
    }

    .demo-gateway-action small {
        margin-top: 3px;
        font-size: 14px;
    }

    .demo-gateway-action .demo-gateway-action-badge {
        gap: 5px;
        margin-top: 7px;
        padding: 4px 8px;
        font-size: 11.5px;
    }

    .demo-gateway-action .demo-gateway-action-badge svg {
        width: 13px;
        height: 13px;
    }

    .demo-gateway-chevron svg {
        width: 19px;
        height: 19px;
    }

    .demo-gateway-action.is-buy {
        grid-template-columns: 52px minmax(0, 1fr) 20px;
        gap: 11px;
        min-height: 82px;
        padding: 10px 15px;
        border-width: 2px;
        border-radius: 15px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon {
        width: 50px;
        height: 50px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon svg {
        width: 28px;
        height: 28px;
    }

    .demo-gateway-action.is-buy strong {
        font-size: 19px;
    }

    .demo-gateway-buy-note {
        gap: 7px;
        margin-top: 1px;
        font-size: 12.5px;
    }

    .demo-gateway-buy-note-icon,
    .demo-gateway-buy-note-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 380px) {
    .demo-gateway {
        padding-right: 12px;
        padding-left: 12px;
    }

    .demo-campaign-heading > strong,
    .demo-campaign-ended-title {
        font-size: 22px;
    }

    .demo-campaign-price b {
        font-size: 42px;
    }

    .demo-gateway h1 {
        font-size: 32px;
    }

    .demo-gateway-action,
    .demo-gateway-action.is-primary {
        grid-template-columns: 56px minmax(0, 1fr) 17px;
        gap: 11px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .demo-gateway-action .demo-gateway-action-icon,
    .demo-gateway-action.is-primary .demo-gateway-action-icon {
        width: 54px;
        height: 54px;
    }

    .demo-gateway-action .demo-gateway-action-icon svg {
        width: 35px;
        height: 35px;
    }

    .demo-gateway-action strong {
        font-size: 18px;
    }
}

@media (min-width: 901px) {
    .demo-gateway {
        place-items: center;
        padding: 38px;
    }

    .demo-gateway-content {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
        align-items: center;
        gap: clamp(42px, 4vw, 68px);
        width: min(1260px, calc(100vw - 76px));
    }

    .demo-gateway-intro {
        text-align: left;
    }

    .demo-gateway-visual {
        max-width: 680px;
        margin: 0 0 34px;
    }

    .demo-gateway h1 {
        font-size: clamp(47px, 4vw, 58px);
        text-align: left;
    }

    .demo-gateway-divider {
        width: min(76%, 470px);
        margin-left: 0;
    }

    .demo-gateway-content .demo-gateway-lead {
        max-width: 610px;
        margin-left: 0;
        text-align: left;
    }

    .demo-gateway-actions {
        gap: 18px;
        max-width: none;
        margin: 0;
    }

    .demo-gateway-action-list {
        gap: 16px;
    }

    .demo-gateway-action,
    .demo-gateway-action.is-primary {
        grid-template-columns: 74px minmax(0, 1fr) 24px;
        gap: 17px;
        min-height: 134px;
        padding: 19px 24px;
    }

    .demo-gateway-action .demo-gateway-action-icon,
    .demo-gateway-action.is-primary .demo-gateway-action-icon {
        width: 70px;
        height: 70px;
    }

    .demo-gateway-action .demo-gateway-action-icon svg {
        width: 46px;
        height: 46px;
    }

    .demo-gateway-action strong {
        font-size: 23px;
    }

    .demo-gateway-action small {
        font-size: 16px;
    }

    .demo-gateway-action.is-buy {
        grid-template-columns: 64px minmax(0, 1fr) 24px;
        gap: 16px;
        min-height: 100px;
        padding: 13px 21px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon {
        width: 60px;
        height: 60px;
    }

    .demo-gateway-action.is-buy .demo-gateway-action-icon svg {
        width: 34px;
        height: 34px;
    }

    .demo-gateway-action.is-buy strong {
        font-size: 25px;
    }

    .demo-gateway-buy-note {
        font-size: 15px;
    }
}

.muted {
    color: var(--muted);
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

.form input,
.form select,
.inline-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
}

.form button,
.admin-form button {
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    padding: 12px 16px;
    font-weight: 900;
}

.form-message,
.success-message {
    min-height: 20px;
    margin: 0;
}

.form-message {
    color: var(--danger);
}

.success-message {
    color: var(--success);
}

.student-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--page);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--sidebar);
}

.brand-lockup {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    box-shadow: 0 8px 24px rgba(18, 32, 55, 0.06);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--accent-pale);
    color: var(--accent);
}

.brand-mark svg {
    width: 26px;
    height: 26px;
}

.brand-lockup strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.brand-lockup small {
    display: block;
    margin-top: 2px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.side-nav {
    display: grid;
    gap: 10px;
    padding: 46px 16px 16px;
}

.side-link,
.theme-toggle {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    color: #273a55;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 800;
}

.side-link span,
.theme-toggle span {
    color: #314760;
}

.side-link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
}

.side-link.is-active span {
    color: var(--accent);
}

.side-spacer {
    flex: 1;
}

.theme-toggle {
    width: calc(100% - 32px);
    margin: 0 16px 26px;
    background: transparent;
    text-align: left;
}

.sidebar-user {
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding: 24px 16px 30px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-pale);
    color: var(--accent);
}

.sidebar-user > span:nth-child(2) {
    min-width: 0;
}

.sidebar-user small {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.sidebar-user strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #27415d;
}

.logout-button:hover {
    background: var(--surface-muted);
}

.student-main {
    min-width: 0;
    padding: 42px 7vw 64px;
}

.page-header,
.test-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.page-header {
    width: min(1100px, 100%);
    margin: 0 auto 42px;
}

.page-header h1,
.test-topbar h1 {
    margin: 0;
    color: #001432;
    line-height: 1.08;
}

.page-header h1 {
    font-size: 34px;
}

.page-header p,
.test-topbar p {
    margin: 12px 0 0;
    color: #263b56;
    font-size: 16px;
    font-weight: 500;
}

.soft-danger-button,
.primary-action,
.ghost-button,
.square-button,
.mini-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 900;
}

.soft-danger-button {
    border: 1px solid #f5bec4;
    background: #fff0f2;
    color: #ff303d;
}

.soft-danger-button:hover {
    background: #ffe5e9;
}

.primary-action {
    background: var(--accent);
    color: #fff;
}

.primary-action:hover {
    background: var(--accent-strong);
}

.ghost-button {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: #2d435e;
}

.ghost-button:hover {
    border-color: #c8d4e1;
    background: #e9f0f7;
}

.inline-status {
    width: min(1100px, 100%);
    margin: -20px auto 24px;
    border: 1px solid #c9b6ff;
    border-radius: var(--radius);
    background: #f8f2ff;
    color: var(--accent);
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
}

.course-accordion {
    width: min(1100px, 100%);
    display: grid;
    gap: 16px;
    margin: 0 auto;
}

.unit-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.unit-summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding: 0 18px;
}

.unit-card summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    cursor: pointer;
    list-style: none;
}

.unit-card summary::-webkit-details-marker {
    display: none;
}

.unit-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 900;
}

.unit-icon {
    color: var(--accent);
}

.unit-meta {
    color: var(--soft-text);
    font-size: 13px;
    font-weight: 800;
}

.chevron {
    color: #324a65;
}

.day-accordion[open] > summary .chevron {
    transform: rotate(180deg);
}

.unit-body {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.day-accordion-list {
    gap: 12px;
}

.day-accordion {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fbfdff;
}

.day-accordion summary {
    min-height: 70px;
    background: #fff;
}

.day-accordion summary span:first-child {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.day-accordion summary strong {
    font-size: 17px;
}

.day-accordion summary small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.day-accordion .test-list {
    border-top: 1px solid var(--border);
    padding: 14px;
}

.day-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fbfdff;
    padding: 16px;
}

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

.day-heading h2 {
    margin: 0;
    font-size: 18px;
}

.day-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.day-heading > span,
.test-count {
    white-space: nowrap;
    border-radius: 999px;
    background: var(--surface-muted);
    color: #334a63;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.test-list {
    display: grid;
    gap: 10px;
}

.test-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    padding: 12px 14px;
    text-align: left;
}

.test-row:hover {
    border-color: #cbb6ff;
    background: #fbf8ff;
}

.test-row span:first-child {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.test-row strong {
    font-size: 15px;
}

.test-row small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.loading-state {
    width: min(1100px, 100%);
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
    color: var(--muted);
    font-weight: 800;
}

.test-topbar {
    min-height: 98px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    margin: -42px -7vw 56px;
    padding: 26px 7vw;
}

.test-topbar > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.test-topbar p {
    margin: 0 0 5px;
    color: #1f334f;
    font-size: 12px;
    font-weight: 900;
}

.test-topbar h1 {
    font-size: 22px;
}

.square-button,
.mini-square {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: #001432;
    padding: 0;
}

.square-button {
    width: 42px;
    height: 42px;
}

.square-button:hover,
.mini-square:hover {
    border-color: #c7d2df;
    background: #e1eaf3;
}

.test-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 900;
}

.stat-pill svg {
    width: 16px;
    height: 16px;
}

.stat-pill.is-purple {
    background: var(--accent-soft);
    color: var(--accent);
}

.stat-pill.is-green {
    background: var(--success-soft);
    color: var(--success);
}

.test-workspace {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 178px;
    gap: 20px;
    align-items: start;
    margin: 0 auto;
}

.question-card {
    min-width: 0;
    border: 1px solid #eadfff;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.question-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #071833;
    font-size: 13px;
}

.question-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 8px 13px;
    font-weight: 900;
}

.question-badge svg {
    width: 15px;
    height: 15px;
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadbff;
    margin: 18px 0 26px;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.question-copy {
    margin-bottom: 24px;
}

.topic-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.question-copy h2 {
    margin: 0;
    color: #001432;
    font-size: 18px;
    line-height: 1.7;
}

.question-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.hint-box {
    border: 1px solid #efd36f;
    border-radius: var(--radius);
    background: var(--warning-soft);
    color: #5f4300;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
}

.option-list {
    display: grid;
    gap: 12px;
}

.option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
}

.option-row.is-eliminated {
    opacity: 0.62;
}

.option-row.is-eliminated .option-main span:last-child {
    text-decoration: line-through;
}

.option-row.is-correct {
    border-color: #77d9b4;
    background: var(--success-soft);
}

.option-row.is-wrong {
    border-color: #ff9696;
    background: var(--danger-soft);
}

.option-main {
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    background: transparent;
    color: #06162d;
    padding: 0 14px;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
}

.option-main:hover {
    background: rgba(255, 255, 255, 0.5);
}

.option-main:disabled {
    opacity: 1;
}

.option-key {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #f8fbff;
    color: #29415d;
    font-size: 13px;
    font-weight: 900;
}

.option-row.is-correct .option-key {
    border-color: #53c99b;
    color: var(--success);
}

.option-row.is-wrong .option-key {
    border-color: #ff8888;
    color: var(--danger);
}

.option-tool {
    display: grid;
    place-items: center;
    border-left: 1px solid var(--border);
    background: transparent;
    color: #344b65;
    font-size: 18px;
    font-weight: 900;
}

.option-tool svg {
    width: 18px;
    height: 18px;
}

.option-tool:hover,
.option-tool.is-active {
    color: var(--danger);
}

.option-feedback {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 13px 16px;
    color: #001432;
    font-size: 14px;
    line-height: 1.45;
}

.option-feedback strong {
    color: inherit;
    white-space: nowrap;
}

.option-feedback.is-correct {
    color: #06764f;
}

.option-feedback.is-wrong {
    color: #be1f1f;
}

.feedback-box {
    margin-top: 18px;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.feedback-box p {
    margin: 6px 0 0;
}

.feedback-box.is-correct {
    border: 1px solid #77d9b4;
    background: var(--success-soft);
    color: #056243;
}

.feedback-box.is-wrong {
    border: 1px solid #ff9696;
    background: var(--danger-soft);
    color: #a21c1c;
}

.question-nav-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 16px 14px;
}

.nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.nav-panel-head > span {
    display: flex;
    gap: 8px;
}

.question-dots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.question-dot {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
    color: #24405e;
    font-size: 14px;
    font-weight: 900;
}

.question-dot:hover,
.question-dot.is-current {
    border-color: var(--accent);
    background: var(--accent-pale);
    color: var(--accent);
}

.question-dot.is-answered {
    border-color: #77d9b4;
    background: var(--success-soft);
    color: var(--success);
}

.question-dot.is-wrong {
    border-color: #ff9696;
    background: var(--danger-soft);
    color: var(--danger);
}

.result-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.result-score,
.result-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.result-score {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 220px;
    padding: 22px;
    text-align: center;
}

.result-score span {
    color: var(--accent);
    font-size: 44px;
    font-weight: 900;
}

.result-score p {
    margin: 10px 0 6px;
    font-weight: 900;
}

.result-score small {
    color: var(--muted);
    line-height: 1.4;
}

.result-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.result-row {
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    padding: 12px 14px;
}

.result-row.is-correct {
    border-left-color: var(--success);
}

.result-row.is-wrong {
    border-left-color: var(--danger);
}

.result-row span {
    margin-left: 8px;
    color: var(--muted);
    font-weight: 900;
}

.result-row p {
    margin: 7px 0 0;
}

.app-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1,
.panel h2 {
    margin: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-link,
.user-chip,
.pill,
.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 800;
}

.panel {
    padding: 22px;
    margin-top: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-list-panel {
    min-width: 0;
}

.users-page-layout {
    display: block;
}

.users-list-panel {
    min-width: 0;
}

.users-list-panel .section-heading .muted {
    margin: 6px 0 0;
}

.section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.users-list-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(110px, 140px) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.users-search-field,
.users-page-size {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.users-search-field input,
.users-page-size select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
}

.users-search-field input:focus,
.users-page-size select:focus {
    outline: 2px solid rgba(124, 58, 237, 0.2);
    border-color: var(--accent);
}

.users-list-count {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.users-table-wrap {
    max-height: min(72vh, 820px);
    overflow: auto;
}

.users-table {
    min-width: 1120px;
}

.users-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
}

.users-table tbody tr:hover {
    background: #fafcff;
}

.users-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.users-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.users-pagination-controls strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.order-assistant-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.order-assistant-form .muted {
    margin: 6px 0 0;
}

.order-source-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(212, 163, 51, 0.38);
    border-radius: var(--radius);
    background: #fffaf0;
    color: var(--text);
    padding: 12px 14px;
    cursor: pointer;
}

.order-source-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.order-source-toggle span,
.order-source-toggle strong,
.order-source-toggle small {
    display: block;
}

.order-source-toggle strong {
    font-weight: 950;
}

.order-source-toggle small {
    color: var(--muted);
    font-weight: 800;
}

.order-delivery-panel {
    min-width: 0;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 18px;
    background: #fff;
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
}

.delivery-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-summary-grid span {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
    min-width: 0;
}

.delivery-summary-grid small,
.order-history-table small {
    color: var(--muted);
    font-weight: 800;
}

.delivery-summary-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.delivery-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.delivery-actions button {
    min-height: 42px;
}

.delivery-message-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.delivery-message-grid label:first-child {
    grid-column: 1 / -1;
}

.delivery-message-grid textarea {
    min-height: 260px;
    resize: vertical;
}

.delivery-message-grid input[readonly],
.delivery-message-grid textarea[readonly] {
    background: #fff;
}

.order-stats-panel,
.order-history-panel {
    margin-top: 20px;
}

.order-stats-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.order-stats-card {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px 14px;
}

.order-stats-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-stats-card strong {
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    font-weight: 950;
}

.order-stats-card.is-shopier {
    border-color: rgba(36, 109, 217, 0.28);
    background: #f4f8ff;
}

.order-stats-card.is-iban {
    border-color: rgba(212, 163, 51, 0.34);
    background: #fffaf0;
}

.order-stats-card.is-total {
    border-color: rgba(9, 31, 57, 0.18);
    background: #f8fafc;
}

.order-stats-chart {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    padding: 16px 12px 10px;
    overflow-x: auto;
}

.order-stats-bars {
    display: grid;
    grid-template-columns: repeat(14, minmax(48px, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 178px;
}

.order-stats-day {
    display: grid;
    justify-items: center;
    align-items: end;
    gap: 7px;
    min-width: 0;
}

.order-stats-day strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.order-stats-day small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.order-stats-bar {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    width: 100%;
    max-width: 34px;
    min-height: 6px;
    overflow: hidden;
    border-radius: 999px 999px 4px 4px;
    background: #eef2f7;
    box-shadow: inset 0 0 0 1px rgba(9, 31, 57, 0.06);
}

.order-stats-segment {
    display: block;
    min-height: 0;
}

.order-stats-segment.is-shopier,
.order-stats-legend i.is-shopier {
    background: #2f72d9;
}

.order-stats-segment.is-iban,
.order-stats-legend i.is-iban {
    background: #d4a333;
}

.order-stats-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.order-stats-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-stats-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.payment-source-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 28px;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--text);
    background: #eef2f7;
    font-size: 12px;
    font-weight: 950;
}

.payment-source-pill.is-shopier {
    color: #174a9a;
    background: #eaf2ff;
}

.payment-source-pill.is-iban {
    color: #7a560b;
    background: #fff1bf;
}

.payment-source-pill.is-manual {
    color: #4b5563;
    background: #f3f4f6;
}

.shopier-panel {
    margin-top: 20px;
}

.shopier-orders-page .shopier-panel {
    margin-top: 0;
}

.shopier-actions {
    justify-content: flex-end;
    margin-bottom: 0;
}

.shopier-empty {
    margin-bottom: 16px;
}

.shopier-mapping-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.shopier-mapping-list h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
}

.shopier-mapping-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px) minmax(220px, 320px) auto;
    gap: 10px;
    align-items: end;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
}

.shopier-mapping-row input,
.shopier-mapping-row select,
.shopier-list-toolbar input[type="search"] {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    font-weight: 850;
}

.shopier-list-toolbar input[type="search"] {
    min-width: 260px;
}

.shopier-mapping-row span,
.shopier-table td strong,
.shopier-table td small {
    display: block;
}

.shopier-mapping-row small,
.shopier-table small {
    color: var(--muted);
    font-weight: 800;
}

.shopier-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.shopier-bulk-bar strong,
.shopier-bulk-bar small {
    display: block;
}

.shopier-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.shopier-recovery-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid rgba(202, 158, 42, 0.28);
    border-radius: var(--radius);
    background: #fffaf0;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.shopier-recovery-bar strong,
.shopier-recovery-bar small {
    display: block;
}

.shopier-recovery-bar small {
    color: var(--muted);
    font-weight: 800;
}

.shopier-recovery-result {
    color: var(--gold) !important;
    margin-top: 3px;
}

.shopier-recovery-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.shopier-recovery-controls input {
    min-width: 260px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    padding: 12px 14px;
}
.shopier-support-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid rgba(36, 109, 217, 0.18);
    border-radius: var(--radius);
    background: #f8fbff;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.shopier-support-bar strong,
.shopier-support-bar small {
    display: block;
}

.shopier-support-bar small {
    color: var(--muted);
    font-weight: 800;
}

.shopier-support-stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

.shopier-support-stats span {
    min-width: 92px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: var(--radius);
    background: #fff;
    padding: 8px 10px;
}

.shopier-support-stats strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1;
}

.shopier-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.small-button.is-secondary {
    border-color: var(--border);
    color: var(--text);
    background: #fff;
}

.small-button.is-secondary:hover {
    border-color: rgba(36, 109, 217, 0.34);
    color: var(--blue);
}

.shopier-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.shopier-list-toolbar label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.shopier-list-toolbar select {
    min-width: 110px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    font-weight: 850;
}

.shopier-check-cell {
    width: 44px;
    text-align: center;
}

.shopier-check-cell input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.shopier-selection-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    cursor: help;
}

.shopier-product-cell {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shopier-product-cell img,
.shopier-product-placeholder {
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    object-fit: cover;
}

.shopier-product-placeholder {
    display: block;
}

.shopier-table {
    min-width: 1180px;
}

.shopier-no-orders {
    margin-top: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-pill.is-ok {
    border-color: rgba(5, 150, 105, 0.28);
    background: #ecfdf5;
    color: #047857;
}

.status-pill.is-warn {
    border-color: rgba(245, 158, 11, 0.34);
    background: #fffbeb;
    color: #92400e;
}

.status-pill.is-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: #fef2f2;
    color: #b91c1c;
}

.shopier-error {
    margin-top: 6px;
    color: var(--danger) !important;
}

.order-bulk-panel {
    margin-top: 20px;
}

.order-bulk-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px);
    gap: 14px;
    align-items: end;
}

.order-bulk-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.order-bulk-summary span {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 7px 10px;
}

.order-bulk-table-wrap {
    max-height: 360px;
    overflow: auto;
}

.order-bulk-table {
    min-width: 980px;
}

.order-bulk-table tbody tr.has-error {
    background: #f8fbff;
}

.order-bulk-actions {
    margin-top: 14px;
    margin-bottom: 0;
}

.order-history-table td strong,
.order-history-table td small {
    display: block;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.admin-table.users-table {
    min-width: 1120px;
}

.admin-table th,
.admin-table td {
    border-top: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 8px;
}

.small-button {
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 900;
}

.danger-button {
    background: var(--danger);
}

@media (max-width: 1100px) {
    .order-assistant-layout,
    .order-bulk-controls,
    .shopier-mapping-row,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .delivery-summary-grid,
    .delivery-message-grid,
    .order-stats-summary {
        grid-template-columns: 1fr;
    }

    .order-stats-bars {
        grid-template-columns: repeat(14, minmax(46px, 46px));
    }

    .student-main {
        padding-left: 36px;
        padding-right: 36px;
    }

    .test-topbar {
        margin-left: -36px;
        margin-right: -36px;
        padding-left: 36px;
        padding-right: 36px;
    }

    .test-workspace {
        grid-template-columns: 1fr;
    }

    .question-nav-panel {
        order: -1;
    }

    .question-dots {
        grid-template-columns: repeat(8, 34px);
    }
}

@media (max-width: 840px) {
    .student-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .brand-lockup {
        height: 70px;
    }

    .side-nav {
        grid-template-columns: 1fr;
        padding: 14px 14px 8px;
    }

    .side-link {
        min-height: 44px;
        justify-content: center;
        padding: 0 10px;
        font-size: 13px;
    }

    .side-link span {
        display: none;
    }

    .side-spacer,
    .theme-toggle {
        display: none;
    }

    .sidebar-user {
        min-height: auto;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding: 12px 16px;
    }

    .student-main {
        padding: 28px 16px 48px;
    }

    .page-header,
    .test-topbar {
        display: grid;
    }

    .test-topbar {
        margin: -28px -16px 28px;
        padding: 18px 16px;
    }

    .result-card,
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-header,
    .course-accordion {
        margin-left: 0;
        margin-right: 0;
    }

    .soft-danger-button {
        width: 100%;
    }

    .unit-card summary,
    .day-heading,
    .test-row {
        display: grid;
        justify-items: start;
    }

    .unit-card summary {
        grid-template-columns: 1fr auto;
    }

    .unit-meta {
        grid-column: 1 / -1;
    }

    .question-card {
        border-radius: var(--radius-lg);
        padding: 18px;
    }

    .question-actions,
    .test-stats {
        display: grid;
        justify-items: start;
    }

    .option-row {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .option-main {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 58px;
        padding: 0 10px;
    }

    .option-feedback {
        grid-template-columns: 1fr;
    }

    .question-dots {
        grid-template-columns: repeat(5, 34px);
    }

    .inline-form {
        grid-template-columns: 1fr;
    }
}

/* Kolay Ogren Prime visual adaptation for the Lite question bank */
:root {
    --brand-purple: #7c3aed;
    --brand-purple-light: #f3e8ff;
    --brand-purple-dark: #6d28d9;
    --brand-accent: #f59e0b;
    --bg-main: #f1f5f9;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-darker: #cbd5e1;
    --icon-emerald-bg: #ecfdf5;
    --icon-emerald-text: #059669;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-purple: 0 10px 20px -5px rgba(124, 58, 237, 0.25);

    --page: var(--bg-main);
    --sidebar: var(--bg-surface);
    --surface: var(--bg-surface);
    --surface-soft: var(--bg-main);
    --surface-muted: var(--bg-main);
    --text: var(--text-main);
    --muted: var(--text-muted);
    --soft-text: var(--text-light);
    --border: var(--border-color);
    --accent: var(--brand-purple);
    --accent-strong: var(--brand-purple-dark);
    --accent-soft: var(--brand-purple-light);
    --accent-pale: var(--brand-purple-light);
    --success: var(--icon-emerald-text);
    --success-soft: var(--icon-emerald-bg);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.08);
    --warning-soft: #fff7ed;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-soft: var(--shadow-sm);
    --shadow-card: var(--shadow-md);
}

body {
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0;
    background: var(--bg-main);
}

h1,
h2,
h3,
.brand-lockup strong {
    font-family: 'Manrope', sans-serif;
}

svg {
    flex: 0 0 auto;
}

.student-shell {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
    background: var(--bg-main);
}

.sidebar {
    position: relative;
    top: auto;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 32px 0;
    overflow: hidden;
    white-space: nowrap;
}

.brand-lockup {
    height: auto;
    gap: 16px;
    padding: 0 22px;
    margin-bottom: 40px;
    box-shadow: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    color: #fff;
    box-shadow: var(--shadow-purple);
}

.brand-mark svg {
    width: 24px;
    height: 24px;
}

.brand-lockup strong {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.brand-lockup small {
    margin-top: 2px;
    color: var(--brand-purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.side-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 0 16px;
}

.side-link,
.theme-toggle {
    min-height: 52px;
    border-radius: 16px;
    gap: 14px;
    color: var(--text-muted);
    padding: 0 18px;
    font-size: 15px;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.side-link span,
.theme-toggle span {
    width: 22px;
    color: var(--text-muted);
}

.side-link:hover,
.theme-toggle:hover {
    background: var(--bg-main);
    color: var(--text-main);
}

.side-link.is-active {
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    box-shadow: inset 4px 0 0 var(--brand-purple);
}

.side-link.is-active span {
    color: var(--brand-purple);
}

.theme-toggle {
    width: calc(100% - 32px);
    margin: 0 16px 26px;
}

.sidebar-user {
    min-height: auto;
    grid-template-columns: 40px minmax(0, 1fr) 32px;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding: 20px 16px 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
}

.sidebar-user small {
    color: var(--brand-purple);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.sidebar-user strong {
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 900;
}

.logout-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.student-main {
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 40px;
    background: var(--bg-main);
}

.student-main::-webkit-scrollbar {
    width: 6px;
}

.student-main::-webkit-scrollbar-track {
    background: transparent;
}

.student-main::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--border-darker);
}

.page-header,
.test-topbar {
    align-items: flex-start;
    gap: 16px;
}

.page-header {
    width: min(1100px, 100%);
    margin: 0 auto 20px;
}

.page-header h1 {
    margin: 0;
    color: var(--text-main);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.soft-danger-button {
    min-height: 42px;
    border: 1px solid rgba(36, 109, 217, 0.18);
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.soft-danger-button svg {
    width: 18px;
    height: 18px;
}

.soft-danger-button:hover,
.test-row:hover,
.square-button:hover,
.mini-square:hover,
.ghost-button:hover,
.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.inline-status {
    width: min(1100px, 100%);
    margin: 0 auto 16px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 12px;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
}

.course-accordion {
    width: min(1100px, 100%);
    gap: 8px;
    margin: 0 auto;
}

.question-bank-days {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
    padding-left: 16px;
}

.unit-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.unit-summary {
    min-height: auto;
    border-bottom: 0;
}

.question-tree-row {
    width: 100%;
    min-height: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-main);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.question-tree-row:hover {
    border-color: rgba(124, 58, 237, 0.24);
    box-shadow: var(--shadow-sm);
}

.question-tree-course {
    padding: 16px;
}

.unit-title {
    min-width: 0;
    gap: 12px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 900;
}

.unit-title svg,
.unit-icon svg {
    width: 22px;
    height: 22px;
}

.unit-icon {
    color: var(--brand-purple);
}

.unit-meta,
.test-count {
    border: 0;
    border-radius: 999px;
    background: var(--bg-main);
    color: var(--text-muted);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
}

.unit-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-left: 42px;
    border-left: 2px solid var(--border-color);
    padding: 0 0 0 16px;
}

.day-accordion {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.day-accordion summary {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    background: var(--bg-surface);
    padding: 16px;
}

.day-accordion summary strong {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 900;
}

.day-accordion summary small {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.chevron {
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.chevron svg {
    width: 22px;
    height: 22px;
}

.day-accordion .test-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-left: 42px;
    border-top: 0;
    border-left: 2px solid var(--border-color);
    padding: 0 0 0 16px;
}

.test-row {
    min-height: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 12px 16px;
}

.test-row strong {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 800;
}

.test-row small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.test-row-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.test-row-meta .test-count {
    display: inline-flex;
    min-width: auto;
}

.test-progress-pill {
    border-radius: 999px;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.test-progress-pill.is-completed {
    background: var(--icon-emerald-bg);
    color: var(--icon-emerald-text);
}

.loading-state,
.form-message {
    width: min(420px, 100%);
    margin: auto;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    padding: 36px;
    text-align: center;
    font-weight: 800;
}

.test-topbar {
    min-height: auto;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    margin: -40px -40px 32px;
    padding: 24px 40px;
}

.test-topbar p {
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.test-topbar h1 {
    color: var(--text-main);
    font-size: 20px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.square-button,
.mini-square {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
    color: var(--text-main);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.square-button {
    width: 40px;
    height: 40px;
}

.mini-square {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.mini-square svg,
.square-button svg {
    width: 18px;
    height: 18px;
}

.mini-square.is-done {
    border-color: transparent;
    background: var(--brand-purple);
    color: #fff;
    box-shadow: var(--shadow-purple);
}

.stat-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.stat-pill svg {
    width: 16px;
    height: 16px;
}

.stat-pill.is-purple {
    background: var(--brand-purple-light);
    color: var(--brand-purple);
}

.stat-pill.is-green {
    background: var(--icon-emerald-bg);
    color: var(--icon-emerald-text);
}

.test-workspace {
    width: min(980px, 100%);
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
}

.question-card {
    min-width: 0;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 24px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    padding: 28px;
}

.question-card-head {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 12px;
}

.question-badge {
    gap: 6px;
    border-radius: 999px;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
}

.question-badge svg {
    width: 16px;
    height: 16px;
}

.progress-track {
    height: 7px;
    border-radius: 999px;
    background: var(--brand-purple-light);
    margin: 0 0 24px;
}

.progress-track span {
    background: var(--brand-purple);
    transition: width 0.25s ease;
}

.topic-label {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.question-copy {
    margin-bottom: 22px;
}

.question-copy h2 {
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0;
}

.question-actions {
    margin-bottom: 16px;
}

.ghost-button,
.primary-action {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ghost-button {
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
}

.primary-action {
    background: var(--brand-purple);
    color: #fff;
    box-shadow: var(--shadow-purple);
}

.hint-box {
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 12px;
    background: #fff7ed;
    color: #92400e;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
}

.option-list {
    gap: 12px;
}

.option-row {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-main);
    opacity: 1;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.option-row:hover:not(.is-eliminated):not(.is-correct):not(.is-wrong) {
    box-shadow: var(--shadow-sm);
}

.option-row.is-selected {
    border-color: rgba(124, 58, 237, 0.42);
    background: var(--brand-purple-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.option-row.is-eliminated {
    opacity: 0.48;
}

.option-row.is-correct {
    border-color: rgba(5, 150, 105, 0.42);
    background: var(--icon-emerald-bg);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.option-row.is-wrong {
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.07);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.07);
}

.option-main {
    min-height: 60px;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    color: var(--text-main);
    padding: 14px 62px 14px 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.option-main:hover {
    background: transparent;
}

.option-key {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
}

.option-row.is-selected .option-key {
    border-color: rgba(124, 58, 237, 0.42);
    background: var(--bg-surface);
    color: var(--brand-purple);
}

.option-row.is-correct .option-key {
    border-color: rgba(5, 150, 105, 0.42);
    background: var(--bg-surface);
    color: #059669;
}

.option-row.is-wrong .option-key {
    border-color: rgba(239, 68, 68, 0.42);
    background: var(--bg-surface);
    color: #dc2626;
}

.option-tool {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 60px;
    border-left: 1px solid currentColor;
    background: transparent;
    color: var(--text-muted);
    opacity: 0.72;
}

.option-tool svg {
    width: 20px;
    height: 20px;
}

.option-tool:hover,
.option-tool.is-active {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    opacity: 1;
}

.option-row.is-correct .option-tool.is-active,
.option-row.is-correct .option-tool:hover {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
}

.option-row.is-wrong .option-tool.is-active,
.option-row.is-wrong .option-tool:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.option-tool:disabled {
    opacity: 0.5;
}

.option-feedback {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding: 13px 16px 14px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.option-feedback strong {
    width: 22px;
    height: 22px;
    overflow: hidden;
    position: relative;
    border-radius: 999px;
    color: transparent;
    white-space: nowrap;
}

.option-feedback strong::before {
    content: "i";
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
    font-size: 13px;
    font-weight: 900;
}

.option-feedback.is-correct {
    border-color: rgba(5, 150, 105, 0.18);
    background: rgba(5, 150, 105, 0.055);
}

.option-feedback.is-correct strong::before {
    content: "\2713";
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.option-feedback.is-wrong {
    border-color: rgba(239, 68, 68, 0.16);
    background: rgba(239, 68, 68, 0.045);
}

.feedback-box {
    margin-top: 16px;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
}

.test-complete-banner {
    margin-top: 16px;
    border-radius: 14px;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    padding: 14px 16px;
    font-weight: 900;
}

.question-nav-panel {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-surface);
    padding: 14px;
}

.nav-panel-head {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 900;
}

.question-dots {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.question-dot {
    position: relative;
    width: auto;
    aspect-ratio: 1 / 1;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 900;
}

.question-dot.is-current {
    border: 2px solid var(--brand-purple);
    background: var(--bg-main);
    color: var(--brand-purple);
    box-shadow: 0 0 0 3px var(--brand-purple-light);
}

.question-dot.is-answered {
    border-color: rgba(5, 150, 105, 0.45);
    background: var(--icon-emerald-bg);
    color: var(--icon-emerald-text);
}

.question-dot.is-wrong {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.result-card {
    width: min(980px, 100%);
    gap: 20px;
}

.result-score,
.result-list {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.result-score span {
    color: var(--brand-purple);
}

.result-row {
    border-radius: 12px;
    background: var(--bg-main);
}

@media (max-width: 1100px) {
    .student-main {
        padding: 32px;
    }

    .test-topbar {
        margin: -32px -32px 28px;
        padding: 18px 32px;
    }

    .test-workspace {
        grid-template-columns: 1fr;
    }

    .question-nav-panel {
        order: 0;
    }

    .question-dots {
        grid-template-columns: repeat(8, minmax(34px, 1fr));
    }
}

@media (max-width: 840px) {
    body {
        overflow: auto;
    }

    .student-shell {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .brand-lockup {
        height: 70px;
        margin-bottom: 0;
    }

    .side-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px 14px 10px;
    }

    .side-link {
        min-height: 44px;
        justify-content: center;
        border-radius: 12px;
        padding: 0 8px;
        font-size: 13px;
    }

    .side-link span {
        display: none;
    }

    .side-spacer,
    .theme-toggle {
        display: none;
    }

    .sidebar-user {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding: 12px 16px;
    }

    .student-main {
        height: auto;
        overflow: visible;
        padding: 24px 16px 48px;
    }

    .page-header {
        display: grid;
    }

    .test-topbar {
        display: grid;
        margin: -24px -16px 24px;
        padding: 16px 20px;
    }

    .test-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .page-header h1 {
        font-size: 22px;
    }

    .soft-danger-button {
        width: 100%;
    }

    .question-bank-days,
    .unit-body,
    .day-accordion .test-list {
        margin-left: 16px;
    }

    .day-accordion summary,
    .test-row,
    .question-tree-course {
        grid-template-columns: minmax(0, 1fr);
        display: grid;
        justify-items: start;
    }

    .unit-summary {
        align-items: flex-start;
    }

    .unit-meta,
    .test-count {
        white-space: normal;
    }

    .question-card {
        border-radius: 18px;
        padding: 18px;
    }

    .question-actions {
        display: grid;
        justify-items: stretch;
    }

    .question-dots {
        grid-template-columns: repeat(5, 1fr);
    }

    .option-main {
        padding: 13px 54px 13px 12px;
        font-size: 14px;
    }

    .option-tool {
        width: 44px;
    }
}

/* Mobile polish: compact app chrome and denser question bank tree */
@media (max-width: 840px) {
    body {
        overflow: auto;
        background: var(--bg-main);
    }

    .student-shell {
        display: block;
        min-height: 100vh;
        height: auto;
        padding-top: 64px;
        padding-bottom: 84px;
        overflow: visible;
    }

    .sidebar {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 1000;
        height: 64px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        padding: 0 14px;
        overflow: visible;
    }

    .brand-lockup {
        flex: 1;
        min-width: 0;
        height: 64px;
        margin: 0;
        padding: 0;
        gap: 11px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .brand-mark svg {
        width: 20px;
        height: 20px;
    }

    .brand-lockup strong {
        font-size: 20px;
    }

    .brand-lockup small {
        font-size: 9px;
    }

    .side-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 10px;
        z-index: 1001;
        display: grid;
        grid-template-columns: 1fr;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
        padding: 8px;
        backdrop-filter: blur(12px);
    }

    .side-link {
        min-height: 44px;
        justify-content: center;
        gap: 9px;
        border-radius: 14px;
        padding: 0 12px;
        font-size: 13px;
    }

    .side-link span {
        display: inline-grid;
        width: 20px;
        place-items: center;
    }

    .side-link svg {
        width: 19px;
        height: 19px;
    }

    .side-link.is-active {
        box-shadow: none;
    }

    .side-spacer,
    .theme-toggle {
        display: none;
    }

    .sidebar-user {
        display: grid;
        grid-template-columns: 36px 32px;
        gap: 8px;
        min-height: auto;
        border-top: 0;
        padding: 0;
    }

    .sidebar-user > span:nth-child(2) {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .logout-button {
        width: 32px;
        height: 36px;
    }

    .student-main {
        height: auto;
        overflow: visible;
        padding: 22px 16px 26px;
    }

    .page-header {
        display: flex;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: 25px;
        line-height: 1.15;
    }

    .page-header p {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.45;
    }

    .soft-danger-button {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 11px;
        font-size: 0;
    }

    .soft-danger-button svg {
        width: 18px;
        height: 18px;
    }

    .inline-status {
        margin-bottom: 12px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .question-tree-course {
        display: flex;
        align-items: center;
        padding: 14px;
        border-radius: 14px;
    }

    .unit-title {
        font-size: 14px;
    }

    .unit-meta {
        margin-left: auto;
        white-space: nowrap;
    }

    .unit-body {
        gap: 8px;
        margin-top: 8px;
        margin-left: 14px;
        padding-left: 12px;
    }

    .day-accordion summary {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        align-items: center;
        min-height: 0;
        padding: 14px;
        border-radius: 14px;
    }

    .day-accordion summary strong {
        font-size: 14px;
        line-height: 1.25;
    }

    .day-accordion summary small {
        font-size: 12px;
        line-height: 1.45;
    }

    .day-accordion .test-list {
        gap: 8px;
        margin-top: 8px;
        margin-left: 14px;
        padding-left: 12px;
    }

    .test-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: stretch;
        gap: 12px;
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .test-row strong {
        font-size: 13px;
        line-height: 1.25;
    }

    .test-row small {
        font-size: 12px;
        line-height: 1.35;
    }

    .test-row-meta {
        justify-content: flex-end;
    }

    .test-count,
    .test-progress-pill {
        white-space: nowrap;
    }

    .chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .test-topbar {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        margin: -22px -16px 20px;
        padding: 14px 16px;
    }

    .test-topbar .test-stats {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-start;
    }

    .test-topbar h1 {
        font-size: 17px;
    }

    .question-card {
        padding: 18px;
        border-radius: 18px;
    }

    .question-nav-panel {
        border-radius: 16px;
    }
}

@media (max-width: 430px) {
    .student-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .unit-meta {
        display: none;
    }

    .day-accordion summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .day-accordion summary .test-count {
        grid-column: 1;
        justify-self: start;
        margin-top: 2px;
    }

    .day-accordion summary .chevron {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .test-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .test-row-meta {
        justify-content: flex-start;
    }

    .question-dots {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Reference-style campaign day accordion */
.course-accordion.question-bank-days {
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 2px solid #dbe5f0;
    margin: 0 auto;
    padding-left: 16px;
}

.question-bank-days .day-accordion {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.question-bank-days .day-accordion summary {
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border: 1px solid #d9e3ee;
    border-radius: 12px;
    background: #fff;
    padding: 14px 18px;
    color: #06162d;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.question-bank-days .day-accordion summary:hover {
    border-color: #c9d6e5;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
}

.question-bank-days .day-accordion[open] summary {
    border-color: #d7e1ec;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.day-summary-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.day-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3e8ff;
    color: #7c3aed;
}

.day-icon svg {
    width: 18px;
    height: 18px;
}

.day-summary-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.question-bank-days .day-accordion summary strong {
    color: #06162d;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.question-bank-days .day-accordion summary small {
    color: #334b68;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.question-bank-days .test-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334b68;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.question-bank-days .chevron {
    color: #334b68;
    transition: transform 0.2s ease;
}

.question-bank-days .chevron svg {
    width: 20px;
    height: 20px;
}

.question-bank-days .day-accordion[open] > summary .chevron {
    transform: rotate(180deg);
}

.question-bank-days .day-accordion .test-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 0;
    border-left: 2px solid #dbe5f0;
    margin: 8px 0 8px 42px;
    padding: 0 0 0 18px;
}

.question-bank-days .test-row {
    position: relative;
    --test-accent: #7c3aed;
    --test-soft: #f3e8ff;
    --test-text: #6d28d9;
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #d9e3ee;
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.72);
    color: #06162d;
    padding: 12px 14px;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.question-bank-days .test-row::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--test-accent);
}

.question-bank-days .test-row:hover {
    border-color: color-mix(in srgb, var(--test-accent) 38%, #d9e3ee);
    background: #fff;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--test-accent) 16%, transparent);
    transform: translateY(-1px);
}

.question-bank-days .test-kind-1 {
    --test-accent: #7c3aed;
    --test-soft: #f3e8ff;
    --test-text: #6d28d9;
}

.question-bank-days .test-kind-2 {
    --test-accent: #2563eb;
    --test-soft: #dbeafe;
    --test-text: #1d4ed8;
}

.question-bank-days .test-kind-3 {
    --test-accent: #0891b2;
    --test-soft: #cffafe;
    --test-text: #0e7490;
}

.question-bank-days .test-kind-4 {
    --test-accent: #f59e0b;
    --test-soft: #fef3c7;
    --test-text: #b45309;
}

.question-bank-days .test-kind-5 {
    --test-accent: #10b981;
    --test-soft: #d1fae5;
    --test-text: #047857;
}

.test-row-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.test-leading-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--test-accent);
    color: #fff;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--test-accent) 28%, transparent);
}

.test-leading-icon svg {
    width: 17px;
    height: 17px;
}

.test-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.test-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.question-bank-days .test-row strong {
    color: #06162d;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.test-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    background: var(--test-soft);
    color: var(--test-text);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.question-bank-days .test-row small {
    color: #334b68;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.question-bank-days .test-row-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.question-bank-days .test-progress-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7c3aed;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
}

.question-bank-days .test-progress-pill.is-completed {
    background: #ecfdf5;
    color: #059669;
}

@media (max-width: 840px) {
    .course-accordion.question-bank-days {
        gap: 8px;
        border-left: 2px solid #dbe5f0;
        margin-left: 0;
        padding-left: 12px;
    }

    .question-bank-days .day-accordion summary {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        padding: 12px 14px;
    }

    .day-summary-main {
        gap: 10px;
    }

    .day-icon {
        width: 26px;
        height: 26px;
    }

    .question-bank-days .day-accordion .test-list {
        margin-left: 26px;
        padding-left: 12px;
    }

    .question-bank-days .test-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 11px 12px;
    }

    .test-leading-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 520px) {
    .question-bank-days .day-accordion summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .question-bank-days .day-accordion summary .test-count {
        grid-column: 1;
        justify-self: start;
        margin-left: 38px;
    }

    .question-bank-days .day-accordion summary .chevron {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .question-bank-days .test-row {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    .question-bank-days .test-row-meta {
        justify-content: flex-start;
        padding-left: 38px;
    }
}

.question-bank-days .day-accordion summary .day-summary-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.question-bank-days .day-accordion summary .day-summary-copy {
    align-self: center;
}

.question-bank-days .test-row .test-row-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.question-bank-days .test-row .test-copy {
    align-self: center;
}

.question-bank-days .test-row .test-title-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    width: auto;
    justify-items: start;
}

.question-bank-days .test-row .test-type-pill {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: max-content;
    justify-self: start;
}

.question-bank-days .test-row {
    --test-tint: #fbf8ff;
    background: linear-gradient(90deg, var(--test-tint) 0%, rgba(248, 251, 255, 0.86) 34%, rgba(248, 251, 255, 0.72) 100%);
}

.question-bank-days .test-row:hover {
    background: linear-gradient(90deg, color-mix(in srgb, var(--test-tint) 72%, #fff) 0%, #fff 42%, #fff 100%);
}

.question-bank-days .test-kind-1 {
    --test-tint: #fbf8ff;
}

.question-bank-days .test-kind-2 {
    --test-tint: #f5f9ff;
}

.question-bank-days .test-kind-3 {
    --test-tint: #f1fdff;
}

.question-bank-days .test-kind-4 {
    --test-tint: #fffaf0;
}

.question-bank-days .test-kind-5 {
    --test-tint: #f2fff9;
}

.camp-header {
    align-items: center;
    margin-bottom: 18px;
}

.camp-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.camp-title-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #7c3aed, #9b5cff);
    color: #fff;
    box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
}

.camp-title-mark svg {
    width: 27px;
    height: 27px;
}

.camp-title-copy {
    min-width: 0;
}

.camp-title-copy h1 {
    letter-spacing: 0;
}

.camp-title-copy p {
    max-width: 660px;
}

.camp-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.camp-meta-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border: 1px solid #dfe7f1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #334b68;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.camp-meta-row span:first-child {
    border-color: rgba(124, 58, 237, 0.18);
    background: #f3e8ff;
    color: #6d28d9;
}

.camp-meta-row strong {
    margin-right: 4px;
    color: inherit;
    font-size: inherit;
    font-weight: 950;
}

.question-bank-days::before {
    content: "KPSS Tarih Kampı";
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 28px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 999px;
    background: #f3e8ff;
    color: #6d28d9;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

@media (max-width: 560px) {
    .question-bank-days .day-accordion summary,
    .question-bank-days .test-row {
        justify-items: stretch;
    }

    .question-bank-days .day-accordion summary .day-summary-main,
    .question-bank-days .test-row .test-row-main {
        width: 100%;
    }

    .camp-header {
        align-items: flex-start;
    }

    .camp-heading {
        gap: 12px;
    }

    .camp-title-mark {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .camp-title-mark svg {
        width: 23px;
        height: 23px;
    }

    .camp-meta-row {
        gap: 6px;
        margin-top: 10px;
    }

    .camp-meta-row span {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 11px;
    }
}

/* Typography and hierarchy refinement for the camp program */
body,
.student-shell {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

.brand-lockup strong,
.sidebar-user strong,
.page-header h1,
.test-topbar h1 {
    font-family: inherit;
    letter-spacing: 0;
}

.brand-lockup small,
.sidebar-user small {
    letter-spacing: 0;
}

.camp-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    width: min(1080px, 100%);
    margin-bottom: 26px;
}

.camp-heading {
    align-items: flex-start;
    gap: 18px;
}

.camp-title-mark {
    width: 50px;
    height: 50px;
    margin-top: 2px;
    border-radius: 14px;
    box-shadow: 0 14px 26px rgba(124, 58, 237, 0.2);
}

.camp-title-mark svg {
    width: 25px;
    height: 25px;
}

.camp-title-copy h1 {
    color: #06162d;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.camp-title-copy p {
    max-width: 620px;
    margin-top: 10px;
    color: #34465f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.camp-meta-row {
    gap: 8px;
    margin-top: 12px;
}

.camp-meta-row span {
    min-height: 28px;
    border-color: #dce5ef;
    background: rgba(255, 255, 255, 0.86);
    color: #3d5068;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.camp-meta-row span:first-child {
    background: #f2e9ff;
    color: #6d28d9;
}

.camp-meta-row strong {
    font-weight: 800;
}

.camp-header .soft-danger-button {
    margin-top: 6px;
    font-weight: 700;
}

.course-accordion.question-bank-days {
    width: min(1080px, 100%);
    gap: 9px;
    border-left: 1px solid #d7e1ec;
    padding-left: 18px;
}

.question-bank-days::before {
    content: "Kamp Programı";
    display: block;
    width: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6d28d9;
    padding: 0 0 2px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: none;
}

.question-bank-days .day-accordion summary {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    gap: 16px;
    border-color: #d8e2ed;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: none;
}

.question-bank-days .day-accordion summary:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.day-summary-main,
.question-bank-days .day-accordion summary .day-summary-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.day-icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #f1e7ff;
}

.day-icon svg {
    width: 17px;
    height: 17px;
}

.day-summary-copy,
.question-bank-days .day-accordion summary .day-summary-copy {
    display: grid;
    gap: 2px;
    align-self: center;
}

.day-kicker,
.question-bank-days .day-accordion summary .day-kicker {
    display: inline-flex;
    width: max-content;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.question-bank-days .day-accordion summary strong {
    color: #06162d;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.22;
}

.question-bank-days .day-accordion summary small {
    color: #40526a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.question-bank-days .test-count {
    min-height: 28px;
    background: #f4f7fa;
    color: #334b68;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
}

.question-bank-days .chevron {
    justify-self: end;
    color: #40526a;
}

.question-bank-days .day-accordion .test-list {
    gap: 10px;
    border-left-color: #d7e1ec;
    margin: 9px 0 10px 38px;
    padding-left: 18px;
}

.question-bank-days .test-row {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border-color: #d9e3ee;
    padding: 13px 15px;
}

.question-bank-days .test-row::before {
    inset: 12px auto 12px 0;
    width: 3px;
}

.test-leading-icon {
    width: 28px;
    height: 28px;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--test-accent) 18%, transparent);
}

.test-copy,
.question-bank-days .test-row .test-copy {
    display: grid;
    gap: 4px;
    align-self: center;
    justify-items: start;
}

.test-kicker-row,
.question-bank-days .test-row .test-kicker-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    min-width: 0;
}

.test-index-label,
.question-bank-days .test-row .test-index-label,
.test-type-pill,
.question-bank-days .test-row .test-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    max-width: max-content;
    min-height: 20px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.test-index-label {
    border: 1px solid color-mix(in srgb, var(--test-accent) 18%, #d9e3ee);
    background: rgba(255, 255, 255, 0.72);
    color: var(--test-text);
}

.question-bank-days .test-row strong {
    color: #06162d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.question-bank-days .test-row small {
    max-width: 700px;
    color: #40526a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.38;
}

.question-bank-days .test-row-meta {
    align-self: center;
}

.question-bank-days .test-progress-pill {
    font-weight: 800;
}

@media (max-width: 840px) {
    .camp-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .camp-header .soft-danger-button {
        margin-top: 0;
        justify-self: start;
    }

    .question-bank-days .day-accordion .test-list {
        margin-left: 28px;
        padding-left: 14px;
    }
}

@media (max-width: 560px) {
    .camp-title-copy h1 {
        font-size: 26px;
    }

    .camp-title-copy p {
        font-size: 14px;
    }

    .question-bank-days .day-accordion summary {
        min-height: 72px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 13px 14px;
    }

    .question-bank-days .day-accordion summary .test-count {
        margin-left: 46px;
    }

    .question-bank-days .day-accordion summary strong {
        font-size: 15px;
    }

    .question-bank-days .day-accordion summary small {
        font-size: 12px;
    }

    .question-bank-days .test-row {
        gap: 10px;
    }

    .question-bank-days .test-row-meta {
        padding-left: 43px;
    }
}

/* Remove timeline rails and header summary chips for a cleaner campaign list */
.camp-meta-row {
    display: none;
}

.course-accordion.question-bank-days {
    border-left: 0;
    padding-left: 0;
}

.question-bank-days .day-accordion .test-list {
    border-left: 0;
    margin-left: 45px;
    padding-left: 0;
}

.question-bank-days .test-row::before {
    display: none;
}

@media (max-width: 840px) {
    .course-accordion.question-bank-days {
        border-left: 0;
        padding-left: 0;
    }

    .question-bank-days .day-accordion .test-list {
        margin-left: 38px;
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .question-bank-days .day-accordion .test-list {
        margin-left: 0;
    }
}

/* Admin content builder */
.admin-topbar {
    align-items: center;
    margin-bottom: 22px;
}

.admin-topbar h1 {
    margin-top: 4px;
    color: #06162d;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-topbar .muted {
    max-width: 620px;
    margin: 8px 0 0;
    color: #40526a;
    font-size: 14px;
}

.secondary-link.is-active {
    border-color: rgba(124, 58, 237, 0.22);
    background: #f2e9ff;
    color: #6d28d9;
}

.admin-status {
    width: min(1180px, 100%);
    min-height: auto;
    margin: 0 0 18px;
    border-radius: 12px;
    padding: 12px 14px;
}

.success-message.admin-status {
    border: 1px solid #b7ecd7;
    background: #ecfdf5;
}

.form-message.admin-status {
    border: 1px solid #ffc8c8;
    background: #fff1f1;
}

.admin-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.camp-builder-panel,
.json-editor-panel {
    margin-top: 0;
    box-shadow: none;
}

.camp-builder-panel {
    padding: 0;
    overflow: hidden;
}

.camp-builder-panel > .section-heading {
    min-height: 92px;
    align-items: center;
    margin: 0;
    padding: 22px 24px;
    background: linear-gradient(135deg, #5b3df1 0%, #8d34e8 100%);
    color: #fff;
}

.camp-builder-panel .brand,
.camp-builder-panel .muted,
.camp-builder-panel h2 {
    color: inherit;
}

.camp-builder-panel .brand {
    margin: 0 0 4px;
    font-size: 13px;
}

.camp-builder-panel .muted {
    margin: 7px 0 0;
    opacity: 0.82;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.camp-builder-panel .ghost-button {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.camp-builder-panel .primary-action {
    background: #fff;
    color: #5b3df1;
}

.admin-camp-tree {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.admin-day-node {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 31, 55, 0.05);
}

.admin-day-node summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
    background: #4f46df;
    color: #fff;
    padding: 10px 14px;
    list-style: none;
    cursor: pointer;
}

.admin-day-node[open] summary {
    border-radius: 12px 12px 0 0;
}

.admin-day-node summary::-webkit-details-marker {
    display: none;
}

.admin-node-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-node-main strong,
.admin-test-node strong {
    display: block;
    color: inherit;
    font-weight: 850;
    line-height: 1.25;
}

.admin-node-main small,
.admin-test-node small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.82;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-node-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.admin-node-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-day-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-day-actions .ghost-button {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.admin-day-actions .ghost-button:hover {
    border-color: rgba(255, 255, 255, 0.76);
    background: #fff;
    color: #4f46df;
}

.admin-day-actions .mini-square {
    width: 34px;
    height: 34px;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-day-actions .mini-square:hover {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.28);
}

.admin-day-actions .danger-button {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.94);
    color: #d92d2d;
}

.admin-node-editor {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.4fr) auto;
    gap: 10px;
    align-items: end;
    margin: 8px 0 0 20px;
    border-left: 2px solid #ccd6ff;
    padding: 10px 0 0 16px;
}

.admin-node-editor label,
.json-editor-form label {
    display: grid;
    gap: 7px;
    color: #273a55;
    font-size: 12px;
    font-weight: 850;
}

.admin-node-editor input,
.json-editor-form input,
.json-editor-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.small-button {
    min-height: 34px;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 850;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #ffc8c8;
    background: #fff0f0;
    color: #d92d2d;
}

.danger-button:hover {
    background: #ffe4e4;
}

.admin-test-list {
    display: grid;
    gap: 8px;
    margin: 0;
    border-top: 1px solid #dbe4ef;
    background: #fff;
    padding: 12px 14px 14px 58px;
}

.admin-test-fields {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(190px, 1.2fr);
    gap: 10px;
    align-items: end;
}

.admin-test-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    min-height: 34px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    background: #fff7e8;
    color: #b45309;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-test-fields label {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: #273a55;
    font-size: 12px;
    font-weight: 850;
}

.admin-test-fields input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d8e2ed;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.admin-test-fields input:focus {
    border-color: rgba(245, 158, 11, 0.7);
    outline: 3px solid rgba(245, 158, 11, 0.16);
}

.admin-test-node {
    position: relative;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    background: linear-gradient(90deg, #fff7ec 0%, #fbfdff 38%, #fff 100%);
    color: #06162d;
    padding: 10px 12px 10px 16px;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-test-node::before {
    content: "";
    position: absolute;
    inset: 11px auto 11px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: #f59e0b;
}

.admin-test-node:hover,
.admin-test-node.is-selected {
    border-color: #f0b953;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.12);
    transform: translateY(-1px);
}

.admin-test-node.is-selected {
    background: linear-gradient(90deg, #fff3d8 0%, #fffaf0 40%, #fff 100%);
}

.admin-test-node .ghost-button {
    min-height: 30px;
    border-color: #d8e2ed;
    background: #fff;
    color: #334b68;
    padding: 7px 10px;
}

.admin-test-node .ghost-button:hover {
    border-color: #f0b953;
    background: #fff7e8;
    color: #b45309;
}

.admin-test-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.admin-test-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334b68;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 850;
}

.admin-node-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-node-actions .mini-square {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.mini-square.is-danger {
    border-color: #ffd0d0;
    background: #fff0f0;
    color: #d92d2d;
}

.json-editor-panel {
    position: sticky;
    top: 18px;
}

.json-editor-panel .section-heading {
    align-items: flex-start;
    margin-bottom: 14px;
}

.json-editor-panel h2 {
    font-size: 22px;
    font-weight: 800;
}

.json-editor-panel .muted {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.json-editor-form {
    margin-top: 0;
}

.json-editor-form textarea {
    min-height: 360px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
}

.json-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.json-example {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 12px;
}

.json-example summary {
    color: #334b68;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
}

.json-example pre {
    max-height: 260px;
    overflow: auto;
    margin: 12px 0 0;
    border-radius: 10px;
    background: #06162d;
    color: #dbeafe;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.empty-editor {
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}

.empty-editor h2 {
    margin: 0;
}

.empty-editor p {
    max-width: 320px;
    margin: 0;
}

@media (max-width: 1080px) {
    .admin-content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .json-editor-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .camp-builder-panel > .section-heading,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-node-editor {
        grid-template-columns: minmax(0, 1fr);
        margin-left: 12px;
    }

    .admin-test-list {
        padding: 10px 12px 12px;
    }

    .admin-test-node,
    .admin-day-node summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-day-actions {
        justify-content: flex-start;
    }

    .admin-test-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-test-meta,
    .admin-node-count {
        justify-self: start;
    }
}

body.admin-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body.admin-page .app-shell {
    padding-bottom: 72px;
}

body.admin-page .camp-builder-panel {
    overflow: visible;
}

body.admin-page .json-editor-panel {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.json-validation-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
}

.json-validation-card.is-valid {
    border-color: #b7ecd7;
    background: #f2fff9;
}

.json-validation-card.is-invalid {
    border-color: #ffc8c8;
    background: #f8fbff;
}

.json-validation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.json-validation-head strong {
    font-size: 13px;
    font-weight: 850;
}

.json-validation-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #334b68;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.json-validation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.json-validation-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.json-validation-list i {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
}

.json-validation-list .is-ok {
    background: #ecfdf5;
    color: #047857;
}

.json-validation-list .is-ok i {
    background: #10b981;
}

.json-validation-list .is-bad {
    background: #fff0f0;
    color: #c02626;
}

.json-validation-list .is-bad i {
    background: #ef4444;
}

.json-validation-errors {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
    color: #a52323;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1080px) {
    body.admin-page .json-editor-panel {
        max-height: none;
        overflow: visible;
    }
}

/* Modal-based admin editing */
.admin-node-editor.admin-card-actions {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    border-top: 1px solid #dbe4ef;
    border-left: 0;
    background: #fff;
    padding: 12px 14px;
    flex-wrap: wrap;
}

.admin-node-editor.admin-card-actions .ghost-button {
    border-color: #d8e2ed;
    background: #fff;
    color: #334b68;
}

.admin-node-editor.admin-card-actions .ghost-button:hover {
    border-color: #c9d6e5;
    background: #f8fbff;
    color: #06162d;
}

.admin-test-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.admin-test-copy > span:last-child {
    min-width: 0;
}

.admin-test-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-test-copy small {
    max-width: 520px;
}

.json-editor-context {
    display: grid;
    gap: 4px;
    border: 1px solid #d8e2ed;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
}

.json-editor-context strong {
    color: #06162d;
    font-size: 14px;
    font-weight: 850;
}

.json-editor-context small {
    color: #40526a;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(6, 22, 45, 0.42);
    padding: 24px;
}

.admin-modal {
    width: min(520px, 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(6, 22, 45, 0.22);
    padding: 22px;
}

.admin-json-modal {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.admin-test-modal {
    width: min(720px, 100%);
}

.admin-user-modal {
    width: min(560px, 100%);
}

.admin-json-modal .admin-modal-head .muted {
    margin: 7px 0 0;
    color: #40526a;
    font-size: 13px;
    line-height: 1.45;
}

.admin-json-modal .json-editor-form textarea {
    min-height: 420px;
    max-height: 52vh;
}

.admin-json-modal .json-example {
    margin-top: 16px;
}

.admin-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-modal-head h2 {
    margin: 4px 0 0;
    color: #06162d;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.15;
}

.admin-modal-form {
    margin-top: 0;
}

.admin-modal-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.admin-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-actions {
        width: 100%;
        justify-content: stretch;
    }

    .section-actions button {
        flex: 1 1 160px;
    }

    .users-list-toolbar {
        grid-template-columns: 1fr;
    }

    .users-list-count {
        justify-content: flex-start;
    }

    .users-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .users-pagination-controls {
        width: 100%;
        justify-content: space-between;
    }

    .admin-node-editor.admin-card-actions {
        justify-content: flex-start;
        margin-left: 0;
    }

    .admin-test-copy {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-test-copy strong,
    .admin-test-copy small {
        white-space: normal;
    }
}

/* Top navigation shell */
.student-shell {
    --content-x: clamp(18px, 4vw, 40px);
    --content-y: 34px;
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: visible;
    padding: 0;
    background: var(--bg-main);
}

.student-top-menu {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(216, 226, 237, 0.9);
    background: rgba(255, 255, 255, 0.94);
    padding: 12px var(--content-x);
    box-shadow: 0 12px 28px rgba(15, 31, 55, 0.06);
    backdrop-filter: blur(12px);
}

.student-top-menu .brand-lockup {
    height: auto;
    min-width: 0;
    gap: 12px;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.student-top-menu .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.student-top-menu .brand-lockup strong {
    color: var(--text-main);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.student-top-menu .brand-lockup small {
    margin-top: 2px;
    color: var(--brand-purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.student-menu-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.student-menu-nav .side-link {
    min-height: 42px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 999px;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    box-shadow: none;
    padding: 0 16px;
    white-space: nowrap;
}

.student-menu-nav .side-link span {
    width: 20px;
    color: currentColor;
}

.student-menu-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.student-admin-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: #334b68;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.student-user-chip {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, auto);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    padding: 5px 13px 5px 5px;
}

.student-user-chip .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.student-user-chip small {
    display: block;
    color: var(--brand-purple);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.student-user-chip strong {
    display: block;
    max-width: 160px;
    overflow: hidden;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-menu-logout {
    width: 38px;
    height: 38px;
    border: 1px solid #ffd0d0;
    border-radius: 999px;
    background: #fff5f5;
    color: #d92d2d;
}

.student-main {
    min-width: 0;
    min-height: calc(100vh - 68px);
    height: auto;
    overflow: visible;
    padding: var(--content-y) var(--content-x) 64px;
    background: var(--bg-main);
}

.student-main .test-topbar {
    margin: calc(var(--content-y) * -1) calc(var(--content-x) * -1) 32px;
    padding: 20px var(--content-x);
}

body.admin-page .app-shell {
    width: min(1220px, calc(100% - 32px));
    padding: 18px 0 72px;
}

.admin-menu-bar {
    position: sticky;
    top: 12px;
    z-index: 35;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(216, 226, 237, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 31, 55, 0.08);
    padding: 10px;
    backdrop-filter: blur(12px);
}

.admin-menu-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 8px 2px 2px;
}

.admin-menu-brand .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    color: #fff;
}

.admin-menu-brand strong,
.admin-menu-brand small {
    display: block;
    line-height: 1.1;
}

.admin-menu-brand strong {
    color: #06162d;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-menu-brand small {
    margin-top: 3px;
    color: var(--brand-purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.admin-menu-tabs {
    min-width: 0;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #eef3f8;
    padding: 4px;
}

.admin-menu-item,
.admin-menu-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 14px;
    color: #334b68;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-menu-item {
    background: transparent;
}

.admin-menu-item svg,
.admin-menu-link svg {
    width: 17px;
    height: 17px;
}

.admin-menu-item.is-active {
    border-color: rgba(124, 58, 237, 0.18);
    background: #fff;
    color: var(--brand-purple);
    box-shadow: 0 8px 18px rgba(80, 62, 176, 0.12);
}

.admin-menu-quick {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-menu-link {
    border-color: #dbe4ef;
    background: #fff;
}

.admin-menu-link.is-danger {
    border-color: #ffd0d0;
    background: #fff5f5;
    color: #d92d2d;
}

.admin-page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 26px 0 22px;
}

.admin-page-intro h1 {
    margin: 4px 0 0;
    color: #06162d;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.08;
}

.admin-page-intro .muted {
    max-width: 650px;
    margin: 8px 0 0;
    color: #40526a;
    font-size: 14px;
}

@media (max-width: 940px) {
    .student-top-menu,
    .admin-menu-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .student-menu-nav,
    .admin-menu-tabs {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .admin-menu-quick {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .student-shell {
        --content-x: 16px;
        --content-y: 22px;
    }

    .student-top-menu {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .student-top-menu .brand-mark,
    .admin-menu-brand .brand-mark {
        width: 38px;
        height: 38px;
    }

    .student-top-menu .brand-lockup strong,
    .admin-menu-brand strong {
        font-size: 16px;
    }

    .student-user-chip {
        grid-template-columns: 34px;
        padding: 3px;
    }

    .student-user-chip > span:last-child,
    .student-admin-link {
        display: none;
    }

    .top-menu-logout {
        width: 36px;
        height: 36px;
    }

    .student-main .test-topbar {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .student-main .test-topbar .test-stats {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    body.admin-page .app-shell {
        width: min(1220px, calc(100% - 24px));
        padding-top: 12px;
    }

    .admin-menu-bar {
        top: 8px;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .admin-menu-quick {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .admin-page-intro {
        display: block;
        margin: 20px 0 18px;
    }

    .admin-page-intro h1 {
        font-size: 28px;
    }
}

/* Admin-controlled test type colors */
.question-bank-days .test-row {
    --test-accent: #7C3AED;
    --test-soft: #FBF8FF;
    --test-text: var(--test-accent);
    --test-tint: #FBF8FF;
    border-color: color-mix(in srgb, var(--test-accent) 18%, #d9e3ee);
    background: linear-gradient(90deg, var(--test-tint) 0%, rgba(248, 251, 255, 0.86) 40%, rgba(248, 251, 255, 0.72) 100%);
}

.question-bank-days .test-row:hover {
    border-color: color-mix(in srgb, var(--test-accent) 34%, #d9e3ee);
    background: linear-gradient(90deg, color-mix(in srgb, var(--test-tint) 74%, #fff) 0%, #fff 48%, #fff 100%);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--test-accent) 12%, transparent);
}

.question-bank-days .test-leading-icon,
.test-style-preview .test-leading-icon {
    background: var(--test-accent);
    color: #fff;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--test-accent) 24%, transparent);
}

.question-bank-days .test-index-label {
    border-color: color-mix(in srgb, var(--test-accent) 28%, #d9e3ee);
    color: var(--test-text);
}

.question-bank-days .test-type-pill,
.test-style-preview .test-type-pill {
    background: var(--test-soft);
    color: var(--test-text);
}

.test-style-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 112px 112px;
    gap: 12px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px;
}

.test-style-editor label {
    min-width: 0;
}

.test-style-editor select,
.test-style-editor input[type="text"],
.test-style-editor input[type="datetime-local"],
.test-style-editor input[type="color"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.test-style-editor input[type="color"] {
    padding: 5px;
}

.test-style-preview {
    --test-accent: #7C3AED;
    --test-soft: #FBF8FF;
    --test-text: var(--test-accent);
    --test-tint: #FBF8FF;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--test-accent) 20%, #d9e3ee);
    border-radius: 12px;
    background: linear-gradient(90deg, var(--test-tint), #fff);
    padding: 12px;
}

.test-style-preview strong,
.test-style-preview small {
    display: block;
}

.test-style-preview strong {
    color: #06162d;
    font-size: 14px;
    font-weight: 900;
}

.test-style-preview small {
    margin-top: 2px;
    color: #40526a;
    font-size: 12px;
    font-weight: 650;
}

.admin-test-node {
    --test-accent: #F59E0B;
    --test-soft: #FFFAF0;
    --test-text: var(--test-accent);
    --test-tint: #FFFAF0;
    border-color: color-mix(in srgb, var(--test-accent) 18%, #d8e2ed);
    background: linear-gradient(90deg, var(--test-tint) 0%, #fbfdff 42%, #fff 100%);
}

.admin-test-node::before {
    background: var(--test-accent);
}

.admin-test-node:hover,
.admin-test-node.is-selected {
    border-color: color-mix(in srgb, var(--test-accent) 42%, #d8e2ed);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--test-accent) 12%, transparent);
}

.admin-test-node.is-selected {
    background: linear-gradient(90deg, color-mix(in srgb, var(--test-tint) 82%, #fff) 0%, #fffaf0 42%, #fff 100%);
}

.admin-test-index {
    border-color: color-mix(in srgb, var(--test-accent) 28%, #d8e2ed);
    background: var(--test-soft);
    color: var(--test-text);
}

.admin-test-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-test-kind-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    border-radius: 999px;
    background: var(--test-soft);
    color: var(--test-text);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.admin-test-kind-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--test-accent);
}

.package-manager-panel {
    margin-bottom: 14px;
}

.package-strip {
    display: flex;
    gap: 10px;
    align-items: stretch;
    overflow-x: auto;
    padding: 2px 2px 8px;
}

.package-tab,
.package-add-button,
.student-package-card {
    border: 1px solid #d8e4f2;
    background: #fff;
    color: #001a3d;
    border-radius: 16px;
    font: inherit;
}

.package-tab {
    min-width: 220px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
}

.package-tab.is-active {
    border-color: var(--package-accent, #7C3AED);
    background: linear-gradient(90deg, var(--package-tint, #F5F0FF), #fff);
    box-shadow: 0 14px 30px rgba(124, 58, 237, .12);
}

.package-dot {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: var(--package-accent, #7C3AED);
    box-shadow: 0 0 0 6px var(--package-tint, #F5F0FF);
    flex: 0 0 auto;
}

.package-tab strong,
.student-package-card strong {
    display: block;
    font-weight: 850;
}

.package-tab small,
.student-package-card small,
.student-package-card em {
    display: block;
    color: #49627f;
    font-size: .82rem;
    font-style: normal;
}

.exam-countdown {
    display: inline-grid;
    gap: 2px;
    border: 1px solid color-mix(in srgb, var(--package-accent, #7C3AED) 24%, #d8e4f2);
    background: linear-gradient(90deg, var(--package-tint, #F5F0FF), #fff);
    color: #001a3d;
}

.exam-countdown small {
    color: #6b4bd8;
    font-size: .72rem;
    font-weight: 900;
}

.exam-countdown strong {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
}

.exam-countdown-card {
    width: fit-content;
    margin-top: 8px;
    border-radius: 999px;
    padding: 7px 11px;
}

.exam-countdown-panel {
    margin: -4px 0 16px;
    border-radius: 16px;
    padding: 14px 18px;
}

.package-add-button {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    font-weight: 850;
    color: #7C3AED;
    cursor: pointer;
}

.package-access-box {
    display: grid;
    gap: 8px;
}

.package-check-list {
    display: grid;
    gap: 8px;
}

.package-check-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    background: #f8fbff;
    font-weight: 750;
}

.package-access-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    font-weight: 800;
}

.student-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.student-package-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 124px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(90deg, var(--package-tint, #F5F0FF), #fff 70%);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.student-package-card:hover {
    transform: translateY(-1px);
    border-color: var(--package-accent, #7C3AED);
    box-shadow: 0 18px 36px rgba(32, 49, 78, .12);
}

.package-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--package-accent, #7C3AED);
    color: #fff;
    flex: 0 0 auto;
}

.package-card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.empty-state {
    max-width: 620px;
    padding: 28px;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    background: #fff;
}

@media (max-width: 760px) {
    .test-style-editor {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Student redesign: Modern Ders Platformu */
:root {
    --student-bg: #f7f1e6;
    --student-bg-soft: #fbf7ee;
    --student-surface: #fffdf8;
    --student-surface-strong: #ffffff;
    --student-navy: #16283f;
    --student-navy-soft: #213a59;
    --student-gold: #b8913a;
    --student-gold-soft: #f5ead0;
    --student-burgundy: #9f3341;
    --student-burgundy-soft: #fff1ef;
    --student-petrol: #0f6e7a;
    --student-green: #247a55;
    --student-green-soft: #edf8f1;
    --student-red: #b23a45;
    --student-red-soft: #fff1f1;
    --student-border: #dfd0ad;
    --student-border-soft: #eadfca;
    --student-shadow: 0 18px 42px rgba(36, 31, 22, 0.08);
    --student-shadow-sm: 0 8px 22px rgba(36, 31, 22, 0.06);
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

.student-shell {
    --content-x: clamp(16px, 4vw, 48px);
    --content-y: clamp(22px, 4vw, 40px);
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: visible;
    color: var(--student-navy);
    background:
        radial-gradient(circle at 0 0, rgba(184, 145, 58, 0.12), transparent 34%),
        linear-gradient(180deg, #fbf7ee 0%, var(--student-bg) 100%);
}

.student-shell * {
    letter-spacing: 0;
}

.student-top-menu {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(223, 208, 173, 0.72);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 10px 26px rgba(30, 40, 63, 0.06);
    padding: 12px var(--content-x);
    backdrop-filter: blur(14px);
}

.student-top-menu .brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.student-top-menu .brand-mark {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(184, 145, 58, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--student-navy), #233c5d);
    color: var(--student-gold-soft);
    box-shadow: none;
}

.student-top-menu .brand-mark svg {
    width: 22px;
    height: 22px;
}

.student-top-menu .brand-lockup strong {
    color: var(--student-navy);
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.student-top-menu .brand-lockup small {
    margin-top: 3px;
    color: var(--student-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.student-menu-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.student-admin-link,
.student-user-chip,
.top-menu-logout {
    border-color: rgba(223, 208, 173, 0.9);
    background: #fffdf8;
}

.student-user-chip {
    grid-template-columns: 34px minmax(0, auto);
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
}

.student-user-chip .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--student-gold-soft);
    color: var(--student-navy);
}

.student-user-chip small {
    color: var(--student-gold);
    font-size: 10px;
    font-weight: 900;
}

.student-user-chip strong {
    color: var(--student-navy);
    font-size: 13px;
    font-weight: 900;
}

.student-admin-link {
    color: var(--student-navy-soft);
    font-weight: 850;
}

.auth-forbidden-card {
    max-width: 560px;
}

.auth-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.auth-action-row .ghost-button,
.auth-action-row .primary-action {
    min-height: 44px;
    flex: 1 1 210px;
    text-decoration: none;
}

.top-menu-logout {
    width: 38px;
    height: 38px;
    border-color: rgba(159, 51, 65, 0.26);
    background: var(--student-burgundy-soft);
    color: var(--student-burgundy);
}

.student-main {
    min-width: 0;
    min-height: calc(100vh - 65px);
    overflow: visible;
    padding: var(--content-y) var(--content-x) 72px;
    background: transparent;
}

.loading-state,
.empty-state {
    width: min(1040px, 100%);
    border: 1px solid var(--student-border-soft);
    border-radius: 12px;
    background: var(--student-surface);
    box-shadow: var(--student-shadow-sm);
    color: var(--student-navy-soft);
}

.page-header.camp-header {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 22px;
    margin: 0 auto 18px;
}

.camp-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.camp-title-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(184, 145, 58, 0.42);
    border-radius: 12px;
    background: var(--student-surface);
    color: var(--student-gold);
    box-shadow: var(--student-shadow-sm);
}

.camp-title-mark svg {
    width: 25px;
    height: 25px;
}

.camp-title-copy h1 {
    margin: 0;
    color: var(--student-navy);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.05;
}

.camp-title-copy p {
    max-width: 660px;
    margin: 10px 0 0;
    color: #4b5d70;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.camp-header-actions {
    display: flex;
    justify-content: flex-end;
}

.ghost-button {
    min-height: 42px;
    border: 1px solid var(--student-border);
    border-radius: 10px;
    background: var(--student-surface);
    color: var(--student-navy);
    box-shadow: var(--student-shadow-sm);
    font-size: 13px;
    font-weight: 900;
}

.ghost-button:hover {
    border-color: var(--student-gold);
    background: #fffaf0;
}

.camp-dashboard {
    width: min(1120px, 100%);
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 auto 22px;
    flex-wrap: wrap;
}

.exam-countdown,
.camp-kpi {
    min-height: 58px;
    display: inline-grid;
    align-content: center;
    gap: 2px;
    border: 1px solid var(--student-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdf8, #f7edd4);
    color: var(--student-navy);
    box-shadow: var(--student-shadow-sm);
    padding: 10px 16px;
}

.exam-countdown-panel {
    margin: 0;
}

.exam-countdown small,
.camp-kpi small {
    color: var(--student-gold);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.exam-countdown strong,
.camp-kpi strong {
    color: var(--student-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.camp-kpi {
    min-width: 88px;
    text-align: center;
}

.course-accordion.question-bank-days,
.student-package-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.course-accordion.question-bank-days {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 0;
}

.question-bank-days::before {
    content: "Kamp Programı";
    display: inline-flex;
    width: max-content;
    border: 1px solid rgba(184, 145, 58, 0.45);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.8);
    color: var(--student-gold);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
}

.question-bank-days .day-accordion {
    overflow: hidden;
    border: 1px solid var(--student-border-soft);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--student-shadow-sm);
}

.question-bank-days .day-accordion summary {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #fffdf8 0%, #fbf4e4 100%);
    padding: 18px 20px;
}

.question-bank-days .day-accordion[open] summary {
    border-bottom: 1px solid var(--student-border-soft);
}

.question-bank-days .day-accordion summary:hover {
    background: linear-gradient(90deg, #fffaf0 0%, #f8edd4 100%);
    box-shadow: none;
}

.day-summary-main,
.question-bank-days .day-accordion summary .day-summary-main {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.day-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(184, 145, 58, 0.36);
    border-radius: 10px;
    background: #fffaf0;
    color: var(--student-gold);
}

.day-icon svg {
    width: 21px;
    height: 21px;
}

.day-summary-copy,
.question-bank-days .day-accordion summary .day-summary-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.day-kicker,
.question-bank-days .day-accordion summary .day-kicker {
    width: max-content;
    border-radius: 999px;
    background: var(--student-navy);
    color: #fffaf0;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.question-bank-days .day-accordion summary strong {
    color: var(--student-navy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.18;
}

.question-bank-days .day-accordion summary small {
    color: #4d5f72;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.day-goal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.day-goal em {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(184, 145, 58, 0.42);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--student-navy-soft);
    padding: 5px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
}

.day-goal svg {
    width: 14px;
    height: 14px;
    color: var(--student-gold);
}

.question-bank-days .test-count {
    min-height: 30px;
    border: 1px solid rgba(184, 145, 58, 0.34);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--student-navy);
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
}

.question-bank-days .chevron {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(22, 40, 63, 0.07);
    color: var(--student-navy);
}

.question-bank-days .day-accordion[open] > summary .chevron {
    transform: rotate(180deg);
}

.question-bank-days .day-accordion .test-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 0;
    background: rgba(255, 253, 248, 0.58);
}

.question-bank-days .test-row {
    position: relative;
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--test-accent) 22%, var(--student-border-soft));
    border-radius: 10px;
    background: linear-gradient(90deg, var(--test-tint) 0%, #fffdf8 64%);
    color: var(--student-navy);
    padding: 13px 14px;
    text-align: left;
    box-shadow: none;
}

.question-bank-days .test-row:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--test-accent) 44%, var(--student-border-soft));
    background: linear-gradient(90deg, color-mix(in srgb, var(--test-tint) 78%, #fff) 0%, #fffdf8 68%);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--test-accent) 12%, transparent);
}

.question-bank-days .test-leading-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--test-accent);
    color: #fff;
}

.question-bank-days .test-leading-icon svg {
    width: 17px;
    height: 17px;
}

.question-bank-days .test-row .test-row-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.question-bank-days .test-row .test-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.question-bank-days .test-row .test-kicker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.question-bank-days .test-row .test-index-label,
.question-bank-days .test-row .test-type-pill {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.question-bank-days .test-row .test-index-label {
    border: 1px solid color-mix(in srgb, var(--test-accent) 26%, var(--student-border-soft));
    background: rgba(255, 253, 248, 0.78);
    color: var(--test-text);
}

.question-bank-days .test-row .test-type-pill {
    background: var(--test-soft);
    color: var(--test-text);
}

.question-bank-days .test-row strong {
    color: var(--student-navy);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.question-bank-days .test-row small {
    max-width: 740px;
    color: #4d5f72;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.question-bank-days .test-row-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.question-bank-days .test-progress-pill,
.test-action-label {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.question-bank-days .test-progress-pill {
    border: 1px solid rgba(15, 110, 122, 0.22);
    background: #eff9f8;
    color: var(--student-petrol);
}

.question-bank-days .test-progress-pill.is-completed {
    border-color: rgba(36, 122, 85, 0.24);
    background: var(--student-green-soft);
    color: var(--student-green);
}

.test-action-label {
    background: var(--student-navy);
    color: #fffaf0;
}

.test-action-label svg {
    width: 14px;
    height: 14px;
}

.student-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.student-package-card {
    min-height: 178px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid color-mix(in srgb, var(--package-accent, var(--student-gold)) 30%, var(--student-border-soft));
    border-radius: 12px;
    background: linear-gradient(135deg, var(--package-tint, #fbf6e8), #fffdf8 72%);
    color: var(--student-navy);
    box-shadow: var(--student-shadow-sm);
    padding: 18px;
    text-align: left;
}

.student-package-card:hover {
    transform: translateY(-2px);
    border-color: var(--package-accent, var(--student-gold));
    box-shadow: var(--student-shadow);
}

.package-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--package-accent, var(--student-navy));
}

.package-card-copy {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.student-package-card small,
.student-package-card em,
.package-access-line {
    color: #4d5f72;
    font-style: normal;
}

.student-package-card small {
    color: var(--student-gold);
    font-size: 12px;
    font-weight: 900;
}

.student-package-card strong {
    color: var(--student-navy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.18;
}

.student-package-card em,
.package-access-line {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.38;
}

.package-card-action {
    width: max-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: var(--student-navy);
    color: #fffaf0;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.package-card-action svg {
    width: 14px;
    height: 14px;
}

.student-main .test-topbar,
.test-topbar {
    min-height: 86px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid rgba(184, 145, 58, 0.32);
    border-radius: 0;
    background: linear-gradient(135deg, var(--student-navy), #203957);
    margin: calc(var(--content-y) * -1) calc(var(--content-x) * -1) 30px;
    padding: 18px var(--content-x);
    box-shadow: 0 16px 32px rgba(22, 40, 63, 0.16);
}

.test-topbar > div:nth-child(2) {
    min-width: 0;
}

.test-topbar p {
    margin: 0 0 5px;
    color: var(--student-gold-soft);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
}

.test-topbar h1 {
    color: #fffdf8;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 900;
    line-height: 1.22;
}

.square-button,
.mini-square {
    border: 1px solid var(--student-border-soft);
    border-radius: 10px;
    background: #fffdf8;
    color: var(--student-navy);
}

.test-topbar .square-button {
    border-color: rgba(255, 253, 248, 0.24);
    background: rgba(255, 253, 248, 0.1);
    color: #fffdf8;
}

.test-topbar .square-button:hover {
    border-color: rgba(245, 234, 208, 0.52);
    background: rgba(255, 253, 248, 0.16);
}

.square-button:hover,
.mini-square:hover {
    border-color: var(--student-gold);
    background: #fff7e6;
}

.test-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-pill {
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
}

.stat-pill.is-navy,
.stat-pill.is-purple {
    background: var(--student-navy);
    color: #fffaf0;
}

.stat-pill.is-green {
    background: var(--student-green-soft);
    color: var(--student-green);
}

.test-topbar .stat-pill.is-navy,
.test-topbar .stat-pill.is-purple {
    background: #fffdf8;
    color: var(--student-navy);
}

.test-topbar .stat-pill.is-green {
    background: #e7f7ed;
}

.test-workspace {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    align-items: start;
    margin: 0 auto;
}

.question-card,
.question-nav-panel {
    border: 1px solid var(--student-border-soft);
    border-radius: 14px;
    background: var(--student-surface);
    box-shadow: var(--student-shadow);
}

.question-card {
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
}

.question-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--student-navy);
    font-size: 13px;
}

.question-card-head > strong {
    color: #5b6878;
    font-size: 12px;
    font-weight: 900;
}

.question-badge {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(184, 145, 58, 0.34);
    border-radius: 999px;
    background: #fff7e6;
    color: var(--student-gold);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfca;
    margin: 16px 0 24px;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--student-gold), var(--student-burgundy));
}

.question-copy {
    margin-bottom: 18px;
}

.topic-label {
    margin: 0 0 9px;
    color: var(--student-gold);
    font-size: 13px;
    font-weight: 900;
}

.question-copy h2 {
    margin: 0;
    color: var(--student-navy);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 850;
    line-height: 1.58;
}

.question-help {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.study-note-toggle {
    width: max-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(184, 145, 58, 0.42);
    border-radius: 999px;
    background: #fff7e6;
    color: var(--student-navy);
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
}

.study-note-toggle svg {
    width: 17px;
    height: 17px;
    color: var(--student-gold);
}

.study-note-toggle strong {
    color: var(--student-gold);
    font-size: 12px;
}

.study-note-toggle:hover,
.study-note-toggle.is-open {
    border-color: var(--student-gold);
    background: #fff1cf;
}

.option-list {
    display: grid;
    gap: 11px;
}

.option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    overflow: hidden;
    border: 1px solid #e2d7c2;
    border-radius: 12px;
    background: #fffaf1;
}

.option-row:hover:not(.is-eliminated):not(.is-correct):not(.is-wrong) {
    border-color: rgba(184, 145, 58, 0.52);
    background: #fff7e6;
}

.option-main {
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--student-navy);
    padding: 0 13px;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.38;
}

.option-main:disabled {
    opacity: 1;
}

.option-key {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--student-border);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--student-navy);
    font-size: 13px;
    font-weight: 900;
}

.option-tool {
    display: grid;
    place-items: center;
    border-left: 1px solid #e2d7c2;
    background: rgba(255, 253, 248, 0.72);
    color: #5a6877;
}

.option-tool:hover,
.option-tool.is-active {
    color: var(--student-burgundy);
    background: var(--student-burgundy-soft);
}

.option-row.is-eliminated {
    opacity: 0.62;
}

.option-row.is-eliminated .option-main span:last-child {
    text-decoration: line-through;
}

.option-row.is-correct {
    border-color: rgba(36, 122, 85, 0.42);
    background: var(--student-green-soft);
}

.option-row.is-wrong {
    border-color: rgba(178, 58, 69, 0.42);
    background: var(--student-red-soft);
}

.option-row.is-correct .option-key {
    border-color: rgba(36, 122, 85, 0.5);
    color: var(--student-green);
}

.option-row.is-wrong .option-key {
    border-color: rgba(178, 58, 69, 0.5);
    color: var(--student-red);
}

.option-feedback {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(90, 71, 34, 0.12);
    padding: 12px 15px;
    color: var(--student-navy);
    font-size: 14px;
    line-height: 1.45;
}

.option-feedback strong {
    white-space: nowrap;
}

.option-feedback.is-correct {
    color: var(--student-green);
}

.option-feedback.is-wrong {
    color: var(--student-red);
}

.learning-note-stack {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.study-note {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--student-border-soft);
    border-radius: 12px;
    background: #fffdf8;
    padding: 13px 14px;
}

.study-note-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.study-note-icon svg {
    width: 19px;
    height: 19px;
}

.study-note strong {
    display: block;
    color: var(--student-navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.study-note p {
    margin: 5px 0 0;
    color: #3d4f62;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.52;
}

.study-note-tip {
    border-color: rgba(15, 110, 122, 0.24);
    background: #eff9f8;
}

.study-note-tip .study-note-icon {
    background: #dff1f0;
    color: var(--student-petrol);
}

.study-note-mixup {
    border-color: rgba(159, 51, 65, 0.3);
    background: var(--student-burgundy-soft);
}

.study-note-mixup .study-note-icon {
    background: #f5d9d5;
    color: var(--student-burgundy);
}

.study-note-exam {
    border-color: rgba(184, 145, 58, 0.38);
    background: #fff7e6;
}

.study-note-exam .study-note-icon {
    background: var(--student-gold-soft);
    color: var(--student-gold);
}

.study-note-info .study-note-icon {
    background: #eef3f8;
    color: var(--student-navy-soft);
}

.test-complete-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(36, 122, 85, 0.28);
    border-radius: 12px;
    background: var(--student-green-soft);
    color: var(--student-green);
    margin-top: 18px;
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 850;
}

.test-complete-banner svg {
    width: 20px;
    height: 20px;
}

.question-nav-panel {
    position: sticky;
    top: 92px;
    padding: 14px;
}

.nav-panel-head {
    margin-bottom: 12px;
}

.nav-panel-head strong {
    color: var(--student-navy);
    font-size: 14px;
    font-weight: 900;
}

.nav-panel-head > span {
    display: flex;
    gap: 7px;
}

.question-dots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.question-dot {
    width: 34px;
    height: 34px;
    border: 1px solid var(--student-border-soft);
    border-radius: 9px;
    background: #fffaf1;
    color: var(--student-navy);
    font-size: 13px;
    font-weight: 900;
}

.question-dot:hover,
.question-dot.is-current {
    border-color: var(--student-gold);
    background: #fff1cf;
    color: var(--student-navy);
}

.question-dot.is-answered {
    border-color: rgba(36, 122, 85, 0.36);
    background: var(--student-green-soft);
    color: var(--student-green);
}

.question-dot.is-wrong {
    border-color: rgba(178, 58, 69, 0.34);
    background: var(--student-red-soft);
    color: var(--student-red);
}

@media (max-width: 960px) {
    .test-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .question-nav-panel {
        position: static;
        order: -1;
    }

    .question-dots {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .question-dot {
        flex: 0 0 34px;
    }
}

@media (max-width: 700px) {
    .student-top-menu {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .student-top-menu .brand-mark {
        width: 36px;
        height: 36px;
    }

    .student-top-menu .brand-lockup strong {
        font-size: 16px;
    }

    .student-user-chip {
        grid-template-columns: 32px;
        padding: 3px;
    }

    .student-user-chip > span:last-child,
    .student-admin-link {
        display: none;
    }

    .page-header.camp-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .camp-header-actions {
        justify-content: flex-start;
    }

    .camp-heading {
        gap: 12px;
    }

    .camp-title-mark {
        width: 44px;
        height: 44px;
    }

    .camp-dashboard {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .camp-dashboard .exam-countdown {
        grid-column: 1 / -1;
    }

    .question-bank-days .day-accordion summary {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 10px;
        padding: 15px;
    }

    .question-bank-days .day-accordion summary .test-count {
        grid-column: 1 / 2;
        justify-self: start;
        margin-left: 56px;
    }

    .question-bank-days .chevron {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }

    .question-bank-days .day-accordion summary strong {
        font-size: 17px;
    }

    .day-goal {
        align-items: stretch;
    }

    .day-goal em {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
        padding: 8px 10px;
        line-height: 1.28;
    }

    .question-bank-days .test-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .question-bank-days .test-row-meta {
        justify-content: flex-start;
        padding-left: 46px;
    }

    .student-main .test-topbar,
    .test-topbar {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .test-stats {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .option-row {
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    .option-main {
        min-height: 60px;
        grid-template-columns: 34px minmax(0, 1fr);
        font-size: 14px;
    }

    .option-feedback,
    .study-note {
        grid-template-columns: minmax(0, 1fr);
    }

    .study-note-icon {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 430px) {
    .student-shell {
        --content-x: 14px;
        --content-y: 20px;
    }

    .camp-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .question-bank-days .day-accordion summary .test-count,
    .question-bank-days .test-row-meta {
        margin-left: 0;
        padding-left: 0;
    }

    .question-bank-days .test-row .test-row-main {
        align-items: flex-start;
    }

    .study-note-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* Student app shell v2: camp sidebar + Stitch question workspace */
:root {
    --student-bg: #f8f9fa;
    --student-bg-soft: #f3f4f6;
    --student-surface: #ffffff;
    --student-surface-strong: #ffffff;
    --student-navy: #0f2947;
    --student-navy-soft: #243b5a;
    --student-gold: #b18e2d;
    --student-gold-soft: #f6ead0;
    --student-burgundy: #9f3341;
    --student-burgundy-soft: #fde8e8;
    --student-petrol: #1e6078;
    --student-petrol-soft: #eef7fb;
    --student-green: #10b981;
    --student-green-soft: #d1fae5;
    --student-red: #ef4444;
    --student-red-soft: #fee2e2;
    --student-border: #e1cfa5;
    --student-border-soft: #e5e7eb;
    --student-shadow: 0 16px 32px rgba(15, 41, 71, 0.08);
    --student-shadow-sm: 0 8px 18px rgba(15, 41, 71, 0.06);
}

.student-shell {
    --content-x: clamp(20px, 3vw, 36px);
    --content-y: clamp(22px, 3vw, 32px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
    background: var(--student-bg);
    color: #071833;
}

.student-top-menu {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 80px;
    border: 0;
    border-bottom: 1px solid rgba(15, 41, 71, 0.18);
    border-radius: 0 0 14px 14px;
    background: var(--student-navy);
    box-shadow: 0 8px 20px rgba(15, 41, 71, 0.22);
    padding: 14px clamp(20px, 3vw, 42px);
    backdrop-filter: none;
}

.student-top-menu .brand-mark {
    border-color: rgba(177, 142, 45, 0.75);
    background: transparent;
    color: var(--student-gold);
}

.student-top-menu .brand-lockup strong {
    color: #ffffff;
}

.student-top-menu .brand-lockup small,
.student-user-chip small {
    color: var(--student-gold);
}

.student-user-chip,
.student-admin-link,
.top-menu-logout {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.96);
}

.student-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    padding: 28px clamp(18px, 2vw, 28px) 64px;
}

.student-sidebar {
    position: sticky;
    top: 108px;
    align-self: start;
    display: grid;
    gap: 22px;
}

.student-sidebar-nav {
    display: grid;
    gap: 12px;
}

.student-sidebar-link {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    padding: 0 18px;
    text-align: left;
    font-size: 16px;
    font-weight: 750;
}

.student-sidebar-link svg {
    width: 22px;
    height: 22px;
}

.student-sidebar-link:hover:not(.is-disabled):not(:disabled),
.student-sidebar-link.is-active {
    border-color: var(--student-border);
    background: var(--student-surface);
    color: var(--student-navy);
    box-shadow: var(--student-shadow-sm);
}

.student-sidebar-link.is-active svg {
    color: var(--student-navy);
}

.student-sidebar-link.is-disabled,
.student-sidebar-link:disabled {
    cursor: default;
    opacity: 0.72;
}

.student-sidebar-card {
    display: grid;
    gap: 7px;
    border: 1px solid var(--student-border);
    border-radius: 14px;
    background: var(--student-surface);
    box-shadow: var(--student-shadow-sm);
    padding: 24px;
}

.sidebar-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.sidebar-card-kicker svg {
    width: 18px;
    height: 18px;
    color: #c51f2f;
}

.student-sidebar-card > strong {
    color: var(--student-navy);
    font-size: 16px;
    font-weight: 850;
}

.student-sidebar-card > small {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.student-sidebar-card .exam-countdown-sidebar {
    min-height: 88px;
    justify-items: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 8px 0;
}

.student-sidebar-card .exam-countdown-sidebar small {
    display: none;
}

.student-sidebar-card .exam-countdown-sidebar strong {
    color: var(--student-navy);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    line-height: 1;
}

.sidebar-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--student-border);
    color: var(--student-navy-soft);
    margin-top: 12px;
    padding-top: 18px;
    font-size: 13px;
    font-weight: 800;
}

.sidebar-card-link svg {
    width: 16px;
    height: 16px;
}

.student-sidebar-user {
    display: none;
}

.student-main {
    min-width: 0;
    min-height: calc(100vh - 136px);
    overflow: visible;
    padding: 0 0 48px;
}

.page-header.camp-header,
.camp-dashboard,
.course-accordion.question-bank-days,
.student-package-grid,
.test-workspace {
    width: min(1200px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.page-header.camp-header {
    margin-bottom: 28px;
}

.student-main .test-topbar,
.test-topbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 0;
    border-radius: 0;
    background: var(--student-navy);
    box-shadow: 0 6px 16px rgba(15, 41, 71, 0.18);
    margin: -28px 0 28px;
    padding: 14px clamp(18px, 3vw, 30px);
}

.test-back-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    padding: 0;
    font-size: 16px;
    font-weight: 850;
}

.test-back-button svg {
    width: 22px;
    height: 22px;
}

.test-back-button:hover {
    color: var(--student-gold-soft);
}

.test-title-block {
    min-width: 0;
    text-align: center;
}

.test-topbar h1 {
    color: #ffffff;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    line-height: 1.25;
}

.test-topbar h1 span {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 12px;
}

.test-stats {
    gap: 12px;
}

.test-topbar .stat-pill {
    min-height: 42px;
    border: 1px solid rgba(15, 41, 71, 0.12);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 41, 71, 0.1);
    padding: 0 16px;
    font-size: 15px;
}

.test-topbar .stat-pill.is-navy {
    color: var(--student-navy);
}

.test-topbar .stat-pill.is-green {
    border-color: var(--student-green);
    color: var(--student-green);
}

.test-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.question-card,
.question-nav-panel,
.question-hint-panel {
    border: 1px solid var(--student-border-soft);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--student-shadow-sm);
}

.question-card {
    padding: clamp(24px, 3vw, 34px);
}

.question-progress-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.question-progress-row > span {
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.question-progress-row > strong {
    color: #06142e;
    font-size: 15px;
    font-weight: 900;
}

.question-progress-row .progress-track {
    height: 8px;
    margin: 0;
    background: #e5e7eb;
}

.question-progress-row .progress-track span {
    background: var(--student-gold);
}

.topic-label {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.question-copy h2 {
    max-width: 900px;
    color: #0b1d3a;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    line-height: 1.32;
}

.option-list {
    gap: 14px;
}

.option-row {
    grid-template-columns: minmax(0, 1fr) auto;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.option-row:hover:not(.is-eliminated):not(.is-correct):not(.is-wrong) {
    border-color: var(--student-gold);
    background: #fffdf8;
}

.option-main {
    min-height: 74px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 0 18px;
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 800;
}

.option-key {
    width: 40px;
    height: 40px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    color: #4b5563;
    font-size: 16px;
}

.option-tools {
    min-width: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-right: 18px;
}

.option-tool {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #9ca3af;
}

.option-tool svg,
.option-result-marker svg {
    width: 22px;
    height: 22px;
}

.option-result-marker {
    display: grid;
    place-items: center;
}

.option-result-marker.is-correct,
.option-row.is-correct .option-tool {
    color: var(--student-green);
}

.option-result-marker.is-wrong,
.option-row.is-wrong .option-tool {
    color: var(--student-red);
}

.option-row.is-correct {
    border-color: var(--student-green);
    background: var(--student-green-soft);
}

.option-row.is-wrong {
    border-color: var(--student-red);
    background: var(--student-red-soft);
}

.option-row.is-correct .option-key,
.option-row.is-wrong .option-key {
    border-color: transparent;
    color: #ffffff;
}

.option-row.is-correct .option-key {
    background: var(--student-green);
}

.option-row.is-wrong .option-key {
    background: var(--student-red);
}

.option-feedback {
    border-top-color: rgba(15, 41, 71, 0.1);
    padding: 14px 18px;
    color: #334155;
}

.answer-feedback-banner {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid;
    border-radius: 14px;
    margin-top: 28px;
    padding: 18px 20px;
}

.answer-feedback-banner.is-correct {
    border-color: var(--student-green);
    background: var(--student-green-soft);
}

.answer-feedback-banner.is-wrong {
    border-color: var(--student-red);
    background: var(--student-red-soft);
}

.answer-feedback-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
}

.answer-feedback-banner.is-correct .answer-feedback-icon {
    background: var(--student-green);
}

.answer-feedback-banner.is-wrong .answer-feedback-icon {
    background: var(--student-red);
}

.answer-feedback-banner strong {
    color: inherit;
    font-size: 18px;
    font-weight: 900;
}

.answer-feedback-banner p {
    margin: 4px 0 0;
    color: #0b1d3a;
    font-size: 14px;
}

.answer-feedback-banner button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    background: var(--student-red);
    color: #ffffff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
}

.answer-feedback-banner.is-correct button {
    background: var(--student-green);
}

.answer-feedback-banner button svg {
    width: 18px;
    height: 18px;
}

.learning-note-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.study-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 150px;
    border-radius: 12px;
    padding: 18px;
}

.study-note-icon {
    width: 26px;
    height: 26px;
    border-radius: 0;
    background: transparent !important;
}

.study-note strong {
    font-size: 17px;
}

.study-note p {
    font-size: 15px;
}

.test-side-rail {
    display: grid;
    gap: 24px;
}

.question-nav-panel,
.question-hint-panel {
    position: static;
    padding: 28px;
}

.question-nav-panel h2,
.question-hint-panel h2 {
    margin: 0;
    color: #071833;
    font-size: 24px;
    font-weight: 900;
}

.question-nav-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
    margin: 26px 0 28px;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
}

.question-nav-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 13px;
    height: 13px;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    background: #ffffff;
}

.legend-dot.is-answered {
    border-color: var(--student-green);
    background: var(--student-green);
}

.legend-dot.is-current {
    border: 4px solid var(--student-navy);
}

.question-dots {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.question-dot {
    width: 52px;
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 17px;
    font-weight: 900;
}

.question-dot.is-answered {
    border-color: var(--student-green);
    background: var(--student-green);
    color: #ffffff;
}

.question-dot.is-current {
    border-color: var(--student-navy);
    background: var(--student-navy);
    color: #ffffff;
    box-shadow: 0 8px 14px rgba(15, 41, 71, 0.18);
}

.question-rail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.rail-nav-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--student-navy);
    border-radius: 12px;
    background: var(--student-navy);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.rail-nav-button.is-ghost {
    background: #ffffff;
    color: var(--student-navy);
}

.rail-nav-button:disabled {
    opacity: 0.45;
}

.question-hint-panel {
    border-color: rgba(177, 142, 45, 0.36);
    background: #fdfbf7;
}

.question-hint-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.question-hint-head > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(177, 142, 45, 0.18);
    color: var(--student-gold);
}

.question-hint-head svg {
    width: 30px;
    height: 30px;
}

.question-hint-panel p {
    margin: 10px 0 0;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

.hint-open-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--student-gold);
    border-radius: 10px;
    background: #ffffff;
    color: var(--student-gold);
    margin-top: 22px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 900;
}

.hint-open-button.is-open {
    background: var(--student-gold);
    color: #ffffff;
}

@media (max-width: 1180px) {
    .student-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 22px;
    }

    .test-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .test-side-rail {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
        align-items: start;
    }
}

@media (max-width: 920px) {
    .student-top-menu {
        min-height: 68px;
        border-radius: 0;
    }

    .student-layout {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 16px 56px;
    }

    .student-sidebar {
        display: none;
    }

    .student-main .test-topbar,
    .test-topbar {
        margin: -20px 0 22px;
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }

    .test-title-block {
        width: 100%;
        text-align: left;
    }

    .test-topbar h1 {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 10px;
        font-size: 19px;
    }

    .test-topbar h1 span {
        margin: 0;
    }

    .test-stats {
        justify-content: flex-start;
    }

    .test-side-rail,
    .learning-note-stack {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .student-menu-actions {
        gap: 6px;
    }

    .student-user-chip > span:last-child,
    .student-admin-link {
        display: none;
    }

    .question-card,
    .question-nav-panel,
    .question-hint-panel {
        padding: 18px;
    }

    .question-progress-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        margin-bottom: 24px;
    }

    .question-progress-row > span {
        grid-column: 1 / -1;
    }

    .question-copy h2 {
        font-size: 21px;
    }

    .option-main {
        min-height: 64px;
        grid-template-columns: 40px minmax(0, 1fr);
        font-size: 15px;
    }

    .option-key {
        width: 34px;
        height: 34px;
    }

    .option-tools {
        min-width: 58px;
        gap: 6px;
        padding-right: 10px;
    }

    .answer-feedback-banner {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .answer-feedback-banner button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .question-dots {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
    }

    .question-dot {
        width: 42px;
        height: 42px;
        justify-self: center;
    }

    .question-rail-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Stitch desktop pixel pass: source HTML/CSS translated to vanilla */
@media (min-width: 1024px) {
    body {
        background: #FAF8F5;
    }

    .student-shell.stitch-shell {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: #FAF8F5;
        color: #1f2937;
        font-family: "Inter", sans-serif;
    }

    .stitch-main-header {
        position: sticky;
        top: 0;
        z-index: 50;
        height: 100px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 28px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #0B1E36;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
        padding: 20px 32px;
    }

    .stitch-main-header .brand-lockup {
        display: flex;
        align-items: center;
        gap: 12px;
        height: auto;
        padding: 0;
        box-shadow: none;
    }

    .stitch-main-header .brand-mark {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #D4AF37;
        box-shadow: none;
    }

    .stitch-main-header .brand-mark svg {
        width: 36px;
        height: 36px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    .stitch-main-header .brand-wordmark {
        display: flex;
        align-items: baseline;
        color: #fff;
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
    }

    .stitch-main-header .brand-wordmark span {
        font-weight: 400;
    }

    .stitch-main-header .brand-wordmark strong {
        color: #D4AF37;
        font-size: inherit;
        font-weight: 800;
        line-height: inherit;
    }

    .stitch-top-nav {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .stitch-top-nav .student-top-nav-item {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: rgba(255, 255, 255, 0.72);
        padding: 0 13px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    .stitch-top-nav .student-top-nav-item svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-top-nav .student-top-nav-item.is-active {
        border-color: rgba(212, 175, 55, 0.58);
        background: rgba(212, 175, 55, 0.12);
        color: #F7E3A0;
    }

    .stitch-top-nav .student-top-nav-item:not(.is-disabled):not(:disabled):hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .stitch-top-nav .student-top-nav-item.is-disabled,
    .stitch-top-nav .student-top-nav-item:disabled {
        opacity: 0.48;
        cursor: default;
    }

    .stitch-main-header .student-menu-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
    }

    .stitch-main-header .student-admin-link {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(212, 175, 55, 0.65);
        border-radius: 999px;
        background: rgba(212, 175, 55, 0.12);
        color: #F7E3A0;
        padding: 0 16px;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .stitch-main-header .student-admin-link:hover {
        background: rgba(212, 175, 55, 0.2);
        color: #fff;
    }

    .stitch-user-chip {
        display: flex;
        align-items: center;
        gap: 16px;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .stitch-user-copy {
        display: block;
        min-width: 0;
        text-align: right;
    }

    .stitch-user-copy small {
        display: block;
        margin: 0 0 2px;
        color: #D4AF37;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .stitch-user-copy strong {
        display: block;
        max-width: 190px;
        overflow: hidden;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-avatar {
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: #fff;
        color: #0B1E36;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    .stitch-avatar svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .stitch-logout {
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
    }

    .stitch-logout:hover {
        background: transparent;
        color: #D4AF37;
    }

    .stitch-logout svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .stitch-layout {
        flex: 1;
        width: 100%;
        max-width: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        margin: 0;
        padding: 0 36px 24px;
    }

    .stitch-sidebar {
        position: sticky;
        top: 100px;
        flex: 0 0 256px;
        width: 256px;
        display: flex;
        flex-direction: column;
        gap: 32px;
        align-self: flex-start;
        height: calc(100vh - 100px);
        overflow-y: auto;
        border-right: 1px solid #E5D5B5;
        background: #FDFBF7;
        padding: 24px 16px;
    }

    .stitch-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }

    .stitch-sidebar .student-sidebar-link {
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
        border: 1px solid transparent;
        border-radius: 12px;
        background: transparent;
        color: #4b5563;
        padding: 14px 16px;
        box-shadow: none;
        font-size: 16px;
        font-weight: 500;
    }

    .stitch-sidebar .student-sidebar-link svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        color: #9ca3af;
    }

    .stitch-sidebar .student-sidebar-link.is-active {
        border-color: #E5D5B5;
        background: #FDFBF7;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        color: #0B1E36;
        font-weight: 600;
    }

    .stitch-sidebar .student-sidebar-link.is-active svg {
        color: #0B1E36;
    }

    .stitch-sidebar .student-sidebar-link.is-disabled {
        opacity: 1;
    }

    .stitch-sidebar-divider {
        height: 1px;
        display: block;
        background: #e5e7eb;
        margin: 8px 16px;
    }

    .stitch-countdown-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #E5D5B5;
        border-radius: 16px;
        background: #FDFBF7;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        padding: 24px;
        text-align: center;
    }

    .stitch-countdown-head {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 12px;
        width: 100%;
        margin-bottom: 20px;
        text-align: left;
    }

    .stitch-countdown-flag {
        display: grid;
        place-items: center;
        color: #b91c1c;
        margin-top: 4px;
    }

    .stitch-countdown-flag svg {
        width: 28px;
        height: 28px;
    }

    .stitch-countdown-head small {
        display: block;
        color: #6b7280;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .stitch-countdown-head strong {
        display: block;
        color: #1f2937;
        margin-top: 3px;
        font-size: 14px;
        font-weight: 500;
    }

    .stitch-countdown-head em {
        display: block;
        color: #6b7280;
        margin-top: 4px;
        font-size: 12px;
        font-style: normal;
    }

    .stitch-countdown-days {
        display: flex;
        align-items: baseline;
        gap: 6px;
        color: #0B1E36;
        margin-bottom: 12px;
        font-size: 48px;
        font-weight: 800;
        letter-spacing: -1.8px;
        line-height: 1;
    }

    .stitch-countdown-days span {
        color: #4b5563;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 0;
    }

    .stitch-countdown-time {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 6px;
        color: #1f2937;
        margin-bottom: 24px;
        font-size: 14px;
        font-weight: 500;
    }

    .stitch-countdown-time b {
        color: #111827;
        font-size: 18px;
        font-weight: 800;
    }

    .stitch-countdown-time span {
        color: #6b7280;
        font-weight: 400;
    }

    .stitch-countdown-card .sidebar-card-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-top: 1px solid #E5D5B5;
        color: #4b5563;
        margin: 0;
        padding-top: 16px;
        font-size: 14px;
        font-weight: 500;
    }

    .stitch-countdown-card .sidebar-card-link svg {
        width: 16px;
        height: 16px;
    }

    .student-sidebar-user {
        display: none;
    }

    .student-main,
    .student-main-camp,
    .student-main-test {
        min-width: 0;
        flex: 0 1 1280px;
        width: min(1280px, calc(100vw - 72px));
        max-width: 1280px;
        padding: 24px 0 0;
        background: transparent;
    }

    .student-main-camp {
        flex-basis: 1160px;
        width: min(1160px, calc(100vw - 72px));
        max-width: 1160px;
        margin-left: auto;
        margin-right: auto;
    }

    .stitch-camp-hero {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin: 30px 0 32px;
    }

    .stitch-camp-hero h1 {
        margin: 0 0 8px;
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.22;
    }

    .stitch-camp-hero p {
        margin: 0;
        color: #4b5563;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.55;
    }

    .stitch-hero-actions {
        display: flex;
        align-items: stretch;
        gap: 16px;
    }

    .stitch-home-hero {
        align-items: stretch;
        margin-bottom: 20px;
    }

    .stitch-home-kicker {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #FDFBF7;
        color: #B18E2D;
        margin-bottom: 12px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
    }

    .stitch-study-home-stats {
        min-width: 360px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        align-self: center;
    }

    .stitch-study-home-stats span {
        min-height: 76px;
        display: grid;
        align-content: center;
        gap: 4px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        padding: 12px;
        text-align: center;
    }

    .stitch-study-home-stats strong {
        overflow-wrap: anywhere;
        color: #0B1E36;
        font-size: 18px;
        font-weight: 900;
        line-height: 1.1;
    }

    .stitch-study-home-stats small {
        color: #6b7280;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
    }

    .stitch-study-entry-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        margin-bottom: 22px;
    }

    .stitch-study-entry-card {
        position: relative;
        min-height: 244px;
        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: 18px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 41, 71, 0.08);
        color: #0B1E36;
        padding: 24px;
        appearance: none;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        text-decoration: none;
    }

    .stitch-study-entry-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-top: 4px solid transparent;
        pointer-events: none;
    }

    .stitch-study-entry-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(15, 41, 71, 0.12);
    }

    .stitch-study-entry-card.is-pdf {
        border-color: #cbdff5;
        background: #f6fbff;
    }

    .stitch-study-entry-card.is-pdf::before {
        border-top-color: #2f6fbe;
    }

    .stitch-study-entry-card.is-bank {
        border-color: #E5D5B5;
        background: #FDFBF7;
    }

    .stitch-study-entry-card.is-bank::before {
        border-top-color: #D4AF37;
    }

    .stitch-study-entry-icon {
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        border: 1px solid currentColor;
        border-radius: 14px;
        background: #fff;
        color: #0B1E36;
    }

    .stitch-study-entry-card.is-pdf .stitch-study-entry-icon {
        color: #2f6fbe;
    }

    .stitch-study-entry-card.is-bank .stitch-study-entry-icon {
        color: #B18E2D;
    }

    .stitch-study-entry-icon svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-study-entry-copy {
        min-width: 0;
        display: grid;
        align-content: start;
        gap: 8px;
    }

    .stitch-study-entry-copy small {
        color: #6b7280;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .stitch-study-entry-copy strong {
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.18;
    }

    .stitch-study-entry-copy em {
        color: #4b5563;
        font-size: 15px;
        font-style: normal;
        font-weight: 500;
        line-height: 1.45;
    }

    .stitch-study-entry-action {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-radius: 12px;
        background: #0B1E36;
        color: #fff;
        padding: 0 16px;
        font-size: 14px;
        font-weight: 850;
        line-height: 1;
    }

    .stitch-study-entry-action svg {
        width: 17px;
        height: 17px;
        fill: currentColor;
    }

    .stitch-pdf-hero {
        align-items: center;
        margin-bottom: 22px;
    }

    .stitch-pdf-access-badge {
        min-width: 300px;
        display: flex;
        align-items: center;
        gap: 12px;
        border: 1px solid #bcdcca;
        border-radius: 14px;
        background: #f2fbf6;
        color: #257A57;
        padding: 14px 16px;
    }

    .stitch-pdf-access-badge > svg {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: #dff4e8;
        padding: 8px;
        fill: currentColor;
    }

    .stitch-pdf-access-badge span {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .stitch-pdf-access-badge small {
        color: #257A57;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
    }

    .stitch-pdf-access-badge strong {
        overflow: hidden;
        color: #0B1E36;
        font-size: 14px;
        font-weight: 850;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-pdf-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .stitch-pdf-card {
        min-height: 92px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        border: 1px solid #dbe3ec;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 41, 71, 0.05);
        padding: 14px 16px;
    }

    .stitch-pdf-card.is-full {
        border-color: #cbdff5;
        background: #f7fbff;
    }

    .stitch-pdf-card.is-daily {
        border-color: #E5D5B5;
        background: #FDFBF7;
    }

    .stitch-pdf-grid .stitch-pdf-card:only-child {
        min-height: 116px;
        border-color: #E1C981;
        background: linear-gradient(135deg, #fffdf8 0%, #fbf4e5 100%);
        box-shadow: 0 12px 28px rgba(15, 41, 71, 0.08);
    }

    .stitch-pdf-card-icon {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border: 1px solid currentColor;
        border-radius: 12px;
        background: #ffffff;
        color: #2f6fbe;
    }

    .stitch-pdf-card.is-daily .stitch-pdf-card-icon {
        color: #B18E2D;
    }

    .stitch-pdf-card-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-pdf-card-copy {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .stitch-pdf-card-title-row {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .stitch-pdf-card-copy small {
        min-height: 24px;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #ffffff;
        color: #6b7280;
        padding: 0 9px;
        font-size: 10px;
        font-weight: 850;
        line-height: 1;
        white-space: nowrap;
    }

    .stitch-pdf-card-copy h2 {
        min-width: 0;
        margin: 0;
        color: #0B1E36;
        font-family: "Inter", sans-serif;
        font-size: 19px;
        font-weight: 900;
        line-height: 1.18;
    }

    .stitch-pdf-card-copy p {
        margin: 0;
        color: #4b5563;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.35;
    }

    .stitch-pdf-card-action {
        min-width: 92px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #0B1E36;
        border-radius: 10px;
        background: #0B1E36;
        color: #ffffff;
        padding: 0 13px;
        font-size: 13px;
        font-weight: 850;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .stitch-pdf-card-action svg {
        width: 15px;
        height: 15px;
        fill: currentColor;
    }

    .stitch-pdf-card-action.is-disabled {
        border-color: #d1d5db;
        background: #e5e7eb;
        color: #6b7280;
        cursor: not-allowed;
    }

    .stitch-pdf-security-note {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #4b5563;
        padding: 0 2px;
    }

    .stitch-pdf-security-note svg {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        fill: #2f6fbe;
    }

    .stitch-pdf-security-note p {
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .stitch-pdf-loading,
    .stitch-pdf-error {
        min-height: 320px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 14px;
        color: #0B1E36;
        text-align: center;
    }

    .stitch-pdf-loading > span,
    .stitch-pdf-error > span {
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: #f2f7fd;
        color: #2f6fbe;
    }

    .stitch-pdf-loading svg,
    .stitch-pdf-error svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-pdf-error h1,
    .stitch-pdf-error p {
        margin: 0;
    }

    .stitch-pdf-return {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid #0B1E36;
        border-radius: 10px;
        background: #0B1E36;
        color: #ffffff;
        padding: 0 16px;
        font-weight: 800;
    }

    .stitch-mini-timer {
        min-width: 288px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        border: 1px solid #E5D5B5;
        border-radius: 12px;
        background: #FDFBF7;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        padding: 12px 20px;
    }

    .stitch-mini-timer small {
        display: block;
        color: #6b7280;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
    }

    .stitch-mini-timer strong {
        display: flex;
        align-items: baseline;
        gap: 6px;
        color: #0B1E36;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
        margin: 3px 0;
    }

    .stitch-mini-timer em {
        color: #4b5563;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
    }

    .stitch-mini-timer i {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid #E5D5B5;
        border-radius: 8px;
        background: #FAF8F5;
        color: #D4AF37;
        font-style: normal;
    }

    .stitch-package-switch {
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        color: #374151;
        padding: 14px 20px;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    .stitch-package-switch svg {
        width: 20px;
        height: 20px;
        color: #6b7280;
    }

    .stitch-package-hero {
        margin-bottom: 24px;
    }

    .stitch-package-grid {
        display: grid;
        gap: 14px;
    }

    .stitch-package-card {
        position: relative;
        min-height: 116px;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) auto;
        align-items: center;
        gap: 18px;
        overflow: hidden;
        border: 1px solid #E5D5B5;
        border-radius: 14px;
        background: #FDFBF7;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        color: #0B1E36;
        padding: 18px 22px;
        text-align: left;
    }

    .stitch-package-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #D4AF37;
    }

    .stitch-package-card:hover {
        border-color: #D4AF37;
        box-shadow: 0 8px 20px rgba(15, 41, 71, 0.08);
        transform: translateY(-1px);
    }

    .stitch-package-card-mark {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #fff;
        color: #D4AF37;
    }

    .stitch-package-card-mark svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-package-card-copy {
        min-width: 0;
        display: grid;
        gap: 5px;
    }

    .stitch-package-card-copy small {
        color: #B18E2D;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    .stitch-package-card-copy strong {
        overflow: hidden;
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-package-card-copy em {
        overflow: hidden;
        color: #4b5563;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-package-card-meta {
        display: grid;
        gap: 8px;
        justify-items: start;
    }

    .stitch-package-card .exam-countdown-package {
        min-width: 164px;
        display: inline-grid;
        gap: 2px;
        border: 1px solid #E5D5B5;
        border-radius: 10px;
        background: #fff;
        padding: 10px 14px;
    }

    .stitch-package-card .exam-countdown-package small {
        color: #B18E2D;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .stitch-package-card .exam-countdown-package strong {
        color: #0B1E36;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.2;
    }

    .stitch-package-access {
        color: #6b7280;
        font-size: 12px;
        font-weight: 500;
    }

    .stitch-package-card-action {
        min-width: 136px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #0B1E36;
        border-radius: 12px;
        background: #0B1E36;
        color: #fff;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    .stitch-package-card-action svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .stitch-exam-schedule {
        display: grid;
        gap: 18px;
        margin-top: 18px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        padding: 22px 24px 24px;
    }

    .stitch-exam-schedule-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

    .stitch-exam-schedule-head h2 {
        margin: 0;
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
    }

    .stitch-exam-schedule-head p {
        margin: 6px 0 0;
        color: #4b5563;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.45;
    }

    .stitch-exam-schedule-head > strong {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f9fafb;
        color: #4b5563;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .stitch-exam-schedule-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .stitch-exam-card {
        min-height: 142px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 18px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        padding: 18px;
    }

    .stitch-exam-card.is-next {
        border-color: #E5D5B5;
        background: #FDFBF7;
    }

    .stitch-exam-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .stitch-exam-card-top span {
        min-width: 0;
        display: grid;
        gap: 5px;
    }

    .stitch-exam-card-top small {
        color: #B18E2D;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.1;
    }

    .stitch-exam-card-top strong {
        overflow-wrap: anywhere;
        color: #0B1E36;
        font-size: 19px;
        font-weight: 850;
        line-height: 1.18;
    }

    .stitch-exam-card-top em {
        color: #6b7280;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.3;
    }

    .stitch-exam-card-top b {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }

    .stitch-exam-card.is-next .stitch-exam-card-top b {
        background: #0B1E36;
        color: #fff;
    }

    .stitch-exam-card-bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
    }

    .stitch-exam-date {
        color: #374151;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.25;
    }

    .stitch-exam-countdown {
        display: grid;
        justify-items: end;
        gap: 2px;
        text-align: right;
        color: #0B1E36;
    }

    .stitch-exam-countdown strong {
        font-size: 19px;
        font-weight: 900;
        line-height: 1.1;
        white-space: nowrap;
    }

    .stitch-exam-countdown small {
        color: #6b7280;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.1;
    }

    .stitch-program-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .stitch-day-card {
        overflow: hidden;
        border: 1px solid #E5D5B5;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-day-card summary {
        list-style: none;
    }

    .stitch-day-card summary::-webkit-details-marker {
        display: none;
    }

    .stitch-day-summary {
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: relative;
        background: #FDFBF7;
        color: #0B1E36;
        cursor: pointer;
        padding: 16px 22px;
    }

    .stitch-day-card:not([open]) > .stitch-day-summary::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #D4AF37;
        opacity: 0.9;
    }

    .stitch-day-card[open] > .stitch-day-summary {
        background: #0B1E36;
        color: #fff;
    }

    .stitch-day-heading {
        display: flex;
        align-items: baseline;
        gap: 12px;
        min-width: 0;
    }

    .stitch-day-heading strong {
        color: #D4AF37;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    .stitch-day-card[open] .stitch-day-heading strong {
        color: #D4AF37;
    }

    .stitch-day-heading em {
        overflow: hidden;
        color: #0B1E36;
        font-size: 18px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-day-card[open] .stitch-day-heading em {
        color: #fff;
        font-size: 20px;
    }

    .stitch-day-meta {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
    }

    .stitch-day-meta small {
        color: #4b5563;
        font-size: 14px;
        font-weight: 400;
    }

    .stitch-day-meta b {
        min-width: 76px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #fff;
        color: #0B1E36;
        padding: 6px 16px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-day-card[open] .stitch-day-meta b {
        border-color: #4b5563;
        background: #142C4A;
        color: #fff;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.16);
    }

    .stitch-day-meta i {
        color: #9ca3af;
        font-style: normal;
        transition: transform 0.2s ease;
    }

    .stitch-day-card[open] .stitch-day-meta i {
        color: #d1d5db;
        transform: rotate(180deg);
    }

    .stitch-day-meta svg {
        width: 24px;
        height: 24px;
    }

    .stitch-day-body {
        display: flex;
        flex-direction: column;
    }

    .stitch-day-goal {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        border-bottom: 1px solid #E5D5B5;
        background: #FDFBF7;
        padding: 24px;
    }

    .stitch-day-goal > span {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #fff;
        color: #D4AF37;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-day-goal > span svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-day-goal strong {
        display: block;
        margin: 2px 0 6px;
        color: #1f2937;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.35px;
    }

    .stitch-day-goal p {
        max-width: 920px;
        margin: 0;
        color: #4b5563;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.65;
    }

    .stitch-day-goal > i {
        position: absolute;
        right: -38px;
        top: -28px;
        width: 256px;
        height: 160px;
        color: #E5D5B5;
        opacity: 0.2;
        font-style: normal;
    }

    .stitch-day-goal > i svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1;
    }

    .stitch-test-list {
        display: flex;
        flex-direction: column;
    }

    .stitch-test-row {
        min-height: 92px;
        display: grid;
        grid-template-columns: minmax(360px, 1fr) 96px 160px 144px;
        align-items: center;
        gap: 24px;
        width: 100%;
        border: 0;
        border-bottom: 1px solid #f3f4f6;
        border-radius: 0;
        background: #fff;
        color: #1f2937;
        padding: 14px 22px;
        text-align: left;
    }

    .stitch-test-row:last-child {
        border-bottom: 0;
    }

    .stitch-test-row:hover {
        background: #f9fafb;
        box-shadow: none;
    }

    .stitch-test-kind {
        display: flex;
        align-items: center;
        gap: 16px;
        min-width: 0;
    }

    .stitch-test-kind i {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: color-mix(in srgb, var(--test-accent) 12%, #fff);
        color: var(--test-accent);
        box-shadow: inset 0 1px 2px rgba(15, 41, 71, 0.08);
        font-style: normal;
    }

    .stitch-test-kind i svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-test-kind strong {
        display: block;
        color: var(--test-accent);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
    }

    .stitch-test-copy {
        min-width: 0;
        display: grid;
        gap: 5px;
    }

    .stitch-test-copy em {
        display: block;
        overflow: hidden;
        color: #1f2937;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.45;
        font-style: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-question-count {
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
    }

    .stitch-progress-pill {
        justify-self: center;
        min-width: 74px;
        min-height: 31px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f3f4f6;
        color: #6b7280;
        padding: 6px 14px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .stitch-progress-pill.is-progress {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .stitch-progress-pill.is-completed {
        border-color: #bbf7d0;
        background: #dcfce7;
        color: #15803d;
    }

    .stitch-progress-pill svg {
        width: 14px;
        height: 14px;
    }

    .stitch-row-action {
        justify-self: end;
        min-width: 144px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #E5D5B5;
        border-radius: 12px;
        background: #fff;
        color: #374151;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-row-action.is-primary {
        border-color: #0B1E36;
        background: #0B1E36;
        color: #fff;
    }

    .student-main-test {
        flex-basis: 1180px;
        width: min(1180px, calc(100vw - 72px));
        max-width: 1180px;
        padding-top: 20px;
        background: #F9FAFB;
        font-family: "Inter", sans-serif;
    }

    .student-main-test .test-topbar {
        min-height: 64px;
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        border: 0;
        border-radius: 0;
        background: #0F2947;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
        margin: 0 0 22px;
        padding: 12px 20px;
    }

    .student-main-test .test-back-button {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        color: #fff;
        padding: 0;
        font-size: 16px;
        font-weight: 500;
    }

    .student-main-test .test-back-button svg {
        width: 24px;
        height: 24px;
    }

    .student-main-test .test-title-block {
        text-align: center;
    }

    .student-main-test .test-topbar h1 {
        margin: 0;
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .student-main-test .test-topbar h1 span {
        color: #9ca3af;
        margin: 0 10px;
    }

    .student-main-test .test-stats {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .student-main-test .stat-pill {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        padding: 0 14px;
        font-size: 15px;
        font-weight: 700;
    }

    .student-main-test .stat-pill svg {
        width: 18px;
        height: 18px;
    }

    .student-main-test .stat-pill.is-navy {
        color: #0F2947;
    }

    .student-main-test .stat-pill.is-green {
        border: 1px solid #10B981;
        color: #10B981;
    }

    .student-main-test .test-workspace {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
        gap: 18px;
        align-items: start;
        width: 100%;
        max-width: 1180px;
        margin: 0 auto;
    }

    .student-main-test .question-card,
    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .student-main-test .question-card {
        padding: 24px;
    }

    .student-main-test .question-progress-row {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        margin: 0 0 22px;
    }

    .student-main-test .question-progress-row > span {
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
    }

    .student-main-test .question-progress-row > strong {
        color: #0F2947;
        font-size: 14px;
        font-weight: 700;
    }

    .student-main-test .progress-track {
        height: 8px;
        overflow: hidden;
        border-radius: 999px;
        background: #e5e7eb;
        margin: 0;
    }

    .student-main-test .progress-track span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #B18E2D;
    }

    .student-main-test .topic-label {
        display: inline-block;
        min-height: 28px;
        border: 1px solid #3B82F6;
        border-radius: 6px;
        background: #eff6ff;
        color: #3B82F6;
        margin: 0 0 18px;
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.05em;
        line-height: 1.5;
        text-transform: uppercase;
    }

    .student-main-test .question-copy {
        margin: 0;
    }

    .student-main-test .question-copy h2 {
        max-width: 760px;
        margin: 0 0 24px;
        color: #0F2947;
        font-family: "Inter", sans-serif;
        font-size: 21px;
        font-weight: 700;
        line-height: 1.48;
        letter-spacing: 0;
    }

    .student-main-test .option-list {
        display: grid;
        gap: 10px;
        margin-bottom: 20px;
    }

    .student-main-test .option-row {
        position: relative;
        min-height: 70px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 72px;
        overflow: hidden;
        border: 1px solid #dfe4ea;
        border-radius: 12px;
        background: #fff;
    }

    .student-main-test .option-row.is-correct {
        border-color: #10B981;
        background: #d1fae5;
    }

    .student-main-test .option-row.is-wrong {
        border-color: #EF4444;
        background: #fee2e2;
    }

    .student-main-test .option-main {
        min-height: 68px;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        background: transparent;
        color: #111827;
        padding: 12px 18px;
        text-align: left;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.55;
    }

    .student-main-test .option-key {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        color: #4b5563;
        font-size: 15px;
        font-weight: 700;
    }

    .student-main-test .option-row.is-correct .option-key {
        border-color: transparent;
        background: #10B981;
        color: #fff;
    }

    .student-main-test .option-row.is-wrong .option-key {
        border-color: transparent;
        background: #EF4444;
        color: #fff;
    }

    .student-main-test .option-tools {
        width: 72px;
        display: grid;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        padding: 0;
    }

    .student-main-test .option-tool {
        position: static;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        background: transparent;
        color: #9ca3af;
    }

    .student-main-test .option-result-marker svg,
    .student-main-test .option-tool svg {
        width: 22px;
        height: 22px;
    }

    .student-main-test .answer-feedback-banner {
        min-height: 86px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
        border: 1px solid #EF4444;
        border-radius: 12px;
        background: #fee2e2;
        margin: 0 0 20px;
        padding: 12px 16px;
    }

    .student-main-test .answer-feedback-banner.is-correct {
        border-color: #10B981;
        background: #d1fae5;
    }

    .student-main-test .answer-feedback-icon {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #EF4444;
        color: #fff;
    }

    .student-main-test .answer-feedback-banner.is-correct .answer-feedback-icon {
        background: #10B981;
    }

    .student-main-test .answer-feedback-banner strong {
        color: #EF4444;
        font-size: 18px;
        font-weight: 700;
    }

    .student-main-test .answer-feedback-banner.is-correct strong {
        color: #10B981;
    }

    .student-main-test .answer-feedback-banner p {
        margin: 4px 0 0;
        color: #374151;
        font-size: 14px;
        line-height: 1.4;
    }

    .student-main-test .answer-feedback-banner button {
        min-width: 224px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 8px;
        background: #EF4444;
        color: #fff;
        padding: 9px 18px;
        font-size: 15px;
        font-weight: 700;
    }

    .student-main-test .learning-note-stack {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin: 0;
    }

    .student-main-test .study-note {
        min-height: 142px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-content: start;
        column-gap: 8px;
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .student-main-test .study-note-icon {
        width: auto;
        height: auto;
        display: inline-grid;
        place-items: center;
        margin: 1px 0 0;
        background: transparent !important;
    }

    .student-main-test .study-note-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .student-main-test .study-note strong {
        display: block;
        margin: 0 0 8px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
    }

    .student-main-test .study-note p {
        margin: 0;
        color: #374151;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.45;
    }

    .student-main-test .study-note-tip {
        border: 1px solid #3B82F6;
        background: #eff6ff;
    }

    .student-main-test .study-note-tip,
    .student-main-test .study-note-tip strong,
    .student-main-test .study-note-tip .study-note-icon {
        color: #3B82F6;
    }

    .student-main-test .study-note-mixup {
        border: 1px solid #EF4444;
        background: #fee2e2;
    }

    .student-main-test .study-note-mixup,
    .student-main-test .study-note-mixup strong,
    .student-main-test .study-note-mixup .study-note-icon {
        color: #EF4444;
    }

    .student-main-test .study-note-exam {
        border: 1px solid #facc15;
        background: #fefce8;
    }

    .student-main-test .study-note-exam,
    .student-main-test .study-note-exam strong,
    .student-main-test .study-note-exam .study-note-icon {
        color: #ca8a04;
    }

    .student-main-test .test-side-rail {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        padding: 20px;
    }

    .student-main-test .question-nav-panel h2,
    .student-main-test .question-hint-panel h2 {
        margin: 0;
        color: #0F2947;
        font-family: "Merriweather", serif;
        font-size: 18px;
        font-weight: 700;
    }

    .student-main-test .question-nav-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 14px;
        margin: 24px 0 20px;
        color: #4b5563;
        font-size: 13px;
        font-weight: 400;
    }

    .student-main-test .question-nav-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .student-main-test .legend-dot {
        width: 12px;
        height: 12px;
        border: 1px solid #9ca3af;
        border-radius: 999px;
        background: #fff;
    }

    .student-main-test .legend-dot.is-answered {
        border-color: #10B981;
        background: #10B981;
    }

    .student-main-test .legend-dot.is-current {
        border: 4px solid #0F2947;
    }

    .student-main-test .question-dots {
        display: grid;
        grid-template-columns: repeat(5, 42px);
        gap: 12px;
        margin-bottom: 24px;
    }

    .student-main-test .question-dot {
        width: 42px;
        height: 42px;
        border: 1px solid #d1d5db;
        border-radius: 999px;
        background: #fff;
        color: #4b5563;
        font-size: 16px;
        font-weight: 700;
    }

    .student-main-test .question-dot.is-answered {
        border-color: #10B981;
        background: #10B981;
        color: #fff;
    }

    .student-main-test .question-dot.is-current {
        border-color: #0F2947;
        background: #0F2947;
        color: #fff;
        box-shadow: 0 4px 8px rgba(15, 41, 71, 0.18);
        transform: scale(1.1);
    }

    .student-main-test .question-rail-actions {
        display: flex;
        gap: 12px;
        margin: 0;
    }

    .student-main-test .rail-nav-button {
        flex: 1;
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 2px solid #0F2947;
        border-radius: 12px;
        background: #0F2947;
        color: #fff;
        box-shadow: 0 4px 8px rgba(15, 41, 71, 0.16);
        font-size: 15px;
        font-weight: 700;
    }

    .student-main-test .rail-nav-button.is-ghost {
        background: #fff;
        color: #0F2947;
        box-shadow: none;
    }

    .student-main-test .question-hint-panel {
        position: relative;
        overflow: hidden;
        border-color: rgba(177, 142, 45, 0.3);
        background: #FDFBF7;
    }

    .student-main-test .question-hint-panel::after {
        content: "";
        position: absolute;
        right: -16px;
        top: -16px;
        width: 96px;
        height: 96px;
        border-radius: 999px;
        background: rgba(177, 142, 45, 0.1);
        filter: blur(16px);
    }

    .student-main-test .question-hint-head {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 18px;
    }

    .student-main-test .question-hint-head > span {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(177, 142, 45, 0.2);
        color: #B18E2D;
    }

    .student-main-test .question-hint-head svg {
        width: 24px;
        height: 24px;
    }

    .student-main-test .question-hint-panel p {
        margin: 4px 0 0;
        color: #4b5563;
        font-size: 14px;
        line-height: 1.6;
    }

    .student-main-test .hint-open-button {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #B18E2D;
        border-radius: 12px;
        background: #fff;
        color: #B18E2D;
        margin-top: 0;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
    }
}

.learning-launcher-meta {
    position: relative;
    z-index: 1;
    margin: -4px 0 14px 56px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.learning-open-button svg {
    width: 18px;
    height: 18px;
}

.learning-open-button.is-learning-ready,
.mobile-learning-trigger.is-learning-ready {
    border-color: #D4AF37;
    background: #fff7d6;
    color: #8a6818;
    animation: learningButtonBreath 1.85s ease-in-out infinite;
}

.learning-open-button.is-learning-ready svg,
.mobile-learning-trigger.is-learning-ready svg {
    color: currentColor;
}

.student-main-test .learning-open-button {
    margin-bottom: 10px;
}

@keyframes learningButtonBreath {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.42), 0 10px 24px rgba(5, 16, 31, 0.12);
        transform: translateZ(0) scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0), 0 14px 30px rgba(177, 142, 45, 0.22);
        transform: translateZ(0) scale(1.025);
    }
}

.learning-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: rgba(7, 24, 51, 0.68);
    padding: 28px;
}

.learning-modal {
    width: min(740px, calc(100vw - 56px));
    max-height: min(760px, calc(100vh - 56px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.72);
    border-radius: 14px;
    background: #FAF8F5;
    box-shadow: 0 24px 70px rgba(7, 24, 51, 0.34);
    font-family: "Inter", sans-serif;
}

.learning-modal-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #D4AF37;
    background: #0B1E36;
    padding: 18px 22px;
}

.learning-modal-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.16);
    color: #D4AF37;
}

.learning-modal-mark svg {
    width: 26px;
    height: 26px;
}

.learning-modal-header small {
    display: block;
    margin-bottom: 2px;
    color: #D4AF37;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.learning-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-family: "Merriweather", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.learning-modal-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 600;
}

.learning-modal-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.learning-modal-close svg {
    width: 20px;
    height: 20px;
}

.learning-modal-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(177, 142, 45, 0.28);
    background: #FFFDF8;
    padding: 14px 20px;
    -ms-overflow-style: none;
}

.learning-modal-tabs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.learning-modal-tabs button {
    min-height: 40px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(177, 142, 45, 0.3);
    border-radius: 999px;
    background: #ffffff;
    color: #0F2947;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 800;
}

.learning-modal-tabs button span {
    display: grid;
    place-items: center;
}

.learning-modal-tabs button svg {
    width: 17px;
    height: 17px;
}

.learning-modal-tabs button.is-active {
    border-color: #D4AF37;
    background: #0F2947;
    color: #ffffff;
    box-shadow: none;
}

.learning-modal-body {
    overflow: auto;
    background: #FAF8F5;
    padding: 20px 22px 24px;
}

.test-completion-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 310;
    display: grid;
    place-items: center;
    background: rgba(5, 16, 31, 0.56);
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.test-completion-modal {
    width: min(560px, 100%);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 78px rgba(5, 16, 31, 0.32);
}

.test-completion-modal-head {
    min-height: 108px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    background: #0B1E36;
    color: #ffffff;
    padding: 20px 22px;
}

.test-completion-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.test-completion-mark svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.test-completion-modal-head small {
    display: block;
    margin-bottom: 4px;
    color: #F7E3A0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.test-completion-modal-head h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.24;
}

.test-completion-modal-head p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.test-completion-modal-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    background: #FFFCF6;
    padding: 20px 22px;
}

.test-completion-score {
    min-width: 94px;
    min-height: 82px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: 14px;
    background: #ECFDF5;
    color: #047857;
    padding: 10px;
}

.test-completion-score strong {
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

.test-completion-score span {
    font-size: 12px;
    font-weight: 900;
}

.test-completion-modal-body p {
    margin: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.test-completion-modal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid #eadbb7;
    background: #ffffff;
    padding: 16px;
}

.test-completion-action {
    min-width: 0;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #D7C49E;
    border-radius: 12px;
    background: #ffffff;
    color: #0B1E36;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.test-completion-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.test-completion-action.is-primary {
    border-color: #0B1E36;
    background: #0B1E36;
    color: #ffffff;
}

.test-completion-action.is-secondary {
    border-color: rgba(16, 185, 129, 0.42);
    background: #ECFDF5;
    color: #047857;
}

.test-completion-action.is-ghost {
    background: #F8FAFC;
}

.learning-modal-note-list {
    display: grid;
    gap: 14px;
}

.learning-modal .study-note {
    min-height: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(177, 142, 45, 0.34);
    border-left: 4px solid #D4AF37;
    border-radius: 12px;
    background: #FFFDF8;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(15, 41, 71, 0.04);
}

.learning-modal .study-note.is-modal {
    display: block;
}

.learning-modal .study-note-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    background: transparent !important;
}

.learning-modal .study-note-icon svg {
    width: 21px;
    height: 21px;
}

.learning-modal .study-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.learning-modal .study-note > div {
    display: contents;
}

.learning-modal .study-note p {
    grid-column: 1 / -1;
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

.study-note-hint {
    border-color: rgba(177, 142, 45, 0.34);
    border-left-color: #D4AF37;
    background: #FFFDF8;
}

.study-note-hint,
.study-note-hint strong,
.study-note-hint .study-note-icon {
    color: #B18E2D;
}

.study-note-memory {
    border: 1px solid rgba(177, 142, 45, 0.55);
    background: #fffbeb;
}

.study-note-memory,
.study-note-memory strong,
.study-note-memory .study-note-icon {
    color: #B18E2D;
}

.study-note-logic {
    border: 1px solid #0F6E7A;
    background: #EFF9F8;
}

.study-note-logic,
.study-note-logic strong,
.study-note-logic .study-note-icon {
    color: #0F6E7A;
}

.study-note-info {
    border: 1px solid rgba(15, 41, 71, 0.18);
    background: #F8FAFC;
}

.study-note-info,
.study-note-info strong,
.study-note-info .study-note-icon {
    color: #0F2947;
}

.student-main-test .learning-modal .study-note-hint {
    border-color: rgba(177, 142, 45, 0.34);
    border-left-color: #D4AF37;
    background: #FFFDF8;
}

.student-main-test .learning-modal .study-note-hint,
.student-main-test .learning-modal .study-note-hint strong,
.student-main-test .learning-modal .study-note-hint .study-note-icon {
    color: #B18E2D;
}

.student-main-test .learning-modal .study-note-mixup {
    border-color: rgba(159, 51, 65, 0.26);
    border-left-color: #9F3341;
    background: #FFF7F6;
}

.student-main-test .learning-modal .study-note-mixup,
.student-main-test .learning-modal .study-note-mixup strong,
.student-main-test .learning-modal .study-note-mixup .study-note-icon {
    color: #9F3341;
}

.student-main-test .learning-modal .study-note-exam,
.student-main-test .learning-modal .study-note-memory {
    border-color: rgba(177, 142, 45, 0.34);
    border-left-color: #D4AF37;
    background: #FFFDF8;
}

.student-main-test .learning-modal .study-note-exam,
.student-main-test .learning-modal .study-note-exam strong,
.student-main-test .learning-modal .study-note-exam .study-note-icon,
.student-main-test .learning-modal .study-note-memory,
.student-main-test .learning-modal .study-note-memory strong,
.student-main-test .learning-modal .study-note-memory .study-note-icon {
    color: #B18E2D;
}

.student-main-test .learning-modal .study-note-logic,
.student-main-test .learning-modal .study-note-info {
    border-color: rgba(15, 41, 71, 0.18);
    border-left-color: #0F2947;
    background: #FFFFFF;
}

.student-main-test .learning-modal .study-note-logic,
.student-main-test .learning-modal .study-note-logic strong,
.student-main-test .learning-modal .study-note-logic .study-note-icon,
.student-main-test .learning-modal .study-note-info,
.student-main-test .learning-modal .study-note-info strong,
.student-main-test .learning-modal .study-note-info .study-note-icon {
    color: #0F2947;
}

.option-explanation-list {
    display: grid;
    gap: 12px;
}

.option-explanation-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 14px;
}

.option-explanation-item.is-correct {
    border-color: #10B981;
    background: #ecfdf5;
}

.option-explanation-item.is-wrong {
    border-color: #EF4444;
    background: #fef2f2;
}

.option-explanation-item.is-selected {
    box-shadow: 0 0 0 2px rgba(15, 41, 71, 0.08);
}

.option-explanation-item.is-correct.is-selected {
    border-color: #059669;
}

.option-explanation-item.is-wrong.is-selected {
    border-color: #dc2626;
}

.option-explanation-item .option-key {
    width: 36px;
    height: 36px;
}

.option-explanation-item.is-correct .option-key {
    border-color: transparent;
    background: #10B981;
    color: #ffffff;
}

.option-explanation-item.is-wrong .option-key {
    border-color: transparent;
    background: #EF4444;
    color: #ffffff;
}

.option-explanation-item strong {
    display: block;
    color: #0F2947;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.option-explanation-item p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .test-completion-modal-backdrop {
        padding: 14px;
    }

    .test-completion-modal {
        width: calc(100vw - 28px);
        border-radius: 16px;
    }

    .test-completion-modal-head {
        min-height: 92px;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .test-completion-mark {
        width: 48px;
        height: 48px;
    }

    .test-completion-modal-head h2 {
        font-size: 19px;
    }

    .test-completion-modal-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .test-completion-score {
        min-height: 66px;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 8px;
    }

    .test-completion-modal-actions {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    .test-completion-action {
        min-height: 48px;
    }

    .learning-modal-backdrop {
        padding: 14px;
    }

    .learning-modal {
        width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }

    .learning-modal-header {
        grid-template-columns: 44px minmax(0, 1fr) 36px;
        gap: 12px;
        padding: 16px;
    }

    .learning-modal-mark {
        width: 44px;
        height: 44px;
    }

    .learning-modal-header h2 {
        font-size: 20px;
    }

    .learning-modal-body {
        padding: 16px;
    }
}

@media (min-width: 1024px) {
    .student-main-test .test-topbar {
        min-height: 54px;
        grid-template-columns: auto;
        justify-content: start;
        margin-bottom: 18px;
        padding: 10px 20px;
    }

    .student-main-test .test-back-button {
        width: fit-content;
    }

    .student-main-test .question-panel-test-summary {
        display: grid;
        gap: 14px;
        border-bottom: 1px solid #e5e7eb;
        margin: -2px 0 18px;
        padding-bottom: 18px;
    }

    .student-main-test .question-panel-title-block {
        display: grid;
        gap: 5px;
    }

    .student-main-test .question-panel-title-block h2 {
        margin: 0;
        color: #0F2947;
        font-family: "Merriweather", serif;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
    }

    .student-main-test .question-panel-title-block p {
        margin: 0;
        color: #475569;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
    }

    .student-main-test .question-panel-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .student-main-test .question-panel-stats .stat-pill {
        min-height: 36px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #ffffff;
        padding: 0 12px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .student-main-test .question-panel-stats .stat-pill svg {
        width: 16px;
        height: 16px;
    }

    .student-main-test .question-panel-stats .stat-pill.is-navy {
        color: #0F2947;
    }

    .student-main-test .question-panel-stats .stat-pill.is-green {
        border-color: #10B981;
        background: #ecfdf5;
        color: #10B981;
    }

    .student-main-test .question-nav-panel > h3 {
        margin: 0;
        color: #0F2947;
        font-family: "Merriweather", serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
    }

    .student-main-test .question-nav-legend {
        margin-top: 18px;
    }
}

.student-main-test .test-topbar {
    min-height: 0;
    display: flex;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin: 0 0 16px;
    padding: 0;
}

.student-main-test .test-back-button {
    min-height: 42px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(177, 142, 45, 0.42);
    border-radius: 999px;
    background: #FFFDF8;
    color: #0F2947;
    padding: 0 16px 0 13px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
}

.student-main-test .test-back-button svg {
    width: 20px;
    height: 20px;
}

.student-main-test .test-back-button:hover {
    border-color: #B18E2D;
    background: #fff8e8;
    color: #0F2947;
}

/* Responsive consolidation for the Lite MVP student/admin surfaces */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.auth-page {
    padding: clamp(16px, 4vw, 24px);
}

.auth-card {
    max-width: 100%;
}

.auth-card .form-message {
    width: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--danger);
    padding: 0;
    text-align: left;
    font-weight: 700;
}

.auth-card .form-message:empty {
    display: none;
}

@media (max-width: 1023px) {
    .student-shell.stitch-shell {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: #FAF8F5;
        color: #0B1E36;
        font-family: "Inter", sans-serif;
    }

    .stitch-main-header {
        position: sticky;
        top: 0;
        z-index: 70;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        border: 0;
        border-radius: 0;
        background: #0B1E36;
        box-shadow: 0 8px 24px rgba(7, 24, 51, 0.22);
        padding: 12px clamp(14px, 4vw, 28px) 10px;
    }

    .stitch-main-header .brand-lockup {
        min-width: 0;
        height: auto;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        color: #ffffff;
        text-decoration: none;
        box-shadow: none;
    }

    .stitch-main-header .brand-mark {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(212, 175, 55, 0.72);
        border-radius: 12px;
        background: rgba(212, 175, 55, 0.12);
        color: #D4AF37;
        box-shadow: none;
    }

    .stitch-main-header .brand-mark svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-main-header .brand-wordmark {
        min-width: 0;
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 2px;
        color: rgba(255, 255, 255, 0.76);
        font-size: 18px;
        line-height: 1.05;
    }

    .stitch-main-header .brand-wordmark strong {
        color: #ffffff;
        font-size: inherit;
        font-weight: 900;
        line-height: inherit;
    }

    .stitch-top-nav {
        grid-column: 1 / -1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        margin: 0 -4px;
        padding: 2px 4px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .stitch-top-nav::-webkit-scrollbar {
        display: none;
    }

    .stitch-top-nav .student-top-nav-item {
        flex: 0 0 auto;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: rgba(255, 255, 255, 0.72);
        padding: 0 12px;
        font-size: 13px;
        font-weight: 750;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .stitch-top-nav .student-top-nav-item svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-top-nav .student-top-nav-item.is-active {
        border-color: rgba(212, 175, 55, 0.62);
        background: rgba(212, 175, 55, 0.14);
        color: #F7E3A0;
    }

    .stitch-top-nav .student-top-nav-item.is-disabled,
    .stitch-top-nav .student-top-nav-item:disabled {
        opacity: 0.58;
    }

    .stitch-main-header .student-menu-actions {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .stitch-main-header .student-admin-link {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(212, 175, 55, 0.58);
        border-radius: 999px;
        background: rgba(212, 175, 55, 0.12);
        color: #F7E3A0;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 850;
        text-decoration: none;
        white-space: nowrap;
    }

    .stitch-user-chip {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .stitch-user-copy {
        min-width: 0;
        display: block;
        text-align: right;
    }

    .stitch-user-copy small {
        display: block;
        color: #D4AF37;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
    }

    .stitch-user-copy strong {
        display: block;
        max-width: 120px;
        overflow: hidden;
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-avatar,
    .stitch-logout {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 999px;
    }

    .stitch-avatar {
        background: #ffffff;
        color: #0B1E36;
    }

    .stitch-avatar svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-logout {
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .stitch-logout svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-layout {
        flex: 1;
        width: 100%;
        max-width: none;
        display: block;
        margin: 0;
        padding: 0 clamp(16px, 4vw, 28px) 48px;
    }

    .stitch-sidebar {
        display: none;
    }

    .student-main,
    .student-main-camp,
    .student-main-test {
        min-width: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 22px 0 0;
        background: transparent;
    }

    .student-main-test {
        background: #F9FAFB;
    }

    .stitch-camp-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin: 24px 0 20px;
    }

    .stitch-camp-hero h1 {
        margin: 0 0 8px;
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: clamp(28px, 6vw, 34px);
        font-weight: 700;
        line-height: 1.18;
    }

    .stitch-camp-hero p {
        margin: 0;
        color: #4b5563;
        font-size: 15px;
        line-height: 1.55;
    }

    .stitch-hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .stitch-home-hero {
        align-items: start;
        margin-bottom: 16px;
    }

    .stitch-home-kicker {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #FDFBF7;
        color: #B18E2D;
        margin-bottom: 10px;
        padding: 0 10px;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
    }

    .stitch-study-home-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .stitch-study-home-stats span {
        min-height: 64px;
        display: grid;
        align-content: center;
        gap: 3px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        padding: 9px 6px;
        text-align: center;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-study-home-stats strong {
        overflow-wrap: anywhere;
        color: #0B1E36;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.08;
    }

    .stitch-study-home-stats small {
        color: #6b7280;
        font-size: 10px;
        font-weight: 750;
        line-height: 1.15;
    }

    .stitch-study-entry-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .stitch-study-entry-card {
        position: relative;
        width: 100%;
        min-height: 176px;
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: start;
        gap: 14px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        color: #0B1E36;
        padding: 16px;
        text-align: left;
        text-decoration: none;
        box-shadow: 0 8px 20px rgba(15, 41, 71, 0.07);
    }

    .stitch-study-entry-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: transparent;
        pointer-events: none;
    }

    .stitch-study-entry-card.is-pdf {
        border-color: #cbdff5;
        background: #f6fbff;
    }

    .stitch-study-entry-card.is-pdf::before {
        background: #2f6fbe;
    }

    .stitch-study-entry-card.is-bank {
        border-color: #E5D5B5;
        background: #FDFBF7;
    }

    .stitch-study-entry-card.is-bank::before {
        background: #D4AF37;
    }

    .stitch-study-entry-icon {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border: 1px solid currentColor;
        border-radius: 12px;
        background: #ffffff;
        color: #0B1E36;
    }

    .stitch-study-entry-card.is-pdf .stitch-study-entry-icon {
        color: #2f6fbe;
    }

    .stitch-study-entry-card.is-bank .stitch-study-entry-icon {
        color: #B18E2D;
    }

    .stitch-study-entry-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-study-entry-copy {
        min-width: 0;
        display: grid;
        gap: 5px;
    }

    .stitch-study-entry-copy small {
        color: #6b7280;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .stitch-study-entry-copy strong {
        overflow-wrap: anywhere;
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.18;
    }

    .stitch-study-entry-copy em {
        color: #4b5563;
        font-size: 13px;
        font-style: normal;
        font-weight: 500;
        line-height: 1.35;
    }

    .stitch-study-entry-action {
        grid-column: 1 / -1;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-radius: 12px;
        background: #0B1E36;
        color: #ffffff;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 850;
        line-height: 1;
    }

    .stitch-study-entry-action svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .stitch-pdf-hero {
        gap: 14px;
        margin-bottom: 16px;
    }

    .stitch-pdf-access-badge {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        border: 1px solid #bcdcca;
        border-radius: 12px;
        background: #f2fbf6;
        color: #257A57;
        padding: 12px;
    }

    .stitch-pdf-access-badge > svg {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        background: #dff4e8;
        padding: 9px;
        fill: currentColor;
    }

    .stitch-pdf-access-badge span {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .stitch-pdf-access-badge small {
        color: #257A57;
        font-size: 9px;
        font-weight: 900;
        line-height: 1.1;
    }

    .stitch-pdf-access-badge strong {
        overflow: hidden;
        color: #0B1E36;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-pdf-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stitch-pdf-card {
        min-height: 84px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        border: 1px solid #dbe3ec;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 41, 71, 0.05);
        padding: 12px;
    }

    .stitch-pdf-card.is-full {
        border-color: #cbdff5;
        background: #f7fbff;
    }

    .stitch-pdf-card.is-daily {
        border-color: #E5D5B5;
        background: #FDFBF7;
    }

    .stitch-pdf-grid .stitch-pdf-card:only-child {
        min-height: 116px;
        border-color: #E1C981;
        background: linear-gradient(135deg, #fffdf8 0%, #fbf4e5 100%);
        box-shadow: 0 12px 28px rgba(15, 41, 71, 0.08);
    }

    .stitch-pdf-card-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 1px solid currentColor;
        border-radius: 10px;
        background: #ffffff;
        color: #2f6fbe;
    }

    .stitch-pdf-card.is-daily .stitch-pdf-card-icon {
        color: #B18E2D;
    }

    .stitch-pdf-card-icon svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-pdf-card-copy {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .stitch-pdf-card-title-row {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .stitch-pdf-card-copy small {
        min-height: 20px;
        display: inline-flex;
        align-items: center;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #ffffff;
        color: #6b7280;
        padding: 0 7px;
        font-size: 10px;
        font-weight: 850;
        line-height: 1;
        white-space: nowrap;
    }

    .stitch-pdf-card-copy h2 {
        min-width: 0;
        margin: 0;
        color: #0B1E36;
        font-family: "Inter", sans-serif;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.18;
    }

    .stitch-pdf-card-copy p {
        margin: 0;
        color: #4b5563;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
    }

    .stitch-pdf-card-action {
        min-width: 64px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid #0B1E36;
        border-radius: 9px;
        background: #0B1E36;
        color: #ffffff;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 850;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .stitch-pdf-card-action svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
    }

    .stitch-pdf-card-action.is-disabled {
        border-color: #d1d5db;
        background: #e5e7eb;
        color: #6b7280;
    }

    .stitch-pdf-security-note {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #4b5563;
        padding: 0 2px;
    }

    .stitch-pdf-security-note svg {
        width: 18px;
        height: 18px;
        fill: #2f6fbe;
    }

    .stitch-pdf-security-note p {
        margin: 0;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.4;
    }

    .stitch-pdf-loading,
    .stitch-pdf-error {
        min-height: 260px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 12px;
        color: #0B1E36;
        padding: 20px;
        text-align: center;
    }

    .stitch-pdf-loading > span,
    .stitch-pdf-error > span {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: #f2f7fd;
        color: #2f6fbe;
    }

    .stitch-pdf-loading svg,
    .stitch-pdf-error svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-pdf-error h1,
    .stitch-pdf-error p {
        margin: 0;
    }

    .stitch-pdf-return {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid #0B1E36;
        border-radius: 10px;
        background: #0B1E36;
        color: #ffffff;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 800;
    }

    .stitch-mini-timer,
    .stitch-package-switch {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border: 1px solid #E5D5B5;
        border-radius: 12px;
        background: #FDFBF7;
        color: #0B1E36;
        padding: 12px 14px;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-mini-timer small {
        display: block;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }

    .stitch-mini-timer strong {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 5px;
        color: #0B1E36;
        margin: 3px 0;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.18;
    }

    .stitch-mini-timer em {
        color: #4b5563;
        font-size: 13px;
        font-style: normal;
        font-weight: 600;
    }

    .stitch-mini-timer i,
    .stitch-package-switch svg {
        flex: 0 0 auto;
        color: #D4AF37;
        font-style: normal;
    }

    .stitch-mini-timer i {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid #E5D5B5;
        border-radius: 10px;
        background: #ffffff;
    }

    .stitch-package-switch {
        justify-content: center;
        background: #ffffff;
        font-size: 14px;
        font-weight: 850;
    }

    .stitch-package-grid,
    .stitch-program-list {
        display: grid;
        gap: 14px;
    }

    .stitch-package-card {
        position: relative;
        width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        overflow: hidden;
        border: 1px solid #E5D5B5;
        border-radius: 14px;
        background: #FDFBF7;
        color: #0B1E36;
        padding: 16px;
        text-align: left;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-package-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: #D4AF37;
    }

    .stitch-package-card-mark {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #ffffff;
        color: #D4AF37;
    }

    .stitch-package-card-mark svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-package-card-copy {
        min-width: 0;
        display: grid;
        gap: 5px;
    }

    .stitch-package-card-copy small {
        color: #B18E2D;
        font-size: 12px;
        font-weight: 850;
        line-height: 1.2;
    }

    .stitch-package-card-copy strong {
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: clamp(20px, 5vw, 24px);
        font-weight: 700;
        line-height: 1.24;
        white-space: normal;
    }

    .stitch-package-card-copy em {
        color: #4b5563;
        font-size: 14px;
        font-style: normal;
        line-height: 1.45;
        white-space: normal;
    }

    .stitch-package-card-meta {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
    }

    .stitch-package-card .exam-countdown-package {
        min-width: 0;
        display: inline-grid;
        gap: 2px;
        border: 1px solid #E5D5B5;
        border-radius: 10px;
        background: #ffffff;
        padding: 9px 12px;
    }

    .stitch-package-card .exam-countdown-package small {
        color: #B18E2D;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .stitch-package-card .exam-countdown-package strong {
        color: #0B1E36;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.2;
    }

    .stitch-package-access {
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
    }

    .stitch-package-card-action {
        grid-column: 1 / -1;
        min-height: 42px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #0B1E36;
        border-radius: 12px;
        background: #0B1E36;
        color: #ffffff;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 850;
        white-space: nowrap;
    }

    .stitch-exam-schedule {
        display: grid;
        gap: 14px;
        margin-top: 14px;
        border: 1px solid #e1e5ea;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(15, 41, 71, 0.06);
        padding: 16px;
    }

    .stitch-exam-schedule-head {
        display: grid;
        gap: 10px;
    }

    .stitch-exam-schedule-head h2 {
        margin: 0;
        color: #0B1E36;
        font-family: "Merriweather", serif;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.2;
    }

    .stitch-exam-schedule-head p {
        margin: 6px 0 0;
        color: #4b5563;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
    }

    .stitch-exam-schedule-head > strong {
        justify-self: start;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f9fafb;
        color: #4b5563;
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 850;
        line-height: 1;
    }

    .stitch-exam-schedule-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stitch-exam-card {
        min-height: 0;
        display: grid;
        gap: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        padding: 14px;
    }

    .stitch-exam-card.is-next {
        border-color: #E5D5B5;
        background: #FDFBF7;
    }

    .stitch-exam-card-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
    }

    .stitch-exam-card-top span {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .stitch-exam-card-top small {
        color: #B18E2D;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
    }

    .stitch-exam-card-top strong {
        overflow-wrap: anywhere;
        color: #0B1E36;
        font-size: 17px;
        font-weight: 900;
        line-height: 1.18;
    }

    .stitch-exam-card-top em {
        color: #6b7280;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.3;
    }

    .stitch-exam-card-top b {
        min-height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        padding: 5px 9px;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .stitch-exam-card.is-next .stitch-exam-card-top b {
        background: #0B1E36;
        color: #ffffff;
    }

    .stitch-exam-card-bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .stitch-exam-date {
        color: #374151;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
    }

    .stitch-exam-countdown {
        min-width: 0;
        display: grid;
        justify-items: end;
        gap: 2px;
        color: #0B1E36;
        text-align: right;
    }

    .stitch-exam-countdown strong {
        font-size: 16px;
        font-weight: 900;
        line-height: 1.1;
        white-space: nowrap;
    }

    .stitch-exam-countdown small {
        color: #6b7280;
        font-size: 10px;
        font-weight: 800;
        line-height: 1.1;
    }

    .stitch-day-card {
        overflow: hidden;
        border: 1px solid #E5D5B5;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .stitch-day-card summary {
        list-style: none;
    }

    .stitch-day-card summary::-webkit-details-marker {
        display: none;
    }

    .stitch-day-summary {
        position: relative;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        background: #FDFBF7;
        color: #0B1E36;
        cursor: pointer;
        padding: 15px 16px;
    }

    .stitch-day-card:not([open]) > .stitch-day-summary::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: #D4AF37;
    }

    .stitch-day-card[open] > .stitch-day-summary {
        background: #0B1E36;
        color: #ffffff;
    }

    .stitch-day-heading {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .stitch-day-heading strong {
        color: #D4AF37;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.15;
    }

    .stitch-day-heading em {
        color: inherit;
        overflow-wrap: anywhere;
        font-size: 16px;
        font-style: normal;
        font-weight: 750;
        line-height: 1.32;
    }

    .stitch-day-meta {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: wrap;
        min-width: 0;
    }

    .stitch-day-meta small {
        color: inherit;
        opacity: 0.72;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.25;
    }

    .stitch-day-meta b {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #ffffff;
        color: #0B1E36;
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 900;
        white-space: nowrap;
    }

    .stitch-day-meta i {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        color: currentColor;
        font-style: normal;
    }

    .stitch-day-body,
    .stitch-test-list {
        display: grid;
    }

    .stitch-day-goal {
        position: relative;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        overflow: hidden;
        border-bottom: 1px solid #E5D5B5;
        background: #FDFBF7;
        padding: 18px 16px;
    }

    .stitch-day-goal > span {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 1px solid #E5D5B5;
        border-radius: 999px;
        background: #ffffff;
        color: #D4AF37;
    }

    .stitch-day-goal > span svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-day-goal strong {
        display: block;
        margin: 0 0 6px;
        color: #1f2937;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.2;
    }

    .stitch-day-goal p {
        margin: 0;
        color: #4b5563;
        font-size: 15px;
        line-height: 1.6;
    }

    .stitch-day-goal > i {
        display: none;
    }

    .stitch-test-row {
        min-height: 0;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px 12px;
        border: 0;
        border-bottom: 1px solid #f3f4f6;
        border-radius: 0;
        background: #ffffff;
        color: #1f2937;
        padding: 14px 16px;
        text-align: left;
    }

    .stitch-test-row:last-child {
        border-bottom: 0;
    }

    .stitch-test-kind {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .stitch-test-kind i {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: color-mix(in srgb, var(--test-accent, #D4AF37) 12%, #ffffff);
        color: var(--test-accent, #B18E2D);
        font-style: normal;
    }

    .stitch-test-kind i svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .stitch-test-copy {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .stitch-test-title-line {
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px;
    }

    .stitch-test-kind strong {
        color: var(--test-accent, #B18E2D);
        font-size: 14px;
        font-weight: 850;
        line-height: 1.2;
    }

    .stitch-test-copy em {
        color: #1f2937;
        overflow-wrap: anywhere;
        font-size: 15px;
        font-style: normal;
        font-weight: 650;
        line-height: 1.4;
    }

    .stitch-question-count,
    .stitch-progress-pill {
        justify-self: start;
        color: #6b7280;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .stitch-progress-pill {
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f3f4f6;
        padding: 5px 10px;
    }

    .stitch-progress-pill.is-progress {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .stitch-progress-pill.is-completed {
        border-color: #bbf7d0;
        background: #dcfce7;
        color: #15803d;
    }

    .stitch-progress-pill-inline {
        display: none;
    }

    .stitch-row-action {
        grid-column: 1 / -1;
        min-height: 42px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #E5D5B5;
        border-radius: 12px;
        background: #ffffff;
        color: #374151;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 850;
    }

    .stitch-row-action.is-primary {
        border-color: #0B1E36;
        background: #0B1E36;
        color: #ffffff;
    }

    .student-main-test .test-topbar {
        margin: 0 0 16px;
    }

    .student-main-test .test-workspace {
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-items: start;
        margin: 0;
    }

    .student-main-test .question-card,
    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        width: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .student-main-test .question-card,
    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        padding: clamp(16px, 4vw, 24px);
    }

    .student-main-test .question-progress-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        margin: 0 0 20px;
    }

    .student-main-test .question-copy h2 {
        max-width: none;
        margin: 0 0 22px;
        color: #0F2947;
        font-family: "Inter", sans-serif;
        font-size: clamp(21px, 5vw, 26px);
        font-weight: 850;
        line-height: 1.35;
    }

    .student-main-test .option-list {
        display: grid;
        gap: 10px;
    }

    .student-main-test .option-row {
        min-height: 66px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 56px;
        overflow: hidden;
        border: 1px solid #dfe4ea;
        border-radius: 12px;
        background: #ffffff;
    }

    .student-main-test .option-main {
        min-height: 64px;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        text-align: left;
        font-size: 15px;
        font-weight: 750;
        line-height: 1.45;
    }

    .student-main-test .option-key {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 2px solid #d1d5db;
        border-radius: 8px;
        background: #ffffff;
        color: #4b5563;
        font-size: 15px;
        font-weight: 850;
    }

    .student-main-test .option-tools {
        width: 56px;
        min-width: 56px;
        display: grid;
        place-items: center;
        padding: 0;
    }

    .student-main-test .option-tool,
    .student-main-test .option-result-marker {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
    }

    .student-main-test .question-panel-test-summary {
        display: grid;
        gap: 12px;
        border-bottom: 1px solid #e5e7eb;
        margin: 0 0 16px;
        padding-bottom: 16px;
    }

    .student-main-test .question-panel-title-block h2,
    .student-main-test .question-nav-panel > h3,
    .student-main-test .question-hint-panel h2 {
        margin: 0;
        color: #0F2947;
        font-family: "Merriweather", serif;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.28;
    }

    .student-main-test .question-panel-title-block p {
        margin: 4px 0 0;
        color: #475569;
        font-size: 14px;
        line-height: 1.4;
    }

    .student-main-test .question-panel-stats,
    .student-main-test .question-nav-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .student-main-test .question-dots {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
        gap: 8px;
    }

    .student-main-test .question-dot {
        width: 42px;
        height: 42px;
        justify-self: center;
    }

    .student-main-test .question-rail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .student-main-test .rail-nav-button {
        min-width: 0;
        min-height: 44px;
    }
}

@media (min-width: 700px) and (max-width: 1023px) {
    .stitch-layout {
        padding-left: 24px;
        padding-right: 24px;
    }

    .stitch-camp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
        align-items: end;
    }

    .stitch-package-card {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        align-items: center;
    }

    .stitch-package-card-meta {
        grid-column: 2 / 3;
    }

    .stitch-package-card-action {
        grid-column: 3;
        width: auto;
        min-width: 132px;
    }

    .stitch-test-row {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }

    .stitch-row-action {
        grid-column: auto;
        width: auto;
        min-width: 124px;
    }

    .student-main-test .option-main {
        font-size: 16px;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .stitch-main-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 18px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .stitch-main-header .brand-wordmark {
        font-size: 21px;
    }

    .stitch-top-nav {
        justify-content: flex-start;
        gap: 4px;
        overflow: hidden;
    }

    .stitch-top-nav .student-top-nav-item {
        padding-left: 11px;
        padding-right: 11px;
    }

    .stitch-top-nav .student-top-nav-item.is-disabled {
        display: none;
    }

    .stitch-main-header .student-menu-actions {
        gap: 12px;
    }

    .stitch-main-header .student-admin-link {
        padding-left: 14px;
        padding-right: 14px;
    }

    .stitch-user-copy {
        display: none;
    }

    .stitch-avatar {
        width: 44px;
        height: 44px;
    }

    .stitch-layout {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 24px;
    }

    .auth-card h1 {
        font-size: 32px;
    }

    .stitch-main-header {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 16px 10px;
    }

    .stitch-main-header .brand-wordmark {
        display: grid;
        gap: 0;
        font-size: 16px;
    }

    .stitch-top-nav .student-top-nav-item.is-disabled {
        display: none;
    }

    .stitch-main-header .student-admin-link,
    .stitch-user-copy {
        display: none;
    }

    .stitch-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stitch-day-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .stitch-day-meta {
        justify-content: flex-start;
    }

    .stitch-day-meta small {
        display: none;
    }

    .stitch-day-goal {
        grid-template-columns: minmax(0, 1fr);
    }

    .stitch-day-goal > span {
        width: 38px;
        height: 38px;
    }

    .stitch-test-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .stitch-question-count,
    .stitch-progress-pill {
        justify-self: start;
    }

    .student-main-test .question-progress-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .student-main-test .question-progress-row > span {
        grid-column: 1 / -1;
    }

    .student-main-test .option-row {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .student-main-test .option-main {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 10px 12px;
    }

    .student-main-test .option-key {
        width: 32px;
        height: 32px;
    }

    .student-main-test .option-tools {
        width: 52px;
        min-width: 52px;
    }

    .student-main-test .question-rail-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .learning-modal {
        border-radius: 12px;
    }

    .learning-modal-tabs {
        padding: 12px 14px;
    }
}

@media (max-width: 760px) {
    body.admin-page .app-shell {
        width: 100%;
        padding: 14px 14px 56px;
    }

    .admin-menu-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .admin-menu-tabs,
    .admin-menu-quick,
    .package-strip {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-page-intro,
    .admin-topbar,
    .camp-builder-panel > .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .admin-page-intro h1,
    .admin-topbar h1 {
        font-size: 28px;
    }

    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 760px;
    }

    .inline-form,
    .package-access-form,
    .package-check-list {
        min-width: 0;
        flex-wrap: wrap;
    }

    .admin-modal-backdrop {
        align-items: stretch;
        padding: 12px;
    }

    .admin-modal,
    .admin-json-modal,
    .admin-test-modal {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 14px;
        padding: 16px;
    }
}

/* Flexible mobile/tablet navigation and feedback sheet */
html,
body {
    width: 100%;
    max-width: 100%;
}

.student-shell.stitch-shell {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-student-menu {
    display: none;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0;
}

.mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.option-feedback-modal-backdrop,
.hint-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    align-items: center;
    justify-items: center;
    background: rgba(5, 16, 31, 0.48);
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.option-feedback-modal {
    width: min(560px, 100%);
    max-height: min(620px, calc(100dvh - 36px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(15, 41, 71, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 72px rgba(5, 16, 31, 0.28);
}

.hint-modal {
    width: min(520px, 100%);
}

.hint-modal-mark svg {
    width: 20px;
    height: 20px;
}

.hint-modal-body {
    border-top: 3px solid #D4AF37;
}

.option-feedback-modal-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    background: #0B1E36;
    color: #ffffff;
    padding: 16px;
}

.option-feedback-modal .option-key {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.68);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.option-feedback-modal-head small {
    display: block;
    margin-bottom: 3px;
    color: #F7E3A0;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.option-feedback-modal-head h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
}

.option-feedback-modal-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0;
}

.option-feedback-modal-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.option-feedback-modal-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #FAF8F5;
    padding: 18px 20px 22px;
}

.option-feedback-modal-body p {
    margin: 0;
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.65;
}

.option-feedback-modal.is-correct .option-feedback-modal-head {
    background: #0F3D34;
}

.option-feedback-modal.is-wrong .option-feedback-modal-head {
    background: #5B1B25;
}

@media (min-width: 641px) and (max-width: 900px) {
    .stitch-main-header {
        padding-left: max(22px, env(safe-area-inset-left));
        padding-right: max(22px, env(safe-area-inset-right));
    }

    .stitch-top-nav .student-top-nav-item {
        min-height: 44px;
    }

    .student-main-test .test-workspace {
        gap: 18px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .stitch-top-nav .student-top-nav-item {
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    body {
        min-width: 0;
    }

    .student-shell.stitch-shell {
        overflow-x: hidden;
    }

    .stitch-main-header {
        min-height: 64px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    }

    .stitch-main-header .brand-lockup {
        gap: 9px;
    }

    .stitch-main-header .brand-mark {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .stitch-main-header .brand-wordmark {
        font-size: 15px;
        line-height: 1.05;
    }

    .stitch-top-nav {
        display: none;
    }

    .stitch-main-header .student-menu-actions {
        gap: 8px;
    }

    .stitch-main-header .student-admin-link,
    .stitch-user-chip {
        display: none;
    }

    .stitch-logout {
        width: 44px;
        height: 44px;
    }

    .mobile-menu-toggle {
        display: grid;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 210;
        background: rgba(5, 16, 31, 0.44);
    }

    .mobile-student-menu {
        position: fixed;
        top: calc(max(10px, env(safe-area-inset-top)) + 58px);
        right: max(12px, env(safe-area-inset-right));
        left: max(12px, env(safe-area-inset-left));
        z-index: 220;
        max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid rgba(212, 175, 55, 0.22);
        border-radius: 16px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 24px 56px rgba(5, 16, 31, 0.28);
        padding: 14px;
    }

    .student-shell.is-mobile-menu-open .mobile-menu-backdrop,
    .student-shell.is-mobile-menu-open .mobile-student-menu {
        display: block;
    }

    .mobile-menu-user {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #E5D5B5;
        padding: 0 0 12px;
    }

    .mobile-menu-user .stitch-avatar {
        width: 44px;
        height: 44px;
        background: #0B1E36;
        color: #ffffff;
    }

    .mobile-menu-user small {
        display: block;
        color: #B18E2D;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.15;
    }

    .mobile-menu-user strong {
        display: block;
        overflow: hidden;
        color: #0B1E36;
        font-size: 15px;
        font-weight: 850;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-menu-nav {
        display: grid;
        gap: 8px;
        padding-top: 12px;
    }

    .mobile-menu-item {
        min-height: 48px;
        width: 100%;
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: transparent;
        color: #0B1E36;
        padding: 11px 12px;
        text-align: left;
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-menu-item svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .mobile-menu-item.is-active {
        border-color: #E5D5B5;
        background: #FFF8E8;
        color: #0B1E36;
    }

    .mobile-menu-item.is-danger {
        color: #9F3341;
    }

    .mobile-menu-item:disabled {
        opacity: 0.48;
    }

    .stitch-layout {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
        padding-bottom: max(44px, env(safe-area-inset-bottom));
    }

    .student-main,
    .student-main-camp,
    .student-main-test {
        padding-top: 18px;
    }

    .student-main-test .test-topbar {
        margin-bottom: 14px;
    }

    .student-main-test .test-back-button {
        min-height: 44px;
        max-width: 100%;
        white-space: normal;
    }

    .student-main-test .question-card,
    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        border-radius: 14px;
        padding: 16px;
    }

    .student-main-test .question-copy h2 {
        margin-bottom: 18px;
        font-size: 22px;
        line-height: 1.32;
    }

    .student-main-test .option-row {
        grid-template-columns: minmax(0, 1fr) 52px;
        align-items: stretch;
    }

    .student-main-test .option-main {
        min-width: 0;
        min-height: 64px;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
        font-size: 15px;
        line-height: 1.42;
    }

    .student-main-test .option-main span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .student-main-test .option-tools {
        width: 52px;
        min-width: 52px;
        background: transparent;
    }

    .student-main-test .option-tool,
    .student-main-test .option-result-marker {
        width: 44px;
        height: 44px;
        border-radius: 999px;
    }

    .student-main-test .option-tool.is-active {
        background: rgba(15, 41, 71, 0.08);
    }

    .student-main-test .option-row.is-correct .option-tool.is-active,
    .student-main-test .option-row.is-wrong .option-tool.is-active {
        background: rgba(255, 255, 255, 0.62);
    }

    .student-main-test .option-feedback {
        display: none;
    }

    .option-feedback-modal-backdrop,
    .hint-modal-backdrop {
        align-items: end;
        justify-items: stretch;
        padding: 0;
    }

    .option-feedback-modal {
        width: 100%;
        max-height: min(72svh, 560px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 48px rgba(5, 16, 31, 0.28);
    }

    .option-feedback-modal-head {
        grid-template-columns: 38px minmax(0, 1fr) 44px;
        gap: 10px;
        padding: 14px max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
    }

    .option-feedback-modal .option-key {
        width: 36px;
        height: 36px;
    }

    .option-feedback-modal-head h2 {
        font-size: 16px;
    }

    .option-feedback-modal-body {
        padding: 16px max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }
}

@media (max-width: 480px) {
    .stitch-main-header {
        min-height: 60px;
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: 8px;
    }

    .stitch-main-header .brand-mark {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .stitch-main-header .brand-wordmark {
        font-size: 14px;
    }

    .stitch-logout,
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .student-main-test .question-copy h2 {
        font-size: 21px;
    }

    .student-main-test .question-card,
    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        padding: 14px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .stitch-main-header {
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
    }

    .stitch-main-header .brand-mark {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .stitch-main-header .brand-wordmark {
        display: flex;
        font-size: 18px;
        white-space: nowrap;
    }

    .stitch-top-nav {
        display: none;
    }

    .stitch-main-header .student-admin-link,
    .stitch-user-chip {
        display: none;
    }

    .stitch-main-header .student-menu-actions {
        gap: 8px;
    }

    .stitch-logout,
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .mobile-menu-toggle {
        display: grid;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 210;
        background: rgba(5, 16, 31, 0.38);
    }

    .mobile-student-menu {
        position: fixed;
        top: calc(max(12px, env(safe-area-inset-top)) + 62px);
        right: max(20px, env(safe-area-inset-right));
        left: auto;
        z-index: 220;
        width: min(360px, calc(100vw - 40px));
        max-height: calc(100dvh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid rgba(212, 175, 55, 0.22);
        border-radius: 16px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 24px 56px rgba(5, 16, 31, 0.24);
        padding: 14px;
    }

    .student-shell.is-mobile-menu-open .mobile-menu-backdrop,
    .student-shell.is-mobile-menu-open .mobile-student-menu {
        display: block;
    }

    .mobile-menu-user {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #E5D5B5;
        padding: 0 0 12px;
    }

    .mobile-menu-user .stitch-avatar {
        width: 44px;
        height: 44px;
        background: #0B1E36;
        color: #ffffff;
    }

    .mobile-menu-user small {
        display: block;
        color: #B18E2D;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.15;
    }

    .mobile-menu-user strong {
        display: block;
        overflow: hidden;
        color: #0B1E36;
        font-size: 15px;
        font-weight: 850;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-menu-nav {
        display: grid;
        gap: 8px;
        padding-top: 12px;
    }

    .mobile-menu-item {
        min-height: 48px;
        width: 100%;
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: transparent;
        color: #0B1E36;
        padding: 11px 12px;
        text-align: left;
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-menu-item svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .mobile-menu-item.is-active {
        border-color: #E5D5B5;
        background: #FFF8E8;
        color: #0B1E36;
    }

    .mobile-menu-item.is-danger {
        color: #9F3341;
    }

    .student-main,
    .student-main-camp,
    .student-main-test {
        padding-top: 20px;
    }
}

@media (max-width: 640px) {
    .student-main-test .test-side-rail {
        gap: 12px;
    }

    .student-main-test .question-nav-panel,
    .student-main-test .question-hint-panel {
        padding: 14px;
    }

    .student-main-test .question-panel-test-summary {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .student-main-test .question-panel-title-block h2,
    .student-main-test .question-nav-panel > h3,
    .student-main-test .question-hint-panel h2 {
        font-size: 17px;
        line-height: 1.24;
    }

    .student-main-test .question-panel-title-block p,
    .student-main-test .question-hint-panel p {
        font-size: 13px;
        line-height: 1.45;
    }

    .student-main-test .question-panel-stats {
        gap: 6px;
    }

    .student-main-test .question-panel-stats .stat-pill {
        min-height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .student-main-test .question-panel-stats .stat-pill svg {
        width: 15px;
        height: 15px;
    }

    .student-main-test .question-nav-legend {
        gap: 8px 10px;
        margin: 10px 0 12px;
        font-size: 12px;
    }

    .student-main-test .question-dots {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 12px;
        padding: 2px 2px 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .student-main-test .question-dots::-webkit-scrollbar {
        display: none;
    }

    .student-main-test .question-dot {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        justify-self: auto;
        font-size: 15px;
    }

    .student-main-test .question-rail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .student-main-test .rail-nav-button {
        min-height: 42px;
        padding: 0 10px;
        font-size: 14px;
    }

    .student-main-test .rail-nav-button span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .student-main-test .question-hint-head {
        gap: 10px;
        margin-bottom: 12px;
    }

    .student-main-test .question-hint-head > span {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
    }

    .student-main-test .question-hint-head svg {
        width: 20px;
        height: 20px;
    }

    .student-main-test .hint-open-button {
        min-height: 42px;
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .student-main-test .question-nav-legend span:nth-child(2),
    .student-main-test .question-nav-legend span:nth-child(3) {
        display: none;
    }

    .student-main-test .question-panel-title-block p {
        font-size: 12px;
    }

    .student-main-test .question-panel-stats .stat-pill {
        min-height: 30px;
        padding: 0 9px;
        font-size: 12px;
    }

    .student-main-test .question-dot {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .student-main-test .rail-nav-button {
        min-height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .stitch-camp-hero {
        gap: 12px;
        margin: 18px 0 16px;
    }

    .stitch-camp-hero h1 {
        margin-bottom: 6px;
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.12;
    }

    .stitch-camp-hero p {
        font-size: 14px;
        line-height: 1.45;
    }

    .stitch-hero-actions {
        gap: 8px;
    }

    .stitch-mini-timer,
    .stitch-package-switch {
        min-height: 48px;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .stitch-mini-timer strong {
        font-size: 18px;
        line-height: 1.1;
    }

    .stitch-mini-timer small,
    .stitch-mini-timer em,
    .stitch-package-switch {
        font-size: 12px;
    }

    .stitch-mini-timer i {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .stitch-program-list {
        gap: 10px;
    }

    .stitch-day-card {
        border-radius: 14px;
    }

    .stitch-day-summary {
        gap: 10px;
        padding: 12px 14px;
    }

    .stitch-day-heading {
        gap: 2px;
    }

    .stitch-day-heading strong {
        font-size: 17px;
        line-height: 1.1;
    }

    .stitch-day-heading em {
        font-size: 15px;
        line-height: 1.25;
    }

    .stitch-day-meta b {
        min-height: 26px;
        padding: 4px 9px;
        font-size: 11px;
    }

    .stitch-day-meta i {
        width: 24px;
        height: 24px;
    }

    .stitch-day-goal {
        gap: 12px;
        padding: 14px;
    }

    .stitch-day-goal > span {
        width: 36px;
        height: 36px;
    }

    .stitch-day-goal > span svg {
        width: 19px;
        height: 19px;
    }

    .stitch-day-goal strong {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .stitch-day-goal p {
        font-size: 14px;
        line-height: 1.5;
    }

    .stitch-test-row {
        gap: 8px 10px;
        padding: 12px 14px;
    }

    .stitch-test-kind {
        gap: 10px;
    }

    .stitch-test-kind i {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .stitch-test-kind i svg {
        width: 18px;
        height: 18px;
    }

    .stitch-test-copy {
        gap: 3px;
    }

    .stitch-test-kind strong {
        font-size: 13px;
    }

    .stitch-test-copy em {
        font-size: 14px;
        line-height: 1.32;
    }

    .stitch-question-count,
    .stitch-progress-pill {
        font-size: 11px;
    }

    .stitch-progress-pill {
        min-height: 28px;
        padding: 4px 8px;
    }

    .stitch-row-action {
        min-height: 40px;
        border-radius: 10px;
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stitch-camp-hero {
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .stitch-camp-hero h1 {
        font-size: 22px;
    }

    .stitch-camp-hero p {
        font-size: 13px;
    }

    .stitch-day-summary {
        padding: 11px 12px;
    }

    .stitch-day-heading strong {
        font-size: 16px;
    }

    .stitch-day-heading em {
        font-size: 14px;
    }

    .stitch-day-goal {
        padding: 12px;
    }

    .stitch-day-goal p {
        font-size: 13px;
        line-height: 1.45;
    }

    .stitch-test-row {
        padding: 11px 12px;
    }

    .stitch-test-kind {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .stitch-day-card[open] {
        box-shadow: 0 10px 24px rgba(15, 41, 71, 0.08);
    }

    .stitch-day-card[open] > .stitch-day-summary {
        padding-bottom: 14px;
    }

    .stitch-day-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .stitch-day-heading {
        gap: 4px;
    }

    .stitch-day-meta {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .stitch-day-meta small {
        flex-basis: 100%;
        order: 3;
        margin-top: 2px;
        line-height: 1.4;
    }

    .stitch-day-card[open] .stitch-day-meta small {
        color: rgba(255, 255, 255, 0.74);
    }

    .stitch-day-body {
        background: #ffffff;
    }

    .stitch-day-goal {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        border-bottom: 1px solid #efe2c2;
        background: #fffaf0;
    }

    .stitch-day-goal > span {
        align-self: start;
        margin-top: 2px;
        background: #fffdf7;
    }

    .stitch-day-goal strong {
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .stitch-day-goal p {
        color: #475467;
        line-height: 1.55;
    }

    .stitch-test-list {
        background: #ffffff;
    }

    .stitch-test-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "kind kind"
            "question progress"
            "action action";
        gap: 10px 10px;
        align-items: start;
        padding: 14px;
        background: #ffffff;
    }

    .stitch-test-kind {
        grid-area: kind;
        align-items: flex-start;
        gap: 12px;
    }

    .stitch-test-kind i {
        margin-top: 2px;
    }

    .stitch-test-copy {
        display: grid;
        gap: 4px;
    }

    .stitch-test-kind strong {
        font-size: 14px;
        line-height: 1.2;
    }

    .stitch-test-copy em {
        font-size: 15px;
        line-height: 1.38;
    }

    .stitch-question-count,
    .stitch-progress-pill {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
    }

    .stitch-question-count {
        grid-area: question;
        background: #f4f6f8;
        color: #526173;
    }

    .stitch-progress-pill {
        grid-area: progress;
        justify-self: end;
    }

    .stitch-row-action {
        grid-area: action;
        width: 100%;
        min-height: 44px;
        margin-top: 2px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 800;
    }
}

@media (max-width: 480px) {
    .stitch-day-meta small {
        font-size: 12px;
    }

    .stitch-test-row {
        padding: 12px;
    }

    .stitch-test-copy em {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .stitch-day-card[open] {
        border-color: #d8c18a;
    }

    .stitch-day-card[open] > .stitch-day-summary {
        padding: 12px 14px;
    }

    .stitch-day-card[open] .stitch-day-meta small {
        display: none;
    }

    .stitch-day-goal {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid #eadbb7;
        background: #fffaf0;
    }

    .stitch-day-goal > span,
    .stitch-day-goal > i {
        display: none;
    }

    .stitch-day-goal strong {
        margin: 0 0 4px;
        color: #8a6818;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0;
    }

    .stitch-day-goal p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        color: #475467;
        font-size: 13px;
        line-height: 1.45;
    }

    .stitch-test-row {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "kind progress action";
        align-items: center;
        gap: 7px 10px;
        padding: 12px 14px;
    }

    .stitch-test-kind {
        grid-area: kind;
        min-width: 0;
        align-items: center;
        gap: 10px;
    }

    .stitch-test-kind i {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        margin-top: 0;
    }

    .stitch-test-kind i svg {
        width: 17px;
        height: 17px;
    }

    .stitch-test-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .stitch-test-title-line {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 3px;
    }

    .stitch-test-kind strong {
        display: none;
    }

    .stitch-test-copy em {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.28;
    }

    .stitch-question-count {
        display: none;
    }

    .stitch-progress-pill-inline {
        display: none;
    }

    .stitch-progress-pill-rail.is-empty,
    .stitch-progress-pill-rail.is-progress,
    .stitch-progress-pill-rail.is-completed {
        display: inline-flex;
        grid-area: progress;
        justify-self: end;
        width: max-content;
        min-height: 24px;
        margin-top: 0;
        padding: 0 8px;
        font-size: 11px;
    }

    .stitch-row-action {
        grid-area: action;
        width: auto;
        min-width: 82px;
        min-height: 36px;
        margin-top: 0;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .stitch-progress-pill-rail + .stitch-row-action {
        align-self: center;
    }
}

@media (max-width: 390px) {
    .stitch-test-row {
        padding: 11px 12px;
    }

    .stitch-test-kind {
        gap: 8px;
    }

    .stitch-test-kind i {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .stitch-row-action {
        min-width: 76px;
        padding: 0 8px;
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .stitch-program-list {
        gap: 8px;
    }

    .stitch-day-card {
        border-radius: 12px;
    }

    .stitch-day-summary {
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 11px 12px 11px 14px;
    }

    .stitch-day-card[open] > .stitch-day-summary {
        min-height: 62px;
        padding: 11px 12px 11px 14px;
    }

    .stitch-day-heading {
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 9px;
    }

    .stitch-day-heading strong {
        min-width: 48px;
        color: #b8913a;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }

    .stitch-day-card[open] .stitch-day-heading strong {
        color: #f6dfa0;
    }

    .stitch-day-heading em {
        min-width: 0;
        overflow: hidden;
        color: #06162d;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stitch-day-card[open] .stitch-day-heading em {
        color: #ffffff;
    }

    .stitch-day-meta {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    .stitch-day-meta b {
        min-height: 30px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 11px;
        line-height: 1;
    }

    .stitch-day-meta i {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 999px;
    }

    .stitch-day-card[open] .stitch-day-meta i {
        background: rgba(255, 255, 255, 0.08);
    }

    .stitch-day-meta svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 390px) {
    .stitch-day-summary,
    .stitch-day-card[open] > .stitch-day-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding-right: 10px;
    }

    .stitch-day-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .stitch-day-heading strong {
        min-width: 0;
    }

    .stitch-day-heading em {
        white-space: normal;
    }
}

.stitch-day-detail-topbar {
    margin: 14px 0 14px;
}

.student-main-day-detail .test-back-button {
    min-height: 42px;
    border: 1px solid #e5d5b5;
    border-radius: 999px;
    background: #ffffff;
    color: #0b1e36;
    box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 850;
}

.student-main-day-detail .test-back-button:hover {
    border-color: #d4af37;
    color: #0b1e36;
}

.stitch-day-detail-hero {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid #123257;
    border-radius: 14px;
    background: #0b1e36;
    color: #ffffff;
    padding: 16px;
}

.stitch-day-detail-hero span {
    flex: 0 0 auto;
    color: #f6dfa0;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.stitch-day-detail-hero h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 21px;
    line-height: 1.14;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stitch-day-detail-hero small {
    flex: 0 0 auto;
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: #ffffff;
    color: #0b1e36;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.stitch-day-detail-panel {
    overflow: hidden;
    border: 1px solid #e5d5b5;
    border-radius: 14px;
    background: #ffffff;
}

.student-main-day-detail .stitch-day-detail-hero {
    margin-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.student-main-day-detail .stitch-day-detail-panel {
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

@media (min-width: 641px) and (max-width: 1180px) {
    .student-main-day-detail .stitch-day-detail-hero {
        min-height: 68px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .student-main-day-detail .stitch-day-detail-hero span {
        flex: 0 0 auto;
        font-size: 20px;
        white-space: nowrap;
    }

    .student-main-day-detail .stitch-day-detail-hero h1 {
        font-size: 19px;
        line-height: 1.2;
    }

    .student-main-day-detail .stitch-day-detail-hero small {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .student-main-camp:not(.student-main-day-detail) .stitch-day-card > .stitch-day-body {
        display: none;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] {
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] > .stitch-day-summary {
        background: #fdfbf7;
        color: #0b1e36;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-heading strong {
        color: #b8913a;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-heading em {
        color: #06162d;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-meta b {
        border-color: #e5d5b5;
        background: #ffffff;
        color: #0b1e36;
        box-shadow: none;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-meta i {
        background: transparent;
        color: #0b1e36;
        transform: none;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-summary {
        cursor: pointer;
    }

    .student-main-day-detail .stitch-day-detail-topbar {
        margin: 10px 0 12px;
    }

    .student-main-day-detail .test-back-button {
        min-height: 40px;
        border-color: #e5d5b5;
        border-radius: 999px;
        background: #ffffff;
        color: #0b1e36;
        padding: 0 13px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .student-main-camp:not(.student-main-day-detail) .stitch-day-card > .stitch-day-body {
        display: none;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] {
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] > .stitch-day-summary {
        background: #fdfbf7;
        color: #0b1e36;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-heading strong {
        color: #b8913a;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-heading em {
        color: #06162d;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-meta b {
        border-color: #e5d5b5;
        background: #ffffff;
        color: #0b1e36;
        box-shadow: none;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-card[open] .stitch-day-meta i {
        background: transparent;
        color: #0b1e36;
        transform: none;
    }

    .student-main-camp:not(.student-main-day-detail) .stitch-day-summary {
        cursor: pointer;
    }

    .student-main-day-detail .stitch-day-detail-topbar {
        margin: 10px 0 12px;
    }

    .student-main-day-detail .test-back-button {
        min-height: 40px;
        border-color: #e5d5b5;
        border-radius: 999px;
        background: #ffffff;
        color: #0b1e36;
        padding: 0 13px;
        font-size: 13px;
    }

    .student-main-day-detail .stitch-day-detail-hero {
        min-height: 66px;
        gap: 8px;
        margin-bottom: 0;
        padding: 13px 14px;
    }

    .student-main-day-detail .stitch-day-detail-hero span {
        font-size: 18px;
    }

    .student-main-day-detail .stitch-day-detail-hero h1 {
        font-size: 17px;
    }

    .student-main-day-detail .stitch-day-detail-hero small {
        min-height: 26px;
        padding: 0 9px;
        font-size: 11px;
    }

    .student-main-day-detail .stitch-day-goal {
        border-bottom-color: #eadbb7;
    }
}

@keyframes mobileViewForward {
    from {
        opacity: 0;
        transform: translate3d(18px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mobileViewBack {
    from {
        opacity: 0;
        transform: translate3d(-16px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mobileViewSoft {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes wideViewForward {
    from {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes wideViewBack {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes wideAccordionReveal {
    from {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 640px) {
    .student-main.view-transition-forward {
        animation: mobileViewForward 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .student-main.view-transition-back {
        animation: mobileViewBack 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .student-main.view-transition-soft {
        animation: mobileViewSoft 220ms ease-out both;
    }

    .stitch-package-card,
    .stitch-day-summary,
    .stitch-test-row,
    .test-back-button {
        transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
    }

    .stitch-package-card:active,
    .stitch-day-summary:active,
    .stitch-test-row:active,
    .test-back-button:active {
        transform: scale(0.985);
    }

    .student-main-day-detail .stitch-day-detail-hero,
    .student-main-day-detail .stitch-day-detail-panel,
    .student-main-test.view-transition-forward .question-card,
    .student-main-test.view-transition-back .question-card,
    .student-main-test.view-transition-soft .question-card {
        animation: mobileViewSoft 260ms ease-out both;
    }

    .student-main-day-detail .stitch-day-detail-panel {
        animation-delay: 45ms;
    }
}

@media (min-width: 641px) {
    .student-main.view-transition-forward {
        animation: wideViewForward 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .student-main.view-transition-back,
    .student-main.view-transition-soft {
        animation: wideViewBack 210ms ease-out both;
    }

    .stitch-day-card[open] > .stitch-day-body,
    .stitch-day-card[open] .stitch-test-list {
        animation: wideAccordionReveal 220ms ease-out both;
    }

    .stitch-package-card,
    .stitch-day-summary,
    .stitch-test-row,
    .test-back-button {
        transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
    }

    .stitch-package-card:active,
    .stitch-day-summary:active,
    .stitch-test-row:active,
    .test-back-button:active {
        transform: scale(0.992);
    }

    .student-main-test.view-transition-forward .question-card,
    .student-main-test.view-transition-back .question-card,
    .student-main-test.view-transition-soft .question-card {
        animation: wideViewForward 220ms ease-out both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-main.view-transition-forward,
    .student-main.view-transition-back,
    .student-main.view-transition-soft,
    .student-main-day-detail .stitch-day-detail-hero,
    .student-main-day-detail .stitch-day-detail-panel,
    .student-main-test .question-card,
    .stitch-day-card[open] > .stitch-day-body,
    .stitch-day-card[open] .stitch-test-list,
    .learning-open-button.is-learning-ready,
    .mobile-learning-trigger.is-learning-ready {
        animation: none !important;
    }

    .stitch-package-card,
    .stitch-day-summary,
    .stitch-test-row,
    .test-back-button {
        transition: none !important;
    }
}

.mobile-question-nav-dock,
.mobile-learning-trigger,
.mobile-question-actions,
.mobile-question-counter,
.mobile-test-top-actions,
.question-nav-sheet-head,
.question-nav-backdrop {
    display: none;
}

@keyframes mobileSheetUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mobileDrawerIn {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 640px) {
    .student-main-test {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .student-main-test .test-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .student-main-test .test-back-button {
        min-width: 0;
        justify-self: start;
    }

    .mobile-test-top-actions {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .student-main-test .test-back-button span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-question-counter {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid rgba(212, 175, 55, 0.45);
        border-radius: 999px;
        background: #0B1E36;
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(5, 16, 31, 0.16);
        padding: 0 12px;
        font-size: 13px;
        font-weight: 950;
        white-space: nowrap;
        cursor: pointer;
    }

    .mobile-question-counter svg {
        width: 17px;
        height: 17px;
        fill: currentColor;
    }

    .mobile-question-actions {
        position: fixed;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(14px, env(safe-area-inset-left));
        z-index: 225;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        backdrop-filter: none;
    }

    .mobile-question-step-button {
        min-width: 0;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #D7C49E;
        border-radius: 14px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 12px 30px rgba(5, 16, 31, 0.12);
        padding: 0 12px;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.1;
    }

    .mobile-question-step-button.is-primary {
        border-color: #0B1E36;
        background: #0B1E36;
        color: #ffffff;
        box-shadow: 0 14px 32px rgba(5, 16, 31, 0.22);
    }

    .mobile-question-step-button:disabled {
        opacity: 0.45;
    }

    .mobile-question-step-button svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
        flex: 0 0 auto;
    }

    .student-main-test .test-side-rail {
        display: block;
    }

    .student-main-test .question-hint-panel {
        display: none;
    }

    .student-main-test .question-nav-panel {
        position: fixed;
        right: max(0px, env(safe-area-inset-right));
        bottom: 0;
        left: max(0px, env(safe-area-inset-left));
        z-index: 260;
        width: auto;
        max-height: min(76svh, 560px);
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
        background: #ffffff;
        box-shadow: 0 -22px 58px rgba(5, 16, 31, 0.3);
        padding: 14px max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, 112%, 0);
        transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
    }

    .student-main-test .question-nav-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .question-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 250;
        display: block;
        border: 0;
        background: rgba(5, 16, 31, 0.42);
        padding: 0;
    }

    .question-nav-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid #e5e7eb;
        margin: -2px 0 12px;
        padding: 0 0 12px;
    }

    .question-nav-sheet-head strong {
        color: #0F2947;
        font-size: 16px;
        font-weight: 900;
    }

    .question-nav-sheet-head button {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #ffffff;
        color: #0F2947;
    }

    .question-nav-sheet-head button svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .student-main-test .question-nav-panel .question-panel-test-summary {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .student-main-test .question-nav-panel > h3 {
        font-size: 16px;
    }

    .student-main-test .question-dots {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        margin-bottom: 14px;
        padding: 0;
    }

    .student-main-test .question-dot {
        width: 100%;
        min-width: 0;
        height: 42px;
        flex: none;
        justify-self: stretch;
    }

    .mobile-question-nav-dock {
        display: none;
    }

    .mobile-question-nav-button {
        width: auto;
        min-height: 46px;
        display: inline-grid;
        grid-template-columns: auto auto auto;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 999px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 14px 34px rgba(5, 16, 31, 0.2);
        padding: 0 12px 0 8px;
        pointer-events: auto;
        text-align: left;
    }

    .mobile-question-nav-button.is-open {
        border-color: rgba(212, 175, 55, 0.72);
        background: #FFF8E8;
    }

    .mobile-question-nav-index {
        min-width: 0;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #D4AF37;
        color: #0B1E36;
        padding: 0 10px;
        font-size: 13px;
        font-weight: 950;
    }

    .mobile-question-nav-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .mobile-question-nav-copy strong {
        overflow: hidden;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-question-nav-copy small {
        display: none;
    }

    .mobile-question-nav-icon {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(15, 41, 71, 0.08);
        color: #0B1E36;
    }

    .mobile-question-nav-icon svg {
        width: 17px;
        height: 17px;
        fill: currentColor;
    }

    .mobile-learning-trigger {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 999px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 10px 24px rgba(5, 16, 31, 0.14);
        padding: 0 12px;
        font-size: 13px;
        font-weight: 900;
    }

    .mobile-learning-trigger svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .mobile-question-nav-button {
        min-height: 46px;
        display: inline-flex;
        grid-template-columns: none;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-question-nav-button svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .learning-modal-backdrop {
        z-index: 280;
        align-items: stretch;
        justify-items: end;
        padding: 0;
        background: rgba(5, 16, 31, 0.42);
    }

    .learning-modal {
        width: min(88vw, 368px);
        height: 100dvh;
        min-height: 100svh;
        max-height: none;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 20px 0 0 20px;
        box-shadow: -24px 0 58px rgba(5, 16, 31, 0.32);
        animation: mobileDrawerIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .learning-modal-header {
        grid-template-columns: 42px minmax(0, 1fr) 40px;
        gap: 10px;
        padding: max(16px, env(safe-area-inset-top)) 14px 14px;
    }

    .learning-modal-mark {
        width: 42px;
        height: 42px;
    }

    .learning-modal-header h2 {
        font-size: 19px;
    }

    .learning-modal-header p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .learning-modal-tabs {
        padding: 12px 12px;
    }

    .learning-modal-body {
        padding: 16px 14px max(20px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .student-main-test .question-dots {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mobile-test-top-actions {
        gap: 6px;
    }

    .mobile-question-counter {
        padding: 0 10px;
    }

    .mobile-learning-trigger {
        width: 46px;
        padding: 0;
    }

    .mobile-question-nav-button {
        width: 46px;
        padding: 0;
    }

    .mobile-question-nav-button span,
    .mobile-learning-trigger span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-main-test .question-nav-panel,
    .learning-modal {
        animation: none !important;
        transition: none !important;
    }
}

/* Tablet question experience: mobile-like controls with a landscape side panel */
@media (min-width: 641px) and (max-width: 1180px) {
    .student-main-test {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .student-main-test .test-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .student-main-test .test-back-button {
        min-width: 0;
        justify-self: start;
    }

    .student-main-test .test-back-button span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-test-top-actions {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .mobile-learning-trigger,
    .mobile-question-counter {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(212, 175, 55, 0.42);
        border-radius: 999px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 10px 24px rgba(5, 16, 31, 0.12);
        padding: 0 14px;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-question-counter {
        border-color: rgba(11, 30, 54, 0.2);
        background: #0B1E36;
        color: #ffffff;
    }

    .mobile-learning-trigger svg,
    .mobile-question-counter svg {
        width: 19px;
        height: 19px;
        fill: currentColor;
        flex: 0 0 auto;
    }

    .student-main-test .question-hint-panel {
        display: none;
    }

    .student-main-test .question-nav-panel .question-rail-actions {
        display: none;
    }

    .student-main-test .option-feedback {
        display: none;
    }

    .mobile-question-actions {
        position: fixed;
        right: max(24px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        left: max(24px, env(safe-area-inset-left));
        z-index: 225;
        width: min(720px, calc(100vw - 48px));
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 0 auto;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .mobile-question-step-button {
        min-width: 0;
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid #D7C49E;
        border-radius: 14px;
        background: #ffffff;
        color: #0B1E36;
        box-shadow: 0 14px 34px rgba(5, 16, 31, 0.14);
        padding: 0 16px;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.1;
    }

    .mobile-question-step-button.is-primary {
        border-color: #0B1E36;
        background: #0B1E36;
        color: #ffffff;
        box-shadow: 0 16px 36px rgba(5, 16, 31, 0.22);
    }

    .mobile-question-step-button:disabled {
        opacity: 0.45;
    }

    .mobile-question-step-button svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
        flex: 0 0 auto;
    }

    .question-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 250;
        display: block;
        border: 0;
        background: rgba(5, 16, 31, 0.42);
        padding: 0;
    }

    .question-nav-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid #e5e7eb;
        margin: -2px 0 14px;
        padding: 0 0 12px;
    }

    .question-nav-sheet-head strong {
        color: #0F2947;
        font-size: 16px;
        font-weight: 900;
    }

    .question-nav-sheet-head button {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #ffffff;
        color: #0F2947;
    }

    .question-nav-sheet-head button svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .learning-modal-backdrop,
    .option-feedback-modal-backdrop,
    .hint-modal-backdrop {
        z-index: 280;
        align-items: stretch;
        justify-items: end;
        padding: 0;
        background: rgba(5, 16, 31, 0.42);
    }

    .learning-modal,
    .option-feedback-modal {
        width: min(430px, 86vw);
        height: 100dvh;
        min-height: 100svh;
        max-height: none;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 20px 0 0 20px;
        box-shadow: -24px 0 58px rgba(5, 16, 31, 0.3);
        animation: mobileDrawerIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@media (min-width: 641px) and (max-width: 899px),
       (min-width: 641px) and (max-width: 1180px) and (orientation: portrait) {
    .student-main-test .test-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .student-main-test .test-side-rail {
        display: block;
    }

    .student-main-test .question-nav-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 260;
        width: min(430px, 86vw);
        max-height: none;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-radius: 20px 0 0 20px;
        background: #ffffff;
        box-shadow: -24px 0 58px rgba(5, 16, 31, 0.3);
        padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
        opacity: 0;
        pointer-events: none;
        transform: translate3d(100%, 0, 0);
        transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
    }

    .student-main-test .question-nav-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .student-main-test .question-dots {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 0;
    }

    .student-main-test .question-dot {
        width: 100%;
        min-width: 0;
        height: 44px;
        justify-self: stretch;
    }
}

@media (min-width: 900px) and (max-width: 1180px) and (max-height: 900px) {
    .student-main-test {
        flex-basis: 100%;
        width: min(100%, calc(100vw - 48px));
        max-width: 1120px;
    }

    .student-main-test .test-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(244px, 284px);
        gap: 14px;
        align-items: start;
    }

    .student-main-test .question-card {
        padding: 22px;
    }

    .student-main-test .test-side-rail {
        display: block;
        position: sticky;
        top: 88px;
    }

    .student-main-test .question-nav-panel {
        position: static;
        width: auto;
        max-height: calc(100dvh - 172px);
        overflow: auto;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(15, 41, 71, 0.05);
        padding: 16px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .student-main-test .question-nav-panel.is-open {
        transform: none;
    }

    .question-nav-backdrop,
    .question-nav-sheet-head {
        display: none;
    }

    .student-main-test .question-panel-test-summary {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .student-main-test .question-panel-title-block h2,
    .student-main-test .question-nav-panel > h3 {
        font-size: 16px;
        line-height: 1.25;
    }

    .student-main-test .question-panel-title-block p {
        font-size: 12px;
        line-height: 1.35;
    }

    .student-main-test .question-panel-stats,
    .student-main-test .question-nav-legend {
        gap: 6px;
    }

    .student-main-test .question-panel-stats .stat-pill {
        min-height: 30px;
        padding: 0 9px;
        font-size: 12px;
    }

    .student-main-test .question-nav-legend {
        margin: 10px 0 12px;
        font-size: 12px;
    }

    .student-main-test .question-nav-legend span:nth-child(2),
    .student-main-test .question-nav-legend span:nth-child(3) {
        display: none;
    }

    .student-main-test .question-dots {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 0;
    }

    .student-main-test .question-dot {
        width: 100%;
        min-width: 0;
        height: 40px;
        justify-self: stretch;
        font-size: 14px;
    }

    .mobile-question-counter {
        cursor: default;
    }
}

/* Question navigation states: correct, wrong, blank, and current are distinct. */
.student-main-test .legend-dot.is-correct,
.student-main-test .legend-dot.is-answered {
    border-color: #10B981;
    background: #10B981;
}

.student-main-test .legend-dot.is-wrong {
    border-color: #EF4444;
    background: #EF4444;
}

.student-main-test .legend-dot.is-current {
    border-color: #0F2947;
    background: #ffffff;
    box-shadow: inset 0 0 0 3px #0F2947;
}

.student-main-test .question-nav-legend span {
    display: inline-flex;
}

.student-main-test .question-dot.is-correct {
    border-color: #10B981;
    background: #10B981;
    color: #ffffff;
}

.student-main-test .question-dot.is-wrong {
    border-color: #EF4444;
    background: #EF4444;
    color: #ffffff;
}

.student-main-test .question-dot.is-current {
    border-color: #0F2947;
    box-shadow: 0 0 0 3px rgba(15, 41, 71, 0.2), 0 6px 14px rgba(15, 41, 71, 0.2);
    transform: scale(1.08);
}

.student-main-test .question-dot.is-current:not(.is-correct):not(.is-wrong):not(.is-answered) {
    background: #0F2947;
    color: #ffffff;
}

.student-main-test .question-dot.is-current.is-correct {
    background: #10B981;
    color: #ffffff;
}

.student-main-test .question-dot.is-current.is-wrong {
    background: #EF4444;
    color: #ffffff;
}

@keyframes optionFeedbackPopupIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Compact option tools: keep eliminate/explanation icons optically centered in the card cell. */
@media (max-width: 1023px),
       (min-width: 641px) and (max-width: 1180px) and (max-height: 900px),
       (min-width: 641px) and (max-width: 1180px) and (orientation: portrait) {
    .student-main-test .option-row {
        align-items: stretch;
    }

    .student-main-test .option-tools {
        align-self: stretch;
        justify-self: stretch;
        min-height: inherit;
        display: grid;
        place-items: center;
        align-content: center;
        justify-content: center;
        padding: 0;
        line-height: 0;
    }

    .student-main-test .option-tool,
    .student-main-test .option-result-marker {
        position: static;
        inset: auto;
        align-self: center;
        justify-self: center;
        display: grid;
        place-items: center;
        margin: 0;
        padding: 0;
        line-height: 0;
    }

    .student-main-test .option-tool svg,
    .student-main-test .option-result-marker svg {
        display: block;
        margin: 0;
    }

    .option-feedback-modal-backdrop,
    .hint-modal-backdrop {
        z-index: 285;
        align-items: center;
        justify-items: center;
        padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
        background: rgba(5, 16, 31, 0.48);
    }

    .option-feedback-modal {
        width: min(560px, calc(100vw - 36px));
        height: auto;
        min-height: 0;
        max-height: min(620px, calc(100dvh - 36px));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        border: 1px solid rgba(15, 41, 71, 0.12);
        border-radius: 18px;
        box-shadow: 0 24px 72px rgba(5, 16, 31, 0.28);
        animation: optionFeedbackPopupIn 180ms ease-out both;
    }

    .option-feedback-modal-body {
        max-height: min(46svh, 360px);
        overflow: auto;
    }
}

@media (max-width: 640px) {
    .option-feedback-modal {
        width: min(430px, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
        border-radius: 16px;
    }

    .option-feedback-modal-head {
        min-height: auto;
        grid-template-columns: 38px minmax(0, 1fr) 42px;
        gap: 10px;
        padding: 14px;
    }

    .option-feedback-modal-body {
        max-height: min(48svh, 340px);
        padding: 16px 16px 18px;
    }
}

/* JSON-authored rich text: only explicit **bold** and <u>underline</u> carry emphasis. */
.rich-text {
    overflow-wrap: anywhere;
}

.rich-text p {
    margin: 0;
}

.rich-text p + p {
    margin-top: 0.9em;
}

.rich-text strong {
    font-weight: 850;
}

.rich-text u {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.student-main-test .question-copy .question-stem {
    max-width: none;
    margin: 0 0 18px;
    color: #0F2947;
    font-family: "Inter", sans-serif;
    font-size: clamp(17px, 1.35vw, 20px);
    font-weight: 500;
    line-height: 1.58;
    letter-spacing: 0;
}

.student-main-test .question-copy .question-stem strong {
    font-weight: 850;
}

.student-main-test .option-main {
    font-weight: 500;
}

.student-main-test .option-main .option-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.student-main-test .option-main .option-text strong {
    font-weight: 820;
}

.student-main-test .option-main .option-key {
    font-weight: 850;
}

.study-note-copy {
    color: inherit;
}

.study-note-copy p {
    margin: 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.6;
}

.learning-modal .study-note-copy {
    grid-column: 1 / -1;
    color: #334155;
}

.learning-modal .study-note-copy p {
    color: inherit;
    line-height: 1.65;
}

.option-explanation-title {
    min-width: 0;
    color: #0F2947;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.option-explanation-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.option-selection-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #0F2947;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.option-explanation-title strong {
    font-weight: 850;
}

.option-explanation-copy {
    margin-top: 6px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.option-feedback-modal-body.rich-text p {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.65;
}

.option-feedback .rich-text strong,
.option-explanation-copy strong,
.study-note-copy strong {
    width: auto;
    height: auto;
    display: inline;
    overflow: visible;
    position: static;
    margin: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 850;
    line-height: inherit;
    white-space: normal;
}

.option-feedback .rich-text strong::before,
.option-explanation-copy strong::before,
.study-note-copy strong::before {
    content: none;
    display: none;
}

.stitch-progress-pill-inline {
    display: none !important;
}

@media (max-width: 640px) {
    .stitch-progress-pill-inline.is-empty,
    .stitch-progress-pill-inline.is-progress,
    .stitch-progress-pill-inline.is-completed {
        display: none !important;
    }

    .stitch-progress-pill-rail.is-empty,
    .stitch-progress-pill-rail.is-progress,
    .stitch-progress-pill-rail.is-completed {
        display: inline-flex !important;
    }
}

/* Demo offer: mobile-first campaign landing page with real customer feedback. */
.demo-offer-page {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #ffffff;
    color: #071d55;
    font-family: "Lexend", "Inter", sans-serif;
}

.demo-offer-page * {
    box-sizing: border-box;
}

.demo-offer-page button,
.demo-offer-page a {
    -webkit-tap-highlight-color: transparent;
}

.demo-offer {
    min-height: 100vh;
    padding: 0;
}

.demo-offer-shell {
    width: min(100%, 940px);
    margin: 0 auto;
    padding: 44px 26px 32px;
    background: #ffffff;
    box-shadow: 0 0 38px rgba(15, 41, 71, 0.08);
}

.demo-offer-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 8px 36px;
    text-align: center;
}

.demo-offer-hero::before {
    content: "";
    width: 260px;
    height: 260px;
    position: absolute;
    top: -92px;
    left: -92px;
    opacity: 0.48;
    background: repeating-linear-gradient(
        139deg,
        transparent 0,
        transparent 31px,
        rgba(250, 47, 30, 0.56) 32px,
        transparent 33px,
        transparent 54px
    );
    pointer-events: none;
}

.demo-offer-hero-lines {
    width: 240px;
    height: 240px;
    position: absolute;
    top: -88px;
    right: -90px;
    opacity: 0.48;
    background: repeating-linear-gradient(
        43deg,
        transparent 0,
        transparent 31px,
        rgba(250, 47, 30, 0.56) 32px,
        transparent 33px,
        transparent 54px
    );
    pointer-events: none;
}

.demo-offer-brand {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #d59500;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.demo-offer-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #030a32;
    font-size: clamp(44px, 11vw, 76px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.demo-offer-subtitle {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: #030a32;
    font-size: clamp(24px, 5.8vw, 40px);
    font-weight: 500;
    line-height: 1.2;
}

.demo-flash-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 26, 30, 0.34);
    border-radius: 18px;
    margin-top: 0;
    padding: 14px 16px;
    background:
        linear-gradient(135deg, rgba(255, 75, 79, 0.98), rgba(255, 48, 52, 1)),
        #ff363a;
    color: #ffffff;
    box-shadow:
        0 18px 32px rgba(221, 58, 36, 0.23),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.demo-flash-main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.demo-flash-heading {
    position: relative;
    margin-top: 20px;
    padding-bottom: 16px;
    color: #ffffff;
    font-size: clamp(29px, 7.2vw, 48px);
    line-height: 1.03;
}

.demo-flash-heading strong {
    display: block;
    font-weight: 900;
}

.demo-flash-heading::after {
    content: "";
    width: 145px;
    height: 8px;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffe15d, rgba(255, 225, 93, 0));
}

.demo-flash-badge {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border-radius: 999px;
    padding: 9px 20px 9px 10px;
    background: #ffef91;
    color: #111827;
    font-size: clamp(16px, 3.7vw, 29px);
    font-weight: 900;
    text-transform: none;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(197, 26, 30, 0.13);
}

.demo-flash-note {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 9px 0 0;
    color: #ffffff;
    font-size: clamp(13px, 2.8vw, 18px);
    font-weight: 800;
    line-height: 1.25;
}

.demo-flash-badge svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    padding: 8px;
    background: #ef3d41;
    color: #ffffff;
    fill: currentColor;
}

.demo-launch-copy {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.demo-launch-gift-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #ffffff;
}

.demo-launch-gift-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.demo-launch-copy p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(18px, 4.3vw, 30px);
    font-weight: 800;
    line-height: 1.18;
}

.demo-launch-copy strong {
    display: block;
    color: #ffffff;
    font-size: inherit;
    font-weight: 900;
}

.demo-launch-copy p > span {
    display: block;
    margin-top: 3px;
}

.demo-launch-copy del {
    color: #ffffff;
    text-decoration-thickness: 2px;
}

.demo-launch-copy b {
    color: #fff27d;
    font-size: 1.2em;
    font-weight: 900;
}

.demo-launch-note {
    margin: 22px 0 0;
    color: #ffffff;
    font-size: clamp(17px, 3.8vw, 28px);
    font-weight: 800;
    line-height: 1.18;
}

.demo-flash-price {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    align-self: center;
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 12px;
    text-align: center;
    box-shadow: 0 12px 25px rgba(165, 22, 28, 0.18);
}

.demo-flash-price del {
    color: #6b7280;
    font-size: clamp(16px, 3.2vw, 24px);
    font-weight: 800;
    text-decoration-thickness: 2px;
}

.demo-flash-price strong {
    margin-top: 7px;
    color: #ef3d41;
    font-size: clamp(44px, 7.8vw, 74px);
    font-weight: 900;
    line-height: 0.86;
    white-space: nowrap;
    text-shadow: 0 3px 0 rgba(197, 26, 30, 0.08);
}

.demo-flash-price strong small {
    font-size: 0.3em;
}

.demo-launch-features {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
    margin-top: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    color: #071d55;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.demo-launch-features span {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
}

.demo-launch-features span + span {
    border-left: 1px solid rgba(239, 61, 40, 0.25);
}

.demo-launch-features svg {
    width: 42px;
    height: 42px;
    color: #ef3d41;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.demo-launch-features b {
    color: #071d55;
    font-size: clamp(14px, 3.1vw, 20px);
    font-weight: 800;
    line-height: 1.2;
}

.demo-flash-card.is-ended {
    display: block;
    color: #8a1c16;
}

.demo-flash-card.is-ended strong {
    font-size: 18px;
}

.demo-flash-card.is-ended p {
    margin: 5px 0 0;
    color: #5f2d2a;
    font-size: 14px;
    line-height: 1.5;
}

.demo-offer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.demo-offer-action {
    min-width: 0;
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    justify-items: center;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    overflow: hidden;
    min-height: 268px;
    padding: 34px 18px 28px;
    background: #ffffff;
    color: #030a32;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 41, 71, 0.11);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.demo-offer-action::after {
    content: "›";
    width: 48px;
    height: 48px;
    position: static;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-top: 24px;
    background: #ef3d41;
    color: #ffffff;
    font-size: 45px;
    font-weight: 800;
    line-height: 0.6;
    box-shadow: 0 10px 18px rgba(239, 61, 65, 0.26);
    transform: none;
    transition: transform 160ms ease, background 160ms ease;
}

.demo-offer-action:hover,
.demo-offer-action:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(7, 29, 85, 0.18);
    box-shadow: 0 14px 28px rgba(15, 41, 71, 0.14);
    background: #fbfdff;
}

.demo-offer-action:active {
    transform: translateY(-1px) scale(0.99);
}

.demo-offer-action:hover::after,
.demo-offer-action:focus-visible::after {
    background: #d9282d;
    color: #ffffff;
    transform: translateX(3px);
}

.demo-offer-action-icon {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffe8ea;
    color: #ef3d41;
}

.demo-offer-action-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-offer-action strong {
    margin-top: 26px;
    color: #030a32;
    font-size: clamp(21px, 5.3vw, 34px);
    font-weight: 900;
    line-height: 1.12;
}

.demo-offer-action small {
    min-height: 0;
    display: block;
    margin-top: 10px;
    color: #344766;
    font-size: clamp(15px, 3.9vw, 24px);
    font-weight: 500;
    line-height: 1.25;
}

.demo-review-section {
    border: 1px solid #eef0f4;
    border-radius: 18px;
    margin-top: 32px;
    padding: 24px 22px 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 41, 71, 0.09);
}

.demo-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.demo-review-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #030a32;
    font-size: clamp(22px, 5.2vw, 36px);
    font-weight: 900;
    line-height: 1.15;
}

.demo-review-title-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffe8ea;
    color: #ef3d41;
}

.demo-review-title-icon svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.demo-review-heading button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ef3d41;
    cursor: pointer;
    font: inherit;
    font-size: clamp(16px, 3.9vw, 27px);
    font-weight: 900;
    white-space: nowrap;
}

.demo-review-heading button b {
    font-size: 36px;
    line-height: 0.6;
}

.demo-review-track {
    display: grid;
    grid-auto-columns: 126px;
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.demo-review-track::-webkit-scrollbar {
    display: none;
}

.demo-review-thumb {
    height: 154px;
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 0;
    background: #f8fafc;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.demo-review-thumb:hover,
.demo-review-thumb:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 41, 71, 0.12);
}

.demo-review-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.demo-review-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
}

.demo-review-dots span {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #e5e7eb;
}

.demo-review-dots .is-active {
    background: #ef3d41;
}

.demo-shopier-cta {
    min-height: 92px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 18px;
    border: 1px solid #e82f34;
    border-radius: 18px;
    margin-top: 32px;
    padding: 12px 28px;
    background: #ef3d41;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(239, 61, 65, 0.28);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.demo-shopier-cta:hover,
.demo-shopier-cta:focus-visible {
    transform: translateY(-3px);
    background: #dc2f34;
    box-shadow: 0 18px 32px rgba(239, 61, 65, 0.34);
}

.demo-shopier-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.demo-shopier-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.demo-shopier-cta strong {
    color: #ffffff;
    font-size: clamp(24px, 6vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
}

.demo-shopier-cta > b {
    color: #ffffff;
    font-size: 58px;
    line-height: 0.55;
}

.demo-offer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 17px 0 0;
    color: #030a32;
    font-size: clamp(15px, 3.6vw, 25px);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.demo-offer-note svg {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    fill: none;
    stroke: #030a32;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.demo-offer-page.is-review-modal-open {
    overflow: hidden;
}

.demo-review-modal[hidden] {
    display: none;
}

.demo-review-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.demo-review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 31, 0.76);
}

.demo-review-modal-dialog {
    width: min(100%, 760px);
    max-height: calc(100dvh - 36px);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.demo-review-modal-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    color: #071d55;
}

.demo-review-modal-dialog header strong {
    font-size: 15px;
    font-weight: 900;
}

.demo-review-modal-dialog header button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    color: #071d55;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.demo-review-modal-body {
    min-height: 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 10px 50px;
    background: #f6f8fb;
}

.demo-review-modal-body img {
    max-width: 100%;
    max-height: calc(100dvh - 148px);
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.demo-review-modal-nav {
    width: 38px;
    height: 50px;
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: #073981;
    color: #ffffff;
    cursor: pointer;
    font-size: 34px;
    line-height: 0.5;
    transform: translateY(-50%);
}

.demo-review-modal-nav.is-prev {
    left: 7px;
}

.demo-review-modal-nav.is-next {
    right: 7px;
}

.demo-review-modal-dialog > p {
    margin: 0;
    padding: 11px 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 520px) {
    .demo-offer-shell {
        padding: 10px 12px 14px;
    }

    .demo-offer-hero {
        padding: 4px 3px 12px;
    }

    .demo-offer-hero h1 {
        font-size: clamp(39px, 11vw, 48px);
    }

    .demo-offer-subtitle {
        margin-top: 6px;
        font-size: clamp(19px, 5.2vw, 24px);
    }

    .demo-flash-card {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
        border-radius: 16px;
        padding: 10px 10px;
    }

    .demo-flash-badge {
        max-width: 100%;
        gap: 6px;
        padding: 6px 10px 6px 7px;
        font-size: clamp(12px, 3.55vw, 15px);
    }

    .demo-flash-badge svg {
        width: 24px;
        height: 24px;
        padding: 6px;
    }

    .demo-flash-note {
        margin-top: 6px;
        font-size: clamp(11px, 3.05vw, 13px);
        line-height: 1.18;
    }

    .demo-flash-price {
        min-width: 0;
        min-height: 66px;
        border-radius: 14px;
        padding: 7px 5px;
    }

    .demo-flash-price del {
        font-size: 13px;
    }

    .demo-flash-price strong {
        margin-top: 4px;
        font-size: 35px;
    }

    .demo-flash-price strong small {
        font-size: 0.28em;
    }

    .demo-offer-actions {
        gap: 10px;
        margin-top: 12px;
    }

    .demo-offer-action {
        min-height: 130px;
        border-radius: 14px;
        padding: 14px 8px 12px;
    }

    .demo-offer-action-icon {
        width: 52px;
        height: 52px;
    }

    .demo-offer-action-icon svg {
        width: 30px;
        height: 30px;
    }

    .demo-offer-action strong {
        margin-top: 10px;
        font-size: clamp(15px, 4.3vw, 18px);
    }

    .demo-offer-action small {
        margin-top: 4px;
        font-size: clamp(11px, 3.1vw, 13px);
    }

    .demo-offer-action::after {
        width: 31px;
        height: 31px;
        margin-top: 10px;
        font-size: 31px;
    }

    .demo-review-section {
        margin-top: 12px;
        padding: 12px 10px 10px;
    }

    .demo-review-heading h2 {
        gap: 7px;
        font-size: clamp(17px, 4.6vw, 20px);
    }

    .demo-review-heading button {
        font-size: clamp(12px, 3.4vw, 14px);
    }

    .demo-review-title-icon {
        width: 30px;
        height: 30px;
    }

    .demo-review-title-icon svg {
        width: 21px;
        height: 21px;
    }

    .demo-review-track {
        grid-auto-columns: 68px;
        gap: 9px;
        padding-bottom: 5px;
    }

    .demo-review-thumb {
        height: 74px;
    }

    .demo-review-dots {
        margin-top: 5px;
    }

    .demo-review-dots span {
        width: 9px;
        height: 9px;
    }

    .demo-shopier-cta {
        min-height: 52px;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        margin-top: 12px;
        padding: 7px 10px;
        border-radius: 14px;
    }

    .demo-shopier-icon {
        width: 38px;
        height: 38px;
    }

    .demo-shopier-icon svg {
        width: 23px;
        height: 23px;
    }

    .demo-shopier-cta strong {
        font-size: clamp(18px, 4.8vw, 21px);
    }

    .demo-shopier-cta > b {
        font-size: 35px;
    }

    .demo-offer-note {
        gap: 6px;
        margin-top: 9px;
        font-size: clamp(11px, 3vw, 13px);
    }

    .demo-offer-note svg {
        width: 20px;
        height: 20px;
    }

    .demo-review-modal-body {
        padding: 8px 40px;
    }

    .demo-review-modal-nav {
        width: 31px;
        height: 44px;
    }
}

@media (max-width: 760px) {
    .demo-offer {
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .demo-shopier-cta {
        position: static;
        margin-top: 26px;
    }

    .demo-offer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demo-offer-action {
        grid-template-columns: none;
        grid-template-rows: auto auto auto auto;
        align-content: center;
        justify-items: center;
        text-align: center;
    }

    .demo-offer-action::after {
        position: static;
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
        justify-self: center;
    }

    .demo-offer-action:hover::after,
    .demo-offer-action:focus-visible::after {
        transform: translateX(3px);
    }

    .demo-offer-action-icon {
        grid-column: auto;
        grid-row: auto;
    }

    .demo-offer-action strong {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

    .demo-offer-action small {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

}

@media (max-width: 360px) {
    .demo-offer-action {
        min-height: 184px;
        padding: 22px 9px 20px;
    }

    .demo-offer-action::after {
        width: 38px;
        height: 38px;
        margin-top: 17px;
        font-size: 36px;
    }

    .demo-offer-action-icon {
        width: 64px;
        height: 64px;
    }

    .demo-offer-action strong {
        font-size: 17px;
    }

    .demo-offer-action small {
        font-size: 12px;
    }

    .demo-shopier-cta {
        min-height: 64px;
        grid-template-columns: 48px minmax(0, 1fr) 22px;
        border-radius: 15px;
        padding: 8px 12px;
    }

    .demo-shopier-cta strong {
        font-size: 18px;
    }

    .demo-shopier-cta > b {
        font-size: 40px;
    }

    .demo-flash-card {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 6px;
        padding: 14px 10px 11px;
    }

    .demo-flash-heading {
        font-size: 24px;
    }

    .demo-flash-badge {
        padding: 6px 10px 6px 7px;
        font-size: 13px;
    }

    .demo-flash-badge svg {
        width: 25px;
        height: 25px;
    }

    .demo-launch-copy {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 9px;
    }

    .demo-launch-gift-icon {
        width: 42px;
        height: 42px;
    }

    .demo-launch-copy p {
        font-size: 14px;
    }

    .demo-flash-price {
        min-height: 98px;
        padding: 9px 5px;
    }

    .demo-flash-price strong {
        font-size: 43px;
    }

    .demo-launch-features span {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 5px;
        padding: 10px 6px;
        text-align: center;
    }

    .demo-launch-features svg {
        width: 28px;
        height: 28px;
    }

    .demo-launch-features b {
        font-size: 10px;
    }
}

@media (min-width: 980px) {
    .demo-offer {
        display: grid;
        place-items: start center;
        padding: 42px 28px;
    }

    .demo-offer-shell {
        width: min(100%, 1260px);
        display: grid;
        grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
        grid-template-areas:
            "hero reviews"
            "flash reviews"
            "actions reviews"
            "shopier reviews"
            "note reviews";
        column-gap: 26px;
        row-gap: 17px;
        border: 1px solid #edf0f4;
        border-radius: 24px;
        padding: 28px;
    }

    .demo-offer-hero {
        grid-area: hero;
        padding: 18px 12px 8px;
    }

    .demo-offer-hero h1 {
        font-size: clamp(74px, 6.5vw, 94px);
    }

    .demo-offer-subtitle {
        font-size: clamp(37px, 3.5vw, 49px);
    }

    .demo-flash-card {
        grid-area: flash;
        margin-top: 0;
    }

    .demo-launch-copy strong {
        font-size: clamp(27px, 2.25vw, 35px);
    }

    .demo-offer-actions {
        grid-area: actions;
        margin-top: 0;
    }

    .demo-offer-action {
        min-height: 168px;
    }

    .demo-offer-action strong {
        font-size: 21px;
    }

    .demo-offer-action small {
        font-size: 14px;
    }

    .demo-review-section {
        grid-area: reviews;
        min-width: 0;
        align-self: stretch;
        margin-top: 0;
        padding: 18px 16px 14px;
    }

    .demo-review-heading h2 {
        font-size: 22px;
    }

    .demo-review-track {
        height: calc(100% - 62px);
        min-height: 684px;
        grid-auto-columns: calc(50% - 6px);
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .demo-review-thumb {
        height: auto;
        min-height: 0;
    }

    .demo-shopier-cta {
        grid-area: shopier;
        margin-top: 0;
    }

    .demo-offer-note {
        grid-area: note;
        margin-top: 0;
    }
}

/* Demo offer final override: keep the requested mobile screen intact on every viewport. */
.demo-offer-page {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #ffffff;
    color: #07143f;
    font-family: "Inter", "Lexend", sans-serif;
}

.demo-offer-page * {
    box-sizing: border-box;
}

.demo-offer-page button,
.demo-offer-page a {
    -webkit-tap-highlight-color: transparent;
}

.demo-offer {
    min-height: 100svh;
    display: flex;
    justify-content: center;
    padding: 0;
    background: #ffffff;
}

.demo-offer-shell {
    width: min(100%, 390px);
    min-height: 100svh;
    display: block;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    padding: 14px 8px 22px;
    background: #ffffff;
    box-shadow: none;
}

.demo-topbar {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.demo-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #536074;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}

.demo-brand-mark {
    width: 22px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #07143f;
}

.demo-brand-mark svg {
    width: 22px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.demo-menu-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    color: #57677b;
    cursor: pointer;
}

.demo-menu-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.demo-offer-hero {
    position: static;
    overflow: visible;
    padding: 27px 12px 17px;
    text-align: center;
}

.demo-offer-hero::before,
.demo-offer-hero-lines {
    content: none;
    display: none;
}

.demo-offer-hero h1 {
    margin: 0;
    color: #07143f;
    font-size: clamp(34px, 10.6vw, 41px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.demo-offer-subtitle {
    margin: 11px 0 0;
    color: #07143f;
    font-size: clamp(17px, 5.45vw, 21px);
    font-weight: 650;
    line-height: 1.28;
}

.demo-offer-intro {
    margin: 14px 0 0;
    color: #536074;
    font-size: clamp(13px, 3.9vw, 15px);
    font-weight: 500;
    line-height: 1.48;
}

.demo-offer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 7px;
}

.demo-offer-action {
    min-width: 0;
    min-height: 80px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    grid-template-rows: none;
    align-items: center;
    justify-items: stretch;
    gap: 14px;
    border: 1px solid #d9e9f9;
    border-radius: 12px;
    padding: 12px 15px;
    background: #eff7ff;
    color: #07143f;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 41, 71, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.demo-offer-action.is-test {
    border-color: #d4ece5;
    background: #effaf6;
}

.demo-offer-action:hover,
.demo-offer-action:focus-visible {
    transform: translateY(-1px);
    border-color: #c7dff7;
    box-shadow: 0 10px 20px rgba(15, 41, 71, 0.08);
}

.demo-offer-action.is-test:hover,
.demo-offer-action.is-test:focus-visible {
    border-color: #c6e5dc;
}

.demo-offer-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    grid-column: auto;
    grid-row: auto;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #276cd8;
}

.demo-offer-action.is-test .demo-offer-action-icon {
    color: #218775;
}

.demo-offer-action-icon svg {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.15;
}

.demo-offer-action-copy {
    min-width: 0;
    display: block;
}

.demo-offer-action-copy strong,
.demo-offer-action strong {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    display: block;
    margin: 0;
    color: #07143f;
    font-size: clamp(15px, 4.35vw, 17px);
    font-weight: 850;
    line-height: 1.15;
}

.demo-offer-action-copy small,
.demo-offer-action small {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    display: block;
    margin-top: 6px;
    color: #34445b;
    font-size: clamp(12px, 3.55vw, 13.5px);
    font-weight: 500;
    line-height: 1.2;
}

.demo-offer-action-chevron {
    justify-self: end;
    color: #07143f;
    font-size: 29px;
    font-weight: 450;
    line-height: 1;
}

.demo-offer-action::after {
    content: none;
    display: none;
}

.demo-price-strip {
    min-height: 63px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    margin-top: 19px;
    padding: 10px 12px;
    background: #fbfcff;
    box-shadow: 0 7px 16px rgba(15, 41, 71, 0.04);
}

.demo-price-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #07143f;
}

.demo-price-icon svg {
    width: 29px;
    height: 29px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.demo-price-copy {
    min-width: 0;
    display: block;
}

.demo-price-copy strong {
    display: block;
    color: #596276;
    font-size: clamp(12px, 3.65vw, 14px);
    font-weight: 750;
    line-height: 1.18;
}

.demo-price-copy small {
    display: block;
    margin-top: 4px;
    color: #07143f;
    font-size: clamp(10.5px, 3.2vw, 12px);
    font-weight: 650;
    line-height: 1.15;
}

.demo-price-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: #07143f;
    font-size: clamp(26px, 7.5vw, 30px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.demo-price-amount small {
    font-size: 0.55em;
    font-weight: 850;
}

.demo-shopier-cta {
    min-height: 53px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    border: 1px solid #08184d;
    border-radius: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    background: #07184f;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(7, 24, 79, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.demo-shopier-cta:hover,
.demo-shopier-cta:focus-visible {
    transform: translateY(-1px);
    background: #091d5d;
    box-shadow: 0 12px 24px rgba(7, 24, 79, 0.28);
}

.demo-shopier-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
}

.demo-shopier-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.demo-shopier-cta strong {
    color: #ffffff;
    font-size: clamp(13px, 4.15vw, 15px);
    font-weight: 850;
    line-height: 1.12;
    text-align: left;
    white-space: normal;
}

.demo-shopier-cta > b {
    justify-self: end;
    color: #ffffff;
    font-size: 29px;
    font-weight: 450;
    line-height: 1;
}

.demo-offer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 17px 0 0;
    color: #627189;
    font-size: clamp(12px, 3.55vw, 13.5px);
    font-weight: 550;
    line-height: 1.2;
    text-align: center;
}

.demo-offer-note svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: #2f72e8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.demo-offer-note i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

@media (min-width: 520px) {
    .demo-offer {
        align-items: start;
        padding: 0;
    }

    .demo-offer-shell {
        border-right: 1px solid #eef1f5;
        border-left: 1px solid #eef1f5;
    }
}

@media (max-width: 340px) {
    .demo-offer-shell {
        padding-right: 7px;
        padding-left: 7px;
    }

    .demo-shopier-cta strong {
        font-size: 14px;
    }

    .demo-price-strip {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 7px;
    }
}

/* Video course package */
.stitch-study-entry-grid.has-video-package {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stitch-study-entry-card.is-video {
    border-color: #c9d9ef;
    background: linear-gradient(135deg, #f7fbff 0%, #fff 72%);
}

.stitch-study-entry-card.is-video::before {
    border-top-color: #163d68;
    background: transparent;
}

.stitch-study-entry-card.is-video .stitch-study-entry-icon {
    color: #163d68;
    border-color: #c9d9ef;
    background: #f3f8ff;
}

.stitch-update-banner {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 16px;
    margin: -2px 0 20px;
    padding: 16px 18px;
    border: 1px solid #d7e2f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fbff 0%, #fffdf7 100%);
    box-shadow: 0 12px 28px rgba(11, 30, 54, .07);
}

.stitch-update-banner-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #163d68;
    background: #edf5ff;
}

.stitch-update-banner-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.stitch-update-banner-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.stitch-update-banner-copy small {
    color: #b18420;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stitch-update-banner-copy strong {
    color: #0b1e36;
    font-size: 16px;
    font-weight: 900;
}

.stitch-update-banner-copy em {
    color: #607086;
    font-size: 13px;
    font-style: normal;
    font-weight: 650;
}

.stitch-update-banner-action {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: #0b1e36;
    font-weight: 900;
}

.stitch-update-banner-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #d7e2f0;
    border-radius: 50%;
    color: #607086;
    background: #fff;
}

.stitch-update-banner-close svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .stitch-study-entry-grid.has-video-package {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .stitch-study-entry-card.is-video::before {
        border-top-color: transparent;
        background: #163d68;
    }

    .stitch-update-banner {
        grid-template-columns: 42px minmax(0, 1fr) 34px;
        gap: 12px;
        padding: 14px;
    }

    .stitch-update-banner-action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.student-main-video {
    width: min(1440px, calc(100% - 56px));
    margin: 0 auto;
    padding: 42px 0 64px;
}


.video-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 22px;
}

.video-lesson-stage,
.video-playlist-panel {
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(11, 30, 54, .08);
}

.video-lesson-stage {
    padding: 18px;
}

.video-player-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #07172b;
    aspect-ratio: 16 / 9;
}

.video-player-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player-placeholder {
    display: grid;
    height: 100%;
    place-content: center;
    justify-items: center;
    gap: 10px;
    padding: 32px;
    color: #fff;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #18395f, #07172b 68%);
}

.video-player-placeholder span {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.video-player-placeholder svg {
    width: 32px;
    height: 32px;
    fill: #e1b843;
}

.video-player-placeholder small {
    color: #b8c6d8;
}

.video-player-placeholder .video-placeholder-date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border: 1px solid rgba(225,184,67,.34);
    border-radius: 999px;
    color: #f5d875;
    background: rgba(225,184,67,.1);
    font-weight: 800;
}

.video-player-placeholder.is-upcoming {
    background: radial-gradient(circle at 50% 28%, #214c7c, #07172b 70%);
}

.video-player-placeholder.is-preparing {
    background: radial-gradient(circle at 50% 28%, #2b3a4e, #07172b 70%);
}

.video-lesson-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px 8px;
}

.video-lesson-heading small,
.video-resource-card small,
.video-playlist-panel header small,
.video-playlist-item small {
    display: block;
    color: #b18420;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

.video-lesson-heading h2 {
    margin: 4px 0 0;
    color: #0b1e36;
    font-family: Merriweather, Georgia, serif;
    font-size: clamp(22px, 2.1vw, 31px);
    letter-spacing: 0;
}

.video-lesson-heading em {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #607086;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.video-lesson-heading em svg {
    width: 18px;
    height: 18px;
    fill: #c99a2e;
}

.video-release-pill {
    max-width: min(280px, 45vw);
    justify-content: center;
    border: 1px solid #dbe2ec;
    border-radius: 999px;
    padding: 8px 12px;
    color: #607086;
    background: #f6f8fa;
    white-space: normal;
    text-align: center;
}

.video-release-pill.is-upcoming {
    border-color: #d7c17b;
    color: #725612;
    background: #fff8dc;
}

.video-release-pill.is-preparing {
    border-color: #dbe2ec;
    color: #607086;
    background: #f6f8fa;
}

.video-lesson-description {
    margin: 0 4px 18px;
    color: #607086;
    line-height: 1.6;
}

.video-lesson-resources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.video-resource-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid #dbe2ec;
    border-radius: 7px;
    color: #0b1e36;
    text-align: left;
    text-decoration: none;
    background: #f8fafc;
    cursor: pointer;
}

.video-resource-card.is-pdf {
    border-color: #c7dcf7;
    background: #f3f8ff;
}

.video-resource-card.is-test {
    border-color: #ead6a2;
    background: #fffaf0;
}

.video-resource-card > svg {
    width: 25px;
    height: 25px;
    fill: #2674d9;
}

.video-resource-card.is-test > svg {
    fill: #b18420;
}

.video-resource-card span strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.video-resource-card.is-disabled {
    cursor: default;
    opacity: .6;
}

.video-lesson-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.video-nav-button,
.video-complete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 6px;
    font-weight: 800;
}

.video-nav-button {
    border: 1px solid #dbe2ec;
    color: #0b1e36;
    background: #fff;
}

.video-nav-button:last-child {
    justify-self: end;
}

.video-nav-button:first-child {
    justify-self: start;
}

.video-nav-button svg,
.video-complete-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.video-nav-button:disabled {
    opacity: .35;
}

.video-complete-button {
    border: 1px solid #0b1e36;
    padding: 0 22px;
    color: #fff;
    background: #0b1e36;
}

.video-complete-button.is-completed {
    border-color: #1f8c65;
    background: #1f8c65;
}

.video-complete-button:disabled {
    border-color: #dbe2ec;
    color: #8b98a8;
    background: #f6f8fa;
    cursor: default;
}

.video-playlist-panel {
    position: sticky;
    top: 96px;
    overflow: hidden;
}

.video-playlist-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid #dbe2ec;
    background: #0b1e36;
}

.video-playlist-panel header strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 18px;
}

.video-playlist-panel header b {
    padding: 6px 9px;
    border-radius: 20px;
    color: #0b1e36;
    background: #f3d77e;
    font-size: 12px;
}

.video-playlist-summary {
    display: block;
    margin-top: 4px;
    color: #c3cedb;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.video-playlist-scroll {
    max-height: 640px;
    overflow: auto;
    scrollbar-width: thin;
}

.video-playlist-item {
    display: grid;
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: #0b1e36;
    text-align: left;
    background: #fff;
}

.video-playlist-item:hover,
.video-playlist-item.is-active {
    background: #fff8e6;
}

.video-playlist-item.is-active {
    box-shadow: inset 4px 0 #c99a2e;
}

.video-playlist-item.is-upcoming {
    background: #fbfcfe;
}

.video-playlist-item.is-upcoming .video-playlist-index,
.video-playlist-item.is-preparing .video-playlist-index {
    color: #8b98a8;
    background: #f6f8fa;
}

.video-playlist-item.is-upcoming.is-active {
    background: #fff8dc;
    box-shadow: inset 4px 0 #d4af37;
}

.video-playlist-item.is-preparing.is-active {
    background: #f6f8fa;
    box-shadow: inset 4px 0 #8fa0b3;
}

.video-playlist-item > svg,
.video-playlist-marker svg {
    width: 18px;
    height: 18px;
    fill: #8fa0b3;
}

.video-playlist-marker {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
}

.video-playlist-item.is-active .video-playlist-marker svg {
    fill: #b18420;
}

.video-playlist-index {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dbe2ec;
    border-radius: 50%;
    color: #607086;
    font-size: 12px;
    font-weight: 900;
    background: #f6f8fa;
}

.video-playlist-index svg {
    width: 17px;
    height: 17px;
    fill: #1f8c65;
}

.video-playlist-item > span:nth-child(2) {
    min-width: 0;
}

.video-playlist-item strong {
    display: block;
    overflow: hidden;
    margin: 2px 0;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-playlist-item em {
    color: #8b98a8;
    font-size: 11px;
    font-style: normal;
}

.video-loading-state,
.video-empty-state {
    display: grid;
    min-height: 420px;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: #0b1e36;
    text-align: center;
}

.video-loading-state svg,
.video-empty-state > svg {
    width: 42px;
    height: 42px;
    fill: #c99a2e;
}

@media (max-width: 980px) {
    .student-main-video {
        width: min(100% - 28px, 760px);
        padding-top: 24px;
    }

    .video-course-layout {
        display: flex;
        flex-direction: column;
    }

    .video-lesson-stage,
    .video-playlist-panel {
        width: 100%;
    }

    .video-playlist-panel {
        position: static;
    }

    .video-playlist-scroll {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .student-main-video {
        width: 100%;
        padding: 18px 12px 40px;
    }

    .video-lesson-stage {
        padding: 8px;
        border-radius: 7px;
    }

    .video-player-shell {
        border-radius: 5px;
    }

    .video-lesson-heading {
        padding: 16px 6px 7px;
    }

    .video-lesson-heading h2 {
        font-size: 21px;
        line-height: 1.25;
    }

    .video-lesson-heading em {
        font-size: 11px;
    }

    .video-lesson-description {
        margin-inline: 6px;
        font-size: 13px;
    }

    .video-lesson-resources {
        grid-template-columns: 1fr;
    }

    .video-lesson-actions {
        grid-template-columns: 44px 1fr 44px;
    }

    .video-nav-button {
        width: 44px;
        padding: 0;
    }

    .video-nav-button span {
        display: none;
    }

    .video-complete-button {
        padding: 0 12px;
        font-size: 13px;
    }

    .video-playlist-panel > header {
        padding: 15px;
    }

    .video-playlist-item {
        min-height: 68px;
    }
}
.video-admin-panel {
    margin-top: 0;
    border: 1px solid #dbe5ef;
    box-shadow: 0 12px 30px rgba(15, 31, 55, 0.06);
    overflow: hidden;
}

.video-admin-heading {
    margin: 0;
    padding: 20px 24px;
    border-bottom: 1px solid #e4ebf3;
    background: linear-gradient(135deg, #f8fbff 0%, #fffaf0 100%);
}

.video-admin-heading .brand {
    color: #b38a1b;
}

.video-admin-list {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
}

.video-admin-row {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 31, 55, 0.04);
}

.video-admin-row header {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.video-admin-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    background: #061b35;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.video-admin-row input,
.video-admin-row textarea {
    width: 100%;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    background: #fff;
    color: #061b35;
    padding: 10px 11px;
    font: inherit;
    font-weight: 750;
}

.video-admin-row textarea {
    min-height: 72px;
    resize: vertical;
    font-weight: 650;
}

.video-admin-fields {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.2fr) minmax(170px, 0.8fr) minmax(95px, 0.35fr);
    gap: 10px;
    align-items: start;
}

.video-admin-fields label {
    display: grid;
    gap: 6px;
    color: #556579;
    font-size: 12px;
    font-weight: 900;
}

.video-admin-description {
    grid-column: 1 / -1;
}

.compact-switch {
    min-height: 34px;
    border: 1px solid #d7e2ee;
    border-radius: 999px;
    background: #fff;
    padding: 7px 10px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .video-admin-row header,
    .video-admin-fields {
        grid-template-columns: 1fr;
    }

    .video-admin-row header .compact-switch {
        justify-self: start;
    }
}
/* Question bank maintenance */
.stitch-study-entry-card.is-bank.is-maintenance {
    border-color: #d8b451;
    background: #fffdf7;
}

.stitch-study-entry-card.is-bank.is-maintenance .stitch-study-entry-icon {
    border-color: #d8b451;
    background: #fff6cf;
    color: #8a6710;
}

.stitch-study-entry-card.is-bank.is-maintenance .stitch-study-entry-action {
    background: #7b5d0e;
}

.student-main-question-maintenance {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 104px);
}

.question-bank-maintenance {
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: clamp(32px, 6vw, 64px);
    border: 1px solid #dce4ed;
    border-top: 4px solid #d7aa2c;
    border-radius: 8px;
    background: #fff;
    color: #0b1e36;
    text-align: center;
    box-shadow: 0 18px 42px rgba(11, 30, 54, 0.09);
}

.question-bank-maintenance-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid #e3c467;
    border-radius: 50%;
    background: #fff7d9;
    color: #9b7410;
}

.question-bank-maintenance-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.question-bank-maintenance-kicker {
    color: #9b7410;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.question-bank-maintenance h1 {
    margin: 0;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.question-bank-maintenance > p {
    max-width: 580px;
    margin: 0;
    color: #536276;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;
}

.question-bank-maintenance-note {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    background: #f7f9fb;
    color: #405167;
    text-align: left;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
}

.question-bank-maintenance-note svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: #2d72c4;
}

.question-bank-maintenance-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.question-bank-maintenance-actions button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.question-bank-maintenance-actions svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.question-bank-admin-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid #e2c666;
    border-left: 4px solid #c99b20;
    border-radius: 6px;
    background: #fff9df;
    color: #5d480d;
}

.question-bank-admin-notice > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
}

.question-bank-admin-notice svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.question-bank-admin-notice strong,
.question-bank-admin-notice p {
    display: block;
    margin: 0;
}

.question-bank-admin-notice strong {
    font-size: 14px;
    font-weight: 900;
}

.question-bank-admin-notice p {
    margin-top: 2px;
    color: #786322;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .student-main-question-maintenance {
        min-height: calc(100vh - 82px);
        padding: 16px;
    }

    .question-bank-maintenance {
        padding: 30px 20px;
    }

    .question-bank-maintenance-actions,
    .question-bank-maintenance-actions button {
        width: 100%;
    }

    .question-bank-admin-notice {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .student-main-pdfs .stitch-pdf-card {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        min-height: auto;
        padding: 16px 14px;
    }

    .student-main-pdfs .stitch-pdf-grid .stitch-pdf-card:only-child {
        min-height: auto;
    }

    .student-main-pdfs .stitch-pdf-card-icon {
        align-self: start;
        margin-top: 2px;
    }

    .student-main-pdfs .stitch-pdf-card-copy {
        min-width: 0;
    }

    .student-main-pdfs .stitch-pdf-card-title-row {
        display: grid;
        align-items: start;
        gap: 6px;
    }

    .student-main-pdfs .stitch-pdf-card-copy h2 {
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .student-main-pdfs .stitch-pdf-card-copy small {
        width: max-content;
        max-width: 100%;
    }

    .student-main-pdfs .stitch-pdf-card-action {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}
/* Kisa Hafiza student experience */
.student-main-memory {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding-bottom: 72px;
}

.memory-loading,
.memory-empty {
    min-height: 58vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #53677e;
    text-align: center;
}

.memory-loading > span,
.memory-empty > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid #e1c36d;
    border-radius: 50%;
    background: #fffaf0;
    color: #b88917;
}

.memory-loading svg,
.memory-empty svg {
    width: 26px;
    height: 26px;
}

.memory-home {
    display: grid;
    gap: 24px;
}

.memory-hero {
    position: relative;
    min-height: 218px;
    display: grid;
    align-content: center;
    justify-items: start;
    overflow: hidden;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    padding: 32px 148px 32px 34px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(11, 30, 54, 0.07);
}

.memory-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 100%;
    background: #0b1e36;
    clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
}

.memory-hero-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 34px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    color: #f2c84b;
    transform: translateY(-50%);
}

.memory-hero-icon svg {
    width: 30px;
    height: 30px;
}

.memory-kicker,
.memory-section-heading small,
.memory-page-header small,
.memory-reel-header small,
.memory-reel-caption small,
.memory-sheet header small {
    color: #b88917;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
}

.memory-hero h1 {
    max-width: 690px;
    margin: 7px 0 9px;
    color: #0b1e36;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.memory-hero p {
    max-width: 690px;
    margin: 0;
    color: #52667e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}


.memory-category-card:hover,
.memory-category-card:focus-visible {
    border-color: #d0ae48;
    box-shadow: 0 14px 28px rgba(11, 30, 54, 0.1);
    transform: translateY(-1px);
}









.memory-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.memory-section-heading h2 {
    margin: 4px 0 0;
    color: #0b1e36;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.memory-section-heading > button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d7e0ea;
    border-radius: 7px;
    padding: 0 12px;
    background: #ffffff;
    color: #0b1e36;
    font-size: 12px;
    font-weight: 850;
}

.memory-section-heading > button b {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0c84b;
    font-size: 10px;
}

.memory-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.memory-category-card {
    min-width: 0;
    min-height: 132px;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    padding: 9px 14px 9px 9px;
    background: #ffffff;
    color: #0b1e36;
    text-align: left;
    box-shadow: 0 8px 20px rgba(11, 30, 54, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.memory-category-cover {
    position: relative;
    height: 112px;
    overflow: hidden;
    border-radius: 6px;
    background: #edf1f4;
}

.memory-category-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(to top, rgba(5,17,32,.72), transparent);
}

.memory-category-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.memory-category-cover > i {
    position: absolute;
    z-index: 1;
    left: 9px;
    bottom: 8px;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.memory-category-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--memory-accent);
}

.memory-category-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.memory-category-copy strong {
    color: #0b1e36;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.16;
}

.memory-category-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: #64768b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.memory-category-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 3px;
    background: #edf1f4;
}

.memory-category-progress i {
    height: 100%;
    display: block;
    background: var(--memory-accent);
}

.memory-category-arrow {
    color: #8b9aab;
}

.memory-page-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.memory-back-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #ffffff;
    color: #0b1e36;
}

.memory-page-header h1 {
    margin: 2px 0 0;
    color: #0b1e36;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}

.memory-page-header em {
    min-width: 36px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff5d5;
    color: #9a7112;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.memory-category-description {
    max-width: 700px;
    margin: 0 0 20px 56px;
    color: #60738a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.memory-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.memory-video-tile {
    position: relative;
    min-width: 0;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 4px;
    padding: 0;
    background: #0b1e36;
    color: #ffffff;
    text-align: left;
}

.memory-video-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.memory-video-tile:hover img,
.memory-video-tile:focus-visible img {
    transform: scale(1.025);
}

.memory-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4,15,29,.05) 40%, rgba(4,15,29,.82) 100%);
}

.memory-tile-play {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(4,15,29,.4);
}

.memory-tile-play svg {
    width: 13px;
    height: 13px;
}

.memory-video-tile > strong {
    position: absolute;
    z-index: 1;
    right: 9px;
    bottom: 10px;
    left: 9px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.memory-tile-status {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0b1e36;
    background: #f2c84b;
}

.memory-tile-status.is-saved {
    top: 40px;
    color: #ffffff;
    background: #0b1e36;
}

.memory-tile-status svg {
    width: 13px;
    height: 13px;
}

.memory-empty-inline {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    border: 1px dashed #cfd9e4;
    border-radius: 8px;
    padding: 28px;
    color: #60738a;
    text-align: center;
}

.memory-empty-inline strong {
    color: #0b1e36;
}

.memory-reel-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #050b13;
}

.memory-reel {
    position: relative;
    width: min(100%, 480px);
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    color: #ffffff;
    background: #07182c;
    box-shadow: 0 0 70px rgba(0, 0, 0, .45);
    touch-action: pan-x;
}

.memory-reel.is-next {
    animation: memoryReelNext 220ms ease-out both;
}

.memory-reel.is-previous {
    animation: memoryReelPrevious 220ms ease-out both;
}

.memory-reel.is-edge {
    animation: memoryReelEdge 180ms ease-out;
}

@keyframes memoryReelNext {
    from { opacity: .58; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes memoryReelPrevious {
    from { opacity: .58; transform: translateY(-22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes memoryReelEdge {
    50% { transform: translateY(-7px); }
}

.memory-reel-media,
.memory-reel-media video,
.memory-reel-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.memory-reel-media video {
    object-fit: cover;
    background: #050b13;
}

.memory-reel-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0b1e36;
}

.memory-reel-preview > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.88) brightness(.72);
    transform: scale(1.04);
}

.memory-reel-preview > span {
    position: absolute;
    z-index: 2;
    width: min(270px, calc(100% - 96px));
    display: grid;
    justify-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 8px;
    padding: 20px 16px;
    background: rgba(5, 15, 28, .64);
    text-align: center;
    backdrop-filter: blur(7px);
}

.memory-reel-preview > span i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0b1e36;
    background: #f2c84b;
}

.memory-reel-preview > span b {
    font-size: 16px;
}

.memory-reel-preview > span small {
    color: rgba(255,255,255,.74);
    font-size: 11px;
    line-height: 1.4;
}

.memory-reel-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,8,15,.58), transparent 24%, transparent 52%, rgba(2,8,15,.92) 100%);
    pointer-events: none;
}

.memory-reel-header {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: max(12px, env(safe-area-inset-top)) 14px 8px;
}

.memory-reel-header button,
.memory-sheet header button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    background: rgba(4,15,29,.48);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.memory-reel-header > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.memory-reel-header strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-reel-header em {
    min-width: 42px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(4,15,29,.48);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.memory-reel-actions {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 180px;
    display: grid;
    gap: 15px;
}

.memory-reel-actions button {
    width: 58px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 0;
    background: transparent;
    color: #ffffff;
}

.memory-reel-actions button:disabled {
    opacity: .42;
}

.memory-reel-actions button > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 50%;
    background: rgba(4,15,29,.6);
    box-shadow: 0 8px 18px rgba(0,0,0,.24);
    backdrop-filter: blur(6px);
}

.memory-reel-actions button.is-active > span {
    border-color: #f2c84b;
    color: #0b1e36;
    background: #f2c84b;
}

.memory-reel-actions svg {
    width: 22px;
    height: 22px;
}

.memory-reel-actions b {
    font-size: 10px;
    font-weight: 850;
    text-shadow: 0 2px 6px rgba(0,0,0,.8);
}

.memory-reel-caption {
    position: absolute;
    z-index: 4;
    right: 78px;
    bottom: 42px;
    left: 16px;
}

.memory-reel-caption h1 {
    margin: 5px 0 7px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.08;
}

.memory-reel-caption p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.memory-reel-progress {
    position: absolute;
    z-index: 6;
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 10px;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255,255,255,.28);
}

.memory-reel-progress i {
    width: 0;
    height: 100%;
    display: block;
    background: #f2c84b;
    animation: memoryPreviewProgress var(--memory-duration) linear forwards;
}

.memory-reel.is-sheet-open .memory-reel-progress i {
    animation-play-state: paused;
}

@keyframes memoryPreviewProgress {
    to { width: 100%; }
}

.memory-swipe-hint {
    position: absolute;
    z-index: 4;
    top: 84px;
    left: 50%;
    opacity: .7;
    font-size: 10px;
    font-weight: 750;
    transform: translateX(-50%);
}

.memory-sheet-backdrop {
    position: fixed;
    z-index: 20;
    inset: 0;
    background: rgba(2,8,15,.54);
    animation: memoryBackdropIn 160ms ease-out;
}

.memory-sheet {
    position: fixed;
    z-index: 21;
    right: max(0px, calc((100vw - 480px) / 2));
    bottom: 0;
    left: max(0px, calc((100vw - 480px) / 2));
    max-height: min(72vh, 660px);
    overflow-y: auto;
    border-radius: 8px 8px 0 0;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    color: #0b1e36;
    background: #ffffff;
    box-shadow: 0 -18px 44px rgba(0,0,0,.28);
    animation: memorySheetUp 230ms cubic-bezier(.22,1,.36,1);
}

.memory-sheet-handle {
    width: 38px;
    height: 4px;
    display: block;
    border-radius: 3px;
    margin: 0 auto 14px;
    background: #ccd5df;
}

.memory-sheet header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}

.memory-sheet header > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0b1e36;
    background: #f2c84b;
}

.memory-sheet header button {
    border-color: #dbe3ec;
    color: #0b1e36;
    background: #f5f7f9;
}

.memory-sheet h2 {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.16;
}

.memory-sheet > p {
    margin: 18px 0 0;
    color: #41566e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.memory-question-text {
    color: #0b1e36 !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.45 !important;
}

.memory-question-options {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.memory-question-options button {
    min-height: 50px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #dce4ed;
    border-radius: 7px;
    padding: 8px 11px;
    color: #0b1e36;
    background: #ffffff;
    text-align: left;
}

.memory-question-options button b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2f6;
}

.memory-question-options button span {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.memory-question-options button.is-correct {
    border-color: #66bf96;
    color: #085f3f;
    background: #ecfaf3;
}

.memory-question-options button.is-wrong {
    border-color: #df8a8a;
    color: #912b36;
    background: #fff2f2;
}

.memory-answer-feedback:not(:empty) {
    border: 1px solid #e0c36c;
    border-radius: 7px;
    margin-top: 14px;
    padding: 12px;
    background: #fff9e8;
}

.memory-answer-feedback strong {
    font-size: 13px;
    font-weight: 900;
}

.memory-answer-feedback p {
    margin: 4px 0 0;
    color: #53677e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

@keyframes memorySheetUp {
    from { opacity: .65; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes memoryBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 820px) {
    .student-main-memory {
        padding-right: 16px;
        padding-left: 16px;
    }

    .memory-category-list {
        grid-template-columns: 1fr;
    }

    .memory-hero {
        min-height: 196px;
        padding: 26px 96px 26px 24px;
    }

    .memory-hero::after {
        width: 88px;
    }

    .memory-hero-icon {
        right: 18px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 560px) {
    .student-main-memory {
        padding: 14px 10px 54px;
    }

    .memory-home {
        gap: 18px;
    }

    .memory-hero {
        min-height: 184px;
        padding: 22px 70px 22px 18px;
    }

    .memory-hero::after {
        width: 64px;
    }

    .memory-hero-icon {
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .memory-hero-icon svg {
        width: 22px;
        height: 22px;
    }

    .memory-hero h1 {
        font-size: 25px;
    }

    .memory-hero p {
        font-size: 12px;
        line-height: 1.48;
    }




    .memory-section-heading h2 {
        font-size: 20px;
    }

    .memory-section-heading > button {
        padding: 0 9px;
        font-size: 10px;
    }

    .memory-category-card {
        min-height: 106px;
        grid-template-columns: 90px minmax(0, 1fr) 18px;
        gap: 11px;
        padding: 7px 10px 7px 7px;
    }

    .memory-category-cover {
        height: 92px;
    }

    .memory-category-copy strong {
        font-size: 15px;
    }

    .memory-page-header {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .memory-back-button {
        width: 38px;
        height: 38px;
    }

    .memory-page-header h1 {
        font-size: 23px;
    }

    .memory-category-description {
        margin-left: 48px;
        font-size: 12px;
    }

    .memory-video-grid {
        gap: 3px;
    }

    .memory-video-tile > strong {
        right: 6px;
        bottom: 7px;
        left: 6px;
        font-size: 10px;
    }

    .memory-tile-play {
        top: 7px;
        right: 7px;
        width: 24px;
        height: 24px;
    }
}

@media (max-height: 700px) {
    .memory-reel-actions {
        bottom: 142px;
        gap: 10px;
    }

    .memory-reel-actions button > span {
        width: 40px;
        height: 40px;
    }

    .memory-reel-caption {
        bottom: 34px;
    }

    .memory-swipe-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .memory-reel,
    .memory-sheet,
    .memory-sheet-backdrop,
    .memory-reel-progress i {
        animation: none !important;
    }
}
/* Kisa Hafiza admin */
.stitch-study-entry-card.is-memory {
    --entry-accent: #b88917;
    --entry-soft: #fff8e6;
}

.memory-admin-panel {
    overflow: hidden;
}

.memory-admin-heading {
    align-items: center;
}

.memory-admin-category-list {
    display: grid;
    gap: 18px;
}

.memory-admin-category {
    border-top: 3px solid #d4af37;
    background: #fbfcfd;
}

.memory-admin-category + .memory-admin-category {
    margin-top: 6px;
}

.memory-admin-category-head {
    min-height: 62px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #dce4ed;
    border-top: 0;
    padding: 10px 14px;
    background: #ffffff;
}

.memory-admin-index,
.memory-admin-video-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #0b1e36;
    background: #f2c84b;
    font-size: 13px;
    font-weight: 900;
}

.memory-admin-category-head > span:nth-child(2),
.memory-admin-video summary > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.memory-admin-category-head small,
.memory-admin-video summary small {
    color: #a27815;
    font-size: 9px;
    font-weight: 900;
}

.memory-admin-category-head strong,
.memory-admin-video summary strong {
    overflow: hidden;
    color: #0b1e36;
    font-size: 15px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-admin-category-fields,
.memory-admin-video-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(160px, 1fr) 90px 120px;
    gap: 11px;
    border-right: 1px solid #dce4ed;
    border-left: 1px solid #dce4ed;
    padding: 14px;
}

.memory-admin-category-fields label,
.memory-admin-video-fields label {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
    color: #41566e;
    font-size: 11px;
    font-weight: 800;
}

.memory-admin-category-fields input,
.memory-admin-category-fields select,
.memory-admin-video-fields input,
.memory-admin-video-fields select,
.memory-admin-video-fields textarea {
    width: 100%;
    min-width: 0;
}

.memory-admin-wide {
    grid-column: span 2;
}

.memory-admin-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border: 1px solid #dce4ed;
    border-top: 0;
    padding: 10px 14px;
    background: #f6f8fa;
}

.memory-admin-video-list {
    display: grid;
    gap: 8px;
    border-right: 1px solid #dce4ed;
    border-bottom: 1px solid #dce4ed;
    border-left: 1px solid #dce4ed;
    padding: 14px;
    background: #eef2f6;
}

.memory-admin-video {
    border: 1px solid #d8e1ea;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.memory-admin-video summary {
    min-height: 54px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    cursor: pointer;
    list-style: none;
}

.memory-admin-video summary::-webkit-details-marker {
    display: none;
}

.memory-admin-video summary em {
    color: #60738a;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.memory-admin-video-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 0;
    border-top: 1px solid #e0e7ee;
}

.memory-admin-video .memory-admin-row-actions {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.memory-admin-empty {
    margin: 0;
    padding: 20px;
    text-align: center;
}

@media (max-width: 1100px) {
    .memory-admin-category-fields,
    .memory-admin-video-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .memory-admin-category-fields,
    .memory-admin-video-fields {
        grid-template-columns: 1fr;
    }

    .memory-admin-wide {
        grid-column: auto;
    }

    .memory-admin-category-head {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .memory-admin-category-head .compact-switch {
        grid-column: 1 / -1;
    }

    .memory-admin-row-actions {
        flex-direction: column;
    }

    .memory-admin-row-actions button {
        width: 100%;
    }
}
/* Memory navigation responsive fit */
@media (min-width: 1024px) and (max-width: 1399px) {
    .stitch-main-header {
        gap: clamp(10px, 1.2vw, 18px);
        padding-left: clamp(18px, 2vw, 28px);
        padding-right: clamp(18px, 2vw, 28px);
    }

    .stitch-main-header .brand-lockup {
        gap: 9px;
    }

    .stitch-main-header .brand-mark {
        width: 34px;
        height: 34px;
    }

    .stitch-main-header .brand-wordmark {
        font-size: clamp(18px, 1.6vw, 21px);
        white-space: nowrap;
    }

    .stitch-top-nav {
        min-width: 0;
        gap: 2px;
        overflow: hidden;
    }

    .stitch-top-nav .student-top-nav-item {
        min-width: 0;
        gap: 5px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12.5px;
    }

    .stitch-top-nav .student-top-nav-item svg {
        width: 16px;
        height: 16px;
    }

    .stitch-main-header .student-menu-actions {
        gap: 8px;
    }

    .stitch-user-copy {
        display: none;
    }
}
/* Daily memory feature */
.memory-daily-card {
    width: 100%;
    min-height: 272px;
    display: grid;
    grid-template-columns: minmax(250px, 35%) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 0;
    background: #ffffff;
    color: #0b1e36;
    text-align: left;
    box-shadow: 0 16px 36px rgba(11, 30, 54, 0.09);
}

.memory-daily-card:hover,
.memory-daily-card:focus-visible {
    border-color: #d0ae48;
    box-shadow: 0 20px 42px rgba(11, 30, 54, 0.14);
    transform: translateY(-2px);
}

.memory-daily-media {
    position: relative;
    min-height: 272px;
    overflow: hidden;
    background: #0b1e36;
}

.memory-daily-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 16, 31, 0.05), rgba(4, 16, 31, 0.45));
}

.memory-daily-media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.memory-daily-media > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(11, 30, 54, 0.78);
    color: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 28px rgba(4, 16, 31, 0.28);
}

.memory-daily-media > i svg {
    width: 27px;
    height: 27px;
    margin-left: 3px;
}

.memory-daily-media > b {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    border-radius: 999px;
    padding: 7px 10px;
    background: #f2c84b;
    color: #0b1e36;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.memory-daily-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px clamp(26px, 4vw, 54px);
}

.memory-daily-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.memory-daily-meta small {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 0 10px;
    background: #f2cc58;
    color: #0b1e36;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 5px 14px rgba(184, 137, 23, .18);
}

.memory-daily-meta time {
    color: #60738a;
    font-size: 11px;
    font-weight: 800;
}

.memory-daily-copy > em {
    margin-top: 22px;
    color: var(--memory-accent, #b88917);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.memory-daily-copy > strong {
    margin-top: 5px;
    color: #0b1e36;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 950;
    line-height: 1.08;
}

.memory-daily-copy > p {
    max-width: 650px;
    margin: 10px 0 0;
    color: #52667e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.memory-daily-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    border-radius: 6px;
    padding: 0 18px;
    background: #0b1e36;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(11, 30, 54, 0.18);
}

.memory-daily-action b {
    font-size: 13px;
    font-weight: 900;
}

.memory-daily-action svg {
    width: 18px;
    height: 18px;
}

.memory-daily-empty {
    min-height: 124px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    color: #0b1e36;
}

.memory-daily-empty > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff4ca;
    color: #a7790d;
}

.memory-daily-empty > div {
    display: grid;
    gap: 4px;
}

.memory-daily-empty small {
    color: #a7790d;
    font-size: 10px;
    font-weight: 900;
}

.memory-daily-empty strong {
    font-size: 17px;
    font-weight: 850;
}

.memory-admin-video-status {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.memory-admin-video-status b {
    border-radius: 999px;
    padding: 4px 8px;
    background: #e9eef4;
    color: #41566e;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.memory-admin-video-status.is-daily b {
    background: #fff0b8;
    color: #7f5a00;
}

.memory-admin-video-status.is-scheduled b {
    background: #dfe9ff;
    color: #284d8d;
}

.memory-admin-video-status.is-live b {
    background: #dff4ea;
    color: #176547;
}

.memory-admin-video-status.is-draft b {
    background: #eef0f3;
    color: #687789;
}

.memory-admin-video-status span {
    color: #60738a;
    font-size: 9px;
}

@media (max-width: 820px) {
    .memory-daily-card {
        grid-template-columns: minmax(190px, 38%) minmax(0, 1fr);
        min-height: 238px;
    }

    .memory-daily-media {
        min-height: 238px;
    }

    .memory-daily-copy {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .memory-daily-card {
        min-height: 190px;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 0;
        padding: 7px;
    }

    .memory-daily-media {
        min-height: 176px;
        border-radius: 5px;
    }

    .memory-daily-media > i {
        width: 46px;
        height: 46px;
    }

    .memory-daily-media > i svg {
        width: 21px;
        height: 21px;
    }

    .memory-daily-media > b {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
        font-size: 8px;
    }

    .memory-daily-copy {
        justify-content: flex-start;
        padding: 10px 10px 10px 14px;
    }

    .memory-daily-meta {
        align-items: center;
        flex-direction: row;
        gap: 5px 8px;
    }

    .memory-daily-meta small {
        min-height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }

    .memory-daily-meta time {
        font-size: 9px;
        font-weight: 800;
    }

    .memory-daily-copy > em {
        margin-top: 8px;
        font-size: 10px;
    }

    .memory-daily-copy > strong {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 3px;
        font-size: 18px;
        line-height: 1.08;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .memory-daily-copy > p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .memory-daily-action {
        min-height: 34px;
        gap: 7px;
        margin-top: auto;
        padding: 0 10px;
    }

    .memory-daily-action b {
        font-size: 10px;
    }

    .memory-daily-action svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 350px) {
    .memory-daily-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .memory-daily-copy {
        padding-left: 10px;
    }
}

/* Memory home surface hierarchy */
.memory-home {
    gap: 0;
}

.memory-daily-card {
    min-height: 286px;
    overflow: visible;
    border: 0;
    border-left: 4px solid var(--memory-accent, #d4af37);
    border-radius: 0;
    padding-left: 16px;
    background: transparent;
    box-shadow: none;
}

.memory-daily-card:hover,
.memory-daily-card:focus-visible {
    border-color: var(--memory-accent, #d4af37);
    background: rgba(255, 250, 240, .72);
    box-shadow: none;
    transform: none;
}

.memory-daily-card:focus-visible {
    outline: 3px solid rgba(212, 175, 55, .28);
    outline-offset: 5px;
}

.memory-daily-media {
    min-height: 286px;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(11, 30, 54, .16);
}

.memory-daily-copy {
    padding-top: 24px;
    padding-bottom: 24px;
}





.memory-section-heading {
    margin-top: 38px;
    padding-bottom: 10px;
}

.memory-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 0;
    border-top: 1px solid #d8e0e8;
}

.memory-category-card {
    min-height: 118px;
    grid-template-columns: 82px minmax(0, 1fr) 34px;
    gap: 16px;
    border: 0;
    border-bottom: 1px solid #d8e0e8;
    border-radius: 0;
    padding: 16px 2px;
    background: transparent;
    box-shadow: none;
    transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.memory-category-card:hover,
.memory-category-card:focus-visible {
    border-color: #d8e0e8;
    padding-right: 8px;
    padding-left: 8px;
    background: rgba(255, 250, 240, .78);
    box-shadow: none;
    transform: none;
}

.memory-category-card:focus-visible {
    outline: 2px solid rgba(212, 175, 55, .32);
    outline-offset: -2px;
}

.memory-category-cover {
    width: 78px;
    height: 78px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(11, 30, 54, .14);
}

.memory-category-cover::after {
    height: 64%;
}

.memory-category-cover > i {
    right: 5px;
    bottom: 7px;
    left: 5px;
    text-align: center;
}

.memory-category-copy {
    gap: 4px;
}

.memory-category-progress {
    width: min(180px, 82%);
    height: 3px;
    margin-top: 4px;
}

.memory-category-arrow {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #718298;
}

.memory-category-card:hover .memory-category-arrow,
.memory-category-card:focus-visible .memory-category-arrow {
    background: #0b1e36;
    color: #ffffff;
}

@media (max-width: 820px) {
    .memory-category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .memory-daily-card {
        min-height: 194px;
        grid-template-columns: 112px minmax(0, 1fr);
        border-left-width: 3px;
        padding: 8px 0 8px 9px;
    }

    .memory-daily-media {
        min-height: 178px;
        border-radius: 7px;
        box-shadow: 0 12px 24px rgba(11, 30, 54, .15);
    }

    .memory-daily-copy {
        padding: 9px 8px 9px 14px;
    }




    .memory-section-heading {
        margin-top: 32px;
        padding-bottom: 8px;
    }

    .memory-category-card {
        min-height: 100px;
        grid-template-columns: 70px minmax(0, 1fr) 30px;
        gap: 13px;
        padding: 13px 2px;
    }

    .memory-category-card:hover,
    .memory-category-card:focus-visible {
        padding-right: 5px;
        padding-left: 5px;
    }

    .memory-category-cover {
        width: 68px;
        height: 68px;
    }

    .memory-category-copy strong {
        font-size: 16px;
    }

    .memory-category-copy small {
        font-size: 11px;
        line-height: 1.35;
    }
}


@media (min-width: 561px) {
    .memory-daily-card {
        height: clamp(270px, 30vw, 340px);
        min-height: 0;
    }

    .memory-daily-media {
        height: 100%;
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .memory-daily-card {
        height: 194px;
        min-height: 0;
    }

    .memory-daily-media {
        height: 178px;
        min-height: 0;
    }
}
/* PDF day-card library */
.student-main-pdfs .pdf-day-list {
    gap: 14px;
    margin-top: 22px;
}

.student-main-pdfs .pdf-day-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--student-border-soft);
    border-left: 5px solid var(--student-gold);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: var(--student-shadow-sm);
}

.student-main-pdfs .pdf-day-card .question-tree-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(90deg, #fffdf8 0%, #fbf4e4 100%);
    cursor: default;
}

.student-main-pdfs .pdf-day-card .question-tree-row:hover {
    transform: none;
    background: linear-gradient(90deg, #fffaf0 0%, #f8edd4 100%);
    box-shadow: none;
}

.student-main-pdfs .pdf-day-card .day-summary-main,
.student-main-pdfs .pdf-day-card .day-summary-copy {
    min-width: 0;
}

.student-main-pdfs .pdf-day-card .day-summary-copy strong {
    overflow-wrap: anywhere;
}

.student-main-pdfs .pdf-day-download {
    min-width: 86px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-color: var(--student-navy);
    background: var(--student-navy);
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 29, 55, 0.12);
}

.student-main-pdfs .pdf-day-download.is-disabled {
    min-width: 118px;
    border-color: #e5e7eb;
    background: #f3f5f8;
    color: #667085;
    box-shadow: none;
}

.student-main-pdfs .stitch-pdf-empty {
    border: 1px dashed var(--student-border-soft);
    border-radius: 12px;
    background: #fff;
    padding: 22px;
    color: var(--student-navy);
}

.student-main-pdfs .stitch-pdf-empty p {
    margin: 6px 0 0;
    color: #5b6c80;
}

@media (max-width: 640px) {
    .student-main-pdfs .pdf-day-card .question-tree-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 15px 14px;
    }

    .student-main-pdfs .pdf-day-card .day-icon {
        width: 38px;
        height: 38px;
    }

    .student-main-pdfs .pdf-day-card .day-summary-main {
        gap: 10px;
    }

    .student-main-pdfs .pdf-day-card .day-summary-copy {
        gap: 4px;
    }

    .student-main-pdfs .pdf-day-card .day-summary-copy strong {
        font-size: 17px;
        line-height: 1.22;
    }

    .student-main-pdfs .pdf-day-card .day-summary-copy small {
        font-size: 12px;
        line-height: 1.35;
    }

    .student-main-pdfs .pdf-day-download {
        min-width: 70px;
        min-height: 32px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .student-main-pdfs .pdf-day-download.is-disabled {
        min-width: 92px;
    }
}
