:root {
  --bg: #f3f7f1;
  --bg-soft: #f8fbf7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(21, 128, 61, 0.09);
  --text: #18261c;
  --muted: #607166;
  --brand: #22c55e;
  --brand-strong: #15803d;
  --brand-soft: rgba(34, 197, 94, 0.12);
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.1);
  --warning: #8a5a00;
  --warning-bg: rgba(255, 248, 230, 0.98);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

body.theme-dark {
  --bg: #0b130d;
  --bg-soft: #122016;
  --surface: rgba(17, 27, 20, 0.96);
  --surface-strong: #162419;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f2fbf4;
  --muted: #c0cec3;
  --brand-strong: #5ee38b;
  --brand-soft: rgba(34, 197, 94, 0.22);
  --accent-soft: rgba(22, 163, 74, 0.2);
  --warning-bg: rgba(90, 64, 12, 0.5);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  font-size: 16.5px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.1), transparent 18%),
    linear-gradient(180deg, #fbfef9 0%, var(--bg) 100%);
  overflow-x: hidden;
}

body.theme-dark {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.08), transparent 18%),
    linear-gradient(180deg, #0d1510 0%, var(--bg) 100%);
}

body.theme-dark .topbar,
body.theme-dark .quick-card,
body.theme-dark .onboarding-card,
body.theme-dark .workspace-sidebar,
body.theme-dark .workspace-main,
body.theme-dark .sidebar-brand-card,
body.theme-dark .sidebar-panel,
body.theme-dark .auth-card,
body.theme-dark .auth-preview,
body.theme-dark .auth-mode-copy,
body.theme-dark .profile-sidebar-card,
body.theme-dark .profile-panel,
body.theme-dark .info-hero-card,
body.theme-dark .info-page-card,
body.theme-dark .student-hero-card,
body.theme-dark .student-summary-strip,
body.theme-dark .student-quick-card,
body.theme-dark .student-settings-card,
body.theme-dark .student-section-card,
body.theme-dark .student-progress-card,
body.theme-dark .stage-card,
body.theme-dark .session-card,
body.theme-dark .stat-card,
body.theme-dark .admin-panel,
body.theme-dark .admin-login-card,
body.theme-dark .history-card,
body.theme-dark .achievement-chip,
body.theme-dark .about-feature-item,
body.theme-dark .policy-item,
body.theme-dark .strength-card {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .top-chip,
body.theme-dark .theme-toggle,
body.theme-dark .tag,
body.theme-dark .stage-chip,
body.theme-dark .auth-tab,
body.theme-dark .profile-nav-link,
body.theme-dark .memory-item,
body.theme-dark .field,
body.theme-dark .history-item,
body.theme-dark .session-action-btn,
body.theme-dark .inline-action-btn,
body.theme-dark .mini-btn,
body.theme-dark .helper-btn,
body.theme-dark .attachment,
body.theme-dark .source-link,
body.theme-dark .student-mini-card,
body.theme-dark .student-achievement-chip {
  background: rgba(19, 31, 23, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

body.theme-dark .chat-shell,
body.theme-dark .chat-top,
body.theme-dark .composer-area,
body.theme-dark .composer {
  background: rgba(16, 25, 19, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .message.assistant,
body.theme-dark .message.user,
body.theme-dark .answer-section,
body.theme-dark .practice-cta,
body.theme-dark .clarify-card,
body.theme-dark .smart-note,
body.theme-dark .chat-trust-note {
  background: rgba(20, 31, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .message.assistant {
  box-shadow: inset 3px 0 0 var(--brand);
}

body.theme-dark .message.user {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(20, 31, 24, 0.98));
}

body.theme-dark .example-chip {
  background: rgba(18, 39, 26, 0.96);
  border-color: rgba(94, 227, 139, 0.24);
  color: #b7f5c9;
}

body.theme-dark .plus-btn {
  background: rgba(34, 197, 94, 0.18);
  color: #b7f5c9;
}

body.theme-dark .prompt-input,
body.theme-dark .prompt-input::placeholder,
body.theme-dark .brand-copy,
body.theme-dark .chat-top p,
body.theme-dark .quick-card span,
body.theme-dark .starter-card span,
body.theme-dark .session-card-preview,
body.theme-dark .session-card-meta,
body.theme-dark .history-item span,
body.theme-dark .memory-item span,
body.theme-dark .policy-item span,
body.theme-dark .about-feature-item span,
body.theme-dark .info-link-card span,
body.theme-dark .student-quick-card span,
body.theme-dark .student-mini-card span,
body.theme-dark .student-hero-copy p,
body.theme-dark .chat-trust-note,
body.theme-dark .logic-note,
body.theme-dark .muted-inline,
body.theme-dark .panel-copy,
body.theme-dark .admin-subtitle,
body.theme-dark .profile-stat-card span,
body.theme-dark .profile-stat-card small {
  color: var(--muted);
}

body.theme-dark .main-nav a,
body.theme-dark .helper-btn-ghost,
body.theme-dark .top-link {
  color: #d8f6df;
}

body.theme-dark .top-chip,
body.theme-dark .field,
body.theme-dark .prompt-input,
body.theme-dark .message-body,
body.theme-dark .answer-section p,
body.theme-dark .answer-section ol,
body.theme-dark .answer-section ul,
body.theme-dark .history-card p,
body.theme-dark .history-card strong,
body.theme-dark .memory-item,
body.theme-dark .session-card-title,
body.theme-dark .student-section-head h3,
body.theme-dark .student-quick-card strong,
body.theme-dark .student-mini-card strong {
  color: var(--text);
}

body.theme-dark .student-project-card,
body.theme-dark .student-api-session-card,
body.theme-dark .student-project-conversation-card,
body.theme-dark .student-guest-note,
body.theme-dark .student-project-empty,
body.theme-dark .auth-security-note,
body.theme-dark .auth-guest-cta,
body.theme-dark .info-link-card,
body.theme-dark .info-flow-card,
body.theme-dark .info-mode-card,
body.theme-dark .info-chip-group {
  background: rgba(19, 31, 23, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

body.theme-dark .student-project-card span,
body.theme-dark .student-project-card small,
body.theme-dark .student-project-conversation-card span,
body.theme-dark .student-project-conversation-card small,
body.theme-dark .student-api-session-card span,
body.theme-dark .student-section-copy,
body.theme-dark .student-guest-note,
body.theme-dark .student-project-empty,
body.theme-dark .student-progress-card p,
body.theme-dark .auth-guest-cta span,
body.theme-dark .auth-security-points span,
body.theme-dark .info-flow-card span,
body.theme-dark .info-mode-card span,
body.theme-dark .info-chip-group span {
  color: var(--muted);
}

body.theme-dark .student-live-chip,
body.theme-dark .student-plan-badge,
body.theme-dark .student-plan-metric,
body.theme-dark .student-plan-benefit,
body.theme-dark .student-package-preview-card {
  background: rgba(19, 31, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .student-package-preview-card.is-featured,
body.theme-dark .student-package-preview-card.is-active,
body.theme-dark .student-plan-card-primary,
body.theme-dark .student-plan-card-preview {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 30%),
    rgba(19, 31, 23, 0.96);
}

body.theme-dark .send-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #07150c;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.16);
  overflow: hidden;
}

.brand-mark-logo svg {
  width: 34px;
  height: 34px;
}

.brand-mark-logo-image {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.98));
}

.brand-mark-logo-image img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 800;
}

.brand-copy {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav,
.top-status,
.top-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1px;
}

.main-nav a:hover {
  color: var(--brand-strong);
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  max-width: 100%;
}

.top-link {
  color: var(--brand-strong);
  font-weight: 700;
}

.xp-chip {
  color: var(--brand-strong);
  font-weight: 700;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.theme-toggle-track {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.theme-toggle-thumb {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: transform 200ms ease;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 180ms ease;
}

.theme-toggle-sun circle {
  fill: #22c55e;
}

.theme-toggle-sun line {
  stroke: #16a34a;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-toggle-sun {
  opacity: 0;
}

.theme-toggle-moon {
  opacity: 1;
}

.theme-toggle-moon path {
  fill: #0f172a;
}

.top-cta-link {
  width: auto;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-logout-btn {
  min-width: 132px;
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.top-logout-btn:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

body.theme-dark .top-logout-btn {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(127, 29, 29, 0.14);
}

body.theme-dark .top-logout-btn:hover {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

body.theme-dark .secondary-btn {
  border-color: rgba(94, 227, 139, 0.3);
  color: #d8f6df;
  background: transparent;
}

body.theme-dark .theme-toggle {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .theme-toggle-thumb {
  background: transparent;
  transform: none;
}

body.theme-dark .theme-toggle-sun {
  opacity: 1;
}

body.theme-dark .theme-toggle-moon {
  opacity: 0;
}

.page-wrap {
  padding: 24px 0 64px;
}

.student-simple-page {
  padding-bottom: 72px;
}

.student-dashboard {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "plan plan"
    "summary summary"
    "progress quick"
    "projects precision";
  gap: 20px;
}

.student-area-plan {
  grid-area: plan;
}

.student-area-summary {
  grid-area: summary;
}

.student-area-progress {
  grid-area: progress;
}

.student-area-quick {
  grid-area: quick;
}

.student-area-projects {
  grid-area: projects;
}

.student-area-precision {
  grid-area: precision;
}

.student-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 246, 0.96));
}

.student-hero-side {
  display: grid;
  justify-items: flex-start;
  gap: 12px;
}

.student-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.student-section-card {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.student-projects-panel,
.student-precision-card {
  display: grid;
  gap: 16px;
}

.student-projects-panel .student-project-form {
  display: grid;
  gap: 12px;
}

.student-project-form .primary-btn {
  justify-self: flex-start;
}

.student-project-conversations {
  display: grid;
  gap: 12px;
}

.student-project-conversation-card {
  border-radius: 18px;
}

.student-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.student-plan-card {
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.student-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-progress-card {
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.admin-layout-modern {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.admin-tab-nav-modern {
  display: grid;
  gap: 10px;
}

@media (max-width: 1100px) {
  .student-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "plan"
      "summary"
      "progress"
      "quick"
      "projects"
      "precision";
  }

  .student-plan-grid {
    grid-template-columns: 1fr;
  }

  .student-progress-grid,
  .student-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout-modern {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-tab-nav-modern {
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 780px) {
  .student-hero-card {
    grid-template-columns: 1fr;
  }

  .student-summary-strip,
  .student-progress-grid,
  .student-quick-grid {
    grid-template-columns: 1fr;
  }

  .student-plan-metrics {
    grid-template-columns: 1fr;
  }

  .student-hero-side {
    justify-items: stretch;
  }

  .admin-tab-nav-modern {
    grid-auto-flow: row;
  }
}

.hero-stage {
  margin-bottom: 22px;
}

.chat-stage {
  margin-bottom: 28px;
}

.hero-card-showcase {
  width: 100%;
  max-width: none;
}

.landing-strip,
.onboarding-stage,
.feature-grid-stage {
  margin-bottom: 22px;
}

.hero-actions-dual {
  justify-content: center;
}

.gold-btn {
  background: linear-gradient(135deg, #f4d35e, #d4a017);
  color: #2f2200;
}

.quick-strip,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 180ms ease;
}

.quick-card:hover {
  transform: translateY(-2px);
}

.quick-card strong,
.onboarding-copy h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--brand-strong);
}

.quick-card span {
  color: var(--muted);
  line-height: 1.8;
}

.onboarding-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.96));
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.onboarding-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.selectors-hero {
  margin-bottom: 0;
}

.onboarding-actions {
  max-width: 440px;
}

.subject-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stage-card {
  text-align: right;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  border-radius: 18px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 180ms ease;
  display: grid;
  gap: 4px;
}

.stage-card strong {
  color: var(--brand-strong);
  font-size: 0.95rem;
}

.stage-card span,
.stage-card small {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.stage-card.active {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.98));
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.stage-chip {
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.stage-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
}

.solve-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.solve-mode-btn {
  text-align: right;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: 180ms ease;
  display: grid;
  gap: 6px;
}

.solve-mode-btn strong {
  color: var(--text);
}

.solve-mode-btn span {
  color: var(--muted);
  line-height: 1.7;
}

.solve-mode-btn.active {
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
}

body.solve-mode-quick .stage-cards,
body.solve-mode-quick .selectors-hero,
body.solve-mode-quick .student-settings-card {
  display: none;
}

body.solve-mode-quick .subject-pills,
body.solve-mode-quick .onboarding-copy {
  margin-top: 0;
}

body.solve-mode-structured .stage-cards {
  display: grid;
}

body.solve-mode-structured .selectors-hero {
  display: grid;
}

body.solve-mode-structured .student-settings-card {
  display: block;
}

.subject-pill {
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.subject-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.24);
}

.subject-pills-compact {
  margin-top: 12px;
}

.workspace-page {
  padding-top: 20px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.workspace-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.sidebar-brand-card,
.sidebar-panel,
.workspace-main {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sidebar-brand-card,
.sidebar-panel {
  padding: 18px;
}

.sidebar-brand-card {
  display: grid;
  gap: 14px;
  text-align: center;
}

.sidebar-brand-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.sidebar-title {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 1rem;
}

.sidebar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-panel-head .sidebar-title {
  margin-bottom: 0;
}

.session-list {
  display: grid;
  gap: 12px;
}

.session-empty {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  line-height: 1.8;
}

.session-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 10px;
  transition: 180ms ease;
}

.session-card.active {
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
}

.session-card.pinned {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.session-card-head,
.session-card-actions,
.session-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.session-open-btn {
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  display: grid;
  gap: 4px;
}

.session-card-title {
  font-weight: 800;
  line-height: 1.6;
}

.session-card-preview {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.session-card-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.session-action-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.session-action-btn:hover,
.session-open-btn:hover .session-card-title {
  color: var(--brand-strong);
}

.workspace-main {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 18px;
}

.workspace-bottom-grid {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.workspace-onboarding {
  margin-bottom: 0;
}

.auth-preview-rich {
  padding: 28px;
  align-content: center;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.96));
}

.auth-preview-points {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.auth-preview-point {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-strong);
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar,
.chat-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.sidebar {
  border-radius: 34px;
  padding: 22px;
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  scrollbar-width: thin;
}

.sidebar-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero-utility {
  display: none;
}

.hero-card {
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.94));
  text-align: center;
}

.hero-logo {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-logo-mark {
  width: 104px;
  height: 104px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 236, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.16);
  box-shadow: 0 18px 50px rgba(34, 197, 94, 0.08);
}

.hero-icon-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hero-logo-text {
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 900;
  color: var(--brand-strong);
}

.hero-actions,
.hero-meta,
.example-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions,
.hero-meta {
  justify-content: center;
}

.hero-actions {
  margin-top: 18px;
}

.hero-meta {
  margin-top: 16px;
}

.hero-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-strong);
  font-size: 0.92rem;
}

.hero-subgrid {
  display: grid;
  gap: 10px;
}

.mini-feature {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.mini-feature strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-strong);
}

.mini-feature span {
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.94rem;
}

.sidebar h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2.7vw, 3.1rem);
  line-height: 1.06;
}

.sidebar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.panel-compact {
  display: grid;
  gap: 12px;
}

.panel-section {
  display: grid;
  gap: 8px;
}

.panel-section + .panel-section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.panel-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.compact-list {
  gap: 8px;
}

.small-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.selection-summary {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  line-height: 1.8;
}

.platform-insights {
  margin-top: 28px;
}

.platform-insights-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 247, 0.96));
  box-shadow: var(--shadow);
}

.info-stat-card {
  min-height: 170px;
  padding: 22px 18px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: center;
}

.info-stat-card strong {
  font-size: 2.4rem;
  line-height: 1;
}

.info-stat-card span,
.info-stat-card p,
.info-stat-card h3 {
  margin: 0;
}

.info-stat-card span {
  color: var(--muted);
  line-height: 1.9;
}

.info-stat-card h3 {
  font-size: 1.12rem;
}

.info-stat-card-wide {
  grid-column: span 3;
  min-height: 220px;
  text-align: right;
}

.info-stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 2px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-size: 1.8rem;
}

