/* RUGATECH – design tokens */
:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #f8f5ee;
  --line: #e6e0d3;
  --ink: #1d2422;
  --ink-2: #55605c;
  --ink-3: #5c6561;                /* ≥ 4.5:1 on every light surface (WCAG AA) */
  --brand: #0d5c55;
  --brand-2: #0f766e;
  --brand-soft: #dcefe9;
  --accent: #b8501c;               /* RUGATECH orange, deepened so white text on it passes AA */
  --accent-soft: #fbe6da;
  --ok: #126b33; --ok-soft: #dcf3e2;
  --warn: #954305; --warn-soft: #fdf0d5;
  --bad: #b91c1c; --bad-soft: #fde2e1;
  --night: #4338ca; --night-soft: #e3e3fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(29 36 34 / .04), 0 8px 24px -12px rgb(29 36 34 / .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1413; --surface: #161d1b; --surface-2: #1c2422; --line: #2a3431;
  --ink: #ecf1ef; --ink-2: #a8b3af; --ink-3: #8f9b96;
  --brand: #3fb3a3; --brand-2: #5cc7b8; --brand-soft: #173a35;
  --accent: #f28c5a; --accent-soft: #3d261a;
  --ok: #4ade80; --ok-soft: #14321f; --warn: #fbbf24; --warn-soft: #3a2c10;
  --bad: #f87171; --bad-soft: #3b1717; --night: #a5b4fc; --night-soft: #23254a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; font-variant-numeric: tabular-nums; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.mono { font-size: 12.5px; letter-spacing: .01em; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px;
  background: var(--brand); color: #e4f3ef; }
