/* IAU Space base styles. System font stack: no font files, no third-party requests. */

:root{
  --blue-900:#112044;--blue-700:#1D3B85;--blue-500:#1A64B7;--blue-300:#77ACE9;--blue-100:#C0DDFF;
  --orange:#F3914A;--grey:#5D5D5D;--ink:#151515;--paper:#FEFEFE;--line:#E3E8F0;--soft:#F3F6FB;
  --radius:12px;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,"SF Pro Text",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.55;color:var(--ink);background:var(--soft);
  min-height:100vh;display:flex;flex-direction:column}
a{color:var(--blue-500)}
h1{font-size:26px;font-weight:600;letter-spacing:-.01em;color:var(--blue-900);margin:0 0 8px}
h2{font-size:18px;font-weight:600;color:var(--blue-900);margin:0 0 6px}
p{margin:0 0 12px}
.muted{color:var(--grey);font-size:13px}

.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:var(--paper);border-bottom:1px solid var(--line)}
.brand img{display:block}
.who{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--grey)}
.who form{margin:0}
.who .rolechip{font-size:12px;font-weight:500;color:var(--blue-700);background:var(--blue-100);border-radius:999px;padding:2px 10px}

.page{flex:1;width:100%;max-width:960px;margin:0 auto;padding:32px 24px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.card.narrow{max-width:520px;margin:48px auto}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:20px}
.tile{display:flex;flex-direction:column;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;color:inherit;text-decoration:none}
.tile:hover{border-color:var(--blue-300)}
.tile .tag{align-self:flex-start;font-size:12px;font-weight:500;color:var(--blue-700);background:var(--blue-100);border-radius:999px;padding:2px 10px}
.tile p{color:var(--grey);margin:0;font-size:14px}

.btn{display:inline-block;font:inherit;font-weight:500;font-size:15px;color:#fff;background:var(--blue-500);border:1px solid var(--blue-500);
  border-radius:8px;padding:10px 20px;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--blue-700);border-color:var(--blue-700)}
.btn-ghost{color:var(--blue-500);background:transparent;border-color:var(--line);padding:6px 14px;font-size:14px}
.btn-ghost:hover{background:var(--soft);border-color:var(--blue-300)}

.foot{display:flex;justify-content:space-between;gap:12px;padding:16px 24px;font-size:13px;color:var(--grey);border-top:1px solid var(--line);background:var(--paper)}
@media (max-width:600px){.topbar,.page,.foot{padding-left:16px;padding-right:16px}}

