*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* Student assessment experience */
.student-body{
    margin:0;
    background:#f5f7fb;
    color:#111827;
}

.student-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:230px minmax(0, 1fr);
    padding-top:70px;
    transition:grid-template-columns .22s ease;
}

.student-shell.sidebar-collapsed{
    grid-template-columns:76px minmax(0, 1fr);
}

.student-topbar{
    position:fixed;
    z-index:50;
    inset:0 0 auto 0;
    height:70px;
    display:grid;
    grid-template-columns:230px 52px minmax(0, 1fr);
    align-items:center;
    background:#fff;
    border-bottom:1px solid #dce3ed;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
}

.student-brand{
    align-self:stretch;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 24px;
    color:#fff;
    background:#1263ca;
    font-size:20px;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}

.student-brand-mark{
    color:#fff;
    font-size:20px;
}

.student-menu-button{
    width:36px;
    height:36px;
    display:grid;
    align-content:center;
    gap:5px;
    padding:6px;
    margin-left:14px;
    border:0;
    background:transparent;
    cursor:pointer;
}

.student-menu-button span{
    display:block;
    width:22px;
    height:2px;
    background:#111827;
    transition:transform .2s ease, opacity .2s ease;
}

.sidebar-collapsed .student-menu-button span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.sidebar-collapsed .student-menu-button span:nth-child(2){
    opacity:0;
}

.sidebar-collapsed .student-menu-button span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.student-user{
    justify-self:end;
    display:flex;
    align-items:center;
    gap:10px;
    padding-right:22px;
    font-size:14px;
}

.student-avatar{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#fff;
    background:#1f2937;
    font-weight:800;
}

.student-sidebar{
    position:sticky;
    top:70px;
    height:calc(100vh - 70px);
    overflow-x:hidden;
    overflow-y:auto;
    background:linear-gradient(180deg,#172537,#213448);
    color:#fff;
}

.student-nav-label{
    margin:0;
    padding:22px 20px 10px;
    color:#b8c5d3;
    font-size:11px;
    text-transform:uppercase;
    white-space:nowrap;
}

.student-nav{
    display:grid;
    gap:3px;
    padding:0 9px 20px;
}

.student-nav a{
    min-height:44px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px 13px;
    border-radius:5px;
    color:#f7f9fc;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
}

.student-nav a:hover,
.student-nav a.active{
    background:#1263ca;
}

.student-nav-icon{
    width:24px;
    flex:0 0 24px;
    display:grid;
    place-items:center;
    color:#d9e5f2;
    font-size:13px;
    font-weight:800;
}

.sidebar-collapsed .student-nav-label,
.sidebar-collapsed .student-nav a span:last-child{
    width:0;
    padding-left:0;
    padding-right:0;
    opacity:0;
    overflow:hidden;
}

.sidebar-collapsed .student-nav a{
    justify-content:center;
    padding-left:0;
    padding-right:0;
}

.student-main{
    min-width:0;
    padding:26px 24px 40px;
}

.student-page-heading{
    margin-bottom:22px;
}

.student-page-heading h1{
    margin:0 0 7px;
    font-size:24px;
    line-height:1.25;
    letter-spacing:0;
}

.student-page-heading p{
    margin:0;
    color:#536176;
    font-size:14px;
}

.student-panel{
    background:#fff;
    border:1px solid #dce3ed;
    border-radius:6px;
    box-shadow:0 3px 10px rgba(15,23,42,.05);
}

.student-selection-panel{
    width:min(560px, 100%);
    padding:22px;
}

.student-step-field{
    margin-bottom:18px;
}

.student-step-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:800;
}

.student-step-field select,
.student-step-field input{
    width:100%;
    min-height:48px;
    padding:0 14px;
    border:1px solid #ccd6e3;
    border-radius:5px;
    background:#fff;
    color:#172033;
    font:inherit;
}

.student-step-field select:focus,
.student-step-field input:focus{
    outline:2px solid rgba(18,99,202,.18);
    border-color:#1263ca;
}

.test-model-control{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}

.test-model-control label{
    margin:0;
    cursor:pointer;
}

.test-model-control input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.test-model-control span{
    min-height:68px;
    display:grid;
    align-content:center;
    gap:4px;
    padding:10px;
    border:1px solid #ccd6e3;
    border-radius:5px;
    background:#fff;
    text-align:center;
}

.test-model-control input:checked + span{
    color:#0d54af;
    border-color:#1263ca;
    background:#edf5ff;
    box-shadow:0 0 0 1px #1263ca;
}

.test-model-control strong{
    font-size:13px;
}

.test-model-control small,
.field-help{
    color:#68768a;
    font-size:11px;
}

.student-step-field select[multiple]{
    min-height:190px;
    padding:7px;
}

.student-step-field select[multiple] option{
    padding:9px 8px;
    border-radius:4px;
}

.native-select-hidden{
    position:absolute!important;
    inline-size:1px!important;
    block-size:1px!important;
    opacity:0!important;
    pointer-events:none!important;
}

.responsive-select{
    position:relative;
    width:100%;
}

.responsive-select-button{
    width:100%;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:0 14px;
    border:1px solid #ccd6e3;
    border-radius:5px;
    background:#fff;
    color:#172033;
    font:inherit;
    text-align:left;
}

.responsive-select-button::after{
    content:"";
    flex:0 0 8px;
    inline-size:8px;
    block-size:8px;
    border-right:2px solid #68768a;
    border-bottom:2px solid #68768a;
    transform:rotate(45deg) translateY(-2px);
}

.responsive-select.open .responsive-select-button{
    outline:2px solid rgba(18,99,202,.18);
    border-color:#1263ca;
}

.responsive-select.disabled .responsive-select-button{
    background:#f4f7fb;
    color:#8a96a8;
}

.responsive-select-menu{
    display:none;
    position:absolute;
    z-index:80;
    left:0;
    right:0;
    top:calc(100% + 6px);
    max-height:min(260px, 52vh);
    overflow-y:auto;
    border:1px solid #ccd6e3;
    border-radius:8px;
    background:#fff;
    box-shadow:0 16px 35px rgba(15,23,42,.14);
}

.responsive-select.open .responsive-select-menu{
    display:block;
}

.responsive-select-option{
    width:100%;
    display:block;
    padding:12px 14px;
    border:0;
    background:#fff;
    color:#172033;
    font:inherit;
    text-align:left;
}

.responsive-select-option:hover,
.responsive-select-option.selected{
    background:#edf5ff;
    color:#0d54af;
}

.responsive-select-option:disabled{
    color:#8793a5;
}

.student-primary-button,
.student-secondary-button,
.student-warning-button,
.student-danger-button{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 20px;
    border:1px solid transparent;
    border-radius:5px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
}

.student-primary-button{
    color:#fff;
    background:#1263ca;
}

.student-primary-button:hover{
    background:#0d54af;
}

.student-primary-button.green{
    background:#17a653;
}

.student-primary-button.green:hover{
    background:#108b44;
}

.student-secondary-button{
    color:#172033;
    background:#fff;
    border-color:#c8d2df;
}

.student-warning-button{
    color:#c75208;
    background:#fff;
    border-color:#f28a3a;
}

.student-danger-button{
    color:#fff;
    background:#e9232d;
}

.student-wide-button{
    width:100%;
}

.student-alert{
    width:min(560px, 100%);
    margin-bottom:16px;
    padding:12px 14px;
    border:1px solid #f5c2c7;
    border-radius:5px;
    color:#842029;
    background:#f8d7da;
}

.student-alert.success{
    color:#0f7a3a;
    border-color:#bfe8cf;
    background:#f0fbf4;
}

.test-settings{
    width:min(560px,100%);
    padding:12px 20px 20px;
}

.test-settings-actions{
    display:grid;
    grid-template-columns:minmax(130px,.35fr) minmax(0,1fr);
    gap:12px;
    margin-top:18px;
}

.test-settings-actions form{
    margin:0;
}

.test-settings-actions .student-danger-button,
.test-settings-actions .student-primary-button{
    width:100%;
    min-height:46px;
}

.test-setting-row{
    display:grid;
    grid-template-columns:34px 1fr 1.2fr;
    align-items:center;
    min-height:52px;
    border-bottom:1px solid #e2e7ef;
    font-size:14px;
}

.test-setting-row:last-of-type{
    margin-bottom:18px;
}

.setting-icon{
    width:25px;
    height:25px;
    display:grid;
    place-items:center;
    border-radius:5px;
    color:#1263ca;
    background:#e8f1fe;
    font-size:11px;
    font-weight:900;
}

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

.test-setting-row span:last-child{
    color:#303b4d;
}

.test-workspace{
    display:grid;
    grid-template-columns:minmax(0,1fr) 260px;
    gap:18px;
}

.test-question-card{
    min-height:470px;
    display:flex;
    flex-direction:column;
    padding:24px;
}

.test-question-title{
    margin:0 0 24px;
    font-size:17px;
    line-height:1.55;
}

.test-options{
    display:grid;
    gap:11px;
}

.test-option{
    min-height:48px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px 14px;
    border:1px solid #d8e0ea;
    border-radius:5px;
    background:#fff;
    cursor:pointer;
}

.test-option:has(input:checked){
    border-color:#1263ca;
    box-shadow:0 0 0 1px #1263ca;
    color:#0b4f9f;
}

.test-option input{
    width:17px;
    height:17px;
    accent-color:#1263ca;
}

.fill-answer{
    width:100%;
    min-height:48px;
    padding:0 14px;
    border:1px solid #ccd6e3;
    border-radius:5px;
    font:inherit;
}

.test-question-actions{
    margin-top:auto;
    padding-top:28px;
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.test-question-actions-center{
    display:flex;
    gap:12px;
}

.question-palette{
    padding:20px;
}

.question-palette h2{
    margin:0 0 18px;
    font-size:16px;
}

.palette-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:9px;
}

.palette-button{
    aspect-ratio:1;
    display:grid;
    place-items:center;
    border:1px solid #d7dfe9;
    border-radius:5px;
    color:#172033;
    background:#f8fafc;
    font-weight:800;
    cursor:pointer;
}

.palette-button.current{
    color:#fff;
    border-color:#1263ca;
    background:#1263ca;
}

.palette-button.answered{
    color:#126b43;
    border-color:#b9e5cf;
    background:#d9f3e5;
}

.palette-button.review{
    color:#a44505;
    border-color:#ffbd80;
    background:#fff0e2;
}

.palette-button.current.answered,
.palette-button.current.review{
    color:#fff;
    border-color:#1263ca;
    background:#1263ca;
}

.palette-legend{
    display:grid;
    gap:10px;
    margin-top:22px;
    font-size:12px;
}

.palette-legend span{
    display:flex;
    align-items:center;
    gap:9px;
}

.legend-swatch{
    width:18px;
    height:18px;
    border:1px solid #d7dfe9;
    border-radius:4px;
    background:#f8fafc;
}

