:root {
  --bg: #f7fafb;
  --sidebar: #f3f9fa;
  --surface: #ffffff;
  --surface-soft: #f5fbfb;
  --text: #17233c;
  --muted: #6f7c90;
  --line: #dce5eb;
  --line-strong: #c6d6de;
  --teal: #00a8a8;
  --teal-dark: #008a8d;
  --teal-soft: #e5fbfa;
  --yellow: #ffc400;
  --yellow-soft: #fff8df;
  --red: #ff5f6d;
  --red-soft: #fff0f2;
  --blue: #3478f6;
  --shadow: 0 14px 34px rgba(21, 46, 61, 0.08);
  --radius: 8px;
  --sidebar-width: 220px;
  --topbar-height: 80px;
  --page-max-width: none;
  --ui-font-scale: 1;
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: calc(16px * var(--ui-font-scale));
  letter-spacing: 0;
}

body.site-body {
  min-width: 0;
  background: #f7fafb;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button {
  color: inherit;
}

.site-app {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

:root[data-public-header-style="solid"] .site-header {
  background: var(--surface);
  backdrop-filter: none;
}

:root[data-public-header-style="minimal"] .site-header {
  height: 64px;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-brand,
.brand {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.site-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav button {
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #33425a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav button:hover {
  background: #edf7f8;
}

.site-primary,
.site-secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 800;
}

.site-primary {
  border: 0;
  color: #ffffff;
  background: #00a8a8;
  box-shadow: 0 12px 24px rgba(0, 168, 168, 0.2);
}

.site-secondary {
  border: 1px solid var(--line-strong);
  color: #23324a;
  background: #ffffff;
}

.site-primary.large,
.site-secondary.large {
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
}

.site-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 6vw, 84px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(229, 251, 250, 0.78), rgba(255, 255, 255, 0) 48%),
    #ffffff;
}

:root[data-public-background-style="clean"] .site-hero,
:root[data-public-background-style="clean"] .login-page {
  background: var(--surface);
}

:root[data-public-background-style="grid"] .site-hero,
:root[data-public-background-style="grid"] .login-page {
  background:
    linear-gradient(rgba(0, 168, 168, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 168, 0.055) 1px, transparent 1px),
    linear-gradient(120deg, rgba(229, 251, 250, 0.72), transparent 56%),
    var(--surface);
  background-size: 22px 22px, 22px 22px, auto, auto;
}

:root[data-hero-image-style="cover"] .site-hero {
  background:
    linear-gradient(90deg, rgba(247, 250, 251, 0.92), rgba(247, 250, 251, 0.72)),
    var(--hero-image),
    var(--surface);
  background-size: cover;
  background-position: center;
}

:root[data-hero-image-style="soft"] .site-hero {
  background:
    linear-gradient(120deg, rgba(247, 250, 251, 0.96), rgba(247, 250, 251, 0.7)),
    var(--hero-image),
    var(--surface);
  background-size: cover;
  background-position: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  font-weight: 900;
  overflow-wrap: break-word;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  color: #526176;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics {
  gap: 28px;
  color: #526176;
}

.hero-metrics strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1.1;
}

.hero-board {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #526176;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.board-grid div,
.mini-exam,
.feature-card,
.module-card,
.summary-card,
.content-panel,
.table-panel,
.login-panel,
.login-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.board-grid div {
  min-height: 94px;
  padding: 16px;
}

.board-grid strong {
  display: block;
  font-size: 30px;
}

.board-grid span,
.mini-exam p,
.feature-card p,
.module-card p,
.summary-card p,
.muted-text {
  color: #617086;
}

.mini-exam {
  margin-top: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #e6fbfa, #fff9df);
}

.mini-label {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.mini-exam h3 {
  margin: 8px 0;
  font-size: 24px;
}

.site-section {
  padding: clamp(44px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.section-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-title h2,
.deploy-section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-title p,
.deploy-section p {
  margin: 0;
  color: #617086;
  line-height: 1.8;
}

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

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

.feature-card,
.module-card,
.summary-card,
.content-panel {
  padding: 20px;
}

.feature-card h3,
.module-card h2,
.content-panel h2 {
  margin: 0 0 10px;
}

.process-band {
  background: #eef7f8;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-list div {
  padding: 20px;
  border-left: 4px solid var(--teal);
  background: #ffffff;
}

.process-list strong {
  display: block;
  color: var(--teal-dark);
  font-size: 28px;
}

.process-list span {
  display: block;
  margin-top: 8px;
  font-weight: 900;
}

.process-list p {
  color: #617086;
  line-height: 1.7;
}

.deploy-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #ffffff;
}

.login-page {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
  background: linear-gradient(120deg, #e5fbfa, #ffffff 54%);
}

:root[data-login-panel-style="quiet"] .login-panel {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

:root[data-login-panel-style="framed"] .login-panel {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: none;
}

.login-panel,
.login-aside {
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  gap: 16px;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.login-panel p,
.login-aside p {
  color: #617086;
  line-height: 1.8;
}

.login-panel label {
  display: grid;
  gap: 8px;
  color: #26354e;
  font-weight: 800;
}

.login-panel input,
.login-panel select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
}

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

.login-roles span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 800;
}

.exam-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background: linear-gradient(180deg, #f5fbfc 0%, #eef7f8 100%);
  border-right: 1px solid var(--line);
}

.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 2px 8px 28px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #13c2be 0 45%, transparent 46%),
    linear-gradient(315deg, #ffc400 0 43%, transparent 44%),
    linear-gradient(45deg, #e7fbfb 0 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 168, 168, 0.18);
}

.brand-mark.image-mark {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
}

.brand-mark.image-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:root[data-brand-mark-style="circle"] .brand-mark {
  border-radius: 50%;
}

:root[data-brand-mark-style="minimal"] .brand-mark {
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal) 0 52%, transparent 53%),
    linear-gradient(315deg, var(--yellow) 0 48%, transparent 49%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

:root[data-hero-style="center"] .site-hero {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  text-align: center;
}

:root[data-hero-style="center"] .hero-copy p,
:root[data-hero-style="center"] .hero-copy h1 {
  margin-left: auto;
  margin-right: auto;
}

:root[data-hero-style="center"] .hero-actions,
:root[data-hero-style="center"] .hero-metrics {
  justify-content: center;
}

:root[data-hero-style="center"] .hero-board {
  max-width: 640px;
  margin-inline: auto;
}

:root[data-hero-style="focus"] .site-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  background:
    linear-gradient(120deg, rgba(0, 168, 168, 0.14), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--bg));
}

:root[data-hero-style="focus"] .hero-board {
  border-color: rgba(0, 168, 168, 0.26);
  box-shadow: 0 18px 38px rgba(21, 46, 61, 0.12);
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.18;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #3c4a60;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.nav-button svg,
.tool-icon svg,
.icon-button svg,
.action-button svg,
.primary svg,
.mode-tab svg,
.tool-button svg,
.label-filter svg,
.class-picker svg,
.collapse svg,
.stat-label svg,
.pause svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}

.pause svg {
  width: 20px;
  height: 20px;
}

.nav-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #05b7b3, #009aa2);
  box-shadow: 0 10px 22px rgba(0, 168, 168, 0.23);
}

.nav-button:hover:not(.active) {
  background: #e7f4f5;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.profile-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.student {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #cfd7df 0 28%, #8f9cad 29% 52%, #e9eef2 53%);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  color: #9a6f00;
  background: var(--yellow-soft);
  font-size: 12px;
  font-weight: 700;
}

.points {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.collapse {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 8px 12px;
  color: #3e4b61;
  font-size: 14px;
}

.main {
  min-width: 0;
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  min-width: 0;
}

.mode-tab {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #14213a;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.mode-tab.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.account-menu {
  position: relative;
}

.avatar-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
}

.avatar-button:hover,
.avatar-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: #edf5f6;
}

.avatar-button .avatar {
  width: 32px;
  height: 32px;
}

.account-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 224px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(20, 43, 57, 0.16);
}

