/* Shared finishing details; exam controls retain their dedicated viewport layout. */
@media screen{
 /* Compact access screens and predictable touch areas share the existing brand tokens. */
 :is(#school-license-gate,#view-login) .remember-device label{min-height:44px}
 #school-license-gate .sl-title{margin:0 0 8px;line-height:1.2;font-size:26px}
 #school-license-gate .sl-box{box-shadow:none;border-radius:16px}
 #school-license-gate .sl-btn{box-shadow:none}
 #school-license-gate :is(button,a){box-shadow:none}
 #school-license-gate .portal-welcome h2{font-size:44px;letter-spacing:-.03em}
 #school-license-gate .sl-input::placeholder{color:var(--ink-mute);opacity:1}
 #school-license-gate .signup-info a{display:inline-flex;align-items:center;min-height:44px;color:var(--brand)}
 .release-footer a,.welcome-page .site-footer a,.welcome-page .home-access-other a{display:inline-flex;align-items:center;min-height:44px}
 :is(.welcome-page,.student-portal) :is(input,textarea)::placeholder{color:var(--ink-mute);opacity:1}
 @media(max-width:820px){
  #school-license-gate{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:24px 16px;gap:24px}
  #school-license-gate .portal-welcome{width:min(100%,440px);padding:0}
  #school-license-gate .portal-welcome>:not(.gate-brand){display:none}
  #school-license-gate .gate-brand{display:inline-flex;align-items:center;min-height:44px}
  #school-license-gate .gate-brand img{height:auto;width:156px}
  #school-license-gate .sl-box{max-width:440px;padding:24px 20px}
  #school-license-gate .sl-icon{display:none}
  #school-license-gate .sl-sub{margin-bottom:24px}
 }
 .ops-pending-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin-block:20px;background:#fff8e6;border:1px solid #d8c791;border-radius:12px;color:#594517;overflow-wrap:anywhere}.ops-pending-notice[hidden]{display:none}.ops-pending-notice p{margin:6px 0 0;max-width:65ch;line-height:1.5}.ops-pending-notice .btn{flex-shrink:0;min-height:44px}.payment-total-scope{flex-basis:100%;margin:0 0 16px;color:#536378;font-size:14px;line-height:1.5}
 @media(max-width:600px){.ops-pending-notice{align-items:stretch;flex-direction:column}.ops-pending-notice .btn{width:100%}}
 .ops-view-switch{display:flex;gap:8px;flex-basis:100%}.ops-view-switch [aria-pressed=true]{background:#193047!important;color:#fff!important}
 .ops-week-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0 0 16px}.ops-week-controls strong{flex-basis:100%;font-size:18px;line-height:1.4;color:var(--ink)}
 .ops-week-days{display:none}
 .ops-week-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
 .ops-week-day{display:flex;flex-direction:column;min-width:0;padding:12px 8px;border-inline-end:1px solid var(--line)}.ops-week-day[hidden]{display:none}.ops-week-day:last-child{border:0}.ops-week-day h5{margin:0 0 12px;font-size:14px;line-height:1.5;padding:8px 0;border-bottom:1px solid var(--line)}.ops-week-day[data-today=true]{background:var(--brand-light)}.ops-week-day[data-today=true] h5{color:var(--brand)}
 #school-operations .ops-week-lesson{display:grid;gap:6px;width:100%;min-height:44px;padding:12px 8px;margin-bottom:10px;text-align:left;white-space:normal;background:var(--brand-light);border-color:var(--line);color:var(--ink);font-size:14px;overflow-wrap:anywhere}
 .ops-week-lesson strong{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
 .ops-week-day h5 .ops-day-select{display:block;min-width:44px;min-height:44px;width:100%;padding:8px 0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.ops-day-select[aria-pressed=true]{font-weight:700}.ops-day-select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.ops-day-select:hover{text-decoration:underline;text-underline-offset:4px}
 .ops-week-booking{margin-top:auto;padding-top:16px}.ops-week-booking h6{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--ink-mute)}.ops-week-slots{display:grid;gap:8px;margin-bottom:12px}
 #school-operations :is(.ops-week-slot,.ops-week-add){width:100%;min-width:44px;min-height:44px;padding:10px 6px;font-size:13px;line-height:1.4;white-space:normal;font-variant-numeric:tabular-nums;background:var(--surface);color:var(--brand);border-color:var(--line)}
 #school-operations :is(.ops-week-slot,.ops-week-add,.ops-week-days button):hover{background:var(--brand-light);border-color:var(--brand)}
 #school-operations :is(.ops-week-slot,.ops-week-add,.ops-week-days button):active{background:var(--line)}
 #school-operations :is(.ops-week-slot,.ops-week-add,.ops-week-lesson,.ops-week-days button):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
 .ops-week-lesson small{display:block;font-size:12px;line-height:1.45}.ops-week-lesson[data-status=cancelled]{background:#f5f6f8!important;color:#536378!important}.ops-week-empty,.ops-week-note{font-size:13px;line-height:1.5;color:#536378}.ops-week-note{padding-top:12px}
 #school-operations .ops-editor-panel{box-sizing:border-box;position:fixed;inset:16px 16px 16px auto;margin:0;width:min(520px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:none;max-width:none;padding:20px 24px;overflow:auto;border:1px solid #d7e0eb;border-radius:12px;background:#fff;color:#193047;box-shadow:-12px 0 40px -24px #192c4255}
 .ops-editor-panel::backdrop{background:rgb(25 44 66 / .18)}#school-operations .ops-editor-panel .ops-form{margin:0;border:0;padding:20px 0 0}#school-operations .ops-editor-panel .ops-fields{grid-template-columns:minmax(0,1fr)}
 .ops-panel-header{position:sticky;top:0;z-index:2;padding-bottom:12px;background:#fff;border-bottom:1px solid #d7e0eb}
 #school-operations .ops-panel-close{display:block;margin-left:auto;background:#fff}
 .ops-editor-panel :is(input,select,textarea,button,summary){scroll-margin-block:80px}
 .ops-student-context{margin:20px 0;border-block:1px solid #d7e0eb;padding:4px 0}.ops-student-context summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}.ops-student-context p{display:grid;gap:4px;padding:12px 0;margin:0;border-top:1px solid #e3e8ef;font-size:14px;line-height:1.5}.ops-student-context span{color:#536378}
 @media(max-width:1100px){.ops-week-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:8px;padding-bottom:16px}.ops-week-days button{display:grid;gap:4px;place-items:center;min-width:44px;min-height:64px;padding:8px 4px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer}.ops-week-days button span{font-size:12px;line-height:1.4}.ops-week-days button strong{font-size:18px;line-height:1.3;font-variant-numeric:tabular-nums}.ops-week-days button[aria-current=date]{border-color:var(--brand)}#school-operations .ops-week-days button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--surface)}.ops-week-board{grid-template-columns:1fr}.ops-week-day{border:0;padding:16px}.ops-week-day h5{font-size:16px}.ops-week-day .ops-week-lesson{max-width:100%}.ops-week-slots{grid-template-columns:repeat(3,minmax(0,1fr))}#school-operations :is(.ops-week-slot,.ops-week-add){font-size:14px}}
 @media(max-width:600px){.ops-week-days{grid-template-columns:repeat(4,minmax(44px,1fr))}.ops-week-slots{grid-template-columns:1fr}.ops-week-day .ops-week-lesson{padding:12px 16px}.ops-week-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ops-week-controls strong{grid-column:1/-1}.ops-week-controls .btn:last-child{grid-column:1/-1}}
 @media(max-width:600px){#school-operations .ops-editor-panel{inset:0;width:100%;height:100dvh;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border:0;border-radius:0}.ops-week-controls .btn{flex:1 1 140px;font-size:13px}}
 /* Schedule settings use compact day rows; only the selected day exposes its editor. */
 #school-operations .ops-list[data-view=schedule]{display:grid;gap:16px}
 #school-operations .ops-schedule-notice p{margin:0;color:var(--ink-mute,#536378);font-size:14px;line-height:1.6}
 #school-operations .ops-schedule-notice .btn{margin-top:12px}
 #school-operations .ops-schedule-panel{padding:20px;background:var(--surface,#fff);border:1px solid var(--ops-rule);border-radius:8px}
 #school-operations .ops-schedule-panel h5{margin:0;font-size:16px;font-weight:600;line-height:1.5}
 #school-operations .ops-schedule-caption{margin:4px 0 16px;color:var(--ink-mute,#536378);font-size:13px;line-height:1.5;font-weight:400}
 #school-operations .ops-schedule-day{display:block;padding:0;border:0;border-top:1px solid var(--ops-rule)}
 #school-operations .ops-schedule-day>summary{display:flex;align-items:center;gap:16px;min-height:64px;padding:12px 0;cursor:pointer;list-style:none}
 #school-operations .ops-schedule-day>summary::-webkit-details-marker,#school-operations .ops-schedule-disclosure>summary::-webkit-details-marker{display:none}
 #school-operations .ops-schedule-day>summary:after,#school-operations .ops-schedule-disclosure>summary:after{content:'';flex:0 0 7px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px}
 #school-operations .ops-schedule-day[open]>summary:after,#school-operations .ops-schedule-disclosure[open]>summary:after{transform:rotate(225deg);margin-top:6px}
 #school-operations .ops-day-identity{flex:1;display:grid;gap:2px;font-size:14px;line-height:1.5}
 #school-operations .ops-day-state{color:var(--ink-mute,#536378);font-size:12px}
 #school-operations .ops-day-times{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
 #school-operations .ops-day-editor{display:grid;gap:12px;padding:4px 0 20px}
 #school-operations .ops-day-fields{margin:0;padding:0;border:0;display:grid;gap:16px}
 #school-operations .ops-schedule-field{display:grid;align-content:start;gap:8px;font-size:14px;font-weight:500;line-height:1.4}
 #school-operations .ops-schedule-field .form-input{width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--control-border,#aab8c9);border-radius:8px;background:var(--surface,#fff);color:var(--ops-ink);font:inherit;font-variant-numeric:tabular-nums}
 #school-operations .ops-day-toggle{display:flex;align-items:center;justify-content:space-between;min-height:44px;max-width:320px;cursor:pointer}
 #school-operations .ops-day-toggle input{width:20px;height:20px;margin:0;accent-color:var(--ops-ink);cursor:pointer}
 #school-operations .ops-day-time-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #school-operations :is(.ops-day-break,.ops-manual-time,.ops-lesson-extra)>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:14px;font-weight:600}
 #school-operations .ops-day-editor>.btn{justify-self:end}
 #school-operations .ops-schedule-feedback{font-size:14px;line-height:1.5;margin:0}
 #school-operations .ops-schedule-feedback:empty{display:none}
 #school-operations .ops-schedule-feedback[role=alert]{color:var(--danger,#9b2525)}
 #school-operations .ops-schedule-disclosure>summary{display:flex;align-items:center;gap:16px;min-height:44px;cursor:pointer;list-style:none;font-size:16px;font-weight:600}
 #school-operations .ops-schedule-disclosure>summary>span:first-child{flex:1}
 #school-operations .ops-schedule-disclosure>summary .ops-schedule-caption{margin:0;text-align:right}
 #school-operations .ops-schedule-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 0}
 #school-operations .ops-schedule-editor>.btn{justify-self:end;grid-column:1/-1}
 #school-operations .ops-schedule-closure{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 0;margin-top:16px;border-top:1px solid var(--ops-rule);font-size:14px}
 #school-operations .ops-schedule-closure>div{display:grid;gap:4px;overflow-wrap:anywhere}
 #school-operations .ops-schedule-closure span{color:var(--ink-mute,#536378);line-height:1.5}
 #school-operations .ops-slot-finder{display:grid;gap:12px;padding:16px;margin:0;border:1px solid var(--ops-rule);border-radius:8px;background:var(--surface-soft,#f5f7fa)}
 #school-operations .ops-slot-finder h5{margin:0;font-size:16px;font-weight:600;line-height:1.5}
 #school-operations .ops-slot-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #school-operations .ops-slot-controls label{display:grid;gap:8px;font-size:14px;font-weight:500}
 #school-operations .ops-slot-controls .form-input{min-height:44px;width:100%;padding:10px 8px;color:var(--ops-ink);background:var(--surface,#fff)}
 @media(max-width:360px){#school-operations .ops-slot-controls{grid-template-columns:minmax(0,1fr)}}
 #school-operations .ops-slot-finder>.btn{width:100%;margin:0}
 #school-operations .ops-slot-finder>.ops-hint{margin:0;font-size:14px;font-weight:400;line-height:1.5}
 #school-operations .ops-slot-results{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 #school-operations .ops-slot-day h6{font-size:14px;font-weight:600;line-height:1.5;text-transform:none;margin:0 0 8px}
 #school-operations .ops-slot-day-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #school-operations .ops-slot-option{min-height:44px;margin:0;padding:10px 8px;font-size:14px;text-align:center;background:var(--surface,#fff);color:var(--ops-ink);border-color:var(--control-border,#aab8c9);font-variant-numeric:tabular-nums;white-space:nowrap}
 #school-operations .ops-slot-option[aria-pressed=true]{background:var(--ops-ink);color:#fff;border-color:var(--ops-ink)}
 #school-operations .ops-slot-selection{display:block;font-size:14px;line-height:1.5;font-weight:500}
 #school-operations .ops-slot-selection:empty,#school-operations .ops-slot-results:empty{display:none}
 #school-operations :is(.ops-slot-finder,.ops-manual-time,.ops-lesson-extra){grid-column:1/-1}
 #school-operations .ops-lesson-extra-fields{display:grid;gap:16px}
 #school-operations .ops-manual-time{border-bottom:1px solid var(--ops-rule);padding-bottom:8px}
 #school-operations .ops-availability-check{margin:0 0 16px;padding:12px 0;border:0;background:none}
 #school-operations .ops-availability-check h5{font-size:14px}
 #school-operations .ops-editor-panel .ops-form>.ops-actions{position:sticky;bottom:0;z-index:2;background:var(--surface,#fff);padding:16px 0 calc(8px + env(safe-area-inset-bottom));margin-bottom:0}
 @media(max-width:600px){
  #school-operations .ops-schedule-panel{padding:16px}
  #school-operations .ops-schedule-disclosure>summary{flex-wrap:wrap;gap:4px 12px}
  #school-operations .ops-schedule-disclosure>summary>.ops-schedule-caption{order:3;flex-basis:100%;text-align:left}
  #school-operations .ops-schedule-editor{grid-template-columns:minmax(0,1fr)}
  #school-operations .ops-day-time-pair{grid-template-columns:minmax(0,1fr)}
  #school-operations .ops-schedule-editor>.btn,#school-operations .ops-day-editor>.btn{width:100%;justify-self:stretch}
  #school-operations .ops-schedule-closure{align-items:flex-start;flex-direction:column}
  #school-operations .ops-schedule-field .form-input,#school-operations .ops-slot-controls .form-input{font-size:16px}
 }
 @media(prefers-reduced-motion:reduce){#school-operations :is(button,details,summary){transition:none;animation:none}}
 #school-operations.ops-finance .ops-workspace{grid-template-columns:minmax(0,1fr);border-top:0;padding-top:0}
 .ops-finance .ops-heading{display:none}.ops-finance .ops-status{margin-top:0}
 .payment-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;flex-basis:100%;margin:0 0 16px;padding-bottom:20px;border-bottom:1px solid #d7e0eb}
 .payment-totals>div{padding:8px 20px}.payment-totals>div:first-child{padding-left:0}.payment-totals>div+div{border-left:1px solid #d7e0eb}
 .payment-totals dt{font-size:14px;color:#536378;margin-bottom:8px}.payment-totals dd{margin:0;font-size:clamp(20px,3vw,30px);font-weight:650;font-variant-numeric:tabular-nums}
 .payment-row .payment-amount{flex:0 0 auto;text-align:right}.payment-row .payment-amount strong{font-size:20px;font-variant-numeric:tabular-nums}.payment-row .payment-state{font-size:13px}
 .payment-row[data-status=paid] .payment-state{color:#25603c}.payment-row .payment-provider{font-size:12px;color:#536378;overflow-wrap:anywhere}
 .school-operations .payment-row>.ops-actions{display:flex;flex:0 0 auto;gap:8px}.payment-row a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px}
 @media(min-width:821px){.ops-finance .ops-list .payment-row{display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(180px,auto);gap:24px}.ops-finance .payment-row>.ops-actions{justify-content:flex-end}}
 @media(max-width:600px){.payment-totals{grid-template-columns:1fr;gap:12px}.payment-totals>div,.payment-totals>div:first-child{display:flex;align-items:center;justify-content:space-between;padding:0}.payment-totals>div+div{border:0}.payment-totals dt{margin:0}.payment-totals dd{font-size:22px}.ops-list .payment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.ops-list .payment-row .ops-actions{grid-column:1/-1;justify-content:flex-start}.payment-row .payment-amount strong{font-size:18px}}
 .portal-pages .portal-section-intro{padding-bottom:16px;margin-bottom:24px}
 .portal-pages .portal-section-title{margin-bottom:0;font-weight:650}
 .portal-pages .portal-segments a{min-height:44px;line-height:1.35}
 .portal-pages :is(.learning-toolbar,.group-toolbar){row-gap:16px}
 .portal-pages :is(.learning-toolbar,.group-toolbar) label{display:grid;gap:8px;min-width:0}
 .portal-pages :is(.learning-actions,.group-actions){display:flex;gap:10px;flex-wrap:wrap}
 .portal-pages :is(.learning-actions,.group-actions) button{margin:0}
 .school-operations .ops-status{font-size:14px;line-height:1.55}
 .school-operations .ops-status[role=alert]{padding:12px 16px;border:1px solid #e6c3bf;border-radius:8px;background:#fff5f3;color:#862b24}
 .school-operations .ops-status:empty{display:none}
 .school-operations .ops-row>div{display:grid;gap:4px}
 .school-operations .ops-row>div>span{margin:0;line-height:1.5}
 .school-operations .ops-list>.ops-row:only-child:not(:has(strong)){padding:24px;border:1px dashed var(--ops-rule);border-radius:8px;color:#536378;background:#fafbfd;line-height:1.6}
 .school-operations .ops-form>.ops-actions{border-top:1px solid var(--ops-rule);padding-top:16px}
 .school-operations .ops-fields input,.school-operations .ops-fields select,.school-operations .ops-fields textarea{padding:12px;font-weight:400;line-height:1.5;border-radius:8px}
 .school-operations .ops-fields :is(input,select,textarea):focus-visible{outline-offset:2px}
 .official-row .official-status{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:600;line-height:1.4}
 .official-row[data-status=pending] .official-status{background:#fff5de;color:#775310}
 .official-row[data-status=confirmed] .official-status{background:#edf7f0;color:#25603c}
 .official-row[data-status=cancelled] .official-status{background:#f2f4f7;color:#586578}
 .official-row .official-actions{gap:10px;align-items:center}
 .official-row .official-actions .btn{margin:0;line-height:1.4}
 .official-row .official-actions .btn[data-action=cancel]{color:#962f27;border-color:#dec4c1;background:#fff}
 .official-row .official-actions .btn[data-action=cancel]:hover{background:#fff3f1}
 .official-row>div:first-child>strong{display:block;line-height:1.5;margin-bottom:8px}
 .official-row>div:first-child>p{margin:6px 0;line-height:1.5}
 .portal-pages .history-row :is(strong,h4){line-height:1.4}
 .portal-pages .history-row button{flex-shrink:0}
 body.teacher-access main{max-width:560px;margin:56px auto 72px}
 body.teacher-access main>h1{font-size:clamp(28px,4vw,36px);line-height:1.15;letter-spacing:-.04em;margin:0 0 12px}
 body.teacher-access main>p{color:#536378;line-height:1.6}
 body.teacher-access .admin-card{padding:28px;margin-top:28px;box-shadow:0 8px 32px -24px #192c4233}
 body.teacher-access #staff-login{display:grid;gap:20px}
 body.teacher-access #staff-login-button{width:100%;margin-top:4px;min-height:48px}
 body.teacher-access .teacher-access-help{margin-top:24px;padding-top:24px;border-top:1px solid #dbe2ec}
 body.teacher-access .teacher-access-help h2{font-size:16px;line-height:1.4;margin:0 0 8px}
 body.teacher-access .teacher-access-help p{font-size:14px;line-height:1.6;color:#536378;margin:0 0 16px}
 body.teacher-access #staff-login-message:empty{display:none}
 body.teacher-access #staff-login-message:not(:empty){margin:20px 0 0;padding:12px;border-left:3px solid #2854aa;background:#f2f6fc;line-height:1.6}
 .welcome-page .home-story-copy dl>div:last-child{padding-bottom:0}
 .welcome-page .home-story+.home-story{border-top:1px solid var(--home-line)}
 .welcome-page .home-start-steps li>span{font-variant-numeric:tabular-nums;color:var(--home-blue)}
 .welcome-page .home-answers details[open]{padding-bottom:16px}
 .welcome-page .home-answers details[open] summary{color:var(--home-blue)}
 .welcome-page .home-access .portal-card .card-action{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding-top:14px}
 @media(max-width:820px){
  #page-dashboard>.portal-segments{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;width:100%;margin-bottom:24px;scrollbar-width:thin;scrollbar-color:#aab8c9 transparent;scroll-padding-inline:4px}
  #page-dashboard>.portal-segments a{flex:0 0 auto;white-space:nowrap;padding:10px 14px}
  .portal-pages .card-header{padding:18px;gap:12px}
  .portal-pages .card-body:not(.no-pad){padding:18px}
  .school-operations .ops-toolbar h4{font-size:18px;line-height:1.35}
  .school-operations .ops-heading h3{font-size:21px;line-height:1.3}
  #school-operations .ops-tabs{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;width:100%;max-width:100%;padding-bottom:8px;gap:6px;scrollbar-width:thin;scrollbar-color:#aab8c9 transparent;overscroll-behavior-x:contain}
  #school-operations .ops-tabs .btn{flex:0 0 auto;white-space:nowrap;padding:10px 14px;min-height:44px}
  .school-operations .ops-workspace{gap:16px}
 }
 @media(max-width:520px){
  body.teacher-access main{margin-top:32px}
  body.teacher-access .admin-card{padding:22px}
  body.teacher-access .site-header{border-radius:0;width:100%;margin:0;border-inline:0;gap:16px}
  body.teacher-access .site-header .brand-logo{width:136px}
  body.teacher-access .site-header>a:last-child{max-width:120px;text-align:right;line-height:1.4}
  .school-operations .ops-toolbar>.btn-primary{width:100%}
  .school-operations .ops-toolbar h4{width:100%}
  .portal-pages .card-header>h3{flex:1 1 100%}
  .welcome-page .home-story-copy h3{max-width:18ch}
  .official-row .official-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .official-row .official-actions .btn{width:100%;padding:10px 8px;font-size:13px;white-space:normal}
  .official-row .official-actions .btn:first-child:not(:last-child){grid-column:1/-1}
 }
}
