/* ==========================================================================
   Virtualllabs Academy — Design System
   Hand-authored production CSS (no CDN, no build toolchain required).
   Light + dark themes, accessible components, print styles.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/inter-800.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg: #f3f6fc;
  --bg-subtle: #e9eef9;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef3fb;
  --border: #dde5f2;
  --border-strong: #c5d2e8;
  --text: #0d1b36;
  --text-soft: #3c4c6b;
  --muted: #63718c;
  --primary: #1e4fd8;
  --primary-hover: #1740b4;
  --primary-soft: #e8eefc;
  --primary-ink: #163a9e;
  --accent: #0891b2;
  --accent-soft: #e0f7fb;
  --success: #0f7b53;
  --success-soft: #e2f5ec;
  --warning: #b45309;
  --warning-soft: #fdf1dd;
  --danger: #c02626;
  --danger-soft: #fdeaea;
  --info: #0b6ea8;
  --info-soft: #e3f2fb;
  --navy: #0b1b3f;
  --navy-2: #102a56;
  --sidebar-text: #b9c7e4;
  --sidebar-active: #2f63f4;
  --shadow-sm: 0 1px 2px rgba(13, 27, 54, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(13, 27, 54, 0.12), 0 2px 6px -2px rgba(13, 27, 54, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(13, 27, 54, 0.25);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --sidebar-w: 264px;
  --topbar-h: 64px;
  --transition: 160ms cubic-bezier(.2,.8,.2,1);
}

[data-theme='dark'] {
  --bg: #08132b;
  --bg-subtle: #0c1a38;
  --surface: #0f2144;
  --surface-2: #122650;
  --surface-3: #17305f;
  --border: #1f3a6c;
  --border-strong: #2b4b85;
  --text: #edf2ff;
  --text-soft: #c6d3ee;
  --muted: #93a6cd;
  --primary: #5b8bff;
  --primary-hover: #7aa2ff;
  --primary-soft: #17305f;
  --primary-ink: #cfe0ff;
  --accent: #22d3ee;
  --accent-soft: #123a4a;
  --success: #4ade80;
  --success-soft: #123827;
  --warning: #fbbf24;
  --warning-soft: #3b2a0c;
  --danger: #f87171;
  --danger-soft: #3e1518;
  --info: #7dd3fc;
  --info-soft: #0c3247;
  --navy: #071027;
  --navy-2: #0a1733;
  --sidebar-text: #9fb2d8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { color: var(--text-soft); }
small { font-size: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--sidebar-text);
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column;
  z-index: 50;
  transition: transform var(--transition), width var(--transition);
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  min-height: var(--topbar-h);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar__logo {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #2f63f4, #22d3ee);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -0.03em;
  box-shadow: 0 4px 12px rgba(47, 99, 244, 0.4);
}
.sidebar__brand-text { min-width: 0; }
.sidebar__brand-text strong { display: block; color: #fff; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__brand-text span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: #7f95c4; margin-top: 1px; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; scrollbar-width: thin; }
.sidebar__section { margin-top: 14px; }
.sidebar__section:first-child { margin-top: 0; }
.sidebar__section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.13em;
  color: #6d84b3; font-weight: 700; padding: 8px 12px 6px;
}
.sidebar__link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: 9px; color: var(--sidebar-text);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.sidebar__link:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.sidebar__link.is-active { background: var(--sidebar-active); color: #fff; box-shadow: 0 4px 14px rgba(47,99,244,0.35); }
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.sidebar__link .sidebar__count {
  margin-left: auto; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px;
}
.sidebar__footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: #6d84b3; }
.sidebar__footer strong { color: #9fb2d8; display: block; }

.app__main {
  flex: 1; min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  transition: margin var(--transition);
}
.app.is-collapsed .sidebar { transform: translateX(-100%); }
.app.is-collapsed .app__main { margin-left: 0; }

.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar__menu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); cursor: pointer;
}
.topbar__menu:hover { background: var(--surface-3); }
.topbar__search { flex: 1; max-width: 460px; position: relative; }
.topbar__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.topbar__search input {
  width: 100%; height: 38px; padding: 0 14px 0 36px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); color: var(--text);
  font-size: 13px;
}
.topbar__search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--text-soft); cursor: pointer;
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn__dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 99px; background: var(--danger); border: 2px solid var(--surface); }
.icon-btn__count {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px;
  border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer;
}
.user-chip:hover { border-color: var(--border-strong); }
.avatar {
  width: 32px; height: 32px; border-radius: 99px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--sm { width: 26px; height: 26px; font-size: 10px; }
.avatar img, .sidebar__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sidebar__logo img { object-fit: contain; padding: 3px; }
.avatar--profile { width: 92px; height: 92px; font-size: 30px; }
.profile-photo-row { display:flex; align-items:center; gap:18px; margin-bottom:20px; }
.role-option { display:flex; align-items:flex-start; gap:11px; min-height:72px; padding:14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface-2); cursor:pointer; transition:border-color var(--transition), background var(--transition), transform var(--transition); }
.role-option:hover { border-color:var(--primary); background:var(--primary-soft); transform:translateY(-1px); }
.role-option input { margin-top:4px; accent-color:var(--primary); }
.role-option span span { display:block; margin-top:3px; color:var(--muted); font-size:11.5px; line-height:1.45; }
.permission-override { display:grid; grid-template-columns:minmax(0,1fr) 120px; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.permission-override strong, .permission-override small { display:block; }
.permission-override strong { font-size:11.5px; }
.permission-override small { color:var(--muted); font-size:10px; }
.input--color { min-height:44px; padding:5px; }
.branding-preview { width:180px; height:76px; object-fit:contain; object-position:left center; margin-top:12px; padding:8px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); }
.branding-preview--icon { width:60px; height:60px; object-position:center; }
.user-chip__meta { text-align: left; line-height: 1.2; }
.user-chip__meta strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.user-chip__meta span { display: block; font-size: 10.5px; color: var(--muted); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__header { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown__header strong { display: block; font-size: 13px; }
.dropdown__header span { font-size: 11.5px; color: var(--muted); }
.dropdown__item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--text-soft); font-size: 13px; text-decoration: none;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
}
.dropdown__item:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.dropdown__item svg { width: 16px; height: 16px; }
.dropdown__divider { height: 1px; background: var(--border); margin: 5px 0; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.notif-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-panel__head strong { font-size: 13.5px; }
.notif-panel__list { max-height: 340px; overflow-y: auto; }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.notif-item:hover { background: var(--surface-2); text-decoration: none; }
.notif-item.is-unread { background: var(--primary-soft); }
.notif-item strong { display: block; font-size: 12.5px; }
.notif-item span { font-size: 11.5px; color: var(--muted); }
.notif-item p { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

/* ---------- Page & content ---------- */
.page { padding: 24px; max-width: 1560px; width: 100%; margin: 0 auto; }
.page__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page__title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.page__subtitle { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: 9px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(30,79,216,.3); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--secondary:hover { background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--text-soft); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(0.92); }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { filter: brightness(0.92); }
.btn--sm { height: 31px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  border: 1px solid transparent;
}
.badge__dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--neutral { background: var(--surface-3); color: var(--muted); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-3); color: var(--text-soft);
  padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px;
}
.chip--removable button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card__title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card__title svg { width: 17px; height: 17px; color: var(--muted); }
.card__subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }
.card__foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
.grid--sidebar-left { grid-template-columns: 300px minmax(0, 1fr); }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.text-muted { color: var(--muted); } .text-danger { color: var(--danger); } .text-success { color: var(--success); } .text-warning { color: var(--warning); }
.text-sm { font-size: 12.5px; } .text-xs { font-size: 11.5px; } .font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.text-right { text-align: right; } .text-center { text-align: center; } .nowrap { white-space: nowrap; }
.w-full { width: 100%; } .ml-auto { margin-left: auto; }
.hidden { display: none !important; }
.mono { font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }

