:root{
  --hub-navy:#0d2f57;
  --hub-blue:#1467c7;
  --hub-blue-2:#2f85e7;
  --hub-sky:#eaf6ff;
  --hub-orange:#f58b22;
  --hub-ink:#17324d;
  --hub-muted:#6c8197;
  --hub-line:#dce8f3;
  --hub-bg:#f4f8fc;
  --hub-white:#fff;
  --hub-green:#16966a;
  --hub-red:#cf4352;
  --hub-purple:#6b58cb;
  --hub-shadow:0 16px 42px rgba(31,66,105,.10);
  --hub-shadow-soft:0 8px 24px rgba(31,66,105,.07);
  --hub-r:22px;
}
*{box-sizing:border-box}
body.hub-v1{background:linear-gradient(180deg,#f5faff 0,#f7f9fc 60%,#f2f7fc 100%);color:var(--hub-ink)}
body.hub-v1 button,body.hub-v1 input,body.hub-v1 select{font:inherit}
.hub-topbar{position:sticky;top:0;z-index:70;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,232,243,.9)}
.hub-topbar .brand{flex-shrink:0}
.hub-topbar .product-logo{height:42px;width:auto}
.hub-nav{display:flex;align-items:center;gap:4px;flex:1;justify-content:center;min-width:0}
.hub-nav-item{position:relative;display:flex;align-items:center;gap:7px;padding:9px 11px;border:0;border-radius:14px;background:transparent;color:#5b7188;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap}
.hub-nav-item img{width:24px;height:24px;object-fit:contain}
.hub-nav-item.active{background:#eaf4ff;color:var(--hub-navy);box-shadow:inset 0 0 0 1px #d8e9fa}
.hub-nav-item:hover{background:#f3f8fd;color:var(--hub-navy)}
.hub-nav-item.learnlab-nav img{width:28px;height:28px}
.nav-badge{min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--hub-orange);color:#fff;display:grid;place-items:center;font-size:9px}
.top-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.teacher-entry{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid #cfe0ee;border-radius:14px;background:#fff;color:var(--hub-navy);text-decoration:none;font-size:12px;font-weight:900;box-shadow:0 5px 15px rgba(31,66,105,.06);white-space:nowrap;transition:.16s ease}
.teacher-entry:hover{background:#eef7ff;border-color:#9bc8ee;transform:translateY(-1px)}
body[data-authenticated] .teacher-entry{display:none}
.profile-button{border:0;background:transparent;display:flex;align-items:center;gap:8px;color:var(--hub-navy);cursor:pointer;text-align:left;padding:3px 0}
.profile-button small,.profile-button strong{display:block}
.profile-button small{font-size:9px;color:var(--hub-muted)}
.profile-button strong{font-size:12px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:#eaf6ff;overflow:hidden}
.mini-avatar img{width:62px;height:76px;object-fit:contain;transform:translateY(13px)}
.friends-button{display:flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #d9e8f4;border-radius:14px;background:#fff;color:var(--hub-navy);font-size:11px;font-weight:900;cursor:pointer}
.friends-button b{min-width:24px;height:24px;border-radius:9px;background:#eaf4ff;display:grid;place-items:center;color:var(--hub-blue)}
.friends-dots{color:var(--hub-green);letter-spacing:-2px;font-size:8px}
.hub-shell{width:min(1510px,calc(100% - 30px));margin:14px auto 42px}
.hub-card{background:rgba(255,255,255,.95);border:1px solid var(--hub-line);border-radius:var(--hub-r);box-shadow:var(--hub-shadow-soft);padding:18px}
.hub-panel{display:none;animation:hubIn .2s ease}
.hub-panel.active{display:block}
@keyframes hubIn{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}
.section-heading.compact{align-items:center;margin-bottom:13px}
.section-heading h2{margin:2px 0 0;color:var(--hub-navy);font-size:20px;line-height:1.2}
.section-heading p:not(.section-kicker){margin:5px 0 0;color:var(--hub-muted);font-size:12px}
.section-kicker,.eyebrow{margin:0;color:#6d87a1;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.text-button{border:0;background:transparent;color:var(--hub-blue);font-size:11px;font-weight:900;cursor:pointer;padding:5px 0;white-space:nowrap}
.primary-button,.hero-cta{border:0;border-radius:14px;background:linear-gradient(135deg,var(--hub-blue),#2581df);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(20,103,199,.22)}
.primary-button{padding:12px 18px}
.hidden{display:none!important}
.loading-card{color:var(--hub-muted)}
.empty-state{padding:22px;border:1px dashed #cfdeeb;border-radius:17px;text-align:center;color:#71869a;background:#fafcff}
.empty-state.small{grid-column:1/-1;padding:15px;font-size:13px;text-align:left}

/* Login */
.login-view{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr);gap:16px;align-items:stretch}
.login-stage{position:relative;min-height:620px;border-radius:28px;overflow:hidden;background:linear-gradient(145deg,#dff3ff 0%,#f2faff 48%,#fff5e8 100%);border:1px solid #cfe5f4;box-shadow:var(--hub-shadow)}
.login-stage:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.95),transparent 37%),linear-gradient(90deg,rgba(255,255,255,.58),transparent 64%)}
.login-stage-copy{position:relative;z-index:2;width:54%;padding:54px 48px}
.login-stage-copy h1{margin:8px 0 15px;color:var(--hub-navy);font-size:clamp(46px,5vw,72px);line-height:.98;letter-spacing:-2px}
.login-stage-copy h1 em{font-style:normal;color:var(--hub-orange)}
.login-stage-copy>p:not(.eyebrow){max-width:520px;margin:0;color:#58718a;font-size:17px;line-height:1.65}
.login-feature-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.login-feature-row span{padding:8px 11px;border:1px solid #d7e7f3;border-radius:999px;background:rgba(255,255,255,.78);color:#426783;font-size:10px;font-weight:800}
.login-stage-art{position:absolute;right:-4%;bottom:-4%;width:62%;height:82%;z-index:1}
.login-stage-art img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 26px 35px rgba(26,66,108,.16))}
.login-panel{min-height:620px;padding:25px;display:flex;flex-direction:column}
.class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.class-card{position:relative;min-height:112px;padding:14px;border:1px solid #e0eaf3;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);cursor:pointer;text-align:left;overflow:hidden;transition:.17s ease}
.class-card:hover{transform:translateY(-2px);border-color:#9bc8ee;box-shadow:0 10px 22px rgba(20,61,117,.09)}
.class-card:after{content:"";position:absolute;width:88px;height:88px;right:-22px;top:-22px;border-radius:50%;background:linear-gradient(145deg,#dff3ff,#fff0df)}
.class-badge{position:relative;z-index:1;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,var(--hub-blue),#55bdf2);color:#fff;font-size:17px;font-weight:900}
.class-card strong{position:relative;z-index:1;display:block;margin-top:8px;color:var(--hub-navy);font-size:14px}
.class-card small{position:relative;z-index:1;color:var(--hub-muted);font-size:10px}
.selected-class-banner{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:11px;border:1px solid #dce8f3;border-radius:16px;background:#f7fbff}
.selected-class-banner>span:first-child{min-width:49px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e8f4ff;color:var(--hub-navy);font-weight:900}
.selected-class-banner small,.selected-class-banner strong{display:block}
.selected-class-banner small{font-size:9px;color:var(--hub-muted)}
.selected-class-banner strong{color:var(--hub-navy)}
.selected-hint{margin-left:auto;color:#50708c;font-size:10px;font-weight:800}
.student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:480px;overflow:auto;padding-right:3px}
.student-card-select{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;align-items:center;min-height:72px;padding:10px;border:1px solid #e1eaf3;border-radius:15px;background:#fff;cursor:pointer;text-align:left;transition:.16s ease}
.student-card-select:hover{transform:translateY(-1px);border-color:#9bc8ee;background:#fbfdff}
.student-card-select .avatar{grid-row:1/3;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#e4f5ff,#fff1e5);color:var(--hub-navy);font-size:16px;font-weight:900}
.student-card-select strong{min-width:0;color:var(--hub-navy);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.student-card-select small{min-width:0;color:var(--hub-muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cloud-login{margin:auto 0;display:grid;gap:16px}
.cloud-login-copy{display:flex;gap:12px;align-items:center;padding:17px;border-radius:18px;background:linear-gradient(145deg,#f0f8ff,#fff);border:1px solid #dce9f4}
.cloud-login-icon{font-size:30px}
.cloud-login-copy h3{margin:0;color:var(--hub-navy);font-size:17px}
.cloud-login-copy p{margin:4px 0 0;color:var(--hub-muted);font-size:11px;line-height:1.55}
.cloud-login label{display:grid;gap:7px;color:var(--hub-navy);font-size:11px;font-weight:900}
.cloud-login input{height:54px;border:1px solid #cfdeeb;border-radius:15px;padding:0 16px;font-size:20px;font-weight:900;color:var(--hub-navy);outline:none}
.cloud-login input:focus{border-color:#76b2e8;box-shadow:0 0 0 4px rgba(47,133,231,.1)}
.form-error{margin:0;color:#c43c4d;font-size:11px;font-weight:800}

/* Home */
.home-hero{position:relative;min-height:310px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#dff3ff 0%,#eef8ff 54%,#fff2e1 100%);border:1px solid #cfe5f4;box-shadow:var(--hub-shadow);margin-bottom:14px}
.home-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.82) 39%,rgba(255,255,255,.08) 72%,transparent)}
.home-hero-copy{position:relative;z-index:2;width:51%;padding:44px 42px}
.home-hero-copy h1{margin:6px 0 10px;color:var(--hub-navy);font-size:clamp(34px,4vw,54px);line-height:1.02;letter-spacing:-1.3px}
.home-hero-copy>p:not(.eyebrow){margin:0;max-width:580px;color:#56718b;font-size:14px;line-height:1.65}
.hero-cta{display:inline-flex;align-items:center;gap:18px;margin-top:20px;padding:12px 17px}
.hero-cta b{font-size:18px}
.home-hero-visual{position:absolute;right:-1%;bottom:-7%;width:52%;height:112%;z-index:1}
.home-hero-visual img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.home-hero-status{position:absolute;right:19px;top:17px;z-index:3;display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:rgba(255,255,255,.84);box-shadow:var(--hub-shadow-soft);font-size:10px;font-weight:800;color:#47637d}
.live-dot{width:8px;height:8px;border-radius:50%;background:#18a66d;box-shadow:0 0 0 4px rgba(24,166,109,.12);display:inline-block}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.summary-card{border:1px solid var(--hub-line);border-radius:19px;background:#fff;box-shadow:var(--hub-shadow-soft);padding:14px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:11px;align-items:center;text-align:left;cursor:pointer;transition:.16s ease}
.summary-card:hover{transform:translateY(-2px);box-shadow:var(--hub-shadow)}
.summary-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#edf6ff;font-size:21px}
.summary-icon img{width:38px;height:38px;object-fit:contain}
.summary-card small,.summary-card strong,.summary-card em{display:block}
.summary-card small{color:#71869b;font-size:9px;font-weight:800}
.summary-card strong{margin:1px 0;color:var(--hub-navy);font-size:22px;line-height:1.05}
.summary-card em{font-style:normal;color:#71869b;font-size:9px}
.work-summary .summary-icon{background:#eaf4ff}
.grade-summary .summary-icon{background:#eefaf6}
.behavior-summary .summary-icon{background:#fff7e7}
.learn-summary .summary-icon{background:#f1efff}
.home-layout{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(310px,.72fr);gap:14px}
.home-main-stack,.home-side-stack{display:flex;flex-direction:column;gap:14px}
.next-work-card{position:relative;min-height:155px;border-radius:19px;background:linear-gradient(135deg,#eef7ff,#fff 62%);border:1px solid #dceaf5;padding:20px;overflow:hidden}
.next-work-card.has-work{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.next-work-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:linear-gradient(145deg,rgba(47,133,231,.10),rgba(245,139,34,.10));right:-70px;top:-70px}
.next-work-main{position:relative;z-index:2}
.next-work-main small{display:block;color:#6c8197;font-size:10px;font-weight:800}
.next-work-main h3{margin:4px 0;color:var(--hub-navy);font-size:22px}
.next-work-main p{margin:4px 0 0;color:#60768c;font-size:11px}
.next-work-meta{position:relative;z-index:2;display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.work-chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #dce8f2;color:#56718b;font-size:9px;font-weight:800}
.next-work-score{position:relative;z-index:2;text-align:center;min-width:90px}
.next-work-score strong{display:block;font-size:30px;color:var(--hub-orange)}
.next-work-score span{font-size:9px;color:#71869b}
.work-list{display:flex;flex-direction:column;gap:8px}
.work-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #e2ebf3;border-radius:16px;background:#fff}
.work-kind{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#edf6ff;color:var(--hub-navy);font-size:18px;font-weight:900}
.work-copy{min-width:0}
.work-copy strong{display:block;color:var(--hub-navy);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-copy small{display:block;margin-top:3px;color:#74889b;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-result{text-align:right}
.work-result strong{display:block;color:var(--hub-navy);font-size:14px}
.work-result span{display:inline-block;margin-top:3px;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:900}
.status-graded{background:#e9f8f2;color:#128057}
.status-waiting{background:#eaf4ff;color:#1763ad}
.status-todo{background:#fff0df;color:#b66006}
.status-missing{background:#fff0f2;color:#b72e40}
.friends-preview{display:flex;flex-direction:column;gap:8px}
.friend-mini{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px;border-radius:14px;background:#f8fbfe}
.friend-avatar{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#e0f3ff,#fff0df);color:var(--hub-navy);font-weight:900}
.friend-mini strong,.friend-mini small{display:block}
.friend-mini strong{color:var(--hub-navy);font-size:10px}
.friend-mini small{color:#72879b;font-size:8px;margin-top:2px}
.friend-progress{font-size:9px;font-weight:900;color:var(--hub-blue);white-space:nowrap}
.behavior-mini{display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:center}
.behavior-ring{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fff3df,#fff);border:7px solid #ffd9ac;position:relative}
.behavior-ring strong{position:relative;z-index:1;color:var(--hub-navy);font-size:20px}
.behavior-mini-copy strong,.behavior-mini-copy span{display:block}
.behavior-mini-copy strong{font-size:12px;color:var(--hub-navy)}
.behavior-mini-copy span{font-size:9px;color:#71869b;margin-top:3px;line-height:1.5}
.lesson-mini-card{display:flex;align-items:center;gap:12px}
.lesson-mini-icon{width:48px;height:48px;border-radius:15px;background:#eaf4ff;display:grid;place-items:center}
.lesson-mini-icon img{width:28px;height:28px}
.lesson-mini-card small,.lesson-mini-card strong,.lesson-mini-card span{display:block}
.lesson-mini-card small{font-size:9px;color:#71869b}
.lesson-mini-card strong{font-size:12px;color:var(--hub-navy);margin:2px 0}
.lesson-mini-card span{font-size:9px;color:#71869b}

/* Work + grades */
.panel-titlebar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 3px 16px}
.panel-titlebar h1{margin:3px 0 5px;color:var(--hub-navy);font-size:32px}
.panel-titlebar p:not(.section-kicker){margin:0;color:#667d92;font-size:12px}
.panel-title-art{font-size:42px}
.privacy-pill{padding:9px 12px;border-radius:999px;background:#eef7ff;color:#315e87;font-size:10px;font-weight:900;border:1px solid #dce8f3}
.work-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.work-stat-grid article{padding:15px;border:1px solid var(--hub-line);border-radius:18px;background:#fff;box-shadow:var(--hub-shadow-soft)}
.work-stat-grid small,.work-stat-grid strong,.work-stat-grid span{display:block}
.work-stat-grid small{color:#71869b;font-size:9px;font-weight:800}
.work-stat-grid strong{font-size:26px;color:var(--hub-navy);margin:1px 0}
.work-stat-grid span{font-size:9px;color:#71869b}
.work-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:10px 12px}
.segmented{display:flex;gap:5px;overflow:auto}
.segmented button{border:0;border-radius:12px;background:#f2f6fa;color:#637a90;padding:8px 11px;font-size:9px;font-weight:900;white-space:nowrap;cursor:pointer}
.segmented button.active{background:var(--hub-navy);color:#fff}
.work-toolbar select{border:1px solid #d7e4ef;border-radius:12px;background:#fff;color:#4e667e;padding:8px 10px;font-size:10px;outline:none}
.work-board{padding:12px}
.work-list.detailed .work-row{grid-template-columns:50px minmax(0,1fr) minmax(90px,auto)}
.work-list.detailed .work-row{padding:13px}
.work-list.detailed .work-copy strong{font-size:13px}
.work-feedback{margin-top:5px;padding:5px 8px;border-radius:9px;background:#f7f9fb;color:#637a90;font-size:9px!important;white-space:normal!important}
.subject-score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.subject-score-card{padding:16px;border:1px solid var(--hub-line);border-radius:19px;background:#fff;box-shadow:var(--hub-shadow-soft)}
.subject-score-card>span,.subject-score-card>strong,.subject-score-card>small{display:block}
.subject-score-card>span{font-size:10px;font-weight:900;color:#506b84}
.subject-score-card>strong{font-size:27px;color:var(--hub-navy);margin:4px 0 2px}
.subject-score-card>small{font-size:9px;color:#75899c}
.subject-progress-native{display:block;width:100%;height:7px;margin-top:11px;border:0;border-radius:999px;overflow:hidden;background:#edf2f6;appearance:none}
.subject-progress-native::-webkit-progress-bar{background:#edf2f6;border-radius:999px}
.subject-progress-native::-webkit-progress-value{background:linear-gradient(90deg,var(--hub-blue),#55bdf2);border-radius:999px}
.subject-progress-native::-moz-progress-bar{background:var(--hub-blue);border-radius:999px}
.grades-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:14px}
.behavior-score{font-size:26px;color:var(--hub-orange)}
.behavior-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:13px}
.behavior-stat-row div{padding:10px;border-radius:14px;background:#f7fafc;text-align:center}
.behavior-stat-row small,.behavior-stat-row strong{display:block}
.behavior-stat-row small{font-size:8px;color:#71869b}
.behavior-stat-row strong{font-size:18px;color:var(--hub-navy)}
.behavior-timeline{display:flex;flex-direction:column;gap:8px;max-height:390px;overflow:auto}
.behavior-event{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:start;padding:9px;border-bottom:1px solid #edf2f6}
.behavior-event:last-child{border-bottom:0}
.behavior-event-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#eef6ff}
.behavior-event strong,.behavior-event small{display:block}
.behavior-event strong{font-size:10px;color:var(--hub-navy)}
.behavior-event small{font-size:8px;color:#75899c;margin-top:2px;line-height:1.45}
.behavior-points{font-size:11px;font-weight:900;color:var(--hub-green)}
.behavior-points.negative{color:var(--hub-red)}

/* LearnLab */
.learnlab-titlebar{padding:18px 22px;border:1px solid #dedcf6;border-radius:22px;background:linear-gradient(135deg,#f1f0ff,#f7faff 62%,#fff2e5);margin-bottom:12px}
.learnlab-logo-large img{width:110px;height:auto}
.learnlab-frame-shell{position:relative;min-height:670px;border:1px solid #dce7f1;border-radius:24px;background:#fff;overflow:hidden;box-shadow:var(--hub-shadow)}
.learnlab-frame-toolbar{height:45px;display:flex;align-items:center;gap:9px;padding:0 14px;border-bottom:1px solid #e2eaf2;background:#f8fbfd;font-size:10px;color:#5e7489}
.learnlab-frame-toolbar strong{margin-right:auto;color:var(--hub-navy)}
.learnlab-frame-toolbar button{border:1px solid #d6e3ee;border-radius:10px;background:#fff;color:#526b83;padding:6px 9px;font-size:9px;font-weight:800;cursor:pointer}
#learnLabFrame{display:none;width:100%;height:720px;border:0;background:#fff}
.learnlab-frame-shell.running #learnLabFrame{display:block}
.learnlab-frame-shell.running .learnlab-empty{display:none}
.learnlab-empty{min-height:625px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;padding:28px;background:linear-gradient(145deg,#eaf6ff,#fff 62%,#fff4e8)}
.learnlab-empty img{width:100%;height:430px;object-fit:contain}
.learnlab-empty h2{margin:0;color:var(--hub-navy);font-size:30px}
.learnlab-empty p{color:#627b91;line-height:1.65;font-size:12px;max-width:440px}

/* Programs + media */
.program-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.program-card{min-height:125px;padding:15px;border:1px solid #e0e9f1;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);display:flex;flex-direction:column;align-items:flex-start;text-align:left;cursor:pointer;transition:.16s ease}
.program-card:hover{transform:translateY(-2px);box-shadow:var(--hub-shadow-soft);border-color:#a8d0ee}
.program-card .program-icon{width:48px;height:48px;border-radius:15px;background:#edf6ff;display:grid;place-items:center;margin-bottom:9px}
.program-card .program-icon img{max-width:37px;max-height:37px}
.program-card strong{font-size:12px;color:var(--hub-navy)}
.program-card small{font-size:9px;color:#71869b;margin-top:3px}
.web-capability-note{margin-top:12px;padding:11px;border-radius:14px;background:#fff8ed;color:#8a622c;font-size:10px}
.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.subject-card{position:relative;min-height:150px;padding:0;border:1px solid #e0e9f1;border-radius:19px;overflow:hidden;background:#fff;cursor:pointer;text-align:left}
.subject-art{height:88px;background:linear-gradient(135deg,#eaf6ff,#fff0df)}
.subject-card[data-kind="thai"] .subject-art{background:#f9e7ef url("/assets/subject-thai.svg") center/110px auto no-repeat}
.subject-card[data-kind="math"] .subject-art{background:#fff1d9 url("/assets/subject-math.svg") center/110px auto no-repeat}
.subject-card[data-kind="english"] .subject-art{background:#e5f1ff url("/assets/subject-english.svg") center/110px auto no-repeat}
.subject-card[data-kind="computer"] .subject-art{background:#e8f7f1 url("/assets/subject-computer.svg") center/110px auto no-repeat}
.subject-copy{padding:11px 12px}
.subject-copy strong,.subject-copy small{display:block}
.subject-copy strong{font-size:11px;color:var(--hub-navy)}
.subject-copy small{font-size:8px;color:#71869b;margin-top:2px}
.file-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.file-card{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e1eaf3;border-radius:15px;background:#fff;text-align:left;color:inherit;text-decoration:none}
button.file-card{width:100%;cursor:pointer}
.file-icon{width:40px;height:40px;border-radius:13px;background:#edf6ff;display:grid;place-items:center;flex-shrink:0}
.file-icon img{width:28px;height:28px}
.file-copy{min-width:0}
.file-copy strong,.file-copy small{display:block}
.file-copy strong{font-size:10px;color:var(--hub-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-copy small{font-size:8px;color:#75899c;margin-top:2px}
.folder-browser{margin-top:12px}

/* Friends drawer */
.friends-drawer{position:fixed;inset:0;z-index:100;pointer-events:none;visibility:hidden}
.friends-drawer.open{pointer-events:auto;visibility:visible}
.drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(12,37,65,.26);opacity:0;transition:.2s}
.friends-drawer.open .drawer-backdrop{opacity:1}
.drawer-panel{position:absolute;right:0;top:0;bottom:0;width:min(420px,92vw);background:#fff;box-shadow:-18px 0 48px rgba(23,50,77,.17);padding:22px;transform:translateX(102%);transition:.24s ease;display:flex;flex-direction:column}
.friends-drawer.open .drawer-panel{transform:none}
.drawer-panel header{display:flex;align-items:flex-start;gap:12px;padding-bottom:15px;border-bottom:1px solid #e7eef4}
.drawer-panel header>div{flex:1}
.drawer-panel h2{margin:3px 0;color:var(--hub-navy);font-size:23px}
.drawer-panel h2 span{color:var(--hub-green)}
.drawer-panel header p:not(.section-kicker){margin:4px 0 0;color:#70859a;font-size:10px;line-height:1.55}
.drawer-close{width:36px;height:36px;border:1px solid #dce7f0;border-radius:12px;background:#fff;color:#5d7389;font-size:22px;cursor:pointer}
.friends-list{flex:1;overflow:auto;padding:13px 0;display:flex;flex-direction:column;gap:8px}
.friend-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:15px;background:#f8fbfd;border:1px solid #edf2f6}
.friend-row .friend-avatar{width:44px;height:44px}
.friend-row strong,.friend-row small{display:block}
.friend-row strong{font-size:11px;color:var(--hub-navy)}
.friend-row small{font-size:8px;color:#71869b;margin-top:2px}
.friend-stage{font-size:9px;font-weight:900;color:var(--hub-blue);text-align:right}
.help-card{display:grid;grid-template-columns:38px 1fr auto;gap:9px;align-items:center;padding:12px;border-radius:17px;background:linear-gradient(135deg,#fff4e8,#fff);border:1px solid #f2dbc0}
.help-card>span{font-size:25px}
.help-card strong,.help-card small{display:block}
.help-card strong{font-size:10px;color:var(--hub-navy)}
.help-card small{font-size:8px;color:#71869b;margin-top:2px}
.help-card button{border:0;border-radius:11px;background:var(--hub-orange);color:#fff;padding:8px 10px;font-size:9px;font-weight:900;cursor:pointer}

/* dialog */
.number-dialog{border:0;border-radius:24px;padding:0;width:min(420px,calc(100% - 24px));box-shadow:0 28px 80px rgba(17,45,75,.28)}
.number-dialog::backdrop{background:rgba(12,35,60,.32);backdrop-filter:blur(5px)}
.number-dialog form{padding:27px;text-align:center;position:relative}
.dialog-close{position:absolute;right:13px;top:13px;width:34px;height:34px;border:1px solid #dbe6ef;border-radius:12px;background:#fff;color:#657c91;font-size:20px;cursor:pointer}
.dialog-mascot{display:block;height:90px}
.dialog-mascot img{height:105px;object-fit:contain}
.number-dialog h2{margin:5px 0;color:var(--hub-navy)}
.number-dialog p{color:#687f94;font-size:11px}
.number-dialog input{width:100%;height:52px;border:1px solid #cfdeeb;border-radius:15px;text-align:center;font-size:22px;font-weight:900;color:var(--hub-navy);outline:none;margin:8px 0}
.number-dialog .primary-button{width:100%;margin-top:6px}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:130;max-width:min(520px,90vw);padding:11px 15px;border-radius:14px;background:#102f51;color:#fff;box-shadow:0 15px 38px rgba(13,47,87,.3);font-size:10px;font-weight:800}

/* responsive */
@media(max-width:1180px){
  .hub-topbar .school-lockup{display:none}
  .hub-nav-item span{display:none}
  .hub-nav-item{padding:8px}
  .summary-grid{grid-template-columns:repeat(2,1fr)}
  .subject-score-grid{grid-template-columns:repeat(2,1fr)}
  .program-grid,.subject-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .hub-shell{width:min(100% - 20px,760px);margin-top:10px;padding-bottom:78px}
  .hub-topbar{padding-left:10px;padding-right:10px}
  .hub-topbar .brand{margin-right:auto}
  .hub-topbar .product-logo{height:37px}
  .hub-topbar .status-pill{display:none}
  .teacher-entry{min-height:44px;padding:0 11px;font-size:11px;border-radius:13px}
  .profile-button>span:nth-child(2),.profile-button>b{display:none}
  .friends-button>span:not(.friends-dots){display:none}
  .hub-nav{position:fixed;left:8px;right:8px;bottom:8px;z-index:90;justify-content:space-around;background:rgba(255,255,255,.96);border:1px solid #dbe7f1;border-radius:20px;padding:6px;box-shadow:0 14px 35px rgba(24,58,94,.18);backdrop-filter:blur(18px)}
  .hub-nav-item{flex:1;justify-content:center;display:flex;flex-direction:column;gap:1px;padding:6px 4px;border-radius:14px;font-size:8px}
  .hub-nav-item span{display:block;font-size:7px}
  .hub-nav-item img{width:22px;height:22px}
  .hub-nav-item.desktop-capability{display:none}
  .nav-badge{position:absolute;right:12%;top:1px;min-width:16px;height:16px}
  .login-view{grid-template-columns:1fr}
  .login-stage{min-height:320px}
  .login-stage-copy{width:65%;padding:33px 24px}
  .login-stage-copy h1{font-size:38px;letter-spacing:-1px}
  .login-stage-copy>p:not(.eyebrow){font-size:12px}
  .login-stage-art{width:60%;height:78%;right:-11%}
  .login-feature-row{display:none}
  .login-panel{min-height:auto;padding:17px}
  .class-grid{grid-template-columns:repeat(2,1fr)}
  .student-grid{grid-template-columns:1fr;max-height:none}
  .home-hero{min-height:300px}
  .home-hero-copy{width:69%;padding:31px 23px}
  .home-hero-copy h1{font-size:34px}
  .home-hero-visual{width:52%;right:-14%;opacity:.92}
  .home-hero-status{right:11px;top:10px;font-size:8px}
  .home-layout,.grades-layout{grid-template-columns:1fr}
  .work-stat-grid{grid-template-columns:repeat(2,1fr)}
  .program-grid,.subject-grid{grid-template-columns:repeat(2,1fr)}
  .file-grid{grid-template-columns:1fr}
  .learnlab-empty{grid-template-columns:1fr;text-align:center}
  .learnlab-empty img{height:260px}
  #learnLabFrame{height:680px}
}
@media(max-width:560px){
  .hub-shell{width:calc(100% - 16px)}
  .hub-topbar{min-height:58px}
  .mini-avatar{width:36px;height:36px}
  .friends-button{padding:7px 8px}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .summary-card{grid-template-columns:39px 1fr;padding:10px;gap:8px}
  .summary-icon{width:39px;height:39px;border-radius:12px}
  .summary-icon img{width:31px;height:31px}
  .summary-card strong{font-size:18px}
  .summary-card em{font-size:7px}
  .home-hero{border-radius:22px}
  .home-hero-copy{width:72%;padding:28px 18px}
  .home-hero-copy h1{font-size:29px}
  .home-hero-copy>p:not(.eyebrow){font-size:10px;max-width:280px}
  .hero-cta{padding:10px 13px;font-size:10px}
  .home-hero-visual{width:56%;right:-20%}
  .hub-card{padding:13px;border-radius:18px}
  .section-heading h2{font-size:17px}
  .panel-titlebar h1{font-size:26px}
  .work-stat-grid{gap:7px}
  .work-stat-grid article{padding:12px}
  .work-stat-grid strong{font-size:22px}
  .work-toolbar{align-items:stretch;flex-direction:column}
  .subject-score-grid{grid-template-columns:repeat(2,1fr);gap:7px}
  .subject-score-card{padding:12px}
  .subject-score-card>strong{font-size:23px}
  .work-row{grid-template-columns:42px minmax(0,1fr)}
  .work-result{grid-column:2;text-align:left;display:flex;align-items:center;gap:7px}
  .program-grid,.subject-grid{grid-template-columns:repeat(2,1fr);gap:7px}
  .program-card{min-height:110px;padding:12px}
  .login-stage{min-height:270px}
  .login-stage-copy{padding:27px 18px}
  .login-stage-copy h1{font-size:32px}
  .login-stage-art{right:-18%}
}

/* ============================================================
   BAY Computer Lab 1.1 — Child-first experience
   Classroom cards are the real KRUART/BAY production artwork.
   ============================================================ */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* A welcoming doorway, not an admin login. */
body.hub-v1{--class-a:#dff3ff;--class-b:#fff0dd;--class-accent:#2f85e7}
body[data-class-theme="K2"],body[data-selected-class="K2"]{--class-a:#fff1f5;--class-b:#fff5df;--class-accent:#ef7699}
body[data-class-theme="K3"],body[data-selected-class="K3"]{--class-a:#fff3df;--class-b:#e9f8ee;--class-accent:#f29a34}
body[data-class-theme="P1"],body[data-selected-class="P1"]{--class-a:#e8f8ee;--class-b:#edf7ff;--class-accent:#42a973}
body[data-class-theme="P2"],body[data-selected-class="P2"]{--class-a:#e8f5ff;--class-b:#f0efff;--class-accent:#458ed8}
body[data-class-theme="P3"],body[data-selected-class="P3"]{--class-a:#fff0f6;--class-b:#f3edff;--class-accent:#d46aaa}
body[data-class-theme="P4"],body[data-selected-class="P4"]{--class-a:#ecf8ff;--class-b:#e8faf3;--class-accent:#3b9cab}
body[data-class-theme="P5"],body[data-selected-class="P5"]{--class-a:#f1edff;--class-b:#edf6ff;--class-accent:#735fc4}
body[data-class-theme="P6"],body[data-selected-class="P6"]{--class-a:#eef4ff;--class-b:#fff1e5;--class-accent:#506cae}

.login-view{grid-template-columns:minmax(340px,.72fr) minmax(650px,1.28fr);gap:18px}
.login-stage,.login-panel{min-height:660px}
.child-welcome{display:grid;grid-template-rows:auto minmax(220px,1fr);background:linear-gradient(145deg,var(--class-a),#f8fcff 48%,var(--class-b));border-color:#d4e5f2}
.child-welcome:before{background:
 radial-gradient(circle at 12% 12%,rgba(255,255,255,.98),transparent 33%),
 radial-gradient(circle at 82% 78%,rgba(255,255,255,.48),transparent 34%)}
.child-welcome .login-stage-copy{width:100%;padding:34px 32px 12px}
.child-welcome .login-stage-copy h1{font-size:clamp(38px,3.7vw,52px);line-height:1.07;letter-spacing:-1.3px}
.child-welcome .login-stage-copy>p:not(.eyebrow){font-size:16px;max-width:470px}
.child-welcome .login-stage-art{position:relative;width:100%;height:100%;right:auto;bottom:auto;min-height:0}
.child-welcome .login-stage-art img{object-position:center 38%;filter:none}
.child-pills span{background:rgba(255,255,255,.86);border-color:rgba(255,255,255,.9);box-shadow:0 6px 18px rgba(31,66,105,.06);font-size:11px}
.welcome-school-mark{position:absolute;left:30px;bottom:27px;z-index:4;display:flex;align-items:center;gap:9px;padding:7px 11px;border-radius:14px;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.9);box-shadow:0 8px 24px rgba(31,66,105,.08);backdrop-filter:blur(12px);color:#526c83;font-size:10px;font-weight:900}
.welcome-school-mark img{width:31px;height:31px;object-fit:contain}

.login-panel{padding:25px 27px;background:rgba(255,255,255,.97)}
.login-panel .section-heading h2{font-size:27px;letter-spacing:-.4px}
.login-panel .section-heading p:not(.section-kicker){font-size:12px}
.class-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-content:start}
.child-class-card{min-height:0;aspect-ratio:3/4;padding:0;border:0;border-radius:22px;background:#eaf2f8;box-shadow:0 9px 26px rgba(31,66,105,.10);overflow:hidden;isolation:isolate}
.child-class-card:hover,.child-class-card:focus-visible{transform:translateY(-5px) scale(1.015);box-shadow:0 18px 34px rgba(31,66,105,.17);outline:4px solid rgba(47,133,231,.13)}
.child-class-card:active{transform:translateY(-1px) scale(.985)}
.child-class-card:after{display:none}
.class-art{position:absolute;inset:0;z-index:0;display:block;background-image:none;background-repeat:no-repeat;background-size:400% 200%;background-color:#eff6fb;transition:transform .28s ease}
.child-class-card:hover .class-art{transform:scale(1.035)}
.child-class-card[data-art="K2"] .class-art{background-position:0 0}
.child-class-card[data-art="K3"] .class-art{background-position:33.333% 0}
.child-class-card[data-art="P1"] .class-art{background-position:66.667% 0}
.child-class-card[data-art="P2"] .class-art{background-position:100% 0}
.child-class-card[data-art="P3"] .class-art{background-position:0 100%}
.child-class-card[data-art="P4"] .class-art{background-position:33.333% 100%}
.child-class-card[data-art="P5"] .class-art{background-position:66.667% 100%}
.child-class-card[data-art="P6"] .class-art{background-position:100% 100%}
.class-card-footer{position:absolute;z-index:3;left:9px;right:auto;top:9px;bottom:auto;min-height:34px;display:flex;align-items:center;gap:6px;padding:6px 7px;border-radius:12px;background:rgba(13,47,87,.76);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(10px);box-shadow:0 4px 13px rgba(8,27,48,.16)}
.class-card-footer strong{display:none}
.class-card-footer small{margin:0!important;color:#fff!important;font-size:9px!important;font-weight:900;line-height:1.25;white-space:nowrap}
.class-card-footer b{margin-left:auto;width:23px;height:23px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.18);color:#fff;font-size:14px}

/* Keep the chosen classroom visually present through identification. */
.selected-class-banner{position:relative;min-height:82px;padding:12px 13px 12px 84px;background:linear-gradient(135deg,var(--class-a),#fff);overflow:hidden}
.selected-class-banner:before{content:"";position:absolute;left:8px;top:8px;bottom:8px;width:58px;border-radius:13px;background-image:none;background-size:400% 200%;background-repeat:no-repeat;box-shadow:0 4px 12px rgba(31,66,105,.14)}
.selected-class-banner[data-art="K2"]:before{background-position:0 0}
.selected-class-banner[data-art="K3"]:before{background-position:33.333% 0}
.selected-class-banner[data-art="P1"]:before{background-position:66.667% 0}
.selected-class-banner[data-art="P2"]:before{background-position:100% 0}
.selected-class-banner[data-art="P3"]:before{background-position:0 100%}
.selected-class-banner[data-art="P4"]:before{background-position:33.333% 100%}
.selected-class-banner[data-art="P5"]:before{background-position:66.667% 100%}
.selected-class-banner[data-art="P6"]:before{background-position:100% 100%}
.selected-class-banner>span:first-child{display:none}
.selected-class-banner strong{font-size:15px}
.selected-class-banner small{font-size:9px}

.student-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:485px}
.student-card-select{min-height:82px;border-radius:18px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 4px 13px rgba(31,66,105,.04)}
.student-card-select:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(31,66,105,.10)}
.student-card-select .avatar{width:48px;height:48px;border-radius:16px;font-size:18px}
.student-card-select strong{font-size:12px}
.student-card-select small{font-size:9px}

.cloud-login{max-width:560px;margin:auto}
.cloud-login-copy{padding:20px;border-radius:22px;background:linear-gradient(145deg,var(--class-a),#fff);border-color:#dce8f3}
.cloud-login-icon{font-size:38px}
.cloud-login-copy h3{font-size:20px}
.cloud-login input{height:72px;text-align:center;font-size:30px;border-radius:20px;letter-spacing:.08em}
.child-login-cta{min-height:58px;border-radius:18px;font-size:15px;background:linear-gradient(135deg,var(--class-accent),#2e83dc);box-shadow:0 12px 26px rgba(31,100,172,.20)}

/* Child navigation: simple words, strong touch targets. */
.hub-nav-item{min-height:48px;border-radius:16px;font-size:12px}
.hub-nav-item.active{background:linear-gradient(145deg,var(--class-a),#f9fcff);box-shadow:inset 0 0 0 1px #dbe8f3}
.profile-button small{color:#7b8ea1}
.friends-button{min-height:43px;border-radius:15px}

/* Mission-first home. */
.home-hero{min-height:340px;background:linear-gradient(135deg,var(--class-a) 0%,#f8fcff 54%,var(--class-b) 100%);border-color:#d9e7f1}
.home-hero:after{background:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.80) 43%,rgba(255,255,255,.08) 74%,transparent)}
.home-hero-copy{width:56%;padding:48px 46px}
.home-hero-copy h1{font-size:clamp(38px,4vw,58px);letter-spacing:-1.5px}
.hero-cta{min-height:52px;border-radius:17px;padding:13px 19px;background:linear-gradient(135deg,var(--class-accent),#2e83dc);font-size:14px;box-shadow:0 12px 25px rgba(31,100,172,.20)}
.summary-card{min-height:90px;border-radius:22px;padding:15px;box-shadow:0 7px 20px rgba(31,66,105,.06)}
.summary-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(31,66,105,.12)}
.summary-icon{width:52px;height:52px;border-radius:17px;font-size:23px}
.summary-card strong{font-size:25px}
.summary-card small{font-size:10px}
.summary-card em{font-size:9px}
.next-work-card{min-height:180px;border-radius:22px;background:linear-gradient(135deg,var(--class-a),#fff 68%)}
.next-work-main h3{font-size:24px}
.priority-card{border-color:#d5e7f4}
.friends-preview-card{background:linear-gradient(155deg,#fff,#f4fbff)}
.behavior-mini-card{background:linear-gradient(155deg,#fff,#fffaf2)}

/* My Space: private, calm, not a public leaderboard. */
#panel-grades .panel-titlebar{background:linear-gradient(135deg,#fffaf0,#fff,#f0f6ff);border:1px solid #e2e9f0}
.privacy-pill{background:#f1f7fd;border-color:#dbe8f3;color:#54718b}
.subject-score-card{border-radius:20px;box-shadow:0 6px 18px rgba(31,66,105,.05)}

/* Friendly transitions, restrained for a shared computer lab. */
.child-class-card,.student-card-select,.summary-card,.hero-cta,.hub-nav-item{transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
@media(prefers-reduced-motion:reduce){
  .child-class-card,.student-card-select,.summary-card,.hero-cta,.hub-nav-item,.class-art{transition:none!important;animation:none!important}
}

/* Tablet */
@media(max-width:1180px){
  .login-view{grid-template-columns:minmax(300px,.7fr) minmax(520px,1.3fr)}
  .class-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .student-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Mobile / iPhone */
@media(max-width:900px){
  .login-view{display:block}
  .login-stage,.login-panel{min-height:0}
  .child-welcome{min-height:0;grid-template-rows:auto 190px;margin-bottom:12px}
  .child-welcome .login-stage-copy{width:100%;padding:24px 20px 10px}
  .child-welcome .login-stage-copy h1{font-size:38px}
  .child-welcome .login-stage-copy>p:not(.eyebrow){font-size:12px}
  .child-welcome .login-stage-art{width:100%;height:100%;right:auto;bottom:auto}
  .welcome-school-mark{left:16px;bottom:14px}
  .login-panel{padding:18px}
  .login-panel .section-heading h2{font-size:23px}
  .class-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .child-class-card{border-radius:17px}
  .class-card-footer{left:6px;right:auto;top:6px;bottom:auto;min-height:30px;padding:5px 6px;border-radius:10px}
  .class-card-footer small{font-size:6.5px!important}
  .class-card-footer b{width:18px;height:18px;font-size:11px}
  .home-hero{min-height:315px}
  .home-hero-copy{width:70%;padding:34px 24px}
}

@media(max-width:560px){
  .hub-shell{width:min(100% - 16px,1510px);margin-top:8px}
  .child-welcome{min-height:0;grid-template-rows:auto 155px;border-radius:23px}
  .child-welcome .login-stage-copy{width:100%;padding:20px 18px 8px}
  .child-welcome .login-stage-copy h1{font-size:31px;letter-spacing:-.8px}
  .child-welcome .login-stage-copy>p:not(.eyebrow){font-size:10px;max-width:250px}
  .child-pills{gap:5px;margin-top:13px}
  .child-pills span{padding:6px 8px;font-size:8px}
  .child-welcome .login-stage-art{width:100%;right:auto;height:100%}
  .welcome-school-mark{left:12px;bottom:10px;padding:5px 8px;font-size:8px}
  .welcome-school-mark img{width:24px;height:24px}
  .login-panel{border-radius:22px;padding:15px}
  .login-panel .section-heading{margin-bottom:12px}
  .login-panel .section-heading h2{font-size:21px}
  .class-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .child-class-card{border-radius:20px}
  .class-card-footer{left:7px;right:auto;top:7px;bottom:auto;min-height:34px;padding:6px 7px;border-radius:11px}
  .class-card-footer small{font-size:7.5px!important}
  .class-card-footer b{width:21px;height:21px}
  .selected-class-banner{min-height:76px;padding-left:78px}
  .selected-class-banner:before{width:54px}
  .student-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}
  .student-card-select{grid-template-columns:42px minmax(0,1fr);min-height:72px;padding:8px}
  .student-card-select .avatar{width:40px;height:40px;border-radius:13px}
  .cloud-login{gap:13px}
  .cloud-login input{height:64px;font-size:27px}
  .home-hero{min-height:300px}
  .home-hero-copy{width:74%;padding:29px 18px}
  .home-hero-copy h1{font-size:31px}
  .home-hero-copy>p:not(.eyebrow){font-size:10px}
  .summary-grid{gap:8px}
  .summary-card{min-height:78px;padding:10px;grid-template-columns:42px 1fr}
  .summary-icon{width:42px;height:42px;border-radius:14px;font-size:19px}
  .summary-card strong{font-size:20px}
  .summary-card em{display:none}
  .hub-nav{padding:5px;bottom:max(7px,env(safe-area-inset-bottom))}
  .hub-nav-item{min-height:51px}
}

/* 1.1.1 production visual hotfix */
.class-art{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:cover;background:none!important;transform:none}
.child-class-card:hover .class-art{transform:scale(1.025)}
.child-class-card[data-art] .class-art{background-position:initial!important}
.login-stage-art{background:transparent!important}
.login-stage-art img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit}
.top-actions{position:relative;z-index:90}
.profile-button{position:relative;z-index:91;background:rgba(255,255,255,.96);padding:5px 8px;border-radius:14px;box-shadow:0 4px 14px rgba(31,66,105,.06)}
.switch-label{font-size:9px;color:#607990;white-space:nowrap}
.hub-nav{position:relative;z-index:60;overflow:hidden}
@media(max-width:1180px){.profile-button small{display:none}.profile-button strong{max-width:90px}.switch-label{display:none}}

/* 1.1.1 final UX closure */
.selected-class-banner:before{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.selected-class-banner[data-art="K2"]:before{background-image:url("/assets/classrooms/k2-card.jpg?v=111")}
.selected-class-banner[data-art="K3"]:before{background-image:url("/assets/classrooms/k3-card.jpg?v=111")}
.selected-class-banner[data-art="P1"]:before{background-image:url("/assets/classrooms/p1-card.jpg?v=111")}
.selected-class-banner[data-art="P2"]:before{background-image:url("/assets/classrooms/p2-card.jpg?v=111")}
.selected-class-banner[data-art="P3"]:before{background-image:url("/assets/classrooms/p3-card.jpg?v=111")}
.selected-class-banner[data-art="P4"]:before{background-image:url("/assets/classrooms/p4-card.jpg?v=111")}
.selected-class-banner[data-art="P5"]:before{background-image:url("/assets/classrooms/p5-card.jpg?v=111")}
.selected-class-banner[data-art="P6"]:before{background-image:url("/assets/classrooms/p6-card.jpg?v=111")}
.load-more-button{display:block;margin:14px auto 2px;min-height:44px;padding:10px 18px;border:1px solid #d7e5f1;border-radius:15px;background:#f7fbff;color:#355c80;font:inherit;font-weight:900;cursor:pointer}
.load-more-button.hidden{display:none}
.learnlab-back{margin-right:auto;border:1px solid #dbe8f3;background:#fff;color:#365d82;border-radius:12px;padding:8px 11px;font-weight:900;cursor:pointer}
.help-sent{background:#e8f8ef!important;color:#27784a!important;border-color:#bde4cc!important}
.media-empty{padding:34px 20px!important;background:linear-gradient(145deg,#f8fcff,#fffaf2)}
.behavior-panel .section-heading p:not(.section-kicker){margin:4px 0 0;color:#71869a;font-size:10px}


/* 1.2.0 secure child identity + accessibility */
.qr-camera{position:relative;overflow:hidden;aspect-ratio:4/3;max-height:320px;border-radius:20px;background:#0c2038;border:2px solid #d7e7f3}
.qr-camera video{width:100%;height:100%;object-fit:cover;display:block}
.qr-frame{position:absolute;inset:18%;border:3px solid rgba(255,255,255,.92);border-radius:18px;box-shadow:0 0 0 999px rgba(8,25,45,.26);pointer-events:none}
.qr-start{min-height:52px;border-radius:16px;border:1px solid #cfe0ee;background:#fff;color:var(--hub-navy);font-weight:900;cursor:pointer}
.qr-manual input{font-size:14px!important;letter-spacing:.02em!important;text-align:left!important;height:52px!important}
@media(max-width:900px){
  .hub-nav-item{min-width:48px;min-height:52px}
  .hub-nav-item span{font-size:12px!important}
  .friends-button,.text-button,.drawer-close,#closeFolder{min-width:44px;min-height:44px}
  .summary-card small,.summary-card em,.next-work-main small,.next-work-main p,.work-copy small,.work-result span,.friend-mini small,.friend-progress,.behavior-mini-copy span,.lesson-mini-card small,.lesson-mini-card span,.work-chip,.section-kicker,.eyebrow{font-size:12px!important;line-height:1.4}
}

/* 1.2.2 login method chooser */
.login-method-stage{max-width:620px;margin:auto;display:grid;gap:16px}
.login-method-copy{text-align:center;padding:4px 12px}
.login-method-copy h3{margin:4px 0 5px;color:var(--hub-navy);font-size:24px}
.login-method-copy p:not(.section-kicker){margin:0;color:var(--hub-muted);font-size:12px}
.login-method-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.login-method-card{position:relative;min-height:150px;padding:20px 18px;border:1px solid #d8e7f2;border-radius:22px;background:#fff;text-align:left;color:var(--hub-navy);cursor:pointer;box-shadow:0 10px 24px rgba(31,66,105,.07);transition:.17s ease}
.login-method-card:hover,.login-method-card:focus-visible{transform:translateY(-3px);border-color:#8abfe9;box-shadow:0 15px 30px rgba(31,66,105,.12);outline:3px solid rgba(47,133,231,.10)}
.login-method-card>span{display:grid;place-items:center;width:48px;height:48px;margin-bottom:12px;border-radius:16px;background:#edf7ff;font-size:26px}
.login-method-card.birthday>span{background:#fff4e8}
.login-method-card strong,.login-method-card small{display:block}
.login-method-card strong{font-size:17px}
.login-method-card small{margin-top:5px;padding-right:26px;color:var(--hub-muted);font-size:11px;line-height:1.5}
.login-method-card b{position:absolute;right:16px;bottom:16px;width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:#edf5fc;color:var(--hub-blue);font-size:17px}
.birthday-fields{display:grid;grid-template-columns:.75fr 1.35fr 1fr;gap:10px}
.birthday-fields label{display:grid;gap:6px;color:var(--hub-navy);font-size:11px;font-weight:900}
.birthday-fields select,.birthday-fields input{width:100%;height:54px!important;border:1px solid #cfdeeb;border-radius:15px;padding:0 12px!important;background:#fff;color:var(--hub-navy);font-size:15px!important;font-weight:900!important;letter-spacing:0!important;text-align:left!important;outline:none}
.birthday-fields select:focus,.birthday-fields input:focus{border-color:#76b2e8;box-shadow:0 0 0 4px rgba(47,133,231,.1)}
.method-back{min-height:44px;border:0;background:transparent;color:var(--hub-blue);font-weight:900;cursor:pointer}
@media(max-width:560px){
  .login-method-grid{grid-template-columns:1fr}
  .login-method-card{min-height:112px;padding:15px 16px 14px 76px}
  .login-method-card>span{position:absolute;left:15px;top:16px;width:46px;height:46px;margin:0}
  .login-method-card b{right:14px;bottom:14px}
  .birthday-fields{grid-template-columns:.8fr 1.25fr 1fr;gap:7px}
  .birthday-fields select,.birthday-fields input{height:52px!important;padding:0 8px!important;font-size:13px!important}
}

/* 1.2.3 canonical subject behavior */
.behavior-subject-list{display:grid;gap:7px;margin:4px 0 14px;max-height:300px;overflow:auto;padding-right:2px}
.behavior-subject-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e3edf4;border-radius:14px;background:#fff;text-align:left;cursor:pointer;color:var(--hub-navy);transition:.15s ease}
.behavior-subject-row:hover,.behavior-subject-row.active{border-color:#9bc8ee;background:#f4faff}
.behavior-subject-row>span:first-child strong,.behavior-subject-row>span:first-child small{display:block}
.behavior-subject-row>span:first-child strong{font-size:11px}
.behavior-subject-row>span:first-child small{margin-top:3px;color:#75899c;font-size:9px;line-height:1.4}
.behavior-subject-score{display:flex;align-items:baseline;gap:5px;min-width:58px;justify-content:flex-end}
.behavior-subject-score b{font-size:19px}
.behavior-subject-score em{font-style:normal;font-size:9px;font-weight:900;color:#7d8fa1}
.behavior-subject-score em.positive{color:var(--hub-green)}
.behavior-subject-score em.negative{color:var(--hub-red)}
.behavior-timeline-head{display:flex;justify-content:space-between;align-items:end;gap:10px;padding:4px 0 8px}
.behavior-timeline-head strong,.behavior-timeline-head small{display:block}
.behavior-timeline-head strong{font-size:11px;color:var(--hub-navy)}
.behavior-timeline-head small{margin-top:2px;font-size:8px;color:#75899c}
.behavior-timeline-head select{min-width:140px;height:38px;border:1px solid #d6e3ed;border-radius:12px;background:#fff;padding:0 9px;color:var(--hub-navy);font-size:10px;font-weight:800}
@media(max-width:560px){
  .behavior-subject-list{max-height:340px}
  .behavior-subject-row{min-height:58px}
  .behavior-subject-row>span:first-child strong{font-size:12px}
  .behavior-subject-row>span:first-child small{font-size:10px}
  .behavior-timeline-head{align-items:center}
  .behavior-timeline-head select{min-width:126px;max-width:48%}
}

/* 1.2.7 · KRUART child experience elevation */
body.hub-v1{
  --hub-navy:#0b3d91;--hub-blue:#176de5;--hub-blue-2:#3d91ec;--hub-orange:#ff7a00;
  --hub-ink:#11325f;--hub-muted:#657d99;--hub-line:#dbe8f4;--hub-bg:#f5faff;
  --hub-shadow:0 8px 24px rgba(20,61,117,.09);--hub-shadow-soft:0 5px 14px rgba(20,61,117,.043);
  background:
    radial-gradient(circle at 90% 2%,rgba(23,109,229,.05),transparent 22rem),
    radial-gradient(circle at 8% 14%,rgba(255,122,0,.035),transparent 18rem),
    #f5faff!important;color:#11325f!important;
  font-family:"Noto Sans Thai","Sarabun","Leelawadee UI",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif
}
.hub-topbar{
  min-height:82px;background:rgba(255,255,255,.97)!important;border-bottom:1px solid #dbe8f4!important;
  box-shadow:0 3px 14px rgba(20,61,117,.04)!important;backdrop-filter:blur(18px)
}
.hub-topbar .product-logo{height:54px}
.hub-nav{gap:2px}
.hub-nav-item{
  min-height:54px;padding:0 11px;border-radius:12px 12px 0 0;color:#183d70;font-size:12px;font-weight:850;
  transition:background 180ms cubic-bezier(.2,.8,.2,1),color 180ms cubic-bezier(.2,.8,.2,1),transform 180ms cubic-bezier(.2,.8,.2,1)
}
.hub-nav-item:hover{background:#f7fbff;color:#0b3d91;transform:translateY(-1px)}
.hub-nav-item.active{background:#eaf5ff;color:#0b3d91;box-shadow:inset 0 -3px 0 #176de5}
.nav-badge{font-size:10px;background:#ff7a00}
.teacher-entry{
  min-height:44px;border-color:#c7dcec;border-radius:13px;color:#0b3d91;box-shadow:0 5px 14px rgba(20,61,117,.043);
  transition:background 180ms cubic-bezier(.2,.8,.2,1),border-color 180ms cubic-bezier(.2,.8,.2,1),transform 180ms cubic-bezier(.2,.8,.2,1)
}
.teacher-entry:hover{background:#f7fbff;border-color:#a9c8e4}
.profile-button{border:1px solid #dbe8f4;background:#fff;padding:5px 8px;border-radius:15px;box-shadow:0 5px 14px rgba(20,61,117,.04)}
.profile-button small{font-size:10px;color:#657d99}.profile-button strong{font-size:12px;color:#11325f}
.friends-button{min-height:44px;border-color:#dbe8f4;border-radius:13px;color:#0b3d91}
.hub-shell{width:min(1392px,calc(100% - 48px));margin:14px auto 42px}
.hub-card{border-color:#dbe8f4;border-radius:18px;box-shadow:0 7px 20px rgba(20,61,117,.07);background:#fff}
.section-heading h2{color:#11325f;font-weight:850}.section-heading p:not(.section-kicker){color:#657d99}
.section-kicker,.eyebrow{color:#e96900;font-size:10.5px;font-weight:900;letter-spacing:.055em}
.text-button{color:#176de5;font-size:11px}
.primary-button,.hero-cta{
  min-height:44px;border-radius:13px;background:#0b3d91;color:#fff;box-shadow:0 8px 18px rgba(11,61,145,.18);
  transition:transform 180ms cubic-bezier(.2,.8,.2,1),box-shadow 180ms cubic-bezier(.2,.8,.2,1),background 180ms cubic-bezier(.2,.8,.2,1)
}
.primary-button:hover,.hero-cta:hover{background:#082f73;transform:translateY(-1px);box-shadow:0 10px 22px rgba(11,61,145,.22)}
.login-stage{border-radius:24px;border-color:#cfe3f4;box-shadow:0 8px 24px rgba(20,61,117,.09)}
.child-welcome{background:linear-gradient(145deg,var(--class-a),#f8fcff 48%,var(--class-b))}
.child-welcome .login-stage-copy h1{color:#11325f}
.child-welcome .login-stage-copy>p:not(.eyebrow){color:#526f8d}
.child-pills span{font-size:10.5px;border-color:rgba(255,255,255,.92);box-shadow:0 5px 14px rgba(20,61,117,.043)}
.welcome-school-mark{
  font-size:10px;color:#526f8d;border-radius:13px;box-shadow:0 5px 14px rgba(20,61,117,.043)
}
.login-panel{border-radius:22px!important;border:1px solid #dbe8f4!important;box-shadow:0 7px 20px rgba(20,61,117,.07)!important;background:#fff!important}
.login-panel .section-heading h2{color:#11325f}
.child-class-card{
  border-radius:18px;box-shadow:0 7px 20px rgba(20,61,117,.07);
  transition:transform 180ms cubic-bezier(.2,.8,.2,1),box-shadow 180ms cubic-bezier(.2,.8,.2,1)
}
.child-class-card:hover,.child-class-card:focus-visible{transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,61,117,.12);outline:3px solid rgba(23,109,229,.14)}
.class-card-footer{
  min-height:38px;padding:7px 9px;border-radius:12px;background:rgba(11,61,145,.84);
  box-shadow:0 5px 14px rgba(20,61,117,.12)
}
.class-card-footer small{font-size:10px!important;line-height:1.3}
.class-card-footer b{width:23px;height:23px;border-radius:8px}
.selected-class-banner{border-color:#dbe8f4;border-radius:14px;background:#f7fbff}
.selected-class-banner small{font-size:10px;color:#657d99}
.student-card-select{border-color:#dbe8f4;border-radius:14px;box-shadow:0 5px 14px rgba(20,61,117,.035)}
.student-card-select:hover{border-color:#bad6ec;box-shadow:0 5px 14px rgba(20,61,117,.06)}
.student-card-select strong{font-size:11.5px;color:#11325f}.student-card-select small{font-size:10px;color:#657d99}
.login-method-card{border-color:#dbe8f4;border-radius:18px;box-shadow:0 7px 20px rgba(20,61,117,.07)}
.login-method-card:hover,.login-method-card:focus-visible{border-color:#9fc8e8;box-shadow:0 10px 24px rgba(20,61,117,.10)}
.login-method-card strong{font-size:16px;color:#11325f}.login-method-card small{font-size:11px;color:#657d99}
.login-method-card b{background:#eaf5ff;color:#176de5}
.cloud-login-copy{border-color:#dbe8f4;border-radius:18px;background:linear-gradient(145deg,#f7fbff,#fff)}
.cloud-login-copy h3{color:#11325f}.cloud-login-copy p{color:#657d99}
.birthday-fields label,.cloud-login label{font-size:11px;color:#11325f}
.birthday-fields select,.birthday-fields input,.qr-manual input{border-color:#c7dcec!important;border-radius:13px!important;background:#fff!important;color:#11325f!important}
.birthday-fields select:focus,.birthday-fields input:focus,.qr-manual input:focus{border-color:#7eb6ea!important;box-shadow:0 0 0 4px rgba(23,109,229,.09)!important}
.qr-start{min-height:52px;border-color:#c7dcec;border-radius:13px;color:#0b3d91}
.child-login-cta{min-height:54px;border-radius:13px;background:#0b3d91;box-shadow:0 8px 18px rgba(11,61,145,.18)}
.home-hero{
  min-height:320px;border-radius:24px;border-color:#cfe3f4;box-shadow:0 8px 24px rgba(20,61,117,.09);
  background:linear-gradient(135deg,var(--class-a),#f8fcff 54%,var(--class-b))
}
.home-hero-copy h1{color:#11325f}.home-hero-copy>p:not(.eyebrow){color:#526f8d}
.home-hero-status{font-size:10px;color:#526f8d;box-shadow:0 5px 14px rgba(20,61,117,.043)}
.summary-card{border-color:#dbe8f4;border-radius:18px;box-shadow:0 7px 20px rgba(20,61,117,.07)}
.summary-card:hover{box-shadow:0 10px 24px rgba(20,61,117,.10)}
.summary-card small{font-size:10px;color:#657d99}.summary-card em{font-size:10px;color:#657d99}
.summary-card strong{color:#11325f}
.next-work-card{border-radius:18px}
.subject-score-card{border-radius:18px;box-shadow:0 5px 14px rgba(20,61,117,.043)}
.work-copy small,.work-result span,.friend-mini small,.friend-progress,.behavior-mini-copy span,.lesson-mini-card small,.lesson-mini-card span,.work-chip{font-size:10px!important;line-height:1.4!important}
.friend-stage{font-size:10px!important}
.file-card small,.media-card small,.folder-file small,.folder-row small{font-size:10px!important}
.help-drawer small,.help-panel small,.help-copy small,.help-copy p{font-size:10px!important;line-height:1.4!important}
body.hub-v1 :focus-visible{outline:3px solid rgba(23,109,229,.28);outline-offset:2px}
@media(max-width:1180px){
  .hub-shell{width:calc(100% - 24px)}
  .hub-topbar{min-height:78px}
}
@media(max-width:900px){
  .hub-topbar{min-height:64px!important;height:auto;padding-left:10px;padding-right:10px}
  .hub-shell{width:calc(100% - 14px);margin-top:8px}
  .child-welcome{border-radius:20px}
  .login-panel{border-radius:18px!important}
  .class-card-footer{min-height:36px;padding:6px 8px;border-radius:11px}
  .class-card-footer small{font-size:10px!important}
  .hub-nav{
    left:7px;right:7px;bottom:max(7px,env(safe-area-inset-bottom));padding:6px;border:1px solid #dbe8f4;
    border-radius:18px;background:rgba(255,255,255,.985);box-shadow:0 -8px 24px rgba(20,61,117,.08)
  }
  .hub-nav-item{min-height:54px;border-radius:12px;font-size:10px}
  .hub-nav-item span{font-size:10px!important}
  .hub-nav-item.active{border-radius:12px;background:#eaf5ff;box-shadow:inset 0 0 0 1px #d6e8f6}
}
@media(max-width:560px){
  .child-welcome .login-stage-copy>p:not(.eyebrow){font-size:12px;line-height:1.55}
  .child-pills span{font-size:10px;padding:6px 8px}
  .welcome-school-mark{font-size:10px}
  .class-card-footer{min-height:38px;padding:7px 8px}
  .class-card-footer small{font-size:10px!important}
  .selected-class-banner small,.student-card-select small{font-size:10px}
  .home-hero{border-radius:20px}
  .home-hero-copy>p:not(.eyebrow){font-size:12px}
  .summary-card{border-radius:15px}
  .summary-card small{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){
  body.hub-v1 *,body.hub-v1 *:before,body.hub-v1 *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* 1.2.7b · child readability closure */
.next-work-score span,.help-card small{font-size:10px!important;line-height:1.4!important}
.friends-dots{font-size:10px!important}

/* ============================================================
   BAY Computer Lab 1.3 — Student Progress Experience
   ============================================================ */
.term-badge{display:inline-flex;align-items:center;min-height:34px;margin-top:12px;padding:7px 11px;border:1px solid rgba(17,50,95,.10);border-radius:999px;background:rgba(255,255,255,.72);color:#456784;font-size:13px;font-weight:800}
.progress-overview{display:grid;grid-template-columns:minmax(0,1.15fr) 190px minmax(250px,.8fr) minmax(250px,.8fr);gap:12px;align-items:stretch;margin-bottom:18px;padding:16px;border:1px solid #dbe8f4;border-radius:24px;background:linear-gradient(135deg,#f5fbff,#fff 55%,#fff7ed);box-shadow:0 8px 22px rgba(20,61,117,.06)}
.progress-overview-copy{padding:8px 6px}.progress-overview-copy h2{margin:4px 0 12px;color:#11325f;font-size:22px}.freshness-pill{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eaf8f1;color:#247250;font-size:13px;font-weight:800}.freshness-pill.stale{background:#fff3df;color:#8a5c18}
.progress-score,.progress-story,.latest-feedback{border:1px solid #e0eaf3;border-radius:18px;background:#fff;padding:14px}.progress-score{display:flex;flex-direction:column;justify-content:center;text-align:center}.progress-score strong{font-size:38px;color:#11325f;line-height:1}.progress-score span,.progress-score small{margin-top:6px;color:#647d96;font-size:13px}.progress-story,.latest-feedback{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center}.progress-story>span,.latest-feedback>span{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#eef7ff;font-size:21px}.progress-story strong,.progress-story small,.latest-feedback strong,.latest-feedback small{display:block}.progress-story strong,.latest-feedback strong{color:#11325f;font-size:14px}.progress-story small,.latest-feedback small{margin-top:4px;color:#647d96;font-size:13px;line-height:1.45}.subject-heading{margin:0 2px 10px}.subject-heading h2{margin-top:3px}
.subject-score-card{appearance:none;width:100%;text-align:left;cursor:pointer;font:inherit;position:relative}.subject-score-card:hover,.subject-score-card:focus-visible{transform:translateY(-2px);border-color:#9cc7e9;box-shadow:0 12px 26px rgba(20,61,117,.10);outline:none}.subject-score-card>span{font-size:14px!important}.subject-score-card>strong{font-size:31px!important}.subject-score-card>small{font-size:13px!important;line-height:1.45}.subject-score-card .subject-points{color:#395f82;font-weight:800;margin-bottom:3px}.subject-score-card>em{display:block;margin-top:10px;color:#176de5;font-size:13px;font-style:normal;font-weight:900}
.subject-dialog{width:min(820px,calc(100% - 24px));max-height:min(86vh,820px);padding:0;border:0;border-radius:26px;box-shadow:0 28px 70px rgba(17,50,95,.26);color:#11325f}.subject-dialog::backdrop{background:rgba(9,29,53,.45);backdrop-filter:blur(4px)}.subject-dialog form{position:relative;padding:24px;overflow:auto;max-height:86vh}.subject-dialog h2{margin:4px 0 16px;font-size:28px}.subject-dialog-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}.subject-dialog-summary>div{padding:13px;border-radius:16px;background:#f4f9fd}.subject-dialog-summary small,.subject-dialog-summary strong{display:block}.subject-dialog-summary small{font-size:12px;color:#6c8298}.subject-dialog-summary strong{margin-top:3px;font-size:21px}.subject-dialog-trend{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:center;margin:12px 0 16px;padding:13px;border:1px solid #dce9f4;border-radius:17px;background:#fffaf2}.subject-dialog-trend>span{font-size:26px}.subject-dialog-trend strong,.subject-dialog-trend small{display:block}.subject-dialog-trend strong{font-size:14px}.subject-dialog-trend small{margin-top:3px;font-size:13px;color:#687e94}
.more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.more-card{display:grid;grid-template-columns:58px minmax(0,1fr) 30px;gap:12px;align-items:center;min-height:110px;padding:18px;border:1px solid #dbe8f4;border-radius:22px;background:#fff;text-align:left;color:#11325f;cursor:pointer;box-shadow:0 7px 20px rgba(20,61,117,.06)}.more-card:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(20,61,117,.10)}.more-card>span{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#eef7ff;font-size:28px}.more-card strong,.more-card small{display:block}.more-card strong{font-size:16px}.more-card small{margin-top:4px;color:#667e96;font-size:13px;line-height:1.45}.more-card>b{font-size:20px;color:#176de5}
.privacy-shield{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(8,26,47,.70);backdrop-filter:blur(14px)}.privacy-shield.hidden{display:none}.privacy-card{width:min(460px,100%);padding:30px;border-radius:28px;background:#fff;text-align:center;box-shadow:0 28px 70px rgba(0,0,0,.24)}.privacy-lock{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 12px;border-radius:22px;background:#eef6ff;font-size:34px}.privacy-card h2{margin:5px 0 9px;color:#11325f;font-size:26px}.privacy-card>p:not(.section-kicker){margin:0 0 18px;color:#647d96;font-size:14px;line-height:1.6}.privacy-card .primary-button{width:100%;min-height:52px}.privacy-locked .hub-shell,.privacy-locked .hub-topbar{filter:blur(9px);pointer-events:none;user-select:none}
#panel-grades .work-copy strong,#panel-work .work-copy strong{font-size:14px}.work-copy small,.work-result span,.work-feedback,.behavior-event small,.behavior-panel .section-heading p:not(.section-kicker){font-size:12px!important;line-height:1.45!important}.work-result strong{font-size:16px}.work-stat-grid small,.work-stat-grid span{font-size:12px}.work-stat-grid strong{font-size:28px}.behavior-event strong{font-size:13px}.behavior-points{font-size:14px}.behavior-score{font-size:20px;color:#637d96}.behavior-ring strong{font-size:25px}.summary-card small,.summary-card em{font-size:12px}.summary-card strong{font-size:26px}
@media(max-width:1180px){.progress-overview{grid-template-columns:1fr 180px}.progress-story,.latest-feedback{grid-column:auto}.more-grid{grid-template-columns:1fr}.subject-score-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.progress-overview{grid-template-columns:1fr}.progress-score{text-align:left}.subject-dialog-summary{grid-template-columns:1fr}.more-card{grid-template-columns:50px 1fr 24px}.more-card>span{width:50px;height:50px}.subject-score-grid{grid-template-columns:1fr 1fr}.hub-nav-item span{font-size:11px!important}}
@media(max-width:430px){.subject-score-grid{grid-template-columns:1fr}.progress-overview{padding:12px;border-radius:20px}.progress-overview-copy h2{font-size:19px}.subject-dialog form{padding:19px}.term-badge{font-size:12px}}

/* 1.3.0 mobile student shell closure */
@media(max-width:900px){
  .hub-topbar{min-height:60px!important;padding:6px 9px!important}
  .hub-topbar .product-logo{height:42px!important}
  body[data-authenticated] .friends-button{display:none!important}
  body[data-authenticated] .top-actions{margin-left:auto}
  body[data-authenticated] .profile-button{min-width:44px;min-height:44px;padding:4px!important;justify-content:center}
  .hub-nav{position:fixed!important;top:auto!important;left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;z-index:120!important;display:flex;overflow:visible!important;gap:4px!important;padding:6px!important;border:1px solid #dbe8f4!important;border-radius:20px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 12px 34px rgba(17,50,95,.18)!important;backdrop-filter:blur(18px)}
  .hub-nav-item{display:flex!important;flex:1 1 0!important;min-width:0!important;min-height:58px!important;padding:5px 2px!important;border-radius:14px!important;flex-direction:column!important;justify-content:center!important;gap:2px!important}
  .hub-nav-item span{display:block!important;max-width:100%;font-size:11px!important;line-height:1.2!important;white-space:nowrap;overflow:visible;text-overflow:clip}
  .hub-nav-item img{width:23px!important;height:23px!important}
  .hub-nav-item.learnlab-nav img{width:25px!important;height:25px!important}
  .hub-nav-item.active{box-shadow:inset 0 0 0 1px #d6e8f6!important}
  .nav-badge{right:8%!important;top:2px!important}
  .hub-shell{padding-bottom:92px!important}
}
@media(max-width:430px){
  .hub-nav{left:6px!important;right:6px!important;padding:5px!important;gap:2px!important}
  .hub-nav-item{min-height:56px!important}
  .hub-nav-item span{font-size:10px!important}
}

@media(max-width:900px){
  .hub-topbar{backdrop-filter:none!important}
}

/* 1.3.1 Student score visual hotfix */
@media(max-width:820px){.subject-score-grid{grid-template-columns:1fr}}

/* ============================================================
   1.4.0 · Student Task-First UX
   One screen, one decision: what should I do next?
   ============================================================ */
.student-compat-hidden{display:none!important}
.kid-start-card{position:relative;min-height:245px;margin-bottom:14px;overflow:hidden;border:1px solid #cfe2f3;border-radius:26px;background:linear-gradient(135deg,#eef8ff 0%,#fff 56%,#fff4e8 100%);box-shadow:0 9px 26px rgba(20,61,117,.08)}
.kid-start-copy{position:relative;z-index:2;width:64%;padding:32px 34px}.kid-start-copy h1{margin:5px 0 7px;color:#11325f;font-size:clamp(32px,3.6vw,48px);line-height:1.05}.kid-start-copy>p:not(.eyebrow){max-width:650px;margin:0;color:#4e6d89;font-size:16px;line-height:1.55}.kid-start-art{position:absolute;right:-1%;bottom:-9%;width:39%;height:112%}.kid-start-art img{width:100%;height:100%;object-fit:contain;object-position:center bottom}.kid-primary-action{display:inline-flex;align-items:center;gap:18px;min-height:52px;margin-top:16px;padding:0 20px;border:0;border-radius:15px;background:#0b3d91;color:#fff;font-weight:900;cursor:pointer;box-shadow:0 10px 22px rgba(11,61,145,.20)}.kid-primary-action b{font-size:20px}
.kid-glance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.kid-glance-card{display:grid;grid-template-columns:56px 1fr;gap:13px;align-items:center;min-height:108px;padding:17px;border:1px solid #d9e7f2;border-radius:20px;background:#fff;text-align:left;color:#11325f;cursor:pointer;box-shadow:0 6px 18px rgba(20,61,117,.05)}.kid-glance-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(20,61,117,.09)}.kid-glance-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#edf7ff;font-size:25px;font-weight:950}.kid-glance-card.missing .kid-glance-icon{background:#fff0ee;color:#c74343}.kid-glance-card.score .kid-glance-icon{background:#fff6df;color:#c78000}.kid-glance-card small,.kid-glance-card strong,.kid-glance-card em{display:block}.kid-glance-card small{font-size:13px;font-weight:900;color:#59748e}.kid-glance-card strong{margin-top:1px;font-size:31px;line-height:1;color:#0b3d91}.kid-glance-card em{margin-top:5px;font-size:12px;font-style:normal;color:#70869a;line-height:1.35}
.kid-next-section{margin-bottom:14px;padding:20px;border:1px solid #d7e6f2;border-radius:22px;background:#fff;box-shadow:0 7px 20px rgba(20,61,117,.06)}.kid-section-head,.kid-work-board-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:13px}.kid-section-head small,.kid-work-board-head small{color:#e96900;font-size:12px;font-weight:900}.kid-section-head h2,.kid-work-board-head h2{margin:2px 0 0;color:#11325f;font-size:22px}.kid-next-card{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;min-height:122px;padding:18px!important;border:1px solid #dce8f2!important;border-left-width:6px!important;background:#fbfdff!important}.kid-next-card.state-todo{border-left-color:#f2a13a!important}.kid-next-card.state-missing{border-left-color:#d24c4c!important}.kid-next-card.state-waiting{border-left-color:#3687dd!important}.kid-next-card.state-graded{border-left-color:#2f9a6b!important}.kid-next-status span,.kid-state-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 11px;border-radius:999px;font-size:12px;font-weight:900}.kid-next-card.state-todo .kid-next-status span,.kid-state-badge.todo{background:#fff4e5;color:#9a5b0c}.kid-next-card.state-missing .kid-next-status span,.kid-state-badge.missing{background:#fff0f0;color:#b73838}.kid-next-card.state-waiting .kid-next-status span,.kid-state-badge.waiting{background:#edf6ff;color:#236db7}.kid-next-card.state-graded .kid-next-status span,.kid-state-badge.graded{background:#eaf8f0;color:#24754f}.kid-next-copy small{display:block;color:#607d97;font-size:13px}.kid-next-copy h3{margin:4px 0;color:#11325f;font-size:21px}.kid-next-copy p{margin:0;color:#536f89;font-size:14px;line-height:1.45}.kid-next-score{text-align:right}.kid-next-score small,.kid-next-score strong{display:block}.kid-next-score small{font-size:12px;color:#70869a}.kid-next-score strong{font-size:26px;color:#0b3d91}.kid-done-state{display:flex;gap:12px;align-items:center}.kid-done-state>span{font-size:30px}.kid-done-state strong,.kid-done-state small{display:block}.kid-done-state small{margin-top:3px;color:#6d8398}
.kid-today-section{margin-top:0}
.kid-work-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px;padding:22px 24px;border:1px solid #d9e7f2;border-radius:22px;background:#fff;box-shadow:0 7px 20px rgba(20,61,117,.05)}.kid-work-title h1{margin:2px 0 4px;color:#11325f;font-size:30px}.kid-work-title p:not(.section-kicker){margin:0;color:#5d7892;font-size:14px}.kid-score-shortcut{min-width:160px;padding:13px 16px;border:1px solid #d5e4f0;border-radius:17px;background:#f8fbff;color:#11325f;text-align:left;cursor:pointer}.kid-score-shortcut small,.kid-score-shortcut strong,.kid-score-shortcut span{display:block}.kid-score-shortcut small{font-size:11px;color:#698198}.kid-score-shortcut strong{margin:1px 0;font-size:27px;color:#0b3d91}.kid-score-shortcut span{font-size:11px;color:#176de5;font-weight:900}
.kid-work-status{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.kid-work-status article{padding:16px 18px;border:1px solid #dce8f2;border-radius:18px;background:#fff}.kid-work-status span,.kid-work-status strong,.kid-work-status small{display:block}.kid-work-status span{font-size:13px;font-weight:900}.kid-work-status strong{margin:2px 0;font-size:30px;color:#11325f}.kid-work-status small{font-size:12px;color:#70869a}.kid-work-status .missing{border-left:5px solid #d24c4c}.kid-work-status .today{border-left:5px solid #efa23e}.kid-work-status .waiting{border-left:5px solid #3687dd}
.kid-work-filter-bar{display:grid;grid-template-columns:auto 1fr minmax(160px,220px);gap:14px;align-items:center;margin-bottom:14px;padding:13px 15px;border:1px solid #dce8f2;border-radius:18px;background:#fff}.kid-filter-question strong,.kid-filter-question small{display:block}.kid-filter-question strong{font-size:14px;color:#11325f}.kid-filter-question small{font-size:11px;color:#7a8fa2}.kid-segmented{display:flex;gap:7px;padding:0;background:transparent}.kid-segmented button{min-height:43px;padding:0 15px;border:1px solid #dce8f2;border-radius:13px;background:#f8fbfe;color:#56738d;font-size:13px;font-weight:900;cursor:pointer}.kid-segmented button.active{border-color:#0b3d91;background:#0b3d91;color:#fff;box-shadow:0 6px 14px rgba(11,61,145,.16)}.kid-subject-filter{display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:center;color:#647f98;font-size:11px;font-weight:900}.kid-subject-filter select{width:100%;min-height:43px;padding:0 10px;border:1px solid #d6e4f0;border-radius:13px;background:#fff;color:#11325f;font-size:13px;font-weight:800}
.kid-work-board{padding:20px;border:1px solid #dce8f2;border-radius:22px;background:#fff;box-shadow:0 7px 20px rgba(20,61,117,.05)}.kid-work-board-head>span{padding:6px 10px;border-radius:999px;background:#eef6fc;color:#55748f;font-size:12px;font-weight:900}.kid-work-list{display:grid;gap:9px}.kid-work-row{position:relative;display:grid!important;grid-template-columns:50px minmax(0,1fr) minmax(145px,auto)!important;align-items:center;gap:14px;min-height:104px;padding:14px 16px!important;border:1px solid #dce8f2!important;border-left-width:5px!important;border-radius:17px!important;background:#fff!important}.kid-work-row.state-todo{border-left-color:#efa23e!important}.kid-work-row.state-missing{border-left-color:#d24c4c!important;background:#fffdfd!important}.kid-work-row.state-waiting{border-left-color:#3687dd!important}.kid-work-row.state-graded{border-left-color:#2f9a6b!important}.kid-work-row .work-kind{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#eff7fd;color:#0b3d91;font-size:17px;font-weight:950}.kid-work-row .work-copy{min-width:0}.kid-row-badges{margin-bottom:4px}.kid-work-row .work-copy>strong{display:block;font-size:16px!important;line-height:1.3;color:#11325f}.kid-work-row .work-copy>small{display:block;margin-top:4px;font-size:13px!important;color:#70869a!important}.kid-work-row .work-result{text-align:right}.kid-work-row .work-result strong{display:block;font-size:16px!important;color:#0b3d91}.kid-work-row .work-result span{display:block;margin-top:3px;font-size:12px!important;color:#70869a!important}.kid-action-word{font-size:14px!important}.state-missing .kid-action-word{color:#b73838!important}.state-todo .kid-action-word{color:#9a5b0c!important}.state-waiting .kid-action-word{color:#236db7!important}.kid-empty-work{display:flex;align-items:center;justify-content:center;gap:12px;min-height:145px;padding:24px;border:1px dashed #cdddea;border-radius:17px;background:#f9fcff;text-align:left}.kid-empty-work>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#eaf8f0;color:#24754f;font-size:22px;font-weight:950}.kid-empty-work strong,.kid-empty-work small{display:block}.kid-empty-work strong{color:#11325f;font-size:16px}.kid-empty-work small{margin-top:3px;color:#70869a;font-size:12px}
@media(max-width:980px){.kid-start-copy{width:72%;padding:28px}.kid-start-art{width:42%}.kid-work-filter-bar{grid-template-columns:1fr}.kid-filter-question{display:none}.kid-segmented{overflow-x:auto}.kid-subject-filter{grid-template-columns:45px 1fr;max-width:340px}.kid-work-row{grid-template-columns:46px minmax(0,1fr) minmax(120px,auto)!important}}
@media(max-width:700px){.kid-start-card{min-height:225px}.kid-start-copy{width:78%;padding:24px 18px}.kid-start-copy h1{font-size:31px}.kid-start-copy>p:not(.eyebrow){font-size:13px}.kid-start-art{right:-12%;width:52%;opacity:.78}.kid-primary-action{min-height:50px;margin-top:13px}.kid-glance-grid{grid-template-columns:1fr}.kid-glance-card{min-height:88px;grid-template-columns:48px 1fr;padding:13px}.kid-glance-icon{width:48px;height:48px;border-radius:15px}.kid-glance-card strong{font-size:25px}.kid-next-section,.kid-work-board{padding:14px;border-radius:18px}.kid-next-card{grid-template-columns:1fr!important;gap:8px}.kid-next-status{order:0}.kid-next-copy{order:1}.kid-next-score{order:2;text-align:left}.kid-work-title{align-items:flex-start;padding:17px}.kid-work-title h1{font-size:24px}.kid-score-shortcut{min-width:125px}.kid-work-status{grid-template-columns:1fr}.kid-work-filter-bar{padding:10px}.kid-segmented{display:grid;grid-template-columns:1fr 1fr;width:100%}.kid-segmented button{padding:0 8px}.kid-subject-filter{max-width:none}.kid-work-row{grid-template-columns:44px minmax(0,1fr)!important;gap:10px;min-height:112px;padding:12px!important}.kid-work-row .work-result{grid-column:2;text-align:left;padding-top:2px}.kid-work-board-head{align-items:flex-start}.kid-work-board-head h2{font-size:18px}}
@media(max-width:430px){.kid-start-art{display:none}.kid-start-copy{width:100%}.kid-work-title{display:grid;grid-template-columns:1fr}.kid-score-shortcut{width:100%;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px}.kid-score-shortcut strong{font-size:23px}.kid-score-shortcut span{text-align:right}.kid-section-head{align-items:flex-start}.kid-section-head h2{font-size:19px}}

/* 1.5.0 live-class + actionable work */
.child-class-card{position:relative}.child-class-card.active-class{outline:3px solid rgba(23,109,229,.22);box-shadow:0 16px 34px rgba(11,61,145,.13)}
.active-class-badge{position:absolute;top:10px;right:10px;z-index:2;padding:6px 10px;border-radius:999px;background:#e7f7ee;color:#147443;font-size:12px;font-weight:900;font-style:normal;box-shadow:0 4px 14px rgba(20,116,67,.12)}
.kid-work-launch{margin-top:7px;min-height:36px;padding:7px 12px;border:0;border-radius:11px;background:#176de5;color:#fff;font:inherit;font-size:13px;font-weight:850;cursor:pointer}
.kid-work-launch:hover{filter:brightness(.98)}.kid-work-launch:focus-visible{outline:3px solid rgba(23,109,229,.24);outline-offset:2px}

/* 1.5.0 Classroom Session + actionable work */
.child-class-card{position:relative}.active-class-badge{position:absolute;top:10px;right:10px;z-index:2;padding:6px 9px;border-radius:999px;background:#e7f7ee;color:#147443;font-size:11px;font-style:normal;font-weight:900;box-shadow:0 4px 14px rgba(20,116,67,.12)}
.child-class-card.active-class{outline:3px solid rgba(23,109,229,.16);box-shadow:0 14px 34px rgba(17,50,95,.12)}
.kid-work-launch{margin-top:7px;min-height:36px;padding:7px 11px;border:1px solid #c9dcf3;border-radius:12px;background:#f5faff;color:#0b3d91;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.kid-work-launch:hover,.kid-work-launch:focus-visible{background:#eaf4ff;border-color:#9fc1e8}


/* 1.5.1 Student Score Clarity */
.score-caption{order:-1;margin:0 0 4px!important;color:#4f6b86!important;font-size:12px!important;font-weight:900}
.score-next-action{appearance:none;width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 20px;gap:11px;align-items:center;border:1px solid #cfe2f3;border-radius:18px;background:#fff;padding:14px;text-align:left;color:#11325f;cursor:pointer;font:inherit;box-shadow:0 6px 18px rgba(20,61,117,.05)}
.score-next-action:hover,.score-next-action:focus-visible{transform:translateY(-2px);border-color:#91bfe4;box-shadow:0 11px 24px rgba(20,61,117,.10);outline:none}
.score-next-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#fff3df;font-size:24px}
.score-next-action small,.score-next-action strong,.score-next-action em{display:block}
.score-next-action small{font-size:12px;color:#6d8298}.score-next-action strong{margin:2px 0;color:#11325f;font-size:17px}.score-next-action em{font-size:12px;color:#55718c;font-style:normal;line-height:1.4}.score-next-action>b{font-size:20px;color:#176de5}
.score-explain{margin:-7px 2px 18px;padding:10px 13px;border-radius:14px;background:#f7fbff;color:#56718b;font-size:12px;line-height:1.5}
.grades-layout-score-only{grid-template-columns:1fr}
.subject-score-label{margin-top:7px!important;color:#6b8298!important;font-size:11px!important;font-weight:800}
#panel-behavior .behavior-panel{max-width:980px}
@media(max-width:700px){.score-next-action{grid-template-columns:44px minmax(0,1fr) 18px;padding:12px}.score-next-icon{width:44px;height:44px}.score-explain{font-size:12px}.subject-dialog-summary{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.subject-dialog-summary{grid-template-columns:1fr}.score-next-action strong{font-size:16px}}


/* 1.5.2 Student Home Focus */
.kid-home-intro{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.35fr);gap:14px;margin-bottom:12px;align-items:stretch}
.kid-home-welcome{position:relative;min-height:220px;overflow:hidden;border:1px solid #d6e5f1;border-radius:24px;background:linear-gradient(145deg,#eef8ff 0%,#fff 60%,#fff5e9 100%);box-shadow:0 8px 24px rgba(20,61,117,.065)}
.kid-home-welcome-copy{position:relative;z-index:2;width:66%;padding:30px 26px}
.kid-home-welcome h1{margin:5px 0 9px;color:#11325f;font-size:clamp(28px,2.5vw,34px);line-height:1.14;overflow-wrap:anywhere}
.kid-home-welcome p:not(.eyebrow){margin:0;color:#55728d;font-size:14px;line-height:1.5}
.home-session-badge{margin-top:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kid-home-art{position:absolute;right:1%;bottom:0;width:48%;height:94%;display:flex;align-items:flex-end;justify-content:flex-end;overflow:hidden;pointer-events:none}
.kid-home-art img{flex:0 0 64%;width:64%;height:100%;object-fit:contain;object-position:center bottom}.kid-home-art img+img{margin-left:-28%}
/* The hero belongs to the signed-in pupil, not to decorative stock students. */
.kid-home-art.student-portrait{right:2%;bottom:10px;width:min(30%,172px);height:calc(100% - 20px);align-items:center;justify-content:center;border-radius:22px;background:linear-gradient(135deg,#e8f5ff,#fff2e7);box-shadow:inset 0 0 0 1px rgba(125,171,207,.2)}
.kid-home-art.student-portrait img.home-student-photo{flex:none;width:100%;height:100%;border-radius:22px;object-fit:cover;object-position:center;transform:none}
.kid-home-art.student-portrait .home-student-initial{display:grid;place-items:center;width:100%;height:100%;font-size:clamp(48px,8vw,94px);font-weight:900;line-height:1;color:#0b3d91}
@media(max-width:700px){.kid-home-art.student-portrait{width:min(26%,112px);right:10px;bottom:12px;height:calc(100% - 24px)}.kid-home-art.student-portrait .home-student-initial{font-size:clamp(39px,11vw,64px)}}
.kid-focus-card{display:flex;flex-direction:column;min-height:220px;padding:18px 20px;border:1px solid #cfe0ed;border-radius:24px;background:#fff;box-shadow:0 9px 26px rgba(20,61,117,.075)}
.kid-focus-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.kid-focus-head small{display:block;color:#e46c00;font-size:12px;font-weight:900}.kid-focus-head h2{margin:2px 0 0;color:#11325f;font-size:22px}
.kid-focus-card .kid-next-card{flex:1;min-height:0!important;padding:12px 14px!important;border-top:0!important;border-right:0!important;border-bottom:0!important;border-radius:14px!important;box-shadow:none!important}
.kid-focus-card .kid-next-copy h3{font-size:20px}.kid-focus-card .kid-next-copy p{font-size:14px}
.kid-focus-action{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:48px;margin-top:10px;border:0;border-radius:14px;background:#0b3d91;color:#fff;font:inherit;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(11,61,145,.16)}
.kid-focus-action:hover,.kid-focus-action:focus-visible{filter:brightness(.98);outline:3px solid rgba(23,109,229,.18);outline-offset:2px}.kid-focus-action b{font-size:19px}
.kid-status-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}
.kid-status-card{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;min-height:76px;padding:10px 13px;border:1px solid #dae7f1;border-radius:17px;background:#fff;color:#11325f;text-align:left;font:inherit;cursor:pointer;box-shadow:0 5px 16px rgba(20,61,117,.045)}
.kid-status-card:hover,.kid-status-card:focus-visible{transform:translateY(-1px);border-color:#aacbe5;outline:none}
.kid-status-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#edf7ff;color:#0b3d91;font-size:20px;font-weight:950}.kid-status-card.missing .kid-status-icon{background:#fff0ee;color:#bd3f3f}.kid-status-card.score .kid-status-icon{background:#fff6df;color:#b97900}
.kid-status-card small,.kid-status-card strong,.kid-status-card em{display:inline}.kid-status-card small{display:block;color:#647e95;font-size:12px;font-weight:900}.kid-status-card strong{font-size:27px;line-height:1.1;color:#11325f}.kid-status-card em{margin-left:4px;color:#71869a;font-size:11px;font-style:normal}
.kid-class-now{margin-top:0;padding:17px 19px!important;border-radius:20px!important;box-shadow:0 6px 19px rgba(20,61,117,.05)!important}
@media(max-width:920px){.kid-home-intro{grid-template-columns:1fr}.kid-home-welcome{min-height:150px}.kid-home-welcome-copy{width:72%;padding:22px}.kid-home-art{right:2%;width:32%;height:96%}.kid-focus-card{min-height:0}}
@media(max-width:620px){.kid-home-intro{gap:10px;margin-bottom:10px}.kid-home-welcome{display:block;min-height:0;border-radius:19px}.kid-home-welcome-copy{width:72%;min-width:0;padding:17px 16px}.kid-home-welcome h1{font-size:clamp(24px,6.4vw,29px);line-height:1.15;overflow-wrap:anywhere}.kid-home-welcome p:not(.eyebrow){font-size:12px;line-height:1.45}.home-session-badge{margin-top:9px;min-height:30px;padding:6px 9px;font-size:11px}.kid-home-art{right:1%;width:29%;height:90%}.kid-focus-card{padding:14px;border-radius:19px}.kid-focus-head{margin-bottom:5px}.kid-focus-head h2{font-size:19px;line-height:1.2}.kid-focus-card .kid-next-card{grid-template-columns:1fr!important;padding:10px!important}.kid-focus-card .kid-next-status{margin-bottom:2px}.kid-focus-card .kid-next-copy h3{font-size:17px}.kid-focus-action{min-height:46px;margin-top:7px}.kid-status-strip{gap:8px;margin-bottom:10px}.kid-status-card{grid-template-columns:1fr;gap:4px;min-height:78px;padding:10px 5px;text-align:center}.kid-status-icon{display:none}.kid-status-card small{font-size:11px}.kid-status-card strong{font-size:24px}.kid-status-card em{display:none}.kid-class-now{padding:14px!important;border-radius:18px!important}}


/* 1.5.3 Student Header Clarity */
.hub-topbar{
  min-height:66px!important;
  height:66px!important;
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) auto minmax(150px,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 clamp(14px,2vw,28px)!important;
  background:rgba(255,255,255,.985)!important;
  border-bottom:1px solid #e0ebf4!important;
  box-shadow:0 3px 12px rgba(20,61,117,.035)!important;
}
.hub-topbar .brand{justify-self:start;gap:8px!important;min-width:0!important}
.hub-topbar .product-logo{width:auto!important;height:44px!important;max-width:92px!important;object-fit:contain!important}
.hub-topbar .school-lockup{gap:5px!important;padding-left:8px;border-left:1px solid #e2ebf2}
.hub-topbar .school-lockup>img{width:23px!important;height:28px!important}
.hub-topbar .school-lockup>small{max-width:118px!important;font-size:8.5px!important;line-height:1.25!important;color:#6b8196!important}
body[data-authenticated] .hub-topbar .school-lockup{display:none!important}
.hub-nav{justify-self:center!important;height:66px!important;align-items:center!important;gap:3px!important;overflow:visible!important}
.hub-nav-item{min-height:42px!important;padding:0 10px!important;border-radius:12px!important;gap:6px!important;font-size:11.5px!important;color:#536f8a!important}
.hub-nav-item img{width:22px!important;height:22px!important}
.hub-nav-item.learnlab-nav img{width:24px!important;height:24px!important}
.hub-nav-item.active{background:#edf6ff!important;color:#0b3d91!important;box-shadow:inset 0 0 0 1px #d7e9f7!important}
.hub-nav-item:hover{transform:none!important;background:#f5f9fd!important}
.top-actions{justify-self:end!important;display:flex!important;align-items:center!important;gap:7px!important;min-width:0}
.header-network{display:none!important}
.header-network.offline{display:inline-flex!important;min-height:38px;padding:0 10px!important}
.friends-button{display:none!important}
.teacher-entry{min-height:40px!important;padding:0 11px!important;border-radius:12px!important;box-shadow:none!important;background:#f8fbfe!important;font-size:11px!important}
.teacher-entry>span{font-size:16px}
.profile-button{min-height:44px!important;padding:4px 7px 4px 5px!important;border:1px solid #dde8f1!important;border-radius:14px!important;box-shadow:none!important;background:#fff!important}
.profile-button .mini-avatar{width:38px;height:38px;border-radius:12px}
.profile-button .mini-avatar .profile-initial{display:grid;place-items:center;width:100%;height:100%;color:#0b3d91;font-size:18px;font-weight:900}
.profile-button .mini-avatar img.profile-photo{width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
.profile-button small{font-size:9.5px!important;color:#75899d!important;line-height:1.15}
.profile-button strong{font-size:12px!important;max-width:118px!important;color:#11325f!important;line-height:1.2}
.profile-button .switch-label{padding-left:3px;font-size:9px!important;color:#6c8297!important}
@media(max-width:1180px) and (min-width:1021px){
  .hub-topbar{grid-template-columns:minmax(110px,1fr) auto minmax(110px,1fr)!important}
  .hub-nav-item span{display:inline!important}
  .hub-nav-item{padding:0 7px!important}
  .profile-button strong{max-width:92px!important}
}
@media(max-width:1020px) and (min-width:901px){
  .hub-topbar{grid-template-columns:auto 1fr auto!important}
  .hub-topbar .school-lockup{display:none!important}
  .hub-nav-item span{display:none!important}
  .hub-nav-item{padding:0 8px!important}
  .profile-button small,.switch-label{display:none!important}
}
@media(max-width:900px){
  .hub-topbar{min-height:58px!important;height:58px!important;grid-template-columns:auto 1fr auto!important;padding:5px 9px!important}
  .hub-topbar .product-logo{height:40px!important;max-width:82px!important}
  .hub-topbar .school-lockup{display:none!important}
  .teacher-entry{min-height:40px!important;padding:0 10px!important}
  body[data-authenticated] .profile-button{min-width:42px!important;min-height:42px!important;padding:3px!important;border:0!important;background:transparent!important}
  body[data-authenticated] .profile-button>span:nth-child(2),body[data-authenticated] .profile-button>b{display:none!important}
  .hub-nav{height:auto!important;left:50%!important;right:auto!important;width:min(calc(100vw - 16px),560px)!important;transform:translateX(-50%)!important;justify-self:auto!important}
}

/* Timed shared-device session */
.session-timer{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 11px;border:1px solid #b9dff7;border-radius:999px;background:#edf8ff;color:#0b3d91;font-size:12px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.session-timer.warning{background:#fff7e8;border-color:#ffd493;color:#9a5b00}.session-timer.urgent{background:#fff0ee;border-color:#ffc2b8;color:#b23b26;box-shadow:0 0 0 3px rgba(235,87,60,.08)}
@media(max-width:700px){.session-timer{min-height:34px;padding:5px 8px;font-size:11px}.header-network.online{display:none}}

/* Guided Windows shared-device pilot */
.guided-windows-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:18px 20px;border:1px solid #dbe8f4;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(17,50,95,.07)}
.guided-windows-card h2{margin:3px 0 6px;color:#11325f}.guided-windows-card p{margin:0;color:#52657c;max-width:760px}.guided-windows-card .primary-button{flex:0 0 auto;min-width:170px}
@media(max-width:700px){.guided-windows-card{align-items:stretch;flex-direction:column}.guided-windows-card .primary-button{width:100%}}

.finish-turn{min-height:38px;padding:7px 11px;border:1px solid #cfe2d4;border-radius:999px;background:#f3fbf5;color:#245c34;font-size:12px;font-weight:900;white-space:nowrap;cursor:pointer}
.finish-turn:hover{background:#eaf7ed}
@media(max-width:700px){.finish-turn{min-height:34px;padding:5px 8px;font-size:11px}}

@media(max-width:360px){.kid-home-welcome-copy{width:100%}.kid-home-art{display:none}}

.learnlab-worksheet-shortcut{margin-top:13px;padding:13px;border:1px solid #dbe9f5;border-radius:14px;background:#f7fbff;display:flex;align-items:center;justify-content:space-between;gap:12px}.learnlab-worksheet-shortcut span{display:grid;gap:4px;min-width:0}.learnlab-worksheet-shortcut strong{color:#183d73;font-size:15px}.learnlab-worksheet-shortcut small{color:#657c96;font-size:12px}.learnlab-worksheet-shortcut button{border:0;border-radius:11px;background:#174692;color:white;font-weight:800;padding:12px 16px;cursor:pointer;flex:none}@media(max-width:500px){.learnlab-worksheet-shortcut{align-items:stretch;flex-direction:column}.learnlab-worksheet-shortcut button{width:100%}}
.learnlab-worksheet-shortcut{flex-wrap:wrap}
.learnlab-assignment-list{width:100%;display:grid;gap:8px;margin-top:5px}
.learnlab-assignment-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 13px;border:1px solid #d7e8f8;border-radius:12px;background:#fff;color:#163e78;text-align:left;cursor:pointer}
.learnlab-assignment-entry strong{font-size:14px;overflow-wrap:anywhere}
.learnlab-assignment-entry small{font-size:12px;color:#2965ac;flex:none}
@media(max-width:500px){.learnlab-assignment-entry{flex-direction:column;align-items:stretch}.learnlab-assignment-entry small{text-align:right}}


/* Registered classroom stations; personal/home access does not impersonate a device. */
.station-chooser{margin:0 0 20px;padding:16px;border:1px solid #cfdfef;border-radius:18px;background:linear-gradient(135deg,#f5faff,#fffaf5)}
.station-chooser-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.station-chooser-heading span{display:grid;gap:4px}
.station-chooser-heading strong{font-size:16px;color:#163966}
.station-chooser-heading small{font-size:12px;color:#5b728b;line-height:1.55}
.station-refresh{min-height:44px;border:1px solid #c4d6e8;border-radius:12px;background:white;color:#255488;font:inherit;font-weight:700;padding:9px 12px;cursor:pointer}
.station-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.station-choice{min-width:0;min-height:108px;border:1px solid #c8daed;border-radius:14px;background:#fff;display:grid;justify-items:center;align-content:center;gap:4px;padding:13px 8px;color:#194775;cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.station-choice strong{font-size:15px}.station-choice small{font-size:11px;color:#718398;text-align:center}
.station-choice .station-monitor{font-size:23px;color:#316fc3}
.station-choice.selected{border:2px solid #0d4ba2;background:#eaf4ff}
.station-choice.occupied{opacity:.65;cursor:not-allowed;background:#f2f3f5}
.station-choice:not([disabled]):active{transform:scale(.98)}
.station-unavailable{font-size:13px;color:#8a4c20}
@media(max-width:560px){.station-chooser{padding:12px}.station-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.station-chooser-heading{align-items:start;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.station-choice{transition:none}}

/* iOS input focus: prevent involuntary Safari focus zoom, preserve accessible pinch zoom. */
@media(max-width:900px){
  body.student-ui input:not([type=checkbox]):not([type=radio]),body.student-ui select,body.student-ui textarea{font-size:16px!important}
  body.student-ui .number-dialog{max-height:calc(100dvh - 16px);overflow-y:auto}
  body.student-ui .number-dialog form{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
}


/* BAY Computer Lab · Orange Studio experience */
/* Premium school identity with task-first, real student progress and safe shared-device navigation. */
body.student-ui{
  --hub-orange:#ff7a16;--hub-blue:#ec6b11;--hub-blue-2:#ff9f40;
  --hub-ink:#19274a;--hub-navy:#19274a;--hub-bg:#f7f8fd;--hub-line:#e7e8f1;
  --hub-shadow-soft:0 8px 22px rgba(35,47,90,.08);
  color:#19274a!important;background:radial-gradient(circle at 0 0,#fff2e8 0,transparent 24rem),linear-gradient(180deg,#fafaff,#f6f7fc)!important;
  font-family:"Noto Sans Thai","Sarabun","Leelawadee UI",system-ui,-apple-system,sans-serif!important
}
body.student-ui .hub-topbar{border-bottom-color:#f0e5de!important;background:rgba(255,255,255,.975)!important}
body.student-ui .hub-card,body.student-ui .kid-focus-card,body.student-ui .kid-status-card,
body.student-ui .kid-home-welcome{
  border-color:#e6e8f2!important;box-shadow:0 9px 24px rgba(42,50,92,.075)!important
}
body.student-ui .teacher-entry{border-color:#ffe2c9!important;background:#fff7ef!important;color:#a64b0a!important}
body.student-ui .section-kicker,body.student-ui .eyebrow{color:#d95b0d!important}
body.student-ui .child-welcome{
  position:relative!important;overflow:hidden!important;background:linear-gradient(125deg,#ff6c12 0%,#ff9b33 65%,#ffcc7c 100%)!important;
  border:1px solid #ffc88f!important;border-radius:26px!important
}
body.student-ui .child-welcome .login-stage-copy h1,
body.student-ui .child-welcome .login-stage-copy>p:not(.eyebrow){color:white!important;text-shadow:0 1px 3px rgba(167,64,0,.10)}
body.student-ui .child-welcome .login-stage-copy .eyebrow{color:#fff3e6!important}
body.student-ui .child-welcome .login-feature-row span{background:rgba(255,255,255,.85)!important;border-color:rgba(255,255,255,.65)!important;color:#8f3c08!important}
body.student-ui .child-welcome .login-stage-art img{filter:drop-shadow(0 16px 27px rgba(130,42,0,.15))}
body.student-ui .login-panel{background:#fff!important;border-color:#e9e9f3!important;border-radius:24px!important}
body.student-ui .class-card{border-color:#edebef!important;background:linear-gradient(145deg,#fff,#fffaf5)!important;border-radius:19px!important}
body.student-ui .class-card:hover{border-color:#ffc28c!important;box-shadow:0 8px 22px rgba(244,111,21,.13)!important}
body.student-ui .class-badge{background:linear-gradient(135deg,#ffad42,#fa701b)!important;box-shadow:0 5px 12px rgba(249,113,19,.15)}
body.student-ui .selected-class-banner,body.student-ui .station-chooser{border-color:#ffe0c7!important;background:#fff7f0!important}
body.student-ui .station-choice.selected{border-color:#ff7a16!important;background:#fff1e5!important}
body.student-ui .kid-home-welcome{
  overflow:hidden!important;background:linear-gradient(118deg,#fa6813 0%,#ff9430 65%,#ffba59 100%)!important;
  border-radius:24px!important
}
body.student-ui .kid-home-welcome:before{content:"";position:absolute;right:-6%;bottom:-76px;width:240px;height:160px;border:20px solid rgba(255,255,255,.12);border-radius:50%;pointer-events:none}
body.student-ui .kid-home-welcome h1,
body.student-ui .kid-home-welcome p:not(.eyebrow){color:#fff!important}
body.student-ui .kid-home-welcome .eyebrow{color:#fff5e9!important}
body.student-ui .kid-home-welcome .term-badge{background:rgba(255,255,255,.93)!important;border-color:rgba(255,255,255,.76)!important;color:#a84b09!important}
body.student-ui .kid-home-art.student-portrait{border:3px solid rgba(255,255,255,.9)!important;background:linear-gradient(140deg,#fff8e9,#ffe2b9)!important;box-shadow:0 8px 22px rgba(117,45,4,.14)!important}
body.student-ui .kid-focus-card{border-top:4px solid #ff801a!important;border-radius:23px!important}
body.student-ui .kid-focus-head small{color:#dd650a!important}
body.student-ui .kid-focus-action{background:linear-gradient(110deg,#ff9b2a,#f76b13)!important;box-shadow:0 9px 20px rgba(246,101,12,.18)!important}
body.student-ui .kid-status-card{background:linear-gradient(145deg,#fff,#fffaf6)!important}
body.student-ui .kid-status-card.today .kid-status-icon{background:#fff0df!important;color:#dd6b0a!important}
body.student-ui .kid-status-card.score .kid-status-icon{background:#fff5d9!important;color:#bf7a08!important}
body.student-ui .kid-class-now{border-radius:21px!important}
body.student-ui .learnlab-worksheet-shortcut{border-color:#ffe3c9!important;background:linear-gradient(135deg,#fffaf4,#fff)!important}
body.student-ui .learnlab-worksheet-shortcut button{background:linear-gradient(125deg,#ff9122,#ed6410)!important;color:#fff}
body.student-ui .hub-nav-item.active{background:#fff0e2!important;color:#b64f08!important;box-shadow:inset 0 0 0 1px #ffd7b4!important}
body.student-ui .nav-badge{background:#ed6410!important}
body.student-ui :focus-visible{outline:3px solid rgba(255,122,22,.40)!important;outline-offset:3px!important}
body.student-ui .kid-work-overview{padding:17px;border:1px solid #e2e9f3;border-radius:22px;background:#fff;box-shadow:0 7px 19px rgba(32,48,97,.055);margin-bottom:13px}
body.student-ui .kid-work-overview-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
body.student-ui .kid-work-overview-title h2{margin:0;color:#14385f;font-size:19px;font-weight:900}
body.student-ui .kid-work-overview-title button{min-height:42px;border:0;background:transparent;color:#176de5;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
body.student-ui .kid-work-overview .kid-status-strip{margin-bottom:0!important}
@media(min-width:921px){body.student-ui .kid-work-overview{padding:16px 20px}}
@media(max-width:900px){
  body.student-ui{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
  body.student-ui .hub-nav{border-color:#f3dac7!important;background:rgba(255,255,255,.98)!important;box-shadow:0 9px 26px rgba(77,61,80,.16)!important}
  body.student-ui .teacher-entry{min-height:44px!important}
}
@media(max-width:620px){
  body.student-ui .hub-shell{width:calc(100% - 18px)!important}
  body.student-ui .child-welcome{border-radius:21px!important}
  body.student-ui .child-welcome .login-stage-copy{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box;padding:22px 16px!important}
  body.student-ui .child-welcome .login-stage-copy h1{font-size:clamp(26px,7.6vw,33px)!important;line-height:1.15!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important;max-width:100%!important}
  body.student-ui .child-welcome .login-stage-copy>p:not(.eyebrow){font-size:12px!important}
  body.student-ui .class-card{min-height:104px;border-radius:16px!important}
  body.student-ui .kid-home-welcome{background:linear-gradient(130deg,#f2f8ff,#fff 64%,#fff7ed)!important;border:1px solid #d8e7f9!important;border-radius:22px!important;min-height:184px!important;box-shadow:0 6px 19px rgba(35,67,119,.045)!important}
  body.student-ui .kid-home-welcome:before{display:none!important}
  body.student-ui .kid-home-welcome-copy{width:78%!important;padding:21px 17px!important}
  body.student-ui .kid-home-welcome .eyebrow{color:#2367c3!important;font-size:11px!important;font-weight:900}
  body.student-ui .kid-home-welcome h1{color:#12396d!important;font-size:clamp(25px,6.8vw,31px)!important;line-height:1.18!important;margin:8px 0!important}
  body.student-ui .kid-home-welcome p:not(.eyebrow){color:#6b7f9a!important;font-size:12px!important;line-height:1.5}
  body.student-ui .kid-home-welcome .term-badge{color:#b96b1e!important;background:#fff2e4!important;border:1px solid #ffe2c4!important;font-size:10.5px!important}
  body.student-ui .kid-home-art.student-portrait{right:4%!important;top:33%!important;width:58px!important;height:58px!important;border-radius:50%!important;border:2px solid #d5e6fb!important;box-shadow:0 5px 15px rgba(37,63,121,.09)!important}
  body.student-ui .kid-status-strip{padding:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.student-ui .kid-status-card{min-width:0;min-height:101px;padding:10px 7px!important;grid-template-columns:1fr!important;gap:4px!important;text-align:center;justify-items:center}
  body.student-ui .kid-status-card .kid-status-icon{display:grid!important;place-items:center;width:32px;height:32px;font-size:17px!important}
  body.student-ui .kid-status-card strong{font-size:22px!important}
  body.student-ui .kid-status-card small{font-size:10.5px!important}
  body.student-ui .kid-status-card em{display:block!important;font-size:9.5px}
  body.student-ui .kid-status-card .kid-status-icon{font-size:19px}
  body.student-ui .kid-home-intro{gap:12px!important}
  body.student-ui .kid-focus-card{border-radius:19px!important}
  body.student-ui .kid-status-strip{gap:7px!important}
  body.student-ui .kid-status-card{border-radius:15px!important}
  body.student-ui .hub-nav-item{min-height:57px!important}
  body.student-ui input:not([type=checkbox]):not([type=radio]),body.student-ui select,body.student-ui textarea{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){body.student-ui .child-welcome *,body.student-ui .kid-home-welcome *{transition:none!important;animation:none!important}}


/* 2026-11-03 | BAY Computer Lab student-facing reference redesign.
   View IDs, login verification, assignments, scores, and classroom controls remain unchanged. */
body.student-ui{
  --lab-orange:#f57919;--lab-orange-dark:#de6409;--lab-orange-pale:#fff4e8;
  --lab-line:#ebe9e6;--lab-ink:#25303b;--lab-muted:#677889;
  --lab-shadow:0 9px 26px rgba(37,49,62,.055);
  background:#f7f8fa!important;color:var(--lab-ink)!important
}
body.student-ui .hub-topbar{
  background:rgba(255,255,255,.98)!important;border-bottom:1px solid var(--lab-line)!important;
  box-shadow:0 5px 16px rgba(34,48,61,.035)!important
}
body.student-ui .hub-topbar .brand{color:#202a35!important}
body.student-ui .hub-topbar .brand-official>.product-logo{object-fit:contain!important}
body.student-ui .hub-nav-item{
  color:#576473!important;background:transparent!important;border-radius:13px!important;
  transition:background-color .16s ease,color .16s ease!important
}
body.student-ui .hub-nav-item.active{
  background:linear-gradient(130deg,#ff9335,#f47617)!important;color:#fff!important;
  border:1px solid #f49a52!important;box-shadow:0 5px 13px rgba(235,110,16,.15)!important
}
body.student-ui .hub-nav-item.active img{filter:brightness(0) invert(1)!important}
body.student-ui .hub-nav-item:hover:not(.active){background:#fff2e6!important;color:#c25f0f!important}
body.student-ui .teacher-entry{
  color:#ad510b!important;background:#fff5ea!important;border:1px solid #ffdfc3!important;border-radius:12px!important
}
body.student-ui .profile-button{border:1px solid #eae7e3!important;border-radius:14px!important;background:#fff!important}
body.student-ui .page-shell.hub-shell{width:min(1420px,calc(100% - 36px))!important;margin:18px auto 44px!important}
body.student-ui .login-view{gap:16px!important;align-items:stretch!important}
body.student-ui .login-stage.child-welcome{
  background:linear-gradient(119deg,#f36d0c 0%,#f99139 47%,#ffd49b 100%)!important;
  border:1px solid #ffbe80!important;border-radius:26px!important;
  box-shadow:0 18px 38px rgba(235,115,16,.12)!important;overflow:hidden!important
}
body.student-ui .login-stage.child-welcome:before{
  background:radial-gradient(circle at 13% 10%,rgba(255,255,255,.2),transparent 53%)!important
}
body.student-ui .login-stage-copy{position:relative!important;z-index:3!important;padding:48px 36px!important}
body.student-ui .login-stage-copy h1{color:#fff!important;text-shadow:0 2px 12px rgba(123,47,0,.14)!important;letter-spacing:-1px!important}
body.student-ui .login-stage-copy h1 em{color:#fff2c2!important}
body.student-ui .login-stage-copy>p:not(.eyebrow){color:#fffaf4!important;font-weight:650!important}
body.student-ui .login-stage-copy .eyebrow{color:#fff!important;letter-spacing:1px!important}
body.student-ui .login-feature-row span{
  border:1px solid rgba(255,255,255,.7)!important;background:rgba(255,255,255,.16)!important;
  color:#fff!important;border-radius:100px!important
}
body.student-ui .login-stage-art{filter:none!important}
body.student-ui .login-stage-art img{border-radius:24px!important;object-fit:cover!important;opacity:.94!important}
body.student-ui .welcome-school-mark{
  background:rgba(255,255,255,.92)!important;border:1px solid rgba(255,255,255,.74)!important;
  border-radius:13px!important;color:#8a3d09!important
}
body.student-ui .login-panel.hub-card{
  background:#fff!important;border:1px solid var(--lab-line)!important;
  border-radius:24px!important;box-shadow:var(--lab-shadow)!important;padding:25px!important
}
body.student-ui .section-heading h2,body.student-ui .section-heading h3,
body.student-ui .login-panel h2,body.student-ui .hub-panel h2{color:#28313b!important}
body.student-ui .section-kicker,body.student-ui .eyebrow{color:var(--lab-orange-dark)!important}
body.student-ui .class-card{
  background:#fff!important;border:1px solid #ebe9e5!important;border-radius:17px!important;
  box-shadow:0 4px 14px rgba(31,42,56,.035)!important;
}
/* Primary classroom identity must remain readable over every approved classroom image. */
body.student-ui .child-class-card .class-card-footer{
  top:auto;right:0;bottom:0;left:0;min-height:72px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
  align-content:end;gap:2px 8px;padding:24px 12px 11px;
  border:0;border-radius:0;background:linear-gradient(180deg,transparent,rgba(26,33,43,.94))!important;
  backdrop-filter:none!important;box-shadow:none!important
}
body.student-ui .child-class-card .class-card-footer strong{
  display:block!important;grid-column:1;font-size:17px!important;line-height:1.18;color:#fff!important
}
body.student-ui .child-class-card .class-card-footer small{
  grid-column:1;font-size:11px!important;color:#fff!important;line-height:1.25!important;opacity:.92
}
body.student-ui .child-class-card .class-card-footer b{
  grid-column:2;grid-row:1/3;align-self:center;margin:0!important;width:26px;height:26px
}

body.student-ui .class-card:nth-child(2n){background:#fff9f2!important}
body.student-ui .class-card:hover{border-color:#ffae70!important;box-shadow:0 8px 19px rgba(231,114,23,.11)!important}
body.student-ui .class-card:after{background:linear-gradient(130deg,#fff0e1,#fff5ea)!important}
body.student-ui .class-badge{
  background:linear-gradient(135deg,#f99639,#ee7215)!important;
  border-radius:14px!important;box-shadow:none!important
}
body.student-ui .class-card:nth-child(2n) .class-badge{background:linear-gradient(135deg,#ff9a45,#f47712)!important}
body.student-ui .class-card strong{color:#273340!important}
body.student-ui .student-card-select{border:1px solid #eee9e3!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
body.student-ui .student-card-select:hover{background:#fff8f1!important;border-color:#fbb67c!important}
body.student-ui .selected-class-banner{border:1px solid #fee2cb!important;background:#fff5e9!important;border-radius:14px!important}
body.student-ui .selected-class-banner>span:first-child{background:#ffe0bf!important;color:#a44b07!important}
body.student-ui .primary-button,body.student-ui .child-login-cta,
body.student-ui .kid-focus-action,body.student-ui .qr-start{
  background:linear-gradient(130deg,#ff9434,#f27011)!important;
  color:#fff!important;border-radius:13px!important;border-color:transparent!important;
  box-shadow:0 8px 18px rgba(240,108,12,.15)!important
}
body.student-ui .kid-home-intro{gap:15px!important}
body.student-ui .kid-home-welcome{
  min-height:220px!important;border:1px solid #ffd1aa!important;border-radius:22px!important;
  background:linear-gradient(126deg,#fff1e3 0%,#fff8f1 56%,#fff 100%)!important;
  box-shadow:var(--lab-shadow)!important
}
body.student-ui .kid-home-welcome:before{opacity:.2!important}
body.student-ui .kid-home-welcome h1{color:#273340!important}
body.student-ui .kid-home-welcome .eyebrow{color:#d9640d!important}
body.student-ui .kid-home-welcome p:not(.eyebrow){color:#647280!important}
body.student-ui .kid-home-welcome .term-badge{
  border:1px solid #ffddbe!important;background:#fff!important;color:#a95513!important;
  border-radius:99px!important
}
body.student-ui .kid-home-art.student-portrait{border:3px solid #fff!important;background:#fff!important;box-shadow:0 6px 20px rgba(172,75,18,.1)!important}
body.student-ui .kid-focus-card,body.student-ui .hub-card,body.student-ui .kid-today-section,
body.student-ui .kid-work-overview,body.student-ui .student-panel{
  border:1px solid #ebe9e6!important;background:#fff!important;
  border-radius:20px!important;box-shadow:var(--lab-shadow)!important
}
body.student-ui .kid-focus-card{background:linear-gradient(145deg,#fff,#fff7ef)!important}
body.student-ui .kid-status-strip{gap:11px!important}
body.student-ui .kid-status-card{
  border:1px solid #ede9e5!important;border-radius:17px!important;background:#fff!important;
  box-shadow:0 4px 14px rgba(34,44,54,.035)!important
}
body.student-ui .kid-status-card.today{background:#fff7ed!important}
body.student-ui .kid-status-card.missing{background:#fff2f2!important}
body.student-ui .kid-status-card.score{background:#f0fff4!important}
body.student-ui .kid-status-card strong{color:#283441!important}
body.student-ui .kid-status-card .kid-status-icon{border-radius:13px!important}
body.student-ui .kid-status-card.score .kid-status-icon{background:#e2f9e9!important;color:#14985f!important}
body.student-ui .file-card,body.student-ui .program-card,body.student-ui .subject-card,
body.student-ui .work-card,body.student-ui .student-work-card{
  background:#fff!important;border-color:#eae8e5!important;border-radius:16px!important;
  box-shadow:0 4px 16px rgba(35,45,55,.04)!important
}
body.student-ui .file-card:hover,body.student-ui .program-card:hover{
  border-color:#ffbc8c!important;box-shadow:0 8px 20px rgba(232,109,20,.10)!important
}
body.student-ui .learnlab-worksheet-shortcut{
  background:#fff7ed!important;border-color:#ffd7b5!important;border-radius:15px!important
}
body.student-ui .school-lockup small{color:#697481!important}
body.student-ui button:focus-visible,body.student-ui a:focus-visible{
  outline:3px solid rgba(247,126,30,.5)!important;outline-offset:2px!important
}
@media(max-width:900px){
  body.student-ui .hub-topbar{background:#fff!important}
  body.student-ui .page-shell.hub-shell{width:calc(100% - 24px)!important;margin:12px auto 38px!important}
  body.student-ui .hub-nav{background:rgba(255,255,255,.97)!important;border-top:1px solid #eee8e2!important}
  body.student-ui .hub-nav-item{border-radius:12px!important}
  body.student-ui .hub-nav-item.active{background:linear-gradient(135deg,#ff9338,#f27314)!important}
  body.student-ui .login-view{grid-template-columns:1fr!important}
  body.student-ui .login-stage{min-height:200px!important}
  body.student-ui .login-stage-copy{padding:22px!important;max-width:75%!important}
  body.student-ui .login-stage-copy h1{font-size:clamp(27px,6vw,42px)!important;line-height:1.12!important}
  body.student-ui .login-stage-copy>p:not(.eyebrow){font-size:12px!important}
  body.student-ui .login-stage-art{width:44%!important;height:100%!important;right:0!important;bottom:0!important}
  body.student-ui .login-panel{min-height:auto!important;padding:18px!important}
  body.student-ui .kid-home-welcome{min-height:160px!important}
  body.student-ui .kid-status-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:560px){
  body.student-ui .page-shell.hub-shell{width:calc(100% - 18px)!important;margin-top:9px!important}
  body.student-ui .login-view{gap:9px!important}
  body.student-ui .login-stage.child-welcome{
    display:block!important;min-height:140px!important;height:140px!important;
    grid-template-rows:1fr!important;margin-bottom:0!important;border-radius:19px!important
  }
  body.student-ui .child-welcome .login-stage-copy{
    position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
    width:62%!important;max-width:62%!important;height:100%!important;
    min-width:0!important;padding:12px 8px 12px 13px!important
  }
  body.student-ui .child-welcome .login-stage-copy .eyebrow{font-size:9px!important;margin:0 0 4px!important}
  body.student-ui .child-welcome .login-stage-copy h1{
    font-size:clamp(22px,6.2vw,27px)!important;line-height:1.13!important;
    margin:0 0 5px!important;letter-spacing:-.45px!important;overflow-wrap:anywhere!important
  }
  body.student-ui .child-welcome .login-stage-copy>p:not(.eyebrow){
    margin:0!important;font-size:10.5px!important;line-height:1.35!important;max-width:100%!important
  }
  body.student-ui .child-welcome .login-feature-row,body.student-ui .child-welcome .welcome-school-mark{display:none!important}
  body.student-ui .child-welcome .login-stage-art{
    position:absolute!important;inset:0 0 0 auto!important;width:42%!important;height:100%!important;opacity:.9!important
  }
  body.student-ui .child-welcome .login-stage-art img{border-radius:0 18px 18px 0!important;object-fit:cover!important;object-position:center!important}
  body.student-ui[data-selected-class] .child-welcome{display:none!important}
  body.student-ui .login-panel.hub-card{min-height:0!important;padding:12px!important;border-radius:18px!important}
  body.student-ui .login-panel .section-heading{margin-bottom:8px!important;gap:8px}
  body.student-ui .login-panel .section-heading h2{font-size:21px!important;line-height:1.2!important}
  body.student-ui .login-panel .section-heading p:not(.section-kicker){font-size:11px!important}
  body.student-ui .class-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.student-ui .class-card.child-class-card{
    width:100%!important;height:82px!important;min-height:82px!important;aspect-ratio:auto!important;
    padding:0!important;border-radius:14px!important;box-shadow:0 4px 13px rgba(35,45,55,.06)!important
  }
  body.student-ui .child-class-card .class-art{
    inset:0 0 0 auto!important;width:43%!important;height:100%!important;
    object-fit:cover!important;object-position:center!important
  }
  body.student-ui .child-class-card .class-card-footer{
    inset:0 auto 0 0!important;width:59%!important;height:100%!important;min-height:0!important;
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    justify-content:center!important;gap:4px!important;padding:9px 6px 9px 11px!important;
    background:#fff!important;box-shadow:none!important;border:0!important;border-radius:0!important;
    backdrop-filter:none!important
  }
  body.student-ui .child-class-card .class-card-footer strong{
    font-size:17px!important;line-height:1.12!important;color:#27313b!important
  }
  body.student-ui .child-class-card .class-card-footer small{
    font-size:11px!important;line-height:1.18!important;color:#6a7480!important
  }
  body.student-ui .child-class-card .class-card-footer b{display:none!important}
  body.student-ui .kid-home-welcome h1{font-size:clamp(24px,7vw,32px)!important}
  body.student-ui .kid-status-strip{gap:7px!important}
  body.student-ui .kid-status-card{min-height:98px!important}
  body.student-ui .kid-status-card strong{font-size:22px!important}
  body.student-ui .kid-status-card small{font-size:10px!important}
  body.student-ui input:not([type=checkbox]):not([type=radio]),body.student-ui select,body.student-ui textarea{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){
  body.student-ui *,body.student-ui *:before,body.student-ui *:after{transition:none!important;animation:none!important}
}
