:root {
  --bg: #0c1424;
  --bg-secondary: rgba(11, 20, 38, 0.82);
  --surface: rgba(16, 28, 52, 0.78);
  --surface-strong: rgba(18, 34, 64, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #edf5ff;
  --text-muted: rgba(237, 245, 255, 0.72);
  --text-soft: rgba(237, 245, 255, 0.58);
  --accent: #6ee7c8;
  --accent-strong: #25c59c;
  --accent-soft: rgba(110, 231, 200, 0.14);
  --accent-secondary: #ffbf6b;
  --accent-danger: #ff7d7d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(140deg, #0a1324 0%, #101d37 46%, #0c1526 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}

body::before {
  top: -120px;
  left: -120px;
  background: rgba(74, 134, 255, 0.18);
}

body::after {
  right: -160px;
  bottom: -180px;
  background: rgba(255, 161, 76, 0.14);
}

body.theme-teacher {
  --accent: #f08d56;
  --accent-strong: #d46a2e;
  --accent-soft: rgba(240, 141, 86, 0.14);
  --accent-secondary: #ffd27d;
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 141, 86, 0.16), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(255, 205, 117, 0.08), transparent 24%),
    linear-gradient(140deg, #1a1311 0%, #241a16 46%, #17100d 100%);
}

body.theme-mars {
  --bg: #180f12;
  --surface: rgba(40, 22, 18, 0.76);
  --surface-strong: rgba(54, 30, 22, 0.92);
  --line: rgba(255, 201, 167, 0.14);
  --line-strong: rgba(255, 201, 167, 0.26);
  --text: #fff6ef;
  --text-muted: rgba(255, 246, 239, 0.74);
  --text-soft: rgba(255, 246, 239, 0.58);
  --accent: #ff9a55;
  --accent-strong: #ff6432;
  --accent-soft: rgba(255, 154, 85, 0.16);
  --accent-secondary: #ffd66f;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 140, 83, 0.14), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 205, 117, 0.09), transparent 20%),
    linear-gradient(145deg, #130d12 0%, #24141a 42%, #140d11 100%);
}

body.theme-mars::before {
  background: rgba(255, 112, 67, 0.18);
}

body.theme-mars::after {
  background: rgba(255, 201, 107, 0.12);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 26px 20px 64px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: rgba(12, 20, 36, 0.62);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #061320;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text-soft);
}

.brand-title,
.hero-title,
.section-title,
.panel-title {
  font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.35;
  white-space: normal;
}

.brand-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

.nav-pill,
.action-pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-pill:hover,
.action-pill:hover,
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill.active,
.action-pill.active,
.chip.active {
  color: #08131f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  margin-bottom: 24px;
}

.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.surface {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 100%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  margin: 10px 0 14px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.16;
}

.hero-desc,
.panel-copy,
.section-copy {
  position: relative;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions,
.hero-meta,
.filter-bar,
.tag-row,
.stats-grid,
.card-grid,
.dual-grid,
.quick-facts,
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.stats-grid {
  margin-top: 22px;
}

.stat-card {
  flex: 1 1 180px;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--text-soft);
  font-size: 13px;
}

.hero-side {
  display: grid;
  gap: 20px;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.panel-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.panel-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.panel-list li span:first-child {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.quick-facts {
  margin-top: 16px;
}

.section {
  margin-top: 26px;
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.section-copy {
  max-width: 760px;
}

.card-grid {
  align-items: stretch;
}

.card-grid > *,
.dual-grid > * {
  flex: 1 1 320px;
  min-width: 0;
}

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

.content-card,
.summary-card,
.prompt-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-card h3,
.summary-card h3,
.prompt-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.content-card p,
.summary-card p,
.prompt-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.number-badge {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-right: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #07131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

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

.question-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 100%), var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.question-card[open] {
  border-color: rgba(255, 255, 255, 0.22);
}

.question-card summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
}

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

.question-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.question-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.question-title h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.4;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
}

.question-body {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}

.info-block {
  padding: 16px 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.info-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.info-block p,
.info-block li {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.info-block ul,
.feature-list,
.simple-list {
  margin: 0;
  padding-left: 18px;
}

.simple-list {
  color: var(--text-muted);
  line-height: 1.8;
}

.feature-list li + li,
.simple-list li + li {
  margin-top: 6px;
}

.tag-row {
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

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

.metric-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
}

.metric-track {
  height: 10px;
  margin: 14px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.quote-block {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  line-height: 1.8;
}

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

.toolbar button,
.segmented button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  font: inherit;
}

.toolbar button:hover,
.segmented button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.toolbar button.active,
.segmented button.active {
  color: #08131f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

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

.group-block + .group-block {
  margin-top: 22px;
}

.group-banner {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 75%), var(--surface);
  box-shadow: var(--shadow);
}

.group-banner h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.group-banner p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.split-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.divider-label {
  margin: 18px 0 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-note {
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  line-height: 1.72;
}

.hidden {
  display: none !important;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, 18px, 0) scale(1.08);
  }
}

@media (max-width: 1040px) {
  .hero,
  .dual-grid,
  .matrix {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px 14px 44px;
  }

  .topbar {
    position: static;
    border-radius: 24px;
    padding: 16px;
  }

  .brand-block,
  .topbar,
  .question-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-meta {
    justify-content: flex-start;
  }

  .surface,
  .content-card,
  .summary-card,
  .prompt-card,
  .group-banner {
    padding: 20px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .brand-logo {
    width: 76px;
    height: 76px;
  }

  .stat-card {
    flex-basis: 100%;
  }
}

.form-panel,
.progress-panel {
  display: grid;
  gap: 18px;
}

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

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea,
.preview-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.preview-area:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea,
.preview-area {
  resize: vertical;
  min-height: 132px;
  line-height: 1.7;
}

.preview-area {
  min-height: 260px;
}

.field input::placeholder,
.field textarea::placeholder,
.preview-area::placeholder {
  color: var(--text-soft);
}

.helper-text,
.status-line {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}

.status-line {
  min-height: 20px;
}

.panel-actions,
.response-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  padding: 11px 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  color: #08131f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ghost-button {
  color: var(--text-muted);
  background: transparent;
}

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

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

.answer-panel strong {
  display: block;
  margin-bottom: 12px;
}

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

.choice-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  line-height: 1.45;
  padding: 12px 14px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.choice-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.choice-button.is-selected {
  color: #08131f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.choice-button.is-selected .choice-tag {
  color: rgba(8, 19, 31, 0.72);
}

.choice-copy {
  display: block;
}

.choice-tag {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.counter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 12px;
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.progress-track-large {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track-large .progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  transition: width 220ms ease;
}

.notice-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.notice-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.notice-card p,
.notice-card li {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

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

.summary-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

.summary-list li + li {
  margin-top: 6px;
}

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

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

@media (max-width: 760px) {
  .form-grid,
  .inline-fields {
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .response-toolbar,
  .choice-grid {
    gap: 8px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

.voice-toolbar,
.mission-portal,
.ceremony-actions,
.ceremony-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.voice-indicator,
.launch-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 12px;
}

.voice-indicator.is-live,
.launch-pill.is-live {
  color: #08131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

.audio-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.audio-preview audio {
  width: 100%;
}

.mission-portal {
  margin-top: 14px;
}

.mission-portal .helper-text {
  flex: 1 1 240px;
}

.ceremony-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 10, 18, 0.74);
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.ceremony-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ceremony-shell {
  position: relative;
  width: min(900px, 100%);
  padding: 34px;
  border-radius: 34px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ceremony-shell::before,
.ceremony-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.48;
  pointer-events: none;
}

.ceremony-shell::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: rgba(255, 184, 107, 0.18);
}

.ceremony-shell::after {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -90px;
  background: rgba(110, 231, 200, 0.14);
}

.ceremony-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.ceremony-copy h2,
.ceremony-card h3 {
  margin: 0 0 10px;
  font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.ceremony-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.ceremony-copy p,
.ceremony-card p,
.ceremony-card li {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.ceremony-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.ceremony-orb {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.54), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255, 154, 85, 0.9), rgba(255, 100, 50, 0.72) 60%, transparent 70%);
  box-shadow:
    0 0 0 12px rgba(255, 154, 85, 0.08),
    0 0 48px rgba(255, 100, 50, 0.26);
  animation: pulseOrb 2.8s ease-in-out infinite;
}

.ceremony-card ul {
  margin: 0;
  padding-left: 18px;
}

.ceremony-status {
  min-height: 22px;
  font-size: 13px;
  color: var(--text-soft);
}

@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 1040px) {
  .ceremony-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ceremony-shell {
    padding: 22px;
  }

  .ceremony-actions,
  .ceremony-meta {
    gap: 8px;
  }
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 22px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.button-as-link {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.button-as-link:hover {
  color: inherit;
}

.compact-card {
  padding: 18px 20px;
}

.compact-card h3 {
  margin-top: 0;
}

.receipt-code {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

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

.portal-card {
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.portal-card p:last-child {
  margin-bottom: 0;
}

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

.admin-list,
.admin-detail {
  display: grid;
  gap: 18px;
}

.admin-item {
  appearance: none;
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admin-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.admin-item h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.admin-item p:last-child {
  margin-bottom: 0;
}

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

.admin-detail-card {
  display: grid;
  gap: 16px;
}

.json-box {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.58);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.ceremony-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

#teacherConnection.is-online,
#marsConnection.is-online {
  color: #08131f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

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

/* Brand refresh: use light warm surfaces so the dark-blue Nolan logo stays legible. */
body.theme-teacher,
body.theme-mars {
  --bg: #f8f2ea;
  --bg-secondary: rgba(255, 251, 245, 0.84);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 252, 247, 0.96);
  --line: rgba(61, 80, 108, 0.12);
  --line-strong: rgba(61, 80, 108, 0.22);
  --text: #27364d;
  --text-muted: rgba(39, 54, 77, 0.78);
  --text-soft: rgba(39, 54, 77, 0.58);
  --shadow: 0 22px 48px rgba(131, 103, 76, 0.12);
}

body.theme-teacher {
  --accent: #4eb79a;
  --accent-strong: #2f9f82;
  --accent-soft: rgba(78, 183, 154, 0.14);
  --accent-secondary: #f2b163;
  background:
    radial-gradient(circle at 14% 14%, rgba(78, 183, 154, 0.14), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(242, 177, 99, 0.12), transparent 22%),
    linear-gradient(145deg, #fffaf3 0%, #f6eee3 48%, #fcf7ef 100%);
}

body.theme-teacher::before {
  background: rgba(78, 183, 154, 0.14);
}

body.theme-teacher::after {
  background: rgba(242, 177, 99, 0.14);
}

body.theme-mars {
  --surface: rgba(255, 248, 242, 0.84);
  --surface-strong: rgba(255, 251, 247, 0.96);
  --line: rgba(143, 96, 63, 0.14);
  --line-strong: rgba(143, 96, 63, 0.24);
  --text: #4c3327;
  --text-muted: rgba(76, 51, 39, 0.76);
  --text-soft: rgba(76, 51, 39, 0.58);
  --accent: #ef9153;
  --accent-strong: #da6c34;
  --accent-soft: rgba(239, 145, 83, 0.14);
  --accent-secondary: #ffd06f;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 179, 110, 0.16), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(255, 142, 98, 0.14), transparent 20%),
    linear-gradient(145deg, #fff7f0 0%, #f8ecdf 48%, #fff9f3 100%);
}

body.theme-mars::before {
  background: rgba(255, 169, 102, 0.16);
}

body.theme-mars::after {
  background: rgba(255, 129, 91, 0.12);
}

body.theme-teacher .topbar,
body.theme-mars .topbar {
  background: rgba(255, 250, 244, 0.9);
  border-color: var(--line-strong);
  box-shadow: 0 18px 42px rgba(131, 103, 76, 0.12);
}

body.theme-teacher .brand-block,
body.theme-mars .brand-block {
  gap: 18px;
}

body.theme-teacher .brand-copy,
body.theme-mars .brand-copy {
  display: grid;
  gap: 4px;
}

body.theme-teacher .eyebrow,
body.theme-mars .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.theme-teacher .brand-title,
body.theme-mars .brand-title {
  font-size: clamp(1.22rem, 2vw, 1.82rem);
}

body.theme-teacher .brand-subtitle,
body.theme-mars .brand-subtitle {
  max-width: 560px;
  line-height: 1.72;
}

body.theme-teacher .brand-logo,
body.theme-mars .brand-logo {
  width: 112px;
  height: 112px;
  padding: 12px;
  background: #fffdfa;
  border-color: rgba(61, 80, 108, 0.12);
  box-shadow: 0 16px 34px rgba(131, 103, 76, 0.14);
}

body.theme-teacher .ceremony-logo,
body.theme-mars .ceremony-logo {
  width: 128px;
  height: 128px;
  padding: 14px;
  border-radius: 26px;
  background: #fffdfa;
  border: 1px solid rgba(61, 80, 108, 0.12);
  box-shadow: 0 16px 34px rgba(131, 103, 76, 0.14);
}

body.theme-teacher .nav-pill,
body.theme-teacher .action-pill,
body.theme-teacher .chip,
body.theme-teacher .secondary-button,
body.theme-teacher .ghost-button,
body.theme-teacher .answer-panel,
body.theme-teacher .stat-card,
body.theme-teacher .panel-list li,
body.theme-teacher .content-card,
body.theme-teacher .summary-card,
body.theme-teacher .prompt-card,
body.theme-teacher .admin-item,
body.theme-teacher .portal-card,
body.theme-teacher .question-card,
body.theme-teacher .notice-card,
body.theme-teacher .choice-button,
body.theme-teacher .board-cell,
body.theme-teacher .mission-button,
body.theme-teacher .slot-button,
body.theme-teacher .equation-input,
body.theme-teacher .mission-stage,
body.theme-teacher .ceremony-card,
body.theme-teacher .json-box,
body.theme-mars .nav-pill,
body.theme-mars .action-pill,
body.theme-mars .chip,
body.theme-mars .secondary-button,
body.theme-mars .ghost-button,
body.theme-mars .answer-panel,
body.theme-mars .stat-card,
body.theme-mars .panel-list li,
body.theme-mars .content-card,
body.theme-mars .summary-card,
body.theme-mars .prompt-card,
body.theme-mars .admin-item,
body.theme-mars .portal-card,
body.theme-mars .question-card,
body.theme-mars .notice-card,
body.theme-mars .choice-button,
body.theme-mars .board-cell,
body.theme-mars .mission-button,
body.theme-mars .slot-button,
body.theme-mars .equation-input,
body.theme-mars .mission-stage,
body.theme-mars .ceremony-card,
body.theme-mars .json-box {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-color: var(--line);
}

body.theme-teacher .surface,
body.theme-teacher .group-banner,
body.theme-teacher .ceremony-shell,
body.theme-mars .surface,
body.theme-mars .group-banner,
body.theme-mars .ceremony-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4) 100%),
    var(--surface);
}

body.theme-teacher .surface::before,
body.theme-teacher .group-banner::before,
body.theme-mars .surface::before,
body.theme-mars .group-banner::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.52), transparent 42%);
}

body.theme-teacher .nav-pill:hover,
body.theme-teacher .action-pill:hover,
body.theme-teacher .chip:hover,
body.theme-teacher .secondary-button:hover,
body.theme-teacher .ghost-button:hover,
body.theme-teacher .choice-button:hover,
body.theme-teacher .board-cell:hover,
body.theme-teacher .mission-button:hover,
body.theme-teacher .slot-button:hover,
body.theme-mars .nav-pill:hover,
body.theme-mars .action-pill:hover,
body.theme-mars .chip:hover,
body.theme-mars .secondary-button:hover,
body.theme-mars .ghost-button:hover,
body.theme-mars .choice-button:hover,
body.theme-mars .board-cell:hover,
body.theme-mars .mission-button:hover,
body.theme-mars .slot-button:hover {
  background: rgba(255, 255, 255, 0.94);
}

body.theme-teacher .nav-pill.active,
body.theme-teacher .action-pill.active,
body.theme-teacher .chip.active,
body.theme-teacher .primary-button,
body.theme-teacher .choice-button.is-active,
body.theme-teacher .board-cell.is-active,
body.theme-teacher .mission-button.is-active,
body.theme-teacher .slot-button.is-active,
body.theme-teacher #teacherConnection.is-online,
body.theme-teacher #marsConnection.is-online,
body.theme-mars .nav-pill.active,
body.theme-mars .action-pill.active,
body.theme-mars .chip.active,
body.theme-mars .primary-button,
body.theme-mars .choice-button.is-active,
body.theme-mars .board-cell.is-active,
body.theme-mars .mission-button.is-active,
body.theme-mars .slot-button.is-active,
body.theme-mars #teacherConnection.is-online,
body.theme-mars #marsConnection.is-online {
  color: #fffdfa;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

body.theme-teacher .json-box,
body.theme-mars .json-box {
  background: rgba(249, 245, 239, 0.92);
}

body.theme-teacher .ceremony-overlay,
body.theme-mars .ceremony-overlay {
  background: rgba(244, 236, 227, 0.74);
}

/* Topic Advisor alignment: unify platform pages with the advisor desk's blue-white glass style. */
body.theme-teacher,
body.theme-mars {
  --page-bg: #edf1fb;
  --page-bg-accent: #dce4fb;
  --paper: rgba(255, 255, 255, 0.84);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #172447;
  --muted: #5d6988;
  --brand: #4358a4;
  --brand-strong: #31468d;
  --brand-secondary: #7a8dd8;
  --brand-soft: rgba(67, 88, 164, 0.12);
  --line: rgba(23, 36, 71, 0.1);
  --line-strong: rgba(23, 36, 71, 0.18);
  --surface: var(--paper);
  --surface-strong: var(--paper-strong);
  --text: var(--ink);
  --text-muted: var(--muted);
  --text-soft: rgba(93, 105, 136, 0.78);
  --accent: var(--brand);
  --accent-strong: var(--brand-strong);
  --accent-secondary: var(--brand-secondary);
  --accent-soft: var(--brand-soft);
  --shadow: 0 24px 60px rgba(27, 43, 90, 0.12);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(67, 88, 164, 0.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(111, 138, 221, 0.16), transparent 28%),
    linear-gradient(160deg, var(--page-bg) 0%, #f7f9ff 56%, var(--page-bg-accent) 100%);
}

body.theme-mars {
  --brand: #576dc1;
  --brand-strong: #4054a7;
  --brand-secondary: #91a3ea;
  --brand-soft: rgba(87, 109, 193, 0.12);
  background:
    radial-gradient(circle at top left, rgba(87, 109, 193, 0.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(145, 163, 234, 0.16), transparent 28%),
    linear-gradient(160deg, #eef2ff 0%, #f8faff 56%, #dde6ff 100%);
}

body.theme-teacher::before,
body.theme-mars::before {
  background: rgba(67, 88, 164, 0.14);
}

body.theme-teacher::after,
body.theme-mars::after {
  background: rgba(122, 141, 216, 0.12);
}

body.theme-teacher .page-shell,
body.theme-mars .page-shell {
  max-width: 1280px;
}

body.theme-teacher .topbar,
body.theme-mars .topbar {
  position: static;
  padding: 18px 26px;
  border-radius: 30px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

body.theme-teacher .brand-block,
body.theme-mars .brand-block {
  gap: 20px;
}

body.theme-teacher .brand-logo,
body.theme-mars .brand-logo {
  width: min(150px, 28vw);
  max-width: none;
  height: auto;
  padding: 12px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 36, 71, 0.08);
  box-shadow: 0 16px 36px rgba(49, 70, 141, 0.1);
}

body.theme-teacher .ceremony-logo,
body.theme-mars .ceremony-logo {
  width: auto;
  max-width: min(38vw, 240px);
  height: clamp(92px, 11vw, 128px);
  padding: 14px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 36, 71, 0.08);
  box-shadow: 0 16px 36px rgba(49, 70, 141, 0.1);
}

body.theme-teacher .eyebrow,
body.theme-mars .eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.theme-teacher .brand-title,
body.theme-teacher .hero-title,
body.theme-teacher .section-title,
body.theme-teacher .panel-title,
body.theme-teacher .question-title h3,
body.theme-teacher .notice-card h3,
body.theme-teacher .content-card h3,
body.theme-teacher .summary-card h3,
body.theme-teacher .prompt-card h3,
body.theme-teacher .admin-item h3,
body.theme-teacher .group-banner h3,
body.theme-teacher .ceremony-copy h2,
body.theme-teacher .ceremony-card h3,
body.theme-mars .brand-title,
body.theme-mars .hero-title,
body.theme-mars .section-title,
body.theme-mars .panel-title,
body.theme-mars .question-title h3,
body.theme-mars .notice-card h3,
body.theme-mars .content-card h3,
body.theme-mars .summary-card h3,
body.theme-mars .prompt-card h3,
body.theme-mars .admin-item h3,
body.theme-mars .group-banner h3,
body.theme-mars .ceremony-copy h2,
body.theme-mars .ceremony-card h3 {
  font-family: "Noto Serif SC", "Songti SC", "STZhongsong", serif;
  letter-spacing: 0;
  line-height: 1.16;
}

body.theme-teacher .brand-title,
body.theme-mars .brand-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

body.theme-teacher .brand-subtitle,
body.theme-teacher .hero-desc,
body.theme-teacher .section-copy,
body.theme-teacher .panel-copy,
body.theme-teacher .helper-text,
body.theme-teacher .status-line,
body.theme-mars .brand-subtitle,
body.theme-mars .hero-desc,
body.theme-mars .section-copy,
body.theme-mars .panel-copy,
body.theme-mars .helper-text,
body.theme-mars .status-line {
  color: var(--muted);
}

body.theme-teacher .surface,
body.theme-teacher .group-banner,
body.theme-teacher .content-card,
body.theme-teacher .summary-card,
body.theme-teacher .prompt-card,
body.theme-teacher .question-card,
body.theme-teacher .notice-card,
body.theme-teacher .stat-card,
body.theme-teacher .panel-list li,
body.theme-teacher .answer-panel,
body.theme-teacher .admin-item,
body.theme-teacher .portal-card,
body.theme-teacher .ceremony-card,
body.theme-teacher .ceremony-shell,
body.theme-teacher .json-box,
body.theme-mars .surface,
body.theme-mars .group-banner,
body.theme-mars .content-card,
body.theme-mars .summary-card,
body.theme-mars .prompt-card,
body.theme-mars .question-card,
body.theme-mars .notice-card,
body.theme-mars .stat-card,
body.theme-mars .panel-list li,
body.theme-mars .answer-panel,
body.theme-mars .admin-item,
body.theme-mars .portal-card,
body.theme-mars .ceremony-card,
body.theme-mars .ceremony-shell,
body.theme-mars .json-box {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.82) 100%);
  box-shadow: var(--shadow);
}

body.theme-teacher .surface::before,
body.theme-teacher .group-banner::before,
body.theme-mars .surface::before,
body.theme-mars .group-banner::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.58), transparent 40%);
}

body.theme-teacher .nav-pill,
body.theme-teacher .action-pill,
body.theme-teacher .chip,
body.theme-teacher .secondary-button,
body.theme-teacher .ghost-button,
body.theme-teacher .choice-button,
body.theme-teacher .toolbar button,
body.theme-teacher .segmented button,
body.theme-mars .nav-pill,
body.theme-mars .action-pill,
body.theme-mars .chip,
body.theme-mars .secondary-button,
body.theme-mars .ghost-button,
body.theme-mars .choice-button,
body.theme-mars .toolbar button,
body.theme-mars .segmented button {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(49, 70, 141, 0.08);
}

body.theme-teacher .nav-pill:hover,
body.theme-teacher .action-pill:hover,
body.theme-teacher .chip:hover,
body.theme-teacher .secondary-button:hover,
body.theme-teacher .ghost-button:hover,
body.theme-teacher .choice-button:hover,
body.theme-teacher .toolbar button:hover,
body.theme-teacher .segmented button:hover,
body.theme-mars .nav-pill:hover,
body.theme-mars .action-pill:hover,
body.theme-mars .chip:hover,
body.theme-mars .secondary-button:hover,
body.theme-mars .ghost-button:hover,
body.theme-mars .choice-button:hover,
body.theme-mars .toolbar button:hover,
body.theme-mars .segmented button:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(67, 88, 164, 0.18);
}

body.theme-teacher .nav-pill.active,
body.theme-teacher .action-pill.active,
body.theme-teacher .chip.active,
body.theme-teacher .primary-button,
body.theme-teacher .choice-button.is-selected,
body.theme-teacher .choice-button.is-active,
body.theme-teacher .toolbar button.active,
body.theme-teacher .segmented button.active,
body.theme-teacher #teacherConnection.is-online,
body.theme-teacher #marsConnection.is-online,
body.theme-mars .nav-pill.active,
body.theme-mars .action-pill.active,
body.theme-mars .chip.active,
body.theme-mars .primary-button,
body.theme-mars .choice-button.is-selected,
body.theme-mars .choice-button.is-active,
body.theme-mars .toolbar button.active,
body.theme-mars .segmented button.active,
body.theme-mars #teacherConnection.is-online,
body.theme-mars #marsConnection.is-online {
  color: #f6f8ff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 26px rgba(67, 88, 164, 0.22);
}