.info-stat-card-wide .info-stat-icon {
  margin: 0 0 6px;
}

.info-inline-summary {
  background: rgba(34, 197, 94, 0.08);
  color: var(--brand-strong);
}

.packages-page .shell {
  width: min(1180px, calc(100% - 28px));
}

.packages-shell {
  display: grid;
  gap: 22px;
}

.packages-hero-card,
.packages-lock-card,
.packages-current-card,
.packages-info-card,
.packages-plan-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.packages-hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.packages-hero-copy {
  display: grid;
  gap: 12px;
}

.packages-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.packages-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.packages-hero-stats {
  display: grid;
  gap: 14px;
}

.packages-hero-stat {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.07);
  display: grid;
  gap: 6px;
}

.packages-hero-stat strong {
  font-size: 1.4rem;
  color: var(--brand-strong);
}

.packages-hero-stat span {
  color: var(--muted);
  line-height: 1.8;
}

.packages-auth-state[hidden] {
  display: none !important;
}

.packages-lock-card {
  padding: 28px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.packages-auth-state-footer {
  margin-top: 6px;
}

.packages-lock-card strong {
  font-size: 1.25rem;
}

.packages-lock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.packages-lock-card-error {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(255, 247, 247, 0.97);
}

.packages-lock-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.packages-lock-card-minimal {
  padding: 18px 22px;
  gap: 0;
}

.packages-dashboard[hidden] {
  display: none !important;
}

.packages-dashboard {
  display: grid;
  gap: 22px;
}

.packages-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.packages-current-card,
.packages-info-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.packages-current-head {
  display: grid;
  gap: 8px;
}

.packages-current-head strong,
.packages-info-card h2 {
  font-size: 1.7rem;
  margin: 0;
}

.packages-current-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.packages-current-meta div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.06);
  display: grid;
  gap: 5px;
}

