/* AIU portal styles. Brand colours come from the Portal Appearance setting (see brand.py and core.js). */
:root {
	--white: #fff; --on-red: #fff; --toast-link: #ff9a9d; --toast-err: #7a0010; --bad-tint: #fff5f5;
	--ok: #12805a; --ok-bg: #e3f6ee; --warn: #946000; --warn-bg: #fff2d9; --bad: #c7000f; --bad-bg: #fde8e9;
	--r: 20px; --shadow: 0 1px 1px rgba(19, 26, 51, .04), 0 12px 32px -12px rgba(19, 26, 51, .12); --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) { --on-red: #2a0003; --ok: #52d6a0; --ok-bg: #11342b; --warn: #f1c46c; --warn-bg: #3a2e13; --bad: #ff8f93; --bad-bg: #3d0f16; --shadow: 0 1px 1px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); }
}
:root[data-theme="dark"] { --on-red: #2a0003; --ok: #52d6a0; --ok-bg: #11342b; --warn: #f1c46c; --warn-bg: #3a2e13; --bad: #ff8f93; --bad-bg: #3d0f16; --shadow: 0 1px 1px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); }
html { -webkit-text-size-adjust: 100%; }
/* an element marked hidden stays hidden, whatever display its own class gives it (form rows, buttons) */
[hidden] { display: none !important; }


* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, "Segoe UI", "Nirmala UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
a { color: inherit; }
svg.i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; border-radius: 8px; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fx > * { animation: up .55s var(--ease) both; }
.fx > *:nth-child(2) { animation-delay: .06s; } .fx > *:nth-child(3) { animation-delay: .12s; } .fx > *:nth-child(4) { animation-delay: .18s; } .fx > *:nth-child(5) { animation-delay: .24s; } .fx > *:nth-child(6) { animation-delay: .3s; }

/* ---------- primitives ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--info-bg); color: var(--info); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.gray { background: var(--soft); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 16px; border-radius: 999px; font-weight: 600; transition: .18s var(--ease); }
.btn:hover { border-color: var(--navy-2); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: transparent; color: var(--white); }
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .btn.accent, :root[data-theme="dark"] .bulk .btn.accent { color: var(--brand-deep); }
.btn.accent { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dk)); border-color: transparent; color: var(--white); }
.btn { min-height: 40px; }
.btn.sm { padding: 0 12px; font-size: 13px; min-height: 32px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--navy-2), var(--red)); flex: none; }
:root[data-theme="dark"] .avatar { color: var(--brand-deep); }
.avatar.lg { width: 68px; height: 68px; font-size: 20px; } .avatar.sm { width: 32px; height: 32px; font-size: 12px; } .avatar.xs { width: 26px; height: 26px; font-size: 12px; border: 2px solid var(--card); }
kbd { font: 12px ui-monospace, monospace; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--card); color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--card); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-2), var(--red)); transition: width .8s var(--ease); }
.grade { display: inline-grid; place-items: center; min-width: 34px; height: 30px; border-radius: 9px; font-weight: 800; background: var(--ok-bg); color: var(--ok); padding: 0 6px; }
.grade.b { background: var(--info-bg); color: var(--info); } .grade.f { background: var(--bad-bg); color: var(--bad); }

/* ---------- staff shell ---------- */
.shell { display: grid; grid-template-columns: 76px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0px; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0; border-right: 1px solid var(--line); background: var(--card); }
.rail .logo { width: 46px; height: 46px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; }
.rail .logo img { width: 34px; }
.rail a { width: 68px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s; position: relative; }
.rail a:hover { background: var(--soft); color: var(--ink); }
.rail a.on { background: var(--soft); color: var(--navy); }
:root[data-theme="dark"] .rail a.on { color: var(--white); }
.rail a.on::before { content: ""; position: absolute; left: -4px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--red); }
.rail a .badge { position: absolute; top: 4px; right: 12px; background: var(--red); color: var(--white); font-size: 12px; border-radius: 99px; padding: 0 5px; font-weight: 700; font-style: normal; }
.rail .sp { flex: 1; }
.main { min-width: 0; }
.wrap { max-width: 1680px; margin: 0 auto; padding: 28px 40px 90px; }
.topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 14px; }
.topline .right { display: flex; gap: 10px; align-items: center; }
.hello h1 { font-size: 24px; letter-spacing: -.6px; line-height: 1.15; }
.hello h1 span { color: var(--muted); }
.hello p { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.ask { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 15px 20px; box-shadow: var(--shadow); cursor: text; max-width: 760px; transition: .2s var(--ease); }
.ask:hover { border-color: var(--navy-2); }
.ask svg { color: var(--red); }
.ask span.t { color: var(--muted); font-size: 16px; flex: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chips button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink-2); font-size: 14px; transition: .15s; }
.chips button:hover { background: var(--card); border-color: var(--navy-2); }
.band { position: relative; overflow: hidden; border-radius: var(--r); padding: 20px 24px; margin-bottom: 34px; color: var(--ink); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: color-mix(in srgb, var(--brand) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); border-left: 5px solid var(--brand-red); }
.band .bi { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.band small { color: var(--muted); letter-spacing: 0; font-size: 12px; font-weight: 700; }
.band b { display: block; font-size: 20px; letter-spacing: -.4px; margin: 2px 0 10px; color: var(--brand); }
:root[data-theme="dark"] .band b { color: var(--ink); }
.band .bar { background: color-mix(in srgb, var(--brand) 14%, transparent); max-width: 420px; } .band .bar > i { background: var(--brand); }
.band .av { display: flex; position: relative; z-index: 1; } .band .av .avatar + .avatar { margin-left: -8px; border: 2px solid var(--card); }
.band .chip { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); position: relative; z-index: 1; }
.band .wm { position: absolute; right: 18px; top: -10px; width: 120px; opacity: .07; pointer-events: none; }
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: start; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-h h2 { font-size: 20px; letter-spacing: -.3px; }
.task { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px; display: grid; grid-template-columns: auto 1fr; gap: 16px; box-shadow: var(--shadow); transition: .35s var(--ease); overflow: hidden; max-height: 280px; }
.task .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); }
.task.warn .ic { background: var(--warn-bg); color: var(--warn); } .task.bad .ic { background: var(--bad-bg); color: var(--bad); } .task.ok .ic { background: var(--ok-bg); color: var(--ok); }
.task h3 { font-size: 16px; letter-spacing: -.2px; }
.task .why { color: var(--ink-2); margin-top: 2px; }
.task .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.task.done { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-width: 0; transform: scale(.98); }

