/* ThreeSixty Schools brand layer: official fonts, type roles, logo rules, colour and shape. See docs/BRAND.md. */
@font-face{font-family:Inter;font-weight:400;font-style:normal;font-display:swap;src:url(brand/Inter-400.ttf) format('truetype')}
@font-face{font-family:Inter;font-weight:500;font-style:normal;font-display:swap;src:url(brand/Inter-500.ttf) format('truetype')}
@font-face{font-family:Inter;font-weight:600;font-style:normal;font-display:swap;src:url(brand/Inter-600.ttf) format('truetype')}
@font-face{font-family:Sora;font-weight:600;font-style:normal;font-display:swap;src:url(brand/Sora-600.ttf) format('truetype')}
@font-face{font-family:Sora;font-weight:700;font-style:normal;font-display:swap;src:url(brand/Sora-700.ttf) format('truetype')}
@font-face{font-family:'Playfair Display';font-weight:700;font-style:normal;font-display:swap;src:url(brand/PlayfairDisplay-700.ttf) format('truetype')}
@font-face{font-family:'Playfair Display';font-weight:900;font-style:normal;font-display:swap;src:url(brand/PlayfairDisplay-900.ttf) format('truetype')}
@font-face{font-family:Sora;font-weight:800;font-style:normal;font-display:swap;src:url(brand/Sora-800.ttf) format('truetype')}

:root{
  /* Exact kit colours, as used in the official logo files. */
  --kit-midnight:#140c3a;--kit-violet:#3d22b8;--kit-ink:#21137a;
  --aqua:#35e8d2;--lime:#c4f24b;--teal:#0eb5a0;--green:#6cc024;--violet-light:#7c62ff;--cap-black:#110f16;--tassel-gold:#d6a83e;--deep-teal:#0a9e8e;--deep-lime:#5fa300;--oxblood:#5b0f1f;--gold:#ddb463;
  /* Working screens: a calmer navy family. */
  --midnight:#1c2444;--brand:#33427f;--brand-soft:#eef0f7;--heading:#1f2a52;
  --ink:#2a2f42;--muted:#5a6178;--bg:#f7f8fb;--line:#e3e6ef;--radius:0;
  --on-dark:#fff;--on-dark-muted:#bcc3da;--on-dark-line:#ffffff24;
  --font-head:'Playfair Display',Georgia,'Times New Roman',serif;
  --font-label:Sora,Inter,'Segoe UI',Arial,sans-serif;
  font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)
}
body{background:var(--bg);color:var(--ink)}

