.portal-layout{grid-template-columns:174px minmax(0,960px);max-width:1160px}.portal-shell{min-width:0;padding:28px;border:1px solid #e2e4e7;border-radius:22px;background:#f6f6f4;color:#121212}.portal-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:31px;border-radius:20px;background:#111;color:#fff}.portal-kicker,.portal-card-heading span,.portal-parent-note>span{display:block;margin-bottom:7px;color:#d9d9d9;font-size:11px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase}.portal-hero h1{margin:0 0 9px;font-size:clamp(30px,4.2vw,50px);line-height:1;letter-spacing:-1.9px}.portal-hero p{max-width:570px;margin:0;color:#c8c8c8;font-size:15px;line-height:1.5}.portal-code-card{display:grid;flex:0 0 205px;gap:7px;padding:16px;border:1px solid #3b3b3b;border-radius:14px;background:#202020}.portal-code-card span{color:#aaa;font-size:10px;font-weight:800;text-transform:uppercase}.portal-code-card strong{font-size:25px;letter-spacing:3px}.portal-code-card button,.portal-card-heading>button{padding:0;border:0;background:transparent;color:#fff;text-align:left;text-decoration:underline;font-size:11px;font-weight:800}.portal-view-switch{display:inline-flex;gap:4px;margin:18px 0;padding:4px;border:1px solid #dedede;border-radius:999px;background:#fff}.portal-view-switch button{padding:9px 16px;border:0;border-radius:999px;background:transparent;color:#626262;font-size:12px;font-weight:900}.portal-view-switch button.active{background:#111;color:#fff}.portal-view-switch button:disabled{opacity:.45}.portal-alert{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 16px;padding:13px 15px;border:1px solid #efc3c8;border-radius:12px;background:#fff0f2;color:#8f1525;font-size:13px;font-weight:700}.portal-alert button{border:0;background:transparent;color:inherit;text-decoration:underline;font-weight:900}.portal-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.portal-stat-grid article{display:grid;gap:3px;padding:17px;border:1px solid #e2e2df;border-radius:15px;background:#fff}.portal-stat-grid span{color:#686868;font-size:11px;font-weight:800}.portal-stat-grid strong{font-size:28px;letter-spacing:-1px}.portal-stat-grid small{color:#888;font-size:10px}.portal-card{margin-bottom:18px;padding:22px;border:1px solid #e1e1de;border-radius:18px;background:#fff}.portal-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.portal-card-heading span,.portal-parent-note>span{color:#a70f28}.portal-card-heading h2,.portal-parent-note h2{margin:0;font-size:23px;line-height:1.1;letter-spacing:-.6px}.portal-card-heading>i{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#111;color:#fff;font-size:22px;font-style:normal}.portal-card-heading>b{font-size:31px}.portal-card-heading>button{color:#111}.portal-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.portal-task-grid button{display:grid;min-height:165px;padding:16px;border:1px solid #dededb;border-radius:14px;background:#f8f8f6;color:#111;text-align:left}.portal-task-grid i{display:grid;width:31px;height:31px;place-items:center;margin-bottom:16px;border-radius:50%;background:#111;color:#fff;font-size:10px;font-style:normal;font-weight:900}.portal-task-grid strong{font-size:15px}.portal-task-grid small{margin:5px 0 13px;color:#777;line-height:1.4}.portal-task-grid b{align-self:end;color:#a70f28;font-size:12px}.portal-parent-note{background:linear-gradient(135deg,#fff 0%,#f7f2f3 100%)}.portal-parent-note>p{max-width:660px;margin:9px 0 19px;color:#666;font-size:14px;line-height:1.5}.portal-parent-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.portal-parent-points>div{display:grid;gap:4px;padding:14px;border:1px solid #e6dfe0;border-radius:12px;background:rgba(255,255,255,.75)}.portal-parent-points b{font-size:13px}.portal-parent-points small{color:#777;font-size:11px;line-height:1.4}.portal-two-column{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:18px;align-items:start}.portal-two-column>.portal-card,.portal-two-column>div>.portal-card{margin-bottom:18px}.portal-progress-list{display:grid;gap:14px}.portal-progress-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(90px,1.35fr) 40px;align-items:center;gap:12px}.portal-progress-row>div:first-child{display:grid;gap:2px}.portal-progress-row strong{font-size:12px}.portal-progress-row span{color:#898989;font-size:10px}.portal-progress-track{height:7px;overflow:hidden;border-radius:999px;background:#ececea}.portal-progress-track i{display:block;height:100%;border-radius:inherit;background:#111}.portal-progress-row>b{text-align:right;font-size:11px}.portal-upload-card{scroll-margin-top:86px}.portal-upload-card form{display:grid;gap:13px}.portal-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.portal-form-grid label{display:grid;gap:6px;color:#3a3a3a;font-size:11px;font-weight:900}.portal-form-grid label small{font-weight:600}.portal-form-wide{grid-column:1/-1}.portal-form-grid input,.portal-form-grid select,.portal-form-grid textarea{width:100%;padding:11px;border:1px solid #d2d2cf;border-radius:9px;background:#fff;color:#111;font:inherit;font-size:13px;outline:none}.portal-form-grid input:focus,.portal-form-grid select:focus,.portal-form-grid textarea:focus{border-color:#111;box-shadow:0 0 0 3px rgba(0,0,0,.06)}.portal-form-grid textarea{min-height:82px;resize:vertical}.portal-mark-fields{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:7px}.portal-file-field{position:relative;min-height:86px;place-items:center;border:1px dashed #a9a9a4;border-radius:12px;background:#f8f8f6;text-align:center;cursor:pointer}.portal-file-field input{position:absolute;inset:0;opacity:0;cursor:pointer}.portal-file-field span{display:grid;gap:4px;pointer-events:none}.portal-file-field b{font-size:13px}.portal-file-field small{color:#777}.portal-primary{min-height:48px;border:0;border-radius:10px;background:#111;color:#fff;font-size:13px;font-weight:900}.portal-primary:disabled{opacity:.5}.portal-activity{position:sticky;top:82px;margin:0}.portal-activity-list{display:grid}.portal-activity-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #ededeb}.portal-activity-item:last-child{border-bottom:0}.portal-file-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:8px;background:#111;color:#fff;font-size:9px;font-weight:900}.portal-activity-item>div:nth-child(2){display:grid;gap:3px;min-width:0}.portal-activity-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.portal-activity-item small,.portal-activity-item time{overflow:hidden;color:#777;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.portal-activity-result{display:grid;justify-items:end;gap:5px}.portal-activity-result strong{font-size:10px}.portal-activity-result button{padding:5px 9px;border:1px solid #d2d2cf;border-radius:7px;background:#fff;color:#111;font-size:9px;font-weight:900}.portal-empty{display:grid;gap:5px;padding:28px 10px;color:#777;text-align:center;font-size:12px}.portal-empty b{color:#111;font-size:14px}.portal-file-modal{padding:34px}.portal-file-modal iframe{width:min(1000px,100%);height:min(84vh,900px);border:0;border-radius:8px;background:#fff}.teacher-portal-upload{background:#fffafb}
@media(max-width:1000px){.portal-layout{grid-template-columns:68px minmax(0,1fr)}.portal-shell{padding:20px}.portal-two-column{grid-template-columns:1fr}.portal-activity{position:static}.portal-stat-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.portal-layout{display:grid;grid-template-columns:52px minmax(0,1fr);gap:5px}.portal-layout.home-nav-hidden{grid-template-columns:0 minmax(0,1fr)}.portal-shell{padding:10px;border-radius:15px}.portal-hero{display:grid;gap:18px;padding:22px 18px}.portal-hero h1{font-size:33px}.portal-code-card{width:100%;flex-basis:auto}.portal-view-switch{display:flex;width:100%}.portal-view-switch button{flex:1;padding:9px 7px}.portal-stat-grid{grid-template-columns:1fr 1fr;gap:7px}.portal-stat-grid article{padding:13px}.portal-stat-grid strong{font-size:23px}.portal-card{padding:16px;border-radius:14px}.portal-card-heading h2,.portal-parent-note h2{font-size:20px}.portal-task-grid,.portal-parent-points{grid-template-columns:1fr}.portal-task-grid button{min-height:130px}.portal-task-grid i{margin-bottom:10px}.portal-form-grid{grid-template-columns:1fr}.portal-form-wide{grid-column:auto}.portal-progress-row{grid-template-columns:minmax(95px,1fr) minmax(66px,1fr) 32px;gap:7px}.portal-activity-item{grid-template-columns:34px minmax(0,1fr)}.portal-activity-result{grid-column:2;grid-template-columns:1fr auto;justify-items:start;align-items:center;width:100%}.portal-file-modal{padding:18px 8px}.portal-file-modal iframe{height:88vh}}

/* Learner performance stays on the left; the wide weekly evidence calendar sits on the right. */
.portal-layout{grid-template-columns:174px minmax(0,1420px);max-width:1615px}.portal-dashboard-split{display:grid;grid-template-columns:minmax(390px,.8fr) minmax(720px,1.45fr);gap:18px;align-items:start}.portal-dashboard-main{min-width:0}.portal-dashboard-main .portal-stat-grid{grid-template-columns:1fr 1fr}.portal-dashboard-main .portal-task-grid,.portal-dashboard-main .portal-parent-points{grid-template-columns:1fr}.portal-dashboard-main .portal-two-column{grid-template-columns:1fr}.portal-dashboard-main .portal-activity{position:static}.weekly-calendar{position:sticky;top:82px;margin:0;padding:20px;min-width:0}.weekly-calendar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:3px 2px 17px;border-bottom:1px solid #e9e9e6}.weekly-calendar-heading>div:first-child>span{color:#a70f28;font-size:10px;font-weight:900;letter-spacing:1.2px;text-transform:uppercase}.weekly-calendar-heading h2{margin:5px 0 2px;font-size:28px;letter-spacing:-.8px}.weekly-calendar-heading p{margin:0;color:#777;font-size:11px;font-weight:700}.weekly-calendar-heading>div:last-child{display:grid;gap:3px;padding:10px 12px;border-radius:10px;background:#111;color:#fff;text-align:right}.weekly-calendar-heading>div:last-child b{font-size:11px}.weekly-calendar-heading>div:last-child small{color:#cfcfcf;font-size:9px}.weekly-days{display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));gap:8px;overflow-x:auto;padding:16px 1px 18px;scrollbar-width:thin}.weekly-day{display:flex;min-height:190px;flex-direction:column;padding:12px;border:1px solid #dfdfdc;border-radius:14px;background:#fafaf8}.weekly-day>header{display:grid;grid-template-columns:1fr auto;align-items:start;gap:0}.weekly-day>header span{color:#767676;font-size:11px;font-weight:900;text-transform:uppercase}.weekly-day>header strong{grid-row:1/3;grid-column:2;font-size:38px;line-height:.9;letter-spacing:-1.7px}.weekly-day>header small{color:#888;font-size:10px;font-weight:800;text-transform:uppercase}.weekly-plan{margin-top:13px;color:#777;font-size:9px;text-transform:uppercase}.weekly-day>em{margin-top:3px;color:#a70f28;font-size:8px;font-style:normal;font-weight:900;text-transform:uppercase}.weekly-subject-actions{display:grid;gap:6px;margin-top:auto}.weekly-subject-actions button{min-height:36px;padding:7px;border:1px solid #d4d4d0;border-radius:8px;background:#fff;color:#111;font-size:9px;font-weight:900}.weekly-subject-actions button.active{border-color:#a70f28;background:#a70f28;color:#fff}.weekly-day.is-today{border-color:#111;box-shadow:0 0 0 2px #111}.weekly-day.is-highlighted{border-color:#e3aebb;background:#fff0f3}.weekly-day.is-mini-test{border-color:#111;background:#111;color:#fff}.weekly-day.is-mini-test>header span,.weekly-day.is-mini-test>header small,.weekly-day.is-mini-test .weekly-plan{color:#d0d0d0}.weekly-day.is-mini-test>em{color:#ff9caf}.weekly-day.is-mini-test .weekly-subject-actions button{border-color:#4c4c4c;background:#232323;color:#fff}.weekly-day.is-mini-test .weekly-subject-actions button.active{border-color:#ff8ca2;background:#ff8ca2;color:#111}.weekly-work-empty{display:grid;gap:5px;padding:24px;border:1px dashed #cbc8c5;border-radius:14px;background:#fafaf8;text-align:center}.weekly-work-empty b{font-size:13px}.weekly-work-empty span{color:#777;font-size:11px}.weekly-work-detail{display:grid;gap:16px;padding:18px;border:1px solid #dededb;border-radius:16px;background:#f7f7f5}.weekly-work-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.weekly-work-detail>header span{color:#a70f28;font-size:10px;font-weight:900;text-transform:uppercase}.weekly-work-detail>header h3{margin:4px 0 0;font-size:25px}.weekly-work-detail>header>b{padding:7px 10px;border-radius:999px;background:#111;color:#fff;font-size:9px}.weekly-question-card,.weekly-answer-section{display:grid;gap:12px;padding:14px;border:1px solid #dfdfdc;border-radius:14px;background:#fff}.weekly-evidence-label{display:flex;align-items:center;gap:9px}.weekly-evidence-label>span{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#111;color:#fff;font-size:9px;font-weight:900}.weekly-evidence-label>div{display:grid;gap:2px}.weekly-evidence-label b{font-size:12px}.weekly-evidence-label small{color:#777;font-size:9px}.weekly-question-card>img{width:100%;max-height:410px;object-fit:contain;border:1px solid #eee;border-radius:10px;background:#fff}.weekly-question-text{padding:22px;border-radius:10px;background:#f3f3f0}.weekly-question-text b{font-size:11px;text-transform:uppercase}.weekly-question-text p{margin:9px 0 0;font:600 18px/1.5 Georgia,serif}.weekly-answer-list{display:grid;gap:12px}.weekly-answer-card{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(170px,.7fr);overflow:hidden;border:1px solid #e1e1de;border-radius:12px;background:#fff}.weekly-answer-card>div{display:grid;min-height:180px;place-items:center;background:#f1f1ef}.weekly-answer-card img{display:block;width:100%;max-height:450px;object-fit:contain}.weekly-answer-card>div>button{padding:11px 14px;border:0;border-radius:8px;background:#111;color:#fff;font-weight:900}.weekly-answer-card footer{display:grid;align-content:start;gap:5px;padding:15px}.weekly-answer-card footer>span{color:#a70f28;font-size:9px;font-weight:900;text-transform:uppercase}.weekly-answer-card footer strong{font-size:13px}.weekly-answer-card footer small{color:#777;font-size:9px}.weekly-answer-card footer p{margin:7px 0 0;color:#555;font-size:10px;line-height:1.5}.weekly-no-submission{display:grid;gap:4px;padding:24px;border:1px dashed #c9c9c5;border-radius:11px;background:#fafaf8;text-align:center}.weekly-no-submission b{font-size:13px}.weekly-no-submission span{color:#777;font-size:10px}.weekly-upload-work{min-height:44px;border:0;border-radius:10px;background:#111;color:#fff;font-size:11px;font-weight:900}
@media(max-width:1320px){.portal-dashboard-split{grid-template-columns:minmax(330px,.7fr) minmax(650px,1.3fr)}.weekly-days{grid-template-columns:repeat(7,minmax(106px,1fr))}.portal-shell{padding:20px}}
@media(max-width:1050px){.portal-layout{grid-template-columns:68px minmax(0,1fr)}.portal-dashboard-split{grid-template-columns:1fr}.weekly-calendar{position:static;grid-row:1}.portal-dashboard-main{grid-row:2}.weekly-days{grid-template-columns:repeat(7,minmax(116px,1fr))}}
@media(max-width:780px){.weekly-calendar{padding:16px}.weekly-calendar-heading{display:grid}.weekly-calendar-heading>div:last-child{text-align:left}.weekly-days{grid-template-columns:repeat(7,minmax(126px,1fr))}.weekly-day{min-height:205px}.weekly-answer-card{grid-template-columns:1fr}.weekly-answer-card>div{min-height:150px}}
@media(max-width:620px){.portal-dashboard-split{gap:12px}.weekly-calendar{padding:12px}.weekly-calendar-heading h2{font-size:24px}.weekly-work-detail{padding:12px}.weekly-work-detail>header{display:grid}.weekly-work-detail>header>b{justify-self:start}.weekly-question-text p{font-size:16px}}

/* Last week sits on the left and this week on the right; only Friday through Sunday are shown. */
.weekly-calendar-weeks{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px 0 18px}.weekly-week-block{min-width:0;padding:13px;border:1px solid #e0e0dd;border-radius:15px;background:#f8f8f6}.weekly-week-block.is-this-week{border-color:#c9c9c5;background:#fff}.weekly-week-block>header{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:2px 2px 12px}.weekly-week-block>header span{color:#a70f28;font-size:8px;font-weight:900;letter-spacing:1px;text-transform:uppercase}.weekly-week-block>header h3{margin:3px 0 0;font-size:22px;letter-spacing:-.5px}.weekly-week-block>header>b{color:#777;font-size:9px}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(102px,1fr));gap:7px;overflow-x:auto;padding:0}.weekly-week-block .weekly-day{min-height:205px}.weekly-week-block.is-last-week .weekly-day:not(.is-mini-test){background:#f3f3f0}.weekly-week-block.is-last-week .weekly-day{opacity:.94}
@media(max-width:1180px){.weekly-calendar-weeks{grid-template-columns:1fr}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(132px,1fr))}}
@media(max-width:780px){.weekly-calendar-weeks{gap:10px}.weekly-week-block{padding:10px}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(118px,1fr))}.weekly-week-block>header h3{font-size:20px}}

