@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Nunito:wght@600;700;800&display=swap");

* { box-sizing: border-box; }
:root {
  --ink: #1b1b1b;
  --ink-soft: #3d4552;
  --bg: #f2f3f6;
  --panel: #ffffff;
  --line: #e2e6ed;
  --accent: #4f63ff;
  --accent-2: #2b67d1;
  --shadow: 0 10px 30px rgba(18, 24, 40, 0.08);
  --font-sans: "Manrope", "Nunito", "Helvetica Neue", sans-serif;
  --font-display: "Nunito", "Manrope", "Helvetica Neue", sans-serif;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: #f5f6fb;
  color: var(--ink);
}

/* Landing page */
.landing-body {
  background: radial-gradient(circle at top left, #eef2ff, #f7f8fc 45%, #eef3ff 100%);
}
.landing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 56px;
  display: grid;
  gap: 64px;
}
.landing-header {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 230, 237, 0.7);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.landing-header-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.landing-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(79, 99, 255, 0.25);
  background: #ffffff;
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 99, 255, 0.18);
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.landing-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.brand-title {
  font-weight: 700;
  font-size: 20px;
  display: block;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.landing-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.landing-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.landing-actions {
  display: flex;
  gap: 10px;
}
.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f9ff 0%, #edf2ff 100%);
  border: 1px solid #e6ebf5;
}
.hero-grid {
  grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 0.95fr);
}
.hero-copy h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0;
  line-height: 1.1;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin: 24px 0 18px;
  flex-wrap: wrap;
}
.hero-highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-highlights span {
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow);
}
.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.hero-bg,
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #0f172a;
}
.hero-bg video,
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg .video-placeholder,
.hero-video-bg .video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 99, 255, 0.3), rgba(79, 99, 255, 0.08));
  color: #e5e7ff;
}
.hero-card {
  position: relative;
  z-index: 1;
}
.hero-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  border: 1px solid #e5e9f2;
}
.hero-card-header {
  display: flex;
  gap: 10px;
}
.pill {
  background: #eef2ff;
  color: var(--accent);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.pill.soft {
  background: #f5f7ff;
  color: #5b6475;
}
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-stat {
  background: #f7f8ff;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.hero-stat strong {
  font-size: 18px;
  display: block;
}
.hero-stat span {
  font-size: 12px;
  color: var(--ink-soft);
}
.hero-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 68px;
}
.hero-mini-chart .chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #4f63ff, #9aa6ff);
  border-radius: 10px;
  height: 40%;
}
.hero-mini-chart .chart-bar:nth-child(2) { height: 70%; }
.hero-mini-chart .chart-bar:nth-child(3) { height: 55%; }
.hero-mini-chart .chart-bar:nth-child(4) { height: 85%; }
.hero-mini-chart .chart-bar:nth-child(5) { height: 65%; }
.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-card-footer .dot-indicator {
  width: 10px;
  height: 10px;
  background: #4f63ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 99, 255, 0.5);
}
.mockup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mockup-action {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-action span {
  color: var(--ink-soft);
  font-size: 13px;
}
.mockup-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}
.dot-indicator {
  width: 10px;
  height: 10px;
  background: #4f63ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 99, 255, 0.5);
}
.landing-section {
  display: grid;
  gap: 24px;
}
.landing-media .media-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 0.9fr);
  gap: 28px;
  align-items: center;
}
.media-video .video-frame {
  background: #ffffff;
  border-radius: 22px;
  padding: 14px;
  border: 1px solid #e5e9f2;
  box-shadow: var(--shadow);
}
.video-placeholder {
  border-radius: 18px;
  height: 320px;
  background: linear-gradient(135deg, rgba(79, 99, 255, 0.16), rgba(79, 99, 255, 0.02));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  gap: 8px;
}
.video-placeholder small {
  font-size: 12px;
  color: #7b8399;
}
.landing-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e5e9f2;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}
.gallery-thumb {
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 99, 255, 0.2), rgba(79, 99, 255, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 600;
}
.policy-hero .section-head {
  max-width: 760px;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.policy-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid #e5e9f2;
  box-shadow: var(--shadow);
}
.policy-card h3 {
  margin: 0 0 10px;
}
.policy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
}
.plan-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.plan-compare-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #e5e9f2;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
.plan-compare-card.featured {
  border-color: rgba(79, 99, 255, 0.4);
  box-shadow: 0 14px 30px rgba(79, 99, 255, 0.2);
}
.plan-price {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0;
}
.plan-price span {
  font-size: 14px;
  color: var(--ink-soft);
}
.plan-matrix {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e9f2;
  background: #ffffff;
}
.matrix-row {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f7;
  font-size: 14px;
}
.matrix-row:last-child {
  border-bottom: none;
}
.matrix-head {
  background: #f6f7fc;
  font-weight: 700;
}
.matrix-row span {
  color: var(--ink-soft);
}
.matrix-head span {
  color: var(--ink);
}
@media (max-width: 820px) {
  .matrix-row {
    grid-template-columns: 1fr;
  }
  .matrix-head {
    display: none;
  }
  .matrix-row span {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }
  .matrix-row span::before {
    content: attr(data-label);
    color: var(--ink);
    font-weight: 600;
  }
}
.landing-partners .section-head {
  text-align: center;
}
.logo-marquee {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  box-shadow: var(--shadow);
  padding: 18px 0;
}
.logo-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.logo-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: #f4f6ff;
  color: #3d4552;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(79, 99, 255, 0.16);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 6px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.landing-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #e5e9f2;
  box-shadow: var(--shadow);
}
.testimonial-card p {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.testimonial-card strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}
.landing-card h3 {
  margin-top: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  background: #f7f8ff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e5e9f2;
}
.chip-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.chip {
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid #e5e9f2;
  font-weight: 600;
  font-size: 13px;
}
.trust-card {
  background: linear-gradient(135deg, #4f63ff, #2b67d1);
  border-radius: 24px;
  padding: 32px;
  color: #ffffff;
  display: grid;
  gap: 16px;
}
.trust-card .btn {
  border-color: transparent;
}
.trust-card .btn.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.trust-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.landing-footer {
  display: grid;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 48px;
  color: var(--ink-soft);
  border-top: 1px solid #e5e9f2;
}
.landing-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 16px;
}
.landing-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 48px;
  align-items: start;
}
.landing-footer .footer-col {
  min-width: 140px;
}
.landing-footer .footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.landing-footer .footer-col a {
  display: block;
  margin: 6px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid #e5e9f2;
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.landing-footer .footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.landing-footer .footer-meta small {
  font-size: 12px;
  color: var(--ink-soft);
}
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #4f63ff;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(79, 99, 255, 0.3);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: #2b67d1;
}

@media (max-width: 960px) {
  .landing-header-inner {
    justify-content: space-between;
    padding: 16px 24px;
  }
  .landing-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }
  .landing-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .landing-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .landing-header.nav-open .landing-menu {
    display: flex;
  }
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 44px 36px;
  }
  .landing-media .media-grid {
    grid-template-columns: 1fr;
  }
  .landing-footer .footer-links {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}
