:root {
  --ink: #142033;
  --muted: #5e6b7f;
  --navy: #102b4e;
  --teal: #0b7b7d;
  --teal-dark: #075d60;
  --paper: #ffffff;
  --surface: #f3f7fa;
  --line: #d7e0e8;
  --success: #0b7255;
  --danger: #a32929;
  --warning: #976200;
  --radius: 14px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #edf4f8 0, #f8fafc 280px); color: var(--ink); }
body.exam-mode { height: 100vh; overflow: hidden; background: #e8eef7; }
body.exam-mode > .topbar, body.exam-mode > .footer, body.exam-mode > .messages { display: none; }
body.exam-mode > .page-shell { width: 100%; height: 100vh; margin: 0; padding: 0; }
a { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; border: 2px solid var(--teal); }
.skip-link:focus { top: 12px; }
.topbar { min-height: 72px; padding: 12px clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16,43,78,.12); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--teal)); font-weight: 800; }
.brand strong, .brand small { display: block; }.brand small { color: var(--muted); margin-top: 2px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.main-nav > a { color: var(--navy); font-weight: 700; text-decoration: none; }
.main-nav > a:hover, .main-nav > a:focus-visible { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; min-height: 620px; }
.eyebrow { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #dceff0; color: var(--teal-dark); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 16px 0; color: var(--navy); font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); }.hero-copy > p, .page-header p { max-width: 720px; color: var(--muted); font-size: 1.14rem; line-height: 1.65; }
.feature-list { display: grid; gap: 12px; padding: 0; list-style: none; color: var(--navy); font-weight: 600; }.feature-list li::before { content: "✓"; margin-right: 10px; color: var(--teal); }
.entry-cards { display: grid; gap: 16px; }.entry-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 18px 50px rgba(16,43,78,.08); transition: transform .18s, border-color .18s; }.entry-card:hover, .entry-card:focus-visible { transform: translateY(-3px); border-color: var(--teal); outline: none; }.entry-card.primary { color: #fff; background: linear-gradient(145deg, var(--navy), #174b72); border: 0; }.entry-card.primary p, .entry-card.primary .entry-action { color: #d9edf3; }.entry-card h2 { margin: 12px 0 8px; }.entry-card p { color: var(--muted); line-height: 1.5; }.entry-number { font: 700 .78rem/1 ui-monospace, monospace; opacity: .7; }.entry-action { display: inline-block; margin-top: 10px; color: var(--teal-dark); font-weight: 700; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.panel, .empty-state { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 36px rgba(16,43,78,.06); }
.panel > h1, .assignment-form > h1, .page-heading h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.panel > .eyebrow, .panel > a + .eyebrow { margin-top: 18px; }
.panel > .panel { margin: 24px 0; background: #f8fbfc; box-shadow: none; }
.narrow-panel { width: min(720px, 100%); margin-inline: auto; }
.dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid { display: grid; gap: 18px; }.field label { display: block; margin-bottom: 7px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9c6d2; border-radius: 10px; background: #fff; color: var(--ink); }.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(11,123,125,.18); border-color: var(--teal); }.helptext { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }.errorlist { margin: 6px 0; color: var(--danger); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 0; border-radius: 10px; color: #fff; background: var(--teal); font-weight: 750; cursor: pointer; text-decoration: none; }.button:hover { background: var(--teal-dark); }.button.secondary { color: var(--navy); background: #e6edf3; }.button.danger { background: var(--danger); }.link-button { border: 0; background: none; color: var(--teal-dark); font-weight: 700; cursor: pointer; }.inline-form { display: inline; }
.messages { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; }.message { padding: 12px 16px; border-radius: 10px; background: #e7f4ef; color: var(--success); }.message.error { background: #faeaea; color: var(--danger); }.message.warning { background: #fff4db; color: var(--warning); }
.user-chip { margin-right: 10px; color: var(--muted); }.footer { padding: 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }table { width: 100%; border-collapse: collapse; }th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }th { color: var(--navy); background: #edf3f7; font-size: .86rem; }tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #e6edf3; color: var(--navy); font-size: .82rem; font-weight: 700; }.badge.success { background: #e2f3ec; color: var(--success); }.badge.warning { background: #fff0ce; color: var(--warning); }.badge.danger { background: #f8e4e4; color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }.stack { display: grid; gap: 20px; }
@media (max-width: 820px) { .hero-grid, .split, .dashboard-cards { grid-template-columns: 1fr; }.hero-grid { padding-top: 20px; }.topbar { align-items: flex-start; gap: 18px; }.main-nav { gap: 9px 12px; }.page-shell { padding-top: 32px; }h1 { font-size: 2.4rem; } }
@media (max-width: 560px) { .topbar { flex-direction: column; }.main-nav { justify-content: flex-start; }.user-chip { width: 100%; }.page-shell { width: min(100% - 20px, 1180px); }.panel, .empty-state { padding: 20px; } }
