:root{--ink:#243950;--muted:#68798c;--accent:#243f5f;--accent-dark:#172e48;--paper:#fff;--line:#dce3eb;--soft:#eef3f8;color:var(--ink);background:#fff;font-size:14px}
body{background:#fff}a{color:var(--accent)}h1{font-size:28px;letter-spacing:0;line-height:1.35}h2{font-weight:650}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:#5184be}
.ui-icon{display:inline-block;width:20px;height:20px;object-fit:contain;flex-shrink:0;vertical-align:middle}.sidebar{width:236px;background:#243950;color:#fff;border-right:0}.brand{padding:24px 16px 20px;text-align:center;border-bottom:1px solid #ffffff1c}.school-logo{display:block;margin:0 auto 12px;border-radius:50%;background:#fff;object-fit:contain}.brand strong{font-size:17px;white-space:nowrap;letter-spacing:0}.brand small{color:#c5d1df;margin-top:5px}.nav{padding:16px 0}.nav a,.nav-business summary{gap:12px;min-height:48px;border-radius:0;margin:0;padding:12px 22px;color:#d5deeb;font-size:14px;text-decoration:none}.nav a.active{background:#315b87;color:#fff;font-weight:650;box-shadow:inset 3px 0 #b6cde6}.nav a:hover,.nav-business summary:hover{background:#ffffff0c;color:#fff}.nav a.active:hover{background:#315b87}.sidebar .ui-icon{filter:brightness(0) invert(1);opacity:.85}.nav-business summary{display:flex;align-items:center;cursor:pointer;list-style:none}.nav-business summary::-webkit-details-marker{display:none}.nav-chevron{margin-left:auto;width:15px}.nav-business[open] .nav-chevron{transform:rotate(90deg)}.nav-business>div{background:#1c3047;padding:5px 0}.nav-business>div a{padding-left:26px;font-size:13px;min-height:43px}.sidebar-footer{border-top:1px solid #ffffff20;padding:18px 20px}.sidebar-footer small{color:#b4c4d5}.account-actions{display:flex;gap:18px;margin-top:10px}.sidebar-footer .link-button{color:#d9e3ee;display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:12px}.sidebar-footer .ui-icon{width:15px;height:15px}.workspace{margin-left:236px;background:#fff}.topbar{min-height:64px;padding:12px 26px;background:#fff;border-bottom:1px solid var(--line)}.topbar-left{min-width:0}.topbar strong{font-size:15px}.topbar-right{gap:10px}.mobile-brand{display:none}.topbar .scope-select{max-width:230px;min-width:155px;font-size:13px;min-height:38px}.topbar .button{min-height:38px}.quick-enter{color:#fff!important;background:var(--accent)!important;border-color:var(--accent)!important}.quick-enter .ui-icon{filter:brightness(0) invert(1);width:17px;height:17px}.quick-enter kbd{font:11px inherit;opacity:.7;margin-left:3px}.refresh-button .ui-icon{width:16px;height:16px}.page{max-width:none;padding:26px 28px 60px}.page-heading{margin-bottom:22px}.page-heading p{font-size:13px}.eyebrow{color:var(--muted)}.panel{padding:22px 0;background:#fff;border:0;border-radius:0;border-bottom:1px solid var(--line);margin-bottom:20px}.section-head{margin-bottom:18px}.button{border-radius:4px;border-color:#c8d3df;background:#fff;color:var(--ink);min-height:40px}.button:hover{background:#f1f5f9}.button.primary{color:#fff;background:var(--accent);border-color:var(--accent)}.button.primary:hover{background:var(--accent-dark)}.button.danger{border-color:#d9b6b6;color:#8b3a3a;background:#fff8f8}.link-button{color:var(--accent)}.field-label{color:var(--ink)}input:not([type=checkbox]):not([type=radio]),select,textarea{color:var(--ink);background:#fff;border-color:#cbd5e1;border-radius:4px}input::placeholder,textarea::placeholder{color:#8490a0}input[readonly]{background:#f3f5f8}.help,small,.muted{color:var(--muted)}.tabs{border-color:var(--line);gap:8px}.tabs button{color:#5b6d81;border-radius:0;padding:11px 14px}.tabs button.active{border-bottom-color:#315d90;color:var(--accent);font-weight:650}.tabs button:hover{background:#f6f8fb}.table-wrap{border:1px solid var(--line);border-radius:2px}.table{font-size:13px}.table th{background:#f3f6fa;color:#3a5069;font-weight:600}.table th,.table td{border-bottom-color:#e4e9f0;padding:13px 15px}.table tbody tr:hover{background:#f9fbfd}.notice{background:#f3f6fa;border-color:var(--line);border-radius:4px;color:#526780}.notice.warning{background:#fff8ec;border-color:#e9d2aa;color:#795f34}.badge{border-radius:3px}.empty strong{color:var(--ink)}.loading span{background:#edf1f6}.record{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 0}.record footer{border-top-color:var(--line)}.check-grid,.array-row{border-color:var(--line);border-radius:4px}.file-drop{background:#f7f9fc;border-color:#bccad9;border-radius:4px}.attachment-list li{background:#eef3f9;border-radius:3px}.inline-list li{background:#eef3f9;border-radius:3px}.drawer{background:#fff;border-color:var(--line);border-radius:5px;box-shadow:0 12px 50px #2439501a}.drawer::backdrop{background:#172e4866}.dialog-head,.dialog-foot{background:#fff;padding:18px 22px}.dialog-head h2{font-size:20px}.dialog-body{padding:24px 22px}.dialog-foot .button{min-height:44px}.toast{background:#243950;border-radius:4px}.details dt{color:var(--muted)}.disclosure{border-color:var(--line)}.date-helper{border-color:var(--line);border-radius:4px}.auth-page{background:#f4f6f9}.auth-card{background:#fff;border-color:var(--line);border-radius:5px;padding:32px 36px}.auth-card h1{font-size:22px}.auth-brand{display:grid;justify-items:center;gap:8px;margin:0 0 28px;padding-bottom:24px;border-bottom:1px solid var(--line)}.auth-brand img{object-fit:contain;border-radius:50%;margin-bottom:4px}.auth-brand strong{font-size:20px}.auth-brand span{font-size:13px;color:var(--muted)}.auth-footer{line-height:1.7}
/* Searchable, permission-filtered module selector; no extra navigation state. */
.module-picker{padding:0;border:1px solid #d0dbe7;border-radius:6px;background:#fff;color:var(--ink);width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 40px);box-shadow:0 16px 70px #182f4926}.module-picker::backdrop{background:#172e4866}.picker-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line)}.picker-head h2{font-size:20px}.icon-button{padding:7px;border:0;background:transparent;min-width:38px}.picker-body{padding:18px 22px 14px;overflow:auto;max-height:calc(100dvh - 120px)}.picker-search{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:4px;padding-left:11px;margin-bottom:18px}.picker-search input[type=search]{border:0;background:transparent;min-height:44px}.picker-search:focus-within{outline:2px solid #5184be;outline-offset:1px}.picker-search input:focus-visible{outline:0}.module-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.module-tag{display:flex;align-items:center;gap:10px;min-height:70px;padding:12px;border:1px solid var(--line);border-radius:4px;text-align:left;background:#fff;color:var(--ink);font-weight:600}.module-tag:hover{border-color:#a7bbd1;background:#f6f9fc}.module-tag.selected{background:#f2f6fc;border-color:#5b84b7}.module-tag small{display:block;font-size:11px;font-weight:400;margin-top:5px;line-height:1.4}.picker-note{text-align:center;font-size:12px;color:var(--muted);margin:18px 0 4px}.picker-empty{grid-column:1/-1;text-align:center;padding:28px 0;color:var(--muted)}
/* The inspection ledger keeps existing forms, actions and server permissions. */
.page:has(.ledger-workspace){padding:0}.ledger-heading{padding:26px 28px 18px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:18px}.ledger-heading h1{margin:0;font-size:28px}.ledger-heading .eyebrow{display:none}.ledger-heading p{font-size:12px;line-height:1.7;margin:7px 0 0;color:var(--muted)}.ledger-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;border-bottom:1px solid var(--line)}.ledger-stages{display:flex;align-items:center;gap:14px;overflow:auto;scrollbar-width:thin}.ledger-stages button{border:0;border-bottom:3px solid transparent;background:transparent;color:#526780;padding:13px 8px;min-height:48px;font-size:14px;white-space:nowrap}.ledger-stages button.active{color:#244d7e;border-bottom-color:#315d90;font-weight:650}.ledger-stages button:hover{background:#f5f8fb}.ledger-business{position:relative;flex-shrink:0}.ledger-business summary{cursor:pointer;color:#526780;font-size:13px;padding:12px 0}.ledger-business>div{position:absolute;z-index:30;right:0;top:100%;min-width:185px;max-width:280px;padding:8px;border:1px solid var(--line);border-radius:4px;background:#fff;box-shadow:0 8px 20px #24395014;display:grid;gap:2px}.ledger-business button{border:0;padding:11px 12px;background:#fff;text-align:left;color:var(--ink);min-height:40px}.ledger-business button:hover,.ledger-business button.active{background:#f0f5fa}.ledger-view{padding:0 28px 40px}.ledger-list-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px}.ledger-list{min-width:0;padding:24px 0}.ledger-list .section-head{margin-bottom:16px}.ledger-list h2{font-size:17px}.ledger-guide{border-left:1px solid var(--line);padding:24px 0 24px 24px;min-width:0}.ledger-guide h2{font-size:18px;margin-bottom:15px}.ledger-guide p{font-size:13px;color:var(--muted);line-height:1.8}.ledger-guide .button{width:100%;margin-bottom:10px}.ledger-guide ol{padding-left:20px;color:#526780;font-size:13px;line-height:1.9}.ledger-guide li{padding:6px 0}.ledger-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 18px}.ledger-filter .field,.ledger-filter label{flex:1;min-width:125px;max-width:210px}.ledger-result-summary{font-size:12px;color:var(--muted);margin:10px 0}.ledger-empty{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 18px;text-align:center;border:1px solid var(--line);background:#fff}.ledger-empty strong{font-size:17px;color:var(--ink)}.ledger-empty p{font-size:13px;color:var(--muted);line-height:1.8;max-width:44ch}.ledger-empty .empty{padding:0}.ledger-records{display:none}.ledger-table .table{min-width:740px}.ledger-table td .button{min-height:36px}.ledger-editor{inset:64px 0 0 auto;margin:0;height:calc(100dvh - 64px);max-height:none;width:430px;max-width:100%;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:-8px 0 35px #24395014}.ledger-editor::backdrop{background:#182f491f}.ledger-editor .editor-form{height:100%;max-height:none}.ledger-editor .dialog-body{flex:1;min-height:0}.ledger-editor .grid.two{grid-template-columns:1fr}.ledger-editor .dialog-head h2{font-size:23px}.ledger-editor .dialog-foot .button.primary{flex:1}.ledger-editor .details{grid-template-columns:1fr}.ledger-editor .dialog-body .wide{grid-column:auto}
@media(min-width:781px) and (max-width:1150px){.sidebar{width:210px}.workspace{margin-left:210px}.brand strong{font-size:16px}.topbar{padding:12px 20px}.quick-enter kbd{display:none}.ledger-list-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.ledger-guide{padding-left:18px}.ledger-view{padding:0 22px 35px}.ledger-navigation{padding:0 22px}.ledger-heading{padding:24px 22px 16px}.ledger-stages{gap:7px}.topbar-right{gap:7px}.topbar .scope-select{min-width:130px;max-width:160px}.refresh-button span{display:none}}
@media(max-width:780px){.sidebar{width:268px}.workspace{margin-left:0}.sidebar-close{color:#fff;background:transparent;border:0;top:10px;right:12px;min-width:44px}.brand{padding-right:16px}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;gap:9px 10px;min-height:110px}.topbar-left{grid-row:1;grid-column:1;gap:7px}.topbar-left .menu-button{padding:8px;border:0;background:transparent;min-width:36px;min-height:44px}.mobile-brand{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap;font-weight:650;font-size:15px}.mobile-brand img{border-radius:50%;object-fit:contain}.topbar #topbar-title{display:none}.topbar-right{display:contents}.topbar-right .quick-enter{display:inline-flex!important;grid-column:2;grid-row:1;font-size:13px;min-height:40px;padding:8px 10px;gap:6px}.quick-enter kbd{display:none}.topbar .scope-select{grid-column:1;grid-row:2;min-width:0;width:100%;max-width:none;min-height:38px;font-size:13px;padding:7px 9px}.topbar-right [data-reminders]{display:inline-flex;grid-column:2;grid-row:2;font-size:12px;min-height:38px}.topbar-right #refresh-page{display:none}.page{padding:22px 16px 40px}h1{font-size:24px}.panel{padding:18px 0}.auth-card{padding:28px 22px}.auth-brand strong{font-size:19px}.module-picker{inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - 24px);border:0;border-top:1px solid var(--line);border-radius:8px 8px 0 0;padding-bottom:env(safe-area-inset-bottom)}.picker-head{padding:18px 18px 10px;border-bottom:0}.picker-head h2{font-size:20px}.picker-body{padding:10px 18px 18px;max-height:calc(100dvh - 100px)}.module-tags{gap:9px}.module-tag{min-height:52px;padding:11px 10px;gap:9px;font-size:13px}.module-tag small{display:none}.module-tag .ui-icon{width:19px;height:19px}.picker-search{margin-bottom:16px}.picker-note{margin-top:18px}.ledger-heading{padding:22px 16px 12px;gap:10px;align-items:flex-start}.ledger-heading h1{font-size:24px}.ledger-navigation{padding:0 16px;gap:8px;align-items:flex-start}.ledger-stages{gap:3px}.ledger-stages button{padding:12px 7px;font-size:13px;min-height:46px}.ledger-business summary{font-size:12px;padding:15px 0}.ledger-business>div{right:0}.ledger-view{padding:0 16px 32px}.ledger-list-layout{display:block}.ledger-list{padding:18px 0}.ledger-guide{border-left:0;border-top:1px solid var(--line);padding:20px 0}.ledger-guide ol{display:none}.ledger-guide .button{width:auto}.ledger-filter{gap:10px}.ledger-filter .field,.ledger-filter label{min-width:calc(50% - 5px);max-width:none}.ledger-table{display:none}.ledger-records{display:block}.ledger-record{padding:16px 0;border-bottom:1px solid var(--line)}.ledger-record header{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.ledger-record h3{font-size:15px;margin:0 0 7px}.ledger-record p{margin:7px 0;font-size:13px;line-height:1.7}.ledger-record dl{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:12px}.ledger-record dt{color:var(--muted)}.ledger-record dd{margin:0}.ledger-record .button{width:100%}.ledger-empty{min-height:240px}.ledger-editor{inset:0;margin:0;height:100dvh;max-height:100dvh;width:100%;max-width:100%;border:0;box-shadow:none;padding-bottom:env(safe-area-inset-bottom)}.ledger-editor .editor-form{height:100%;max-height:100%}.ledger-editor .dialog-head{padding:15px 18px}.ledger-editor .dialog-head h2{font-size:21px}.ledger-editor .dialog-body{padding:20px 18px}.ledger-editor .dialog-foot{padding:13px 18px}.ledger-editor::backdrop{background:#fff}.drawer:not(.ledger-editor){width:calc(100% - 16px)}.dialog-foot .button{min-height:44px}}
.ledger-today{color:var(--muted);font-size:13px;white-space:nowrap}.ledger-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.ledger-list-note{font-size:12px;color:var(--muted);line-height:1.7}.ledger-guide-note{border-top:1px solid var(--line);padding-top:20px;margin-top:22px;font-size:13px}.ledger-business>nav{position:absolute;z-index:30;right:0;top:100%;min-width:185px;padding:8px;border:1px solid var(--line);border-radius:4px;background:#fff;box-shadow:0 8px 20px #24395014;display:grid;gap:2px}.ledger-table .ledger-empty{border:0;min-height:300px}.ledger-empty-mobile{display:none}
@media(min-width:781px){body:has(.ledger-editor[open]) .ledger-list-layout{grid-template-columns:minmax(0,1fr) 374px}body:has(.ledger-editor[open]) .ledger-guide{visibility:hidden}.ledger-editor::backdrop{background:transparent}.ledger-editor .field{grid-template-columns:94px minmax(0,1fr);column-gap:12px;align-items:start}.ledger-editor .field-label{padding-top:11px;line-height:1.6}.ledger-editor .field small,.ledger-editor .field .help,.ledger-editor .field .attachment-list{grid-column:2}.ledger-editor .field textarea{min-height:104px}.ledger-editor .required{display:block;margin:1px 0 0}.ledger-editor .dialog-body{padding-top:24px}.ledger-editor .dialog-body .notice{font-size:12px}.brand .school-logo{width:86px;height:86px}.brand{padding-top:28px;padding-bottom:24px}.brand strong{font-size:18px}.nav a,.nav-business summary{min-height:52px;font-size:15px}.ledger-table .table{min-width:690px}}
@media(max-width:780px){.ledger-today{font-size:12px}.ledger-record{display:block;width:100%;text-align:left;appearance:none;background:#fff;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;padding:17px 0}.ledger-record:hover{background:#f8fafd}.ledger-record-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ledger-record-heading strong{font-size:15px;line-height:1.6}.ledger-record-meta{display:block;color:var(--muted);font-size:12px;margin-top:7px}.ledger-record-facts{display:flex;gap:15px;font-size:13px;margin-top:12px;line-height:1.6}.ledger-record-open{display:block;color:var(--accent);font-size:13px;margin-top:12px}.ledger-empty-mobile{display:block}.ledger-list-heading{gap:10px}.ledger-heading p{max-width:25ch}.ledger-guide-note{padding-top:14px;margin-top:14px}}
@media(max-width:360px){.mobile-brand{font-size:13px;gap:5px}.mobile-brand img{width:28px;height:28px}.topbar-left{gap:4px}.topbar .quick-enter{font-size:12px;padding:8px}.ledger-stages button{padding:12px 5px;font-size:12px}.module-tag{font-size:12px}}
.ledger-editor input[type=file]{min-height:96px;padding:54px 12px 12px;border:1px dashed #aebfd2;background:#fff url('/assets/icons/camera.svg') no-repeat center 17px;background-size:25px 25px;font-size:12px}.ledger-editor input[type=file]::file-selector-button{border:1px solid #c5d2e0;border-radius:3px;background:#f4f7fb;color:var(--ink);padding:5px 8px;margin-right:7px;cursor:pointer}
@media(max-width:780px){.topbar-right .quick-enter{min-height:44px}.icon-button{min-width:44px;min-height:44px}}

/* Respect explicit permission and form visibility flags. */
[hidden]{display:none!important}