@media (max-width: 640px) {
  .landing-shell {
    padding: 20px 18px 40px;
  }
  .landing-actions {
    width: 100%;
    justify-content: center;
  }
  .landing-footer {
    gap: 16px;
  }
  .landing-hero {
    padding: 36px 22px;
  }
  .landing-header {
    padding: 0;
  }
  .landing-header-inner {
    padding: 14px 18px;
  }
  .landing-footer .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Dashboard layout */
.dashboard-body {
  background: #eef1f7;
}
.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e9f2;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-plan {
  border: 1px solid #e5e9f2;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  gap: 14px;
}
.plan-usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-usage-header h4 {
  margin: 0;
  font-size: 15px;
}
.plan-chips {
  display: grid;
  gap: 10px;
}
.plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f7ff;
  border: 1px solid rgba(79, 99, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: #3d4552;
}
.plan-chip strong {
  color: #1f2937;
  font-weight: 700;
}
body.theme-dark .sidebar-plan {
  background: #121a2f;
  border-color: #1f2a44;
}
body.theme-dark .plan-chip {
  background: #0f182b;
  border-color: rgba(140, 160, 255, 0.15);
  color: #cbd5f5;
}
body.theme-dark .plan-chip strong {
  color: #f1f5ff;
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.sidebar-brand img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}
.sidebar-brand strong {
  font-size: 16px;
  display: block;
}
.sidebar-brand span {
  font-size: 12px;
  color: #7a8195;
}
.sidebar-brand .brand-subtitle {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #4b5266;
}
.sidebar-nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  font-weight: 600;
  color: #6d7386;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a8195;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover {
  background: #f2f4ff;
}
.nav-item.active {
  background: #eef0ff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(79, 99, 255, 0.12);
}
.nav-item.active .nav-icon {
  color: var(--accent);
}
.sidebar-upgrade {
  margin-top: auto;
  background: linear-gradient(180deg, #f1f4ff 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  border: 1px solid #e6ebff;
}
.upgrade-graphic {
  height: 90px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #9bb2ff, #6d86ff 60%, #4f63ff 100%);
  opacity: 0.7;
}
.sidebar-upgrade h4 {
  margin: 0;
}
.sidebar-upgrade p {
  margin: 0;
  font-size: 12px;
  color: #6f768a;
}
.sidebar-user {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fcd7d7, #c7d6ff);
  background-size: cover;
  background-position: center;
}
.avatar.avatar-lg {
  width: 96px;
  height: 96px;
}
.profile-upload {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-upload.centered {
  justify-content: center;
  position: relative;
  padding: 8px 0 16px;
}
.profile-upload.centered .avatar {
  margin: 0 auto;
}
.profile-upload .icon-button {
  position: absolute;
  right: calc(50% - 48px);
  bottom: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef0ff;
  color: #5a63a2;
  border: 1px solid #cbd3ff;
  cursor: pointer;
}
.left-align {
  align-items: flex-start;
}
.sidebar-user span {
  display: block;
  font-size: 12px;
  color: #7a8195;
}
.sidebar-user .chevron {
  margin-left: auto;
  color: #9aa1b3;
  font-size: 18px;
}
.sidebar-user:hover .chevron {
  color: #4f63ff;
}
.dashboard-main {
  padding: 32px 36px 48px;
}
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e1e6f0;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menu-toggle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.4);
  z-index: 20;
}
.dashboard-top h1 {
  margin: 6px 0;
  font-size: 28px;
  font-family: var(--font-display);
}
.dashboard-top .muted {
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9aa1b3;
  margin: 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.date-range {
  position: relative;
}
.date-range .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}
.menu-toggle {
  flex: 0 0 44px;
}
.menu-toggle img {
  flex: 0 0 22px;
}
.date-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 12px;
  min-width: 240px;
  box-shadow: 0 18px 40px rgba(24, 32, 48, 0.15);
  z-index: 20;
  display: grid;
  gap: 8px;
}
.date-menu button {
  border: none;
  background: #eef2ff;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  color: #3c4257;
  font-weight: 600;
}
.date-menu button:hover {
  background: #e0e7ff;
}
.date-menu button:focus-visible {
  outline: 2px solid #4f63ff;
  outline-offset: 2px;
}
.date-menu label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #6f768a;
}
.date-menu input[type="date"] {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e1e6f0;
  font-size: 12px;
  color: #3c4257;
  background: #ffffff;
}
.date-picker {
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  display: grid;
  gap: 8px;
}
.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #3c4257;
}
.date-picker-nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e1e6f0;
  background: #eef2ff;
  cursor: pointer;
  color: #3c4257;
}
.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 11px;
  color: #8a91a6;
  text-align: center;
}
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.date-picker-day {
  border: none;
  background: #f6f8ff;
  border-radius: 8px;
  padding: 6px 0;
  font-size: 12px;
  cursor: pointer;
  color: #3c4257;
}
.date-picker-day.is-empty {
  background: transparent;
  cursor: default;
}
.date-picker-day.is-today {
  border: 1px solid #cfd7ff;
  background: #ffffff;
}
.date-picker-day.is-selected {
  background: #4f63ff;
  color: #ffffff;
}
.date-picker-footer {
  display: flex;
  justify-content: flex-end;
}
body.theme-dark .date-menu {
  background: #121a2f;
  border-color: #1f2a44;
}
body.theme-dark .date-menu button {
  background: #1b2540;
  color: #e2e8f0;
}
body.theme-dark .date-menu label {
  color: #a9b3c9;
}
body.theme-dark .date-menu input[type="date"] {
  background: #0f172a;
  border-color: #22304b;
  color: #e2e8f0;
}
body.theme-dark .date-picker {
  background: #0f172a;
  border-color: #22304b;
}
body.theme-dark .date-picker-header,
body.theme-dark .date-picker-day {
  color: #e2e8f0;
}
body.theme-dark .date-picker-day {
  background: #1b2540;
}
body.theme-dark .date-picker-day.is-today {
  border-color: #34415d;
  background: #0f172a;
}
.date-divider {
  height: 1px;
  background: #edf0f6;
  margin: 4px 0;
}
.date-pill {
  background: #ffffff;
  border: 1px solid #e2e6f0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #6b7280;
}
.panel-stack {
  display: grid;
  gap: 18px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #e9edf5;
  box-shadow: 0 8px 20px rgba(29, 37, 53, 0.05);
}
.summary-card p {
  margin: 0;
  font-size: 13px;
  color: #7a8195;
}
.summary-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
}
.summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
.accent-blue { background: #e6edff; }
.accent-gold { background: #fff1d7; }
.accent-coral { background: #ffe6de; }
.accent-indigo { background: #efe8ff; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.analytics-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.analytics-controls .inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
}
.analytics-controls select {
  min-width: 160px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e1e6f2;
  background: #ffffff;
  font-size: 13px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.analytics-chart {
  display: grid;
  gap: 12px;
}
.analytics-chart svg {
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  border-radius: 14px;
}
.chart-legend {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
  align-items: center;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4f63ff;
  display: inline-block;
}
.analytics-bars {
  display: grid;
  gap: 12px;
}
.analytics-bar {
  display: grid;
  gap: 6px;
}
.analytics-bar header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #3c4152;
}
.analytics-bar .bar-track {
  height: 10px;
  background: #eef2ff;
  border-radius: 999px;
  overflow: hidden;
}
.analytics-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f63ff, #7aa2ff);
  border-radius: 999px;
}
.analytics-empty {
  font-size: 13px;
  color: #6b7280;
  padding: 16px;
  border: 1px dashed #e1e6f2;
  border-radius: 12px;
  text-align: center;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.chart-placeholder {
  height: 220px;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  padding: 6px;
}
.chart-placeholder svg {
  width: 100%;
  height: 100%;
}
.chart-caption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: #8a91a6;
}
.chart-line {
  position: absolute;
  inset: 30% 8% 20% 8%;
  border-radius: 999px;
  background: linear-gradient(90deg, #86a0ff, #ff7ad3);
  opacity: 0.5;
}
.donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(#4f63ff 0 var(--usage, 50%), #e7ebf5 var(--usage, 50%) 100%);
  display: grid;
  place-items: center;
}
.usage-legend {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: #6d7488;
}
.usage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.usage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}
.usage-meta {
  color: #9aa3b6;
  font-weight: 600;
  margin-left: 6px;
}
.donut-center {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  color: #6f768a;
  margin: auto;
}
.donut-center strong {
  font-size: 22px;
  color: var(--ink);
}
.course-list {
  display: grid;
  gap: 12px;
}
.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f8fc;
  padding: 12px 14px;
  border-radius: 12px;
}
.course-item span {
  display: block;
  font-size: 12px;
  color: #7b8196;
}
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #e8edff;
  color: #4f63ff;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  justify-content: start;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.page-btn {
  border: 1px solid #d9dff0;
  background: #f9faff;
  color: #2d3142;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  min-width: 36px;
  text-align: center;
}
.page-btn.active {
  background: #4f63ff;
  border-color: #4f63ff;
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-ellipsis {
  color: #8a93a8;
  padding: 0 6px;
}
.cell-check {
  width: 36px;
}
.cell-check input {
  transform: translateY(1px);
}
.demo-course-section {
  border-bottom: 1px solid #e6ebf5;
  margin-bottom: 18px;
  padding-bottom: 18px;
}
.demo-course-heading {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin: 4px 0 12px;
  list-style: none;
  user-select: none;
}
.demo-course-heading::-webkit-details-marker {
  display: none;
}
.demo-course-heading::before {
  border: solid #68728a;
  border-width: 0 2px 2px 0;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  width: 8px;
}
.demo-course-section[open] .demo-course-heading::before {
  transform: rotate(45deg);
}
.demo-course-heading h3 {
  font-size: 15px;
  margin: 0;
}
.demo-course-heading span {
  color: #6f768a;
  font-size: 12px;
  margin-left: auto;
}
.demo-course-grid {
  margin-bottom: 0;
}
.course-card.demo-course-card {
  cursor: default;
  min-height: 132px;
}
.course-card {
  background: #f7f8fc;
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid #e6ebf5;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 37, 53, 0.08);
}
.course-card.selected {
  border-color: rgba(79, 99, 255, 0.6);
  box-shadow: 0 12px 24px rgba(79, 99, 255, 0.18);
}
.course-card.locked {
  cursor: default;
  opacity: 0.75;
}
.course-card.locked:hover {
  transform: none;
  box-shadow: none;
}
.course-title {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 34px;
  flex-wrap: wrap;
}
.course-title-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.course-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f63ff;
  background: #eef0ff;
  padding: 4px 8px;
  border-radius: 999px;
}
.course-badge.unity {
  color: #185f54;
  background: #ddf5ee;
}
.course-badge.unity.disconnected {
  color: #6b5a30;
  background: #f7edcf;
}
.course-badge.verified-chemistry {
  align-items: center;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 20px;
  justify-content: center;
  letter-spacing: 0;
  padding: 0;
  text-transform: none;
  width: 20px;
}
.course-badge.three {
  color: #3650c9;
  background: #eef0ff;
}
.course-badge.locked {
  color: #7a879e;
  background: #e7ebf3;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6f768a;
}
.course-meta-compact {
  justify-content: flex-end;
}
.course-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 2px 0 4px;
  position: relative;
  z-index: 3;
}
.course-actions button {
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
}
.course-launch-action {
  width: min(100%, 148px);
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.course-bottom-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  z-index: 2;
  pointer-events: none;
}
.course-bottom-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.course-card > .course-icon-action.danger {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.course-icon-action {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.course-icon-action svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.course-icon-action img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.course-student-link-icon {
  width: 20px;
  height: 20px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url("../icons/course-student-link.svg") center / contain no-repeat;
  mask: url("../icons/course-student-link.svg") center / contain no-repeat;
  pointer-events: none;
}
.course-icon-action:hover:not(:disabled) {
  color: var(--accent);
  transform: translateY(-1px) scale(1.04);
}
.course-icon-action:focus-visible {
  outline: 2px solid rgba(79, 99, 255, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}
.course-icon-action.danger {
  color: #ff1010;
}
.course-icon-action.danger:hover:not(:disabled) {
  color: #d80000;
}
.course-icon-action.copied {
  color: #087f5b;
}
.course-actions button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--course-accent, #e8edff);
  opacity: 0.6;
  z-index: 0;
}
.course-card > * {
  position: relative;
  z-index: 1;
}
.course-editor {
  padding: 20px 24px 24px;
}
.course-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.course-editor-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}
.course-editor-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 16px;
  align-self: start;
}
.course-nav-item {
  border: 1px solid #e2e7f3;
  background: #f7f9ff;
  color: #49506a;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  text-align: left;
}
.course-nav-item.active {
  background: #4f63ff;
  border-color: #4f63ff;
  color: #fff;
}
.course-editor-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.course-section {
  background: #f7f8fc;
  border: 1px solid #e6ebf5;
  border-radius: 14px;
  padding: 16px;
}
.course-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
@media (max-width: 1024px) {
  .course-editor-layout {
    grid-template-columns: 1fr;
  }
  .course-editor-nav {
    display: none;
  }
  .course-section {
    padding: 14px;
  }
  .course-section .accordion-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .course-section .accordion-title::after {
    content: "▾";
    font-size: 14px;
    opacity: 0.6;
    transition: transform 0.2s ease;
  }
  .course-section.accordion-collapsed .accordion-title::after {
    transform: rotate(-90deg);
  }
  .course-section.accordion-collapsed .course-section-body {
    display: none;
  }
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}
.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
  z-index: 60;
}
.create-card {
  border: 2px dashed #cbd3ff;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: #4f63ff;
}
.create-card.locked {
  border-color: #d6dbe9;
  color: #97a0b5;
  background: #f6f7fb;
}
.create-card::before {
  display: none;
}
.create-icon {
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 600;
}
.create-label {
  font-size: 14px;
  font-weight: 600;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.list-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.list-toolbar input[type="search"] {
  flex: 1 1 auto;
  border-radius: 12px;
}
.sort-select {
  min-width: 200px;
  border-radius: 12px;
  border: 1px solid #d6dbe9;
  padding: 10px 12px;
  background: #ffffff;
  color: #3c4257;
  font-weight: 600;
}
@media (max-width: 700px) {
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-select {
    width: 100%;
  }
  .timer-range-ticks {
    font-size: 11px;
    gap: 6px;
  }
  .timer-range-tick {
    width: auto;
    min-width: 36px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .pagination {
    justify-content: center;
    gap: 6px;
  }
  .page-btn {
    min-width: 32px;
    padding: 6px 8px;
  }
}
.item-card {
  border-radius: 14px;
  padding: 14px;
  background: #f7f8fc;
  border: 1px solid #e6ebf5;
  display: grid;
  gap: 10px;
}
.item-card.locked {
  opacity: 0.75;
}
.item-card.locked .secondary {
  opacity: 0.5;
  cursor: not-allowed;
}
.chem-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 200px;
  background: rgba(245, 247, 255, 0.55);
}
.chem-card h4 {
  position: relative;
  z-index: 2;
}
.chem-wave {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -25%;
  height: 65%;
  z-index: 1;
  opacity: 0.9;
}
.chem-wave svg {
  width: 140%;
  height: 100%;
  display: block;
  animation: wave-drift 10s linear infinite;
}
.chem-wave .wave-back {
  fill: var(--chem-color, #8aa6ff);
  opacity: 0.35;
}
.chem-wave .wave-front {
  fill: var(--chem-color, #8aa6ff);
  opacity: 0.75;
  animation: wave-rise 3.6s ease-in-out infinite;
}
.chem-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}
.chem-meta {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.chem-actions {
  margin-top: 6px;
}
@keyframes wave-drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(-12%); }
  100% { transform: translateX(0); }
}
@keyframes wave-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.item-card h4 {
  margin: 0;
  font-size: 15px;
}
.item-card p {
  margin: 0;
  font-size: 12px;
  color: #7b8196;
}
.item-card .row {
  justify-content: flex-start;
}
.muted {
  color: #7b8196;
  font-size: 13px;
}
.btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 99, 255, 0.25);
}
.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(79, 99, 255, 0.3);
}
.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.icon-btn .icon {
  display: inline-block;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #7a8195;
}
.dashboard-main .card {
  border-radius: 16px;
}