.legend-swatch.answered{background:#d9f3e5;border-color:#b9e5cf}
.legend-swatch.review{background:#fff0e2;border-color:#ffbd80}
.legend-swatch.current{background:#1263ca;border-color:#1263ca}

.test-context-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin:-10px 0 20px;
    font-size:13px;
}

.test-breadcrumb{
    color:#4c596c;
}

.test-breadcrumb strong{
    color:#172033;
}

.test-timer{
    color:#d71920;
    text-align:center;
    font-weight:900;
    letter-spacing:0;
}

.test-timer small{
    display:block;
    margin-top:2px;
    font-size:10px;
    font-weight:700;
}

.submit-confirmation{
    max-width:720px;
    padding:38px 30px;
    text-align:center;
}

.submit-check{
    width:70px;
    height:70px;
    display:grid;
    place-items:center;
    margin:0 auto 18px;
    border-radius:50%;
    color:#159447;
    background:#def3e6;
    font-size:36px;
    font-weight:900;
}

.submit-confirmation h2{
    margin:0 0 10px;
    font-size:20px;
}

.submit-confirmation p{
    margin:0 0 28px;
    color:#536176;
}

.submit-confirmation-actions{
    display:flex;
    justify-content:center;
    gap:14px;
}

.result-layout{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:16px;
}

.score-panel{
    min-height:350px;
    display:grid;
    align-content:center;
    justify-items:center;
    padding:24px;
    text-align:center;
}

.score-panel h2{
    margin:0 0 18px;
    font-size:15px;
}

.score-ring{
    --score:0;
    width:138px;
    height:138px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:conic-gradient(#18a657 calc(var(--score) * 1%), #dceee4 0);
}

.score-ring-inner{
    width:103px;
    height:103px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff;
}

.score-ring strong{
    display:block;
    color:#07883d;
    font-size:30px;
    line-height:1;
}

.score-ring span{
    font-size:13px;
}

.score-percentage{
    margin:16px 0 4px;
    color:#096b35;
    font-size:26px;
    font-weight:900;
}

.score-message{
    color:#159447;
    font-weight:800;
}

.result-summary{
    min-width:0;
}

.result-stat-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-bottom:14px;
}

.result-stat{
    min-height:88px;
    display:grid;
    align-content:center;
    justify-items:center;
    border:1px solid #dce3ed;
    border-radius:6px;
    background:#fff;
}

.result-stat span{
    margin-bottom:6px;
    color:#4d596b;
    font-size:12px;
}

.result-stat strong{
    font-size:22px;
}

.result-stat.good{background:#f1faf5;border-color:#cfe9da;color:#087d38}
.result-stat.bad{background:#fff5f5;border-color:#f1d3d3;color:#d71920}
.result-stat.time{background:#f6f5ff;border-color:#dcd8f6;color:#4738b4}

.result-topic-panel{
    padding:18px;
}

.result-topic-panel h2{
    margin:0 0 14px;
    font-size:15px;
}

.my-tests-filter{
    display:grid;
    grid-template-columns:repeat(4,minmax(160px,1fr)) auto auto;
    align-items:end;
    gap:12px;
    margin-bottom:16px;
    padding:16px;
}

.my-tests-filter label{
    display:block;
    margin-bottom:6px;
    color:#42526c;
    font-size:12px;
    font-weight:900;
}

.my-tests-filter select,
.my-tests-filter input{
    width:100%;
    min-height:42px;
    padding:0 10px;
    border:1px solid #d9e4f1;
    border-radius:6px;
    background:#fff;
    color:#06142b;
    font-weight:700;
}

.my-tests-filter .filter-subject,
.my-tests-filter .filter-topic-only,
.my-tests-filter .filter-weekly-only,
.my-tests-filter .filter-monthly-only{
    display:none;
}

.my-tests-filter.show-topic-filters .filter-subject,
.my-tests-filter.show-weekly-filters .filter-subject,
.my-tests-filter.show-monthly-filters .filter-subject,
.my-tests-filter.show-topic-filters .filter-topic-only,
.my-tests-filter.show-weekly-filters .filter-weekly-only,
.my-tests-filter.show-monthly-filters .filter-monthly-only{
    display:block;
}

.result-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}

.result-table th,
.result-table td{
    padding:12px;
    border-bottom:1px solid #e4e9f0;
    text-align:left;
}

.result-table th{
    background:#f6f8fb;
    font-size:12px;
}

.solutions-panel{
    margin-top:18px;
    padding:20px;
}

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

.solutions-heading h2{
    margin:0 0 6px;
    font-size:20px;
}

.solutions-heading p{
    margin:0;
    color:#536176;
    font-size:14px;
}

.solutions-heading > span{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    padding:0 12px;
    border:1px solid #dbe4ef;
    border-radius:6px;
    color:#0b57d0;
    background:#f7fbff;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
}

.solution-list{
    display:grid;
    gap:14px;
}

.solution-card{
    padding:16px;
    border:1px solid #dbe4ef;
    border-left:4px solid #d71920;
    border-radius:8px;
    background:#fff;
}

.solution-card.correct{
    border-left-color:#18a657;
}

.solution-card-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.solution-card-top span{
    color:#526075;
    font-size:13px;
    font-weight:800;
}

.solution-card-top strong{
    font-size:13px;
}

.solution-card-top strong.good{color:#0b8f42}
.solution-card-top strong.bad{color:#d71920}

.solution-card h3{
    margin:0;
    color:#071327;
    font-size:16px;
    line-height:1.45;
}

.solution-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.solution-meta span{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 10px;
    border-radius:6px;
    background:#f1f5f9;
    color:#334155;
    font-size:12px;
    font-weight:800;
}

.solution-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}

.solution-option{
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    align-items:center;
    gap:10px;
    padding:10px;
    border:1px solid #dbe4ef;
    border-radius:6px;
    background:#f8fafc;
}

.solution-option b{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#0b57d0;
    background:#eaf2ff;
    font-size:12px;
}

.solution-option span{
    overflow-wrap:anywhere;
}

.solution-option.answer{
    border-color:#b7e4c7;
    background:#f1faf5;
}

.solution-option.selected:not(.answer){
    border-color:#f4b4b8;
    background:#fff5f5;
}

.solution-answer-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}

.solution-answer-grid div{
    min-width:0;
    padding:12px;
    border:1px solid #dbe4ef;
    border-radius:6px;
    background:#fff;
}

.solution-answer-grid span,
.solution-explanation span{
    display:block;
    margin-bottom:6px;
    color:#526075;
    font-size:12px;
    font-weight:900;
}

.solution-answer-grid strong{
    display:block;
    overflow-wrap:anywhere;
    color:#071327;
    font-size:14px;
}

.solution-explanation{
    margin-top:14px;
    padding:12px;
    border-radius:6px;
    background:#f7fbff;
}

.solution-explanation p{
    margin:0;
    color:#334155;
    line-height:1.55;
}

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

@media (max-width:900px){
    .test-workspace,
    .result-layout{
        grid-template-columns:1fr;
    }

    .my-tests-filter{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .question-palette{
        order:-1;
    }
}

/* Final homepage mobile override: shrink screenshots and keep metrics in one row. */
@media(max-width:1080px){
    .landing-hero-grid,
    .insights-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:24px !important;
    }

    .hero-dashboard,
    .report-preview{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        margin-right:auto !important;
        margin-left:auto !important;
        overflow:hidden !important;
    }

    .hero-dashboard img,
    .report-preview img{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
    }
}

@media(max-width:760px){
    .landing-hero{
        padding-bottom:24px !important;
    }

    .landing-metrics{
        display:grid !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:8px !important;
        margin-top:26px !important;
        flex-wrap:nowrap !important;
    }

    .landing-metrics div{
        display:grid !important;
        grid-template-columns:34px minmax(0,1fr) !important;
        column-gap:7px !important;
        align-items:center !important;
        min-width:0 !important;
    }

    .metric-icon{
        width:34px !important;
        height:34px !important;
        font-size:9px !important;
    }

    .landing-metrics strong{
        font-size:19px !important;
    }

    .landing-metrics small{
        font-size:9px !important;
        line-height:1.15 !important;
    }

    .hero-dashboard{
        margin-top:20px !important;
        border-radius:12px !important;
    }
}

@media(max-width:380px){
    .landing-metrics{
        gap:6px !important;
    }

    .landing-metrics div{
        grid-template-columns:30px minmax(0,1fr) !important;
        column-gap:5px !important;
    }

    .metric-icon{
        width:30px !important;
        height:30px !important;
        font-size:8px !important;
    }

    .landing-metrics strong{
        font-size:17px !important;
    }

    .landing-metrics small{
        font-size:8px !important;
    }
}

/* Footer brand: keep logo and name on one line. */
.landing-footer .footer-brand{
    display:inline-flex !important;
    align-items:center !important;
    gap:10px !important;
    width:auto !important;
    margin-bottom:14px !important;
}

.landing-footer .footer-brand .landing-logo{
    flex:0 0 42px !important;
}

.landing-footer .footer-brand > span:last-child{
    display:block !important;
    min-width:0 !important;
}

.landing-footer .footer-brand strong,
.landing-footer .footer-brand small{
    display:block !important;
}

/* Book flip page loader. */
.bookflip-loader{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    background:rgba(248,251,255,.94);
    backdrop-filter:blur(8px);
    transition:opacity .24s ease, visibility .24s ease;
}

.bookflip-loader.is-hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.bookflip-loader-card{
    display:grid;
    justify-items:center;
    gap:8px;
    padding:24px 28px;
    border:1px solid #dce8f5;
    border-radius:14px;
    background:#fff;
    box-shadow:0 22px 48px rgba(15,48,96,.16);
}

.bookflip-loader-card strong{
    color:#071327;
    font-size:18px;
    line-height:1;
}

.bookflip-loader-card small{
    color:#526175;
    font-size:12px;
    font-weight:800;
}

.bookflip-book{
    position:relative;
    width:68px;
    height:48px;
    perspective:120px;
}

.bookflip-book:before,
.bookflip-book:after{
    content:"";
    position:absolute;
    top:6px;
    bottom:4px;
    width:31px;
    border:2px solid #0b57d0;
    background:#eaf3ff;
}

.bookflip-book:before{
    left:3px;
    border-radius:8px 2px 2px 8px;
}

.bookflip-book:after{
    right:3px;
    border-radius:2px 8px 8px 2px;
}

.bookflip-book span{
    position:absolute;
    top:6px;
    left:34px;
    width:30px;
    height:38px;
    border:2px solid #0b57d0;
    border-left:0;
    border-radius:2px 8px 8px 2px;
    background:#fff;
    transform-origin:left center;
    animation:bookflip-page 1.15s ease-in-out infinite;
    box-shadow:8px 3px 14px rgba(11,87,208,.1);
}

.bookflip-book span:nth-child(2){
    animation-delay:.14s;
    background:#f6fbff;
}

.bookflip-book span:nth-child(3){
    animation-delay:.28s;
    background:#eef6ff;
}

.bookflip-book span:nth-child(4){
    animation-delay:.42s;
    background:#fff;
}

@keyframes bookflip-page{
    0%{
        transform:rotateY(0deg);
        opacity:0;
    }
    10%{
        opacity:1;
    }
    50%{
        transform:rotateY(-155deg);
        opacity:1;
    }
    82%,
    100%{
        transform:rotateY(-180deg);
        opacity:0;
    }
}

@media (prefers-reduced-motion: reduce){
    .bookflip-loader,
    .bookflip-book span{
        transition:none;
        animation:none;
    }
}

/* Homepage mobile image layout: stack sections and prevent page-level overflow. */
@media(max-width:1080px){
    .landing-hero-grid,
    .insights-grid{
        grid-template-columns:minmax(0,1fr);
        gap:28px;
    }

    .hero-dashboard,
    .report-preview{
        min-width:0;
        width:100%;
        max-width:900px;
        margin-right:auto;
        margin-left:auto;
    }
}

@media(max-width:760px){
    .landing-hero-grid,
    .insights-grid{
        gap:24px;
    }

    .hero-dashboard,
    .report-preview{
        max-width:100%;
        border-radius:12px;
        overflow-x:auto;
        overflow-y:hidden;
    }

    .hero-dashboard img{
        width:760px;
        max-width:none;
    }

    .report-preview img{
        width:700px;
        max-width:none;
    }

    .landing-metrics{
        display:grid;
        grid-template-columns:1fr;
        gap:14px;
        margin-top:28px;
    }
}

@media(max-width:420px){
    .hero-dashboard img{
        width:700px;
    }

    .report-preview img{
        width:640px;
    }
}

@media (max-width:700px){
    .solutions-heading,
    .solution-card-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .solution-options,
    .solution-answer-grid{
        grid-template-columns:1fr;
    }

    .my-tests-filter{
        grid-template-columns:1fr;
    }
}

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

    .student-topbar{
        grid-template-columns:178px 48px minmax(0,1fr);
    }

    .student-brand{
        padding:0 14px;
        font-size:18px;
    }

    .student-sidebar{
        position:fixed;
        z-index:45;
        top:70px;
        left:0;
        width:250px;
        transform:translateX(-100%);
        transition:transform .22s ease;
    }

    .student-shell.sidebar-open .student-sidebar{
        transform:translateX(0);
    }

    .student-main{
        padding:22px 14px 32px;
    }

    .student-user strong{
        display:none;
    }

    .student-user{
        padding-right:12px;
    }

    .student-shell.sidebar-collapsed .student-nav-label,
    .student-shell.sidebar-collapsed .student-nav a span:last-child{
        width:auto;
        padding-left:initial;
        padding-right:initial;
        opacity:1;
    }

    .student-shell.sidebar-collapsed .student-nav a{
        justify-content:flex-start;
        padding:8px 13px;
    }

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

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

@media (max-width:520px){
    .student-topbar{
        grid-template-columns:150px 44px minmax(0,1fr);
    }

    .student-brand{
        font-size:16px;
    }

    .student-brand-mark{
        font-size:16px;
    }

    .student-selection-panel,
    .test-settings,
    .test-question-card,
    .question-palette{
        padding:16px;
    }

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

    .test-setting-row{
        grid-template-columns:30px 1fr;
        gap:4px;
        padding:9px 0;
    }

    .test-setting-row span:last-child{
        grid-column:2;
    }

    .test-context-bar,
    .student-heading-actions{
        align-items:flex-start;
        flex-direction:column;
    }

    .test-question-actions,
    .submit-confirmation-actions{
        flex-direction:column;
    }

    .test-question-actions-center{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .test-question-actions a,
    .test-question-actions button,
    .submit-confirmation-actions a,
    .submit-confirmation-actions button{
        width:100%;
    }

    .result-stat-grid{
        grid-template-columns:1fr 1fr;
    }
}

:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --accent:#0f766e;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;
    --ink:#111827;
    --muted:#64748b;
    --line:#e2e8f0;
    --white:#ffffff;
    --background:#f4f7fb;
    --soft:#eef6ff;
    --shadow:0 18px 45px rgba(15,23,42,0.08);
}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.14), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, var(--background) 100%);
    color:var(--ink);
    font-family:Inter, "Segoe UI", Arial, sans-serif;
    line-height:1.5;
}

a{
    color:inherit;
}

.container{
    width:100%;
    max-width:1180px;
    margin:auto;
    padding:28px 20px;
}

.page-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-start;
    margin-bottom:24px;
}

.page-title{
    font-size:clamp(28px, 4vw, 44px);
    line-height:1.1;
    color:var(--ink);
}

.page-kicker,
.page-subtitle{
    color:var(--muted);
}

.page-kicker{
    font-weight:700;
    margin-bottom:6px;
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:0;
}

.page-subtitle{
    max-width:650px;
    margin-top:10px;
    font-size:16px;
}

.auth-wrapper{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:28px 20px;
}

.auth-card{
    width:100%;
    max-width:500px;
    background:rgba(255,255,255,0.95);
    padding:30px;
    border:1px solid rgba(226,232,240,0.9);
    border-radius:8px;
    box-shadow:var(--shadow);
}

.logo{
    text-align:center;
    margin-bottom:20px;
}

.logo h1{
    color:var(--primary);
    font-size:32px;
}

.logo p{
    color:var(--muted);
    margin-top:5px;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:7px;
    font-weight:600;
    color:#334155;
}

.form-control{
    width:100%;
    padding:12px 13px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    outline:none;
    background:#fff;
    color:var(--ink);
}

.form-control:focus{
    border-color:var(--primary);
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    border:none;
    padding:12px;
    border-radius:8px;
    background:var(--primary);
    color:white;
    cursor:pointer;
    font-size:16px;
    text-decoration:none;
}

.btn:hover{
    background:var(--primary-dark);
}

.btn-secondary{
    background:#fff;
    color:var(--primary);
    border:1px solid #bfdbfe;
}

.btn-secondary:hover{
    background:#eff6ff;
    color:var(--primary-dark);
}

.btn-fit{
    width:auto;
    padding-left:18px;
    padding-right:18px;
}

.alert{
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
}

.alert-danger{
    background:#fee2e2;
    color:#b91c1c;
}

.alert-success{
    background:#dcfce7;
    color:#15803d;
}

.password-wrapper{
    position:relative;
}

.show-password{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:var(--primary);
    font-size:14px;
    font-weight:600;
}

.password-rules{
    margin-top:10px;
    font-size:13px;
}

.password-rules div{
    margin-top:5px;
}

.valid{ color:var(--success); }
.invalid{ color:var(--danger); }

/* Better Inputs */

.form-control{
    transition:0.3s;
}

.form-control:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

/* Better Button */

.btn{
    transition:0.3s;
    font-weight:600;
}

.btn:hover{
    transform:translateY(-1px);
}

/* Links */

.auth-link{
    text-align:center;
    margin-top:15px;
}

.auth-link a{
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

.auth-link a:hover{
    text-decoration:underline;
}

.login-link{
    color:var(--muted);
    margin-top:18px;
    text-align:center;
}

.login-link a{
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
}

.login-link a:hover{
    text-decoration:underline;
}

.site-header{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:24px 20px 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--ink);
    font-weight:800;
    text-decoration:none;
    font-size:20px;
}

.brand-mark{
    width:36px;
    height:36px;
    border-radius:8px;
    display:grid;
    place-items:center;
    background:var(--primary);
    color:#fff;
    font-weight:800;
}

.nav-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

.hero{
    min-height:calc(100vh - 72px);
    display:grid;
    align-items:center;
    padding-top:24px;
    padding-bottom:44px;
}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap:34px;
    align-items:center;
}

.hero h1{
    font-size:clamp(40px, 6vw, 76px);
    line-height:0.98;
    max-width:780px;
    color:var(--ink);
}

.hero-copy{
    color:#475569;
    font-size:18px;
    max-width:610px;
    margin-top:18px;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px;
}

.hero-actions .btn{
    width:auto;
    min-width:170px;
}

.hero-panel{
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    box-shadow:var(--shadow);
    padding:24px;
}

.metric-row{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
    margin-bottom:18px;
}

.metric{
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:8px;
    padding:14px;
}

.metric strong{
    display:block;
    color:var(--ink);
    font-size:24px;
}

.metric span{
    color:var(--muted);
    font-size:13px;
}

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

.progress-item{
    display:grid;
    gap:7px;
}

.progress-label{
    display:flex;
    justify-content:space-between;
    color:#334155;
    font-size:14px;
    font-weight:700;
}

.progress-track{
    height:9px;
    border-radius:999px;
    background:#e2e8f0;
    overflow:hidden;
}

.progress-fill{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, var(--primary), var(--accent));
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
    margin-bottom:22px;
}

.dashboard-card,
.stat-card{
    background:#fff;
    color:var(--ink);
    padding:22px;
    border-radius:8px;
    border:1px solid var(--line);
    box-shadow:0 12px 30px rgba(15,23,42,0.06);
}

/* Mobile */

@media(max-width:576px){

    .auth-card{
        padding:20px;
    }

    .logo h1{
        font-size:28px;
    }

}


/* parent dashbord */


.dashboard-card{
    margin-bottom:20px;
}

.dashboard-card h3{
    margin-bottom:8px;
    color:var(--muted);
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:0;
}

.dashboard-card h1,
.stat-value{
    color:var(--primary);
    font-size:42px;
    line-height:1;
}

.table-card{
    background:rgba(255,255,255,0.96);
    padding:20px;
    border-radius:8px;
    border:1px solid var(--line);
    box-shadow:0 12px 30px rgba(15,23,42,0.06);
    overflow:auto;
}

.student-table{
    width:100%;
    border-collapse:collapse;
}

.student-table th,
.student-table td{
    padding:12px;
    border-bottom:1px solid var(--line);
    text-align:left;
    white-space:nowrap;
}

.student-table th{
    background:#f8fafc;
    color:#475569;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:0;
}

.student-table tr:hover{
    background:#f9fbff;
}

.empty-state{
    padding:28px;
    text-align:center;
    color:var(--muted);
}

