/* =====================================================================
   Inclusive Learning Hub — project-local SaaS chrome
   ---------------------------------------------------------------------
   Layered ON TOP of the shared portfolio design-system.css. Adds the
   product app-shell (role-aware left rail + top app-bar), role accent
   theming, data tables, schedule grid, modals/drawers, activity feed,
   and a full-featured accessibility toolbar. Vanilla CSS, no deps.
   ===================================================================== */

:root {
  --ilh-accent: #3a6ea5;      /* default / admin — calm denim blue */
  --ilh-accent-2: #5b8c5a;    /* sage green */
  --ilh-accent-dark: #2c5580;
  --ilh-glow: rgba(58, 110, 165, 0.14);
  --ilh-rail-w: 258px;
  --ilh-warn: #c07830;
  --ilh-danger: #b0503f;
  --ilh-good: #4c9a6e;
}

/* ---------- Role accent variants ---------- */
body[data-role="teacher"]   { --ilh-accent: #2f8f8a; --ilh-accent-dark: #21706c; --ilh-glow: rgba(47,143,138,0.14); }
body[data-role="parent"]    { --ilh-accent: #5b8c5a; --ilh-accent-dark: #45703f; --ilh-glow: rgba(91,140,90,0.14); }
body[data-role="student"]   { --ilh-accent: #c07830; --ilh-accent-dark: #a5631f; --ilh-glow: rgba(192,120,48,0.14); }
body[data-role="para"]      { --ilh-accent: #8a5fb0; --ilh-accent-dark: #6d4790; --ilh-glow: rgba(138,95,176,0.14); }
body[data-role="therapist"] { --ilh-accent: #b0507e; --ilh-accent-dark: #8e3c63; --ilh-glow: rgba(176,80,126,0.14); }
body[data-role="admin"]     { --ilh-accent: #3a6ea5; --ilh-accent-dark: #2c5580; --ilh-glow: rgba(58,110,165,0.14); }

/* ---------- Dark mode: re-theme shared tokens ---------- */
body.ilh-dark {
  --navy: #1b2740; --navy-dark: #131c30; --navy-deep: #0c1322;
  --ink: #e8edf6; --ink-soft: #a4b3c6; --slate: #b6c4d8;
  --bg: #0f1626; --bg-warm: #131b2c;
  --surface: #18233a; --surface-alt: #1f2c46; --border: #2c3a57;
  --shadow: rgba(0,0,0,0.4); --shadow-lg: rgba(0,0,0,0.55);
}
body.ilh-dark { background: var(--bg); color: var(--ink); }
body.ilh-dark .site-header { background: rgba(15,22,38,0.94); }
body.ilh-dark .card, body.ilh-dark .metric, body.ilh-dark .chat, body.ilh-dark .app-rail,
body.ilh-dark .modal-box, body.ilh-dark .drawer, body.ilh-dark table, body.ilh-dark .schedule-grid,
body.ilh-dark .panel, body.ilh-dark .lesson-block, body.ilh-dark .chart-card { background: var(--surface); }
body.ilh-dark .muted, body.ilh-dark .m-label { color: var(--ink-soft); }
body.ilh-dark input, body.ilh-dark select, body.ilh-dark textarea { background: #111a2c; color: var(--ink); border-color: var(--border); }
.theme-toggle { background: none; border: 1px solid var(--border); color: inherit; border-radius: 999px; width: 40px; height: 40px; font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: .15s; }
.theme-toggle:hover { border-color: var(--ilh-accent); color: var(--ilh-accent); }

/* ---------- App shell: side rail + main ---------- */
.app-shell { display: grid; grid-template-columns: var(--ilh-rail-w) 1fr; gap: 1.5rem; max-width: 1400px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; align-items: start; }
.app-rail { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; box-shadow: 0 6px 20px var(--shadow); max-height: calc(100vh - 96px); overflow-y: auto; }
.rail-brand { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.5rem 0.8rem; border-bottom: 1px solid var(--border); margin-bottom: 0.6rem; }
.rail-brand .mark { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--ilh-accent), var(--ilh-accent-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; flex: 0 0 auto; }
.rail-brand b { font-size: 0.86rem; color: var(--ink); line-height: 1.2; }
.rail-brand small { display: block; color: var(--ink-soft); font-size: 0.72rem; font-weight: 600; }
.rail-group { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 0.8rem 0.6rem 0.3rem; }
.rail-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: .12s; }
.rail-link .ico { width: 20px; text-align: center; }
.rail-link:hover { background: var(--surface-alt); }
.rail-link.active { background: var(--ilh-glow); color: var(--ilh-accent-dark); }
body.ilh-dark .rail-link.active { color: #cfe0ff; }

.app-main { min-width: 0; }
.app-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.app-bar .crumb { color: var(--ink-soft); font-size: 0.88rem; }
.app-bar .crumb a { color: var(--ink-soft); text-decoration: none; } .app-bar .crumb a:hover { color: var(--ilh-accent); }
.app-bar .crumb b { color: var(--ink); }
.app-actions { display: flex; align-items: center; gap: 0.5rem; }

.tool-head { margin-bottom: 1.2rem; }
.tool-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0.2rem 0; }
.tool-head .lead { color: var(--ink-soft); max-width: 68ch; margin-bottom: 0; }
.tool-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--ilh-glow); color: var(--ilh-accent-dark); font-weight: 700; font-size: 0.78rem; padding: 0.25rem 0.8rem; border-radius: 999px; }
body.ilh-dark .tool-badge { color: #cfe0ff; }

/* ---------- Header extras: search / notifications / messages / role switcher / help ---------- */
.hdr-tools { display: flex; align-items: center; gap: 0.4rem; }
.hdr-search { position: relative; }
.hdr-search input { width: 210px; padding: 0.45rem 0.8rem 0.45rem 2rem; border: 1.5px solid var(--border); border-radius: 999px; font: inherit; font-size: 0.88rem; background: var(--surface-alt); }
.hdr-search input:focus { outline: none; border-color: var(--ilh-accent); background: var(--surface); }
.hdr-search::before { content: "🔎"; position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); font-size: 0.8rem; opacity: 0.6; pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 14px 32px var(--shadow-lg); z-index: 120; max-height: 340px; overflow-y: auto; display: none; }
.search-results.open { display: block; }
.search-results .sr-item { display: block; padding: 0.6rem 0.9rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.search-results .sr-item:last-child { border-bottom: none; }
.search-results .sr-item:hover { background: var(--surface-alt); }
.search-results .sr-item small { display: block; color: var(--ink-soft); }
.search-results .sr-empty { padding: 1rem; color: var(--ink-soft); text-align: center; font-size: 0.88rem; }

.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: .12s; }
.icon-btn:hover { border-color: var(--ilh-accent); color: var(--ilh-accent); }
.icon-btn .dot { position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ilh-danger); border: 2px solid var(--surface); }

.dropdown { position: relative; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 40px var(--shadow-lg); z-index: 120; display: none; overflow: hidden; }
.dropdown-panel.open { display: block; }
.dropdown-head { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.dropdown-head span.count { font-weight: 600; color: var(--ink-soft); font-size: 0.82rem; }
.dropdown-list { max-height: 340px; overflow-y: auto; }
.dd-item { display: flex; gap: 0.7rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.dd-item:last-child { border-bottom: none; }
.dd-item .dd-ico { font-size: 1.1rem; flex: 0 0 auto; }
.dd-item b { display: block; }
.dd-item small { color: var(--ink-soft); }
.dropdown-foot { padding: 0.6rem 1rem; text-align: center; border-top: 1px solid var(--border); }
.dropdown-foot a { font-size: 0.85rem; font-weight: 700; color: var(--ilh-accent); text-decoration: none; }

.role-switch { position: relative; }
.role-switch > button { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.7rem 0.3rem 0.3rem; cursor: pointer; font: inherit; }
.role-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--ilh-accent), var(--ilh-accent-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; }
.role-switch .rs-label { font-size: 0.84rem; font-weight: 700; color: var(--ink); }
.role-switch .rs-label small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.72rem; }
.rs-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; text-decoration: none; color: var(--ink); font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.rs-item:last-child { border-bottom: none; }
.rs-item:hover { background: var(--surface-alt); }
.rs-item .ico { font-size: 1.1rem; }

/* ---------- Breadcrumbs (mobile rail toggle) ---------- */
.rail-toggle { display: none; }
@media (max-width: 980px) {
  .rail-toggle { display: inline-grid; }
}

/* ---------- Metric / status badges ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-pill.good { background: #e3f2e8; color: #2e6b4a; } .status-pill.good::before { background: var(--ilh-good); }
.status-pill.warn { background: #fbeedc; color: #8a5320; } .status-pill.warn::before { background: var(--ilh-warn); }
.status-pill.bad  { background: #f8e0d8; color: #8a3a26; } .status-pill.bad::before { background: var(--ilh-danger); }
.status-pill.info { background: #dde6f1; color: var(--navy); } .status-pill.info::before { background: var(--navy); }
.status-pill.neutral { background: var(--surface-alt); color: var(--ink-soft); } .status-pill.neutral::before { background: var(--ink-soft); }
body.ilh-dark .status-pill.good { background: rgba(76,154,110,0.18); color: #7fd3a0; }
body.ilh-dark .status-pill.warn { background: rgba(192,120,48,0.2); color: #f0b877; }
body.ilh-dark .status-pill.bad { background: rgba(176,80,63,0.2); color: #f0a08f; }
body.ilh-dark .status-pill.info { background: rgba(58,110,165,0.22); color: #a9c6ec; }

/* ---------- Avatars / avatar groups ---------- */
.avatar-circ { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.85rem; flex: 0 0 auto; }
.avatar-circ.sm { width: 30px; height: 30px; font-size: 0.72rem; }
.avatar-group { display: flex; }
.avatar-group .avatar-circ { margin-left: -10px; border: 2px solid var(--surface); }
.avatar-group .avatar-circ:first-child { margin-left: 0; }

/* ---------- Data table ---------- */
.data-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px var(--shadow); }
.data-table-wrap table { box-shadow: none; border-radius: 0; margin: 0; }
.data-table-wrap th { position: sticky; top: 0; cursor: pointer; user-select: none; white-space: nowrap; }
.data-table-wrap th.sortable::after { content: "↕"; opacity: 0.5; margin-left: 0.3rem; font-size: 0.8em; }
.data-table-wrap th.sort-asc::after { content: "↑"; opacity: 1; } .data-table-wrap th.sort-desc::after { content: "↓"; opacity: 1; }
.data-table-wrap tbody tr { cursor: default; transition: background .1s; }
.data-table-wrap tbody tr.clickable { cursor: pointer; }
.data-table-wrap tbody tr.clickable:hover { background: var(--ilh-glow); }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.table-toolbar select, .table-toolbar input[type="search"] { padding: 0.45rem 0.7rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 0.86rem; background: var(--surface); color: var(--ink); }
.table-toolbar .tt-count { margin-left: auto; color: var(--ink-soft); font-size: 0.85rem; }
.table-foot { padding: 0.7rem 1.1rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Filters row (chips) ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 2.4rem 1.4rem; color: var(--ink-soft); }
.empty-state .es-ico { font-size: 2.4rem; display: block; margin-bottom: 0.6rem; }
.empty-state h4 { color: var(--ink); }

/* ---------- Modal / Drawer ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(12,19,34,0.55); backdrop-filter: blur(2px); z-index: 250; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal-overlay.open { display: flex; }
.modal-box { width: min(680px, 100%); max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.4); animation: fadeUp .18s ease both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.modal-head h3 { margin: 0; }
.modal-close { border: none; background: var(--surface-alt); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink-soft); }
.modal-close:hover { color: var(--ilh-danger); }
.modal-body { padding: 1.4rem; }
.modal-foot { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.6rem; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(12,19,34,0.45); z-index: 250; display: none; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); background: var(--surface); box-shadow: -20px 0 50px rgba(0,0,0,0.3); z-index: 251; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.drawer-body { padding: 1.2rem 1.4rem; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,0.3); font-weight: 600; font-size: 0.9rem; animation: fadeUp .25s ease both; display: flex; align-items: center; gap: 0.5rem; }
.toast.ok { background: var(--ilh-good); } .toast.info { background: var(--ilh-accent); } .toast.warn { background: var(--ilh-warn); }

/* ---------- Activity feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: none; }
.feed .f-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--ilh-glow); color: var(--ilh-accent-dark); display: grid; place-items: center; flex: 0 0 auto; font-size: 0.95rem; }
.feed .f-body b { display: block; }
.feed .f-body small { color: var(--ink-soft); }

/* ---------- Schedule grid ---------- */
.schedule-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.schedule-grid { display: grid; grid-template-columns: 74px repeat(5, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px var(--shadow); }
.sg-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.4rem; min-height: 64px; position: relative; }
.sg-cell:last-child { border-right: none; }
.sg-head { background: var(--surface-alt); font-weight: 700; text-align: center; padding: 0.6rem 0.3rem; font-size: 0.86rem; }
.sg-time { background: var(--surface-alt); font-size: 0.72rem; color: var(--ink-soft); text-align: right; padding: 0.4rem 0.5rem; }
.sg-event { background: var(--ilh-glow); border-left: 4px solid var(--ilh-accent); border-radius: 6px; padding: 0.3rem 0.5rem; font-size: 0.74rem; font-weight: 700; color: var(--ilh-accent-dark); margin-bottom: 0.25rem; cursor: pointer; }
.sg-event.type-therapy { border-left-color: var(--ilh-danger); background: #f8e0d8; color: #8a3a26; }
.sg-event.type-para { border-left-color: #8a5fb0; background: #eee3f6; color: #5b3c80; }
.sg-event.type-room { border-left-color: var(--ilh-warn); background: #fbeedc; color: #8a5320; }
.sg-event.conflict { outline: 2px dashed var(--ilh-danger); }
body.ilh-dark .sg-event.type-therapy { background: rgba(176,80,63,0.2); color: #f0a08f; }
body.ilh-dark .sg-event.type-para { background: rgba(138,95,176,0.22); color: #ddc7f2; }
body.ilh-dark .sg-event.type-room { background: rgba(192,120,48,0.2); color: #f0b877; }
.sg-event small { display: block; font-weight: 500; opacity: 0.85; }
.conflict-banner { display: flex; gap: 0.7rem; align-items: flex-start; background: #f8e0d8; border-left: 5px solid var(--ilh-danger); color: #7a2f1e; padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
body.ilh-dark .conflict-banner { background: rgba(176,80,63,0.18); color: #f0a08f; }

/* ---------- Goal progress rings ---------- */
.goal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: 0 5px 16px var(--shadow); border-top: 4px solid var(--ilh-accent); }
.goal-card h4 { margin: 0 0 0.2rem; }
.goal-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.6rem; }

/* ---------- UDL / lesson-planner blocks ---------- */
.udl-col { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--ilh-accent); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.udl-col.rep { border-left-color: var(--ilh-accent-2); }
.udl-col.act { border-left-color: var(--ilh-warn); }
.acc-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.5rem; }
.acc-check { display: flex; align-items: center; gap: 0.5rem; background: var(--surface-alt); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.acc-check input { accent-color: var(--ilh-accent); width: 17px; height: 17px; }

/* ---------- Response chooser ---------- */
.respond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.respond-tile { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center; cursor: pointer; transition: .15s; }
.respond-tile:hover { border-color: var(--ilh-accent); transform: translateY(-3px); }
.respond-tile.sel { border-color: var(--ilh-accent); background: var(--ilh-glow); }
.respond-tile .rt-ico { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }

/* ---------- Study timer ---------- */
.timer-ring { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: conic-gradient(var(--ilh-accent) calc(var(--tval, 0) * 1%), var(--surface-alt) 0); }
.timer-ring .hole { width: 100px; height: 100px; background: var(--surface); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }

/* ---------- Task list (student) ---------- */
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.task-list li:last-child { border-bottom: none; }
.task-list input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ilh-accent); }
.task-list li.done label { text-decoration: line-through; color: var(--ink-soft); }

/* ---------- Data-entry quick form (para) ---------- */
.quick-form { display: grid; gap: 0.9rem; }
.prompt-scale { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.prompt-scale button { flex: 1; min-width: 90px; border: 1.5px solid var(--border); background: var(--surface); padding: 0.55rem; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 700; }
.prompt-scale button.sel { background: var(--ilh-accent); border-color: var(--ilh-accent); color: #fff; }

/* ---------- Feature matrix (project overview) ---------- */
.matrix-wrap { overflow-x: auto; }
.fm-yes { color: var(--ilh-good); font-weight: 800; } .fm-no { color: var(--border); }

/* ---------- Testimonial / marketing (landing) ---------- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 6px 20px var(--shadow); }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .t-who { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; }
.testimonial .t-who b { display: block; } .testimonial .t-who small { color: var(--ink-soft); }
.mock-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 30px 70px var(--shadow-lg); overflow: hidden; }
.mock-frame .mf-bar { background: var(--surface-alt); padding: 0.6rem 1rem; display: flex; gap: 0.4rem; border-bottom: 1px solid var(--border); }
.mock-frame .mf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.role-select-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; text-align: center; box-shadow: 0 8px 24px var(--shadow); transition: transform .18s, box-shadow .18s; }
.role-select-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px var(--shadow-lg); }
.role-select-card .rsc-ico { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 0.9rem; font-size: 1.9rem; color: #fff; }

/* ==================================================================
   ACCESSIBILITY TOOLBAR (project-specific, richer than shared bar)
   ================================================================== */
.ilh-a11y-bar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 400; background: var(--navy-dark); color: #fff; border-radius: 12px 0 0 12px; box-shadow: -4px 4px 20px rgba(0,0,0,0.35); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; max-height: 92vh; overflow-y: auto; }
.ilh-a11y-bar .a11y-title { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; text-align: center; padding: 0 0.2rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 0.2rem; }
.ilh-a11y-bar button { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 7px; min-width: 46px; padding: 0.4rem 0.3rem; cursor: pointer; font-size: 0.92rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; line-height: 1.05; }
.ilh-a11y-bar button span.al-label { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.ilh-a11y-bar button:hover, .ilh-a11y-bar button:focus-visible { background: var(--gold); color: #2a1c00; outline: 2px solid #fff; }
.ilh-a11y-bar button.active { background: var(--ilh-accent); border-color: var(--ilh-accent); }
.ilh-a11y-toggle { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 399; background: var(--navy-dark); color: #fff; border: none; border-radius: 10px 0 0 10px; padding: 0.7rem 0.5rem; cursor: pointer; box-shadow: -3px 3px 14px rgba(0,0,0,0.3); font-size: 1.1rem; }
@media (max-width: 760px) {
  .ilh-a11y-bar { top: auto; bottom: 0; right: 0; left: 0; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; border-radius: 0; max-height: 40vh; }
  .ilh-a11y-toggle { top: auto; bottom: 6px; right: 6px; border-radius: 10px; }
}

/* Text-size steps */
body.ilh-size-1 { font-size: 1.08rem; } body.ilh-size-2 { font-size: 1.18rem; } body.ilh-size-3 { font-size: 1.3rem; }

/* Dyslexia-friendly font mode */
body.ilh-dyslexic { --font-body: "Verdana", "Comic Sans MS", "Segoe UI", sans-serif; letter-spacing: 0.02em; }

/* Increased line spacing */
body.ilh-spacing p, body.ilh-spacing li, body.ilh-spacing td, body.ilh-spacing .lead { line-height: 2.05 !important; }

/* Reading focus mode — dims everything except a horizontal band around the cursor.
   The dimming bands themselves are two real <div>s created/positioned by
   script.js's toggleFocusMask() (so they can track the mouse); this class
   is just the marker script.js toggles on <body>, no CSS painting needed here. */

/* Reduced motion override (manual toggle, in addition to prefers-reduced-motion) */
body.ilh-reduced-motion, body.ilh-reduced-motion * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* High contrast (project variant, layered on shared a11y-contrast) */
body.ilh-contrast .status-pill, body.ilh-contrast .tag, body.ilh-contrast .badge { border: 1px solid #fff; }

/* TTS active indicator */
.tts-active { outline: 3px solid var(--ilh-accent) !important; outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; padding: 1rem 0.9rem 2.4rem; }
  .app-rail { position: static; max-height: none; display: none; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 0.2rem 0.8rem; }
  .app-rail.open { display: grid; }
  .rail-group { grid-column: 1 / -1; }
  .hdr-search input { width: 140px; }
  .schedule-grid { grid-template-columns: 60px repeat(5, minmax(120px,1fr)); overflow-x: auto; }
}
@media (max-width: 640px) {
  .hdr-search { display: none; }
  .role-switch .rs-label { display: none; }
  .schedule-grid { display: block; overflow-x: auto; }
}

/* ---------- Student portal: linear progress bars (goal/course progress at a glance) ---------- */
.pbar-row { margin-bottom: 0.95rem; }
.pbar-row:last-child { margin-bottom: 0; }
.pbar-top { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--ink); }
.pbar-top .pbar-pct { color: var(--ilh-accent-dark); }
.pbar-track { height: 12px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.pbar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ilh-accent), var(--ilh-accent-2)); }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