.page {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px 60px;
}
header {
  margin-bottom: 24px;
}
h1 { margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 700; font-family: var(--font-display); }
h2 { margin: 0 0 12px; font-family: var(--font-display); }
.link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}
.link:hover {
  text-decoration: underline;
}
.header-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.brand-header {
  align-items: flex-end;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 107, 61, 0.25);
  background: rgba(255, 255, 255, 0.6);
}
.brand p {
  margin: 0;
  color: var(--ink-soft);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
label { display: flex; flex-direction: column; font-size: 14px; gap: 6px; }
input, textarea, select {
  padding: 8px 10px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  font-size: 14px;
}
.invalid input,
.invalid select,
.invalid textarea {
  border-color: #d92d20;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.15);
}
.field-error {
  color: #b42318;
  font-size: 12px;
  min-height: 14px;
}
.params-grid {
  align-items: center;
}
.reaction-profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.reaction-profile-panel.verified {
  border-color: #a9dfc1;
  background: #f2fbf6;
}
.reaction-profile-panel.override {
  border-color: #f4c36b;
  background: #fff8e8;
}
.reaction-profile-panel.empty {
  border-style: dashed;
}
.reaction-profile-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 15px;
}
.reaction-profile-panel p {
  margin: 0;
  color: #667085;
  line-height: 1.45;
}
.reaction-profile-panel dl {
  display: grid;
  gap: 8px;
  min-width: 160px;
  margin: 0;
}
.reaction-profile-panel dt {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.reaction-profile-panel dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.reaction-override-toggle {
  margin-top: 12px;
}
.reaction-assignment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.reaction-assignment-panel strong {
  display: block;
  margin-bottom: 4px;
}
.reaction-assignment-panel p {
  margin: 0;
  color: #667085;
}
.reaction-assignment-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.reaction-assignment-controls select {
  min-width: 220px;
}
.reaction-advanced-fields {
  border-top: 1px solid #e5eaf3;
  padding-top: 12px;
}
.reaction-advanced-fields summary {
  cursor: pointer;
  font-weight: 700;
  color: #344054;
}
.reaction-advanced-fields input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}
.reaction-family-fields + .reaction-family-fields {
  margin-top: 18px;
}
.equipment-groups {
  display: grid;
  gap: 16px;
}
.equipment-card {
  background: #ffffff;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(24, 32, 56, 0.06);
}
.equipment-header h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.equipment-header p {
  margin: 0 0 12px;
  color: #6d7486;
  font-size: 13px;
}
.timer-options {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8fd;
  border: 1px dashed #cfd6df;
  width: 100%;
}
.timer-range {
  display: grid;
  gap: 12px;
  width: 100%;
}
.timer-range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #1f2737;
  font-size: 14px;
}
.timer-range-values {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5a70;
  font-weight: 600;
}
.timer-range-values .muted {
  font-size: 12px;
  font-weight: 500;
}
.timer-range-slider {
  position: relative;
  height: 32px;
  width: 100%;
}
.timer-range-track {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #e1e7f2 0%,
    #e1e7f2 var(--min),
    #4f63ff var(--min),
    #4f63ff var(--max),
    #e1e7f2 var(--max),
    #e1e7f2 100%
  );
}
.range-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #4f63ff;
  box-shadow: 0 4px 10px rgba(79, 99, 255, 0.25);
  cursor: pointer;
  z-index: 4;
  padding: 0;
  outline: none;
  touch-action: none;
}
.range-handle:focus-visible {
  box-shadow: 0 0 0 3px rgba(79, 99, 255, 0.25);
}
.range-handle.is-active {
  z-index: 6;
}
.timer-range-ticks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #6d7486;
  font-weight: 600;
  flex-wrap: wrap;
}
.timer-range-tick {
  width: 50px;
  text-align: center;
}
.task-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.task-order {
  width: 54px;
}

