:root {
  --management-font: 12px;
  --ink: #f2f8ff;
  --muted: #a4bed8;
  --muted-2: #7e9dbd;
  --night: #030a1b;
  --panel: #07182e;
  --panel-2: #0b2342;
  --line: #1c426d;
  --line-hot: #3486c5;
  --cyan: #37baff;
  --cyan-soft: #8fddff;
  --lime: #b7f344;
  --amber: #f5bd54;
  --red: #ff667e;
  --radius: 2px;
  --sidebar: 264px;
  --shadow: 0 24px 80px rgb(0 0 0 / .38);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}
.portal-home-link{position:absolute;top:20px;left:24px;z-index:2;color:var(--cyan-soft);font-size:12px;text-decoration:none;padding:9px 12px;border:1px solid var(--line);border-radius:5px;background:var(--night)}
.sidebar-portal-link{display:block;margin:0 0 18px;color:var(--cyan-soft);font-size:12px;text-decoration:none}
.portal-home-link:focus-visible,.sidebar-portal-link:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.branding-pending{visibility:hidden}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--night); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--night); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }
button { color: inherit; }
::selection { color: #031315; background: var(--cyan); }
.hidden { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: -60px; left: 16px; padding: 12px 18px; background: var(--cyan); color: #041012; transition: top .2s; }
.skip-link:focus { top: 12px; }

.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: radial-gradient(circle at 75% 8%, rgb(14 87 177 / .24), transparent 39%), radial-gradient(circle at 8% 92%, rgb(21 105 224 / .13), transparent 32%); }
.backdrop::before { content: ""; position: absolute; inset: 0; opacity: .27; background-image: linear-gradient(rgb(72 144 157 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(72 144 157 / .08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.backdrop::after { content: ""; position: absolute; width: 65vw; height: 65vw; right: -25vw; top: -34vw; border: 1px solid rgb(55 186 255 / .14); border-radius: 50%; box-shadow: 0 0 0 10vw rgb(55 186 255 / .015), 0 0 0 18vw rgb(55 186 255 / .012); }
.backdrop span { position: absolute; display: block; background: linear-gradient(90deg, transparent, var(--cyan), transparent); height: 1px; width: 280px; opacity: .2; animation: drift 12s linear infinite; }
.backdrop span:nth-child(1) { top: 20%; left: 4%; }
.backdrop span:nth-child(2) { top: 62%; right: 8%; animation-delay: -4s; }
.backdrop span:nth-child(3) { bottom: 12%; left: 38%; animation-delay: -8s; }
@keyframes drift { 50% { transform: translateX(120px); opacity: .5; } }

.auth-screen { position: relative; z-index: 1; min-height: 100vh; padding: 0 6vw 5vh; }
.public-header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); letter-spacing: .12em; }
.brand:hover { color: var(--ink); }
.brand > span:last-child { display: grid; line-height: 1; gap: 5px; }
.brand strong { font-size: 18px; font-weight: 800; }
.brand small { font: 600 8px/1 ui-monospace, "Cascadia Mono", monospace; color: var(--muted); letter-spacing: .25em; }
.brand-mark { position: relative; width: 29px; height: 29px; border: 1px solid var(--line-hot); transform: rotate(45deg); display: grid; place-items: center; }
.brand-mark::before { content: ""; width: 13px; height: 13px; border: 1px solid var(--cyan); }
.brand-mark i { position: absolute; width: 3px; height: 3px; background: var(--cyan); }
.brand-mark i:nth-child(1) { top: -2px; left: -2px; }
.brand-mark i:nth-child(2) { right: -2px; top: -2px; }
.brand-mark i:nth-child(3) { bottom: -2px; right: -2px; }
.system-chip { border: 1px solid var(--line); padding: 9px 13px; color: var(--muted); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.system-chip b { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.auth-main { min-height: calc(100vh - 100px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .72fr); gap: clamp(60px, 9vw, 160px); align-items: center; max-width: 1460px; margin: 0 auto; }
.hero-copy { padding: 60px 0; }
.eyebrow, .section-code { margin: 0 0 17px; color: var(--cyan); font: 700 10px/1.2 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .19em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-size: clamp(48px, 6vw, 92px); line-height: .92; letter-spacing: -.055em; font-weight: 780; max-width: 900px; }
.hero-copy h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--cyan); text-shadow: 0 0 40px rgb(55 186 255 / .14); }
.hero-subtitle { margin: 28px 0 0; color: var(--muted); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.signal-line { display: flex; align-items: center; gap: 9px; margin: 44px 0; max-width: 520px; }
.signal-line span { height: 1px; flex: 1; background: linear-gradient(90deg, var(--line), var(--cyan)); }
.signal-line span:last-child { background: linear-gradient(90deg, var(--cyan), transparent); }
.signal-line b { width: 8px; height: 8px; border: 1px solid var(--cyan); transform: rotate(45deg); }
.hero-stats { display: flex; gap: 0; }
.hero-stats div { min-width: 150px; padding: 0 24px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { font: 500 30px/1 ui-monospace, monospace; color: var(--ink); }
.hero-stats span { color: var(--muted); font: 600 8px/1.3 ui-monospace, monospace; letter-spacing: .15em; }

.panel-cut { position: relative; border: 1px solid var(--line); background: linear-gradient(145deg, rgb(12 26 35 / .96), rgb(6 14 20 / .96)); box-shadow: var(--shadow); clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 21px 100%, 0 calc(100% - 21px)); }
.panel-cut::before, .panel-cut::after { content: ""; position: absolute; width: 45px; height: 1px; background: var(--cyan); opacity: .7; }
.panel-cut::before { top: 0; left: 28px; }
.panel-cut::after { bottom: 0; right: 28px; }
.auth-panel { padding: 26px 36px 38px; min-height: 550px; }
.panel-index { display: flex; justify-content: space-between; color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .18em; }
.panel-index span { color: var(--line-hot); }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 24px 0 34px; }
.auth-tabs button { position: relative; padding: 13px 1px; border: 0; background: none; color: var(--muted); cursor: pointer; text-transform: uppercase; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .13em; }
.auth-tabs button.active { color: var(--cyan); }
.auth-tabs button.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.auth-form { display: grid; gap: 17px; }
.form-heading { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; margin-bottom: 8px; }
.form-heading > span { color: var(--cyan); font: 400 24px/1 ui-monospace, monospace; opacity: .35; }
.form-heading h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.02em; }
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }
label { display: grid; gap: 8px; color: #a9bec8; font: 650 9px/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
label small { color: var(--muted-2); font-size: 8px; letter-spacing: .02em; text-transform: none; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; color: var(--ink); background: rgb(2 9 13 / .72); outline: none; font-family: inherit; font-size: 14px; letter-spacing: normal; text-transform: none; transition: border-color .15s, box-shadow .15s; }
input:hover, textarea:hover, select:hover { border-color: #28515f; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(55 186 255 / .08); }
input[type="file"] { padding: 9px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--cyan); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--line-hot); border-radius: var(--radius); padding: 10px 17px; background: transparent; color: var(--ink); cursor: pointer; font: 750 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { transform: translateY(-1px); border-color: var(--cyan); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.primary { border-color: var(--cyan); color: #04142a; background: linear-gradient(100deg, var(--cyan), #91ddff); box-shadow: 0 9px 30px rgb(55 186 255 / .2); }
.button.primary:hover { background: var(--cyan-soft); }
.button.danger { border-color: rgb(255 102 126 / .45); color: #ff9aaa; }
.button.ghost { color: var(--muted); }
.button.small { min-height: 33px; padding: 8px 11px; font-size: 8px; }
.button.wide { width: 100%; justify-content: space-between; margin-top: 5px; padding-left: 20px; padding-right: 20px; }
.form-message { min-height: 18px; margin: 18px 0 0; color: var(--red); font-size: 12px; }
#forgot-password-message { color: var(--muted); }
#forgot-password-message.error { color: var(--red); }

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 22px 20px; border-right: 1px solid var(--line); background: rgb(5 12 17 / .96); backdrop-filter: blur(24px); }
.brand.compact { margin: 0 8px 38px; }
.course-code { display: grid; gap: 8px; margin: 0 0 28px; padding: 15px 13px; border: 1px solid var(--line); border-left: 2px solid var(--cyan); background: rgb(55 186 255 / .025); }
.course-code span { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .15em; }
.course-code strong { color: #b5c9d2; font: 650 10px/1.45 ui-monospace, monospace; letter-spacing: .07em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-group-label { display: block; margin: 22px 12px 8px; color: #38515c; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .15em; }
.nav-link { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; min-height: 43px; padding: 0 12px; border: 1px solid transparent; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.nav-link:hover { color: var(--ink); border-color: var(--line); background: rgb(55 186 255 / .02); }
.nav-link.active { color: var(--cyan); border-color: var(--line); background: linear-gradient(90deg, rgb(55 186 255 / .08), transparent); }
.nav-link .nav-icon { width: 20px; color: var(--muted-2); font: 500 13px/1 ui-monospace, monospace; text-align: center; }
.nav-link.active .nav-icon { color: var(--cyan); }
.nav-link small { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; }
.sidebar-foot { display: flex; gap: 9px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.user-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-mini > span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-hot); color: var(--cyan); background: rgb(55 186 255 / .06); font: 700 10px/1 ui-monospace, monospace; }
.user-mini div { display: grid; gap: 4px; min-width: 0; }
.user-mini strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 126px; font-size: 11px; }
.user-mini small { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .13em; }
.icon-button, .menu-button { border: 1px solid var(--line); width: 34px; height: 34px; background: transparent; color: var(--muted); cursor: pointer; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 100px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgb(5 10 15 / .84); backdrop-filter: blur(22px); }
.topbar h1 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.02em; }
.breadcrumb { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .17em; }
.breadcrumb b { color: var(--cyan); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.clock { color: var(--muted); font: 600 11px/1 ui-monospace, monospace; letter-spacing: .12em; }
.menu-button { display: none; }
#main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 64px); }
.view { display: none; animation: reveal .28s ease both; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }

.command-banner { min-height: 245px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 54px); overflow: hidden; }
.command-banner h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 56px); letter-spacing: -.045em; }
.command-banner p:last-child { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.7; }
.radar { position: relative; flex: 0 0 auto; width: 150px; height: 150px; border: 1px solid var(--line-hot); border-radius: 50%; opacity: .75; }
.radar::before, .radar::after { content: ""; position: absolute; background: var(--line-hot); }
.radar::before { left: 50%; top: 0; width: 1px; height: 100%; }
.radar::after { top: 50%; left: 0; height: 1px; width: 100%; }
.radar i { position: absolute; border: 1px solid var(--line); border-radius: 50%; inset: 20%; }
.radar i:nth-child(2) { inset: 37%; }
.radar i:nth-child(3) { inset: -12%; border-color: rgb(55 186 255 / .08); }
.radar b { position: absolute; left: 50%; top: 50%; width: 48%; height: 1px; transform-origin: left; background: linear-gradient(90deg, var(--cyan), transparent); animation: scan 4s linear infinite; }
@keyframes scan { to { transform: rotate(360deg); } }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-bottom: 0; margin-top: 24px; }
.stat-card { min-height: 135px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(8 19 26 / .68); }
.stat-card:last-child { border-right: 0; }
.stat-card span { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .14em; }
.stat-card strong { display: block; margin: 18px 0 8px; font: 450 34px/1 ui-monospace, monospace; }
.stat-card small { color: var(--muted); font-size: 10px; }
.stat-card.accent strong { color: var(--cyan); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: 24px; margin-top: 24px; }
.panel { border: 1px solid var(--line); background: rgb(8 18 25 / .7); box-shadow: 0 12px 42px rgb(0 0 0 / .12); }
.panel-head { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 5px 0 0; font-size: 18px; }
.panel-head .section-code { margin: 0; }
.panel-head > a { font: 700 9px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.resource-list { display: grid; }
.resource-row { min-height: 75px; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.resource-row:last-child { border-bottom: 0; }
.file-icon { width: 37px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-hot); color: var(--cyan); background: rgb(55 186 255 / .035); font: 700 8px/1 ui-monospace, monospace; }
.resource-row h3 { margin: 0 0 4px; font-size: 12px; }
.resource-row p { margin: 0; color: var(--muted); font-size: 10px; }
.empty-state { min-height: 180px; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); }
.exam-card { padding: 28px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.status-badge, .badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 9px; color: var(--muted); background: rgb(0 0 0 / .12); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.status-badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-open { color: var(--lime); border-color: rgb(183 243 68 / .3); }
.status-draft, .status-scheduled { color: var(--amber); border-color: rgb(245 189 84 / .3); }
.status-graded, .status-completed { color: var(--cyan); border-color: rgb(55 186 255 / .3); }
.status-failed, .status-suspended { color: var(--red); border-color: rgb(255 102 126 / .3); }
.exam-card h3 { margin: 0 0 10px; font-size: 22px; }
.exam-card > p { color: var(--muted); line-height: 1.6; font-size: 12px; }
.exam-card .exam-signup { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--cyan); background: rgb(55 186 255 / .055); color: var(--ink); }
.exam-card .exam-signup strong { color: var(--cyan); font-weight: 700; }
.exam-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border: 1px solid var(--line); }
.exam-facts div { padding: 13px; border-right: 1px solid var(--line); }
.exam-facts div:last-child { border: 0; }
.exam-facts strong, .exam-facts span { display: block; }
.exam-facts strong { font: 600 15px/1 ui-monospace, monospace; }
.exam-facts span { margin-top: 6px; color: var(--muted-2); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .12em; }