.account-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 15px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
}

.account-popover-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.account-popover-head .avatar {
  flex: 0 0 auto;
}

.account-popover-head strong,
.account-popover-head span {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-popover button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1b2b45;
  font-weight: 700;
  text-align: left;
}

.account-popover button:hover {
  background: #edf5f6;
}

.review-page {
  --review-ink: #0a0a0a;
  --review-steel: #5a5a5c;
  --review-stone: #888888;
  --review-surface: #f7f7f7;
  --review-soft: #fafafa;
  --review-line: #e5e5e5;
  --review-line-soft: #ededed;
  --review-mint: #00d4a4;
  --review-tag: #3772cf;
  background: #ffffff;
}

.review-doc-hero {
  max-width: 1280px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto 24px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--review-line);
}

.review-doc-hero h1 {
  margin: 0 0 10px;
  color: var(--review-ink);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
}

.review-doc-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--review-steel);
  font-size: 16px;
  line-height: 1.6;
}

.review-home-hero {
  margin-bottom: 28px;
}

.review-back-button {
  width: fit-content;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--review-tag);
  font-size: 14px;
  font-weight: 700;
}

.review-section-grid {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.review-section-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--review-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--review-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.review-section-card:hover {
  transform: translateY(-2px);
  border-color: #cfd8e6;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.08);
}

.review-section-card.is-muted {
  background: #f8fafc;
}

.review-section-card.is-muted span,
.review-section-card.is-muted small {
  color: #8a98ad;
}

.review-section-card span {
  color: var(--review-tag);
  font-size: 12px;
  font-weight: 700;
}

.review-section-card strong {
  color: var(--review-ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
}

.review-section-card p {
  margin: 0;
  color: var(--review-steel);
  font-size: 14px;
  line-height: 1.6;
}

.review-section-card small {
  margin-top: auto;
  color: var(--review-stone);
  font-size: 12px;
  font-weight: 700;
}

.review-doc-shell {
  max-width: 1280px;
  display: grid;
  grid-template-columns: 240px minmax(0, 720px) 200px;
  gap: 32px;
  align-items: start;
  margin: 0 auto;
}

.review-doc-sidebar,
.review-doc-toc {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-bottom: 20px;
}

.review-search {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--review-line);
  border-radius: 8px;
  background: var(--review-surface);
  color: var(--review-steel);
  font-size: 14px;
  line-height: 1.5;
}

.review-nav-group {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.review-nav-group h2,
.review-doc-toc h2 {
  margin: 0;
  padding: 12px 12px 6px;
  color: var(--review-steel);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.review-nav-group button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--review-steel);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.review-nav-group button.active {
  background: var(--review-surface);
  color: var(--review-ink);
  font-weight: 600;
}

.review-nav-group button.active::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--review-mint);
}

.review-nav-group button span {
  flex: 1 1 auto;
}

.review-nav-group button small {
  color: var(--review-stone);
  font-size: 12px;
  font-weight: 500;
}

.review-doc-article {
  min-width: 0;
  padding-bottom: 64px;
}

.review-article-head {
  margin-bottom: 32px;
}

.review-article-head span {
  display: block;
  margin-bottom: 12px;
  color: var(--review-tag);
  font-size: 13px;
  font-weight: 700;
}

.review-article-head h2 {
  margin: 0 0 14px;
  color: var(--review-ink);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
}

.review-article-head p {
  margin: 0;
  color: var(--review-steel);
  font-size: 18px;
  line-height: 1.55;
}

.review-doc-section {
  padding: 28px 0;
  border-top: 1px solid var(--review-line-soft);
}

.review-doc-section h3 {
  margin: 0 0 14px;
  color: var(--review-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.review-doc-section p,
.review-doc-section li {
  color: #3a3a3c;
  font-size: 16px;
  line-height: 1.65;
}

.review-doc-section > p {
  margin: 0;
}

.review-doc-section ol,
.review-doc-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.review-syntax-list {
  display: grid;
  gap: 8px;
}

.review-syntax-list p {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--review-line);
  border-radius: 6px;
  background: var(--review-surface);
  color: var(--review-ink);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.review-chip-list,
.review-pronunciation,
.review-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-chip-list span,
.review-pronunciation span,
.review-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--review-line);
  border-radius: 6px;
  background: var(--review-soft);
  color: #3a3a3c;
  font-size: 13px;
  line-height: 1.4;
}

