:root {
    color-scheme: dark;
    --bg: #0B0D10;
    --bg-deep: #07090b;
    --surface: #171A1E;
    --surface-raised: #20242a;
    --glass: #30343A;
    --glass-soft: rgba(48, 52, 58, .56);
    --text: #F0EFEC;
    --data: #E5E4E1;
    --muted: #A6A8AA;
    --disabled: #72767b;
    --line: rgba(230, 233, 237, .15);
    --line-strong: rgba(238, 239, 240, .28);
    --pearl: #d9d5cf;
    --cream: #D8CBB9;
    --blue-glass: #223244;
    --blue-glow: rgba(64, 88, 115, .24);
    --cream-glow: rgba(216, 203, 185, .14);
    --amber: #B98756;
    --amber-soft: rgba(185, 135, 86, .18);
    --crimson: #A94F50;
    --crimson-soft: rgba(169, 79, 80, .17);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .3);
    --inset: inset 0 1px rgba(255, 255, 255, .09), inset 0 -1px rgba(0, 0, 0, .44);
    --focus: 0 0 0 3px rgba(240, 239, 236, .28), 0 0 0 1px #F0EFEC;
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 38rem 12rem at 96% 88%, transparent 43%, rgba(224, 205, 181, .13) 47%, rgba(224, 205, 181, .045) 50%, transparent 55%),
        radial-gradient(circle 24rem at 104% 78%, rgba(76, 96, 120, .25), rgba(23, 35, 49, .13) 45%, transparent 69%),
        radial-gradient(ellipse 31rem 10rem at 5% 78%, transparent 45%, rgba(209, 189, 164, .085) 49%, transparent 55%),
        radial-gradient(circle 19rem at -4% 88%, rgba(45, 67, 91, .24), transparent 68%),
        radial-gradient(75rem 55rem at 78% -10%, rgba(53, 76, 103, .28), transparent 61%),
        radial-gradient(54rem 42rem at -8% 100%, rgba(96, 82, 67, .14), transparent 64%),
        linear-gradient(145deg, #0B0D10, #0D151E 48%, #080a0d);
    background-attachment: fixed;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18; z-index: 20;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus) !important; }
[tabindex="-1"]:focus { outline: none; box-shadow: none !important; }
::selection { background: rgba(217, 213, 207, .26); color: #fff; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.65rem, 2.1vw, 2.05rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; }
h2 { margin-bottom: 6px; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.018em; font-weight: 630; }
h3 { margin-bottom: 5px; font-size: .94rem; }
p { color: var(--muted); }
small { font-size: .76rem; color: var(--muted); }

.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.shell-main {
    min-width: 0;
    background:
        radial-gradient(35rem 24rem at 94% 8%, rgba(55, 81, 111, .10), transparent 72%),
        radial-gradient(28rem 20rem at 18% 100%, rgba(202, 179, 151, .045), transparent 72%);
}
.page-surface { padding: 28px clamp(20px, 3vw, 44px) 48px; max-width: 1720px; margin: 0 auto; animation: page-in 190ms ease-out; }

.glass-card {
    position: relative; overflow: hidden;
    border: 1px solid var(--line);
    border-top-color: rgba(245, 245, 243, .24);
    border-radius: var(--radius-md);
    background:
        radial-gradient(100% 130% at 0 0, rgba(89, 116, 145, .11), transparent 43%),
        radial-gradient(90% 110% at 100% 100%, rgba(220, 200, 174, .065), transparent 52%),
        linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 38%),
        linear-gradient(165deg, rgba(38, 45, 54, .78), rgba(17, 21, 27, .79));
    box-shadow: var(--inset), var(--shadow);
    backdrop-filter: blur(18px) saturate(.82);
    padding: 20px;
}
.glass-card::before {
    content: ""; position: absolute; inset: 0 15% auto; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
}
.glass-card > * { position: relative; }
.card-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.card-header h2 { margin: 3px 0 0; }
.eyebrow { display: block; color: var(--muted); font-size: .69rem; line-height: 1.2; letter-spacing: .11em; text-transform: uppercase; font-weight: 650; }

.glass-button {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 40px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 13px;
    color: var(--text); cursor: pointer; font-weight: 590; letter-spacing: -.01em;
    background: linear-gradient(180deg, rgba(84, 90, 98, .42), rgba(34, 38, 44, .58));
    box-shadow: inset 0 1px rgba(255,255,255,.16), inset 0 -1px rgba(0,0,0,.5), 0 6px 15px rgba(0,0,0,.23);
    transition: transform 130ms ease, border-color 150ms ease, filter 150ms ease, box-shadow 130ms ease;
}
.glass-button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(245,245,243,.4); filter: brightness(1.08); }
.glass-button:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 7px rgba(0,0,0,.55), inset 0 -1px rgba(255,255,255,.08); }
.glass-button:disabled { cursor: not-allowed; color: var(--disabled); opacity: .58; }
.button-primary { color: #111316; border-color: rgba(255,255,255,.7); background: linear-gradient(135deg, #f2f0ec 0%, #aaa9a8 38%, #f4f3f1 72%, #95999f 100%); box-shadow: inset 0 1px white, inset 0 -2px rgba(40,43,47,.25), 0 8px 21px rgba(0,0,0,.34), 0 0 24px rgba(230,225,217,.1); }
.button-danger { background: linear-gradient(180deg, rgba(169,79,80,.64), rgba(87,39,43,.6)); border-color: rgba(219,127,127,.35); }
.button-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
.button-wide { width: 100%; }
.button-spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line); }
.inline-actions, .page-actions, .filter-row, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.shield-mark { display: inline-grid; width: 34px; height: 40px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.34)); }
.shield-mark svg { width: 100%; height: 100%; overflow: visible; }
.shield-mark path { fill: url(#none); fill: rgba(214,218,222,.12); stroke: #e7e6e3; stroke-width: 1.8; }
.shield-mark .shield-catch { fill: rgba(231,230,227,.23); stroke: none; }
.shield-large { width: 86px; height: 98px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.4)) drop-shadow(0 0 10px rgba(238,235,228,.14)); }
.shield-large path { stroke-width: 1.2; }

.app-icon {
    display: inline-grid;
    place-items: center;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    line-height: 0;
    vertical-align: middle;
}
.app-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }

.sidebar {
    position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; z-index: 10;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(26rem 22rem at 20% 0, rgba(60, 84, 111, .16), transparent 64%),
        linear-gradient(180deg, rgba(22, 29, 37, .94), rgba(8, 12, 17, .97));
    box-shadow: inset -1px 0 rgba(0,0,0,.45), 12px 0 35px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 9px 11px 22px; }
