/* School-logo red and white. Status colours and document artwork keep their meaning. */
@media screen {
 :root{--primary:#c91f32;--accent:#c91f32;--navy:#c91f32;--ink:#30272a;--muted:#716267;--line:#efdbdf;--bg:#fff;--canvas:#fff;--orange:#c91f32;--brand-soft:#fff3f4;--brand-hover:#a91629;font-size:19px}
 html,body{background:#fff;color:var(--ink)}body{font-size:18px}
 h1,h2,h3,h4{color:var(--ink)}
 :is(button,a,input,select,textarea):focus-visible{outline-color:#c91f32}
 .sidebar,.sidebar-bottom,.topbar,.card,.home-login-panel{background:#fff;border-color:var(--line)}
 .sidebar .brand,.sidebar .profile strong,.breadcrumb strong{color:var(--ink)}
 .brand small,.workspace-label,.eyebrow,.sr-kicker,.home-kicker,.home-login-welcome .eyebrow{color:#a91629}
 .nav-link,.nav-link svg,.school-link,.profile small,.date-label,.session,.breadcrumb{color:var(--muted)}
 .nav-link:hover{background:var(--brand-soft);color:#a91629}
 .nav-link.active{background:#fde8ec;color:#a91629;box-shadow:inset 3px 0 #c91f32}
 .nav-link.active svg,.sr-nav-dot{color:#a91629}.sr-nav-dot{background:#c91f32}
 .nav-count,.avatar.peach{background:#fde8ec;color:#a91629}
 .button.primary,.button.orange,#database-gate .home-login-panel .button.primary{background:#c91f32;color:#fff;border-color:#c91f32}
 .button.primary:hover,.button.orange:hover,#database-gate .home-login-panel .button.primary:hover{background:#a91629;border-color:#a91629}
 .button.secondary{background:#fff;border-color:#e8cbd1;color:#6d2937}.button.secondary:hover,.icon-button:hover{background:var(--brand-soft)}
 .button.text,.card-footer,.alert-text a,.sw-back,.sw-section-head>a,.sr-section-title a,.home-section-heading a{color:#a91629}
 .button,.subtabs button,.nav-link,.branch-tabs button{font-size:16px}
 .button{white-space:normal;overflow-wrap:anywhere}
 .icon-button{color:#a91629}
 .sr-language{font-size:14px!important;background:#fff!important;border-color:#e8cbd1!important;color:#a91629!important}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:18px;min-height:46px;border-color:#d6bfc5;background:#fff;color:var(--ink)}
 .field,.sr-field,.home-login-panel label{font-size:16px}
 .sr-field input,.sr-field select,.sr-field textarea,.sr-filters input,.sr-filters select,.sr-filters textarea{font-size:18px;min-height:46px}
 .subtabs button.active,.subtabs button[aria-selected=true]{color:#a91629;border-color:#c91f32}
 .branch-tabs button.active{border-color:#e8cbd1;color:#a91629;background:var(--brand-soft)}
 .ops-hero{background:#c91f32;color:#fff}.ops-hero h2,.ops-hero p{color:#fff}
 .ops-task-summary,.mw-draft-bar,.mw-attendance-filter,.sw-basic-summary,.automatic-context,.af-context,.af-known,.finance-total,.import-hero,.ai-hero{background:var(--brand-soft);border-color:var(--line);color:var(--ink)}
 .af-context{border-left-color:#c91f32}.academic-card.selected{border-color:#c91f32;background:var(--brand-soft);box-shadow:0 0 0 1px #c91f32}
 .academic-card,.ai-answer{background:#fff;color:var(--ink)}
 .rp-choices input:checked+span{background:#c91f32;border-color:#c91f32;color:#fff}
 .mw-draft-state,.sw-basic-summary p,.sw-today span,.sw-today small,.sw-workspace-heading p{color:var(--muted)}
 .home-shell{color:var(--ink)}
 #database-gate:has(#database-login){background:linear-gradient(135deg,#fff 25%,#fff0f2);border-color:#f1d9df;box-shadow:0 24px 80px #7e102733}
 #database-gate:has(#database-login)::backdrop{background:#4f1425e8}
 .home-login-welcome h2,.home-identity h2{color:#7f1729}
 #database-gate .home-login-welcome .large-note,.home-login-caption,.home-login-panel .form-note{color:var(--muted)}
 .home-welcome{background:linear-gradient(150deg,#fff,#fff3f4);border-color:var(--line);box-shadow:0 6px 28px #9f20300a}
 .home-role{background:#fff;border-color:#e8cbd1;color:#92273b;max-width:45%;font-size:14px}
 .home-line{border-color:var(--line);background:#fff;color:var(--ink)}.home-today,.home-pending{background:var(--brand-soft);border-color:#edcbd3}
 .home-line-label,.home-line-detail{font-size:16px}
 .home-workspace,.home-office-link,.sw-workspace,.sw-tile,.mw-action,.mw-status-grid a{background:#fff;border-color:var(--line);color:var(--ink)}
 .home-workspace:hover,.sw-workspace:hover,.sw-tile:hover,.mw-action:hover{border-color:#d85366;background:#fff9fa;box-shadow:0 6px 22px #9f20300a}
 .home-workspace:focus-visible,.home-line:focus-visible,.home-office-link:focus-visible{outline-color:#c91f32}
 .home-workspace-icon,.sw-workspace-icon,.sw-tile-icon{background:#fde8ec;color:#c91f32}
 .home-workspace-number,.sw-number{color:#8b5864}
 .home-workspace h3{font-size:22px}.home-workspace-open,.sw-open,.home-shortcuts a,.home-shortcuts button{color:#a91629}
 .home-workspace-hint,.home-office-link span,.sw-workspace p,.sw-tile small{color:var(--muted)}
 .home-progress{background:#fff;border-color:var(--line)}.home-progress>summary{background:var(--brand-soft)}.home-progress>summary span:last-child{color:#8e3849}
 .home-progress .rp-home{border-top-color:var(--line);background:#fff}.rp-home::before{background:#fff3f4}
 .sw-welcome,.mw-more>summary,.sr-home-hero,.sr-work-card.featured{background:var(--brand-soft);border-color:var(--line)}
 .sw-welcome h2,.sw-today strong,.sw-workspace-heading h2{color:#7f1729}
 .mw-bottom,.mobile-bottom-nav{background:#fff;border-top-color:var(--line)}
 .mw-bottom a,.mobile-bottom-nav a{color:var(--muted);font-size:16px}
 .mw-bottom a[aria-current],.mobile-bottom-nav a.active{background:#fde8ec;color:#a91629}
 .data-table thead th,.table-wrap>table th{background:#fff3f4;color:#6f2a38}
 :is(#content,#modal) :is(.data-table,.table-wrap>table) th{background:#fff3f4;color:#6f2a38;font-size:15px}
 :is(#content,#modal) :is(.data-table,.table-wrap>table) td{font-size:17px}
 :is(#content,#modal) :is(.data-table,.table-wrap>table) tbody tr:hover{background:#fff7f8}
 :is(#content,#modal) :is(.data-table,.table-wrap>table) .button{font-size:16px}
 .mw-attendance-identity{font-size:17px}.mw-attendance-choice{font-size:18px}.mw-attendance-row:has([aria-pressed=true]){background:#fffafa}
 .home-identity h2{font-size:30px;line-height:1.4;letter-spacing:-.3px}
 .home-login-panel,.home-workspaces,.home-workspace,.home-identity>div{min-width:0}
 .home-progress>summary{flex-wrap:wrap}.home-progress>summary span:last-child{font-size:14px}
 .home-section-heading{flex-wrap:wrap}.home-shortcuts a,.home-shortcuts button,.home-workspace-open,.home-office-link{font-size:15px}
 .sr-inline-actions,.finance-row-actions{gap:10px}
 /* Receipt preview is also the PDF source: keep its approved document styles. */
 .finance-paper{font-size:14px;color:#192d20}.finance-paper :is(h1,h2,h3,h4){color:#283d37}
 @media(max-width:960px){
  .topbar{background:#c91f32;height:auto;min-height:82px;padding-top:10px;padding-bottom:10px;gap:12px}
  .topbar :is(.breadcrumb,.breadcrumb strong,#signed-in-person strong,#signed-in-person small,.icon-button){color:#fff}
  #signed-in-person{min-width:0}#signed-in-person strong{font-size:17px;overflow-wrap:anywhere}#signed-in-person small{font-size:14px;color:#fff}
  .topbar .topbar-actions{gap:8px}.topbar .icon-button:hover,.mobile-menu-close{background:#a91629;color:#fff}
  .topbar .sr-language{background:#fff!important;color:#a91629!important}
  .topbar-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto}
  #signed-in-person{grid-column:1/-1;order:0;justify-content:flex-start}
  #signed-in-person strong{line-height:1.4}#signed-in-person small{margin-top:1px}
  #staff-task-alert{justify-self:start}.topbar-actions #notifications{justify-self:end}
 }
 @media(max-width:600px){
  .home-identity{flex-wrap:wrap;gap:8px}.home-identity>div{flex-basis:100%}.home-identity h2{font-size:24px}.home-role{max-width:100%;font-size:14px;padding:5px 9px}
  .home-workspace{min-height:132px}.home-workspace h3{font-size:18px;line-height:1.35}.home-workspace-open{font-size:14px}
  .home-section-heading h2{font-size:20px}.home-section-heading a{font-size:14px}.home-line-label,.home-line-detail{font-size:15px}
  .home-workspace-number,.home-kicker,.home-login-welcome .eyebrow{font-size:14px}.home-workspace-number{top:16px}
  .home-login-welcome h2{font-size:29px}#database-gate .home-login-welcome .large-note{font-size:16px}
  .home-office-link,.home-shortcuts a,.home-shortcuts button{font-size:15px;min-height:44px}
  .home-line{gap:8px}.home-line-label{max-width:50%;white-space:nowrap}.home-progress>summary{font-size:16px}
  .home-progress .rp-home-colour{min-height:112px}
  #main{padding-left:14px;padding-right:14px}.page-heading>.button{font-size:15px}
  .topbar .sr-language{padding:6px 8px!important}
 }
}