.review-pronunciation strong,
.review-pronunciation em {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.review-pronunciation em {
  color: #1ba673;
  font-style: normal;
  font-weight: 700;
}

.review-pronunciation b {
  color: var(--review-steel);
  font-size: 12px;
}

.review-code pre {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #1c1c1e;
  color: #ffffff;
  overflow-x: auto;
}

.review-code code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.review-checklist svg {
  width: 15px;
  height: 15px;
  color: #00b48a;
}

.review-doc-toc {
  border-left: 1px solid var(--review-line-soft);
  padding-left: 18px;
}

.review-doc-toc a {
  display: block;
  padding: 5px 0;
  color: var(--review-steel);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.review-doc-toc a:first-of-type {
  color: var(--review-ink);
  font-weight: 600;
}

.review-toc-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--review-line);
  border-radius: 8px;
  background: var(--review-soft);
}

.review-toc-note strong {
  color: var(--review-ink);
  font-size: 13px;
}

.review-toc-note span {
  color: var(--review-steel);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1320px) {
  .review-doc-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .review-doc-toc {
    display: none;
  }
}

.account-popover button svg {
  width: 17px;
  height: 17px;
}

.account-popover .danger-menu-item {
  color: #b42a2a;
}

.account-popover .danger-menu-item:hover {
  background: #fff0f0;
}

.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #152238;
}

.icon-button:hover {
  background: #edf5f6;
}

.notice {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.class-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-weight: 700;
}

.filterbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.filters,
.tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field label {
  color: #26354e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.field select,
.field input,
.ghost-select {
  height: 38px;
  min-width: 106px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #18263d;
  background: #fff;
  font-size: 14px;
  outline: 0;
  max-width: 224px;
}

.field input {
  min-width: 220px;
  max-width: 260px;
}

.label-filter {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.tools {
  flex: 0 0 auto;
}

.tool-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #26354e;
  font-weight: 700;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 12px;
  padding: 0 16px 24px;
}

.page-wrap {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 24px;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.page-title p {
  margin: 0;
  color: #617086;
}

.title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

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

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

.bank-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.bank-list-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.bank-list-item p {
  margin: 0;
  color: var(--muted);
}

.bank-meta,
.bank-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.bank-meta {
  margin-top: 10px;
}

.bank-meta span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef7f8;
  color: #355260;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #b8cbd4;
  border-radius: 8px;
  background: #f8fbfc;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

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

.teacher-editor {
  margin-bottom: 14px;
}

.class-check-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.class-check-panel > strong {
  color: #26354e;
}

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

.compact-process {
  grid-template-columns: 1fr;
  gap: 10px;
}

.answer-builder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

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

.builder-head strong {
  color: var(--ink);
}

.builder-head span {
  color: var(--muted);
  font-size: 13px;
}

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

.choice-answer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.choice-answer span {
  min-width: 28px;
  color: var(--teal-dark);
  font-weight: 900;
}

.choice-text {
  width: 100%;
}

.import-feedback {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fbfc;
}

.import-feedback.ok {
  border-color: rgba(0, 154, 162, 0.35);
  background: #f0fbfa;
}

.import-feedback.has-error {
  border-color: rgba(224, 77, 77, 0.35);
  background: #fff6f6;
}

.import-feedback strong {
  display: block;
  margin-bottom: 6px;
}

.import-feedback ul {
  margin: 0;
  padding-left: 18px;
  color: #9d2f2f;
}

.summary-card {
  min-height: 118px;
}

.summary-card span {
  color: #617086;
  font-size: 14px;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.summary-card p {
  margin: 12px 0 0;
  font-size: 13px;
}

.summary-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.learning-panel {
  margin-top: 14px;
}

.learning-panel h3 {
  margin: 0 0 12px;
  color: #162640;
  font-size: 18px;
}

.learning-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

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

.learning-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.learning-item strong,
.learning-item span,
.learning-item small {
  display: block;
}

.learning-item span,
.learning-item small {
  margin-top: 5px;
  color: #617086;
  font-size: 13px;
  line-height: 1.45;
}

.learning-item b {
  display: block;
  color: var(--teal-dark);
  font-size: 22px;
  text-align: right;
}

.attempt-item {
  align-items: flex-start;
}

.wrongbook-page .summary-grid {
  margin-bottom: 18px;
}

.wrongbook-home-panel {
  margin-top: 0;
}

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

.wrongbook-point-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(120px, auto) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  box-shadow: none;
}

.wrongbook-point-card:hover {
  border-color: rgba(0, 168, 168, 0.45);
  background: #fbffff;
}

.wrongbook-card-kicker {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #8a6400;
  background: var(--yellow-soft);
  font-size: 12px;
  font-weight: 800;
}

.wrongbook-point-card strong {
  color: #10203a;
  font-size: 18px;
  line-height: 1.3;
}

.wrongbook-point-card span:not(.wrongbook-card-kicker) {
  color: #617086;
  font-size: 13px;
  line-height: 1.5;
}

.wrongbook-point-card b {
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

.wrongbook-point-card em {
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.wrongbook-study-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(21, 46, 61, 0.08);
}

.wrongbook-progress {
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef5f6;
}

.wrongbook-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.wrongbook-study-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.wrongbook-study-head h2 {
  margin: 12px 0 0;
  color: #10203a;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
}

.wrongbook-study-head strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #8a6400;
  background: var(--yellow-soft);
  font-size: 14px;
}

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

.wrongbook-option-grid .option {
  min-height: 64px;
  margin: 0;
  align-items: center;
}

.wrongbook-result {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.wrongbook-result.is-correct {
  border-color: rgba(0, 168, 168, 0.35);
  background: var(--teal-soft);
}

.wrongbook-result.is-wrong {
  border-color: rgba(255, 95, 109, 0.35);
  background: var(--red-soft);
}

.wrongbook-result strong {
  color: #10203a;
  font-size: 18px;
}

.wrongbook-result span,
.wrongbook-result p {
  margin: 0;
  color: #53627a;
  line-height: 1.7;
}

.wrongbook-study-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.task-row:first-of-type {
  border-top: 0;
}

.task-row strong,
.task-row span {
  display: block;
}

.task-row span {
  margin-top: 5px;
  color: #617086;
  font-size: 13px;
}

.progress-line {
  height: 10px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e5ebef;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
}

.progress-line.compact {
  max-width: 260px;
  height: 8px;
  margin: 10px 0 0;
}

.report-columns {
  margin-bottom: 18px;
}

.report-trend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.report-trend-day {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.report-trend-day span,
.report-trend-day b,
.report-trend-day small {
  display: block;
}

.report-trend-day b {
  color: var(--teal-dark);
  font-size: 20px;
}

.report-trend-day small {
  margin-top: 4px;
  color: #617086;
}

.module-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
}

.module-card .action-button {
  margin-top: auto;
}

.option.selected {
  border-color: var(--teal);
  background: #e6fbfa;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}

.option.correct {
  border-color: #22a06b;
  background: #eafaf2;
}

.option.wrong {
  border-color: #d64545;
  background: #fff0f0;
}

.option:disabled {
  cursor: default;
}

.primary:disabled,
.action-button:disabled,
.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.practice-quiz-list {
  display: grid;
  gap: 14px;
}

.single-question .question-head {
  align-items: flex-start;
}

.single-question .question-head .primary {
  min-width: 160px;
}

.table-panel {
  overflow: hidden;
}

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

.management-tabs button {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #14213d;
  box-shadow: var(--shadow-soft);
}

.management-tabs button.active {
  border-color: var(--teal);
  background: #eefcfc;
}

.management-tabs strong {
  font-size: 16px;
}

.management-tabs span {
  color: #617086;
  font-size: 13px;
}

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

.simulation-branch-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 12px 28px rgba(21, 46, 61, 0.06);
}

.simulation-branch-card strong {
  font-size: 22px;
  line-height: 1.3;
}

.simulation-branch-card p {
  margin: 0;
  color: #556377;
  line-height: 1.65;
}

.simulation-branch-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
}

.simulation-branch-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.simulation-branch-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.simulation-branch-meta b {
  color: var(--teal-dark);
  font-size: 30px;
}

.simulation-branch-meta span {
  color: #617086;
  font-size: 13px;
}

.simulation-branch-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simulation-branch-points span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdfe;
  color: #40516a;
  font-size: 12px;
  font-weight: 700;
}

.simulation-branch-page {
  margin-top: 16px;
}

.simulation-branch-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.simulation-branch-header h2 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.simulation-branch-header p {
  margin: 0;
  color: #617086;
  line-height: 1.55;
}

.simulation-back-link {
  flex: 0 0 auto;
  order: 2;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.simulation-subnav-panel {
  padding-bottom: 8px;
}

.simulation-subnav-panel .sub-tabs {
  margin: 0;
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.sub-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #31415a;
  font-weight: 800;
}

.sub-tabs button.active {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: #eefcfc;
}

.management-section,
.management-section-list,
.nested-management-panel {
  display: grid;
  gap: 14px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr 0.8fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
}

.table-head.five,
.table-row.five {
  grid-template-columns: minmax(0, 1.8fr) 1fr 1fr 0.8fr 0.7fr;
}

.table-head.class-table,
.table-row.class-table {
  grid-template-columns: minmax(0, 1.6fr) 1fr 0.7fr 1.3fr 0.7fr 1fr;
}

.table-head.simulation-table,
.table-row.simulation-table {
  grid-template-columns: minmax(0, 1.5fr) 0.75fr 0.75fr 0.7fr minmax(300px, 1fr);
}

.simulation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: visible;
  white-space: normal;
}

.simulation-actions .mini-button {
  min-width: 58px;
  justify-content: center;
}

.attempt-student-panel + .attempt-student-panel {
  margin-top: 12px;
}

.attempt-score-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.attempt-score-control input {
  width: 70px;
  min-width: 70px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.attempt-score-control em {
  color: #617086;
  font-style: normal;
  white-space: nowrap;
}

.growth-diary-list {
  display: grid;
  gap: 16px;
}

.growth-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.growth-card-head,
.growth-visual-grid {
  display: grid;
  gap: 12px;
}

.growth-card-head {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(90px, 0.4fr));
  align-items: center;
}

.growth-card-head h3 {
  margin: 0;
  color: #14213d;
}

.growth-card-head span,
.growth-stats span,
.growth-recent span {
  color: #617086;
  font-size: 13px;
}

.growth-stats {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.growth-stats strong {
  color: var(--teal-dark);
  font-size: 20px;
}

.growth-visual-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
}

.growth-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.growth-panel.wide {
  grid-column: 1 / -1;
}

.growth-panel h4 {
  margin: 0 0 10px;
  color: #14213d;
}

.growth-line-chart,
.radar-chart {
  width: 100%;
  height: 170px;
}

.growth-line-chart line,
.radar-chart line {
  stroke: #d8e4ea;
  stroke-width: 1.5;
}

.growth-line-chart polyline {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
}

.growth-line-chart circle {
  fill: #fff;
  stroke: var(--teal-dark);
  stroke-width: 2;
}

.radar-grid {
  fill: #eef6f6;
  stroke: #c7dadd;
  stroke-width: 1.5;
}

.radar-value {
  fill: rgba(0, 169, 174, 0.22);
  stroke: var(--teal);
  stroke-width: 2.5;
}

.radar-chart text {
  fill: #526277;
  font-size: 11px;
  text-anchor: middle;
  dominant-baseline: middle;
}

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

.knowledge-cell {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.knowledge-cell div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.knowledge-cell strong {
  min-width: 0;
  overflow: hidden;
  color: #14213d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-cell span {
  flex: 0 0 auto;
  color: #617086;
  font-size: 12px;
}

.knowledge-cell i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.knowledge-cell b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #f2b705);
}

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

.table-head {
  color: #617086;
  background: #f6fafb;
  font-size: 13px;
  font-weight: 800;
}

.table-row {
  border-top: 1px solid var(--line);
}

.table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  overflow: visible;
  white-space: normal;
}