/* Fit all three weekend cards without clipping or horizontal scrolling. */
.portal-layout{grid-template-columns:174px minmax(0,1580px);max-width:1775px}.portal-dashboard-split{grid-template-columns:minmax(340px,.58fr) minmax(820px,1.62fr)}.weekly-calendar{width:100%}.weekly-calendar-weeks{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.weekly-week-block{width:100%;overflow:hidden}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;overflow:visible}.weekly-week-block .weekly-day{min-width:0;padding:10px}.weekly-week-block .weekly-day>header strong{font-size:clamp(30px,3vw,40px)}.weekly-week-block .weekly-subject-actions,.weekly-week-block .weekly-subject-actions button{min-width:0}.weekly-week-block .weekly-subject-actions button{padding:6px 4px;white-space:normal;line-height:1.15}
@media(max-width:1320px){.portal-dashboard-split{grid-template-columns:minmax(310px,.5fr) minmax(760px,1.6fr)}}
@media(max-width:1180px){.portal-dashboard-split{grid-template-columns:1fr}.weekly-calendar{grid-row:1}.portal-dashboard-main{grid-row:2}.weekly-calendar-weeks{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.weekly-calendar-weeks{grid-template-columns:1fr}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(0,1fr))}.weekly-week-block .weekly-day{min-height:195px}}