body.theme-teacher .choice-button.is-selected .choice-tag,
body.theme-teacher .chip.active strong,
body.theme-mars .choice-button.is-selected .choice-tag,
body.theme-mars .chip.active strong {
  color: rgba(246, 248, 255, 0.82);
}

body.theme-teacher .field input,
body.theme-teacher .field select,
body.theme-teacher .field textarea,
body.theme-teacher .preview-area,
body.theme-mars .field input,
body.theme-mars .field select,
body.theme-mars .field textarea,
body.theme-mars .preview-area {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

body.theme-teacher .field input:focus,
body.theme-teacher .field select:focus,
body.theme-teacher .field textarea:focus,
body.theme-teacher .preview-area:focus,
body.theme-mars .field input:focus,
body.theme-mars .field select:focus,
body.theme-mars .field textarea:focus,
body.theme-mars .preview-area:focus {
  border-color: rgba(67, 88, 164, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(67, 88, 164, 0.1);
}

body.theme-teacher .field input::placeholder,
body.theme-teacher .field textarea::placeholder,
body.theme-teacher .preview-area::placeholder,
body.theme-mars .field input::placeholder,
body.theme-mars .field textarea::placeholder,
body.theme-mars .preview-area::placeholder {
  color: rgba(93, 105, 136, 0.72);
}

body.theme-teacher .meta-chip,
body.theme-teacher .counter-pill,
body.theme-teacher .voice-indicator,
body.theme-teacher .launch-pill,
body.theme-mars .meta-chip,
body.theme-mars .counter-pill,
body.theme-mars .voice-indicator,
body.theme-mars .launch-pill {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 1px solid rgba(67, 88, 164, 0.12);
}

body.theme-teacher .voice-indicator.is-live,
body.theme-teacher .launch-pill.is-live,
body.theme-mars .voice-indicator.is-live,
body.theme-mars .launch-pill.is-live {
  color: #f6f8ff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

body.theme-teacher .progress-track-large,
body.theme-mars .progress-track-large {
  background: rgba(67, 88, 164, 0.1);
}

body.theme-teacher .progress-fill,
body.theme-mars .progress-fill {
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
}

body.theme-teacher .quote-block,
body.theme-mars .quote-block {
  background: rgba(255, 255, 255, 0.82);
  border-left-color: var(--brand);
  color: var(--muted);
}

body.theme-teacher .json-box,
body.theme-mars .json-box {
  background: rgba(247, 249, 255, 0.9);
  color: var(--muted);
}

body.theme-teacher .portal-card:hover,
body.theme-teacher .admin-item:hover,
body.theme-mars .portal-card:hover,
body.theme-mars .admin-item:hover {
  border-color: rgba(67, 88, 164, 0.18);
  box-shadow: 0 24px 38px rgba(49, 70, 141, 0.12);
}

body.theme-teacher .ceremony-overlay,
body.theme-mars .ceremony-overlay {
  background: rgba(237, 241, 251, 0.76);
}

body.theme-teacher .ceremony-orb,
body.theme-mars .ceremony-orb {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(91, 113, 193, 0.88), rgba(49, 70, 141, 0.78) 60%, transparent 70%);
  box-shadow:
    0 0 0 12px rgba(67, 88, 164, 0.08),
    0 0 48px rgba(49, 70, 141, 0.18);
}

@media (max-width: 760px) {
  body.theme-teacher .brand-logo,
  body.theme-mars .brand-logo {
    width: 110px;
    height: auto;
  }

  body.theme-teacher .topbar,
  body.theme-mars .topbar {
    padding: 16px 18px;
  }
}