.table-row > span:last-child .mini-button {
  flex: 0 1 auto;
}

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

.pool-question-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pool-question-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pool-question-stem {
  color: #14213d;
  line-height: 1.6;
}

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

.pool-option-grid span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
  color: #26364f;
}

.pool-option-grid .is-answer {
  border-color: #14a6a6;
  background: #eafafa;
  color: #087b7b;
  font-weight: 800;
}

.pool-question-item p {
  margin: 0;
  color: #617086;
  line-height: 1.6;
}

.pool-question-item small {
  color: #7b8798;
  font-weight: 700;
}

.simulation-detail-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(12, 24, 38, 0.22);
  overflow: hidden;
}

.simulation-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.simulation-detail-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.simulation-detail-title h2 {
  margin: 0 0 8px;
  color: #071a3d;
  font-size: 26px;
  line-height: 1.25;
}

.simulation-detail-title p {
  margin: 0;
  color: #40516d;
  font-size: 15px;
  line-height: 1.6;
}

.simulation-detail-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}

.simulation-question-preview-list {
  display: grid;
  gap: 14px;
}

.simulation-question-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.simulation-question-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #62728a;
  font-size: 13px;
  font-weight: 800;
}

.question-index-badge {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 16px;
}

.simulation-question-stem {
  color: #071a3d;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.simulation-question-analysis {
  padding-top: 2px;
  color: #50627c;
  font-size: 15px;
  line-height: 1.7;
}

.exam-text-answer {
  min-height: 92px;
  margin-top: 12px;
}

.exam-question-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px;
}

.exam-question-map button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.exam-question-map button.answered {
  border-color: #9bd9d7;
  background: #f2fbfb;
}

.exam-question-map button.confirmed {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.exam-question-map button.active {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.file-button {
  width: fit-content;
}

.pool-editor-options {
  display: grid;
  gap: 10px;
}

.pool-editor-option {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.pool-editor-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef6f7;
  color: #0b7175;
  font-weight: 800;
}

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

.skill-bars {
  display: grid;
  gap: 16px;
}

.skill-bars > div > span {
  font-weight: 800;
}

.list-panel {
  max-width: 900px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

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

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar.big {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
}

.profile-hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.profile-hero p {
  margin: 0 0 10px;
  color: #617086;
}

.account-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: #26354e;
  font-weight: 800;
}

.account-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
}

.account-form textarea,
.account-form select {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  resize: vertical;
}

.account-form select {
  height: 42px;
  resize: none;
}

.treasure-balance {
  min-width: 160px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 196, 0, 0.5);
  border-radius: 8px;
  background: var(--yellow-soft);
}

.treasure-balance span,
.treasure-balance strong {
  display: block;
}

.treasure-balance span {
  color: #7a6400;
  font-size: 13px;
  font-weight: 800;
}

.treasure-balance strong {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
}

.point-task-board {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.point-task-board.management {
  align-items: start;
}

.point-task-editor {
  margin-top: 14px;
}

.ai-config-panel {
  margin-top: 14px;
}

.ai-enable-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.ai-assist-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 168, 168, 0.28);
  border-radius: 8px;
  background: #f0fbfa;
}

.ai-assist-panel.muted {
  border-color: var(--line);
  background: #f8fbfc;
}

.ai-assist-panel strong,
.ai-assist-panel span {
  display: block;
}

.ai-assist-panel span {
  margin-top: 5px;
  color: #617086;
  font-size: 13px;
  line-height: 1.6;
}

.ai-assist-input {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.ai-assist-input input {
  width: 100%;
}

.point-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(20, 43, 57, 0.04);
}

.point-task-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.point-task-card p {
  margin: 0;
  color: #526176;
  line-height: 1.75;
}

.point-task-top,
.point-task-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.point-task-top {
  justify-content: space-between;
}

.point-task-top strong {
  color: #9a6f00;
  font-size: 18px;
}

.point-task-action {
  justify-content: flex-end;
}

.task-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.task-status.done {
  color: #8a6500;
  background: var(--yellow-soft);
}

.management-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.management-card .claim-panel {
  grid-column: 1 / -1;
}

.claim-panel {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.claim-list {
  display: grid;
  gap: 8px;
}

.claim-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.claim-row strong,
.claim-row span {
  display: block;
}

.claim-row span {
  margin-top: 4px;
  color: #617086;
  font-size: 13px;
}

.question-panel,
.side-panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(20, 43, 57, 0.04);
}

.question-panel {
  min-height: calc(100vh - 178px);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
}

.question-title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 800;
}

.count {
  color: var(--muted);
  font-weight: 500;
}

.count strong {
  color: var(--teal-dark);
}

.meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 6px;
  background: #f2f4f6;
  color: #26354e;
  font-weight: 700;
}

.stars {
  color: var(--yellow);
  letter-spacing: 1px;
}

.stem {
  font-size: 17px;
  line-height: 1.9;
}

.circuit {
  width: min(430px, 100%);
  height: 230px;
  margin: 16px 0 20px;
}