.packages-current-meta span,
.packages-info-card p,
.packages-info-points span,
.packages-plan-card p,
.packages-plan-note {
  color: var(--muted);
  line-height: 1.8;
}

.packages-current-meta strong {
  font-size: 1.12rem;
}

.packages-current-expiry {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-info-points {
  display: grid;
  gap: 8px;
}

.packages-list-section {
  display: grid;
  gap: 16px;
}

.packages-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.packages-section-head h2,
.packages-section-head p,
.packages-hint {
  margin: 0;
}

.packages-hint {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.packages-plan-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.packages-plan-card-current {
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.16);
}

.packages-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.packages-plan-head strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.packages-plan-head span {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-plan-xp {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
}

.packages-plan-duration {
  color: var(--brand-strong);
  font-weight: 700;
}

.packages-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.packages-card-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.packages-card-badge-current {
  background: rgba(34, 197, 94, 0.12);
  color: var(--brand-strong);
}

.packages-card-badge-muted {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.packages-plan-actions {
  display: grid;
  gap: 8px;
}

.packages-plan-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--text);
}

.packages-plan-benefits li {
  line-height: 1.7;
}

.admin-list-wide {
  display: block;
}

.admin-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-package-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 14px;
}

.admin-package-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-package-head strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.admin-package-head span {
  color: var(--brand-strong);
  font-weight: 700;
}

.admin-package-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-package-form {
  display: grid;
  gap: 12px;
}

.admin-package-form label {
  display: grid;
  gap: 6px;
}

.admin-package-form label > span {
  font-weight: 700;
  color: var(--text);
}

.admin-package-summary textarea {
  min-height: 98px;
}

@media (max-width: 960px) {
  .packages-hero-card,
  .packages-dashboard-grid,
  .packages-grid,
  .admin-packages-grid {
    grid-template-columns: 1fr;
  }

  .packages-current-meta {
    grid-template-columns: 1fr;
  }

  .packages-section-head,
  .packages-plan-head,
  .admin-package-head {
    align-items: stretch;
  }

  .packages-card-badges,
  .admin-package-badges {
    justify-content: flex-start;
  }
}

.info-selectors .field {
  background: rgba(255, 255, 255, 0.96);
}

.dark-list .memory-item,
.dark-list .admin-item,
.dark-list .suggestion-btn,
.dark-suggestions .suggestion-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(34, 197, 94, 0.1);
  color: var(--text);
}

.dark-list .memory-item span,
.dark-list .memory-item strong,
.dark-suggestions .suggestion-btn {
  color: var(--text);
}

.dark-suggestions {
  display: grid;
  gap: 10px;
}

.library-term {
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.library-term + .library-term {
  margin-top: 10px;
}

.library-term-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--brand-strong);
  font-weight: 800;
}

.library-term-summary span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.library-term-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.library-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-chip {
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 253, 244, 0.92);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.library-chip:hover {
  transform: translateY(-1px);
}

.library-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
  color: #fff;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 18px;
  padding: 13px 16px;
  transition: 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2ecc71, #22c55e);
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.26);
}

.secondary-btn {
  color: var(--brand-strong);
  background: transparent;
  border-color: rgba(34, 197, 94, 0.38);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
}

.secondary-btn .btn-icon {
  background: rgba(34, 197, 94, 0.12);
}

.stack {
  display: grid;
  gap: 10px;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

select.field {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(18px) calc(50% - 3px),
    calc(10px) calc(50% - 3px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-left: 34px;
}

.password-field {
  position: relative;
}

.password-field .field {
  padding-left: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.password-toggle:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.password-toggle[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.12);
}

body.theme-dark .password-toggle {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(134, 239, 172, 0.18);
  color: #bbf7d0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.learned-list,
.suggestions {
  display: grid;
  gap: 10px;
}

.memory-item,
.suggestion-btn {
  width: 100%;
  text-align: right;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
}

a.memory-item {
  display: block;
  text-decoration: none;
}

.suggestion-btn {
  cursor: pointer;
  transition: 180ms ease;
}

.suggestion-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.22);
}

.memory-item strong {
  display: block;
  margin-bottom: 6px;
}

.history-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.history-item strong {
  display: block;
  margin-bottom: 6px;
}

.history-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.chat-shell {
  border-radius: 34px;
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.chat-top {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243, 255, 247, 0.96), rgba(255, 255, 255, 0.84));
}

.chat-top h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.chat-top p {
  margin: 0;
  color: var(--muted);
}

.chat-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.response-mode-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.response-mode-label {
  color: var(--brand-strong);
  font-weight: 800;
}

.response-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.response-mode-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}

.response-mode-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  color: var(--muted);
}

.smart-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: var(--warning-bg);
  color: var(--warning);
  line-height: 1.9;
  font-size: 0.95rem;
}

.starter-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.starter-card {
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: 180ms ease;
}

.starter-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-strong);
}

.starter-card span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.starter-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.22);
}

.example-list {
  margin-top: 16px;
}

.example-chip {
  border: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(240, 253, 244, 0.95);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.messages {
  padding: 24px;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.message {
  max-width: min(100%, 860px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  line-height: 1.9;
  min-width: 0;
}

.message.user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.98));
}

.message.assistant {
  justify-self: start;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 3px 0 0 var(--brand);
}

.message-title {
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--brand-strong);
}

.message-body {
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.message.user .message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.welcome-card {
  display: grid;
  gap: 8px;
}

.welcome-card h4,
.welcome-card p {
  margin: 0;
}

.guest-mode .plus-btn.is-locked,
.guest-mode .helper-btn.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.simple-reply {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

.simple-reply p,
.simple-reply ul {
  margin: 0;
}

.simple-reply p {
  line-height: 1.9;
}

.simple-reply ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 1.1rem;
}

.simple-reply li {
  line-height: 1.85;
}

.clarify-card {
  display: grid;
  gap: 12px;
}

.clarify-card p {
  margin: 0;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-action-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.practice-cta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 253, 244, 0.74);
}

.practice-cta p {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 700;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-section {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.82));
}

.answer-section-wide {
  grid-column: 1 / -1;
}

.answer-section h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.answer-section p,
.answer-section ol,
.answer-section ul {
  margin: 0;
  color: var(--text);
}

.answer-section ol,
.answer-section ul {
  padding-right: 18px;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-list li {
  line-height: 1.9;
}

.muted-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.pending-copy {
  color: var(--muted);
}

.muted-inline {
  color: var(--muted);
  font-size: 0.92rem;
}

.message-tools {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.message-tools-label {
  width: 100%;
  color: var(--brand-strong);
  font-weight: 800;
  margin-bottom: 2px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.mini-btn.active {
  color: var(--brand-strong);
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--brand-soft);
}

.mini-btn.disliked.active {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(254, 242, 242, 0.96);
}

.sources-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.source-link {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(248, 255, 250, 0.96);
  color: var(--accent);
  direction: ltr;
  text-align: left;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.composer-area {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  max-width: 100%;
}

.attachment-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.attachment-remove:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
}

.plus-btn,
.send-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 180ms ease;
}

.plus-btn {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.send-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.plus-btn:hover,
.send-btn:hover {
  transform: translateY(-1px);
}

.prompt-input {
  min-height: 52px;
  max-height: 190px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  padding: 12px 4px;
  color: var(--text);
}

.composer-note {
  margin-top: 12px;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 0.84rem;
  line-height: 1.8;
}

.helper-toolbar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.helper-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  max-width: 100%;
}

.helper-btn-ghost {
  color: var(--muted);
}

.chat-trust-note {
  margin: 12px 4px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.98), rgba(255, 255, 255, 0.95));
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.93rem;
}

