:root{--navy:#133b69;--navy2:#1f568d;--blue:#287bc1;--teal:#20a99a;--ink:#192d45;--muted:#6c7c8f;--line:#dce6ef;--soft:#f3f7fb;--white:#fff;--gold:#f2b84b;--red:#c44e56;--green:#1e8969;--shadow:0 12px 32px rgba(25,57,89,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#edf5fb 0,#f7fafd 45%,#f6f9fc 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}.topbar{height:78px;padding:0 clamp(18px,5vw,76px);background:rgba(255,255,255,.92);border-bottom:1px solid #e1e9f1;display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy)}.brand-icon{width:43px;height:43px;border-radius:14px;background:#e5f1fd;display:grid;place-items:center;font-size:24px}.brand strong{display:block;font-size:17px;letter-spacing:.08em;font-weight:850}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.04em}.top-actions{display:flex;align-items:center;gap:20px}.top-tag{font-size:10px;letter-spacing:.15em;color:#7b8998;font-weight:800}.btn{border:1px solid transparent;border-radius:11px;display:inline-flex;gap:9px;align-items:center;justify-content:center;padding:11px 16px;font-size:13px;font-weight:750;transition:transform .15s,box-shadow .15s,background .15s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn-primary{color:#fff;background:linear-gradient(135deg,var(--navy2),var(--blue));box-shadow:0 6px 15px rgba(40,123,193,.22)}.btn-outline{background:#fff;color:var(--navy);border-color:#c9d9e8}.btn-ghost{background:transparent;color:#627589}.btn-secondary{color:#fff;background:var(--teal)}.btn-danger-outline{color:#a23e45;border-color:#ecc5c7;background:#fff}.btn-wide{width:100%;padding:14px 18px}.panel{background:#fff;border:1px solid rgba(207,222,235,.9);border-radius:23px;box-shadow:var(--shadow)}main{max-width:1240px;margin:34px auto 72px;padding:0 24px}.welcome-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:23px;align-items:stretch}.hero-copy{padding:clamp(26px,4vw,54px);background:radial-gradient(circle at 100% 0,rgba(32,169,154,.11),transparent 32%),linear-gradient(145deg,#fff,#f8fbfe);position:relative;overflow:hidden}.hero-copy:after{content:"";width:220px;height:220px;border-radius:50%;border:1px solid #e5eef6;position:absolute;right:-105px;bottom:-105px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.16em;color:var(--blue);display:inline-flex;gap:8px;align-items:center}.dot{width:7px;height:7px;background:var(--teal);border-radius:50%;box-shadow:0 0 0 4px #dff6f1}.hero-copy h1{font-size:clamp(46px,6vw,74px);line-height:.99;letter-spacing:-.055em;margin:23px 0 20px;color:var(--navy);font-weight:850}.hero-copy h1 em{font-style:normal;color:var(--teal)}.lead{font-size:16px;line-height:1.75;color:#5c6d7f;max-width:560px}.feature-row{display:flex;gap:17px;margin:32px 0 25px}.feature-row div{display:grid;gap:5px;border-left:2px solid #dfeaf3;padding-left:12px;min-width:0}.feature-row b{font-size:16px;color:var(--blue)}.feature-row span{font-size:11px;font-weight:700;color:#687a8d}.privacy-banner{display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border-radius:14px;border:1px solid #cfeee7;background:#effaf7;color:#56756f;font-size:12px;position:relative;z-index:1}.privacy-banner>span:first-child{font-size:22px}.privacy-banner strong{color:#246a5a}.start-card{padding:33px clamp(24px,3.5vw,42px);position:relative;overflow:hidden}.start-card>*:not(.card-orbit){position:relative;z-index:1}.card-orbit{position:absolute;border-radius:50%;border:1px solid #dcecf6;pointer-events:none}.orbit-one{width:230px;height:230px;right:-110px;top:-95px}.orbit-two{width:170px;height:170px;right:-80px;top:-65px}.detective-emoji{font-size:43px;margin-bottom:10px}.start-card h2,.activity-panel h2,.teacher-panel h2{font-size:27px;line-height:1.2;letter-spacing:-.035em;color:var(--navy);margin:8px 0}.start-card>p{margin:8px 0 20px}.muted{color:var(--muted)}label{font-size:12px;font-weight:800;color:#435a70;display:grid;gap:7px;margin-bottom:15px}input,select{width:100%;border:1px solid #cddbe7;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink);outline:0;transition:border .15s,box-shadow .15s}input:focus,select:focus{border-color:#4096cb;box-shadow:0 0 0 3px #dff1fd}.optional{font-size:10px;color:#7e8c99;font-weight:600;margin-left:4px}.field-note{font-size:10px;color:#788899;margin:-7px 0 14px;line-height:1.5}.consent{display:flex;align-items:flex-start;gap:9px;font-size:10px;font-weight:600;color:#697c8d;line-height:1.55;margin:17px 0}.consent input{width:16px;height:16px;margin:1px 0 0;flex:0 0 auto;accent-color:var(--blue)}.error{color:#b33c47;font-size:12px;min-height:18px;margin:9px 0}.activity-panel{padding:clamp(20px,4vw,43px);max-width:1020px;margin:0 auto}.activity-top,.dash-title,.table-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.activity-panel h2{font-size:clamp(23px,3vw,32px)}.progress-meta{display:flex;justify-content:space-between;color:#738598;font-size:11px;font-weight:750;margin:25px 0 8px}.progress-track{height:8px;border-radius:99px;background:#e9f0f6;overflow:hidden;margin-bottom:32px}.progress-track>div{height:100%;width:0;background:linear-gradient(90deg,var(--teal),var(--blue));border-radius:inherit;transition:width .25s}.question-layout{display:flex;gap:20px;align-items:flex-start;margin-bottom:25px}.question-symbol,.scenario-symbol{width:66px;height:66px;border-radius:19px;background:#e9f4fe;display:grid;place-items:center;font-size:32px;flex:0 0 auto}.question-copy{max-width:760px}.question-copy h3,.scenario-banner h3{font-size:clamp(20px,2.5vw,27px);line-height:1.36;color:var(--navy);margin:8px 0}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.choice{border:1px solid #dce7f0;background:#fff;color:#435b72;border-radius:13px;padding:15px 16px;text-align:left;display:flex;align-items:center;gap:11px;line-height:1.45;min-height:61px;transition:.15s}.choice:hover{border-color:#88bfdf;background:#f7fbff}.choice.selected{border-color:#2b8ec4;background:#eaf6fd;box-shadow:0 0 0 2px #cdeafa}.choice-mark{width:25px;height:25px;border-radius:8px;border:1px solid #ccdae6;display:grid;place-items:center;font-size:11px;flex:0 0 auto;font-weight:850}.choice.selected .choice-mark{background:var(--blue);color:white;border-color:var(--blue)}.choice-text{font-size:13px;font-weight:650}.multi-hint{font-size:11px;color:#76889a;margin:-12px 0 16px}.activity-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #edf1f5;padding-top:23px;margin-top:32px}.footer-reminder{font-size:11px;color:#798b9c}.activity-actions{display:flex;gap:9px}.scenario-banner{display:flex;gap:17px;align-items:center}.scenario-symbol{background:#e2f7f2}.storyboard-label{font-size:12px;margin:23px 0 12px}.storyboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:26px}.story-step{border:1px solid #dce9f2;border-radius:15px;overflow:hidden;background:#f8fbfe;animation:fadeSlide .35s both}.story-art{height:92px;display:grid;place-items:center;font-size:43px;background:linear-gradient(135deg,#e9f5ff,#e4f8f4)}.story-step:nth-child(2) .story-art{background:linear-gradient(135deg,#eaf0ff,#f1ecff)}.story-step:nth-child(3) .story-art{background:linear-gradient(135deg,#fff5df,#ffeced)}.story-caption{padding:11px 12px;font-size:11px;font-weight:700;color:#526b80;line-height:1.45}.story-number{font-size:9px;color:#8b9cad;letter-spacing:.12em;font-weight:850;display:block;margin-bottom:4px}.scenario-prompt{font-size:19px;margin:8px 0 13px;color:var(--navy)}.scenario-choices{display:grid;gap:10px}.scenario-choice{width:100%;display:flex;gap:12px;align-items:flex-start;text-align:left;border:1px solid #dbe6ef;background:#fff;border-radius:12px;padding:14px;color:#425b72}.scenario-choice.selected{border-color:var(--blue);background:#eef8ff}.scenario-choice.correct{border-color:#71c8ae;background:#edfaf5}.scenario-choice.wrong{border-color:#e9a9ad;background:#fff3f3}.scenario-letter{width:27px;height:27px;border-radius:8px;background:#edf3f8;display:grid;place-items:center;font-weight:850;font-size:11px;flex:0 0 auto}.scenario-choice-text{font-size:13px;font-weight:650;padding-top:3px}.feedback-box{margin-top:15px;padding:14px 16px;border-radius:12px;background:#f0f8ff;color:#345e7f;border:1px solid #d9eaf7;font-size:12px}.feedback-box.correct{background:#eefaf6;border-color:#c9eee2;color:#276b57}.feedback-box.wrong{background:#fff8e9;border-color:#f6e2af;color:#7c5e25}.complete-panel{max-width:850px;margin:0 auto;overflow:hidden}.complete-hero{text-align:center;padding:clamp(35px,6vw,74px) 28px;background:radial-gradient(circle at 50% 0,rgba(32,169,154,.12),transparent 42%),#fff}.complete-emoji{font-size:64px;margin-bottom:14px}.complete-hero h2{font-size:clamp(28px,4vw,40px);color:var(--navy);letter-spacing:-.04em;margin:12px}.complete-hero>p{max-width:580px;margin:12px auto;color:#697b8c}.score-badge{width:180px;padding:17px 20px;border:1px solid #d9e9f2;border-radius:17px;margin:22px auto;background:#f9fcff;display:grid;gap:4px}.score-badge span{font-size:10px;font-weight:800;color:#77899a;letter-spacing:.08em;text-transform:uppercase}.score-badge strong{font-size:30px;color:var(--teal)}.small-note{font-size:11px!important}.teacher-panel{padding:clamp(20px,4vw,40px);max-width:1160px;margin:0 auto}.login-card{max-width:420px;margin:20px auto;text-align:left;padding:28px}.login-icon{font-size:38px}.login-card h2{margin:8px 0}.login-card .btn-ghost{margin-top:12px}.dash-title{align-items:flex-start;margin-bottom:22px}.dash-title h2{font-size:32px}.dash-title p{margin:7px 0}.dash-title-actions{display:flex;gap:8px;flex-wrap:wrap}.notice{display:flex;gap:11px;align-items:flex-start;border:1px solid #d6e8f3;background:#f0f8fd;color:#577187;border-radius:13px;padding:14px 16px;font-size:11px;line-height:1.55;margin-bottom:22px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.stat-card{border:1px solid #dde7ef;border-radius:16px;background:linear-gradient(145deg,#fff,#f9fbfd);padding:18px;display:grid;gap:4px}.stat-icon{font-size:23px;margin-bottom:5px}.stat-card small{font-size:11px;color:#6d8092;font-weight:750}.stat-card strong{font-size:31px;color:var(--navy);letter-spacing:-.04em}.stat-foot{font-size:10px;color:#94a1ad}.sample-card{background:#fffaf1;border-color:#f1dfb5}.sample-card strong{color:#95702a}.dash-tools{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0 30px}.subpanel{background:#fff;border:1px solid #dce6ee;border-radius:16px;padding:20px;margin:16px 0}.subpanel h3{font-size:16px;color:var(--navy);margin:0 0 15px}.two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:38px 0 12px}.section-heading h3{font-size:21px;color:var(--navy);margin:6px 0 0;letter-spacing:-.025em}.section-caption{font-size:10px;color:#8a99a8;background:#f0f5f9;padding:7px 10px;border-radius:99px;white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.chart-panel{min-width:0}.bar-chart{display:grid;gap:13px}.bar-line{display:grid;grid-template-columns:minmax(100px,1.2fr) 2fr 40px;gap:10px;align-items:center}.bar-label{font-size:11px;color:#607487;overflow-wrap:anywhere}.bar-track{height:10px;background:#edf2f6;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#1eaa9b,#3f94d3);border-radius:99px;min-width:0}.bar-value{font-size:11px;color:#435b70;text-align:right;font-weight:800}.cluster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.cluster-card{border:1px solid #dbe8f0;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbfe);padding:18px}.cluster-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.cluster-name{font-size:15px;font-weight:850;color:var(--navy)}.cluster-count{font-size:10px;font-weight:850;background:#edf5fb;padding:6px 9px;border-radius:99px;color:#5b7488}.cluster-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cluster-metric{padding:10px;border-radius:10px;background:#f2f7fb}.cluster-metric small{display:block;color:#7b8e9e;font-size:10px}.cluster-metric strong{font-size:18px;color:#285b84}.cluster-card p{font-size:11px;line-height:1.6;color:#697e91;margin:14px 0 0}.empty-state{border:1px dashed #cbdce8;border-radius:14px;padding:22px;text-align:center;color:#708497;background:#f8fbfd;font-size:12px;grid-column:1/-1}.scenario-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.scenario-stat{border:1px solid #dce6ef;border-radius:14px;padding:15px}.scenario-stat-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.scenario-stat h4{font-size:12px;margin:0;color:#435c72;line-height:1.4}.scenario-stat strong{font-size:15px;color:var(--teal);white-space:nowrap}.scenario-stat .bar-track{margin:13px 0}.scenario-breakdown{font-size:10px;color:#8999a8;line-height:1.7}.answer-chart-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.answer-chart{border:1px solid #dde7ef;border-radius:14px;padding:17px;background:#fff}.answer-chart h4{font-size:12px;line-height:1.45;margin:0 0 14px;color:#38556d}.answer-chart .bar-line{grid-template-columns:minmax(110px,1.35fr) 1.4fr 28px;gap:7px;margin-bottom:9px}.answer-chart .bar-label{font-size:10px}.answer-chart .bar-track{height:8px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px;min-width:600px}th,td{padding:12px 11px;border-bottom:1px solid #edf1f4;text-align:left;white-space:nowrap}th{font-size:10px;color:#73879a;font-weight:800;background:#f8fafc}td{color:#50697f}.table-heading{margin-bottom:12px}.table-heading h3{margin:0}.table-heading p{margin:5px 0}.count-pill{background:#edf5fb;color:#5b7288;font-size:10px;font-weight:800;border-radius:99px;padding:6px 10px}.dashboard-disclaimer{font-size:10px;color:#8b98a5;line-height:1.7;margin-top:22px}.small-note{font-size:10px}.toast{position:fixed;right:23px;bottom:23px;background:#173e62;color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.18);padding:13px 17px;border-radius:12px;z-index:50;font-size:12px;max-width:min(450px,90vw)}footer{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:20px 25px 30px;color:#8493a2;font-size:10px}.footer-brand{color:var(--navy);display:flex;align-items:center;gap:6px;font-size:12px}.version-tag{padding:4px 8px;border:1px solid #dfe8ef;border-radius:99px;color:#8493a2}@keyframes fadeSlide{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.welcome-grid{grid-template-columns:1fr}.hero-copy h1{font-size:58px}.start-card{padding:28px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cluster-grid{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.top-tag{display:none}}
@media(max-width:620px){main{padding:0 12px;margin:16px auto 40px}.topbar{height:67px;padding:0 14px}.brand-icon{width:37px;height:37px}.brand strong{font-size:14px}.brand small{font-size:9px}.top-actions{gap:6px}.top-actions .btn{font-size:10px;padding:9px 10px}.hero-copy{padding:27px 22px}.hero-copy h1{font-size:51px}.feature-row{gap:9px}.feature-row span{font-size:9px}.start-card{padding:25px 21px}.activity-panel,.teacher-panel{padding:19px 15px}.activity-top{align-items:flex-start}.activity-top .btn{font-size:10px;padding:8px}.question-layout{gap:12px}.question-symbol,.scenario-symbol{width:48px;height:48px;border-radius:14px;font-size:24px}.choice-grid{grid-template-columns:1fr}.choice{min-height:52px;padding:12px}.activity-footer{align-items:flex-start;flex-direction:column}.activity-actions{width:100%}.activity-actions button{flex:1}.storyboard{gap:6px}.story-art{height:69px;font-size:32px}.story-caption{padding:9px;font-size:9px}.story-step{border-radius:10px}.scenario-stats,.answer-chart-list{grid-template-columns:1fr}.dash-title{flex-direction:column}.dash-title h2{font-size:26px}.dash-title-actions{width:100%}.dash-title-actions .btn{flex:1}.stat-card{padding:14px}.stat-card strong{font-size:25px}.cluster-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column;gap:6px}.section-caption{white-space:normal}.two-fields{grid-template-columns:1fr;gap:0}.bar-line{grid-template-columns:minmax(75px,1.1fr) 1.3fr 30px;gap:6px}.bar-label{font-size:10px}.subpanel{padding:15px}.login-card{padding:15px 5px}footer{gap:6px;flex-direction:column} }

.sample-notice{grid-column:1/-1}