/* Staff panel: tabs and catalog table */
.page.wide{max-width:1400px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:16px 0 20px}
.tabs a{padding:10px 16px;text-decoration:none;color:var(--grey);font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs a.on{color:var(--blue-500);border-bottom-color:var(--blue-500)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.bar form{margin:0}
.notice{border:1px solid var(--blue-100);background:#F5F9FF;border-radius:8px;padding:10px 14px;font-size:14px;margin-bottom:12px}
.notice.warn{border-color:var(--orange);background:#FFF7F0}
.tablewrap{overflow-x:auto;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
table.data{width:100%;border-collapse:collapse;font-size:14px}
table.data th{position:sticky;top:0;text-align:left;font-weight:600;color:var(--blue-900);background:var(--soft);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
table.data td{padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top}
table.data tr:last-child td{border-bottom:0}
table.data tr.dim td{color:var(--grey);background:#FAFAFA}
.pill{display:inline-block;white-space:nowrap;font-size:12px;font-weight:500;border-radius:999px;padding:1px 9px;margin:0 4px 2px 0;background:var(--blue-100);color:var(--blue-700)}
.pill.warn{background:#FFE6D3;color:#9A4A12}
details.pop summary{cursor:pointer;color:var(--blue-500)}
details.pop ul{margin:6px 0 0;padding-left:18px;color:var(--ink)}

/* Student self-enrollment */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.profile{display:flex;flex-wrap:wrap;align-items:center;gap:16px 40px;padding:20px 24px;border-left:4px solid var(--blue-500)}
.profile-name{font-size:20px;font-weight:600;color:var(--blue-900);line-height:1.25}
.profile-program{color:var(--grey);font-size:15px;margin-top:2px}
.facts{display:flex;flex-wrap:wrap;gap:12px 32px;margin:0;flex:1}
.facts dt{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
.facts dd{margin:2px 0 0;font-weight:600;color:var(--ink)}
.profile-action{margin:0}
.profile.compact .profile-main{flex:1 1 300px;min-width:240px}
.profile.compact .facts{flex:0 0 auto}
.profile.compact .facts dd{white-space:nowrap}
.questions{max-width:640px;margin:24px 0 0}
.q{border:0;padding:0;margin:0 0 22px}
.q legend{font-weight:600;font-size:16px;margin-bottom:10px;color:var(--blue-900);padding:0}
.choices{display:flex;gap:10px}
.choice{position:relative;cursor:pointer}
.choice input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.choice span{display:inline-block;min-width:96px;text-align:center;padding:10px 22px;border:1.5px solid var(--line);border-radius:10px;background:var(--paper);font-weight:500;color:var(--ink);transition:border-color .15s,background .15s,color .15s}
.choice:hover span{border-color:var(--blue-300)}
.choice input:checked + span{background:var(--blue-500);border-color:var(--blue-500);color:#fff}
.choice input:focus-visible + span{outline:3px solid var(--blue-100);outline-offset:1px}
.selcount{font-size:14px;font-weight:600;color:var(--grey);background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:3px 14px}
.selcount.on{color:var(--blue-700);background:var(--blue-100);border-color:var(--blue-100)}
.legend{display:block;margin-top:6px;font-size:13px;color:var(--grey)}
.sw{display:inline-block;width:12px;height:12px;border-radius:3px;margin:0 6px -1px 0;border:1px solid rgba(0,0,0,.12)}
.sw+.sw,.legend .sw:not(:first-child){margin-left:14px}
.sw-taken{background:#CFE2F8}.sw-full{background:#E4E4E4}.sw-picked{background:#FFE3CC}
th.pick,td.pick{width:36px;text-align:center;padding-right:4px}
input.coursebox{width:18px;height:18px;accent-color:var(--blue-500);cursor:pointer;margin:2px 0 0}
input.coursebox:disabled{cursor:not-allowed}
table.data tr.row-taken td{background:#E1EDFA}
table.data tr.row-taken td:first-child{box-shadow:inset 4px 0 0 var(--blue-300)}
table.data tr.row-taken input.coursebox{accent-color:var(--blue-300)}
table.data tr.row-full td{background:#EBEBEB;color:var(--grey)}
table.data tr.row-open:hover td{background:#F7FAFF}
table.data tr.row-picked td{background:#FFF0E3}
table.data tr.row-picked td:first-child{box-shadow:inset 4px 0 0 var(--orange)}
.pill.ok{background:#C7DEF7;color:#1D3B85}

/* Loading indicator (shown by assets/js/ui.js). It fades in after a short delay, so fast pages never flash it. */
.loading-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;
  background:rgba(243,246,251,.78);backdrop-filter:blur(2px);opacity:0;animation:iau-fade .25s ease .35s forwards}
.loading-box{display:flex;flex-direction:column;align-items:center;gap:14px;padding:26px 34px;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 30px rgba(17,32,68,.12)}
.spinner{width:42px;height:42px;border-radius:50%;border:4px solid var(--blue-100);border-top-color:var(--blue-500);
  border-right-color:var(--orange);animation:iau-spin .9s linear infinite}
.loading-text{font-size:14px;font-weight:500;color:var(--blue-900);letter-spacing:.02em}
@keyframes iau-spin{to{transform:rotate(360deg)}}
@keyframes iau-fade{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}

/* Course table filters */
.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 14px;margin:0 0 14px;padding:14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(17,32,68,.04)}
.filters-head{display:flex;align-items:center;gap:8px;align-self:center;font-weight:600;font-size:14px;color:var(--blue-700);padding-right:6px}
.filters .f{display:flex;flex-direction:column;gap:5px;min-width:150px;flex:1 1 150px;max-width:240px}
.filters .f span{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
.filters select{appearance:none;-webkit-appearance:none;font:inherit;font-size:14px;color:var(--ink);width:100%;padding:9px 34px 9px 12px;border:1px solid var(--line);border-radius:10px;background:#F7F9FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A64B7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;cursor:pointer;text-overflow:ellipsis;transition:border-color .15s,box-shadow .15s,background-color .15s}
.filters select:hover{border-color:var(--blue-300);background-color:#fff}
.filters select:focus{outline:0;border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(26,100,183,.18);background-color:#fff}
.filters-end{display:flex;align-items:center;gap:12px;margin-left:auto}
.filters-end .muted{white-space:nowrap}
tr[hidden]{display:none}

/* Sortable headers */
.sortbtn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:inherit;font-weight:600;color:var(--blue-900);border-radius:6px;padding:2px 4px;margin:-2px -4px}
.sortbtn:hover{background:rgba(26,100,183,.08)}
.sortbtn:focus-visible{outline:2px solid var(--blue-500);outline-offset:1px}
.arrows{display:inline-flex;flex-direction:column;gap:2px}
.arrows b{display:block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;opacity:.28}
.arrows .up{border-bottom:5px solid var(--blue-900)}
.arrows .down{border-top:5px solid var(--blue-900)}
th[aria-sort="ascending"] .arrows .up,th[aria-sort="descending"] .arrows .down{opacity:1;border-bottom-color:var(--blue-500);border-top-color:var(--blue-500)}

/* Cart card and rule popup */
.cartcard{margin:0 0 14px}
.cart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.cart-head h2{margin:0}
.cart-courses{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.cart-courses .chip{background:#FFF0E3;border:1px solid #F3C9A3;color:#7A3E0E;border-radius:999px;padding:3px 12px;font-size:13px}
.cart-needs{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px;font-size:14px}
.cart-needs .ok{color:#1D3B85}
.cart-needs .todo{color:var(--grey)}
.cart-warn{margin-top:12px;padding:10px 14px;background:#FFF4EA;border:1px solid #F3C9A3;border-radius:10px;font-size:14px}
.cart-warn ul,.cart-warn li{margin:0;padding:0}
table.busy{opacity:.7;cursor:progress}
.rulepop{border:0;border-radius:16px;padding:22px 24px;max-width:460px;box-shadow:0 20px 60px rgba(17,32,68,.3)}
.rulepop::backdrop{background:rgba(17,32,68,.45)}
.rulepop h2{font-size:18px;margin:0 0 8px}
.rulepop-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}

.cart-submit{display:flex;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}
.cart-submit .btn:disabled{opacity:.45;cursor:not-allowed}
.reqcard .cart-courses{margin-top:10px}

/* Sticky slim selection bar */
.cartbar{position:sticky;top:8px;z-index:30;margin:0 0 14px;background:#fff;border:1px solid #D5E2F3;border-radius:14px;box-shadow:0 4px 18px rgba(17,32,68,.12);overflow:visible}
.cartbar-main{display:flex;align-items:center;gap:14px;padding:8px 12px;min-height:52px}
.cartbar-count{display:inline-flex;align-items:center;gap:8px;border:0;background:#EEF4FC;color:#112044;border-radius:999px;padding:5px 12px 5px 5px;font:inherit;font-weight:600;cursor:pointer}
.cartbar-count .num{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:999px;background:#1A64B7;color:#fff;font-size:14px}
.cartbar:not(.has) .cartbar-count .num{background:#9AA9BD}
.cartbar-count .chev{transition:transform .15s}
.cartbar.open .cartbar-count .chev{transform:rotate(180deg)}
.reqpills{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
.reqpills .pill{border:1px solid #D5E2F3;background:#F6F8FB;color:#5B6B82;border-radius:999px;padding:3px 10px;font-size:13px;white-space:nowrap}
.reqpills .pill.done{background:#E3EEFB;border-color:#77ACE9;color:#1D3B85}
.cartbar-action{display:flex;align-items:center;gap:10px;margin-left:auto}
.cartbar-action .hint{font-size:13px;color:#5B6B82}
.cartbar-action .btn[disabled]{background:#C9D3E0;border-color:#C9D3E0;color:#fff;cursor:not-allowed;pointer-events:auto;opacity:1;box-shadow:none}
.cartbar-progress{height:3px;background:#E6EDF6;border-radius:0 0 14px 14px;overflow:hidden}
.cartbar-progress i{display:block;height:100%;width:0;background:#77ACE9;transition:width .25s}
.cartbar-progress.full i{background:#1A64B7}
.cartpanel{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #D5E2F3;border-radius:14px;box-shadow:0 12px 32px rgba(17,32,68,.18);padding:14px 16px;max-height:60vh;overflow:auto}
.cartpanel[hidden]{display:none}
.cartpanel .cart-courses{margin-top:0}
.chip-x{border:0;background:transparent;color:inherit;font-size:16px;line-height:1;margin-left:6px;cursor:pointer;padding:0 2px}
@media (max-width:720px){.cartbar-main{flex-wrap:wrap;gap:8px}.cartbar-action{width:100%;justify-content:space-between}.reqpills{order:3;width:100%;flex:none}}

.filters input[type=date],.filters input[type=search]{font:inherit;font-size:14px;color:var(--ink);width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#F7F9FC}
.filters input:focus{outline:0;border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(26,100,183,.18);background:#fff}

/* Admin tabs */
.field{font:inherit;font-size:14px;width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.field:focus{outline:0;border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(26,100,183,.18)}
.check{display:inline-flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}
pre.code{margin:4px 0 8px;padding:8px 10px;background:var(--soft);border:1px solid var(--line);border-radius:8px;font-size:12px;max-width:520px;overflow:auto;white-space:pre-wrap;word-break:break-word}

/* The hidden attribute must always win over component display rules (for example .btn). */
[hidden]{display:none !important}

/* ===== Theme v2 (0.10.0): modern, calm, elegant. Overrides above; same markup and behavior. ===== */
:root{
  --ink:#16203A;--grey:#667085;--line:#E6EBF3;--soft:#F4F7FC;
  --shadow-sm:0 1px 2px rgba(17,32,68,.05),0 1px 3px rgba(17,32,68,.04);
  --shadow-md:0 4px 8px -2px rgba(17,32,68,.06),0 12px 28px -6px rgba(17,32,68,.10);
  --radius:16px;
  --ok:#0E7A4F;--ok-bg:#E3F5EC;--no:#B42318;--no-bg:#FDE8E6;--wait:#9A5B0A;--wait-bg:#FFF1DB;--off:#475467;--off-bg:#EDEFF3;
}
body{background:radial-gradient(1200px 380px at 50% -120px,#DCE9FB 0%,rgba(220,233,251,0) 70%),var(--soft);background-repeat:no-repeat}
h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
h2{font-weight:650;letter-spacing:-.01em}

/* Header */
.topbar{position:sticky;top:0;z-index:50;padding:10px 28px;background:rgba(255,255,255,.82);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid rgba(17,32,68,.07)}
.topbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,#0B3D91,#1A64B7,#4DA3F0,#9CCBFA,#4DA3F0,#1A64B7,#0B3D91);background-size:300% 100%;animation:topbar-flow 9s linear infinite}
@keyframes topbar-flow{from{background-position:0 0}to{background-position:-300% 0}}
@media (prefers-reduced-motion:reduce){.topbar::after{animation:none}}
.who span{font-weight:500;color:var(--ink);background:var(--soft);padding:6px 14px;border-radius:999px;font-size:14px}
.page-head,.pagehead{margin:4px 0 6px}
.pagehead .sub{color:var(--grey);font-size:15px;margin:0 0 14px}

/* Buttons */
.btn{border-radius:10px;font-weight:600;padding:10px 20px;background:linear-gradient(180deg,#2273C8,var(--blue-500));border-color:var(--blue-500);box-shadow:0 1px 2px rgba(17,32,68,.18),inset 0 1px 0 rgba(255,255,255,.18);transition:transform .12s,box-shadow .15s,background .15s}
.btn:hover{background:linear-gradient(180deg,#1D69BD,var(--blue-700));border-color:var(--blue-700);box-shadow:0 4px 12px rgba(26,100,183,.30);transform:translateY(-1px)}
.btn:active{transform:none;box-shadow:0 1px 2px rgba(17,32,68,.2)}
.btn:focus-visible{outline:3px solid var(--blue-100);outline-offset:2px}
.btn-ghost{background:#fff;color:var(--blue-700);border-color:var(--line);box-shadow:var(--shadow-sm);font-weight:500}
.btn-ghost:hover{background:#fff;color:var(--blue-500);border-color:var(--blue-300);box-shadow:var(--shadow-md);transform:translateY(-1px)}

/* Cards */
.card,.tile,.tablewrap,.filters{box-shadow:var(--shadow-sm);border-color:var(--line)}
.card{border-radius:var(--radius)}
.tile{transition:box-shadow .2s,transform .2s,border-color .2s}
.tile:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.profile{border-left:0;position:relative;overflow:hidden;padding:22px 28px 22px 32px;background:linear-gradient(135deg,#fff 55%,#F2F7FE)}
.profile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,var(--blue-500),var(--orange))}
.profile-name{font-size:22px;font-weight:700;letter-spacing:-.015em}
.facts dt{font-size:10.5px;letter-spacing:.08em;color:#8792A6}
.facts dd{font-weight:600;font-size:15px}
.notice{border-radius:12px;border:1px solid #D6E6FA;background:linear-gradient(180deg,#F7FAFF,#F1F7FF);box-shadow:var(--shadow-sm);padding:12px 16px}
.notice.warn{border-color:#F6D2AE;background:linear-gradient(180deg,#FFFAF4,#FFF5EA)}

/* Tabs as a segmented control */
.tabs{display:inline-flex;flex-wrap:wrap;gap:2px;padding:4px;margin:8px 0 22px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-sm)}
.tabs a{padding:8px 18px;margin:0;border:0;border-radius:10px;font-size:14px;font-weight:500;transition:background .15s,color .15s}
.tabs a:hover{background:var(--soft);color:var(--blue-700)}
.tabs a.on{color:#fff;background:linear-gradient(180deg,#2273C8,var(--blue-500));box-shadow:0 2px 8px rgba(26,100,183,.35)}

/* Tables */
.tablewrap{border-radius:var(--radius)}
table.data th{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:#6B778C;background:#F8FAFD;padding:12px 14px}
table.data td{padding:12px 14px;border-bottom-color:#EEF2F8}
table.data tbody tr{transition:background .12s}
table.data tbody tr:hover td{background:#F8FBFF}
table.data tr.dim td{background:#FBFBFC}
.sortbtn{text-transform:uppercase;letter-spacing:.06em;font-size:11.5px;color:#6B778C}
th[aria-sort] .sortbtn{color:var(--blue-700)}
table.data td a{font-weight:500;text-decoration:none}
table.data td a:hover{text-decoration:underline}

/* Pills and status badges */
.pill{font-weight:600;font-size:11.5px;padding:3px 10px;border-radius:999px;letter-spacing:.01em}
.pill.st::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px}
.pill.st-pending,.pill.warn{background:var(--wait-bg);color:var(--wait)}
.pill.st-approved{background:var(--ok-bg);color:var(--ok)}
.pill.st-denied{background:var(--no-bg);color:var(--no)}
.pill.st-canceled{background:var(--off-bg);color:var(--off)}
.pill.ok{background:#DCEAFB;color:var(--blue-700)}

/* Summary cards (staff Requests) */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:0 0 16px}
.stat{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"n l" "n d";column-gap:14px;align-items:center;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .2s,border-color .2s}
.stat:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.stat b{grid-area:n;font-size:30px;line-height:1;font-weight:700;letter-spacing:-.02em;min-width:46px;text-align:center;padding:10px 0;border-radius:12px}
.stat span{grid-area:l;font-weight:650;font-size:14px}
.stat em{grid-area:d;font-style:normal;font-size:12.5px;color:var(--grey)}
.stat.st-pending b{background:var(--wait-bg);color:var(--wait)}
.stat.st-approved b{background:var(--ok-bg);color:var(--ok)}
.stat.st-denied b{background:var(--no-bg);color:var(--no)}
.stat.st-canceled b{background:var(--off-bg);color:var(--off)}
.stat.on{border-color:var(--blue-300);box-shadow:0 0 0 3px rgba(26,100,183,.12),var(--shadow-sm)}

/* Filters and form fields */
.filters{border-radius:var(--radius);padding:16px 18px}
.filters select,.filters input[type=date],.filters input[type=search]{border-radius:10px;background-color:#F8FAFD}
.field,textarea{border-radius:10px;border-color:var(--line);transition:border-color .15s,box-shadow .15s}
textarea:focus{outline:0;border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(26,100,183,.18)}

/* Student: selection bar, rows, choices */
.cartbar{top:76px;border-radius:16px;box-shadow:var(--shadow-md);border-color:#D9E5F5}
.cartbar-count{background:#EAF2FD}
.cartbar-action .btn[disabled]{background:#D3DBE7;border-color:#D3DBE7}
.cartbar-progress i{background:linear-gradient(90deg,var(--blue-300),var(--blue-500))}
.cartpanel{border-radius:16px;box-shadow:0 18px 44px rgba(17,32,68,.20)}
table.data tr.row-picked td{background:#FFF3E8}
table.data tr.row-taken td{background:#E8F1FC}
input.coursebox{width:19px;height:19px;border-radius:5px}
.choice span{border-radius:12px;box-shadow:var(--shadow-sm);font-weight:600}
.choice input:checked + span{background:linear-gradient(180deg,#2273C8,var(--blue-500));box-shadow:0 4px 12px rgba(26,100,183,.30)}
.rulepop{border-radius:20px;box-shadow:0 24px 70px rgba(17,32,68,.35);padding:26px 28px}
.rulepop::backdrop{background:rgba(17,32,68,.5);backdrop-filter:blur(3px)}
.cart-courses .chip{background:#FFF3E8;border-color:#F6D2AE;font-weight:500}
.loading-box{border-radius:18px;box-shadow:var(--shadow-md)}

/* Footer */
.foot{background:transparent;border-top:1px solid var(--line);color:#8792A6}

@media (max-width:720px){h1{font-size:25px}.topbar{padding:8px 14px}.who span{display:none}.who .rolechip{display:none}.stats{grid-template-columns:1fr 1fr}.stat{padding:12px}.stat b{font-size:24px;min-width:38px}.stat em{display:none}.cartbar{top:64px}}

/* ===== Student PCP (0.11.0) ===== */
.pcpbar{margin-top:16px}
.pcpgroup{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);margin:0 0 12px;overflow:hidden}
.pcpgroup[open]{box-shadow:var(--shadow-md)}
.pcpgroup summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:16px 20px;cursor:pointer;list-style:none;position:relative;padding-right:48px}
.pcpgroup summary::-webkit-details-marker{display:none}
.pcpgroup summary:hover{background:#F8FBFF}
.pcpname{font-size:17px;font-weight:650;letter-spacing:-.01em;color:var(--blue-900)}
.pcpmeta{margin-left:auto}
.pcpchev{position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-6px;border-right:2px solid var(--blue-500);border-bottom:2px solid var(--blue-500);transform:rotate(45deg);transition:transform .18s}
.pcpgroup[open] .pcpchev{transform:rotate(-135deg);margin-top:-2px}
.pcptable{border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
.pcpempty{padding:0 20px 16px;margin:0}
@media (max-width:720px){.pcpmeta{margin-left:0;width:100%}}

/* Student PCP status tags (one per attempt) */
.tg{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;border-radius:6px;padding:3px 9px;margin:0 4px 3px 0;white-space:nowrap}
.tg-completed{background:#4CAF6A}
.tg-failed{background:#D9534F}
.tg-enrolled{background:#F0A94B}
.tg-pending{background:#A5A5A5}
.tg-withdrawn{background:#6B778C}
.tg-incomplete{background:#C98A1B}
.tg-cancelled{background:#9AA4B2}
.tg-advanced,.tg-transfer{background:#2F7BD0}
.tg-other{background:#7E8AA0}

/* PCP phase 2b: attempts, final grade, credit progress, pending toggle */
.attempts{display:flex;flex-direction:column;gap:4px}
.att{display:flex;align-items:center;gap:8px}
.att .tg{margin:0;min-width:92px;text-align:center}
.gr{display:inline-block;min-width:26px;text-align:center;font-size:12px;font-weight:700;color:#7A5200;background:#FFE9B8;border-radius:6px;padding:3px 8px}
.when{font-size:12px;color:var(--muted,#6B778C)}
.pcpprog{font-size:13px;color:var(--blue-900);display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.pcpprog .bar{display:inline-flex;width:120px;height:7px;background:#E6ECF5;border-radius:4px;overflow:hidden}
.pcpprog .b1{background:#4CAF6A;height:100%}
.pcpprog .b2{background:#F6CE8F;height:100%}
.pcpgroup.met{border-left:4px solid #4CAF6A}
.chk{display:inline-flex;align-items:center;gap:6px;font-size:14px;cursor:pointer}
.hidepending:not(.searching) tr.pend{display:none}
.hidepending:not(.searching) details.allpend .pcptable{display:none}
.searching .pendnote,.showpend .pendnote{display:none}

.cnote{font-size:12px;color:#6B778C;margin-top:4px}
.facts .progwide .bar{display:inline-flex;width:110px;height:8px;background:#E6ECF5;border-radius:4px;overflow:hidden;vertical-align:middle;margin-right:6px}
.facts .progwide .b1{background:#4CAF6A;height:100%}

.via{font-size:12px;font-weight:600;color:#2F7BD0}
.eqbox{width:100%;min-height:180px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;padding:10px;border:1px solid var(--line);border-radius:10px}

/* PCP: notes, print */
.enrollnow{margin:12px 0 0;font-size:14px;color:var(--blue-900)}
.pcpwhy{padding:12px 20px;border-top:1px solid var(--line);font-size:13px;color:#4A5B73;background:#FAFCFF}
.printhead{display:none}
@media print{
  header,footer,nav,.noprint,.pcpchev,.pcpbar,#pageload,.notice.warn.noprint{display:none!important}
  body,.page{background:#fff!important}
  .printhead{display:block;margin:0 0 12px;font-size:12px}
  .pcpgroup{break-inside:avoid;box-shadow:none;border:1px solid #999;margin:0 0 10px}
  .pcpgroup summary{padding:8px 12px}
  .card,.tablewrap{box-shadow:none}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

.ruleid{font-size:17px}
.ruledesc{margin-top:8px;font-size:16px;line-height:1.5;color:var(--ink);font-weight:500}
.ruledet{margin:10px 0 0;font-size:15px;line-height:1.6;color:var(--grey)}

/* Documentation tab (v0.20.1) */
.docbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 14px}
.docbar-end{margin-left:auto;display:inline-flex;gap:8px;flex-wrap:wrap}
.docrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--line)}
.docrow:first-of-type{border-top:0}
.docold{margin-top:6px}.docold summary{cursor:pointer;color:var(--grey);padding:6px 0}
.docs-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}
.doctoc{position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto;display:flex;flex-direction:column;gap:2px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);font-size:13px}
.doctoc strong{margin-bottom:6px}
.doctoc a{color:var(--grey);text-decoration:none;padding:3px 6px;border-radius:6px;line-height:1.35}
.doctoc a:hover{background:var(--soft);color:var(--blue-700)}
.doctoc a.lv3{padding-left:18px;font-size:12.5px}
.docbody{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 32px;line-height:1.65;font-size:15px;min-width:0}
.docbody h1{font-size:26px;margin:0 0 8px}
.docbody h2{font-size:21px;margin:30px 0 10px;padding-top:10px;border-top:1px solid var(--line);scroll-margin-top:96px}
.docbody h3{font-size:17px;margin:22px 0 8px;scroll-margin-top:96px}
.docbody h4{font-size:15px;margin:18px 0 6px}
.docbody p{margin:0 0 12px}
.docbody ul,.docbody ol{margin:0 0 14px;padding-left:24px}
.docbody li{margin:3px 0}
.docbody code{background:var(--soft);border:1px solid var(--line);border-radius:5px;padding:1px 5px;font-size:13px;word-break:break-word}
.docbody .docpre{margin:0 0 14px;padding:12px 14px;background:var(--soft);border:1px solid var(--line);border-radius:8px;overflow:auto;font-size:12.5px;line-height:1.5}
.docbody .docpre code{background:none;border:0;padding:0;font-size:inherit;word-break:normal}
.docbody .tablewrap{margin:0 0 16px}
.docbody table.data{font-size:13.5px}
.docbody table.data td,.docbody table.data th{vertical-align:top}
@media (max-width:900px){.docs-grid{grid-template-columns:minmax(0,1fr)}.doctoc{position:static;max-height:none}.docbody{padding:18px}}
@media print{
  .docs-grid{display:block}
  .docbody{border:0;padding:0;font-size:12px;box-shadow:none}
  .docbody h2{break-after:avoid}
  .docbody .tablewrap{overflow:visible}
  .docbody table.data{font-size:11px}
  .docbody tr,.docbody .docpre{break-inside:avoid}
}

/* Landing: the signed-out front page (v0.21.1). Deep blue stage, one white card, the logo large. */
body.landing{background:#0d1a3a;background:linear-gradient(145deg,#0b1631 0%,#112044 40%,#1D3B85 100%);position:relative;overflow-x:hidden}
body.landing::before,body.landing::after{content:"";position:fixed;border-radius:50%;pointer-events:none}
body.landing::before{width:900px;height:900px;right:-300px;top:-380px;background:radial-gradient(circle at 40% 40%,rgba(119,172,233,.30),rgba(119,172,233,0) 68%)}
body.landing::after{width:760px;height:760px;left:-300px;bottom:-380px;background:radial-gradient(circle at 60% 60%,rgba(243,145,74,.20),rgba(243,145,74,0) 66%)}
.landing-main{position:relative;z-index:1;flex:1;display:grid;place-items:center;padding:48px 20px}
.login-card{position:relative;width:100%;max-width:480px;background:var(--paper);border-radius:22px;padding:44px 44px 30px;text-align:center;
  box-shadow:0 36px 90px rgba(3,9,26,.55),0 0 0 1px rgba(255,255,255,.08);overflow:hidden}
.login-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--blue-500),var(--blue-300) 55%,var(--orange))}
.login-logo{display:block;width:240px;max-width:72%;height:auto;margin:6px auto 4px}
.login-univ{margin:0 0 18px;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}
.login-card h1{font-size:28px;line-height:1.2;margin:0 0 10px}
.login-lead{font-size:15.5px;color:#41495c;margin:0 auto 26px;max-width:36ch}
.btn-signin{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:15px 20px;font-size:16.5px;font-weight:600;border-radius:12px;
  background:linear-gradient(180deg,#2475cb,var(--blue-500));border-color:var(--blue-500);box-shadow:0 8px 20px rgba(26,100,183,.35);transition:transform .15s ease,box-shadow .15s ease}
.btn-signin:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(26,100,183,.42)}
.btn-signin:focus-visible{outline:3px solid var(--blue-300);outline-offset:3px}
.login-secure{margin:18px 0 0;font-size:13px;color:var(--grey)}
.login-cookie{margin:22px -44px 0;padding:16px 44px 0;border-top:1px solid var(--line);font-size:12.5px;color:var(--grey)}
body.landing .foot{position:relative;z-index:1;background:transparent;border-top:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.72)}
body.landing .foot a{color:#fff}
.foot .ver{font-variant-numeric:tabular-nums}
@media (max-width:520px){.login-card{padding:34px 24px 24px;border-radius:18px}.login-cookie{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}.login-card h1{font-size:24px}}
@media (prefers-reduced-motion:reduce){.btn-signin{transition:none}.btn-signin:hover{transform:none}}
.login-cookie a,.foot a{white-space:nowrap}
.login-lead,.login-card h1{text-wrap:balance}

/* Attendance Notification: state tags (one color per meaning) */
/* Attendance states: color only where it means something (v0.36.1) */
.pill.att-future,.pill.att-waiting,.pill.att-tested,.pill.att-untracked,.pill.att-all{background:#EDF0F5;color:#475467}
.pill.att-notified{background:#DCEAFB;color:#1D3B85}
.pill.att-complete{background:#DDF3E7;color:#0E6B45}
.pill.att-due{background:#FFE3C2;color:#8A4B00}
.pill.att-human{background:#FDE0DD;color:#A12218}
a.pill{text-decoration:none}
a.pill:hover{filter:brightness(.96)}
.pill.on{box-shadow:0 0 0 2px var(--blue-700)}
a.pill[class*="att-"]{text-decoration:none}
a.pill[class*="att-"]:hover{filter:brightness(.95)}

/* Top bar links (module tiles with placement=topbar) */
.topnav{display:flex;gap:6px;margin-right:auto;margin-left:8px}
.topnav:empty{display:none}
.topnav a{font-size:14px;font-weight:500;color:var(--blue-700);text-decoration:none;padding:6px 14px;border-radius:999px}
.topnav a:hover{background:var(--blue-100)}

/* Business Intelligence dashboards (assets/js/bi.js). Official palette: see :root. */
.bi-dash{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:opacity .15s}
.bi-dash.bi-loading{opacity:.65}
.bi-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--blue-500);color:#fff;padding:14px 20px}
.bi-head b{font-weight:600;font-size:17px;letter-spacing:-.005em}
.bi-head span{font-size:14px;opacity:.92}
.bi-filters{padding:14px 20px 4px}
.bi-dds{display:flex;flex-wrap:wrap;gap:8px}
.bi-dd{position:relative}
.bi-dd>summary{list-style:none;cursor:pointer;font-size:13px;font-weight:500;color:var(--grey);border:1px solid var(--line);border-radius:999px;padding:6px 14px;background:#fff;user-select:none}
.bi-dd>summary::-webkit-details-marker{display:none}
.bi-dd>summary::after{content:"\25BE";margin-left:6px;font-size:11px}
.bi-dd>summary:hover{border-color:var(--blue-300)}
.bi-dd.on>summary{color:var(--blue-700);background:#F5F9FF;border-color:var(--blue-300)}
.bi-badge:not(:empty){display:inline-block;margin-left:6px;min-width:18px;padding:0 6px;border-radius:999px;background:var(--blue-500);color:#fff;font-size:11px;text-align:center}
.bi-panel{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:340px;max-width:84vw;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(17,32,68,.14);padding:10px}
.bi-search{width:100%;font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;margin-bottom:8px}
.bi-opts{max-height:260px;overflow:auto}
.bi-opt{display:flex;align-items:center;gap:8px;font-size:13px;padding:5px 4px;border-radius:6px;cursor:pointer}
.bi-opt:hover{background:var(--soft)}
.bi-opt span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bi-opt em{font-style:normal;color:var(--grey);font-size:12px;font-variant-numeric:tabular-nums}
.bi-none{color:var(--grey);font-size:13px;margin:6px 4px}
.bi-link{font:inherit;font-size:13px;color:var(--blue-500);background:none;border:0;padding:6px 4px;cursor:pointer;text-decoration:underline}
.bi-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:6px;padding:8px 0 4px}
.bi-chips:empty{padding:0}
.bi-chip{font:inherit;font-size:12px;color:var(--blue-700);background:var(--blue-100);border:0;border-radius:999px;padding:4px 10px;cursor:pointer}
.bi-chip:hover{background:var(--blue-300)}
.bi-error{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid var(--orange);background:#FFF7F0;border-radius:8px;padding:8px 12px;font-size:14px;margin-bottom:8px}
.bi-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px 20px}
.bi-kpi{background:var(--soft);border-radius:10px;padding:12px 14px}
.bi-kpi small{display:block;font-size:12px;color:var(--grey)}
.bi-kpi b{display:block;font-size:26px;font-weight:600;color:var(--blue-900);font-variant-numeric:tabular-nums;line-height:1.25}
.bi-kpi i{font-style:normal;font-size:12px;color:var(--grey)}
.bi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:4px 20px 16px}
.bi-card{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fff;min-width:0}
.bi-card.wide{grid-column:1/-1}
.bi-card h3{font-size:14px;font-weight:600;color:var(--blue-900);margin:0 0 10px}
.bi-chart{position:relative;height:260px}
.bi-card.wide .bi-chart{height:230px}
.bi-note{color:var(--grey);font-size:13px;margin:8px 0 0}
.bi-legend{display:grid;gap:2px;margin-top:10px}
.bi-lg{display:flex;align-items:center;gap:8px;font:inherit;font-size:13px;background:none;border:0;padding:3px 4px;border-radius:6px;text-align:left;color:inherit}
button.bi-lg{cursor:pointer}
button.bi-lg:hover{background:var(--soft)}
.bi-sw{width:10px;height:10px;border-radius:3px;flex:none}
.bi-lgl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bi-lg em{font-style:normal;color:var(--grey);font-size:12px;font-variant-numeric:tabular-nums}
.bi-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 20px 14px;font-size:12px;color:var(--grey);border-top:1px solid var(--line)}
@media (max-width:760px){.bi-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bi-grid{grid-template-columns:1fr}}
@media print{.bi-filters .bi-dds{display:none}.bi-dash{border:0}.bi-card{break-inside:avoid}}

.bi-export{color:#fff;border:1px solid rgba(255,255,255,.7);border-radius:8px;padding:5px 12px;font-size:13px;text-decoration:none;white-space:nowrap}
.bi-export:hover,.bi-export:focus{background:#fff;color:var(--blue-700)}

/* Data Quality (v0.32.0) */
.dq-bar{display:inline-block;width:64px;height:6px;border-radius:3px;background:var(--line);vertical-align:middle;overflow:hidden}
.dq-bar i{display:block;height:100%;background:var(--blue-500)}
.dq-list{margin:6px 0 0;padding-left:18px;font-size:13px}
.dq-mask{white-space:pre}
.dq-table{table-layout:fixed}

/* ---- Module icons (v0.36.0) ---- */
.mbadge{display:inline-grid;place-items:center;flex:none;--bg:#DDEBFF;--fg:#1D5FB8;background:var(--bg);color:var(--fg)}
.mbadge.mb-lg{width:46px;height:46px;border-radius:14px}
.mbadge.mb-md{width:32px;height:32px;border-radius:10px}
.mbadge.mb-sm{width:22px;height:22px;border-radius:7px}
.mb-slate{--bg:#E8ECF4;--fg:#34425F}.mb-violet{--bg:#EEE8FD;--fg:#5B3FD1}.mb-amber{--bg:#FFF0D6;--fg:#9A5B0A}.mb-blue{--bg:#DDEBFF;--fg:#1D5FB8}
.mb-teal{--bg:#D9F4EF;--fg:#0B7A6E}.mb-green{--bg:#E0F4EA;--fg:#0E7A4F}.mb-rose{--bg:#FCE4EE;--fg:#B3235F}
.tile .mbadge{margin-bottom:6px}
.tile:hover .mbadge{background:var(--fg);color:#fff}
.topnav a{display:inline-flex;align-items:center;gap:7px}

/* ---- Access screen (v0.36.0) ---- */
.avatar{width:54px;height:54px;border-radius:50%;display:inline-grid;place-items:center;flex:none;font-weight:600;font-size:18px;letter-spacing:.02em;background:linear-gradient(135deg,#C0DDFF,#9CC4F5);color:var(--blue-900)}
.avatar.sm{width:38px;height:38px;font-size:14px}
.acc-hero{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.acc-sum{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:14px}
.acc-sum .off{filter:grayscale(1);opacity:.3}
.acc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;margin-top:16px}
.acc-card{position:relative;display:flex;flex-direction:column;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s}
.acc-card:has(input:checked:not([data-orig])){border-color:var(--orange);box-shadow:0 0 0 3px rgba(243,145,74,.18)}
.acc-card:has(input:checked:not([data-orig]))::after{content:"changed";position:absolute;top:14px;right:14px;font-size:11px;font-weight:600;color:#9A4A12;background:#FFE6D3;border-radius:999px;padding:1px 9px}
.acc-head{display:flex;gap:12px;align-items:center}
.acc-head strong{font-size:16px;color:var(--blue-900)}
.seg{display:flex;gap:2px;background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:3px}
.seg label{position:relative;flex:1;text-align:center;cursor:pointer}
.seg input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.seg span{display:block;padding:7px 4px;border-radius:8px;font-size:13px;font-weight:500;color:var(--grey);transition:background .15s,color .15s}
.seg label:hover span{color:var(--blue-900)}
.seg input:checked + span{background:#fff;color:var(--blue-700);font-weight:600;box-shadow:var(--shadow-sm)}
.seg input[value="0"]:checked + span{color:var(--off)}
.seg input[value="1"]:checked + span{background:#D3E4FC;color:#16377A}
.seg input[value="2"]:checked + span{background:#5C9AEC;color:#fff}
.seg input[value="3"]:checked + span{background:#1550B8;color:#fff}
.seg-yn input[value="yes"]:checked + span{background:#1F6FDB;color:#fff}
.seg-yn input[value="no"]:checked + span{background:#E3E8F0;color:#475467}
.seg-yn{width:210px}
.seg input:focus-visible + span{outline:2px solid var(--blue-500);outline-offset:1px}
.seg input:disabled{cursor:not-allowed}
.seg input:disabled + span{opacity:.6}
.acc-desc{margin:0;font-size:13px;line-height:1.5;color:var(--grey);min-height:4.4em}
.acc-desc>span{display:none}
.acc-card:has(input[value="0"]:checked) .acc-desc .d0,.acc-card:has(input[value="1"]:checked) .acc-desc .d1,.acc-card:has(input[value="2"]:checked) .acc-desc .d2,.acc-card:has(input[value="3"]:checked) .acc-desc .d3{display:inline}
.acc-foot{font-size:12px;border-top:1px solid var(--line);padding-top:10px;margin-top:auto}
.acc-bar{position:sticky;bottom:14px;z-index:5;display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;padding:12px 16px;border-radius:14px;background:var(--blue-900);color:#fff;box-shadow:var(--shadow-md)}
.acc-count{font-weight:600}
.acc-note{font-size:13px;color:#C0DDFF;flex:1;min-width:200px}
.acc-actions{display:flex;gap:8px}
.btn-light{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
.btn-light:hover{background:rgba(255,255,255,.1)}
.btn-light.solid{background:#fff;color:var(--blue-900);border-color:#fff;font-weight:600}
.btn-light.solid:hover{background:var(--blue-100)}
.acc-form.js .acc-bar{display:none}
.acc-form.js.dirty .acc-bar{display:flex}
.acc-tools{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.acc-search-form{display:flex;gap:8px;align-items:center;flex:1;min-width:280px}
.acc-search{position:relative;flex:1;max-width:520px}
.acc-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--grey);pointer-events:none}
.acc-search input{width:100%;padding:10px 14px 10px 40px;border:1px solid var(--line);border-radius:12px;font:inherit;background:#fff}
.acc-search input:focus{outline:2px solid var(--blue-300);border-color:var(--blue-300)}
.acc-legend{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.chip{display:inline-flex;align-items:center;gap:8px;padding:5px 13px 5px 6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);text-decoration:none;font-size:13px;font-weight:500}
.chip:first-child{padding-left:13px}
.chip:hover{border-color:var(--blue-300)}
.chip .n{font-size:12px;color:var(--grey)}
.chip.on{background:var(--blue-900);border-color:var(--blue-900);color:#fff}
.chip.on .n{color:#C0DDFF}
.acc-levels{margin:0 0 8px 18px;font-size:13px;color:var(--grey)}
.people{display:flex;flex-direction:column}
.prow{display:grid;grid-template-columns:minmax(230px,1.1fr) 2fr 130px auto;gap:16px;align-items:center;padding:14px 4px;border-top:1px solid var(--line)}
.people>.prow:first-child{border-top:0}
.prow.dim{opacity:.6}
.pwho{display:flex;gap:12px;align-items:center;min-width:0}
.pwho .nm{font-weight:600;color:var(--blue-900)}
.pacc{display:flex;flex-wrap:wrap;gap:6px}
.plast{font-size:12px}
.lv{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 11px 2px 3px;font-size:12px;font-weight:600;border:1px solid transparent;white-space:nowrap}
.acc-legend .lv{padding:2px 11px}
.lv.l1{background:#D3E4FC;color:#16377A}
.lv.l2{background:#5C9AEC;color:#fff}
.lv.l3{background:#1550B8;color:#fff}
.lv.l2 .mbadge,.lv.l3 .mbadge{background:rgba(255,255,255,.18);color:#fff}
.srow{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 4px;border-top:1px solid var(--line)}
.people>.srow:first-child{border-top:0}
.srow strong{min-width:170px}
@media (max-width:820px){.prow{grid-template-columns:1fr;gap:8px}.pgo{justify-self:start}}

/* Read-only status in the Students list (v0.36.2) */
.seg-ro{display:inline-flex;padding:3px}
.seg-ro .ro{padding:8px 18px;border-radius:9px;font-weight:600;font-size:.9rem}
.seg-ro .ro.on{background:#1F6FDB;color:#fff}
.seg-ro .ro.off{background:#E3E8F0;color:#475467}

/* Modules without access look switched off, but stay clickable (v0.36.3) */
.acc-card:has(input[value="0"]:checked){background:#F3F5F9;border-color:#E3E8F0}
.acc-card:has(input[value="0"]:checked) .mbadge{filter:grayscale(1);opacity:.5}
.acc-card:has(input[value="0"]:checked) strong,.acc-card:has(input[value="0"]:checked) .acc-name{color:#8A94A6}

/* Staff list note and update button (v0.36.5) */
.acc-staff{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:10px 0 0}
.acc-staff span{flex:1 1 380px}
.acc-staff .btn{display:inline-flex;gap:8px;align-items:center}
.home-group{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--grey);margin:28px 0 -8px}
.home-group:first-of-type{margin-top:20px}

/* A disabled button must look disabled everywhere (v0.38.1). The cart bar has its own, more specific rule above. */
button.btn:disabled{opacity:.5;cursor:not-allowed}

/* v0.39.3: the pink alert at the top of a module (something is off that needs your attention) */
.alertbar{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px;padding:12px 16px;border:1px solid #F5C2DC;border-left:5px solid #DB2777;border-radius:12px;background:linear-gradient(180deg,#FFF5FA,#FFEEF6);box-shadow:var(--shadow-sm,0 1px 2px rgba(17,32,68,.06))}
.alertbar>i{flex:none;width:26px;height:26px;border-radius:50%;background:#DB2777;color:#fff;font-weight:700;font-size:15px;line-height:26px;font-style:normal;text-align:center}
.alertbar strong{display:block;color:#9D174D;font-size:15px}
.alertbar span{display:block;color:#5B1A3A;font-size:14px;margin-top:2px}
.alertbar a{display:inline-block;margin-top:6px;font-size:13.5px;font-weight:600;color:#BE185D}

/* v0.39.7: worker chips on the module cards of the home page (staff only) */
.tile-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:10px}
.wchip{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;letter-spacing:.02em;color:var(--blue-700);background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.wchip i{width:8px;height:8px;border-radius:50%;background:#22C58B}
.wchip.s-processing i{background:#3B82F6}.wchip.s-hold i{background:#F59E0B}.wchip.s-off i{background:#DB2777}.wchip.s-error i{background:#DC2626}
.wchip.s-off{border-color:#F5C2DC;background:#FFF5FA}.wchip.s-hold{border-color:#FADFA8;background:#FFFAEF}.wchip.s-error{border-color:#F5B5B5;background:#FFF3F3}
.wchip.more{color:var(--grey)}

/* v0.41.0: home page polish (health strip, status dot on cards, richer icons, bigger hover) */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.health{display:flex;align-items:center;gap:14px;margin:14px 0 6px;padding:12px 18px;background:linear-gradient(90deg,#F0FAF5,#fff 60%);border:1px solid #CDEBDC;border-radius:14px;box-shadow:var(--shadow-sm)}
.health>div{flex:1;min-width:0}
.health strong{display:block;font-size:15px;color:#065F46}
.health span{display:block;font-size:13px;color:var(--grey);margin-top:1px}
.health a{font-size:13.5px;font-weight:600;color:var(--blue-700);text-decoration:none;white-space:nowrap}
.health a:hover{text-decoration:underline}
.health-dot{width:12px;height:12px;border-radius:50%;background:#22C58B;box-shadow:0 0 0 5px rgba(34,197,139,.18);animation:health-pulse 2.6s ease-in-out infinite;flex:none}
.health.s-hold{background:linear-gradient(90deg,#FFF8E7,#fff 60%);border-color:#F6DFA6}.health.s-hold strong{color:#92400E}.health.s-hold .health-dot{background:#F59E0B;box-shadow:0 0 0 5px rgba(245,158,11,.2)}
.health.s-off{background:linear-gradient(90deg,#FFF1F7,#fff 60%);border-color:#F5C2DC}.health.s-off strong{color:#9D174D}.health.s-off .health-dot{background:#DB2777;box-shadow:0 0 0 5px rgba(219,39,119,.16)}
.health.s-error{background:linear-gradient(90deg,#FEF0F0,#fff 60%);border-color:#F5B5B5}.health.s-error strong{color:#991B1B}.health.s-error .health-dot{background:#DC2626;box-shadow:0 0 0 5px rgba(220,38,38,.16)}
@keyframes health-pulse{50%{box-shadow:0 0 0 8px rgba(34,197,139,0)}}
.tile{position:relative}
.tile-dot{position:absolute;top:18px;right:18px;display:inline-grid;place-items:center;width:20px;height:20px}
.tile-dot i{width:9px;height:9px;border-radius:50%;background:#22C58B;box-shadow:0 0 0 4px rgba(34,197,139,.16)}
.tile-dot.s-processing i{background:#3B82F6;box-shadow:0 0 0 4px rgba(59,130,246,.18)}.tile-dot.s-hold i{background:#F59E0B;box-shadow:0 0 0 4px rgba(245,158,11,.2)}
.tile-dot.s-off i{background:#DB2777;box-shadow:0 0 0 4px rgba(219,39,119,.16)}.tile-dot.s-error i{background:#DC2626;box-shadow:0 0 0 4px rgba(220,38,38,.16)}
.tile .mbadge.mb-lg{width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#fff -60%,var(--bg) 70%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 2px 6px rgba(17,32,68,.08)}
.tile:hover .mbadge.mb-lg{background:linear-gradient(145deg,var(--fg),var(--fg));box-shadow:0 6px 14px rgba(17,32,68,.22)}
.tile:hover{box-shadow:0 14px 30px rgba(17,32,68,.12);transform:translateY(-3px)}
@media (prefers-reduced-motion:reduce){.health-dot{animation:none}.tile:hover{transform:none}}

/* v0.42.0: access matrix (Admin Panel > Access). Rows are people, columns are workers and modules, read only. */
body:has(.acc-matrix) .page.wide{max-width:none}
.mx-scroll{overflow:auto;max-height:72vh;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.mx-table{border-collapse:separate;border-spacing:0;font-size:13px;width:max-content}
.mx-table th,.mx-table td{border-bottom:1px solid #EEF1F6;border-right:1px solid #F1F4F9;padding:0;background:var(--paper)}
.mx-table thead th{position:sticky;background:#F4F8FD;z-index:3;font-weight:650;color:var(--blue-900)}
.mx-groups th{top:0;height:28px;text-align:center;font-size:11px;letter-spacing:.1em;border-bottom:1px solid var(--line)}
.mx-g-workers{background:#EAE4FB!important;color:#4C2FB0}.mx-g-modules{background:#DCEAFB!important;color:#1D4F96}
.mx-names th{top:28px;vertical-align:bottom;border-bottom:2px solid var(--line)}
.mx-who{position:sticky;left:0;z-index:2;min-width:290px;max-width:290px;text-align:left!important;padding:8px 14px!important;font-weight:500}
.mx-last{position:sticky;left:290px;z-index:2;min-width:185px;max-width:185px;padding:8px 12px!important;font-size:12.5px;white-space:nowrap;border-right:2px solid var(--line)!important}
.mx-table thead .mx-corner{z-index:5}
.mx-who .nm{font-weight:650;color:var(--blue-900);text-decoration:none}
a.nm:hover{text-decoration:underline}
.mx-who .muted{display:block;font-size:12px;line-height:1.35}
.mx-h{width:46px;min-width:46px;height:176px}
.mx-h a{display:flex;justify-content:center;align-items:flex-end;height:100%;padding:8px 0;color:var(--blue-900);text-decoration:none}
.mx-h span{writing-mode:vertical-rl;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:.01em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
.mx-h a{align-items:flex-start}
@supports (writing-mode:sideways-lr){.mx-h span{writing-mode:sideways-lr}.mx-h a{align-items:flex-end}}
.mx-h a:hover{background:#E4EEFC}
.mx-c{text-align:center;width:46px;min-width:46px;height:44px}
.mx-table tbody tr:hover th,.mx-table tbody tr:hover td{background:#F7FAFF}
.mx-super th,.mx-super td{background:#F7F5FF}
.mx-table tr.dim .nm{opacity:.55}
.mx{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 5px;border-radius:7px;font-size:12px;font-weight:700;letter-spacing:.02em}
.mx.l1{background:#DDF3E4;color:#146C3B}.mx.l2{background:#FFE9B8;color:#8A5300}.mx.l3{background:#C62F3E;color:#fff}.mx.lS{background:#2B2F8F;color:#fff}
.mx-total{font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;color:var(--blue-900);background:#F4F8FD!important}
.mx-table tfoot th,.mx-table tfoot td{background:#F4F8FD;border-top:2px solid var(--line);height:42px}
.mx-table tfoot .mx-who{z-index:2}
.mx-legend{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:10px;font-size:12.5px}

/* v0.43.0: the screen of one module, and pink rows for inactive people */
.mx-pink th,.mx-pink td{background:#FFF1F7!important}
.mx-pink .nm{color:#9D174D}
.mod-wrap{margin-top:16px}
.mod-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13.5px}
.mod-table th,.mod-table td{padding:10px 14px;border-bottom:1px solid #EEF1F6;background:var(--paper);text-align:left}
.mod-table thead th{background:#F4F8FD;color:var(--blue-900);font-weight:650;position:sticky;top:0;z-index:2;vertical-align:bottom}
.mod-table thead th span{display:block;font-weight:400;font-size:11.5px;color:var(--grey);margin-top:3px;max-width:230px;line-height:1.35}
.mod-lv{text-align:center!important;min-width:150px}
.mod-pick{text-align:center!important}
.mod-pick input{width:19px;height:19px;accent-color:var(--blue-700);cursor:pointer}
.mod-pick input[value="0"]{accent-color:#DB2777}
.mod-who{min-width:280px;font-weight:500}
.mod-who .nm{font-weight:650;color:var(--blue-900);text-decoration:none}
.mod-who .muted{display:block;font-size:12px}
.mod-lastc{white-space:nowrap;min-width:170px}
.mod-table tbody tr:hover th,.mod-table tbody tr:hover td{background:#F7FAFF}
.mod-table tr.is-new th,.mod-table tr.is-new td{background:#F3FAF6}
.mod-table tr.mrow:has(input:checked:not([data-orig])) th,.mod-table tr.mrow:has(input:checked:not([data-orig])) td{background:#FFF8E1!important}