.chat-trust-note-top {
  margin: 14px 0 0;
}

body.user-logged-in .selectors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subject-runtime-wrap {
  display: block;
}

.subject-runtime-hidden {
  display: none !important;
}

.subject-runtime-visible {
  display: block !important;
}

.mcq-highlight {
  color: var(--brand-strong);
  font-weight: 800;
}

.logic-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.auth-shell > .auth-card {
  order: -1;
}

.auth-shell > .auth-preview {
  order: 1;
}

.auth-shell-single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.auth-card,
.auth-preview {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.auth-card-wide {
  width: 100%;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.auth-tabs {
  display: flex;
  gap: 10px;
}

.auth-tabs-wide .auth-tab {
  padding-block: 16px;
  font-size: 1.05rem;
}

.auth-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-error {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.26);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.92rem;
}

.field.is-error {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(254, 242, 242, 0.55);
}

.auth-panels {
  display: grid;
  gap: 16px;
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-mode-copy {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(34, 197, 94, 0.08);
}

.auth-mode-copy strong {
  color: var(--brand-strong);
}

.auth-mode-copy span {
  color: var(--muted);
  line-height: 1.8;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.auth-links,
.auth-footer-links,
.auth-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-links {
  justify-content: flex-end;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-google-btn {
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #b91c1c;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auth-google-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.44);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18);
}

body.theme-dark .auth-google-btn {
  background: rgba(18, 16, 16, 0.92);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
  box-shadow: 0 12px 26px rgba(127, 29, 29, 0.32);
}

.auth-preview {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.auth-preview-logo {
  justify-items: center;
  text-align: center;
}

.auth-preview-copy {
  display: grid;
  gap: 8px;
  padding: 16px 0 8px;
}

.auth-preview-copy strong {
  font-size: 1.45rem;
}

.auth-preview-copy span,
.auth-footer-links a {
  color: var(--muted);
}

.auth-stats-band {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0e5138, #0a3f2e);
  box-shadow: var(--shadow);
}

.auth-stat-card {
  min-height: 132px;
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: center;
  display: grid;
  align-content: center;
  gap: 8px;
}

.auth-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.auth-stat-card span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.scroll-top-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.92));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 180ms ease;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.admin-wrap {
  display: grid;
  gap: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.admin-sidebar-card,
.admin-hero-panel,
.admin-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-sidebar-card {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.admin-sidebar-card h2,
.admin-hero-copy h2 {
  margin: 0;
}

.admin-sidebar-card p,
.admin-sidebar-card span {
  color: var(--muted);
  line-height: 1.8;
}

.admin-sidebar-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
  transition: 180ms ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
  outline: none;
}

.admin-sidebar-note strong {
  color: var(--brand-strong);
}

.admin-main {
  display: grid;
  gap: 22px;
}

.admin-main > #admin-overview {
  order: 1;
}

.admin-main > .stats-grid {
  order: 2;
}

.admin-main > #admin-generator {
  order: 3;
}

.admin-main > #admin-coverage {
  order: 4;
}

.admin-main > #admin-users {
  order: 5;
}

.admin-main > #admin-reports {
  order: 6;
}

.admin-main > #admin-questions {
  order: 7;
}

.admin-hero-panel {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
}

.admin-hero-copy {
  display: grid;
  gap: 8px;
}

.admin-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  max-width: 760px;
}