.circuit text {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20304a;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.option:hover {
  border-color: #9bd9d7;
  background: #fbffff;
}

.option.selected {
  border-color: var(--teal);
  background: linear-gradient(90deg, #e6fbfa, #ffffff);
  box-shadow: inset 3px 0 0 var(--teal);
}

.option.correct {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.option.wrong {
  border-color: var(--red);
  background: var(--red-soft);
}

.letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #21304a;
  background: #fff;
  font-weight: 800;
}

.option.selected .letter,
.option.correct .letter {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.option.wrong .letter {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.hint-line {
  min-height: 28px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.left-actions,
.center-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-button {
  min-width: 118px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #26354e;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.action-button:hover {
  border-color: #9bd9d7;
}

.primary {
  min-width: 138px;
  height: 46px;
  border: 0;
  border-radius: 7px;
  color: #17233c;
  background: var(--yellow);
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(255, 196, 0, 0.28);
}

.secondary-button {
  min-width: 96px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #23324a;
  background: #ffffff;
  font-weight: 800;
}

.danger-button {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 10px 18px rgba(255, 95, 109, 0.22);
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 25, 40, 0.46);
}

.confirm-dialog {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(12, 24, 38, 0.22);
}

.confirm-dialog.simulation-detail-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.confirm-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 22px;
  font-weight: 900;
}

.confirm-icon.danger {
  color: var(--red);
  background: var(--red-soft);
}

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

.confirm-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.confirm-copy p {
  margin: 0;
  color: #53627a;
  line-height: 1.7;
}

.confirm-input {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #31415a;
  font-weight: 700;
}

.confirm-input input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.confirm-input input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.12);
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.site-ui-editor textarea {
  width: 100%;
  resize: vertical;
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 0 16px;
}

.settings-section-head:not(:first-child) {
  margin-top: 28px;
}

.settings-section-head > span {
  min-width: 42px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-size: 12px;
  font-weight: 900;
}

.settings-section-head h2 {
  margin: 0;
}

.settings-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.preset-card {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.preset-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(21, 46, 61, 0.08);
}

.preset-card strong {
  position: relative;
  z-index: 1;
  font-size: 16px;
}

.preset-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.preset-card i {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.65);
}

.site-ui-reset {
  margin-top: 12px;
}

.asset-url-grid {
  margin-top: 12px;
}

.component-designer {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-soft) 86%, #ffffff);
}

.component-target-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.component-target-card label {
  display: grid;
  gap: 8px;
  color: #31415a;
  font-weight: 900;
}

.component-target-card select,
.component-designer input,
.component-designer select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
}

.component-target-card p {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(0, 168, 168, 0.08);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.component-hide-row {
  align-content: center;
  grid-template-columns: auto 1fr;
  min-height: 68px;
}

.component-hide-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.component-sample {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}

.component-sample strong {
  font-size: 16px;
}

.component-sample span {
  color: var(--muted);
  line-height: 1.5;
}

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

.color-grid.extended {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.color-grid label {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #31415a;
  font-weight: 800;
}

.color-grid input {
  width: 100%;
  height: 42px;
  padding: 2px;
  border: 0;
  background: transparent;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
  gap: 12px;
  margin-top: 14px;
}

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

.control-grid label {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: #31415a;
  font-weight: 800;
}

.control-grid input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.control-grid select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0 12px;
  color: var(--text);
}

.range-value {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-ui-preview {
  position: sticky;
  top: 92px;
}

.preview-shell {
  display: grid;
  grid-template-columns: var(--preview-sidebar-width, 128px) minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--preview-radius);
  background: var(--preview-bg);
  color: var(--preview-text);
  font-size: calc(14px * var(--preview-font-scale, 1));
  box-shadow: var(--shadow);
}

.preview-shell[data-preview-public-bg="clean"] {
  background: var(--preview-surface);
}

.preview-shell[data-preview-public-bg="grid"] {
  background:
    linear-gradient(rgba(0, 168, 168, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 168, 0.06) 1px, transparent 1px),
    var(--preview-bg);
  background-size: 18px 18px, 18px 18px, auto;
}

.preview-shell aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  color: var(--preview-text);
  background: var(--preview-sidebar);
  border-right: 1px solid var(--line);
}

.preview-shell aside .brand-mark {
  width: 38px;
  height: 38px;
}

.preview-shell[data-preview-brand="circle"] .brand-mark {
  border-radius: 50%;
}

.preview-shell[data-preview-brand="minimal"] .brand-mark {
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--preview-primary) 0 52%, transparent 53%),
    linear-gradient(315deg, var(--preview-accent) 0 48%, transparent 49%),
    var(--preview-surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.preview-shell aside strong,
.preview-shell aside small {
  overflow-wrap: anywhere;
}

.preview-shell aside small {
  color: var(--preview-muted);
  font-weight: 800;
}

.preview-nav-item {
  min-height: 34px;
  border: 0;
  border-radius: var(--preview-radius);
  color: var(--preview-muted);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.preview-nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--preview-primary), var(--preview-dark));
}

.preview-shell main {
  min-width: 0;
  background: var(--preview-bg);
}

.preview-shell header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--preview-topbar-height, 54px);
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.preview-shell[data-preview-header="solid"] header {
  background: var(--preview-surface);
}

.preview-shell[data-preview-header="minimal"] header {
  background: transparent;
  border-bottom-color: transparent;
}

.preview-shell section {
  margin: 16px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--preview-radius);
  background: var(--preview-surface);
}

.preview-shell[data-preview-hero="center"] .preview-hero-card {
  text-align: center;
}

.preview-shell[data-preview-hero="center"] .preview-actions {
  justify-content: center;
}

.preview-shell[data-preview-hero="focus"] .preview-hero-card {
  border-color: rgba(0, 168, 168, 0.26);
  background:
    linear-gradient(120deg, rgba(0, 168, 168, 0.12), transparent 58%),
    var(--preview-surface);
}

.preview-shell[data-preview-hero-image="cover"] .preview-hero-card {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    var(--preview-hero-image),
    var(--preview-surface);
  background-size: cover;
  background-position: center;
}

.preview-shell[data-preview-hero-image="soft"] .preview-hero-card {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    var(--preview-hero-image),
    var(--preview-surface);
  background-size: cover;
  background-position: center;
}

.preview-shell h2 {
  margin: 0 0 10px;
  color: var(--preview-text);
  font-size: 24px;
}

.preview-shell p {
  margin: 0 0 18px;
  color: var(--preview-muted);
  line-height: 1.7;
}

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

.preview-shell button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--preview-radius);
  color: #10213a;
  background: var(--preview-accent);
  font-weight: 900;
}

.preview-shell button.ghost {
  border: 1px solid var(--line);
  color: var(--preview-text);
  background: var(--preview-surface);
}

.preview-shell[data-preview-button="soft"] .preview-actions button:first-child {
  border: 1px solid rgba(0, 168, 168, 0.2);
  color: var(--preview-dark);
  background: rgba(0, 168, 168, 0.12);
}

.preview-shell[data-preview-button="outline"] .preview-actions button:first-child {
  border: 1px solid var(--preview-primary);
  color: var(--preview-dark);
  background: transparent;
}