.task-row {
  cursor: grab;
}

.task-row.dragging {
  opacity: 0.55;
}

.task-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(121, 136, 255, 0.35);
  color: #5563ff;
  background: rgba(95, 115, 255, 0.08);
  font-size: 16px;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.task-drag:active {
  cursor: grabbing;
}

.theme-dark .task-drag {
  border-color: rgba(140, 160, 255, 0.35);
  color: #dfe6ff;
  background: rgba(92, 112, 255, 0.12);
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.color-input {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(121, 136, 255, 0.35);
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.theme-dark .color-input {
  border-color: rgba(140, 160, 255, 0.35);
}
label.check .muted {
  margin-left: 6px;
  font-size: 12px;
}
label.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #c7ced8;
  background: #dfe6ef;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
label.check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 1px;
  left: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
label.check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
label.check input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}
.subgrid {
  margin-bottom: 6px;
}
fieldset {
  border: 1px dashed #cfd6df;
  border-radius: 8px;
  padding: 10px 12px;
}
legend { font-size: 13px; }
.full { grid-column: 1 / -1; }
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gap-sm {
  gap: 6px;
}
.search-row input[type="search"] {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d7deea;
  background: #fff;
}
.search-row {
  margin-bottom: 12px;
}
.inline-note {
  width: 100%;
  min-width: 160px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #cfd6df;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
}
.profile-modal .row {
  margin-top: 18px;
}
.settings-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}
.plan-billing-grid {
  align-items: stretch;
}
.plan-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--card-border);
}
.plan-summary .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-summary .subtle {
  font-size: 13px;
  color: var(--muted);
}
.plan-actions {
  margin-top: 10px;
}
.plan-actions .btn {
  min-width: 160px;
}
button {
  padding: 8px 12px;
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
button.secondary {
  background: #fff;
  color: #111827;
}
.list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed #e3e7ee;
  font-size: 13px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.table-card {
  overflow-x: auto;
}
.table-card .table {
  min-width: 520px;
}
.student-table {
  min-width: 520px;
}
.table th, .table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
}
.table tr.selected td {
  background: #eef4ff;
}

