@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: #0e1424;
  --surface-2: #121a2e;
  --text: #eef3ff;
  --muted: #8b97b3;
  --accent: #2ec4ff;
  --blue: #1a73e8;
  --blue-deep: #1557b8;
  --navy: #07102c;
  --line: rgba(148, 176, 220, 0.16);
  --danger: #f07178;
  --ok: #3dd68c;
  --warn: #e6b450;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar: 248px;
  --focus: 0 0 0 3px rgba(46, 196, 255, 0.35);
  --cyan: #2ec4ff;
  --ink: #eef3ff;
  --paper: #0a0f1c;
  --white: #ffffff;
}

.admin-body {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: #0e1424;
  --surface-2: #121a2e;
  --text: #eef3ff;
  --muted: #8b97b3;
  --line: rgba(148, 176, 220, 0.16);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --ink: #eef3ff;
  --paper: #0a0f1c;
}
html[data-theme="light"] .admin-body {
  --bg: #f3f5fa;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #10182c;
  --muted: #5b6784;
  --line: #e6ebf4;
  --shadow: 0 8px 28px rgba(16, 24, 44, 0.06);
  --ink: #10182c;
  --paper: #f6f8fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: Cairo, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex: none;
  display: block;
  mix-blend-mode: screen;
}
.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.admin-nav .brand,
.login-page .brand,
.site-header .brand,
.site-footer .brand { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 22, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  position: relative;
}
.header-right { display: contents; }
nav {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 10px;
  transition: 0.18s ease;
}
nav a:hover, nav a.active {
  color: var(--text);
  background: rgba(46, 196, 255, 0.08);
}
.header-cta { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #33c7ff, #1a73e8);
  color: #041018;
  box-shadow: 0 10px 24px rgba(30, 144, 255, 0.28);
}
.btn-primary:hover { background: linear-gradient(180deg, #5ad2ff, #1a73e8); }
.btn-secondary, .btn-ghost, .btn-light {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover, .btn-secondary:hover { border-color: rgba(46, 196, 255, 0.45); background: rgba(46, 196, 255, 0.06); }
.btn-light { background: #fff; color: #07102c; border: 0; }
.btn-danger { background: var(--danger); color: #041018; }
.btn-small { padding: 8px 12px; font-size: 0.84rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}
h1, h2, h3, h4 {
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 8px 0 14px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0 0 10px; }
h3 { margin: 0 0 8px; }
h4 { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 40px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(46, 196, 255, 0.12), transparent),
    linear-gradient(180deg, #0d1528, #090e1a);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.25), transparent 70%);
}
.hv-card {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.88);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.hv-card strong { display: block; color: var(--text); margin-bottom: 4px; }
.hv-terminal {
  left: 18px;
  top: 22px;
  width: 54%;
  font-family: "IBM Plex Mono", monospace;
  color: #9fd9ff;
}
.hv-chart { right: 18px; top: 28px; width: 38%; }
.hv-bars { display: flex; align-items: end; gap: 6px; height: 72px; margin-top: 8px; }
.hv-bars i {
  display: block;
  width: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--blue));
}
.hv-progress { left: 18px; bottom: 22px; width: 46%; }
.meter {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.hv-project { right: 18px; bottom: 20px; width: 40%; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 8px 0 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface);
}
.stat span { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stat b { font-size: 1.05rem; }

section { padding: 72px 0; }
.band { background: var(--bg-2); }
.section-intro { text-align: center; margin: 0 auto 36px; max-width: 640px; }
.section-intro .lede { margin-inline: auto; }
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card, .course-card, .panel, .feature-card, .track-card, .pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pillar b {
  display: block;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin-bottom: 8px;
}
.feature-card, .pillar {
  padding: 22px;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}
.feature-card:hover, .track-card:hover, .course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 255, 0.35);
}
.feature-icon, .course-mark, .program-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(46, 196, 255, 0.1);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.icon-svg { width: 18px; height: 18px; }

.track-card, .course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}
.course-body, .track-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seat-chip, .status-chip {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 9px;
}
.seat-chip { color: var(--accent); background: rgba(46, 196, 255, 0.1); }
.status-chip.OPEN { color: var(--ok); background: rgba(61, 214, 140, 0.12); }
.status-chip.FULL, .status-chip.UPCOMING { color: var(--warn); background: rgba(230, 180, 80, 0.12); }
.status-chip.CLOSED, .status-chip.DRAFT { color: var(--danger); background: rgba(240, 113, 120, 0.12); }
.status-chip.PUBLISHED { color: var(--accent); background: rgba(46, 196, 255, 0.12); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
}
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seats { font-size: 0.86rem; color: var(--muted); }
.seat-meter {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.admin-body .seat-meter { background: var(--bg-2); }
.seat-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.btn-apply {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  background: linear-gradient(180deg, #33c7ff, #1a73e8);
  color: #041018;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 144, 255, 0.28); }
.btn-apply .arrow { transition: transform 0.2s; }
.btn-apply:hover .arrow { transform: translateX(5px); }
.btn-apply.is-off {
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
}
.btn-apply.is-off:hover { transform: none; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.timeline-step, .journey-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.timeline-step b, .journey-step b {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.metric b { display: block; font-size: 1.35rem; color: var(--accent); }

.roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.road-node {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
}
.road-node:hover, .road-node.is-on { border-color: var(--accent); color: var(--accent); }
.road-arrow { color: var(--muted); }
.road-detail {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  min-height: 120px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.cta-band {
  background: linear-gradient(180deg, #0b1733, #071022);
  color: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 40px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}
.cta-band p { color: var(--muted); margin: 0 0 10px; }

.site-footer {
  background: #05070d;
  color: white;
  padding: 48px 0 20px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.site-footer a { text-decoration: none; color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: white; }
.site-footer .muted { color: rgba(255,255,255,0.5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-links { display: grid; gap: 8px; }
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: rgba(255,255,255,0.45);
  font-size: 0.86rem;
}
.footer-brand { display: grid; gap: 8px; }

.page-hero { padding: 48px 0 20px; }
.page-hero.center { text-align: center; }
.page-hero.center .lede { margin-inline: auto; }

.notice {
  border: 1px dashed rgba(46, 196, 255, 0.35);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.filters input, .filters select { background: var(--surface); min-width: 150px; }

.form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  max-width: 820px;
  margin: 0 auto 48px;
}
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 11px;
  padding: 11px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.field-error { color: var(--danger); font-size: 0.8rem; font-weight: 600; }
.error, .banner { padding: 12px 14px; border-radius: 12px; }
.error { background: rgba(240, 113, 120, 0.12); color: var(--danger); }
.banner.ok { background: rgba(61, 214, 140, 0.12); color: var(--ok); }

.steps-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.step-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.step-pill.is-on { color: #041018; background: var(--accent); border-color: transparent; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.track-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.track-pick button {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}
.track-pick button.is-on { border-color: var(--accent); box-shadow: var(--focus); }
.summary { display: grid; gap: 8px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 0.92rem; }
.summary dt { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
}
.badge.OPEN, .badge.SENT, .badge.ACCEPTED { background: rgba(61, 214, 140, 0.12); color: var(--ok); }
.badge.FULL, .badge.PENDING, .badge.UNDER_REVIEW, .badge.SENDING { background: rgba(230, 180, 80, 0.12); color: var(--warn); }
.badge.SENDING { background: rgba(80, 150, 230, 0.12); color: #3b82f6; }
.badge.RETRY_PENDING { background: rgba(230, 150, 60, 0.16); color: #c26a1a; }
.badge.CLOSED, .badge.DRAFT, .badge.REJECTED, .badge.FAILED { background: rgba(240, 113, 120, 0.12); color: var(--danger); }
.badge.PUBLISHED { background: rgba(46, 196, 255, 0.12); color: var(--accent); }
.badge.ONLINE { background: rgba(61, 214, 140, 0.16); color: var(--ok); }
.badge.OFFLINE { background: rgba(139, 151, 179, 0.14); color: var(--muted); }
.presence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 6px;
  background: var(--muted);
}
.presence-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.18); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }

.admin-body { background: var(--bg); color: var(--text); }
.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}
.admin-nav {
  background: var(--navy);
  color: white;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.admin-nav .brand { padding: 6px 8px 8px; }
.admin-nav .brand-name { font-size: 0.95rem; }
.nav-connected {
  margin: 0 8px 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  font-weight: 600;
}
.nav-welcome {
  margin: -8px 8px 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  line-height: 1.4;
}
.nav-group {
  margin: 8px 8px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-weight: 800;
}
.admin-nav a.nav-item {
  display: block;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-nav a.nav-item:hover,
.admin-nav a.nav-item.active {
  background: rgba(255,255,255,0.08);
  color: white;
}
.admin-nav .nav-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.powered-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.powered-lockup .powered-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-lockup .powered-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(120deg, #8fd4ff 0%, #2ec4ff 42%, #1a73e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.powered-lockup:hover .powered-name {
  background: linear-gradient(120deg, #ffffff 0%, #2ec4ff 55%, #5aa9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.admin-nav .nav-powered {
  margin-top: 16px;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-nav .nav-powered .powered-kicker { color: rgba(255,255,255,0.45); }
.admin-nav .nav-powered .powered-name { font-size: 1.2rem; }
.login-powered {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.login-powered .powered-name { font-size: 1.55rem; }
.login-box a.login-powered {
  color: inherit;
  font-weight: inherit;
}
.admin-content { min-width: 0; }
.impersonate-bar {
  margin: 16px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin-topbar .crumb { font-weight: 800; color: var(--text); }
.admin-topbar .top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn { position: relative; isolation: isolate; }
.notify-wrap { position: relative; }
.notify-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 2;
}
.notify-drop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(420px, 92vw);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.notify-item.is-unread {
  background: rgba(26, 95, 212, 0.08);
}
.notify-item.is-unread b {
  font-weight: 800;
}
.notify-title-link {
  color: inherit;
  text-decoration: none;
}
.notify-title-link:hover strong {
  color: var(--brand, #1a5fd4);
  text-decoration: underline;
}
.notify-who {
  color: var(--text) !important;
  font-weight: 600;
}
.notify-detail {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.notify-detail-hint {
  border-style: dashed;
}
.notify-row {
  cursor: pointer;
}
.notify-row.is-selected {
  outline: 2px solid rgba(46, 196, 255, 0.45);
  outline-offset: -2px;
  background: rgba(46, 196, 255, 0.08);
}
.notify-who-line {
  margin: 4px 0;
}
.notify-row-actions {
  margin-top: 8px;
  flex-wrap: wrap;
}
.notify-dl {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.notify-dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}
.notify-dl dt {
  color: var(--muted);
  font-size: 0.82rem;
}
.notify-dl dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.notify-actions { margin-top: 12px; flex-wrap: wrap; }
.btn-message {
  background: #1a5fd4;
  border-color: #1a5fd4;
  color: #fff;
}
.btn-message:hover { filter: brightness(1.05); }
.message-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.notify-head, .notify-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.notify-more { display: block; text-align: center; font-weight: 700; }
.notify-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.notify-item b { font-size: 0.86rem; }
.notify-item span, .notify-item small { color: var(--muted); font-size: 0.78rem; }
.notify-item.error { border-inline-start: 3px solid var(--danger); }
.notify-item.warning { border-inline-start: 3px solid var(--warn); }
.notify-item.success { border-inline-start: 3px solid #22c55e; }
@media (max-width: 720px) {
  .notify-wrap {
    position: static;
  }
  .notify-drop {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 64px;
    inset-inline-end: auto;
    width: auto;
    max-width: none;
    max-height: min(75vh, 560px);
    z-index: 80;
  }
}
.skill-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; margin-bottom: 8px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
label.check input { width: auto; }
.log-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log-row.unread { background: rgba(46, 196, 255, 0.06); margin: 0 -12px; padding: 14px 12px; border-radius: 10px; }
.btn { position: relative; isolation: isolate; z-index: 1; }
.admin-main { padding: 24px 28px 40px; }
.admin-main h1 { margin: 0 0 6px; font-size: 1.7rem; color: var(--text); }
.admin-body .card, .admin-body .panel { background: var(--surface); border-color: var(--line); color: var(--text); }
.admin-body .muted { color: var(--muted); }
.admin-body .btn-ghost { color: var(--text); border-color: var(--line); }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.page-head > div {
  min-width: 0;
  flex: 1 1 auto;
}
.page-head > .btn,
.page-head > a.btn {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
  min-width: 8.5rem;
  padding-inline: 20px;
}
.admin-body .card:hover,
.admin-body .panel:hover { transform: none; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stats-dash { grid-template-columns: repeat(3, 1fr); }
.stat-card { padding: 14px 16px; }
.stat-card b { font-size: 1.45rem; display: block; color: var(--text); }
.attention-list { display: grid; gap: 8px; margin-top: 10px; }
.attention-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.attention-item.pending { background: rgba(230, 180, 80, 0.1); }
.attention-item.whatsapp { background: rgba(230, 180, 80, 0.16); border-color: rgba(230, 180, 80, 0.45); }
.attention-item.full, .attention-item.closed { background: rgba(240, 113, 120, 0.1); }
.danger-text { color: var(--danger); font-weight: 600; }
textarea.template-body { min-height: 360px; font-family: inherit; line-height: 1.5; }
.table-wrap input[type="url"],
.table-wrap input[type="text"],
.table-wrap input[type="number"] {
  width: 100%;
  min-width: 120px;
}
.email-preview {
  white-space: pre-wrap;
  background: rgba(7, 20, 51, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.email-values { display: grid; gap: 4px; margin: 10px 0 0; font-size: 0.86rem; }
html[dir="rtl"] .bar { direction: ltr; }
html[dir="rtl"] table { text-align: right; }
html[dir="rtl"] th,
html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] .nav-group,
html[dir="rtl"] th {
  letter-spacing: 0;
  text-transform: none;
}
.bars { display: grid; gap: 8px; }
.bar {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
}
.bar i {
  display: block;
  height: 8px;
  background: var(--blue);
  border-radius: 99px;
}
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions select { width: auto; min-width: 110px; padding: 7px 8px; font-size: 0.82rem; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(800px 400px at 50% 0%, rgba(46, 196, 255, 0.12), transparent), #05070d;
}
.login-box {
  width: min(420px, calc(100% - 32px));
  margin: 0;
  padding: 28px;
}
.login-box .brand { margin: 0 auto 8px; }
.login-box h1 { text-align: center; }
.login-box a { color: var(--accent); font-weight: 700; text-align: center; }

.cover { display: none; }

@media (max-width: 1024px) {
  .hero-split, .split, .timeline, .journey, .metrics, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-split, .grid-2, .form-row, .stats, .admin-shell, .split, .timeline, .journey, .metrics, .footer-grid, .track-pick { grid-template-columns: 1fr; }
  .grid-3, .feature-grid { grid-template-columns: 1fr 1fr; }
  .admin-nav { height: auto; position: relative; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-right {
    display: none;
    position: absolute;
    right: 0;
    top: 72px;
    background: #0c1220;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    min-width: 230px;
    box-shadow: var(--shadow);
    z-index: 20;
  }
  .header-right.open { display: flex; }
  nav, .header-cta { display: flex; flex-direction: column; align-items: stretch; }
  .hero-visual { min-height: 280px; }
  .cta-band { padding: 32px 22px; }
  .brand-name { font-size: 1rem; }
  .brand-logo { height: 36px; width: 36px; }
}
@media (max-width: 640px) {
  .grid-3, .feature-grid, .stat-row { grid-template-columns: 1fr; }
  .hero-split { padding: 36px 0 24px; }
  .hv-card { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: auto !important; margin: 10px; }
  .hero-visual { display: grid; min-height: 0; padding: 8px; }
}
.when {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
  white-space: nowrap;
}
.when-date {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.when-time {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.notify-meta,
.app-kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.app-kicker .when {
  display: inline-flex;
  vertical-align: top;
}

.student-roster { display: grid; gap: 14px; }
.student-roster > section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.student-roster > section.is-open {
  border-color: rgba(46, 196, 255, 0.35);
  box-shadow: 0 8px 24px rgba(7, 20, 51, 0.08);
}
.student-course-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 14px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
  user-select: none;
  font: inherit;
}
.student-roster > section.is-open > .student-course-head {
  border-bottom-color: var(--line);
  background: rgba(46, 196, 255, 0.04);
}
.student-course-head:hover {
  background: rgba(46, 196, 255, 0.07);
}
.student-course-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.student-course-chev {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(46, 196, 255, 0.12);
  color: var(--accent);
  transition: transform 0.2s ease, background 0.18s ease;
}
.student-course-chev svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.2s ease;
}
.student-roster > section.is-open .student-course-chev {
  background: rgba(46, 196, 255, 0.2);
}
.student-roster > section.is-open .student-course-chev svg {
  transform: rotate(90deg);
}
.student-course-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.student-course-copy h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  line-height: 1.25;
}
.student-course-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}
.student-course-previews {
  display: flex;
  align-items: center;
}
.student-course-previews .student-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.62rem;
  margin-inline-start: -6px;
  border: 2px solid var(--surface);
  box-shadow: none;
}
.student-course-previews .student-mark:first-child {
  margin-inline-start: 0;
}
.student-roster > section.is-open .student-course-previews {
  opacity: 0.35;
}
.student-course-count {
  min-width: 2rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 196, 255, 0.12);
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}
.student-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}
.student-roster > section.is-collapsed .student-list {
  display: none;
}
.student-roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
html[data-theme="light"] .student-roster > section.is-open {
  box-shadow: 0 8px 20px rgba(15, 40, 80, 0.06);
}
html[data-theme="light"] .student-course-chev {
  background: rgba(26, 115, 232, 0.1);
  color: var(--blue);
}
html[data-theme="light"] .student-course-count {
  background: rgba(26, 115, 232, 0.1);
  color: var(--blue);
}

@media (max-width: 720px) {
  .student-course-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .student-course-previews {
    display: none;
  }
}
.student-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: start;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  position: relative;
}
.student-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.student-card.is-web::before { background: #2ec4ff; }
.student-card.is-python::before { background: #7dd3a8; }
.student-card.is-analysis::before { background: #f0b429; }
.student-card.is-design::before { background: #c084fc; }
.student-card.is-structure::before { background: #60a5fa; }
.student-card.is-cpp::before { background: #fb7185; }
.student-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(46, 196, 255, 0.1);
  color: var(--accent);
}
.student-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.student-card h3 a { text-decoration: none; }
.student-card h3 a:hover { color: var(--accent); }
.student-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}
.student-meta a { color: inherit; }
.student-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}
.student-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.student-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.student-chip:hover { color: var(--text); border-color: var(--accent); }
.student-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
}
html[data-theme="light"] .student-mark {
  background: rgba(26, 115, 232, 0.08);
  color: var(--blue);
}

@media (max-width: 720px) {
  .student-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .student-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
  .student-actions { grid-column: 1 / -1; }
}

.people-roster,
.people-list { display: grid; gap: 12px; }
.people-roster { gap: 28px; }
.people-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.people-head h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.people-head span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.profile-page { max-width: 680px; }
.profile-page.is-wide { max-width: 720px; }
.profile-page.is-staff { max-width: 760px; }
.profile-page.is-staff .profile-hero {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.profile-page.is-staff .profile-hero::before { display: block; }
.profile-page.is-staff .profile-hero .person-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 0.82rem;
}
.profile-page.is-staff .profile-hero .person-actions {
  grid-column: 2 / -1;
  margin-top: 12px;
  justify-content: flex-start;
}
.profile-page.is-staff .form.profile-panel {
  margin: 14px 0 0;
  padding: 18px;
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}
.profile-page.is-staff .form.profile-panel > .btn {
  width: max-content;
  justify-self: start;
}
.profile-page.is-staff .profile-panel-head {
  align-items: flex-start;
}
.profile-page.is-staff .profile-panel-head .muted { margin: 6px 0 0; }
.profile-page.is-staff .perm-toolbar { margin: 12px 0 4px; }
.profile-page.is-staff .perm-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.profile-page.is-staff .perm-group-head h4 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-page.is-staff .perm-grid {
  gap: 6px 16px;
  margin: 12px 0;
}
.profile-page .form.profile-panel {
  margin: 0;
  padding: 22px 0 0;
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}
.profile-page .form.profile-panel > .btn {
  width: max-content;
  justify-self: start;
}
.profile-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.profile-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.perm-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.perm-count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.perm-group { margin-top: 16px; }
.perm-group h4 {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.notify-page { max-width: 720px; }
.quiet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.quiet-filter {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
}
.quiet-filter.is-on { color: var(--text); }
.quiet-filter span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  margin-inline-start: 4px;
}
.notify-list { display: grid; }
.notify-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.notify-row:hover h3 { color: var(--accent); }
.notify-dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  background: transparent;
}
.notify-row.is-unread .notify-dot { background: var(--accent); }
.notify-row.is-unread h3 { font-weight: 700; }
.notify-row h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
}
.notify-row p { margin: 4px 0 0; }
.notify-cat {
  color: var(--muted);
  font-size: 0.75rem;
}
.person-card,
.profile-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.person-card::before,
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.person-card.is-owner::before,
.profile-hero.is-owner::before { background: #f0b429; }
.person-card.is-manager::before,
.profile-hero.is-manager::before { background: #60a5fa; }
.person-card.is-instructor::before,
.profile-hero.is-instructor::before { background: #c084fc; }
.person-card.is-you,
.profile-hero.is-you {
  box-shadow: inset 0 0 0 1px rgba(46, 196, 255, 0.28);
}
.person-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(46, 196, 255, 0.1);
  color: var(--accent);
}
.person-card h3,
.profile-hero h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.person-card h3 a,
.profile-hero h2 { text-decoration: none; }
.person-card h3 a:hover { color: var(--accent); }
.person-card h3 em,
.profile-hero h2 em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(46, 196, 255, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}
.person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  align-items: center;
}
.person-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}
.person-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-hero {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-hero::before { display: none; }
.profile-hero .person-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 0.75rem;
}
.profile-hero .person-actions {
  grid-column: auto;
  margin: 0;
  justify-content: flex-end;
}
.profile-hero p { margin: 4px 0 0; }
.profile-bio { margin: 8px 0 0; color: var(--muted); }
.course-pills,
.assign-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.course-pills span,
.assign-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.assign-pill { cursor: pointer; }
.assign-pill:has(input:checked) {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(46, 196, 255, 0.08);
}
.assign-pill input { width: auto; margin: 0; }
.perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 0 0 16px;
}
.perm-grid .check {
  padding: 0;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text);
}
.profile-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  text-decoration: none;
}
.profile-back:hover { color: var(--accent); }
html[data-theme="light"] .person-mark {
  background: rgba(26, 115, 232, 0.08);
  color: var(--blue);
}

@media (max-width: 900px) {
  .person-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .person-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
  .perm-grid { grid-template-columns: 1fr; }
  .profile-hero,
  .profile-page.is-staff .profile-hero {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .profile-hero .person-actions,
  .profile-page.is-staff .profile-hero .person-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .notify-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }
  .notify-row .person-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.app-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
}
.app-hero h1 { margin: 0; }
.app-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}
.app-card { padding: 18px; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 16px;
}
.info-grid div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.info-grid dt {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.info-grid dd { margin: 0; font-weight: 650; word-break: break-word; }
.app-copy { white-space: pre-wrap; margin: 0 0 14px; }
.notify-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.notify-card.is-open { border-color: rgba(46, 196, 255, 0.45); }
.notify-card .notify-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: start;
  font: inherit;
  color: inherit;
}
.notify-pop { padding: 0 14px 14px; }
.notify-pop .notify-detail { margin-top: 0; }
.dup-list { display: grid; gap: 8px; }
.dup-person {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--surface);
}
.dup-person summary { cursor: pointer; }
.analytics-collapse { padding: 18px; }
.analytics-collapse > summary, .dup-box > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.analytics-collapse > summary h3, .dup-box > summary h3 { margin: 0; }
.analytics-collapse .bars, .dup-box .dup-body { margin-top: 14px; }
.dup-person div { display: grid; gap: 6px; margin-top: 8px; }
.staff-msg-drop { width: min(380px, 92vw); }
.staff-msg-form, .staff-msg-list { display: grid; gap: 8px; padding: 12px; }
.confirm-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4, 10, 24, 0.62); }
.confirm-card { width: min(440px, 100%); background: var(--surface, #10182c); color: var(--text, #fff); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.confirm-card h3 { margin: 0; }
.profile-hero .staff-msg-form { margin-top: 12px; max-width: 420px; }
.staff-msg-list article { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.staff-msg-list article.is-unread strong { color: var(--accent); }
@media (max-width: 900px) {
  .app-profile, .info-grid { grid-template-columns: 1fr; }
}