.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-auth-shell {
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.admin-login-card h2 {
  margin: 0 0 8px;
}

.admin-login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.admin-panel {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  margin-top: 10px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-section-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.admin-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-section-stack {
  display: grid;
  gap: 16px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-section-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.admin-grid-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.admin-generator-side {
  display: grid;
  gap: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.admin-item strong {
  display: block;
  margin-bottom: 6px;
}

.admin-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-status-banner {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 253, 244, 0.92);
  color: var(--brand-strong);
  line-height: 1.8;
  font-weight: 700;
}

.admin-status-banner[data-state="running"] {
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.admin-status-banner[data-state="success"] {
  background: rgba(240, 253, 244, 0.95);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--brand-strong);
}

.admin-status-banner[data-state="warning"] {
  background: rgba(255, 251, 235, 0.98);
  border-color: rgba(202, 138, 4, 0.2);
  color: #8a5a00;
}

.admin-status-banner[data-state="error"] {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.admin-item .permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.permission-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.admin-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-ban {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.96);
}

.admin-action-points {
  color: #8a5a00;
  border-color: rgba(202, 138, 4, 0.18);
  background: rgba(255, 251, 235, 0.98);
}

.admin-action-unban {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(240, 253, 244, 0.96);
}

body.theme-dark .admin-action-ban {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(127, 29, 29, 0.18);
}

body.theme-dark .admin-action-points {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.24);
  background: rgba(120, 53, 15, 0.28);
}

body.theme-dark .admin-action-unban {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(20, 83, 45, 0.28);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-question-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-search-row {
  margin: 14px 0 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-multiselect-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.admin-multiselect-head {
  display: grid;
  gap: 4px;
}

.admin-multiselect-head strong {
  color: var(--text);
}

.admin-multiselect-head span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stage-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stage-btn {
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
}

.admin-stage-btn.active,
.admin-stage-btn[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  color: var(--brand-strong);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.admin-choice-chip {
  position: relative;
}

.admin-choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-choice-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.admin-choice-chip input:checked + span {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: var(--brand-strong);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.admin-hidden-field {
  display: none !important;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.admin-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.admin-bank-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.admin-bank-card strong,
.admin-grade-card strong {
  display: block;
  margin-bottom: 6px;
}

.admin-bank-card span,
.admin-grade-card span {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.admin-generator-actions {
  margin-top: 4px;
}

.admin-generator-actions .primary-btn:disabled,
.admin-generator-actions .mini-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-log-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 6px;
}

.admin-log-item strong {
  display: block;
}

.admin-log-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-log-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-grade-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.admin-grade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.admin-users-table th,
.admin-users-table td {
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.admin-users-table {
  table-layout: fixed;
}

.admin-user-cell,
.admin-user-stack {
  display: grid;
  gap: 4px;
}

.admin-user-cell strong,
.admin-user-stack strong {
  display: block;
  color: var(--text);
}

.admin-user-cell span,
.admin-user-cell small,
.admin-user-stack span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-user-cell small {
  font-size: 0.84rem;
}

.admin-inline-note {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-nav .admin-nav-link {
  appearance: none;
  width: 100%;
  text-align: right;
  cursor: pointer;
  font: inherit;
}

.admin-tab-nav .admin-nav-link.is-active {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.24);
  background: var(--brand-soft);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.12);
}

.admin-tab-hero {
  margin-bottom: 18px;
}

.admin-grid-single {
  grid-template-columns: 1fr;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.6fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-users-panel {
  display: grid;
}

.admin-user-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.admin-user-manage-card,
.admin-subscriber-card,
.admin-empty-state {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 252, 248, 0.93));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 14px;
}

.admin-user-manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-primary {
  display: grid;
  gap: 4px;
}

.admin-user-primary strong {
  font-size: 1.02rem;
  color: var(--text);
}

.admin-user-primary span,
.admin-user-primary small,
.admin-empty-state span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-meta-chip,
.admin-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-status-chip.is-active {
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.admin-status-chip.is-suspended {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.admin-status-chip.is-banned {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.11);
  color: #b91c1c;
}

.admin-user-package-box {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(34, 197, 94, 0.08);
  display: grid;
  gap: 6px;
}

.admin-user-package-box strong {
  color: var(--brand-strong);
}

.admin-user-package-box span,
.admin-user-package-box small {
  color: var(--muted);
  line-height: 1.7;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-user-actions > * {
  flex: 1 1 170px;
}

.admin-empty-state strong {
  color: var(--text);
}

.admin-subscriber-groups {
  display: grid;
  gap: 14px;
}

.admin-subscriber-member {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 4px;
}

.admin-subscriber-member strong {
  color: var(--text);
}

.admin-subscriber-member span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-bank-search-note {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.22);
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
}

.admin-bank-search-note strong {
  color: var(--text);
}

.admin-bank-search-note span {
  color: var(--muted);
  line-height: 1.8;
}

.admin-bank-search-results {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-search-result-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 10px;
}

.admin-search-result-card strong {
  color: var(--text);
  line-height: 1.9;
}

.admin-search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-search-result-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-domain-manager {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
}

.admin-domain-head {
  display: grid;
  gap: 4px;
}

.admin-domain-head strong {
  color: var(--text);
}

.admin-domain-head span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.admin-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-domain-option {
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(240, 253, 244, 0.82);
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.admin-domain-option input {
  accent-color: #16a34a;
  margin: 0;
}

.admin-domain-option span {
  font-weight: 700;
  color: #0f3b22;
}

.admin-domain-option small {
  color: #567060;
}

.admin-domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.theme-dark .admin-sidebar-card,
body.theme-dark .admin-hero-panel,
body.theme-dark .admin-nav-link,
body.theme-dark .admin-status-banner,
body.theme-dark .admin-log-item,
body.theme-dark .admin-source-chip,
body.theme-dark .admin-multiselect-block,
body.theme-dark .admin-choice-chip span {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .admin-user-manage-card,
body.theme-dark .admin-subscriber-card,
body.theme-dark .admin-empty-state,
body.theme-dark .admin-user-package-box,
body.theme-dark .admin-subscriber-member,
body.theme-dark .admin-meta-chip,
body.theme-dark .admin-status-chip {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  color: #ecfdf5;
}

body.theme-dark .admin-user-primary span,
body.theme-dark .admin-user-primary small,
body.theme-dark .admin-empty-state span,
body.theme-dark .admin-user-package-box span,
body.theme-dark .admin-user-package-box small,
body.theme-dark .admin-subscriber-member span {
  color: rgba(220, 252, 231, 0.78);
}

body.theme-dark .admin-domain-manager {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .admin-domain-option {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(74, 222, 128, 0.2);
}

body.theme-dark .admin-domain-option span {
  color: rgba(245, 247, 250, 0.92);
}

body.theme-dark .admin-domain-option small,
body.theme-dark .admin-domain-head span {
  color: rgba(245, 247, 250, 0.68);
}

body.theme-dark .admin-choice-chip input:checked + span {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(94, 227, 139, 0.28);
  color: #d9fbe4;
}

body.theme-dark .admin-stage-btn {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.theme-dark .admin-stage-btn.active,
body.theme-dark .admin-stage-btn[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(94, 227, 139, 0.28);
  color: #d9fbe4;
}

body.theme-dark .admin-bank-search-note,
body.theme-dark .admin-search-result-card {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 31, 24, 0.98), rgba(14, 22, 17, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .admin-status-banner[data-state="running"] {
  color: #7dd3fc;
}

body.theme-dark .admin-status-banner[data-state="warning"] {
  color: #fde68a;
}

body.theme-dark .admin-status-banner[data-state="error"] {
  color: #fecaca;
}

@media (max-width: 1120px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid,
  .admin-grid-balanced,
  .admin-generator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero-panel {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-hero-actions {
    justify-content: stretch;
  }

  .admin-hero-actions .primary-btn,
  .admin-hero-actions .helper-btn {
    width: 100%;
  }
}

.profile-nav-panel {
  padding: 20px;
}

.profile-nav-list,
.profile-sidebar-links {
  display: grid;
  gap: 10px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  transition: 180ms ease;
}

.profile-nav-link:hover,
.profile-nav-link.active {
  color: var(--brand-strong);
  border-color: rgba(34, 197, 94, 0.22);
  background: var(--brand-soft);
}

.profile-page,
.info-page {
  padding-top: 24px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 24px;
}

.profile-sidebar-card,
.profile-panel,
.info-hero-card,
.info-page-card {
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
  box-shadow: var(--shadow);
}

.profile-sidebar-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255, 255, 255, 0.98));
}

.profile-avatar img {
  width: 42px;
  height: 42px;
}

.profile-main {
  display: grid;
  gap: 20px;
}

.profile-hero {
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 252, 247, 0.98));
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-weight: 800;
  margin-bottom: 14px;
}

.streak-highlight {
  min-width: 190px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.14);
  text-align: center;
}

.streak-highlight strong {
  display: block;
  font-size: 2.5rem;
  color: var(--brand-strong);
}

.streak-highlight span,
.streak-highlight small {
  display: block;
  color: var(--muted);
}

.profile-grid,
.info-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.profile-stat-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.profile-stat-card span,
.profile-stat-card small,
.panel-head span,
.panel-copy,
.history-card span,
.history-card p,
.about-feature-item span,
.policy-item span {
  color: var(--muted);
}

.profile-stat-card strong {
  font-size: 1.6rem;
}

.profile-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-panel,
.info-page-card {
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.motivation-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
}

.motivation-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.achievement-list,
.history-stack,
.policy-list,
.about-feature-list,
.strength-grid {
  display: grid;
  gap: 12px;
}

.info-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-flow-grid,
.info-mode-grid,
.info-chip-groups {
  display: grid;
  gap: 14px;
}

.info-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-mode-grid,
.info-chip-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-link-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-link-card strong {
  color: var(--brand-strong);
}

.info-link-card span {
  color: var(--muted);
  line-height: 1.8;
}

.info-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.achievement-chip,
.history-card,
.about-feature-item,
.policy-item,
.strength-card,
.info-flow-card,
.info-mode-card,
.info-chip-group {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.achievement-chip.unlocked {
  background: var(--brand-soft);
  border-color: rgba(34, 197, 94, 0.24);
}

.achievement-chip strong,
.history-card strong,
.about-feature-item strong,
.policy-item strong,
.strength-card strong,
.info-flow-card strong,
.info-mode-card strong,
.info-chip-group strong {
  display: block;
  margin-bottom: 6px;
}

.info-flow-card span,
.info-mode-card span,
.info-chip-group span {
  color: var(--muted);
  line-height: 1.8;
}

.info-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.strength-card.warning {
  background: var(--warning-bg);
}

.history-card-head,
.history-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.info-hero-card {
  padding: 30px;
  margin-bottom: 22px;
}

.student-simple-wrap {
  display: grid;
  gap: 18px;
}

.student-hero-card,
.student-summary-strip,
.student-quick-card,
.student-settings-card,
.student-section-card {
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
  box-shadow: var(--shadow);
}

.student-hero-card {
  border-radius: 30px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.student-hero-copy {
  display: grid;
  gap: 8px;
}

.student-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-strong);
  font-weight: 800;
}

.student-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.student-eyebrow {
  color: var(--brand-strong);
  font-weight: 800;
}

.student-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.student-hero-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
}

.student-hero-side {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 220px;
}

.student-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--brand-strong);
  font-weight: 800;
  max-width: 100%;
}

.student-summary-strip {
  border-radius: 26px;
  padding: 14px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 12px;
}

.student-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.student-plan-card {
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.96));
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.student-plan-card-primary {
  position: relative;
  overflow: hidden;
}

.student-plan-card-primary::after {
  content: "";
  position: absolute;
  inset: auto auto -28px -28px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 70%);
  pointer-events: none;
}

.student-plan-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
  margin-bottom: 10px;
}

.student-plan-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.student-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-strong);
  font-weight: 800;
}

.student-plan-badge.is-guest {
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.18);
}

.student-plan-badge.is-free {
  color: #166534;
}

.student-plan-badge.is-paid {
  color: #14532d;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.94));
}

.student-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-plan-metric {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.student-plan-metric strong {
  color: var(--brand-strong);
  font-size: 1.15rem;
}

.student-plan-metric span,
.student-plan-copy {
  color: var(--muted);
  line-height: 1.85;
}

.student-plan-copy {
  margin: 0;
}

.student-plan-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-plan-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-strong);
  font-weight: 700;
}

.student-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.student-package-preview {
  display: grid;
  gap: 12px;
}

.student-package-preview-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.student-package-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.24);
  box-shadow: 0 14px 28px rgba(11, 53, 31, 0.08);
}

.student-package-preview-card.is-featured {
  border-color: rgba(22, 163, 74, 0.28);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.96);
}

.student-package-preview-card.is-active {
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow: 0 16px 30px rgba(14, 68, 40, 0.1);
}

.student-package-preview-top,
.student-package-preview-meta,
.student-package-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-package-preview-top strong,
.student-package-preview-price {
  color: var(--brand-strong);
}

.student-package-preview-price {
  font-weight: 900;
}

.student-package-preview-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.student-package-preview-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.student-package-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 0.8rem;
}