.preview-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px;
}

.preview-card-row div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--preview-radius);
  background: var(--preview-surface);
}

.preview-card-row strong {
  font-size: 24px;
}

.preview-card-row span {
  color: var(--preview-muted);
  font-weight: 800;
}

.preview-shell[data-preview-card="flat"] section,
.preview-shell[data-preview-card="flat"] .preview-card-row div,
.preview-shell[data-preview-card="flat"] .preview-table {
  box-shadow: none;
}

.preview-shell[data-preview-card="outlined"] section,
.preview-shell[data-preview-card="outlined"] .preview-card-row div,
.preview-shell[data-preview-card="outlined"] .preview-table {
  border-color: var(--line-strong);
  box-shadow: none;
}

.preview-shell[data-preview-nav="line"] .preview-nav-item.active {
  color: var(--preview-dark);
  background: var(--preview-surface);
  box-shadow: inset 4px 0 0 var(--preview-primary);
}

.preview-shell[data-preview-nav="compact"] .preview-nav-item {
  min-height: 28px;
  font-size: 12px;
}

.preview-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 68px;
  gap: 0;
  margin: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--preview-radius);
  background: var(--preview-surface);
}

.preview-table span,
.preview-table strong,
.preview-table em {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--preview-muted);
  font-style: normal;
  font-size: 12px;
}

.preview-table strong,
.preview-table em,
.preview-table button {
  border-bottom: 0;
}

.preview-table strong {
  color: var(--preview-text);
}

.preview-table button {
  min-height: 42px;
  border-radius: 0;
  box-shadow: none;
}

.preview-shell[data-preview-table="compact"] .preview-table span,
.preview-shell[data-preview-table="compact"] .preview-table strong,
.preview-shell[data-preview-table="compact"] .preview-table em,
.preview-shell[data-preview-table="compact"] .preview-table button {
  min-height: 32px;
}

.preview-login-panel {
  display: grid;
  gap: 6px;
  margin: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--preview-radius);
  background: var(--preview-surface);
  box-shadow: 0 12px 24px rgba(21, 46, 61, 0.08);
}

.preview-login-panel span,
.preview-login-panel i {
  color: var(--preview-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.preview-login-panel i {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--preview-radius);
}

.preview-shell[data-preview-login-panel="quiet"] .preview-login-panel {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.preview-shell[data-preview-login-panel="framed"] .preview-login-panel {
  border-color: var(--line-strong);
  box-shadow: none;
}

:root[data-ui-density="compact"] .page-wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

:root[data-ui-density="compact"] .content-panel,
:root[data-ui-density="compact"] .module-card,
:root[data-ui-density="compact"] .summary-card {
  padding: 18px;
}

:root[data-button-style="soft"] .primary,
:root[data-button-style="soft"] .action-button {
  border: 1px solid rgba(0, 168, 168, 0.2);
  color: var(--teal-dark);
  background: var(--teal-soft);
  box-shadow: none;
}

:root[data-button-style="outline"] .primary,
:root[data-button-style="outline"] .action-button {
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  background: transparent;
  box-shadow: none;
}

:root[data-button-style="soft"] .mini-button,
:root[data-button-style="outline"] .mini-button {
  box-shadow: none;
}

:root[data-card-style="flat"] .content-panel,
:root[data-card-style="flat"] .module-card,
:root[data-card-style="flat"] .summary-card {
  box-shadow: none;
}

:root[data-card-style="outlined"] .content-panel,
:root[data-card-style="outlined"] .module-card,
:root[data-card-style="outlined"] .summary-card {
  border-color: var(--line-strong);
  box-shadow: none;
}

:root[data-nav-style="line"] .nav-button.active {
  color: var(--teal-dark);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--teal);
}

:root[data-nav-style="compact"] .nav {
  gap: 2px;
}

:root[data-nav-style="compact"] .nav-button {
  min-height: 38px;
  padding-inline: 10px;
  border-radius: calc(var(--radius) - 2px);
}

:root[data-table-density="compact"] .table-head,
:root[data-table-density="compact"] .table-row {
  min-height: 46px;
}

:root[data-table-density="compact"] .table-row span {
  padding-top: 8px;
  padding-bottom: 8px;
}

.confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #26354e;
  font-size: 14px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.stat-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
  align-items: center;
  padding: 16px 12px;
}