.brand strong, .brand small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: -.02em; }
.brand small { font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; }
.sidebar nav { flex: 1; display: grid; align-content: start; gap: 4px; overflow-y: auto; scrollbar-width: thin; padding: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; color: #b2b4b6; border: 1px solid transparent; border-radius: 12px; font-size: .82rem; transition: 160ms ease; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-link.active { color: #fff; border-color: rgba(255,255,255,.22); background: linear-gradient(105deg, rgba(226,225,222,.23), rgba(89,94,101,.12)); box-shadow: inset 0 1px rgba(255,255,255,.15), 0 5px 16px rgba(0,0,0,.25); }
.nav-icon { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; color: #cdd1d4; line-height: 0; }
.nav-icon .app-icon { width: 18px; height: 18px; }
.sidebar-foot { display: grid; grid-template-columns: 38px minmax(0,1fr) 34px; align-items: center; gap: 9px; padding: 12px 8px 3px; border-top: 1px solid var(--line); }
.sidebar-foot strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .77rem; }
.sidebar-foot small { font-size: .64rem; }
.profile-orb { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); font-size: .72rem; background: radial-gradient(circle at 35% 25%, #777d84, #252930 57%, #111418); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 5px 12px rgba(0,0,0,.35); }

.topbar { min-height: 62px; padding: 12px clamp(20px, 3vw, 44px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(8,12,17,.74), rgba(15,23,32,.62)); backdrop-filter: blur(20px); }
.demo-notice { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .73rem; }
.demo-notice .status-dot { background: var(--pearl); }
.topbar-actions { display: flex; align-items: center; gap: 5px; }
.topbar time { color: var(--muted); font-size: .72rem; padding-left: 9px; }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--crimson); color: white; font-size: .56rem; }