.student-package-summary,
.student-package-empty {
  color: var(--muted);
  line-height: 1.8;
}

.student-package-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-package-benefits li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.student-package-benefits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.student-mini-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.student-mini-card strong {
  color: var(--brand-strong);
}

.student-mini-card span {
  color: var(--muted);
  line-height: 1.8;
}

.student-progress-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 248, 0.95));
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.student-progress-card-accent {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 252, 246, 0.97));
}

.student-progress-label {
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 0.92rem;
}

.student-progress-card strong {
  font-size: 1.8rem;
  color: var(--text);
}

.student-progress-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.student-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.student-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.student-progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
  transition: width 220ms ease;
}

.student-projects-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
}

.student-section-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.student-projects-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

.student-project-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.student-project-picker {
  display: grid;
  gap: 8px;
  color: var(--brand-strong);
  font-weight: 700;
}

.student-guest-note {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  line-height: 1.8;
}

.student-project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.student-project-description {
  min-height: 108px;
  resize: vertical;
  grid-column: 1 / -1;
}

.student-project-form .primary-btn {
  justify-self: start;
}

.student-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.student-project-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.student-project-chat-head h4 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 1.08rem;
}

.student-project-conversations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.student-project-card,
.student-api-session-card,
.student-project-conversation-card {
  width: 100%;
  display: grid;
  gap: 6px;
  appearance: none;
  text-align: right;
  font: inherit;
  cursor: pointer;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.student-project-card:hover,
.student-api-session-card:hover,
.student-project-conversation-card:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.26);
  box-shadow: 0 12px 26px rgba(12, 54, 32, 0.08);
}

.student-project-card.is-active,
.student-project-conversation-card.is-active {
  border-color: rgba(22, 163, 74, 0.38);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.student-project-card strong,
.student-api-session-card strong,
.student-project-conversation-card strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.student-project-card span,
.student-project-card small,
.student-api-session-card span,
.student-project-conversation-card span,
.student-project-conversation-card small {
  color: var(--muted);
  line-height: 1.75;
}

.student-project-empty {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(34, 197, 94, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.student-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.student-quick-card {
  text-align: right;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: 180ms ease;
}

.student-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.22);
}

.student-quick-card strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.student-quick-card span {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.93rem;
}

.student-settings-card {
  border-radius: 24px;
  padding: 16px 18px;
}

.student-settings-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  color: var(--brand-strong);
}

.student-settings-card summary::-webkit-details-marker {
  display: none;
}

.student-settings-card summary::before {
  content: "⌄";
  font-size: 1.1rem;
  color: var(--muted);
}

.student-settings-card[open] summary::before {
  transform: rotate(180deg);
}

.student-settings-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.student-filters-grid {
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-precision-card {
  gap: 16px;
}

.student-precision-head {
  align-items: end;
}

.student-precision-status {
  margin-top: 2px;
}

.student-solve-mode-row .solve-mode-btn {
  border-radius: 18px;
  padding: 14px 16px;
}

.student-precision-selectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.student-precision-selectors .field {
  min-height: 52px;
}

.student-chat-shell {
  min-height: 620px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.student-chat-top p {
  max-width: 760px;
}

.student-bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.student-section-card {
  border-radius: 26px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.student-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-section-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.student-achievements-card {
  grid-column: 1 / -1;
}

.student-achievements-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-achievement-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-weight: 700;
}

.student-achievement-chip-muted {
  color: var(--muted);
}

.recent-session-list {
  display: grid;
  gap: 12px;
}

.recent-session-list .session-card:nth-child(n + 4),
.compact-list .memory-item:nth-child(n + 4) {
  display: none;
}

.recent-session-list .session-card {
  padding: 14px;
  border-radius: 20px;
}

.recent-session-list .session-card-actions {
  display: flex;
  justify-content: flex-start;
}

.recent-session-list .session-card-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-session-list .session-action-btn {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.session-empty {
  line-height: 1.9;
  color: var(--muted);
}

.landing-page .feature-grid-stage,
.landing-page .platform-insights {
  display: none;
}

@media (max-width: 1120px) {
  .student-plan-grid,
  .student-summary-strip,
  .student-bottom-grid,
  .student-quick-grid,
  .student-filters-grid,
  .student-precision-selectors,
  .student-project-form,
  .student-project-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .student-hero-side {
    justify-items: start;
    min-width: 0;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .quick-strip,
  .feature-grid,
  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .sidebar-rail {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }

  .auth-stats-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-insights-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-stat-card-wide {
    grid-column: span 2;
  }

  .profile-layout,
  .profile-dual,
  .profile-grid,
  .info-page-grid {
    grid-template-columns: 1fr;
  }

  .info-link-grid {
    grid-template-columns: 1fr;
  }

  .info-flow-grid,
  .info-mode-grid,
  .info-chip-groups {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1280px, calc(100% - 18px));
  }

  .page-wrap {
    padding: 14px 0 40px;
  }

  .student-plan-grid,
  .student-plan-metrics,
  .student-summary-strip,
  .student-bottom-grid,
  .student-quick-grid,
  .student-filters-grid,
  .student-precision-selectors,
  .student-project-form,
  .student-project-toolbar,
  .student-project-list,
  .student-project-conversations {
    grid-template-columns: 1fr;
  }

  .student-hero-card,
  .student-plan-card,
  .student-section-card,
  .student-settings-card,
  .student-projects-panel {
    padding: 18px;
  }

  .student-hero-copy h1 {
    font-size: 2rem;
  }

  .student-hero-copy p,
  .student-mini-card span,
  .student-quick-card span,
  .chat-top p,
  .composer-note,
  .chat-trust-note,
  .admin-subtitle {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .student-hero-side {
    width: 100%;
    justify-items: stretch;
  }

  .student-package-preview-top,
  .student-package-preview-meta,
  .student-package-preview-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .student-streak-pill,
  .student-hero-side .primary-btn,
  .student-plan-actions .primary-btn,
  .student-plan-actions .secondary-btn,
  .student-section-head .top-link,
  .student-project-form .primary-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .brand-mark-logo-image img,
  .brand-mark-logo svg {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-copy {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .main-nav a,
  .top-cta-link,
  .top-chip,
  .theme-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .top-status,
  .top-cta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-status .top-chip:first-child:last-child {
    grid-column: 1 / -1;
  }

  .top-chip {
    padding: 10px 12px;
    font-size: 0.84rem;
    border-radius: 16px;
    min-height: 44px;
  }

  .theme-toggle {
    height: 44px;
    border-radius: 16px;
  }

  .top-cta-link,
  .top-logout-btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 12px;
  }

  .cta-row,
  .selectors,
  .answer-grid,
  .starter-grid,
  .quick-strip,
  .feature-grid,
  .workspace-grid,
  .stats-grid,
  .admin-grid,
  .admin-generator-layout,
  .auth-stats-band,
  .platform-insights-wrap {
    grid-template-columns: 1fr;
  }

  .info-stat-card-wide {
    grid-column: span 1;
  }

  .workspace-sidebar,
  .workspace-main,
  .sidebar-brand-card,
  .sidebar-panel,
  .onboarding-card,
  .chat-shell,
  .hero-card,
  .auth-card,
  .auth-preview,
  .profile-sidebar-card,
  .profile-panel,
  .info-hero-card,
  .info-page-card,
  .student-hero-card,
  .student-summary-strip,
  .student-quick-card,
  .student-settings-card,
  .student-section-card,
  .admin-sidebar-card,
  .admin-hero-panel,
  .admin-panel,
  .admin-login-card {
    border-radius: 20px;
  }

  .onboarding-card,
  .hero-card,
  .auth-card,
  .profile-panel,
  .info-hero-card,
  .info-page-card,
  .admin-sidebar-card,
  .admin-panel,
  .admin-login-card {
    padding: 18px;
  }

  .chat-shell {
    min-height: 72vh;
  }

  .chat-top,
  .messages,
  .composer-area {
    padding-inline: 14px;
  }

  .chat-top {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .chat-top h2 {
    font-size: 1.05rem;
  }

  .messages {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .message {
    padding: 14px;
    border-radius: 20px;
    line-height: 1.8;
  }

  .answer-grid {
    gap: 10px;
  }

  .answer-section {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .composer {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .plus-btn,
  .send-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .prompt-input {
    min-height: 48px;
    max-height: 150px;
    padding-block: 10px;
  }

  .send-btn {
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
  }

  .hero-actions,
  .hero-meta,
  .example-list,
  .subject-pills,
  .stage-switch,
  .helper-toolbar,
  .inline-actions,
  .message-tools,
  .admin-hero-actions,
  .admin-source-list,
  .admin-domain-actions,
  .admin-table-actions {
    flex-direction: column;
    width: 100%;
  }

  .stage-cards {
    grid-template-columns: 1fr;
  }

  .solve-mode-row {
    grid-template-columns: 1fr;
  }

  .hero-actions > *,
  .hero-meta > *,
  .example-list > *,
  .subject-pills > *,
  .stage-switch > *,
  .helper-toolbar > *,
  .inline-actions > *,
  .message-tools > *,
  .admin-hero-actions > *,
  .admin-source-list > *,
  .admin-domain-actions > *,
  .admin-table-actions > *,
  .admin-stage-btn,
  .admin-choice-chip,
  .admin-choice-chip span {
    width: 100%;
  }

  .stage-card,
  .solve-mode-btn,
  .student-quick-card,
  .student-mini-card,
  .session-card,
  .admin-item,
  .admin-log-item,
  .admin-search-result-card,
  .admin-grade-card,
  .admin-domain-option {
    padding: 14px;
    border-radius: 18px;
  }

  .admin-section-head,
  .sidebar-panel-head,
  .student-section-head,
  .session-card-head,
  .session-card-actions,
  .session-card-meta,
  .admin-search-result-meta,
  .admin-log-meta,
  .chip-row {
    gap: 8px;
  }

  .admin-choice-grid,
  .admin-stage-switch,
  .admin-grade-tags,
  .admin-user-cell,
  .admin-user-stack {
    gap: 8px;
  }

  .admin-domain-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(1280px, calc(100% - 12px));
  }

  .page-wrap {
    padding-bottom: 32px;
  }

  .topbar {
    padding: 12px;
    border-radius: 18px;
  }

  .main-nav,
  .top-status,
  .top-cta {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .hero-logo-mark {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .hero-icon-image {
    width: 48px;
    height: 48px;
  }

  .hero-logo-text {
    font-size: 2.25rem;
  }

  .eyebrow,
  .tag,
  .example-chip,
  .subject-pill,
  .mini-btn,
  .helper-btn,
  .inline-action-btn,
  .admin-source-chip,
  .admin-meta-chip,
  .admin-search-result-meta span,
  .student-achievement-chip,
  .hero-pill,
  .top-chip,
  .stage-chip {
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .auth-tabs {
    flex-direction: column;
  }

  .student-hero-copy h1,
  .auth-card h1,
  .sidebar h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .student-mini-card strong,
  .student-quick-card strong,
  .admin-section-head h3,
  .admin-section-title,
  .chat-top h2,
  .sidebar-title {
    font-size: 0.98rem;
  }

  .admin-users-table {
    min-width: 720px;
  }

.scroll-top-btn {
  bottom: 16px;
  left: 50%;
  width: min(72vw, 320px);
  height: 48px;
  border-radius: 22px;
  font-size: 1rem;
  transform: translate(-50%, 12px);
}

.scroll-top-btn.visible {
  transform: translate(-50%, 0);
}
}

.landing-premium-page {
  display: grid;
  gap: 28px;
}

.landing-premium-page::before,
.auth-premium-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.14), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(21, 128, 61, 0.12), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08), transparent 22%);
  z-index: -1;
}

.premium-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.premium-hero-card,
.premium-mockup-card,
.premium-step-card,
.premium-stage-panel,
.premium-subject-card,
.premium-final-card,
.auth-preview-premium,
.auth-card-premium {
  border: 1px solid rgba(21, 128, 61, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 252, 248, 0.92));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.premium-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  display: grid;
  gap: 22px;
}

.premium-hero-card::after,
.premium-mockup-card::after,
.auth-preview-premium::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);
  pointer-events: none;
}

.premium-hero-copy {
  display: grid;
  gap: 18px;
}

.premium-eyebrow {
  color: var(--brand-strong);
}

.premium-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.premium-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.95;
}

.premium-hero-actions,
.premium-final-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.premium-login-link {
  border-radius: 999px;
}

.premium-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-core-ask {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 245, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-core-label {
  font-weight: 800;
  color: var(--brand-strong);
}

.premium-core-textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  line-height: 1.8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.premium-core-textarea::placeholder {
  color: var(--muted);
}

.premium-core-textarea:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.premium-core-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.premium-core-submit {
  min-width: 160px;
}

.premium-core-helper {
  min-width: 132px;
}

.premium-core-examples {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.premium-core-examples > span {
  font-weight: 700;
}

.chat-ai-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.05);
}

.chat-ai-status-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-strong);
}

.chat-ai-status-pulse {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.36);
  animation: chat-status-pulse 1.8s infinite;
}