/* ---------- Stat cards ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
  position: relative; overflow: hidden;
}
.stat__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat__icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.stat__icon svg { width: 17px; height: 17px; }
.stat__icon--success { background: var(--success-soft); color: var(--success); }
.stat__icon--warning { background: var(--warning-soft); color: var(--warning); }
.stat__icon--danger { background: var(--danger-soft); color: var(--danger); }
.stat__icon--accent { background: var(--accent-soft); color: var(--accent); }
.stat__value { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat__meta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.stat__meta strong { color: var(--text-soft); font-weight: 600; }
.stat--link { text-decoration: none; color: inherit; transition: border-color var(--transition), box-shadow var(--transition); }
.stat--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); text-decoration: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 700; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td strong { color: var(--text); }
.table .cell-main { color: var(--text); font-weight: 600; }
.table .cell-sub { font-size: 11.5px; color: var(--muted); display: block; margin-top: 1px; }
.table .cell-actions { text-align: right; white-space: nowrap; }
.table--compact td, .table--compact th { padding: 8px 12px; }
.table__checkbox { width: 34px; }
.table__sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.table__sort:hover { color: var(--primary); }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result-count { font-size: 12px; color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar__search { position: relative; min-width: 220px; flex: 1; max-width: 320px; }
.toolbar__search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.toolbar__search input { width: 100%; height: 34px; padding: 0 12px 0 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12.5px; }
.toolbar .select { height: 34px; font-size: 12.5px; padding: 0 30px 0 10px; width: auto; min-width: 130px; }

/* ---------- Forms ---------- */
.password-field { position: relative; width: 100%; }
.password-field > .input { width: 100%; padding-right: 46px; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  cursor: pointer; transition: color var(--transition), background var(--transition);
}
.password-toggle:hover { color: var(--primary); background: var(--primary-soft); }
.password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.password-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-section { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 6px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.form-section__title svg { width: 15px; height: 15px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); color: var(--text);
  padding: 0 12px; height: 38px; font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.textarea { padding: 10px 12px; height: auto; min-height: 84px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363718c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
[data-theme='dark'] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a6cd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.field__hint { font-size: 11.5px; color: var(--muted); }
.field__error { font-size: 11.5px; color: var(--danger); font-weight: 500; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-soft); cursor: pointer; padding: 4px 0; }
.check input[type='checkbox'], .check input[type='radio'] { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--primary); flex-shrink: 0; }
.check--switch { align-items: center; }
.switch { position: relative; width: 38px; height: 21px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; transition: background var(--transition); }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 99px; background: #fff; transition: transform var(--transition); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.input-group { display: flex; }
.input-group .input { border-radius: 9px 0 0 9px; }
.input-group__addon {
  display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-left: 0;
  border-radius: 0 9px 9px 0; background: var(--surface-3); color: var(--muted); font-size: 12px; white-space: nowrap;
}
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 11px; padding: 12px 14px; border-radius: var(--radius); font-size: 13px; border: 1px solid transparent; align-items: flex-start; }
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert strong { font-weight: 600; }
.alert--success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 24%, transparent); }
.alert--danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 24%, transparent); }
.alert--warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 24%, transparent); }
.alert--info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 24%, transparent); }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: 76px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px 14px; font-size: 13px; color: var(--text-soft);
  animation: toast-in 200ms ease-out;
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast--success { border-left-color: var(--success); } .toast--success svg { color: var(--success); }
.toast--danger { border-left-color: var(--danger); } .toast--danger svg { color: var(--danger); }
.toast--warning { border-left-color: var(--warning); } .toast--warning svg { color: var(--warning); }
.toast--info { border-left-color: var(--info); } .toast--info svg { color: var(--info); }
.toast__close { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; display: grid; place-items: center; }
.toast__close svg { width: 14px; height: 14px; }
@keyframes toast-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding-top: 18px; }
.tab-panel.is-active { display: block; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress__bar { height: 100%; border-radius: 99px; background: var(--primary); transition: width 400ms ease; }
.progress__bar--success { background: var(--success); }
.progress__bar--warning { background: var(--warning); }
.progress__bar--danger { background: var(--danger); }
.progress__bar--accent { background: var(--accent); }
.progress--sm { height: 5px; }
.progress--lg { height: 11px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1; }
.progress-row span { font-size: 11.5px; color: var(--muted); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination__link {
  min-width: 32px; height: 32px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; font-size: 12.5px; font-weight: 500;
  color: var(--text-soft); border: 1px solid var(--border); background: var(--surface);
  text-decoration: none;
}
.pagination__link:hover { border-color: var(--border-strong); background: var(--surface-3); text-decoration: none; }
.pagination__link--active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pagination__link--disabled { opacity: 0.45; pointer-events: none; }
.pagination__ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------- Empty & loading states ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty__icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--surface-3); color: var(--muted); display: grid; place-items: center;
}
.empty__icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 14px; margin-bottom: 4px; }
.empty p { font-size: 12.5px; color: var(--muted); max-width: 380px; margin: 0 auto 14px; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 7px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.spinner { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 99px; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modals / dialog ---------- */
dialog.modal {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text);
  padding: 0; width: min(560px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(6, 14, 33, 0.55); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal__head h3 { font-size: 15px; }
.modal__body { padding: 20px; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal__close { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; }
.modal__close:hover { background: var(--surface-3); }

/* ---------- Charts ---------- */
.chart-wrap { position: relative; width: 100%; min-height: 240px; }
.chart-wrap canvas { width: 100% !important; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- Definition lists & detail rows ---------- */
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-weight: 500; }
.detail-row dd { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- Timelines ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding-bottom: 16px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border-radius: 99px; background: var(--surface); border: 2.5px solid var(--primary); }
.timeline__dot--success { border-color: var(--success); }
.timeline__dot--danger { border-color: var(--danger); }
.timeline__dot--warning { border-color: var(--warning); }
.timeline__title { font-size: 13px; font-weight: 600; }
.timeline__meta { font-size: 11.5px; color: var(--muted); }

/* ---------- Student picker / autocomplete ---------- */
.picker { position: relative; }
.picker__results {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; padding: 4px;
}
.picker__item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.picker__item:hover, .picker__item.is-active { background: var(--primary-soft); }
.picker__item small { color: var(--muted); }
.picker__empty { padding: 10px; font-size: 12.5px; color: var(--muted); }
.student-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; }
.student-chip small { display: block; color: var(--muted); font-size: 11px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); }
.auth__visual {
  background:
    radial-gradient(1000px 500px at -10% -20%, rgba(47, 99, 244, 0.5), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(34, 211, 238, 0.28), transparent 55%),
    linear-gradient(160deg, #081635 0%, #0b1b3f 55%, #102a56 100%);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth__visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  pointer-events: none;
}
.auth__brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth__brand .sidebar__logo { width: 44px; height: 44px; font-size: 18px; }
.auth__brand strong { display: block; font-size: 16px; }
.auth__brand span { font-size: 11px; color: #9fb2d8; letter-spacing: 0.08em; text-transform: uppercase; }
.auth__headline { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; max-width: 520px; position: relative; z-index: 1; }
.auth__headline em { font-style: normal; color: #7dd3fc; }
.auth__lead { color: #b9c7e4; max-width: 460px; margin-top: 14px; font-size: 14px; position: relative; z-index: 1; }
.auth__features { display: grid; gap: 12px; margin-top: 26px; position: relative; z-index: 1; }
.auth__feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cfdbf3; }
.auth__feature svg { width: 17px; height: 17px; color: #7dd3fc; flex-shrink: 0; }
.auth__foot { font-size: 11.5px; color: #7f95c4; position: relative; z-index: 1; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth__form { width: 100%; max-width: 380px; }
.auth__title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.auth__sub { color: var(--muted); font-size: 13px; margin-top: 5px; margin-bottom: 24px; }
.auth__links { margin-top: 18px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Public landing ---------- */
.landing { background: var(--surface); }
.landing__nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 32px; max-width: 1200px; margin: 0 auto; }
.landing__hero { max-width: 1200px; margin: 0 auto; padding: 56px 32px 48px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.landing__eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-soft); color: var(--primary-ink); padding: 5px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.landing__title { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; margin-top: 18px; }
.landing__title em { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing__lead { font-size: 15px; color: var(--muted); margin-top: 16px; max-width: 540px; }
.landing__cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.landing__stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.landing__stat strong { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.landing__stat span { font-size: 11.5px; color: var(--muted); }
.landing__card {
  background: linear-gradient(160deg, #0b1b3f, #102a56);
  border-radius: 22px; padding: 26px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.landing__card::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 99px; background: rgba(47,99,244,0.35); filter: blur(60px); top: -100px; right: -80px; }
.landing__card-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 13px; position: relative; z-index: 1; }
.landing__card-row:last-child { border-bottom: 0; }
.landing__card-row span { color: #9fb2d8; }
.landing__card-row strong { font-weight: 700; }
.landing__card-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(34, 211, 238, 0.16); color: #7dd3fc; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; position: relative; z-index: 1; }
.landing__section { max-width: 1200px; margin: 0 auto; padding: 56px 32px; }
.landing__section-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.025em; text-align: center; }
.landing__section-sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: 14px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.course-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.course-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.course-card__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.course-card__icon svg { width: 20px; height: 20px; }
.course-card h3 { font-size: 15px; margin-bottom: 6px; }
.course-card p { font-size: 12.5px; color: var(--muted); flex: 1; }
.course-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.course-card__meta strong { color: var(--text); }
.landing__footer { border-top: 1px solid var(--border); padding: 24px 32px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* ---------- Student portal ---------- */
.portal-hero {
  background: linear-gradient(135deg, #0b1b3f 0%, #14336b 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.portal-hero::after { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 99px; background: rgba(34,211,238,0.18); filter: blur(70px); top: -140px; right: -60px; }
.portal-hero__main { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.portal-hero h1 { font-size: 1.3rem; letter-spacing: -0.02em; }
.portal-hero p { color: #b9c7e4; font-size: 12.5px; margin-top: 3px; }
.portal-hero .badge { background: rgba(255,255,255,0.14); color: #fff; }
.portal-hero__actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.portal-hero .btn--secondary { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff; }
.portal-hero .btn--secondary:hover { background: rgba(255,255,255,0.18); }
.portal-hero .avatar { background: linear-gradient(135deg, #2f63f4, #22d3ee); border: 2px solid rgba(255,255,255,0.25); }
.portal-welcome { position:relative; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 28px; overflow:hidden; border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border)); border-radius:var(--radius-lg); background:linear-gradient(115deg,var(--surface),color-mix(in srgb,var(--primary-soft) 65%,var(--surface))); }
.portal-welcome::after { content:""; position:absolute; width:300px; height:300px; right:15%; top:-220px; border-radius:50%; background:color-mix(in srgb,var(--accent) 14%,transparent); filter:blur(12px); pointer-events:none; }
.portal-welcome__student,.portal-welcome__actions { display:flex; align-items:center; gap:16px; position:relative; z-index:1; }
.portal-welcome__student .avatar--profile { width:70px; height:70px; flex:none; border:3px solid var(--surface); box-shadow:var(--shadow-sm); }
.portal-welcome__eyebrow { color:var(--primary); font-size:9px; font-weight:800; letter-spacing:.14em; }
.portal-welcome h1 { margin-top:4px; font-size:clamp(1.35rem,2.5vw,1.8rem); letter-spacing:-.035em; }
.portal-welcome p { margin-top:5px; color:var(--muted); font-size:11.5px; }
.portal-welcome__actions { flex-direction:column; align-items:flex-end; gap:8px; }
.portal-welcome__profile { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:10.5px; font-weight:600; }
.portal-welcome__profile svg { width:13px; height:13px; }
@media(max-width:700px) { .portal-welcome { align-items:flex-start; flex-direction:column; padding:20px; }.portal-welcome__actions { width:100%; flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; }.portal-welcome__student { align-items:flex-start; }.portal-welcome__student .avatar--profile { width:58px; height:58px; font-size:18px; } }
@media(max-width:430px) { .portal-welcome p { line-height:1.7; }.portal-welcome__actions .btn { min-height:40px; padding:8px 11px; font-size:11px; } }

.checklist { display: flex; flex-direction: column; gap: 0; }
.checklist__item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.checklist__item:last-child { border-bottom: 0; }
.checklist__status { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; background: var(--surface-3); color: var(--muted); border: 1.5px solid var(--border-strong); }
.checklist__status svg { width: 11px; height: 11px; }
.checklist__status--done { background: var(--success); border-color: var(--success); color: #fff; }
.checklist__status--progress { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.checklist__status--verified { background: var(--primary); border-color: var(--primary); color: #fff; }
.checklist__title { font-size: 13px; font-weight: 600; color: var(--text); }
.checklist__meta { font-size: 11.5px; color: var(--muted); }

/* ---------- Print ---------- */
.print-sheet { background: #fff; color: #111; }
@media print {
  body { background: #fff !important; color: #111 !important; }
  .sidebar, .topbar, .toast-stack, .no-print, .page__actions, .form-actions, .pagination { display: none !important; }
  .app__main { margin: 0 !important; }
  .page { padding: 0; max-width: none; }
  .card { box-shadow: none !important; border-color: #ccc !important; break-inside: avoid; }
  .table th { background: #f2f2f2 !important; color: #333 !important; }
  .badge { border: 1px solid #999; }
  a { color: inherit !important; text-decoration: none !important; }
  .print-header { display: flex !important; }
  .print-only { display: block !important; }
}
.print-header { display: none; align-items: center; justify-content: space-between; border-bottom: 2px solid #0b1b3f; padding-bottom: 12px; margin-bottom: 18px; }
.print-header strong { font-size: 16px; }
.print-header span { font-size: 11px; color: #555; }
.print-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid--sidebar, .grid--sidebar-left { grid-template-columns: 1fr; }
  .landing__hero { grid-template-columns: 1fr; gap: 32px; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .app__main { margin-left: 0; }
  .app.is-mobile-open .sidebar { transform: translateX(0); }
  .app.is-mobile-open::after { content: ''; position: fixed; inset: 0; background: rgba(5, 12, 27, 0.5); z-index: 45; }
  .app.is-collapsed .sidebar { transform: translateX(-100%); }
  .app.is-collapsed.is-mobile-open .sidebar { transform: translateX(0); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }
  .topbar__search { display: none; }
  .page { padding: 18px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 13px; }
  .stat__value { font-size: 1.35rem; }
  .page__head { flex-direction: column; align-items: stretch; }
  .page__actions { justify-content: flex-start; }
  .user-chip__meta { display: none; }
  .topbar { padding: 0 14px; gap: 8px; }
  .toolbar { padding: 12px; }
  .toolbar__search { max-width: none; }
  .course-grid { grid-template-columns: 1fr; }
  .landing__nav { padding: 14px 18px; }
  .landing__section, .landing__hero { padding-left: 18px; padding-right: 18px; }
  .modal__body { padding: 16px; }
  .toast-stack { left: 12px; right: 12px; max-width: none; }
  .table--responsive thead { display: none; }
  .table--responsive, .table--responsive tbody, .table--responsive tr, .table--responsive td { display: block; width: 100%; }
  .table--responsive tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 4px; background: var(--surface); }
  .table--responsive td { border: 0; padding: 5px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--responsive td::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; text-align: left; }
  .table--responsive td:first-child { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .table--responsive .cell-actions { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Upskill Program landing page ---------- */
.landing__nav { position:sticky; top:0; z-index:30; background:color-mix(in srgb,var(--surface) 88%,transparent); backdrop-filter:blur(14px); border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent); }
.landing__links { display:flex; align-items:center; gap:26px; margin-left:auto; margin-right:24px; }
.landing__links a { color:var(--text-soft); font-size:12.5px; font-weight:600; }
.landing__links a:hover { color:var(--primary); text-decoration:none; }
.up-landing { overflow:hidden; }
.up-hero { max-width:1240px; min-height:590px; margin:0 auto; padding:72px 34px 68px; display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:48px; position:relative; }
.up-hero::before { content:""; position:absolute; width:560px; height:560px; border-radius:50%; right:-170px; top:-170px; background:radial-gradient(circle,color-mix(in srgb,var(--accent) 12%,transparent),transparent 68%); pointer-events:none; }
.up-hero__copy { position:relative; z-index:1; }
.up-kicker,.up-section__eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--primary); font-size:10.5px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.up-kicker { padding:7px 12px; border:1px solid var(--border); border-radius:99px; background:var(--surface); box-shadow:var(--shadow-sm); letter-spacing:.08em; }
.up-kicker svg { width:14px; height:14px; }
.up-hero h1 { margin-top:22px; max-width:690px; font-size:clamp(2.55rem,5.1vw,4.5rem); line-height:1.02; letter-spacing:-.055em; font-weight:800; }
.up-hero h1 em { font-style:normal; color:var(--primary); }
.up-hero__lead { max-width:600px; margin-top:22px; color:var(--muted); font-size:16px; line-height:1.8; }
.up-hero__actions { display:flex; align-items:center; gap:11px; flex-wrap:wrap; margin-top:28px; }
.up-hero__proof { display:flex; gap:22px; flex-wrap:wrap; margin-top:27px; color:var(--text-soft); font-size:11.5px; font-weight:600; }
.up-hero__proof span { display:flex; align-items:center; gap:6px; }
.up-hero__proof svg { width:15px; height:15px; color:var(--success); }
.up-hero__visual { position:relative; min-height:410px; display:grid; place-items:center; }
.up-orbit { position:absolute; border:1px solid color-mix(in srgb,var(--primary) 11%,transparent); border-radius:50%; transform:rotate(-23deg); }
.up-orbit--one { width:440px; height:310px; }
.up-orbit--two { width:510px; height:365px; }
.up-learning-card { position:relative; z-index:1; width:min(100%,410px); padding:22px; border:1px solid color-mix(in srgb,var(--border) 75%,white); border-radius:22px; background:color-mix(in srgb,var(--surface) 94%,transparent); box-shadow:0 32px 90px -32px rgba(13,27,54,.26),var(--shadow-md); transform:rotate(-2deg); }
.up-learning-card__top { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.13em; }
.up-learning-card__top > svg { margin-left:auto; width:18px; }
.up-live-dot { width:7px; height:7px; border-radius:50%; background:var(--success); box-shadow:0 0 0 4px var(--success-soft); }
.up-learning-card__heading { display:flex; align-items:center; gap:12px; margin-top:25px; }
.up-learning-icon,.up-float-note__icon,.up-program-card__icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:var(--primary-soft); color:var(--primary); }
.up-learning-icon svg,.up-float-note__icon svg,.up-program-card__icon svg { width:20px; height:20px; }
.up-learning-card__heading div { min-width:0; }
.up-learning-card__heading small,.up-learning-card__heading strong { display:block; }
.up-learning-card__heading small { color:var(--muted); font-size:8px; letter-spacing:.1em; }
.up-learning-card__heading strong { margin-top:2px; font-size:14px; }
.up-learning-card__heading .badge { margin-left:auto; }
.up-learning-progress { height:6px; margin:22px 0 17px; border-radius:99px; background:var(--surface-3); overflow:hidden; }
.up-learning-progress span { display:block; width:36%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--primary),var(--accent)); }
.up-learning-card__list { display:grid; gap:11px; padding-bottom:19px; border-bottom:1px solid var(--border); }
.up-learning-card__list span { display:flex; align-items:center; gap:9px; color:var(--text-soft); font-size:11px; }
.up-learning-card__list svg { width:15px; height:15px; color:var(--success); }
.up-learning-card__list span:last-child svg { color:var(--muted); }
.up-learning-card__footer { display:flex; align-items:center; gap:10px; margin-top:16px; color:var(--muted); font-size:9.5px; }
.up-learning-card__footer > svg { width:15px; margin-left:auto; color:var(--primary); }
.up-avatar-stack { display:flex; padding-left:2px; }
.up-avatar-stack b { width:25px; height:25px; display:grid; place-items:center; margin-left:-2px; border:2px solid var(--surface); border-radius:50%; color:#fff; background:var(--primary); font-size:9px; }
.up-avatar-stack b+b { background:var(--accent); }
.up-float-note { position:absolute; right:-4px; bottom:35px; z-index:2; display:flex; align-items:center; gap:10px; padding:12px 15px; border:1px solid var(--border); border-radius:15px; background:var(--surface); box-shadow:var(--shadow-md); animation:up-float 5s ease-in-out infinite; }
.up-float-note__icon { width:34px; height:34px; border-radius:10px; background:var(--accent-soft); color:var(--accent); }
.up-float-note__icon svg { width:17px; height:17px; }
.up-float-note strong,.up-float-note small { display:block; }
.up-float-note strong { color:var(--text); font-size:10.5px; }
.up-float-note small { margin-top:2px; color:var(--muted); font-size:9px; }
.up-value-strip { max-width:1180px; margin:0 auto; padding:20px 26px; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-sm); }
.up-value-strip>div { display:flex; align-items:center; gap:11px; padding:5px 17px; border-right:1px solid var(--border); }
.up-value-strip>div:last-child { border:0; }
.up-value-strip>div>svg { width:19px; height:19px; color:var(--primary); }
.up-value-strip strong,.up-value-strip small { display:block; }
.up-value-strip strong { font-size:11px; }
.up-value-strip small { margin-top:2px; color:var(--muted); font-size:9.5px; }
.up-section { max-width:1240px; margin:0 auto; padding:100px 34px 40px; }
.up-section__head { display:grid; grid-template-columns:1fr .72fr; align-items:end; gap:40px; margin-bottom:30px; }
.up-section__head h2,.up-section__center h2 { max-width:690px; margin-top:10px; font-size:clamp(1.8rem,3.2vw,2.65rem); line-height:1.12; letter-spacing:-.04em; }
.up-section__head>p,.up-section__center>p { max-width:500px; color:var(--muted); font-size:13px; line-height:1.8; }
.up-program-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.up-program-card { display:flex; flex-direction:column; min-height:260px; padding:23px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-sm); transition:transform 220ms ease,border-color 220ms ease,box-shadow 220ms ease; }
.up-program-card:hover { transform:translateY(-5px); border-color:color-mix(in srgb,var(--primary) 45%,var(--border)); box-shadow:var(--shadow-md); }
.up-program-card__top { display:flex; align-items:center; justify-content:space-between; }
.up-program-card__number { color:var(--border-strong); font-size:24px; font-weight:800; letter-spacing:-.05em; }
.up-program-card h3 { margin-top:20px; font-size:17px; }
.up-program-card>p { margin-top:8px; color:var(--muted); font-size:11.5px; line-height:1.75; }
.up-program-card__meta { display:flex; justify-content:space-between; gap:10px; margin-top:auto; padding-top:20px; color:var(--text-soft); font-size:10.5px; }
.up-program-card__meta span { display:flex; align-items:center; gap:5px; }
.up-program-card__meta svg { width:14px; height:14px; color:var(--primary); }
.up-program-card__meta strong { color:var(--text); }
.up-program-card__link { display:flex; align-items:center; justify-content:space-between; margin-top:16px; padding-top:13px; border-top:1px solid var(--border); font-size:11px; font-weight:700; }
.up-program-card__link svg { width:15px; height:15px; }
.up-empty { padding:35px; text-align:center; }
.up-beginner { max-width:1172px; margin:72px auto 10px; padding:30px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; border:1px solid color-mix(in srgb,var(--accent) 24%,var(--border)); border-radius:20px; background:linear-gradient(115deg,var(--surface),color-mix(in srgb,var(--accent-soft) 65%,var(--surface))); }
.up-beginner__mark { width:56px; height:56px; display:grid; place-items:center; border-radius:16px; background:var(--accent-soft); color:var(--accent); }
.up-beginner__mark svg { width:25px; height:25px; }
.up-beginner h2 { max-width:700px; margin-top:7px; font-size:20px; letter-spacing:-.025em; }
.up-beginner p { max-width:760px; margin-top:8px; color:var(--muted); font-size:11.5px; line-height:1.7; }
.up-beginner .btn { white-space:nowrap; }
.up-journey { padding-top:100px; }
.up-section__center { max-width:700px; margin:0 auto 36px; text-align:center; }
.up-section__center>p { margin:12px auto 0; }
.up-step-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.up-step { padding:22px; border-top:2px solid var(--primary); border-radius:0 0 14px 14px; background:var(--surface); box-shadow:var(--shadow-sm); }
.up-step__number { color:var(--primary); font-size:10px; font-weight:800; letter-spacing:.12em; }
.up-step h3 { margin-top:24px; font-size:14px; }
.up-step p { margin-top:8px; color:var(--muted); font-size:11px; line-height:1.7; }
.up-final-cta { max-width:1172px; margin:68px auto 72px; padding:37px 40px; display:flex; align-items:center; justify-content:space-between; gap:28px; border-radius:22px; color:#fff; background:linear-gradient(115deg,#0b1b3f,#183d78); box-shadow:0 25px 65px -30px rgba(11,27,63,.65); }
.up-final-cta h2 { max-width:700px; margin-top:8px; color:#fff; font-size:clamp(1.55rem,3vw,2.2rem); letter-spacing:-.035em; }
.up-final-cta p { margin-top:8px; color:#c1cde5; font-size:12px; }
.up-final-cta .up-section__eyebrow { color:#7dd3fc; }
html.js-enabled [data-reveal] { opacity:0; transform:translateY(18px); transition:opacity 650ms ease,transform 650ms cubic-bezier(.2,.8,.2,1); }
html.js-enabled [data-reveal].is-revealed { opacity:1; transform:translateY(0); }
@keyframes up-float { 0%,100% { transform:translateY(0) rotate(1deg); } 50% { transform:translateY(-8px) rotate(1deg); } }
@media(max-width:1100px) {
 .up-hero { grid-template-columns:1fr .8fr; gap:20px; }.up-hero__visual { transform:scale(.92); }
 .up-value-strip { margin:0 22px; grid-template-columns:repeat(2,1fr); }.up-value-strip>div:nth-child(2) { border-right:0; }.up-value-strip>div:nth-child(-n+2) { border-bottom:1px solid var(--border); padding-bottom:13px; }.up-value-strip>div:nth-child(n+3) { padding-top:13px; }
 .up-program-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.up-beginner,.up-final-cta { margin-left:22px; margin-right:22px; }
}
@media(max-width:760px) {
 .landing__links { display:none; }.up-hero { grid-template-columns:1fr; padding-top:52px; gap:14px; }.up-hero__visual { min-height:350px; transform:scale(.9); margin:-10px -15px; }.up-hero h1 { font-size:clamp(2.5rem,11vw,4rem); }
 .up-section { padding-top:72px; }.up-section__head { grid-template-columns:1fr; gap:12px; }.up-beginner { grid-template-columns:auto 1fr; padding:22px; }.up-beginner .btn { grid-column:2; justify-self:start; }.up-step-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.up-final-cta { align-items:flex-start; flex-direction:column; padding:29px; }
}
@media(max-width:520px) {
 .landing__nav { gap:8px; }.landing__nav>a { min-width:0; }.landing__nav>a strong { font-size:11px!important; }.landing__nav>a span span { display:none; }.landing__nav .btn--ghost { display:none; }
 .up-hero { padding-left:20px; padding-right:20px; }.up-hero__lead { font-size:14px; }.up-hero__proof { display:grid; gap:8px; }.up-hero__visual { min-height:295px; transform:scale(.77); margin:-20px -55px; }
 .up-value-strip { grid-template-columns:1fr; padding:12px 16px; }.up-value-strip>div { padding:12px 0!important; border-right:0!important; border-bottom:1px solid var(--border); }.up-value-strip>div:last-child { border-bottom:0; }
 .up-program-grid,.up-step-grid { grid-template-columns:1fr; }.up-section { padding-left:20px; padding-right:20px; }.up-beginner { grid-template-columns:1fr; margin-left:20px; margin-right:20px; }.up-beginner .btn { grid-column:auto; }.up-final-cta { margin:56px 20px; }
}
@media(prefers-reduced-motion:reduce) { html.js-enabled [data-reveal] { opacity:1; transform:none; }.up-float-note { animation:none; }.up-program-card { transition:none; } }

/* Announcement publishing, student previews and branded inbox cards */
.announcement-editor { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr); align-items:start; gap:18px; }
.announcement-editor__main { min-width:0; }
.announcement-editor__section { border-top:1px solid var(--border); }
.announcement-editor__body { min-height:190px; line-height:1.65; }
.announcement-target[hidden] { display:none!important; }
.announcement-student-select { min-height:150px; padding:8px 10px; }
.announcement-preview { position:sticky; top:82px; overflow:hidden; }
.announcement-preview__meta { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.announcement-preview h3 { margin:16px 0 8px; font-size:17px; line-height:1.35; }
.announcement-preview p { color:var(--text-soft); font-size:13px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.announcement-card { overflow:hidden; border-top:3px solid var(--accent); }
.announcement-card--urgent { border-top-color:var(--danger); }
.announcement-card--high { border-top-color:var(--warning); }
.announcement-card__top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.announcement-card__title { font-size:16px; line-height:1.4; }
.announcement-card__body { margin-top:12px; color:var(--text-soft); font-size:13px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.announcement-card__meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:11px; }
.portal-announcement { padding:15px 0; border-bottom:1px solid var(--border); }
.portal-announcement:last-child { border-bottom:0; padding-bottom:0; }
.portal-announcement__title { font-size:12.5px; line-height:1.45; }
.portal-announcement__body { margin-top:5px; color:var(--muted); font-size:11px; line-height:1.65; }
.announcement-list { display:grid; gap:14px; }
.announcement-card { border:1px solid var(--border); border-top:3px solid var(--accent); box-shadow:var(--shadow-sm); }
.announcement-card--urgent { border-top-color:var(--danger); }
.announcement-card--high { border-top-color:var(--warning); }
.announcement-card--unread { background:linear-gradient(110deg,color-mix(in srgb,var(--primary-soft) 48%,var(--surface)),var(--surface) 48%); }
.announcement-card__top,.announcement-card__foot { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.announcement-card__title { margin:14px 0 0; font-size:17px; line-height:1.4; }
.announcement-card__title a { color:var(--text); text-decoration:none; }
.announcement-card__title a:hover { color:var(--primary); }
.announcement-card__excerpt { margin-top:8px; color:var(--text-soft); font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.announcement-card__foot { margin-top:18px; padding-top:13px; border-top:1px solid var(--border); }
.announcement-card__foot .text-xs { display:flex; align-items:center; gap:5px; }
.announcement-card__foot svg { width:14px; height:14px; }
.announcement-detail { border-top:3px solid var(--accent); }
.announcement-detail.announcement-card--urgent { border-top-color:var(--danger); }
.announcement-detail.announcement-card--high { border-top-color:var(--warning); }
.announcement-detail__body { white-space:pre-wrap; color:var(--text-soft); font-size:14px; line-height:1.9; overflow-wrap:anywhere; }
.announcement-card--unread .portal-announcement__title { color:var(--primary); }
.rich-editor { overflow:hidden; border:1px solid var(--border-strong); border-radius:10px; background:var(--surface); }
.rich-editor:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent); }
.rich-editor__toolbar { display:flex; flex-wrap:wrap; gap:5px; padding:8px; border-bottom:1px solid var(--border); background:var(--surface-2); }
.rich-editor__tool { min-height:31px; padding:4px 8px; border:1px solid transparent; border-radius:6px; color:var(--text-soft); background:transparent; cursor:pointer; font-family:inherit; font-size:12px; font-weight:600; line-height:1.2; }
.rich-editor__tool:hover,.rich-editor__tool:focus-visible { border-color:var(--border-strong); color:var(--primary); background:var(--surface); }
.rich-editor__surface { min-height:150px; max-height:600px; overflow:auto; padding:13px 14px; outline:0; color:var(--text); font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.rich-editor__surface:empty::before { content:attr(data-placeholder); color:var(--muted); pointer-events:none; }
.rich-editor__surface h2,.rich-editor__surface h3,.rich-editor__surface h4 { margin:12px 0 6px; color:var(--text); line-height:1.35; }
.rich-editor__surface p { margin:0 0 9px; }
.rich-editor__surface ul,.rich-editor__surface ol { padding-left:24px; margin:8px 0; }
.rich-editor__surface blockquote { margin:10px 0; padding:8px 12px; border-left:3px solid var(--accent); background:var(--surface-2); color:var(--text-soft); }
.rich-editor__surface a { color:var(--primary); text-decoration:underline; }
.rich-editor__source { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.rich-content { color:var(--text-soft); line-height:1.8; overflow-wrap:anywhere; }
.rich-content p { margin:0 0 10px; }
.rich-content h2,.rich-content h3,.rich-content h4 { margin:16px 0 7px; color:var(--text); line-height:1.35; }
.rich-content ul,.rich-content ol { margin:9px 0; padding-left:24px; }
.rich-content blockquote { margin:12px 0; padding:8px 13px; border-left:3px solid var(--accent); background:var(--surface-2); }
.rich-content a { color:var(--primary); text-decoration:underline; }
.ai-coach { margin:14px 0; padding:14px; border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border)); border-radius:11px; background:linear-gradient(120deg,color-mix(in srgb,var(--accent-soft) 60%,var(--surface)),var(--surface)); }
.ai-coach__head { display:flex; align-items:center; gap:10px; }
.ai-coach__icon { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:var(--accent); background:var(--accent-soft); }
.ai-coach__icon svg { width:17px; height:17px; }
.ai-coach__head strong,.ai-coach__head small { display:block; }
.ai-coach__head strong { color:var(--text); font-size:12px; }
.ai-coach__head small { margin-top:3px; color:var(--muted); font-size:10px; }
.ai-coach__result { margin-top:12px; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text-soft); font-size:12px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.ai-coach__result.hidden { display:none; }
.submission-review { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); align-items:start; gap:16px; }
.submission-review__brief { grid-column:1 / -1; }
.submission-review__identity { display:flex; align-items:center; gap:12px; padding-bottom:15px; border-bottom:1px solid var(--border); }
.submission-review__identity h3 { font-size:15px; }
.submission-review__facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 16px; margin-top:16px; }
.submission-review__facts div { min-width:0; }
.submission-review__facts dt { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.submission-review__facts dd { margin-top:4px; color:var(--text); font-size:12px; overflow-wrap:anywhere; }
.submission-review__section { margin-top:17px; padding-top:16px; border-top:1px solid var(--border); }
.submission-review__section h3,.submission-review__brief-part h3 { display:flex; align-items:center; gap:7px; margin-bottom:10px; color:var(--text); font-size:12px; }
.submission-review__section h3 svg { width:15px; height:15px; color:var(--primary); }
.submission-review__response { min-height:40px; padding:14px; border:1px solid var(--border); border-radius:9px; background:var(--surface-2); }
.submission-review__link { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 13px; border:1px solid var(--border); border-radius:8px; color:var(--primary); font-size:12px; overflow-wrap:anywhere; }
.submission-review__link svg { flex:none; width:15px; height:15px; }
.submission-file { display:flex; align-items:center; gap:11px; padding:12px; border:1px solid var(--border); border-radius:9px; }
.submission-file__icon { display:grid; flex:none; place-items:center; width:36px; height:36px; border-radius:9px; color:var(--primary); background:var(--primary-soft); }
.submission-file__icon svg { width:18px; height:18px; }
.submission-file__info { display:grid; flex:1; min-width:0; gap:3px; }
.submission-file__info strong { overflow:hidden; color:var(--text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.submission-file__info small { color:var(--muted); font-size:9px; }
.submission-review__marks { display:flex; justify-content:space-between; align-items:center; margin-top:17px; padding:13px 15px; border-radius:9px; color:#fff; background:linear-gradient(110deg,var(--primary),var(--accent)); }
.submission-review__marks span { color:#eaf7ff; font-size:11px; }
.submission-review__marks strong { font-size:20px; }
.submission-review__marks small { color:#eaf7ff; font-size:11px; }
.submission-review__brief-part + .submission-review__brief-part { margin-top:16px; padding-top:14px; border-top:1px solid var(--border); }
.submission-review__empty { padding:18px 10px; }
@media(max-width:850px) { .submission-review { grid-template-columns:1fr; }.submission-review__brief { grid-column:auto; } }
@media(max-width:520px) { .submission-review__facts { grid-template-columns:1fr 1fr; }.submission-file { flex-wrap:wrap; }.submission-file__info { min-width:calc(100% - 60px); }.submission-file .btn { flex:1; } }
.print-brand__logo { object-fit:contain; }
@media(max-width:850px) { .announcement-editor { grid-template-columns:1fr; }.announcement-preview { position:static; } }