.page-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.page-header p { margin: 0; max-width: 760px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 9px; color: var(--disabled); font-size: .69rem; }
.breadcrumb span:last-child { color: var(--muted); }
.dashboard-grid, .content-grid { display: grid; gap: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-tile { min-height: 94px; display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-top-color: rgba(255,255,255,.2); border-radius: 15px; background: radial-gradient(110% 130% at 0 0, rgba(78,104,132,.10), transparent 48%), linear-gradient(140deg, rgba(255,255,255,.06), rgba(23,30,38,.72)); box-shadow: var(--inset), 0 9px 24px rgba(0,0,0,.22); backdrop-filter: blur(14px); }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--pearl); line-height: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), rgba(31,42,54,.48)); box-shadow: inset 0 1px rgba(255,255,255,.15), 0 5px 14px rgba(0,0,0,.28); }
.stat-icon .app-icon { width: 100%; height: 100%; }
.stat-tile > div > strong, .stat-tile > div > span { display: block; }
.stat-tile strong { color: var(--data); font-size: 1.42rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile > div > span:last-child { color: var(--muted); font-size: .7rem; margin-top: 3px; }
.tone-attention .stat-icon, .stat-tile.tone-attention .stat-icon { color: #e0ad75; border-color: rgba(185,135,86,.4); background: var(--amber-soft); }
.tone-critical .stat-icon, .stat-tile.tone-critical .stat-icon { color: #df7778; border-color: rgba(169,79,80,.45); background: var(--crimson-soft); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .68rem; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9da2a7; box-shadow: 0 0 8px rgba(221,222,222,.18); }
.status-attention { color: #d5a26e; border-color: rgba(185,135,86,.32); background: var(--amber-soft); }
.status-attention .status-dot { background: var(--amber); }
.status-critical { color: #d87879; border-color: rgba(169,79,80,.34); background: var(--crimson-soft); }
.status-critical .status-dot { background: var(--crimson); }
.status-ready .status-dot, .status-success .status-dot { background: #c5c8c9; }

.field-group { margin-bottom: 14px; }
.field-group label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .73rem; font-weight: 570; }
.input-shell { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(7,9,12,.43); box-shadow: inset 0 2px 8px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.025); transition: border-color 150ms ease, box-shadow 150ms ease; }
.input-shell > span { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; font-family: Arial, sans-serif; line-height: 1; text-align: center; }
.input-shell:focus-within { border-color: rgba(240,239,236,.48); box-shadow: inset 0 2px 8px rgba(0,0,0,.3), var(--focus); }
.input-shell input, .input-shell select, .input-shell textarea { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; }
input, select, textarea { color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: rgba(7,9,12,.43); }
input, select { min-height: 40px; padding: 0 11px; }
textarea { min-height: 108px; padding: 11px; resize: vertical; }
.form-error { margin: 0 0 13px; padding: 10px 12px; color: #dc8586; border: 1px solid rgba(169,79,80,.35); border-radius: 10px; background: var(--crimson-soft); font-size: .75rem; }

.login-scene { width: min(1170px, 96vw); min-height: min(720px, calc(100vh - 36px)); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(40px, 7vw, 90px); position: relative; padding: clamp(24px, 5vw, 72px); overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: linear-gradient(145deg, rgba(24,36,49,.74), rgba(7,10,14,.86)); box-shadow: 0 40px 90px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.16); isolation: isolate; }
.login-scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50rem 30rem at 30% 20%, rgba(94,122,151,.22), transparent 60%), radial-gradient(25rem 20rem at 91% 76%, rgba(220,197,168,.09), transparent 70%), linear-gradient(110deg, transparent 55%, rgba(255,255,255,.045)); z-index: -3; }
.ambient-orb { position: absolute; border-radius: 50%; z-index: -2; filter: blur(2px); box-shadow: inset -20px -18px 42px rgba(0,0,0,.75), inset 10px 9px 18px rgba(255,255,255,.16), 0 25px 70px rgba(0,0,0,.5); }
.orb-one { width: 240px; height: 240px; left: -100px; bottom: -84px; background: radial-gradient(circle at 30% 24%, #66717d, #1c252e 38%, #070a0d 74%); }
.orb-two { width: 130px; height: 130px; right: -42px; top: 35px; background: radial-gradient(circle at 31% 22%, #8c8177, #26313b 33%, #090c10 72%); }
.ambient-ribbon { position: absolute; width: 520px; height: 150px; left: -60px; top: 30%; z-index: -1; border: 1px solid rgba(245,238,228,.18); border-radius: 50%; transform: rotate(-13deg); filter: blur(9px); box-shadow: 0 0 30px rgba(202,184,162,.09), inset 0 0 25px rgba(220,220,218,.06); }
.login-branding { max-width: 545px; }
.login-branding .shield-mark { margin-bottom: 26px; }
.login-branding h1 { margin: 11px 0 18px; font-size: clamp(2.65rem, 5.5vw, 4.7rem); line-height: .98; letter-spacing: -.065em; }
.login-branding h1 span { color: var(--muted); font-weight: 450; }
.login-branding > p { max-width: 480px; font-size: 1rem; }
.reference-details { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 29px; }
.reference-details span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(0,0,0,.18); font-size: .68rem; }
.login-panel { padding: 30px; backdrop-filter: blur(22px); }
.login-heading h2 { margin: 5px 0 7px; font-size: 1.45rem; }
.login-heading p { margin-bottom: 20px; font-size: .76rem; }
.role-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.23); }
.role-segment button { min-height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: .7rem; }
.role-segment button.active { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); box-shadow: inset 0 1px rgba(255,255,255,.13), 0 3px 9px rgba(0,0,0,.3); }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--disabled); font-size: .65rem; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.student-app-note { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid transparent; border-radius: 12px; }
.student-app-note:hover { border-color: var(--line); background: rgba(255,255,255,.03); }
.student-app-note strong, .student-app-note small { display: block; }
.student-app-note strong { font-size: .77rem; }
.simulation-copy { margin: 17px 0 0; color: var(--disabled); font-size: .65rem; text-align: center; }

.route-blocked { max-width: 550px; padding: 38px; text-align: center; }
.route-blocked .shield-mark, .route-blocked .modal-emblem { margin: 0 auto 21px; }
.route-blocked .eyebrow { margin-bottom: 9px; }
.route-blocked .inline-actions { justify-content: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(3,4,6,.7); backdrop-filter: blur(8px); animation: fade-in 190ms ease; }
.glass-modal { width: min(460px, 100%); padding: 30px; text-align: center; border: 1px solid var(--line-strong); border-radius: 22px; background: radial-gradient(80% 90% at 0 0, rgba(80,105,132,.16), transparent 55%), linear-gradient(150deg, rgba(47,54,63,.96), rgba(15,21,28,.97)); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 35px 90px rgba(0,0,0,.62); animation: modal-in 200ms ease; }
.glass-modal p { margin-bottom: 20px; }
.modal-emblem { display: grid; place-items: center; width: 62px; height: 62px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 50%; margin: 0 auto 17px; color: var(--pearl); font-family: Arial, sans-serif; font-size: 1.5rem; line-height: 1; text-align: center; background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.2), rgba(39,51,64,.48)); box-shadow: inset 0 1px rgba(255,255,255,.25), 0 0 22px rgba(232,226,217,.08); }
.modal-emblem .app-icon { width: 100%; height: 100%; }
.modal-emblem.tone-warning { color: #e4ac72; border-color: rgba(185,135,86,.56); background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.12), var(--amber-soft)); box-shadow: 0 0 21px rgba(185,135,86,.18); }
.modal-emblem.tone-critical { color: #e97577; border-color: rgba(169,79,80,.66); background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.1), var(--crimson-soft)); box-shadow: 0 0 22px rgba(169,79,80,.21); }
.modal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.glass-toast { position: fixed; right: 24px; bottom: 24px; z-index: 110; width: min(390px, calc(100vw - 48px)); display: grid; grid-template-columns: 40px 1fr 34px; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 15px; background: radial-gradient(100% 120% at 0 0, rgba(79,104,132,.18), transparent 50%), linear-gradient(145deg, rgba(52,61,72,.96), rgba(17,23,30,.97)); box-shadow: var(--shadow); animation: toast-in 210ms ease; }
.glass-toast > div strong, .glass-toast > div span { display: block; }
.glass-toast strong { font-size: .78rem; }
.glass-toast span { color: var(--muted); font-size: .7rem; }
.toast-icon { display: grid !important; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text) !important; line-height: 0; }
.toast-icon .app-icon { width: 100%; height: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.glass-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.glass-table th, .glass-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.glass-table th { color: var(--muted); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 620; background: rgba(0,0,0,.15); }
.glass-table td { color: var(--data); font-size: .76rem; }
.glass-table tbody tr:hover { background: rgba(255,255,255,.025); }
.glass-table tr:last-child td { border-bottom: 0; }

.empty-state { padding: 42px 20px; text-align: center; }
.empty-state .stat-icon { margin: 0 auto 13px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { margin: 0 auto; max-width: 390px; font-size: .75rem; }

.skeleton { overflow: hidden; color: transparent; background: rgba(255,255,255,.045); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.4s infinite; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr .72fr; gap: 16px; }
.span-two { grid-column: span 2; }
.schedule-list, .activity-list, .timeline-list { display: grid; gap: 7px; }
.schedule-item { display: grid; grid-template-columns: 60px minmax(0,1fr) auto 18px; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; }
.schedule-item:hover { border-color: var(--line); background: rgba(255,255,255,.028); }
.schedule-item time { color: var(--data); font-size: 1rem; font-variant-numeric: tabular-nums; }
.schedule-item strong, .schedule-item small, .activity-item strong, .activity-item small { display: block; }
.schedule-item strong, .activity-item strong { font-size: .78rem; }
.schedule-item small, .activity-item small { margin-top: 2px; }
.focus-ring { width: 128px; height: 128px; display: grid; place-items: center; margin: 2px auto 16px; border-radius: 50%; background: conic-gradient(var(--pearl) 90%, rgba(255,255,255,.08) 0); box-shadow: 0 0 26px rgba(225,220,212,.08); }
.focus-ring::before { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(145deg, #282c32, #111418); box-shadow: inset 0 1px rgba(255,255,255,.15), inset 0 4px 14px rgba(0,0,0,.4); }
.focus-ring div { position: relative; text-align: center; }
.focus-ring strong, .focus-ring span { display: block; }
.focus-ring strong { font-size: 1.6rem; }
.focus-ring span { color: var(--muted); font-size: .66rem; }
.compact-copy { margin-bottom: 15px; font-size: .73rem; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-grid a { min-height: 102px; display: flex; flex-direction: column; justify-content: end; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: radial-gradient(100% 110% at 0 0, rgba(76,101,128,.10), transparent 55%), linear-gradient(145deg, rgba(255,255,255,.045), rgba(0,0,0,.12)); }
.quick-grid a:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.quick-grid a > span { margin-bottom: auto; color: var(--pearl); font-size: 1.1rem; }
.quick-grid a > .app-icon { width: 22px; height: 22px; }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid strong { font-size: .75rem; }
.activity-item { display: grid; grid-template-columns: 9px minmax(0,1fr) 56px auto; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; }
.activity-item:hover { background: rgba(255,255,255,.025); }
.activity-item time { color: var(--disabled); font-size: .66rem; }
.activity-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.activity-mark.tone-attention { background: var(--amber); }
.activity-mark.tone-critical { background: var(--crimson); }
.hall-bars { display: grid; gap: 18px; }
.hall-bars > div { display: grid; gap: 7px; }
.hall-bars span { display: flex; justify-content: space-between; gap: 10px; }
.hall-bars strong, .hall-bars small { font-size: .7rem; }
progress { width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); }
progress::-webkit-progress-bar { background: rgba(255,255,255,.08); }
progress::-webkit-progress-value { background: linear-gradient(90deg, #858a90, #d6d4cf); border-radius: 99px; }

.device-workspace { padding: 14px; }
.device-toolbar { display: grid; grid-template-columns: minmax(210px,.8fr) minmax(220px,1fr) auto; align-items: end; gap: 12px; margin-bottom: 13px; }
.field-inline label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .67rem; }
.field-inline select { width: 100%; }
.search-field { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(7,9,12,.43); }
.search-field input { min-height: auto; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; }
.filter-tabs { display: flex; gap: 3px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.2); }
.filter-tabs button { min-height: 31px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--muted); white-space: nowrap; background: transparent; cursor: pointer; font-size: .66rem; }
.filter-tabs button span { color: var(--disabled); }
.filter-tabs button.active { color: var(--text); background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.11), 0 2px 7px rgba(0,0,0,.25); }
.selection-bar { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 9px; border-block: 1px solid rgba(255,255,255,.07); }
.selection-bar strong { font-size: .76rem; }
.selection-bar span { color: var(--disabled); font-size: .66rem; }
.selection-bar .glass-button { min-height: 32px; padding-inline: 11px; font-size: .67rem; }
.device-grid { display: grid; grid-template-columns: repeat(8, minmax(90px, 1fr)); gap: 8px; padding: 14px 0; }
.device-tile { position: relative; min-height: 87px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: radial-gradient(100% 120% at 0 0, rgba(68,94,121,.11), transparent 55%), linear-gradient(145deg, rgba(255,255,255,.055), rgba(12,18,25,.66)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 5px 12px rgba(0,0,0,.17); cursor: pointer; transition: 140ms ease; }
.device-tile:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-strong); }
.device-tile:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 3px 8px rgba(0,0,0,.5); }
.device-tile:disabled { cursor: not-allowed; opacity: .72; }
.device-tile.selected { border-color: rgba(240,239,236,.66); background: linear-gradient(145deg, rgba(220,220,218,.18), rgba(45,49,55,.64)); box-shadow: inset 0 1px rgba(255,255,255,.23), 0 0 0 1px rgba(255,255,255,.08), 0 7px 18px rgba(0,0,0,.3); }
.device-tile.status-attention { border-color: rgba(185,135,86,.37); background: linear-gradient(145deg, var(--amber-soft), rgba(19,18,17,.7)); }
.device-tile.status-critical { border-color: rgba(169,79,80,.4); background: linear-gradient(145deg, var(--crimson-soft), rgba(20,15,17,.7)); }
.device-tile.status-locked { border-color: rgba(225,224,221,.31); background: linear-gradient(145deg, rgba(213,211,206,.12), rgba(27,31,36,.72)); }
.device-screen { width: 23px; height: 15px; display: block; border: 1.5px solid currentColor; border-radius: 2px; color: #b9bec1; }
.device-screen::after { content: ""; display: block; width: 10px; height: 1px; margin: 4px auto 0; background: currentColor; box-shadow: 0 2px currentColor; }
.status-attention .device-screen { color: #d79b5f; }
.status-critical .device-screen { color: #d66466; }
.device-tile strong, .device-tile small { display: block; line-height: 1.2; }
.device-tile strong { font-size: .68rem; }
.device-tile small { margin-top: 2px; font-size: .57rem; }
.tile-check { position: absolute; right: 6px; top: 5px; display: grid !important; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #17191c; background: var(--pearl); font-size: .58rem !important; }
.device-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 11px 2px 2px; border-top: 1px solid rgba(255,255,255,.07); }
.preflight-failure { display: flex; justify-content: space-between; gap: 18px; margin-top: 7px; padding: 10px; text-align: left; border: 1px solid rgba(185,135,86,.28); border-radius: 10px; background: var(--amber-soft); }
.preflight-failure strong { font-size: .72rem; }
.preflight-failure span { color: var(--muted); font-size: .68rem; }

.lifecycle { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; margin: 0 6px 22px; }
.lifecycle > div { position: relative; display: flex; align-items: center; gap: 8px; color: var(--disabled); }
.lifecycle > div:not(:last-child)::after { content: ""; position: absolute; left: 36px; right: 8px; top: 14px; height: 1px; background: var(--line); z-index: -1; }
.lifecycle span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: .65rem; }
.lifecycle strong { padding-right: 8px; background: var(--bg); font-size: .68rem; }
.lifecycle .complete, .lifecycle .current { color: var(--data); }
.lifecycle .complete span, .lifecycle .current span { border-color: rgba(240,239,236,.5); background: linear-gradient(145deg, #676c72, #1d2126); box-shadow: inset 0 1px rgba(255,255,255,.2); }
.lifecycle .current span { box-shadow: 0 0 16px rgba(235,231,224,.16), inset 0 1px rgba(255,255,255,.25); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr .75fr; gap: 16px; }
.exam-hero-row { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 16px; }
.exam-hero-row h2 { margin-top: 5px; font-size: 1.35rem; }
.exam-hero-row p { margin: 0; font-size: .73rem; }
.prereq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.prereq-grid > div { min-height: 100px; display: flex; flex-direction: column; justify-content: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.13); }
.prereq-grid > div > span { margin-bottom: auto; color: var(--pearl); }
.prereq-grid strong, .prereq-grid small { display: block; }
.prereq-grid strong { font-size: .74rem; }
.next-action-emblem { display: grid; place-items: center; width: 64px; height: 64px; margin: 3px auto 14px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.6rem; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), rgba(37,41,47,.5)); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 0 22px rgba(255,255,255,.06); }
.control-grid > .glass-card:nth-child(2) { text-align: center; }
.control-grid > .glass-card:nth-child(2) p { font-size: .73rem; }
.receipt-summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; margin-bottom: 13px; }
.receipt-summary strong { font-size: 1.5rem; }
.receipt-summary span { color: var(--muted); font-size: .7rem; }
.timeline-list > div { display: grid; grid-template-columns: 9px minmax(0,1fr) 46px; gap: 10px; align-items: start; padding: 8px 2px; }
.timeline-list > div > span { width: 8px; height: 8px; margin-top: 4px; border: 1px solid var(--pearl); border-radius: 50%; box-shadow: 0 0 7px rgba(255,255,255,.1); }
.timeline-list strong, .timeline-list small { display: block; }
.timeline-list strong { font-size: .72rem; }
.timeline-list time { color: var(--disabled); font-size: .64rem; }

.hall-grid, .report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hall-capacity { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.hall-capacity strong { font-size: 1.8rem; }
.hall-capacity span { color: var(--muted); font-size: .7rem; }
.seat-map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 18px 0; }
.seat-map span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 5px; color: var(--disabled); font-size: .52rem; background: rgba(0,0,0,.13); }
.seat-map span.occupied { color: var(--text); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.09); }
.workspace-filter { margin-bottom: 14px; }
.workspace-filter input { flex: 1; min-width: 220px; }
.glass-table td strong, .glass-table td small { display: block; }
.workspace-split { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 16px; }
.access-list, .summary-list, .metric-stack { display: grid; gap: 9px; }
.access-list > div, .summary-list > div { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.access-list > div:last-child, .summary-list > div:last-child { border-bottom: 0; }
.access-list strong, .access-list span, .summary-list strong, .summary-list small { display: block; }
.access-list strong, .summary-list strong { font-size: .73rem; }
.access-list span { color: var(--muted); font-size: .68rem; }
.summary-list > div { display: grid; grid-template-columns: 25px 1fr; align-items: center; column-gap: 8px; }
.summary-list > div > span { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--pearl); font-family: Arial, sans-serif; font-size: .65rem; line-height: 1; text-align: center; }
.policy-banner { display: flex; gap: 11px; margin-bottom: 12px; padding: 11px; border: 1px solid rgba(185,135,86,.25); border-radius: 11px; background: var(--amber-soft); }
.policy-banner > span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; color: #d69f67; font-size: 1rem; line-height: 1; text-align: center; }
.policy-banner p { margin: 0; font-size: .7rem; }
.switch-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: .75rem; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; width: 39px; height: 22px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 99px; background: rgba(0,0,0,.32); box-shadow: inset 0 2px 5px rgba(0,0,0,.38); }
.switch-row i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #777c81; box-shadow: 0 2px 5px rgba(0,0,0,.4); transition: left 150ms ease, background 150ms ease; }
.switch-row input:checked + i::after { left: 20px; background: var(--pearl); }
.switch-row input:focus-visible + i { box-shadow: var(--focus); }
.compact-stats .stat-tile { min-height: 78px; }
.monitor-layout { grid-template-columns: 1fr 1fr .65fr; }
.candidate-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.candidate-card { min-height: 64px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; text-align: left; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.025); cursor: pointer; }
.candidate-card:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.candidate-card .profile-orb { width: 32px; height: 32px; }
.candidate-card strong, .candidate-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.candidate-card strong { font-size: .67rem; }
.candidate-card small { font-size: .57rem; }
.candidate-card.status-attention { border-color: rgba(185,135,86,.31); background: var(--amber-soft); }
.candidate-card.status-critical { border-color: rgba(169,79,80,.36); background: var(--crimson-soft); }
.candidate-detail { text-align: center; }
.candidate-detail > .profile-orb { width: 58px; height: 58px; margin: 3px auto 12px; font-size: .9rem; }
.candidate-detail p { font-size: .7rem; }
.bar-chart { display: grid; gap: 13px; }
.bar-chart > div { display: grid; grid-template-columns: 95px 1fr 35px; align-items: center; gap: 10px; }
.bar-chart span, .bar-chart strong { font-size: .7rem; }
.bar-chart i { width: calc(var(--value) * 2%); max-width: 100%; height: 11px; border: 1px solid var(--line); border-radius: 99px; background: linear-gradient(90deg, #646970, #d4d2ce); box-shadow: inset 0 1px rgba(255,255,255,.22); }
.donut-chart { width: 144px; height: 144px; display: grid; place-items: center; margin: 3px auto 17px; border-radius: 50%; background: conic-gradient(#cfcdc8 92%, rgba(255,255,255,.08) 0); box-shadow: 0 0 25px rgba(255,255,255,.06); }
.donut-chart::before { content: ""; position: absolute; width: 116px; height: 116px; border-radius: 50%; background: linear-gradient(145deg, #292d32,#13161a); box-shadow: inset 0 3px 12px rgba(0,0,0,.4); }
.donut-chart div { position: relative; text-align: center; }
.donut-chart strong, .donut-chart span { display: block; }
.donut-chart strong { font-size: 1.5rem; }
.donut-chart span { color: var(--muted); font-size: .65rem; }
.metric-stack { grid-template-columns: repeat(3,1fr); }
.metric-stack > div { padding: 14px 8px; text-align: center; border: 1px solid var(--line); border-radius: 11px; }
.metric-stack strong, .metric-stack span { display: block; }
.metric-stack strong { font-size: 1.35rem; }
.metric-stack span { color: var(--muted); font-size: .62rem; }
.notification-list { display: grid; }
.notification-list > div { display: grid; grid-template-columns: 9px minmax(0,1fr) 42px; gap: 9px; align-items: start; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.notification-list strong, .notification-list small { display: block; }
.notification-list strong { font-size: .72rem; }
.notification-list time { color: var(--disabled); font-size: .62rem; }
.settings-grid, .detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.audit-list { display: grid; gap: 4px; max-height: 520px; overflow-y: auto; }
.audit-list button { display: grid; grid-template-columns: 24px 1fr 40px; gap: 8px; padding: 9px; text-align: left; border: 1px solid transparent; border-radius: 9px; color: var(--text); background: transparent; cursor: pointer; }
.audit-list button:hover { border-color: var(--line); background: rgba(255,255,255,.03); }
.audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: .69rem; }
.audit-list time { color: var(--disabled); font-size: .6rem; }
.detail-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.12); }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid > div > span { margin-bottom: 4px; color: var(--muted); font-size: .63rem; }
.detail-grid strong { font-size: .75rem; }

.question-layout { grid-template-columns: .65fr 1fr 1fr; }
.collection-item { width: 100%; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 10px; text-align: left; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; cursor: pointer; }
.collection-item:hover, .collection-item.active { border-color: var(--line); background: rgba(255,255,255,.04); }
.collection-item strong, .collection-item small { display: block; }
.collection-item strong { font-size: .7rem; }
.question-list { display: grid; gap: 7px; }
.question-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.1); }
.question-type { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--pearl); background: rgba(255,255,255,.05); }
.question-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .62rem; }
.question-row h3 { margin: 8px 0 3px; font-size: .78rem; }
.question-row p { margin: 0; font-size: .65rem; }
.question-actions { display: flex; gap: 5px; }
.question-actions .glass-button { min-height: 32px; padding-inline: 10px; font-size: .65rem; }
.question-preview { text-align: left; }
.question-preview > p { color: var(--text); }
.preview-option { display: flex; align-items: center; gap: 9px; margin: 6px 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--data); background: rgba(0,0,0,.13); font-size: .72rem; }
.preview-option.correct { border-color: rgba(240,239,236,.38); background: rgba(255,255,255,.08); }
.editor-layout { grid-template-columns: 1fr 1fr .78fr; }
.option-editor { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.12); }
.option-edit-row { display: grid; grid-template-columns: 21px 28px 1fr 34px; align-items: center; gap: 8px; margin-top: 7px; }
.option-edit-row > input[type="radio"], .option-edit-row > input[type="checkbox"] { min-height: auto; accent-color: #ddd; }
.option-letter { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .65rem; }
.student-question-preview h3 { margin: 14px 0 18px; line-height: 1.5; }
.student-question-preview textarea { width: 100%; }
.builder-stepper { display: grid; grid-template-columns: repeat(6,1fr); margin-bottom: 18px; }
.builder-stepper button { position: relative; min-height: 51px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 0; color: var(--disabled); background: transparent; cursor: pointer; }
.builder-stepper button::after { content: ""; position: absolute; left: 38px; right: 0; top: 25px; height: 1px; background: var(--line); z-index: -1; }
.builder-stepper button:last-child::after { display: none; }
.builder-stepper span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: .65rem; }
.builder-stepper strong { padding-right: 7px; background: var(--bg); font-size: .67rem; }
.builder-stepper .complete, .builder-stepper .current { color: var(--text); }
.builder-stepper .complete span, .builder-stepper .current span { border-color: var(--line-strong); background: linear-gradient(145deg,#686d73,#20242a); box-shadow: inset 0 1px rgba(255,255,255,.2); }
.builder-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 16px; align-items: start; }
.builder-main { min-height: 520px; display: flex; flex-direction: column; }
.builder-main > .builder-actions { margin-top: auto; }
.builder-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.question-pick-list { display: grid; gap: 7px; margin-bottom: 18px; }
.question-pick-list button { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 11px; text-align: left; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: rgba(0,0,0,.12); cursor: pointer; }
.question-pick-list button:hover, .question-pick-list button.selected { border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.selection-check { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; }
.question-pick-list strong, .question-pick-list small { display: block; }
.question-pick-list strong { font-size: .72rem; }
.question-pick-list b { color: var(--muted); font-size: .66rem; }
.assignment-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 20px; }
.assignment-summary > div { padding: 18px 10px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.12); }
.assignment-summary strong, .assignment-summary span { display: block; }
.assignment-summary strong { font-size: 1.45rem; }
.assignment-summary span { color: var(--muted); font-size: .64rem; }
.range-row { display: grid; grid-template-columns: 160px 1fr 30px; align-items: center; gap: 10px; padding: 16px 0; }
.range-row label, .range-row output { font-size: .7rem; }
.range-row input { min-height: auto; padding: 0; accent-color: #bbb; }
.review-sections { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-bottom: 16px; }
.review-sections section { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.12); }
.review-sections span, .review-sections strong, .review-sections small { display: block; }
.review-sections span { margin-bottom: 7px; color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; }
.review-sections strong { font-size: .74rem; }
.acknowledge-row { display: flex; align-items: start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: .7rem; }
.acknowledge-row input { min-height: auto; accent-color: #ccc; }
.summary-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.summary-metrics > div { padding: 11px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.summary-metrics strong, .summary-metrics span { display: block; }
.summary-metrics strong { font-size: 1.2rem; }
.summary-metrics span { color: var(--muted); font-size: .58rem; }
.time-budget { margin: 15px 0; padding: 12px 0; border-block: 1px solid rgba(255,255,255,.07); }
.time-budget span, .time-budget strong, .time-budget small { display: block; }
.time-budget span { color: var(--muted); font-size: .62rem; }
.time-budget strong { font-size: 1.3rem; }
.exam-preview-shell { min-height: 650px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(0,0,0,.16); }
.preview-palette { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(24,28,33,.7); }
.preview-palette > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 15px 0; }
.preview-palette button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(0,0,0,.17); cursor: pointer; }
.preview-palette button.current { color: var(--text); border-color: rgba(240,239,236,.55); background: rgba(255,255,255,.11); box-shadow: inset 0 1px rgba(255,255,255,.15); }
.preview-question-card { padding: 34px; }
.preview-question-card h2 { max-width: 850px; margin: 40px 0 28px; font-size: 1.3rem; line-height: 1.5; }
.preview-question-card .question-meta, .preview-question-card footer { display: flex; justify-content: space-between; }
.preview-question-card footer { margin-top: 35px; }
.preview-options { display: grid; gap: 9px; }
.preview-options label { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.13); cursor: pointer; }
.preview-options input { min-height: auto; accent-color: #ddd; }
.success-banner { display: flex; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid rgba(240,239,236,.24); border-radius: 13px; background: rgba(255,255,255,.055); }
.success-banner > span { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line-strong); border-radius: 50%; }
.success-banner strong { font-size: .78rem; }
.success-banner p { margin: 2px 0 0; font-size: .68rem; }
.schedule-board { display: grid; grid-template-columns: 1fr 1fr .72fr; gap: 16px; }
.mini-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.calendar-head { display: contents; }
.calendar-head span { padding: 7px; color: var(--muted); text-align: center; font-size: .62rem; }
.mini-calendar button { position: relative; min-height: 68px; display: flex; align-items: start; justify-content: end; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(0,0,0,.1); cursor: pointer; }
.mini-calendar button:hover { border-color: var(--line-strong); }
.mini-calendar button.has-event { color: var(--text); background: rgba(255,255,255,.045); }
.mini-calendar i { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 99px; background: #a9a9a7; }
.student-roster { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; max-height: 490px; overflow-y: auto; }
.student-roster label { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.student-roster input { min-height: auto; accent-color: #ccc; }
.student-roster strong, .student-roster small { display: block; }
.student-roster strong { font-size: .69rem; }
.assignment-summary.vertical { grid-template-columns: 1fr; }
.marking-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 16px; }
.response-list { display: grid; align-content: start; gap: 5px; max-height: 650px; overflow-y: auto; }
.response-list > .eyebrow { margin-bottom: 8px; }
.response-list button { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; padding: 8px; text-align: left; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; cursor: pointer; }
.response-list button:hover, .response-list button.active { border-color: var(--line); background: rgba(255,255,255,.045); }
.response-list .profile-orb { width: 34px; height: 34px; }
.response-list strong, .response-list small { display: block; }
.response-list strong { font-size: .68rem; }
.marking-card blockquote { margin: 18px 0; padding: 17px; border-left: 2px solid var(--pearl); border-radius: 0 11px 11px 0; color: var(--data); background: rgba(0,0,0,.17); line-height: 1.7; }
.histogram { height: 210px; display: flex; align-items: end; gap: 10px; padding: 14px 5px 0; border-bottom: 1px solid var(--line); }
.histogram div { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 6px; }
.histogram i { width: 100%; height: var(--height); max-width: 56px; border: 1px solid var(--line-strong); border-radius: 7px 7px 0 0; background: linear-gradient(90deg,#555a60,#c6c4c0); box-shadow: inset 1px 0 rgba(255,255,255,.15); }
.histogram span { color: var(--muted); font-size: .6rem; }
.notice-preview { text-align: left; }
.notice-preview p { white-space: pre-line; }

.session-ribbon { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-bottom: 14px; padding: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); box-shadow: var(--inset); }
.session-ribbon > div { padding: 12px 16px; background: linear-gradient(150deg,rgba(42,46,52,.94),rgba(20,23,27,.94)); }
.session-ribbon strong { display: block; margin-top: 3px; font-size: .83rem; font-variant-numeric: tabular-nums; }
.session-ribbon .session-countdown strong { font-size: 1.25rem; letter-spacing: .04em; }
.invigilator-grid { display: grid; grid-template-columns: 1fr 1fr .72fr; gap: 16px; }
.invigilator-side { display: grid; align-content: start; gap: 16px; }
.session-table { display: grid; gap: 5px; }
.session-table > button { display: grid; grid-template-columns: 36px minmax(130px,1fr) minmax(100px,.65fr) auto; gap: 10px; align-items: center; padding: 8px; text-align: left; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; cursor: pointer; }
.session-table > button:hover, .session-table > button.selected { border-color: var(--line); background: rgba(255,255,255,.04); }
.session-table .profile-orb { width: 34px; height: 34px; }
.session-table strong, .session-table small { display: block; }
.session-table strong { font-size: .7rem; }
.progress-cell progress { height: 4px; }
.notification-list > a { display: grid; grid-template-columns: 9px minmax(0,1fr) 40px; gap: 9px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.notification-list > a strong, .notification-list > a small { display: block; }
.notification-list > a strong { font-size: .69rem; }
.notification-list > a time { color: var(--disabled); font-size: .6rem; }
.candidate-identity { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 13px; margin-bottom: 17px; }
.candidate-identity .profile-orb { width: 64px; height: 64px; font-size: 1rem; }
.candidate-identity h2 { margin-bottom: 3px; }
.candidate-identity p { margin: 0; font-size: .7rem; }
.action-stack { display: grid; gap: 8px; }
.action-stack small { margin-top: 3px; }
.mini-question-palette { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; }
.mini-question-palette span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; color: var(--disabled); font-size: .58rem; }
.mini-question-palette .answered { color: var(--text); background: rgba(255,255,255,.08); }
.mini-question-palette .flagged { color: #d9a36a; border-color: rgba(185,135,86,.4); background: var(--amber-soft); }
.mini-question-palette .current { color: #111; border-color: #fff; background: var(--pearl); box-shadow: 0 0 11px rgba(255,255,255,.15); }
.incident-layout { display: grid; grid-template-columns: minmax(280px,.65fr) minmax(0,1.35fr); gap: 16px; }
.incident-list-card, .incident-detail-card { min-height: 620px; }
.incident-list { display: grid; gap: 5px; }
.incident-list button { display: grid; grid-template-columns: 9px 1fr; align-items: start; gap: 9px; padding: 11px; text-align: left; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; cursor: pointer; }
.incident-list button:hover, .incident-list button.selected { border-color: var(--line); background: rgba(255,255,255,.045); }
.incident-list strong, .incident-list small, .incident-list em { display: block; }
.incident-list strong { font-size: .72rem; }
.incident-list em { margin-top: 5px; color: var(--disabled); font-size: .6rem; font-style: normal; }
.incident-heading { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; margin-bottom: 20px; }
.incident-heading .modal-emblem { margin: 0; }
.incident-heading h2 { margin: 7px 0 3px; font-size: 1.4rem; }
.incident-heading p { margin: 0; font-size: .72rem; }
.incident-note { margin-top: 17px; }
.saved-note { margin-top: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); }
.saved-note p { margin: 7px 0 0; white-space: pre-wrap; font-size: .72rem; }
.modal-emblem.tone-attention { color: #e4ac72; border-color: rgba(185,135,86,.56); background: radial-gradient(circle at 32% 24%,rgba(255,255,255,.12),var(--amber-soft)); }
.full-timeline { max-width: 980px; margin: 0 auto; }
.full-timeline article { display: grid; grid-template-columns: 72px 15px 1fr; gap: 11px; min-height: 100px; }
.full-timeline article > time { padding-top: 4px; color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.full-timeline .timeline-node { position: relative; width: 11px; height: 11px; margin-top: 4px; border: 2px solid var(--pearl); border-radius: 50%; background: var(--surface); }
.full-timeline .timeline-node::after { content: ""; position: absolute; left: 3px; top: 11px; width: 1px; height: 83px; background: var(--line); }
.full-timeline article:last-child .timeline-node::after { display: none; }
.full-timeline h3 { margin: 8px 0 3px; }
.full-timeline p { font-size: .7rem; }
.assistance-board { display: grid; grid-template-columns: 1fr 1fr .65fr; gap: 16px; }
.request-list { display: grid; gap: 8px; }
.request-list article { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.1); }
.request-list article.priority-urgent { border-color: rgba(185,135,86,.39); background: var(--amber-soft); }
.request-list .profile-orb { width: 46px; height: 46px; }
.request-list h3 { margin: 6px 0 2px; }
.request-list p { margin: 0; font-size: .68rem; }
.request-list article > div:last-child { display: flex; align-items: center; gap: 6px; }
.request-list .glass-button { min-height: 32px; padding-inline: 10px; font-size: .64rem; }
.help-grid, .showcase-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.notification-inbox { display: grid; }
.notification-inbox article { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 15px 5px; border-bottom: 1px solid rgba(255,255,255,.07); }
.notification-inbox h3 { margin: 8px 0 3px; }
.notification-inbox p { margin-bottom: 4px; font-size: .72rem; }
.showcase-shell { width: min(1240px,calc(100vw - 36px)); min-height: 100vh; padding: 22px 0 50px; }
.showcase-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.showcase-header > div { display: flex; align-items: center; gap: 10px; }
.showcase-header strong, .showcase-header small { display: block; }
.swatches { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.swatches div { min-width: 0; }
.swatches i { display: block; aspect-ratio: 1.45; margin-bottom: 7px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--swatch); box-shadow: inset 0 1px rgba(255,255,255,.15); }
.swatches strong, .swatches small { display: block; }
.swatches strong { overflow: hidden; font-size: .64rem; text-overflow: ellipsis; }
.showcase-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.showcase-warning { text-align: center; }
.showcase-warning p { font-size: .72rem; }
.showcase-devices { grid-template-columns: repeat(4,1fr); padding: 0; }

/* Phase 2 pilot surfaces extend the existing Liquid Obsidian system without changing its tokens. */
.pilot-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pilot-source-banner { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(10,14,19,.68)); box-shadow: var(--inset),0 10px 28px rgba(0,0,0,.2); }
.pilot-source-banner > .app-icon { width: 38px; height: 38px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 50%; }
.pilot-source-banner strong, .pilot-source-banner span { display: block; }
.pilot-source-banner > div > span { margin-top: 2px; color: var(--muted); font-size: .71rem; }
.pilot-source-banner.source-simulated { border-color: rgba(185,135,86,.31); background: radial-gradient(45rem 12rem at 0 0,rgba(185,135,86,.12),transparent 65%),linear-gradient(145deg,rgba(255,255,255,.045),rgba(12,14,17,.72)); }
.pilot-layout { display: grid; grid-template-columns: minmax(280px,.55fr) minmax(0,1.45fr); align-items: start; gap: 16px; }
.readiness-drawer { position: sticky; top: 88px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; }
.drawer-heading, .health-hero { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.drawer-heading h2 { margin: 4px 0 0; font-size: 1.45rem; }
.pilot-device-icon, .check-symbol, .recovery-emblem { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); background: radial-gradient(circle at 30% 20%,rgba(255,255,255,.17),rgba(32,39,48,.56)); box-shadow: inset 0 1px rgba(255,255,255,.14),0 7px 18px rgba(0,0,0,.25); }
.pilot-device-icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; }
.pilot-device-icon .app-icon, .check-symbol .app-icon, .recovery-emblem .app-icon { width: 100%; height: 100%; }
.pilot-device-icon.tone-critical { color: #d87879; border-color: rgba(169,79,80,.45); background: var(--crimson-soft); }
.identity-stack { display: grid; gap: 0; margin: 13px 0; border-block: 1px solid rgba(255,255,255,.07); }
.identity-stack > div { display: grid; grid-template-columns: minmax(90px,.72fr) 1fr; gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.055); }
.identity-stack > div:last-child { border: 0; }
.identity-stack span { color: var(--muted); font-size: .66rem; }
.identity-stack strong { text-align: right; font-size: .68rem; font-weight: 580; }
.drawer-checks { min-height: 0; display: grid; overflow: auto; padding-right: 4px; }
.drawer-checks article { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 9px; padding: 8px 2px; }
.check-symbol { width: 30px; height: 30px; padding: 7px; border-radius: 9px; color: var(--muted); }
.check-symbol.tone-ready { color: var(--pearl); }
.check-symbol.tone-attention { color: #d5a26e; border-color: rgba(185,135,86,.35); background: var(--amber-soft); }
.check-symbol.tone-critical { color: #d87879; border-color: rgba(169,79,80,.38); background: var(--crimson-soft); }
.drawer-checks strong, .drawer-checks small { display: block; }
.drawer-checks strong { font-size: .69rem; }
.drawer-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.drawer-actions .glass-button { min-height: 37px; padding-inline: 8px; font-size: .64rem; }
.pilot-main { display: grid; gap: 16px; }
.evidence-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.evidence-head p { max-width: 680px; margin-bottom: 14px; font-size: .72rem; }
.evidence-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.evidence-row { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(3,minmax(100px,.72fr)); align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255,255,255,.065); }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row > * { min-width: 0; padding: 9px 11px; }
.evidence-row > div:first-child strong, .evidence-row > div:first-child small { display: block; }
.evidence-row > div:first-child strong { font-size: .69rem; }
.evidence-row > div:first-child small { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-labels { min-height: 38px; color: var(--muted); background: rgba(0,0,0,.16); font-size: .61rem; letter-spacing: .04em; text-transform: uppercase; }
.evidence-cell { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .65rem; }
.evidence-cell .app-icon { width: 17px; height: 17px; padding: 3px; border: 1px solid currentColor; border-radius: 50%; }
.evidence-cell.evidence-positive { color: var(--data); }
.evidence-cell.evidence-failed { color: #d87879; }
.evidence-cell.evidence-untested { color: #c89969; }
.evidence-receipt { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 11px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.13); }
.evidence-receipt > .app-icon { width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; }
.evidence-receipt strong, .evidence-receipt span, .evidence-receipt small { display: block; }
.evidence-receipt span { margin: 2px 0; color: var(--muted); font-size: .69rem; }
.pilot-secondary-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.diagnostic-search { min-height: 38px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.15); }
.diagnostic-search .app-icon { width: 16px; height: 16px; color: var(--muted); }
.diagnostic-search input { min-height: auto; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; }
.diagnostics-timeline { display: grid; }
.diagnostics-timeline article { display: grid; grid-template-columns: 9px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.065); }
.diagnostics-timeline article:last-child { border-bottom: 0; }
.diagnostics-timeline .activity-mark { margin-top: 7px; }
.event-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.event-title strong { font-size: .7rem; }
.diagnostics-timeline p { margin: 3px 0; font-size: .68rem; }
.recovery-emblem { width: 58px; height: 58px; margin: 2px auto 15px; padding: 14px; border-radius: 50%; }
.pilot-secondary-grid > .glass-card:last-child { text-align: center; }
.pilot-secondary-grid > .glass-card:last-child .summary-list { text-align: left; }
.preparation-copy { text-align: left; }
.authorization-check { display: flex; align-items: start; gap: 9px; margin-top: 14px; padding: 11px; border: 1px solid rgba(185,135,86,.32); border-radius: 10px; color: var(--muted); background: var(--amber-soft); font-size: .68rem; cursor: pointer; }
.authorization-check input { min-height: 16px; width: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #d8d4cd; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; }
.profile-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 18px; }
.profile-selector button { min-height: 74px; display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 9px; padding: 10px; text-align: left; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.14); cursor: pointer; }
.profile-selector button > .app-icon { width: 29px; height: 29px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; }
.profile-selector button strong, .profile-selector button small { display: block; }
.profile-selector button strong { color: var(--text); font-size: .67rem; }
.profile-selector button.active { color: var(--text); border-color: var(--line-strong); background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(36,43,51,.42)); box-shadow: inset 0 1px rgba(255,255,255,.13),0 8px 18px rgba(0,0,0,.2); }
.profile-detail > p { max-width: 780px; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.profile-requirement { min-height: 42px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.profile-requirement > .app-icon { width: 25px; height: 25px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; }
.profile-requirement > span { font-size: .68rem; }
.profile-layout > .glass-card:last-child { text-align: center; }
.profile-layout > .glass-card:last-child .summary-list { text-align: left; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.health-hero { margin-bottom: 15px; }
.health-hero strong, .health-hero span { display: block; }
.health-hero span { margin-top: 3px; color: var(--muted); font-size: .7rem; }

:where(.stat-icon,.pilot-device-icon,.check-symbol,.recovery-emblem,.modal-emblem,.next-action-emblem) > :where(.app-icon,svg) { margin: auto; }

:where(
    .tile-check,
    .lifecycle span,
    .next-action-emblem,
    .question-type,
    .option-letter,
    .builder-stepper span,
    .selection-check,
    .success-banner > span,
    .audit-list button > span:first-child,
    .prereq-grid > div > span
) {
    font-family: Arial, sans-serif;
    line-height: 1;
    text-align: center;
}

@keyframes shimmer { to { transform: translateX(100%); } }

#blazor-error-ui { display: none; position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1000; padding: 12px 50px 12px 16px; color: var(--text); border: 1px solid rgba(169,79,80,.5); border-radius: 12px; background: #351d20; box-shadow: var(--shadow); }
#blazor-error-ui .dismiss { position: absolute; right: 10px; top: 8px; border: 0; color: inherit; background: none; font-size: 1.2rem; cursor: pointer; }

@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
    .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .sidebar { padding-inline: 9px; }
    .stat-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
    .login-scene { gap: 34px; }
    .admin-dashboard-grid, .control-grid { grid-template-columns: 1fr 1fr; }
    .device-grid { grid-template-columns: repeat(6, minmax(84px,1fr)); }
    .device-toolbar { grid-template-columns: 1fr 1fr; }
    .filter-tabs { grid-column: 1 / -1; }
    .hall-grid, .report-grid { grid-template-columns: repeat(2,1fr); }
    .workspace-split, .monitor-layout { grid-template-columns: 1fr 1fr; }
    .candidate-grid { grid-template-columns: repeat(3,1fr); }
    .editor-layout { grid-template-columns: 1fr 1fr; }
    .builder-stepper strong { display: none; }
    .schedule-board { grid-template-columns: 1fr 1fr; }
    .invigilator-grid { grid-template-columns: 1fr 1fr; }
    .assistance-board { grid-template-columns: 1fr 1fr; }
    .pilot-layout { grid-template-columns: minmax(255px,.58fr) minmax(0,1.42fr); }
    .pilot-secondary-grid, .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .app-shell { display: block; padding-bottom: 72px; }
    .sidebar { position: fixed; inset: auto 10px 9px; height: 58px; padding: 6px; flex-direction: row; align-items: center; border: 1px solid var(--line-strong); border-radius: 17px; overflow: hidden; z-index: 80; backdrop-filter: blur(22px); }
    .sidebar .brand, .sidebar-foot { display: none; }
    .sidebar nav { display: flex; flex: 1; align-items: center; gap: 3px; padding: 0; overflow-x: auto; }
    .nav-link { min-width: 47px; min-height: 44px; padding: 0 11px; justify-content: center; }
    .nav-link > span:last-child { display: none; }
    .topbar { padding-inline: 18px; }
    .topbar time { display: none; }
    .page-surface { padding-inline: 16px; }
    .page-header { align-items: start; flex-direction: column; }
    .login-scene { grid-template-columns: 1fr; padding: 30px; }
    .login-branding { display: none; }
    .login-panel { max-width: 470px; width: 100%; margin: auto; }
    .admin-dashboard-grid, .control-grid { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .device-grid { grid-template-columns: repeat(4, minmax(75px,1fr)); }
    .selection-bar { align-items: start; flex-direction: column; }
    .lifecycle { grid-template-columns: repeat(3,1fr); row-gap: 12px; }
    .prereq-grid { grid-template-columns: repeat(2,1fr); }
    .hall-grid, .report-grid, .workspace-split, .monitor-layout { grid-template-columns: 1fr; }
    .candidate-grid { grid-template-columns: repeat(2,1fr); }
    .pilot-layout { grid-template-columns: 1fr; }
    .readiness-drawer { position: static; max-height: none; }
    .drawer-checks { max-height: 340px; }
    .evidence-row { grid-template-columns: minmax(150px,1.3fr) repeat(3,minmax(90px,.7fr)); overflow-x: auto; }
    .health-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-tile { min-height: 82px; padding: 11px; }
    .topbar .demo-notice { max-width: 190px; }
    .topbar-actions > a { display: none; }
    .page-actions { width: 100%; }
    .page-actions .glass-button { flex: 1; }
    .login-scene { width: 100%; min-height: calc(100vh - 36px); padding: 16px; border-radius: 20px; }
    .login-panel { padding: 22px; }
    .device-toolbar { grid-template-columns: 1fr; }
    .filter-tabs { grid-column: auto; }
    .device-grid { grid-template-columns: repeat(3, 1fr); }
    .activity-item { grid-template-columns: 8px minmax(0,1fr) auto; }
    .activity-item time { display: none; }
    .seat-map { grid-template-columns: repeat(6,1fr); }
    .candidate-grid { grid-template-columns: 1fr; }
    .settings-grid, .detail-grid { grid-template-columns: 1fr; }
    .question-layout, .editor-layout, .builder-layout, .schedule-board, .marking-layout { grid-template-columns: 1fr; }
    .builder-stepper { grid-template-columns: repeat(3,1fr); row-gap: 6px; }
    .exam-preview-shell { grid-template-columns: 1fr; }
    .preview-palette > div { grid-template-columns: repeat(8,1fr); }
    .session-ribbon { grid-template-columns: repeat(2,1fr); }
    .invigilator-grid, .incident-layout, .assistance-board { grid-template-columns: 1fr; }
    .help-grid, .showcase-grid { grid-template-columns: 1fr; }
    .pilot-source-banner { grid-template-columns: 34px 1fr; }
    .pilot-source-banner > .status-badge { grid-column: 1 / -1; justify-self: start; }
    .drawer-actions, .profile-selector, .profile-columns { grid-template-columns: 1fr; }
    .evidence-table { overflow-x: auto; }
    .evidence-row { min-width: 650px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
@media (forced-colors: active) {
    .glass-card, .glass-button, .sidebar, .glass-modal { border: 1px solid CanvasText; }
    .status-dot { forced-color-adjust: none; }
}
