:root { font-family:var(--aura-ui-font); color:var(--aura-navy); background:var(--aura-canvas); font-size:16px; color-scheme:light }
*,*::before,*::after { box-sizing:border-box }
body { margin:0 }
.breadcrumb-brand { display:inline-flex; align-items:center; flex:none; min-height:32px; text-decoration:none }
.local-persona {display:grid;gap:6px;font-weight:600;margin:12px 0}.local-persona select{padding:8px;border:1px solid #b5c3d2;border-radius:5px;background:white}
.compact-flyout {position:fixed;z-index:9;padding:6px;background:white;border:1px solid #dce4ee;border-radius:8px;box-shadow:0 8px 24px #162c4726;display:grid;min-width:175px;max-height:calc(100dvh - 8px);overflow:auto;font-size:13px}
.compact-flyout strong,.compact-flyout a {padding:7px 10px}.compact-flyout a {color:#27415e;text-decoration:none}.compact-flyout a:hover,.compact-flyout a:focus-visible{background:#edf4ff}
#settings-links .side-link:before {display:none}#settings-links .side-link svg{width:17px;height:17px}
.compact #settings-links .side-link {justify-content:center}.compact #settings-links .side-link .nav-copy{display:none}
.compact #attendance-links,.compact #leave-links {display:none}
.compact #settings-links .side-link {padding-left:10px;font-size:11px}
button,input,select,textarea { font:inherit }
button { cursor:pointer }
button:disabled { cursor:not-allowed }
[hidden] { display:none !important }
:focus-visible { outline:2px solid var(--aura-purple); outline-offset:2px }
.skip { position:fixed; z-index:9999; top:-100px; left:8px; padding:10px 15px; background:white }
.skip:focus { top:8px }
#workspace { display:flex; height:100dvh; overflow:hidden; background:#f8fafc }
.sidebar { width:260px; flex:none; display:flex; flex-direction:column; border-right:1px solid #e8edf2; background:#fff; min-height:0 }
.brand,.identity { display:flex; align-items:center; gap:12px; padding:16px 18px }
.brand { flex:none; height:60px; padding:0 18px; border-bottom:1px solid #e8edf2 }
.shell-wordmark { display:block; width:134px; height:auto }
.shell-symbol { display:none; width:32px; height:32px }
.compact .brand .shell-wordmark { display:none }
.compact .brand .shell-symbol { display:block }
.breadcrumb-brand img { display:block; width:70px; height:auto }
.brand-copy { display:grid; gap:2px }
.brand-copy strong { font-size:15px; line-height:1.2; color:#111827 }
.brand-copy small { font-size:11px; color:#64748b }
.workspace-navigation { flex:1; overflow:auto; padding-top:4px }
.sidebar button { color:#374151; border:0; background:transparent }
.sidebar button:hover,.side-link:hover,#collapse:hover { background:#f1f5f9 }
.group-heading { display:block; width:100%; text-align:left; padding:12px 16px 6px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:600 }
.module-button { width:calc(100% - 12px); margin:0 6px; display:flex; align-items:center; gap:10px; min-height:36px; padding:7px 12px; text-align:left; font-size:13px; font-weight:600; border-radius:6px }
.module-button .chevron { margin-left:auto }
.module-button[aria-expanded=false] .chevron { transform:rotate(-90deg) }
.side-link { margin:1px 8px; position:relative; display:flex; align-items:center; gap:10px; padding:8px 10px 8px 39px; text-decoration:none; border-radius:6px; color:#475569; font-size:13px }
.side-link::before { width:6px;height:6px; background:#cbd5e1; border-radius:50%; content:'' }
.side-link[aria-current=page] { background:var(--aura-tint); color:var(--aura-purple); font-weight:600 }
.side-link[aria-current=page]::before { background:var(--aura-purple) }
.side-link[aria-current=page]::after { content:'';position:absolute; left:0; width:3px;height:60%; background:var(--aura-purple); border-radius:0 2px 2px 0 }
.sidebar-bottom { border-top:1px solid #e8edf2 }
.identity { padding:12px 18px }
.identity strong { font-size:13px }
.avatar { width:36px;height:36px; display:grid;place-items:center; flex:none; border:0; border-radius:50%; background:var(--aura-tint); color:var(--aura-purple); font-size:13px; font-weight:700 }
#collapse { display:flex; align-items:center; gap:9px; width:100%; border-top:1px solid #e8edf2; padding:10px 20px; font-size:13px }
.shell-main { flex:1; min-width:0; display:flex; flex-direction:column }
.topbar { display:flex;align-items:center; gap:8px; height:60px; padding:0 24px; flex:none; border-bottom:1px solid #e2ebf3; background:white }
.breadcrumb-brand { font-size:11px;color:#64748b }
.crumb-separator { color:#94a3b8 }
#page-title { font-size:14px;font-weight:500 }
.top-actions { margin-left:auto;display:flex;align-items:center;gap:10px }
.icon-button { display:grid;place-items:center; width:36px;height:36px; background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;color:#475569 }
#notifications { position:relative }
#notification-count { position:absolute; right:-5px;top:-4px; min-width:17px;padding:1px 4px; border-radius:10px; background:#b91c1c; color:white; font-size:10px }
#mobile-nav,#scrim { display:none }
.module-nav { display:flex; align-items:center; flex:none; gap:3px; padding:0 16px; overflow:auto; background:white; border-bottom:2px solid #e5e7eb; box-shadow:0 2px 8px #0f172a0e; z-index:1; scrollbar-width:thin }
.module-title { flex:none; display:flex;align-items:center;gap:8px; padding:2px 14px 2px 0; margin-right:4px; border-right:1px solid #e5e7eb;font-size:11px;color:var(--aura-purple) }
.module-title [data-icon] { display:grid;place-items:center; width:26px;height:26px;color:white;border-radius:6px;background:linear-gradient(135deg,var(--aura-purple),#0891b2) }
#tabs { display:flex; align-items:stretch }
.tab-link { display:flex;align-items:center;gap:5px; white-space:nowrap; font-size:11px; text-decoration:none; color:#475569; padding:10px 9px 8px; border-bottom:2px solid transparent }
.tab-link[aria-current=page] { border-color:var(--aura-purple); font-weight:700;color:var(--aura-purple) }
[data-icon] svg { display:block;width:1em;height:1em }
#page { flex:1; min-width:0; overflow:auto; outline:none }
.shell-status,.missing-page { margin:24px; color:#475569; font-size:14px }
.compact .sidebar { width:60px }
.compact .sidebar .brand-copy,.compact .sidebar .nav-copy,.compact .sidebar .chevron,.compact .sidebar .group-heading,.compact #side-links { display:none }
.compact .brand,.compact .identity,.compact #collapse,.compact .module-button { justify-content:center; padding-left:0;padding-right:0 }
.compact #collapse svg { transform:rotate(180deg) }
#workspace.portal-mode .sidebar,#workspace.portal-mode .topbar,#workspace.portal-mode .module-nav { display:none }
#announcements { position:fixed;right:18px;bottom:18px;z-index:10000; max-width:calc(100% - 36px); pointer-events:none }
#announcements:not(:empty) { color:white; background:#172b4d; border-radius:7px;box-shadow:0 4px 18px #0f172a25; padding:11px 16px;font-size:14px }
.local-dashboard { padding:20px;display:grid;gap:16px }
.local-dashboard header { display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap }
.local-dashboard h1 { font-size:22px; margin:0 0 4px;letter-spacing:-.025em }
.local-dashboard header p,.dash-empty { margin:0;font-size:13px;color:#526177 }
.dash-kpis { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px }
.local-dashboard article,.dash-charts section,.local-dashboard>section { background:white;border:1px solid #e2e8f0; border-radius:12px;padding:16px }
.dash-kpis article { display:grid;gap:10px }
.dash-cohort,.reg-report-context { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem 1rem; font-size:.875rem; color:var(--aura-navy) }
.dash-cohort { margin:1rem 0 }
.dash-cohort input,.dash-cohort button { background:var(--aura-white); border:1px solid var(--aura-line); border-radius:6px; font:inherit; color:inherit; padding:.45rem .65rem }
.dash-cohort label { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; font-weight:600 }
.reg-report-context { background:var(--aura-tint); border-radius:var(--aura-radius); padding:.7rem 1rem; margin-bottom:1rem }
.reg-report-context a,.dash-cohort a { color:var(--aura-purple); text-underline-offset:.17em }
.dash-kpis .dash-report-link { display:grid; gap:10px; height:100%; color:inherit; text-decoration:none; border-radius:4px }
.dash-kpis .dash-report-link:hover strong { color:var(--aura-purple); text-decoration:underline; text-underline-offset:.2em }
.dash-kpis span,.dash-stage,.dash-month,.dash-legend,.dash-group { font-size:12px;color:#48566b }
.dash-kpis strong { font-size:26px }
.dash-charts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px }
.local-dashboard h2 { margin:0 0 18px;font-size:15px }
.dash-stage { margin:9px 0 }
.dash-stage>div:first-child { display:flex;justify-content:space-between;margin-bottom:3px }
.dashboard-meter { height:12px;border-radius:4px;background:#f1f5f9;overflow:hidden }
.dashboard-meter i,.dash-outcomes i { display:block;height:100% }
.dash-plot { border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-around;background:repeating-linear-gradient(to top,transparent 0 44px,#f2f5f8 44px 45px);margin:10px 0 }
.dash-month { text-align:center; padding-bottom:4px }
.dash-bars { display:flex;align-items:end;gap:3px;height:150px;margin-bottom:4px }
.dash-bars span {width:8px; border-radius:3px 3px 0 0}
.dash-legend,.dash-legend span,.dash-group { display:flex;align-items:center;gap:6px }
.dash-legend { gap:12px;flex-wrap:wrap;margin-top:12px }
.dash-legend i { width:8px;height:8px;border-radius:2px }
.dash-group { gap:10px;margin:8px 0 }
.dash-outcomes { flex:1;background:#dc2626;border-radius:3px;height:12px;overflow:hidden }
.dash-outcomes i { background:#059669 }
@media(max-width:900px) { .dash-kpis { grid-template-columns:repeat(auto-fit,minmax(125px,1fr)) } .dash-charts { grid-template-columns:1fr } }
.shell-dialog { border:1px solid #d7dfe8; border-radius:12px; padding:20px; width:min(450px,calc(100vw - 28px)); color:#172334; box-shadow:0 16px 48px #0f172a26 }
.shell-dialog::backdrop { background:#1723344f }
.shell-dialog header,.shell-dialog footer { display:flex; align-items:center;justify-content:space-between;gap:12px }
.shell-dialog h2 { margin:0;font-size:18px }
.shell-dialog p,.shell-dialog li { font-size:14px;line-height:1.5 }
.shell-dialog li { padding:8px 0 }
.shell-dialog ul { list-style:none; padding:0; margin:12px 0; overflow-wrap:anywhere }
.shell-dialog small { color:#5b6a7a;display:block }
.shell-dialog a { color:var(--aura-purple) }
.shell-dialog footer { justify-content:flex-end }
.shell-button,.dash-cta { border:1px solid #cbd5e1; border-radius:6px;padding:7px 12px; background:#fff;color:#263649;font-size:13px;text-decoration:none }
.shell-primary,.dash-cta { background:var(--aura-purple);color:white;border-color:var(--aura-purple) }
.compact #onboard-links {display:none}
.ids-page {padding:20px;color:#14243a;font-size:14px}
.ids-page h1 {font-size:22px;margin:0}
.ids-page p,.ids-row small {color:#57687b}
.ids-page header p {margin:3px 0 16px}
.ids-page h2 {font-size:15px;margin:0 0 10px}
.ids-layout {display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.8fr);gap:16px;align-items:start}
.ids-card {background:white;border:1px solid #dce3eb;border-radius:10px;padding:18px;min-width:0}
.ids-card input:not([type=checkbox]),.ids-card select {min-height:33px;border:1px solid #b3c0d1;border-radius:5px;padding:4px 8px;max-width:100%}
.ids-tokens,.ids-tools,.ids-tabs,.ids-card footer,.ids-split {display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.ids-tokens {background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;padding:9px;margin-top:6px}
.ids-tokens span {background:#234775;color:white;border-radius:5px;padding:3px 7px;font-size:12px}
.ids-tabs {border-bottom:1px solid #dce3eb;margin-bottom:12px}
.ids-tabs button {padding:8px;background:none;border:0;border-bottom:2px solid transparent;color:#526176}
.ids-tabs button[aria-pressed=true] {border-color:var(--aura-purple);color:var(--aura-purple);font-weight:600}
.ids-tools {margin-bottom:12px}
.ids-split {gap:1px}
.ids-split details {position:relative}
.ids-split summary {padding:6px;cursor:pointer;list-style:none}
.ids-split details>div {position:absolute;right:0;z-index:2;background:white;box-shadow:0 3px 15px #17233522;border:1px solid #dce3eb;padding:4px;min-width:130px}
.ids-split details button {display:block;border:0;width:100%;text-align:left}
.ids-row {display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid #dce3eb;border-radius:8px;padding:12px;margin:8px 0}
.ids-row>div {flex:1;min-width:96px}
.ids-row small {display:block;font-size:12px}
.ids-card footer {margin-top:14px;justify-content:flex-end;font-size:12px}
@media(max-width:980px){.ids-layout{grid-template-columns:1fr}}
.temp-drawer,.notification-drawer { position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:min(540px,100%);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #d8e0ea;color:#182b43;box-shadow:-4px 0 30px #182b431c }
.temp-drawer::backdrop,.notification-drawer::backdrop { background:#17233455 }
.temp-drawer form,.notification-panel { height:100%;display:flex;flex-direction:column }
.temp-drawer header,.notification-panel header { display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid #dae2ec }
.temp-drawer h2,.notification-panel h2 { margin:0;font-size:18px }
.temp-drawer header p,.notification-panel header p { margin:4px 0 0;font-size:13px;color:#536479 }
.temp-drawer header button,.notification-panel header button { background:transparent;color:#36485e;border:0;font-size:21px }
.temp-fields { flex:1;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:16px;padding:18px 20px }
.temp-fields label,.temp-fields legend { display:block;font-size:13px;font-weight:600;margin-bottom:5px }
.temp-fields>div>label span,.temp-fields small,.temp-error { color:#b91c1c }
.temp-fields small { font-size:12px }
.temp-fields input:not([type=radio]),.temp-fields select { width:100%;min-width:0;padding:7px 8px;font-size:13px;border:1px solid #aab7c6;border-radius:5px;min-height:34px }
.temp-fields [readonly],.temp-fields :disabled { color:#526176;background:#f4f6f9;opacity:1 }
.temp-fields [aria-invalid=true] { border-color:#b91c1c }
.temp-fields fieldset { margin:0;padding:6px 8px;border:0;border-radius:5px;background:#f8fafc }
.temp-fields fieldset label { display:inline-flex;align-items:center;gap:3px;margin-right:10px;font-weight:400 }
.temp-error { margin:5px 18px;font-size:13px }
.temp-drawer footer { display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #d8e0ea }
.notification-drawer {width:min(440px,100%)}
.feed-controls {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid #e2e8f0}
.feed-controls button {font-size:13px;border:0;background:#f8fafc;color:#334155;padding:7px 9px;border-radius:5px}
.feed-controls button[aria-pressed=true] {background:#dbeafe;color:#1e40af;font-weight:600}
.feed-items {min-height:0;overflow:auto;padding:12px 16px}
.feed-items article {padding:8px 12px;border-bottom:1px solid #e2e8f0;overflow-wrap:anywhere}
.feed-items article.unread {background:#eff6ff;border-radius:6px}
.feed-items article button {display:grid;gap:3px;width:100%;background:none;border:0;text-align:left;padding:0;color:#1e293b}
.feed-items strong,.feed-items p {font-size:14px}
.feed-items span,.feed-items small,.feed-items a {font-size:12px}
.feed-message { margin:.65rem 0; color:var(--aura-navy) }
.feed-message small { display:block; color:var(--aura-muted) }
.feed-message p { margin:.35rem 0; white-space:pre-line }
.feed-controls button[aria-pressed=true],.feed-items article.unread { background:var(--aura-tint); color:var(--aura-navy) }
@media(max-width:480px){ .temp-fields {grid-template-columns:1fr} }
@media(max-width:800px) {
  #mobile-nav { display:grid }
  .topbar { padding:0 12px;height:50px }
  .sidebar,.compact .sidebar { display:none }
  .mobile-open .sidebar { position:fixed;inset:0 auto 0 0; z-index:22;display:flex;width:min(260px,85vw) }
  .mobile-open #scrim { display:block;position:fixed;inset:0; z-index:21;background:#0f172a52;border:0 }
  .sidebar #collapse { display:none }
  .module-nav { padding:0 8px }
  .module-title { display:none }
  .tab-link { min-height:40px }
}