[data-theme="dark"] .side { background: #0b201d; }
.brand { display: flex; gap: 11px; align-items: center; color: #fff; padding: 4px 10px 22px; }
.brand strong { font-family: var(--display); font-size: 20px; display: block; letter-spacing: -.01em; }
.brand small { opacity: .85; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.brand-mark .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.side nav { display: grid; gap: 1px; overflow-y: auto; }
.side nav a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 9px; color: #cfe7e1; font-weight: 500; font-size: 13.5px; transition: .15s; }
.side nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.side nav a.on { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 8px 0; border-top: 1px solid rgb(255 255 255 / .12); }
.side-foot .icon-btn { color: #cfe7e1; border-color: rgb(255 255 255 / .15); background: transparent; }
.me { display: flex; gap: 10px; align-items: center; min-width: 0; }
.me strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { opacity: .85; font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 12px;
  background: var(--accent-soft); color: var(--accent); flex: none; }
.side .avatar { background: rgb(255 255 255 / .15); color: #fff; }

.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 26px 34px 6px; }
.top h1 { font-size: 26px; font-weight: 650; }
.eyebrow { margin: 0 0 4px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.content { padding: 18px 34px 48px; display: grid; gap: 20px; }
.only-mobile { display: none !important; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.card-h h2 { font-size: 15px; font-weight: 600; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 18px 20px 20px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .label { color: var(--ink-2); font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.kpi .label .ic { color: var(--brand); width: 16px; height: 16px; }
.kpi .value { font-family: var(--display); font-size: clamp(20px, 1.9vw, 26px); white-space: nowrap; font-weight: 650; margin-top: 8px; letter-spacing: -.03em; }
.kpi .sub { color: var(--ink-3); font-size: 12px; }
.kpi.hero { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.kpi.hero .label, .kpi.hero .sub, .kpi.hero .label .ic { color: rgb(255 255 255 / .82); }
.kpi.hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: rgb(255 255 255 / .08); }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font: 500 13.5px var(--font); cursor: pointer; background: var(--brand); color: #fff; transition: .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.accent { background: var(--accent); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn .ic { width: 16px; height: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; }

label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
input, select, textarea { font: 14px var(--font); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 0 12px; height: 40px; width: 100%; outline: none; transition: .15s; }
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters > * { flex: 1 1 160px; }
.filters .btn { flex: none; }
.search { position: relative; }
.search > span { display: block; position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { padding-left: 38px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600;
  padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
.person { display: flex; gap: 11px; align-items: center; }
.person strong { display: block; font-weight: 500; }
.person small { color: var(--ink-3); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1.4;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }

.flash { margin: 12px 34px 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.flash.info { background: var(--brand-soft); color: var(--brand); }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .b span { width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; background: var(--brand); min-height: 3px; opacity: .85; transition: .2s; }
.bars .b:last-child span { background: var(--accent); opacity: 1; }
.bars .b:hover span { opacity: 1; }
.bars .b em { font-style: normal; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.list { display: grid; }
.list .row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.list .row:last-child { border-bottom: 0; }
.list .row .right { margin-left: auto; text-align: right; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* ---------- roster ---------- */
.roster-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.week-nav { display: flex; gap: 6px; align-items: center; }
.week-nav h2 { font-size: 16px; margin-left: 10px; }
.roster-filters { display: flex; gap: 10px; }
.roster-filters select { width: 220px; }
.legend-row { padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.legend { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend small { color: var(--ink-3); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.roster { table-layout: fixed; min-width: 860px; }
.roster th, .roster td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: center; }
.roster th:first-child, .roster td:first-child { width: 230px; text-align: left; padding-left: 20px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.roster thead th { background: var(--surface); }
.roster th.day { padding: 10px 6px; }
.roster th .dow { display: block; font-size: 10.5px; font-weight: 600; }
.roster th .dom { display: block; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; }
.roster .wkend { background: var(--surface-2); }
.roster .today { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.roster th.today .dow, .roster th.today .dom { color: var(--accent); }
.roster tbody tr:hover td { background: inherit; }
.roster tbody tr:hover td:first-child { background: var(--surface-2); }
.chip { --c: var(--brand); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 96px;
  min-height: 40px; padding: 4px 6px; border-radius: 7px; cursor: pointer; position: relative; font-family: var(--font);
  color: var(--c); background: color-mix(in srgb, var(--c) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  border-left: 3px solid var(--c); transition: .12s; }
.chip:hover { background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.chip b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.chip small { font-size: 10.5px; color: var(--ink-2); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.off { --c: var(--ink-3); background: transparent; border-style: dashed; border-left-style: solid; }
.chip.st-present::after { content: "✓"; position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 9px; display: grid; place-items: center; }
.chip.st-absent { border-color: var(--bad); }
.chip.empty-slot { --c: var(--ink-3); background: transparent; border: 1px dashed var(--line); color: var(--ink-3); font-size: 16px; }
.list .row > .chip { width: 46px; min-height: 34px; flex: none; }
#codePick .chip { width: 52px; }
.duty-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }
.shift-tile { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.shift-tile .code { width: 40px; height: 40px; border-radius: 9px; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.shift-tile b { font-size: 20px; font-weight: 600; margin-left: auto; }

/* ---------- meal card (screen preview) ---------- */
.mcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mcard-item { position: relative; }
.mcard-item .pick { position: absolute; top: 10px; left: 10px; z-index: 2; width: 18px; height: 18px; accent-color: var(--accent); }
.mcard-meta { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 0; font-size: 12px; color: var(--ink-2); }

/* ---------- scanner ---------- */
.scanner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.scan-input { font: 600 20px var(--display); height: 60px; text-align: center; letter-spacing: .04em; }
#video { width: 100%; border-radius: 14px; background: #000; aspect-ratio: 4/3; object-fit: cover; display: none; }
.verdict { border-radius: var(--radius); padding: 28px; text-align: center; display: grid; gap: 10px; place-items: center; min-height: 330px;
  background: var(--surface-2); border: 2px dashed var(--line); transition: .2s; }
.verdict.ok { background: var(--ok-soft); border: 2px solid var(--ok); }
.verdict.bad { background: var(--bad-soft); border: 2px solid var(--bad); }
.verdict .big { font: 700 34px var(--display); }
.verdict.ok .big { color: var(--ok); }
.verdict.bad .big { color: var(--bad); }
.verdict .photo { width: 110px; height: 110px; border-radius: 22px; object-fit: cover; background: var(--surface); display: grid; place-items: center;
  font: 700 36px var(--display); color: var(--brand); }
.meal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.meal-stats div { padding: 14px; border-radius: 14px; background: var(--surface-2); }
.meal-stats div.now { background: var(--accent-soft); outline: 2px solid var(--accent); }
.meal-stats b { font: 700 22px var(--display); display: block; }

/* ---------- login ---------- */
.bare { min-height: 100vh; display: grid; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { background: var(--brand); color: #fff; padding: 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; bottom: -180px;
  background: radial-gradient(circle, rgb(224 112 58 / .55), transparent 65%); }
.auth-art::after { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgb(255 255 255 / .5) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(120deg, #000, transparent 70%); }
.auth-art h2 { font-size: 48px; margin-top: auto; max-width: 12ch; position: relative; z-index: 1; }
.auth-art p { opacity: .8; max-width: 44ch; position: relative; z-index: 1; }
.auth-art .brand { padding: 0; position: relative; z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .box { width: min(400px, 100%); display: grid; gap: 18px; }
.auth-form h1 { font-size: 32px; }

@media (max-width: 1100px) { .g-main, .g3, .scanner { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .roster-filters { width: 100%; } .roster-filters select { width: 100%; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; width: 260px; transform: translateX(-100%); transition: .25s; }
  .side.open { transform: none; box-shadow: 0 10px 40px rgb(0 0 0 / .35); }
  .only-mobile { display: grid !important; }
  .top { padding: 18px 16px 4px; flex-wrap: wrap; }
  .top h1 { font-size: 24px; }
  .content { padding: 14px 16px 40px; }
  .flash { margin: 12px 16px 0; }
  .g2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 32px 24px; min-height: 220px; }
  .auth-art h2 { font-size: 30px; }
  .meal-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- student picker ---------- */
.nowrap { white-space: nowrap; }
.picker { position: relative; }
.picker-field { position: relative; display: block; }
.picker-field .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.picker-field input { padding-left: 38px; }
.picker.chosen .picker-field input { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px -12px rgb(0 0 0 / .25); max-height: 320px; overflow-y: auto; padding: 4px; }
.picker-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.picker-item:hover, .picker-item.on { background: var(--surface-2); }
.picker-item .avatar { width: 30px; height: 30px; font-size: 11px; }
.picker-item strong { display: block; font-weight: 500; font-size: 13.5px; }
.picker-item small { color: var(--ink-3); font-size: 12px; }
.picker-item em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; white-space: nowrap; }
.picker-item em.owe { color: var(--accent); }
.picker-item em.ok { color: var(--ok); }
.picker-empty { padding: 14px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- M-Pesa ---------- */
.stk-card { border-top: 3px solid #2e9e44; }
.mpesa-badge { white-space: nowrap; flex: none; background: #1f7a34; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; }
.stk-status { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; }
.stk-status.wait { background: var(--warn-soft); color: var(--warn); }
.stk-status.ok { background: var(--ok-soft); color: var(--ok); }
.stk-status.bad { background: var(--bad-soft); color: var(--bad); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: .6; cursor: wait; }

[hidden] { display: none !important; }
/* ---------- LMS ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.unit-tile { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); transition: .15s; }
.unit-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.unit-code { font-size: 11.5px; font-weight: 600; color: var(--brand); letter-spacing: .04em; }
.unit-tile strong { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.unit-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.unit-meta span { display: inline-flex; gap: 5px; align-items: center; } .unit-meta .ic { width: 14px; height: 14px; }
.file-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.file-ic.link { background: var(--accent-soft); color: var(--accent); }
.marksheet input { height: 34px; text-align: center; }
/* ---------- Hostel ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.room { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; align-content: start; background: var(--surface); }
.room.full { background: var(--surface-2); }
.room-h { display: flex; align-items: center; justify-content: space-between; }
.beds { display: flex; gap: 3px; } .beds i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface-2); }
.beds i.on { background: var(--brand); border-color: var(--brand); }
.occ { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.occ a { color: var(--ink); } .occ button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 12px; }
.occ button:hover { color: var(--bad); }
/* ---------- Portal ---------- */
.portal-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.portal-tabs { margin-left: auto; flex-wrap: wrap; }
a.kpi:hover { border-color: var(--brand); }
a.row { text-decoration: none; }
a.kpi { color: var(--ink); }
a.kpi.hero, a.kpi.hero .value { color: #fff; }

.nav-sec { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .72); padding: 14px 12px 4px; }
.side nav a { padding: 7px 12px; }
.side { overflow: hidden; }
.side nav { flex: 1; min-height: 0; padding-bottom: 8px; }
.side nav::-webkit-scrollbar { width: 6px; } .side nav::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .15); border-radius: 3px; }

/* ---------- public pages ---------- */
.public { min-height: 100vh; background: var(--bg); }
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: var(--brand); }
.public-top nav { display: flex; gap: 16px; align-items: center; }
.public-top nav a:not(.btn) { color: #d6ece7; font-weight: 500; font-size: 14px; }
.public-top .btn { background: var(--accent); }
.public-main { max-width: 860px; margin: 0 auto; padding: 28px 16px 60px; display: grid; gap: 16px; }
.apply-intro h1 { font-size: 30px; margin: 4px 0 8px; }
.prog-pick { display: grid; gap: 10px; }
.prog { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; color: var(--ink); }
.prog input { width: auto; height: auto; margin-top: 3px; accent-color: var(--brand); }
.prog strong { display: block; font-weight: 600; } .prog small { color: var(--ink-3); font-size: 12.5px; }
.prog:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ref-box { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--brand-soft); }
.ref-box small { color: var(--ink-2); } .ref-box strong { font-size: 24px; color: var(--brand); letter-spacing: .02em; }
.ok-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 26px; margin: 0 auto; }

/* ---------- timetable ---------- */
.tt { display: grid; grid-template-columns: 64px repeat(5, minmax(120px, 1fr)); grid-template-rows: 40px repeat(var(--rows), 26px); overflow-x: auto; position: relative; }
.tt-corner { grid-column: 1; grid-row: 1; }
.tt-day { grid-row: 1; display: grid; place-items: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tt-hour { grid-column: 1; font-size: 11px; color: var(--ink-3); padding: 2px 8px; border-top: 1px solid var(--line); }
.tt-cell { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tt-slot { margin: 2px 3px; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; overflow: hidden; position: relative; z-index: 1;
  background: hsl(var(--h) 60% 94%); border-left: 3px solid hsl(var(--h) 55% 38%); color: hsl(var(--h) 55% 22%); font-size: 12px; line-height: 1.3; }
[data-theme="dark"] .tt-slot { background: hsl(var(--h) 30% 18%); color: hsl(var(--h) 60% 85%); }
.tt-slot strong { font-size: 12.5px; } .tt-slot span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-slot small { opacity: .8; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-slot form { position: absolute; top: 3px; right: 3px; } .tt-slot button { border: 0; background: none; color: inherit; opacity: .5; cursor: pointer; font-size: 11px; }
.tt-slot button:hover { opacity: 1; }
/* ---------- grade spread ---------- */
.spread { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 1px; }
.spread i { display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; font-weight: 600; min-width: 18px; }

.photo-up { position: relative; flex: none; }
.photo-up img { width: 84px; height: 100px; border-radius: 16px; object-fit: cover; display: block; border: 1px solid var(--line); }
.photo-up label { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.photo-up label .ic { width: 15px; height: 15px; }
td a .ic { width: 15px; height: 15px; vertical-align: -3px; color: var(--ink-3); } td a:hover .ic { color: var(--brand); }
.tt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

.side nav a { padding: 6px 12px; font-size: 13px; }
.nav-sec { padding: 10px 12px 3px; }
.brand { padding-bottom: 14px; }
@media (min-height: 940px) { .side nav a { padding: 8px 12px; } .nav-sec { padding: 14px 12px 4px; } }

/* ---------- import ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { display: grid; gap: 12px; align-content: start; position: relative; padding-top: 26px; }
.step h2 { font-size: 16px; } .step p { margin: 0; }
.step-n { position: absolute; top: -12px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.drop { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.drop:hover { border-color: var(--brand); color: var(--brand); }
.drop input { display: none; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr; } }

.backup-box { display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--warn); }
.backup-box.ok { border-left-color: var(--ok); } .backup-box.ok .file-ic { background: var(--ok-soft); color: var(--ok); }
.backup-box.warn .file-ic { background: var(--warn-soft); color: var(--warn); }
.backup-box code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ---------- logo ---------- */
.brand-mark { background: #fff !important; padding: 2px; overflow: hidden; border-radius: 50% !important; width: 42px !important; height: 42px !important; box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.brand-mark img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.auth-logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; padding: 4px; margin-top: auto; position: relative; z-index: 1; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4); }
.auth-art h2 { margin-top: 24px !important; }

/* ---------- quizzes ---------- */
.quiz-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.quiz-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.quiz-facts span { display: inline-flex; gap: 6px; align-items: center; } .quiz-facts .ic { width: 15px; height: 15px; color: var(--brand); }
.qcard { display: grid; gap: 8px; }
.qcard-h { display: flex; gap: 10px; align-items: center; }
.qnum { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.qtext { margin: 2px 0 4px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.opt { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.opt.correct { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: var(--ok-soft); }
.opt.chosen-wrong { border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: var(--bad-soft); }
.opt.mine { font-weight: 500; }
.opt-id { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-2); flex: none; }
.opt.pick { cursor: pointer; font-weight: 400; color: var(--ink); transition: .12s; }
.opt.pick:hover { border-color: var(--brand); }
.opt.pick input { width: auto; height: auto; accent-color: var(--brand); }
.opt.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt-edit { display: grid; gap: 8px; }
.opt-row { display: flex; gap: 8px; align-items: center; } .opt-row > input[type=radio], .opt-row > input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.quiz-bar { position: sticky; top: 8px; z-index: 20; display: flex; gap: 16px; align-items: center; padding: 12px 18px; flex-wrap: wrap; }
.quiz-bar > div:first-child { margin-right: auto; }
.timer { font: 600 22px var(--font); font-variant-numeric: tabular-nums; padding: 4px 14px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.timer.low { background: var(--bad-soft); color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.review.right { border-left: 4px solid var(--ok); } .review.part { border-left: 4px solid var(--warn); } .review.wrong { border-left: 4px solid var(--bad); }
.score-hero { display: flex; gap: 22px; align-items: center; }
.score-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0); }
.score-ring span { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.quiz-card { display: grid; gap: 10px; border-left: 3px solid var(--brand); }
.txt-ok { color: var(--ok); } .txt-warn { color: var(--warn); } .txt-bad { color: var(--bad); }
/* ---------- gradebook ---------- */
.gradebook th.gb-col { min-width: 120px; vertical-align: bottom; white-space: normal; }
.gradebook th.gb-col a { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 12px; display: block; }
.gb-kind { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.gb-w { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; font-size: 11px; text-transform: none; }
.gb-w input { width: 54px; height: 26px; padding: 0 6px; font-size: 12px; text-align: center; }
.gradebook td.g-a { color: var(--ok); font-weight: 500; } .gradebook td.g-c { color: var(--ink); } .gradebook td.g-e { color: var(--bad); font-weight: 500; }
.gb-mean td { background: var(--surface-2); font-weight: 500; }
.side nav { align-content: start; }

/* ---------- engagement: notifications, forums, progress, QR attendance ---------- */
.icon-btn.bell { position: relative; }
.icon-btn.bell b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--bad, #dc2626); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.notif.unread strong::after { content: "New"; margin-left: 8px; font-size: 11px; color: var(--brand); font-weight: 700; }
.thread-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; }
.thread-row:hover { background: var(--surface-2); }
.thread-row:last-child { border-bottom: 0; }
.thread-row.ann { border-left: 3px solid var(--brand); }
.post { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .body { white-space: pre-line; margin: 4px 0 0; }
.post .who small { color: var(--ink-3, #6b7280); }
.role-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); margin-left: 6px; }
.role-tag.staff { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.lesson { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.lesson:last-child { border-bottom: 0; }
.lesson .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; color: transparent; cursor: pointer; background: none; padding: 0; }
.lesson.done .tick { background: var(--ok, #16a34a); border-color: var(--ok, #16a34a); color: #fff; }
.lesson.done strong { color: var(--ink-2); }
.week-h { padding: 10px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #6b7280); background: var(--surface-2); }
.progress-big { display: flex; align-items: center; gap: 16px; }
.progress-big .meter { flex: 1; height: 10px; }
.progress-big strong { font-size: 22px; }
.qr-stage { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 20px; }
.qr-box { text-align: center; padding: 24px; }
.qr-box img { width: 100%; max-width: 400px; aspect-ratio: 1; image-rendering: pixelated; border-radius: 12px; background: #fff; }
.qr-count { font-size: 56px; font-weight: 800; line-height: 1; color: var(--brand); }
.qr-timer { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 12px auto 0; max-width: 400px; }
.qr-timer i { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }
.att-btns { display: inline-flex; gap: 4px; }
.att-btns button { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.att-btns button.on[data-s=present] { background: #16a34a; color: #fff; border-color: #16a34a; }
.att-btns button.on[data-s=late] { background: #d97706; color: #fff; border-color: #d97706; }
.att-btns button.on[data-s=absent] { background: #dc2626; color: #fff; border-color: #dc2626; }
.att-btns button.on[data-s=excused] { background: #475569; color: #fff; border-color: #475569; }
.qr-stage.fullscreen { position: fixed; inset: 0; z-index: 50; background: var(--bg, #fff); padding: 24px; grid-template-columns: 1fr; place-items: center; }
.qr-stage.fullscreen .qr-list { display: none; }
.qr-stage.fullscreen .qr-box img { max-width: min(70vh, 90vw); }
.qr-stage.fullscreen .qr-timer { max-width: min(70vh, 90vw); }
.checkin-card { max-width: 440px; margin: 40px auto; text-align: center; padding: 36px 28px; }
.checkin-card .big { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 36px; color: #fff; }
@media (max-width: 860px) { .qr-stage { grid-template-columns: 1fr; } }

/* ---------- licensing, documents, at-risk ---------- */
.tick-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; vertical-align: -3px; }
.tick-ic.ok { background: #16a34a; } .tick-ic.bad { background: #dc2626; }
.check-list { display: grid; gap: 10px; }
.check-list .it { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.risk { font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.risk.high { background: #fee2e2; color: #b91c1c; } .risk.medium { background: #fef3c7; color: #954305; } .risk.watch { background: var(--surface-2); color: var(--ink-2); }
.reason { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 7px; background: var(--surface-2); margin: 2px 4px 2px 0; }
.verify-card { max-width: 520px; margin: 48px auto; padding: 32px; text-align: center; }
.verify-card .seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; font-size: 40px; }
.verify-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left; margin: 20px 0 0; }
.verify-card dt { color: var(--ink-3, #6b7280); } .verify-card dd { margin: 0; font-weight: 600; }
.join-btn { background: #1a73e8 !important; border-color: #1a73e8 !important; color: #fff !important; }
.card-h select, .card-h .btn { width: auto; }
.card-h select { min-width: 160px; height: 38px; }

/* ---------- OSCE tablet scoring ---------- */
.badge-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; }
.osce-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.osce-cands { position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow: auto; }
.cand { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cand span { flex: 1; display: grid; } .cand small { color: var(--ink-3, #6b7280); }
.cand em { font-style: normal; font-weight: 700; color: var(--brand); }
.cand.done span strong::before { content: "✓ "; color: #16a34a; }
.cand.sel { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.osce-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.osce-item.crit { border-left: 0; }
.osce-item .txt { font-size: 16px; } .osce-item .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 700; margin-right: 8px; }
.pts { display: flex; gap: 8px; flex-wrap: wrap; }
.pts button { min-width: 92px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: 600 15px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.pts button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.osce-item .pts button[data-v="0"].on { background: #dc2626; border-color: #dc2626; }
.osce-global { padding: 16px 0 0; display: grid; gap: 10px; }
.osce-foot { position: sticky; bottom: 0; background: var(--surface); padding: 14px 0 4px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 14px; font-size: 16px; }
@media (max-width: 860px) { .osce-wrap { grid-template-columns: 1fr; } .osce-cands { position: static; max-height: 260px; } }
.pf-files { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-files a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pf-files img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
td input[type=checkbox], th input[type=checkbox], .check input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--brand); }
.lcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.lcal b { color: var(--ink-3, #6b7280); font-size: 11px; padding: 4px 0; }
.lcal span { padding: 8px 0; border-radius: 8px; position: relative; }
.lcal span.on { background: color-mix(in srgb, var(--brand) 14%, transparent); font-weight: 700; }
.lcal span.today { outline: 2px solid var(--accent); }
.lcal span i { position: absolute; top: 1px; right: 3px; font-size: 9px; font-style: normal; color: var(--brand); }
.ballot-pos { border: 1px solid var(--line); } .ballot-pos legend { padding: 0 6px; }
.ballot-c { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.ballot-c input { width: 22px; height: 22px; accent-color: var(--brand); }
.ballot-c:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* ---------- lesson builder & viewer ---------- */
.lb-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.lb-palette { display: grid; gap: 6px; position: sticky; top: 12px; }
.lb-palette .btn { justify-content: flex-start; }
.lb-blocks { display: grid; gap: 12px; }
.lb-block { padding: 0; } .lb-block.dragging { opacity: .4; } .lb-block.over { outline: 2px dashed var(--brand); }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lb-grip { cursor: grab; color: var(--ink-3, #94a3b8); font-weight: 800; letter-spacing: -2px; }
.lb-body { padding: 12px 14px; display: grid; gap: 8px; }
.lb-thumb { max-width: 240px; border-radius: 10px; }
.lesson-page { max-width: 820px; margin: 0 auto; width: 100%; }
.lesson-page .lb-h { font-size: 22px; margin: 26px 0 8px; }
.lb-text { font-size: 16px; line-height: 1.7; } .lb-text p { margin: 0 0 12px; } .lb-text ul, .lb-text ol { margin: 0 0 12px 22px; padding: 0; }
.lb-callout { border-radius: 14px; padding: 14px 18px; margin: 16px 0; background: #eff6ff; color: #1e3a8a; }
.lb-callout.tip { background: #ecfdf5; color: #065f46; } .lb-callout.warning { background: #fff7ed; color: #9a3412; }
.lb-callout p { margin: 0 0 6px; } .lb-callout p:last-child { margin: 0; }
.lb-fig { margin: 18px 0; } .lb-fig img { width: 100%; border-radius: 14px; } .lb-fig figcaption { font-size: 13px; color: var(--ink-3, #6b7280); margin-top: 6px; }
.lb-embed, .lb-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin: 16px 0; display: block; }
.lb-embed iframe { width: 100%; height: 100%; border: 0; }
.lb-file { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; color: inherit; background: var(--surface); }
.lb-hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.lb-check { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; } .lb-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.lesson-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; }
@media (max-width: 860px) { .lb-layout { grid-template-columns: 1fr; } .lb-palette { position: static; grid-template-columns: repeat(2, 1fr); } }

/* ---- Phase 4: live classes & surveys ---- */
.live-pulse { animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.18); } }
.live-wrap { display: grid; gap: 12px; }
.live-frame { width: 100%; height: min(72vh, 720px); border-radius: 14px; overflow: hidden; background: #0b1220; }
.live-frame iframe { width: 100%; height: 100%; border: 0; }
.live-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sv-q { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.sv-q:last-child { border-bottom: 0; }
.sv-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-scale label { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; padding: 8px 6px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; cursor: pointer; font-size: 12px; }
.sv-scale input { width: 18px; height: 18px; margin: 0; }
.sv-scale label:has(input:checked) { border-color: var(--brand, #1d4ed8); background: color-mix(in srgb, var(--brand, #1d4ed8) 10%, transparent); }
.sv-bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; gap: 8px; align-items: center; font-size: 13px; }
.sv-bar .meter { height: 10px; }
.sv-text { background: var(--soft, #f8fafc); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0; }
@media (max-width: 560px) { .live-frame { height: 64vh; } .sv-scale label { min-width: 44px; } }

/* ---- SRC elections: ballot ---- */
.cand-face { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft, #eef2f1); display: block; }
.cand-face.ph { display: grid; place-items: center; font-size: 34px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.cand-face.sm { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 10px; flex: none; font-size: 14px; }
.vote-hero { display: grid; gap: 8px; border-top: 4px solid var(--brand); }
.vote-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0; counter-reset: st; flex-wrap: wrap; }
.vote-steps li { counter-increment: st; font-size: 13px; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--soft, #f1f5f4); color: var(--ink-2, #475569); display: flex; align-items: center; gap: 6px; }
.vote-steps li::before { content: counter(st); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 700; font-size: 11px; }
.vote-steps li.on { background: var(--brand); color: #fff; }
.vote-steps li.on::before { color: var(--brand); }
.ballot-pos { border: 1.5px solid var(--line); padding: 0; margin: 0; min-width: 0; transition: border-color .2s; }
.ballot-pos.done { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.ballot-h { display: flex; gap: 12px; align-items: center; padding: 16px 18px 6px; }
.ballot-h legend { font-weight: 700; font-size: 16px; padding: 0; float: left; width: 100%; }
.ballot-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--soft, #f1f5f4); flex: none; }
.ballot-pos.done .ballot-n { background: var(--brand); color: #fff; }
.ballot-pos.done .ballot-state { color: var(--brand); font-weight: 600; }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 10px 18px; }
.cand-cell { display: grid; gap: 4px; align-content: start; }
.cand { position: relative; display: grid; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--card, #fff); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cand:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.cand input { position: absolute; opacity: 0; pointer-events: none; }
.cand:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.cand:has(input:checked) { border-color: var(--brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 22%, transparent); }
.cand-tick { position: absolute; top: 16px; right: 16px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; transform: scale(0); transition: transform .15s; box-shadow: 0 2px 6px rgb(0 0 0 / .25); }
.cand:has(input:checked) .cand-tick { transform: scale(1); }
.cand-cell.off .cand { opacity: .45; cursor: not-allowed; }
.cand-body { display: grid; gap: 2px; }
.cand-name { font-size: 15px; line-height: 1.25; }
.cand-meta { font-size: 12px; color: var(--ink-2, #64748b); line-height: 1.3; }
.cand-slogan { font-size: 13px; color: var(--brand); margin-top: 4px; }
.cand-mf summary { font-size: 12px; cursor: pointer; color: var(--ink-2, #64748b); padding: 2px 4px; }
.cand-mf p { font-size: 13px; margin: 4px; padding: 10px; background: var(--soft, #f8fafc); border-radius: 10px; }
.abstain-opt { display: flex; gap: 8px; align-items: center; margin: 0 18px 16px; font-size: 13px; color: var(--ink-2, #64748b); cursor: pointer; width: fit-content; padding: 6px 12px; border: 1px dashed var(--line); border-radius: 99px; }
.abstain-opt:has(input:checked) { border-style: solid; border-color: var(--ink-2, #64748b); color: var(--ink); }
.abstain-opt input { width: 16px; height: 16px; margin: 0; }
.vote-bar { position: sticky; bottom: 10px; z-index: 5; display: flex; gap: 14px; align-items: center; padding: 12px 16px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.vote-bar .meter { flex: 1; }
.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.receipt { font-size: 22px; letter-spacing: .12em; font-family: ui-monospace, monospace; }
.res-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.res-row.won strong { color: var(--brand); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.checks li.ok { color: #15803d; } .checks li.bad { color: #b91c1c; font-weight: 600; }
.el-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nominate summary { list-style: none; width: fit-content; } .nominate summary::-webkit-details-marker { display: none; }
.photo-btn label { cursor: pointer; }
@media (max-width: 560px) {
  .cand-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; }
  .cand { padding: 7px; border-radius: 12px; } .cand-name { font-size: 14px; }
  .vote-bar { flex-wrap: wrap; } .vote-bar .btn { width: 100%; }
}

/* ---- shared helpers: screen-reader text, fieldsets, chips ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 14px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.fs legend { font-weight: 600; font-size: 13px; padding: 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .pill { text-decoration: none; }
.exam-note { border-left: 4px solid var(--brand); }
.bank-item { cursor: pointer; display: grid; gap: 6px; }
.bank-item:has(input:checked) { outline: 2px solid var(--brand); }
.tt-a11y-list h3 { font-size: 14px; margin: 12px 0 4px; }
.tt-a11y-list ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
@media (min-width: 900px) { .tt-a11y-list { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; } }
@media (max-width: 899px) { section[aria-label="Weekly timetable grid"] { display: none; } }
.offline-bar { position: sticky; top: 0; z-index: 60; background: #78350f; color: #fff; text-align: center; padding: 8px 14px; font-size: 14px; }

/* ================= Accessibility ================= */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; box-shadow: 0 0 0 6px var(--brand-soft); }
.check input:focus-visible, input[type=radio]:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.a11y-wrap { position: relative; }
.a11y-btn { font-weight: 700; font-size: 15px; }
.a11y-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 250px; padding: 14px; display: grid; gap: 8px; text-align: left; }
.a11y-panel h2 { font-size: 15px; }
.a11y-panel fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.a11y-panel legend { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }

/* larger text: the app sizes text in px, so scale the whole page */
html[data-text="large"] body { zoom: 1.15; }
html[data-text="xlarge"] body { zoom: 1.32; }
html[data-text="large"] .shell, html[data-text="xlarge"] .shell { min-height: auto; }

/* underline links */
html[data-links="underline"] .content a:not(.btn):not(.pill):not(.icon-btn), html[data-contrast="high"] .content a:not(.btn):not(.pill):not(.icon-btn) { text-decoration: underline; text-underline-offset: 2px; }

/* high contrast */
html[data-contrast="high"]:not([data-theme="dark"]) {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f2f2; --line: #1a1a1a;
  --ink: #000000; --ink-2: #1f1f1f; --ink-3: #2b2b2b;
  --brand: #003d38; --brand-2: #00524b; --brand-soft: #d6ece8;
  --accent: #9a3412; --ok: #0b5d2a; --warn: #7a3a00; --bad: #8f0f0f;
  --shadow: none;
}
html[data-contrast="high"][data-theme="dark"] {
  --bg: #000; --surface: #000; --surface-2: #111; --line: #e5e5e5; --ink: #fff; --ink-2: #f2f2f2; --ink-3: #e0e0e0;
  --brand: #7fe3d4; --brand-soft: #0e3531; --shadow: none;
}
html[data-contrast="high"] .card, html[data-contrast="high"] input, html[data-contrast="high"] select, html[data-contrast="high"] textarea,
html[data-contrast="high"] .btn.ghost, html[data-contrast="high"] .pill { border: 1.5px solid var(--line); }
html[data-contrast="high"] .side { background: #002b27; }
html[data-contrast="high"] .muted { color: var(--ink-2); }

/* reduce motion: the person's choice, or their device setting */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* accessible text colour for orange avatars on their soft background */
:root:not([data-theme="dark"]) .avatar { color: #a8461c; }
:root:not([data-theme="dark"]) .side .avatar { color: #fff; }

/* ---- library desk ---- */
.desk { display: grid; gap: 12px; align-content: start; align-self: start; }
.desk-scan { display: flex; gap: 8px; }
.desk-scan input { flex: 1; font-size: 17px; height: 50px; }
.desk-borrower { border: 2px solid var(--brand); border-radius: 14px; padding: 12px; background: var(--brand-soft); }
.desk-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; font-size: 14px; }
.desk-log li { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--line); }
.desk-log li.ok { border-left-color: var(--ok); } .desk-log li.bad { border-left-color: var(--bad); background: var(--bad-soft); } .desk-log li.warn { border-left-color: var(--warn); }
.copy-edit { display: inline-flex; gap: 4px; align-items: center; }
.copy-edit select { height: 32px; padding: 0 6px; width: auto; }
.copy-edit input { height: 32px; }
.lib-book { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lib-book:last-child { border-bottom: 0; }
.lib-cover { width: 56px; height: 72px; border-radius: 6px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); object-fit: cover; }

/* ---- semester registration ---- */
.reg-title { text-align: center; display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.reg-title span { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.reg-h { font-size: 14px; margin: 6px 0 0; text-decoration: underline; }
.reg-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.reg-steps li { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.reg-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line); font-weight: 700; font-size: 12px; }
.reg-steps li.done span { background: var(--ok); color: #fff; } .reg-steps li.now { border-color: var(--warn); } .reg-steps li.now span { background: var(--warn); color: #fff; }
.reg-steps strong { display: block; font-size: 12.5px; line-height: 1.25; } .reg-steps small { color: var(--ink-2); font-size: 11.5px; }

/* ---- application wizard ---- */
.wiz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; counter-reset: w; }
.wiz-steps li { counter-increment: w; font-size: 13px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.wiz-steps li::before { content: counter(w); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 11px; }
.wiz-steps li.on { background: var(--brand); color: #fff; border-color: var(--brand); } .wiz-steps li.on::before { color: var(--brand); background: #fff; }
.wiz-steps li.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.wiz-nav { display: flex; gap: 10px; align-items: center; } .wiz-nav .muted { flex: 1; text-align: center; }
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.grade-grid label.need { font-weight: 600; } .grade-grid label.need .sg-name::after { content: " ★"; color: var(--accent); }
@media (max-width: 560px) { .grade-grid { grid-template-columns: 1fr 1fr; } }
.elig { border-radius: 12px; padding: 10px 14px; font-size: 14px; } .elig ul { margin: 6px 0; padding-left: 4px; list-style: none; }
.elig.ok { background: var(--ok-soft); } .elig.warn { background: var(--warn-soft); }
.doc-up { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.doc-up span { display: grid; } .doc-up input { height: auto; padding: 6px; max-width: 260px; }
dl.review { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } dl.review dt { color: var(--ink-2); } dl.review dd { margin: 0; }
@media (max-width: 560px) { .doc-up { grid-template-columns: 1fr; } .doc-up input { max-width: 100%; } dl.review { grid-template-columns: 1fr; } dl.review dd { margin-bottom: 6px; } }

/* ---------- NGN clinical-judgement items ---------- */
.ngn-grid td, .ngn-grid th { padding: 8px 10px; }
.ngn-grid .c { text-align: center; }
.ngn-grid input { width: 20px; height: 20px; }
.ngn-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: step; }
.ngn-order li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: grab; }
.ngn-order li::before { counter-increment: step; content: counter(step); font-weight: 700; color: var(--brand); min-width: 18px; }
.ngn-order li.drag { opacity: .5; }
.ngn-order .grip { color: var(--ink-3); }
.ngn-order .icon-btn { width: 32px; height: 32px; }
.ngn-passage { line-height: 2; }
.ngn-hl { border: 1px dashed var(--line); background: transparent; border-radius: 6px; padding: 2px 6px; font: inherit; color: inherit; cursor: pointer; }
.ngn-hl[aria-pressed="true"] { background: var(--warn-soft); border-color: var(--warn); border-style: solid; }
.ngn-passage mark { background: transparent; border: 1px dashed var(--line); border-radius: 6px; padding: 1px 5px; color: inherit; }
.ngn-passage mark.ok { border: 1px solid var(--ok); background: var(--ok-soft); }
.ngn-passage mark.mine { outline: 2px solid var(--brand); }
.ngn-passage mark.bad { border: 1px solid var(--bad); background: var(--bad-soft); }
.ngn-bowtie { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ngn-bowtie fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; margin: 0; }
.ngn-bowtie legend { font-weight: 600; padding: 0 6px; }
.ngn-hotspot { position: relative; display: inline-block; max-width: 100%; touch-action: manipulation; cursor: crosshair; }
.ngn-hotspot.static { cursor: default; }
.ngn-hotspot img { display: block; max-width: 100%; border-radius: 10px; user-select: none; }
.ngn-hotspot .dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); pointer-events: auto; }
.ngn-hotspot .zone { position: absolute; border: 2px dashed var(--ink-3); border-radius: 6px; }
.ngn-hotspot .zone.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); }
.ngn-hotspot .zone b { position: absolute; top: 2px; left: 4px; font-size: 11px; }
li.ok { color: var(--ok); } li.bad { color: var(--bad); }
b.ok { color: var(--ok); }

/* ---------- virtual patient monitor ---------- */
.vp-monitor { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; background: #0b1416; color: #d6f5ec; border-radius: 14px; padding: 12px; font-variant-numeric: tabular-nums; }
.vp-monitor div { padding: 8px; border-radius: 10px; background: #12221f; }
.vp-monitor small { display: block; color: #7fb3a5; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.vp-monitor strong { font-size: 24px; }
.vp-monitor .up::after { content: " ▲"; font-size: 12px; color: #f59e0b; } .vp-monitor .down::after { content: " ▼"; font-size: 12px; color: #60a5fa; }
.vp-choice { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.vp-choice:hover, .vp-choice:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.outbox-badge { position: fixed; right: 14px; bottom: 14px; z-index: 50; background: var(--warn); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); }

/* headings / regions focused by script (step changes, skip links) should not show a focus box */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
fieldset.prog-pick { border: 0; padding: 0; margin: 0; min-width: 0; }

/* default round user icon wherever there is no photo (initials stay readable for screen readers) */
.avatar, .side .avatar, :root:not([data-theme="dark"]) .avatar { border-radius: 50%; color: transparent !important; background: url("../img/avatar-default-128.png") center / cover no-repeat; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- phone navigation: popover drawer + bottom tab bar ---------- */
@view-transition { navigation: auto; }                         /* smooth page-to-page change in supporting browsers */
@media (max-width: 820px) {
  .side[popover] { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100dvh; margin: 0; border: 0; padding: 22px 14px;
    transform: none; translate: -100% 0; transition: translate .28s cubic-bezier(.2, .8, .2, 1), display .28s allow-discrete, overlay .28s allow-discrete;
    box-shadow: 0 10px 40px rgb(0 0 0 / .35); overflow-y: auto; overscroll-behavior: contain; }
  .side[popover]:popover-open { translate: 0 0; display: flex; }
  @starting-style { .side[popover]:popover-open { translate: -100% 0; } }
  .side[popover]::backdrop { background: rgb(0 0 0 / .35); backdrop-filter: blur(2px); transition: background .28s, display .28s allow-discrete, overlay .28s allow-discrete; }
  @starting-style { .side[popover]:popover-open::backdrop { background: rgb(0 0 0 / 0); } }
  .tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface);
    border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font: inherit; font-size: 10.5px; color: var(--ink-3); background: none; border: 0; border-radius: 10px; min-width: 0; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .on { color: var(--brand); background: var(--brand-soft); }
  .tabbar .ic { width: 22px; height: 22px; }
  .main { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (min-width: 821px) { .tabbar { display: none; } }
@media print { .tabbar { display: none !important; } }
.avatar { aspect-ratio: 1 / 1; height: auto !important; border-radius: 50% !important; }    /* always a true circle, never stretched */
.avatar.f { background-image: url("../img/avatar-female-128.png") !important; }
.avatar.m { background-image: url("../img/avatar-male-128.png") !important; }
/* detail pages: passport-photo shape (35 x 45 mm) */
.avatar.passport { aspect-ratio: 35 / 45; border-radius: 12px !important; background: #e6eeec url("../img/avatar-passport.png") center bottom / cover no-repeat !important; box-shadow: inset 0 0 0 1px var(--line); }
.avatar.passport.f { background-image: url("../img/avatar-passport-female.png") !important; }
.avatar.passport.m { background-image: url("../img/avatar-passport-male.png") !important; }
