/* Main school's red, peach, white and Segoe UI. Screen-only: status meanings
   and document artwork are separate from the navigation brand. */
@media screen {
 :root{--primary:#ee3124;--accent:#ee3124;--orange:#ee3124;--navy:#1e1e2d;--ink:#1e1e2d;--muted:#555;--line:#e9e9ec;--brand-soft:#fdf2f0;--brand-hover:#c1271d;--surface-shadow:0 5px 22px #1e1e2d06}
 body{font-family:'Segoe UI',Arial,sans-serif;background:#fff;color:var(--ink)}
 :is(h1,h2,h3,h4):where(:not(.finance-paper *)){color:var(--ink);font-family:'Segoe UI',Arial,sans-serif}
 :is(button,a,input,select,textarea):focus-visible{outline-color:#1468b2}
 .topbar{background:#fff;border-bottom:3px solid #ee3124;border-radius:0;box-shadow:0 5px 18px #1e1e2d05}
 .topbar :is(.breadcrumb,.breadcrumb strong,#signed-in-person strong,.icon-button){color:var(--ink)}
 .topbar #signed-in-person small{color:var(--muted)}
 .topbar .menu-button{background:#fdf2f0;color:#c1271d;border:1px solid #f6ded9;border-radius:12px}
 .topbar .icon-button:hover{background:#fdf2f0;color:#c1271d}
 #staff-task-alert{background:#fdf2f0;color:#c1271d;border-color:#f6ded9}
 .topbar .sr-language{background:#fff!important;border-color:#e9e9ec!important;color:#c1271d!important}
 .sidebar{background:#fff;border-color:var(--line)}.sidebar .brand{color:var(--ink)}
 .nav-link{color:#555;font-weight:600}.nav-link svg{color:currentColor}
 .nav-link:hover{background:#fdf2f0;color:#c1271d}
 .nav-link.active{background:#fdf2f0;color:#c1271d;box-shadow:inset 3px 0 #ee3124;font-weight:750}
 .nav-link.active svg{color:#c1271d}.nav-link.active .sr-nav-dot{background:#ee3124}
 .mobile-menu-close{background:#fdf2f0;color:#c1271d;border-radius:12px}
 .brand small,.workspace-label,.eyebrow,.home-kicker,.sr-kicker{color:#c1271d}
 .avatar.peach,.nav-count{background:#fdf2f0;color:#c1271d}
 .button.primary,.button.orange,#database-gate .home-login-panel .button.primary{background:#c1271d;border-color:#c1271d;color:#fff;border-radius:50px;font-weight:700;box-shadow:0 4px 12px #ee312414}
 .button.primary:hover,.button.orange:hover,#database-gate .home-login-panel .button.primary:hover{background:#a82118;border-color:#a82118}
 .button.secondary{color:#555;border-color:#ddd;background:#fff}.button.secondary:hover,.icon-button:hover{background:#fdf2f0}
 .button.text,.card-footer,.home-section-heading a,.home-workspace-open,.sw-open,.sw-back,.sr-card-arrow,.home-shortcuts a,.home-shortcuts button,.sidebar .database-signout{color:#c1271d}
 .branch-tabs button.active,.subtabs button.active,.subtabs button[aria-selected=true]{color:#c1271d;border-color:#ee3124}
 .branch-tabs button.active{background:#fdf2f0}
 .home-workspace-icon,.sw-workspace-icon,.sw-tile-icon{background:#fdf2f0;border-color:#f6ded9;color:#ee3124;border-radius:50%}
 .home-workspace-number{color:#777}.home-workspace,.sw-workspace,.sw-tile,.card,.stat-card{border-color:var(--line);box-shadow:var(--surface-shadow)}
 .home-workspace:hover,.sw-workspace:hover,.sw-tile:hover{border-color:#ee3124;background:#fff;box-shadow:0 8px 24px #ee312410}
 .home-office-link{color:#555;border-color:var(--line)}.home-office-link span{color:#c1271d}
 .home-today,.home-pending,.sw-welcome,.sr-home-hero,.sr-work-card.featured,.sr-paperless-card,.import-hero,.ai-hero,.ops-task-summary{background:#fdf2f0;border-color:#f6ded9}
 .home-today{border-left-color:#ee3124}.home-line-detail,.home-purpose,.home-section-note,.home-date,.footer{color:#555}.home-line>span:last-child{color:#c1271d}
 :is(#modal,#database-gate,#content) :is(input,select,textarea):focus{border-color:#ee3124;box-shadow:0 0 0 3px #ee312414}
 .sr-field>span,:is(.field,.sr-field){color:#555}
 :is(#content,#modal) :is(.data-table,.table-wrap>table) th{background:#f8f9fa;color:#555}
 :is(#content,#modal) :is(.data-table,.table-wrap>table) tbody tr:hover{background:#fff8f6}
 #database-gate:has(#database-login){background:#fff;border-color:var(--line);box-shadow:0 28px 90px #1e1e2d33}
 #database-gate:has(#database-login)::backdrop{background:radial-gradient(ellipse at 20% 12%,#ee312455,transparent 55%),#1e1e2dec}
 #database-gate .home-login-welcome h2,.home-login-panel-heading h3{color:var(--ink)}.home-login-panel{border-color:var(--line)}
 .home-shell-compact{padding-top:0}.home-shell-compact .home-today{margin:0 0 12px}
 .home-shell-compact .home-line{min-height:48px;padding:10px 14px;border-radius:12px}
 .home-shell-compact .home-section-heading{margin:12px 0 10px;min-height:40px;gap:10px;flex-wrap:nowrap}
 .home-shell-compact .home-section-heading h2{font-size:21px;margin:0}
 .home-shell-compact .home-section-heading a{font-size:14px;min-height:40px;padding:0}
 .home-progress-compact{position:relative;background:none;border:0;box-shadow:none;border-radius:0;margin:0}
 .home-progress-compact .rp-home-colours{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
 .home-progress-compact .rp-home-colour{display:flex;justify-content:center;align-items:center;min-height:58px;padding:8px 4px;border-radius:12px;overflow:hidden;box-shadow:none}
 .home-progress-compact .rp-home-colour:hover{transform:none}
 .home-progress-compact .rp-home-count{font-family:inherit;font-size:28px;line-height:1.2;font-weight:800;letter-spacing:-.02em}
 .home-progress-state{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .home-progress-retry{position:absolute;right:4px;top:7px;min-height:44px;min-width:44px;border:1px solid #e9e9ec;border-radius:10px;background:#fff;color:#c1271d;font-size:22px;box-shadow:0 2px 8px #1e1e2d12}
 .finance-paper{font-family:Inter,'Segoe UI',Arial,sans-serif}
 @media(max-width:960px){
  .topbar{min-height:76px;padding:10px 14px;gap:10px;border-radius:0;border-bottom:3px solid #ee3124;background:#fff}
  .topbar #signed-in-person strong{color:var(--ink);font-size:18px;line-height:1.3}.topbar #signed-in-person small{color:#555}
  .topbar .menu-button{background:#fdf2f0;color:#c1271d;border-color:#f6ded9}
  body:has(.home-shell-compact) .topbar .topbar-actions{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}
  body:has(.home-shell-compact) #signed-in-person{grid-column:1;grid-row:1;align-self:center}
  body:has(.home-shell-compact) #signed-in-person small{display:none}
  body:has(.home-shell-compact) .topbar .sr-language{grid-column:2;grid-row:1;padding:6px 8px!important}
  body:has(.home-shell-compact) #staff-task-alert{display:none}
  body:has(.home-shell-compact) #notifications{grid-column:3;grid-row:1}
  body:has(.home-shell-compact) #main{padding-top:14px}
  body:has(.home-shell-compact) .context-row{margin-bottom:10px}
  .mw-bottom,.mobile-bottom-nav{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));padding:4px;gap:1px;border:1px solid #e9e9ec;border-radius:16px;background:#fffffff8;box-shadow:0 6px 24px #1e1e2d12}
  .mw-bottom a,.mobile-bottom-nav a{position:relative;min-height:56px;padding:6px 2px 5px;border-radius:12px;color:#555;font-size:14px;line-height:1.2;gap:4px;font-weight:600}
  .mw-bottom a[aria-current],.mobile-bottom-nav a.active{background:#fdf2f0;color:#c1271d;font-weight:750}
  .mw-bottom a[aria-current]::after,.mobile-bottom-nav a.active::after{content:'';position:absolute;bottom:2px;left:calc(50% - 8px);width:16px;height:2px;background:#ee3124;border-radius:2px}
  .mw-bottom svg,.mobile-bottom-nav svg{width:20px;height:20px}
 }
 @media(max-width:600px){
  .home-shell-compact .home-line-label,.home-shell-compact .home-line-detail{font-size:15px}
  .home-shell-compact .home-workspaces{gap:10px}.home-shell-compact .home-workspace{min-height:126px;padding:14px;border-radius:16px}
  .home-shell-compact .home-workspace-icon{height:32px;width:32px}.home-shell-compact .home-workspace-icon svg{width:19px;height:19px}
  .home-shell-compact .home-workspace-number{top:16px;right:14px;font-size:13px}
  .home-shell-compact .home-workspace h3{font-size:18px;line-height:1.35;margin:9px 0 8px}.home-shell-compact .home-workspace-open{font-size:14px;line-height:1.35}
  .home-shell-compact .home-section-heading h2{font-size:19px;line-height:1.3}.home-progress-compact .rp-home-count{font-size:26px}
 }
 @media(prefers-reduced-motion:reduce){.home-workspace{transform:none;transition:none}}
}
