/* DABAR operations: the student's color-block language, softened for daily work. */
@media screen{
  :root{--app-max-width:1440px}
  body:has(.hq-shell),body:has(.login){background:#edf0f3}
  .hq-shell,.login{width:100%;max-width:var(--app-max-width);margin-inline:auto}
  .login{background:#fff}
}
:root{--primary:#543d55;--muted:#626870;--line:#dfe2e5;color:#24292e;background:#fff;font-size:15px;letter-spacing:-.2px;line-height:1.55;font-synthesis:none}
button,.button{border-radius:4px;font-weight:500;min-height:36px;padding:7px 13px;line-height:1.4;transition:background .12s,border-color .12s}button:hover,.button:hover{background:#f2f4f5;border-color:#aeb5bc}button.primary:hover{background:#403041}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{border-radius:4px;border-color:#cbd0d5;min-height:38px;font-size:14px;padding:8px 10px}input:focus,select:focus,textarea:focus{border-color:#726174}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #806482;outline-offset:3px}input[type=checkbox]{accent-color:var(--primary);width:18px;height:18px;min-height:18px;flex:0 0 18px}h1{font-size:25px;letter-spacing:-.7px;font-weight:700}h2{font-size:18px;font-weight:650}h3{font-size:15px;font-weight:650}.meta,small{font-size:13px;color:var(--muted)}.text-button{color:#404850}.text-button:hover{color:var(--primary);background:#f3f4f5}.danger{color:#ae3434}.page-head p{color:var(--muted);font-size:13px}.actions{gap:8px}.panel{border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0}.notice{background:#f5f6f7;border-left:2px solid #969da5;padding:12px 16px}.table-wrap{border-radius:0;border:0;border-top:1px solid #afb7bf;border-bottom:1px solid var(--line)}th,td{padding:11px 14px;font-size:14px;font-variant-numeric:tabular-nums}th{color:#535c65;background:#f6f7f8;font-weight:600;font-size:12px}tbody tr:hover{background:#f8f9fa}.status{font-size:12px;color:#626870}.status.active{color:#216749}.empty{border:0;border-block:1px solid var(--line);border-radius:0;background:#fafbfc;padding:40px 20px;font-size:13px}.empty strong{font-size:15px}.tabs{gap:24px}.tabs button{color:#69717b;font-size:14px;padding:12px 0}.tabs button.active{border-bottom-width:2px}.toolbar{gap:12px;margin:20px 0 16px}.toolbar input{max-width:280px}.toolbar select{max-width:170px}.section-heading{margin:24px 0 10px}.selection-list{max-height:280px;overflow:auto;margin:12px 0 20px;border-block:1px solid var(--line)}.selection-list .check-row{padding:11px 8px;cursor:pointer;font-weight:500}.selection-list .check-row:hover{background:#f5f6f7}.selection-list small{display:block}.detail-line{grid-template-columns:130px 1fr;padding:10px 0;border-bottom:1px solid #edf0f2}.detail-line span:first-child{color:var(--muted)}dialog{border-radius:6px;border-color:#cdd2d7;box-shadow:0 16px 60px #17212b26}dialog::backdrop{background:#17212b66}.dialog-head{padding:19px 24px}.dialog-head h2{font-size:18px}.dialog-head button{min-width:32px;border:0;color:#737b83}.dialog-body{padding:24px}.dialog-footer{background:#f7f8f9;padding:14px 24px}.form-grid{gap:18px 20px}.form-grid label{font-size:13px;font-weight:500}.tag,.mode{background:#edf0f2;color:#5c6570;border-radius:3px}.avatar{background:#e8ebee;color:#4c555f}.spacer{height:20px}
/* Branch: classroom work stays on one screen. */
.branch-shell{grid-template-columns:208px minmax(0,1fr);min-height:100vh;background:white}.branch-shell .sidebar{background:#f5f6f7;padding:28px 14px;border-color:#e2e5e8}.branch-shell .brand{margin:0 12px 36px;gap:9px}.branch-shell .brand img{width:29px;height:29px}.brand strong{font-size:17px}.brand small{font-size:10px;letter-spacing:1.7px}.branch-shell .side-label{font-size:11px;color:#7b838d;margin:0 12px 13px}.branch-shell .nav{gap:3px}.branch-shell .nav button{min-height:40px;padding:10px 14px;font-size:14px;border-radius:4px;color:#505962}.branch-shell .nav button.active{background:#e6e8eb;color:#252b31;font-weight:700;box-shadow:inset 3px 0 var(--primary)}.branch-shell .sidebar-foot{font-size:11px;color:#7d858e;padding:16px 12px}.branch-shell .topbar{height:60px;padding:0 32px;background:white}.branch-shell .topbar select{font-size:14px;padding:6px 0}.branch-shell .topbar .identity{font-size:12px;gap:10px}.branch-shell .main{max-width:1440px;padding:30px 32px 70px}.branch-shell .page-head{margin-bottom:24px}.team{border-radius:5px;border:1px solid #d9dee3;margin-bottom:24px;overflow:clip}.team-head{padding:17px 20px;background:#fafbfc}.team-head h2{font-size:16px}.team-head small{font-size:12px;margin-top:4px}.student-row{grid-template-columns:minmax(110px,1fr) minmax(160px,1.5fr) 100px 80px 32px;min-height:62px;padding:10px 20px;gap:12px;border-color:#e9edf0}.student-name{font-size:14px;font-weight:600}.student-row .progress{font-size:13px;font-weight:400;color:#525c66}.student-row .progress:hover{text-decoration:underline}.student-row .more{padding:4px;min-width:30px;color:#6a737d;border-color:transparent;background:transparent}.student-row .lesson-action{min-width:68px}.row-labels{min-height:34px;padding-block:7px;background:white;color:#818994;font-size:11px}.team-foot{padding:11px 20px;background:#fafbfc;border-top:1px solid #e3e7eb}.team-foot button{min-height:32px;font-size:12px}.warning{padding:9px 12px;border-left:2px solid #ba8d3b;color:#76551c;background:#fffaed;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.warning button{min-height:30px;padding:4px 9px;font-size:12px}.calendar{border-color:#dfe2e5}.calendar-day{border-color:#e3e6e9;min-width:0;min-height:125px}.calendar-label{background:#f7f8f9;color:#66707a;font-size:12px}.calendar-day .day-number{border:0;background:transparent;min-height:30px;min-width:30px;padding:3px;font-size:13px}.calendar-day .day-number:hover{background:#e9ecef}.calendar-day.today .day-number{background:var(--primary);color:white;border-radius:4px}.calendar-event{background:#eef0f2;color:#38434e;border:0;border-left:2px solid #83929f;border-radius:2px;font-size:12px}
/* Headquarters: clear navigation, a single work surface. */
.hq-shell{--hq-header:106px;--hq-side:208px;background:#fff;color:#24292e}.hq-header-row{height:60px;padding-inline:24px}.hq-header-row .brand strong{font-size:17px}.hq-header-row .brand img{width:28px;height:28px}.hq-product{font-size:12px;color:#747d86;border-color:#dfe2e5}.hq-header-tools button{font-size:12px;padding:7px 10px}.hq-header-tools .hq-account{border:0;border-left:1px solid var(--line);border-radius:0}.hq-count{background:#eceef0;color:#505963;font-size:11px;min-width:17px;height:17px}.hq-global-nav{height:46px;padding-inline:24px;gap:16px}.hq-global-nav button{font-size:14px;padding:11px 16px;font-weight:500;color:#59636d;border-bottom-width:2px}.hq-global-nav button.active{color:#272d34;font-weight:700}.hq-global-nav button:hover{background:#f6f7f8}.hq-sidebar{background:#f5f6f7;border-color:#e1e5e8}.hq-side-heading{padding:25px 24px 16px}.hq-side-heading h2{font-size:13px;color:#707983;font-weight:600}.hq-sidebar nav{gap:3px}.hq-sidebar nav button{min-height:39px;padding:9px 13px;font-size:13px;color:#525d68}.hq-sidebar nav button.active{background:#e6e8eb;color:#262d34;box-shadow:inset 3px 0 var(--primary)}.hq-sidebar nav button:hover{background:#eceef0}.hq-side-foot{color:#88919a;padding:20px 24px}.hq-side-foot p{font-size:10px}.hq-main{padding:20px 32px 60px}.hq-location{margin-bottom:23px}.hq-location nav{font-size:11px;color:#848c96;gap:8px}.hq-main h1{font-size:25px;font-weight:700}.hq-main h2{font-size:16px}.hq-main .page-head{margin-bottom:25px}.hq-main .page-head p{font-size:13px;color:#727b85;margin-top:6px}.hq-filters{background:#f6f7f8;border:0;border-radius:0;gap:14px;padding:16px 18px;margin-bottom:20px}.hq-filters label{font-size:12px;color:#66717b;gap:6px}.hq-filters input,.hq-filters select{min-height:36px;border-color:#ccd2d8;font-size:13px}.hq-result-head{font-size:12px;margin-bottom:10px;color:#737d87}.hq-result-head strong{color:#252d35}.hq-result-head span:last-child{font-size:11px}.hq-main .table-wrap{border-radius:0;border:0;border-top:1px solid #aeb7c0;border-bottom:1px solid #dfe4e8}.hq-main th{background:#f6f7f8;font-size:12px;padding:10px 14px;color:#596570;font-weight:600}.hq-main td{height:48px;padding:8px 14px;font-size:13px;border-color:#e8ecef;font-variant-numeric:tabular-nums}.hq-main td button{font-size:13px;min-height:30px;padding:5px 10px}.hq-main td .text-button{color:#303c47;font-weight:600;padding-left:0}.hq-main tbody tr:hover{background:#f5f7f9}.hq-status{font-size:12px;color:#697580}.hq-id{color:#788591;font-size:12px}.hq-context{background:#f3f4f5;border-color:#82909e;color:#525f6c;font-size:13px}.hq-summary{border:0;border-block:1px solid #cfd6dc;border-radius:0;margin-top:10px;margin-bottom:24px}.hq-summary>div{padding:20px 22px;border-color:#e3e7eb}.hq-summary>div:first-child{padding-left:0}.hq-summary span{font-size:12px;color:#707b85}.hq-summary strong{font-size:26px;color:#202b34;font-weight:600;margin-top:8px;font-variant-numeric:tabular-nums}.hq-summary>div:last-child strong{font-size:23px}.hq-home-grid{margin-top:28px;gap:32px}.hq-task-list{border:0;border-block:1px solid #b7c0c8;border-radius:0}.hq-task{padding:14px 0;border-color:#e6eaee}.hq-task strong{font-size:13px;font-weight:600}.hq-task p{font-size:12px;color:#77818a}.hq-task button{font-size:12px}.hq-pagination button{min-height:32px;font-size:12px}.hq-detail-summary{font-size:13px;color:#6a7681}.hq-detail .dialog-body{min-height:340px}.hq-detail-tabs{gap:20px}
@media(min-width:1500px){.hq-main{padding-inline:36px}}
@media(max-width:1050px){.branch-shell{grid-template-columns:190px minmax(0,1fr)}.branch-shell .main{padding-inline:24px}.hq-global-nav{gap:6px}.hq-global-nav button{padding-inline:14px}.hq-main{padding-inline:24px}.hq-summary strong{font-size:23px}}
@media(max-width:850px){.hq-shell{--hq-header:106px}.hq-sidebar{width:248px}.hq-main{padding:20px}.hq-menu-toggle,.hq-drawer-close{min-height:40px}.hq-header-tools button{min-height:40px}.hq-sidebar nav button{min-height:44px}}
@media(max-width:760px){button,.button{min-height:44px}.branch-shell{display:block}.branch-shell .sidebar{width:240px;z-index:8}.branch-shell .topbar{height:auto;min-height:64px;padding:12px 16px}.branch-shell .main{padding:24px 16px 50px}.branch-shell .topbar .mode{display:none}.branch-shell .page-head{flex-wrap:wrap;gap:16px}.branch-shell .nav button{min-height:46px}.student-row{grid-template-columns:minmax(100px,1fr) 76px 32px;min-height:86px;padding:12px 14px;gap:3px 8px}.student-row .progress{font-size:12px}.student-row .more{min-width:32px;min-height:44px}.team-head{padding:16px 14px;gap:12px}.team-head h2{font-size:15px}.team-head .actions{gap:3px;flex-wrap:nowrap}.team-head .actions button{padding:6px 8px;font-size:12px}.team-foot{padding:10px 14px}.team-foot button{min-height:44px}.row-labels{display:none}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none;flex:1 1 180px}.toolbar select{max-width:160px}.table-wrap{max-width:100%}.calendar-day{min-height:92px;padding:3px}.calendar-event{min-height:32px;padding:3px;font-size:10px;white-space:normal}.calendar-day .day-number{min-height:40px;min-width:36px}.dialog-body{padding:20px}.form-grid{gap:16px}.detail-line{grid-template-columns:110px minmax(0,1fr)}.notice{font-size:12px}.tabs{gap:18px}.tabs button{font-size:13px;min-height:44px}.selection-list .check-row{min-height:48px}.warning button{min-height:44px}}
@media(max-width:600px){.hq-shell{--hq-header:151px}.hq-header-row{min-height:105px;padding:12px 16px 4px}.hq-global-nav{height:46px;padding-inline:4px;gap:0}.hq-global-nav button{font-size:13px;padding:10px 15px}.hq-header-row .brand strong{font-size:16px}.hq-header-tools button{font-size:12px}.hq-main{padding:18px 16px 45px}.hq-main h1{font-size:23px}.hq-location{margin-bottom:16px}.hq-main .page-head{margin-bottom:20px}.hq-filters{padding:14px;gap:12px}.hq-filters input,.hq-filters select{min-height:42px}.hq-main td button{min-height:44px}.hq-summary>div,.hq-summary>div:first-child{padding:16px 12px}.hq-summary strong{font-size:22px}.hq-summary>div:last-child strong{font-size:19px}.hq-task button{min-height:44px}.hq-main .panel{padding:20px 0}}
.numeric{text-align:right!important;font-variant-numeric:tabular-nums}.team-head .actions button{white-space:nowrap}.branch-menu-close,.branch-backdrop{display:none}.branch-shell>div{min-width:0}
.branch-menu-backdrop[hidden]{display:none!important}.branch-console .hq-header-tools select{width:auto;max-width:260px;border:0;background:transparent;font-size:13px}.branch-console .hq-main .toolbar{padding:14px 16px;background:#f6f7f8}.branch-console .hq-main .team h2{font-size:16px}.branch-console .hq-main .student-row .progress{white-space:normal;word-break:keep-all}.branch-console .hq-main .calendar{margin-top:16px}
@media(max-width:600px){.branch-console .hq-header-tools select{max-width:240px;min-width:0;flex:1}.branch-console .hq-header-tools .hq-account{flex-shrink:0}.branch-console .hq-main .team-head h2{font-size:15px}.branch-console .hq-main .toolbar{padding:12px}.branch-console .hq-main .page-head .actions:empty{display:none}}
@media(max-width:760px){.branch-shell .sidebar{visibility:hidden}.branch-shell .sidebar.open{visibility:visible}.branch-menu-close{display:inline-flex;align-self:flex-end;margin:0 0 10px;min-height:40px}.branch-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:7;width:100%;height:100dvh;background:#17212b66;border:0;border-radius:0;color:transparent}.branch-shell .sidebar .brand{margin-bottom:24px}}
@media print{.branch-shell{display:block}.hq-summary{border-top:1px solid #aaa}.hq-main,.branch-shell .main{padding:0}.dialog-body{padding:0}.table-wrap{overflow:visible}.no-print{display:none!important}}

/* Neutral work surfaces with restrained green accents. */
:root{--primary:#486957}
button.primary:hover{background:#365440;border-color:#365440}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#6b8b73}
input:focus,select:focus,textarea:focus{border-color:#7c9582}
.hq-header-tools button:hover,.hq-header-tools .active{background:#edf2ed;color:var(--primary)}
.hq-global-nav button:hover{background:#f5f7f5}
.hq-context{border-left-color:#819785;background:#f0f3ef}
.notice{border-left-color:#829586}
.login-art{background:#30493a;color:#fff}
.login-art .brand small,.login-art p{color:#c7d6c8}
.login-line{border-color:#9db79f}
.login-art .login-note{color:#d3ded3}
@media print{.login-art{background:white;color:#222}}

/* Owner personnel workspace. */
.consultation-notes{min-height:280px;max-height:480px;overflow-y:auto;resize:vertical;line-height:1.8}
.opening-checklist{border:1px solid var(--line);padding:16px 20px;margin:0}
.opening-checklist legend{padding:0 8px;font-weight:600}
.opening-checklist .check-row{font-size:14px;flex-direction:row;justify-content:flex-start}
dialog:has(.consultation-notes) form{display:flex;flex-direction:column;max-height:88dvh}
dialog:has(.consultation-notes) .dialog-body{min-height:0;overflow-y:auto}
dialog:has(.consultation-notes) .dialog-head,dialog:has(.consultation-notes) .dialog-footer{flex-shrink:0}
.team-tabs{display:flex;gap:6px;overflow:auto;padding:2px 2px 12px;margin-top:18px}
.team-tabs button{flex-shrink:0;border-color:#d6ddd8;background:#f4f6f4;color:#46534a}
.team-tabs button.active{background:#486957;border-color:#486957;color:white}
.branch-console .owner-team{background:#f2f5f2;border-color:#bdc9c0}
.branch-console .owner-team .team-head,.branch-console .owner-team .team-foot{background:#e3eae4}
.branch-console .owner-team .row-labels{background:#edf1ed;color:#56645b}
.teacher-team-list{min-width:210px;max-width:420px}
.teacher-team-list summary{cursor:pointer;padding:8px 0;color:#365440;font-weight:600}
.teacher-team-items{border-top:1px solid #dce3dd;background:#f4f6f4;padding:4px 12px}
.teacher-team-items>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #dce3dd}
.teacher-team-items>div:last-child{border-bottom:0}
.teacher-team-items button{flex-shrink:0}
.branch-console .calendar-month{grid-template-rows:32px repeat(6,minmax(0,1fr));height:clamp(360px,calc(100dvh - 350px),660px)}
.branch-console .calendar-day{min-height:0;padding:4px 6px;display:flex;flex-direction:column;overflow:hidden}
.branch-console .calendar-week .calendar-day{min-height:260px}
.branch-console .calendar-label{padding:6px}
.branch-console .calendar-events{min-height:0;overflow:auto;flex:1}
.branch-console .calendar-day .day-number{flex-shrink:0;align-self:flex-start;min-height:26px;height:26px}
.branch-console .calendar-event{min-height:24px;margin-top:3px;padding:3px 5px}
.branch-console .calendar-day.sunday .day-number{color:#b33939}
.branch-console .calendar-day.saturday .day-number{color:#2866ad}
.branch-console .calendar-day.today.sunday .day-number,.branch-console .calendar-day.today.saturday .day-number{background:#e5ebe6;box-shadow:inset 0 0 0 1px #829787}
@media(max-width:760px){.branch-console .calendar-month{height:clamp(390px,calc(100dvh - 370px),600px)}.branch-console .calendar-day{padding:2px}.branch-console .calendar-day .day-number{min-width:36px;min-height:36px;height:36px}.branch-console .calendar-event{min-height:40px}.teacher-team-list summary{min-height:44px}.teacher-team-items button{min-height:44px}}
/* Learning position: context, prominent day, then access state. */
.learning-progress{display:flex!important;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;min-width:0;padding:10px 8px!important;white-space:normal!important}
.learning-context{font-size:13px;color:#4b5951;font-weight:500}
.learning-day{font-size:28px;line-height:1.1;color:#294e39;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.learning-day small{font-size:15px;margin-left:5px;font-weight:600}
.learning-caption{font-size:12px;color:#536158;line-height:1.5}
.account-page{max-width:560px;margin:48px auto;padding:24px;background:#fff}
.account-brand{color:#30493a;font-size:18px;font-weight:700}
.account-page h1{margin:32px 0 16px;font-size:26px}.account-page h2{font-size:18px;margin-top:28px}
.account-page .form-stack{margin-top:24px}.account-page input{min-height:44px}
.account-login-id{font-size:28px;letter-spacing:2px;color:#294e39}
.consent-copy{white-space:pre-wrap;border-block:1px solid #d8dfda;padding:20px 0;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:600px){.learning-day{font-size:24px}.learning-caption{font-size:11px}.account-page{margin:0;padding:24px 20px}.learning-progress{padding:8px 4px!important}}
/* Keep the existing settings menu, with a visible text button. */
.branch-console .student-row{grid-template-columns:minmax(100px,1fr) minmax(160px,1.5fr) 90px 72px 60px}
.student-row .student-settings-toggle,.student-settings{min-height:40px;padding:8px 12px;border:1px solid #486957;background:#edf4ef;color:#294e39;font-weight:700;white-space:nowrap}
.student-settings:hover{background:#dceadf;border-color:#294e39}
.student-settings:active{background:#cbded0}
.student-settings:focus-visible{outline:3px solid #486957;outline-offset:3px}
@media(max-width:760px){
 .branch-console .student-row{grid-template-columns:minmax(0,1fr) 68px 56px;gap:4px 8px}
 .student-row .student-settings-toggle{min-height:44px;padding:8px}
}
.student-row .student-settings-toggle:hover{background:#dceadf;border-color:#294e39}
.student-row .student-settings-toggle:active{background:#cbded0}
.student-row .student-settings-toggle:focus-visible{outline:3px solid #486957;outline-offset:3px}
.registration-workspace{max-width:900px}.registration-drafts,.registration-link,.registration-duplicate{padding:22px;border:1px solid #d6e0d8;border-radius:12px;margin:20px 0;background:#f6f9f6}.registration-id{display:flex;align-items:center;gap:18px;background:#edf3ee;padding:20px;border-radius:12px;flex-wrap:wrap}.registration-id strong{font-size:26px;letter-spacing:2px}.registration-steps{list-style:none;margin:24px 0;padding:0}.registration-steps li{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid #e1e6e2}.registration-steps li>div{flex:1}.registration-steps small{display:block;color:#677369;margin-top:4px}.step-mark{border:1px solid #becbc1;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.complete .step-mark{background:#486957;color:white;border-color:#486957}.registration-footer{display:flex;justify-content:flex-end;gap:12px;margin:26px 0}.registration-link .invite-link{overflow-wrap:anywhere}.registration-qr{display:block;background:white;margin:18px 0}.registration-workspace form label small{display:block;font-weight:400;color:#66756a}.registration-workspace .form-grid{margin-top:24px}.registration-drafts .list-item,.registration-duplicate .list-item{display:flex;justify-content:space-between;gap:12px;padding:12px 0}@media(max-width:600px){.registration-steps li{flex-wrap:wrap}.registration-steps li button{margin-left:50px}.registration-footer{flex-wrap:wrap}.registration-id{gap:10px}.registration-workspace .form-grid{grid-template-columns:1fr}.registration-workspace .span2{grid-column:auto}}
