/* Original school artwork, full available width; practical phone-sized workspaces. */
#database-gate:has(#database-login){width:min(1080px,calc(100% - 48px));max-width:1080px;padding:30px;border:1px solid #e7e5de;border-radius:24px;background:linear-gradient(135deg,#fff 20%,#f2f7f0);box-shadow:0 24px 80px #0e292a33;max-height:calc(100dvh - 36px);overflow:auto}
#database-gate:has(#database-login)::backdrop{background:#122d3ce6;backdrop-filter:blur(8px)}
#database-gate:has(#database-login)::before{display:none}
.home-login-brand{width:100%;background:#fff;border-radius:16px;overflow:hidden;margin-bottom:28px}
.home-login-brand img,.home-school-banner{display:block;width:100%;height:auto;object-fit:contain}
.home-login-layout{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center;padding:0 16px 12px}
.home-login-welcome .eyebrow{color:#8e3f49;letter-spacing:.16em;font-size:11px}
.home-login-welcome h2{font-size:34px;line-height:1.2;color:#18372e;margin:12px 0 16px;letter-spacing:-1px}
#database-gate .home-login-welcome .large-note{font-size:16px;line-height:1.6;color:#556660;margin-bottom:16px}
.home-login-caption{font-size:13px;color:#70817a}
.home-login-panel{background:#fff;border:1px solid #e0e9df;border-radius:18px;padding:24px;box-shadow:0 8px 24px #254d3310}
.home-login-panel .database-login{margin:0}.home-login-panel label{font-size:13px;color:#2b473b}.home-login-panel input{min-height:48px;border-radius:10px}.home-login-panel .button.primary{background:#234e40;min-height:48px;border-radius:10px;width:100%}.home-login-panel .form-note{font-size:12px;line-height:1.5;margin-bottom:0}
body:has(.home-shell) .page-heading{display:none}
.home-shell{max-width:1200px;margin:0 auto;color:#243e34}
.home-welcome{background:linear-gradient(150deg,#fff,#f4f8f2);border:1px solid #e1e9df;border-radius:20px;padding:20px 24px;box-shadow:0 6px 28px #29432c08}
.home-school-banner{background:#fff;border-radius:14px}
.home-identity{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 2px 0}
.home-identity>div{min-width:0;flex:1}.home-identity h2,.home-role{overflow-wrap:anywhere}.home-role{flex-shrink:0;max-width:40%}
.home-kicker{font-size:10px;font-weight:700;letter-spacing:.14em;color:#8e424a}.home-identity h2{font-size:25px;line-height:1.3;letter-spacing:-.6px;margin:4px 0 0;color:#254c3c}
.home-role{font-size:12px;line-height:1.4;border:1px solid #dae6d7;background:#edf3e9;padding:7px 12px;border-radius:30px;color:#426148}
.home-line{display:flex;align-items:center;gap:14px;border:1px solid #dee7db;background:#fff;padding:12px 15px;border-radius:12px;margin:14px 0;color:#304c3d;min-height:48px;text-decoration:none;white-space:nowrap}
.home-line-label{font-size:13px;font-weight:700;flex-shrink:0}.home-line-detail{font-size:13px;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.home-line>span:last-child{font-size:16px}.home-today{background:#edf4eb;border-color:#d6e5d0}.home-pending{background:#fff9ef;border-color:#eadfca}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.home-section-heading h2{font-size:18px;margin:0}.home-section-heading a{font-size:12px;color:#546f5a;text-decoration:none}
.home-workspaces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.home-workspace{position:relative;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #dfe8db;border-radius:15px;padding:18px 20px;min-height:152px;box-shadow:0 3px 12px #314a2f06;text-decoration:none;color:#284537;transition:border-color .15s,box-shadow .15s}
.home-workspace:hover{border-color:#91b295;box-shadow:0 8px 22px #26403210}.home-workspace:focus-visible,.home-line:focus-visible,.home-office-link:focus-visible{outline:3px solid #568565;outline-offset:3px}
.home-workspace-icon{width:34px;height:34px;background:#edf4e9;border-radius:10px;display:grid;place-items:center;color:#55745d}.home-workspace-icon svg{width:20px;height:20px}.home-workspace-number{position:absolute;right:18px;top:20px;font-size:11px;color:#8e9e90}.home-workspace h3{font-size:18px;line-height:1.35;margin:11px 0 5px;overflow-wrap:anywhere}.home-workspace-hint{font-size:12px;line-height:1.5;color:#748178;margin-bottom:9px}.home-workspace-open{margin-top:auto;font-size:12px;font-weight:600;color:#5b775e}
.home-office{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.home-office-link{display:inline-flex;align-items:center;gap:16px;text-decoration:none;border:1px solid #dfe7db;border-radius:10px;padding:10px 12px;background:#fff;font-size:13px;min-height:44px;color:#445d4b}.home-office-link span{color:#859b85}
.home-shortcuts{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;margin:8px 0 16px}.home-shortcuts a,.home-shortcuts button{font:inherit;font-size:12px;color:#5c735e;min-height:40px;display:inline-flex;align-items:center;text-decoration:none}.home-shortcuts button{border:0;background:transparent;cursor:pointer;padding:0}.home-shortcuts button:disabled{opacity:.5;cursor:wait}
.home-progress{border:1px solid #dce7d7;background:#f5f8f1;border-radius:12px;overflow:hidden}.home-progress>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:13px 15px;font-size:13px;list-style:none;min-height:48px}.home-progress>summary::-webkit-details-marker{display:none}.home-progress>summary span:first-child{font-weight:700}.home-progress>summary span:last-child{font-size:12px;color:#70846b}.home-progress .rp-home{margin:0;border:0;border-top:1px solid #e0e9d9;border-radius:0;box-shadow:none;padding:18px}.home-progress .rp-home-heading h2{font-size:20px}.home-progress .rp-home-heading p{display:none}.home-progress .rp-home-tip{font-size:11px}
@media(max-width:600px){
 #database-gate:has(#database-login){width:calc(100% - 24px);max-width:calc(100% - 24px);padding:15px;border-radius:18px;max-height:calc(100dvh - 24px)}
 .home-login-brand{margin-bottom:16px;border-radius:8px}.home-login-layout{grid-template-columns:1fr;gap:14px;padding:0}.home-login-welcome h2{font-size:24px;margin:7px 0 8px}.home-login-welcome .eyebrow{font-size:9px}#database-gate .home-login-welcome .large-note{font-size:13px;line-height:1.55;margin:0}.home-login-caption{display:none}.home-login-panel{padding:16px;border-radius:12px}.home-login-panel input{font-size:16px}
 .home-welcome{padding:12px;border-radius:14px}.home-school-banner{border-radius:8px}.home-identity{margin:8px 0 0;gap:8px;align-items:flex-start}.home-identity h2{font-size:18px}.home-kicker{font-size:8px}.home-role{font-size:10px;padding:5px 7px;max-width:36%;border-radius:8px}.home-line{gap:9px;padding:11px 12px;margin:12px 0}.home-line-label,.home-line-detail{font-size:11px}.home-section-heading{margin:18px 0 10px}.home-section-heading h2{font-size:15px}.home-section-heading a{font-size:11px}
 .home-workspaces{gap:10px}.home-workspace{padding:12px;min-height:118px;border-radius:12px}.home-workspace-icon{width:30px;height:30px;border-radius:8px}.home-workspace-icon svg{width:18px;height:18px}.home-workspace-number{right:12px;top:13px;font-size:10px}.home-workspace h3{font-size:14px;margin:9px 0 7px}.home-workspace-hint{display:none}.home-workspace-open{font-size:11px}.home-office{gap:7px}.home-office-link{font-size:11px;padding:9px 10px}.home-shortcuts{gap:0 14px;margin:2px 0 12px}.home-shortcuts a,.home-shortcuts button{font-size:11px;min-height:38px}.home-progress>summary{font-size:12px;padding:12px}.home-progress>summary span:last-child{font-size:10px}.home-progress .rp-home{padding:12px}.home-progress .rp-home-colours{gap:8px}.home-progress .rp-home-colour{padding:10px;min-height:100px}.home-progress .rp-home-tip{display:none}.home-progress .rp-home-count{font-size:26px}.home-progress .rp-home-footer{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.home-workspace{transition:none}}