.chat-ai-status-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-ai-status-typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.58);
  animation: premium-bounce 1.1s infinite ease-in-out;
}

.chat-ai-status-typing span:nth-child(2) {
  animation-delay: 0.12s;
}

.chat-ai-status-typing span:nth-child(3) {
  animation-delay: 0.24s;
}

.chat-ai-status-copy {
  color: var(--muted);
  font-size: 0.94rem;
}

@keyframes chat-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.34);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.premium-quick-ask {
  display: grid;
  gap: 12px;
}

.premium-quick-box {
  min-height: 68px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.premium-quick-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.premium-hero-visual {
  position: relative;
  min-height: 100%;
  display: grid;
  align-items: stretch;
}

.premium-glow {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.premium-glow-one {
  width: 220px;
  height: 220px;
  top: 24px;
  left: 18px;
  background: rgba(34, 197, 94, 0.16);
}

.premium-glow-two {
  width: 260px;
  height: 260px;
  bottom: 10px;
  right: 12px;
  background: rgba(21, 128, 61, 0.12);
}

.premium-mockup-card {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  padding: 24px;
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.premium-hero-insights {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.premium-insight-card,
.premium-value-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 252, 248, 0.74));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 8px;
}

.premium-insight-card strong,
.premium-value-card strong {
  font-size: 1rem;
}

.premium-insight-card span,
.premium-value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.premium-mockup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.premium-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.36);
}

.premium-mockup-head strong {
  margin-inline-start: auto;
  color: var(--brand-strong);
}

.premium-mockup-chat,
.auth-preview-chat {
  display: grid;
  gap: 12px;
}

.premium-mockup-message,
.auth-preview-bubble {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 6px;
}

.premium-mockup-message span,
.auth-preview-bubble span {
  font-size: 0.82rem;
  color: var(--brand-strong);
  font-weight: 700;
}

.premium-mockup-message p,
.auth-preview-bubble p {
  margin: 0;
  line-height: 1.85;
}

.premium-mockup-message-user,
.auth-preview-bubble-user {
  margin-inline-start: 12%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(255, 255, 255, 0.92));
}

.premium-mockup-message-ai,
.auth-preview-bubble-ai {
  margin-inline-end: 10%;
  box-shadow: inset 3px 0 0 var(--brand);
}

.premium-mockup-typing,
.auth-preview-typing {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 6px;
}

.premium-mockup-typing span,
.auth-preview-typing span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.55);
  animation: premium-bounce 1.1s infinite ease-in-out;
}

.premium-mockup-typing span:nth-child(2),
.auth-preview-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.premium-mockup-typing span:nth-child(3),
.auth-preview-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes premium-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.premium-mockup-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.premium-mockup-footer div {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.1);
  display: grid;
  gap: 4px;
}

.premium-mockup-footer strong {
  color: var(--brand-strong);
}

.premium-mockup-footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.premium-section {
  display: grid;
  gap: 20px;
}

.premium-section-head {
  display: grid;
  gap: 8px;
  text-align: center;
}

.premium-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.premium-section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.9;
}

.premium-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-value-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.08));
  color: var(--brand-strong);
  font-weight: 900;
  font-size: 1.1rem;
}

.premium-section-head-inline {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  text-align: right;
  align-items: end;
}

.premium-steps-grid,
.premium-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-step-card,
.premium-subject-card {
  padding: 24px;
  border-radius: 28px;
  display: grid;
  gap: 12px;
}

.premium-step-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.08));
  color: var(--brand-strong);
  font-weight: 900;
}

.premium-step-card p,
.premium-subject-card span,
.premium-stage-panel span {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.premium-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-stage-panel {
  padding: 22px;
  border-radius: 28px;
  display: grid;
  gap: 10px;
}

.premium-stage-panel-active {
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow: 0 26px 90px rgba(34, 197, 94, 0.14);
}

.premium-onboarding-card {
  border-radius: 32px;
  padding: 28px;
}

.precision-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.precision-quick-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.07);
  color: var(--brand-strong);
  font-size: 0.95rem;
}