/* Playfair Display: headlines. */
h1,h2{font-family:var(--font-head);font-weight:900;letter-spacing:-.2px;color:var(--heading)}
#main h1,.login-story h1,.login-form h2,.welcome h2,.owner-welcome h2{letter-spacing:-.3px}
.login-story h1{font-weight:700;color:#fff}
.welcome h2,.owner-welcome h2{color:#fff}
/* Sora: slogan and labels. */
.eyebrow,.nav-caption,.btn,.quick,.acct-tab,.detail-label,th,.chat-launcher,.command-group{font-family:var(--font-label);font-weight:600}
.eyebrow{color:var(--brand)}
/* Inter stays for everything else, including figures and dense tables. */
.stat-value,.ws-tile strong,.pulse-value,.report-overall strong,.report-totals strong{font-family:Inter,'Segoe UI',Arial,sans-serif;font-weight:600}

/* Aqua and Lime only ever appear on dark surfaces. */
.login-story .eyebrow,.welcome .eyebrow,.owner-welcome .eyebrow{color:var(--aqua)}
.login-story h1 span{color:var(--aqua)}

/* One connected frame: the top bar and sidebar share a surface, with a thin line in the logo's teal and green. */
.topbar{background:var(--midnight);border-bottom:0;box-shadow:inset 0 -2px 0 0 transparent;color:var(--on-dark)}
.topbar:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--green),var(--teal) 45%,var(--brand))}
.sidebar{background:var(--midnight);border-right:0}
.mobile-toggle{background:transparent;color:var(--heading)}
.academic-year{color:var(--on-dark-muted)}.academic-year strong{color:var(--on-dark)}
.account{color:var(--on-dark)}.account-text{color:var(--on-dark)}.account-text small{color:var(--on-dark-muted)}
.topbar .avatar{background:#ffffff1f;color:var(--on-dark)}
.command-open{background:#fff;border-color:#fff;color:var(--muted);min-height:44px;justify-content:flex-start;min-width:0}
.command-open:hover{background:#f1f3f8;border-color:#f1f3f8}
.command-open .icon{color:var(--brand)}
.command-open span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.command-open kbd{margin-left:auto;background:var(--brand-soft);border-color:var(--line);color:var(--muted)}
.campus-switch{background:#0b5a58;border-color:#127a73;color:var(--on-dark);justify-self:end}
.campus-switch:hover{background:#0e6a67}
.campus-switch .icon{color:var(--aqua);width:19px;height:19px}
.school-campus-label{color:var(--on-dark)}
.topbar .breadcrumb,.topbar .breadcrumb strong{color:var(--on-dark)}
.topbar .breadcrumb span{color:var(--on-dark-muted)}
.topbar .local-pill{background:#ffffff1f;color:var(--on-dark)}
.owner-user{color:var(--on-dark)}

/* Masthead: the logo sits in a white block as wide as the sidebar, so it reads as part of the frame. */
.topbar:has(.school-header-brand){padding:0 20px 0 0;column-gap:20px}
.school-header-brand{align-self:stretch;background:#fff;padding:5px 14px 7px 12px;gap:12px;min-width:0}
.school-header-logo{flex:0 0 78px;width:78px;height:auto;align-self:stretch;border:0;border-radius:0;background:transparent}
.school-header-name{color:var(--heading);font-family:var(--font-head);font-weight:700;font-size:15px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;max-width:none;flex:1 1 0;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.owner-workspace .topbar{grid-template-columns:minmax(0,1fr) auto}
.owner-workspace .top-actions{justify-self:end}
@media(min-width:1051px){
  .topbar:has(.school-header-brand){grid-template-columns:272px auto minmax(140px,1fr) auto auto auto}
  .topbar:has(.school-header-brand) .top-actions{display:contents}
  .school-header-brand{width:272px}
  .academic-year{padding-left:16px;justify-self:start}
  .command-open{justify-self:end;width:100%;max-width:340px;min-height:38px;padding-top:0;padding-bottom:0;font-size:14px}
  .command-open .icon{width:17px;height:17px}
  .command-open kbd{font-size:11px;padding:1px 5px}
}
@media(max-width:700px){
  .topbar:has(.school-header-brand){padding-right:10px;column-gap:8px}
  .school-header-brand{padding:4px 8px 6px 4px;gap:6px}
  .school-header-logo{flex-basis:56px;width:56px}
  .school-header-name{font-size:13px}
}

/* Account menu: hangs from the top bar, with its identity band continuing the navy frame. */
.account-wrap{position:relative;display:flex;min-width:0;justify-self:end}
.account{padding:6px 10px;border-radius:4px;cursor:pointer}
.account:hover,.account[aria-expanded="true"]{background:#ffffff1a}
.account:focus-visible{outline:2px solid var(--aqua);outline-offset:1px}
.account-caret{display:grid;place-items:center;flex:none;color:var(--on-dark-muted)}
.account-caret .icon{width:22px;height:22px;stroke-width:2;transition:transform .15s}
.account[aria-expanded="true"] .account-caret .icon{transform:rotate(180deg)}
.account-menu{position:fixed;z-index:40;top:var(--menu-top,70px);right:var(--menu-right,10px);width:min(320px,calc(100vw - 20px));max-height:calc(100vh - var(--menu-top,70px) - 12px);overflow-y:auto;background:#fff;color:var(--ink);border:1px solid var(--line);border-top:0;box-shadow:0 16px 36px #1c244438}
.account-menu:focus{outline:0}
.account-menu-head{display:flex;align-items:center;gap:12px;padding:16px;background:var(--midnight);color:var(--on-dark)}
.account-menu-head .avatar{flex:none;width:44px;height:44px;font-size:15px}
.account-menu-id{min-width:0}
.account-menu-id strong{display:block;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.account-menu-id small{display:block;margin-top:2px;font-size:12.5px;color:var(--on-dark-muted);overflow-wrap:anywhere}
.account-menu-label{margin:0;padding:13px 16px 5px;font:600 11px var(--font-label);letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.account-item{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:8px 16px;background:transparent;border:0;border-radius:0;color:var(--ink);font-size:14.5px;font-weight:500;text-align:left;cursor:pointer}
.account-item:hover,.account-item:focus-visible{background:var(--brand-soft);color:var(--heading);outline:0;box-shadow:inset 3px 0 0 var(--brand)}
.account-item .icon{flex:none;width:19px;height:19px}
.account-item span{min-width:0}
.account-item kbd{margin-left:auto;padding:1px 6px;border:1px solid var(--line);background:var(--brand-soft);color:var(--muted);font:500 11px var(--font-label,inherit)}
.tone-green .icon{color:#1a8a4a}.tone-teal .icon{color:#0a7f73}.tone-blue .icon{color:#2f6fb5}.tone-violet .icon{color:#6a4fc3}.tone-amber .icon{color:#b7791f}.tone-cyan .icon{color:#0d7fa5}.tone-navy .icon{color:var(--brand)}
.account-menu-foot{margin-top:8px;padding:12px;border-top:1px solid var(--line)}
.account-logout{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;background:#fdf0f2;border:1px solid #f0c9d1;border-radius:4px;color:#a3243b;font-size:14.5px;font-weight:600;cursor:pointer}
.account-logout .icon{width:18px;height:18px}
.account-logout:hover,.account-logout:focus-visible{background:#a3243b;border-color:#a3243b;color:#fff;outline:0}
.account-logout:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #a3243b}
.profile-card{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.profile-card .avatar{width:56px;height:56px;font-size:19px;background:var(--midnight);color:var(--on-dark)}
.profile-card h3{margin:0 0 5px;overflow-wrap:anywhere}
@media(max-width:700px){.account{padding:4px}.account-caret{display:none}}

/* The footer closes the frame: same navy and line as the top bar, joined to the sidebar at the page bottom. */
@media screen{
  .workspace{position:relative;min-height:100vh}
  .main{padding-bottom:116px}
  .footer{position:absolute;left:0;right:0;bottom:0;margin:0;padding:17px 210px 17px 36px;background:var(--midnight);color:var(--on-dark-muted);font-size:13px;align-items:center}
  .footer:before{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,var(--green),var(--teal) 45%,var(--brand))}
  .footer strong{color:var(--on-dark);font-weight:600}
}
@media screen and (max-width:700px){
  .main{padding-bottom:178px}
  .footer{flex-direction:column;align-items:flex-start;gap:6px;padding:18px 17px 80px}
}

/* The official mark as a tone-on-tone watermark. */
.welcome,.owner-welcome{position:relative;overflow:hidden}
.welcome>*,.owner-welcome>*,.login-story>*{position:relative;z-index:1}
.welcome{background:linear-gradient(115deg,#1c2444,#0b5a58)}
.owner-welcome{background:linear-gradient(110deg,#1c2444,#0b5a58)}
.welcome:after,.owner-welcome:after{content:'';position:absolute;z-index:0;width:400px;height:457px;right:18px;top:-120px;border:0;border-radius:0;background:#ffffff26;-webkit-mask:url(brand/mark-outline-white.svg) center/contain no-repeat;mask:url(brand/mark-outline-white.svg) center/contain no-repeat;pointer-events:none}
.login-story{background:var(--midnight)}
.login-story:after{width:520px;height:594px;border:0;border-radius:0;right:-235px;bottom:-200px;background:#ffffff2e;-webkit-mask:url(brand/mark-outline-white.svg) center/contain no-repeat;mask:url(brand/mark-outline-white.svg) center/contain no-repeat}
.owner-orbit{display:none}

/* Icon colour carries meaning, the same way everywhere: verified is green, money teal, people violet. */
.stat-icon.is-shield,.stat-icon.is-check{background:#e5f5ec;color:#1a8a4a}
.stat-icon.is-wallet{background:#e0f4f1;color:#0a7f73}
.stat-icon.is-calendar{background:#e6f0fa;color:#2f6fb5}
.stat-icon.is-people{background:#efebfb;color:#6a4fc3}
.stat-icon.is-chart{background:#fdf2dc;color:#b7791f}
.stat-icon.is-file{background:#fdece2;color:#c2571a}
.stat-icon.is-heart{background:#fcebef;color:#c23a5c}
.stat-icon.is-chat{background:#e2f3f9;color:#0d7fa5}

/* Balance: navy is not the only colour on a page. */
.nav-item.active{background:#dff39b;color:var(--midnight)}
.nav-group.has-active:not([open]) summary{color:#dff39b}
.ws-tile:not([class*=tone-]):nth-child(3n+2){border-top-color:var(--deep-teal)}
.ws-tile:not([class*=tone-]):nth-child(3n){border-top-color:var(--deep-lime)}
.chart rect{fill:var(--deep-teal)}
.dot{background:var(--deep-teal)}
.health-score{background:radial-gradient(closest-side,#fff 78%,transparent 80%),conic-gradient(var(--deep-teal) calc(var(--score)*1%),var(--line) 0)}

.login-story small{color:var(--on-dark-muted)}
.brand{flex-direction:column;align-items:flex-start;gap:7px}
.brand-lockup{display:block;width:240px;max-width:100%;height:auto}
.sidebar .brand-lockup{width:190px}
.boot-mark{display:block;height:80px;width:auto}
.footer-mark{display:inline-block;height:18px;width:auto;vertical-align:-4px;margin-right:8px}
.required{color:#b43d49}.login-foot{color:var(--muted)}
@media(max-width:700px){.brand-lockup{width:190px}.login-story:after{display:none}.login-story .brand{margin-bottom:26px}.welcome:after,.owner-welcome:after{right:-120px}}

/* Layout adjustments for the wider brand fonts. */
@media(max-width:900px){.panel-head{flex-wrap:wrap;gap:10px}.health-count{margin-left:auto}}
@media(max-width:700px){.account-text{display:none}.topbar{grid-template-columns:minmax(0,1fr) auto}.topbar>*{min-width:0}.school-header-name{flex:1 1 0;min-width:0;max-width:none}.top-actions{flex:none}}
.stats>*,.ws-tiles>*{min-width:0}
@media(max-width:480px){.stat-value.figure-long,.stat-value.figure-xl{font-size:15px;letter-spacing:0}}