/* Auth layout */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
}
.auth-left {
  background: #c7d7ea;
  padding: 48px 32px;
}
.auth-left-inner {
  height: 100%;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.15);
  padding: 60px 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  justify-content: center;
}
.hero-fade {
  transition: opacity 400ms ease, transform 400ms ease;
  transform: translateY(0);
  opacity: 1;
}
.hero-fade.is-fading {
  opacity: 0;
  transform: translateY(8px);
}
.auth-left h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}
.auth-left .lead {
  margin: 0;
  font-size: 16px;
  color: #f4f7ff;
}
.hero-logo img {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(19, 42, 82, 0.35));
}
.auth-left h2 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
}
.auth-left .sublead {
  margin: 0;
  color: #f4f7ff;
  max-width: 320px;
}
.dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}
.dot.active {
  width: 18px;
  background: #ffffff;
}
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  background: #ffffff;
}
.auth-card {
  width: min(420px, 100%);
}
.auth-form-stack {
  position: relative;
  min-height: 420px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #2d2d3a;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.auth-tabs {
  margin-top: 18px;
  background: #eef0ff;
  padding: 4px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.auth-tabs .tab {
  border: none;
  background: transparent;
  text-decoration: none;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: #6a6e84;
  font-weight: 600;
  cursor: pointer;
}
.auth-tabs .tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(79, 99, 255, 0.3);
}
.auth-form {
  transition: opacity 200ms ease, transform 200ms ease;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.auth-form.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
}
.auth-form.active {
  opacity: 1;
  transform: translateY(0);
}
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.password-rules li {
  display: flex;
  align-items: center;
}
.password-rules li::before {
  content: "○";
  color: #c0c5d8;
  margin-right: 8px;
  font-size: 12px;
}
.password-rules li.met::before {
  content: "✓";
  color: #5b6cff;
}
.auth-form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.auth-form label {
  gap: 8px;
}
.auth-form input,
.auth-form select {
  border-radius: 10px;
  border: 1px solid #cbd3ff;
  padding: 12px 14px;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon input {
  padding-right: 42px;
  width: 100%;
}
.icon-button {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #eef0ff;
  cursor: pointer;
  font-size: 14px;
  color: #5a63a2;
  z-index: 1;
}
.auth-form .primary {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
}
.label-row .link {
  font-size: 12px;
}
.password-rules {
  list-style: none;
  padding: 0;
  margin: -6px 0 0;
  color: #8a8fa7;
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.required {
  color: #ff6b3d;
}
.fineprint {
  font-size: 11px;
  color: #8a8fa7;
  text-align: center;
}
.fineprint a {
  color: #5a6bff;
  text-decoration: none;
}

/* Standalone account actions */
.account-action-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(119, 139, 255, 0.2), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(43, 103, 209, 0.14), transparent 34%),
    #f5f7ff;
}
.account-action-shell {
  min-height: 100vh;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.account-action-card {
  width: 100%;
  padding: 40px;
  border: 1px solid rgba(202, 210, 238, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(43, 55, 105, 0.14);
}
.account-action-brand {
  justify-content: center;
  margin-bottom: 28px;
}
.account-action-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef1ff;
  color: var(--accent);
}
.account-action-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-action-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}
.account-action-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 6vw, 34px);
  line-height: 1.2;
  text-align: center;
  color: #20243b;
}
.account-action-intro {
  max-width: 390px;
  margin: 12px auto 28px;
  color: #697188;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.account-action-form {
  display: grid;
  gap: 10px;
}
.account-action-form label {
  margin-top: 6px;
  color: #34394f;
  font-size: 13px;
  font-weight: 700;
}
.account-action-form input {
  width: 100%;
  padding: 13px 68px 13px 14px;
  border: 1px solid #ccd3ec;
  border-radius: 11px;
  background: #fbfcff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.account-action-form input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 99, 255, 0.12);
}
.password-visibility {
  width: auto;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: #5663a8;
  font-size: 11px;
  font-weight: 800;
}
.account-action-rules {
  margin: 4px 0 8px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f7f8fe;
}
.account-action-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(79, 99, 255, 0.24);
}
.account-action-submit:hover { background: #4356eb; }
.account-action-submit:disabled { opacity: 0.65; cursor: wait; }
.account-action-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: #397052;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.account-action-status.field-error { color: #bd3142; }
.account-action-link {
  display: block;
  width: max-content;
  margin: 12px auto 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.account-action-link:hover { text-decoration: underline; }
.account-action-help {
  max-width: 430px;
  margin: 20px auto 0;
  color: #778099;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 560px) {
  .account-action-shell { padding: 24px 14px; }
  .account-action-card { padding: 30px 20px; border-radius: 19px; }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 40px 20px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.modal.hidden {
  display: none;
}
.modal-card {
  width: min(620px, 100%);
  background: #f6f7ff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}
.modal-card.plan-modal {
  width: min(1200px, 100%);
  background: #f7f8ff;
  text-align: center;
  padding: 64px 60px;
}
.modal-card.compact {
  width: min(520px, 100%);
  padding: 44px 38px;
}

.course-start-modal {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 32px;
  text-align: left;
}
.course-start-modal .card-header {
  align-items: flex-start;
  margin-bottom: 18px;
}
.course-start-modal h2,
.course-start-modal h3,
.course-start-modal p {
  margin-top: 0;
}
.template-blank-card,
.kit-template-card {
  width: 100%;
  border: 1px solid #dce2f0;
  border-radius: 14px;
  background: #ffffff;
  color: #273149;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.template-blank-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}
.template-blank-card:hover,
.kit-template-card:hover {
  border-color: #8796ff;
  box-shadow: 0 10px 24px rgba(79, 99, 255, 0.12);
  transform: translateY(-1px);
}
.template-card-heading {
  color: #202942;
  font-size: 15px;
  font-weight: 750;
}
.template-library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 12px;
}
.template-library-heading h3,
.template-library-heading p {
  margin-bottom: 4px;
}
.template-version {
  color: #778099;
  font-size: 12px;
  white-space: nowrap;
}
.kit-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.kit-template-card {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 230px;
  padding: 18px;
}
.kit-template-card__topline,
.kit-template-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kit-template-card__category,
.kit-template-card__difficulty {
  color: #667089;
  font-size: 12px;
  font-weight: 650;
}
.kit-template-card__summary {
  color: #5f6980;
  font-size: 13px;
  line-height: 1.5;
}
.kit-template-card__capabilities {
  color: #707a91;
  font-size: 12px;
  line-height: 1.45;
}
.template-compatibility {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e9f8ef;
  color: #187447;
  font-size: 11px;
  font-weight: 750;
}
.template-compatibility.is-abstracted {
  background: #fff4d8;
  color: #805a00;
}
.template-compatibility.is-unsupported {
  background: #fde8ea;
  color: #a02735;
}
.template-source-note {
  padding: 10px 12px;
  border: 1px solid #dce3ff;
  border-radius: 10px;
  background: #f3f5ff;
  color: #4b5874;
  font-size: 12px;
}

@media (max-width: 700px) {
  .course-start-modal {
    padding: 22px 18px;
  }
  .template-library-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .kit-template-grid {
    grid-template-columns: 1fr;
  }
}

.session-results-modal {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.session-resume-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  background: #f8f9fc;
}

.session-resume-panel h3,
.session-resume-panel p {
  margin-top: 0;
}

.session-resume-status {
  min-height: 1.4em;
  margin-top: 10px;
}

.session-resume-status.error {
  color: #9c3131;
}

.session-resume-ticket {
  margin-top: 12px;
}

.session-resume-ticket label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.session-resume-ticket input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.session-results-state {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: #f4f6fb;
  color: #5e6578;
  text-align: center;
}

.session-results-state.error {
  background: #fff0f0;
  color: #9c3131;
}

.session-result-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.session-result-summary > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  background: #f8f9fc;
}

.session-result-summary span {
  color: #71798c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.session-result-section {
  margin-top: 18px;
}

.session-assay-result {
  padding: 16px;
  border: 1px solid #cdd9ea;
  border-radius: 12px;
  background: #f7fbff;
}

.session-assay-result .card-header {
  align-items: flex-start;
}

.session-assay-summary {
  margin: 12px 0;
  font-weight: 700;
}

.session-assay-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.session-assay-metrics > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d7e2f0;
  border-radius: 9px;
  background: #fff;
}

.session-assay-metrics span {
  color: #617087;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.session-assay-warnings {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #edc87e;
  border-radius: 9px;
  background: #fff8e8;
  color: #744f09;
}

.session-assay-warnings ul {
  margin: 7px 0 0;
  padding-left: 20px;
}

.status-badge.review {
  background: #fff0cc;
  color: #8a5a00;
}

.session-result-table-wrap {
  overflow-x: auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef0f5;
  color: #626a7b;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.saved,
.status-badge.completed {
  background: #e4f7ed;
  color: #23784c;
}

.status-badge.active {
  background: #e8edff;
  color: #4056d6;
}

body.theme-dark .session-results-state,
body.theme-dark .session-result-summary > div,
body.theme-dark .session-resume-panel {
  border-color: #363d50;
  background: #242938;
  color: #dce1ee;
}

body.theme-dark .session-result-summary span {
  color: #9da6bb;
}

body.theme-dark .session-assay-result,
body.theme-dark .session-assay-metrics > div {
  border-color: #3d4b61;
  background: #242938;
  color: #dce1ee;
}

body.theme-dark .session-assay-warnings {
  border-color: #715b2f;
  background: #382f20;
  color: #f4d999;
}
.profile-modal {
  text-align: left;
}
.modal-card .brand-row {
  justify-content: center;
  margin-bottom: 24px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e5e8ff;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
}
.modal-copy {
  color: #6b7280;
  margin: 8px 0 28px;
}
.modal-note {
  color: #7781a1;
  font-size: 13px;
  margin: 10px 0 28px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 12px;
}
.plan-card {
  border: 1px solid #e2e6f2;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  gap: 20px;
  align-content: start;
  color: #0f172a;
}
.plan-card.featured {
  background: #0b0f3b;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(11, 15, 59, 0.35);
  transform: translateY(-6px);
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(79, 99, 255, 0.15);
}
.plan-card.featured:hover {
  transform: translateY(-8px);
}
.plan-title h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: inherit;
}
.plan-price {
  font-weight: 700;
  color: #0f172a;
  font-size: 30px;
}
.plan-card.featured .plan-price {
  color: #ffffff;
}
.plan-price em {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: #8a93ac;
}
.plan-card.featured .plan-price em {
  color: rgba(255, 255, 255, 0.65);
}
.plan-fee {
  font-size: 12px;
  color: #6b7280;
}
.plan-card.featured .plan-fee {
  color: rgba(255, 255, 255, 0.6);
}
.plan-cta {
  padding: 10px 16px;
  border-radius: 10px;
  background: #4f63ff;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  margin: 0 auto;
  width: fit-content;
}
.plan-card.featured .plan-cta {
  background: #4f63ff;
  box-shadow: 0 10px 18px rgba(79, 99, 255, 0.35);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  text-align: left;
  font-size: 14px;
  color: #5b6470;
}
.plan-card.featured .plan-features {
  color: rgba(255, 255, 255, 0.75);
}
.plan-features li::before {
  content: "✓";
  color: #4f63ff;
  font-weight: 700;
  margin-right: 8px;
}
.plan-card.featured .plan-features li::before {
  color: #7aa2ff;
}
.actions {
  display: grid;
  gap: 12px;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 4px 0 18px;
}
.actions-row .field-error {
  flex: 1 1 100%;
}
.actions-row button {
  width: auto;
  min-width: 160px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.theme-dark .dashboard-body,
body.theme-dark {
  background: #0f172a;
  color: #e2e8f0;
}
body.theme-dark .dashboard-shell {
  background: transparent;
}
body.theme-dark .dashboard-main {
  background: #0f172a;
}
body.theme-dark .card,
body.theme-dark .summary-card,
body.theme-dark .course-card,
body.theme-dark .item-card {
  background: #121a2f;
  border-color: #1f2a44;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
body.theme-dark .sort-select {
  background: #0f172a;
  border-color: #1f2a44;
  color: #dbe2f5;
}
body.theme-dark .demo-course-section {
  border-bottom-color: #1f2a44;
}
body.theme-dark .demo-course-heading span {
  color: #9aa4bf;
}
body.theme-dark .demo-course-heading::before {
  border-color: #9aa4bf;
}
body.theme-dark .page-btn {
  background: #0f172a;
  border-color: #2a3856;
  color: #dbe2f4;
}
body.theme-dark .page-btn.active {
  background: #4f63ff;
  border-color: #4f63ff;
  color: #fff;
}
body.theme-dark .page-ellipsis {
  color: #9aa6c4;
}

input[type="color"]#chemColorMax {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d6dbe9;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}
input[type="color"]#chemColorMax::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
input[type="color"]#chemColorMax::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}
input[type="color"]#chemColorMax::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}
body.theme-dark .chem-card {
  background: rgba(26, 34, 58, 0.78);
}
body.theme-dark .chem-meta {
  background: rgba(9, 14, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}
body.theme-dark .card-header h2,
body.theme-dark .card-header h3 {
  color: #f1f5ff;
}
body.theme-dark .card-header .btn.btn-ghost {
  color: #9aa4bf;
}
body.theme-dark .sidebar {
  background: #0b1223;
  border-color: #1f2a44;
}
body.theme-dark .sidebar-nav .nav-item {
  color: #d0d6e5;
}
body.theme-dark .sidebar-nav .nav-item:hover {
  background: rgba(79, 99, 255, 0.12);
  color: #e2e8ff;
}
body.theme-dark .btn.btn-outline {
  border-color: #2a3858;
  color: #dbe2f5;
  background: rgba(16, 24, 42, 0.6);
}
body.theme-dark .btn.btn-ghost {
  color: #9aa4bf;
}
body.theme-dark .row.search-row input,
body.theme-dark input[type="search"] {
  background: #0f172a;
  border-color: #22304b;
  color: #e2e8f0;
}
body.theme-dark .row.search-row input::placeholder,
body.theme-dark input[type="search"]::placeholder {
  color: #7180a3;
}
body.theme-dark .inline-note {
  background: #10192d;
  border-color: #2a3858;
  color: #e8eef9;
}
body.theme-dark .modal-card {
  background: #111a33;
  border: 1px solid #1f2a44;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
body.theme-dark .modal-card.plan-modal {
  background: #101a33;
}
body.theme-dark .template-blank-card,
body.theme-dark .kit-template-card {
  background: #111a2d;
  border-color: #2a3858;
  color: #dce5f5;
}
body.theme-dark .template-card-heading {
  color: #f0f4fb;
}
body.theme-dark .kit-template-card__category,
body.theme-dark .kit-template-card__difficulty,
body.theme-dark .kit-template-card__summary,
body.theme-dark .kit-template-card__capabilities,
body.theme-dark .template-version {
  color: #aab6cc;
}
body.theme-dark .template-source-note {
  background: #10192d;
  border-color: #2a3858;
  color: #c9d5ea;
}
body.theme-dark .plan-card {
  background: #0f172a;
  border-color: #1f2a44;
}
body.theme-dark .plan-card.featured {
  background: #0b0f3b;
}
body.theme-dark .plan-features {
  color: #a9b3c9;
}
body.theme-dark .plan-price {
  color: #f8fafc;
}
body.theme-dark .plan-fee {
  color: #9aa4bf;
}
body.theme-dark .modal-copy,
body.theme-dark .modal-note {
  color: #9aa4bf;
}
body.theme-dark .icon-button {
  background: #1b2540;
  color: #dbe2f5;
}
body.theme-dark .sidebar-nav .nav-item.active {
  background: rgba(79, 99, 255, 0.18);
  color: #e2e8ff;
}
body.theme-dark .sidebar-upgrade {
  background: linear-gradient(180deg, #0f172a 0%, #131c33 100%);
  border-color: #1f2a44;
}
body.theme-dark .sidebar-upgrade h4 {
  color: #e2e8ff;
}
body.theme-dark .sidebar-upgrade p {
  color: #9aa4bf;
}
body.theme-dark .upgrade-graphic {
  opacity: 0.4;
}
body.theme-dark .menu-toggle {
  background: #121a2f;
  border-color: #2a3858;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}
body.theme-dark .menu-toggle img {
  filter: invert(1) brightness(1.2);
}
body.theme-dark .muted,
body.theme-dark .summary-card p,
body.theme-dark .course-card p {
  color: #9aa4bf;
}
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: #0f172a;
  border-color: #22304b;
  color: #e2e8f0;
}
body.theme-dark .table thead th {
  color: #a9b3c9;
}
body.theme-dark .table tbody tr {
  border-color: #1f2a44;
}
body.theme-dark .chart-placeholder {
  background: linear-gradient(180deg, #0f172a 0%, #101a33 100%);
  border: 1px solid #1f2a44;
}
body.theme-dark .chart-placeholder svg line {
  stroke: #1f2a44;
}
body.theme-dark .chart-caption {
  color: #9aa4bf;
}
body.theme-dark .analytics-chart svg {
  background: linear-gradient(180deg, #111a33 0%, #0f172a 100%);
}
body.theme-dark .donut {
  background: conic-gradient(#6f83ff 0 var(--usage, 50%), #1d2740 var(--usage, 50%) 100%);
}
body.theme-dark .usage-legend {
  color: #9aa4bf;
}
body.theme-dark .usage-meta {
  color: #7f8aa6;
}
body.theme-dark .donut-center {
  background: #0f172a;
  color: #a9b3c9;
}
body.theme-dark .donut-center strong {
  color: #f8fafc;
}
body.theme-dark .course-item {
  background: #0f172a;
  border: 1px solid #1f2a44;
}
body.theme-dark .course-item span {
  color: #9aa4bf;
}
body.theme-dark .pill {
  background: #1c2746;
  color: #aeb9ff;
}
body.theme-dark .course-card {
  background: #0f172a;
  border-color: #1f2a44;
}
body.theme-dark .course-card::before {
  opacity: 0.18;
}
body.theme-dark .course-icon-action {
  background: transparent;
  color: #e5e7eb;
}
body.theme-dark .course-icon-action:hover:not(:disabled) {
  color: #aeb9ff;
}
body.theme-dark .course-icon-action.danger {
  color: #ff4040;
}
body.theme-dark .course-icon-action.danger:hover:not(:disabled) {
  color: #ff7070;
}
body.theme-dark .course-icon-action.copied {
  color: #8de3bd;
}
body.theme-dark .course-nav-item {
  background: #0f172a;
  border-color: #1f2a44;
  color: #dbe2f5;
}
body.theme-dark .course-nav-item.active {
  background: #4f63ff;
  border-color: #4f63ff;
  color: #fff;
}
body.theme-dark .course-section {
  background: #101a2f;
  border-color: #1f2a44;
}
body.theme-dark .reaction-profile-panel {
  background: #0f172d;
  border-color: #263357;
}
body.theme-dark .reaction-profile-panel.verified {
  background: #102318;
  border-color: #236a3c;
}
body.theme-dark .reaction-profile-panel.override {
  background: #2a2110;
  border-color: #8a651e;
}
body.theme-dark .reaction-profile-panel p,
body.theme-dark .reaction-profile-panel dt {
  color: #9aa4bf;
}
body.theme-dark .reaction-advanced-fields {
  border-color: #263357;
}
body.theme-dark .reaction-assignment-panel {
  background: #0f172d;
  border-color: #263357;
}
body.theme-dark .reaction-assignment-panel p {
  color: #9aa4bf;
}
body.theme-dark .reaction-advanced-fields summary {
  color: #dbe2f5;
}
body.theme-dark .equipment-card {
  background: #0f172d;
  border-color: #263357;
  box-shadow: 0 18px 30px rgba(6, 12, 28, 0.4);
}
body.theme-dark .equipment-header p {
  color: #9aa4bf;
}
body.theme-dark .timer-options {
  background: #0c152a;
  border-color: #2a3858;
}
body.theme-dark .timer-range-header {
  color: #f1f5ff;
}
body.theme-dark .timer-range-values {
  color: #b5c0da;
}
body.theme-dark .timer-range-track {
  background: linear-gradient(
    to right,
    #1a2440 0%,
    #1a2440 var(--min),
    #4f63ff var(--min),
    #4f63ff var(--max),
    #1a2440 var(--max),
    #1a2440 100%
  );
}
body.theme-dark .range-handle {
  background: #f7f9ff;
  border-color: #9fb0ff;
  box-shadow: 0 6px 16px rgba(79, 99, 255, 0.45), 0 0 0 2px rgba(15, 23, 45, 0.6);
}
body.theme-dark .timer-range-ticks {
  color: #9aa4bf;
}
body.theme-dark .course-title {
  color: #f1f5ff;
}
body.theme-dark .course-meta {
  color: #9aa4bf;
}
body.theme-dark button.secondary {
  background: #111a33;
  color: #dbe2f5;
  border-color: #2a3858;
}
body.theme-dark .create-card {
  border-color: #2a3858;
  background: #0b1223;
  color: #9aa4bf;
}
body.theme-dark .create-card .create-icon {
  color: #9aa4bf;
}
body.theme-dark .table tbody td {
  color: #d6deef;
}
body.theme-dark label.check input[type="checkbox"] {
  background: #1b2540;
  border-color: #2a3858;
}
body.theme-dark label.check input[type="checkbox"]::after {
  background: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
body.theme-dark label.check input[type="checkbox"]:checked {
  background: #4f63ff;
  border-color: #4f63ff;
}
.hidden {
  display: none;
}
.preview {
  background: #101217;
  color: #e8eef9;
  padding: 12px;
  border-radius: 8px;
  min-height: 120px;
  overflow: auto;
  font-size: 12px;
}
.hint {
  font-size: 13px;
  color: #5b6470;
}
.hint a {
  color: #2b67d1;
  text-decoration: none;
}
.hint a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 1200px) {
  .dashboard-shell {
    grid-template-columns: 220px 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .analytics-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
  }
  body.nav-open .sidebar-backdrop {
    display: block;
  }
  .sidebar-backdrop.hidden {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .dashboard-top {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "menu actions"
      "title title";
    align-items: center;
    gap: 12px;
  }
  .dashboard-top #menuToggle {
    grid-area: menu;
  }
  .dashboard-top > div:first-of-type {
    grid-area: title;
  }
  .top-actions {
    grid-area: actions;
    justify-self: end;
  }
  .date-range {
    display: none;
  }
  .date-range .btn-outline {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Student launch */
.student-body {
  --student-background-start: #f2f4f9;
  --student-background-end: #dfe7f5;
  --student-gradient-angle: 135deg;
  --student-accent: #4f63ff;
  --student-card: #ffffff;
  --student-card-text: #1d2333;
  background: linear-gradient(
    var(--student-gradient-angle),
    var(--student-background-start),
    var(--student-background-end)
  );
  background-attachment: fixed;
}
.student-branding-pending {
  visibility: hidden;
}
.student-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
}
.student-card {
  width: min(520px, 92vw);
  background: var(--student-card);
  color: var(--student-card-text);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 44px;
  text-align: center;
  border: 1px solid #e6ebff;
}
.student-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.student-institute-logo {
  display: block;
  max-width: 210px;
  max-height: 82px;
  object-fit: contain;
  transition: none;
}
.student-labmodeler-logo {
  display: block;
  width: 156px;
  height: auto;
}
.student-labmodeler-corner {
  position: fixed;
  left: 22px;
  bottom: 18px;
  width: 112px;
  height: auto;
  z-index: 2;
}
.student-enterprise-branding .student-labmodeler-logo-main {
  display: none;
}
.student-title {
  margin: 30px 0 8px;
  font-size: 28px;
}
.student-subtitle {
  margin: 0 auto 30px;
  max-width: 520px;
  color: color-mix(in srgb, var(--student-card-text) 72%, transparent);
  font-size: 15px;
}
.student-session-entry {
  display: grid;
  gap: 8px;
  text-align: left;
  margin: 0 0 18px;
}
.student-new-session {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.student-session-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: color-mix(in srgb, var(--student-card-text) 62%, transparent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.student-session-divider::before,
.student-session-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--student-card-text) 18%, transparent);
}
.student-session-entry span {
  color: color-mix(in srgb, var(--student-card-text) 72%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.student-session-entry input {
  width: 100%;
  border: 1px solid #d9def0;
  border-radius: 6px;
  padding: 13px 14px;
  font-size: 15px;
  color: #1d2333;
  background: #fff;
}
.student-session-entry input:focus {
  outline: 2px solid rgba(79, 99, 255, 0.2);
  border-color: var(--student-accent);
}
.student-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.student-resume-action {
  justify-content: stretch;
}
.student-resume-action button {
  width: 100%;
}
.student-status {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--student-card-text) 72%, transparent);
}
.student-status[data-state="ok"] {
  color: #2a7d4f;
}
.student-status[data-state="warn"] {
  color: #a06a15;
}
.student-actions button {
  border: none;
  background: var(--student-accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--student-accent) 24%, transparent);
}
.student-new-session button {
  border: none;
  background: var(--student-accent);
  color: #ffffff;
  min-width: 220px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--student-accent) 24%, transparent);
}
.student-actions button.secondary {
  background: #ffffff;
  color: var(--student-accent);
  border: 1px solid var(--student-accent);
  box-shadow: none;
}
.student-actions button:hover {
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .student-card {
    padding: 32px 24px;
  }
  .student-labmodeler-corner {
    left: 14px;
    bottom: 12px;
    width: 92px;
  }
}
.form-actions {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
}
.form-actions .btn {
  min-width: 180px;
}

@media (max-width: 700px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    padding: 14px;
  }
  .table-card .table {
    min-width: 460px;
  }
  .table th,
  .table td {
    font-size: 12px;
    padding: 6px 4px;
  }
  .panel-stack[data-panel="students"] .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .panel-stack[data-panel="students"] .card-header .row {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .panel-stack[data-panel="students"] .table-card {
    overflow-x: auto;
  }
  .student-table {
    min-width: 0;
    width: 100%;
  }
  .student-table th:nth-child(1),
  .student-table td:nth-child(1) {
    display: none;
  }
  .student-table th:nth-child(4),
  .student-table td:nth-child(4),
  .student-table th:nth-child(6),
  .student-table td:nth-child(6),
  .student-table th:nth-child(8),
  .student-table td:nth-child(8) {
    display: none;
  }

  .session-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .panel-stack[data-panel="students"] .table-card {
    overflow-x: auto;
  }
  .student-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }
  .student-table td {
    word-break: break-word;
  }
  .student-table th:nth-child(1),
  .student-table td:nth-child(1),
  .student-table th:nth-child(4),
  .student-table td:nth-child(4),
  .student-table th:nth-child(6),
  .student-table td:nth-child(6),
  .student-table th:nth-child(8),
  .student-table td:nth-child(8) {
    display: none;
  }
}

/* Help panel */
.help-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.help-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.help-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.help-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid #e1e7f2;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f7f9ff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  color: #4f63ff;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  margin: 10px 0 0;
  color: #5b6474;
  font-size: 14px;
}
.faq-item summary {
  position: relative;
  transition: color 0.2s ease;
}
.faq-item summary::after {
  transition: transform 0.2s ease, color 0.2s ease;
  transform-origin: center;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}
.faq-item > p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}
.faq-item[open] > p {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}
.video-grid {
  display: grid;
  gap: 14px;
}
.video-card {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid #e1e7f2;
  background: linear-gradient(135deg, #f2f6ff 0%, #ffffff 100%);
  color: #1f2937;
  min-height: 94px;
}
.video-card:hover {
  border-color: #b8c5ff;
  box-shadow: 0 14px 30px rgba(79, 99, 255, 0.12);
}
.video-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 99, 255, 0.12);
  color: #3f4fff;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.video-title {
  font-weight: 700;
  font-size: 15px;
}
.video-length {
  color: #6b7280;
  font-size: 12px;
}
.video-play {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #4f63ff;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(79, 99, 255, 0.25);
}
.help-note {
  margin: 0;
}

body.theme-dark .faq-item {
  background: #0f182b;
  border-color: #223052;
}
body.theme-dark .faq-item p {
  color: #a9b7d1;
}
body.theme-dark .video-card {
  background: linear-gradient(135deg, #0f182b 0%, #121d33 100%);
  border-color: #223052;
  color: #e2e8f0;
}
body.theme-dark .video-length {
  color: #94a3b8;
}

.verification-banner {
  margin: 0 0 20px;
  padding: 17px 20px;
  border: 1px solid #f1c86b;
  border-radius: 14px;
  background: #fff8e7;
  color: #4d3a0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.verification-banner.hidden { display: none; }
.verification-banner p { margin: 4px 0 0; color: #735d29; }
.verification-actions,
.email-verification-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.verification-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff3cd;
  color: #74550b;
  font-size: 13px;
  font-weight: 700;
}
.verification-status.verified {
  background: #e8f7ef;
  color: #18794e;
}
body.theme-dark .verification-banner {
  background: #2a230f;
  border-color: #705b25;
  color: #ffe7a3;
}
body.theme-dark .verification-banner p { color: #d7c389; }

@media (max-width: 980px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
  .help-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .verification-banner { align-items: flex-start; flex-direction: column; }
}