/* Phone layout: use the complete screen and keep every calendar element inside the frame. */
@media(max-width:620px){html,body,#app{width:100%;max-width:100%;min-width:0}.shell{width:100%;max-width:100%;padding-right:4px;padding-left:4px}.portal-layout{display:block!important;width:100%;max-width:100%;margin:0}.portal-layout>.social-nav{display:none!important}.portal-layout .social-bottom-nav{position:fixed;right:6px;bottom:calc(6px + env(safe-area-inset-bottom));left:6px;z-index:30;display:flex;align-items:stretch;justify-content:space-around;gap:2px;padding:5px;border:1px solid #dde1e4;border-radius:15px;background:rgba(255,255,255,.98);box-shadow:0 -5px 18px rgba(20,30,40,.14);opacity:1;transform:none;pointer-events:auto}.portal-layout .social-bottom-nav .social-nav-button{display:flex;flex:1 1 0;min-width:0;min-height:49px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 1px;font-size:8px}.portal-layout .social-bottom-nav .social-nav-button i{font-size:17px}.portal-layout .social-bottom-nav .social-nav-button span{display:block;max-width:100%;font-size:8px;white-space:normal;overflow-wrap:anywhere}.portal-shell,.portal-dashboard-split,.portal-dashboard-main,.weekly-calendar,.weekly-calendar-weeks,.weekly-week-block,.weekly-days,.weekly-day{width:100%;max-width:100%;min-width:0}.portal-shell{overflow:hidden;padding:7px 6px 84px;border-radius:12px}.weekly-calendar{overflow:hidden;padding:9px;margin:0}.weekly-calendar-heading{display:grid;gap:9px;padding:3px 1px 12px}.weekly-calendar-heading>div:last-child{width:100%;padding:8px 10px;text-align:left}.weekly-calendar-weeks{grid-template-columns:1fr;gap:9px;padding:10px 0 12px}.weekly-week-block{overflow:hidden;padding:8px;border-radius:12px}.weekly-week-block>header{align-items:flex-start;padding:1px 1px 9px}.weekly-week-block>header h3{font-size:19px}.weekly-week-block>header>b{max-width:42%;text-align:right;white-space:normal}.weekly-week-block .weekly-days{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:hidden}.weekly-week-block .weekly-day{min-height:174px;padding:7px 5px;border-radius:10px}.weekly-week-block .weekly-day>header strong{font-size:28px;letter-spacing:-1px}.weekly-week-block .weekly-day>header span{font-size:8px}.weekly-week-block .weekly-day>header small{font-size:8px}.weekly-week-block .weekly-plan{margin-top:9px;font-size:7px}.weekly-week-block .weekly-day>em{font-size:7px}.weekly-week-block .weekly-subject-actions{gap:4px}.weekly-week-block .weekly-subject-actions button{min-height:32px;padding:4px 2px;border-radius:7px;font-size:8px;overflow-wrap:anywhere}.weekly-work-detail{width:100%;max-width:100%;overflow:hidden;padding:9px}.weekly-question-card,.weekly-answer-section,.weekly-answer-card{width:100%;max-width:100%;min-width:0}.weekly-question-card>img,.weekly-answer-card img{width:100%;max-width:100%;height:auto}.weekly-answer-card{grid-template-columns:1fr}.portal-hero,.portal-code-card,.portal-stat-grid,.portal-card{max-width:100%;min-width:0}.portal-hero{padding:18px 14px}.portal-code-card{width:100%}}

/* Temporary simplified learner tab: show only the two-week calendar and opened evidence. */
.portal-calendar-only{width:100%;max-width:100%;padding:0;border:0;background:transparent}.portal-calendar-only>.weekly-calendar{position:static;margin:0;padding:0;border:0;background:transparent}.portal-calendar-only .weekly-calendar-heading{display:none}.portal-calendar-only .weekly-calendar-weeks{padding:0 0 14px}.portal-calendar-only>.portal-upload-card[hidden]{display:none}.portal-calendar-only>.portal-upload-card:not([hidden]){margin-top:14px}

/* Cross-device Anele demo: parent report, learner reminder and readable sample answers. */
.learner-demo-button{border-color:#a70f28!important;background:#fff0f3!important;color:#a70f28!important;font-weight:900!important}.portal-demo-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:18px 20px;border-radius:16px}.portal-demo-notice>div{display:grid;gap:4px}.portal-demo-notice span{font-size:9px;font-weight:900;letter-spacing:1px;text-transform:uppercase}.portal-demo-notice strong{font-size:18px;line-height:1.2}.portal-demo-notice p{margin:0;font-size:12px}.portal-demo-notice.is-parent{background:#111;color:#fff}.portal-demo-notice.is-parent span{color:#ff9caf}.portal-demo-notice.is-parent p{color:#d8d8d8}.portal-demo-notice.is-parent>b{display:grid;width:58px;height:58px;flex:0 0 58px;place-items:center;border-radius:50%;background:#fff;color:#111;font-size:18px}.portal-demo-notice.is-learner{border:1px solid #e4a9b5;background:#fff0f3;color:#111}.portal-demo-notice.is-learner span{color:#a70f28}.portal-demo-notice.is-learner p{color:#6f555a}.portal-demo-notice.is-learner>button{min-height:43px;flex:0 0 auto;padding:0 17px;border:0;border-radius:10px;background:#111;color:#fff;font-size:11px;font-weight:900}.weekly-demo-answer{display:grid!important;width:100%;min-height:180px;align-content:center!important;justify-items:start!important;padding:22px;background:#fffdf8!important}.weekly-demo-answer>span{color:#a70f28;font-size:9px;font-weight:900;letter-spacing:.8px;text-transform:uppercase}.weekly-demo-answer>p{margin:10px 0 0;color:#171717;font:600 18px/1.65 Georgia,serif}.teacher-demo-upload{border-color:#e7b1bc!important;background:#fff5f7!important}.demo-answer-modal{display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72)}.demo-answer-modal>section{position:relative;width:min(560px,100%);padding:28px;border-radius:18px;background:#fff}.demo-answer-modal>section>span{color:#a70f28;font-size:10px;font-weight:900;text-transform:uppercase}.demo-answer-modal h2{margin:6px 35px 20px 0;font-size:24px}.demo-answer-modal>section>div{padding:22px;border-radius:12px;background:#f7f4ed;font:600 19px/1.7 Georgia,serif}.demo-answer-modal .modal-close{top:12px;right:12px;color:#111}

/* Simple teacher photo-framing dashboard. */
.teacher-tool-main{min-width:0}.teacher-tool-switch{margin:0 0 14px}.photo-editor-shell{min-width:0;padding:24px;background:#f6f6f4}.photo-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.photo-editor-heading>div>span{display:block;margin-bottom:6px;color:#b10f33;font-size:11px;font-weight:900;letter-spacing:1.3px;text-transform:uppercase}.photo-editor-heading h1{margin:0;font-size:32px;line-height:1.05;letter-spacing:-1px}.photo-editor-heading p{margin:8px 0 0;color:#666;font-size:14px}.photo-editor-heading>b{padding:8px 11px;border-radius:999px;background:#111;color:#fff;font-size:11px;white-space:nowrap}.photo-editor-picker{display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);gap:16px;margin-bottom:18px;padding:16px;border:1px solid #e0e0dd;border-radius:15px;background:#fff}.photo-editor-picker>label{display:grid;align-content:start;gap:7px;color:#333;font-size:12px;font-weight:900}.photo-editor-picker select{width:100%;min-height:46px;padding:10px;border:1px solid #cfcfcb;border-radius:10px;background:#fff;color:#111;font:inherit;font-size:15px}.photo-editor-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:thin}.photo-editor-thumbnails button{display:grid;flex:0 0 84px;gap:5px;padding:5px;border:2px solid transparent;border-radius:11px;background:#f2f2ef;color:#111;font-size:11px;font-weight:900}.photo-editor-thumbnails button.active{border-color:#b10f33;background:#fff0f3}.photo-editor-thumbnails img{display:block;width:70px;height:62px;object-fit:cover;border-radius:7px;background:#ddd}.photo-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.photo-editor-preview-panel,.photo-editor-controls{min-width:0;padding:18px;border:1px solid #dededb;border-radius:16px;background:#fff}.photo-device-switch,.photo-fit-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:4px;border-radius:11px;background:#ececea}.photo-device-switch{margin-bottom:13px}.photo-device-switch button,.photo-fit-buttons button{min-height:43px;border:0;border-radius:8px;background:transparent;color:#555;font-size:12px;font-weight:900}.photo-device-switch button.active,.photo-fit-buttons button.active{background:#111;color:#fff}.photo-editor-preview{position:relative;overflow:hidden;border:2px solid #111;border-radius:17px;background:#e8e8e5;cursor:grab;touch-action:none;user-select:none}.photo-editor-preview.desktop{width:503px;max-width:100%;height:auto;aspect-ratio:1.07}.photo-editor-preview.desktop.wide-photo{width:556px}.photo-editor-preview.desktop.large-portrait.standard-photo{height:auto;aspect-ratio:503/680}.photo-editor-preview.desktop.large-portrait.wide-photo{height:auto;aspect-ratio:556/680}.photo-editor-preview.mobile{width:min(calc(100vw - 34px),568px);max-width:none;height:auto;margin:0 auto;border-width:7px;border-radius:27px;aspect-ratio:1.07}.photo-editor-preview.mobile.wide-photo{width:min(calc(100vw - 14px),588px)}.photo-editor-preview.mobile.large-portrait.standard-photo{aspect-ratio:503/680}.photo-editor-preview.mobile.large-portrait.wide-photo{aspect-ratio:556/680}.photo-editor-preview.dragging{cursor:grabbing}.photo-editor-preview:focus-visible{outline:4px solid rgba(177,15,51,.25);outline-offset:3px}.photo-editor-preview img{display:block;width:100%;height:100%;pointer-events:none}.photo-editor-preview>span{position:absolute;right:12px;bottom:12px;left:12px;padding:9px 11px;border-radius:9px;background:rgba(0,0,0,.76);color:#fff;text-align:center;font-size:11px;font-weight:900;pointer-events:none}.photo-editor-preview-panel>small{display:block;margin-top:11px;color:#696969;font-size:11px;line-height:1.45}.photo-editor-controls{display:grid;gap:20px}.photo-control-label{display:block;margin-bottom:8px;color:#333;font-size:12px;font-weight:900}.photo-zoom-control{display:grid;gap:9px;color:#222;font-size:13px;font-weight:900}.photo-zoom-control>span{display:flex;justify-content:space-between}.photo-zoom-control input{width:100%;accent-color:#b10f33}.photo-position-readout{display:grid;grid-template-columns:1fr 1fr;gap:8px}.photo-position-readout span{display:grid;gap:4px;padding:12px;border-radius:10px;background:#f2f2ef;color:#666;font-size:10px;font-weight:800}.photo-position-readout b{color:#111;font-size:16px}.photo-editor-help{margin:0;color:#666;font-size:12px;line-height:1.45}.photo-editor-status{min-height:42px;padding:12px;border-radius:10px;background:#fff0f3;color:#8f1525;font-size:12px;font-weight:900}.photo-editor-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:8px}.photo-editor-actions button{min-height:50px;border-radius:10px;font-size:12px;font-weight:900}.photo-editor-actions button:disabled{opacity:.55}
@media(max-width:1180px){.photo-editor-grid{grid-template-columns:1fr}}
@media(max-width:620px){.teacher-tool-switch{display:grid;grid-template-columns:1fr 1fr;width:100%}.teacher-tool-switch button{min-height:42px}.photo-editor-shell{padding:15px 0 96px;border-radius:16px}.photo-editor-heading{display:grid;gap:12px;margin-right:15px;margin-left:15px}.photo-editor-heading h1{font-size:26px}.photo-editor-heading>b{width:max-content}.photo-editor-picker{grid-template-columns:1fr;margin-right:15px;margin-left:15px;padding:12px}.photo-editor-thumbnails button{flex-basis:76px}.photo-editor-thumbnails img{width:62px;height:56px}.photo-editor-preview-panel{padding:12px 0;overflow-x:auto}.photo-editor-preview-panel>.photo-device-switch,.photo-editor-preview-panel>small{margin-right:12px;margin-left:12px}.photo-editor-controls{margin-right:15px;margin-left:15px;padding:12px}.photo-editor-preview.desktop{width:min(503px,calc(100vw - 34px))}.photo-editor-preview.desktop.wide-photo{width:min(556px,calc(100vw - 14px))}.photo-editor-actions{grid-template-columns:1fr}.photo-editor-actions button{min-height:50px}}
@media(max-width:620px){.portal-demo-notice{align-items:stretch;padding:14px}.portal-demo-notice strong{font-size:15px}.portal-demo-notice.is-learner{display:grid}.portal-demo-notice.is-learner>button{width:100%}.weekly-demo-answer>p{font-size:16px}.demo-answer-modal>section{padding:22px 16px}.demo-answer-modal>section>div{font-size:16px}}

/* Role sign-in, teacher question publishing and live learner/parent task notifications. */
.signin-role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.signin-role-grid button{min-height:42px;border:1px solid #d5d5d2;border-radius:10px;background:#fff;color:#111;font-size:11px;font-weight:900}.signin-role-grid button.active{border-color:#111;background:#111;color:#fff}.teacher-task-form{display:grid;grid-template-columns:2fr 1fr .65fr 1fr;gap:12px;margin:22px 0 28px;padding:20px;border:1px solid #dededb;border-radius:16px;background:#f8f8f6}.teacher-task-form label{display:grid;gap:6px;color:#333;font-size:11px;font-weight:900}.teacher-task-form input,.teacher-task-form select{width:100%;min-height:43px;padding:10px;border:1px solid #cececa;border-radius:9px;background:#fff;color:#111;font:inherit}.teacher-task-file{grid-column:1/3}.teacher-task-time{display:grid;align-content:center;gap:4px;padding:10px 13px;border-radius:10px;background:#111;color:#fff}.teacher-task-time b{font-size:10px;text-transform:uppercase}.teacher-task-time span{font-size:11px}.teacher-task-form>.signin-error{grid-column:1/-1}.teacher-task-form>button{grid-column:1/-1;min-height:48px}.teacher-work-heading{margin-top:6px}.teacher-work-heading h2{margin:0}.teacher-task-row{border-color:#aeb9c5!important;background:#f5f9fd!important}.teacher-task-notification{display:grid;width:100%;gap:5px;margin:0 0 14px;padding:18px 20px;border:1px solid #d9d9d5;border-radius:16px;background:#fff;color:#111;text-align:left;box-shadow:0 7px 22px rgba(20,20,20,.08)}.teacher-task-notification.is-new{border-color:#a70f28;background:linear-gradient(135deg,#fff0f3,#fff)}.teacher-task-notification>span{color:#a70f28;font-size:9px;font-weight:900;letter-spacing:1px;text-transform:uppercase}.teacher-task-notification>strong{font-size:18px}.teacher-task-notification>small{color:#666;font-size:11px}.teacher-task-notification>b{margin-top:5px;font-size:11px}.teacher-task-detail{scroll-margin-top:78px;padding:22px!important;border-color:#bfc4ca!important;background:#fff!important}.teacher-task-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.teacher-task-detail>header span{color:#a70f28;font-size:9px;font-weight:900;text-transform:uppercase}.teacher-task-detail>header h2{margin:5px 0 2px;font-size:27px}.teacher-task-detail>header p{margin:0;color:#666;font-size:12px}.teacher-task-detail>header>b{display:grid;min-width:68px;height:68px;place-items:center;border-radius:50%;background:#111;color:#fff;font-size:15px}.teacher-task-rule{display:flex;gap:8px;margin:16px 0}.teacher-task-rule span{padding:7px 10px;border-radius:999px;background:#f0f0ed;font-size:10px;font-weight:900}.teacher-task-countdown{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;padding:14px 16px;border-radius:12px;background:#111;color:#fff}.teacher-task-countdown span{font-size:10px;font-weight:900;text-transform:uppercase}.teacher-task-countdown strong{font-size:28px;letter-spacing:1px}.teacher-task-countdown.is-submit-minute{background:#a70f28}.teacher-task-countdown.is-finished{background:#555}.teacher-task-countdown.is-ready{background:#25303a}.teacher-task-question{overflow:hidden;border:1px solid #dededb;border-radius:13px;background:#f8f8f6}.teacher-task-question>div{display:grid;gap:2px;padding:13px 15px;border-bottom:1px solid #e2e2df;background:#fff}.teacher-task-question>div span{color:#a70f28;font-size:9px;font-weight:900;text-transform:uppercase}.teacher-task-question>div strong{font-size:12px}.teacher-task-question>img{display:block;width:100%;max-height:680px;object-fit:contain;background:#fff}.teacher-task-open-file{display:block;margin:28px auto;padding:12px 18px;border:0;border-radius:9px;background:#111;color:#fff;font-weight:900}.teacher-task-start,.teacher-task-submit{width:100%;min-height:50px;margin-top:15px;border:0;border-radius:11px;background:#111;color:#fff;font-size:12px;font-weight:900}.teacher-task-submit{background:#a70f28}.teacher-task-parent-view,.teacher-task-submitted{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:14px 16px;border-radius:11px;background:#f0f0ed}.teacher-task-parent-view b,.teacher-task-submitted b{font-size:12px}.teacher-task-parent-view span,.teacher-task-submitted span{color:#666;font-size:10px}
@media(max-width:820px){.teacher-task-form{grid-template-columns:1fr 1fr}.teacher-task-file{grid-column:1/-1}.teacher-task-time{grid-column:1/-1}}
@media(max-width:620px){.signin-role-grid{gap:4px}.signin-role-grid button{font-size:9px}.teacher-task-form{grid-template-columns:1fr;padding:14px}.teacher-task-form>*{grid-column:1!important}.teacher-task-notification{padding:14px}.teacher-task-notification>strong{font-size:15px}.teacher-task-detail{padding:14px!important}.teacher-task-detail>header h2{font-size:21px}.teacher-task-detail>header>b{min-width:54px;height:54px;font-size:12px}.teacher-task-rule{display:grid}.teacher-task-countdown strong{font-size:24px}.teacher-task-parent-view,.teacher-task-submitted{align-items:flex-start;flex-direction:column}}
.enable-task-notifications{display:flex;align-items:center;width:100%;gap:11px;margin:0 0 12px;padding:11px 14px;border:1px solid #c8d5e2;border-radius:12px;background:#f2f8fd;color:#111;text-align:left}.enable-task-notifications>span{font-size:20px}.enable-task-notifications>div{display:grid;gap:2px}.enable-task-notifications b{font-size:11px}.enable-task-notifications small{color:#607284;font-size:9px}

/* Teacher uses the same weekend calendar as learners and uploads into the selected date and subject. */
.teacher-portal-shell>.teacher-weekly-calendar{position:static;margin:0 0 18px}.teacher-portal-shell>.teacher-dashboard{width:100%;max-width:none;margin:0}.teacher-weekly-work-detail{scroll-margin-top:78px}.teacher-calendar-task-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0;padding:16px;background:#fff}.teacher-calendar-task-form>.teacher-upload-label{grid-column:1/-1}.teacher-calendar-task-form>.teacher-task-file{grid-column:1}.teacher-calendar-task-form>.teacher-memo-file{grid-column:2}.teacher-calendar-task-form>.teacher-task-time{grid-column:1/-1}.teacher-slot-existing{display:grid;gap:10px;padding:14px;border:1px solid #dfdfdc;border-radius:14px;background:#fff}.teacher-slot-existing>.weekly-evidence-label{margin-bottom:2px}.teacher-slot-existing>article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid #e3e3df;border-radius:10px;background:#f8f8f6}.teacher-slot-existing>article>div{display:grid;gap:4px}.teacher-slot-existing>article strong{font-size:12px}.teacher-slot-existing>article small{color:#777;font-size:9px}.teacher-task-row-actions{display:flex!important;align-items:center;gap:7px}.teacher-slot-empty{display:grid;gap:4px;padding:20px;border:1px dashed #c9c9c5;border-radius:11px;background:#fff;text-align:center}.teacher-slot-empty b{font-size:12px}.teacher-slot-empty span{color:#777;font-size:10px}.weekly-assigned-question{gap:14px}.weekly-question-actions{display:grid;gap:9px;padding-top:2px}.weekly-submit-question,.weekly-view-memo,.teacher-task-memo-button{width:100%;min-height:46px;border:0;border-radius:10px;background:#111;color:#fff;font-size:11px;font-weight:900}.weekly-view-memo,.teacher-task-memo-button{background:#a70f28}.weekly-memo-locked,.weekly-question-submitted{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:10px;background:#f0f0ed}.weekly-memo-locked b,.weekly-question-submitted b{font-size:11px}.weekly-memo-locked span,.weekly-question-submitted span{color:#6f6f6f;font-size:9px}.weekly-question-actions>.weekly-answer-list{margin-top:2px}
@media(max-width:820px){.teacher-calendar-task-form{grid-template-columns:1fr 1fr}.teacher-calendar-task-form>.teacher-task-time{grid-column:1/-1}}
@media(max-width:620px){.teacher-calendar-task-form{grid-template-columns:1fr;padding:12px}.teacher-calendar-task-form>*{grid-column:1!important}.teacher-slot-existing>article{align-items:stretch;flex-direction:column}.teacher-slot-existing>article button{width:100%}}