/* Danh sach hoc sinh de nghi ho tro */
.intervention-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.intervention-heading .btn{white-space:nowrap}.intervention-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.intervention-count-card{border:1px solid #dce7ef;border-radius:12px;background:#f8fbfd;padding:13px;display:grid;gap:5px}.intervention-count-card small{font-size:10px;color:#6f8395;font-weight:750}.intervention-count-card strong{font-size:24px;color:var(--navy)}.priority-count{background:#fff6f0;border-color:#f0d6c7}.priority-count strong{color:#9c4d2a}.reinforce-count{background:#fffbed;border-color:#efe2ac}.reinforce-count strong{color:#8b6b16}.intervention-notice{margin-top:6px;margin-bottom:14px}.intervention-table{min-width:1080px}.intervention-table td{white-space:normal;vertical-align:top;line-height:1.55;max-width:260px}.intervention-table td:nth-child(2),.intervention-table td:nth-child(3),.intervention-table td:nth-child(4),.intervention-table td:nth-child(5),.intervention-table td:nth-child(8){white-space:nowrap;max-width:none}.priority-badge{display:inline-block;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:850;white-space:nowrap}.priority-high{background:#fff0e9;color:#9c4829;border:1px solid #f0c8b4}.priority-medium{background:#fff8dc;color:#82670e;border:1px solid #efdfa0}.reason-cell,.recommendation-cell{min-width:220px;font-size:11px;color:#4f6577}.support-topics{border-top:1px solid #e8eef3;margin-top:7px;padding-top:6px;font-size:10px;color:#6e8294}.intervention-panel{overflow:hidden}.intervention-table code{font-size:10px;white-space:normal;overflow-wrap:anywhere}.intervention-table .muted{font-size:10px}
@media(max-width:620px){.intervention-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.intervention-heading .btn{width:100%;white-space:normal}}

/* EduMine AI 2.2: visual distinction for the three educational-support categories */
.cluster-card.group-positive{border-top:4px solid #2e9b80}.cluster-card.group-guidance{border-top:4px solid #d5a43a}.cluster-card.group-high{border-top:4px solid #c85b4a}.group-description{font-size:11px;color:#6c8091;min-height:35px;margin:0 0 13px;line-height:1.55}.positive-count{background:#effaf6;border-color:#cbeee1}.positive-count strong{color:#287c65}.reinforce-count{background:#fffbed;border-color:#efe2ac}.reinforce-count strong{color:#8b6b16}.priority-count{background:#fff6f0;border-color:#f0d6c7}.priority-count strong{color:#9c4d2a}

/* Footer thông tin giáo viên EduMine AI */
.site-footer{display:block;max-width:1240px;margin:0 auto;padding:20px 24px 32px;color:#718397;font-size:12px}
.footer-top{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-bottom:1px solid #dfe8ef;padding:0 0 16px;margin-bottom:18px}
.footer-motto{font-size:11px;color:#718397}
.teacher-info{border:1px solid #dce6ee;background:rgba(255,255,255,.82);border-radius:16px;padding:20px 22px}
.teacher-info h2{font-size:15px;color:var(--navy);margin:0 0 14px;font-weight:850}
.teacher-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}
.teacher-info-grid p{margin:0;color:#526b80;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.teacher-label{display:block;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:#8494a3;font-weight:800;margin-bottom:2px}
.teacher-info a{color:#236fa6;text-decoration:none;font-weight:700}
.teacher-info a:hover{text-decoration:underline}
@media(max-width:620px){.site-footer{padding:18px 12px 24px}.footer-top{align-items:flex-start;flex-direction:column;gap:8px}.teacher-info{padding:16px}.teacher-info-grid{grid-template-columns:1fr;gap:11px}}


/* Local scenario videos: offline-ready and responsive on desktop/mobile */
.scenario-video-card{border:1px solid #dce8f1;border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#f9fcff,#f1f8fb);padding:12px;margin:0 0 18px;}
.scenario-video{display:block;width:100%;max-height:520px;aspect-ratio:16/9;object-fit:contain;background:#172e46;border-radius:12px;}
.video-caption{display:flex;gap:11px;align-items:flex-start;padding:12px 6px 3px;color:#426178;font-size:12px;line-height:1.55;}
.video-caption strong{color:#183f5d;font-size:13px;}
.video-caption-icon{flex:0 0 29px;width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#e1f5ef;color:#1b8d78;font-weight:900;}
.video-error{font-size:12px;color:#8b5225;background:#fff6e7;border:1px solid #f1d7ab;border-radius:10px;padding:10px 12px;margin:10px 0 0;}
.scenario-summary{margin:0 0 22px;border:1px solid #e0eaf2;border-radius:12px;background:#fbfdff;padding:12px 14px;}
.scenario-summary summary{color:#526d83;font-size:12px;font-weight:800;cursor:pointer;}
.scenario-summary .storyboard{margin:13px 0 0;}
@media(max-width:620px){.scenario-video-card{padding:7px;border-radius:13px}.scenario-video{border-radius:9px;max-height:none}.video-caption{font-size:11px;padding:10px 3px 3px}.video-caption strong{font-size:12px}.scenario-summary{padding:11px}.scenario-summary .storyboard{grid-template-columns:1fr;}.scenario-summary .story-art{height:56px;}}


/* EduMine AI v2.9: paired pre/post education impact */
.prepost-panel { margin: 12px 0 24px; }
.prepost-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
.prepost-metric { background:#f1f6fb; border:1px solid #dce7f1; border-radius:14px; padding:14px 15px; display:flex; flex-direction:column; gap:7px; min-width:0; }
.prepost-metric small { color:#6d8198; font-size:12px; }
.prepost-metric strong { color:#214f7c; font-size:24px; line-height:1.2; overflow-wrap:anywhere; }
.prepost-metric span { color:#71869a; font-size:12px; }
.prepost-metric.improved strong { color:#15805d; }
.prepost-metric.declined strong { color:#bd4b43; }
.prepost-explanation { margin:8px 0 16px; padding:12px 14px; border-radius:12px; background:#fff9e9; border:1px solid #f2e3bb; color:#6f5c30; font-size:13px; line-height:1.55; }
.prepost-table { min-width:1100px; }
.prepost-table th { white-space:nowrap; }
.prepost-status { display:inline-block; padding:5px 8px; border-radius:999px; font-size:11px; line-height:1.35; font-weight:700; white-space:normal; min-width:100px; }
.prepost-status-positive { background:#e4f6ed; color:#17724e; }
.prepost-status-negative { background:#fff0ee; color:#b63f38; }
.prepost-status-pending { background:#fff6df; color:#8a6418; }
.prepost-status-neutral { background:#edf2f7; color:#5e6e80; }
.text-positive { color:#17724e; }
.text-negative { color:#b63f38; }
@media (max-width: 820px) { .prepost-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .prepost-metric strong { font-size:21px; } }
@media (max-width: 460px) { .prepost-summary { grid-template-columns:1fr; } }

/* EduMine AI v2.13: tách bảng theo ba nhóm ở cả danh sách hỗ trợ và đánh giá trước–sau */
.grouped-table-list{display:grid;gap:18px;margin-top:16px}
.group-table-section{border:1px solid #dce7ef;border-radius:16px;overflow:hidden;background:#fff}
.group-table-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #e7edf2;flex-wrap:wrap}
.group-table-title h4{margin:0;color:#23445f;font-size:15px;line-height:1.4;display:flex;align-items:center;gap:9px}
.group-table-title p{margin:5px 0 0;color:#718397;font-size:11px;line-height:1.5}
.group-title-mark{width:25px;height:25px;border-radius:8px;display:inline-grid;place-items:center;font-size:12px;font-weight:900;background:#edf3f8;color:#365974;flex:0 0 25px}
.group-table-count{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;background:#f0f4f7;color:#607487;white-space:nowrap}
.group-high-section{border-color:#edd1c5}
.group-high-section .group-table-title{background:#fff8f5}
.group-high-section .group-title-mark{background:#ffe8dd;color:#9c4829}
.group-high-section .group-table-count{background:#ffe8dd;color:#9c4829}
.group-guidance-section{border-color:#efe3b5}
.group-guidance-section .group-table-title{background:#fffdf4}
.group-guidance-section .group-title-mark{background:#fff1bd;color:#82670e}
.group-guidance-section .group-table-count{background:#fff1bd;color:#82670e}
.group-positive-section{border-color:#cde9df}
.group-positive-section .group-table-title{background:#f5fcf9}
.group-positive-section .group-title-mark{background:#dff5ec;color:#287c65}
.group-positive-section .group-table-count{background:#dff5ec;color:#287c65}
.grouped-table-list .table-wrap{margin:0;border-radius:0;max-width:100%}
.grouped-table-list .intervention-table{min-width:970px}
.grouped-table-list .prepost-table{min-width:1100px}
.grouped-table-list .table-wrap table tbody tr:last-child td{border-bottom:0}
@media(max-width:620px){.group-table-title{padding:13px}.group-table-title h4{font-size:13px}.group-table-count{font-size:10px}.grouped-table-list{gap:13px}}


/* EduMine AI v2.14: percentage charts below support-group and pre/post tables */
.summary-chart-panel{margin:18px 0 0;padding:20px 22px;background:linear-gradient(145deg,#fff,#fbfdff)}
.percentage-chart-list{display:grid;gap:17px;margin-top:14px}
.percentage-chart-row{display:grid;gap:7px;min-width:0}
.percentage-chart-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.percentage-chart-label{font-size:12px;font-weight:800;color:#3e576e;line-height:1.45}
.percentage-chart-percent{font-size:17px;font-weight:900;color:#254e6b;white-space:nowrap}
.percentage-track{height:13px;width:100%;border-radius:999px;background:#edf2f6;overflow:hidden;box-shadow:inset 0 1px 2px rgba(25,50,72,.05)}
.percentage-fill{height:100%;min-width:0;border-radius:999px;transition:width .35s ease;background:#5b9ac2}
.percentage-fill.pct-priority{background:linear-gradient(90deg,#d96d4d,#c74e39)}
.percentage-fill.pct-guidance{background:linear-gradient(90deg,#e7bb48,#c89a25)}
.percentage-fill.pct-positive{background:linear-gradient(90deg,#45b99a,#22886f)}
.percentage-fill.pct-neutral{background:linear-gradient(90deg,#90a3b7,#687d91)}
.percentage-fill.pct-pending{background:linear-gradient(90deg,#b5c0ca,#8c9aa7)}
.percentage-chart-row.pct-priority .percentage-chart-percent{color:#a6462e}
.percentage-chart-row.pct-guidance .percentage-chart-percent{color:#8d6a0e}
.percentage-chart-row.pct-positive .percentage-chart-percent{color:#217b64}
.percentage-chart-foot{display:flex;justify-content:space-between;gap:10px;color:#7d8d9b;font-size:10px}
.percentage-chart-note{margin:4px 0 0;padding-top:12px;border-top:1px solid #e8eef3;font-size:10px;line-height:1.6;color:#7b8b99}
@media(max-width:620px){.summary-chart-panel{padding:15px}.percentage-chart-list{gap:15px}.percentage-chart-percent{font-size:15px}.percentage-chart-label{font-size:11px}}


/* EduMine AI 2.17: biểu đồ so sánh trước và sau khi được hỗ trợ */
.prepost-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 20px;align-items:start}
.prepost-comparison-card{min-width:0;margin:0;padding:18px 18px 16px;background:linear-gradient(145deg,#fff,#fbfdff)}
.prepost-compare-chart{display:grid;gap:14px;margin-top:12px;min-width:0}
.compare-score-row{display:grid;gap:7px}
.compare-score-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#526b80}
.compare-score-meta strong{font-size:15px;color:#234d6c;white-space:nowrap}
.compare-score-track{width:100%;height:12px;background:#edf2f6;border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 2px rgba(25,50,72,.05)}
.compare-score-fill{height:100%;min-width:0;border-radius:999px;transition:width .35s ease}
.compare-score-before{background:linear-gradient(90deg,#9eafbf,#6c8195)}
.compare-score-after{background:linear-gradient(90deg,#5dbca5,#22886f)}
.compare-chart-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:10px;border-top:1px solid #e8eef3;font-size:11px;color:#718397}
.compare-chart-foot strong{font-size:12px}
.compare-legend{display:flex;gap:15px;flex-wrap:wrap;color:#61778b;font-size:10px;margin-bottom:2px}
.compare-legend span{display:inline-flex;align-items:center;gap:6px}
.legend-swatch{width:11px;height:11px;border-radius:3px;display:inline-block}
.legend-before{background:#7d91a4}.legend-after{background:#2e9b80}
.compare-group-row{border-top:1px solid #edf1f4;padding-top:11px;display:grid;gap:8px}
.compare-group-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.compare-group-head>span{font-size:10px;color:#75889a}
.compare-group-name{font-size:11px}.compare-group-name.high{color:#a6462e}.compare-group-name.guidance{color:#8d6a0e}.compare-group-name.positive{color:#217b64}
.compare-group-bar{display:grid;grid-template-columns:43px minmax(40px,1fr) 42px;gap:8px;align-items:center}
.compare-bar-label{font-size:10px;color:#718397}.compare-bar-value{font-size:10px;font-weight:800;color:#536a7f;text-align:right}
.compare-group-before{background:linear-gradient(90deg,#a7b4c1,#72869a)}
.compare-group-after.high{background:linear-gradient(90deg,#e18b71,#c74e39)}
.compare-group-after.guidance{background:linear-gradient(90deg,#eed276,#c89a25)}
.compare-group-after.positive{background:linear-gradient(90deg,#65cdb0,#22886f)}
@media(max-width:820px){.prepost-comparison-grid{grid-template-columns:1fr}.prepost-comparison-card{padding:15px}}

/* EduMine AI 2.18: vertical column charts for before/after comparison */
.column-chart-layout{display:grid;grid-template-columns:35px minmax(0,1fr);gap:9px;margin:16px 0 8px;min-width:0}
.column-chart-yaxis{height:240px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:0 0 38px;box-sizing:border-box;color:#8191a0;font-size:10px;line-height:1}
.column-chart-body{min-width:0}
.column-bars-area{height:202px;display:grid;position:relative;align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#e6edf3 calc(25% - 1px),#e6edf3 25%);border-bottom:2px solid #b9c9d5;box-sizing:border-box}
.column-single{position:relative;display:flex;align-items:flex-end;justify-content:center;min-width:0;height:100%;z-index:1}
.column-bar{display:block;width:min(66px,58%);min-height:0;border-radius:7px 7px 0 0;transition:height .35s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.26)}
.column-bar.before{background:linear-gradient(180deg,#91a7ba,#6f869b)}
.column-bar.after{background:linear-gradient(180deg,#63c4ad,#248970)}
.column-bar-value{position:absolute;bottom:calc(var(--bar-height,0%) + 5px);left:50%;transform:translateX(-50%);font-size:11px;font-weight:900;color:#31516a;white-space:nowrap;z-index:2;text-shadow:0 1px 0 #fff}
.column-labels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.column-x-label{padding:8px 3px 0;text-align:center;color:#526a7f;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.score-labels .column-x-label{min-height:38px}
.compare-chart-foot{margin-top:13px}
.group-bars{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.column-group{display:flex;align-items:stretch;justify-content:center;min-width:0;height:100%;position:relative;z-index:1}
.column-pair{display:flex;justify-content:center;align-items:stretch;gap:clamp(4px,1.2vw,12px);min-width:0;height:100%}
.column-mini{position:relative;display:flex;align-items:flex-end;justify-content:center;width:calc(50% - 4px);max-width:48px;min-width:0;height:100%}
.column-mini .column-bar{width:100%;max-width:30px;border-radius:5px 5px 0 0}
.column-mini.before .column-bar{background:linear-gradient(180deg,#91a7ba,#6f869b)}
.column-mini.after .column-bar{background:linear-gradient(180deg,#63c4ad,#248970)}
.column-mini .column-bar-value{font-size:9px;letter-spacing:-.02em}
.column-group-foot{font-size:9px;text-align:center;color:#718397;padding-top:6px;white-space:nowrap}
.group-labels .column-x-label{min-height:42px;font-weight:800;font-size:10px;display:flex;flex-direction:column;align-items:center;gap:3px}.group-labels .column-x-label small{font-weight:500;font-size:8px;color:#718397;white-space:nowrap}
.group-x-label.high{color:#a6462e}.group-x-label.guidance{color:#8d6a0e}.group-x-label.positive{color:#217b64}
@media(max-width:620px){.column-chart-layout{grid-template-columns:27px minmax(0,1fr);gap:5px}.column-chart-yaxis{height:222px;font-size:9px}.column-bars-area{height:184px;gap:8px}.column-group{height:100%}.column-pair{gap:4px}.column-mini{width:calc(50% - 2px)}.column-mini .column-bar-value{font-size:8px}.column-group-foot{font-size:8px;letter-spacing:-.02em}.column-x-label,.group-labels .column-x-label{font-size:9px;padding-left:1px;padding-right:1px}.score-labels .column-x-label{min-height:42px}.group-bars{gap:4px}}

/* EduMine AI 2.19: clearer paired-column comparison with exact data table */
.group-chart-intro{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}
.group-chart-intro .compare-legend{gap:14px;margin:0}
.group-chart-intro .compare-legend span{font-size:11px}
.group-sample-pill{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #cfe3ed;background:#f0f8fc;border-radius:999px;color:#426478;font-size:11px}
.group-sample-pill strong{color:#174d6d;font-size:12px}
.group-chart-reading-guide{margin:7px 0 4px;color:#5e7486;font-size:11px;line-height:1.55;background:#f7fafc;border-left:3px solid #77a8c3;padding:9px 11px;border-radius:0 7px 7px 0}
.group-comparison-layout{margin-top:10px;margin-bottom:12px}
.group-comparison-layout .column-bars-area{height:220px;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.group-comparison-layout .column-chart-yaxis{height:258px;padding-bottom:38px}
.group-comparison-layout .column-mini .column-bar-value{font-size:10px;letter-spacing:0;color:#314d62;background:rgba(255,255,255,.9);padding:2px 3px;border-radius:4px;text-shadow:none}
.group-comparison-layout .column-mini .column-bar-value.inside{bottom:calc(var(--bar-height,0%) - 19px);background:rgba(25,74,92,.22);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.group-comparison-layout .column-x-label{font-size:11px;font-weight:800;padding-top:9px;min-height:34px}
.group-labels .group-x-label.high{color:#b23b2f}
.group-labels .group-x-label.guidance{color:#8d6907}
.group-labels .group-x-label.positive{color:#19775e}
.group-distribution-detail{border:1px solid #dce7ee;border-radius:12px;overflow:hidden;margin-top:14px;background:#fff;box-shadow:0 3px 10px rgba(36,69,91,.04)}
.group-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 14px;background:linear-gradient(90deg,#f1f7fa,#f9fbfc);border-bottom:1px solid #dce7ee}
.group-detail-heading h4{margin:0;color:#244e68;font-size:13px}
.group-detail-heading span{font-size:10px;color:#647e90;background:#fff;border:1px solid #dbe6ed;border-radius:999px;padding:5px 8px}
.group-detail-table-wrap{width:100%;overflow-x:auto}
.group-detail-table{width:100%;min-width:620px;border-collapse:separate;border-spacing:0;font-size:11px;font-variant-numeric:tabular-nums}
.group-detail-table th,.group-detail-table td{padding:10px 9px;border-right:1px solid #e6edf2;border-bottom:1px solid #e6edf2;text-align:center;white-space:nowrap}
.group-detail-table th:last-child,.group-detail-table td:last-child{border-right:0}
.group-detail-table thead tr:first-child th{background:#eaf3f8;color:#345b71;font-weight:800;font-size:10px;white-space:normal;line-height:1.4}
.group-detail-table thead tr:nth-child(2) th{background:#f5f9fb;color:#607a8d;font-weight:700;font-size:10px}
.group-detail-table tbody th{font-weight:800;text-align:left;white-space:normal;min-width:140px;color:#344f61;background:#fff}
.group-detail-table tbody tr:nth-child(even) td,.group-detail-table tbody tr:nth-child(even) th{background:#fbfdfe}
.group-detail-table tbody tr:last-child td,.group-detail-table tbody tr:last-child th{border-bottom:1px solid #dfe8ee}
.group-detail-table td{color:#3e596d}
.group-detail-table tfoot th,.group-detail-table tfoot td{background:#f0f6f9;color:#254f67;font-weight:900;border-bottom:0}
.group-detail-table tfoot th{text-align:left}
.group-table-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;vertical-align:middle;flex-shrink:0}
.group-table-dot.high{background:#cf6551}.group-table-dot.guidance{background:#d6aa32}.group-table-dot.positive{background:#32a486}
@media(max-width:620px){
  .group-chart-intro{align-items:flex-start}
  .group-chart-intro .compare-legend{gap:8px}
  .group-chart-intro .compare-legend span{font-size:9px}
  .group-sample-pill{font-size:10px;padding:6px 8px}
  .group-comparison-layout{grid-template-columns:25px minmax(0,1fr);gap:4px;overflow-x:auto;padding-bottom:4px}
  .group-comparison-layout .column-chart-body{min-width:260px}
  .group-comparison-layout .column-chart-yaxis{height:245px;font-size:9px}
  .group-comparison-layout .column-bars-area{height:207px;gap:8px}
  .group-comparison-layout .column-mini{max-width:40px;width:calc(50% - 3px)}
  .group-comparison-layout .column-pair{gap:4px}
  .group-comparison-layout .column-mini .column-bar-value{font-size:8px;padding:1px 2px}
  .group-comparison-layout .column-x-label{font-size:9px;padding-left:0;padding-right:0}
  .group-detail-heading{padding:10px}
  .group-detail-table{font-size:10px}
}


/* EduMine AI 2.20: visible redesigned support-distribution chart */
.chart-release-tag{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:9px 12px;border:1px solid #bcd9eb;border-radius:10px;background:linear-gradient(90deg,#edf8ff,#f4fbf9);color:#285a77;font-size:11px;font-weight:800}
.chart-release-tag strong{font-size:12px;color:#164c6b}
.redesigned-group-layout{grid-template-columns:38px minmax(0,1fr);gap:10px}
.redesigned-group-layout .column-chart-yaxis{height:390px;padding-bottom:0}
.redesigned-group-bars{height:390px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#dbe7ee calc(25% - 1px),#dbe7ee 25%);align-items:stretch}
.redesigned-group{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;background:#fff;border:1px solid #dce7ef;border-radius:14px 14px 10px 10px;padding:10px 8px 8px;min-width:0;overflow:visible;box-shadow:0 4px 13px rgba(39,73,95,.06)}
.redesigned-group-title{display:flex;align-items:center;justify-content:center;gap:5px;text-align:center;min-height:40px;padding:0 2px;color:#344f63;font-size:11px;line-height:1.3}
.redesigned-group .column-pair{height:230px;flex:0 0 230px;align-items:stretch;gap:clamp(5px,1.2vw,14px);border-bottom:2px solid #aebfcb;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf2f5 calc(25% - 1px),#edf2f5 25%)}
.redesigned-group .column-mini{max-width:58px;width:calc(50% - 3px);height:100%}
.redesigned-group .column-mini .column-bar{max-width:42px;width:100%;border-radius:7px 7px 0 0}
.redesigned-group .column-mini.before .column-bar{background:linear-gradient(180deg,#a4b4c2,#637e93)}
.redesigned-group .column-mini.after .column-bar{background:linear-gradient(180deg,#75d6bc,#23886f)}
.redesigned-group .column-mini .column-bar-value{font-size:10px;padding:3px 4px;border-radius:6px;background:#fff;box-shadow:0 1px 4px rgba(27,55,72,.13);text-shadow:none;color:#244b63;letter-spacing:0}
.redesigned-group .column-mini .column-bar-value.inside{bottom:calc(var(--bar-height,0%) - 20px);background:#174f64;color:#fff}
.redesigned-count-pair{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:10px}
.redesigned-count-pair>div{display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:8px;background:#f4f8fa;padding:6px 3px;min-width:0}
.redesigned-count-pair small{font-size:8px;font-weight:900;letter-spacing:.04em;color:#7a8c99}
.redesigned-count-pair strong{font-size:14px;line-height:1.2;color:#294f67;white-space:nowrap}
.redesigned-count-pair span{font-size:10px;font-weight:800;color:#526e80}
.redesigned-group-change{margin-top:7px;border-top:1px solid #e5edf2;padding-top:7px;text-align:center;font-size:10px;font-weight:800;color:#526c7e;line-height:1.35}
.redesigned-group-change.negative{color:#a74635}.redesigned-group-change.positive{color:#1c8067}
.redesigned-distribution-detail{margin-top:18px}
.redesigned-distribution-detail .group-detail-table thead tr:first-child th{background:#dceef8;color:#164c6b;font-size:11px}
.redesigned-distribution-detail .group-detail-table tbody tr.row-high th{background:#fff5f2}
.redesigned-distribution-detail .group-detail-table tbody tr.row-guidance th{background:#fffbed}
.redesigned-distribution-detail .group-detail-table tbody tr.row-positive th{background:#effaf5}
@media(max-width:700px){.redesigned-group-layout{grid-template-columns:25px minmax(0,1fr);gap:5px;overflow-x:auto}.redesigned-group-layout .column-chart-yaxis{height:355px;font-size:9px}.redesigned-group-layout .column-chart-body{min-width:510px}.redesigned-group-bars{height:355px!important;gap:8px!important}.redesigned-group{padding:8px 5px 7px}.redesigned-group-title{font-size:10px;min-height:38px}.redesigned-group .column-pair{height:200px;flex-basis:200px;gap:5px}.redesigned-group .column-mini .column-bar-value{font-size:9px;padding:2px}.redesigned-count-pair strong{font-size:12px}.redesigned-count-pair span{font-size:9px}.redesigned-group-change{font-size:9px}.chart-release-tag{font-size:10px}}


/* EDUMINE_CHART_V222: high-contrast, row-and-column-aligned comparison chart */
.v222-release-tag span{font-weight:700;color:#267563}
.v222-summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}
.v222-summary-row>div{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border:1px solid #dce8ee;border-radius:12px;background:#f9fcfd}
.v222-summary-row span{font-size:10px;color:#637c8d;font-weight:900;letter-spacing:.5px}.v222-summary-row strong{font-size:22px;color:#244c63;line-height:1.2}.v222-summary-row small{font-size:11px;color:#637c8d}
.v222-reading-guide{margin:8px 0 14px;padding:12px 14px;background:#f1f7fb;border-left:4px solid #719cb5;border-radius:8px;color:#405e72;font-size:12px;line-height:1.65}
.v222-chart-scroll{width:100%;overflow-x:auto;border:1px solid #e0e9ef;border-radius:14px;background:#fff;padding:8px;}
.v222-group-svg{display:block;width:100%;height:auto;min-width:720px;font-family:inherit}
.v222-gridline{stroke:#dfe8ee;stroke-width:1;stroke-dasharray:4 5}.v222-axis-line{stroke:#9fb3c0;stroke-width:1.5}.v222-axis-label{font-size:13px;fill:#667f90;font-weight:700}
.v222-bar-before{fill:#718ba0}.v222-bar-after{fill:#279d81}.v222-value-label{font-size:13px;fill:#243f52;font-weight:900;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}.v222-group-label{font-size:14px;fill:#334f62;font-weight:800}.v222-legend text{font-size:13px;fill:#36566b;font-weight:800}.v222-n-label{font-size:12px;fill:#516f82;font-weight:800}
.v222-data-section{margin-top:16px;border:1px solid #d9e5ec;border-radius:14px;overflow:hidden;background:#fff}.v222-data-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:13px 15px;background:#f1f7fa;border-bottom:1px solid #d9e5ec}.v222-data-heading h4{margin:0;font-size:14px;color:#294f65}.v222-data-heading span{font-size:11px;color:#607a8b;font-weight:700}
.v222-table-scroll{width:100%;overflow-x:auto}.v222-data-table{width:100%;min-width:790px;border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}.v222-data-table th,.v222-data-table td{padding:11px 10px;border-right:1px solid #e1eaf0;border-bottom:1px solid #e1eaf0;text-align:center;white-space:nowrap}.v222-data-table th:last-child,.v222-data-table td:last-child{border-right:0}.v222-data-table thead tr:first-child th{background:#e6f1f7;color:#31556c;font-size:11px;font-weight:900;white-space:normal;line-height:1.4}.v222-data-table thead tr:nth-child(2) th{background:#f5f9fb;color:#567185;font-size:11px}.v222-data-table tbody th{min-width:165px;text-align:left;white-space:normal;font-weight:900;color:#345064;background:#fff}.v222-data-table tbody tr:nth-child(even) td{background:#fbfdfe}.v222-data-table tfoot th,.v222-data-table tfoot td{background:#eaf3f7;color:#234c63;font-weight:900}.v222-data-table tfoot th{text-align:left}
.v222-dot{display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;vertical-align:middle}.v222-dot.high{background:#c65346}.v222-dot.guidance{background:#d39a25}.v222-dot.positive{background:#23866b}.v222-row-high th{background:#fff5f2!important}.v222-row-guidance th{background:#fffbed!important}.v222-row-positive th{background:#effaf5!important}.v222-up{color:#16775f!important;font-weight:900}.v222-down{color:#b14335!important;font-weight:900}
.v222-method-note{margin:12px 2px 0;color:#6b8292;font-size:11px;line-height:1.6}.v222-empty{border:1px dashed #c5d6e0;border-radius:12px;padding:22px;background:#f8fbfd;color:#526f82}.v222-empty strong{display:block;color:#36596f;margin-bottom:5px}.v222-empty p{margin:0;font-size:12px;line-height:1.55}
@media(max-width:700px){.v222-summary-row{grid-template-columns:1fr}.v222-summary-row>div{padding:11px 13px}.v222-summary-row strong{font-size:20px}.v222-group-svg{min-width:720px}.v222-data-heading{align-items:flex-start}.v222-data-table{font-size:11px}}



/* EduMine AI v2.23: centered, spacious comparison area; no version/debug banner */
.prepost-comparison-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:22px !important;
  width:100%;
  max-width:1180px;
  margin:20px auto 28px !important;
  align-items:stretch;
  justify-items:stretch;
}
.prepost-comparison-card{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0 auto !important;
  padding:clamp(16px,2.2vw,28px) !important;
  box-sizing:border-box;
  overflow:visible;
}
.prepost-comparison-card > .table-heading{
  display:flex;
  justify-content:center;
  text-align:center;
  margin-bottom:8px;
}
.prepost-comparison-card > .table-heading > div{
  width:100%;
  max-width:900px;
  min-width:0;
}
.prepost-comparison-card > .table-heading h3{margin-left:auto;margin-right:auto;}
.prepost-comparison-card > .table-heading p{margin-left:auto;margin-right:auto;max-width:760px;}
.prepost-compare-chart{
  display:block;
  width:100%;
  max-width:1120px;
  min-width:0;
  margin:14px auto 0 !important;
  box-sizing:border-box;
}
#prePostNtknComparisonChart .column-chart-layout{
  width:100%;
  max-width:880px;
  margin:18px auto 10px;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
}
#prePostNtknComparisonChart .column-bars-area{max-width:840px;margin:0 auto;}
#prePostNtknComparisonChart .compare-chart-foot{
  width:100%;max-width:880px;margin:14px auto 0;padding:12px 4px 0;
  font-size:12px;justify-content:space-between;
}
.v222-summary-row{
  width:100%;max-width:1120px;margin:0 auto 16px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.v222-reading-guide{width:100%;max-width:1120px;margin:8px auto 16px;}
.v222-chart-scroll{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;max-width:1120px;
  margin:0 auto;
  padding:10px;
  box-sizing:border-box;
  overflow-x:visible;
}
.v222-group-svg{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  height:auto;
  margin:0 auto;
  flex:0 1 100%;
}
.v222-data-section{width:100%;max-width:1120px;margin:16px auto 0;}
.v222-table-scroll{width:100%;max-width:100%;overflow-x:auto;}
.v222-method-note{width:100%;max-width:1120px;margin:12px auto 0;}
.v222-empty{width:100%;max-width:900px;margin:0 auto;text-align:center;}
.v222-summary-row>div{min-width:0;}
@media(max-width:900px){
  .prepost-comparison-grid{gap:16px !important;margin:16px auto 22px !important;}
  .prepost-comparison-card{padding:16px !important;}
  .v222-summary-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  .v222-summary-row>div{padding:11px;}
  .v222-summary-row strong{font-size:19px;}
}
@media(max-width:700px){
  .prepost-comparison-card{padding:13px 10px !important;}
  .prepost-comparison-card > .table-heading h3{font-size:18px;}
  .prepost-comparison-card > .table-heading p{font-size:11px;}
  .v222-summary-row{grid-template-columns:1fr;}
  .v222-chart-scroll{justify-content:flex-start;overflow-x:auto;padding:8px;}
  /* On very narrow screens keep labels readable; the chart scrolls inside its own frame rather than being cut off by the page. */
  .v222-group-svg{width:720px;min-width:720px;max-width:none;flex:0 0 720px;}
  #prePostNtknComparisonChart .column-chart-layout{grid-template-columns:30px minmax(0,1fr);gap:7px;}
  #prePostNtknComparisonChart .column-chart-yaxis{font-size:9px;}
  #prePostNtknComparisonChart .column-x-label{font-size:10px;}
  #prePostNtknComparisonChart .compare-chart-foot{font-size:10px;}
}

/* EduMine AI 2.24 - dashboard annual reporting and readable survey charts */
.dashboard-yearbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:16px 20px;margin:0 0 20px;border:1px solid #d7e5ef;border-radius:16px;background:linear-gradient(120deg,#f6fbff,#f0faf7);box-shadow:0 5px 18px rgba(29,71,104,.05)}
.dashboard-yearbar label{display:grid;gap:6px;min-width:220px;color:#284f70;font-size:12px;font-weight:800}
.yearbar-label{font-size:10px;letter-spacing:.12em;color:#71879a}
.dashboard-yearbar select{min-width:220px;max-width:100%;padding:10px 13px;border-radius:10px;border:1px solid #bdd2e3;background:#fff;color:#174669;font-size:14px;font-weight:800;box-shadow:0 2px 7px rgba(30,83,120,.06)}
.dashboard-yearbar p{margin:0;max-width:570px;color:#6b8091;font-size:11px;line-height:1.6}
.class-participation-panel{margin-top:14px}
.class-participation-wrap{border:1px solid #e1eaf0;border-radius:12px;max-height:340px;overflow:auto;overscroll-behavior:contain}
.class-participation-table{min-width:720px}
.class-participation-table thead th{padding:14px;background:#f1f7fb;color:#4c6c84;font-size:10px;letter-spacing:.04em;white-space:normal}
.class-participation-table tbody tr:nth-child(even){background:#fbfdff}
.class-participation-table tbody tr:hover{background:#f1f8fc}
.class-participation-table td{vertical-align:middle;padding:14px 12px}
.class-roster-edit{appearance:none;border:0;background:transparent;padding:0;color:#236eaa;font-weight:800;text-decoration:underline;text-decoration-color:#c4dcea;text-underline-offset:3px;text-align:left}
.class-roster-edit:hover{color:#165781}
.completion-cell{min-width:150px;display:grid;gap:4px}
.completion-cell strong{font-size:13px;color:#217c68}
.completion-cell small{font-size:10px;color:#8796a3;white-space:normal}
.completion-track{height:7px;border-radius:99px;background:#e9eff3;overflow:hidden}
.completion-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#36af91,#19836e)}
.completion-pending{display:inline-flex;padding:5px 8px;border-radius:8px;background:#fff6df;color:#946b1b;font-size:10px;font-weight:800;white-space:normal}
.class-roster-setup{margin-top:18px;border:1px solid #e0eaf1;border-radius:12px;background:#fbfdff;padding:13px 16px}
.class-roster-setup summary{cursor:pointer;color:#315a78;font-weight:800;font-size:12px}
.class-roster-setup>p{margin:10px 0}
.class-roster-form{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(140px,1fr) minmax(130px,1fr) auto;gap:12px;align-items:end;margin-top:12px}
.class-roster-form label{display:grid;gap:6px;color:#5d7487;font-size:11px;font-weight:750}
.class-roster-form input,.class-roster-form select{width:100%;min-width:0;border:1px solid #cfdee8;background:white;border-radius:9px;padding:10px;color:#28465e}
.class-roster-msg{color:#21785f;font-size:11px;font-weight:700}
.scenario-bar-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.scenario-bar-card{min-width:0;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 3px 12px rgba(32,75,110,.035)}
.scenario-bar-card .scenario-stat-head{align-items:flex-start;gap:10px;padding-bottom:12px;border-bottom:1px solid #edf2f6}
.scenario-bar-card .scenario-stat-head h4{font-size:13px;line-height:1.5;flex:1}
.scenario-bar-card .scenario-stat-head strong{display:inline-flex;background:#eaf8f2;color:#18765f;border:1px solid #cfede2;border-radius:99px;padding:6px 9px;font-size:10px;white-space:nowrap}
.scenario-chart-subtitle{margin:12px 0 4px;color:#8091a0;font-size:10px;font-weight:700}
.scenario-columns{height:180px;display:flex;align-items:flex-end;justify-content:space-around;gap:20px;padding:8px 16px 0;border-bottom:1px solid #dfe8ef;background:repeating-linear-gradient(to top,transparent 0,transparent 43px,#edf2f6 44px,#edf2f6 45px);border-radius:9px 9px 0 0}
.scenario-column{min-width:54px;max-width:100px;height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}
.scenario-column-value{font-size:10px;font-weight:850;color:#385b76;min-height:15px}
.scenario-column-track{width:min(58px,72%);height:116px;display:flex;align-items:flex-end;justify-content:center;background:#f0f4f7;border-radius:8px 8px 0 0;overflow:hidden}
.scenario-column-fill{width:100%;min-height:2px;border-radius:7px 7px 0 0;background:var(--scenario-color,#2878b8);transition:height .3s}
.scenario-column-fill.scenario-correct-fill{background:linear-gradient(180deg,#41bea0,#21866d)}
.scenario-column>strong{color:#425d74;font-size:11px}
.scenario-column>span{color:#8494a2;font-size:9px;white-space:nowrap}
.scenario-option-legend{display:grid;gap:8px;margin-top:12px}
.scenario-option-note{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:8px;align-items:start}
.scenario-option-key{display:grid;place-items:center;background:var(--scenario-color,#2878b8);color:white;border-radius:7px;height:23px;font-size:10px;font-weight:900}
.scenario-option-text{color:#5d7385;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.scenario-option-note>b{font-size:10px;color:#47667e;white-space:nowrap}
.scenario-option-note.is-correct-option .scenario-option-key{background:#23866b}
.scenario-option-note.is-correct-option .scenario-option-text{color:#22765f;font-weight:750}
.answer-distribution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.answer-chart.pie-answer-card,.answer-chart.multi-answer-card{min-width:0;box-shadow:0 3px 12px rgba(32,75,110,.035);background:#fff}
.answer-chart-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.answer-chart-title h4{font-size:12px;line-height:1.55;margin:0;color:#33526a;flex:1;overflow-wrap:anywhere}
.answer-question-index{width:28px;height:28px;flex:0 0 auto;border-radius:9px;background:#eaf4fb;color:#2d709d;font-size:10px;font-weight:900;display:grid;place-items:center}
.pie-chart-content{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr);gap:16px;align-items:center}
.pie-chart-wrap{position:relative;width:100%;max-width:190px;aspect-ratio:1;margin:0 auto;display:grid;place-items:center}
.answer-pie{width:100%;height:100%;border-radius:50%;border:5px solid #fff;box-shadow:0 4px 18px rgba(33,68,96,.13);position:relative}
.answer-pie:after{content:"";position:absolute;inset:0;border-radius:50%;outline:1px solid rgba(28,70,101,.06)}
.pie-total{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;width:76px;height:76px;border-radius:50%;background:#fff;box-shadow:0 1px 8px rgba(35,68,95,.08);pointer-events:none}
.pie-total strong{color:#244f70;font-size:19px;line-height:1.15}
.pie-total span{color:#8292a0;font-size:9px}
.pie-legend{display:grid;gap:9px;min-width:0}
.pie-legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:7px;align-items:start}
.pie-legend-swatch{width:10px;height:10px;border-radius:3px;background:var(--pie-color,#2878b8);margin-top:4px}
.pie-legend-label{font-size:10px;line-height:1.5;color:#596f81;overflow-wrap:anywhere}
.pie-legend-row strong{font-size:10px;color:#34566f;white-space:nowrap}
.pie-legend-row small{grid-column:2/4;font-size:9px;color:#8a99a5;margin-top:-5px}
.answer-chart-subline{font-size:10px;color:#8494a2;margin:-4px 0 15px}
.multi-answer-row{margin:10px 0}
.multi-answer-meta{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:5px}
.multi-answer-meta>span{display:flex;gap:7px;color:#5a7082;font-size:10px;line-height:1.5;min-width:0}
.multi-answer-meta i{display:inline-block;width:9px;height:9px;flex:0 0 auto;margin-top:3px;border-radius:3px;background:var(--pie-color,#2878b8)}
.multi-answer-meta>strong{font-size:10px;color:#395d76;white-space:nowrap}
.multi-answer-meta>strong small{color:#8a99a5;font-weight:650}
.multi-answer-track{height:10px;border-radius:99px;background:#edf2f6;overflow:hidden}
.multi-answer-track span{display:block;height:100%;border-radius:99px;background:var(--pie-color,#2878b8)}
.multi-answer-note{font-size:10px;line-height:1.6;color:#81909d;background:#f7fafc;border-radius:8px;padding:9px 10px;margin-top:14px}
.recent-surveys-panel .recent-scroll{max-height:360px;overflow:auto;border:1px solid #e2eaf0;border-radius:12px;overscroll-behavior:contain}
.recent-surveys-panel .recent-scroll .table-wrap{overflow:visible;border:0;border-radius:0}
.recent-surveys-panel .recent-scroll table{min-width:800px;margin:0}
.recent-surveys-panel .recent-scroll thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 #e4ebf0}
@media(max-width:900px){.class-roster-form{grid-template-columns:repeat(2,minmax(0,1fr))}.pie-chart-content{grid-template-columns:minmax(110px,.72fr) minmax(0,1.28fr)}.pie-chart-wrap{max-width:160px}}
@media(max-width:680px){.dashboard-yearbar{align-items:stretch;flex-direction:column;gap:10px;padding:13px}.dashboard-yearbar label,.dashboard-yearbar select{min-width:0;width:100%}.class-roster-form{grid-template-columns:1fr}.scenario-bar-chart-grid,.answer-distribution-grid{grid-template-columns:1fr}.scenario-columns{height:170px}.pie-chart-content{grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:12px}.pie-chart-wrap{max-width:145px}.pie-total{width:62px;height:62px}.pie-total strong{font-size:16px}.pie-legend-row{grid-template-columns:9px minmax(0,1fr) auto;gap:5px}.pie-legend-label{font-size:9px}.pie-legend-row strong{font-size:9px}.recent-surveys-panel .recent-scroll{max-height:300px}.class-participation-panel{padding:12px}}

/* EDUMINE_AI_DASHBOARD_V224: responsive year filter, scrollable recent table, bar and pie charts */


/* EduMine AI 2.25: reorder survey analysis, bounded data tables, no name indicator in recent surveys */
.survey-subsection-heading{margin-top:24px;padding-top:7px;border-top:1px solid #e7eef4}
.class-participation-wrap thead th,.grouped-scroll-viewport thead th{position:sticky;top:0;z-index:4;box-shadow:0 1px 0 #e4ebf0}
.grouped-table-list .grouped-scroll-viewport{max-height:340px;overflow:auto;overscroll-behavior:contain;max-width:100%;border-radius:0}
.grouped-table-list .grouped-scroll-viewport table{margin:0}
.grouped-table-list .grouped-scroll-viewport thead th{background:#f8fafc}
.class-participation-wrap tbody tr:last-child td,.grouped-scroll-viewport tbody tr:last-child td{border-bottom:0}
@media(max-width:680px){.class-participation-wrap{max-height:300px}.grouped-table-list .grouped-scroll-viewport{max-height:300px}.survey-subsection-heading{align-items:flex-start;flex-direction:column;gap:8px}}


/* EDUMINE_AI_NAVIGATION_V227 — home + four focused workspaces */
.admin-home{margin:20px 0 30px}
.admin-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.admin-home-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;min-width:0;min-height:238px;padding:25px 26px 22px;border:1px solid #d8e5ef;border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f9fcff 70%,#f0f8fb 100%);box-shadow:0 9px 24px rgba(27,67,102,.065);color:var(--ink);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.admin-home-card::after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-72px;top:-92px;background:var(--card-glow,rgba(40,123,193,.08));pointer-events:none}
.admin-home-card:hover,.admin-home-card:focus-visible{transform:translateY(-3px);border-color:#9fc7e2;box-shadow:0 16px 34px rgba(27,67,102,.13);outline:none}
.admin-home-card-1{--card-glow:rgba(40,123,193,.11);--card-accent:#287bc1}.admin-home-card-2{--card-glow:rgba(32,169,154,.13);--card-accent:#199b8e}.admin-home-card-3{--card-glow:rgba(140,121,198,.13);--card-accent:#7660b3}.admin-home-card-4{--card-glow:rgba(240,173,78,.16);--card-accent:#bc862c}
.admin-card-topline{height:4px;width:68px;background:var(--card-accent,#287bc1);border-radius:99px;margin-bottom:13px}
.admin-card-number{position:absolute;right:23px;top:22px;color:var(--card-accent,#287bc1);font-size:12px;font-weight:900;letter-spacing:.13em}
.admin-card-icon{width:48px;height:48px;display:grid;place-items:center;background:#edf6fc;border-radius:15px;font-size:25px;margin-bottom:15px}
.admin-home-card-2 .admin-card-icon{background:#eaf8f5}.admin-home-card-3 .admin-card-icon{background:#f1edfb}.admin-home-card-4 .admin-card-icon{background:#fff5e4}
.admin-home-card h3{margin:0 35px 9px 0;color:var(--navy);font-size:17px;line-height:1.36;letter-spacing:-.015em}
.admin-card-description{margin:0 0 10px;color:#61778a;font-size:12px;line-height:1.65;max-width:560px}
.admin-card-features{display:block;color:#8293a2;font-size:10px;line-height:1.7;margin-top:auto;padding-top:8px}
.admin-card-cta{display:inline-flex;align-items:center;gap:7px;color:var(--card-accent,#287bc1);font-size:11px;font-weight:850;margin-top:15px;border-top:1px solid #e9eff4;padding-top:13px;width:100%}
.admin-home-footnote{font-size:10px;color:#8796a4;text-align:center;margin:18px 0 0}
.admin-page-nav{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:18px;padding:13px 15px;margin:3px 0 23px;border:1px solid #dce7ef;border-radius:15px;background:rgba(255,255,255,.92);box-shadow:0 4px 16px rgba(25,57,89,.04)}
.admin-home-back{white-space:nowrap;width:44px;height:44px;min-width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px}.admin-home-back svg{width:21px;height:21px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.admin-home-back:focus-visible{outline:3px solid #9bcdf0;outline-offset:2px}
.admin-page-nav-current{display:grid;gap:3px;min-width:0}.admin-page-nav-current .eyebrow{font-size:9px}.admin-page-nav-current strong{color:var(--navy);font-size:14px;line-height:1.35}
.admin-page-shortcuts{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.admin-page-shortcut{padding:7px 9px;border:1px solid #dce6ef;border-radius:9px;background:#fff;color:#62788c;font-size:10px;font-weight:800;white-space:nowrap}
.admin-page-shortcut:hover,.admin-page-shortcut.active{border-color:#a3c9e2;background:#edf7fc;color:#1d6497}
.admin-content-page{animation:adminPageIn .22s ease both;min-width:0}
.admin-page-heading{padding:7px 2px 15px;margin:4px 0 18px;border-bottom:1px solid #e0eaf1}
.admin-page-heading .eyebrow{font-size:10px}
.admin-page-heading h2{margin:8px 0 6px;font-size:clamp(25px,3vw,34px);letter-spacing:-.035em;line-height:1.2;color:var(--navy)}
.admin-page-heading p{font-size:12px;line-height:1.65;margin:0;max-width:800px}
.admin-content-page>.section-heading:first-of-type{margin-top:22px}
.admin-content-page .dashboard-disclaimer{padding:14px 16px;border:1px solid #e2eaf1;border-radius:12px;background:#f8fbfd}
.ai-direction-heading{margin-top:32px}
.ai-direction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:12px 0 24px}
.ai-direction-card{border:1px solid #dce7ef;border-radius:16px;padding:19px;background:linear-gradient(145deg,#fff,#f8fbfd);min-width:0}
.ai-direction-icon{display:grid;place-items:center;width:41px;height:41px;border-radius:13px;background:#eaf4fb;font-size:21px;margin-bottom:12px}
.ai-direction-card h4{color:var(--navy);font-size:13px;margin:0 0 8px;line-height:1.4}
.ai-direction-card p{color:#657b8e;font-size:11px;line-height:1.75;margin:0}
.admin-content-page .section-heading{scroll-margin-top:96px}
@keyframes adminPageIn{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.admin-page-nav{grid-template-columns:auto minmax(0,1fr)}.admin-page-shortcuts{grid-column:1/-1;justify-content:flex-start}.ai-direction-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.admin-home-grid{grid-template-columns:1fr;gap:12px}.admin-home-card{min-height:0;padding:21px 20px}.admin-home-card h3{font-size:15px}.admin-page-nav{grid-template-columns:1fr;gap:10px;padding:12px}.admin-page-nav-current{order:-1}.admin-page-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.admin-page-shortcut{white-space:normal;padding:9px 6px}.admin-home-back{width:44px;height:44px;min-width:44px;justify-self:start}.ai-direction-grid{grid-template-columns:1fr}.admin-page-heading{margin-top:0}.admin-content-page .section-heading{margin-top:27px}}


/* EDUMINE_AI_BRAND_V228: modern shield-AI logo; header logo always returns to student landing page */
.topbar{background:linear-gradient(108deg,#103366 0%,#164b80 58%,#0c6381 100%);border-bottom:1px solid rgba(95,218,238,.55);box-shadow:0 7px 24px rgba(13,46,84,.13)}
.brand{gap:11px;padding:6px 12px 6px 4px;border-radius:16px;color:#fff;cursor:pointer;transition:background .18s ease,transform .18s ease;flex:0 1 auto;min-width:0}
.brand:hover,.brand:focus-visible{background:rgba(255,255,255,.09);transform:translateY(-1px);outline:none}
.brand:focus-visible{box-shadow:0 0 0 3px rgba(113,228,241,.42)}
.brand-mark{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center}
.brand-mark svg{width:100%;height:100%;display:block;filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))}
.brand-wordmark{display:block;min-width:0}
.brand strong{display:block;font-size:22px;line-height:1.1;letter-spacing:-.035em;font-weight:900;color:#fff;white-space:nowrap}
.brand strong em{font-style:normal;background:linear-gradient(90deg,#58f0e2,#81d4ff 65%,#baa5ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand small{display:block;color:#c8eafa;font-size:10px;line-height:1.4;letter-spacing:.025em;margin-top:4px;white-space:nowrap}
.top-tag{color:#c5e3f4}
.top-actions .btn-outline{background:rgba(255,255,255,.96);border-color:rgba(255,255,255,.6);box-shadow:0 2px 7px rgba(4,26,54,.1)}
.top-actions .btn-outline:hover{background:#eaf9ff}
@media(max-width:620px){.brand{gap:7px;padding:5px 5px 5px 0}.brand-mark{width:38px;height:38px;flex-basis:38px}.brand strong{font-size:16px;letter-spacing:-.025em}.brand small{font-size:8px;letter-spacing:0;margin-top:2px}.topbar{padding:0 10px;gap:8px}.top-actions{gap:4px}.top-tag{display:none}.top-actions .btn-outline{padding:8px 9px;font-size:10px;white-space:nowrap}}

/* BEGIN EDUMINE_AI_FOOTER_BRAND_MATCH_V229 */
.site-footer .footer-brand-matched{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-width:0;padding:6px 10px 6px 4px;border-radius:14px;color:#123d77;font-size:inherit;flex:0 1 auto}
.site-footer .footer-brand-matched .brand-mark{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center}
.site-footer .footer-brand-matched .brand-mark svg{width:100%;height:100%;display:block;filter:drop-shadow(0 3px 5px rgba(0,0,0,.15))}
.site-footer .footer-brand-matched .brand-wordmark{display:block;min-width:0}
.site-footer .footer-brand-matched .brand-wordmark strong{display:block;font-size:22px;line-height:1.1;letter-spacing:-.035em;font-weight:900;color:#123d77;white-space:nowrap}
.site-footer .footer-brand-matched .brand-wordmark strong em{font-style:normal;background:linear-gradient(90deg,#138bdc,#6554e8 75%);-webkit-background-clip:text;background-clip:text;color:transparent}
.site-footer .footer-brand-matched .brand-wordmark small{display:block;color:#617d9a;font-size:10px;line-height:1.4;letter-spacing:.025em;margin-top:4px;white-space:nowrap}
@media(max-width:620px){.site-footer .footer-brand-matched{gap:7px;padding:4px 3px}.site-footer .footer-brand-matched .brand-mark{width:38px;height:38px;flex-basis:38px}.site-footer .footer-brand-matched .brand-wordmark strong{font-size:16px;letter-spacing:-.025em}.site-footer .footer-brand-matched .brand-wordmark small{font-size:8px;letter-spacing:0;margin-top:2px}}
/* END EDUMINE_AI_FOOTER_BRAND_MATCH_V229 */


/* EDUMINE_AI_GENAI_DIRECTION_V231 */
.ai-gen-intro{display:grid;grid-template-columns:62px minmax(0,1fr);gap:18px;align-items:start;background:linear-gradient(135deg,#f5fbff 0%,#f6f5ff 58%,#f1fbf8 100%);border-color:#d9e7f4;padding:22px;margin:15px 0 18px}
.ai-gen-intro-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;color:#fff;background:linear-gradient(140deg,#2463a6,#18a9b1);font-size:29px;box-shadow:0 8px 18px rgba(38,112,164,.2)}
.ai-gen-intro-copy h4{font-size:17px;color:var(--navy);margin:2px 0 8px}.ai-gen-intro-copy p{font-size:12px;line-height:1.8;color:#587086;margin:0;max-width:900px}.ai-gen-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.ai-gen-tags span{border:1px solid #d6e6f1;background:rgba(255,255,255,.82);padding:6px 10px;border-radius:999px;font-size:10px;font-weight:750;color:#416983}
.ai-gen-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 28px}.ai-gen-flow-step{position:relative;border:1px solid #dce7ef;border-radius:15px;background:#fff;padding:17px 15px;min-width:0;box-shadow:0 4px 14px rgba(25,59,91,.035)}.ai-gen-step-no{position:absolute;right:13px;top:12px;font-size:11px;font-weight:900;color:#a8bdcb;letter-spacing:.08em}.ai-gen-step-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#edf6fc;font-size:22px;margin-bottom:12px}.ai-gen-flow-step h4{font-size:12px;color:#244c6d;margin:0 0 8px}.ai-gen-flow-step p{font-size:10.5px;line-height:1.75;color:#657b8d;margin:0}
.ai-gen-section-title h4{font-size:17px;color:var(--navy);margin:5px 0 0}.ai-gen-usecases{margin:20px 0 25px}.ai-gen-usecase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:14px}.ai-gen-usecase{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;border:1px solid #e0e9f0;border-radius:13px;padding:15px;background:#fff}.ai-gen-usecase>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f0f6fa;font-size:18px}.ai-gen-usecase h5{color:#2b506c;font-size:12px;margin:0 0 6px}.ai-gen-usecase p{font-size:10.5px;line-height:1.65;color:#687f91;margin:0}
.ai-gen-prompt-builder{border:1px solid #cfe0ed;box-shadow:0 7px 22px rgba(28,75,112,.06);padding:22px}.ai-gen-prompt-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.ai-gen-prompt-heading h4{font-size:18px;color:var(--navy);margin:5px 0 7px}.ai-gen-prompt-heading p{font-size:11px;line-height:1.7;margin:0;max-width:650px}.ai-gen-status{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #eadfb9;background:#fff9e8;border-radius:999px;white-space:nowrap;font-size:10px;font-weight:800;color:#876d23}.ai-gen-status-dot{width:7px;height:7px;border-radius:50%;background:#d19b28}.ai-gen-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.ai-gen-form-grid label,.ai-gen-prompt-builder>label{display:grid;gap:7px;font-size:11px;font-weight:750;color:#425f75;margin:0 0 13px}.ai-gen-prompt-builder select,.ai-gen-prompt-builder textarea{width:100%;border:1px solid #d4e1ea;background:#fbfdff;border-radius:10px;padding:11px 12px;font:inherit;color:#2c4a61;box-sizing:border-box;min-width:0}.ai-gen-prompt-builder textarea{resize:vertical;line-height:1.7;font-size:11px;font-weight:450}.ai-gen-prompt-builder textarea[readonly]{background:#f7fafc}.ai-gen-context-label textarea{font-weight:450}.ai-gen-actions{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px}.ai-gen-actions button{font-size:11px}.ai-gen-prompt-status{font-size:10px;color:#6d8394;line-height:1.65;margin:8px 0 0}.ai-gen-safety-note{display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;padding:16px;border:1px solid #d1e7dd;background:#f2fbf7;border-radius:14px;margin:17px 0}.ai-gen-safety-note>span{font-size:22px}.ai-gen-safety-note strong{font-size:12px;color:#286b56}.ai-gen-safety-note p{font-size:10.5px;line-height:1.7;color:#4b7567;margin:5px 0 0}
@media(max-width:900px){.ai-gen-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ai-gen-intro{grid-template-columns:1fr;padding:17px}.ai-gen-flow{grid-template-columns:1fr}.ai-gen-usecase-grid,.ai-gen-form-grid{grid-template-columns:1fr}.ai-gen-prompt-heading{flex-direction:column}.ai-gen-status{white-space:normal}.ai-gen-prompt-builder{padding:16px}.ai-gen-actions button{width:100%}}



/* EDUMINE_AI_OPENAI_API_V232 */
.ai-gen-privacy-confirm{display:flex;align-items:flex-start;gap:9px;margin:2px 0 15px;padding:12px 13px;border:1px solid #cfe4db;border-radius:11px;background:#f2fbf7;color:#356b5a;font-size:11px;line-height:1.65;font-weight:650}
.ai-gen-privacy-confirm input{width:17px;height:17px;flex:0 0 17px;margin:1px 0 0;accent-color:#238b76}
.ai-gen-actions{align-items:center}
.ai-gen-actions button{min-height:38px}
.ai-gen-result-panel{margin-top:18px;border:1px solid #d5e4ef;background:linear-gradient(145deg,#fbfdff,#f4fafc);border-radius:15px;padding:17px}
.ai-gen-result-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.ai-gen-result-heading h5{margin:5px 0 0;color:#173e65;font-size:15px;line-height:1.4}
.ai-gen-model-pill{display:inline-flex;align-items:center;max-width:45%;padding:7px 10px;border:1px solid #d8e3ec;border-radius:999px;background:#fff;color:#637a8d;font-size:10px;font-weight:800;overflow-wrap:anywhere}
.ai-gen-result-status{font-size:11px;color:#5c7488;line-height:1.65;margin:8px 0 11px;white-space:pre-wrap}
.ai-gen-result-panel textarea{width:100%;min-height:200px;box-sizing:border-box;resize:vertical;border:1px solid #d4e1ea;border-radius:11px;background:#fff;padding:14px;color:#243f55;font-size:12px;line-height:1.8;white-space:pre-wrap}
.ai-gen-result-note{font-size:10px;color:#6b8192;line-height:1.65;margin:9px 0 0}
.ai-gen-status[data-state="ready"],.ai-gen-status-ready{border-color:#b8e4d2;background:#edfbf5;color:#217454}
.ai-gen-status[data-state="ready"] .ai-gen-status-dot,.ai-gen-status-ready .ai-gen-status-dot{background:#2a9d75}
.ai-gen-status[data-state="error"],.ai-gen-status-error{border-color:#f1c6c6;background:#fff4f4;color:#a53b3b}
.ai-gen-status[data-state="error"] .ai-gen-status-dot,.ai-gen-status-error .ai-gen-status-dot{background:#d84c4c}
@media(max-width:620px){.ai-gen-result-panel{padding:13px}.ai-gen-result-heading{flex-direction:column}.ai-gen-model-pill{max-width:100%}.ai-gen-result-panel textarea{min-height:240px}.ai-gen-privacy-confirm{font-size:10px}}


/* ================================================================
   EduMine AI · SAFE DIGITAL + RESPONSIBLE AI VISUAL SYSTEM v1.0
   UI-only layer: preserve application behavior, IDs and data flow.
   ================================================================ */
:root{
  --navy:#102b52;
  --navy2:#174574;
  --blue:#1677d2;
  --teal:#0dacae;
  --ink:#172b45;
  --muted:#63758d;
  --line:#dce6f2;
  --soft:#f3f7fc;
  --white:#fff;
  --gold:#e5a72e;
  --red:#c64c5c;
  --green:#14866f;
  --shadow:0 14px 38px rgba(23,55,94,.075);
  --shadow-hover:0 20px 48px rgba(23,55,94,.13);
}
html{scroll-padding-top:100px}
body{
  color:var(--ink);
  background:
    radial-gradient(ellipse at 2% 0%,rgba(33,135,219,.095),transparent 32rem),
    radial-gradient(ellipse at 100% 18%,rgba(17,190,188,.075),transparent 30rem),
    linear-gradient(180deg,#f5f8fd 0%,#f7f9fc 48%,#f1f5fa 100%);
  font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
  letter-spacing:.002em;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.23;
  background-image:radial-gradient(rgba(39,104,167,.19) .65px,transparent .65px);
  background-size:22px 22px;mask-image:linear-gradient(to bottom,black,transparent 76%);
}
::selection{background:#c8f4f5;color:#10335c}
:focus-visible{outline:3px solid rgba(21,151,218,.48);outline-offset:3px}
.topbar{
  min-height:82px;height:auto;padding:11px clamp(18px,4.2vw,68px);
  background:linear-gradient(105deg,#0b2447 0%,#113b69 48%,#105d78 100%);
  border-bottom:1px solid rgba(80,222,238,.46);
  box-shadow:0 12px 30px rgba(9,35,69,.19);
  backdrop-filter:blur(18px);
}
.topbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(81,226,239,.9),rgba(120,126,255,.45),transparent);pointer-events:none}
.brand{gap:12px;padding:6px 13px 6px 4px;border-radius:16px;min-width:0}
.brand-mark{width:51px;height:51px;flex:0 0 51px}
.brand-mark svg{filter:drop-shadow(0 5px 10px rgba(0,0,0,.23))}
.brand strong{font-size:24px;letter-spacing:-.045em}
.brand small{font-size:10px;color:#c9e8f7;letter-spacing:.035em}
.top-tag{color:#c2e7f3;letter-spacing:.11em;font-size:10px}
.top-actions{gap:13px}
.top-actions .btn-outline{border-color:rgba(190,241,250,.5);background:rgba(255,255,255,.96);color:#153d67;border-radius:12px;box-shadow:0 5px 16px rgba(2,26,58,.18)}
.top-actions .btn-outline:hover{background:#eafcff;box-shadow:0 8px 22px rgba(2,26,58,.2)}
main{max-width:1320px;margin:38px auto 72px;padding:0 clamp(17px,3vw,34px)}
.panel{border:1px solid rgba(218,230,243,.94);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:var(--shadow)}
.btn{min-height:42px;border-radius:12px;font-size:13px;font-weight:780;letter-spacing:.005em;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.btn-primary{background:linear-gradient(120deg,#1768bf,#1488dc 58%,#0baeb7);box-shadow:0 8px 20px rgba(23,119,202,.23)}
.btn-primary:hover:not(:disabled){box-shadow:0 11px 25px rgba(23,119,202,.29)}
.btn-secondary{background:linear-gradient(120deg,#108e91,#11b5ac);box-shadow:0 6px 16px rgba(13,172,174,.16)}
.btn-outline{border-color:#cbd9e9;color:#234568;background:#fff}
.btn-outline:hover:not(:disabled){background:#f1f8ff;border-color:#84bde5}
.btn-ghost{color:#526b85}
.btn-danger-outline{border-color:#edc5cb;color:#a33e4a;background:#fff8f8}
.eyebrow{color:#1679b7;font-size:10px;font-weight:900;letter-spacing:.13em}
.muted{color:#64768c}
.welcome-grid{grid-template-columns:minmax(0,1.08fr) minmax(370px,.92fr);gap:24px}
.hero-copy{
  border:1px solid rgba(125,194,240,.28);border-radius:27px;padding:clamp(28px,4vw,54px);
  color:#eff8ff;
  background:radial-gradient(circle at 85% 8%,rgba(18,207,213,.22),transparent 29%),radial-gradient(circle at 0% 100%,rgba(72,96,222,.2),transparent 42%),linear-gradient(145deg,#0c274e 0%,#123e6c 56%,#0b6077 100%);
  box-shadow:0 24px 55px rgba(12,45,81,.18);overflow:hidden;isolation:isolate
}
.hero-copy::before{content:"";position:absolute;z-index:-1;right:-58px;top:68px;width:260px;height:260px;border-radius:50%;border:1px solid rgba(108,229,242,.17);box-shadow:0 0 0 24px rgba(91,203,238,.035),0 0 0 50px rgba(91,203,238,.025)}
.hero-copy::after{width:260px;height:260px;border-color:rgba(115,221,242,.18);right:-120px;bottom:-135px}
.hero-copy .eyebrow{color:#8ef3ef}
.hero-copy .dot{background:#58e4d3;box-shadow:0 0 0 4px rgba(88,228,211,.16),0 0 16px rgba(88,228,211,.6)}
.hero-copy h1{color:#fff;font-size:clamp(48px,5.5vw,70px);letter-spacing:-.06em;margin:24px 0 20px;text-shadow:0 3px 18px rgba(0,0,0,.12)}
.hero-copy h1 em{background:linear-gradient(90deg,#59f0dd,#55d7ff 55%,#ada9ff);background-clip:text;-webkit-background-clip:text;color:transparent}
.hero-copy .lead{max-width:590px;color:#d0e3f4;line-height:1.78;font-size:15px;position:relative;z-index:1}
.feature-row{gap:22px;margin:31px 0 26px;position:relative;z-index:1}
.feature-row div{border-left:2px solid rgba(116,207,241,.4);padding-left:13px}
.feature-row b{color:#6cece3;font-size:18px}
.feature-row span{color:#d4e5f4;font-size:11px;line-height:1.5}
.privacy-banner{border:1px solid rgba(95,230,205,.23);background:rgba(9,33,65,.42);backdrop-filter:blur(8px);color:#d2edf1;font-size:11px;border-radius:15px;line-height:1.65}
.privacy-banner strong{color:#8ff0d9}
.privacy-banner>span:first-child{width:37px;height:37px;border-radius:12px;background:rgba(78,224,211,.12);display:grid;place-items:center;flex:0 0 auto}
.start-card{border-radius:27px;padding:clamp(26px,3.3vw,42px);border-color:#deebf5;box-shadow:0 22px 52px rgba(24,63,102,.09);background:linear-gradient(155deg,#fff 0%,#fff 64%,#f0fbfd 100%)}
.start-card::before{content:"";position:absolute;top:0;left:32px;right:32px;height:3px;border-radius:0 0 8px 8px;background:linear-gradient(90deg,#1c79d1,#15c0c1,#7e86ed)}
.card-orbit{border-color:#d6eaf8;box-shadow:0 0 0 16px rgba(35,139,208,.025)}
.detective-emoji{width:68px;height:68px;display:grid;place-items:center;background:linear-gradient(145deg,#e8f6ff,#e3fbf7);border:1px solid #cfebf5;border-radius:22px;font-size:37px;box-shadow:0 8px 20px rgba(25,120,173,.09)}
.start-card h2,.activity-panel h2,.teacher-panel h2{color:#12345d;letter-spacing:-.045em}
.start-card>p{font-size:13px}
label{font-size:12px;color:#314c69;font-weight:800;gap:8px}
input,select{border-color:#ceddec;border-radius:12px;padding:13px 14px;background:#fff;color:#213a56;min-height:46px;box-shadow:0 2px 5px rgba(29,65,104,.025)}
input::placeholder{color:#93a2b3}
input:focus,select:focus{border-color:#2a9dcf;box-shadow:0 0 0 4px rgba(51,165,216,.13)}
.field-note{font-size:10.5px;color:#71839a;line-height:1.65}
.consent{padding:12px 13px;background:#f2f9ff;border:1px solid #dcecf7;border-radius:13px;color:#4b657e;font-size:10.5px;line-height:1.65}
.consent input{min-height:16px;accent-color:#138fbe}
.activity-panel,.teacher-panel{border-radius:26px;padding:clamp(22px,3.5vw,42px);box-shadow:0 22px 55px rgba(22,58,100,.09)}
.activity-top{padding-bottom:15px;border-bottom:1px solid #e9f0f7}
.activity-panel h2{font-size:clamp(24px,3vw,33px)}
.progress-meta{color:#6b7e95}
.progress-track{height:10px;border:1px solid #e3edf6;background:#e9f0f8;border-radius:99px}
.progress-track>div{background:linear-gradient(90deg,#0bb4af,#1a83da,#777ae8);box-shadow:0 0 10px rgba(24,155,198,.14)}
.question-symbol,.scenario-symbol{border:1px solid #d7eaf8;background:linear-gradient(145deg,#e9f5ff,#e6fbfa);border-radius:20px;box-shadow:0 7px 18px rgba(20,110,164,.06)}
.question-copy h3,.scenario-banner h3,.scenario-prompt{color:#173d68}
.choice{border-color:#dce7f3;border-radius:15px;padding:16px;box-shadow:0 2px 7px rgba(20,61,98,.025)}
.choice:hover{border-color:#79b8e6;background:#f2f9ff;box-shadow:0 6px 16px rgba(26,117,174,.07)}
.choice.selected{border-color:#1689cf;background:linear-gradient(120deg,#eef8ff,#effcfb);box-shadow:0 0 0 2px rgba(22,137,207,.13)}
.choice.selected .choice-mark{background:linear-gradient(135deg,#1475c8,#0bb2b8);border-color:transparent}
.scenario-video-card{border:1px solid #d7e7f5;border-radius:20px;background:linear-gradient(135deg,#f1f8ff,#f2fbfa);padding:13px}
.scenario-video{background:#0b2143;border:1px solid rgba(70,141,192,.35);border-radius:15px}
.scenario-summary{border-color:#dce9f4;background:#f9fcff;border-radius:14px}
.scenario-choice{border-color:#dce7f3;border-radius:14px;padding:15px 16px;box-shadow:0 2px 7px rgba(20,61,98,.025)}
.scenario-choice:hover{border-color:#85c5e9;background:#f4faff}
.scenario-choice.selected{border-color:#218ed0;background:#eef8ff;box-shadow:0 0 0 2px rgba(33,142,208,.1)}
.scenario-choice.correct{border-color:#7ed2b7;background:#effbf6}
.scenario-choice.wrong{border-color:#efb7bd;background:#fff5f6}
.feedback-box{border-radius:14px;line-height:1.7}
.activity-footer{border-top-color:#e5edf5}
.footer-reminder{color:#637890}
.complete-panel{overflow:hidden}
.complete-hero{background:radial-gradient(circle at 50% 0,rgba(16,187,187,.13),transparent 40%),radial-gradient(circle at 100% 100%,rgba(75,103,221,.08),transparent 40%),#fff}
.complete-emoji{width:82px;height:82px;display:grid;place-items:center;margin:0 auto 16px;border-radius:27px;background:linear-gradient(145deg,#e7f8ff,#e9fbf5);border:1px solid #d5eef2}
.score-badge{border-color:#cfe8ef;background:linear-gradient(145deg,#f8fdff,#f0fbfa);border-radius:19px}
.score-badge strong{color:#089ca2}
.login-card{border:1px solid #dbe8f4;border-radius:23px;background:linear-gradient(145deg,#fff,#f5fbff);padding:30px;box-shadow:0 18px 44px rgba(21,62,103,.09)}
.login-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid #d5eaf7;border-radius:20px;background:linear-gradient(145deg,#e8f6ff,#e6fbf8);font-size:30px;margin-bottom:13px}
.login-card h2{font-size:25px}
.login-card .muted{line-height:1.7;font-size:12px}
.dashboard-yearbar{border:1px solid #d4e6f2;border-radius:18px;background:linear-gradient(110deg,#f0f8ff 0%,#f2fbfa 56%,#f7f5ff 100%);padding:17px 20px;box-shadow:0 7px 20px rgba(25,75,116,.045)}
.dashboard-yearbar .yearbar-label{letter-spacing:.12em;color:#23739e}
.dashboard-yearbar select{border-color:#bdd8eb;border-radius:12px}
.dash-title{align-items:center;padding:7px 0 18px;border-bottom:1px solid #e3edf5}
.dash-title h2{color:#153a63;letter-spacing:-.045em}
.dash-title .muted{font-size:12px;line-height:1.65}
.admin-home{margin-top:24px}
.admin-home-grid{gap:18px}
.admin-home-card{min-height:245px;border:1px solid #d9e6f2;border-radius:23px;padding:24px 25px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,251,255,.98));box-shadow:0 9px 25px rgba(26,69,107,.055);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.admin-home-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--card-accent,#287bc1),rgba(21,188,196,.35));opacity:.9}
.admin-home-card::after{width:190px;height:190px;right:-88px;top:-101px;background:radial-gradient(circle,var(--card-glow,rgba(40,123,193,.14)),transparent 68%)}
.admin-home-card:hover,.admin-home-card:focus-visible{transform:translateY(-4px);border-color:#a3cce7;box-shadow:var(--shadow-hover)}
.admin-card-topline{height:4px;width:56px;margin:0 0 12px}
.admin-card-number{font-size:11px;color:var(--card-accent);background:rgba(255,255,255,.78);border:1px solid rgba(210,225,239,.8);border-radius:999px;padding:5px 8px;right:20px;top:20px;letter-spacing:.08em}
.admin-card-icon{width:52px;height:52px;border-radius:17px;background:linear-gradient(145deg,#e8f4ff,#e4f8fa);border:1px solid #dbeaf6;box-shadow:0 5px 12px rgba(18,82,130,.04)}
.admin-home-card-2 .admin-card-icon{background:linear-gradient(145deg,#e6fbf6,#e9faff)}
.admin-home-card-3 .admin-card-icon{background:linear-gradient(145deg,#f0edff,#eaf4ff)}
.admin-home-card-4 .admin-card-icon{background:linear-gradient(145deg,#fff7e9,#fff0e9)}
.admin-home-card h3{font-size:16px;line-height:1.45;color:#143d67}
.admin-card-description{font-size:12px;line-height:1.75;color:#5e748d}
.admin-card-features{font-size:10.5px;color:#72859a;line-height:1.8}
.admin-card-cta{border-top:1px solid #e5edf5;padding-top:13px;font-size:11.5px}
.admin-home-footnote{max-width:760px;margin:20px auto 0;line-height:1.8;color:#71849a}
.admin-page-nav{border:1px solid #d9e6f2;border-radius:17px;background:rgba(255,255,255,.93);box-shadow:0 8px 22px rgba(23,62,101,.055);padding:13px 15px}
.admin-home-back{border-radius:12px;background:#f5faff}
.admin-page-nav-current strong{color:#153b65;font-size:14px}
.admin-page-shortcut{border:1px solid #dce7f2;border-radius:10px;background:#f9fbfe;color:#5a7087;padding:8px 10px;transition:all .18s ease}
.admin-page-shortcut:hover,.admin-page-shortcut.active{border-color:#9bcbe8;background:#eaf7ff;color:#155d91}
.admin-page-heading{border-bottom:1px solid #dce9f3;padding:10px 2px 19px;margin-bottom:21px}
.admin-page-heading h2{color:#143a64;font-size:clamp(25px,2.7vw,35px);letter-spacing:-.045em}
.admin-page-heading p{font-size:12px;color:#667b92;line-height:1.8}
.admin-content-page .dashboard-disclaimer{background:#f4f9fe;border:1px solid #deebf6;border-radius:14px;line-height:1.75;color:#536f89;font-size:11px}
.stat-grid{gap:14px}
.stat-card{position:relative;overflow:hidden;border:1px solid #dce7f3;border-radius:19px;background:linear-gradient(145deg,#fff,#f7fbff);padding:19px;box-shadow:0 7px 18px rgba(23,66,105,.035)}
.stat-card::after{content:"";position:absolute;right:-25px;top:-35px;width:100px;height:100px;border-radius:50%;background:linear-gradient(145deg,rgba(30,135,211,.08),rgba(13,184,183,.025));pointer-events:none}
.stat-card .stat-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;background:#eaf5ff;border:1px solid #dcebf7;font-size:21px}
.stat-card small{font-size:11px;color:#667c94;line-height:1.5}
.stat-card strong{font-size:32px;color:#153e68;letter-spacing:-.05em}
.stat-card .stat-foot{font-size:10px;color:#8a9aac}
.sample-card{background:linear-gradient(145deg,#fff,#faf8ff);border-color:#e5def8}
.sample-card .stat-icon{background:#f1edff;border-color:#e5dcfb}
.subpanel{border:1px solid #dce7f2;border-radius:19px;background:rgba(255,255,255,.97);padding:21px;box-shadow:0 6px 20px rgba(24,65,104,.035)}
.subpanel h3{font-size:15px;color:#183f67;letter-spacing:-.02em;line-height:1.5}
.section-heading{margin:34px 0 14px;gap:12px}
.section-heading h3{font-size:21px;letter-spacing:-.035em;color:#143d67}
.section-caption{color:#6c8198}
.notice{border-radius:15px;border-color:#cfe4f3;background:linear-gradient(100deg,#eef8ff,#effbf8);color:#456681;line-height:1.75;padding:15px 17px}
.dash-tools{gap:10px;margin:18px 0 28px}
.table-wrap,.recent-surveys-panel .recent-scroll{border:1px solid #dfE8f1;border-radius:13px;background:#fff}
table{border-collapse:separate;border-spacing:0}
th{font-weight:850}
.table-wrap th,.recent-scroll th,.group-detail-table th{background:#f0f6fc;color:#3d5b78;border-bottom:1px solid #dfe9f3}
.table-wrap td,.recent-scroll td{color:#4b627b;border-bottom:1px solid #edf2f7}
tbody tr:nth-child(even) td{background:#fbfdff}
tbody tr:hover td{background:#f2f9ff}
.ai-direction-card{border-color:#dce6f4;border-radius:18px;background:linear-gradient(145deg,#fff,#f7faff);box-shadow:0 7px 20px rgba(24,65,104,.035);padding:20px}
.ai-direction-icon{background:linear-gradient(145deg,#e5f5ff,#e6fbf8);border:1px solid #d8ecf5;border-radius:15px}
.ai-direction-card h4{color:#173f6a;font-size:14px}
.ai-direction-card p{font-size:11.5px;line-height:1.8;color:#5f748c}
.ai-gen-intro{border-radius:20px;background:linear-gradient(125deg,#eff9ff,#f2f0ff 57%,#effbf8);border-color:#d8e6f4;box-shadow:0 8px 22px rgba(24,65,104,.04)}
.ai-gen-intro-icon{box-shadow:0 8px 20px rgba(27,106,165,.18)}
.ai-gen-flow-step,.ai-gen-usecase-grid>*{border-radius:16px}
.ai-gen-prompt-builder{border-radius:19px;border-color:#d5e6f4;background:linear-gradient(140deg,#fff,#f7fbff)}
.ai-gen-privacy-confirm{border-radius:13px;background:#f0fbf6;border-color:#ccebdd;line-height:1.7}
.ai-gen-result-panel{border-radius:18px;background:linear-gradient(145deg,#fbfdff,#f2f9fc);border-color:#d5e6f2}
.ai-gen-result-panel textarea{border-radius:13px;line-height:1.8}
.cluster-card{border-radius:19px;background:linear-gradient(145deg,#fff,#f8fbfe);box-shadow:0 7px 20px rgba(24,65,104,.035);padding:20px}
.cluster-card.group-positive{border-top-color:#1da586}
.cluster-card.group-guidance{border-top-color:#dfa928}
.cluster-card.group-high{border-top-color:#ca5b54}
.site-footer{max-width:1320px;color:#70839a}
.site-footer .footer-brand-matched{border-radius:16px}

/* Small screens: reduce decoration, keep the key actions and tables readable. */
@media(max-width:900px){
  main{margin-top:24px}
  .welcome-grid{grid-template-columns:1fr;gap:17px}
  .hero-copy{min-height:0}
  .start-card{padding:28px}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .topbar{min-height:70px;padding:8px 13px;gap:8px}
  .brand{gap:7px;padding:4px 3px}
  .brand-mark{width:37px;height:37px;flex-basis:37px}
  .brand strong{font-size:17px;letter-spacing:-.04em}
  .brand small{font-size:8px;letter-spacing:0;white-space:normal;max-width:180px}
  .top-tag{display:none}
  .top-actions{gap:4px}
  .top-actions .btn{padding:9px 10px;min-height:38px;font-size:11px;white-space:nowrap}
  main{padding:0 13px;margin:18px auto 42px}
  .hero-copy{padding:27px 22px;border-radius:22px}
  .hero-copy h1{font-size:clamp(44px,12vw,58px);margin:20px 0 16px}
  .hero-copy .lead{font-size:13px;line-height:1.75}
  .feature-row{gap:10px;margin:23px 0 20px}
  .feature-row div{padding-left:9px}
  .feature-row b{font-size:15px}
  .feature-row span{font-size:9.5px}
  .privacy-banner{padding:12px;font-size:10px}
  .start-card{padding:25px 19px;border-radius:22px}
  .start-card h2{font-size:25px}
  .panel,.activity-panel,.teacher-panel{border-radius:20px}
  .activity-panel,.teacher-panel{padding:17px}
  .activity-top,.dash-title{align-items:flex-start;flex-direction:column}
  .activity-top{gap:8px}
  .question-layout{gap:12px}
  .question-symbol,.scenario-symbol{width:48px;height:48px;border-radius:15px;font-size:25px}
  .choice-grid{grid-template-columns:1fr}
  .choice{min-height:54px;padding:13px}
  .activity-footer{align-items:flex-start;flex-direction:column;gap:12px}
  .activity-actions{width:100%}
  .activity-actions .btn{flex:1}
  .storyboard{grid-template-columns:1fr}
  .story-art{height:75px}
  .dashboard-yearbar{padding:13px;border-radius:15px}
  .dash-title-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
  .dash-title-actions .btn{flex:1}
  .admin-home-grid{grid-template-columns:1fr;gap:12px}
  .admin-home-card{padding:21px 19px;border-radius:19px}
  .admin-page-nav{grid-template-columns:1fr;padding:13px;border-radius:15px}
  .admin-page-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .admin-page-shortcut{white-space:normal;text-align:left;line-height:1.4}
  .admin-page-heading h2{font-size:25px}
  .subpanel{padding:14px;border-radius:15px}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .stat-card{padding:13px;border-radius:15px}
  .stat-card strong{font-size:25px}
  .section-heading h3{font-size:18px}
  .ai-direction-grid{grid-template-columns:1fr}
  .ai-gen-flow{grid-template-columns:1fr}
  .site-footer{padding:15px 14px 24px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* EduMine AI · visual refresh based on supplied reference mockup */
:root{--edumine-deep:#123f83;--edumine-cyan:#0aaee5;--edumine-teal:#08b9a9;--edumine-purple:#8655ed;--edumine-orange:#ff9b18}
.teacher-home-icon{display:none}
.teacher-user-chip{display:none}
.teacher-user-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#4095f3,#2467c7);box-shadow:0 3px 12px rgba(5,31,84,.18)}
.teacher-user-avatar svg{width:31px;height:31px;fill:#fff;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.teacher-user-chevron{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
body.teacher-mode .topbar{min-height:105px;height:105px;padding:0 22px;background:linear-gradient(110deg,#163f80 0%,#12427f 56%,#123b78 100%);border-bottom:1px solid rgba(130,206,255,.55);box-shadow:0 4px 15px rgba(11,48,103,.12);backdrop-filter:none;gap:22px}
body.teacher-mode .teacher-home-icon{width:66px;height:66px;flex:0 0 66px;border-radius:17px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#428be6,#2672cf);box-shadow:0 7px 18px rgba(3,35,88,.16);transition:transform .18s ease,background .18s ease}
body.teacher-mode .teacher-home-icon:hover{transform:translateY(-1px);background:linear-gradient(145deg,#5ba3ff,#307bdb)}
body.teacher-mode .teacher-home-icon svg{width:34px;height:34px;fill:#fff;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body.teacher-mode .brand{gap:16px;padding:0;flex:1}
body.teacher-mode .brand-mark{width:78px;height:78px;flex-basis:78px}
body.teacher-mode .brand strong{font-size:clamp(28px,3vw,48px);letter-spacing:-.04em;font-weight:900}
body.teacher-mode .brand small{display:none}
body.teacher-mode .top-actions{gap:15px}
body.teacher-mode .top-tag,body.teacher-mode #teacherOpen{display:none!important}
body.teacher-mode .teacher-user-chip{display:flex;align-items:center;gap:14px;color:white;font-size:22px;font-weight:500;white-space:nowrap}
body.teacher-mode main{max-width:none;width:100%;margin:0 auto 40px;padding:0 clamp(20px,3.3vw,52px)}
body.teacher-mode .teacher-panel{width:100%;max-width:none;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
body.teacher-mode #dashboard{width:100%;min-width:0}
body.teacher-dashboard-home .dashboard-yearbar,body.teacher-dashboard-home .dash-title{display:none!important}
body.teacher-dashboard-home .admin-home{margin:0;padding:0;}
.admin-home-hero{position:relative;min-height:382px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,.7fr);align-items:center;gap:12px;overflow:hidden;padding:34px 0 15px;isolation:isolate}
.admin-home-hero::before{content:"";position:absolute;z-index:-2;inset:0 -80px 0 -80px;background:radial-gradient(ellipse at 23% 48%,rgba(255,255,255,.97),rgba(242,250,255,.68) 42%,transparent 68%),radial-gradient(ellipse at 94% 24%,rgba(220,231,255,.64),transparent 35%),linear-gradient(105deg,rgba(255,255,255,.2),rgba(234,246,255,.22));}
.admin-home-hero::after{content:"";position:absolute;z-index:-1;right:-100px;top:35px;width:48%;height:85%;background:linear-gradient(155deg,rgba(185,224,255,.1),rgba(111,153,247,.13));clip-path:ellipse(68% 45% at 72% 48%);pointer-events:none}
.admin-home-brand-art{display:flex;align-items:center;gap:28px;min-width:0;z-index:1}
.admin-hero-main-shield{width:clamp(135px,16vw,235px);height:auto;flex:0 0 auto;filter:drop-shadow(0 13px 12px rgba(21,92,177,.13))}
.admin-home-hero-copy{min-width:0}
.admin-home-hero-copy h1{font-size:clamp(38px,5.2vw,78px);line-height:1.02;letter-spacing:-.06em;font-weight:900;color:#103c84;margin:0 0 13px;white-space:nowrap}
.admin-home-hero-copy h1 span{background:linear-gradient(100deg,#078fef 0%,#2777ff 45%,#9461f4 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.admin-home-hero-copy>p{color:#0c3c85;font-size:clamp(14px,1.95vw,29px);line-height:1.35;margin:0 0 25px;letter-spacing:-.025em;white-space:nowrap}
.admin-hero-pills{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.admin-hero-pills span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.65);border:1px solid rgba(166,208,248,.55);color:#32679d;font-size:10px;font-weight:750;white-space:nowrap}
.admin-hero-pills svg{width:14px;height:14px;stroke:#178ed2;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-home-orbit-art{position:relative;min-width:0;height:325px;display:flex;align-items:center;justify-content:center;opacity:.92}
.ai-orbit{position:absolute;left:50%;top:50%;border:1px solid rgba(113,198,248,.52);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.ai-orbit.orbit-a{width:min(350px,100%);aspect-ratio:1;}
.ai-orbit.orbit-b{width:min(290px,84%);aspect-ratio:1;border-color:rgba(115,198,248,.48)}
.ai-orbit.orbit-c{width:min(235px,68%);aspect-ratio:1;border-color:rgba(115,198,248,.32)}
.ai-orbit-shield{width:min(180px,50%);height:auto;position:absolute;left:34%;top:50%;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 14px rgba(53,141,212,.1))}
.ai-brain-art{width:min(155px,44%);height:auto;position:absolute;right:0;top:50%;transform:translateY(-50%);opacity:.75}
.ai-orbit-node{position:absolute;width:11px;height:11px;border-radius:50%;background:#9bdafa;box-shadow:0 0 0 4px rgba(157,218,250,.12)}
.ai-orbit-node.node-1{left:12%;top:26%}.ai-orbit-node.node-2{left:48%;top:2%}.ai-orbit-node.node-3{right:14%;top:20%}.ai-orbit-node.node-4{left:38%;bottom:4%}
.admin-home-heading{text-align:center;margin:2px 0 21px}
.admin-home-heading .eyebrow{font-size:10px;color:#3986c7;letter-spacing:.16em}
.admin-home-heading h2{font-size:clamp(21px,2.2vw,32px);letter-spacing:-.035em;line-height:1.25;margin:6px 0 6px;color:#123f87;font-weight:850}
.admin-home-heading p{margin:0;color:#6a83a2;font-size:12px;line-height:1.7}
.admin-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;align-items:stretch}
.admin-home-card{position:relative;min-height:424px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:17px 25px 22px;border-radius:23px;border:1px solid var(--card-border,#a4d4ff);background:linear-gradient(150deg,var(--card-top,#e5f3ff) 0%,var(--card-bottom,#d7efff) 100%);box-shadow:none;color:#103c84;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.admin-home-card::before{content:"";position:absolute;right:-26px;bottom:-47px;width:130%;height:100px;border-radius:50% 50% 0 0;background:rgba(255,255,255,.19);transform:rotate(-5deg);pointer-events:none}
.admin-home-card::after{content:"";position:absolute;left:-20%;right:-20%;bottom:-58px;height:95px;border-radius:50%;background:rgba(255,255,255,.2);filter:blur(2px);pointer-events:none}
.admin-home-card:hover,.admin-home-card:focus-visible{transform:translateY(-5px);box-shadow:0 16px 32px rgba(31,101,163,.11);border-color:var(--card-strong);outline:none}
.admin-home-card-1{--card-top:#e4f2ff;--card-bottom:#d4ecff;--card-border:#a6d4ff;--card-strong:#69b4f6;--card-strong:#247fe0;--card-accent:#1678db}
.admin-home-card-2{--card-top:#dffaf7;--card-bottom:#ccf8f3;--card-border:#96eee8;--card-strong:#08b9a9;--card-accent:#04a89b}
.admin-home-card-3{--card-top:#f0e8ff;--card-bottom:#e8deff;--card-border:#d6baff;--card-strong:#8b56ee;--card-accent:#8050e9}
.admin-home-card-4{--card-top:#fff0d7;--card-bottom:#ffedcd;--card-border:#ffd28d;--card-strong:#ff9712;--card-accent:#ff9712}
.admin-card-number{position:relative;z-index:2;top:auto;right:auto;align-self:flex-start;display:grid;place-items:center;min-width:66px;height:56px;padding:0 13px;border:0;border-radius:18px;background:var(--card-strong);color:#fff;font-size:28px;font-weight:850;line-height:1;letter-spacing:-.02em;margin:0 0 -22px -7px}
.admin-card-icon{position:relative;z-index:1;width:136px;height:136px;flex:0 0 136px;align-self:center;display:grid;place-items:center;border:0;border-radius:50%;background:linear-gradient(145deg,var(--card-strong),var(--card-accent));box-shadow:0 11px 24px rgba(29,113,201,.10);margin:1px 0 22px;color:#fff}
.admin-card-icon svg{width:76px;height:76px;fill:none;stroke:#fff;stroke-width:4.3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.05))}
.admin-home-card h3{position:relative;z-index:1;margin:0 0 11px;width:100%;font-size:clamp(16px,1.35vw,23px);line-height:1.35;letter-spacing:-.025em;color:#0c3b83;font-weight:850}
.admin-card-description{position:relative;z-index:1;margin:0 0 48px;font-size:clamp(12px,.99vw,16px);font-weight:450;line-height:1.7;color:#1d568e}
.admin-home-card-2 h3{color:#0a3e70}.admin-home-card-2 .admin-card-description{color:#1e607b}
.admin-home-card-4 h3{color:#70402d}.admin-home-card-4 .admin-card-description{color:#67566a}
.admin-card-cta{position:absolute;right:23px;bottom:21px;z-index:2;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--card-strong);color:#fff}
.admin-card-cta svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.admin-home-footnote{max-width:900px;margin:19px auto 0;line-height:1.75;color:#7a90a5;font-size:10px;text-align:center}
.admin-home-footnote span{color:#169bdd;margin-right:5px}
body.teacher-mode #teacher .login-card{margin:38px auto;}
body.teacher-mode #teacher #loginPanel{max-width:470px;border-radius:24px;padding:34px;box-shadow:0 15px 40px rgba(25,72,128,.09)}
body.teacher-mode footer{max-width:1450px;margin:20px auto 0}
@media(max-width:1180px){.admin-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-home-card{min-height:355px}.admin-card-icon{width:112px;height:112px;flex-basis:112px}.admin-card-icon svg{width:63px;height:63px}.admin-home-hero{grid-template-columns:minmax(0,1fr) minmax(260px,.6fr)}.admin-home-hero-copy h1{font-size:clamp(36px,5vw,60px)}.admin-home-hero-copy>p{font-size:clamp(13px,1.7vw,20px)}.admin-home-orbit-art{height:285px}}
@media(max-width:760px){body.teacher-mode .topbar{height:auto;min-height:76px;padding:10px 13px;gap:9px}body.teacher-mode .teacher-home-icon{width:45px;height:45px;flex-basis:45px;border-radius:12px}body.teacher-mode .teacher-home-icon svg{width:25px;height:25px}body.teacher-mode .brand{gap:7px}body.teacher-mode .brand-mark{width:43px;height:43px;flex-basis:43px}body.teacher-mode .brand strong{font-size:clamp(20px,4.5vw,30px)}body.teacher-mode .teacher-user-chip{gap:6px;font-size:12px}body.teacher-mode .teacher-user-avatar{width:36px;height:36px}body.teacher-mode .teacher-user-avatar svg{width:23px;height:23px}body.teacher-mode .teacher-user-chevron{width:16px;height:16px}body.teacher-mode main{padding:0 14px}.admin-home-hero{grid-template-columns:1fr;min-height:0;padding:24px 0 6px}.admin-home-brand-art{gap:17px}.admin-hero-main-shield{width:90px}.admin-home-hero-copy h1{font-size:clamp(28px,7vw,42px);white-space:normal}.admin-home-hero-copy>p{font-size:clamp(12px,3.2vw,17px);white-space:normal;margin-bottom:12px}.admin-hero-pills{gap:5px}.admin-hero-pills span{font-size:9px;padding:5px 7px}.admin-home-orbit-art{display:none}.admin-home-heading{margin:19px 0}.admin-home-grid{grid-template-columns:1fr;gap:13px}.admin-home-card{min-height:255px;padding:15px 20px 22px}.admin-card-number{min-width:56px;height:47px;font-size:23px;margin-bottom:-10px;border-radius:15px}.admin-card-icon{width:95px;height:95px;flex-basis:95px;margin-bottom:15px}.admin-card-icon svg{width:55px;height:55px}.admin-home-card h3{font-size:19px}.admin-card-description{font-size:13px;margin-bottom:24px;max-width:95%}.admin-card-cta{right:18px;bottom:16px;width:38px;height:38px}.admin-home-footnote{margin:15px auto 8px}body.teacher-mode footer{padding-top:14px}}
@media(prefers-reduced-motion:reduce){.admin-home-card,.teacher-home-icon{transition:none}.admin-home-card:hover{transform:none}}

/* Match the reference composition: hero followed directly by four navigation tiles. */
.admin-home-grid{margin-top:27px}
.admin-home-hero-copy>p{margin-bottom:0}
@media(max-width:760px){.admin-home-grid{margin-top:14px}}


/* EduMine AI · ALL PAGES UI REFRESH v3 */

/* ======================================================================
   EduMine AI · ALL PAGES UI REFRESH (Local/Desktop edition)
   Shared design language: navy header, cool luminous background, cyan/blue
   focus states, purple AI accents, soft panels and readable data tables.
   Presentation only: does not change survey scoring, data, or API logic.
   ====================================================================== */
:root{
  --ed-navy:#0d3472;
  --ed-navy-deep:#082855;
  --ed-blue:#1679df;
  --ed-cyan:#22bde0;
  --ed-teal:#05b7a8;
  --ed-violet:#8556f4;
  --ed-orange:#ff9b1a;
  --ed-text:#183b66;
  --ed-muted:#617c9c;
  --ed-border:#d4e6f8;
  --ed-panel:rgba(255,255,255,.94);
  --ed-shadow:0 15px 38px rgba(25,77,133,.085);
}
html{scroll-padding-top:112px}
body{
  color:var(--ed-text);
  background:
    radial-gradient(ellipse at 93% 8%,rgba(124,153,255,.14),transparent 28%),
    radial-gradient(ellipse at 8% 38%,rgba(42,191,224,.09),transparent 27%),
    linear-gradient(180deg,#f5faff 0%,#f8fbff 52%,#f2f8ff 100%);
}
body::before{opacity:.17;background-image:radial-gradient(rgba(42,113,185,.27) .65px,transparent .65px);background-size:24px 24px}
.topbar{
  min-height:80px;
  background:linear-gradient(105deg,#0a2d64 0%,#154b8b 57%,#173e82 100%);
  border-bottom:1px solid rgba(113,213,255,.66);
  box-shadow:0 8px 26px rgba(6,40,89,.2);
}
.topbar::after{height:2px;background:linear-gradient(90deg,transparent,#59e1f5 24%,#b5a2ff 68%,transparent)}
.brand{color:#fff}
.brand strong{font-size:clamp(21px,2.2vw,29px);letter-spacing:-.045em;color:#fff}
.brand strong em{background:linear-gradient(95deg,#48dcff,#a58aff);-webkit-background-clip:text;background-clip:text;color:transparent;font-style:normal}
.brand small{color:#d6edff;letter-spacing:.018em;font-size:10px}
.teacher-home-icon{border:1px solid rgba(255,255,255,.18);box-shadow:0 5px 15px rgba(3,19,50,.15)}
.teacher-user-chip{color:#fff}
.teacher-user-avatar{box-shadow:0 5px 15px rgba(2,18,54,.18)}
main{max-width:1500px;margin:30px auto 60px}
.panel,.subpanel,.login-card,.admin-page-nav,.admin-home-card{box-shadow:var(--ed-shadow)}
.panel{border-color:rgba(195,220,245,.86);background:rgba(255,255,255,.94)}
.btn{min-height:43px;border-radius:13px;font-weight:800}
.btn-primary{background:linear-gradient(115deg,#1471d1 0%,#1b91e5 55%,#06b9bb 100%);box-shadow:0 8px 20px rgba(27,126,210,.2)}
.btn-primary:hover:not(:disabled){box-shadow:0 12px 26px rgba(27,126,210,.28)}
.btn-secondary{background:linear-gradient(120deg,#059e9d,#13c4b1)}
.btn-outline{border-color:#c7dcf0;color:#214d7e;background:rgba(255,255,255,.95)}
.btn-outline:hover:not(:disabled){background:#eff8ff;border-color:#72b9ef}
.btn-danger,.btn-danger-outline{border-radius:12px}
.eyebrow{color:#207ac0;letter-spacing:.13em}
.muted{color:var(--ed-muted)}

/* 00 · Student landing screen */
.welcome-grid{gap:24px;align-items:stretch}
.hero-copy{
  border:1px solid rgba(95,173,239,.45);border-radius:30px;
  background:radial-gradient(circle at 88% 13%,rgba(62,205,237,.22),transparent 28%),radial-gradient(circle at 7% 93%,rgba(112,98,240,.21),transparent 39%),linear-gradient(140deg,#0b2c62 0%,#12508f 56%,#08788b 100%);
  box-shadow:0 22px 54px rgba(11,57,111,.17);
}
.hero-copy h1{font-size:clamp(48px,6vw,78px)}
.hero-copy .lead{font-size:clamp(14px,1.15vw,16px)}
.feature-row div{border-left-color:rgba(122,219,255,.55)}
.privacy-banner{backdrop-filter:blur(12px)}
.start-card{
  border:1px solid #cfe4f8;border-radius:30px;
  background:radial-gradient(circle at 100% 0,rgba(125,107,246,.09),transparent 31%),linear-gradient(155deg,#fff 0%,#fbfdff 60%,#eefaff 100%);
  box-shadow:0 18px 45px rgba(27,86,143,.10);
}
.start-card::before{height:4px;left:28px;right:28px;background:linear-gradient(90deg,#1689e4,#10c7c6,#8e69f6,#ffb044)}
.start-card h2{color:#103b7c;font-size:clamp(25px,2.5vw,32px)}
.start-card form{position:relative;z-index:1}
.start-card label{margin-bottom:14px;line-height:1.45}
.start-card input,.start-card select{border-radius:13px;min-height:47px;border-color:#c4ddef}
.start-card .field-note{padding:0 2px}
.start-card .consent{background:linear-gradient(110deg,#eff8ff,#effcf9);border-color:#cfe9f2;font-size:10.5px}
.start-card .btn-wide{min-height:50px;font-size:14px;letter-spacing:.01em}
#startError:empty{display:none}

/* 01 · Survey questions, video situations and progress */
.activity-panel{border:1px solid #d1e5f7;border-radius:28px;background:linear-gradient(160deg,rgba(255,255,255,.99),rgba(248,252,255,.98));box-shadow:0 20px 54px rgba(25,76,132,.11)}
.activity-top{align-items:flex-start;gap:20px;padding-bottom:20px;border-bottom:1px solid #e3eff9}
.activity-top>div{min-width:0}
.activity-top .eyebrow{padding:6px 10px;border-radius:999px;background:#eaf6ff;border:1px solid #d5eaff}
.activity-panel h2{color:#103b79;line-height:1.22}
#exitActivity{flex-shrink:0}
.progress-meta{font-size:12px;color:#52749b;margin-top:20px}
.progress-track{height:11px;background:#e8f2fc;border:1px solid #d9eafa;margin-bottom:28px}
.progress-track>div{background:linear-gradient(90deg,#11b8b2,#1687df 58%,#865cf1);box-shadow:0 2px 10px rgba(35,144,210,.16)}
.question-layout{padding:18px 19px;border:1px solid #dbeafa;border-radius:20px;background:linear-gradient(120deg,#f3f9ff,#f6fffd);margin-bottom:22px}
.question-symbol,.scenario-symbol{border-radius:18px;color:#1677c5}
.question-copy h3,.scenario-banner h3{color:#123f7d}
.question-copy .muted{line-height:1.75}
.choice-grid{gap:13px}
.choice{min-height:66px;border:1px solid #d6e6f6;border-radius:15px;background:#fff;font-size:13px;box-shadow:0 4px 12px rgba(25,75,130,.025)}
.choice:hover{transform:translateY(-1px);border-color:#8bc9f2;background:#f5fbff}
.choice.selected{border-color:#238cdd;background:linear-gradient(110deg,#eaf6ff,#effcfb);box-shadow:0 0 0 2px rgba(35,140,221,.12)}
.scenario-banner{padding:16px 18px;border:1px solid #dceafa;border-radius:20px;background:linear-gradient(110deg,#f1f9ff,#f5f3ff 58%,#effdfb)}
.scenario-video-card{margin:15px 0 18px;padding:14px;border:1px solid #d3e7f8;border-radius:21px;background:linear-gradient(145deg,#f0f8ff,#f3fbff 58%,#f4f1ff);box-shadow:0 8px 22px rgba(25,76,132,.06)}
.scenario-video{max-height:540px;width:100%;object-fit:contain;background:#08244d;border:1px solid #c7dff3;border-radius:16px}
.video-caption{display:flex;align-items:flex-start;gap:10px;padding:12px 4px 3px;line-height:1.65}
.video-caption-icon{display:grid;place-items:center;min-width:32px;height:32px;border-radius:10px;background:#dcedff;color:#0e6dbb}
.scenario-summary{border:1px solid #d9e8f7;border-radius:15px;background:#f9fcff;padding:0 14px}
.scenario-summary summary{padding:14px 0;color:#1d5d98;font-weight:800;cursor:pointer}
.scenario-prompt{font-size:clamp(18px,2vw,23px);line-height:1.45;margin-top:24px}
.scenario-choice{min-height:57px;line-height:1.6;border-radius:15px;border-color:#d7e7f5}
.scenario-choice:hover{transform:translateY(-1px)}
.feedback-box{padding:15px 17px;font-size:13px}
.activity-footer{align-items:center;padding-top:19px;border-top:1px solid #e0edf8}
.footer-reminder{max-width:480px;line-height:1.7}
.activity-actions{flex-shrink:0}

/* 02 · Completion screen */
.complete-panel{border:1px solid #cde5f7;border-radius:30px;box-shadow:0 22px 60px rgba(19,72,128,.12)}
.complete-hero{padding:clamp(36px,6vw,74px) 28px;background:radial-gradient(circle at 50% 0,rgba(43,200,229,.17),transparent 38%),radial-gradient(circle at 100% 100%,rgba(125,98,241,.11),transparent 38%),linear-gradient(150deg,#fff,#f5fbff)}
.complete-emoji{width:90px;height:90px;border-radius:28px;background:linear-gradient(140deg,#def8ff,#edf0ff 55%,#e5fff5);font-size:49px;box-shadow:0 9px 22px rgba(34,138,209,.1)}
.complete-hero h2{color:#103b7b}
.complete-hero>p{line-height:1.8}
.score-badge{box-shadow:0 7px 22px rgba(12,157,163,.08)}
.score-badge strong{font-size:37px;background:linear-gradient(90deg,#088ecb,#06b5a5);-webkit-background-clip:text;background-clip:text;color:transparent}

/* 03 · Teacher login */
body.teacher-mode #teacher{background:transparent;box-shadow:none;border:0}
body.teacher-mode #teacher #loginPanel{position:relative;overflow:hidden;max-width:490px;padding:clamp(25px,4vw,40px);border:1px solid #cfe3f7;border-radius:28px;background:radial-gradient(circle at 100% 0,rgba(139,104,244,.1),transparent 32%),linear-gradient(150deg,#fff,#f2f9ff);box-shadow:0 22px 54px rgba(18,67,123,.12)}
body.teacher-mode #loginPanel::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#147edf,#13bdb3,#8c69f6)}
.login-icon{box-shadow:0 7px 18px rgba(28,122,199,.08)}
.login-card h2{color:#103b79}
#loginForm input{min-height:49px}
#teacherBack{width:100%;margin-top:12px}

/* 04 · Teacher dashboard header and navigation */
body.teacher-mode main{max-width:1600px;margin:24px auto 44px}
body.teacher-mode #teacher{padding:0 0 8px}
body.teacher-mode #dashboard{width:100%}
.dashboard-yearbar{position:relative;overflow:hidden;border-radius:20px;border-color:#cde4f6;background:linear-gradient(110deg,#edf7ff,#f0fbfa 52%,#f5f1ff);padding:17px 20px}
.dashboard-yearbar::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#1588e2,#09b9b4,#9165ef)}
.dash-title{padding:11px 3px 19px;border-bottom:1px solid #d9e9f8;margin-bottom:20px}
.dash-title h2{font-size:clamp(26px,2.7vw,36px);color:#103b79}
.dash-title-actions{gap:9px}
.admin-page-nav{position:relative;overflow:hidden;gap:15px;border:1px solid #d4e6f7;border-radius:19px;background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(20,74,128,.065);padding:14px 16px}
.admin-page-nav::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#167ce0,#11bdb9,#8b62f0)}
.admin-home-back{width:48px;height:48px;min-width:48px;border-radius:14px;background:linear-gradient(145deg,#e3f1ff,#f2f7ff);border-color:#cfe4f8}
.admin-page-nav-current strong{color:#103b79}
.admin-page-shortcut{border-radius:11px;background:#f6faff;border-color:#d5e5f5;color:#426588;font-weight:750}
.admin-page-shortcut:hover,.admin-page-shortcut.active{background:linear-gradient(120deg,#e9f5ff,#f1fffd);border-color:#75b9ef;color:#0f5e9c;box-shadow:0 4px 12px rgba(26,122,193,.08)}
.admin-page-shortcut.active{position:relative}
.admin-page-shortcut.active::after{content:"";height:3px;position:absolute;left:9px;right:9px;bottom:-1px;border-radius:10px;background:linear-gradient(90deg,#187fe0,#06b7b4)}

/* 05 · All four administrative pages */
.admin-content-page{padding:0 1px 14px;animation:adminPageIn .24s ease both}
.admin-page-heading{
  position:relative;overflow:hidden;margin:7px 0 24px;padding:22px 24px 23px 27px;
  border:1px solid #d6e8f8;border-radius:22px;border-bottom:1px solid #d6e8f8;
  background:radial-gradient(circle at 100% 0,rgba(128,109,246,.10),transparent 30%),linear-gradient(105deg,#fff 0%,#f4faff 64%,#f8f6ff 100%);
  box-shadow:0 9px 24px rgba(24,75,130,.045);
}
.admin-page-heading::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(#1888e1,#0cb9b3,#8d65f4)}
.admin-page-heading .eyebrow{padding:6px 10px;border:1px solid #d4eafa;border-radius:999px;background:#eef8ff}
.admin-page-heading h2{margin:10px 0 7px;color:#103b79;font-size:clamp(25px,2.6vw,36px);line-height:1.18}
.admin-page-heading p{max-width:950px;color:#5c7797;font-size:13px;line-height:1.75}
.admin-content-page>.section-heading:first-of-type{margin-top:26px}
.admin-content-page .section-heading{align-items:flex-end;margin:32px 0 15px;padding-bottom:9px;border-bottom:1px solid #e0edf8}
.admin-content-page .section-heading>div{min-width:0}
.admin-content-page .section-heading .eyebrow{font-size:10px}
.admin-content-page .section-heading h3{margin:5px 0 0;font-size:clamp(18px,1.7vw,23px);line-height:1.35;color:#113d79}
.section-caption{border:1px solid #dbeafa;border-radius:999px;padding:6px 10px;background:#f7fbff;color:#5c789a;font-size:10px;font-weight:750;white-space:normal}
.admin-content-page .notice{border-radius:16px;background:linear-gradient(100deg,#eef8ff,#f0fcfb);border-color:#cde8f4;box-shadow:0 6px 16px rgba(20,90,146,.035)}
.admin-content-page .dashboard-disclaimer{border-radius:15px;background:linear-gradient(110deg,#f5faff,#f8f7ff);border-color:#dce9f7;line-height:1.8}
.stat-grid{gap:15px}
.stat-card{min-height:140px;border-radius:20px;border-color:#d7e7f6;box-shadow:0 8px 22px rgba(23,69,115,.055);transition:transform .18s ease,box-shadow .18s ease}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(23,69,115,.09)}
.stat-card:nth-child(1){background:linear-gradient(145deg,#fff,#eff7ff);border-color:#c5e1fa}
.stat-card:nth-child(1) .stat-icon{background:#e0f0ff;border-color:#cae4fc;color:#1478d2}
.stat-card:nth-child(2){background:linear-gradient(145deg,#fff,#f5f0ff);border-color:#dfd4fa}
.stat-card:nth-child(2) .stat-icon{background:#eee7ff;border-color:#ddd1fc}
.stat-card:nth-child(3){background:linear-gradient(145deg,#fff,#eefdFA);border-color:#c5eee8}
.stat-card:nth-child(3) .stat-icon{background:#dffaf5;border-color:#c6f0e9}
.stat-card:nth-child(4){background:linear-gradient(145deg,#fff,#fff5e8);border-color:#f7dfb6}
.stat-card:nth-child(4) .stat-icon{background:#ffefd2;border-color:#fbe0ae}
.stat-card strong{font-variant-numeric:tabular-nums;color:#123f7c}
.subpanel{border:1px solid #d5e6f6;border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(25,76,130,.045);padding:21px}
.subpanel h3{color:#143e77;line-height:1.45}
.dash-tools{padding:14px;border:1px solid #d8e8f7;border-radius:17px;background:linear-gradient(110deg,#f5faff,#f4fbff);gap:9px}
.dash-tools .btn{min-height:40px}
#passwordBox,#deleteBox{background:linear-gradient(145deg,#fff,#f5faff)}
.class-participation-panel,.recent-surveys-panel,.prepost-panel,.intervention-panel{border-color:#d4e6f7}
.table-heading{align-items:flex-start}
.table-heading>div{min-width:0}
.count-pill{border-radius:999px;background:#edf7ff;border:1px solid #d5eafb;color:#1e70b5;padding:6px 10px;font-size:10px;font-weight:850;white-space:nowrap}
.table-wrap,.recent-surveys-panel .recent-scroll,.recent-scroll,.grouped-scroll-viewport{border:1px solid #d3e5f5;border-radius:14px;background:#fff;scrollbar-color:#b6d8f3 #f1f7fc;scrollbar-width:thin}
.table-wrap{overflow:auto}
.table-wrap table,.recent-scroll table{width:100%;border-collapse:separate;border-spacing:0}
.table-wrap th,.recent-scroll th,.group-detail-table th{position:sticky;top:0;z-index:2;background:linear-gradient(180deg,#eaf5ff,#e9f3fc);color:#294e78;border-bottom:1px solid #d5e6f4;font-size:11px;font-weight:850;line-height:1.5;white-space:nowrap}
.table-wrap td,.recent-scroll td{font-size:11.5px;line-height:1.55;color:#3e5d7c;border-bottom:1px solid #e8f0f8;vertical-align:top}
tbody tr:nth-child(even) td{background:#f9fcff}
tbody tr:hover td{background:#edf7ff}
.table-wrap th:first-child,.table-wrap td:first-child{padding-left:14px}
.table-wrap th:last-child,.table-wrap td:last-child{padding-right:14px}
.group-table-section{border-radius:20px;overflow:hidden;border:1px solid #d8e8f7;background:#fff;box-shadow:0 7px 20px rgba(25,76,130,.035);margin:17px 0}
.group-table-title{padding:16px 19px;background:linear-gradient(100deg,#f2f8ff,#fff 67%);border-bottom:1px solid #e0edf8}
.group-table-title h4{color:#153e78}
.group-table-title p{color:#6b82a0;line-height:1.7}
.group-table-count{border-radius:999px;padding:6px 10px;background:#fff;border:1px solid #d6e7f6;color:#486a8d;font-weight:800}
.group-high-section{border-top:4px solid #f09a83}
.group-guidance-section{border-top:4px solid #f2c35d}
.group-positive-section{border-top:4px solid #36c4a3}
.group-high-section .group-table-title{background:linear-gradient(100deg,#fff5f1,#fff)}
.group-guidance-section .group-table-title{background:linear-gradient(100deg,#fff9eb,#fff)}
.group-positive-section .group-table-title{background:linear-gradient(100deg,#effcf8,#fff)}

/* 06 · Charts, analytics, data mining and AI suggestion panels */
.chart-panel{background:linear-gradient(150deg,#fff,#f7fbff)}
.chart-panel h3{padding-bottom:10px;border-bottom:1px solid #e5eff8}
.bar-chart,.scenario-stats,.answer-chart-list{min-width:0}
.bar-line{border-radius:9px}
.bar-track{border-radius:999px;background:#edf4fb}
.bar-fill{border-radius:999px;background:linear-gradient(90deg,#1a8ce2,#12bdb4)}
.scenario-stat-card,.scenario-chart-card,.answer-chart-card,.answer-distribution-card{border:1px solid #d9e8f7;border-radius:18px;background:linear-gradient(150deg,#fff,#f7fbff);box-shadow:0 6px 18px rgba(23,74,125,.04)}
.scenario-stat-card:nth-child(4n+1),.scenario-chart-card:nth-child(4n+1){border-top:3px solid #238ae0}
.scenario-stat-card:nth-child(4n+2),.scenario-chart-card:nth-child(4n+2){border-top:3px solid #09b6a8}
.scenario-stat-card:nth-child(4n+3),.scenario-chart-card:nth-child(4n+3){border-top:3px solid #8b61ed}
.scenario-stat-card:nth-child(4n),.scenario-chart-card:nth-child(4n){border-top:3px solid #ffad38}
.answer-chart-card h4,.answer-distribution-card h4{color:#164176}
.pie-chart-content{gap:18px}
.pie-legend-row{padding:5px 0;border-bottom:1px solid #edf3fa}
.cluster-grid{gap:15px}
.cluster-card{border:1px solid #dae8f6;border-radius:21px;background:linear-gradient(145deg,#fff,#f6fbff);box-shadow:0 8px 23px rgba(22,70,120,.05)}
.cluster-card.group-positive{border-top:4px solid #20b998;background:linear-gradient(145deg,#fff,#f0fcf8)}
.cluster-card.group-guidance{border-top:4px solid #efb63d;background:linear-gradient(145deg,#fff,#fffbef)}
.cluster-card.group-high{border-top:4px solid #eb826f;background:linear-gradient(145deg,#fff,#fff5f3)}
.ai-direction-grid{gap:14px}
.ai-direction-card{border:1px solid #d9e7f7;border-radius:19px;box-shadow:0 7px 20px rgba(22,69,119,.045);background:linear-gradient(145deg,#fff,#f5faff)}
.ai-direction-card:nth-child(3n+2){background:linear-gradient(145deg,#fff,#f4f0ff)}
.ai-direction-card:nth-child(3n){background:linear-gradient(145deg,#fff,#effbf9)}
.ai-direction-icon{box-shadow:0 6px 16px rgba(25,101,171,.06)}
.ai-gen-intro{border:1px solid #d7e6f7;background:radial-gradient(circle at 100% 0,rgba(135,102,241,.12),transparent 32%),linear-gradient(115deg,#eff8ff,#f5f2ff 58%,#edfcfa)}
.ai-gen-flow-step{border:1px solid #dce8f7;background:rgba(255,255,255,.85)}
.ai-gen-prompt-builder{border:1px solid #d6e7f7;background:linear-gradient(145deg,#fff,#f6fbff)}
.ai-gen-prompt-builder textarea,.ai-gen-result-panel textarea{font-size:12px;line-height:1.75;border-color:#cfe0f0;background:#fff}
.ai-gen-privacy-confirm{background:linear-gradient(110deg,#effbf5,#eff9ff);border-color:#ccebdd}
.ai-gen-result-panel{border:1px solid #d7e5f4;background:linear-gradient(145deg,#fff,#f4f9ff)}
.ai-gen-safety-note{border:1px solid #ccebe0;border-radius:17px;background:linear-gradient(110deg,#effbf6,#f2faff);padding:15px 17px;line-height:1.75}

/* 07 · Pre/post impact page */
.prepost-panel{background:linear-gradient(145deg,#fff,#f8fbff)}
.prepost-summary{gap:12px}
.prepost-metric,.prepost-summary>div{border:1px solid #d8e8f7;border-radius:16px;background:linear-gradient(145deg,#fff,#f4faff);box-shadow:0 5px 15px rgba(24,74,125,.035)}
.prepost-comparison-grid{gap:15px}
.prepost-comparison-card{border:1px solid #d5e7f7;border-radius:20px;background:linear-gradient(145deg,#fff,#f7fbff);box-shadow:0 7px 20px rgba(22,70,120,.04)}
.prepost-comparison-card:nth-child(2){background:linear-gradient(145deg,#fff,#f7f3ff)}
.prepost-explanation{padding:14px 17px;border:1px solid #d8e9f7;border-radius:15px;background:linear-gradient(100deg,#eef8ff,#f3fbfa);color:#45678a;line-height:1.8}
.prepost-compare-chart{min-height:160px}
.percentage-chart-list{gap:12px}
.percentage-chart-item,.percentage-chart-row{border:1px solid #dce9f6;border-radius:15px;background:#fff}

/* 08 · Footer, accessibility and consistency */
.site-footer{max-width:1500px;color:#647f9e}
.footer-top{border-top:1px solid #d8e8f7;padding-top:18px}
.site-footer .footer-brand-matched{background:rgba(255,255,255,.65);border:1px solid #dceafa}
.teacher-info{border:1px solid #d9e8f7;border-radius:18px;background:rgba(255,255,255,.72)}
.teacher-info h2{color:#164177}
.teacher-info-grid a{color:#1878c7}
:focus-visible{outline:3px solid rgba(23,140,227,.62);outline-offset:3px}
button,select,input,textarea{accent-color:#147fce}
::selection{background:#c5efff;color:#0a3472}

/* Desktop-first for the computer-based workflow; graceful tablet/mobile fallback. */
@media(max-width:1180px){
  body.teacher-mode main{padding-inline:22px}
  .admin-home-grid{gap:18px}
  .admin-home-card{min-height:385px}
  .admin-home-hero{min-height:340px}
  .admin-home-orbit-art{height:275px}
}
@media(max-width:900px){
  .topbar{padding-inline:20px}
  main{margin-top:22px}
  .admin-page-heading{padding:20px 20px 20px 24px}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-home-card{min-height:345px}
  .activity-panel{padding:24px}
  .teacher-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .topbar{padding:9px 12px;min-height:69px}
  .brand{gap:7px;padding-inline:2px}
  .brand-mark{width:39px;height:39px;flex-basis:39px}
  .brand strong{font-size:18px}
  .brand small{font-size:8px;max-width:200px;white-space:normal}
  .top-actions{gap:5px}
  .top-actions .btn{padding:8px 10px;font-size:10px}
  main{padding:0 12px;margin:16px auto 32px}
  .welcome-grid{grid-template-columns:1fr;gap:15px}
  .hero-copy{padding:27px 21px;border-radius:23px}
  .hero-copy h1{font-size:clamp(43px,11.8vw,59px)}
  .feature-row{gap:10px}
  .feature-row span{font-size:9px}
  .start-card{padding:24px 18px;border-radius:23px}
  .activity-panel,.teacher-panel{padding:16px;border-radius:20px}
  .activity-top{flex-direction:column;align-items:stretch;gap:10px}
  #exitActivity{align-self:flex-end}
  .question-layout{padding:12px;gap:10px}
  .choice-grid{grid-template-columns:1fr}
  .choice{min-height:55px;padding:12px}
  .scenario-banner{align-items:flex-start;padding:12px;gap:10px}
  .scenario-video-card{padding:8px;border-radius:15px}
  .scenario-video{max-height:none}
  .activity-footer{align-items:stretch;flex-direction:column;gap:12px}
  .activity-actions{width:100%}
  .activity-actions .btn{flex:1}
  .admin-page-nav{grid-template-columns:auto minmax(0,1fr);padding:12px;gap:9px}
  .admin-page-shortcuts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .admin-page-shortcut{white-space:normal;line-height:1.4;text-align:left}
  .admin-page-heading{padding:17px 14px 17px 19px;border-radius:17px}
  .admin-page-heading h2{font-size:24px}
  .admin-content-page .section-heading{align-items:flex-start;flex-direction:column;gap:7px;margin-top:24px}
  .section-caption{border-radius:10px}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat-card{padding:12px;min-height:120px;border-radius:15px}
  .stat-card strong{font-size:24px}
  .subpanel{padding:13px;border-radius:16px}
  .dash-title{flex-direction:column;align-items:stretch}
  .dash-title-actions{width:100%}
  .dash-title-actions .btn{flex:1}
  .admin-home-grid{grid-template-columns:1fr}
  .admin-home-card{min-height:255px}
  .table-heading{flex-direction:column}
  .group-table-title{padding:13px}
  .prepost-comparison-grid{grid-template-columns:1fr}
  .teacher-info-grid{grid-template-columns:1fr}
  .footer-top{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  .stat-card:hover,.choice:hover,.scenario-choice:hover{transform:none}
}


/* FIX v3.1 — keep dashboard card text readable; CTA labels become arrow-only */
.admin-home-card{padding-bottom:82px!important}
.admin-card-features{
  position:relative;
  z-index:1;
  max-width:100%;
  padding-right:58px;
  margin-bottom:48px;
  overflow-wrap:anywhere;
}
.admin-card-cta{
  position:absolute!important;
  right:18px!important;
  bottom:16px!important;
  z-index:3!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:var(--card-strong,#247fe0)!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  box-shadow:0 4px 12px rgba(19,78,143,.12);
}
.admin-card-cta::before{
  content:"→";
  display:block;
  color:#fff;
  font-family:Arial,sans-serif;
  font-size:26px;
  font-weight:800;
  line-height:1;
}
.admin-card-cta svg{display:none!important}
@media(max-width:760px){
  .admin-home-card{padding-bottom:68px!important}
  .admin-card-features{padding-right:48px;margin-bottom:38px}
  .admin-card-cta{right:16px!important;bottom:14px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important}
  .admin-card-cta::before{font-size:23px}
}