.student-summary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:20px;
}

.quick-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:20px;
}

.quick-card h3{
    color:var(--ink);
    margin-bottom:6px;
}

.quick-card p{
    color:var(--muted);
}

.admin-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:260px minmax(0, 1fr);
    background:#f4f7fb;
    transition:grid-template-columns 0.25s ease;
}

.admin-shell.sidebar-collapsed{
    grid-template-columns:78px minmax(0, 1fr);
}

.admin-sidebar{
    position:sticky;
    top:72px;
    height:calc(100vh - 72px);
    background:linear-gradient(180deg, #172230 0, #21303d 100%);
    color:#fff;
    box-shadow:6px 0 20px rgba(15,23,42,0.12);
    overflow-x:hidden;
}

.admin-topbar-brand{
    height:72px;
    width:260px;
    padding:0 24px;
    color:#fff;
    background:#1f7ae0;
    font-size:24px;
    white-space:nowrap;
    flex:0 0 260px;
}

.admin-topbar-brand .brand-mark{
    background:#fff;
    color:#1f7ae0;
}

.admin-nav{
    display:grid;
    gap:2px;
    padding:14px 0 22px;
}

.admin-nav-label{
    color:#c7d0da;
    font-size:12px;
    text-transform:uppercase;
    padding:14px 24px 8px;
    white-space:nowrap;
}

.admin-nav a{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:46px;
    padding:10px 24px;
    color:#f4f7fb;
    text-decoration:none;
    font-weight:600;
    border-left:4px solid transparent;
    white-space:nowrap;
}

.admin-nav a:hover,
.admin-nav a.active{
    background:#2d7fdd;
    border-left-color:#9cc9ff;
    color:#fff;
}

.nav-icon{
    width:28px;
    height:28px;
    border-radius:8px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,0.14);
    color:#fff;
    font-size:10px;
    font-weight:800;
}

.admin-main{
    min-width:0;
    padding:72px 0 0;
    background:#f4f7fb;
}

.admin-topbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:40;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px 0 0;
    background:#fff;
    border-bottom:1px solid #dde4ee;
}

.admin-topbar-left{
    display:flex;
    align-items:center;
    gap:22px;
}

.menu-button{
    width:34px;
    height:34px;
    display:grid;
    gap:5px;
    align-content:center;
    border:0;
    background:transparent;
    cursor:pointer;
}

.menu-button span{
    display:block;
    height:3px;
    width:24px;
    border-radius:999px;
    background:#111827;
    transition:transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-collapsed .admin-nav-label,
.sidebar-collapsed .admin-nav a span:last-child{
    opacity:0;
    width:0;
    overflow:hidden;
}

.sidebar-collapsed .admin-nav a{
    justify-content:center;
    padding-left:0;
    padding-right:0;
}

.sidebar-collapsed .menu-button span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

.sidebar-collapsed .menu-button span:nth-child(2){
    opacity:0;
}

.sidebar-collapsed .menu-button span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}

.admin-topbar-actions{
    display:flex;
    align-items:center;
    gap:14px;
    color:#111827;
}

.notification-dot{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#f43f5e;
    color:#fff;
    font-size:11px;
    font-weight:800;
}

.admin-avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#ffe3cf;
    color:#7c2d12;
    font-weight:800;
    border:2px solid #fff;
    box-shadow:0 0 0 1px #dbe3ec;
}

.admin-user-name{
    font-weight:700;
}

.admin-page-header{
    padding:24px 28px 8px;
    margin-bottom:0;
    align-items:center;
}

.admin-page-header .page-title{
    font-size:30px;
}

.admin-page-header .page-subtitle{
    display:inline-block;
    margin:0 0 0 14px;
    color:#475569;
}

.admin-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.admin-filter-bar{
    display:flex;
    align-items:end;
    flex-wrap:nowrap;
    gap:12px;
    margin:0 0 16px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
}

.admin-filter-bar>div{
    flex:1 1 0;
    min-width:0;
}

.admin-filter-bar .btn,
.admin-filter-bar .btn-fit,
.admin-filter-bar button,
.admin-filter-bar a{
    flex:0 0 88px;
    width:88px;
    min-width:88px;
    max-width:88px;
    min-height:42px;
    padding-left:0;
    padding-right:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.admin-filter-bar label{
    display:block;
    margin-bottom:6px;
    color:#475569;
    font-size:12px;
    font-weight:900;
}

.admin-filter-bar select,
.admin-filter-bar input{
    width:100%;
    min-height:40px;
    padding:0 10px;
    border:1px solid var(--line);
    border-radius:6px;
    background:#fff;
    color:var(--ink);
}

.action-link{
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
}

.action-link:hover{
    text-decoration:underline;
}

.danger-link{
    color:var(--danger);
}

.inline-action-form{
    display:inline;
    margin:0;
}

.inline-action-form button{
    border:0;
    background:transparent;
    padding:0;
    font:inherit;
    cursor:pointer;
}

.badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:4px 10px;
    font-size:12px;
    font-weight:800;
}

.badge-success{
    background:#dcfce7;
    color:#166534;
}

.badge-muted{
    background:#e2e8f0;
    color:#475569;
}

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

.form-grid .full{
    grid-column:1 / -1;
}

.section-title{
    margin-bottom:14px;
    color:var(--ink);
}

.dashboard-list{
    display:grid;
    gap:10px;
    color:#334155;
    padding-left:18px;
}

.report-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
}

.admin-dashboard-layout{
    display:grid;
    grid-template-columns:minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap:18px;
}

.module-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px;
}

.module-tile,
.admin-mini-list a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#f8fafc;
    color:var(--ink);
    text-decoration:none;
}

.module-tile:hover,
.admin-mini-list a:hover{
    border-color:#bfdbfe;
    background:#eff6ff;
}

.module-tile span,
.admin-mini-list span{
    color:#334155;
    font-weight:800;
}

.module-tile strong,
.admin-mini-list strong{
    color:var(--primary);
    font-size:22px;
}

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

.date-filter{
    position:absolute;
    right:28px;
    top:98px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    border:1px solid #d6dee9;
    border-radius:8px;
    background:#fff;
    color:#111827;
    font-weight:600;
}

.date-icon{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:6px;
    background:#eef2f7;
    color:#475569;
    font-size:10px;
    font-weight:900;
}

.admin-stat-row{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:18px;
    padding:18px 28px;
}

.admin-stat-card{
    min-height:166px;
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:16px;
    padding:22px 22px 0;
    border:1px solid #d8e2ed;
    border-radius:8px;
    background:#fff;
    color:#111827;
    text-decoration:none;
    overflow:hidden;
    box-shadow:0 10px 22px rgba(15,23,42,0.04);
}

.admin-stat-card strong{
    display:block;
    font-size:29px;
    line-height:1;
    margin-bottom:8px;
}

.admin-stat-card em{
    display:block;
    color:#111827;
    font-style:normal;
    font-weight:700;
}

.admin-stat-card small{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:0 -22px;
    padding:13px 22px;
    border-top:1px solid rgba(15,23,42,0.08);
    font-weight:800;
}

.admin-stat-card small::after{
    content:">";
    font-size:22px;
}

.stat-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:10px;
    color:#fff;
    font-weight:900;
}