.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 0 0 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.section-intro h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; }
.section-intro p:last-child { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.6; }
.metric-orb { flex: 0 0 auto; width: 92px; height: 92px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px solid var(--line-hot); border-radius: 50%; color: var(--cyan); font: 400 27px/1 ui-monospace, monospace; box-shadow: inset 0 0 30px rgb(55 186 255 / .04); }
.metric-orb small { color: var(--muted); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .14em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { border: 1px solid var(--line); padding: 8px 14px; background: transparent; color: var(--muted); cursor: pointer; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.filter.active { border-color: var(--cyan); color: var(--cyan); background: rgb(55 186 255 / .05); }
.materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.material-card { position: relative; min-height: 230px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, rgb(10 23 31 / .86), rgb(6 14 20 / .8)); overflow: hidden; }
.material-card::before { content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 1px; background: var(--cyan); }
.material-card .material-type { color: var(--cyan); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.material-card h3 { margin: 28px 0 10px; font-size: 18px; }
.material-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.material-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; }

.knowledge-search { position: relative; margin: 0 0 28px; overflow: hidden; background: linear-gradient(135deg, rgb(9 24 31 / .96), rgb(5 14 20 / .96)); }
.knowledge-search::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; pointer-events: none; background-image: linear-gradient(rgb(55 186 255 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(55 186 255 / .055) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.knowledge-search-head { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgb(55 186 255 / .035), transparent 62%); }
.knowledge-search-identity { min-width: 0; display: flex; align-items: center; gap: 17px; }
.knowledge-search-mark { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line-hot); color: var(--cyan); background: rgb(55 186 255 / .04); box-shadow: inset 0 0 22px rgb(55 186 255 / .04); font: 400 28px/1 ui-monospace, monospace; }
.knowledge-search-head .section-code { display: block; margin: 0 0 7px; font-size: 8px; }
.knowledge-search-head h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.knowledge-search-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.knowledge-access-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 7px 10px; border: 1px solid rgb(183 243 68 / .24); color: var(--lime); background: rgb(183 243 68 / .035); font: 750 8px/1 ui-monospace, monospace; letter-spacing: .11em; }
.knowledge-access-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.knowledge-access-chip.is-private { border-color: rgb(245 189 84 / .25); color: var(--amber); background: rgb(245 189 84 / .035); }
.knowledge-search-form { display: grid; padding: 23px 26px 18px; }
.knowledge-search-form.is-admin { grid-template-columns: minmax(0, 1fr) minmax(240px, .34fr); gap: 15px; align-items: end; }
.knowledge-query-field { min-width: 0; }
.knowledge-query-field > label { margin-bottom: 8px; }
.knowledge-query-field > small { display: block; margin-top: 8px; color: var(--muted-2); font: 650 8px/1.35 ui-monospace, monospace; }
.knowledge-query-control { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--line); background: rgb(1 8 12 / .7); transition: border-color .15s, box-shadow .15s; }
.knowledge-query-control:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(55 186 255 / .08); }
.knowledge-query-control > span { display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--cyan); font: 400 20px/1 ui-monospace, monospace; }
.knowledge-query-control input { min-width: 0; min-height: 52px; border: 0; background: transparent; box-shadow: none; }
.knowledge-query-control input:focus { border: 0; box-shadow: none; }
.knowledge-query-control .button { min-height: 52px; margin: -1px; white-space: nowrap; }
.knowledge-search-options { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 10px; }
.knowledge-search-options select { min-height: 52px; }
.knowledge-search-status { min-height: 59px; display: flex; align-items: center; gap: 12px; margin: 0 26px 22px; padding: 12px 15px; border: 1px solid var(--line); border-left: 2px solid var(--muted-2); background: rgb(1 8 12 / .38); color: var(--muted); }
.knowledge-search-status > span:not(.knowledge-status-loader) { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid currentColor; font: 700 10px/1 ui-monospace, monospace; }
.knowledge-search-status strong, .knowledge-search-status small { display: block; }
.knowledge-search-status strong { color: #afc3cb; font-size: 11px; }
.knowledge-search-status small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.knowledge-search-status.is-loading, .knowledge-search-status.is-success { border-left-color: var(--cyan); }
.knowledge-search-status.is-success > span { color: var(--lime); }
.knowledge-search-status.is-empty { border-left-color: var(--amber); }
.knowledge-search-status.is-empty > span { color: var(--amber); }
.knowledge-search-status.is-degraded { border-left-color: var(--amber); }
.knowledge-search-status.is-degraded > span, .knowledge-search-status.is-degraded strong { color: var(--amber); }
.knowledge-search-status.is-error { border-color: rgb(255 102 126 / .24); border-left-color: var(--red); }
.knowledge-search-status.is-error > span, .knowledge-search-status.is-error strong { color: var(--red); }
.knowledge-status-loader { flex: 0 0 auto; width: 27px; height: 27px; border: 1px solid var(--line); border-top-color: var(--cyan); border-right-color: var(--cyan); border-radius: 50%; animation: spin .85s linear infinite; }
.knowledge-search-results { border-top: 1px solid var(--line); }
.knowledge-results-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 26px; background: rgb(1 8 12 / .28); }
.knowledge-results-head .section-code { display: block; margin: 0 0 6px; font-size: 8px; }
.knowledge-results-head h3 { margin: 0; font-size: 16px; }
.knowledge-results-head h3:focus-visible { outline: 1px solid var(--cyan); outline-offset: 5px; }
.knowledge-results-head > span { color: var(--muted-2); font: 700 8px/1.35 ui-monospace, monospace; letter-spacing: .1em; text-align: right; }
.knowledge-result-list { margin: 0; padding: 0; list-style: none; }
.knowledge-result { display: grid; grid-template-columns: 62px minmax(0, 1fr); border-top: 1px solid var(--line); }
.knowledge-result-rank { display: grid; place-items: start center; padding-top: 24px; border-right: 1px solid var(--line); color: var(--line-hot); font: 450 20px/1 ui-monospace, monospace; }
.knowledge-result article { min-width: 0; padding: 20px 26px 22px; background: linear-gradient(90deg, rgb(55 186 255 / .018), transparent 65%); }
.knowledge-result article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.knowledge-source-code { color: var(--muted-2); font: 750 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.knowledge-result h4 { margin: 7px 0 0; color: #d8e9ed; font-size: 14px; }
.knowledge-result p { margin: 16px 0 14px; color: #91aab4; font-size: 12px; line-height: 1.72; }
.knowledge-result mark { padding: 1px 2px; color: var(--ink); background: rgb(55 186 255 / .16); box-shadow: 0 0 0 1px rgb(55 186 255 / .1); }
.knowledge-result-metrics { flex: 0 0 auto; display: flex; align-items: center; gap: 13px; }
.knowledge-audience { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 8px; border: 1px solid var(--line); font: 750 7px/1 ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.knowledge-audience.audience-student { border-color: rgb(183 243 68 / .25); color: var(--lime); }
.knowledge-audience.audience-instructor { border-color: rgb(245 189 84 / .28); color: var(--amber); }
.knowledge-similarity { min-width: 70px; text-align: right; }
.knowledge-similarity span, .knowledge-similarity strong { display: block; }
.knowledge-similarity span { color: var(--muted-2); font: 750 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.knowledge-similarity strong { margin-top: 6px; color: var(--cyan); font: 500 12px/1 ui-monospace, monospace; }
.knowledge-match-track { display: block; width: 100%; height: 2px; border: 0; appearance: none; background: var(--line); overflow: hidden; }
.knowledge-match-track::-webkit-progress-bar { background: var(--line); }
.knowledge-match-track::-webkit-progress-value { background: linear-gradient(90deg, var(--line-hot), var(--cyan)); box-shadow: 0 0 9px var(--cyan); }
.knowledge-match-track::-moz-progress-bar { background: linear-gradient(90deg, var(--line-hot), var(--cyan)); box-shadow: 0 0 9px var(--cyan); }

.exam-brief { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
.exam-brief-main { padding: clamp(28px, 4vw, 55px); }
.exam-brief h2 { margin: 5px 0 16px; font-size: clamp(34px, 5vw, 62px); letter-spacing: -.05em; }
.exam-brief-main > p { max-width: 780px; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.exam-brief-side { padding: 26px; }
.exam-brief-side h3 { margin: 0 0 20px; font-size: 15px; }
.protocol-list { display: grid; gap: 15px; margin: 0 0 28px; padding: 0; list-style: none; }
.protocol-list li { display: grid; grid-template-columns: 24px 1fr; gap: 11px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.protocol-list b { color: var(--cyan); font: 700 9px/1.4 ui-monospace, monospace; }
.exam-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
.question-panel { min-height: 560px; }
.exam-progress { display: flex; align-items: center; gap: 15px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.progress-track { appearance: none; height: 3px; flex: 1; border: 0; background: var(--line); }
.progress-track::-webkit-progress-bar { background: var(--line); }
.progress-track::-webkit-progress-value { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.progress-track::-moz-progress-bar { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.exam-progress span { color: var(--muted); font: 700 9px/1 ui-monospace, monospace; }
.question-body { padding: clamp(25px, 4vw, 48px); }
.question-number { color: var(--cyan); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.question-body h2 { margin: 20px 0 30px; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.35; }
.choice-list { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 28px 1fr; gap: 13px; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); color: #adc0c9; cursor: pointer; text-transform: none; font: 400 13px/1.45 inherit; letter-spacing: normal; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--line-hot); }
.choice.selected { border-color: var(--cyan); color: var(--ink); background: rgb(55 186 255 / .055); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-key { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-hot); color: var(--muted); font: 700 9px/1 ui-monospace, monospace; }
.choice.selected .choice-key { border-color: var(--cyan); color: #041112; background: var(--cyan); }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 35px; }
.exam-rail { display: grid; gap: 16px; align-content: start; }
.timer-panel { padding: 22px; text-align: center; }
.timer-panel span { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .15em; }
.timer-panel strong { display: block; margin: 12px 0 6px; color: var(--cyan); font: 400 30px/1 ui-monospace, monospace; }
.question-map { padding: 20px; }
.question-map h3 { margin: 0 0 15px; font-size: 12px; }
.question-map-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.question-jump { aspect-ratio: 1; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 600 9px/1 ui-monospace, monospace; }
.question-jump.answered { border-color: var(--line-hot); color: var(--cyan); background: rgb(55 186 255 / .04); }
.question-jump.current { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.project-submit { padding: 22px; }
.project-submit h3 { margin: 0 0 10px; font-size: 15px; }
.project-submit p { color: var(--muted); font-size: 10px; line-height: 1.55; }

.form-panel { display: grid; gap: 18px; padding: 24px; margin-bottom: 22px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.check { display: flex; align-items: center; grid-template-columns: auto 1fr; color: var(--muted); font-size: 9px; }
.table-panel { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 14px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted-2); background: rgb(0 0 0 / .12); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.data-table td { color: #9bb0ba; font-size: 11px; }
.data-table strong { color: var(--ink); }
.data-table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.row-actions.left-actions { justify-content: flex-start; margin-top: 12px; }
.admin-hero { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.admin-hero h2 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.admin-metric { min-height: 0; padding: 11px 13px; border: 1px solid var(--line); background: rgb(8 19 26 / .7); }
.admin-metric span { color: var(--muted-2); font: 700 10px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.admin-metric strong { display: block; margin: 6px 0 2px; color: var(--cyan); font: 450 24px/1 ui-monospace, monospace; }
.admin-metric small { color: var(--muted); font-size: 10px; line-height: 1.2; }
.admin-grid.overview-metrics { width: 75%; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.overview-metrics .admin-metric { position: relative; display: block; padding: 7px 9px; text-decoration: none; }
.overview-metrics .admin-metric:hover, .overview-metrics .admin-metric:focus-visible { border-color: var(--cyan); background: #0b222e; }
.overview-metrics .admin-metric span { display: block; min-height: 24px; letter-spacing: .02em; }
.overview-metrics .admin-metric strong { margin: 4px 0 0; font-size: 20px; }
.overview-metrics .admin-metric small { position: absolute; bottom: 8px; right: 9px; color: var(--cyan); font-size: 13px; }
.audit-record-link { display: grid; grid-template-columns: 145px minmax(0, 1fr) 20px; gap: 18px; align-items: center; padding: 18px 22px; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.audit-record-link:last-child { border-bottom: 0; }
.audit-record-link:hover, .audit-record-link:focus-visible { background: #0b222e; }
.audit-record-link time, .audit-record-link span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.audit-record-link strong { display: block; margin-bottom: 6px; font-size: 14px; overflow-wrap: anywhere; }
.record-detail-panel { padding: 24px; margin-bottom: 24px; }
.record-details { display: grid; gap: 0; margin: 0 0 24px; }
.record-details > div { display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.record-details dt { color: var(--muted); font-size: 13px; }
.record-details dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.audit-detail-json { overflow: auto; padding: 20px; background: #06101b; border: 1px solid var(--line); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.record-pagination > span { margin-right: auto; color: var(--muted); font-size: 13px; }
.record-title-link { color: var(--cyan); font-weight: 700; }
.attempt-answer { padding: 16px 0; border-bottom: 1px solid var(--line); }
.attempt-answer h4, .attempt-answer p { font-size: 14px; line-height: 1.6; }
@media (max-width: 1100px) { .admin-grid.overview-metrics { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .admin-grid.overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-record-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px; padding: 16px; }
  .audit-record-link time { grid-column: 1 / -1; }
  .record-details > div { grid-template-columns: 1fr; gap: 6px; }
  .admin-hero { flex-wrap: wrap; }
}
.split-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr); gap: 20px; margin-top: 20px; }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border: 0; }
.audit-row time { color: var(--muted-2); font: 600 8px/1.4 ui-monospace, monospace; }
.audit-row strong { display: block; margin-bottom: 3px; color: #a9bdc6; font-size: 10px; }
.audit-row span { color: var(--muted); font-size: 9px; }
.builder-tabs { display: flex; gap: 8px; margin: 20px 0; }
.builder-section { display: none; }
.builder-section.active { display: block; }
.builder-list { display: grid; gap: 9px; }
.builder-item { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 18px; border: 1px solid var(--line); background: rgb(8 18 25 / .65); }
.builder-item > span { color: var(--cyan); font: 500 14px/1 ui-monospace, monospace; }
.builder-item h3 { margin: 0 0 5px; font-size: 12px; }
.builder-item p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.grading-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 22px; border-bottom: 1px solid var(--line); }
.grading-card:last-child { border: 0; }
.grading-card h3 { margin: 0 0 7px; font-size: 14px; }
.grading-card p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.score-gauge { min-width: 115px; text-align: right; }
.score-gauge strong { display: block; color: var(--cyan); font: 400 28px/1 ui-monospace, monospace; }
.score-gauge small { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; }

/* Security and operations monitor */
.monitor-shell { --monitor-gap: 16px; display: grid; gap: 22px; }
.monitor-shell.is-refreshing { opacity: .72; pointer-events: none; transition: opacity .15s; }
.monitor-command { position: relative; min-height: 164px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 30px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: linear-gradient(105deg, rgb(10 26 34 / .96), rgb(6 14 20 / .78)); overflow: hidden; }
.monitor-command::before { content: ""; position: absolute; width: 340px; height: 340px; right: -170px; top: -170px; border: 1px solid rgb(55 186 255 / .14); border-radius: 50%; box-shadow: 0 0 0 38px rgb(55 186 255 / .015), 0 0 0 78px rgb(55 186 255 / .012); pointer-events: none; }
.monitor-command::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent 54%); opacity: .55; }
.monitor-command-copy { position: relative; z-index: 1; min-width: 0; }
.monitor-command-copy .eyebrow { margin-bottom: 10px; }
.monitor-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.monitor-title-line h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.045em; }
.monitor-command-copy > p:last-child { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.monitor-controls { position: relative; z-index: 1; flex: 0 0 300px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.monitor-controls label { gap: 6px; color: var(--muted-2); font-size: 8px; }
.monitor-controls select { min-height: 40px; padding-block: 9px; font-size: 12px; }
.monitor-refresh-button { white-space: nowrap; }
.refresh-glyph { color: var(--cyan); font-size: 17px; line-height: 0; }
.monitor-stamp { grid-column: 1 / -1; color: var(--muted-2); font: 700 8px/1.4 ui-monospace, monospace; letter-spacing: .1em; text-align: right; }
.monitor-stamp time { color: var(--muted); }

.health-pill { --health: var(--muted); display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 27px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--health) 34%, transparent); color: var(--health); background: color-mix(in srgb, var(--health) 6%, transparent); font: 750 9px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.health-pill > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.health-healthy { --health: var(--lime); }
.health-degraded { --health: var(--amber); }
.health-critical { --health: var(--red); }
.health-unknown { --health: var(--muted); }
.tone-healthy { --tone: var(--lime); }
.tone-degraded { --tone: var(--amber); }
.tone-critical { --tone: var(--red); }
.tone-unknown { --tone: var(--muted); }

.incident-clear { min-height: 50px; display: flex; align-items: center; gap: 11px; padding: 10px 17px; border: 1px solid rgb(183 243 68 / .18); background: rgb(183 243 68 / .025); }
.incident-clear > span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgb(183 243 68 / .3); color: var(--lime); font: 700 12px/1 ui-monospace, monospace; }
.incident-clear strong { color: #c8dbd2; font-size: 12px; }
.incident-clear small { color: var(--muted); font-size: 11px; }
.incident-stack { display: grid; gap: 8px; }
.incident-card { --tone: var(--muted); display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--line)); border-left: 3px solid var(--tone); background: color-mix(in srgb, var(--tone) 4%, rgb(8 18 25 / .92)); }
.incident-card.incident-healthy { --tone: var(--lime); }
.incident-card.incident-degraded { --tone: var(--amber); }
.incident-card.incident-critical { --tone: var(--red); }
.incident-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--tone); color: var(--tone); font: 800 14px/1 ui-monospace, monospace; }
.incident-card div > span { color: var(--muted-2); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.incident-card strong { display: block; margin: 5px 0; font-size: 13px; }
.incident-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.monitor-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: rgb(4 12 17 / .55); }
.monitor-kpi { position: relative; min-height: 126px; padding: 20px; border-right: 1px solid var(--line); overflow: hidden; }
.monitor-kpi:last-child { border-right: 0; }
.monitor-kpi::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--line); }
.monitor-kpi.kpi-healthy::after { background: linear-gradient(90deg, var(--lime), transparent); }
.monitor-kpi.kpi-degraded::after { background: linear-gradient(90deg, var(--amber), transparent); }
.monitor-kpi.kpi-critical::after { background: linear-gradient(90deg, var(--red), transparent); }
.monitor-kpi > span { color: var(--muted-2); font: 750 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.monitor-kpi > strong { display: block; margin: 19px 0 9px; color: var(--cyan); font: 450 clamp(20px, 2.2vw, 31px)/1 ui-monospace, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-kpi:first-child > strong { color: var(--ink); font-family: inherit; font-weight: 650; letter-spacing: -.03em; }
.monitor-kpi > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }

.monitor-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--monitor-gap); align-items: stretch; }
.monitor-panel { min-width: 0; border: 1px solid var(--line); background: linear-gradient(145deg, rgb(8 19 26 / .82), rgb(5 13 18 / .72)); box-shadow: 0 14px 45px rgb(0 0 0 / .12); }
.monitor-span-4 { grid-column: span 4; }
.monitor-span-5 { grid-column: span 5; }
.monitor-span-7 { grid-column: span 7; }
.monitor-panel-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.monitor-panel-head .section-code { margin: 0 0 6px; font-size: 8px; }
.monitor-panel-head h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.monitor-panel-head > span { color: var(--muted-2); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

.service-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-node { min-height: 82px; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-node:nth-child(2n) { border-right: 0; }
.service-node:nth-last-child(-n+2) { border-bottom: 0; }
.service-beacon { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.service-node > div:nth-child(2) { min-width: 0; }
.service-node strong { display: block; margin-bottom: 5px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-node small { display: block; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-meta { display: grid; justify-items: end; gap: 7px; }
.service-meta > span { color: var(--muted-2); font: 650 9px/1 ui-monospace, monospace; }
.service-meta .health-pill { min-height: 22px; padding: 4px 6px; font-size: 7px; }

.meter-stack, .storage-stack { display: grid; gap: 20px; padding: 22px; }
.telemetry-meter { display: grid; gap: 8px; }
.telemetry-meter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.telemetry-meter-head span { min-width: 0; color: #b7c9d0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.telemetry-meter-head strong { color: var(--ink); font: 550 12px/1 ui-monospace, monospace; }
.telemetry-track { --tone: var(--muted); display: block; width: 100%; height: 6px; border: 1px solid var(--line); appearance: none; background: rgb(1 7 10 / .78); overflow: hidden; }
.telemetry-track::-webkit-progress-bar { background: rgb(1 7 10 / .78); }
.telemetry-track::-webkit-progress-value { background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 42%, var(--cyan)), var(--tone)); box-shadow: 0 0 12px color-mix(in srgb, var(--tone) 50%, transparent); }
.telemetry-track::-moz-progress-bar { background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 42%, var(--cyan)), var(--tone)); box-shadow: 0 0 12px color-mix(in srgb, var(--tone) 50%, transparent); }
.telemetry-meter > small { color: var(--muted-2); font: 650 9px/1.35 ui-monospace, monospace; }
.host-foot { display: flex; justify-content: space-between; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line); color: var(--muted-2); font: 650 8px/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
.storage-stack .monitor-empty { min-height: 150px; }

.gpu-stack { display: grid; }
.gpu-node { padding: 20px; border-bottom: 1px solid var(--line); }
.gpu-node:last-child { border-bottom: 0; }
.gpu-node-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gpu-node-head > span { color: var(--cyan); font: 750 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.gpu-node h4 { margin: 12px 0 18px; font-size: 14px; }
.gpu-readings { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; border: 1px solid var(--line); }
.gpu-readings div { padding: 11px; border-right: 1px solid var(--line); }
.gpu-readings div:last-child { border: 0; }
.gpu-readings strong, .gpu-readings span { display: block; }
.gpu-readings strong { color: var(--cyan); font: 500 18px/1 ui-monospace, monospace; }
.gpu-readings span { margin-top: 6px; color: var(--muted-2); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.gpu-driver { display: block; margin-top: 15px; color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; }

.data-layer-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 22px; }
.data-core { display: flex; align-items: center; gap: 15px; min-width: 0; }
.data-core-mark { flex: 0 0 auto; width: 57px; height: 57px; display: grid; place-items: center; border: 1px solid var(--line-hot); color: var(--cyan); background: rgb(55 186 255 / .04); font: 700 15px/1 ui-monospace, monospace; }
.data-core span { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.data-core h4 { margin: 7px 0 5px; font-size: 15px; }
.data-core p { margin: 0; color: var(--muted); font-size: 10px; }
.monitor-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.monitor-fact { min-width: 0; padding: 11px; border-right: 1px solid var(--line); }
.monitor-fact:last-child { border-right: 0; }
.monitor-fact span, .monitor-fact strong, .monitor-fact small { display: block; }
.monitor-fact span { color: var(--muted-2); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.monitor-fact strong { margin-top: 8px; color: #bfd2d8; font: 550 11px/1.2 ui-monospace, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-fact small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.vector-console { margin: 0 22px 22px; padding: 17px; border: 1px solid var(--line); border-left: 2px solid var(--cyan); background: rgb(1 9 13 / .38); }
.vector-console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vector-console-head span { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.vector-console-head strong { display: block; margin-top: 7px; font-size: 13px; }
.vector-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vector-stats .monitor-fact { padding-left: 0; }
.vector-console > small { display: block; margin-top: 12px; color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; }

.security-checks { display: grid; }
.security-check { min-height: 45px; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.security-check-mark { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); color: var(--tone); font: 750 10px/1 ui-monospace, monospace; }
.security-check strong { font-size: 11px; }
.security-check .health-pill { min-height: 22px; padding: 4px 6px; font-size: 7px; }
.security-patch { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: rgb(0 0 0 / .12); }
.security-patch span { color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.security-patch strong { color: var(--muted); font: 650 9px/1 ui-monospace, monospace; }

.access-metrics { display: grid; grid-template-columns: repeat(2, 1fr); }
.access-metrics > div { min-height: 89px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.access-metrics > div:nth-child(2n) { border-right: 0; }
.access-metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
.access-metrics span { display: block; color: var(--muted-2); font: 700 8px/1.25 ui-monospace, monospace; letter-spacing: .09em; }
.access-metrics strong { display: block; margin-top: 13px; color: var(--cyan); font: 450 25px/1 ui-monospace, monospace; }
.access-metrics .metric-alert strong { color: var(--red); }
.monitor-note { margin: 0; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.monitor-note strong { color: var(--muted); font-weight: 600; }

.backup-glyph { --tone: var(--muted); float: left; width: 72px; height: 72px; display: grid; place-items: center; margin: 20px 16px 16px 20px; border: 1px solid color-mix(in srgb, var(--tone) 42%, var(--line)); border-radius: 50%; color: var(--tone); background: radial-gradient(circle, color-mix(in srgb, var(--tone) 9%, transparent), transparent 68%); }
.backup-glyph span { font: 400 28px/1 ui-monospace, monospace; }
.backup-detail { min-height: 112px; display: grid; align-content: center; gap: 7px; padding: 17px 20px 12px 0; }
.backup-detail strong { font-size: 12px; line-height: 1.4; }
.backup-detail span { color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.backup-detail small { color: var(--muted-2); font: 700 8px/1.25 ui-monospace, monospace; letter-spacing: .08em; }

.pipeline-flow { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px; }
.pipeline-flow div { text-align: center; }
.pipeline-flow strong, .pipeline-flow span { display: block; }
.pipeline-flow strong { color: var(--cyan); font: 450 26px/1 ui-monospace, monospace; }
.pipeline-flow span { margin-top: 8px; color: var(--muted-2); font: 700 7px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.pipeline-flow i { color: var(--line-hot); font-style: normal; }
.pipeline-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pipeline-foot strong { color: #aec1c9; }

.monitor-empty { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: var(--muted); text-align: left; }
.monitor-empty > span { color: var(--line-hot); font-size: 24px; }
.monitor-empty strong, .monitor-empty small { display: block; }
.monitor-empty strong { color: #aebfc6; font-size: 12px; }
.monitor-empty small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.monitor-loading { min-height: 420px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.monitor-loading strong { color: #b8cbd2; font-size: 14px; }
.monitor-loading small { font-size: 11px; }
.monitor-loader { width: 42px; height: 42px; margin-bottom: 8px; border: 1px solid var(--line); border-top-color: var(--cyan); border-right-color: var(--cyan); border-radius: 50%; box-shadow: 0 0 25px rgb(55 186 255 / .08); animation: spin 1s linear infinite; }
.monitor-error { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 14px; padding: 35px; text-align: center; }
.monitor-error-code { color: var(--red); font: 750 9px/1 ui-monospace, monospace; letter-spacing: .15em; }
.monitor-error h2 { margin: 0; font-size: clamp(25px, 4vw, 40px); }
.monitor-error p { max-width: 580px; margin: 0 0 8px; color: var(--muted); line-height: 1.55; }

.result-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center; padding: 35px; }
.result-score { width: 170px; height: 170px; display: grid; place-items: center; align-content: center; border: 1px solid var(--line-hot); border-radius: 50%; background: radial-gradient(circle, rgb(55 186 255 / .08), transparent 65%); }
.result-score strong { color: var(--cyan); font: 450 44px/1 ui-monospace, monospace; }
.result-score span { color: var(--muted); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .15em; }
.certificate-award { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 28px; margin-top: 20px; background: linear-gradient(110deg, #071936, #062753 65%, #04162d); }
.certificate-award img { display: block; width: 132px; height: auto; }
.certificate-award .eyebrow { margin: 0 0 7px; }
.certificate-award h3 { margin: 0 0 8px; color: var(--ink); font-size: clamp(17px, 2vw, 23px); line-height: 1.25; }
.certificate-award p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.certificate-award .button { white-space: nowrap; }
.criteria-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.criterion-card { padding: 18px; border: 1px solid var(--line); background: rgb(8 18 25 / .58); }
.criterion-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.criterion-card h3 { margin: 0; font-size: 12px; }
.criterion-card strong { color: var(--cyan); font: 500 13px/1 ui-monospace, monospace; }
.criterion-card p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 32px; color: var(--ink); border: 1px solid var(--line-hot); background: #071119; overflow: auto; }
.dialog::backdrop { background: rgb(0 5 8 / .8); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 11px; right: 14px; width: 31px; height: 31px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.dialog h2 { margin: 0 0 8px; }
.dialog .dialog-subtitle { margin: 0 0 25px; color: var(--muted); font-size: 11px; }
.dialog-form { display: grid; gap: 16px; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; width: min(390px, calc(100vw - 44px)); }
.toast { padding: 15px 18px; border: 1px solid var(--line-hot); border-left: 3px solid var(--cyan); background: #0b1820; box-shadow: var(--shadow); color: #c8dbe2; font-size: 11px; animation: toast-in .25s ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(15px); } }
.loading { min-height: 180px; display: grid; place-items: center; color: var(--muted); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.loading::before { content: ""; width: 24px; height: 24px; margin-bottom: 12px; border: 1px solid var(--line); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.danger-text { color: var(--red); }
.mono { font-family: ui-monospace, "Cascadia Mono", monospace; }

@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root { --sidebar: 230px; }
  .auth-main { grid-template-columns: 1fr 430px; gap: 50px; }
  .hero-stats div { min-width: 120px; }
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-search-form.is-admin { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .field-grid.three { grid-template-columns: 1fr 1fr; }
  .monitor-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monitor-kpi { border-bottom: 1px solid var(--line); }
  .monitor-kpi:nth-child(3n) { border-right: 0; }
  .monitor-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .data-layer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .auth-screen { padding: 0 24px 40px; }
  .auth-main { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 70px 0 20px; }
  .hero-copy h1 { font-size: clamp(48px, 12vw, 72px); }
  .auth-panel { max-width: 650px; width: 100%; margin: 0 auto; }
  .sidebar { transform: translateX(-101%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .workspace { grid-column: 1 / -1; }
  .menu-button { display: block; margin-right: 14px; }
  .topbar { justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .dashboard-grid, .exam-brief, .exam-workspace, .split-panels { grid-template-columns: 1fr; }
  .exam-rail { grid-template-columns: 1fr 1fr; }
  .project-submit { grid-column: 1 / -1; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid { grid-template-columns: 1fr; }
  .knowledge-search-head { align-items: flex-start; }
  .monitor-command { align-items: stretch; flex-direction: column; }
  .monitor-controls { flex-basis: auto; width: min(100%, 520px); }
  .monitor-stamp { text-align: left; }
  .monitor-span-4, .monitor-span-5, .monitor-span-7 { grid-column: 1 / -1; }
  .monitor-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-kpi:nth-child(3n) { border-right: 1px solid var(--line); }
  .monitor-kpi:nth-child(2n) { border-right: 0; }
  .monitor-kpi:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .monitor-kpi:last-child { grid-column: 1 / -1; border: 0; }
}

@media (max-width: 560px) {
  .public-header { height: 80px; }
  .system-chip { display: none; }
  .hero-copy { padding-top: 45px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { min-width: 0; padding: 0 10px; }
  .hero-stats strong { font-size: 20px; }
  .auth-panel { padding: 22px 20px 30px; }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .topbar { height: 80px; padding: 0 16px; }
  .topbar-actions .clock { display: none; }
  #main { padding: 20px 15px 40px; }
  .command-banner { min-height: 220px; }
  .radar { display: none; }
  .stat-grid, .materials-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-search-head { flex-direction: column; }
  .knowledge-search-mark { width: 45px; height: 45px; }
  .knowledge-search-form { padding: 18px 17px 14px; }
  .knowledge-query-control { grid-template-columns: 38px minmax(0, 1fr); }
  .knowledge-query-control .button { grid-column: 1 / -1; margin: 0 -1px -1px; }
  .knowledge-search-options { grid-template-columns: 1fr; }
  .knowledge-search-status { margin: 0 17px 17px; }
  .knowledge-results-head { align-items: flex-start; flex-direction: column; padding: 17px; }
  .knowledge-results-head > span { text-align: left; }
  .knowledge-result { grid-template-columns: 40px minmax(0, 1fr); }
  .knowledge-result-rank { padding-top: 21px; font-size: 14px; }
  .knowledge-result article { padding: 18px 16px 20px; }
  .knowledge-result article > header { flex-direction: column; }
  .knowledge-result-metrics { width: 100%; justify-content: space-between; }
  .stat-card { border-right: 0; }
  .section-intro { align-items: flex-start; }
  .metric-orb { width: 70px; height: 70px; }
  .exam-rail { grid-template-columns: 1fr; }
  .project-submit { grid-column: auto; }
  .question-body { padding: 22px 17px; }
  .result-hero { grid-template-columns: 1fr; text-align: center; }
  .result-score { margin: auto; }
  .certificate-award { grid-template-columns: 90px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .certificate-award img { width: 90px; }
  .certificate-award .button { grid-column: 1 / -1; justify-self: start; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .monitor-shell { --monitor-gap: 12px; gap: 15px; }
  .monitor-command { padding: 23px 19px; }
  .monitor-title-line { align-items: flex-start; flex-direction: column; }
  .monitor-title-line h2 { font-size: 31px; }
  .monitor-controls { grid-template-columns: 1fr; }
  .monitor-stamp { grid-column: auto; }
  .monitor-kpi-grid { grid-template-columns: 1fr; }
  .monitor-kpi, .monitor-kpi:nth-child(2n), .monitor-kpi:nth-child(3n), .monitor-kpi:nth-last-child(-n+2), .monitor-kpi:last-child { grid-column: auto; border: 0; border-bottom: 1px solid var(--line); }
  .monitor-kpi:last-child { border-bottom: 0; }
  .incident-clear { align-items: flex-start; flex-wrap: wrap; }
  .incident-clear small { flex-basis: calc(100% - 40px); margin-left: 36px; }
  .incident-card { grid-template-columns: 32px minmax(0, 1fr); }
  .incident-card > .health-pill { grid-column: 2; }
  .service-matrix { grid-template-columns: 1fr; }
  .service-node, .service-node:nth-child(2n), .service-node:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-node:last-child { border-bottom: 0; }
  .data-layer-grid { padding: 17px; }
  .data-core { align-items: flex-start; }
  .monitor-facts, .vector-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-fact:nth-child(2) { border-right: 0; }
  .monitor-fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vector-console { margin: 0 17px 17px; }
  .vector-console-head { align-items: flex-start; flex-direction: column; }
  .host-foot, .security-patch, .pipeline-foot { align-items: flex-start; flex-direction: column; }
  .gpu-readings strong { font-size: 15px; }
  .backup-glyph { float: none; margin: 18px auto 5px; }
  .backup-detail { min-height: 0; padding: 13px 18px 18px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Vercel-facing course identity and learning path. */
:root { --muted: #a4bed8; --muted-2: #7e9dbd; }
.brand-logo { display: block; width: 190px; height: auto; }
.public-header { max-width: 1460px; margin: 0 auto; }
.public-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); }
.public-nav a { color: #c5d8e0; font-size: 13px; font-weight: 650; }
.public-nav a:hover, .public-nav a:focus-visible { color: var(--cyan); }
.public-nav .public-nav-access { display: inline-flex; align-items: center; gap: 16px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-hot); color: var(--cyan); }
.public-main { width: 100%; }
.auth-main { align-items: center; }
.hero-description { max-width: 620px; margin: 26px 0 0; color: #acc2cc; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button { min-height: 46px; padding: 12px 18px; font-size: 11px; }
.hero-actions .button.ghost { border-color: #335763; color: #d5e5eb; }
.hero-actions b { font-size: 16px; }
.hero-copy .signal-line { margin: 39px 0; }
.hero-stats { flex-wrap: wrap; row-gap: 18px; }
.hero-stats div { min-width: 145px; }
.hero-stats span { font-size: 10px; line-height: 1.35; }
.panel-index { color: var(--muted); font-size: 10px; }
.panel-index span { color: var(--cyan); text-align: right; }
.auth-tabs button { font-size: 11px; }
.auth-form label, .form-panel label { font-size: 11px; }
.auth-form label small, .form-panel label small { color: var(--muted); font-size: 11px; }
.auth-panel .form-heading p { font-size: 14px; line-height: 1.5; }
.auth-panel input { min-height: 46px; }
.public-section { max-width: 1460px; margin: 0 auto; padding: 90px 0; border-top: 1px solid var(--line); }
.public-section-heading { max-width: 790px; margin-bottom: 35px; }
.public-section h2 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.public-section-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.65; }
.day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.day-card { display: flex; flex-direction: column; min-height: 405px; padding: clamp(27px, 3.2vw, 45px); border: 1px solid var(--line); background: linear-gradient(145deg, rgb(13 29 37 / .9), rgb(5 14 20 / .88)); box-shadow: 0 20px 60px rgb(0 0 0 / .16); }
.day-card:nth-child(2) { background: linear-gradient(145deg, rgb(15 31 37 / .9), rgb(7 16 24 / .9)); }
.day-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cyan); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .12em; }
.day-card-top strong { color: #d4e8ec; font: 600 15px/1.2 ui-monospace, monospace; letter-spacing: 0; }
.day-card h3 { max-width: 620px; margin: 35px 0 13px; font-size: clamp(25px, 2.4vw, 36px); line-height: 1.16; letter-spacing: -.035em; }
.day-card p { max-width: 630px; margin: 0; color: #b1c5cf; font-size: 15px; line-height: 1.65; }
.day-card ul { display: grid; gap: 8px; margin: 24px 0 30px; padding-left: 20px; color: #c5d5dc; font-size: 14px; line-height: 1.45; }
.day-card li::marker { color: var(--cyan); }
.day-card-foot { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--cyan); font: 700 10px/1.3 ui-monospace, monospace; letter-spacing: .13em; }
.outcomes-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(30px, 8vw, 120px); }
.outcomes-section h2 { max-width: 620px; }
.outcome-list { display: grid; align-content: start; }
.outcome-list > div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.outcome-list > div:first-child { border-top: 1px solid var(--line); }
.outcome-list span { color: var(--cyan); font: 600 16px/1.4 ui-monospace, monospace; }
.outcome-list p { margin: 0; color: #c2d5dd; font-size: 16px; line-height: 1.5; }
.public-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; max-width: 1460px; margin: 0 auto; padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-footer > span:first-child { color: #c8e5e9; font: 700 11px/1.3 ui-monospace, monospace; letter-spacing: .12em; }
.public-footer a { font-weight: 700; }

/* Materials stay protected while the student library reads in course order. */
#materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 32px; }
.material-page-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); background: linear-gradient(145deg, rgb(10 23 31 / .86), rgb(6 14 20 / .8)); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.material-page-card:hover, .material-page-card:focus-visible { border-color: var(--cyan); background: #0b222e; }
.material-page-code { color: var(--cyan); font: 700 28px/1 ui-monospace, monospace; }
.material-page-card h3 { margin: 24px 0 10px; font-size: 25px; }
.material-page-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.material-page-card small { margin-top: auto; color: var(--muted); }
.material-page-open { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 13px; }
.material-back { display: inline-block; margin-bottom: 24px; color: var(--cyan); font-size: 14px; }
.material-page-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.material-page-tabs a { padding: 12px 18px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.material-page-tabs a[aria-current], .material-page-tabs a:hover { border-color: var(--cyan); color: var(--cyan); background: #0b222e; }
.material-file-section { margin-bottom: 32px; }
.material-file-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.material-file-section h3 { margin: 0; font-size: 20px; }
.material-file-section > header > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.material-section-description { color: var(--muted); font-size: 14px; line-height: 1.6; }
.material-file-list { border: 1px solid var(--line); background: rgb(7 20 29 / .7); }
.material-download-row { display: flex; align-items: center; gap: 18px; padding: 22px; }
.material-download-row + .material-download-row { border-top: 1px solid var(--line); }
.material-download-row .file-icon { flex: 0 0 44px; }
.material-file-info { flex: 1; min-width: 0; }
.material-file-info h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.material-file-info p { margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.material-file-info small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.material-download-row > .button { flex-shrink: 0; min-width: 112px; justify-content: center; }
.material-download-row.is-locked { opacity: .65; }
.material-shared-note { padding: 24px; border: 1px solid var(--line); }
.material-shared-note p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.material-labs-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--line); margin-bottom: 22px; }
.material-labs-entry p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lab-row-actions { flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 900px) { #materials-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .material-download-row { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .material-download-row > .button { width: 100%; }
  .lab-row-actions { width: 100%; justify-content: flex-start; }
  .lab-row-actions .button:first-child { flex: 1; }
  .material-labs-entry { flex-wrap: wrap; }
  .material-file-info { flex-basis: calc(100% - 56px); }
  .material-page-tabs a { flex: 1; text-align: center; padding: 12px 10px; }
}
.material-group { margin: 0 0 42px; }
.material-group-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.material-group-head .section-code { margin-bottom: 8px; font-size: 10px; }
.material-group-head h3 { margin: 0 0 5px; font-size: 27px; letter-spacing: -.035em; }
.material-group-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.material-group-count { white-space: nowrap; color: var(--cyan); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .12em; }
.material-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.material-card .material-type { font-size: 10px; line-height: 1.4; }
.material-card h3, .material-card h5 { font-size: 19px; line-height: 1.24; }
.material-card h5 { margin: 28px 0 10px; }
.material-subgroup-head { margin-bottom: 18px; }
.material-subgroup-head h4 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.025em; }
.material-subgroup-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.material-card p { font-size: 13px; line-height: 1.55; }
.material-card footer { flex-wrap: wrap; font-size: 10px; line-height: 1.4; }
.material-card-locked { opacity: .55; border-color: #53606b; }
.material-card-locked::before { background: #697680; }
.material-card-locked .material-type { color: #9caab5; }
.material-card-locked button[disabled] { cursor: not-allowed; filter: grayscale(1); }
.student-exam-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; margin-bottom: 16px; }
.student-exam-toolbar .section-code { display: block; margin: 0 0 7px; }
.student-exam-toolbar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.student-exam-toolbar p strong { color: var(--ink); }
.exam-control-actions { display: flex; flex: 0 0 auto; gap: 8px; flex-wrap: wrap; }
.student-exam-table { min-width: 900px; }
.student-exam-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; font-size: 11px; }
.student-exam-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--cyan); cursor: pointer; }
@media (max-width: 820px) { .student-exam-toolbar { align-items: flex-start; flex-direction: column; } }
.lab-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lab-intro .eyebrow { margin-bottom: 8px; }
.lab-intro h2 { margin: 0 0 7px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
.lab-intro p:last-child { max-width: 740px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lab-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line-hot); border-radius: 5px; color: var(--cyan); font: 700 10px/1.2 ui-monospace, monospace; white-space: nowrap; }
.lab-examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
.lab-download { min-width: 0; min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 6px; padding: 9px 11px; border: 1px solid var(--line-hot); border-radius: 6px; background: linear-gradient(145deg, rgb(13 56 105 / .84), rgb(5 27 60 / .94)); color: var(--ink); text-decoration: none; box-shadow: inset 0 1px 0 rgb(145 217 255 / .07); transition: border-color .18s, background .18s, transform .18s; }
.lab-download:hover { transform: translateY(-2px); border-color: var(--cyan); background: linear-gradient(145deg, rgb(18 77 136 / .94), rgb(7 38 81 / .98)); }
.lab-download:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: 2px; }
.lab-download strong { grid-column: 1; overflow: hidden; color: #e8f7ff; font: 750 16px/1.2 ui-monospace, monospace; letter-spacing: .04em; white-space: nowrap; }
.lab-download small { grid-column: 1; overflow: hidden; margin-top: 4px; color: var(--cyan-soft); font: 700 9px/1.2 ui-monospace, monospace; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.lab-download span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--cyan); font-size: 17px; }
.lab-help { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.filter { min-height: 38px; font-size: 10px; }
.filter:focus-visible, .button:focus-visible, .public-nav a:focus-visible, .public-footer a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.nav-link { font-size: 13px; }
.button { font-size: 11px; }
.button.small { font-size: 10px; }
.exam-availability { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.exam-access-note { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 24px; color: #c5d7df; font-size: 13px; line-height: 1.5; }
.exam-access-note .status-badge { flex: 0 0 auto; }
.exam-attempt-count { margin: -8px 0 22px; padding: 10px 13px; border-left: 2px solid var(--cyan); background: rgb(55 186 255 / .055); color: var(--ink); font-size: 13px; font-weight: 700; }
.assessment-control-note { margin-bottom: 24px; padding: 17px 20px; border: 1px solid var(--line-hot); background: rgb(55 186 255 / .045); color: #c8dce4; }
.assessment-control-note.is-off { border-color: rgb(245 189 84 / .4); background: rgb(245 189 84 / .045); }
.assessment-control-note strong { display: block; margin-bottom: 7px; color: var(--cyan); font: 750 11px/1.2 ui-monospace, monospace; letter-spacing: .12em; }
.assessment-control-note.is-off strong { color: var(--amber); }
.assessment-control-note p { margin: 0; font-size: 13px; line-height: 1.55; }
.assessment-control-note .button { margin-top: 15px; }
.assessment-control-note a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.upload-status { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.grading-toggle { grid-column: 1 / -1; }
.cloud-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.cloud-summary-grid article { min-height: 0; padding: 12px 16px; border-right: 1px solid var(--line); background: rgb(8 19 26 / .68); }
.cloud-summary-grid article:last-child { border-right: 0; }
.cloud-summary-grid span, .cloud-summary-grid strong, .cloud-summary-grid small { display: block; }
.cloud-summary-grid span { color: var(--muted); font: 750 9px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.cloud-summary-grid strong { margin: 5px 0 2px; color: var(--ink); font-size: 18px; line-height: 1.15; }
.cloud-summary-grid small { color: var(--muted); font-size: 10px; line-height: 1.25; }
.cloud-data-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
.cloud-dependency { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cloud-dependency strong { font-size: 14px; }
.cloud-monitor .monitor-note { padding: 0 20px 17px; line-height: 1.6; }
.cloud-monitor .access-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .public-section { padding: 70px 0; }
  .material-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-summary-grid article:nth-child(2) { border-right: 0; }
  .cloud-summary-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 850px) {
  .public-nav a:not(.public-nav-access) { display: none; }
  .auth-main { padding-bottom: 65px; }
  .outcomes-section { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .auth-screen { padding: 0 20px 32px; }
  .public-header { height: 78px; }
  .brand-logo { width: 153px; }
  .public-nav .public-nav-access { min-height: 37px; padding: 0 11px; font-size: 11px; }
  .hero-copy { padding-top: 50px; }
  .hero-description { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { justify-content: space-between; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { min-width: 0; padding: 0 9px; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 8px; }
  .day-grid, .material-group-grid { grid-template-columns: 1fr; }
  .day-card { min-height: 0; }
  .public-section { padding: 57px 0; }
  .public-section h2 { font-size: 34px; }
  .material-group-head { align-items: flex-start; }
  .material-group-head h3 { font-size: 24px; }
  .lab-intro { align-items: start; }
  .lab-count { margin-top: 4px; }
  .lab-examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .lab-download { min-height: 58px; padding: 8px 9px; }
  .cloud-summary-grid { grid-template-columns: 1fr; }
  .cloud-summary-grid article, .cloud-summary-grid article:nth-child(2), .cloud-summary-grid article:last-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .cloud-summary-grid article:last-child { border-bottom: 0; }
  .cloud-data-facts { grid-template-columns: 1fr; }
}

/* Modern Agentic AI public entry and shared blue identity. */
.backdrop::before { background-image: linear-gradient(rgb(73 147 228 / .075) 1px, transparent 1px), linear-gradient(90deg, rgb(73 147 228 / .075) 1px, transparent 1px); }
.backdrop::after { border-color: rgb(55 186 255 / .14); box-shadow: 0 0 0 10vw rgb(55 186 255 / .018), 0 0 0 18vw rgb(55 186 255 / .013); }
.auth-screen { padding: 0 clamp(20px, 4vw, 64px); }
.public-main { width: 100%; max-width: 1280px; min-height: 100vh; margin: 0 auto; }
.welcome-screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(16px, 2.4vh, 26px); padding: 28px 0 42px; text-align: center; }
.logo-stage { position: relative; width: min(800px, 100%); display: grid; place-items: center; isolation: isolate; }
.logo-stage::before { content: ""; position: absolute; inset: 17% 4% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at 50% 66%, rgb(75 161 247 / .48), rgb(24 88 171 / .29) 52%, transparent 78%); filter: blur(24px); }
.course-logo { display: block; position: relative; width: min(720px, 88vw); max-width: 100%; max-height: 58vh; height: auto; object-fit: contain; filter: drop-shadow(0 16px 46px rgb(0 100 220 / .2)) brightness(1.08); }
.welcome-screen h1 { max-width: 950px; margin: 0; color: var(--ink); font-size: clamp(28px, 4vw, 54px); font-weight: 750; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.entry-box { width: min(192px, 100%); height: 44px; border: 1px solid var(--line-hot); border-radius: 6px; background: #08264b; box-shadow: 0 6px 20px rgb(0 0 0 / .2); }
.entry-box .button { width: 100%; height: 42px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 5px; justify-content: space-between; font-size: 13px; }
.entry-box .button span { font-size: 18px; }
.entry-box .button:disabled { cursor: wait; opacity: .7; }
.welcome-screen #startup-message { max-width: 480px; margin: 0; }

.signin-screen { max-width: 980px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 42px 0; margin: 0 auto; }
.signin-screen > .text-back { align-self: flex-start; margin-bottom: 36px; }
.text-back { width: fit-content; min-height: 38px; padding: 7px 0; border: 0; background: none; color: var(--cyan-soft); cursor: pointer; font-size: 13px; font-weight: 650; }
.text-back:hover { color: var(--ink); }
.signin-screen #access { width: min(540px, 100%); min-height: 0; margin: 0 auto; padding: 28px 34px 34px; border-color: var(--line-hot); border-radius: 10px; clip-path: none; background: linear-gradient(150deg, rgb(10 40 80 / .97), rgb(5 20 45 / .98)); }
.signin-screen #access .text-back { margin: 0 0 19px; }
.signin-title { margin: 22px 0 0; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.signin-screen #access .auth-tabs { margin: 15px 0 24px; }
.signin-screen #access .form-intro { margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.signin-screen #access .auth-form { gap: 15px; }
.signin-screen #access input { background: rgb(3 15 35 / .82); }
.signin-screen #access label { color: #c6dbf2; }
.signin-screen #access .panel-index { color: var(--muted); }
.signin-screen #access .panel-index span { color: var(--cyan-soft); }
.sidebar { overflow-y: auto; background: rgb(4 17 38 / .97); }
.sidebar .brand.compact { justify-content: center; margin: 0 0 12px; }
.sidebar .brand-logo { display: block; width: 172px; max-width: 100%; height: auto; }
.sidebar .course-code { background: rgb(55 186 255 / .04); }
.topbar { background: rgb(4 17 38 / .88); }
.panel-cut { background: linear-gradient(145deg, rgb(11 37 72 / .96), rgb(5 18 39 / .97)); }
.panel, .stat-card, .cloud-summary-grid article { background: rgb(8 29 58 / .72); }
input, textarea, select { background: rgb(4 18 39 / .78); }
.text-back:focus-visible, .entry-box .button:focus-visible, .auth-tabs button:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: 4px; }

@media (max-width: 700px) {
  .welcome-screen { gap: 18px; padding: 30px 0 45px; }
  .course-logo { width: min(100%, 520px); max-height: 48vh; }
  .welcome-screen h1 { font-size: clamp(28px, 7.7vw, 43px); }
  .signin-screen { padding: 24px 0 35px; }
  .signin-screen > .text-back { margin-bottom: 22px; }
  .signin-screen #access { padding: 24px 20px 27px; }
}

.assessment-picker{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.student-account-actions{min-width:230px;max-width:350px;flex-wrap:wrap}.student-account-actions .button{white-space:nowrap}.student-exam-toolbar .status-badge{vertical-align:middle}.reset-link{width:100%;margin:12px 0}.exam-card + .exam-card{border-top:1px solid var(--line);margin-top:16px;padding-top:24px}

/* Compact classroom management pages. */
.management-workspace #main { width:min(1600px,100%); padding:22px 28px 40px; }
.management-workspace .topbar { height:72px; padding-inline:28px; }
.management-workspace .topbar h1 { font-size:17px; }
.classroom-hub { font-size:var(--management-font); line-height:1.5; }
.classroom-hub h2 { margin:0 0 5px; font-size:22px; letter-spacing:-.02em; }
.classroom-hub h3 { margin:0 0 7px; font-size:14px; line-height:1.4; }
.classroom-hub p { margin:5px 0 12px; color:var(--muted); }
.classroom-hub .eyebrow { font-size:9px; margin-bottom:6px; }
.classroom-hub .button { min-height:32px; padding:7px 11px; font-size:11px; letter-spacing:.01em; }
.classroom-hub .status-badge { font-size:9px; padding:4px 7px; }
.classroom-hub input:not([type=checkbox]), .classroom-hub select { min-height:33px; padding:7px 9px; font-size:12px; }
.classroom-hub label { font-size:11px; gap:5px; }
.classroom-hub small { font-size:10px; color:var(--muted); }
.classroom-hub .table-panel { padding:0; overflow:auto; }
.classroom-hub .data-table { min-width:650px; }
.classroom-hub .data-table th { padding:9px 12px; font-size:9px; }
.classroom-hub .data-table td { padding:9px 12px; font-size:12px; }
.classroom-hub .data-table td small { display:block; margin-top:2px; }
.classroom-hub .row-actions { gap:6px; flex-wrap:wrap; }
.hub-heading, .hub-card-title { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.hub-heading { margin:18px 0 14px; }
.hub-heading > div:first-child { min-width:0; }
.hub-heading > .row-actions { max-width:50%; justify-content:flex-end; }
.hub-tabs, .hub-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 14px; }
.hub-tabs { padding-bottom:10px; border-bottom:1px solid var(--line); }
.hub-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0; }
.hub-metrics > div { border:1px solid var(--line); background:var(--panel); padding:10px 13px; display:flex; flex-direction:column; gap:4px; }
.hub-metrics span { color:var(--muted); font-size:10px; }
.hub-metrics strong { font-size:17px; line-height:1.3; overflow-wrap:anywhere; }
.hub-filter, .hub-inline-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:14px 0; }
.hub-filter label:first-child { flex:1; min-width:180px; }
.hub-filter label { min-width:140px; }
.hub-filter label, .hub-inline-form label, .hub-access-form > label { display:flex; flex-direction:column; }
.hub-pagination { display:flex; align-items:center; gap:8px; margin-top:12px; }
.hub-pagination > span { margin-right:auto; color:var(--muted); }
.hub-columns, .hub-access-grid, .hub-assessment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.classroom-hub .hub-panel { padding:16px; margin:0 0 14px; }
.hub-columns .hub-panel, .hub-access-grid .hub-panel { margin:0; }
.hub-details { margin:10px 0; }
.hub-details > div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; border-bottom:1px solid var(--line); padding:8px 0; }
.hub-details dt { color:var(--muted); }
.hub-details dd { margin:0; overflow-wrap:anywhere; }
.hub-id { font-family:ui-monospace,monospace; font-size:10px; }
.hub-action-stack { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.hub-access-form { display:grid; gap:10px; }
.hub-access-form > label.check { flex-direction:row; align-items:center; gap:8px; }
.hub-access-form input[type=checkbox] { margin:0; width:16px; height:16px; }
.hub-access-form p { margin:0; }
.hub-card-title h3 small { display:block; font-weight:400; }
.hub-assessment-card { display:block; padding:16px; color:var(--ink); transition:border-color .15s; }
.hub-assessment-card:hover { color:var(--ink); border-color:var(--cyan); }
.hub-assessment-card dl { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:14px 0; }
.hub-assessment-card dt { color:var(--muted); font-size:10px; }
.hub-assessment-card dd { margin:3px 0 0; font-weight:650; }
.hub-assessment-card > span { color:var(--cyan); font-size:11px; }
.hub-help, .hub-empty { padding:12px; border:1px solid var(--line); background:var(--panel); }
.hub-question-list details { border-top:1px solid var(--line); }
.hub-question-list summary { display:flex; gap:10px; cursor:pointer; padding:11px 0; }
.hub-question-list summary strong { font-weight:500; }
.hub-question-list details[open] summary { color:var(--cyan-soft); }
.hub-question-list details > div { padding:0 12px 14px 25px; }
.hub-question-list li { margin:5px 0; }
.hub-correct { color:var(--lime); }
.hub-roster > a, .hub-activity > a { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,1fr) auto; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.hub-roster strong, .hub-activity strong { color:var(--ink); font-weight:500; overflow-wrap:anywhere; }
.hub-roster span, .hub-activity time { color:var(--muted); }
.hub-responses article { border-top:1px solid var(--line); padding:14px 0; }
.hub-responses p { margin:5px 0; }
body:has(.management-workspace) #editor-dialog h2 { font-size:20px; }
body:has(.management-workspace) #editor-dialog { font-size:12px; }
body:has(.management-workspace) #editor-dialog input, body:has(.management-workspace) #editor-dialog textarea, body:has(.management-workspace) #editor-dialog select { font-size:12px; padding:9px; }
body:has(.management-workspace) #editor-dialog .button { font-size:12px; min-height:34px; padding:8px 12px; }
@media(max-width:1100px) { .hub-columns,.hub-access-grid,.hub-assessment-grid { grid-template-columns:1fr; } .hub-heading { flex-wrap:wrap; } .hub-heading > .row-actions { max-width:100%; justify-content:flex-start; } }
@media(max-width:650px) { .management-workspace #main { padding:16px 12px 30px; } .management-workspace .topbar { padding-inline:14px; } .hub-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .hub-assessment-card dl { grid-template-columns:repeat(2,1fr); } .hub-roster > a,.hub-activity > a { grid-template-columns:1fr; gap:4px; } .hub-filter label { width:100%; } .classroom-hub .hub-panel { padding:12px; } }

/* Student command center and course navigation. */
.student-shell { --sidebar:238px; }
.student-shell #main { padding:22px 28px 40px; width:min(1480px,100%); }
.student-shell .topbar { height:auto; min-height:76px; padding:12px 28px; gap:16px; }
.student-shell .topbar h1 { font-size:17px; }
.student-shell .topbar-actions { gap:10px; }
.student-shell .clock { display:none; }
.student-shell .topbar #password-button { font-size:10px; padding:7px 9px; min-height:30px; }
.student-shell .sidebar { padding-inline:16px; }
.student-shell .course-code { margin:12px 0 20px; padding:12px; }
.student-shell .course-code strong { font-size:11px; line-height:1.6; }
.student-shell .nav-group-label { margin:12px 0 8px; font-size:10px; }
.student-shell .nav-link { margin:0 0 7px; min-height:42px; padding:11px 12px; background:#09254a; border:2px solid #000; color:#9bd8ff; font-size:11px; box-shadow:inset 0 1px 0 rgb(77 161 235 / .13); }
.student-shell .nav-link:hover,.student-shell .nav-link.active { background:#123c6a; color:#c0e9ff; border-color:#000; box-shadow:inset 3px 0 0 #4cbcff; }
.student-shell .nav-link .nav-icon { color:#8acfff; font-size:12px; }
.student-shell .nav-link small { display:none; }
.student-shell .sidebar-foot { padding:12px 0 0; }
.student-top-controls { display:flex; align-items:center; gap:10px; }
.student-top-assessments { display:inline-flex; align-items:center; background:#0a2d54; border:2px solid #000; padding:9px 12px; color:#a8dfff; font-size:11px; font-weight:650; white-space:nowrap; }
.student-signed-in { display:flex; align-items:center; gap:12px; padding:8px 10px; border:1px solid #245078; background:#06172d; font-size:10px; color:#92b5d5; }
.student-signed-in strong { display:block; color:#daedff; font-size:11px; }
.student-signed-in button { border:1px solid #34628e; background:#092a4c; color:#a5dcff; padding:6px 8px; font-size:10px; cursor:pointer; }
.student-welcome { border:1px solid #245078; border-left:3px solid #38baff; background:linear-gradient(110deg,#082345,#06172b); padding:12px 16px; margin-bottom:22px; max-width:760px; }
.student-welcome > div { display:flex; align-items:center; gap:9px; }
.student-welcome h2 { margin:0; font-size:15px; font-weight:600; }
.student-welcome p { margin:5px 0 0 15px; color:#9fbdd8; font-size:11px; line-height:1.6; }
.student-welcome p:empty { display:none; }
.student-signal { width:6px; height:6px; border-radius:50%; background:#62d5ff; box-shadow:0 0 10px #38baff; }
.student-materials-panel > header { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.student-materials-panel > header .section-code { margin:0; font-size:9px; }
.student-materials-panel > header h2 { margin:0; font-size:16px; }
.student-day-panel { border:1px solid #1c426d; padding:15px; margin-bottom:15px; background:rgb(4 20 41 / .8); }
.student-day-panel > header { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.student-day-panel h3 { margin:0; font-size:14px; }
.student-day-panel header > a { margin-left:auto; font-size:10px; }
.student-day-code { color:#6ecaff; font:10px ui-monospace,monospace; border:1px solid #275480; padding:4px 6px; }
.student-file-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.student-file-button { display:grid; grid-template-columns:1fr auto; gap:7px; align-content:start; padding:13px; min-height:118px; background:linear-gradient(140deg,#0c315b,#071e3d); border:2px solid #000; color:#a7dcff; box-shadow:inset 0 1px 0 rgb(78 175 250 / .15); transition:background .15s,border-color .15s; }
.student-file-button > span { font-size:17px; color:#66bfff; grid-column:1 / -1; }
.student-file-button strong { font-size:12px; line-height:1.5; font-weight:600; }
.student-file-button small { font-size:10px; line-height:1.5; color:#8cb5d6; grid-column:1; }
.student-file-button b { grid-column:2; grid-row:2; font-size:13px; }
.student-file-button:hover { background:#123c68; border-color:#3a8ab9; color:#d2eeff; }
.student-shell .material-page-tabs a,.student-shell .material-download-row .button,.student-shell .material-page-card { background:#09254a; border:2px solid #000; color:#a5daff; }
.student-shell .material-page-tabs a[aria-current=page] { background:#123c68; color:#cff0ff; }
.student-shell .material-page-tabs { gap:7px; }
.student-shell .material-page-tabs a { font-size:11px; padding:9px 12px; }
.student-shell .section-intro h2 { font-size:23px; }
.student-shell .material-download-row { padding:13px 15px; }
.student-shell .material-file-info h4 { font-size:13px; }
.student-shell .material-file-info p,.student-shell .material-file-info small { font-size:11px; }
.student-assessment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.student-assessment-panel { padding:17px; margin-bottom:14px; }
.student-assessment-panel > h3 { font-size:15px; margin:0 0 16px; }
.student-assessment-panel p { font-size:12px; }
.student-assessment-panel .exam-card { padding:0; }
.student-assessment-panel .exam-card h3 { font-size:15px; }
@media(max-width:1250px) { .student-file-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .student-assessment-grid { grid-template-columns:1fr; } .student-shell .topbar { flex-wrap:wrap; } .student-shell .topbar-actions { margin-left:auto; } }
@media(max-width:650px) { .student-shell #main { padding:16px 12px 30px; } .student-shell .topbar { padding:10px 12px; gap:8px; } .student-shell .topbar-actions { width:100%; margin:0; } .student-top-controls { flex:1; justify-content:space-between; gap:6px; } .student-signed-in { gap:7px; padding:6px; } .student-signed-in strong { max-width:130px; overflow-wrap:anywhere; } .student-top-assessments { padding:8px; font-size:10px; } .student-file-grid { grid-template-columns:1fr 1fr; } .student-file-button { padding:10px; min-height:122px; } .student-file-button strong { font-size:11px; } .student-day-panel { padding:10px; } }

.required-password-panel { width:min(540px,100%); min-height:0; margin:auto; padding:28px; border:1px solid var(--line-hot); border-radius:10px; }
.required-password-panel h2 { font-size:26px; margin:12px 0; }
.required-password-panel > p { color:var(--muted); font-size:14px; line-height:1.6; }
.required-password-panel .auth-form { margin-top:22px; }
@media(max-width:550px) { .required-password-panel { padding:22px 18px; } }