.stat {
  min-height: 62px;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.stat:first-child {
  padding-left: 0;
}

.stat-label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.stat-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.stat-value small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.up {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.bar {
  width: min(96px, 100%);
  height: 7px;
  margin-top: 12px;
  border-radius: 4px;
  background: #e5ebef;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.pause {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  background: #fffdf2;
}

.side-panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
}

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  color: #536177;
  font-size: 13px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.square {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.square.done {
  border-color: var(--teal);
  background: var(--teal);
}

.square.flag {
  border-color: var(--yellow);
  background: var(--yellow);
}

.square.wrong {
  border-color: var(--red);
  background: var(--red);
}

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

.answer-cell {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #26354e;
  background: #fff;
  font-weight: 700;
}

.answer-cell.current {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.answer-cell.done:not(.current) {
  color: var(--teal-dark);
  border-color: #99dcd9;
  background: #e9fbfa;
}

.answer-cell.flagged:not(.current) {
  color: #9a6f00;
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.answer-cell.wrong:not(.current) {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.explain-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.explain-tab {
  height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #35445c;
  font-weight: 800;
}

.explain-tab.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.answer-status {
  color: var(--teal-dark);
  font-weight: 800;
  margin-bottom: 12px;
}

.knowledge {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: #536177;
  font-size: 14px;
}

.knowledge strong {
  color: var(--teal-dark);
}

.analysis {
  color: #26354e;
  font-size: 14px;
  line-height: 1.75;
}

.related {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f0d88b;
  border-radius: 7px;
  background: #fffaf0;
}

.related-title {
  color: #26354e;
  font-weight: 800;
}

.related-sub {
  margin-top: 5px;
  color: #536177;
  font-size: 13px;
}

.mini-button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 800;
}

.note-box {
  min-height: 182px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #26354e;
  resize: vertical;
  outline: 0;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 10;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: #152238;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.content-panel,
.table-panel,
.page-title,
.bank-workspace-head,
.filterbar,
.filters,
.tools,
.title-actions,
.topbar,
.mode-tabs,
.top-actions,
.point-task-card,
.claim-row,
.settings-layout,
.preview-shell {
  min-width: 0;
}

.primary,
.action-button,
.tool-button,
.mini-button,
.secondary-button,
.site-primary,
.site-secondary {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.primary,
.action-button,
.secondary-button,
.site-primary,
.site-secondary {
  height: auto;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.mini-button,
.tool-button {
  height: auto;
  min-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.table-panel {
  max-width: 100%;
  overflow-x: auto;
}

.table-head,
.table-row {
  min-width: 920px;
}

.table-head.five,
.table-row.five {
  min-width: 820px;
}

.table-head.class-table,
.table-row.class-table {
  min-width: 900px;
}

.table-head.simulation-table,
.table-row.simulation-table {
  min-width: 960px;
}

@media (max-width: 1180px) {
  .exam-app {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 10px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-inline: 6px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .nav-button {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .topbar {
    height: auto;
    min-height: 72px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

  .mode-tabs {
    order: 2;
    width: 100%;
    height: auto;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mode-tab {
    height: 42px;
    padding: 0 8px;
    font-size: 14px;
  }

  .top-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

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

  .page-title,
  .bank-workspace-head,
  .builder-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .title-actions,
  .bank-actions,
  .simulation-actions,
  .point-task-action {
    justify-content: flex-start;
  }

  .filterbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .filters {
    flex: 1 1 520px;
  }

  .tools {
    flex: 1 1 220px;
    justify-content: flex-end;
  }

  .field {
    flex: 1 1 220px;
  }

  .field input,
  .field select,
  .ghost-select {
    width: 100%;
    max-width: none;
  }

  .workspace,
  .dashboard-grid,
  .simulation-home-grid,
  .profile-layout,
  .settings-layout,
  .learning-columns,
  .growth-visual-grid {
    grid-template-columns: 1fr;
  }

  .site-ui-preview {
    position: static;
  }

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

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

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

  .bank-list-item,
  .point-task-card,
  .management-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ai-assist-input {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .exam-app {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .brand {
    padding-bottom: 12px;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .profile-card,
  .collapse {
    display: none;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .top-actions {
    margin-left: 0;
    justify-content: space-between;
  }

  .page-wrap {
    padding: 18px 14px;
  }

  .form-grid,
  .class-check-grid,
  .color-grid,
  .color-grid.extended {
    grid-template-columns: 1fr;
  }

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

  .preview-shell aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .claim-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .site-header {
    position: static;
    height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    overflow: hidden;
  }

  .site-nav {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-hero,
  .login-page {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 14px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-board {
    min-width: 0;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .board-grid,
  .feature-grid,
  .process-list,
  .summary-grid,
  .summary-grid.compact,
  .simulation-home-grid,
  .review-section-grid,
  .review-doc-shell,
  .management-tabs,
  .growth-card-head,
  .growth-visual-grid,
  .knowledge-matrix,
  .module-grid,
  .dashboard-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .site-section,
  .deploy-section {
    padding: 32px 14px;
  }

  .deploy-section,
  .page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .page-wrap {
    padding: 16px 10px;
  }

  .title-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .simulation-branch-header {
    flex-direction: column;
  }

  .simulation-back-link {
    order: 0;
    width: fit-content;
  }

  .review-doc-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
  }

  .review-doc-hero h1 {
    font-size: 30px;
  }

  .review-section-card {
    min-height: 0;
    padding: 18px;
  }

  .review-doc-sidebar,
  .review-doc-toc {
    position: static;
    max-height: none;
  }

  .review-doc-toc {
    display: none;
  }

  .review-article-head h2 {
    font-size: 32px;
  }

  .review-doc-section {
    padding: 22px 0;
  }

  .table-panel {
    overflow-x: auto;
  }

  .table-head,
  .table-row,
  .table-head.five,
  .table-row.five,
  .table-head.class-table,
  .table-row.class-table {
    min-width: 760px;
  }

  .exam-app {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .brand {
    padding-bottom: 12px;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card,
  .collapse {
    display: none;
  }

  .topbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .mode-tabs {
    height: auto;
    gap: 8px;
    overflow-x: auto;
  }

  .mode-tab {
    min-width: max-content;
    height: 42px;
    padding: 0 8px;
    font-size: 14px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .filterbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .field {
    width: 100%;
    justify-content: space-between;
  }

  .field input,
  .field select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .tools {
    display: flex;
    width: 100%;
    justify-content: stretch;
  }

  .tools .tool-button {
    flex: 1 1 0;
    justify-content: center;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 0 10px 16px;
  }

  .question-panel {
    min-height: auto;
    padding: 16px;
  }

  .question-head,
  .question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .meta,
  .center-actions,
  .left-actions {
    flex-wrap: wrap;
  }

  .stat-card {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat {
    border-right: 0;
    padding: 0;
  }

  .answer-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .form-grid,
  .class-check-grid {
    grid-template-columns: 1fr;
  }

  .confirm-backdrop {
    align-items: end;
    padding: 12px;
  }

  .confirm-dialog {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .simulation-detail-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .simulation-detail-header,
  .simulation-detail-title {
    align-items: stretch;
    flex-direction: column;
  }

  .simulation-detail-title h2 {
    font-size: 22px;
  }

  .simulation-question-preview {
    padding: 14px;
  }

  .wrongbook-option-grid {
    grid-template-columns: 1fr;
  }

  .wrongbook-point-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wrongbook-point-card b {
    text-align: left;
  }

  .wrongbook-study-card {
    padding: 18px;
  }

  .wrongbook-study-head,
  .wrongbook-study-actions {
    flex-direction: column;
  }

  .wrongbook-study-actions .primary,
  .wrongbook-study-actions .action-button {
    width: 100%;
  }

  .pool-option-grid {
    grid-template-columns: 1fr;
  }

  .confirm-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions button {
    width: 100%;
  }
}
