/* Phase 1 shared visual language. Legacy screen classes remain supported. */
:root{--navy:#172e4e;--blue:#356bb6;--sky:#edf4fc;--ink:#22334a;--muted:#63738a;--line:#e1e7ef;--bg:#f7f9fc;--white:#fff;--green:#187457;--amber:#926016;--shadow:0 2px 12px #192f4b09;--radius:12px;--focus:#4c83ce}
body{color:var(--ink);background:var(--bg);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.sidebar{background:var(--navy);width:216px;padding:22px 13px}.brand{padding:0 10px 24px}.brand-mark{background:#e4effd;color:var(--navy);border-radius:11px}.nav{display:grid;gap:4px}.nav button{min-height:44px;margin:0;color:#d2deed;padding:10px 12px;font-size:13px;border-radius:9px}.nav button.active{background:#ffffff20;color:#fff;font-weight:700}.nav .ico{font-size:16px}.nav-label{padding:10px 12px;color:#a9bdd4}.main{margin-left:216px}.topbar{height:60px;padding:0 30px}.content{max-width:1120px;padding:26px 30px 60px}.crumb{display:none}.hello{margin:0 0 20px}.hello h1,.screen h1{font-size:clamp(23px,2vw,28px);line-height:1.2;letter-spacing:-.035em;margin:0;color:var(--navy)}.hello p{margin:7px 0 0;font-size:13px}.panel,.card,.section-card,.schedule-form{border:1px solid var(--line);border-radius:var(--radius);box-shadow:none;background:#fff}.panel{padding:20px;margin-bottom:16px}.section-card,.schedule-form{padding:20px}.stat{min-height:100px}.cards{gap:12px}.panel h2,.section-card h2{font-size:15px;letter-spacing:-.015em}.button,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 14px;font-size:13px;font-weight:650;border-radius:9px;box-shadow:none;cursor:pointer}.button{background:var(--blue);color:#fff;border:1px solid var(--blue)}.button:hover{background:#255a9d}.secondary{background:#f1f5fa;color:var(--navy);border:1px solid #e3e9f0}.secondary:hover{background:#e6eef8}.link{font-size:13px;min-height:32px}.input,select,textarea{border:1px solid #cfd9e5;border-radius:9px;min-height:42px;padding:10px 12px;color:var(--ink);background:#fff;font-size:14px}.field{font-size:12px;color:#40536d;font-weight:650}.pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:7px;font-size:11px}.pill.ok{background:#e7f5ef;color:#176d51}.pill.pending{background:#fff4e0;color:#87570c}.pill.review{background:#edf2f9;color:#536780}.warning{background:#fff8eb;color:#785317;border:1px solid #f3e4bd;border-radius:9px}.schedule-status{border-radius:9px}.modal-wrap{padding:16px}.modal{border-radius:14px;width:min(480px,100%);padding:24px}.close{min-width:40px;min-height:40px}.menu-item{min-height:50px;padding:14px 0}.more-list{box-shadow:none}.shift-card{background:#f9fbfe;border-radius:10px}.toast{border-radius:9px}.screen [role="alert"]{color:#973940}.screen [role="status"]{line-height:1.5}
.mobile-nav{box-shadow:0 -4px 20px #172e4e0a}.mobile-nav button{border-radius:8px;min-height:48px}.mobile-nav button.active{background:#eaf2fd;color:var(--navy)}
@media(max-width:900px){.sidebar{width:194px}.main{margin-left:194px}.content{padding:24px 22px 45px}.topbar{padding:0 22px}}
@media(max-width:620px){.sidebar{display:none}.main{margin:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.content{padding:20px 16px 30px}.topbar{min-height:54px;height:auto;padding:9px 16px}.mobile-nav{display:flex;gap:3px;padding:6px 5px calc(6px + env(safe-area-inset-bottom))}.mobile-nav button{min-width:0;flex:1;font-size:10px}.mobile-nav button span{font-size:17px}.panel,.section-card,.schedule-form{padding:16px}.cards{gap:9px}.hello{align-items:center}.hello .button{font-size:13px;padding:9px 12px}.hello .button .plus{display:none}.row{grid-template-columns:1fr}.input,select,textarea{font-size:16px}.modal{padding:19px}.topright{max-width:none}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.mobile-nav button{font-size:9px}.cards{grid-template-columns:1fr 1fr}.stat strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Phase 2: information-led Home, shared with the existing app shell. */
#overview .home-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#overview .home-actions .button{font-size:14px}
#overview .home-primary{padding:20px 24px}
#overview .home-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
#overview .home-section{padding:16px 0;border-top:1px solid var(--line)}
#overview .home-section h2,#overview .home-review h2{font-size:17px;margin:0}
#overview .home-day h3{font-size:15px;margin:0}
#overview .home-day+.home-day{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
#overview .home-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:10px 0;border-bottom:1px solid var(--line);align-items:baseline;overflow-wrap:anywhere}
#overview .home-line small{grid-column:1/-1;color:var(--muted)}
#overview .home-line span{text-align:right}
#overview .home-meta,#overview .home-note,#overview .home-empty{font-size:13px;color:var(--muted);margin:8px 0 12px}
#overview .home-coverage{margin-top:12px;font-size:13px}
#overview .home-coverage summary{padding:6px 0}
#overview .home-review{border-left:3px solid var(--blue);padding:10px 16px;margin-bottom:18px;background:var(--sky)}
#overview .home-review p{font-size:13px;margin:4px 0}
#overview .home-switch{display:flex;gap:4px}
#overview .home-switch [aria-pressed=true]{background:var(--navy);color:white}
#overview .home-week-summary{display:flex;justify-content:space-between;gap:16px}
#overview .home-week-summary p{margin:8px 0}
#overview .home-week-summary strong{font-size:28px;color:var(--navy)}
#overview .home-today{background:var(--sky)}
#overview .panel-head{flex-wrap:wrap;gap:8px}
@media(max-width:620px){
 #overview .hello{gap:8px;flex-wrap:wrap}
 #overview .home-actions{justify-content:flex-start}
 #overview .home-primary{padding:16px}
 #overview .home-columns{grid-template-columns:minmax(0,1fr);gap:0}
 #overview .home-week-summary{flex-direction:column;gap:0}
 #overview .home-line{font-size:13px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 8px}
 #overview .pill{white-space:normal}
}


/* Phase 4: personal leave, readable on small screens. */
.leave-summary {display:grid;grid-template-columns:1.1fr .8fr 1.3fr;gap:24px}
.leave-summary span,.leave-summary strong {display:block}
.leave-summary span {color:var(--muted,#667085);font-size:13px;margin-bottom:8px}
.leave-summary strong {font-size:26px;color:var(--navy,#16324f);line-height:1.25}
.leave-summary .leave-year {font-size:16px;padding-top:5px}
.leave-section {margin:28px 0}
.leave-section h2 {font-size:18px;margin:0 0 14px}
.leave-count {font-size:13px;color:var(--muted,#667085);margin-left:6px}
.leave-request {border-bottom:1px solid var(--line,#dfe5ec);background:white}
.leave-request > summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 12px;cursor:pointer;list-style:none}
.leave-request > summary::after {content:'⌄';color:#667085}
.leave-request[open] > summary::after {content:'⌃'}
.leave-request > summary > span:first-child {flex:1}
.leave-request-meta {display:block;color:#596579;font-size:13px;margin-top:5px}
.leave-request-details {padding:0 14px 20px;max-width:640px}
.leave-note {white-space:pre-wrap;overflow-wrap:anywhere}
.leave-request-details details {margin-top:16px}
.leave-history-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.leave-history-heading h2 {margin:0}
.leave-history-heading select {width:auto;margin-left:8px}
.leave-options {border:0;padding:0;margin:18px 0;display:flex;gap:24px}
.leave-options legend {font-size:13px;font-weight:600;margin-bottom:8px}
.leave-options label {display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer}
.leave-options input {width:18px;height:18px;accent-color:#2457a7}
.leave-calculation {background:#f1f5fa;border-radius:10px;padding:14px;margin:18px 0}
.leave-calculation p:empty,#leaveConfirmation:empty {display:none}
#leaveConfirmation:not(:empty) {padding:12px 16px;background:#eaf5ef;border-radius:8px;color:#185537}
#modal {overflow:auto;padding:20px}
#modal .modal {max-height:calc(100dvh - 40px);overflow:auto}
#leave .empty-state {padding:12px 0;color:#667085}
@media(max-width:600px){
 .leave-summary {grid-template-columns:1fr 1fr;gap:22px 14px}
 .leave-summary > div:last-child {grid-column:1 / -1}
 .leave-summary strong {font-size:24px}
 #leave .hello {align-items:flex-start;gap:12px}
 #leave .hello h1 {font-size:28px}
 #leave .hello .button {font-size:13px;padding:11px 13px;white-space:normal}
 .leave-request > summary {padding:16px 2px;gap:8px}
 .leave-request > summary .pill {max-width:120px;white-space:normal;text-align:center;font-size:11px}
 #modal {padding:12px}
 #modal .modal {max-height:calc(100dvh - 24px);padding:20px}
 #requestForm .row {grid-template-columns:1fr;gap:0}
 #requestForm .submit-row {position:sticky;bottom:-20px;background:white;padding:14px 0;margin-top:14px}
}


/* Phase 5: weekly schedules and a seven-day change editor. */
.schedule-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.schedule-toolbar .field{flex:1;min-width:160px;margin:0}
.schedule-toolbar a{display:inline-flex;align-items:center;text-decoration:none}
.schedule-summary{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0;color:var(--ink)}
.schedule-confirmation{padding:14px 18px;background:#edf7f0;border-left:3px solid #2f6b48;border-radius:6px}
.schedule-week{margin-bottom:14px}
.schedule-week .shift-card{min-width:0;background:#fff;border:1px solid #dce3eb;border-radius:10px;padding:16px;display:flex;flex-direction:column;align-items:start;gap:6px}
.schedule-week .shift-card p{margin:6px 0}
.schedule-week .shift-card small{overflow-wrap:anywhere}
.schedule-week .shift-card .shift-time{white-space:nowrap;font-weight:600;font-size:17px}
.schedule-week .is-rest{background:#f4f6f8;color:#556476}
.schedule-week .pill{white-space:normal}
.schedule-editor>h2{margin-top:0}
.schedule-editor form>fieldset{border:0;padding:0;margin:0;min-width:0}
.schedule-editor fieldset:disabled{opacity:.65}
.schedule-editor .row{flex-wrap:wrap}
.schedule-day-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.edit-day{min-width:0;border:1px solid #dce3eb;border-radius:8px;padding:12px}
.edit-day legend{padding:0 6px;font-weight:600}
.day-choice{display:flex;gap:8px;align-items:center;min-height:36px;margin-bottom:8px}
.day-choice input{width:18px;height:18px}
.edit-day .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.edit-day .field{min-width:0}
.edit-day input,.edit-day select{width:100%;min-height:44px;box-sizing:border-box}
.edit-day output{display:block;font-size:13px;color:#526176;margin-top:6px}
.schedule-history{border-bottom:1px solid #dce3eb;padding:12px 0}
.schedule-history summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;min-height:44px;list-style:disclosure-closed}
.schedule-history summary small{display:block;color:#526176;margin-top:6px}
.schedule-history p{overflow-wrap:anywhere}
#weekFeedback{min-height:24px}
.schedule-editor [hidden]{display:none!important}
@media(min-width:1400px){.schedule-week{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:760px){.schedule-day-editor{grid-template-columns:1fr}.schedule-week{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-toolbar{gap:8px}.schedule-history summary{align-items:start;flex-direction:column}.schedule-editor .row>.field{flex-basis:100%}.schedule-toolbar .field{min-width:130px}.schedule-editor .submit-row{position:sticky;bottom:75px;background:#fff;padding:10px 0}.schedule-editor{padding:16px}}
@media(max-width:390px){.edit-day .row{grid-template-columns:repeat(2,minmax(0,1fr))}.edit-day .row .field:last-child{grid-column:1/-1}}


/* Staffing uses text as well as colour and stays readable on narrow screens. */
.staffing-preview { margin: 12px 0; }
.staffing-preview summary { cursor: pointer; font-weight: 600; }
.staffing-preview-day { padding: 12px 0; border-top: 1px solid var(--line, #dce3ed); }
.staffing-preview-day h3 { font-size: 1rem; margin: 0; }
.home-coverage .home-line strong, .staffing-preview .home-line strong { overflow-wrap: anywhere; }
@media (max-width: 600px) {
 .home-coverage .home-line, .staffing-preview .home-line { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* Phase 7: Schedule views and a compact calendar that fits a phone. */
.schedule-tabs {display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.schedule-tabs [aria-current="page"] {background:var(--navy,#183455);color:white}
.team-calendar-layout {display:grid;grid-template-columns:minmax(300px,0.85fr) minmax(0,1.15fr);gap:20px;align-items:start}
.team-calendar-layout > .panel {min-width:0;margin:0}
.calendar-controls {display:flex;align-items:center;gap:6px;margin-bottom:12px}
.calendar-controls .field {min-width:0;flex:1;margin:0}
.calendar-controls .input {min-width:0;width:100%;padding:7px 4px;font-size:14px}
.calendar-controls .secondary {padding:6px 10px;min-height:40px}
.team-month {grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.team-month .day {height:70px;min-width:0;width:100%;padding:4px 0;display:flex;flex-direction:column;justify-content:center;gap:3px;background:white;border:1px solid var(--line);color:var(--navy,#183455);cursor:pointer}
.team-month .day.today {background:#eaf1fc;color:#183455}
.team-month .day[aria-pressed="true"] {border:2px solid #345b90;background:#eaf1fc}
.team-month .day small {font-size:10px;white-space:nowrap;min-height:12px}
.calendar-markers {display:flex;gap:4px;align-items:center;min-height:8px;font-size:9px}
.coverage-dot {width:7px;height:7px;border-radius:50%;display:inline-block;background:#65758a}
.coverage-dot.adequate {background:#287457}.coverage-dot.below {background:#99600b}
.calendar-key {font-size:12px;line-height:1.5;color:#596b82;margin:12px 0}
.calendar-detail h2 {font-size:20px;margin-top:0;overflow-wrap:anywhere}
.availability-group {margin-top:20px}.availability-group h3 {font-size:15px;display:flex;gap:8px;align-items:center}
.availability-group ul {list-style:none;margin:0;padding:0}
.availability-row {display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}
.availability-row>div {text-align:right}.availability-row small {display:block;color:#596b82;font-size:12px;margin-top:3px}
.calendar-coverage {margin:16px 0}.calendar-coverage>summary {cursor:pointer;font-weight:600}.calendar-coverage .home-day {margin-top:12px}
.holiday-label {font-size:14px;color:#345b90}
@media(max-width:850px){.team-calendar-layout{grid-template-columns:minmax(0,1fr)}.calendar-month{max-width:520px;width:100%;justify-self:center}}
@media(max-width:620px){.team-month .day{height:48px;gap:1px;border-radius:6px}.team-month{gap:3px}.calendar-controls .secondary{min-height:40px;padding:6px 9px}.calendar-key{font-size:11px}.calendar-detail h2{font-size:18px}.availability-row{font-size:13px;gap:10px}.calendar-month{padding:12px}.calendar-detail{padding:16px}.team-calendar-layout{gap:14px}}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Phase 8: compact request review. */
.review-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:12px}
.review-toolbar .field{flex:1 1 180px;max-width:340px;margin:0}.review-toolbar a{padding:10px 0}
.review-card{padding:18px;margin-bottom:12px;min-width:0;overflow-wrap:anywhere}
.review-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.review-head h2{margin:0 0 4px;font-size:17px}.review-head small{font-size:13px;font-weight:400}
.review-type{text-transform:capitalize;color:var(--muted)}
.review-facts{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0}
.review-card details{margin:10px 0}.review-card summary{cursor:pointer}
.review-card .review-warnings{border-left:3px solid #b7791f;padding:8px 12px;background:#fff9ec}
.review-card .review-impact{font-size:13px;margin:10px 0}
.review-card .reviewForm{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.review-card .reviewForm>.field{max-width:620px}.review-note{white-space:pre-wrap}
.review-card .shift-actions{display:flex;flex-wrap:wrap;gap:8px}
.review-card .review-result:empty{display:none}.review-history-list{font-size:13px}
.review-card .review-edit{padding:8px 0}.review-card .review-edit .row{flex-wrap:wrap}
@media(max-width:600px){.review-card{padding:14px}.review-head{flex-wrap:wrap}.review-facts{display:grid;gap:4px}.review-toolbar .field{max-width:none;flex-basis:140px}.review-card .shift-actions button{flex:1 1 130px}.review-card .row{display:grid;grid-template-columns:minmax(0,1fr)}.review-card input,.review-card select,.review-card textarea{max-width:100%;min-width:0}}


/* Staff directory and administrative settings */
.staff-tools{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;align-items:end}
.staff-tools .field{flex:1;min-width:150px}
.staff-directory{border:1px solid var(--line,#dce4df);border-radius:12px;overflow:hidden;background:white}
.staff-row{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(100px,.7fr) minmax(150px,1fr) minmax(180px,1.5fr);gap:16px;padding:14px 18px;align-items:center;border-bottom:1px solid var(--line,#dce4df)}
.staff-row:last-child{border-bottom:0}.staff-row small{display:block;color:#52635b;margin-top:4px}.staff-row span{overflow-wrap:anywhere}
.staff-actions{display:flex;gap:6px;flex-wrap:wrap}.staff-actions button{padding:8px 10px}
#leavePolicySettings form{max-width:700px;display:grid;gap:14px}#leavePolicySettings h3{margin-top:24px}#leavePolicySettings input,#leavePolicySettings select{max-width:100%}
@media(max-width:850px){.staff-row{grid-template-columns:1fr 1fr}.staff-actions{grid-column:1/-1}}
@media(max-width:480px){.staff-tools .field{min-width:100%}.staff-row{padding:14px;gap:10px}.staff-row>div:first-child{grid-column:1/-1}}


/* Secondary pages stay compact, including long audit snapshots on phones. */
.more-list h2 {padding:18px 0 6px;font-size:17px}
.more-list details {padding:14px 0}
.more-list summary,#pay summary {cursor:pointer;padding:10px 0;font-weight:600}
.audit-row {border-top:1px solid var(--line);overflow-wrap:anywhere}
.audit-row pre {white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.holiday-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.holiday-list .panel {padding:16px}.holiday-list h2 {font-size:16px}
#pay .saved-shift {min-width:0;overflow-wrap:anywhere}
#pay .shift-actions {flex-wrap:wrap}
@media(max-width:620px){.holiday-list {grid-template-columns:1fr}#pay .row {display:grid;grid-template-columns:1fr}#pay .shift-actions {width:100%}#pay input,#pay select,#pay textarea {max-width:100%;box-sizing:border-box}}


/* Account controls keep their existing accessible button labels. */
.profile{flex-wrap:wrap;overflow-wrap:anywhere}.profile>div:last-child{min-width:0}.profile a,.profile button,.profile small{display:block;margin-top:6px}.mobile-account{display:none}
@media(max-width:900px){.mobile-account{display:inline-block}}

/* Everyday Staff Desk — white shell and timetable palette from the supplied reference. */
:root{--navy:#003d61;--ink:#163e5c;--blue:#009bfa;--sky:#e4f4ff;--bg:#f7faff;--muted:#6c8096;--line:#dfe8f1;--focus:#007acc;--radius:10px}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
[hidden]{display:none!important}button,a,input,select,textarea{touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sidebar{width:238px;background:#fff;color:var(--navy);border-right:1px solid var(--line);padding:20px 18px 22px}.main{margin-left:238px;min-width:0}.brand{padding:0 12px 32px;align-items:center}.brand-mark{background:var(--sky);color:var(--blue);border:1px solid #bce6ff;font-size:26px}.brand b{color:var(--navy)}.brand small{color:var(--muted)}.nav-label{color:var(--muted);font-size:10px;letter-spacing:.15em;padding:12px}.nav button{color:#61798f;font-size:14px;min-height:48px;border-radius:8px;padding:12px}.nav button:hover{background:#f1f8fd;color:var(--navy)}.nav button.active{background:var(--sky);color:#0086df}.nav .ico{color:inherit}.approval-count{background:#d8eeff;color:#0065a1;font-size:11px;border-radius:12px;min-width:21px;padding:1px 6px}.approval-count:empty{display:none}
.profile{border-top:1px solid var(--line);color:var(--navy);align-items:flex-start;padding:20px 8px 0;flex-wrap:nowrap;gap:10px}.avatar{background:var(--sky);color:#0089dd;flex-shrink:0}.profile strong{font-size:13px;color:var(--navy)}.profile small{color:var(--muted);font-size:11px}.profile #signedInEmail{display:block;font-size:11px!important;margin:4px 0 9px}.profile a{color:#007fc9;text-decoration:none;font-size:12px}.profile button{margin-top:8px;padding:4px 10px;min-height:32px;font-size:12px}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px}.topbar-title{font-weight:700;font-size:14px;color:var(--navy)}.topbar-title span{color:var(--muted);font-size:12px;font-weight:400;border-left:1px solid var(--line);margin-left:15px;padding-left:15px}.content{max-width:1600px;margin:0 auto;padding:24px 34px 60px}.hello{margin-bottom:24px}.hello h1,.screen h1{font-size:28px;font-weight:750;letter-spacing:-.03em}.eyebrow{color:#0089dd;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.12em;margin-bottom:9px}.hello p,.section-heading p{color:var(--muted);font-size:13px;margin:7px 0 0}.panel{padding:24px;margin:0 0 22px;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 18px #123d6103}.panel h2{font-size:17px;color:var(--navy)}.button{background:var(--blue);border-color:var(--blue)}.button:hover{background:#0089e0;border-color:#0089e0}.secondary{background:#fff;color:var(--navy);border-color:var(--line)}.secondary:hover{background:#f3f9fd}.link{color:#0089dd}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.section-heading h2{margin:0}.section-heading button{flex-shrink:0}
#overview .home-topline{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:2px 0 26px}#overview .next-holiday,#overview .own-pending{display:flex;flex-direction:column;align-items:flex-start;gap:3px}#overview .home-topline b{font-size:17px;color:var(--navy)}#overview .home-topline small{color:var(--muted)}#overview .home-topline p{margin:4px 0;color:var(--muted);font-size:13px}#overview .admin-timetable{margin-top:30px}#overview .personal-timetable{border-top:3px solid #4ebeff}.timetable-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}.date-nav{display:flex;align-items:center;gap:5px}.icon-button{width:34px;min-height:36px;padding:0;font-size:24px}.compact-date input{padding:6px 8px;min-height:36px;width:145px;font-size:13px}.segmented{display:inline-flex;border:1px solid var(--line);padding:3px;border-radius:8px;background:#f5f9fc}.segmented button{background:transparent;border:0;border-radius:5px;padding:6px 14px;min-height:30px;cursor:pointer;color:var(--muted);font-weight:600}.segmented button[aria-pressed=true]{background:white;color:var(--navy);box-shadow:0 1px 4px #173e5e12}.timetable-toolbar select{min-height:36px;font-size:13px;padding:6px 28px 6px 10px}.time-search{margin-left:auto}.time-search input{min-height:36px;font-size:13px;padding:6px 11px;max-width:190px}.desktop-timetable{overflow:auto;border:1px solid var(--line);border-radius:9px}.shift-matrix{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;min-width:740px;font-size:12px}.shift-matrix th,.shift-matrix td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:8px;vertical-align:middle;text-align:left}.shift-matrix tr:last-child>*{border-bottom:0}.shift-matrix tr>*:last-child{border-right:0}.shift-matrix thead th{font-size:11px;font-weight:650;background:#f8fbfe;color:#6c8196;padding:13px 9px}.shift-matrix th:first-child{width:132px;position:sticky;left:0;background:#fff;z-index:1}.shift-matrix thead th:first-child{background:#f8fbfe}.shift-matrix .today-column{background:#eaf7ff;color:#0083cc}.person-name{display:block;font-size:13px;color:var(--navy);font-weight:650;overflow-wrap:anywhere}.shift-matrix th small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:4px}.shift-block{width:100%;min-height:60px;padding:10px 8px;border:1px solid transparent;border-left:3px solid #65b4f0;border-radius:6px;display:flex;flex-direction:column;justify-content:center;gap:4px;text-align:left;color:#1a4e77;background:#e9f5ff;cursor:pointer;font-size:11px}.shift-block strong{font-size:12px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}.shift-block small{font-size:10px;color:inherit;line-height:1.35}.tone-1{background:#eaf5ef;border-left-color:#72b49c;color:#286b51}.tone-2{background:#f0edff;border-left-color:#a49ad8;color:#635395}.tone-3{background:#fff0e7;border-left-color:#e7aa7f;color:#93623c}.tone-4{background:#e6f5f6;border-left-color:#70b8bf;color:#286772}.shift-block.is-rest{background:#f1f4f7;color:#7b8c9b;border-left-color:#c7d1db}.shift-block.is-leave{background:#fff7dc;color:#8b712c;border-left-color:#dfc575}.shift-block.is-missing{background:#fff;color:#8393a2;border:1px dashed #c7d3df}.shift-block.is-selected{outline:2px solid #009bfa;outline-offset:1px}.pending-tag{background:#fffdf6;align-self:flex-start;padding:2px 4px;border-radius:3px}.timetable-key{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:12px 0 0}.week-selector,.mobile-agenda{display:none}.selection-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 24px}.selection-actions p{flex:1;min-width:220px;font-size:13px;color:var(--muted)}.shift-details{padding:16px 20px;background:#edf7ff;border:1px solid #d6ebfa;border-radius:9px;margin:16px 0;font-size:13px}.shift-details h3{font-size:14px;margin:0 0 8px}.shift-details p{margin:6px 0}.other-schedule,.request-history{border-top:1px solid var(--line);padding:17px 0;margin-top:15px}.other-schedule summary,.request-history summary{font-size:13px;color:var(--navy);cursor:pointer}.other-schedule>.field{max-width:320px;margin-top:16px}.date-change-row{display:grid;grid-template-columns:110px 100px 1fr 1fr 1fr;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.rest-choice{font-size:12px}.rest-choice input{width:18px;min-height:18px}.date-change-row input{max-width:100%;min-width:0}.schedule-editor{margin-top:20px}.schedule-editor fieldset{border:0;padding:0;min-width:0}.schedule-editor legend{font-size:12px;color:var(--muted);margin:15px 0}.schedule-editor textarea{width:100%}
.review-toolbar{gap:12px;flex-wrap:wrap}.review-toolbar .field{min-width:180px}.review-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}.review-layout:has(.focused-review:not([hidden])){grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)}.request-summary{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:10px}.request-summary-button{padding:17px 18px;width:100%;background:none;border:0;display:grid;grid-template-columns:minmax(120px,1fr) minmax(130px,1.2fr) auto 12px;text-align:left;gap:9px 16px;align-items:center;color:var(--navy);cursor:pointer}.summary-name{font-weight:700}.request-summary small{display:block;color:var(--muted);font-size:11px;margin-top:4px;font-weight:400}.summary-dates{font-size:12px}.summary-warning{font-size:11px;color:#8b712c;grid-column:1/4;line-height:1.5}.request-summary-button>span:last-child{grid-column:4;grid-row:1/3;font-size:24px;color:#6a95b1}.focused-review{min-width:0;position:sticky;top:90px;max-height:calc(100vh - 110px);overflow:auto;background:#fff;border:1px solid #bedff5;border-radius:10px;padding:18px}.review-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-panel-header h2{font-size:16px;margin:0}.focused-review .review-card{border:0;margin:12px 0 0;padding:0}.focused-review .review-head h2{font-size:20px}.focused-review form{border-top:1px solid var(--line);padding-top:17px;margin-top:17px}.review-date-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}.review-date-tabs [aria-pressed=true]{background:var(--sky);border-color:#90d2fa}.schedule-comparison{padding:14px;background:#f4f9fc;border-radius:8px;margin:16px 0}.schedule-comparison h3{margin:0 0 8px;font-size:13px}.schedule-comparison>div{display:grid;gap:3px;padding:7px 0}.schedule-comparison span,.schedule-comparison small{font-size:11px;color:var(--muted)}.schedule-comparison b{font-size:13px}.review-result:empty{display:none}.staff-tools{grid-template-columns:minmax(180px,1fr) minmax(160px,220px);max-width:650px}.staff-row{grid-template-columns:minmax(150px,1fr) 125px auto}.staff-actions{flex-wrap:wrap}.access-editor{margin:20px 0}.access-editor form{display:grid;gap:14px;max-width:550px}.access-editor form input,.access-editor form select{width:100%}.access-editor form .button{justify-self:start}.holiday-row{display:grid;grid-template-columns:120px 1fr;gap:20px}.holiday-row time{font-size:13px;font-weight:650}.holiday-row h2{margin:0 0 5px}.more-list h2{margin-bottom:6px}.empty-state{padding:30px;border:1px dashed var(--line);border-radius:8px;color:var(--muted)}
@media(min-width:761px){.mobile-account{display:none}.sidebar{display:flex}.mobile-nav{display:none}.request-summary-button{min-height:80px}}
@media(max-width:1100px) and (min-width:761px){.sidebar{width:206px;padding-inline:12px}.main{margin-left:206px}.content{padding:25px 22px}.topbar{padding:0 22px}.review-layout:has(.focused-review:not([hidden])){grid-template-columns:1fr}.focused-review{position:static;max-height:none}}
@media(max-width:760px){.sidebar{display:none}.main{margin-left:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.topbar{height:58px;padding:0 18px}.topbar-title span{display:none}.topright .today{display:none}.mobile-account{display:inline-flex;font-size:13px;padding:8px 0;color:#007fc9}.content{padding:24px 16px 30px}.hello{align-items:flex-start;gap:12px}.hello h1,.screen h1{font-size:25px}.hello .secondary{min-height:40px}.panel{padding:18px 15px;margin-bottom:18px}.mobile-nav{display:flex;gap:3px;border-top:1px solid var(--line);box-shadow:none}.mobile-nav button{min-height:50px}.mobile-nav button.active{color:#0089dd;background:var(--sky)}.section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.section-heading .button{min-height:44px}.timetable-toolbar{gap:10px;margin:0 0 16px}.date-nav{flex:1;justify-content:space-between;min-width:240px}.compact-date input{font-size:16px;width:145px}.segmented{margin-left:0}.segmented button{min-height:36px;font-size:13px}.timetable-toolbar select{min-height:44px;font-size:16px;flex:1;max-width:170px}.time-search{flex:1;min-width:130px}.time-search input{font-size:16px;width:100%;max-width:none;min-height:44px}.desktop-timetable{display:none}.mobile-agenda{display:block}.week-selector{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:22px}.week-selector button{padding:8px 0;background:#fff;border:1px solid transparent;border-radius:8px;display:grid;gap:4px;min-height:58px;color:#6c8096;cursor:pointer}.week-selector button.selected{background:var(--sky);border-color:#b9e2ff;color:#0085d4}.week-selector span{font-size:10px}.week-selector b{font-size:16px}.agenda-day{margin-bottom:22px}.agenda-day h3{font-size:13px;margin:0 0 12px}.agenda-person{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:10px;margin:8px 0}.agenda-person>span{font-size:12px;font-weight:650;overflow-wrap:anywhere}.shift-block{min-height:62px;padding:11px 12px}.shift-block strong{font-size:14px}.shift-block small{font-size:11px}.timetable-key{gap:8px 14px;font-size:10px;border-top:1px solid var(--line);padding-top:12px}.selection-actions{align-items:stretch;gap:8px}.selection-actions p{flex-basis:100%;margin:0 0 5px}.selection-actions button{min-height:44px}.date-change-row{grid-template-columns:1fr 1fr;gap:12px}.date-change-row>b{font-size:13px}.date-change-row .field:last-child{grid-column:1/-1}.review-layout,.review-layout:has(.focused-review:not([hidden])){grid-template-columns:1fr}.request-summary-button{grid-template-columns:1fr auto 12px;padding:16px 14px;gap:9px}.summary-name{grid-column:1/3;font-size:14px}.summary-dates{grid-column:1;font-size:12px}.summary-warning{grid-column:1/3}.request-summary .pill{grid-column:2;grid-row:2}.request-summary-button>span:last-child{grid-column:3;grid-row:1/4}.focused-review{position:static;max-height:none;padding:16px}.review-toolbar{display:grid;grid-template-columns:1fr 1fr}.review-toolbar .field{min-width:0}.review-toolbar select{font-size:16px;width:100%;min-width:0}.review-toolbar>a{grid-column:1/-1}.staff-row{grid-template-columns:1fr auto}.staff-actions{grid-column:1/-1;justify-content:flex-start}.staff-tools{display:grid;grid-template-columns:1fr}.staff-tools .field{width:100%}.staff-tools input,.staff-tools select{width:100%;font-size:16px}.holiday-row{grid-template-columns:1fr;gap:8px}.holiday-list{grid-template-columns:1fr}#overview .home-topline{grid-template-columns:1fr;gap:18px;padding-bottom:24px}#overview .home-topline section+section{border-top:1px solid var(--line);padding-top:18px}#overview .admin-timetable{margin-top:26px}.shift-details{padding:14px;font-size:13px}}
.agenda-holiday{font-size:11px;line-height:1.5;padding:8px 10px;border-radius:6px;background:#fff6de;color:#8b712c}
.auth-page{background:var(--bg);color:var(--navy)}.auth-page button,.auth-page .button{background:var(--blue);color:white;border:1px solid var(--blue);border-radius:8px}.auth-page button.secondary{background:white;color:var(--navy);border:1px solid var(--line)}.auth-page a{color:#007fc9}.auth-page .card{border-color:var(--line);box-shadow:none}.auth-page header .badge{background:var(--sky);color:#0074b9}
/* Context is opened only after a shift is selected; keep it near the selection action. */
#schedule .selection-actions.has-selection:not(.is-editing){position:fixed;right:28px;bottom:20px;z-index:35;background:white;border:1px solid #bedff5;border-radius:10px;padding:14px 16px;margin:0;max-width:440px;box-shadow:0 5px 25px #16436318}#schedule .selection-actions.has-selection:not(.is-editing) p{flex-basis:100%;margin:0 0 7px;min-width:0}.schedule-inspector{position:fixed;right:28px;bottom:147px;z-index:34;width:360px;max-width:calc(100vw - 40px);max-height:40vh;overflow:auto;box-shadow:0 5px 25px #16436315;border-radius:10px}.schedule-inspector .shift-details{margin:0;padding-top:20px}.schedule-inspector>button{position:absolute;top:8px;right:8px;padding:0;width:28px;min-height:28px;font-size:18px}.schedule-inspector h3{padding-right:28px}
@media(max-width:760px){.date-nav .icon-button{min-width:40px;min-height:44px}.compact-date input{width:130px}.schedule-inspector{right:16px;bottom:220px;width:calc(100vw - 32px);max-height:33vh}#schedule .selection-actions.has-selection:not(.is-editing){left:16px;right:16px;bottom:calc(78px + env(safe-area-inset-bottom));max-width:none;padding:11px 12px;gap:7px}#schedule .selection-actions.has-selection:not(.is-editing) p{font-size:12px}.review-panel-header button{min-height:44px}}
@media(max-width:360px){.date-nav{flex-wrap:wrap;min-width:0}.date-nav .compact-date{flex:1}.compact-date input{width:100%}.timetable-toolbar .date-nav{flex-basis:100%}}

/* Phone QA: preserve complete native date text and meaningful filter labels. */
@media(max-width:760px){.timetable-toolbar .date-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;min-width:0;flex-basis:100%;width:100%}.date-nav .compact-date{min-width:0;width:100%}.compact-date input{width:100%;min-width:0;padding-inline:7px}.date-nav [data-time-today]{grid-column:1/-1;justify-self:start;min-height:44px}.timetable-toolbar select{flex:1 1 140px;min-width:140px;max-width:none}.time-search{flex:1 1 140px;min-width:140px}.segmented button{min-height:44px}}

/* Compact shell: account actions remain available in More on phones. */
.mobile-account-menu{display:none}
@media(max-width:760px){.mobile-account-menu{display:block}}

/* Academy identity and the admin staff editor. */
.academy-logo{display:block;margin:8px 9px 24px;flex-shrink:0}.academy-logo img{display:block;width:100%;height:auto;max-height:100px;object-fit:contain}.sidebar .nav{margin-top:4px}
.staff-profile-dialog{width:min(900px,calc(100vw - 32px));max-height:90vh;box-sizing:border-box;border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);background:#fff;box-shadow:0 16px 70px #003d6126;overscroll-behavior:contain}.staff-profile-dialog::backdrop{background:#163e5c66}.profile-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.profile-dialog-heading h2{margin:0;font-size:23px}.profile-dialog-heading button{font-size:22px;min-width:44px}.staff-profile-dialog fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}.staff-profile-dialog legend{font-size:17px;font-weight:700;padding:0;margin-bottom:16px}.staff-profile-dialog .field{display:grid;gap:6px;min-width:0}.staff-profile-dialog input,.staff-profile-dialog select,.staff-profile-dialog textarea{width:100%;box-sizing:border-box;min-width:0}.profile-details .row{margin-bottom:14px}.weekly-start{max-width:210px}.weekly-day-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:20px;border:1px solid var(--line);border-radius:12px;padding:18px;margin-top:12px;background:#fbfdff}.weekly-day-name h3{margin:0 0 12px;font-size:15px}.weekly-day-times{min-width:0}.working-period{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr) 36px;align-items:end;gap:8px;margin-bottom:10px}.working-period>span{align-self:center;padding-top:20px}.working-period button{min-width:36px;padding-inline:6px}.weekly-lunch{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}.weekly-lunch>b{grid-column:1/-1;font-size:13px}.weekly-lunch small{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}.weekly-day-times output{display:block;font-size:12px;color:var(--muted);margin-top:12px}.profile-dialog-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-24px;background:#fff;padding:16px 0;margin-top:18px;border-top:1px solid var(--line)}#staffProfileStatus{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.shift-block strong{white-space:normal}.records-search{display:grid;gap:8px;max-width:400px;margin:0 0 24px}.record-row{padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.record-row>p{margin:0 0 7px;font-size:14px;line-height:1.5}.record-row time{font-size:12px;color:var(--muted)}.record-row details{margin-top:12px;font-size:13px}.record-row details p{display:grid;gap:5px;margin:12px 0}.record-row summary{color:#007fc9;cursor:pointer}
@media(max-width:760px){.staff-profile-dialog{padding:18px;width:calc(100vw - 20px);max-height:92vh}.weekly-day-row{grid-template-columns:1fr;gap:14px;padding:14px}.weekly-day-name{display:flex;align-items:center;justify-content:space-between;gap:12px}.weekly-day-name h3{margin:0}.weekly-day-name .field{width:140px}.profile-details .row{grid-template-columns:1fr}.staff-profile-dialog input,.staff-profile-dialog select{font-size:16px;min-height:44px}.profile-dialog-actions{bottom:-18px}.record-row{padding:16px}.mobile-nav button{padding-inline:2px}}

@media(max-width:760px){.weekly-day-row .working-period{grid-template-columns:minmax(0,1fr) 40px}.weekly-day-row .working-period>.field{grid-column:1}.weekly-day-row .working-period>span{display:none}.weekly-day-row .working-period>button{grid-column:2;grid-row:1/3;align-self:center}.weekly-day-row .working-period input{padding-inline:8px}.current-periods{display:block;font-size:11px;font-weight:400;margin-top:6px;line-height:1.4}}

.profile-week-options,.staff-details-options{border-top:1px solid var(--line);padding-top:16px;margin-bottom:20px}.profile-week-options>summary,.staff-details-options>summary{cursor:pointer;font-weight:700;font-size:17px;min-height:44px}.confirmed-availability{display:none}
@media(max-width:760px){.teacher-home .personal-timetable>.section-heading h2,.teacher-home .personal-timetable>.section-heading p,.teacher-home .compact-date{display:none}.teacher-home .personal-timetable>.section-heading{justify-content:flex-end}.teacher-home .mobile-agenda .confirmed-availability{display:block;font-size:17px;margin:22px 0 14px}.teacher-home .agenda-person>span{display:none}.teacher-home .week-selector{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;touch-action:pan-x pan-y;padding-bottom:8px}.teacher-home .week-selector>button{flex:0 0 58px;scroll-snap-align:center;min-height:64px}.teacher-home .shift-details h3{font-size:16px}.mobile-nav{overflow-x:auto;justify-content:flex-start}.mobile-nav button{flex:1 0 52px}}

@media(max-width:760px){.teacher-home .detail-person{display:none}}

#timeOffSlots fieldset{border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}#timeOffSlots legend{font-weight:700;font-size:13px}.modal{max-height:90dvh;overflow-y:auto}.staff-details-options .field{margin-bottom:14px}

@media(max-width:760px){.teacher-account #schedule .week-selector{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:8px}.teacher-account #schedule .week-selector>button{flex:0 0 58px;scroll-snap-align:center}.teacher-home .agenda-day{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:12px}.teacher-home .agenda-day h3{font-size:15px;margin:0 0 12px}.teacher-home .timetable-key{display:none}}

@media(max-width:760px){.teacher-home .timetable-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.teacher-home .date-nav{display:flex;flex:0 0 auto;gap:4px}.teacher-home .date-nav>.secondary{padding:8px;min-width:36px}.teacher-home .segmented{margin:0}.teacher-home .agenda-person{display:block}.teacher-home .agenda-person .shift-block{width:100%;text-align:left;padding:14px}.teacher-home .agenda-person .shift-block strong{font-size:19px}}
@media(max-width:760px){.teacher-home .date-nav{width:auto;justify-content:flex-start}.teacher-home .date-nav .icon-button{width:36px;max-width:36px}}

/* Phase 2: compact branded timetable and role-specific teacher views. */
.personal-timetable{border:1px solid #dbe7f2;border-radius:18px;box-shadow:0 12px 36px rgba(22,58,96,.07);overflow:hidden}
.personal-timetable .timetable-toolbar{border-radius:12px;background:#f3f8fd;padding:12px}
.personal-timetable .shift-block{border-radius:12px;box-shadow:0 2px 7px rgba(19,59,102,.05);transition:border-color .15s,box-shadow .15s}
.personal-timetable .shift-block:focus-visible,.teacher-week-card:focus-within,.teacher-detailed-day:focus-within{outline:3px solid #76b9ea;outline-offset:2px}
.admin-schedule-link{text-align:center;border-top:1px solid #e0eaf2;margin-top:16px;padding:16px 4px 2px}
.admin-schedule-link .link{font-weight:700;color:#175c98}
.teacher-mobile-only{display:none}
.teacher-week-home h2,.teacher-week-schedule h2{color:#153d66;font-size:19px;margin:0 0 10px}
.teacher-week-nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
.teacher-week-nav strong{font-size:12px;flex:1;text-align:center;color:#204c78}
.teacher-week-nav .secondary{min-width:38px}
.teacher-today-card{background:linear-gradient(140deg,#153d66,#256ca9);color:white;border-radius:18px;padding:23px 20px;margin-bottom:14px;box-shadow:0 10px 24px rgba(24,71,120,.18)}
.teacher-today-card>small{letter-spacing:.12em;font-weight:700;opacity:.8}
.teacher-today-card>h3{font-size:20px;color:white;margin:7px 0}
.teacher-today-card>strong{font-size:25px;display:block;line-height:1.25}
.teacher-today-card p{color:#e2f1ff}
.teacher-today-card details{margin-top:12px}
.teacher-today-card summary{cursor:pointer;color:white;text-decoration:underline}
.teacher-week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.teacher-week-card,.teacher-detailed-day{border:1px solid #d7e7f4;border-radius:13px;background:#f8fbff;overflow:hidden}
.teacher-week-card summary,.teacher-detailed-day summary{list-style:none;cursor:pointer;padding:15px 12px}
.teacher-week-card summary::-webkit-details-marker,.teacher-detailed-day summary::-webkit-details-marker{display:none}
.teacher-week-card summary span,.teacher-detailed-day summary span{display:block;color:#4d6c89;font-size:12px;font-weight:600;margin-bottom:7px}
.teacher-week-card summary strong,.teacher-detailed-day summary strong{display:block;color:#123d66;font-size:15px;overflow-wrap:anywhere}
.teacher-week-card summary small,.teacher-detailed-day summary small{display:block;color:#926724;margin-top:7px}
.teacher-week-card[open],.teacher-detailed-day[open]{background:#edf7ff;border-color:#6eafd8}
.teacher-shift-details{padding:11px;border-top:1px solid #d3e3f1;font-size:13px;background:#fff;color:#20415e}
.teacher-detailed-day{margin:10px 0}
.teacher-detailed-day summary{padding:17px}
.teacher-detailed-day summary strong{font-size:17px}
@media(max-width:760px){
 .teacher-home #personalTimetable{display:none}
 .teacher-home .teacher-mobile-only,.teacher-account #schedule .teacher-mobile-only{display:block}
 .teacher-home .personal-timetable>.section-heading{justify-content:flex-end}
 .teacher-account #schedule .timetable{display:none}
 .teacher-home .personal-timetable{padding:16px}
 .teacher-home .teacher-week-home{margin-top:8px}
 .teacher-home .personal-timetable>.section-heading{margin-bottom:10px}
}

.profile-information{border:1px solid #dae7f1;border-radius:15px;padding:20px;margin-bottom:16px;background:#f7fbff}
.profile-details-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.profile-details-heading h2{color:#173f67;margin:0}
.profile-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:16px 0 0}
.profile-facts dt{font-size:12px;color:#59728c}
.profile-facts dd{font-size:15px;font-weight:700;color:#183f62;margin:4px 0 0;overflow-wrap:anywhere}
@media(max-width:760px){.profile-information{padding:16px}.profile-facts{grid-template-columns:1fr 1fr}.profile-facts>div:nth-child(2){grid-column:1/-1}}

/* Phase 2 QA: readable personal cards and mobile request controls. */
.personal-timetable .shift-block:not(.is-rest):not(.is-leave):not(.is-missing){background:#e9f5ff;border-left-color:#65b4f0;color:#153d66}
.teacher-today-card .teacher-shift-details p{color:#20415e}
.teacher-week-card>summary::after,.teacher-detailed-day>summary::after{content:'Details ▾';display:block;margin-top:8px;font-size:11px;color:#175c98}
.teacher-week-card[open]>summary::after,.teacher-detailed-day[open]>summary::after{content:'Details ▴'}
.teacher-select-date{margin:0 12px 12px;max-width:calc(100% - 24px)}
.teacher-select-date[aria-pressed=true]{background:#153d66;color:#fff}
@media(max-width:760px){
 #leave>.hello{flex-wrap:wrap;align-items:flex-start;gap:14px}
 #leave>.hello>div{flex:1 1 190px}
 .teacher-account #schedule .schedule-inspector{display:none}
 .teacher-today-card>strong{overflow-wrap:anywhere}
 .teacher-week-nav strong{min-width:0}
}