/* a task is one row: what it is on the left, the button at the right */
.task { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 14px 18px; }
.task .ic { width: 38px; height: 38px; border-radius: 12px; }
.task .acts { margin-top: 0; flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 760px) { .task { grid-template-columns: auto minmax(0, 1fr); } .task .acts { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; } }
.agcard ~ .sec-h { margin-top: 22px; }
a.who { font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--muted); cursor: pointer; }
a.who:hover { color: var(--red); border-color: var(--red); }
.pulse { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 22px; box-shadow: var(--shadow); }
.pulse .p { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: end; }
.pulse .p:last-child { border-bottom: 0; }
.pulse .big { font-size: 32px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.pulse .lbl { color: var(--muted); font-size: 13px; grid-column: 1; }
.pulse svg.spark { grid-row: 1 / span 2; grid-column: 2; width: 92px; height: 34px; }
.today { margin-top: 30px; }
.today .ev { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.today .ev b.t { color: var(--muted); font-weight: 600; font-size: 13px; padding-top: 2px; }

/* ---------- palette / sheet / toast ---------- */
#palette { position: fixed; inset: 0; z-index: 110; display: none; background: rgba(0,10,40,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 9vh 16px 16px; }
#palette.on { display: block; }
.pal { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.pal .inp { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pal .inp svg { color: var(--red); }
.pal input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 20px; }
.pal .body { max-height: 56vh; overflow-y: auto; padding: 8px; }
.pal .opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; cursor: pointer; }
.pal .opt:hover, .pal .opt.hl { background: var(--soft); }
.pal .opt .oi { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--navy-2); }
.pal .opt.hl .oi, .pal .opt:hover .oi { background: var(--card); }
.pal .grp { font-size: 12px; letter-spacing: 0; color: var(--muted); padding: 12px 14px 4px; }
.pal .ans { padding: 14px 16px 18px; } .pal .ans h3 { font-size: 20px; margin-bottom: 4px; }
.pal .res { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pal .foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: var(--soft); }
#scrim { position: fixed; inset: 0; background: rgba(0,10,40,.35); z-index: 94; opacity: 0; pointer-events: none; transition: .25s; }
#scrim.on { opacity: 1; pointer-events: auto; }
#sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--card); z-index: 95; transform: translateX(105%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s; box-shadow: -30px 0 80px -30px rgba(0,0,0,.35); overflow-y: auto; border-left: 1px solid var(--line); }
#sheet.on { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s; }
.sh-head { padding: 28px 28px 20px; position: relative; background: linear-gradient(180deg, var(--soft), transparent); }
.sh-head .x { position: absolute; right: 18px; top: 18px; }
.sh-head h2 { font-size: 24px; letter-spacing: -.6px; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 28px; }
.glance > div { background: var(--soft); border-radius: 16px; padding: 14px 16px; }
.glance b { display: block; font-size: 20px; letter-spacing: -.6px; } .glance span { color: var(--muted); font-size: 12px; }
.sh-sec { padding: 24px 28px 0; }
.sh-sec h3 { font-size: 13px; letter-spacing: 0; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.story { position: relative; margin-left: 6px; }
.story .it { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.story .it::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.story .it:last-child::before { display: none; }
.story .si { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy-2); }
.story .si.ok { background: var(--ok-bg); color: var(--ok); } .story .si.warn { background: var(--warn-bg); color: var(--warn); } .story .si.bad { background: var(--bad-bg); color: var(--bad); }
.subj { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.sh-foot { padding: 24px 28px 32px; display: flex; gap: 10px; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--brand); color: var(--white); padding: 12px 18px; border-radius: 16px; display: flex; gap: 14px; align-items: center; z-index: 130; opacity: 0; transition: .3s var(--ease); pointer-events: none; box-shadow: 0 20px 50px -10px rgba(0,0,0,.5); max-width: 92vw; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: transparent; border: 0; color: var(--toast-link); font-weight: 700; }

/* ---------- admissions ---------- */
.seg2 { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg2 button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg2 button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--navy-2); }
.split { display: grid; grid-template-columns: clamp(360px, 32%, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list .li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .15s; }
.list .li:last-child { border-bottom: 0; } .list .li:hover { background: var(--soft); }
.list .li.on { background: var(--soft); box-shadow: inset 4px 0 0 var(--red); }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; }
.stepper { display: flex; gap: 6px; margin: 22px 0 6px; }
.stepper .s { flex: 1; text-align: center; } .stepper .s i { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.stepper .s.d i { background: var(--ok); } .stepper .s.c i { background: linear-gradient(90deg, var(--navy-2), var(--red)); }
.stepper .s span { font-size: 12px; color: var(--muted); } .stepper .s.c span { color: var(--ink); font-weight: 700; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.doc { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; transition: .2s; }
.doc.v { background: var(--ok-bg); border-color: transparent; }
.doc .thumb { width: 40px; height: 52px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; color: var(--muted); flex: none; }
.doc.v .thumb { background: var(--card); color: var(--ok); }

/* a small menu of the less common things to do (details/summary: opens and closes by itself) */
.more { position: relative; flex: none; }
.more > summary { list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.more-list a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.more-list a:hover, .more-list a:focus-visible { background: var(--soft); }
.rhead .more-list { z-index: 45; }   /* above the sticky tab bar (30): its blurred strip was painted over the menu and hid an entry */
.u-margin-top-2px { margin-top: 2px; }
.facts { display: flex; gap: 6px 8px; flex-wrap: wrap; margin-top: 8px; }
.facts:empty { display: none; }
@media (max-width: 760px) { .more > summary { min-height: 44px; display: inline-flex; align-items: center; } .more-list a { padding: 12px; } }
.decide { display: flex; gap: 10px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tbl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tbl .tr { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1.1fr) 172px 112px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.tbl .tr:last-child { border-bottom: 0; }
.tbl .th { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 700; background: var(--soft); }
.tbl .tr:not(.th):hover { background: var(--soft); }
.tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.bulk { position: sticky; top: calc(0px + 12px); z-index: 5; display: flex; align-items: center; gap: 10px; background: var(--brand); color: var(--white); padding: 10px 14px; border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); animation: up .3s var(--ease); flex-wrap: wrap; }
.bulk .btn { color: var(--white); border-color: rgba(255,255,255,.25); background: transparent; }
.bulk .btn.accent { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dk)); border-color: transparent; }
.sl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.sl .li { display: grid; grid-template-columns: 1.4fr 1.2fr auto auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sl .li:last-child { border-bottom: 0; } .sl .li:hover { background: var(--soft); }

/* ---------- faculty ---------- */
.att { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.att .ar { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.att .ar:last-child { border-bottom: 0; }
.tog { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.tog button { border: 0; background: transparent; padding: 0 14px; min-width: 54px; height: 36px; white-space: nowrap; border-radius: 999px; font-weight: 700; color: var(--muted); }
.tog button.on.P { background: var(--ok-bg); color: var(--ok); } .tog button.on.A { background: var(--bad-bg); color: var(--bad); } .tog button.on.L { background: var(--warn-bg); color: var(--warn); }
.sticky-foot { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -16px rgba(19,26,51,.3); border-radius: 20px; padding: 12px 16px; margin-top: 16px; flex-wrap: wrap; }
.mk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; }
.mk .mr { display: grid; grid-template-columns: 1.5fr 110px 110px 80px 70px; gap: 14px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); min-width: 560px; }
.mk .mr.th { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 700; background: var(--soft); }
.mk input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-align: right; }
.mk input:focus { outline: 2px solid var(--navy-2); }

/* ---------- insights ---------- */
.ig { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 18px; }
.ig .k { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.ig .k .big { font-size: 32px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; margin-top: 6px; }
.g2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }
.g2 { align-items: start; }
.capr b.over { color: var(--bad); }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cardx { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.cardx h3 { font-size: 16px; margin-bottom: 14px; }
.capr { display: grid; grid-template-columns: 1.2fr 2fr 56px; gap: 12px; align-items: center; margin: 11px 0; font-size: 13px; }
.donut { width: 150px; height: 150px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; background: conic-gradient(var(--navy-2) 0 74%, var(--warn) 74% 97%, var(--bad) 97% 100%); }
.donut > div { width: 108px; height: 108px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 20px; line-height: 1.1; }
.donut small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.leg { display: grid; gap: 6px; font-size: 13px; } .leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.heat { display: grid; grid-template-columns: 110px repeat(5, 1fr); gap: 4px; font-size: 12px; align-items: center; }
.heat .c { height: 26px; border-radius: 7px; }

/* ---------- full student record ---------- */
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { cursor: pointer; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.rhead { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 24px; box-shadow: var(--shadow); display: flex; gap: 22px; align-items: center; flex-wrap: wrap; position: relative; }
.rhead::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--navy-2), var(--red)); }
.rhead h1 { font-size: 24px; letter-spacing: -.5px; line-height: 1.15; }
.rfacts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; }
.rfacts b { display: block; font-size: 14px; }
.rfacts span { color: var(--muted); font-size: 12px; }
.rhead > .grow { flex: 1 1 320px; }
.ract { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; flex: 0 1 auto; }

.rhead { align-items: flex-start; }
.rmeta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; }
.rfacts { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.ract { align-self: flex-start; margin-top: 2px; }
.secnav { position: sticky; top: 0px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 10px 0; margin: 18px 0 22px; border-bottom: 1px solid var(--line); }
.secnav button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.secnav button:hover { color: var(--ink); }
.secnav button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.rgrid { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.raside { position: sticky; top: calc(0px + 74px); display: grid; gap: 14px; }
.rsec { scroll-margin-top: calc(0px + 74px); margin-bottom: 40px; }
.rsec > h2 { font-size: 20px; letter-spacing: -.4px; margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rsec > h2 .btn { font-weight: 600; }
.alert { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); margin-bottom: 8px; }
.alert svg { color: var(--warn); }
.alert.bad { background: var(--bad-bg); } .alert.bad svg { color: var(--bad); }
.alert.ok { background: var(--ok-bg); } .alert.ok svg { color: var(--ok); }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.rings .ring { margin: 4px auto 8px; }
.subt { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.subt .sr { display: grid; grid-template-columns: 1.7fr 1.1fr 84px 70px 74px; gap: 12px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); min-width: 640px; }
.subt .sr:first-child { border-top: 0; }
.subt .sr.th { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 700; background: var(--soft); }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal .dh { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.cal .d { height: 46px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; line-height: 1.2; font-weight: 700; }
.cal .d i { font-style: normal; font-weight: 500; opacity: .7; font-size: 12px; }
.cal .d.P { background: var(--ok-bg); color: var(--ok); } .cal .d.A { background: var(--bad-bg); color: var(--bad); } .cal .d.L { background: var(--warn-bg); color: var(--warn); } .cal .d.H { background: var(--soft); color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.pay { display: grid; grid-template-columns: 1.3fr 1fr auto auto; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); }
.pay:first-child { border-top: 0; }
.comp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.comp textarea { width: 100%; min-height: 84px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 12px 14px; resize: vertical; margin: 10px 0; }
.comp select { border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 8px 14px; }
.msg { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line); align-items: center; }
.msg:first-child { border-top: 0; }
.msg .mi { width: 38px; height: 38px; border-radius: 12px; background: var(--info-bg); color: var(--info); display: grid; place-items: center; }
.docg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { padding: 14px 0; border-top: 1px solid var(--line); }
.note:first-of-type { border-top: 0; }
.lockd { display: flex; gap: 12px; align-items: center; padding: 22px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); background: var(--soft); }
.kvl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.kvl dt { color: var(--muted); } .kvl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; } .kvl dd .chip { white-space: normal; max-width: 100%; }
/* alignment on the student record: step marks of one width, labels above values in the narrow side cards, no long chips pushing a line */
.stp { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); }
.stp.ok { background: var(--ok-bg); color: var(--ok); }
.stp.bad { background: var(--bad-bg); color: var(--bad); }
.stpr { padding: 7px 0; border-top: 1px solid var(--line); gap: 10px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.raside .kvl { grid-template-columns: minmax(0, 1fr); gap: 0; }
.raside .kvl dt { font-size: 12px; margin-top: 10px; }
.raside .kvl dt:first-child { margin-top: 0; }
.raside .kvl dd { margin: 1px 0 0; }
.kvact { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
/* a table inside a card is not boxed again: it runs edge to edge under the card's heading (no box in a box, no inset edge) */
.cardx > .dt { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 12px -16px -16px; }
.gc a, .dr > span a { display: inline-block; padding: 3px 0; }
.mini-id { border-radius: 18px; background: linear-gradient(150deg, var(--brand), var(--navy-2) 60%, var(--brand-red) 140%); color: var(--white); padding: 16px; }
@media (max-width: 1100px) { .rgrid { grid-template-columns: minmax(0, 1fr); } .raside { position: static; order: -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .raside { grid-template-columns: 1fr; } .docg { grid-template-columns: 1fr; } .pay { grid-template-columns: 1fr auto; } .pay .hide-s { display: none; } .rhead h1 { font-size: 24px; } .ract { margin-left: 0; } .rings { gap: 4px; } }

/* ---------- phone ---------- */
.stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; padding: 36px 24px 60px; min-height: 100vh; max-width: 1280px; margin: 0 auto; }
.stage .side h2 { font-size: 32px; letter-spacing: -.8px; margin-bottom: 14px; }
.stage .side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.stage .side li { display: flex; gap: 12px; color: var(--ink-2); }
.stage .side li svg { color: var(--red); margin-top: 3px; }
.phone { width: 392px; height: 810px; border-radius: 54px; padding: 12px; background: var(--brand-deep); box-shadow: 0 50px 90px -30px color-mix(in srgb, var(--brand) 50%, transparent), inset 0 0 0 2px var(--brand-2); position: relative; }
.phone .notch { position: absolute; top: 20px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%); background: var(--brand-deep); border-radius: 20px; z-index: 5; }
.screen { width: 100%; height: 100%; border-radius: 44px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.screen .scroll { flex: 1; overflow-y: auto; padding: 56px 18px 18px; }
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 8px 8px 20px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar button { background: transparent; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px 0; border-radius: 14px; }
.tabbar button.on { color: var(--navy); } :root[data-theme="dark"] .tabbar button.on { color: var(--white); }
.tabbar button.on svg { color: var(--red); }
.langs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 2px; margin-bottom: 10px; }
.langs button { border: 0; background: transparent; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.langs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.s-hero { background: color-mix(in srgb, var(--brand) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); border-left: 5px solid var(--brand); color: var(--ink); border-radius: 26px; padding: 20px; }
.s-hero small { color: var(--muted); letter-spacing: 0; font-size: 12px; font-weight: 700; }
.s-hero h2 { font-size: 24px; letter-spacing: -.5px; margin: 4px 0 2px; }
.s-hero .count { font-size: 32px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; margin-top: 12px; }
.s-hero .btn { margin-top: 14px; background: var(--brand); color: var(--white); border-color: transparent; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.quick button { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.quick button svg { color: var(--navy-2); }
.sc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 12px; position: relative; }
.sc h3 { font-size: 14px; margin-bottom: 8px; }
/* a part of a student page folded behind one line */
.sfold { background: var(--card); border: 1px solid var(--line); border-radius: 22px; margin-bottom: 12px; }
.sfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 14px; }
.sfold > summary::-webkit-details-marker { display: none; }
.sfold > summary > span:first-child { margin-right: auto; }
.sfold > summary::after { content: "\203A"; color: var(--muted); font-size: 20px; line-height: 1; transform: rotate(90deg); transition: transform .15s; }
.sfold[open] > summary::after { transform: rotate(-90deg); }
.sfold-in { padding: 0 16px 14px; }
.hi { font-size: 24px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 4px; }
.tl2 .e { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.tl2 .e:first-child { border-top: 0; }
.ring { --p: 50; width: 120px; height: 120px; border-radius: 50%; margin: 6px auto 12px; background: conic-gradient(var(--navy-2) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; }
.ring > div { width: 94px; height: 94px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 20px; line-height: 1.1; align-content: center; }
.ring small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.prog { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.prog .ring { width: 84px; height: 84px; margin: 0; } .prog .ring > div { width: 64px; height: 64px; font-size: 14px; }
.idc { border-radius: 24px; background: linear-gradient(150deg, var(--brand), var(--navy-2)); color: var(--white); padding: 20px; position: relative; overflow: hidden; }
.idc::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.08); }
.qr { width: 132px; height: 132px; background: var(--white); border-radius: 14px; padding: 10px; margin: 14px auto 4px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; }
.qr i { background: var(--brand); border-radius: 1px; } .qr i.o { background: transparent; }
.chat .m { max-width: 86%; padding: 11px 14px; border-radius: 18px; margin-bottom: 10px; }
.chat .m.u { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); margin-left: auto; border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .chat .m.u { color: var(--brand-deep); }
.chat .m.a { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.sheetm { position: absolute; inset: 0; background: rgba(0,10,40,.4); display: none; align-items: flex-end; z-index: 6; }
.sheetm.on { display: flex; }
.sheetm .in { background: var(--card); width: 100%; border-radius: 28px 28px 0 0; padding: 24px 22px 34px; text-align: center; animation: pop .3s var(--ease); }
.rec { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rec .pl { width: 38px; height: 38px; border-radius: 12px; background: var(--info-bg); color: var(--info); display: grid; place-items: center; }

@media (max-width: 1100px) {
	.cols, .split, .g2, .g3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.g2, .g3 { gap: 16px; }
	.ig { grid-template-columns: 1fr 1fr; }
	.stage { grid-template-columns: 1fr; justify-items: center; }
	.stage .side { display: none; }
	.pers { grid-template-columns: repeat(2, 1fr); }
	.how { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.shell { grid-template-columns: 1fr; }
	.rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; padding: 6px 4px 10px; border-right: 0; border-top: 1px solid var(--line); z-index: 70; }
	.rail .logo, .rail .sp { display: none; }
	.rail a { width: auto; flex: 1; padding: 6px 0; } .rail a.on::before { display: none; }
	.wrap { padding: 22px 16px 120px; }
	.hello h1 { font-size: 32px; } .cover h1 { font-size: 32px; letter-spacing: -1.2px; } .ap h1 { font-size: 32px; }
	.docs, .pers { grid-template-columns: 1fr; }
	.sl .li { grid-template-columns: 1fr auto; } .sl .li .hide-s { display: none; }
	.tbl .tr { grid-template-columns: 30px 1fr 96px; } .tbl .tr .hide-s { display: none; }
	.glance { gap: 6px; padding: 0 18px; }
	.sh-head, .sh-sec, .sh-foot { padding-left: 18px; padding-right: 18px; }
	.phone { width: 100%; max-width: 392px; height: 760px; }
	.ig { grid-template-columns: 1fr; }
	#tour { right: 12px; left: 12px; bottom: 76px; width: auto; }
	
}

/* ---------- loading, fields and small controls ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; }
.boot img { height: 76px; background: var(--white); padding: 10px 16px; border-radius: 18px; box-shadow: var(--shadow); }
.boot .bar { width: 180px; position: relative; }
.boot .bar i { position: absolute; top: 0; width: 40%; animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { from { left: -40%; } to { left: 100%; } }
.skel { border-radius: 16px; background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin-bottom: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.field-in { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; width: 100%; }
.field-in:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; }
.fl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chipb { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.chipb.sel { background: var(--brand); color: var(--white); border-color: transparent; }
.note-in { width: 100%; min-height: 64px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px 14px; margin-top: 10px; font: inherit; color: var(--ink); }
.subh { font-size: 13px; letter-spacing: 0; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.sl .li.cls { grid-template-columns: 1.6fr 1fr auto auto; }
.btn.busy { opacity: .6; pointer-events: none; }
#toast.err { background: var(--toast-err); }
.cal .d.N { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.docg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logotile { display: inline-flex; background: var(--white); border-radius: 12px; padding: 5px 10px; box-shadow: var(--shadow); }
.logotile img { height: 32px; }

/* ---------- account menu ---------- */
.menu { position: fixed; top: 64px; right: 20px; z-index: 140; width: 270px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.35); padding: 8px; animation: pop .18s var(--ease); }
.menu .mh { padding: 10px 12px 6px; font-size: 12px; color: var(--muted); letter-spacing: 0; font-weight: 700; }
.menu .mh b { text-transform: none; color: var(--ink); font-size: 14px; letter-spacing: 0; }
.menu .mh .xs { text-transform: none; letter-spacing: 0; font-weight: 500; }
.mi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.mi:hover, .mi.on { background: var(--soft); }
.mi span { flex: 1; }
.mi-btn { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
.mt { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 3px; margin: 4px 8px 8px; }
.mt button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 6px; font-weight: 600; color: var(--muted); }
.mt button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- appearance ---------- */
.appr { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.cpick { display: flex; gap: 14px; align-items: center; }
.cpick input[type=color] { width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: 16px; background: none; cursor: pointer; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; cursor: pointer; color: var(--ink); }
.preset.on { border-color: var(--navy-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy-2) 30%, transparent); }
.sw2 { display: flex; }
.sw2 i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.sw2 i + i { margin-left: -7px; border: 2px solid var(--card); width: 26px; height: 26px; margin-top: -2px; }

/* ---------- the student app shell ---------- */
body.student { background: var(--bg); }
.sapp { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
@media (min-width: 640px) { .sapp { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.stop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 8px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.slogo { height: 32px; background: var(--white); border-radius: 10px; padding: 4px 8px; box-shadow: var(--shadow); }
.sscroll { padding: 10px 18px 130px; }
.sapp .tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; }
.sapp .qr { background: var(--white); }
.sapp .qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.sapp .qr { display: block; padding: 8px; }
.sapp .tl2 .e:last-child { padding-bottom: 0; }
.scols { display: block; }
/* a computer screen: side menu and a wider page; a phone keeps the bottom bar */
@media (min-width: 1024px) {
	.sapp { max-width: 1240px; padding: 0 28px; border: 0; display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-areas: "top top" "nav main"; column-gap: 28px; align-content: start; }
	.sapp .stop { grid-area: top; padding: 16px 0 12px; }
	.sapp .tabbar { grid-area: nav; position: sticky; top: 76px; left: auto; bottom: auto; transform: none; width: auto; max-width: none; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; }
	.sapp .tabbar button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 14px; padding: 10px 14px; min-height: 44px; border-radius: 12px; }
	.sapp .tabbar button.on { background: var(--card); box-shadow: var(--shadow); }
	.sapp .sscroll { grid-area: main; padding: 6px 0 56px; max-width: 1000px; }
	.scols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 18px; align-items: start; }
	.sapp .idc { max-width: 460px; margin-left: auto; margin-right: auto; }
	body:has(.sapp) #toast { bottom: 24px; }
}

@media (max-width: 900px) { .appr { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .menu { right: 10px; left: 10px; width: auto; top: 58px; } .presets { grid-template-columns: 1fr; } .docg { grid-template-columns: 1fr; } .sl .li.cls { grid-template-columns: 1fr auto; } }

/* ---------- management pages: tabs, lists, forms ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tabs a { padding: 9px 16px; border-radius: 12px 12px 0 0; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; position: relative; }
.tabs a:hover { color: var(--ink); background: var(--soft); }
.tabs a.on { color: var(--navy); } .tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--red); }
:root[data-theme="dark"] .tabs a.on { color: var(--white); }
.lbar { margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.search-in { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-width: 260px; flex: 0 1 380px; }
.search-in input { border: 0; outline: 0; background: transparent; padding: 10px 0; width: 100%; }
.search-in:focus-within { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.search-in .i { color: var(--muted); }
.dt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; overflow-y: hidden; }
/* the shade at the right edge of a table that goes on past it (calm.js adds hs-more) */
.dt.hs-more, .gscroll.hs-more, .mk.hs-more, .subt.hs-more, .ftabs.hs-more { box-shadow: var(--shadow), inset -30px 0 18px -16px rgba(19, 26, 51, .28); }
.dr { display: grid; gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dr:last-child { border-bottom: 0; }
.dr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr > span.first { font-weight: 600; }
.dr.th { background: var(--soft); font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 700; padding-top: 10px; padding-bottom: 10px; }
.dr[data-act] { cursor: pointer; } .dr[data-act]:hover { background: var(--soft); }
.dr.empty { display: block; padding: 30px 20px; text-align: center; }
#sheet.wide { width: min(780px, 100%); }
.sh-in { padding: 26px 28px 40px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.fld > label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.fld > label i { color: var(--ink-2); font-style: normal; font-weight: 700; }
.fld .hint { font-size: 12px; color: var(--muted); }
.fld .num { text-align: right; }
.field-in:disabled { background: var(--soft); color: var(--ink-2); opacity: 1; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; } .chk input { width: 17px; height: 17px; accent-color: var(--red); }
.ro-val { padding: 10px 0; font-weight: 600; }
.tbl-f .thead { display: flex; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: 0; font-weight: 700; padding: 0 2px; }
.tbl-f .thead span { flex: 1 1 90px; } .tbl-f .thead span:first-child { flex: 2 1 140px; }
.tbl-f .rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.trow { display: flex; gap: 8px; align-items: center; } .trow .tc { min-width: 0; }
.trow .field-in { padding: 8px 10px; }
.icon-btn.x { width: 32px; height: 32px; flex: 0 0 32px; border-color: transparent; background: transparent; color: var(--muted); } .icon-btn.x:hover { color: var(--bad); background: var(--bad-bg); }
.formbar { margin-top: 26px; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--card) 30%); }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } .search-in { flex: 1 1 100%; } .sh-in { padding: 20px 16px 40px; } .tbl-f .thead { display: none; } .trow { flex-wrap: wrap; } .trow .tc { flex: 1 1 100% !important; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; color: var(--muted); } .stat b { font-size: 24px; letter-spacing: -.6px; } .stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.stat.ok b { color: var(--ok); } .stat.bad b { color: var(--bad); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; flex-wrap: wrap; }
h3.sub { font-size: 12px; letter-spacing: 0; color: var(--muted); margin: 22px 0 8px; }
.dr .first small { display: block; font-weight: 400; font-size: 12px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
/* on a phone a list row is a card: the name on its own line, then the other facts as "Heading: value"; the heading row is not drawn */
@media (max-width: 760px) {
	.dr { display: flex !important; flex-wrap: wrap; gap: 2px 14px; padding: 12px 16px; }
	.dr > span.first { flex: 1 1 100%; white-space: normal; }
	.dr > span.hs { display: none; }
	.dr > span:not(.first) { flex: 0 1 auto; max-width: 100%; font-size: 13px; }
	.dr > span[data-l]:not(.first):not(:empty)::before { content: attr(data-l) ': '; color: var(--muted); }
	.dt > .dr.th { display: none !important; }
	.dr.nrow > span[data-l]::before { content: none !important; }
	.dr.nrow > .nname { flex: 1 1 60%; }
	.dr.nrow > .chk { flex: 0 0 auto; }
	.dr.nrow > select.field-in, .dr.nrow > .btn { flex: 1 1 auto; }
	.dr.nrow > input.field-in { flex: 1 1 100%; }
}

.multi { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 4px 0; }

/* ---------- timetable ---------- */
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: start; }
.wday { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.wday.today { border-color: var(--navy-2); box-shadow: 0 0 0 2px var(--info-bg); } .wday.hol { background: var(--warn-bg); }
.wh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.cls-card { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: 12px; background: var(--soft); border-left: 4px solid var(--navy); cursor: pointer; font-size: 13px; }
.cls-card:hover { background: var(--info-bg); } .cls-card .cn { font-weight: 600; }
.lbar select.field-in { width: auto; min-width: 140px; padding: 8px 12px; border-radius: 999px; }
.rail { overflow-y: auto; scrollbar-width: none; } .rail::-webkit-scrollbar { display: none; }

.rail a { flex: 0 0 auto; }


/* the list of reports */
.repfind { margin: 18px 0 6px; max-width: 420px; }
.replist { margin-top: 22px; }
.replist h3.sub { margin-bottom: 8px; }
.repl { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.repr { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.repr:first-child { border-top: 0; }
.repr:hover { background: var(--soft); }
.repr b { color: var(--navy); font-weight: 600; }
.repr[hidden], .replist[hidden] { display: none; }
@media (max-width: 760px) { .repr { grid-template-columns: 1fr; } }
.repgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.repcard { text-decoration: none; color: inherit; display: block; } .repcard:hover { border-color: var(--navy-2); transform: translateY(-2px); } .repcard h3 { margin-bottom: 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } .repcard h3 .info-b { flex: none; margin-left: 0; }
.notice { padding: 12px 0; border-top: 1px solid var(--line); } .notice:first-of-type { border-top: 0; } .notice b { display: block; } .notice p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* lists: page bar and filter bar */
.pgr { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; }
.pgr .btn[disabled] { opacity: .45; pointer-events: none; }
.pgsel { width: auto; min-width: 64px; padding: 5px 10px; border-radius: 999px; display: inline-block; }
.fbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -4px 0 14px; }
.fbar select.field-in, .fbar input.field-in { width: auto; min-width: 140px; max-width: 240px; padding: 8px 12px; border-radius: 999px; }
.fbar .fdate { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 100%; }
.fbar .fdate input.field-in { min-width: 0; }
.dr.th .sortable { cursor: pointer; -webkit-user-select: none; user-select: none; }
.dr.th .sortable:hover { color: var(--ink); }
.dr.tot { font-weight: 700; background: var(--soft); }
.avatar.has-photo { background-size: cover; background-position: center top; color: transparent; }

/* Today: work queues */
.queue { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.queue .qh { display: flex; align-items: center; gap: 14px; }
.queue .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--navy-2); flex: 0 0 auto; }
.queue.bad .ic { background: var(--bad-soft, #fde8e8); color: var(--bad); } .queue.warn .ic { background: var(--warn-soft, #fdf3d8); color: var(--warn); } .queue.ok .ic { background: var(--ok-soft, #e7f6ee); color: var(--ok); }
.queue .qt { flex: 1; min-width: 0; } .queue h3 { font-size: 16px; } .queue .qn { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 13px; vertical-align: 2px; }
.queue .why { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.queue .qis { margin: 12px 0 0 58px; display: grid; gap: 2px; }
.queue .qi { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 10px; color: inherit; text-decoration: none; } .queue .qi:hover { background: var(--soft); }

/* the text editor */
.rte { border: 1px solid var(--line); border-radius: 14px; background: var(--card); position: relative; }
.rte-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 0; flex-wrap: wrap; }
.rte-tabs { display: flex; gap: 4px; }
.rte-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rte-tabs button.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
:root[data-theme="dark"] .rte-tabs button.on { color: var(--ink); }
.rte-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rte-b { border: 0; background: transparent; min-width: 32px; height: 32px; border-radius: 8px; font-size: 13px; color: var(--ink-2); padding: 0 8px; }
.rte-b:hover { background: var(--soft); }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.rte-block { border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); padding: 5px 8px; font-size: 13px; }
.rte-area { padding: 14px 16px; outline: none; line-height: 1.6; overflow: auto; max-height: 420px; }
.rte-area p { margin: 0 0 .7em; } .rte-area ul, .rte-area ol { margin: 0 0 .7em 1.3em; padding: 0; } .rte-area h2 { font-size: 20px; margin: .4em 0; } .rte-area h3 { font-size: 14px; margin: .4em 0; }
.rte-area a, .rte-view a { color: var(--brand-red); }
.rte-src { border: 0; border-radius: 0 0 14px 14px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.rte-plain { border: 0; border-radius: 0 0 14px 14px; margin-top: 4px; }
.rte-view { padding: 14px 16px; background: var(--soft); border-radius: 0 0 14px 14px; line-height: 1.6; }
.rte-view p { margin: 0 0 .7em; }
.rte-warn { margin: 0 12px 10px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.rte-link { display: flex; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: center; }
.rte-link .field-in { padding: 6px 10px; }
.rte-panel { position: absolute; right: 8px; top: 46px; width: min(420px, calc(100% - 16px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 30; padding: 10px; }
.rte-panel[hidden] { display: none; }
.rte-list { max-height: 260px; overflow: auto; margin-top: 8px; display: grid; gap: 2px; }
.rte-item { display: grid; gap: 1px; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; }
.rte-item:hover { background: var(--soft); }
.rte-item b { color: var(--brand-red); font-size: 13px; }
.rte [hidden] { display: none !important; }

/* a small window over the page */
.qmodal { position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, .4); display: grid; place-items: center; padding: 12px; }
.qbox { background: var(--card); color: var(--ink); border-radius: 20px; padding: 24px; width: min(540px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.lstrow { border-bottom: 1px solid var(--line); padding: 6px 2px; display: flex; }


/* one shape for side panels and dialogs (calm.js shells): the heading stays in view with a close mark, the actions are pinned at the foot, Cancel comes before the action */
#sheet .sh-in { min-height: 100%; display: flex; flex-direction: column; }
#sheet .sh-in > * { flex: none; }
.shx-head { position: sticky; top: 0; z-index: 4; margin: -26px -28px 16px; padding: 18px 28px 12px; background: var(--card); border-bottom: 1px solid var(--line); align-items: center; }
.shx-head h2 { margin: 0; }
.shx-foot { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin: auto -28px -40px; padding: 12px 28px; background: var(--card); border-top: 1px solid var(--line); }
.shx-foot .btn:not(.primary):not(.danger) { order: 1; }
.shx-foot .btn.primary { order: 2; }
.shx-foot .btn.danger { order: 0; margin-right: auto; }
.shx-foot .btn.danger.primary { order: 2; margin-right: 0; }
.qbox > .shx-foot { margin: 16px -24px -24px; padding: 12px 24px; }
.qbox > .shx-foot.shx-lite { position: static; border-top: 0; background: transparent; margin: 8px 0 0; padding: 0; }
.qbox > .shx-title { position: sticky; top: -24px; z-index: 4; margin: -24px -24px 16px; padding: 18px 56px 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 16px; }
.shx-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) { .shx-head { margin: -20px -16px 14px; padding: 14px 16px 10px; } .shx-foot { margin: auto -16px -40px; padding: 10px 16px; } }
.qbox.shx-split { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.qbox.shx-split > .shx-title { position: relative; top: auto; margin: 0; flex: none; }
.qbox.shx-split > .shx-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 24px; }
.qbox.shx-split > .shx-foot { position: static; margin: 0 !important; flex: none; }
.shx-foot:not(:has(.btn.primary)) .btn.danger { order: 2; margin-right: 0; }
@media (max-width: 760px) { #sheet .dt .dr:not(.th) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 12px; } #sheet .dt .dr:not(.th) > :first-child { flex: 1 1 100%; min-width: 0; } #sheet .dt .dr:not(.th) > select, #sheet .dt .dr:not(.th) > .combo { flex: 1 1 140px; } #sheet .dt .dr.th { display: none; } }
/* the interactive table */
.gx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gtool { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gtool .search-in { flex: 1 1 240px; max-width: 360px; }
.gsl { display: inline-flex; align-items: center; gap: 6px; }
.gsel { width: auto; min-width: 120px; max-width: 220px; padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.gchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gchips:empty { display: none; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); font-size: 12px; font-weight: 600; }
:root[data-theme="dark"] .gchip { color: var(--ink); }
.gchip button { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 50%; font-size: 14px; line-height: 1; color: inherit; }
.gchip button:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.gscroll { overflow: auto; max-height: 68vh; border: 1px solid var(--line); border-radius: 16px; background: var(--card); position: relative; }
.gin { position: relative; min-width: 100%; }
.gr { display: grid; align-items: center; }
.gh { position: sticky; top: 0; z-index: 3; background: var(--soft); border-bottom: 1px solid var(--line); }
.gc { padding: 0 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc.num { text-align: right; font-variant-numeric: tabular-nums; }
/* the column of buttons stays in view when a table is wider than the window */
.gc.gact { position: sticky; right: 0; z-index: 2; background: var(--card); box-shadow: -10px 0 10px -10px rgba(0, 0, 0, .25); }
.gh .gc.gact { background: var(--soft); }
.gd.odd .gc.gact { background: color-mix(in srgb, var(--soft) 55%, var(--card)); }
.gd:hover .gc.gact { background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.gd .gc:not(.num):not(.ghc):not(:has(*)) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding-top: 6px; padding-bottom: 6px; overflow-wrap: anywhere; }
.dr:not(.th) > span:not(:has(*)) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.ghc { display: flex; align-items: center; gap: 2px; height: 42px; }
.ghc.num { justify-content: flex-end; }
.gsort { border: 0; background: transparent; font-size: 12px; letter-spacing: 0; font-weight: 700; color: var(--muted); padding: 4px 0; min-width: 24px; min-height: 24px; text-align: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsort:hover { color: var(--ink); }
.gdir { color: var(--navy-2); }
.gf { border: 0; background: transparent; width: 26px; height: 26px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; flex: none; opacity: .55; }
.gf:hover, .gf.on { opacity: 1; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.gf.on { color: var(--brand-red); }
.ginner { position: relative; }
.ginner .gr { position: absolute; left: 0; right: 0; height: 38px; border-bottom: 1px solid var(--line); font-size: 14px; }
.gx.dense .ginner .gr { height: 30px; font-size: 13px; }
.gd.odd { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.gd:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.gd a { color: var(--brand); font-weight: 600; text-decoration: none; }
:root[data-theme="dark"] .gd a { color: var(--ink); }
.gd a:hover { text-decoration: underline; }
.gg { background: color-mix(in srgb, var(--brand) 7%, var(--card)); cursor: pointer; }
.gcar { display: inline-block; width: 14px; color: var(--muted); }
.gt { position: sticky; bottom: 0; z-index: 2; height: 42px; background: var(--soft); border-top: 2px solid var(--line); font-size: 14px; }
.gempty { padding: 40px; text-align: center; }
.gcount { padding: 0 2px; }
.gchart, .gpivot { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); }
.gbar { display: grid; grid-template-columns: minmax(90px, 200px) 1fr 90px; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 8px; font-size: 13px; }
.gbar[role=button] { cursor: pointer; }
.gbar[role=button]:hover { background: var(--soft); }
.gbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbt { height: 14px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 9%, transparent); overflow: hidden; }
.gbt i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-2), var(--brand-red)); }
.gbv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.gpt { border-collapse: collapse; width: 100%; font-size: 14px; }
.gpt th, .gpt td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.gpt thead th { position: sticky; top: 0; background: var(--soft); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.gpt tbody th { font-weight: 600; position: sticky; left: 0; background: var(--card); }
.gpt .num { text-align: right; font-variant-numeric: tabular-nums; }
.gpt tfoot th, .gpt tfoot td { background: var(--soft); }
.gpt a { color: var(--brand); font-weight: 600; text-decoration: none; }
.gpt a:hover { text-decoration: underline; }
.gpop { position: absolute; z-index: 500; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.gvals { max-height: 220px; overflow: auto; margin-top: 10px; display: grid; gap: 4px; }
.gcols { max-height: 300px; overflow: auto; }
.gcrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; }
.gdl { display: grid; gap: 6px; }
.gtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.gtabs:empty { display: none; }
.gtab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gtab.on { background: var(--brand); color: var(--white); border-color: transparent; }
.gsec[hidden] { display: none; }

/* the student record as tabs */
.rsec[hidden], .raside[hidden] { display: none; }
.rgrid[data-tab]:not([data-tab="ov"]) { grid-template-columns: minmax(0, 1fr); }
.secnav.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 18px; position: static; background: transparent; padding: 0; }
.secnav.tabs button { border: 0; background: transparent; padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0; }
.secnav.tabs button.on { color: var(--brand); border-bottom-color: var(--navy-2); }
:root[data-theme="dark"] .secnav.tabs button.on { color: var(--ink); }
/* the communication history */
.clogs { padding: 4px 14px; }
.clog { border-bottom: 1px solid var(--line); }
.clog:last-child { border-bottom: 0; }
.cl-h { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; }
.cl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.cl-dot.in { background: var(--ok); }
.cl-meta { font-size: 12px; color: var(--muted); }
.cl-sub { font-weight: 600; }
.cl-body { padding: 0 0 14px 22px; color: var(--ink-2); line-height: 1.55; }
.cl-body p { margin: 0 0 .6em; }

/* an agent or faculty member in full */
.p360stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.p360stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.p360stat b { font-size: 20px; letter-spacing: -.4px; }
.p360stat span { font-size: 12px; color: var(--muted); }
.p360stat.ok b { color: var(--ok); } .p360stat.warn b { color: var(--warn); }
.p3sec[hidden] { display: none; }

/* verifying an ID card */
.idv { border-left: 6px solid var(--line); }
.idv.ok { border-left-color: var(--ok); } .idv.warn { border-left-color: var(--warn); } .idv.bad { border-left-color: var(--bad); }
.idv-v { display: flex; align-items: center; gap: 10px; font-size: 20px; padding: 10px 14px; border-radius: 12px; }
.idv-v.ok { background: var(--ok-bg); color: var(--ok); } .idv-v.warn { background: var(--warn-bg); color: var(--warn); } .idv-v.bad { background: var(--bad-bg); color: var(--bad); }

/* a choice you can type in to find, or open */
.cmb { position: relative; }
.cmb-in { padding-right: 32px; cursor: pointer; text-overflow: ellipsis; }
.cmb-car { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 12px; }
.cmb-list { position: fixed; z-index: 900; max-height: 270px; overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 4px; }
.cmb-list[hidden] { display: none; }
.cmb-opt { padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--ink); }
/* a list or a box that opens on the dark bar keeps its own colours, never the bar's white */
.bulk .cmb-in, .bulk select.field-in, select option { color: var(--ink); }
.bulk select.field-in, .bulk .cmb-in { background: var(--card); }
.cmb-opt:hover, .cmb-opt.hl { background: var(--soft); }
.cmb-opt.on { font-weight: 700; color: var(--brand); }
:root[data-theme="dark"] .cmb-opt.on { color: var(--ink); }
.cmb-opt.add { color: var(--navy-2); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
.cmb-none { padding: 10px 12px; color: var(--muted); font-size: 13px; }

/* a form in sections */
.ftabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 4px 0 18px; }
.ftabs button { border: 0; background: transparent; padding: 9px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ftabs button.on { color: var(--brand); border-bottom-color: var(--navy-2); }
:root[data-theme="dark"] .ftabs button.on { color: var(--ink); }
.fpanel[hidden] { display: none; }

/* notes */
.note360 { margin-bottom: 12px; }
.note360.pin { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-bg) 40%, var(--card)); }
.notes360 { display: grid; gap: 0; }
.rte-gh { position: sticky; top: 0; background: var(--card); padding: 8px 10px 4px; font-size: 12px; letter-spacing: 0; font-weight: 700; color: var(--muted); }
.rte-gh[hidden] { display: none; }
.rte-panel { width: min(460px, calc(100% - 16px)); }
.rte-list { max-height: 320px; }
.gpg { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 2px; }
.gpn { width: 64px; padding: 4px 8px; border-radius: 8px; text-align: center; display: inline-block; }

/* Today, made compact: work in tiles, the first few people on request */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.qgrid .queue { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.qgrid .queue .qh .why { font-size: 13px; }
.qfoot { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.queue .qis { margin: 10px 0 0; }
.queue .qis[hidden] { display: none; }
.cols { grid-template-columns: 2fr 1fr; gap: 32px; }
#evmore[hidden] { display: none; }
.secnav::-webkit-scrollbar { display: none; }
a.btn { text-decoration: none; }
.rate { display: flex; gap: 8px; }
.rb { flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px 0; font-weight: 700; cursor: pointer; }
.rb.on { background: var(--brand); color: var(--white); border-color: var(--brand); }
.gx .gclick { cursor: pointer; }
.gx .gclick:hover { background: var(--soft); }
.gx .gc .btn.sm { padding: 3px 10px; }
.gx .gc input[type=checkbox] { margin: 0; }
/* the list of emails: one row each, saved as it is changed */
.dr.nrow { grid-template-columns: minmax(200px, 1.3fr) 56px 168px minmax(200px, 1.7fr) 128px; gap: 12px; padding: 8px 16px; }
.nrow .nname { display: grid; min-width: 0; }
.dr.nrow > .nname { overflow: visible; white-space: normal; text-overflow: clip; }
.nrow .nname b { white-space: normal; }
.nrow .nname small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow .field-in { padding: 6px 10px; min-height: 34px; font-size: 13px; }
.nrow .chk { justify-content: center; }
@media (max-width: 760px) { .dr.nrow { grid-template-columns: 1fr auto; } .dr.nrow.th { display: none; } .nrow .field-in { grid-column: 1 / -1; } }
.dt .dtx-off { display: none !important; }
.dt .dtx-bar, .dt .dtx-pg { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 20px; position: sticky; left: 0; }
.dt .dtx-bar { border-bottom: 1px solid var(--line); }
.dt .dtx-pg { border-top: 1px solid var(--line); }
.dt .dtx-bar[hidden], .dt .dtx-pg[hidden] { display: none; }
.dt .dtx-bar .search-in { max-width: 320px; flex: 1; }
.dr.th .sortable .dtx-dir { font-style: normal; font-size: 12px; margin-left: 2px; }
.dr .mkin { width: 84px; padding: 6px 8px; text-align: right; }
.dr.th small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.mkp { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 12px; background: var(--card, var(--white)); }
.mkh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mkt1 b { font-size: 14px; }
.mks { display: flex; align-items: center; gap: 8px; }
.mkg { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 13px; }
.mkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mkf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mkl { font-size: 12px; color: var(--muted); font-weight: 600; }
.mkl i { font-style: normal; font-weight: 400; }
.mkf .mkin { width: 100%; text-align: left; padding: 10px 12px; font-size: 16px; font-weight: 600; }
.mkv { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: var(--soft); font-size: 16px; font-weight: 600; }
.mktot .mkv { background: transparent; padding: 0; font-size: 20px; letter-spacing: -.4px; }
.mka { display: flex; justify-content: flex-end; }
.mka .btn { min-width: 96px; }
@media (max-width: 560px) { .mka { grid-column: 1 / -1; } .mka .btn { width: 100%; } }
.pfgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.pfgrid .kvl { grid-template-columns: minmax(130px, 40%) 1fr; }
.pfgrid .kvl dd { overflow-wrap: anywhere; }
.band .bprog { flex-basis: 100%; position: relative; z-index: 1; border-top: 1px solid var(--line); padding-top: 12px; }
.band .bp { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(90px, 1fr) 90px minmax(120px, auto); gap: 14px; align-items: center; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.band .bp:hover .bpn { text-decoration: underline; }
.band .bp .bpn { font-weight: 600; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.band .bp .bpv { color: var(--muted); } .band .bp .bpv b { display: inline; font-size: 14px; margin: 0; }
.band .bp .bar { max-width: none; height: 6px; margin: 0; }
@media (max-width: 760px) { .band .bp { grid-template-columns: 1fr 70px; } .band .bp .bpb, .band .bp .bpo { display: none; } }
.dkrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.dkrow:first-of-type { border-top: 0; }
.dkrow .grow { flex: 1 1 260px; min-width: 0; }
.dkrow .seg2 button:disabled { opacity: .7; cursor: default; }
.dkrow { align-items: center; }
.dkpicks { max-height: 320px; overflow: auto; margin: 8px 0; }
.dkpick { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }

/* ---------- Calm look ----------
   One accent (navy), grey for everything else, and colour only where it means something: a small dot on a state, a red badge on a count. */
.btn.primary, .btn.accent, .bulk .btn.accent { background: var(--navy); border-color: transparent; color: var(--white); }
.avatar:not(.has-photo) { background: var(--soft); color: var(--navy); border: 1px solid var(--line); }
:root[data-theme="dark"] .avatar:not(.has-photo) { color: var(--ink); }
.bar > i, .stepper .s.c i, .gbt i, .rhead::before { background: var(--navy-2); }
.rail a.on::before, .list .li.on { background-color: transparent; }
.rail a.on::before { background: var(--navy-2); }
.list .li.on { box-shadow: inset 3px 0 0 var(--navy-2); }
.tabs a.on::after { background: var(--navy-2); }
.ask svg, .pal .inp svg, .stage .side li svg, .tabbar button.on svg, .chips button:hover svg { color: var(--navy-2); }
a.who:hover { color: var(--navy-2); border-color: var(--navy-2); }
.tbl input[type=checkbox], .chk input { accent-color: var(--navy-2); }
.band { background: var(--card); border: 1px solid var(--line); border-left: 1px solid var(--line); box-shadow: none; }
.band .wm { opacity: .04; }
.chip, .chip.ok, .chip.warn, .chip.bad, .chip.gray { background: var(--soft); color: var(--ink-2); font-weight: 600; }
.chip.ok::before, .chip.warn::before, .chip.bad::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip.ok::before { background: var(--ok); } .chip.warn::before { background: var(--warn); } .chip.bad::before { background: var(--bad); }
.alert, .alert.bad, .alert.ok { background: var(--soft); border: 1px solid var(--line); }
.queue .ic, .queue.bad .ic, .queue.warn .ic, .queue.ok .ic { background: var(--soft); color: var(--navy-2); }
:root[data-theme="dark"] .queue .ic { color: var(--ink); }
.queue.bad { border-left: 3px solid var(--bad); } .queue.warn { border-left: 3px solid var(--line); }
.seg2 button.on { color: var(--ink); }

/* a page title with its explanation folded behind an "i" */
.info-b { width: 24px; height: 24px; margin-left: 12px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-family: inherit; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; vertical-align: middle; position: relative; top: -3px; }
.info-b:hover, .info-b[aria-expanded="true"] { color: var(--navy); border-color: var(--navy-2); }
.info-b.in-h { vertical-align: middle; }
h2:has(+ .info-b.in-h), h3:has(+ .info-b.in-h), h4:has(+ .info-b.in-h) { display: inline-block; vertical-align: middle; }
.info-b, .info-b.sm { position: relative; } .info-b::after, .info-b.sm::after { content: ""; position: absolute; inset: -4px; }
.hello p.info-p { max-width: 70ch; margin-top: 8px; }

/* the document list */
.dkrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.dkrow:first-child { border-top: 0; }
.dkrow .grow { flex: 1 1 240px; min-width: 0; }
.dkpicks { max-height: 320px; overflow: auto; margin: 8px 0; }
.dkpick { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }

/* ---------- Today ---------- */
.thead { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.thead .hello h1 { margin: 0; }
.ask.ask-s { margin: 0; padding: 11px 18px; flex: 0 1 380px; box-shadow: none; }
.ask.ask-s span.t { font-size: 14px; }
.tstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tstat { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.tstat:hover { border-color: var(--navy-2); box-shadow: var(--shadow); }
.tstat .tl { color: var(--muted); font-size: 13px; font-weight: 600; }
.tstat .tv { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-top: 6px; }
.tstat .tv small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tstat .ts { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tstat .bar { height: 6px; margin-top: 10px; }
.tcols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.tside { display: grid; gap: 22px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.tcard h3 { font-size: 16px; margin: 0 0 8px; }
.qlist { display: block; }
.qrow { border-top: 1px solid var(--line); }
.qrow:first-child { border-top: 0; }
.qrow .qmain { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.qrow .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--navy-2); flex: none; }
.qrow .ic .i { width: 18px; height: 18px; }
.qrow .qt { flex: 1; min-width: 0; }
.qrow .qt b { font-size: 14px; }
.qrow .why { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.qrow .qn { min-width: 30px; text-align: center; padding: 2px 9px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 13px; }
.qrow.bad .qn { background: var(--bad-bg); color: var(--bad); }
.qrow.warn .qn { background: var(--soft); }
.qrow .qchev { width: 32px; height: 32px; font-size: 12px; color: var(--muted); }
.qrow .qis { margin: 0 0 12px 50px; display: grid; gap: 2px; }
.qrow .qis[hidden] { display: none; }
.tcard .bp { display: grid; grid-template-columns: minmax(120px, 1fr) 70px minmax(60px, 90px); gap: 12px; align-items: center; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.tcard .bp:hover .bpn { text-decoration: underline; }
.tcard .bp .bpn { font-weight: 600; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.tcard .bp .bpv { color: var(--muted); text-align: right; } .tcard .bp .bpv b { color: var(--ink); }
.tcard .bp .bar { height: 6px; margin: 0; }
.tcard .ev { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tcard h3 + .ev { border-top: 0; }
.tcard .notice + .notice { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
@media (max-width: 980px) { .tcols { grid-template-columns: 1fr; } .ask.ask-s { flex-basis: 100%; } }
.tcols > *, .tside > *, .tcard, .qlist, .qrow, .qmain { min-width: 0; }
.qrow .why { max-width: 100%; }
.info-b.sm { width: 24px; height: 24px; margin-left: 8px; font-size: 12px; top: -1px; }

/* section tabs: one line, the rest under More */
.tabs.tabs-one { flex-wrap: nowrap; position: relative; overflow: visible; }
.tabs.tabs-one > a, .tabs.tabs-one > button:not(.tab-more) { flex: none; white-space: nowrap; }
.tabs .tab-off { display: none; }
.tabs .tab-more { flex: none; margin-left: auto; padding: 9px 14px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 12px 12px 0 0; }
.tabs .tab-more:hover, .tabs .tab-more[aria-expanded="true"] { color: var(--ink); background: var(--soft); }
.tabs .tab-pop { position: absolute; top: 100%; z-index: 40; min-width: 230px; max-height: 70vh; overflow: auto; margin-top: 4px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.tabs .tab-pop a, .tabs .tab-pop button { text-align: left; border: 0; background: transparent; cursor: pointer; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tabs .tab-pop a:hover, .tabs .tab-pop button:hover { background: var(--soft); }
.tabs .tab-pop a::after { display: none; }
.tabs .tab-pop button { border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; margin: 0; }
.qrow .qmain { display: grid; grid-template-columns: 36px minmax(0, 1fr) 46px 76px 32px; gap: 14px; align-items: center; }
.qrow .qmain .btn { justify-content: center; width: 100%; }
.qrow .qn { justify-self: center; min-width: 34px; }
.qrow .qchev { width: 32px; height: 32px; }

/* the pages of a big area, down the left */
#main.hasside { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 36px; align-items: start; }
#main.hasside > .topline { grid-column: 1 / -1; }
#main.hasside > .pgbody { min-width: 0; }
.subside { position: sticky; top: 18px; }
.subside .subsel { display: none; }
.subnav { display: flex; flex-direction: column; gap: 2px; }
.subnav h4 { margin: 18px 0 6px 12px; font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.subnav h4:first-child { margin-top: 2px; }
.subnav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.subnav a:hover { background: var(--soft); color: var(--ink); }
.subnav a.on { background: var(--soft); color: var(--navy); box-shadow: inset 3px 0 0 var(--navy-2); }
:root[data-theme="dark"] .subnav a.on { color: var(--ink); }
@media (max-width: 920px) {
	#main.hasside { display: block; }
	.subside { position: static; margin-bottom: 16px; }
	.subside .subnav { display: none; }
	.subside .subsel { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; }
}
.sl .li { grid-template-columns: minmax(0, 340px) minmax(0, 1fr) auto auto; }
.sl .li.cls { grid-template-columns: minmax(0, 340px) minmax(0, 1fr) auto auto; }
@media (max-width: 760px) { .sl .li, .sl .li.cls { grid-template-columns: 1fr auto; } }

/* attendance by scanning cards */
.scanbar { margin-bottom: 14px; }
.scanmsg { margin-top: 10px; font-size: 14px; font-weight: 600; }
.scanmsg.ok { color: var(--ok, #1a7f4b); }
.scanmsg.warn { color: var(--warn, #9a6700); }
.scanmsg.bad { color: var(--bad, #d90005); }

/* two or three choices side by side */
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg button { border: 0; background: transparent; padding: 0 16px; height: 34px; border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--navy-2); }
.btn.on { background: var(--soft); border-color: var(--line); }

.secnav.tabs .tab-pop button { display: block; width: 100%; padding: 9px 12px; margin: 0; border-bottom: 0; border-radius: 10px; color: var(--ink); font-weight: 500; }
.secnav.tabs .tab-pop button:hover { background: var(--soft); }
.secnav.tabs .tab-more { margin-left: auto; flex: none; }
@media (max-width: 640px) { .raside { grid-template-columns: minmax(0, 1fr); } .mini-id { max-width: 100%; } }
@media (max-width: 480px) { .rings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .rings .ring { width: 90px; height: 90px; margin: 0 auto; } .rings .ring > div { width: 70px; height: 70px; font-size: 14px; } }
@media (max-width: 760px) { .g2, .g3, .split { grid-template-columns: minmax(0, 1fr) !important; } }

/* the bottom bar on a phone: the More button and its list */
.rail button.more { width: 68px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; border: 0; background: transparent; border-radius: 14px; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; position: relative; }
.rail button.more:hover, .rail button.more[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.rail .badge.dot { width: 9px; height: 9px; padding: 0; top: 6px; right: 18px; }
@media (max-width: 760px) { .rail button.more { width: auto; flex: 1; padding: 6px 0; } }
.railpop { position: fixed; right: 8px; bottom: 74px; z-index: 75; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.railpop a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; position: relative; }
.railpop a:hover { background: var(--soft); }
.railpop a svg { color: var(--muted); }
.railpop .badge { margin-left: auto; position: static; background: var(--red); color: var(--white); font-size: 12px; border-radius: 99px; padding: 0 6px; font-style: normal; font-weight: 700; }

/* scores from the learning platform on a marks sheet */
.lmbox { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.lmbox > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.lmrow { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 2fr) 140px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.lmrow:first-of-type { margin-top: 10px; }
.lmrow .field-in { height: 36px; padding: 0 10px; }
@media (max-width: 720px) { .lmrow { grid-template-columns: 1fr; } }

/* the proctoring review desk */
.prtl { border-left: 2px solid var(--line); margin-left: 6px; }
.prev { display: grid; grid-template-columns: 64px 14px 1fr; gap: 6px; align-items: baseline; padding: 6px 0 6px 0; }
.prev i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-left: -5px; align-self: center; }
.prev.warning i { background: var(--warn); } .prev.violation i { background: var(--bad); }
.prph { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.prph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }

/* the live monitor */
.lvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lvc { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; cursor: pointer; transition: .15s; }
.lvc:hover { border-color: var(--navy-2); }
.lvc img, .lvnone { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.lvb { padding: 10px 12px 12px; }

input.score-bad { border-color: var(--bad, #d90005) !important; background: var(--bad-tint) !important; }

/* on the student screens a message sits above the bar of tabs, not on it */
body:has(.sapp) #toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* a long word with no break (a pasted address, a held key) wraps inside the box instead of widening the page */
.sapp, .sapp * { overflow-wrap: anywhere; }
/* New job: the parts under a heading sit slightly in, and stay out of sight until "Parts" is pressed */
.jbparts { margin: 0 0 8px 18px; border-left: 2px solid var(--line); }
.jbparts[hidden] { display: none; }
/* Advanced: tuning settings folded at the end of a form section */
.fadv { grid-column: 1 / -1; }
.fadv > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 0; }
.fadv > summary:hover, .fadv[open] > summary { color: var(--ink); }
.fadv > .fgrid { margin-top: 10px; }
/* The helper for staff: a button at the corner and a small chat above it */
.shbtn { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 28, 89, .28); }
.shbtn .i { width: 16px; height: 16px; }
.shp { position: fixed; right: 22px; bottom: 78px; z-index: 56; width: min(380px, calc(100vw - 28px)); height: min(520px, 70vh); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 48px rgba(0, 10, 40, .22); overflow: hidden; }
.shp[hidden] { display: none; }
.shp.big { width: min(960px, calc(100vw - 80px)); height: calc(100vh - 100px); }
.shhr { display: flex; align-items: center; gap: 6px; }
.shg { position: absolute; z-index: 2; touch-action: none; }
.shg.t { top: 0; left: 18px; right: 0; height: 6px; cursor: ns-resize; }
.shg.l { left: 0; top: 18px; bottom: 0; width: 6px; cursor: ew-resize; }
.shg.c { top: 0; left: 0; width: 18px; height: 18px; cursor: nwse-resize; }
.shg.c::after { content: ""; position: absolute; top: 6px; left: 6px; width: 6px; height: 6px; border-top: 2px solid var(--line); border-left: 2px solid var(--line); border-top-left-radius: 3px; }
.shg.c:hover::after { border-color: var(--muted); }
.shh { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.shm { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.shmsg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: var(--soft); }
.shmsg p { margin: 0; }
.shmsg.q { align-self: flex-end; background: var(--navy); color: var(--white); }
:root[data-theme="dark"] .shmsg.q { color: var(--brand-deep); }
.shmsg.err { background: var(--info-bg); }
.shchips, .shlinks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.shrows { margin-top: 8px; border-top: 1px solid var(--line); }
.shrows > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.shf { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.shf .field-in { flex: 1; min-width: 0; }
body.student .shbtn, body.student .shp { display: none; }
@media (max-width: 760px) { .shbtn { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); } .shp, .shp.big { right: 10px; left: 10px; width: auto; bottom: calc(132px + env(safe-area-inset-bottom)); height: min(480px, 62vh); } .shp.big { height: calc(100vh - 160px - env(safe-area-inset-bottom)); } .shg { display: none; } }
@media (max-width: 760px) { body.shopen .shbtn { display: none; } }
@media print { .shbtn, .shp { display: none; } }
/* the row of tabs inside a merged page is the quieter of two rows: small pills, so it reads as part of the page, not a second menu */
.tabs.inner { border-bottom: 0; gap: 6px; margin: 0 0 16px; }
.tabs.inner a { padding: 6px 14px; border-radius: 999px; font-size: 13px; background: transparent; border: 1px solid var(--line); }
.tabs.inner button { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: inherit; color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.tabs.inner button:hover { background: var(--soft); }
.tabs.inner button.on { background: var(--info-bg); color: var(--navy); border-color: transparent; }
.foldb { margin-top: 10px; }
.tabs.inner a:hover { background: var(--soft); }
.tabs.inner a.on { background: var(--info-bg); color: var(--navy); border-color: transparent; }
.tabs.inner a.on::after { display: none; }
:root[data-theme="dark"] .tabs.inner a.on { color: var(--ink); }
/* on a phone the Ask button is a small round icon, so it covers less of the page */
@media (max-width: 760px) { .shbtn span { display: none; } .shbtn { padding: 12px; } .main .wrap { padding-bottom: 110px; } }
.sh-in h2 { overflow-wrap: anywhere; }
/* on a phone a finger needs room: every button, box and tab is at least 44 px tall, and the tiny "i" and table-heading controls get a larger touch area */
@media (max-width: 760px) {
	.btn, .btn.sm, .chipb, .tabs a, .tabs button, .tab-more, .chips button, a.bp, .pgr button, .seg button, .seg2 button, #toastundo { min-height: 44px; }
	.field-in, select.field-in, input.field-in.gpn, select.pgsel, select.gsel, .fbar select.field-in, .fbar input.field-in, .lbar select.field-in { min-height: 44px; }
	.icon-btn, .icon-btn.qchev, .icon-btn.x { min-width: 44px; min-height: 44px; }
	.gsort, .gf, .sortable { min-height: 44px; display: inline-flex; align-items: center; }
	.info-b, .info-b.sm { position: relative; }
	.info-b::after, .info-b.sm::after { content: ""; position: absolute; inset: -13px; }
	.search-in input { min-height: 44px; }
}

/* spacing and size utilities (they replace the inline styles that were repeated most; !important keeps them as strong as the inline style was) */
.u-margin-bottom-14px { margin-bottom:14px !important; }
.u-font-size-20px { font-size:20px !important; }
.u-font-size-32px { font-size:32px !important; }
.u-margin-top-8px { margin-top:8px !important; }
.u-margin-top-12px { margin-top:12px !important; }
.u-margin-top-14px { margin-top:14px !important; }
.u-margin-bottom-6px { margin-bottom:6px !important; }
.u-margin-0 { margin:0 !important; }
.u-margin-top-10px { margin-top:10px !important; }
.u-margin-top-6px { margin-top:6px !important; }
.u-gap-10px-flex-wrap-wrap { gap:10px !important; flex-wrap:wrap !important; }
.u-margin-bottom-12px { margin-bottom:12px !important; }
.u-margin-bottom-18px { margin-bottom:18px !important; }
.u-gap-8px { gap:8px !important; }
.u-margin-bottom-10px { margin-bottom:10px !important; }
.u-margin-top-4px { margin-top:4px !important; }
.u-gap-8px-flex-wrap-wrap { gap:8px !important; flex-wrap:wrap !important; }

/* Dark colours for a person whose theme follows the computer: the same text colours as the explicit dark theme above. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .btn.accent, :root:not([data-theme="light"]) .bulk .btn.accent, :root:not([data-theme="light"]) .avatar, :root:not([data-theme="light"]) .chat .m.u, :root:not([data-theme="light"]) .shmsg.q { color: var(--brand-deep); }
	:root:not([data-theme="light"]) .rail a.on, :root:not([data-theme="light"]) .tabbar button.on, :root:not([data-theme="light"]) .tabs a.on { color: var(--white); }
	:root:not([data-theme="light"]) .band b, :root:not([data-theme="light"]) .rte-tabs button.on, :root:not([data-theme="light"]) .gchip, :root:not([data-theme="light"]) .gd a, :root:not([data-theme="light"]) .secnav.tabs button.on, :root:not([data-theme="light"]) .cmb-opt.on, :root:not([data-theme="light"]) .ftabs button.on, :root:not([data-theme="light"]) .avatar:not(.has-photo), :root:not([data-theme="light"]) .queue .ic, :root:not([data-theme="light"]) .subnav a.on, :root:not([data-theme="light"]) .tabs.inner a.on { color: var(--ink); }
}

/* The day's schedule on Today (agenda.js): the next thing, today's items in order, a week strip */
.agnext { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; }
.agnext .agl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agnext .agl small { color: var(--muted); letter-spacing: 0; font-size: 12px; font-weight: 700; }
.agnext .agl b { font-size: 20px; letter-spacing: -.3px; }
.agcard .skel { height: 120px; }
.agh { gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.agh h3 { margin: 0; }

.agh h3 { flex: none; white-space: nowrap; }
.ag { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.agh + .ag { border-top: 0; }
.ag .agt { color: var(--muted); font-weight: 600; font-size: 13px; }
.ag.now .agt { color: var(--ink); }
.ag.done { opacity: .55; }
.agn { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.seg button.on .agn { color: var(--ink-2); }
.s-hero .muted-on { opacity: .85; font-size: 13px; }
.cols > * { min-width: 0; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; gap: 24px; } }
#agnext .s-hero { margin-bottom: 14px; }
.agbtns { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* the bell */
.alert-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; font-style: normal; }
.alert-badge[hidden] { display: none; }
.alist { list-style: none; margin: 14px 0 0; padding: 0; }
.alist li { border-bottom: 1px solid var(--line); }
.alist li.unread { border-left: 3px solid var(--navy); }
.alrow { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; background: none; border: 0; padding: 12px 10px; cursor: pointer; font: inherit; color: inherit; }
.alrow:hover { background: var(--bg); }

/* system health */
.hlist { display: grid; gap: 10px; max-width: 760px; }
.hrow { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.hrow .chip { flex: 0 0 auto; min-width: 92px; text-align: center; }

/* the month calendar */
.calg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calh { font-size: 12px; text-align: center; color: var(--muted); padding: 4px 0; }
.calc { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 6px 8px; text-align: left; }
.calc.today { border-color: var(--navy); }
.calc.on { background: var(--bg); border-color: var(--navy-2); }
.calcn { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.caldot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; }
.calrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calrow > .muted { flex: 0 0 82px; }
.pw-wrap { display: flex; gap: 8px; align-items: center; }
.pw-wrap .field-in { flex: 1; min-width: 0; }

/* a name with digits or symbols says so under its box while it is typed */
.name-hint { color: var(--bad); margin-top: 4px; }


/* Exams, Students and rooms: the columns of the assessment rows */
.dr.exz { grid-template-columns: 100px minmax(120px, 1.4fr) minmax(120px, 1fr) 80px minmax(120px, 1fr) 90px; }

/* Audit trail, Activity: the filter boxes keep their natural width */
.audit-flt .field-in { width: auto; min-width: 170px; }

/* 8 November 2026, a pass over the whole portal as a designer */
/* two lines of words in a table cell sit inside the row with air above and below (they touched the lines before) */
.gd .gc:not(.num):not(.ghc):not(:has(*)) { line-height: 1.28; padding-top: 5px; padding-bottom: 5px; }
/* a report card keeps its "i" in the top corner whatever the length of the title */
.repcard { position: relative; }
.repcard h3 { padding-right: 34px; }
.repcard .info-b { position: absolute; top: 14px; right: 14px; margin: 0; }
/* on a phone the Actions column scrolls with the table instead of taking half the screen */
@media (max-width: 760px) { .gc.gact { position: static; box-shadow: none; } }
.gc small.sub { display: block; }
/* the Ask button is a small round button until it is pointed at, so it never hides the buttons and pages at the corner of a table */
@media (min-width: 761px) {
	.shbtn { padding: 12px; gap: 0; }
	.shbtn span { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .2s var(--ease), opacity .2s, margin .2s; }
	.shbtn:hover, .shbtn:focus-visible { gap: 8px; padding: 11px 18px; }
	.shbtn:hover span, .shbtn:focus-visible span { max-width: 60px; opacity: 1; }
}
/* a fee line on the student's Pay page wraps instead of squeezing the invoice number into four lines */
.frow { padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; row-gap: 8px; }
.frow .grow { flex: 1 1 150px; }
/* the seven tabs along the bottom of a phone each get a little more room, and a word never breaks in two */
@media (max-width: 440px) { .tabbar { padding-left: 2px; padding-right: 2px; } .tabbar button { white-space: nowrap; letter-spacing: -.4px; } }
.tbl .tr .chip { justify-self: start; white-space: nowrap; }
/* the simple lists: a heading never ends in "...", a name that does not fit goes on to a second line, and a plain cell shows two lines before it is cut */
.dr.th > span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.dr > span.first { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.dr > span:not(.first):not(:has(*)) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; line-height: 1.3; }
.dr.th > span:not(:has(*)) { display: block; }
/* an empty list is one calm message in the same card as the lists it stands for */
.empty-state { background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); padding: 36px 20px; text-align: center; color: var(--muted); }
.lp-empty .lbar-s, .lp-empty #lfbar { display: none; }
/* the "i" that is not beside a heading says what it is for */
.info-b.lab { width: auto; height: 26px; padding: 0 10px 0 8px; margin-left: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.info-b.lab::before { content: "i"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; font-weight: 700; line-height: 1; }
/* the filter marks in table headings show when the pointer is on the heading, or when a filter is in use (always on a touch screen) */
.ghc .gf { opacity: 0; transition: opacity .12s; }
.ghc:hover .gf, .gf.on, .gf:focus-visible { opacity: 1; }
@media (hover: none) { .ghc .gf { opacity: .55; } }
/* the sections of a settings form stay on one line; if there are more than fit, the line scrolls */
.ftabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ftabs button { white-space: nowrap; flex: none; padding: 9px 12px; }
.slink { color: var(--navy); text-decoration: none; }
.slink:hover { text-decoration: underline; }
:root[data-theme="dark"] .slink { color: var(--white); }
/* the day tabs in the schedule scroll inside their own space; "Month" stays at the right end of the same line */
.agh { flex-wrap: nowrap; }
.agh .seg { min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.agh > .btn { flex: none; }

/* the student's bottom bar: four jobs and More on a phone; all eight stay in the side menu on a computer */
.sapp .tabbar .tmore, .sapp .smorepop { display: none; }
.sapp .tabbar .tmorebtn { display: flex; }
@media (max-width: 1023px) {
	.sapp .smorepop:not([hidden]) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; position: fixed; right: 8px; left: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 544px; margin: 0 auto; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(19, 26, 51, .18); z-index: 40; }
	.sapp .smorepop button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; }
	.sapp .smorepop button.on { background: var(--soft); color: var(--navy); }
}
@media (min-width: 1024px) { .sapp .tabbar .tmore { display: flex; } .sapp .tabbar .tmorebtn { display: none; } }
.lrows { display: grid; margin-top: 6px; }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 48px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.lrow:first-child { border-top: 0; }
.lrow b { display: block; color: var(--navy); font-weight: 600; }
.lrow small { display: block; font-size: 13px; }
.lrow:hover b { text-decoration: underline; }
@media (max-width: 760px) { .sapp .sscroll { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

.phone-only { display: none; }
@media (max-width: 760px) { .desk-only { display: none !important; } .phone-only { display: block; } .agh { flex-wrap: wrap; row-gap: 8px; } .agh .seg { flex: 1 1 100%; } }
/* a button that destroys or reverses something: red words on a white button, never the navy of a safe action */
.btn.danger { background: var(--card); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.btn.danger:hover { background: var(--bad-tint); }
/* text selected in a typed list when it is opened is a quiet tint, not the browser's bright blue */
.cmb-in::selection { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--ink); }
/* a row on Today is one link: the whole row opens the work, with a small arrow at its end instead of an "Open" button on every line */
.qrow .qmain { position: relative; }
.qlink { color: inherit; text-decoration: none; display: block; }
.qlink::after { content: ""; position: absolute; inset: 0; }
.qlink:hover b, .qlink:focus-visible b { text-decoration: underline; }
.qrow .qchev, .qrow .qi { position: relative; z-index: 1; }
.qgo { color: var(--muted); font-size: 20px; line-height: 1; padding: 0 4px; }
.qrow:hover .qgo { color: var(--navy); }
/* filter lists: the count sits at the right edge of its row; number boxes have no little arrows; the list scrolls inside the pop-over */
.gvals { max-height: 220px; overflow-y: auto; }
.gvals .chk span { display: inline-flex; justify-content: space-between; gap: 12px; width: calc(100% - 28px); }
.gvals .chk small { font-size: 12px; color: var(--ink-2); }
.gpop input[type=number]::-webkit-inner-spin-button, .gpop input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gpop input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* a search box inside a form row is one line tall (in a column it was stretching to a huge oval) */
.fld .search-in { flex: none; width: 100%; max-width: none; }
/* the Columns list: one short row for each column, small arrows at the right */
.gcrow { padding: 0; min-height: 32px; }
.gcrow .icon-btn { width: 28px; height: 28px; min-height: 0; font-size: 14px; }
@media (max-width: 760px) { .gcrow .icon-btn { width: 44px; height: 44px; } }

/* density pass (8 November 2026, from the UI/UX Pro Max guidance for dense admin screens): one corner for every control and card, thin shadows, tighter bars and cards, summary figures as one strip */
:root { --r: 12px; --shadow: 0 1px 2px rgba(19, 26, 51, .06); }
:root[data-theme="dark"] { --shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.btn, .search-in, .lbar select.field-in, .pgsel, .gsel, .fbar select.field-in, .fbar input.field-in, .comp select, .chipb, .gtab, .chips button { border-radius: 10px; }
.btn { min-height: 36px; padding: 0 14px; }
.btn.sm { min-height: 30px; padding: 0 10px; }
.seg, .seg2, .tog, .mt { border-radius: 10px; }
.seg button, .seg2 button, .tog button, .mt button, .secnav button, .tabs.inner a { border-radius: 8px; }
.seg button { height: 30px; }
.tog button { height: 32px; }
.topline { margin-bottom: 14px; }
.hello h1 { font-size: 24px; letter-spacing: -.6px; line-height: 1.2; }
.hello p { font-size: 14px; margin-top: 4px; }
.cardx { padding: 16px; }
.cardx h3 { margin-bottom: 10px; }
.lbar { margin-bottom: 10px; gap: 8px; }
.gx { gap: 8px; }
.gscroll { border-radius: 12px; }
.gtool .gcount { white-space: nowrap; margin-right: auto; }
.gtool .search-in { flex: 0 1 300px; }
.stats, .ig { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; overflow: hidden; }
.stat, .ig .k { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 10px 16px; gap: 0; }
.stat:first-child, .ig .k:first-child { border-left: 0; }
.stat span, .ig .k > span, .ig .k .lbl { font-size: 12px; }
.stat b, .ig .k .big { font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat em { margin-top: 0; }
@media (max-width: 760px) { .hello h1 { font-size: 24px; } .stats, .ig { grid-template-columns: 1fr 1fr; } .stat, .ig .k { border-left: 0; border-top: 1px solid var(--line); } .stat:nth-child(-n+2), .ig .k:nth-child(-n+2) { border-top: 0; } .stat:nth-child(even), .ig .k:nth-child(even) { border-left: 1px solid var(--line); } }

.tstats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tstat { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 10px 16px; }
.tstat:first-child { border-left: 0; }
.tstat:hover { background: var(--soft); }
.tstat .tl { font-size: 12px; }
.tstat .tv { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tstat .bar { margin-top: 6px; }
.tcard { border-radius: var(--r); padding: 14px 16px; }
.tcols { gap: 14px; }
.qrow .qmain { padding: 8px 0; gap: 12px; }
.qrow .ic { width: 30px; height: 30px; border-radius: 8px; }
.task { border-radius: var(--r); }
.ask { margin: 14px 0 10px; }
@media (max-width: 760px) { .tstats { grid-template-columns: 1fr 1fr; } .tstat { border-left: 0; border-top: 1px solid var(--line); } .tstat:nth-child(-n+2) { border-top: 0; } .tstat:nth-child(even) { border-left: 1px solid var(--line); } }

/* on a phone every control is at least 44 px tall again (the density pass, which comes later in this file, had set the desktop sizes for every width) */
@media (max-width: 760px) { .btn, .btn.sm, .chipb, .gtab, .tog button, .seg button, .seg2 button, .tabs.inner a, .secnav button, .pgr button { min-height: 44px; } .search-in { min-height: 44px; } }

/* the skip link shows only when it has the keyboard; the page and its heading take focus without a ring; motion stops for people who ask for that */
.skip { position: absolute; left: 8px; top: -60px; z-index: 500; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: var(--white); border: 0; font-weight: 600; }
.skip:focus { top: 8px; }
#main:focus, #main h1:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* dark: native boxes (tick boxes, dates, scroll bars) are drawn dark, and the chosen tab or filter is clearly lighter than the card it sits on (it was navy on navy) */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] .seg button.on, :root[data-theme="dark"] .seg2 button.on, :root[data-theme="dark"] .chipb.sel { background: var(--navy-2); color: var(--brand-deep); box-shadow: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) { color-scheme: dark; }
	:root:not([data-theme="light"]) .seg button.on, :root:not([data-theme="light"]) .seg2 button.on, :root:not([data-theme="light"]) .chipb.sel { background: var(--navy-2); color: var(--brand-deep); box-shadow: none; }
}
/* phone: the date line above every page is not drawn (the top bar keeps search, the bell and the account), tick boxes are big enough to hit */
@media (max-width: 760px) {
	.topline > .muted.small { display: none; }
	.topline { justify-content: flex-end; }
	input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
}
.unitw { display: flex; align-items: center; gap: 8px; width: 100%; }
.unitw .field-in { min-width: 0; flex: 1 1 auto; width: auto; }
.unit { color: var(--muted); font-size: 14px; white-space: nowrap; }
/* phone: the page bar is one line (Previous, Page 1 of 6, Next) with the page size under it; toolbar buttons share a row evenly */
@media (max-width: 760px) {
	.pgr > .row { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
	.pgr > .row > select { order: 5; flex: 1 1 100%; }
	.pgr > .row > .btn { flex: 1 1 auto; justify-content: center; }
	.pgr > .row > label, .pgr > .row > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
	#lpager > .row { flex-direction: column; align-items: stretch; gap: 8px; }
	#lpager .gsel { width: 100% !important; }
	.lbar > .row { flex-wrap: wrap; gap: 8px; width: 100%; }
	.lbar > .row > .btn { flex: 1 1 auto; justify-content: center; }
}
/* phone: a grid row is a card (the first column on top, then "Heading: value"); no heading row, no sideways scroll */
@media (max-width: 760px) {
	.gscroll { max-height: none !important; overflow-x: hidden; }
	.gx .gh { display: none; }
	.gin, .ginner, .ginner .gr { width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
	.ginner { height: auto !important; }
	.ginner .gr { position: static !important; top: auto !important; height: auto !important; display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 12px 16px; }
	.ginner .gr > .gc { padding: 0; white-space: normal; overflow: visible; text-overflow: clip; flex: 0 1 auto; max-width: 100%; font-size: 13px; }
	.ginner .gr > .gc.gfirst { flex: 1 1 100%; font-size: 14px; font-weight: 600; }
	.ginner .gr > .gc[data-l]:not(.gfirst):not([data-l=""]):not(:empty)::before { content: attr(data-l) ': '; color: var(--muted); }
	.ginner .gr > .gc.gact { position: static; box-shadow: none; background: transparent; flex: 1 1 100%; }
	.gx .gt { display: none; }
	.gpg { flex-direction: column; align-items: stretch; gap: 8px; }
	.gpg > .row { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
	.gpg .gsel { order: 5; flex: 1 1 100%; width: 100% !important; }
	.gpg .btn { flex: 1 1 auto; justify-content: center; }
}
/* the schedule's day choices never run off the card: the title and Month are one row, the days wrap on the row under them */
.agh { flex-wrap: wrap; row-gap: 8px; }
.agh h3 { margin-right: auto; }
.agh .seg { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; border-radius: 14px; gap: 2px; }
.agh .seg button { flex: 1 1 auto; }
/* phone: the red count sits at the top right of its icon, not over it */
@media (max-width: 760px) {
	.rail a .badge { left: calc(50% + 6px); right: auto; top: 0; }
	.tabs.inner, .secnav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.tabs.inner > a, .secnav > button { flex: none; white-space: nowrap; }
	.ftabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.ftabs button { flex: none; white-space: nowrap; }
}
/* phone: the work-queue rows give their width to the words (the small icon goes); dark: the Ask button is an outline, not the brightest thing on the page */
@media (max-width: 760px) { .qrow .qmain > .ic { display: none; } .qrow .qmain { gap: 10px; } }
:root[data-theme="dark"] .shbtn { background: var(--card) !important; color: var(--navy-2) !important; border: 1px solid var(--navy-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shbtn { background: var(--card) !important; color: var(--navy-2) !important; border: 1px solid var(--navy-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); } }
/* the date picker (datepick.js): one portal box and a small calendar in place of the browser's own date control */
.dp { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.fld .dp, .fgrid .dp { display: flex; width: 100%; }
.dp-in { cursor: text; padding-right: 36px; min-width: 150px; width: 100%; }
.dp-in[readonly] { cursor: pointer; }
.dp-in.dp-bad { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.dp-i { position: absolute; right: 12px; display: inline-flex; color: var(--muted); pointer-events: none; }
.dp-pop { position: fixed; z-index: 950; width: 300px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; }
.dp-h { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.dp-h select { flex: 1 1 auto; min-width: 0; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; }
.dp-n { width: 32px; height: 32px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.dp-w, .dp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; } .dp-g { grid-auto-rows: 34px; }
.dp-w span { font-size: 12px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.dp-d { height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.dp-d:hover { background: var(--soft); }
.dp-d.dp-t { box-shadow: inset 0 0 0 1.5px var(--navy-2); }
.dp-d.on { background: var(--brand); color: var(--white); }
.dp-d[disabled] { opacity: .35; cursor: not-allowed; }
.dp-f { display: flex; justify-content: space-between; margin-top: 8px; }
:root[data-theme="dark"] .dp-d.on { background: var(--navy-2); color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dp-d.on { background: var(--navy-2); color: var(--brand-deep); } }
@media (max-width: 760px) { .dp-pop { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; } .dp-d, .dp-n { height: 44px; } .dp-g { grid-auto-rows: 44px; } .dp-n { width: 44px; } .dp-h select { min-height: 44px; } }
.kbd { display: inline-block; min-width: 26px; padding: 3px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 8px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-align: center; }
/* small links are at least 24 px tall (a link in the page crumbs, the add or change photo link beside a name) */
.crumbs a, .rhead a.small { display: inline-flex; align-items: center; min-height: 24px; }
/* the row marked by the j and k keys */
.kcur { outline: 2px solid var(--navy-2); outline-offset: -2px; }

/* ---------- Admissions, Applications: one bar, then the list and the applicant fill the screen ---------- */
/* a page with no date row: its tools sit on the row of the tabs */
.topline.slim { margin: 0; justify-content: flex-end; }
@media (min-width: 761px) {
	#main:has(.topline.slim) { position: relative; }
	.topline.slim { height: 0; }
	.topline.slim .right { position: absolute; right: 40px; top: 26px; z-index: 6; }
	#main:has(.topline.slim) > .tabs { padding-right: 176px; margin-bottom: 14px; }
}
/* a choice of two or three: a grey tray, the chosen one raised and darker (no heavy ring, so it is not mistaken for focus) */
.seg2 { border: 1px solid var(--line); }
.seg2 button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.seg2 .cnt { margin-left: 6px; font-weight: 600; color: var(--muted); }
.seg2 .cnt:empty { display: none; }
.admbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admbar [hidden] { display: none !important; }
.admbar .search-in { flex: 1 1 200px; min-width: 200px; max-width: 340px; }
.admbar .grow { flex: 1 1 0; }
.fpop > summary { display: inline-flex; align-items: center; gap: 8px; }
.fcount { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.fpop .more-list.fpanel { left: 0; right: auto; width: 320px; max-width: calc(100vw - 32px); padding: 14px; display: grid; gap: 12px; }
.fpanel .fp-h { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.fpanel .seg2 { display: flex; }
.fpanel .seg2 button { flex: 1; white-space: nowrap; padding: 6px 8px; }
.fpanel .fbar .cmb { width: 100%; }
.fpanel .chipb { justify-self: start; }
.fpanel .chipb.sel { background: var(--soft); color: var(--ink); border-color: var(--navy-2); }
.fpanel .fbar { display: grid; gap: 8px; margin: 0; }
.fpanel .fbar select.field-in, .fpanel .fbar input.field-in { width: 100%; max-width: none; }
.fpanel .fbar .btn { justify-self: start; }
/* the list */
.adm-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.adm-list .list { border: 0; border-radius: 0; box-shadow: none; }
.adm-list .li { padding: 12px 16px; }
.list .li .lmain { flex: 1; min-width: 0; }
.list .li .lt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list .li .lt b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .li .lp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.listfoot { border-top: 1px solid var(--line); padding: 0 12px 8px; }
.listfoot:empty { display: none; }
.listfoot .pgr { margin: 8px 0 0; gap: 8px; display: grid; }
.listfoot .pgr > .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.listfoot .cmb { width: 128px; }
.listfoot label .cmb { width: 76px; }
.listfoot label { display: inline-flex; align-items: center; gap: 6px; }
/* the applicant: what you read scrolls, the decision stays in view */
.detail.dws { display: flex; flex-direction: column; padding: 0; container-type: inline-size; }
.dscroll { padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.dmain { display: grid; gap: 18px; align-content: start; min-width: 0; }
.dmain .stepper, .dmain .alert { margin: 0; }
.dmain p { margin: 0; }
.drail { display: grid; gap: 16px; align-content: start; min-width: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.drail:not(:has(*)), .drail > #admhist:only-child { border-top: 0; padding-top: 0; }
.dsec h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.dsec .row.between h3 { margin: 0; }
.dsec .row.between { margin-bottom: 8px; }
@container (min-width: 960px) {
	.dscroll { grid-template-columns: minmax(0, 1fr) 280px; }
	.drail { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
}
.stepper .s.d span { color: var(--ink-2); }
.stepper .s.d svg { color: var(--ok); vertical-align: -2px; }
.dlist { display: grid; gap: 6px; }
.dlist .doc { padding: 10px 12px; border-radius: 12px; gap: 12px; }
.dlist .doc .thumb { width: 32px; height: 40px; }
.dlist .doc.v { background: transparent; border: 1px solid var(--line); padding: 8px 12px; }
.dtick { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--ok); flex: none; }
.attn { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 12px; padding: 12px 16px; background: var(--card); display: grid; gap: 6px; font-size: 14px; }
.attn ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.attn .clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drail .chip { white-space: normal; }
.ad-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; font-size: 14px; }
.ad-k { color: var(--muted); min-width: 104px; font-size: 13px; }
.ad-v { font-weight: 600; overflow-wrap: anywhere; }
.ad-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dbar { border-top: 1px solid var(--line); padding: 12px 84px 12px 28px; background: var(--card); }
.dbar .decide { border-top: 0; padding-top: 0; }
.rejbox { margin-bottom: 12px; }
.decide .btn.rej { color: var(--bad); }
/* a wide screen: the list and the applicant each fill the height under the bar and scroll on their own */
@media (min-width: 1101px) {
	#main:has(.adm-ws) { padding-bottom: 20px; }
	.adm-ws { display: grid; grid-template-columns: clamp(340px, 26vw, 420px) minmax(0, 1fr); gap: 16px; height: max(460px, calc(100vh - var(--adm-top, 200px) - 24px)); }
	.adm-list { display: flex; flex-direction: column; min-height: 0; }
	.adm-list .list { flex: 1; min-height: 0; overflow-y: auto; }
	#admdetail { min-height: 0; display: flex; }
	#admdetail > .detail { flex: 1; min-width: 0; overflow: hidden; }
	.dscroll { flex: 1; min-height: 0; overflow-y: auto; }
}
/* a narrow screen: the list, then the applicant, and the decision stays at the foot of the screen */
@media (max-width: 1100px) {
	.adm-ws { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.adm-list .list { max-height: 420px; overflow-y: auto; }
}
@media (max-width: 760px) {
	.dscroll { padding: 16px; }
	.dbar { padding: 10px 16px; }
	.admbar .search-in { flex: 1 1 100%; }
	.decide .grow { display: none; }
}
/* the stage in the header: a chip and a sentence; the path with days is a short list in the side column */
.stageline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tl6 { list-style: none; margin: 0; padding: 0; display: grid; }
.tl6 li { display: flex; gap: 10px; position: relative; padding-bottom: 14px; font-size: 14px; }
.tl6 li:last-child { padding-bottom: 0; }
.tl6 li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.tl6 li.d::before { background: var(--ok); }
.tl6 li:last-child::before { display: none; }
.tl6 li > i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; margin-top: 2px; }
.tl6 li.d > i { background: var(--ok); border-color: var(--ok); color: var(--white); }
.tl6 li.d > i svg { width: 10px; height: 10px; }
.tl6 li.n > i { border: 4px solid var(--ink); }
.tl6 li.f > i { border-style: dashed; border-color: var(--muted); }
.tl6 .cur { font-weight: 700; }
/* ---------- Seats and merit: one bar, four figures, the merit list, and the seats by category beside it ---------- */
#merbar > .cmb { flex: 0 1 320px; min-width: 220px; }
#merbar > .cmb:nth-of-type(2) { flex: 0 0 140px; min-width: 0; }
.merstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.merstrip .mst { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: inherit; }
.merstrip button.mst { cursor: pointer; }
.merstrip button.mst:hover { border-color: var(--navy-2); }
.merstrip .mst small { display: block; color: var(--muted); font-size: 12px; }
.merstrip .mst b { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.msbar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.msbar i { display: block; height: 100%; background: var(--navy-2); width: 0; }
.mernote { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.mer-ws { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.mer-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.mer-side h3 { font-size: 14px; font-weight: 700; margin: 0; }
.mer-side p { margin: 0; }
.mrow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.mrow.sub { color: var(--muted); font-size: 12px; margin-top: -6px; }
.mrow.tot { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.mero-row { cursor: pointer; }
@media (max-width: 1100px) { .mer-ws { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .merstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } #merbar > .cmb, #merbar > .cmb:nth-of-type(2) { flex: 1 1 100%; } }
/* the tick box of a table row sits in the middle of its narrow column (it was cut to an ellipsis) */
.gc:has(> input[data-gselrow]), .gc:has(> input[data-gselall]) { padding: 0; display: grid; place-items: center; text-overflow: clip; }
.mpubs { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.small.bad, p.bad { color: var(--bad); }
.mchoices { display: grid; gap: 14px; margin-bottom: 14px; }
.mchoices label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.mchoices .hint { margin: 2px 0 0 26px; }

/* the student record (9 November 2026): quiet header, only what is recorded, one list of what is left to do */
.crumbs b { color: var(--ink); }
.rhead .row { flex-wrap: wrap; }
.rmeta { gap: 2px 8px; }
.rmeta span + span::before { content: "\00b7"; margin-right: 8px; color: var(--muted); }
.ract { align-items: center; }
.rmore > summary { list-style: none; }
.rmore > summary::-webkit-details-marker { display: none; }
.rmore { position: relative; }
.rmore .more-list { right: 0; min-width: 190px; }
.glance2 { padding: 0; grid-template-columns: 1fr 1fr; }
.rgrid { padding-bottom: 80px; }   /* the Ask button floats at the bottom right and must not sit on the last card */
.todo-card .stpr:first-of-type { border-top: 0; }
.todo-card .stpr .btn { margin-left: auto; flex: none; }
.todo-done > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 10px 0 2px; list-style: none; }
.todo-done > summary::-webkit-details-marker { display: none; }
.todo-done > summary::before { content: "\25b8  "; }
.todo-done[open] > summary::before { content: "\25be  "; }
@media (max-width: 760px) { .rmeta span + span::before { content: none; } .rmeta { gap: 2px 12px; } }

/* the record's overview is one column: the figures, what is left to do, background and account side by side, then the story */
.rgrid { grid-template-columns: minmax(0, 1fr); }
.ovpair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 16px; align-items: start; }
.ovpair .kvl { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ovpair .kvl dt { font-size: 12px; margin-top: 10px; }
.ovpair .kvl dt:first-child { margin-top: 0; }
.ovpair .kvl dd { margin: 1px 0 0; }
#sec-ov .glance2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
@media (max-width: 860px) { .ovpair { grid-template-columns: minmax(0, 1fr); } }

/* the student record, all tabs (9 November 2026) */
.rsechead { margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.rsechead h2 { margin: 0; }
.rseg { flex: none; }
.alert-acts { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bigfig { font-size: 24px; letter-spacing: -.8px; }
.rt { text-align: right; }
.fr { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.fr:first-child { border-top: 0; }
.fr.th { background: var(--soft); border-radius: var(--r) var(--r) 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.fr .row { justify-content: flex-start; }
@media (max-width: 760px) { .fr { grid-template-columns: 1fr 1fr; } .fr.th { display: none; } .fr .rt { text-align: left; } }
.subt .sr.nocode { grid-template-columns: 1.7fr 84px 70px 74px; min-width: 520px; }
.u-pad-8 { padding: 8px; }
.u-h-180 { height: 180px; }
.cl-h .cl-sub { font-weight: 600; }
.cl-h .cl-meta { margin-top: 2px; }
.addnote { padding: 0; margin-bottom: 14px; }
.addnote > summary { list-style: none; cursor: pointer; margin: 14px; display: inline-flex; }
.addnote > summary::-webkit-details-marker { display: none; }
.addnote-in { padding: 0 18px 18px; }
.rmore .more-list a { cursor: pointer; }
.rsec .rmore { position: relative; }
.pfdirty { color: var(--muted); font-size: 13px; }
#pfbox #formbody { max-width: 920px; }
.lockd b { color: var(--ink); }
.fr .chip { justify-self: start; }

.docadd { padding: 14px; width: 300px; }
.docadd .fld { margin: 0; }

/* Today: a line that only informs sits last and is quieter; a programme over its seats shows it; on a phone the line's words get the room */
.u-today-sum { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.qrow.quiet .qt b { color: var(--muted); font-weight: 600; }
.qrow.quiet .qn { background: transparent; color: var(--muted); font-weight: 600; }
.bar.over > i { background: var(--warn); }
@media (max-width: 760px) {
	.qrow .qmain { grid-template-columns: minmax(0, 1fr) auto 16px 44px; gap: 8px; }
	.qrow .qmain > .qt { grid-column: 1; }
}
.tcard .bp .bpv.over, .tcard .bp .bpv.over b { color: var(--warn); }
.tstat .ts .overn { color: var(--warn); font-weight: 600; }
.tcard .bp .bpv.over, .tcard .bp .bpv.over b { color: var(--warn); }
.tstat .ts .overn { color: var(--warn); font-weight: 600; }

/* Admin, Connections: services as grouped rows (one line each, the details folded) */
.cx { max-width: 980px; }
.cx-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.cx-skel { height: 160px; max-width: 980px; }
.cx-group { margin: 0 0 22px; }
.cx-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.cx-item { border: 1px solid var(--line); background: var(--card); border-radius: 12px; margin-bottom: 8px; }
.cx-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 190px 172px; align-items: center; gap: 10px 14px; padding: 10px 14px; }
.cx-toggle { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.cx-toggle:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 3px; border-radius: 6px; }
.cx-car { color: var(--muted); width: 14px; flex: none; font-size: 13px; }
.cx-name { display: flex; flex-direction: column; min-width: 0; }
.cx-name b { font-size: 14px; }
.cx-name .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-last { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cx-act { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cx-act .info-b { margin-left: 0; top: 0; }
.cx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.cx-dot.ok { background: var(--ok); } .cx-dot.bad { background: var(--bad); } .cx-dot.warn { background: var(--warn); }
.cx-detail { border-top: 1px solid var(--line); padding: 12px 14px 14px 38px; display: grid; gap: 10px; }
.cx-detail[hidden] { display: none; }
.cx-detail .kvl { grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); }
.cx-miss { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.cx-detail .info-p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
	.cx-row { grid-template-columns: minmax(0, 1fr) auto; }
	.cx-last { grid-column: 1 / -1; }
	.cx-act { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
	.cx-toggle { min-height: 44px; }
	.cx-detail { padding-left: 14px; }
	.cx-detail .kvl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.cx-detail .kvl dt { margin-top: 8px; }
	.cx-name .muted { white-space: normal; }
}
.cx-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 760px; margin: 0 0 14px; }

/* Page review, step 1 (10 November 2026): shared fixes for lists, pager and the Ask button */
.lbar-one { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.lbar-l { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.lbar-one .search-in { flex: 0 1 220px; min-width: 170px; }
.lbar-one .fbar select.field-in, .lbar-one .fbar .cmb { min-width: 120px; }
.lbar-one .fbar .cmb-in { min-width: 120px; padding-top: 8px; padding-bottom: 8px; }
.lbar-one .fbar { margin: 0; }
.lbar-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.lp-empty .lbar-one .search-in, .lp-empty .lbar-one #lfbar, .lp-empty .lbar-one .lbar-act > :not(.btn.primary) { display: none; }
.pgr label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pgr .cmb { display: inline-block; width: 104px; }
.pgr .cmb .cmb-in { padding: 6px 26px 6px 12px; }
.main .wrap { padding-bottom: 96px; }
.dt .dr[data-act^="mopen:"] { position: relative; }
.dt .dr[data-act^="mopen:"]:not(.th)::after { content: "\203A"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.dt .dr[data-act^="mopen:"]:not(.th) > :last-child { padding-right: 20px; }
@media (max-width: 760px) { .lbar-one { flex-direction: column; align-items: stretch; } .lbar-one .search-in { flex: 1 1 100%; } .lbar-act { flex-wrap: wrap; width: 100%; } }
.dt .dr > .nw { white-space: nowrap; }
.jbreplist { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 10px; margin-top: 8px; }
.jbrepg { font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 2px; }
.jbrepl { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }

/* Page review: registrar */
.rdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; flex: none; vertical-align: middle; }
.rdot.gray { background: var(--muted); }
.rdot.ok { background: var(--ok, var(--navy-2)); }
.thead .sumn { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.tstat .ts .overn { display: inline-flex; align-items: center; }
.qgh { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: .02em; margin: 14px 0 2px; }
.qlist > .qgrp:first-child .qgh { margin-top: 2px; }
.qrow .qt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); text-decoration: none; }
.qrow .qt .muted { font-size: 12px; }
.qrow .qmain { padding: 9px 0; gap: 12px; }
.qrow .info-b.sm { flex: none; top: 0; margin-left: 0; }
.qrow .qtext { margin: 0 0 10px 48px; font-size: 13px; color: var(--muted); }
.qrow .qgo { color: var(--muted); }
.qquiet { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; }
.qquiet > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.tcard .bp { grid-template-columns: minmax(110px, 1fr) auto 60px; }
.tcard .bp .bpv { white-space: nowrap; }
.tcard .bp .bpv .overby { color: var(--bad); font-weight: 600; font-size: 12px; }
.tcard .bp .bar.over > i { background: var(--bad); }
.ag .agm .muted { margin-top: 2px; }
.tcard .bp .bpv.over { color: var(--muted); }
.sdot { display: inline-flex; align-items: center; font-size: 13px; white-space: nowrap; }
.ellip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apbulk { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.apkinds { flex-wrap: wrap; }
.lbar .apbulk[hidden] { display: none; }
.admtop { display: flex; align-items: center; gap: 8px; flex: none; }
.admnav { display: inline-flex; gap: 4px; }
.admnav .icon-btn { width: 32px; height: 32px; font-size: 20px; line-height: 1; }
.more-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.more-list a.rej { color: var(--bad); }
.docfold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; padding: 2px 0 8px; }
.docfold > summary::-webkit-details-marker { display: none; }
.docfold > summary h3 { margin: 0; }
.docfold > summary::before { content: "\25B8"; color: var(--muted); margin-right: 6px; }
.docfold[open] > summary::before { content: "\25BE"; }
.docfold > summary h3 { margin-right: auto; }
.admqual { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.attn li .btn { margin-left: 8px; vertical-align: middle; }
.pgr-c { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; margin: 8px 0 0; }
.pgr-c > .row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.pgr-c .btn.sm { min-width: 32px; padding: 0 10px; font-size: 16px; }
.listfoot .pgr.pgr-c { display: flex; }
.listfoot .pgr-c .cmb, .listfoot .pgr-c label .cmb { width: 108px; }
.msbar.over i { background: var(--bad); }
.merstrip .overby { font-size: 13px; font-weight: 600; color: var(--bad); letter-spacing: 0; }
.merdet { margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.merdet > summary { cursor: pointer; padding: 10px 14px; font-size: 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.merdet > summary::-webkit-details-marker { display: none; }
.merdet > summary::before { content: "\25B8"; color: var(--muted); }
.merdet[open] > summary::before { content: "\25BE"; }
.merdet .mer-side { border: 0; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; max-width: 560px; }
.rdot.warn { background: var(--warn); }
.obsel { width: auto; min-width: 220px; }
.obstrip { flex-wrap: wrap; }
.obdot { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
.obdot .rdot { margin: 0; }
.lvwhy { white-space: pre-wrap; overflow-wrap: anywhere; }
.obwho { display: grid; gap: 1px; min-width: 0; }
.obwho small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.stur { grid-template-columns: minmax(190px, 2fr) 150px minmax(120px, 1.6fr) 90px 110px 150px; }
.stur .first.row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.stur .stun { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stut .stur > .nw { white-space: nowrap; }
.stuseg { flex-wrap: wrap; }
.lbar-one .stuseg { flex: 0 1 auto; }
.lbar-one #stuq { flex: 0 1 260px; min-width: 190px; }
@media (max-width: 760px) { .stur { grid-template-columns: none; } }
.idv-big { max-width: 640px; padding: 24px; }
.idv-big .idv-body { gap: 20px; margin-top: 16px; align-items: flex-start; }
.idv-big .avatar.lg { width: 96px; height: 96px; font-size: 24px; }
.idv-big h2 { font-size: 24px; }
#idres:empty { display: none; }
.seg2 .cnt-bad, .seg .cnt-bad { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--bad); color: var(--white); font-size: 12px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.linkb { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--navy-2); cursor: pointer; text-decoration: underline; }
.linkb.on { font-weight: 700; }
.grv-late { color: var(--bad); font-weight: 700; }
.lbar-r { justify-content: flex-end; }
@media (max-width: 760px) {
	.dmain > .row:first-child { flex-wrap: wrap; }
	.dmain > .row:first-child > .grow { flex: 1 1 140px; min-width: 0; }
	.admtop { flex: 1 1 100%; justify-content: flex-start; }
	.admnav .icon-btn { width: 44px; height: 44px; }
	.pgr-c .btn.sm { min-width: 44px; }
	.stur { display: flex !important; flex-wrap: wrap; }
}
.tcard .bp .bpv.over b { color: var(--ink); }
/* Page review: setup */
.ov-more { margin: 14px 0 0; font-size: 13px; }
.ov-row { margin-bottom: 16px; }
.ov-row .cardx { min-width: 0; }
.sdt { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sdt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.sdt.ok::before { background: var(--ok); } .sdt.warn::before { background: var(--warn); } .sdt.bad::before { background: var(--bad); }
.aud-flt { flex-wrap: wrap; gap: 10px; }
.aud-flt { flex-wrap: nowrap; align-items: center; }
.aud-flt .search-in { flex: 1 1 180px; min-width: 150px; }
.row.lbar.aud-flt select.field-in { width: 140px; min-width: 0; flex: 0 0 140px; }
.row.lbar.aud-flt .dp { flex: 0 0 136px; width: 136px; min-width: 0; }
@media (max-width: 1100px) { .aud-flt { flex-wrap: wrap; } }
.aud-one .gtool .search-in { display: none; }
.aud-one .gtool { justify-content: space-between; }
.aud-chg { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; line-height: 1.3; }
.aud-ab { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.aud-ab small { font-size: 12px; }
.aud-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.row.lbar.aud-flt .cmb { flex: 0 0 140px; width: 140px; min-width: 0; }
.row.lbar.aud-flt .dp-in { width: 100%; min-width: 0; padding-right: 30px; }
.row.lbar.aud-flt { gap: 8px; }
.tt-bar { flex-wrap: wrap; gap: 10px; align-items: center; }
.tt-bar .cmb { flex: 0 0 128px; width: 128px; min-width: 0; }
.tt-bar .cmb .cmb-in { min-width: 0; }
.week.wk-6, .week.wk-7 { display: flex; gap: 8px; align-items: flex-start; }
.week.wk-6 .wday, .week.wk-7 .wday { flex: 1.5 1 0; }
.week.wk-6 .wday.empty, .week.wk-7 .wday.empty { flex: .6 1 0; }
.week .wday { padding: 10px; min-height: 0; min-width: 0; }
.week .wday.empty { background: transparent; border-style: dashed; padding: 8px 10px; }
.week .wh { font-size: 13px; }
.tt-none { padding: 2px 0; }
.cls-sm { padding: 7px 9px; min-width: 0; }
.cls-sm .cls-l1 { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.cls-sm .cls-l1 .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cls-sm .cls-l2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-list { display: grid; gap: 10px; }
.tt-lr { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--soft); cursor: pointer; font-size: 14px; }
.tt-lr:hover { background: var(--info-bg); }
.tt-lr .cn { font-weight: 600; }
@media (max-width: 760px) { .week.wk-6, .week.wk-7 { flex-direction: column; } .week.wk-6 .wday, .week.wk-7 .wday, .week.wk-6 .wday.empty { flex: none; width: 100%; } .tt-lr { grid-template-columns: 1fr; gap: 2px; } .tt-bar .cmb { flex: 1 1 100%; width: 100%; } }
.rep-one { gap: 8px; margin: 0 0 14px; flex-wrap: nowrap; }
.rep-one .search-in { flex: 1 1 auto; max-width: 640px; }
#reptabs.dim { opacity: .45; }
.repl2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.repl2 .repr { display: block; padding: 12px 18px; border-top: 1px solid var(--line); }
.repl2 .repr:nth-child(-n+2) { border-top: 0; }
.repl2 .repr:nth-child(odd) { border-right: 1px solid var(--line); }
.repl2 .replist, .replist:has(.repl2) { margin-top: 0; }
@media (max-width: 760px) { .repl2 { grid-template-columns: minmax(0, 1fr); } .repl2 .repr:nth-child(2) { border-top: 1px solid var(--line); } .repl2 .repr:nth-child(odd) { border-right: 0; } }
.rep-has { gap: 8px; align-items: center; margin: 0 0 10px; }
.rg-nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-act { gap: 6px; flex-wrap: nowrap; }
.rg-fac { margin-left: 6px; }
.pick-bar { flex-wrap: wrap; gap: 10px; align-items: center; }
.pick-bar .cmb { flex: 1 1 230px; min-width: 200px; max-width: 340px; }
.state-note { flex-basis: 100%; }
.more-menu { width: 190px; padding: 6px; }
.more-menu .mi { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.lp-few .lbar-one #lfbar { display: none; }
.cp-h { margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.cp-row { cursor: pointer; }
.cp-act { display: flex; justify-content: flex-end; }
.cp-row .first a { font-weight: 600; }
.cp-row .first a { text-decoration: none; color: var(--ink); } .cp-row .first a:hover { text-decoration: underline; }
.dp-pub, .ds-pub { margin-left: auto; align-self: center; }
.ds-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }
.dk-stat { display: inline-flex; align-items: center; gap: 8px; }
.dk-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 2px; }
.dk-h:first-child { margin-top: 2px; }
.dk-bar .cmb { flex: 0 0 440px; width: 440px; max-width: 100%; }
/* Page review: money */
.pr-one { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.pr-one > .pr-lead, .pr-lead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.pr-one > .pr-lead:empty { display: none; }
.pr-gbox, .pr-gbox .gx { display: contents; }
.pr-one .gtool { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.pr-one .gtool .gcount { display: none; }
.pr-one .gtool > .row { margin-left: auto; }
.pr-one .gtool .search-in { flex: 0 1 220px; min-width: 160px; }
.pr-one .gchips, .pr-one .gchartbox, .pr-one .gmain, .pr-one .gpgbox, .pr-one .empty-state, .pr-one .skel, .pr-one .gx > .alert { flex: 1 1 100%; min-width: 0; }
.pr-one .fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pr-st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.pr-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.pr-st.ok::before { background: var(--ok); } .pr-st.warn::before { background: var(--warn); } .pr-st.bad::before { background: var(--bad); }
.pr-st.bad { color: var(--ink); }
.pr-st:not(.ok):not(.warn):not(.bad) { color: var(--muted); }
.pr-d { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 0 1px 6px; vertical-align: middle; background: var(--muted); }
.pr-d.ok { background: var(--ok); } .pr-d.warn { background: var(--warn); } .pr-d.bad { background: var(--bad); }
.pr-n { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; font-style: normal; line-height: 18px; text-align: center; }
.pr-menu { position: fixed; z-index: 160; min-width: 180px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; }
.pr-mi { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pr-mi:hover, .pr-mi:focus-visible { background: var(--soft); outline: none; }
.pr-mi.danger { color: var(--bad); }
.pr-dates > summary { display: inline-flex; align-items: center; }
.pr-range { font-weight: 500; color: var(--muted); margin-left: 2px; }
.pr-dates .more-list.fpanel { width: 260px; }
.pr-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.pr-top .chip { text-decoration: none; }
@media (max-width: 760px) {
	.pr-one .gtool { flex-basis: 100%; }
	.pr-one .gtool .search-in { flex: 1 1 100%; }
	.pr-mi { min-height: 44px; }
	.pr-lead { width: 100%; }
}
.pr-gap { color: var(--warn); }
.pr-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
#gzp, #gzt { width: auto; min-width: 200px; }
.pr-settings { max-width: 980px; }
.pr-savebar { position: sticky; bottom: 0; padding: 12px 0; margin-top: 8px; background: var(--card); }
.fstack { margin: 0 0 22px; }
.fstack > h3 { font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pr-top.end { justify-content: flex-end; }
.pr-top .info-p { flex: 1 1 100%; margin: 0; color: var(--muted); }
.info-p.small { font-size: 13px; }
.pr-top .row { flex-wrap: wrap; }
.pr-top .row > .info-p, .pr-top > .info-p { flex: 1 1 100%; margin: 0; }
.pr-prog { display: inline-flex; align-items: center; gap: 10px; }
.pr-bar { appearance: none; -webkit-appearance: none; width: 90px; height: 6px; border: 0; border-radius: 999px; background: var(--soft); overflow: hidden; vertical-align: middle; }
.pr-bar::-webkit-progress-bar { background: var(--soft); border-radius: 999px; }
.pr-bar::-webkit-progress-value { background: var(--navy-2); border-radius: 999px; }
.pr-bar::-moz-progress-bar { background: var(--navy-2); border-radius: 999px; }
.pr-two { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pr-two > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-bar.sm { width: 44px; height: 5px; }
.lvg > #lvidle, .lvg > .empty-state { grid-column: 1 / -1; }
@media (min-width: 761px) {
	.fb-fz .gr > .gc:nth-child(-n+2) { position: sticky; z-index: 2; background: var(--card); }
	.fb-fz .gr > .gc:nth-child(1) { left: 0; }
	.fb-fz .gr > .gc:nth-child(2) { left: var(--fz1, 200px); box-shadow: 1px 0 0 var(--line); }
	.fb-fz .gr.gh > .gc:nth-child(-n+2) { background: var(--soft); }
	.fb-fz .gd.odd > .gc:nth-child(-n+2) { background: color-mix(in srgb, var(--soft) 55%, var(--card)); }
}
.pr-wrap { white-space: pre-line; overflow-wrap: anywhere; }
/* Page review: people */
.gl-wrap { max-width: 900px; }
.gl-head { margin-bottom: 14px; }
.gl-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.gl-bar { height: 8px; border-radius: 8px; background: var(--soft); margin-top: 10px; overflow: hidden; }
.gl-bar > div { height: 100%; background: var(--navy); }
.gl-card { margin-bottom: 14px; padding-bottom: 8px; }
.gl-h { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.gl-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gl-quiet { display: flex; align-items: center; gap: 8px; padding: 6px 4px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.gl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gl-dot.ok { background: var(--ok); }
.gl-dot.todo { border: 1.5px solid var(--muted); box-sizing: border-box; }
.gl-count .gl-dot.todo { background: var(--warn); border: 0; }
.gl-dot.na { background: var(--line); }
.gl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.gl-row:first-of-type { border-top: 0; }
.gl-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gl-t { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.gl-t input { margin: 0; flex: none; }
.gl-go { font-size: 13px; white-space: nowrap; }
.gl-more { grid-column: 1 / -1; margin: 4px 0 0 18px; font-size: 13px; color: var(--muted); }
.gl-fold { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.gl-fold:hover { color: var(--navy); }
.gl-chev { display: inline-block; width: 10px; text-align: center; }
.hc-wrap { max-width: none; }
.hc-head { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.hc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.hc-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: grid; gap: 4px; align-content: start; }
.hc-card.bad { border-color: var(--bad); }
.hc-t { display: flex; align-items: center; gap: 8px; }
.hc-st { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.hc-card.bad .hc-st { color: var(--bad); }
.hc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hc-dot.ok { background: var(--ok); } .hc-dot.warn { background: var(--warn); } .hc-dot.bad { background: var(--bad); }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.hc-ok { display: grid; grid-template-columns: 8px 170px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hc-ok .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .hc-list { grid-template-columns: minmax(0, 1fr); } .hc-ok { grid-template-columns: 8px minmax(0, 120px) minmax(0, 1fr); } .hc-head { flex-wrap: wrap; } }
.pr-sub { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-two { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; white-space: normal; }
.pr-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pr-iw { display: inline-flex; align-items: center; }
.pr-iw .info-b { margin-left: 0; }
.pr-note { margin: 6px 0 12px; max-width: 70ch; font-size: 13px; color: var(--muted); }
.gl-dot.warn { background: var(--warn); } .gl-dot.bad { background: var(--bad); }
.pr-sw { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; flex: none; vertical-align: middle; }
.pr-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: left .15s; box-shadow: var(--shadow); }
.pr-sw:checked { background: var(--navy); }
.pr-sw:checked::after { left: 18px; }
.pr-sw:disabled { opacity: .5; cursor: default; }
.pr-sw:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.pr-mgroup { margin-bottom: 14px; padding-bottom: 6px; }
.pr-mh { margin: 0 0 6px; font-size: 16px; }
.dr.pr-mrow { grid-template-columns: minmax(220px, 1.6fr) 56px 150px minmax(120px, 1.2fr) 70px; gap: 12px; padding: 8px 16px; align-items: center; }
.pr-mrow .nname { display: grid; min-width: 0; }
.pr-mrow .nname small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-mrow > span:nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .dr.pr-mrow { grid-template-columns: minmax(0, 1fr) auto auto; } .dr.pr-mrow > span:nth-child(3), .dr.pr-mrow > span:nth-child(4) { display: none; } .dr.pr-mrow.th { display: none; } }
.cx { padding-right: 60px; }
.cx-group h3 { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.cx-row { grid-template-columns: minmax(0, 1fr) 92px 190px 212px 16px; cursor: pointer; }
.cx-row:hover { background: var(--soft); border-radius: 12px; }
.cx-act { display: grid; grid-template-columns: 56px 116px 24px; gap: 8px; align-items: center; justify-content: end; }
.cx-s1, .cx-s2 { display: flex; justify-content: flex-end; }
.cx-s1 .btn, .cx-s2 .btn { width: 100%; justify-content: center; white-space: nowrap; }
.cx-chev { color: var(--muted); font-size: 16px; line-height: 1; transition: transform .15s; text-align: center; }
.cx-item.open .cx-chev { transform: rotate(90deg); }
@media (max-width: 760px) { .cx { padding-right: 0; } .cx-row { grid-template-columns: minmax(0, 1fr) auto 16px; } .cx-last { grid-column: 1 / -2; } .cx-act { grid-column: 1 / -1; grid-template-columns: auto auto 24px; justify-content: start; } .cx-s1:empty { display: none; } .cx-s1 .btn, .cx-s2 .btn { width: auto; } }
.pr-wf { padding: 4px 0 8px; }
.dr.pr-wrow { grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 1fr) minmax(220px, 2fr) 120px; gap: 12px; padding: 8px 16px; align-items: center; }
.dr.pr-wrow > span:first-child { white-space: normal; overflow: visible; }
.pr-wgrp { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 6px; border-top: 1px solid var(--line); background: var(--soft); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chips .chip { white-space: nowrap; }
.pr-x { width: 18px; height: 18px; min-height: 0; padding: 0; }
.pr-wrow .field-in { padding: 4px 10px; min-height: 34px; font-size: 13px; }
@media (max-width: 760px) { .dr.pr-wrow { grid-template-columns: minmax(0, 1fr); } .dr.pr-wrow.th { display: none; } }
.gl-dot.navy { background: var(--navy); }
.pr-ends { display: flex; gap: 6px; justify-content: flex-end; }
.pr-lh { display: flex; align-items: center; gap: 6px; }
.pr-lh .info-b { margin-left: 0; }
.pr-lh label { margin: 0; }
.fld .pr-note { margin: 2px 0 6px; font-size: 12px; }
.pr-settings { max-width: 860px; }
.pr-savebar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 20px -16px -16px; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.pr-saved { font-size: 14px; font-weight: 600; color: var(--ok); }
.as-form #formbody { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 28px; align-items: start; }
.as-form .ftabs { grid-row: 1 / span 12; flex-direction: column; flex-wrap: nowrap; gap: 2px; overflow: visible; margin: 0; border-bottom: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.as-form .ftabs button { text-align: left; white-space: normal; border-bottom: 0; border-radius: 8px; padding: 9px 12px; margin: 0; }
.as-form .ftabs button.on { background: var(--soft); color: var(--ink); }
.as-form .fpanel { grid-column: 2; }
@media (max-width: 760px) { .as-form #formbody { grid-template-columns: minmax(0, 1fr); } .as-form .ftabs { grid-row: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 6px; margin-bottom: 14px; } .as-form .ftabs button { white-space: nowrap; flex: none; } .as-form .fpanel { grid-column: 1; } }
.pr-lh > label:not(.chk) { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pr-lh > label i { color: var(--ink-2); font-style: normal; font-weight: 700; }
.pr-lh { flex-wrap: wrap; }
.pr-lh .pr-note { flex: 0 0 100%; margin: 2px 0 4px; }
.pr-sw::before { content: ""; position: absolute; inset: -12px -6px; }
.dr.pr-mrow > span[data-l]::before, .dr.pr-wrow > span[data-l]::before { content: none !important; }
@media (max-width: 760px) {
	.cx-chev { grid-row: 1; grid-column: 3; align-self: center; }
	.dr.pr-mrow > span:first-child { grid-column: 1; }
	.pr-wrow .field-in { min-height: 44px; }
}
input.pr-sw { width: 36px; height: 20px; min-width: 36px; min-height: 20px; }

/* Page review: leftovers */
.cb { color: var(--bad); font-weight: 600; }
.cal-act { justify-content: flex-end; margin-bottom: 14px; }
.cal-r { grid-template-columns: minmax(180px, 1.6fr) 130px 130px 90px 80px; }
.cal-y + .cal-y { border-top: 1px solid var(--line); }
.cal-y > .cal-r { font-weight: 600; cursor: pointer; }
.cal-y > .cal-r:hover { background: var(--soft); }
.cal-t { background: var(--soft); }
.cal-t .cal-r { font-weight: 400; }
.cal-t .cal-r .first { padding-left: 24px; font-weight: 500; }
.cal-t .cal-r[data-act] { cursor: pointer; }
.cal-add { padding: 10px 20px 14px 44px; }
.cal-b { text-align: right; }
.yrcal .dr:last-child { border-bottom: 0; }
@media (max-width: 760px) {
	.cal-r { grid-template-columns: minmax(0, 1fr) 110px 80px; }
	.cal-r > .hs { display: none; }
	.cal-add { padding-left: 20px; }
}
.ov-more a, .ds-pub, .dp-pub { display: inline-flex; align-items: center; min-height: 24px; }
/* a job given only some screens of an area: each screen sits under the area, slightly in */
.jbscr { margin: 0 0 8px 18px; border-left: 2px solid var(--line); }
.jbscr[hidden] { display: none; }
/* an outside agent's own pages (agentview.js) */
.dt.agc4 .dr { grid-template-columns: minmax(150px, 1.5fr) minmax(130px, 1.4fr) minmax(110px, 1fr) minmax(100px, .8fr); }
.dt.agc3 .dr { grid-template-columns: 140px 140px minmax(120px, 1fr); }
.dt.agc5 .dr { grid-template-columns: minmax(140px, 1.2fr) minmax(120px, 1.4fr) 120px minmax(140px, 1.2fr) minmax(90px, auto); }
.agv-skel { height: 260px; }

/* Page review: lists and staff loader */
.lp-empty .lbar.lbar-one .lbar-act.row > .btn[data-act="blkopen"] { display: inline-flex; }
/* Page review: small items */
.tabs a .badge, .subnav a .badge { position: static; display: inline-block; margin-left: 8px; background: var(--red); color: var(--white); font-size: 12px; line-height: 18px; min-width: 18px; text-align: center; border-radius: 99px; padding: 0 6px; font-style: normal; font-weight: 700; vertical-align: 1px; }
/* Page review: clickthrough */
/* a row of choices with counts (for example Revaluation) scrolls inside itself and never widens the page */
.seg2 { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.seg2::-webkit-scrollbar { display: none; }
.seg2 button { flex: none; white-space: nowrap; }
.pr-lead > div, .pr-top > div { min-width: 0; max-width: 100%; }

/* Browser compatibility (Safari and Firefox, checked by reading the code; see tests/t_browser_compat.py) */
/* a row of tabs that scrolls inside itself: Safari before 18.2 ignores scrollbar-width, so its own scrollbar is hidden too */
.ftabs::-webkit-scrollbar, .tabs.inner::-webkit-scrollbar { display: none; }
/* iPhone and iPad Safari: 100vh is the tall screen with the address bar hidden, so a full-height box overflows; dvh is the visible height (Chrome, Edge and Firefox keep vh where dvh is missing) */
@supports (height: 100dvh) {
	.shell, .boot, .sapp { min-height: 100dvh; }
	.qbox { max-height: 90dvh; }
	@media (min-width: 761px) { .rail { height: 100dvh; } .shp.big { height: calc(100dvh - 100px); } }
	@media (max-width: 760px) { .shp.big { height: calc(100dvh - 160px - env(safe-area-inset-bottom)); } }
}
/* iPhone and iPad Safari zoom the whole page when a box with text smaller than 16 px is touched and do not zoom back: keep every typed box at 16 px there only (the test is true on iOS only) */
@supports (-webkit-touch-callout: none) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), select, textarea { font-size: 16px !important; }
}
/* Page review: uifixes */
/* a cell cut to two lines keeps no padding below, so a third line never peeks out under the ellipsis */
.gd .gc:not(.num):not(.ghc):not(:has(*)) { padding-top: 0; padding-bottom: 0; }
/* the Save bar and the pagers keep clear of the floating Ask button, and on a phone the Save bar sits above the bottom menu (about 69 px) instead of under it */
.sticky-foot { padding-right: 76px; }
.pgr { padding-right: 64px; }
@media (max-width: 760px) { .sticky-foot { bottom: calc(76px + env(safe-area-inset-bottom)); } .pgr { padding-right: 0; } .listfoot .pgr { padding-right: 0; } }
/* the red count badge: dark text on the lighter red of dark mode (white on it measured 2.7 to 1) */
:root[data-theme="dark"] .rail a .badge, :root[data-theme="dark"] .railpop .badge, :root[data-theme="dark"] .tabs a .badge, :root[data-theme="dark"] .subnav a .badge { color: var(--on-red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rail a .badge, :root:not([data-theme="light"]) .railpop .badge, :root:not([data-theme="light"]) .tabs a .badge, :root:not([data-theme="light"]) .subnav a .badge { color: var(--on-red); } }
#sheet.wider { width: min(1040px, 100%); }
.tr.th .sorth { cursor: pointer; }
/* the marks sheet on a phone: a box is as tall as every other box and 16 px so the phone does not zoom in; the same keys move between boxes as on a laptop */
@media (max-width: 760px) { .mk input[data-mk] { min-height: 44px; font-size: 16px; } }
.u-pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.cbadge { background: var(--red); color: var(--white); font-size: 12px; border-radius: 99px; padding: 0 6px; font-weight: 600; margin-left: 4px; }
.u-wrap { flex-wrap: wrap; }
/* Density (21 November 2026, the user: Comfortable and Compact looked the same and everything was too big): on computer widths every screen is smaller than before, and the two choices (avatar menu, Density) now differ.
   Comfortable is the new usual size: 13 px text, 34 px buttons, a 68 px menu rail. Compact is smaller still: 12 px text, 30 px buttons, a 60 px rail and tighter rows. A phone keeps its 44 px touch sizes (this block is for computers only). */
@media (min-width: 761px) {
	body { font-size: 13px; }
	.shell { grid-template-columns: 68px 1fr; }
	.rail { padding: 12px 0; }
	.rail .logo { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; }
	.rail .logo img { width: 30px; }
	.rail a { width: 60px; padding: 7px 0; font-size: 12px; }
	.wrap { padding: 22px 32px 80px; }
	.btn { min-height: 34px; padding: 0 13px; }
	.btn.sm { min-height: 28px; padding: 0 10px; }
	.icon-btn { width: 36px; height: 36px; }
	.field-in { padding: 7px 12px; }
	.search-in input { padding: 7px 0; }
	.tabs { margin-bottom: 14px; }
	.tabs a { padding: 7px 14px; font-size: 13px; }
	.hello h1, h1.u-font-size-32px { font-size: 20px !important; }
	.dr { padding: 9px 16px; font-size: 13px; }
	.tbl .tr { padding: 9px 16px; }
	.cardx { padding: 16px; }
	.sc { padding: 14px; }
	.ginner .gr { font-size: 13px; }
	.topline { margin-bottom: 12px; }
	.hello p { font-size: 13px; }
}
@media (min-width: 761px) {
	:root[data-density="compact"] body { font-size: 12px; }
	:root[data-density="compact"] .shell { grid-template-columns: 60px 1fr; }
	:root[data-density="compact"] .rail { padding: 8px 0; gap: 2px; }
	:root[data-density="compact"] .rail .logo { width: 36px; height: 36px; margin-bottom: 6px; }
	:root[data-density="compact"] .rail .logo img { width: 26px; }
	:root[data-density="compact"] .rail a { width: 54px; padding: 5px 0; }
	:root[data-density="compact"] .wrap { padding: 14px 22px 70px; }
	:root[data-density="compact"] .btn { min-height: 30px; padding: 0 11px; }
	:root[data-density="compact"] .btn.sm { min-height: 25px; padding: 0 9px; }
	:root[data-density="compact"] .icon-btn { width: 32px; height: 32px; }
	:root[data-density="compact"] .field-in { padding: 5px 10px; }
	:root[data-density="compact"] .search-in input { padding: 5px 0; }
	:root[data-density="compact"] .tabs { margin-bottom: 10px; }
	:root[data-density="compact"] .tabs a { padding: 5px 12px; font-size: 12px; }
	:root[data-density="compact"] .dr { padding: 6px 14px; font-size: 12px; }
	:root[data-density="compact"] .tbl .tr { padding: 6px 14px; }
	:root[data-density="compact"] .cardx { padding: 12px; }
	:root[data-density="compact"] .sc { padding: 10px; }
	:root[data-density="compact"] .ginner .gr { font-size: 12px; }
	:root[data-density="compact"] .topline { margin-bottom: 8px; }
	:root[data-density="compact"] .hello p { font-size: 12px; margin-top: 4px; }
}
/* the browser's own size for a bare <small> is 83% of its parent (11.7 px here): nothing on a page may be under 12 px (Seats and merit and Live classes used it) */
small { font-size: 12px; }
/* page titles are 24 px: the general 32 px utility is also used for titles and would win, so the title rule names the h1 (found on QA 13 November, the first change did not take) */
h1.u-font-size-32px { font-size: 24px !important; letter-spacing: -.6px; line-height: 1.15; }   /* the utility is !important, so the title rule must be too (the first version of this rule lost to it on QA) */
/* the Learning page: cards a little apart and the three figures side by side */
#lrnmain .cardx { margin-bottom: 14px; }
#lrnmain .cardx h2 { margin-bottom: 4px; }
.lrn-figs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.lrn-fig { background: var(--soft); border-radius: var(--r); padding: 12px 18px; min-width: 150px; }
.lrn-fig b { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.lrn-fig small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; }

/* the weekly attendance grid (faculty, Attendance): students down, classes across, the first column stays in view */
.ag-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.agtbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.agtbl th, .agtbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.agtbl th { font-weight: 700; color: var(--muted); background: var(--soft); }
.agtbl .ag-wk { border-left: 1px solid var(--line); }
.agtbl .ag-name { text-align: left; position: sticky; left: 0; background: var(--card); padding-left: 14px; padding-right: 14px; min-width: 200px; z-index: 1; }
.agtbl thead .ag-name { background: var(--soft); }
.agtbl .ag-c { min-width: 38px; }
.agtbl .ag-a { color: var(--bad); font-weight: 800; }
.agtbl .ag-end { text-align: right; padding-right: 14px; }
.agtbl tfoot td { border-bottom: 0; }

/* the message in the sent log */
.ml-body { white-space: pre-wrap; margin: 0; }
/* the first tab starts where the page's own content starts, so the tabs, the heading and the cards share one left edge */
.tabs a:first-child { padding-left: 0; }
.tabs a:first-child.on::after { left: 0; }
/* See as a student: the lists in the read-only sheet */
.sv-l { margin: 6px 0 0; padding-left: 18px; }
.sv-l li { margin: 2px 0; }

/* the message screen: the tick for everyone sits beside its words */
.ml-all { align-items: center; gap: 8px; }
/* the staff document repository: folders on the left, documents on the right */
.rp-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.rp-tree { position: sticky; top: 16px; }
.rp-f { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; }
.rp-f:hover { background: var(--soft); color: var(--ink); }
.rp-f.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.rp-d1 { padding-left: 22px; } .rp-d2 { padding-left: 34px; } .rp-d3 { padding-left: 46px; }
@media (max-width: 760px) { .rp-wrap { grid-template-columns: minmax(0, 1fr); } .rp-tree { position: static; } }

/* A main button looks like every other button, the Download look: white, a thin border, dark text (13 November 2026, the user asked for it across the application). The red action button, the
   danger button and a button on the dark bar keep their own looks. */
.btn.primary { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.primary:hover { border-color: var(--navy-2); }
:root[data-theme="dark"] .btn.primary { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: var(--ink); } }
.bulk .btn.primary { background: transparent; border-color: rgba(255,255,255,.25); color: var(--white); }

/* The phone bar: the four areas and More share the width equally (More used to take all the room left over and sit far to the right) */
@media (max-width: 760px) { .rail > a, .rail > button.more { flex: 1 1 0; min-width: 0; width: auto; } }

/* skeleton loaders: the heights and gaps that were written on each one */
.u-h-110 { height: 110px !important; }
.u-h-120 { height: 120px !important; }
.u-h-140 { height: 140px !important; }
.u-h-160 { height: 160px !important; }
.u-h-200 { height: 200px !important; }
.u-h-220 { height: 220px !important; }
.u-h-240 { height: 240px !important; }
.u-h-260 { height: 260px !important; }
.u-h-300 { height: 300px !important; }
.u-h-40 { height: 40px !important; }
.u-h-44 { height: 44px !important; }
.u-h-56 { height: 56px !important; }
.u-h-60 { height: 60px !important; }
.u-h-70 { height: 70px !important; }
.u-h-72 { height: 72px !important; }
.u-h-80 { height: 80px !important; }
.u-h-90 { height: 90px !important; }
.u-margin-top-24px { margin-top: 24px !important; }
.u-margin-top-40px { margin-top: 40px !important; }
.u-mw-640 { max-width: 640px !important; }
.u-mw-680 { max-width: 680px !important; }
.u-mw-700 { max-width: 700px !important; }
.u-mw-900 { max-width: 900px !important; }

/* spacing and small text styles that were written on single elements */
.u-c-bad { color: var(--bad) !important; }
.u-c-ink { color: var(--ink) !important; }
.u-c-muted { color: var(--muted) !important; }
.u-c-ok { color: var(--ok) !important; }
.u-fw-600 { font-weight: 600 !important; }
.u-fw-700 { font-weight: 700 !important; }
.u-margin-10px-0 { margin: 10px 0 !important; }
.u-margin-12px-0 { margin: 12px 0 !important; }
.u-margin-14px-0 { margin: 14px 0 !important; }
.u-margin-24px-0 { margin: 24px 0 !important; }
.u-margin-2px-0 { margin: 2px 0 !important; }
.u-margin-4px-0 { margin: 4px 0 !important; }
.u-margin-6px-0 { margin: 6px 0 !important; }
.u-margin-8px-0 { margin: 8px 0 !important; }
.u-margin-bottom-16px { margin-bottom: 16px !important; }
.u-margin-bottom-22px { margin-bottom: 22px !important; }
.u-margin-bottom-24px { margin-bottom: 24px !important; }
.u-margin-bottom-2px { margin-bottom: 2px !important; }
.u-margin-bottom-4px { margin-bottom: 4px !important; }
.u-margin-bottom-8px { margin-bottom: 8px !important; }
.u-margin-top-16px { margin-top: 16px !important; }
.u-margin-top-18px { margin-top: 18px !important; }
.u-margin-top-20px { margin-top: 20px !important; }
.u-margin-top-22px { margin-top: 22px !important; }
.u-margin-top-3px { margin-top: 3px !important; }
.u-text-center { text-align: center !important; }
.u-text-right { text-align: right !important; }

/* styles that were written on single elements, one class for each distinct set (named by what it sets) */
.u-align-self-center { align-self:center !important; }
.u-c-var-bad { --c:var(--bad) !important; }
.u-c-var-muted { --c:var(--muted) !important; }
.u-c-var-ok { --c:var(--ok) !important; }
.u-c-var-warn { --c:var(--warn) !important; }
.u-cursor-default { cursor:default !important; }
.u-flex-1 { flex:1 !important; }
.u-flex-1-1-150px { flex:1 1 150px !important; }
.u-flex-1-1-160px { flex:1 1 160px !important; }
.u-flex-1-1-170px { flex:1 1 170px !important; }
.u-flex-1-1-180px { flex:1 1 180px !important; }
.u-flex-1-1-240px { flex:1 1 240px !important; }
.u-flex-1-1-260px { flex:1 1 260px !important; }
.u-flex-1-min-width-240px { flex:1 !important; min-width:240px !important; }
.u-flex-wrap-wrap-gap-10px { flex-wrap:wrap !important; gap:10px !important; }
.u-flex-wrap-wrap-gap-10px-margin-bottom-10px { flex-wrap:wrap !important; gap:10px !important; margin-bottom:10px !important; }
.u-flex-wrap-wrap-gap-8px { flex-wrap:wrap !important; gap:8px !important; }
.u-flex-wrap-wrap-margin-top-10px-gap-8px { flex-wrap:wrap !important; margin-top:10px !important; gap:8px !important; }
.u-flex-wrap-wrap-margin-top-14px-gap-8px { flex-wrap:wrap !important; margin-top:14px !important; gap:8px !important; }
.u-flex-wrap-wrap-margin-top-8px-gap-8px { flex-wrap:wrap !important; margin-top:8px !important; gap:8px !important; }
.u-font-size-14px { font-size:14px !important; }
.u-font-size-14px-margin-0 { font-size:14px !important; margin:0 !important; }
.u-font-size-14px-margin-0-0-4px { font-size:14px !important; margin:0 0 4px !important; }
.u-font-size-14px-margin-bottom-6px { font-size:14px !important; margin-bottom:6px !important; }
.u-font-size-14px-margin-bottom-8px { font-size:14px !important; margin-bottom:8px !important; }
.u-font-size-14px-margin-top-6px { font-size:14px !important; margin-top:6px !important; }
.u-font-size-14px-margin-top-8px-max-width-640px { font-size:14px !important; margin-top:8px !important; max-width:640px !important; }
.u-font-size-20px-letter-spacing-4px { font-size:20px !important; letter-spacing:-.4px !important; }
.u-font-size-20px-letter-spacing-5px { font-size:20px !important; letter-spacing:-.5px !important; }
.u-font-size-24px-letter-spacing-7px { font-size:24px !important; letter-spacing:-.7px !important; }
.u-font-size-24px-margin-0 { font-size:24px !important; margin:0 !important; }
.u-font-size-32px-margin-12px-0-4px { font-size:32px !important; margin:12px 0 4px !important; }
.u-gap-10px { gap:10px !important; }
.u-gap-10px-flex-wrap-wrap-align-items-center { gap:10px !important; flex-wrap:wrap !important; align-items:center !important; }
.u-gap-10px-flex-wrap-wrap-margin-bottom-10px { gap:10px !important; flex-wrap:wrap !important; margin-bottom:10px !important; }
.u-gap-10px-flex-wrap-wrap-margin-bottom-12px { gap:10px !important; flex-wrap:wrap !important; margin-bottom:12px !important; }
.u-gap-10px-flex-wrap-wrap-margin-bottom-14px { gap:10px !important; flex-wrap:wrap !important; margin-bottom:14px !important; }
.u-gap-10px-margin-10px-0 { gap:10px !important; margin:10px 0 !important; }
.u-gap-10px-margin-top-12px-flex-wrap-wrap { gap:10px !important; margin-top:12px !important; flex-wrap:wrap !important; }
.u-gap-10px-margin-top-14px { gap:10px !important; margin-top:14px !important; }
.u-gap-12px-align-items-flex-end-flex-wrap-wrap { gap:12px !important; align-items:flex-end !important; flex-wrap:wrap !important; }
.u-gap-12px-align-items-flex-start { gap:12px !important; align-items:flex-start !important; }
.u-gap-12px-flex-wrap-wrap { gap:12px !important; flex-wrap:wrap !important; }
.u-gap-12px-flex-wrap-wrap-margin-top-8px { gap:12px !important; flex-wrap:wrap !important; margin-top:8px !important; }
.u-gap-14px { gap:14px !important; }
.u-gap-6px { gap:6px !important; }
.u-gap-6px-color-var-red { gap:6px !important; color:var(--red) !important; }
.u-gap-6px-flex-wrap-nowrap { gap:6px !important; flex-wrap:nowrap !important; }
.u-gap-6px-flex-wrap-wrap { gap:6px !important; flex-wrap:wrap !important; }
.u-gap-6px-flex-wrap-wrap-margin--b9451017 { gap:6px !important; flex-wrap:wrap !important; margin-top:10px !important; align-items:center !important; }
.u-gap-6px-flex-wrap-wrap-margin-bottom-12px { gap:6px !important; flex-wrap:wrap !important; margin-bottom:12px !important; }
.u-gap-6px-flex-wrap-wrap-margin-bottom-8px { gap:6px !important; flex-wrap:wrap !important; margin-bottom:8px !important; }
.u-gap-6px-flex-wrap-wrap-margin-top-4px { gap:6px !important; flex-wrap:wrap !important; margin-top:4px !important; }
.u-gap-8px-align-items-flex-start { gap:8px !important; align-items:flex-start !important; }
.u-gap-8px-flex-wrap-wrap-flex-1-1-100 { gap:8px !important; flex-wrap:wrap !important; flex:1 1 100% !important; }
.u-gap-8px-flex-wrap-wrap-margin-12px-0 { gap:8px !important; flex-wrap:wrap !important; margin:12px 0 !important; }
.u-gap-8px-flex-wrap-wrap-margin-bottom-12px { gap:8px !important; flex-wrap:wrap !important; margin-bottom:12px !important; }
.u-gap-8px-flex-wrap-wrap-margin-bottom-14px { gap:8px !important; flex-wrap:wrap !important; margin-bottom:14px !important; }
.u-gap-8px-flex-wrap-wrap-margin-bottom-6px { gap:8px !important; flex-wrap:wrap !important; margin-bottom:6px !important; }
.u-gap-8px-flex-wrap-wrap-margin-top-12px { gap:8px !important; flex-wrap:wrap !important; margin-top:12px !important; }
.u-gap-8px-flex-wrap-wrap-margin-top-6px { gap:8px !important; flex-wrap:wrap !important; margin-top:6px !important; }
.u-gap-8px-margin-16px-auto-flex--7918f656 { gap:8px !important; margin:16px auto !important; flex-wrap:wrap !important; max-width:560px !important; }
.u-gap-8px-margin-top-10px { gap:8px !important; margin-top:10px !important; }
.u-gap-8px-margin-top-10px-flex-wrap-wrap { gap:8px !important; margin-top:10px !important; flex-wrap:wrap !important; }
.u-gap-8px-margin-top-12px { gap:8px !important; margin-top:12px !important; }
.u-gap-8px-margin-top-8px { gap:8px !important; margin-top:8px !important; }
.u-gap-8px-margin-top-8px-flex-wrap-wrap { gap:8px !important; margin-top:8px !important; flex-wrap:wrap !important; }
.u-grid-column-1-1 { grid-column:1/-1 !important; }
.u-grid-template-columns-1-2fr-1fr-gap-14px { grid-template-columns:1.2fr 1fr !important; gap:14px !important; }
.u-grid-template-columns-1fr-1-2fr-gap-14px { grid-template-columns:1fr 1.2fr !important; gap:14px !important; }
.u-grid-template-columns-1fr-130px { grid-template-columns:1fr 130px !important; }
.u-grid-template-columns-1fr-1fr { grid-template-columns:1fr 1fr !important; }
.u-grid-template-columns-1fr-1fr--08e2dd09 { grid-template-columns:1fr 1fr !important; gap:14px !important; margin-top:14px !important; }
.u-grid-template-columns-1fr-1fr-gap-14px { grid-template-columns:1fr 1fr !important; gap:14px !important; }
.u-grid-template-columns-34px-1fr-100px { grid-template-columns:34px 1fr 100px !important; }
.u-grid-template-columns-34px-1fr-110px-120px { grid-template-columns:34px 1fr 110px 120px !important; }
.u-grid-template-columns-34px-1fr-8c5465c4 { grid-template-columns:34px 1fr 110px 120px !important; cursor:pointer !important; }
.u-grid-template-columns-34px-1fr-90962731 { grid-template-columns:34px 1fr 120px !important; cursor:pointer !important; }
.u-grid-template-columns-50px-min-5edabbfd { grid-template-columns:50px minmax(140px,2fr) 80px 110px minmax(120px,1.4fr) !important; }
.u-grid-template-columns-90px-1fr-40px { grid-template-columns:90px 1fr 40px !important; }
.u-grid-template-columns-90px-min-6082b272 { grid-template-columns:90px minmax(140px,1.6fr) 140px !important; }
.u-grid-template-columns-minmax-1-04dd65a2 { grid-template-columns:minmax(160px,2fr) 90px 90px 110px !important; }
.u-grid-template-columns-minmax-1-19b57aee { grid-template-columns:minmax(160px,2fr) 80px 120px 120px 140px !important; }
.u-grid-template-columns-minmax-1-2b420121 { grid-template-columns:minmax(160px,2fr) 140px 120px !important; }
.u-grid-template-columns-minmax-1-352b21a4 { grid-template-columns:minmax(120px,1.6fr) 90px 150px !important; }
.u-grid-template-columns-minmax-1-5a05b01b { grid-template-columns:minmax(140px,1.4fr) 150px 1fr !important; text-align:left !important; }
.u-grid-template-columns-minmax-1-5f5ea2dd { grid-template-columns:minmax(120px,1.2fr) 70px minmax(130px,2fr) 110px 130px 70px !important; }
.u-grid-template-columns-minmax-1-85d63ec9 { grid-template-columns:minmax(140px,1fr) 90px 90px 90px 80px !important; }
.u-grid-template-columns-minmax-1-8742aaf2 { grid-template-columns:minmax(120px,1fr) 100px minmax(160px,2fr) 110px !important; }
.u-grid-template-columns-minmax-1-a660317b { grid-template-columns:minmax(160px,1.4fr) minmax(140px,1.4fr) 110px minmax(160px,1.2fr) 100px 110px 130px !important; }
.u-grid-template-columns-minmax-1-b9d498f7 { grid-template-columns:minmax(160px,1.4fr) 100px 150px 90px !important; }
.u-grid-template-columns-minmax-1-c40d02e1 { grid-template-columns:minmax(150px,1.2fr) minmax(140px,1.4fr) 110px 120px !important; }
.u-grid-template-columns-minmax-1-fd11c81b { grid-template-columns:minmax(180px,2fr) 110px 120px 80px 100px !important; }
.u-height-110px-margin-bottom-24px { height:110px !important; margin-bottom:24px !important; }
.u-height-12px { height:12px !important; }
.u-letter-spacing-1px { letter-spacing:1px !important; }
.u-margin-0-0-10px { margin:0 0 10px !important; }
.u-margin-0-0-10px-font-size-16px { margin:0 0 10px !important; font-size:16px !important; }
.u-margin-0-0-12px { margin:0 0 12px !important; }
.u-margin-0-0-14px { margin:0 0 14px !important; }
.u-margin-0-0-8px { margin:0 0 8px !important; }
.u-margin-0-0-8px-18px { margin:0 0 8px 18px !important; }
.u-margin-10px-0-0-padding-top-10-514ac0d3 { margin:10px 0 0 !important; padding-top:10px !important; border-top:1px solid var(--line,#dfe3ee) !important; }
.u-margin-10px-0-6px-font-size-14px { margin:10px 0 6px !important; font-size:14px !important; }
.u-margin-10px-0-8px-font-size-14px { margin:10px 0 8px !important; font-size:14px !important; }
.u-margin-12px-0-0-gap-8px-14px-flex-wrap-wrap { margin:12px 0 0 !important; gap:8px 14px !important; flex-wrap:wrap !important; }
.u-margin-12px-0-4px { margin:12px 0 4px !important; }
.u-margin-12px-0-8px { margin:12px 0 8px !important; }
.u-margin-14px-0-8px-font-size-14px { margin:14px 0 8px !important; font-size:14px !important; }
.u-margin-14px-0-border-color-var-navy-2 { margin:14px 0 !important; border-color:var(--navy-2) !important; }
.u-margin-18px-0-8px-font-size-14px { margin:18px 0 8px !important; font-size:14px !important; }
.u-margin-22px-0-8px { margin:22px 0 8px !important; }
.u-margin-2px-0-0 { margin:2px 0 0 !important; }
.u-margin-2px-0-10px { margin:2px 0 10px !important; }
.u-margin-2px-0-6px { margin:2px 0 6px !important; }
.u-margin-2px-0-8px { margin:2px 0 8px !important; }
.u-margin-4px-0-10px { margin:4px 0 10px !important; }
.u-margin-4px-0-10px-18px { margin:4px 0 10px 18px !important; }
.u-margin-4px-0-12px { margin:4px 0 12px !important; }
.u-margin-4px-0-8px { margin:4px 0 8px !important; }
.u-margin-6px-0-0 { margin:6px 0 0 !important; }
.u-margin-6px-0-14px { margin:-6px 0 14px !important; }
.u-margin-8px-0-0 { margin:8px 0 0 !important; }
.u-margin-8px-0-0-18px { margin:8px 0 0 18px !important; }
.u-margin-8px-0-0-padding-8px-12px { margin:8px 0 0 !important; padding:8px 12px !important; }
.u-margin-8px-0-14px { margin:8px 0 14px !important; }
.u-margin-bottom-10px-font-size-1-c84db277 { margin-bottom:10px !important; font-size:16px !important; line-height:1.4 !important; }
.u-margin-bottom-10px-gap-8px { margin-bottom:10px !important; gap:8px !important; }
.u-margin-bottom-12px-gap-10px-flex-wrap-wrap { margin-bottom:12px !important; gap:10px !important; flex-wrap:wrap !important; }
.u-margin-bottom-14px-flex-wrap-wrap-gap-10px { margin-bottom:14px !important; flex-wrap:wrap !important; gap:10px !important; }
.u-margin-bottom-14px-font-size-1-903a4840 { margin-bottom:14px !important; font-size:16px !important; line-height:1.4 !important; }
.u-margin-bottom-14px-max-width-760px { margin-bottom:14px !important; max-width:760px !important; }
.u-margin-bottom-18px-flex-wrap-wrap-gap-12px { margin-bottom:18px !important; flex-wrap:wrap !important; gap:12px !important; }
.u-margin-left-6px { margin-left:6px !important; }
.u-margin-left-8px { margin-left:8px !important; }
.u-margin-left-auto { margin-left:auto !important; }
.u-margin-top-12px-gap-8px { margin-top:12px !important; gap:8px !important; }
.u-margin-top-14px-justify-content-center { margin-top:14px !important; justify-content:center !important; }
.u-margin-top-16px-gap-14px { margin-top:16px !important; gap:14px !important; }
.u-margin-top-4px-color-var-ink-2 { margin-top:4px !important; color:var(--ink-2) !important; }
.u-margin-top-4px-color-var-ink-2-241d1d9f { margin-top:4px !important; color:var(--ink-2) !important; white-space:pre-wrap !important; }
.u-max-height-60vh { max-height:60vh !important; }
.u-max-width-220px { max-width:220px !important; }
.u-max-width-420px { max-width:420px !important; }
.u-max-width-460px-text-align-left { max-width:460px !important; text-align:left !important; }
.u-max-width-560px { max-width:560px !important; }
.u-max-width-600px-margin-top-14px { max-width:600px !important; margin-top:14px !important; }
.u-max-width-600px-margin-top-24px { max-width:600px !important; margin-top:24px !important; }
.u-max-width-640px { max-width:640px !important; }
.u-max-width-640px-margin-bottom--b5628735 { max-width:640px !important; margin-bottom:16px !important; gap:10px !important; flex-wrap:wrap !important; }
.u-max-width-640px-margin-top-14px { max-width:640px !important; margin-top:14px !important; }
.u-max-width-680px { max-width:680px !important; }
.u-max-width-680px-margin-bottom-18px { max-width:680px !important; margin-bottom:18px !important; }
.u-max-width-700px { max-width:700px !important; }
.u-max-width-720px { max-width:720px !important; }
.u-max-width-720px-margin-top-14px { max-width:720px !important; margin-top:14px !important; }
.u-max-width-760px { max-width:760px !important; }
.u-max-width-none { max-width:none !important; }
.u-overflow-hidden-text-overflow-ellipsis { overflow:hidden !important; text-overflow:ellipsis !important; }
.u-padding-0-margin-bottom-18px { padding:0 !important; margin-bottom:18px !important; }
.u-padding-10px-0-border-top-1px--4f668587 { padding:10px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; align-items:flex-start !important; }
.u-padding-10px-0-border-top-1px--bb69673d { padding:10px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; align-items:center !important; }
.u-padding-10px-0-border-top-1px-solid-var-line { padding:10px 0 !important; border-top:1px solid var(--line) !important; }
.u-padding-11px-0-border-top-1px-solid-var-line { padding:11px 0 !important; border-top:1px solid var(--line) !important; }
.u-padding-4px-0 { padding:4px 0 !important; }
.u-padding-6px-0 { padding:6px 0 !important; }
.u-padding-6px-0-0 { padding:6px 0 0 !important; }
.u-padding-6px-0-border-top-1px-s-0205e85f { padding:6px 0 !important; border-top:1px solid var(--line) !important; gap:8px !important; }
.u-padding-6px-0-gap-8px { padding:6px 0 !important; gap:8px !important; }
.u-padding-7px-0-border-top-1px-s-027efd65 { padding:7px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; align-items:flex-start !important; }
.u-padding-7px-0-border-top-1px-s-d2a08365 { padding:7px 0 !important; border-top:1px solid var(--line) !important; gap:8px !important; }
.u-padding-7px-0-border-top-1px-solid-var-line { padding:7px 0 !important; border-top:1px solid var(--line) !important; }
.u-padding-8px-0 { padding:8px 0 !important; }
.u-padding-8px-0-border-top-1px-s-04a01c59 { padding:8px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; align-items:center !important; }
.u-padding-8px-0-border-top-1px-s-55e87f17 { padding:8px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; }
.u-padding-8px-0-border-top-1px-solid-var-line { padding:8px 0 !important; border-top:1px solid var(--line) !important; }
.u-padding-9px-0-border-top-1px-s-0b1b72ff { padding:9px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; }
.u-padding-9px-0-border-top-1px-s-b05bf537 { padding:9px 0 !important; border-top:1px solid var(--line) !important; gap:10px !important; align-items:flex-start !important; }
.u-padding-9px-0-border-top-1px-solid-var-line { padding:9px 0 !important; border-top:1px solid var(--line) !important; }
.u-padding-left-20px-margin-0 { padding-left:20px !important; margin:0 !important; }
.u-text-align-center-padding-26px { text-align:center !important; padding:26px !important; }
.u-white-space-nowrap-flex-none { white-space:nowrap !important; flex:none !important; }
.u-white-space-pre-line { white-space:pre-line !important; }
.u-width-18px-height-18px { width:18px !important; height:18px !important; }
.u-width-34px { width:34px !important; }

/* Sign-in and recovery sheet (recovery.js) */
.rc-part { margin-bottom: 12px; padding: 14px 16px; }
.rc-part h3 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.rc-part p { margin: 0 0 10px; }
.rc-qr { display: block; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 6px; }
.rc-key { font-size: 16px; letter-spacing: 1px; word-break: break-all; font-variant-numeric: tabular-nums; }
.rc-codes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }

/* captions and the transcript beside a lecture video (captions.js) */
.cap-lines { max-height: 260px; overflow: auto; margin-top: 8px; }
.cap-line { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cap-line:hover, .cap-line.on { background: var(--card); outline: 1px solid var(--line); }
.cap-t { flex: none; width: 48px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }

/* an empty list inside a table of rows (the admissions table, for one) says so across the whole row, not in the narrow first column (21 November 2026) */
.tr > .muted:only-child, .li > .muted:only-child { grid-column: 1 / -1; }

/* The Today pages (21 November 2026, the user: the page looked badly laid out): the empty places a page keeps for cards that may come (dissertations, moderation, advisees) take no room and no gap, so both columns start at the same height; the next-class card does not add its own margin to the column's gap; the schedule's title and Month button are one line and the seven days are one even strip under it (they wrapped into two uneven rows). */
.tside > :empty { display: none; }
.tside > .agnext, .tside > #agnext > .agnext { margin-bottom: 0; }   /* the card sits inside its own place #agnext on the faculty page, so both are named */
.agcard .agh { flex-wrap: wrap; row-gap: 10px; }
.agcard .agh > h3 { order: 1; flex: 1 1 auto; }
.agcard .agh > .btn { order: 2; }
.agcard .agh > .seg { order: 3; flex: 1 1 100%; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding: 3px; }
.agcard .agh > .seg button { flex: 1 1 auto; min-width: max-content; white-space: nowrap; justify-content: center; padding: 0 6px; font-size: 12px; }

/* The student's Today on a computer (21 November 2026, the user: the student Today looked badly laid out; looked at it signed in as a local test student): the page was a phone's single column stretched across 940 px with 13 px text. A student's text stays at 14 px (the smaller usual size is for staff screens), and on a wide window the cards after the greeting, the next class and the schedule run in two columns (the Today page only, found by its place for the next class); a phone and a narrow window keep the one column. The header shows the shield alone: the whole logo is unreadable at 40 px. */
@media (min-width: 761px) {
	body.student { font-size: 14px; }
	.stop .slogo { height: 40px; width: auto; padding: 3px 6px; }
}
@media (min-width: 1100px) {
	.sscroll:has(> #agnext) { column-count: 2; column-gap: 16px; }
	.sscroll:has(> #agnext) > h1.hi, .sscroll:has(> #agnext) > p.muted, .sscroll:has(> #agnext) > #agnext { column-span: all; }
	.sscroll:has(> #agnext) > * { break-inside: avoid; }
	.sscroll:has(> #agnext) > .sc, .sscroll:has(> #agnext) > .quick { margin-bottom: 14px; }
}

/* A file box looks like the rest of the screens (21 November 2026): the browser's own grey Choose File button is replaced by a button in the portal's look (the same border, corner and weight as .btn), and the box takes the field's size. The box is still the browser's own file box, so it works with the keyboard and a screen reader as before. */
input[type="file"].field-in { padding: 4px 8px; cursor: pointer; }
input[type="file"].field-in::file-selector-button { margin-right: 10px; min-height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: .18s var(--ease); }
input[type="file"].field-in::file-selector-button:hover { border-color: var(--navy-2); }
