:root {
  --navy: #082b55;
  --navy-2: #0d3d73;
  --blue: #1267b1;
  --bright: #3196e6;
  --sky: #83c8f4;
  --ice: #f3f8fc;
  --white: #ffffff;
  --ink: #0e2138;
  --muted: #60758c;
  --line: #d8e4ef;
  --line-strong: #bfd3e6;
  --success: #1f7a44;
  --success-bg: #e6f4ec;
  --warning: #8c6521;
  --warning-bg: #fdf4e3;
  --danger: #a8322b;
  --danger-bg: #fbebe9;
  --shadow-sm: 0 1px 3px rgba(8, 43, 85, 0.07);
  --shadow-md: 0 12px 32px rgba(8, 43, 85, 0.1);
  --shadow-lg: 0 28px 64px rgba(8, 43, 85, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* Nothing decorative may create sideways scroll on a phone. clip, not hidden,
   so position: sticky keeps working inside. */
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
/* Inline icons carry no intrinsic size, so an icon whose context has no explicit
   svg rule collapses to 0x0 and the control renders empty. This is the floor;
   the per-context rules below override it. */
[data-icon] svg { width: 18px; height: 18px; }
.mobile-toggle svg { width: 20px; height: 20px; }

.preview-pill {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(49, 150, 230, 0.25);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.preview-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bright);
  content: "";
  box-shadow: 0 0 0 4px rgba(49, 150, 230, 0.14);
}

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 2px; background: var(--bright); content: ""; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); }
.kicker { color: var(--blue); font-weight: 700; font-size: 13px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  box-shadow: 0 8px 20px rgba(8, 43, 85, 0.2);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand-mark::before {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(131, 200, 244, 0.65);
  border-radius: 50%;
  content: "";
}
.brand-mark::after {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  content: "";
  box-shadow: -23px 19px 0 rgba(255,255,255,.75);
}
.brand-mark span { position: relative; z-index: 1; }
.brand-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(216, 228, 239, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #425b74;
  font-size: 13px;
  font-weight: 650;
}
.nav a:hover, .nav a.active { color: var(--navy); background: var(--ice); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(18, 103, 177, .22); }
.btn-primary:hover { background: var(--navy-2); box-shadow: 0 11px 24px rgba(8, 43, 85, .24); }
.btn-secondary { color: var(--navy); border-color: var(--line-strong); background: #fff; }
.btn-secondary:hover { border-color: var(--blue); background: var(--ice); }
.btn-ghost { min-height: 38px; color: var(--navy); background: transparent; }
.btn-light { color: var(--navy); background: #fff; box-shadow: 0 8px 24px rgba(2, 24, 50, .14); }
.btn svg { width: 17px; height: 17px; }

/* Landing page */
.landing { overflow: hidden; background: #fff; }
.hero {
  position: relative;
  padding: 88px 0 74px;
  background:
    radial-gradient(circle at 89% 15%, rgba(131,200,244,.32), transparent 28%),
    radial-gradient(circle at 68% 85%, rgba(49,150,230,.16), transparent 32%),
    linear-gradient(180deg, #f9fcff 0%, #f3f8fc 100%);
}
.hero::before {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: radial-gradient(rgba(18,103,177,.16) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to right, transparent 5%, #000 68%, transparent 100%);
  content: "";
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  align-items: center;
  gap: 70px;
}
.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: 1.01;
  letter-spacing: -0.062em;
}
.hero h1 span { color: var(--blue); }
.hero-copy > p {
  max-width: 610px;
  margin: 25px 0 30px;
  color: #526a82;
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.hero-note .avatars { display: flex; }
.hero-note .avatar-dot {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: -6px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 8px;
  font-weight: 800;
}
.hero-note .avatar-dot:first-child { margin-left: 0; background: var(--blue); }
.hero-note .avatar-dot:nth-child(2) { background: #3f83bb; }

.hero-visual { position: relative; min-height: 490px; }
.orbit {
  position: absolute;
  top: 17px;
  right: 4px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(18, 103, 177, .16);
  border-radius: 50%;
}
.orbit::before, .orbit::after {
  position: absolute;
  inset: 54px;
  border: 1px dashed rgba(18, 103, 177, .17);
  border-radius: 50%;
  content: "";
}
.orbit::after { inset: 118px; border-style: solid; }
.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--bright);
  box-shadow: var(--shadow-sm);
}
.orbit-dot.one { top: 42px; left: 62px; }
.orbit-dot.two { right: 10px; bottom: 108px; background: var(--navy); }
.orbit-dot.three { left: 98px; bottom: 5px; background: var(--sky); }
.practice-card {
  position: absolute;
  z-index: 3;
  top: 45px;
  right: 38px;
  width: min(420px, 94%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: rotate(1.2deg);
}
.practice-card-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 21px 14px; }
.practice-card-head .label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dots { display: flex; gap: 5px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.practice-card-body { padding: 5px 21px 22px; }
.topic-chip { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: var(--blue); background: #e7f3fc; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.mock-question { margin: 17px 0 16px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.52; }
.mock-option { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: #4d667d; font-size: 12px; }
.mock-option.selected { border-color: var(--blue); color: var(--navy); background: #edf6fd; }
.choice { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 10px; font-weight: 800; }
.selected .choice { color: #fff; border-color: var(--blue); background: var(--blue); }
.mock-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.mini-progress { width: 150px; height: 6px; overflow: hidden; border-radius: 10px; background: #e5edf4; }
.mini-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--bright)); }
.feedback-float {
  position: absolute;
  z-index: 4;
  right: -9px;
  bottom: 27px;
  width: 230px;
  padding: 16px;
  border: 1px solid #cce6d6;
  border-radius: 16px;
  background: rgba(248,255,251,.96);
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}
.feedback-float b { display: flex; align-items: center; gap: 7px; color: var(--success); font-size: 12px; }
.feedback-float p { margin: 7px 0 0; color: #506b5b; font-size: 11px; line-height: 1.5; }
.score-float {
  position: absolute;
  z-index: 5;
  left: -10px;
  bottom: 100px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-md);
  font-size: 11px;
}
.score-ring { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: conic-gradient(var(--bright) 82%, #dceaf4 0); }
.score-ring::after { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #fff; content: "82"; color: var(--navy); font-size: 9px; font-weight: 800; }

.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; color: var(--navy); font-size: 28px; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: 96px 0; }
.section-soft { background: var(--ice); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-heading h2 { max-width: 650px; margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -.045em; }
.section-heading p { max-width: 410px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { position: relative; min-height: 255px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.feature-card::after { position: absolute; right: -28px; bottom: -28px; width: 100px; height: 100px; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.feature-number { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; } /* --bright was 3.2:1 on white; --blue meets WCAG AA (4 Oct 2026) */
.feature-icon { display: grid; width: 46px; height: 46px; margin: 25px 0 21px; place-items: center; border-radius: 14px; color: var(--blue); background: #e9f4fc; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 9px; color: var(--navy); font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.audience-card { position: relative; min-height: 360px; padding: 40px; overflow: hidden; border-radius: 24px; }
.audience-card.student { color: #fff; background: linear-gradient(145deg, var(--navy), #0e4d8a); }
.audience-card.teacher { border: 1px solid var(--line); background: #fff; }
.audience-card .audience-tag { display: inline-flex; margin-bottom: 62px; padding: 7px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.student .audience-tag { color: var(--sky); background: rgba(255,255,255,.1); }
.teacher .audience-tag { color: var(--blue); background: #eaf4fc; }
.audience-card h3 { max-width: 440px; margin: 0 0 13px; font-size: 30px; line-height: 1.16; letter-spacing: -.035em; }
.teacher h3 { color: var(--navy); }
.audience-card p { max-width: 440px; margin: 0 0 23px; font-size: 14px; line-height: 1.7; opacity: .8; }
.audience-card .decor { position: absolute; top: 35px; right: 30px; width: 115px; height: 115px; border: 1px solid currentColor; border-radius: 50%; opacity: .13; }
.audience-card .decor::before, .audience-card .decor::after { position: absolute; inset: 20px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.audience-card .decor::after { inset: 42px; background: currentColor; }
.final-cta { padding: 78px 0; color: #fff; background: var(--navy); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { max-width: 650px; margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.final-cta p { margin: 13px 0 0; color: #c8d9e8; font-size: 14px; }
.footer { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; }

/* Entrance animation */
.intro-screen {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 20px;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, #1267b1 0, #082b55 48%, #041a35 100%);
  transition: opacity .65s ease, visibility .65s ease;
  /* The overlay clears itself without JavaScript. Script normally dismisses it
     sooner; this is the floor, so a failed or blocked script can never leave a
     visitor staring at a welcome screen they cannot get past. */
  animation: introAutoClear 0s 3.4s forwards;
}
@keyframes introAutoClear { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.intro-screen.hidden { visibility: hidden; opacity: 0; pointer-events: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .intro-screen { animation-delay: 0s; }
  .intro-logo, .intro-content h1, .intro-content p { animation: none; }
}
.intro-content { position: relative; max-width: 100%; text-align: center; }
.intro-logo { position: relative; display: grid; width: 118px; height: 118px; margin: 0 auto 25px; place-items: center; border: 1px solid rgba(131,200,244,.55); border-radius: 50%; font-size: 54px; font-weight: 800; letter-spacing: -.1em; animation: introPulse 1.65s ease both; }
.intro-logo::before { position: absolute; inset: -18px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; animation: spin 5s linear infinite; }
.intro-logo::after { position: absolute; top: -20px; width: 11px; height: 11px; border: 3px solid var(--navy); border-radius: 50%; background: var(--sky); content: ""; }
.intro-content h1 { margin: 0; font-size: clamp(26px, 8.5vw, 62px); letter-spacing: -.045em; overflow-wrap: break-word; animation: rise .7s .25s ease both; }
.intro-content p { margin: 10px 0 0; color: #bad8ee; font-size: clamp(10px, 2.8vw, 12px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; animation: rise .7s .42s ease both; }
.intro-skip { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); min-width: 44px; min-height: 44px; padding: 10px 14px; border: 0; color: rgba(255,255,255,.7); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@keyframes introPulse { 0% { opacity: 0; transform: scale(.62) rotate(-12deg); } 60% { opacity: 1; transform: scale(1.04) rotate(1deg); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Application layouts */
.app-body { background: #f3f7fa; }
.app-layout { display: grid; min-height: 100vh; grid-template-columns: 252px 1fr; }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 25px 18px 18px; border-right: 1px solid var(--line); background: #fff; }
.side-brand { padding: 0 8px 25px; }
.side-section { margin: 16px 10px 8px; color: #8aa0b4; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 11px; color: #536c84; font-size: 13px; font-weight: 650; }
.side-link svg { width: 18px; height: 18px; }
.side-link:hover { color: var(--navy); background: var(--ice); }
.side-link.active { color: #fff; background: linear-gradient(135deg, var(--blue), #0f5b9c); box-shadow: 0 8px 18px rgba(18,103,177,.2); }
.side-badge { margin-left: auto; padding: 2px 7px; border-radius: 999px; color: var(--blue); background: #e7f3fc; font-size: 9px; font-weight: 800; }
.side-link.active .side-badge { color: #fff; background: rgba(255,255,255,.18); }
.side-footer { margin-top: auto; }
.upgrade-box { margin: 15px 3px; padding: 15px; border-radius: 14px; color: #d9ebfa; background: var(--navy); }
.upgrade-box b { display: block; color: #fff; font-size: 12px; }
.upgrade-box p { margin: 6px 0 11px; font-size: 10px; line-height: 1.5; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line); }
.user-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky)); font-size: 11px; font-weight: 800; }
.user-meta b { display: block; max-width: 125px; overflow: hidden; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--muted); font-size: 9px; }

.app-main { min-width: 0; }
.app-topbar { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.breadcrumb { color: var(--muted); font-size: 11px; font-weight: 650; }
.breadcrumb strong { color: var(--navy); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
/* 44px is the tap-target floor for this design system - the size a finger can
   reliably hit. Both of these declare it, but they are flex items and flex items
   shrink by default. On a phone the admin topbar - the only one carrying a
   breadcrumb next to the menu button - squeezed the menu button to 35px wide
   and the notifications button to 29px: under the tap-target floor, and the
   menu button is the only way into the admin navigation. The text beside them
   gives way instead. */
.mobile-toggle, .icon-btn { flex: 0 0 auto; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--danger); }
.app-content { width: min(1420px, 100%); padding: 34px 32px 60px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.welcome-row h1 { margin: 0 0 7px; color: var(--navy); font-size: 29px; letter-spacing: -.04em; }
.welcome-row p { margin: 0; color: var(--muted); font-size: 13px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.panel-pad { padding: 21px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; color: var(--navy); font-size: 15px; letter-spacing: -.02em; }
.panel-head a { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.continue-card { position: relative; display: flex; min-height: 245px; flex-direction: column; justify-content: space-between; padding: 27px; overflow: hidden; color: #fff; background: linear-gradient(140deg, var(--navy) 0%, #0c4e8e 70%, #1476c6 100%); }
.continue-card::after { position: absolute; right: -80px; bottom: -110px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 92px rgba(255,255,255,.02); content: ""; }
.continue-top { position: relative; z-index: 1; }
.continue-label { color: var(--sky); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.continue-card h2 { max-width: 540px; margin: 15px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.continue-card p { max-width: 520px; margin: 0; color: #c7daec; font-size: 12px; line-height: 1.65; }
.continue-bottom { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.continue-progress { flex: 1; max-width: 430px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: #d5e5f2; font-size: 10px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.16); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--sky); }

.mastery-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2.2fr 38px; align-items: center; gap: 12px; margin: 14px 0; }
.mastery-row .topic { overflow: hidden; color: #445e76; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.mastery-row .bar { height: 7px; overflow: hidden; border-radius: 20px; background: #e8eff5; }
.mastery-row .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--bright)); }
.mastery-row .value { color: var(--muted); font-size: 10px; font-weight: 750; text-align: right; }

.progress-summary { display: flex; align-items: center; gap: 23px; padding: 6px 0 12px; }
.big-ring { display: grid; flex: 0 0 auto; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: conic-gradient(var(--bright) 74%, #e4edf4 0); }
.big-ring::before { display: grid; width: 85px; height: 85px; place-items: center; border-radius: 50%; color: var(--navy); background: #fff; content: attr(data-value); font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.summary-list { flex: 1; }
.summary-list div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #edf2f6; color: var(--muted); font-size: 10px; }
.summary-list div:last-child { border-bottom: 0; }
.summary-list b { color: var(--navy); font-size: 11px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-action { min-height: 105px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdff; cursor: pointer; }
.quick-action:hover { border-color: var(--sky); background: #f2f9fe; }
.quick-action svg { width: 20px; height: 20px; margin-bottom: 13px; color: var(--blue); }
.quick-action b { display: block; color: var(--navy); font-size: 11px; }
.quick-action span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.assignment { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f6; }
.assignment:last-child { border-bottom: 0; }
.assignment-date { display: grid; height: 42px; place-items: center; border-radius: 11px; color: var(--blue); background: #eaf4fc; font-size: 9px; font-weight: 800; line-height: 1.1; text-align: center; text-transform: uppercase; }
.assignment-date b { display: block; font-size: 14px; }
.assignment-copy b { display: block; color: var(--navy); font-size: 11px; }
.assignment-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.status.todo { color: var(--warning); background: var(--warning-bg); }
.status.done { color: var(--success); background: var(--success-bg); }
.status.live { color: var(--blue); background: #e8f3fc; }

.insight-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid #cfe5f6; border-radius: 14px; background: linear-gradient(120deg, #edf7fe, #f9fcff); }
.insight-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--blue); background: #fff; box-shadow: var(--shadow-sm); }
.insight-card b { display: block; color: var(--navy); font-size: 11px; }
.insight-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

/* Staff portal */
.staff-body .sidebar { background: #071f3d; border-right: 0; }
.staff-body .side-brand .brand { color: #fff; }
.staff-body .brand-copy small { color: #8ab5d7; }
.staff-body .side-section { color: #5e84a5; }
.staff-body .side-link { color: #9ebbd2; }
.staff-body .side-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.staff-body .side-link.active { color: var(--navy); background: #fff; box-shadow: none; }
.staff-body .user-chip { border-top-color: rgba(255,255,255,.1); }
.staff-body .user-meta b { color: #fff; }
.staff-body .user-meta span { color: #84a7c2; }

.metric-card { padding: 19px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: var(--blue); background: #eaf4fc; }
.metric-icon svg { width: 19px; height: 19px; }
.metric-trend { color: var(--success); font-size: 9px; font-weight: 800; }
.metric-value { margin: 18px 0 5px; color: var(--navy); font-size: 27px; font-weight: 800; letter-spacing: -.045em; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 650; }

.class-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.class-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.class-card-top { display: flex; justify-content: space-between; gap: 10px; }
.class-card h3 { margin: 0; color: var(--navy); font-size: 12px; }
.class-card p { margin: 5px 0 15px; color: var(--muted); font-size: 9px; }
.student-stack { display: flex; }
.student-stack span { display: grid; width: 27px; height: 27px; margin-left: -6px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--blue); font-size: 7px; font-weight: 800; }
.student-stack span:first-child { margin-left: 0; }
.student-stack span:nth-child(2) { background: #3c86c3; }
.student-stack span:nth-child(3) { background: #6da9d5; }
.student-stack span.more { color: var(--navy); background: #e8f1f8; }
.class-performance { margin-top: 14px; }
.class-performance .line { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 9px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #8095a8; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #edf2f6; color: #516981; font-size: 10px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong { color: var(--navy); font-size: 10px; }
.completion { display: flex; align-items: center; gap: 8px; }
.completion .progress-track { width: 75px; height: 5px; background: #e6eef4; }
.completion .progress-track span { background: var(--bright); }
.completion em { color: var(--muted); font-size: 9px; font-style: normal; }

.bank-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bank-type { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdff; }
.bank-type span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bank-type b { display: block; margin: 8px 0 2px; color: var(--navy); font-size: 21px; }
.bank-type small { color: var(--muted); font-size: 8px; }

.activity-item { display: grid; grid-template-columns: 9px 1fr auto; align-items: start; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf2f6; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; margin-top: 3px; border: 3px solid #dceefa; border-radius: 50%; background: var(--blue); box-sizing: content-box; }
.activity-item b { display: block; color: var(--navy); font-size: 10px; }
.activity-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.activity-item time { color: #93a5b5; font-size: 8px; white-space: nowrap; }

/* Subject selection */
.subject-body { min-height: 100vh; background: radial-gradient(circle at 82% 12%, rgba(49,150,230,.12), transparent 31%), var(--ice); }
.subject-topbar { background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.subject-main { min-height: calc(100vh - 160px); }
.subject-hero { padding: 42px 0 74px; }
.subject-back { display: inline-flex; margin-bottom: 28px; color: var(--muted); font-size: 11px; font-weight: 750; }
.subject-back:hover { color: var(--blue); }
.subject-heading { max-width: 720px; }
.subject-heading h1 { margin: 11px 0 13px; color: var(--navy); font-size: clamp(38px, 6vw, 66px); line-height: 1.03; letter-spacing: -.06em; }
.subject-heading p { max-width: 640px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.subject-card { position: relative; display: flex; min-height: 390px; flex-direction: column; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; color: inherit; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); text-decoration: none; }
.subject-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.subject-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; }
.subject-icon svg { width: 23px; height: 23px; }
.subject-icon.human { color: #fff; background: linear-gradient(145deg, var(--navy), var(--bright)); box-shadow: 0 10px 22px rgba(18,103,177,.24); }
.subject-icon.chemistry { color: #77540d; background: #fbefcc; }
.subject-icon.physics { color: #5d458a; background: #eee8fa; }
.subject-icon.psychology { color: #466a50; background: #e5f1e7; }
.subject-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.subject-status.live { color: var(--success); background: var(--success-bg); }
.subject-status.soon { color: #6e7d8b; background: #edf2f5; }
/* Signed-out chooser: availability is only known after login (12 Oct 2026). Navy on pale blue, 9:1. */
.subject-status.check { color: #0b3a66; background: #e6f1fb; }
.subject-card-copy { margin-top: 42px; }
.subject-code { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.subject-card h2 { margin: 8px 0 12px; color: var(--navy); font-size: 23px; letter-spacing: -.04em; }
.subject-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.subject-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: auto; padding-top: 28px; color: var(--muted); font-size: 9px; }
.subject-meta b { color: var(--navy); }
.subject-action { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--blue); font-size: 10px; font-weight: 850; }
.subject-action svg { width: 17px; height: 17px; transition: transform .18s; }
.subject-live { border-color: #b9d9ef; box-shadow: 0 18px 42px rgba(8,43,85,.11); transition: border-color .18s, box-shadow .18s, transform .18s; }
.subject-live::after { position: absolute; right: -64px; bottom: -79px; width: 190px; height: 190px; border: 1px solid rgba(49,150,230,.12); border-radius: 50%; box-shadow: 0 0 0 34px rgba(49,150,230,.035); content: ""; }
.subject-live:hover { border-color: var(--bright); box-shadow: 0 22px 52px rgba(8,43,85,.15); transform: translateY(-5px); }
.subject-live:hover .subject-action svg { transform: translateX(3px); }
.subject-soon { opacity: .72; }
.subject-soon .subject-code { color: #778897; }
.subject-placeholder { margin-top: auto; padding-top: 28px; color: #8796a3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.subject-teacher-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.75); }
.subject-teacher-callout h2 { margin: 7px 0 0; color: var(--navy); font-size: 17px; letter-spacing: -.025em; }
.subject-footer { background: transparent; }

/* Live dashboard states */
.dashboard-access-gate { position: fixed; z-index: 200; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(240,246,251,.96); backdrop-filter: blur(12px); }
.access-card { width: min(100%, 520px); padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.access-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 20px; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--bright)); font-size: 29px; font-weight: 850; letter-spacing: -.06em; }
.access-card h1 { margin: 0; color: var(--navy); font-size: clamp(25px, 5vw, 36px); letter-spacing: -.045em; }
.access-card p { max-width: 410px; margin: 14px auto 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.access-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.data-warning { grid-column: 1 / -1; margin-bottom: 18px; padding: 12px 15px; border: 1px solid #f3dba6; border-radius: 12px; color: #765314; background: #fff8e8; font-size: 11px; line-height: 1.55; }
.dashboard-empty { grid-column: 1 / -1; padding: 22px; border: 1px dashed #cbdbe7; border-radius: 13px; color: var(--muted); background: #f9fcfe; text-align: center; }
.dashboard-empty b { display: block; color: var(--navy); font-size: 12px; }
.dashboard-empty p { max-width: 520px; margin: 7px auto 12px; font-size: 10px; line-height: 1.55; }
.inline-link { color: var(--blue); font-size: 10px; font-weight: 800; }
.assignment-link { color: inherit; text-decoration: none; }
.assignment-link:hover .assignment-copy b { color: var(--blue); }
.role-switch { display: block; margin-top: 4px; color: var(--sky); font-size: 8px; font-weight: 800; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { display: flex; min-height: 150px; flex-direction: column; gap: 7px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fbfdff; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
a.resource-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.resource-card b { color: var(--navy); font-size: 14px; line-height: 1.35; }
.resource-card > span:not(.resource-type) { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.resource-card > .resource-where { color: var(--navy-2); font-weight: 600; }
.resource-card p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 12.5px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.resource-type { align-self: flex-start; padding: 4px 8px; border-radius: 999px; color: var(--blue); background: #e8f3fc; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.add-class-card { display: grid; min-height: 157px; place-items: center; border-style: dashed; background: #fff; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 28px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  font-size: 12px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(560px, 100%); margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .col-3 { grid-column: span 6; }
  .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .nav { position: absolute; top: 75px; right: 20px; left: 20px; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
  .nav.open { display: grid; }
  .nav-actions .btn-secondary { display: none; }
  .mobile-toggle { display: inline-flex; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 16px; }
  .audience-grid { grid-template-columns: 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; width: 252px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .app-topbar .mobile-toggle { display: inline-flex; }
  .app-content { padding: 28px 20px 55px; }
  .app-topbar { padding: 0 20px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner { min-height: 68px; }
  .nav { top: 67px; right: 14px; left: 14px; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding: 58px 0 45px; }
  .hero h1 { font-size: 45px; }
  .hero-copy > p { font-size: 15px; }
  .hero-visual { min-height: 430px; }
  .orbit { right: -40px; width: 300px; height: 300px; }
  .practice-card { top: 38px; right: 0; }
  .feedback-float { right: 0; bottom: 8px; }
  .score-float { left: 0; bottom: 76px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 70px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 330px; padding: 28px; }
  .final-cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .date-chip { display: none; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 12; }
  .continue-card { min-height: 310px; }
  .continue-bottom { align-items: stretch; flex-direction: column; }
  .quick-grid, .class-list, .bank-summary { grid-template-columns: 1fr; }
  .app-topbar .btn-primary { display: none; }
  .preview-pill { right: 10px; bottom: 10px; }
  .access-card { padding: 32px 22px; }
  .resource-grid { grid-template-columns: 1fr; }
  .subject-hero { padding: 30px 0 52px; }
  .subject-heading h1 { font-size: 42px; }
  .subject-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .subject-card { min-height: 330px; }
  .subject-card-copy { margin-top: 30px; }
  .subject-teacher-callout { align-items: flex-start; flex-direction: column; padding: 22px; }
}

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


/* In-app notification centre */
.notification-preview-panel { overflow: hidden; }
.notification-panel-intro { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-preview-list, .notification-page-list { display: grid; gap: 10px; }
.notification-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.notification-item.unread { border-color: #a9d3f1; background: #f7fbff; box-shadow: inset 3px 0 0 var(--bright); }
.notification-item.compact { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px 13px; background: #fbfdff; }
.notification-type { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--blue); background: #e8f3fc; font-size: 13px; font-weight: 850; }
.notification-item.compact .notification-type { width: 36px; height: 36px; border-radius: 10px; }
.notification-type.priority-high { color: #8c6521; background: var(--warning-bg); }
.notification-type.priority-urgent { color: var(--danger); background: var(--danger-bg); }
.notification-copy { min-width: 0; }
.notification-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.notification-title-row h3 { margin: 0; color: var(--navy); font-size: 12px; line-height: 1.4; }
.notification-title-row > span { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.notification-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.notification-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 8px; font-weight: 700; }
.notification-state { padding: 3px 7px; border-radius: 999px; }
.notification-state.state-new { color: var(--blue); background: #e8f3fc; }
.notification-state.state-read { color: var(--muted); background: #edf2f5; }
.notification-state.state-done { color: var(--success); background: var(--success-bg); }
.notification-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }
.notification-actions .btn { min-height: 34px; padding: 8px 12px; font-size: 9px; white-space: nowrap; }
.notification-text-button { padding: 2px; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }
.notification-page-header { display: flex; width: min(100% - 40px, 1120px); min-height: 84px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 20px; }
.notification-page-main { width: min(100% - 40px, 960px); margin: 38px auto 80px; }
.notification-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.notification-page-heading h1 { margin: 8px 0 6px; color: var(--navy); font-size: clamp(34px, 6vw, 54px); letter-spacing: -.055em; }
.notification-page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.notification-filter-bar { display: flex; gap: 8px; margin: 28px 0 18px; padding-bottom: 3px; overflow-x: auto; }
.notification-filter { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.notification-filter.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.notification-page-list { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.75); box-shadow: var(--shadow-sm); }
.notification-empty { padding: 65px 20px; color: var(--muted); text-align: center; }
.notification-empty-mark { display: grid; width: 50px; height: 50px; margin: 0 auto 14px; place-items: center; border-radius: 15px; color: var(--blue); background: #e8f3fc; font-size: 20px; font-weight: 850; }
.notification-empty h2 { margin: 0; color: var(--navy); font-size: 18px; }
.notification-empty p { margin: 8px 0 0; font-size: 11px; }
@media (max-width: 640px) {
  .notification-item, .notification-item.compact { grid-template-columns: 34px minmax(0, 1fr); padding: 13px; }
  .notification-type, .notification-item.compact .notification-type { width: 34px; height: 34px; }
  .notification-actions { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .notification-title-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .notification-page-header { width: min(100% - 28px, 1120px); min-height: 72px; }
  .notification-page-header .brand-copy small { display: none; }
  .notification-page-main { width: min(100% - 28px, 960px); margin-top: 25px; }
  .notification-page-heading { align-items: flex-start; flex-direction: column; }
  .notification-page-list { padding: 10px; border-radius: 16px; }
}

/* The sign-out control is injected by atarium-ui.js into whichever header the
   page has. .nav-actions hides secondary buttons on a phone to save room, which
   must not take the only way out of the account with it. */
.btn[data-signout] { flex: 0 0 auto; min-height: 44px; }
.nav-actions .btn-secondary[data-signout] { display: inline-flex; }
@media (max-width: 560px) {
  .btn[data-signout] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn[data-signout] { width: 44px; padding: 0; justify-content: center; }
}