.precision-config-panel {
  margin-top: 18px;
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.precision-config-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.precision-config-summary::-webkit-details-marker {
  display: none;
}

.precision-config-summary::after {
  content: "⌄";
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.precision-config-panel[open] .precision-config-summary::after {
  transform: rotate(180deg);
}

.precision-config-body {
  display: grid;
  gap: 18px;
  padding: 0 22px 22px;
}

.premium-selectors {
  margin-top: 6px;
}

.premium-chat-stage .chat-shell {
  border-radius: 34px;
  overflow: hidden;
}

.landing-chat-config {
  display: grid;
  gap: 14px;
  margin: 0 24px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 248, 0.94));
}

.landing-chat-config-head {
  display: grid;
  gap: 6px;
}

.landing-chat-config-head strong {
  color: var(--brand-strong);
  font-size: 1rem;
}

.landing-chat-config-head span {
  color: var(--muted);
  line-height: 1.8;
}

.chat-starter-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-starter-strip-label {
  color: var(--muted);
  font-weight: 700;
}

.chat-starter-strip .subject-pill {
  flex: 0 0 auto;
}

.chat-mini-benefits {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  animation: chat-benefits-reveal 0.65s ease forwards;
  animation-delay: 1.8s;
}

.chat-mini-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.09);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.chat-mini-benefit:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: 0 16px 34px rgba(21, 128, 61, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

@keyframes chat-benefits-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-solve-mode-row {
  margin: 0;
}

.landing-precision-selectors {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-accordion-group {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.landing-accordion {
  border: 1px solid rgba(21, 128, 61, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 248, 0.9));
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.landing-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.landing-accordion-summary::-webkit-details-marker {
  display: none;
}

.landing-accordion-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.landing-accordion-hint {
  color: var(--brand-strong);
  font-weight: 800;
  white-space: nowrap;
}

.landing-accordion-summary::after {
  content: "⌄";
  color: var(--brand-strong);
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.landing-accordion[open] .landing-accordion-summary::after {
  transform: rotate(180deg);
}

.landing-accordion-body {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.premium-chat-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.premium-chat-copy {
  display: grid;
  gap: 8px;
}

.premium-chat-copy h2,
.premium-final-card h2 {
  margin: 0;
}

.premium-chat-copy p,
.premium-final-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.premium-final-card {
  border-radius: 32px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.runtime-support-hidden {
  display: none !important;
  visibility: hidden !important;
}

.auth-shell-premium {
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: stretch;
}

.auth-shell-premium > * {
  direction: rtl;
}

.auth-shell-premium > .auth-preview,
.auth-shell-premium > .auth-card {
  order: 0;
}

.auth-card-premium,
.auth-preview-premium {
  position: relative;
  overflow: hidden;
}

.auth-card-premium {
  padding: 30px;
}

.auth-preview-premium {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.auth-preview-premium-head {
  display: grid;
  gap: 12px;
}

.auth-trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-trust-strip span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(34, 197, 94, 0.06);
  color: var(--brand-strong);
  font-size: 0.92rem;
}

.auth-guest-cta {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 10px;
}

.auth-guest-cta span {
  color: var(--muted);
  line-height: 1.8;
}

.auth-security-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 12px;
}

.auth-security-note strong {
  color: var(--brand-strong);
}

.auth-security-points {
  display: grid;
  gap: 8px;
}

.auth-security-points span {
  color: var(--muted);
  line-height: 1.8;
}

.auth-preview-points-premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-preview-points-premium .auth-preview-point {
  display: grid;
  gap: 6px;
  align-content: start;
}

.auth-preview-points-premium .auth-preview-point strong {
  font-size: 1rem;
}

body.theme-dark .premium-hero-card,
body.theme-dark .premium-mockup-card,
body.theme-dark .premium-step-card,
body.theme-dark .premium-stage-panel,
body.theme-dark .premium-subject-card,
body.theme-dark .premium-final-card,
body.theme-dark .auth-preview-premium,
body.theme-dark .auth-card-premium {
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(14, 22, 17, 0.94), rgba(10, 17, 13, 0.94));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .premium-quick-box,
body.theme-dark .premium-core-ask,
body.theme-dark .premium-core-textarea,
body.theme-dark .premium-mockup-message,
body.theme-dark .landing-chat-config,
body.theme-dark .chat-ai-status,
body.theme-dark .auth-preview-bubble,
body.theme-dark .premium-mockup-footer div,
body.theme-dark .auth-trust-strip span,
body.theme-dark .premium-insight-card,
body.theme-dark .premium-value-card,
body.theme-dark .chat-mini-benefit,
body.theme-dark .precision-config-panel,
body.theme-dark .landing-accordion {
  background: rgba(18, 28, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark .landing-accordion-summary,
body.theme-dark .landing-accordion-hint,
body.theme-dark .premium-core-label {
  color: #d8f6df;
}

body.theme-dark .premium-core-textarea::placeholder {
  color: var(--muted);
}

body.theme-dark .precision-quick-pills span {
  background: rgba(18, 39, 26, 0.88);
  border-color: rgba(94, 227, 139, 0.18);
  color: #c6f6d5;
}

body.theme-dark .premium-hero-copy p,
body.theme-dark .premium-step-card p,
body.theme-dark .premium-subject-card span,
body.theme-dark .premium-stage-panel span,
body.theme-dark .premium-chat-copy p,
body.theme-dark .premium-final-card p,
body.theme-dark .premium-insight-card span,
body.theme-dark .premium-value-card p,
body.theme-dark .chat-ai-status-copy,
body.theme-dark .chat-starter-strip-label {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .premium-hero-grid,
  .premium-section-head-inline,
  .premium-steps-grid,
  .premium-value-grid,
  .premium-subject-grid,
  .premium-stage-tabs,
  .auth-preview-points-premium,
  .premium-hero-insights {
    grid-template-columns: 1fr;
  }

  .premium-final-card,
  .premium-chat-top {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-precision-selectors {
    grid-template-columns: 1fr;
  }

  .auth-shell-premium {
    grid-template-columns: 1fr;
  }

  .student-progress-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .premium-hero-card,
  .premium-mockup-card,
  .premium-step-card,
  .premium-stage-panel,
  .premium-subject-card,
  .premium-final-card,
  .auth-card-premium,
  .auth-preview-premium {
    border-radius: 24px;
    padding: 20px;
  }

  .premium-hero-copy h1 {
    font-size: 2.2rem;
  }

  .premium-hero-actions,
  .premium-final-actions,
  .premium-core-actions,
  .premium-core-examples,
  .chat-starter-strip,
  .chat-mini-benefits,
  .premium-quick-chips,
  .auth-trust-strip,
  .precision-quick-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .premium-hero-actions > *,
  .premium-final-actions > *,
  .premium-core-actions > *,
  .premium-quick-chips > *,
  .auth-trust-strip > * {
    width: 100%;
  }

  .premium-mockup-footer {
    grid-template-columns: 1fr;
  }

  .chat-ai-status {
    align-items: flex-start;
  }

  .premium-quick-box {
    min-height: 58px;
    font-size: 0.95rem;
  }

  .precision-config-summary,
  .precision-config-body {
    padding-inline: 16px;
  }

  .landing-chat-config {
    margin: 0 18px;
    padding: 16px;
  }

  .premium-chat-stage .composer-area {
    position: sticky;
    bottom: 8px;
    z-index: 7;
    margin-top: 12px;
    border-radius: 22px 22px 0 0;
    backdrop-filter: blur(14px);
  }

  .prompt-input {
    min-height: 84px;
  }

  .chat-starter-strip,
  .chat-mini-benefits {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .chat-starter-strip::-webkit-scrollbar,
  .chat-mini-benefits::-webkit-scrollbar {
    display: none;
  }

  .landing-accordion-summary {
    padding: 18px;
    align-items: start;
  }

  .landing-accordion-body {
    padding: 0 18px 18px;
  }

  .auth-preview-premium {
    order: 2;
  }

  .auth-card-premium {
    order: 1;
  }

.auth-guest-cta .secondary-btn {
  width: 100%;
}
}

@media (max-width: 960px) {
  .admin-toolbar,
  .admin-user-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-user-actions {
    flex-direction: column;
  }

  .admin-user-actions > * {
    width: 100%;
  }
}