.card-blue{ background:linear-gradient(135deg, #f7fbff, #fff); border-color:#cfe0f4; }
.card-green{ background:linear-gradient(135deg, #f8fffb, #fff); border-color:#cdebdc; }
.card-purple{ background:linear-gradient(135deg, #fbf9ff, #fff); border-color:#ded4f5; }
.card-orange{ background:linear-gradient(135deg, #fffaf2, #fff); border-color:#f4dfbd; }
.card-red{ background:linear-gradient(135deg, #fff7fa, #fff); border-color:#f5ccd8; }
.card-blue .stat-icon{ background:linear-gradient(135deg, #4aa3ff, #1f6fd7); }
.card-green .stat-icon{ background:linear-gradient(135deg, #4fd08d, #23a260); }
.card-purple .stat-icon{ background:linear-gradient(135deg, #a493df, #7561b9); }
.card-orange .stat-icon{ background:linear-gradient(135deg, #ffbd4a, #f59e0b); }
.card-red .stat-icon{ background:linear-gradient(135deg, #ff7895, #ef426f); }
.card-blue small{ color:#0664cf; }
.card-green small{ color:#079247; }
.card-purple small{ color:#5b45a0; }
.card-orange small{ color:#d97706; }
.card-red small{ color:#e11d48; }

.admin-panel-grid{
    display:grid;
    grid-template-columns:1.05fr 1.25fr;
    gap:18px;
    padding:0 28px 18px;
}

.admin-bottom-grid{
    display:grid;
    grid-template-columns:1fr 1.05fr 1fr;
    gap:18px;
    padding:0 28px 28px;
}

.admin-panel{
    background:#fff;
    border:1px solid #d8e2ed;
    border-radius:8px;
    box-shadow:0 10px 22px rgba(15,23,42,0.04);
    padding:18px;
}

.admin-panel h2{
    font-size:18px;
    margin-bottom:16px;
    color:#111827;
}

.line-chart{
    width:100%;
    height:260px;
}

.line-chart line{
    stroke:#d8e2ed;
    stroke-width:1;
}

.line-chart .grid-line{
    stroke:#edf2f7;
}

.line-chart polyline{
    fill:none;
    stroke:#2179df;
    stroke-width:3;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.line-chart circle{
    fill:#2179df;
    stroke:#fff;
    stroke-width:2;
}

.line-chart text{
    fill:#111827;
    font-size:13px;
}

.compact-table{
    width:100%;
    border-collapse:collapse;
}

.compact-table th,
.compact-table td{
    padding:12px 10px;
    border-bottom:1px solid #e0e7ef;
    text-align:left;
    font-size:14px;
}

.compact-table th{
    background:#f7f9fc;
    color:#111827;
    font-weight:800;
}

.panel-link,
.panel-title-row a{
    display:inline-block;
    color:#0664cf;
    font-weight:800;
    text-decoration:none;
    margin-top:12px;
}

.panel-title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.score-pill{
    display:inline-flex;
    padding:4px 10px;
    border-radius:999px;
    background:#dcfce7;
    color:#15803d;
    font-weight:800;
}

.donut-wrap{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:18px;
    align-items:center;
}

.donut-chart{
    width:180px;
    aspect-ratio:1;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:conic-gradient(#2f80ed 0 35%, #35c178 35% 62%, #8f73d1 62% 74%, #f59e0b 74% 100%);
    position:relative;
}

.donut-chart::after{
    content:"";
    position:absolute;
    width:92px;
    aspect-ratio:1;
    border-radius:50%;
    background:#fff;
}

.donut-chart span{
    position:relative;
    z-index:1;
    text-align:center;
    color:#111827;
    font-weight:700;
}

.donut-chart strong{
    font-size:26px;
}

.subject-legend{
    display:grid;
    gap:14px;
}

.subject-legend p{
    display:grid;
    grid-template-columns:12px 1fr auto;
    gap:10px;
    align-items:center;
    color:#111827;
}

.subject-legend span{
    width:10px;
    height:10px;
    border-radius:3px;
}

.quick-action-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
}

.quick-action{
    min-height:98px;
    display:grid;
    place-items:center;
    gap:8px;
    text-align:center;
    border:1px solid #d8e2ed;
    border-radius:8px;
    background:#f8fafc;
    color:#111827;
    font-weight:800;
    text-decoration:none;
}

.quick-action span{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:9px;
    color:#fff;
    font-size:11px;
}

.action-blue{ color:#0b66c3; background:#f4f9ff; }
.action-green{ color:#047b3f; background:#f4fff8; }
.action-purple{ color:#512e91; background:#fbf8ff; }
.action-orange{ color:#b45309; background:#fffaf1; }
.action-cyan{ color:#047481; background:#f2fcff; }
.action-red{ color:#be123c; background:#fff7fa; }
.action-blue span{ background:#2f80ed; }
.action-green span{ background:#22a35f; }
.action-purple span{ background:#7c5ec7; }
.action-orange span{ background:#f59e0b; }
.action-cyan span{ background:#0891b2; }
.action-red span{ background:#ef426f; }

@media(max-width:800px){
    .site-header,
    .page-header{
        flex-direction:column;
        align-items:stretch;
    }

    .nav-actions,
    .hero-actions{
        width:100%;
    }

    .nav-actions .btn,
    .hero-actions .btn{
        flex:1;
    }

    .hero-grid,
    .dashboard-grid,
    .student-summary{
        grid-template-columns:1fr;
    }

    .metric-row{
        grid-template-columns:1fr;
    }

    .admin-shell{
        grid-template-columns:1fr;
    }

    .admin-sidebar{
        position:fixed;
        z-index:30;
        left:0;
        top:72px;
        width:260px;
        height:calc(100vh - 72px);
        transform:translateX(-100%);
        transition:transform 0.25s ease;
    }

    .admin-shell.sidebar-open .admin-sidebar{
        transform:translateX(0);
    }

    .admin-shell.sidebar-collapsed{
        grid-template-columns:1fr;
    }

    .admin-shell.sidebar-collapsed .admin-nav-label,
    .admin-shell.sidebar-collapsed .admin-nav a span:last-child{
        opacity:1;
        width:auto;
    }

    .admin-shell.sidebar-collapsed .admin-nav a{
        justify-content:flex-start;
        padding:10px 24px;
    }

    .admin-nav{
        grid-template-columns:1fr;
    }

    .admin-main{
        padding:94px 14px 22px;
    }

    .admin-filter-bar{
        flex-wrap:wrap;
    }

    .admin-filter-bar>div{
        flex:1 1 calc(50% - 12px);
    }

    .admin-filter-bar .btn,
    .admin-filter-bar .btn-fit,
    .admin-filter-bar button,
    .admin-filter-bar a{
        flex:0 0 88px;
        width:88px;
        min-width:88px;
        max-width:88px;
    }

    .admin-topbar{
        padding:0 14px 0 0;
    }

    .admin-topbar-brand{
        width:190px;
        flex-basis:190px;
        padding:0 16px;
        font-size:20px;
    }

    .admin-topbar-left{
        gap:12px;
    }

    .admin-page-header,
    .admin-stat-row,
    .admin-panel-grid,
    .admin-bottom-grid{
        padding-left:14px;
        padding-right:14px;
    }

    .date-filter{
        position:static;
        margin:0 14px 14px;
        justify-content:center;
    }

    .admin-stat-row{
        grid-template-columns:1fr;
    }

    .admin-panel-grid,
    .admin-bottom-grid,
    .donut-wrap,
    .quick-action-grid{
        grid-template-columns:1fr;
    }

    .donut-chart{
        margin:auto;
    }

    .form-grid,
    .report-grid,
    .admin-dashboard-layout,
    .module-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:520px){
    .container{
        padding:22px 14px;
    }

    .site-header{
        padding-left:14px;
        padding-right:14px;
    }

    .page-title,
    .hero h1{
        overflow-wrap:anywhere;
    }

    .hero-actions,
    .nav-actions{
        flex-direction:column;
    }

    .btn-fit{
        width:100%;
    }
}

/* Parent reporting experience */
.parent-body{margin:0;background:#f5f7fb;color:#101827}
.parent-shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr);padding-top:70px;transition:grid-template-columns .22s ease}
.parent-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}
.parent-topbar{position:fixed;z-index:60;inset:0 0 auto 0;height:70px;display:grid;grid-template-columns:230px 52px minmax(0,1fr);align-items:center;background:#fff;border-bottom:1px solid #dbe3ee}
.parent-brand{align-self:stretch;display:flex;align-items:center;gap:10px;padding:0 24px;color:#fff;background:#1263ca;font-size:21px;font-weight:800;text-decoration:none;white-space:nowrap}
.parent-brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:5px;color:#1263ca;background:#fff;font-size:11px}
.parent-menu-button{width:36px;height:36px;display:grid;align-content:center;gap:5px;margin-left:14px;padding:6px;border:0;background:transparent;cursor:pointer}
.parent-menu-button span{display:block;width:22px;height:2px;background:#111827}
.parent-user{justify-self:end;display:flex;align-items:center;gap:10px;padding-right:22px;font-size:14px}
.parent-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#1f2937;font-weight:800}
.parent-sidebar{position:sticky;top:70px;height:calc(100vh - 70px);overflow:auto;background:linear-gradient(180deg,#072d52,#083d6d);color:#fff}
.parent-nav-label{margin:0;padding:23px 20px 11px;color:#c7d5e4;font-size:11px;text-transform:uppercase;white-space:nowrap}
.parent-nav{display:grid;gap:4px;padding:0 10px}
.parent-nav a{min-height:44px;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:5px;color:#fff;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.parent-nav a:hover,.parent-nav a.active{background:#126bdc}
.parent-nav-icon{width:25px;flex:0 0 25px;display:grid;place-items:center;font-size:10px}
.parent-shell.sidebar-collapsed .parent-nav-label,.parent-shell.sidebar-collapsed .parent-nav a span:last-child{width:0;padding-left:0;padding-right:0;opacity:0;overflow:hidden}
.parent-shell.sidebar-collapsed .parent-nav a{justify-content:center;padding-left:0;padding-right:0}
.parent-main{min-width:0;padding:26px 24px 40px}
.parent-page-heading{margin:0 0 20px}
.parent-page-heading h1{margin:0 0 7px;font-size:24px;letter-spacing:0}
.parent-page-heading p{margin:0;color:#566378;font-size:14px}
.parent-panel{background:#fff;border:1px solid #d7e0eb;border-radius:6px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.parent-primary-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 18px;border-radius:5px;color:#fff;background:#1263ca;text-decoration:none;font-weight:800}
.parent-empty-panel{padding:40px;border:1px solid #d7e0eb;border-radius:6px;background:#fff;text-align:center}
.parent-empty-panel h2{margin:0 0 8px}.parent-empty-panel p{margin:0 0 20px;color:#617086}
.parent-student-switcher{display:flex;align-items:center;gap:10px;margin:-4px 0 14px;justify-content:flex-end}
.parent-student-switcher label{font-weight:800;font-size:13px}
.parent-student-switcher select,.parent-student-switcher input[type="date"]{min-width:230px;min-height:40px;padding:0 10px;border:1px solid #cbd6e3;border-radius:5px;background:#fff}
.parent-student-profile{display:grid;grid-template-columns:96px 280px minmax(0,1fr);align-items:center;gap:18px;padding:16px 22px;margin-bottom:18px}
.parent-student-avatar{width:76px;height:76px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#1263ca;font-size:28px;font-weight:900}
.parent-student-identity{padding-right:20px;border-right:1px solid #dce3ed}
.parent-student-identity h2{margin:0 0 7px;font-size:22px}.parent-student-identity p{margin:0 0 7px;color:#1263ca}.parent-student-identity span{color:#526075;font-size:13px}
.parent-profile-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.parent-profile-meta div{min-width:0;padding:4px 18px;border-right:1px solid #dce3ed}.parent-profile-meta div:last-child{border:0}
.parent-profile-meta dt{margin-bottom:8px;font-size:12px;font-weight:800}.parent-profile-meta dd{margin:0;overflow-wrap:anywhere;font-size:13px}
.parent-report-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
.parent-stat-card{min-height:116px;display:grid;align-content:center;justify-items:center;padding:14px;border:1px solid #d7e0eb;border-radius:6px;background:#fff;text-align:center}
.parent-stat-card span{font-size:13px;font-weight:800}.parent-stat-card strong{margin:5px 0;font-size:25px}.parent-stat-card small{color:#5b687b}
.parent-stat-card.blue{color:#125eca;background:#f4f8ff}.parent-stat-card.green{color:#128847;background:#f3fbf6}.parent-stat-card.purple{color:#5631b7;background:#f8f5ff}.parent-stat-card.orange{color:#bf650c;background:#fff8f1}.parent-stat-card.cyan{color:#0682a9;background:#f2fbfd}
.parent-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.parent-topic-panel,.parent-overview-panel{min-height:285px;padding:17px}
.parent-topic-panel h2,.parent-overview-panel h2{margin:0 0 16px;font-size:16px}.parent-topic-panel.strong h2{color:#09843c}.parent-topic-panel.weak h2{color:#d71920}.parent-topic-panel.average h2{color:#b45309}
.parent-topic-row{margin-bottom:13px}.parent-topic-row>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:13px}.parent-topic-row strong{font-size:12px}
.parent-progress-track{height:4px;overflow:hidden;border-radius:4px;background:#e6e9ee}.parent-progress-track i{display:block;height:100%;background:#0c9b4d}.parent-topic-panel.weak .parent-progress-track i{background:#ef343d}.parent-topic-panel.average .parent-progress-track i{background:#f59e0b}
.parent-topic-panel>a{min-height:34px;display:flex;align-items:center;justify-content:center;margin-top:17px;border:1px solid currentColor;border-radius:5px;color:#09843c;text-decoration:none;font-size:12px}.parent-topic-panel.weak>a{color:#dc2029}.parent-topic-panel.average>a{color:#b45309}
.parent-overview-panel{grid-column:1/-1}
.parent-empty-text{color:#69768a;font-size:13px;line-height:1.6}
.parent-score-bars{height:215px;display:flex;align-items:flex-end;gap:18px;padding:24px 12px 0;border-bottom:1px solid #dce3ed;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#e9edf3 50px)}
.parent-score-bars>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.parent-score-bars span{width:min(34px,70%);min-height:4px;background:#1263ca;border-radius:4px 4px 0 0}.parent-score-bars strong{position:absolute;top:0;color:#1263ca;font-size:11px}.parent-score-bars small{margin-top:7px;font-size:10px}
.parent-results-panel{padding:16px}.parent-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.parent-panel-heading h2{margin:0;font-size:16px}.parent-panel-heading a{color:#1263ca;font-size:12px;text-decoration:none;font-weight:800}
.parent-report-table{width:100%;border-collapse:collapse;font-size:12px}.parent-report-table th,.parent-report-table td{padding:11px 10px;border-bottom:1px solid #e1e7ef;text-align:left}.parent-report-table th{background:#f5f7fa;font-size:11px}
.parent-score-badge{display:inline-flex;padding:3px 9px;border-radius:12px;font-weight:800}.parent-score-badge.good{color:#087a38;background:#e5f7ec}.parent-score-badge.low{color:#cf2028;background:#fde9ea}

@media(max-width:1150px){
    .parent-report-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
    .parent-topic-grid{grid-template-columns:1fr 1fr}.parent-overview-panel{grid-column:1/-1}
    .parent-student-profile{grid-template-columns:80px 1fr}.parent-profile-meta{grid-column:1/-1}.parent-student-identity{border:0}
}
@media(max-width:800px){
    .parent-shell,.parent-shell.sidebar-collapsed{grid-template-columns:1fr}
    .parent-topbar{grid-template-columns:178px 48px minmax(0,1fr)}
    .parent-brand{padding:0 14px;font-size:18px}
    .parent-sidebar{position:fixed;z-index:55;top:70px;left:0;width:250px;transform:translateX(-100%);transition:transform .22s ease}
    .parent-shell.sidebar-open .parent-sidebar{transform:translateX(0)}
    .parent-main{padding:22px 14px 32px}.parent-user strong{display:none}.parent-user{padding-right:12px}
    .parent-shell.sidebar-collapsed .parent-nav-label,.parent-shell.sidebar-collapsed .parent-nav a span:last-child{width:auto;padding-left:initial;padding-right:initial;opacity:1}
    .parent-shell.sidebar-collapsed .parent-nav a{justify-content:flex-start;padding:8px 12px}
    .parent-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
    .parent-student-profile{grid-template-columns:60px 1fr;padding:14px}.parent-student-avatar{width:54px;height:54px}
    .parent-profile-meta{grid-template-columns:1fr 1fr}.parent-profile-meta div{padding:10px;border-bottom:1px solid #dce3ed}
    .parent-topic-grid{grid-template-columns:1fr}.parent-overview-panel{grid-column:auto}
    .parent-report-stats{grid-template-columns:1fr 1fr}.parent-student-switcher{align-items:stretch;flex-direction:column}.parent-student-switcher select{width:100%}
}

/* StudyTrack landing page */
.landing-body{margin:0;background:#f4f9ff;color:#081123;font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.45}
.landing-wrap{width:min(1200px,calc(100% - 48px));margin:0 auto}
.landing-header{position:sticky;top:0;z-index:80;min-height:86px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;padding:0 max(24px,calc((100vw - 1200px)/2));background:rgba(255,255,255,.94);border-bottom:1px solid rgba(205,220,238,.7);backdrop-filter:blur(12px)}
.landing-brand{display:flex;align-items:center;gap:10px;color:#071327;text-decoration:none;white-space:nowrap}.landing-brand strong{display:block;font-size:21px;line-height:1.05}.landing-brand small{display:block;margin-top:3px;color:#1e293b;font-size:10px;font-weight:700}
.landing-logo{position:relative;width:46px;height:40px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(135deg,#37a5ff,#0b52d7);box-shadow:0 8px 18px rgba(16,92,215,.22);transform:skewY(-8deg)}.landing-logo span{width:25px;height:18px;border:4px solid #fff;border-top:0;border-radius:0 0 5px 5px}.landing-logo:before{content:"";position:absolute;top:7px;width:28px;height:18px;background:#fff;clip-path:polygon(50% 0,100% 42%,50% 84%,0 42%);opacity:.95}
.landing-nav{justify-self:center;display:flex;align-items:center;gap:28px;font-size:14px;font-weight:800}.landing-nav a{color:#101827;text-decoration:none}.landing-nav a.active,.landing-nav a:hover{color:#0b57d0}
.landing-auth,.landing-hero-actions{display:flex;align-items:center;gap:12px}.landing-link-button,.landing-primary-button,.landing-demo-button,.landing-light-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 24px;border-radius:8px;text-decoration:none;font-weight:900;font-size:14px;white-space:nowrap}.landing-link-button{color:#073b91;border:1px solid #0b57d0;background:#fff}.landing-primary-button{color:#fff;background:#0b57d0;border:1px solid #0b57d0;box-shadow:0 12px 22px rgba(11,87,208,.22)}.landing-primary-button.compact{min-height:42px;padding:0 22px}.landing-demo-button{color:#0b57d0;background:#fff;border:1px solid #0b57d0}.landing-demo-button span{width:25px;height:25px;display:grid;place-items:center;border:2px solid currentColor;border-radius:50%;font-size:8px;line-height:1}.landing-light-button{color:#073b91;background:#fff}
.landing-auth-logged-in{gap:10px}
.landing-dashboard-pill,
.landing-student-pill{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:0 14px;
    border:1px solid #d9e4f1;
    border-radius:10px;
    background:#fff;
    color:#071327;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.landing-dashboard-pill{
    color:#0b57d0;
    border-color:#b8cff4;
}
.landing-student-pill{
    color:#fff;
    border-color:#0b57d0;
    background:#0b57d0;
    box-shadow:0 12px 22px rgba(11,87,208,.18);
}
.landing-dashboard-pill span,
.landing-student-pill span{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    flex:0 0 28px;
    border-radius:8px;
    font-size:10px;
    font-weight:900;
}
.landing-dashboard-pill span{
    background:#eaf2ff;
}
.landing-student-pill span{
    color:#0b57d0;
    background:#fff;
}
.landing-dashboard-pill strong,
.landing-student-pill strong{
    font-size:14px;
    line-height:1;
}
.landing-dashboard-pill:hover{
    border-color:#0b57d0;
    background:#f5f9ff;
}
.landing-student-pill:hover{
    background:#084aba;
}
.landing-user-text{
    color:#071327;
    font-size:14px;
    font-weight:900;
    white-space:nowrap;
}
.landing-hero{padding:44px 0 22px;background:radial-gradient(circle at 78% 8%,rgba(196,225,255,.7),transparent 240px),linear-gradient(180deg,#eef7ff 0%,#f8fbff 84%,#fff 100%)}.landing-hero-grid{display:grid;grid-template-columns:minmax(320px,.82fr) minmax(560px,1.18fr);gap:58px;align-items:center}.landing-hero-copy h1{max-width:520px;margin:0;color:#071327;font-size:48px;line-height:1.08;letter-spacing:0}.landing-hero-copy h1 span,.landing-section-title span{color:#0b57d0}.landing-subtitle{margin:14px 0 0;color:#08256a;font-size:18px;font-weight:900}.landing-text{max-width:560px;margin:22px 0 0;color:#1f2937;font-size:17px}.landing-hero-actions{margin-top:26px;flex-wrap:wrap}
.landing-metrics{display:flex;gap:28px;flex-wrap:wrap;margin-top:38px}.landing-metrics div{display:grid;grid-template-columns:44px auto;column-gap:12px;align-items:center}.landing-metrics strong{display:block;color:#071327;font-size:27px;line-height:1}.landing-metrics small{display:block;color:#0f172a;font-size:11px;font-weight:700}.metric-icon,.feature-icon{display:grid;place-items:center;border-radius:50%;color:#fff;font-size:11px;font-weight:900}.metric-icon{width:44px;height:44px;grid-row:span 2}.green{background:#28bd4e}.blue{background:#4a97ef}.violet{background:#8b63df}.coral{background:#ff7358}
.hero-dashboard{display:grid;grid-template-columns:145px minmax(0,1fr);min-height:390px;overflow:hidden;background:#fff;border:1px solid #dde9f6;border-radius:16px;box-shadow:0 24px 55px rgba(22,68,122,.16)}.mock-sidebar{padding:24px 14px;border-right:1px solid #e4edf7;background:#fbfdff}.mock-small-brand{display:flex;align-items:center;gap:7px;margin-bottom:20px;font-size:12px;font-weight:900}.mock-small-brand span{width:20px;height:16px;border-radius:4px;background:#2f9bff}.mock-sidebar b,.mock-sidebar span{min-height:32px;display:flex;align-items:center;padding:0 12px;border-radius:8px;color:#46566c;font-size:11px;font-weight:800}.mock-sidebar b{color:#0b57d0;background:#eaf2ff}.mock-main{padding:26px 25px 24px}.mock-top,.mock-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.mock-top h2{margin:0 0 5px;font-size:20px}.mock-top p,.mock-section-title a,.mock-score-card span,.mock-topic-card span,.mock-exam-card span{color:#526175;font-size:12px;text-decoration:none}
.mock-profile{display:flex;align-items:center;gap:10px;min-width:150px;padding:9px 12px;border:1px solid #e0e8f2;border-radius:9px}.mock-profile>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#16a34a;font-size:11px;font-weight:900}.mock-profile b,.mock-profile small{display:block;font-size:10px}.mock-section-title{align-items:center;margin:28px 0 14px}.mock-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mock-score-card,.mock-topic-card,.mock-exam-card{min-height:118px;padding:17px;border:1px solid #e3ebf4;border-radius:9px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.05)}.mock-score-card small,.mock-topic-card small,.mock-exam-card small{display:block;color:#162033;font-weight:900}.mock-score-card strong{display:block;margin-top:10px;font-size:28px;line-height:1}.mock-score-card i{display:block;height:9px;margin-top:16px;border-radius:999px;background:#28bd4e;box-shadow:34px 0 0 #eef2f6}.mock-score-card.orange i{background:#ff962f}.mock-topic-card.weak{background:#fff4f1}.mock-topic-card.strong{background:#effaf4}.mock-topic-card strong{display:block;margin:14px 0 6px;font-size:20px}.mock-topic-card em{display:block;margin-top:8px;color:#0b57d0;font-size:11px;font-style:normal;font-weight:800}.mock-topic-card.weak em{color:#cf2e25}.mock-exam-card strong{display:block;margin:15px 0 6px;color:#0b57d0;font-size:40px;line-height:1}.mock-exam-card strong small{display:inline;color:#111827;font-size:16px}
.landing-section{padding:34px 0 26px;background:#fff}.compact-section{padding-top:16px}.landing-section-title{margin:0 0 28px;text-align:center;color:#071327;font-size:31px;line-height:1.15;letter-spacing:0}.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}.feature-card{min-height:180px;padding:25px 22px;text-align:center;background:#fff;border:1px solid #e2ebf5;border-radius:12px;box-shadow:0 12px 26px rgba(26,60,102,.09)}.feature-icon{width:70px;height:70px;margin:0 auto 18px;font-size:16px}.feature-card h3,.steps-row h3{margin:0;color:#071327;font-size:17px;line-height:1.25}.feature-card p,.steps-row p{margin:12px 0 0;color:#344054;font-size:13px}
.steps-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:42px;text-align:center}.steps-row article{position:relative}.steps-row article:not(:last-child):after{content:"";position:absolute;top:47px;right:-42px;width:42px;border-top:2px dashed #a9bfd9}.step-visual{width:86px;height:86px;display:grid;place-items:center;margin:0 auto 16px;border-radius:50%;border:2px solid #b8e9c4;color:#0b57d0;background:#fff;font-size:23px;font-weight:900;box-shadow:0 8px 24px rgba(17,71,144,.08)}.step-visual.test{border-color:#9dc3ff}.step-visual.ai{border-color:#ccb5ff;color:#7b4bd4;background:#fbf8ff}.step-visual.report{border-color:#ffbd9f;color:#e65f38}
.insights-section{padding:44px 0;background:linear-gradient(180deg,#eef7ff 0%,#f8fbff 100%)}.insights-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:60px;align-items:center}.report-preview{display:grid;grid-template-columns:150px minmax(0,1fr);min-height:356px;overflow:hidden;background:#fff;border:1px solid #dce8f5;border-radius:14px;box-shadow:0 18px 36px rgba(22,68,122,.12)}.report-preview aside{display:grid;align-content:start;gap:10px;padding:24px 18px;background:#f8fbff;border-right:1px solid #e2ebf5;font-size:12px}.student-avatar-mock{width:60px;height:60px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(135deg,#ff9c71,#234f9f);font-weight:900}.report-preview aside b,.report-preview aside span{padding:8px 10px;border-radius:7px;color:#526175}.report-preview aside b{color:#0b57d0;background:#eaf2ff}.report-main{padding:24px}.report-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.report-head h3{margin:0;font-size:22px}.report-head span{padding:8px 14px;border:1px solid #dce8f5;border-radius:7px;font-size:12px;font-weight:800}
.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.report-stats div{min-height:82px;padding:13px;border:1px solid #e1eaf4;border-radius:9px}.report-stats small,.report-stats span{display:block;color:#64748b;font-size:10px;font-weight:800}.report-stats strong{display:block;margin:5px 0 2px;color:#16a34a;font-size:22px}.report-content{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:18px;margin-top:18px}.bar-chart{height:160px;display:flex;align-items:end;justify-content:space-around;gap:14px;padding:16px 14px 34px;border:1px solid #e1eaf4;border-radius:9px;background:linear-gradient(180deg,transparent 24%,#f1f5f9 25%,transparent 26%,transparent 49%,#f1f5f9 50%,transparent 51%,transparent 74%,#f1f5f9 75%,transparent 76%)}.bar-chart span{position:relative;width:30px;border-radius:7px 7px 0 0;background:#4a97ef}.bar-chart span.orange{background:#ff9d29}.bar-chart span.green{background:#35bd68}.bar-chart span.coral{background:#ff7b55}.bar-chart span.violet{background:#7b72e8}.bar-chart b{position:absolute;left:50%;bottom:-28px;transform:translateX(-50%);color:#334155;font-size:10px;white-space:nowrap}.weak-list{padding:16px;border:1px solid #e1eaf4;border-radius:9px}.weak-list strong{display:block;margin-bottom:13px}.weak-list p{display:flex;justify-content:space-between;margin:0;padding:10px 0;border-bottom:1px solid #e8eef6;font-size:12px;font-weight:800}.weak-list p:last-child{border-bottom:0}
.insight-copy h2{margin:0;color:#071327;font-size:40px;line-height:1.12}.insight-copy p{margin:18px 0 24px;color:#344054;font-size:17px}.insight-copy ul,.price-card ul{display:grid;gap:14px;margin:0;padding:0;list-style:none}.insight-copy li,.price-card li{position:relative;padding-left:30px;color:#172033;font-weight:700}.insight-copy li:before,.price-card li:before{content:"";position:absolute;left:0;top:4px;width:18px;height:18px;border-radius:50%;background:#27b84d}.insight-copy li:after,.price-card li:after{content:"";position:absolute;left:6px;top:8px;width:5px;height:8px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.testimonials-section{background:#fff}.testimonial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px}.testimonial-grid article{min-height:138px;padding:20px 24px;border-radius:12px;background:#f6fbff;box-shadow:0 12px 26px rgba(26,60,102,.08)}.stars{color:#ffb000;letter-spacing:2px;font-weight:900}.testimonial-grid p{margin:10px 0 16px;color:#172033;font-weight:700}.testimonial-grid div:last-child{display:grid;grid-template-columns:38px auto;column-gap:10px;align-items:center}.testimonial-grid div:last-child span{width:38px;height:38px;display:grid;place-items:center;grid-row:span 2;border-radius:50%;color:#fff;background:#1f2937;font-size:12px;font-weight:900}.testimonial-grid b,.testimonial-grid small{display:block}.testimonial-grid small{color:#475569}
.pricing-section{padding:28px 0 36px;background:linear-gradient(180deg,#f1f8ff 0%,#fff 100%)}.pricing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch;width:min(1120px,100%);margin:0 auto}.price-card{position:relative;display:grid;align-content:start;min-height:292px;padding:30px 22px 22px;background:#fff;border:1px solid #d9e5f2;border-radius:12px;box-shadow:0 12px 28px rgba(26,60,102,.1);text-align:center}.price-card.featured{border:2px solid #0b57d0;transform:translateY(-8px)}.price-card>span{position:absolute;inset:0 0 auto 0;height:28px;display:grid;place-items:center;color:#fff;background:#0b57d0;border-radius:9px 9px 0 0;font-size:12px;font-weight:900}.price-card h3{margin:0;font-size:23px}.price-card p{margin:4px 0 10px;color:#344054;font-weight:700}.price-card del{display:block;margin-bottom:7px;color:#8a96a8;font-size:20px;font-weight:900}.price-card strong{display:block;color:#0b57d0;font-size:36px;line-height:1}.price-card strong small{color:#0b57d0;font-size:18px}.price-card em{display:block;margin-top:7px;color:#16a34a;font-size:13px;font-style:normal;font-weight:900}.price-card ul{justify-self:center;gap:9px;margin:22px 0;text-align:left;font-size:13px}.price-card li{padding-left:23px}.price-card li:before{top:2px;width:15px;height:15px;background:#fff}.price-card li:after{left:4px;top:3px;border-color:#16a34a}.price-card a{align-self:end;min-height:38px;display:grid;place-items:center;margin-top:auto;color:#0b57d0;border:1px solid #0b57d0;border-radius:7px;text-decoration:none;font-weight:900}.price-card.featured a{color:#fff;background:#0b57d0}
.bottom-cta{padding:0 0 24px;background:#fff}.bottom-cta-inner{min-height:92px;display:grid;grid-template-columns:220px minmax(0,1fr) auto;align-items:center;gap:24px;padding:0 30px;color:#fff;background:#064fc2;border-radius:16px;overflow:hidden}.family-illustration{position:relative;align-self:stretch;min-height:92px}.family-illustration span{position:absolute;bottom:14px;width:54px;height:54px;border-radius:50% 50% 44% 44%;background:#ffb179;border:4px solid #073b91}.family-illustration span:after{content:"";position:absolute;left:50%;top:48px;width:66px;height:48px;transform:translateX(-50%);border-radius:20px 20px 0 0;background:#33b56a;border:4px solid #073b91}.family-illustration span:nth-child(1){left:8px}.family-illustration span:nth-child(2){left:78px;bottom:21px;background:#ffd1a8}.family-illustration span:nth-child(3){left:145px;background:#f08f62}.bottom-cta h2{margin:0;font-size:30px;letter-spacing:0}
.landing-footer{padding:18px 0 12px;background:#fff}.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .9fr 1fr;gap:48px;align-items:start}.footer-brand{margin-bottom:14px}.landing-footer p,.landing-footer a{color:#344054;font-size:13px}.landing-footer a{display:block;margin-top:7px;text-decoration:none}.landing-footer h3{margin:0 0 10px;font-size:15px}.social-row{display:flex;gap:9px;margin-bottom:16px}.social-row span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#0b57d0;font-size:11px;font-weight:900}.social-row span:nth-child(2){background:#e9457a}.social-row span:nth-child(3){background:#f04b37}.social-row span:nth-child(4){background:#2777b7}.copyright{margin:20px 0 0;text-align:center;color:#475569;font-size:12px}
@media(max-width:1080px){.landing-header{grid-template-columns:1fr auto}.landing-nav{display:none}.landing-hero-grid,.insights-grid{grid-template-columns:1fr}.hero-dashboard{max-width:760px;margin:0 auto}.feature-grid,.steps-row{grid-template-columns:repeat(2,minmax(0,1fr))}.steps-row article:after{display:none}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.landing-wrap{width:min(100% - 28px,1200px)}.landing-header{min-height:auto;grid-template-columns:1fr;gap:14px;padding:16px 14px}.landing-auth{width:100%}.landing-auth a{flex:1}.landing-hero{padding:38px 0 24px}.landing-hero-copy h1{font-size:40px}.landing-subtitle{font-size:16px}.landing-hero-actions,.landing-auth{align-items:stretch}.landing-hero-actions a{flex:1 1 100%}.landing-metrics{gap:18px;margin-top:34px}.hero-dashboard{display:none}.report-preview{grid-template-columns:1fr}.mock-sidebar,.report-preview aside{display:none}.mock-main{padding:22px 16px}.mock-profile{display:none}.mock-card-grid,.feature-grid,.steps-row,.testimonial-grid,.pricing-grid,.footer-grid{grid-template-columns:1fr}.report-main{padding:18px}.report-stats,.report-content{grid-template-columns:1fr}.bar-chart{min-width:0;overflow:hidden}.insight-copy h2{font-size:32px}.price-card.featured{transform:none}.bottom-cta-inner{grid-template-columns:1fr;padding:24px;text-align:center}.family-illustration{display:none}.bottom-cta h2{font-size:25px}}

/* Dashboard redesign inspired by the reference mockup */
.admin-body,
.parent-body,
.student-body{
    background:#fff;
    color:#030b1f;
}

.admin-shell,
.parent-shell,
.student-shell,
.admin-shell.sidebar-collapsed,
.parent-shell.sidebar-collapsed,
.student-shell.sidebar-collapsed{
    min-height:100vh;
    display:grid;
    grid-template-columns:230px minmax(0,1fr);
    padding-top:0;
    background:#fff;
}

.admin-topbar,
.parent-topbar,
.student-topbar{
    display:none;
}

.admin-sidebar,
.parent-sidebar,
.student-sidebar{
    position:sticky;
    top:0;
    height:100vh;
    overflow:auto;
    background:#f8fbff;
    border-right:1px solid #d9e4f1;
    color:#10213a;
}

.panel-sidebar-brand{
    min-height:64px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 20px 8px;
    color:#06142b;
    text-decoration:none;
    font-weight:900;
}

.panel-brand-mark{
    width:34px;
    height:34px;
    border-radius:8px;
    background:#2f96f3;
    box-shadow:0 8px 18px rgba(47,150,243,.2);
}

.admin-nav,
.parent-nav,
.student-nav{
    display:grid;
    gap:8px;
    padding:14px 18px 24px;
}

.admin-nav-label,
.parent-nav-label,
.student-nav-label{
    display:none;
}

.admin-nav a,
.parent-nav a,
.student-nav a{
    min-height:38px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 13px;
    border-radius:8px;
    color:#25344d;
    background:transparent;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
}

.admin-nav a:hover,
.admin-nav a.active,
.parent-nav a:hover,
.parent-nav a.active,
.student-nav a:hover,
.student-nav a.active{
    color:#064fd0;
    background:#e8f1ff;
}

.nav-icon,
.parent-nav-icon,
.student-nav-icon{
    display:none;
}

.admin-main,
.parent-main,
.student-main{
    min-width:0;
    padding:24px 36px 36px;
    background:#fff;
}

.panel-page-heading,
.admin-page-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;
    margin:0 0 28px;
    padding:0;
    border:0;
    background:transparent;
}

.panel-page-heading h1,
.admin-page-header .page-title{
    margin:0;
    color:#06142b;
    font-size:30px;
    line-height:1.15;
    letter-spacing:0;
}

.panel-page-heading p,
.admin-page-header .page-subtitle{
    margin:8px 0 0;
    color:#3f4e67;
    font-size:15px;
}

.panel-user-card{
    min-width:190px;
    min-height:62px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 16px;
    border:1px solid #d9e4f1;
    border-radius:10px;
    background:#fff;
}

.panel-user-card>span{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#fff;
    background:#16a34a;
    font-size:12px;
    font-weight:900;
}

.panel-user-card strong,
.panel-user-card small{
    display:block;
}

.panel-user-card strong{
    color:#06142b;
    font-size:12px;
    line-height:1.2;
}

.panel-user-card small{
    color:#24324a;
    font-size:11px;
    font-weight:800;
}

.reference-dashboard{
    width:min(760px,100%);
}

.dashboard-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:0 0 18px;
}

.dashboard-section-title h2{
    margin:0;
    color:#06142b;
    font-size:21px;
    line-height:1.2;
}

.dashboard-section-title a{
    color:#173f76;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.reference-card-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.reference-score-card,
.reference-topic-card,
.reference-exam-card{
    min-height:142px;
    display:block;
    padding:20px 18px;
    border:1px solid #d9e4f1;
    border-radius:9px;
    background:#fff;
    color:#06142b;
    text-decoration:none;
    box-shadow:0 8px 18px rgba(15,23,42,.03);
}

.reference-score-card h3,
.reference-topic-card h3,
.reference-exam-card h3{
    margin:0;
    color:#06142b;
    font-size:16px;
    line-height:1.25;
}

.reference-score-card strong{
    display:block;
    margin-top:12px;
    color:#06142b;
    font-size:36px;
    line-height:1;
}

.reference-score-card span,
.reference-topic-card span,
.reference-exam-card span{
    display:block;
    margin-top:6px;
    color:#384861;
    font-size:13px;
}

.reference-progress{
    height:10px;
    margin-top:20px;
    border-radius:999px;
    background:#ecf1f6;
    overflow:hidden;
}

.reference-progress i{
    display:block;
    height:100%;
    border-radius:999px;
    background:#29bd55;
}

.reference-score-card.orange .reference-progress i{
    background:#ff8d32;
}

.reference-topic-card{
    min-height:156px;
}

.reference-topic-card.weak{
    background:#fff2ee;
}

.reference-topic-card.strong{
    background:#eefaf4;
}

.reference-topic-card strong{
    display:block;
    margin-top:22px;
    color:#06142b;
    font-size:25px;
    line-height:1.1;
}

.reference-topic-card em{
    display:block;
    margin-top:13px;
    color:#d61f26;
    font-style:normal;
    font-size:13px;
    font-weight:900;
}

.reference-topic-card.strong em{
    color:#075bd2;
}

.reference-exam-card strong{
    display:block;
    margin-top:22px;
    color:#0b57d0;
    font-size:48px;
    line-height:1;
}

.reference-exam-card small{
    color:#06142b;
    font-size:20px;
}

.dashboard-list-panel,
.student-selection-panel{
    margin-top:30px;
}

.test-picker-title{
    width:min(760px,100%);
    margin-top:34px;
}

.dashboard-quick-row{
    width:min(760px,100%);
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.dashboard-quick-link{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    border-radius:8px;
    color:#fff;
    background:#0b57d0;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
}

.dashboard-quick-link.secondary{
    color:#0b57d0;
    background:#fff;
    border:1px solid #0b57d0;
}

.weekly-report-layout{
    display:grid;
    grid-template-columns:210px minmax(0,1fr);
    width:min(960px,100%);
    min-height:420px;
    overflow:hidden;
    border:1px solid #d9e4f1;
    border-radius:10px;
    background:#fff;
    box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.weekly-report-layout.weekly-report-only{
    grid-template-columns:1fr;
    width:min(920px,100%);
}

.weekly-student-card{
    padding:24px 20px;
    background:#f5f9fe;
    border-right:1px solid #d9e4f1;
}

.weekly-avatar{
    width:72px;
    height:72px;
    display:grid;
    place-items:center;
    margin-bottom:14px;
    border-radius:50%;
    color:#fff;
    background:linear-gradient(135deg,#ff9b73,#2762b7);
    font-weight:900;
}

.weekly-student-card strong,
.weekly-student-card small{
    display:block;
}

.weekly-student-card small{
    margin-top:10px;
    color:#0f172a;
    font-size:12px;
    font-weight:700;
}

.weekly-student-card nav{
    display:grid;
    gap:12px;
    margin-top:30px;
}

.weekly-student-card nav a{
    min-height:38px;
    display:flex;
    align-items:center;
    padding:0 12px;
    border-radius:8px;
    color:#334155;
    text-decoration:none;
    font-size:14px;
}

.weekly-student-card nav a.active{
    color:#064fd0;
    background:#e8f1ff;
    font-weight:900;
}

.weekly-report-main{
    padding:28px 30px 30px;
}

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

.weekly-report-heading h1{
    margin:0;
    color:#06142b;
    font-size:28px;
    line-height:1.15;
}

.weekly-report-heading span{
    min-height:44px;
    display:grid;
    place-items:center;
    padding:0 22px;
    border:1px solid #d9e4f1;
    border-radius:8px;
    color:#06142b;
    font-size:14px;
    font-weight:900;
}

.student-date-filter{
    display:flex;
    align-items:center;
    gap:10px;
}

.student-date-filter label{
    color:#42526c;
    font-size:13px;
    font-weight:900;
}

.student-date-filter input[type="date"]{
    min-width:170px;
    min-height:44px;
    padding:0 12px;
    border:1px solid #d9e4f1;
    border-radius:8px;
    background:#fff;
    color:#06142b;
    font-weight:900;
}

.student-date-filter.compact{
    margin-left:auto;
}

.student-date-filter.compact input[type="date"]{
    min-width:150px;
    min-height:38px;
}

.weekly-stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:22px;
}

.weekly-stat-grid article{
    min-height:96px;
    padding:16px 18px;
    border:1px solid #d9e4f1;
    border-radius:9px;
    background:#fff;
}

.weekly-stat-grid span,
.weekly-stat-grid small{
    display:block;
    color:#42526c;
    font-size:12px;
    font-weight:900;
}

.weekly-stat-grid strong{
    display:block;
    margin:8px 0;
    color:#05a34f;
    font-size:29px;
    line-height:1;
}

.weekly-report-content{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(230px,.65fr);
    gap:24px;
}

.weekly-chart-panel,
.weekly-weak-panel{
    min-height:190px;
    border:1px solid #d9e4f1;
    border-radius:10px;
    background:#fff;
}

.weekly-chart-panel{
    padding:22px 24px 24px;
}

.weekly-bars{
    height:160px;
    display:flex;
    align-items:end;
    justify-content:space-around;
    gap:18px;
    padding:0 8px 32px;
    background:repeating-linear-gradient(to top,transparent 0,transparent 51px,#e9eff6 52px);
}

.weekly-bars div{
    height:100%;
    min-width:48px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
}

.weekly-bars span{
    width:38px;
    min-height:10px;
    border-radius:8px 8px 0 0;
}

.weekly-bars em{
    margin-bottom:-6px;
    color:#42526c;
    font-size:12px;
    font-style:normal;
    font-weight:900;
}

.weekly-bars span.blue{background:#4a97ef}
.weekly-bars span.orange{background:#ff9d29}
.weekly-bars span.green{background:#35bd68}
.weekly-bars span.coral{background:#ff7358}
.weekly-bars span.violet{background:#7b72e8}

.weekly-bars strong{
    color:#06142b;
    font-size:12px;
    white-space:nowrap;
}

.weekly-weak-panel{
    padding:24px;
}

.weekly-weak-panel h2{
    margin:0 0 24px;
    color:#06142b;
    font-size:24px;
}

.weekly-weak-panel p{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin:0;
    padding:14px 0;
    border-bottom:1px solid #e8eef6;
    color:#06142b;
    font-size:15px;
    font-weight:900;
}

.weekly-weak-panel p:last-child{
    border-bottom:0;
}

@media(max-width:900px){
    .weekly-report-layout{
        grid-template-columns:1fr;
    }

    .weekly-student-card{
        border-right:0;
        border-bottom:1px solid #d9e4f1;
    }

    .weekly-student-card nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .weekly-stat-grid,
    .weekly-report-content{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:640px){
    .admin-filter-bar>div,
    .admin-filter-bar .btn,
    .admin-filter-bar .btn-fit,
    .admin-filter-bar button,
    .admin-filter-bar a{
        flex:1 1 100%;
        width:100%;
        min-width:0;
        max-width:none;
    }

    .weekly-report-main{
        padding:22px 16px;
    }

    .weekly-report-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .student-date-filter,
    .student-date-filter input[type="date"]{
        width:100%;
    }

    .weekly-stat-grid,
    .weekly-report-content,
    .weekly-student-card nav{
        grid-template-columns:1fr;
    }

    .weekly-bars{
        overflow:auto;
        justify-content:flex-start;
    }
}

.student-selection-panel{
    width:min(760px,100%);
    padding:22px;
    border-color:#d9e4f1;
    box-shadow:0 8px 18px rgba(15,23,42,.03);
}

.admin-panel-grid,
.admin-bottom-grid{
    margin-top:30px;
}

@media(max-width:900px){
    .admin-shell,
    .parent-shell,
    .student-shell,
    .admin-shell.sidebar-collapsed,
    .parent-shell.sidebar-collapsed,
    .student-shell.sidebar-collapsed{
        grid-template-columns:1fr;
    }

    .admin-sidebar,
    .parent-sidebar,
    .student-sidebar{
        position:relative;
        height:auto;
        border-right:0;
        border-bottom:1px solid #d9e4f1;
    }

    .admin-nav,
    .parent-nav,
    .student-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
        padding-top:8px;
    }

    .admin-main,
    .parent-main,
    .student-main{
        padding:22px 16px 32px;
    }

    .panel-page-heading{
        flex-direction:column;
    }

    .panel-user-card{
        width:100%;
    }

    .reference-dashboard{
        width:100%;
    }
}

@media(max-width:640px){
    .reference-card-grid{
        grid-template-columns:1fr;
    }

    .admin-nav,
    .parent-nav,
    .student-nav{
        grid-template-columns:1fr;
    }

    .panel-page-heading h1,
    .admin-page-header .page-title{
        font-size:25px;
    }
}

/* Shared dashboard navbar */
.admin-shell,
.parent-shell,
.student-shell,
.admin-shell.sidebar-collapsed,
.parent-shell.sidebar-collapsed,
.student-shell.sidebar-collapsed{
    padding-top:84px;
}

.admin-shell.sidebar-collapsed,
.parent-shell.sidebar-collapsed,
.student-shell.sidebar-collapsed{
    grid-template-columns:0 minmax(0,1fr);
}

.admin-topbar,
.parent-topbar,
.student-topbar{
    position:fixed;
    z-index:120;
    inset:0 0 auto 0;
    height:84px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 max(18px,calc((100vw - 1200px)/2)) 0 18px;
    background:#fff;
    border-bottom:1px solid #d9e4f1;
    box-shadow:0 2px 12px rgba(15,23,42,.04);
}

.admin-topbar-left{
    flex:1;
    display:flex;
    align-items:center;
    gap:12px;
}

.parent-topbar .dashboard-navbar-links,
.student-topbar .dashboard-navbar-links{
    flex:1;
}

.dashboard-navbar-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:#071327;
    text-decoration:none;
    white-space:nowrap;
}

.dashboard-menu-button{
    width:42px;
    height:42px;
    display:grid;
    align-content:center;
    justify-content:center;
    gap:5px;
    flex:0 0 42px;
    border:1px solid #d9e4f1;
    border-radius:10px;
    background:#fff;
    cursor:pointer;
}

.dashboard-menu-button span{
    display:block;
    width:20px;
    height:2px;
    border-radius:999px;
    background:#071327;
}

.dashboard-menu-button:hover{
    border-color:#0b57d0;
    box-shadow:0 8px 18px rgba(11,87,208,.12);
}

.dashboard-navbar-brand strong{
    display:block;
    font-size:22px;
    line-height:1.05;
}

.dashboard-navbar-brand small{
    display:block;
    margin-top:3px;
    color:#1e293b;
    font-size:10px;
    font-weight:800;
}

.dashboard-navbar-logo{
    position:relative;
    width:46px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:linear-gradient(135deg,#35a7ff,#0b57d0);
    box-shadow:0 10px 18px rgba(11,87,208,.22);
    transform:skewY(-7deg);
}

.dashboard-navbar-logo span{
    width:25px;
    height:18px;
    border:4px solid #fff;
    border-top:0;
    border-radius:0 0 5px 5px;
}

.dashboard-navbar-logo:before{
    content:"";
    position:absolute;
    top:7px;
    width:28px;
    height:18px;
    background:#fff;
    clip-path:polygon(50% 0,100% 42%,50% 84%,0 42%);
}

.dashboard-navbar-links{
    display:flex;
    align-items:center;
    gap:30px;
}

.dashboard-navbar-links a{
    color:#111827;
    text-decoration:none;
    font-size:15px;
    font-weight:900;
}

.dashboard-navbar-links a.active,
.dashboard-navbar-links a:hover{
    color:#0b57d0;
}

.dashboard-home-link{
    min-height:42px;
    display:flex;
    align-items:center;
    color:#0b57d0;
    text-decoration:none;
    font-size:15px;
    font-weight:900;
}

.dashboard-home-link:hover{
    color:#073b91;
}

.dashboard-navbar-actions,
.admin-topbar-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:16px;
    margin-left:auto;
}

.dashboard-notification{
    position:relative;
}

.dashboard-notification summary{
    position:relative;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid #0b57d0;
    border-radius:10px;
    color:#0b57d0;
    background:#fff;
    cursor:pointer;
    list-style:none;
}

.dashboard-notification summary::-webkit-details-marker{
    display:none;
}

.dashboard-notification summary svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.dashboard-notification summary span{
    position:absolute;
    top:8px;
    right:8px;
    width:8px;
    height:8px;
    border:2px solid #fff;
    border-radius:50%;
    background:#ef4444;
}

.dashboard-notification[open] summary{
    box-shadow:0 10px 20px rgba(11,87,208,.15);
}

.dashboard-notification div{
    position:absolute;
    top:52px;
    right:0;
    width:260px;
    padding:16px;
    border:1px solid #d9e4f1;
    border-radius:10px;
    background:#fff;
    box-shadow:0 18px 38px rgba(15,23,42,.14);
}

.dashboard-notification div strong{
    display:block;
    margin-bottom:9px;
    color:#06142b;
    font-size:14px;
}

.dashboard-notification div p{
    margin:0;
    padding:9px 0;
    border-top:1px solid #eef3f8;
    color:#334155;
    font-size:13px;
    font-weight:700;
}

.dashboard-navbar-user{
    min-height:42px;
    display:flex;
    align-items:center;
    padding:0 16px;
    border:1px solid #d9e4f1;
    border-radius:10px;
    color:#071327;
    background:#fff;
    font-size:14px;
    white-space:nowrap;
}

.parent-menu-button,
.student-menu-button,
.menu-button,
.panel-page-heading>.panel-user-card{
    display:none;
}

.panel-sidebar-brand{
    display:none;
}

.admin-sidebar,
.parent-sidebar,
.student-sidebar{
    top:84px;
    height:calc(100vh - 84px);
}

@media(max-width:900px){
    .admin-shell,
    .parent-shell,
    .student-shell,
    .admin-shell.sidebar-collapsed,
    .parent-shell.sidebar-collapsed,
    .student-shell.sidebar-collapsed{
        padding-top:0;
    }

    .admin-topbar,
    .parent-topbar,
    .student-topbar{
        position:relative;
        height:auto;
        flex-wrap:wrap;
        gap:14px;
        padding:16px;
    }

    .admin-topbar-left{
        width:100%;
        flex:1 1 100%;
        justify-content:space-between;
        gap:16px;
    }

    .dashboard-navbar-links{
        order:3;
        width:100%;
    }

    .dashboard-navbar-actions,
    .admin-topbar-actions{
        margin-left:0;
    }

    .admin-sidebar,
    .parent-sidebar,
    .student-sidebar{
        top:auto;
        height:auto;
    }
}

@media(max-width:560px){
    .dashboard-navbar-brand strong{
        font-size:18px;
    }

    .dashboard-navbar-brand small{
        display:none;
    }

    .dashboard-navbar-actions,
    .admin-topbar-actions{
        width:100%;
        justify-content:space-between;
    }

    .dashboard-navbar-user{
        flex:1;
        justify-content:center;
    }
}

/* Whole-site responsive hardening */
html{
    overflow-x:hidden;
}

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

input,
select,
textarea,
button{
    max-width:100%;
}

input[type="hidden"],
input[type="radio"],
input[type="checkbox"]{
    width:auto;
}

.test-model-control input[type="radio"]{
    position:absolute;
    inline-size:1px;
    block-size:1px;
    opacity:0;
    pointer-events:none;
}

.admin-panel,
.student-panel,
.parent-panel{
    min-width:0;
}

.admin-panel{
    overflow-x:auto;
}

.admin-panel .compact-table{
    width:100%;
    min-width:0;
}

.table-responsive{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.pagination{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
}

.pagination a{
    min-width:36px;
    min-height:36px;
    display:grid;
    place-items:center;
    padding:0 10px;
    border:1px solid #d9e4f1;
    border-radius:8px;
    color:#0b57d0;
    background:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
}

.pagination span{
    min-height:36px;
    display:grid;
    place-items:center;
    color:#64748b;
    font-weight:900;
}

.pagination a.active{
    color:#fff;
    border-color:#0b57d0;
    background:#0b57d0;
}

.student-table,
.compact-table,
.result-table,
.parent-report-table{
    min-width:640px;
}

@media(max-width:1180px){
    .landing-header{
        padding-left:22px;
        padding-right:22px;
        gap:18px;
    }

    .landing-nav{
        gap:18px;
    }

    .admin-main,
    .parent-main,
    .student-main{
        padding-left:24px;
        padding-right:24px;
    }

    .reference-dashboard,
    .weekly-report-layout,
    .student-selection-panel,
    .test-picker-title,
    .dashboard-quick-row{
        width:100%;
    }
}

@media(max-width:980px){
    .landing-header{
        grid-template-columns:1fr;
        align-items:start;
    }

    .landing-brand{
        justify-self:start;
    }

    .landing-nav{
        justify-self:start;
        flex-wrap:wrap;
        row-gap:10px;
    }

    .landing-auth{
        justify-self:start;
        flex-wrap:wrap;
    }

    .dashboard-navbar-brand{
        min-width:0;
    }

    .dashboard-navbar-actions,
    .admin-topbar-actions{
        flex-wrap:wrap;
    }

    .reference-card-grid,
    .feature-grid,
    .pricing-grid,
    .testimonial-grid,
    .admin-stat-row,
    .admin-panel-grid,
    .admin-bottom-grid,
    .parent-report-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .weekly-stat-grid,
    .weekly-report-content,
    .report-stats,
    .report-content{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .admin-panel-grid,
    .admin-bottom-grid{
        width:100%;
    }

    .admin-panel{
        overflow-x:auto;
    }

    .line-chart{
        min-width:560px;
    }

    .donut-wrap{
        grid-template-columns:1fr;
    }
}

@media(max-width:720px){
    body{
        min-width:0;
    }

    .container,
    .landing-wrap{
        width:100%;
        padding-left:14px;
        padding-right:14px;
    }

    .landing-header{
        padding:14px;
    }

    .landing-brand strong,
    .dashboard-navbar-brand strong{
        font-size:18px;
    }

    .landing-brand small,
    .dashboard-navbar-brand small{
        font-size:9px;
    }

    .landing-logo,
    .dashboard-navbar-logo{
        width:40px;
        height:38px;
        flex:0 0 40px;
    }

    .landing-nav{
        display:none;
    }

    .landing-auth,
    .landing-auth-logged-in,
    .landing-hero-actions,
    .dashboard-quick-row{
        width:100%;
        align-items:stretch;
        flex-direction:column;
    }

    .landing-auth-logged-in{
        align-items:center;
        gap:8px;
    }

    .landing-dashboard-pill,
    .landing-student-pill{
        width:100%;
        justify-content:center;
    }

    .landing-auth a,
    .landing-auth strong,
    .landing-hero-actions a,
    .dashboard-quick-link{
        width:100%;
    }

    .landing-user-text{
        max-width:100%;
        overflow:hidden;
        text-overflow:ellipsis;
        text-align:center;
    }

    .landing-hero-copy h1{
        font-size:34px;
        overflow-wrap:anywhere;
    }

    .landing-section-title,
    .weekly-report-heading h1{
        font-size:25px;
    }

    .admin-topbar,
    .parent-topbar,
    .student-topbar{
        align-items:flex-start;
    }

    .dashboard-menu-button{
        order:0;
    }

    .dashboard-navbar-brand{
        flex:1 1 calc(100% - 56px);
    }

    .dashboard-navbar-actions,
    .admin-topbar-actions{
        width:100%;
        justify-content:flex-start;
    }

    .dashboard-home-link,
    .dashboard-navbar-user{
        flex:1;
        justify-content:center;
    }

    .dashboard-notification div{
        left:auto;
        right:0;
        width:min(280px,calc(100vw - 28px));
    }

    .admin-main,
    .parent-main,
    .student-main{
        padding:18px 14px 28px;
    }

    .panel-page-heading,
    .admin-page-header{
        gap:10px;
        margin-bottom:20px;
    }

    .panel-page-heading h1,
    .admin-page-header .page-title{
        font-size:24px;
    }

    .reference-card-grid,
    .feature-grid,
    .pricing-grid,
    .testimonial-grid,
    .steps-row,
    .admin-stat-row,
    .admin-panel-grid,
    .admin-bottom-grid,
    .parent-report-stats,
    .weekly-stat-grid,
    .weekly-report-content,
    .report-stats,
    .report-content,
    .form-grid{
        grid-template-columns:1fr;
    }

    .weekly-report-main{
        padding:20px 14px;
    }

    .weekly-chart-panel,
    .weekly-weak-panel{
        min-height:auto;
    }

    .weekly-bars{
        min-width:420px;
    }

    .weekly-chart-panel{
        overflow-x:auto;
    }

    .compact-table,
    .student-table,
    .result-table,
    .parent-report-table{
        min-width:560px;
    }

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

    .auth-wrapper{
        padding:18px 14px;
    }
}

/* Mobile auth screens: keep login forms readable and easy to tap. */
@media(max-width:640px){
    .auth-wrapper{
        min-height:100vh;
        align-items:center;
        padding:22px 16px;
    }

    .auth-card{
        width:100%;
        max-width:420px;
        padding:26px 20px;
        border-radius:10px;
    }

    .logo{
        margin-bottom:22px;
    }

    .logo h1{
        font-size:30px;
        line-height:1.1;
    }

    .logo p{
        font-size:14px;
    }

    .form-group{
        margin-bottom:18px;
    }

    .form-group label{
        margin-bottom:8px;
        font-size:14px;
    }

    .form-control{
        min-height:48px;
        padding:0 14px;
        font-size:16px;
    }

    .btn{
        min-height:48px;
        padding:0 16px;
        font-size:16px;
        font-weight:900;
    }

    .show-password{
        right:14px;
        font-size:13px;
    }
}

@media(max-width:360px){
    .auth-wrapper{
        padding:18px 12px;
    }

    .auth-card{
        padding:22px 16px;
    }
}

/* Hero dashboard preview now uses the real app screenshot image. */
.landing-hero-grid{
    grid-template-columns:minmax(410px,.8fr) minmax(720px,1.35fr);
    gap:36px;
}

.landing-metrics{
    flex-wrap:nowrap;
    gap:24px;
}

.hero-dashboard{
    display:block;
    min-height:0;
    overflow:hidden;
    border:1px solid #dde9f6;
    border-radius:16px;
    background:#fff;
    box-shadow:0 24px 55px rgba(22,68,122,.16);
}

.hero-dashboard img{
    display:block;
    width:100%;
    height:auto;
}

@media(max-width:760px){
    .landing-metrics{
        flex-wrap:wrap;
    }

    .hero-dashboard{
        display:block;
        max-width:100%;
        margin:0 auto;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .hero-dashboard img{
        width:840px;
        max-width:none;
    }
}

@media(max-width:420px){
    .hero-dashboard img{
        width:780px;
    }
}

/* Report preview now uses the real weekly progress screenshot image. */
.report-preview{
    display:block;
    min-height:0;
    overflow:hidden;
}

.report-preview img{
    display:block;
    width:100%;
    height:auto;
}

@media(max-width:760px){
    .report-preview{
        display:block;
        max-width:100%;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .report-preview img{
        width:760px;
        max-width:none;
    }
}

@media(max-width:420px){
    .report-preview img{
        width:700px;
    }
}

@media(max-width:480px){
    .landing-link-button,
    .landing-primary-button,
    .landing-demo-button,
    .landing-light-button,
    .landing-dashboard-pill,
    .landing-student-pill,
    .btn{
        min-height:44px;
        padding-left:14px;
        padding-right:14px;
        font-size:13px;
    }

    .landing-user-text{
        font-size:13px;
    }

    .landing-dashboard-pill span,
    .landing-student-pill span{
        width:26px;
        height:26px;
        flex-basis:26px;
    }

    .landing-dashboard-pill strong,
    .landing-student-pill strong{
        font-size:13px;
    }

    .reference-score-card,
    .reference-topic-card,
    .reference-exam-card,
    .weekly-stat-grid article,
    .feature-card,
    .price-card,
    .student-panel,
    .parent-panel,
    .admin-panel{
        padding-left:14px;
        padding-right:14px;
    }

    .reference-score-card strong,
    .reference-exam-card strong{
        font-size:34px;
    }

    .weekly-report-heading span{
        width:100%;
    }

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

    .test-model-control label{
        min-width:0;
    }

    .parent-report-stats{
        grid-template-columns:1fr;
    }
}

/* Mobile dashboard header: keep navbar in one line and slide menu from the left */
@media(max-width:900px){
    .admin-shell,
    .parent-shell,
    .student-shell,
    .admin-shell.sidebar-collapsed,
    .parent-shell.sidebar-collapsed,
    .student-shell.sidebar-collapsed{
        grid-template-columns:1fr;
        padding-top:64px;
    }

    .admin-topbar,
    .parent-topbar,
    .student-topbar{
        position:fixed;
        inset:0 0 auto 0;
        height:64px;
        display:flex;
        align-items:center;
        flex-wrap:nowrap;
        gap:8px;
        padding:8px 10px;
        overflow:visible;
    }

    .admin-topbar-left{
        width:auto;
        flex:0 1 auto;
        justify-content:flex-start;
        min-width:0;
        gap:8px;
    }

    .dashboard-menu-button{
        width:34px;
        height:34px;
        flex:0 0 34px;
        border-radius:8px;
        gap:4px;
    }

    .dashboard-menu-button span{
        width:16px;
    }

    .dashboard-navbar-brand{
        flex:0 1 auto;
        min-width:0;
        gap:7px;
    }

    .dashboard-navbar-brand>span:last-child{
        min-width:0;
    }

    .dashboard-navbar-logo{
        width:30px;
        height:30px;
        flex:0 0 30px;
        border-radius:7px;
    }

    .dashboard-navbar-logo span{
        width:17px;
        height:12px;
        border-width:3px;
    }

    .dashboard-navbar-logo:before{
        top:5px;
        width:18px;
        height:12px;
    }

    .dashboard-navbar-brand strong{
        max-width:82px;
        overflow:hidden;
        text-overflow:ellipsis;
        font-size:13px;
        line-height:1.1;
    }

    .dashboard-navbar-brand small{
        display:none;
    }

    .dashboard-navbar-actions,
    .admin-topbar-actions{
        width:auto;
        flex:1 1 auto;
        min-width:0;
        display:flex;
        align-items:center;
        justify-content:flex-end;
        flex-wrap:nowrap;
        gap:7px;
        margin-left:auto;
    }

    .dashboard-home-link{
        min-height:34px;
        flex:0 0 auto;
        font-size:12px;
    }

    .dashboard-notification{
        flex:0 0 34px;
    }

    .dashboard-notification summary{
        width:34px;
        height:34px;
        border-radius:8px;
    }

    .dashboard-notification summary svg{
        width:17px;
        height:17px;
    }

    .dashboard-notification summary span{
        top:6px;
        right:6px;
        width:7px;
        height:7px;
    }

    .dashboard-navbar-user{
        min-height:34px;
        max-width:98px;
        flex:0 1 auto;
        justify-content:center;
        padding:0 10px;
        overflow:hidden;
        text-overflow:ellipsis;
        font-size:11px;
        border-radius:8px;
    }

    .dashboard-notification div{
        top:42px;
        right:0;
        left:auto;
        width:min(280px,calc(100vw - 20px));
    }

    .admin-sidebar,
    .parent-sidebar,
    .student-sidebar{
        position:fixed;
        z-index:110;
        top:64px;
        left:0;
        width:min(280px,86vw);
        height:calc(100vh - 64px);
        border-right:1px solid #d9e4f1;
        border-bottom:0;
        transform:translateX(0);
        transition:transform .22s ease;
        box-shadow:16px 0 32px rgba(15,23,42,.14);
    }

    .admin-shell.sidebar-collapsed .admin-sidebar,
    .parent-shell.sidebar-collapsed .parent-sidebar,
    .student-shell.sidebar-collapsed .student-sidebar{
        transform:translateX(-105%);
        box-shadow:none;
    }

    .admin-main,
    .parent-main,
    .student-main{
        padding-top:18px;
    }
}

@media(max-width:380px){
    .admin-topbar,
    .parent-topbar,
    .student-topbar{
        gap:6px;
        padding-left:6px;
        padding-right:6px;
    }

    .dashboard-navbar-brand strong{
        max-width:68px;
        font-size:12px;
    }

    .dashboard-navbar-user{
        max-width:82px;
        padding:0 8px;
        font-size:10px;
    }
}

/* Final admin filter normalization: keep action buttons equal across all filter bars. */
.admin-filter-bar > .btn,
.admin-filter-bar > .btn-fit,
.admin-filter-bar > button,
.admin-filter-bar > a,
.admin-filter-bar > .admin-filter-action{
    flex:0 0 88px !important;
    flex-basis:88px !important;
    width:88px !important;
    min-width:88px !important;
    max-width:88px !important;
    height:42px !important;
    min-height:42px !important;
    box-sizing:border-box !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    line-height:1 !important;
}

@media(max-width:640px){
    .admin-filter-bar > .btn,
    .admin-filter-bar > .btn-fit,
    .admin-filter-bar > button,
    .admin-filter-bar > a,
    .admin-filter-bar > .admin-filter-action{
        flex:1 1 100% !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }
}

/* Final mobile audit fixes: keep pages usable from narrow phones to laptops. */
html,
body{
    max-width:100%;
    overflow-x:hidden;
}

.admin-main,
.parent-main,
.student-main,
.admin-panel,
.parent-panel,
.student-panel,
.table-card,
.reference-dashboard,
.weekly-report-main,
.auth-card{
    min-width:0;
}

.table-responsive,
.admin-panel,
.parent-panel,
.student-panel,
.table-card{
    max-width:100%;
}

@media(max-width:1024px){
    .admin-main,
    .parent-main,
    .student-main{
        padding-left:18px;
        padding-right:18px;
    }

    .admin-filter-bar{
        flex-wrap:wrap;
    }

    .admin-filter-bar > div{
        flex:1 1 220px;
    }
}

@media(max-width:900px){
    .admin-topbar,
    .parent-topbar,
    .student-topbar{
        align-items:center !important;
        flex-wrap:nowrap !important;
    }

    .parent-topbar > .dashboard-menu-button,
    .student-topbar > .dashboard-menu-button{
        order:0;
    }

    .parent-topbar > .dashboard-navbar-brand,
    .student-topbar > .dashboard-navbar-brand{
        order:1;
    }

    .parent-topbar > .dashboard-navbar-actions,
    .student-topbar > .dashboard-navbar-actions,
    .admin-topbar-actions{
        order:2;
    }

    .dashboard-navbar-brand{
        overflow:hidden;
    }

    .dashboard-navbar-actions,
    .admin-topbar-actions{
        min-width:0;
    }

    .panel-user-card{
        display:none;
    }

    .panel-page-heading,
    .admin-page-header{
        align-items:flex-start;
    }
}

@media(max-width:640px){
    .admin-main,
    .parent-main,
    .student-main{
        padding:16px 10px 26px;
    }

    .admin-filter-bar{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
    }

    .admin-filter-bar > div,
    .admin-filter-bar > .btn,
    .admin-filter-bar > .btn-fit,
    .admin-filter-bar > button,
    .admin-filter-bar > a,
    .admin-filter-bar > .admin-filter-action{
        width:100% !important;
        max-width:none !important;
    }

    .dashboard-navbar-brand{
        flex:1 1 auto;
    }

    .dashboard-home-link{
        padding-left:10px;
        padding-right:10px;
    }

    .weekly-bars,
    .compact-table,
    .student-table,
    .result-table,
    .parent-report-table{
        min-width:480px;
    }
}

@media(max-width:460px){
    .admin-topbar,
    .parent-topbar,
    .student-topbar{
        gap:5px;
        padding-left:6px;
        padding-right:6px;
    }

    .dashboard-menu-button,
    .dashboard-notification,
    .dashboard-notification summary{
        width:32px;
        height:32px;
        flex-basis:32px;
    }

    .dashboard-navbar-logo{
        width:28px;
        height:28px;
        flex-basis:28px;
    }

    .dashboard-navbar-brand{
        gap:5px;
    }

    .dashboard-navbar-brand strong{
        max-width:74px;
        font-size:12px;
    }

    .dashboard-home-link{
        min-height:32px;
        padding:0 6px;
        font-size:11px;
    }

    .dashboard-navbar-user{
        min-height:32px;
        max-width:74px;
        padding:0 4px;
        border:0;
        background:transparent;
        font-size:10px;
    }

    .dashboard-notification div{
        right:-34px;
        width:min(260px,calc(100vw - 12px));
    }

    .panel-page-heading h1,
    .admin-page-header .page-title{
        font-size:22px;
        line-height:1.15;
    }
}

@media(max-width:360px){
    .dashboard-navbar-brand strong{
        max-width:58px;
    }

    .dashboard-home-link{
        display:none;
    }

    .dashboard-navbar-user{
        max-width:64px;
    }
}

/* Logged-in homepage section menu */
.landing-header:has(.landing-section-menu){
    grid-template-columns:auto auto minmax(0,1fr) auto;
    gap:12px;
}

.landing-section-menu{
    position:relative;
    justify-self:start;
}

.landing-section-menu summary{
    width:42px;
    height:42px;
    display:grid;
    place-content:center;
    gap:5px;
    border:1px solid #0b57d0;
    border-radius:10px;
    background:#fff;
    cursor:pointer;
    list-style:none;
}

.landing-section-menu summary::-webkit-details-marker{
    display:none;
}

.landing-section-menu summary span{
    width:20px;
    height:2px;
    display:block;
    border-radius:2px;
    background:#06142b;
    transition:transform .18s ease, opacity .18s ease;
}

.landing-section-menu[open] summary{
    box-shadow:0 12px 24px rgba(11,87,208,.16);
}

.landing-section-menu[open] summary span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.landing-section-menu[open] summary span:nth-child(2){
    opacity:0;
}

.landing-section-menu[open] summary span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.landing-section-menu nav{
    position:absolute;
    z-index:120;
    top:54px;
    left:0;
    width:220px;
    padding:10px;
    border:1px solid #d9e4f1;
    border-radius:12px;
    background:#fff;
    box-shadow:0 18px 38px rgba(15,23,42,.14);
}

.landing-section-menu nav a{
    min-height:40px;
    display:flex;
    align-items:center;
    padding:0 12px;
    border-radius:8px;
    color:#071327;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
}

.landing-section-menu nav a:hover{
    color:#0b57d0;
    background:#edf5ff;
}

@media(max-width:980px){
    .landing-header:has(.landing-section-menu){
        grid-template-columns:auto auto minmax(0,1fr);
    }

    .landing-header:has(.landing-section-menu) .landing-auth-logged-in{
        grid-column:1 / -1;
        justify-self:stretch;
    }
}

@media(max-width:720px){
    .landing-header:has(.landing-section-menu){
        grid-template-columns:auto minmax(0,1fr);
        align-items:center;
    }

    .landing-section-menu{
        grid-column:1;
        grid-row:1;
    }

    .landing-header:has(.landing-section-menu) .landing-brand{
        grid-column:2;
        grid-row:1;
        min-width:0;
    }

    .landing-header:has(.landing-section-menu) .landing-auth-logged-in{
        grid-column:1 / -1;
    }

    .landing-section-menu nav{
        left:0;
        width:min(260px,calc(100vw - 28px));
    }
}

/* Logged-in homepage slide menu: menu + logo left, actions right. */
.landing-header:has(.landing-section-menu-button){
    grid-template-columns:auto auto minmax(0,1fr) auto;
    gap:12px;
    padding-left:0;
}

.landing-header:has(.landing-section-menu-button) .landing-brand{
    justify-self:start;
    min-width:0;
}

.landing-header:has(.landing-section-menu-button) .landing-auth-logged-in{
    justify-self:end;
}

.landing-section-menu-button{
    width:52px;
    height:52px;
    display:grid;
    place-content:center;
    gap:5px;
    border:0;
    border-right:1px solid #d9e4f1;
    border-radius:0;
    background:#fff;
    cursor:pointer;
}

.landing-section-menu-button span{
    width:22px;
    height:2px;
    display:block;
    border-radius:2px;
    background:#06142b;
    transition:transform .2s ease, opacity .2s ease;
}

body.home-menu-open .landing-section-menu-button span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

body.home-menu-open .landing-section-menu-button span:nth-child(2){
    opacity:0;
}

body.home-menu-open .landing-section-menu-button span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.landing-section-drawer{
    position:fixed;
    z-index:130;
    top:0;
    left:0;
    width:min(292px,86vw);
    height:100vh;
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:18px 14px;
    border-right:1px solid #d9e4f1;
    background:#fff;
    box-shadow:18px 0 38px rgba(15,23,42,.14);
    transform:translateX(-105%);
    transition:transform .24s ease;
}

body.home-menu-open .landing-section-drawer{
    transform:translateX(0);
}

.landing-drawer-brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:58px;
    margin-bottom:12px;
    padding-bottom:14px;
    border-bottom:1px solid #eef3f8;
}

.landing-drawer-brand strong,
.landing-drawer-brand small{
    display:block;
}

.landing-drawer-brand strong{
    color:#071327;
    font-size:20px;
    line-height:1.05;
}

.landing-drawer-brand small{
    color:#071327;
    font-size:10px;
    font-weight:900;
}

.landing-section-drawer a{
    min-height:44px;
    display:flex;
    align-items:center;
    padding:0 14px;
    border-radius:8px;
    color:#071327;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
}

.landing-section-drawer a:hover{
    color:#0b57d0;
    background:#edf5ff;
}

.landing-menu-backdrop{
    position:fixed;
    z-index:120;
    inset:0;
    display:block;
    border:0;
    background:rgba(15,23,42,.24);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
}

body.home-menu-open .landing-menu-backdrop{
    opacity:1;
    pointer-events:auto;
}

@media(max-width:980px){
    .landing-header:has(.landing-section-menu-button){
        grid-template-columns:auto auto minmax(0,1fr);
        align-items:center;
    }

    .landing-header:has(.landing-section-menu-button) .landing-auth-logged-in{
        grid-column:3;
        width:auto;
        justify-self:end;
        justify-content:flex-end;
        flex-direction:row;
        flex-wrap:nowrap;
    }
}

@media(max-width:720px){
    .landing-header:has(.landing-section-menu-button){
        grid-template-columns:auto minmax(0,1fr) auto;
        gap:8px;
        padding-top:8px;
        padding-right:8px;
        padding-bottom:8px;
        padding-left:0;
    }

    .landing-section-menu-button{
        width:44px;
        height:44px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-brand{
        grid-column:2;
    }

    .landing-header:has(.landing-section-menu-button) .landing-logo{
        width:36px;
        height:34px;
        flex-basis:36px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-brand strong{
        max-width:92px;
        overflow:hidden;
        text-overflow:ellipsis;
        font-size:17px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-brand small{
        display:none;
    }

    .landing-header:has(.landing-section-menu-button) .landing-auth-logged-in{
        grid-column:3;
        width:auto;
        align-items:center;
        justify-content:flex-end;
        flex-direction:row;
        gap:6px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-dashboard-pill,
    .landing-header:has(.landing-section-menu-button) .landing-student-pill{
        width:auto;
        min-height:36px;
        padding:0 9px;
        font-size:12px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-dashboard-pill span,
    .landing-header:has(.landing-section-menu-button) .landing-student-pill span{
        display:none;
    }

    .landing-header:has(.landing-section-menu-button) .landing-user-text{
        max-width:86px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        text-align:right;
        font-size:12px;
    }
}

@media(max-width:480px){
    .landing-header:has(.landing-section-menu-button){
        grid-template-columns:auto minmax(86px,1fr) auto;
    }

    .landing-header:has(.landing-section-menu-button) .landing-dashboard-pill,
    .landing-header:has(.landing-section-menu-button) .landing-student-pill{
        padding:0 7px;
        font-size:11px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-user-text{
        max-width:68px;
        font-size:11px;
    }
}

/* Guest homepage: desktop keeps full nav, mobile uses the same left slide menu. */
.landing-header.is-guest{
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:24px;
    padding-left:max(24px,calc((100vw - 1200px)/2));
}

.landing-header.is-guest .landing-section-menu-button{
    display:none;
}

.landing-header.is-guest .landing-brand{
    justify-self:start;
}

.landing-header.is-guest .landing-auth{
    justify-self:end;
}

@media(max-width:720px){
    .landing-header.is-guest{
        grid-template-columns:auto minmax(0,1fr) auto;
        gap:8px;
        padding:8px;
        padding-left:0;
        align-items:center;
    }

    .landing-header.is-guest .landing-section-menu-button{
        width:44px;
        height:44px;
        display:grid;
    }

    .landing-header.is-guest .landing-brand{
        min-width:0;
        justify-self:start;
    }

    .landing-header.is-guest .landing-logo{
        width:42px;
        height:40px;
        flex-basis:42px;
    }

    .landing-header.is-guest .landing-brand strong{
        max-width:126px;
        overflow:hidden;
        text-overflow:ellipsis;
        font-size:20px;
    }

    .landing-header.is-guest .landing-brand small{
        display:block;
        max-width:158px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:9px;
    }

    .landing-header.is-guest .landing-auth{
        width:auto;
        align-items:center;
        justify-content:flex-end;
        flex-direction:row;
        gap:6px;
    }

    .landing-header.is-guest .landing-link-button,
    .landing-header.is-guest .landing-primary-button{
        width:auto;
        min-height:36px;
        padding:0 10px;
        font-size:12px;
    }
}

@media(max-width:480px){
    .landing-header.is-guest{
        grid-template-columns:auto minmax(0,1fr);
    }

    .landing-header.is-guest .landing-auth{
        display:none;
    }

    .landing-header.is-guest .landing-auth a{
        flex:1;
    }
}

/* Dashboard sidebar lock: keep side navigation fixed while page content scrolls. */
@media(min-width:901px){
    .admin-shell,
    .parent-shell,
    .student-shell,
    .admin-shell.sidebar-collapsed,
    .parent-shell.sidebar-collapsed,
    .student-shell.sidebar-collapsed{
        display:block;
        padding-top:84px;
    }

    .admin-sidebar,
    .parent-sidebar,
    .student-sidebar{
        position:fixed !important;
        z-index:90;
        top:84px !important;
        left:0;
        width:230px;
        height:calc(100vh - 84px) !important;
        overflow-y:auto;
        overflow-x:hidden;
        transform:translateX(0);
        transition:transform .22s ease;
    }

    .admin-main,
    .parent-main,
    .student-main{
        margin-left:230px;
        transition:margin-left .22s ease;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar,
    .parent-shell.sidebar-collapsed .parent-sidebar,
    .student-shell.sidebar-collapsed .student-sidebar{
        transform:translateX(-105%);
    }

    .admin-shell.sidebar-collapsed .admin-main,
    .parent-shell.sidebar-collapsed .parent-main,
    .student-shell.sidebar-collapsed .student-main{
        margin-left:0;
    }
}

/* Homepage menu aligned with dashboard menu behavior/reference. */
.landing-header:has(.landing-section-menu-button){
    min-height:86px;
    grid-template-columns:auto auto minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:0 max(18px,calc((100vw - 1200px)/2)) 0 16px;
}

.landing-section-menu-button{
    width:42px !important;
    height:42px !important;
    display:grid;
    place-content:center;
    gap:5px;
    flex:0 0 42px;
    border:1px solid #d9e4f1 !important;
    border-radius:10px !important;
    background:#fff;
    cursor:pointer;
}

.landing-section-menu-button:hover{
    border-color:#0b57d0 !important;
    box-shadow:0 8px 18px rgba(11,87,208,.12);
}

.landing-section-menu-button span{
    width:20px;
    height:2px;
    border-radius:999px;
}

.landing-section-drawer{
    top:86px;
    width:230px;
    height:calc(100vh - 86px);
    padding:14px 18px 24px;
    background:#f8fbff;
    border-right:1px solid #d9e4f1;
    box-shadow:none;
}

.landing-drawer-brand{
    display:none;
}

.landing-drawer-account{
    display:none;
}

.landing-section-drawer a{
    min-height:38px;
    margin-bottom:8px;
    padding:8px 13px;
    border-radius:8px;
    color:#25344d;
    font-size:14px;
    font-weight:900;
}

.landing-section-drawer a:hover{
    color:#064fd0;
    background:#e8f1ff;
}

.landing-menu-backdrop{
    display:none;
}

.landing-header:has(.landing-section-menu-button) .landing-brand{
    justify-self:start;
}

.landing-header:has(.landing-section-menu-button) .landing-auth,
.landing-header:has(.landing-section-menu-button) .landing-auth-logged-in{
    justify-self:end;
}

@media(max-width:720px){
    .landing-header:has(.landing-section-menu-button),
    .landing-header.is-guest{
        min-height:64px;
        grid-template-columns:auto minmax(0,1fr);
        gap:8px;
        padding:8px 10px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-auth,
    .landing-header:has(.landing-section-menu-button) .landing-auth-logged-in,
    .landing-header.is-guest .landing-auth{
        display:none;
    }

    .landing-header:has(.landing-section-menu-button) .landing-brand,
    .landing-header.is-guest .landing-brand{
        grid-column:2;
        grid-row:1;
        justify-self:start;
        min-width:0;
    }

    .landing-header:has(.landing-section-menu-button) .landing-logo,
    .landing-header.is-guest .landing-logo{
        width:42px;
        height:40px;
        flex-basis:42px;
    }

    .landing-section-drawer{
        top:64px;
        width:min(250px,86vw);
        height:calc(100vh - 64px);
        box-shadow:16px 0 32px rgba(15,23,42,.14);
    }

    .landing-menu-backdrop{
        display:block;
        top:64px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-brand strong,
    .landing-header.is-guest .landing-brand strong{
        max-width:128px;
        font-size:18px;
    }

    .landing-header:has(.landing-section-menu-button) .landing-brand small,
    .landing-header.is-guest .landing-brand small{
        display:none;
    }

    .landing-drawer-brand{
        display:flex;
        align-items:center;
        gap:10px;
        min-height:54px;
        margin-bottom:10px;
        padding-bottom:12px;
        border-bottom:1px solid #e5edf7;
    }

    .landing-drawer-brand strong,
    .landing-drawer-brand small{
        display:block;
    }

    .landing-drawer-brand strong{
        color:#071327;
        font-size:19px;
        line-height:1.05;
    }

    .landing-drawer-brand small{
        color:#071327;
        font-size:9px;
        font-weight:900;
    }

    .landing-drawer-account{
        display:grid;
        gap:8px;
        margin-bottom:12px;
        padding-bottom:12px;
        border-bottom:1px solid #e5edf7;
    }

    .landing-drawer-account a{
        min-height:38px;
        margin-bottom:0;
        color:#fff;
        background:#0b57d0;
    }

    .landing-drawer-account a:hover{
        color:#fff;
        background:#064fc2;
    }

    .landing-drawer-account strong{
        display:block;
        padding:2px 4px;
        color:#25344d;
        font-size:12px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
}

/* Final homepage mobile override: shrink screenshots and keep metrics in one row. */
@media(max-width:1080px){
    .landing-hero-grid,
    .insights-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:24px !important;
    }

    .hero-dashboard,
    .report-preview{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        margin-right:auto !important;
        margin-left:auto !important;
        overflow:hidden !important;
    }

    .hero-dashboard img,
    .report-preview img{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
    }
}

@media(max-width:760px){
    .landing-hero{
        padding-bottom:24px !important;
    }

    .landing-metrics{
        display:grid !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:8px !important;
        margin-top:26px !important;
        flex-wrap:nowrap !important;
    }

    .landing-metrics div{
        display:grid !important;
        grid-template-columns:34px minmax(0,1fr) !important;
        column-gap:7px !important;
        align-items:center !important;
        min-width:0 !important;
    }

    .metric-icon{
        width:34px !important;
        height:34px !important;
        font-size:9px !important;
    }

    .landing-metrics strong{
        font-size:19px !important;
    }

    .landing-metrics small{
        font-size:9px !important;
        line-height:1.15 !important;
    }

    .hero-dashboard{
        margin-top:20px !important;
        border-radius:12px !important;
    }
}

@media(max-width:380px){
    .landing-metrics{
        gap:6px !important;
    }

    .landing-metrics div{
        grid-template-columns:30px minmax(0,1fr) !important;
        column-gap:5px !important;
    }

    .metric-icon{
        width:30px !important;
        height:30px !important;
        font-size:8px !important;
    }

    .landing-metrics strong{
        font-size:17px !important;
    }

    .landing-metrics small{
        font-size:8px !important;
    }
}
