:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --ink: #101936;
  --muted: #627086;
  --line: #d8e1ee;
  --accent: #1f5eff;
  --accent-strong: #173b8f;
  --navy: #101b3d;
  --gold: #b9831c;
  --gold-soft: #fff4d7;
  --teal: #0f766e;
  --green: #0f8a6a;
  --amber: #c87912;
  --red: #dc2626;
  --violet: #6d4aff;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(16, 25, 54, 0.09);
  --shadow-strong: 0 22px 54px rgba(16, 25, 54, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 94, 255, 0.12), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(185, 131, 28, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.94), rgba(238, 244, 251, 0.98)),
    url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d7e0ed' stroke-width='1'%3E%3Cpath d='M0 36h150M0 96h150M36 0v150M96 0v150'/%3E%3Ccircle cx='36' cy='36' r='2.5' fill='%23d9b76d' stroke='none'/%3E%3Ccircle cx='96' cy='96' r='2.5' fill='%2392c9bf' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid rgba(16, 27, 61, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 252, 0.9)),
    linear-gradient(135deg, rgba(16, 27, 61, 0.05), rgba(185, 131, 28, 0.04));
  backdrop-filter: blur(20px);
}

.brand-block {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff8e7;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, var(--navy), #1f5eff 58%, var(--teal));
  box-shadow: 0 14px 28px rgba(16, 27, 61, 0.22);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f3c969);
}

.brand-block h1,
.brand-block p,
.page-head h2,
.page-head p,
.panel h3 {
  margin: 0;
}

.brand-block h1 {
  font-size: 18px;
}

.brand-block p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.brand-subtitle {
  font-size: 12px;
  letter-spacing: 0;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.nav-tab span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 8px 16px rgba(31, 94, 255, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.nav-tab[data-view="exam"] span:first-child {
  background: linear-gradient(135deg, var(--teal), #36b49b);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.16);
}

.nav-tab[data-view="wrong"] span:first-child {
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.18);
}

.nav-tab[data-view="builder"] span:first-child {
  background: linear-gradient(135deg, #7c3aed, var(--accent));
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.18);
}

.nav-tab[data-view="coach"] span:first-child {
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.18);
}

.nav-tab[data-view="mastery"] span:first-child {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  box-shadow: 0 8px 16px rgba(109, 74, 255, 0.16);
}

.nav-tab[data-view="records"] span:first-child {
  background: linear-gradient(135deg, #0f172a, #64748b);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.nav-tab[data-view="truth"] span:first-child {
  background: linear-gradient(135deg, #047857, #22c55e);
  box-shadow: 0 8px 16px rgba(4, 120, 87, 0.16);
}

.nav-tab[data-view="membership"] span:first-child {
  background: linear-gradient(135deg, #111827, var(--gold));
  box-shadow: 0 8px 16px rgba(185, 131, 28, 0.18);
}

.nav-tab.is-active {
  border-color: rgba(31, 94, 255, 0.22);
  color: var(--navy);
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  box-shadow: 0 10px 24px rgba(31, 94, 255, 0.08);
}

.nav-tab.is-active span:first-child {
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(16, 25, 54, 0.22);
}

.nav-text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.nav-text b {
  color: inherit;
  font-size: 14px;
  line-height: 1.2;
}

.nav-tab:hover {
  border-color: rgba(31, 94, 255, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.side-panel {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.side-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
}

.side-panel h2 {
  margin: 0;
  font-size: 14px;
}

.side-panel-title span {
  max-width: 96px;
  overflow: hidden;
  border: 1px solid rgba(77, 114, 232, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(77, 114, 232, 0.09);
  color: #4d72e8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.metric-list dt {
  color: var(--muted);
  font-size: 13px;
}

.metric-list dd {
  margin: 0;
  font-weight: 800;
  max-width: 128px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-list div:nth-child(1) dd {
  color: var(--accent-strong);
}

.metric-list div:nth-child(2) dd {
  color: var(--teal);
}

.metric-list div:nth-child(3) dd {
  color: var(--gold);
}

.metric-list div:nth-child(4) dd {
  color: #6d4aff;
}

.metric-list div:nth-child(5) dd {
  color: #e66f2a;
}

.workspace {
  min-width: 0;
  padding: 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(21, 32, 51, 0.06);
}

.topbar-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 38px;
}

.account-area [data-open-auth="login"] {
  border-color: rgba(15, 118, 110, 0.42);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.16);
}

.account-area [data-open-auth="login"]:hover {
  background: linear-gradient(135deg, #0f5f59, var(--teal));
}

.account-area [data-open-auth="register"] {
  border-color: rgba(185, 131, 28, 0.38);
  background: linear-gradient(135deg, var(--navy), var(--accent) 58%, var(--gold));
}

.activation-top-button {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(185, 131, 28, 0.5);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #8a4b0f, #d97706 52%, #f59e0b);
  box-shadow: 0 12px 22px rgba(185, 131, 28, 0.22);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.activation-top-button:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 131, 28, 0.72);
  background: linear-gradient(135deg, #6b3708, #b45309 52%, #d97706);
  box-shadow: 0 16px 28px rgba(185, 131, 28, 0.28);
}

.activation-shortcut-card [data-quick-activation] {
  border-color: rgba(185, 131, 28, 0.46);
  background: linear-gradient(135deg, #111827, #b9831c 62%, #f0b429);
  box-shadow: 0 14px 26px rgba(185, 131, 28, 0.2);
}

.account-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #059669);
  font-size: 12px;
  font-weight: 900;
}

.user-meta {
  display: grid;
  line-height: 1.2;
}

.user-meta b {
  font-size: 13px;
}

.user-meta span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

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

.exam-switch-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  width: min(460px, 100%);
  padding: 12px;
  border: 1.5px solid rgba(31, 94, 255, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #eef4ff, #ffffff 58%, #fff7df);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.66), var(--shadow);
}

.exam-switch-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.exam-switch-hint {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.exam-switch-hint::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 131, 28, 0.14);
}

.exam-switch-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.exam-switch-card select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(31, 94, 255, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.exam-switch-card label.is-hidden {
  display: none;
}

.home-subject-section {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.home-subject-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-subject-heading h3 { margin: 3px 0 6px; }
.home-subject-heading p { margin: 0; color: var(--muted); }
.home-subject-heading > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #e7f7f4;
  font-size: 12px;
  font-weight: 800;
}

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

.home-subject-grid button {
  min-height: 92px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.home-subject-grid button:hover { transform: translateY(-2px); border-color: #76b8ae; }
.home-subject-grid button.is-active { border-color: #27998b; background: #edf9f7; box-shadow: inset 0 0 0 1px #27998b; }
.home-subject-grid button:disabled,
.home-subject-grid button.is-coming-soon {
  color: #98a2ad;
  background: #f3f5f6;
  border-color: #e2e6e9;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .78;
  transform: none;
}
.home-subject-grid button:disabled:hover,
.home-subject-grid button.is-coming-soon:hover { transform: none; border-color: #e2e6e9; }
.home-subject-grid button.is-coming-soon span { color: #9aa3ac; font-weight: 700; }
.home-subject-grid strong, .home-subject-grid span { display: block; }
.home-subject-grid strong { font-size: 13px; line-height: 1.35; }
.home-subject-grid span { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.35; }

@media (max-width: 1100px) { .home-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .home-subject-section { padding: 18px; }
  .home-subject-heading { display: block; }
  .home-subject-heading > span { display: inline-block; margin-top: 12px; }
  .home-subject-grid { grid-template-columns: 1fr; }
}

.exam-switch-card:has(label:nth-child(2).is-hidden):has(label:nth-child(3).is-hidden) {
  grid-template-columns: minmax(180px, 1fr);
  width: min(240px, 100%);
}

.builder-exam-switch-card {
  width: min(720px, 100%);
  margin: -8px 0 18px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.coach-scope-switch {
  width: min(720px, 100%);
  margin: -8px 0 18px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.coach-scope-switch > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wrong-exam-switch-card {
  width: min(720px, 100%);
  margin: 0;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.wrong-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: stretch;
  margin: -8px 0 18px;
}

.wrong-source-card {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1.5px solid rgba(20, 184, 166, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ecfeff, #ffffff 58%, #fff7df);
  box-shadow: inset 4px 0 0 rgba(20, 184, 166, 0.62), var(--shadow);
}

.wrong-source-card span {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.wrong-source-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wrong-source-toggle {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-current-subject {
  align-self: end;
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  color: #0f766e;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.page-head h2 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.2;
}

.page-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.daily-guide-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1fr) minmax(260px, 1.1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(31, 94, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 250, 235, 0.84) 52%, rgba(236, 253, 245, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent);
  box-shadow: var(--shadow-strong);
}

.daily-guide-copy {
  display: grid;
  align-content: center;
  gap: 5px;
}

.daily-guide-copy span,
.daily-guide-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-guide-copy strong {
  font-size: 20px;
  line-height: 1.25;
}

.daily-guide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.daily-guide-copy .daily-guide-focus {
  color: var(--accent-strong);
  font-weight: 800;
}

.daily-guide-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.daily-guide-stats article {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(31, 94, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.daily-guide-stats strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.daily-guide-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.daily-guide-actions button {
  min-height: 42px;
  padding: 0 10px;
  white-space: normal;
  line-height: 1.25;
}

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

.section-headline span,
.launch-card span,
.today-plan-item span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.section-headline h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.section-headline p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.today-plan-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(520px, 100%);
}

.today-plan-controls label {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.today-plan-controls label span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.today-plan-controls select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(31, 94, 255, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.today-plan-controls p {
  max-width: 300px;
}

.today-plan-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1.5px solid rgba(31, 94, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 244, 255, 0.78));
  box-shadow: var(--shadow);
}

.today-plan-list.is-compact-hidden {
  display: none;
}

.subject-coach-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 12px;
  margin: 14px 0;
}

.subject-coach-main,
.subject-coach-alt {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  border-radius: 8px;
  border: 1.5px solid rgba(31, 94, 255, 0.32);
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.72), 0 10px 24px rgba(16, 25, 54, 0.06);
}

.subject-coach-alt {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.68), 0 10px 24px rgba(16, 25, 54, 0.06);
}

.subject-coach-main span,
.subject-coach-alt span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.subject-coach-alt span {
  color: #0f766e;
}

.subject-coach-main strong,
.subject-coach-alt strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.subject-coach-main p,
.subject-coach-alt p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.subject-coach-button {
  justify-self: start;
}

.today-plan-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.today-plan-item {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1.5px solid rgba(31, 94, 255, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.68), 0 10px 22px rgba(16, 25, 54, 0.06);
  overflow: hidden;
}

.today-plan-item::before,
.insight-card::before,
.diagnosis-reason-grid article::before {
  content: "";
  display: block;
  height: 4px;
  width: 42px;
  border-radius: 999px;
  background: var(--accent);
}

.today-plan-item:nth-child(2) {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.68), 0 10px 22px rgba(16, 25, 54, 0.06);
}

.today-plan-item:nth-child(2)::before {
  background: var(--teal);
}

.today-plan-item:nth-child(3) {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(145deg, #fff1f2, #ffffff);
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.68), 0 10px 22px rgba(16, 25, 54, 0.06);
}

.today-plan-item:nth-child(3)::before {
  background: #ef4444;
}

.today-plan-item:nth-child(4) {
  border-color: rgba(185, 131, 28, 0.44);
  background: linear-gradient(145deg, #fff7df, #ffffff);
  box-shadow: inset 4px 0 0 rgba(185, 131, 28, 0.72), 0 10px 22px rgba(16, 25, 54, 0.06);
}

.today-plan-item:nth-child(4)::before {
  background: var(--gold);
}

.today-plan-item b {
  min-height: 42px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.today-plan-item p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.today-plan-item button {
  margin-top: 2px;
}

.daily-path-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.daily-path-panel.is-plan-invitation {
  grid-template-columns: 1fr;
  min-height: 180px;
  padding: 24px;
  border-left: 5px solid var(--accent);
  background: linear-gradient(135deg, #eff6ff, #ffffff 72%);
}

.daily-path-panel.is-plan-invitation .daily-path-main {
  max-width: 720px;
}

.daily-path-panel.is-plan-invitation .daily-path-title-row strong {
  font-size: 22px;
}

.daily-path-panel.is-plan-invitation .daily-plan-setup-actions {
  margin-top: 10px;
}

.daily-path-main {
  display: grid;
  align-content: center;
  gap: 6px;
}

.daily-path-main span,
.daily-path-step span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.daily-path-main strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.daily-path-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daily-path-title-row strong {
  min-width: 0;
}

.daily-path-title-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.daily-path-title-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.daily-path-title-row select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.daily-path-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.daily-plan-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.daily-plan-setup-actions.is-hidden {
  display: none;
}

.daily-plan-progress,
.daily-step-progress {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.daily-plan-progress div,
.daily-step-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.daily-plan-progress span,
.daily-step-progress small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-plan-progress strong,
.daily-step-progress strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 950;
}

.daily-plan-progress i,
.daily-step-progress i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.daily-plan-progress b,
.daily-step-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.daily-plan-message {
  margin: 2px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(202, 138, 4, 0.18);
  border-radius: 8px;
  color: #92400e;
  background: linear-gradient(135deg, #fff7df, #ffffff);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.daily-plan-more-button {
  justify-self: start;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  border-color: rgba(15, 118, 110, 0.28);
  color: #047857;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  font-size: 12px;
}

.daily-plan-more-button.is-hidden {
  display: none;
}

.daily-plan-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.daily-plan-reward span {
  color: #92400e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.daily-plan-reward.is-claimed {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.daily-plan-reward.is-claimed span {
  color: #0f766e;
}

.daily-path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.daily-path-step {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1.5px solid rgba(31, 94, 255, 0.4);
  border-radius: 8px;
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.65);
  text-align: left;
}

.daily-path-step.is-recommendation {
  align-content: start;
}

.daily-path-step.is-recommendation span {
  letter-spacing: 0;
}

.daily-path-step::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(31, 94, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(31, 94, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 950;
}

.daily-path-step {
  position: relative;
}

.daily-path-step:nth-child(2) {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.65);
}

.daily-path-step:nth-child(3) {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(145deg, #fff1f2, #ffffff);
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.65);
}

.daily-path-step b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.daily-path-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.daily-path-action-button {
  justify-self: stretch;
  margin-top: 4px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.coach-setup,
.coach-dashboard {
  display: grid;
  gap: 18px;
}

.coach-setup {
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(31, 94, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.coach-setup-copy {
  display: grid;
  gap: 9px;
  padding: 8px 16px 8px 4px;
}

.coach-setup-copy span,
.coach-plan-bar span,
.coach-today-head span,
.coach-advice span,
.coach-task-body > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.coach-setup-copy h3,
.coach-plan-bar h3,
.coach-today-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.coach-setup-copy p,
.coach-plan-bar p,
.coach-today-head p,
.coach-advice p,
.coach-task-body p,
.coach-phase-list p,
.coach-rest-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.coach-form > label {
  display: grid;
  gap: 7px;
}

.coach-form > label > span,
.coach-rest-days legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.coach-form select,
.coach-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.coach-rest-days {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coach-rest-days legend {
  padding: 0 5px;
}

.coach-rest-days label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
}

.coach-rest-days input {
  width: 16px;
  min-height: 16px;
}

.coach-create-button {
  grid-column: 1 / -1;
  min-height: 46px;
}

.coach-plan-bar,
.coach-today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 94, 255, 0.2);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.coach-plan-bar > div:first-child,
.coach-today-head > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.coach-plan-actions,
.coach-time-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

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

.coach-metrics article {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coach-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coach-metrics strong {
  font-size: 19px;
}

.coach-metrics i,
.coach-task-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.coach-metrics i b,
.coach-task-progress i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.coach-continuity {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 94, 255, 0.18);
  border-radius: 8px;
  background: #f7faff;
}

.coach-continuity-lead,
.coach-continuity-item {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 17px 20px;
}

.coach-continuity-lead {
  color: #fff;
  background: var(--navy);
}

.coach-continuity-lead span,
.coach-continuity-item span {
  font-size: 12px;
  font-weight: 850;
}

.coach-continuity-lead span {
  color: rgba(255, 255, 255, .72);
}

.coach-continuity-lead strong {
  font-size: 18px;
  line-height: 1.45;
}

.coach-continuity-item + .coach-continuity-item {
  border-left: 1px solid rgba(31, 94, 255, 0.14);
}

.coach-continuity-item span {
  color: var(--accent-strong);
}

.coach-continuity-item strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.45;
}

.coach-continuity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.coach-advice {
  display: grid;
  grid-template-columns: auto minmax(180px, .45fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #effcf8;
}

.coach-advice strong {
  color: #075e57;
  font-size: 16px;
}

.coach-weekly {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(300px, 1fr);
  gap: 14px 20px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coach-weekly-head {
  display: grid;
  gap: 7px;
}

.coach-weekly-head > div {
  display: grid;
  gap: 4px;
}

.coach-weekly-head span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.coach-weekly-head strong {
  font-size: 18px;
}

.coach-weekly-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.coach-weekly-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.coach-weekly-metrics article {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: #f7faff;
}

.coach-weekly-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.coach-weekly-metrics strong {
  font-size: 16px;
}

.coach-stage-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.coach-forecast-detail {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 12px;
  border-left: 3px solid #0f766e;
  background: #effcf8;
  color: #075e57;
  font-size: 12px;
  line-height: 1.6;
}

.coach-exam-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coach-exam-insights article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.coach-exam-insights article > span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.coach-exam-insights article > strong {
  font-size: 16px;
  line-height: 1.45;
}

.coach-exam-insights article > p,
.coach-exam-insights article > em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.coach-exam-insights article > em {
  padding: 8px 10px;
  background: #f1f7ff;
  color: #174ea6;
}

.coach-memory-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach-memory-list li {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  background: #f7faff;
}

.coach-memory-list li b,
.coach-memory-list li span {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.coach-memory-list li span {
  color: var(--muted);
}

.coach-day-summary {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(300px, 1fr) minmax(250px, .9fr);
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coach-day-summary-head,
.coach-tomorrow-preview {
  display: grid;
  align-content: center;
  gap: 6px;
}

.coach-day-summary-head span,
.coach-tomorrow-preview span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.coach-day-summary-head strong,
.coach-tomorrow-preview strong {
  font-size: 16px;
}

.coach-day-summary-head p,
.coach-tomorrow-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.coach-day-summary-head .coach-day-closure {
  color: #075e57;
  font-weight: 700;
}

.coach-task-benefit {
  margin: 0;
  color: #075e57 !important;
  font-size: 12px;
  font-weight: 750;
}

.coach-chapter-requirement {
  padding: 9px 11px;
  border-left: 3px solid #ca8a04;
  background: #fff8e6;
  color: #7c4a03 !important;
  font-weight: 700;
}

.coach-day-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.coach-day-summary-stats article {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px;
  background: #f7faff;
}

.coach-day-summary-stats span {
  color: var(--muted);
  font-size: 11px;
}

.coach-day-summary-stats strong {
  font-size: 15px;
}

.coach-tomorrow-preview {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.coach-chapters {
  display: grid;
  gap: 16px;
}

.coach-chapter-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(340px, 1.1fr);
  gap: 14px;
}

.coach-chapter-list {
  display: grid;
  gap: 7px;
  max-height: 520px;
  overflow: auto;
}

.coach-chapter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.coach-chapter-row:hover,
.coach-chapter-row.is-active {
  border-color: rgba(31, 94, 255, .45);
  background: #f5f8ff;
}

.coach-chapter-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.coach-chapter-summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.coach-chapter-row b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.coach-chapter-row em,
.coach-chapter-row small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.coach-chapter-summary > strong,
.coach-chapter-detail-head em {
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.coach-chapter-learn {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(31, 94, 255, .28);
  border-radius: 5px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.coach-chapter-learn:hover {
  border-color: rgba(31, 94, 255, .55);
  background: #dfeaff;
}

.coach-chapter-row .is-mastered,
.coach-chapter-detail-head .is-mastered { background: #e7f8ef; color: #047857; }
.coach-chapter-row .is-learning,
.coach-chapter-detail-head .is-learning { background: #fff7d6; color: #a16207; }
.coach-chapter-row .is-reinforce,
.coach-chapter-detail-head .is-reinforce { background: #feecec; color: #b91c1c; }
.coach-chapter-row .is-touched,
.coach-chapter-detail-head .is-touched { background: #eaf2ff; color: #1d4ed8; }

.coach-chapter-detail {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 7px;
  background: #fff;
}

.coach-chapter-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.coach-chapter-detail-head > span {
  width: 100%;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.coach-chapter-detail-head strong {
  font-size: 20px;
}

.coach-chapter-detail > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.coach-chapter-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.coach-chapter-detail dl > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #f7faff;
}

.coach-chapter-detail dt {
  color: var(--muted);
  font-size: 11px;
}

.coach-chapter-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.coach-stage-list > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-top: 3px solid #94a3b8;
  border-radius: 6px;
}

.coach-stage-list .is-touched { border-top-color: #3b82f6; }
.coach-stage-list .is-learning { border-top-color: #ca8a04; }
.coach-stage-list .is-reinforce { border-top-color: #dc2626; }
.coach-stage-list .is-mastered { border-top-color: #059669; }

.coach-stage-list b,
.coach-stage-list em {
  font-size: 11px;
  font-style: normal;
}

.coach-stage-list em {
  color: var(--muted);
  white-space: nowrap;
}

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

.coach-task {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 4px solid #9aa9bd;
  border-radius: 8px;
  background: #fff;
}

.coach-task.is-active {
  border-left-color: var(--accent);
  background: #f7faff;
}

.coach-task.is-complete {
  border-left-color: var(--green);
  background: #f3fbf7;
}

.coach-task.is-failed {
  border-left-color: #d97706;
  background: #fff9ed;
}

.coach-task.is-failed .coach-task-order em,
.coach-task.is-failed .coach-task-standard {
  color: #9a4d00;
}

.coach-task-order {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.coach-task-order span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.coach-task-order em,
.coach-phase-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.coach-task-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.coach-task-body strong {
  font-size: 16px;
}

.coach-task-progress {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 3px;
}

.coach-task-progress small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.coach-task-standard {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
}

.coach-task-standard.has-notice {
  color: #9a6700;
}

.coach-task > button {
  min-width: 92px;
}

.coach-rest-state {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 34px 18px;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  background: #f3fbf7;
  text-align: center;
}

.coach-roadmap {
  padding-top: 4px;
}

.coach-phase-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coach-phase-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coach-phase-list article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #94a3b8;
  font-weight: 900;
}

.coach-phase-list article > div {
  display: grid;
  gap: 5px;
}

.coach-phase-list article > em {
  grid-column: 2;
}

.coach-phase-list article.is-active {
  border-color: rgba(31, 94, 255, 0.4);
  box-shadow: inset 4px 0 0 var(--accent);
}

.coach-phase-list article.is-active > span {
  background: var(--accent);
}

.launchpad-headline {
  align-items: center;
  margin-top: 6px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1.5px solid rgba(31, 94, 255, 0.24);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 244, 255, 0.96), rgba(255, 255, 255, 0.92) 58%, rgba(255, 247, 223, 0.92)),
    #fff;
  box-shadow: 0 16px 36px rgba(16, 27, 61, 0.08);
}

.launchpad-headline span {
  color: var(--accent);
  font-size: 12px;
}

.launchpad-headline h3 {
  margin-top: 2px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.12;
}

.launchpad-headline p {
  max-width: 620px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

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

.launch-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 160px;
  padding: 16px 16px 52px;
  border: 2px solid rgba(31, 94, 255, 0.4);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86)),
    linear-gradient(135deg, #eef4ff, #ffffff);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.launch-card::before {
  content: attr(data-card-icon);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 10px 22px rgba(31, 94, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.launch-card::after {
  content: "Open  →";
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--navy));
  box-shadow: 0 10px 20px rgba(31, 94, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}

.launch-card[data-home-action="truth"]::before {
  background: linear-gradient(135deg, var(--teal), #36b49b);
}

.launch-card[data-home-action="truth"]::after {
  background: linear-gradient(135deg, var(--teal), #168c78);
}

.launch-card[data-home-action="mastery"]::before {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.launch-card[data-home-action="mastery"]::after {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.launch-card[data-home-action="wrong"]::before {
  background: linear-gradient(135deg, #b91c1c, #f97316);
}

.launch-card[data-home-action="wrong"]::after {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.launch-card[data-home-action="analysis"]::before {
  background: linear-gradient(135deg, var(--gold), #f3c969);
}

.launch-card[data-home-action="analysis"]::after {
  background: linear-gradient(135deg, #b9831c, #eab308);
}

.launch-card[data-home-action="membership"]::before {
  background: linear-gradient(135deg, #111827, var(--gold));
}

.launch-card[data-home-action="membership"]::after {
  background: linear-gradient(135deg, #111827, #b9831c);
}

.launch-card.is-featured {
  border-color: rgba(31, 94, 255, 0.5);
  background: linear-gradient(135deg, #eef4ff, #ffffff 54%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(31, 94, 255, 0.68), var(--shadow-strong);
}

.launch-card[data-home-action="truth"] {
  border-color: rgba(15, 118, 110, 0.48);
  background: linear-gradient(145deg, #ecfdf5, #ffffff 58%, #f7fffc);
  box-shadow: inset 0 4px 0 rgba(15, 118, 110, 0.68), var(--shadow);
}

.launch-card[data-home-action="mastery"] {
  border-color: rgba(109, 74, 255, 0.46);
  background: linear-gradient(145deg, #f3f0ff, #ffffff 58%, #fbfaff);
  box-shadow: inset 0 4px 0 rgba(109, 74, 255, 0.68), var(--shadow);
}

.launch-card[data-home-action="wrong"] {
  border-color: rgba(220, 38, 38, 0.46);
  background: linear-gradient(145deg, #fff1f2, #ffffff 58%, #fff8f8);
  box-shadow: inset 0 4px 0 rgba(239, 68, 68, 0.68), var(--shadow);
}

.launch-card[data-home-action="analysis"] {
  border-color: rgba(185, 131, 28, 0.5);
  background: linear-gradient(145deg, #fff7df, #ffffff 58%, #fffdf5);
  box-shadow: inset 0 4px 0 rgba(185, 131, 28, 0.72), var(--shadow);
}

.launch-card[data-home-action="membership"] {
  border-color: rgba(16, 27, 61, 0.44);
  background: linear-gradient(145deg, #f8fafc, #ffffff 52%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(16, 27, 61, 0.72), var(--shadow);
}

.launch-card b {
  font-size: 20px;
  line-height: 1.25;
}

.launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.launch-card em {
  position: absolute;
  left: 14px;
  bottom: 18px;
  max-width: calc(100% - 128px);
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 118, 110, 0.16);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-card:hover {
  border-color: rgba(31, 94, 255, 0.72);
  box-shadow: 0 22px 42px rgba(16, 27, 61, 0.16);
  transform: translateY(-3px);
}

.activation-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 131, 28, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 223, 0.92), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, #fff7df, #ffffff);
  box-shadow: 0 14px 30px rgba(16, 27, 61, 0.08);
}

.activation-shortcut-card span {
  display: block;
  margin-bottom: 4px;
  color: #b9831c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.activation-shortcut-card b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.activation-shortcut-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.home-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(31, 94, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 244, 255, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(16, 27, 61, 0.06);
}

.home-contact-card span {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-contact-card b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.home-contact-card a {
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.home-contact-card a:hover {
  text-decoration: underline;
}

.launch-card:hover::after {
  transform: translateX(2px);
}

.launch-card:active {
  transform: translateY(-1px) scale(0.99);
}

.launch-card:focus-visible {
  outline: 3px solid rgba(31, 94, 255, 0.28);
  outline-offset: 3px;
}

.dashboard-strip {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 94, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.86) 52%, rgba(255, 248, 225, 0.72));
  box-shadow: var(--shadow);
}

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

.insight-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 154px;
  padding: 15px;
  border: 1.5px solid rgba(31, 94, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.64), 0 10px 22px rgba(16, 25, 54, 0.05);
}

.insight-card-score {
  border-color: rgba(31, 94, 255, 0.22);
  background: linear-gradient(145deg, #eef4ff, #ffffff);
}

.insight-card:nth-child(2) {
  border-color: rgba(185, 131, 28, 0.48);
  background: linear-gradient(145deg, #fff7df, #ffffff);
  box-shadow: inset 4px 0 0 rgba(185, 131, 28, 0.7), 0 10px 22px rgba(16, 25, 54, 0.05);
}

.insight-card:nth-child(2)::before {
  background: var(--gold);
}

.insight-card:nth-child(3) {
  border-color: rgba(220, 38, 38, 0.44);
  background: linear-gradient(145deg, #fff1f2, #ffffff);
  box-shadow: inset 4px 0 0 rgba(239, 68, 68, 0.68), 0 10px 22px rgba(16, 25, 54, 0.05);
}

.insight-card:nth-child(3)::before {
  background: #ef4444;
}

.insight-card:nth-child(4) {
  border-color: rgba(109, 74, 255, 0.44);
  background: linear-gradient(145deg, #f3f0ff, #ffffff);
  box-shadow: inset 4px 0 0 rgba(109, 74, 255, 0.68), 0 10px 22px rgba(16, 25, 54, 0.05);
}

.insight-card:nth-child(4)::before {
  background: #6d4aff;
}

.insight-card span,
.mini-chart-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.insight-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.insight-card .insight-action-note {
  color: #ca8a04;
  font-weight: 800;
}

.insight-card button {
  align-self: end;
  width: 100%;
}

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

.diagnosis-reason-grid article {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1.5px solid rgba(31, 94, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.64);
}

.diagnosis-reason-grid article:nth-child(2) {
  border-color: rgba(185, 131, 28, 0.48);
  background: linear-gradient(145deg, #fff7df, #ffffff);
  box-shadow: inset 4px 0 0 rgba(185, 131, 28, 0.7);
}

.diagnosis-reason-grid article:nth-child(2)::before {
  background: var(--gold);
}

.diagnosis-reason-grid article:nth-child(3) {
  border-color: rgba(15, 118, 110, 0.44);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.68);
}

.diagnosis-reason-grid article:nth-child(3)::before {
  background: var(--teal);
}

.diagnosis-reason-grid span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.diagnosis-reason-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.mini-chart-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 10px;
}

.mini-chart-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.mini-chart-card h4 {
  margin: 4px 0 0;
  font-size: 17px;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 132px;
}

.mini-bar-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.mini-bar-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 90px;
  border-radius: 8px;
  background: #eef2ff;
  overflow: hidden;
}

.mini-bar-fill {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2563eb, #14b8a6);
}

.mini-bar-item b,
.mini-bar-item em {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.mini-bar-item em {
  color: var(--ink);
  font-weight: 900;
}

.mini-chart-note {
  margin: -2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(31, 94, 255, 0.16);
  border-radius: 8px;
  color: #1e3a8a;
  background: linear-gradient(135deg, rgba(238, 244, 255, 0.9), rgba(255, 255, 255, 0.9));
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.outline-progress {
  display: grid;
  gap: 11px;
}

.outline-progress-row {
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(120px, 1.2fr) 44px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.outline-progress-row div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.outline-progress-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.outline-progress-row b,
.outline-progress-row em {
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.outline-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.outline-progress-track i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--accent);
}

.outline-progress-row.is-mastered .outline-progress-track i {
  background: #2563eb;
}

.outline-progress-row.is-practice .outline-progress-track i {
  background: #f59e0b;
}

.outline-progress-row.is-weak .outline-progress-track i {
  background: #ef4444;
}

.outline-progress-row.is-unlearned .outline-progress-track i {
  background: #94a3b8;
}

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

.panel,
.score-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.panel h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title-row h3 {
  margin-bottom: 0;
}

.generation-source-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.generation-source-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(31, 94, 255, 0.18);
  border-radius: 8px;
  background: #eef4ff;
}

.generation-source-toggle button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.generation-source-toggle button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 8px 18px rgba(31, 94, 255, 0.18);
}

.generation-source-toggle button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.generation-source-hint {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.truth-rewrite-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: -4px 0 14px;
  padding: 12px 14px;
  border: 1.5px solid rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.62), 0 8px 18px rgba(16, 25, 54, 0.05);
  cursor: pointer;
}

.truth-rewrite-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.truth-rewrite-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.truth-rewrite-card b {
  color: #0f766e;
  font-size: 14px;
}

.truth-rewrite-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.segment {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segment.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 8px 18px rgba(31, 94, 255, 0.16);
}

.generation-goal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: -2px 0 20px;
}

.generation-goal-grid.is-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.generation-goal-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  padding: 16px 18px;
  border: 1.5px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.generation-goal-card:nth-child(1) {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(145deg, #eef4ff, #ffffff);
}

.generation-goal-card:nth-child(2) {
  border-color: rgba(5, 150, 105, 0.28);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
}

.generation-goal-card:nth-child(3) {
  border-color: rgba(220, 38, 38, 0.26);
  background: linear-gradient(145deg, #fff1f2, #ffffff);
}

.generation-goal-card:nth-child(4) {
  border-color: rgba(202, 138, 4, 0.3);
  background: linear-gradient(145deg, #fff7df, #ffffff);
}

.generation-goal-card:nth-child(5) {
  border-color: rgba(124, 58, 237, 0.28);
  background: linear-gradient(145deg, #f5f3ff, #ffffff);
}

.generation-goal-card span {
  color: var(--navy);
  font-size: 16px;
  font-weight: 950;
}

.generation-goal-card b {
  font-size: 14px;
  line-height: 1.35;
}

.generation-goal-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.generation-goal-grid.is-compact .generation-goal-card {
  min-height: 112px;
  padding: 13px;
}

.generation-goal-grid.is-compact .generation-goal-card span {
  font-size: 13px;
}

.generation-goal-grid.is-compact .generation-goal-card b {
  font-size: 12px;
}

.generation-goal-grid.is-compact .generation-goal-card em {
  font-size: 11px;
}

.generation-goal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 94, 255, 0.14);
}

.generation-goal-card.is-active {
  border-color: rgba(16, 27, 61, 0.78);
  outline: 3px solid rgba(31, 94, 255, 0.16);
  background: linear-gradient(145deg, #ffffff, #eef4ff 58%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(16, 27, 61, 0.76), 0 16px 32px rgba(31, 94, 255, 0.2);
}

.generation-goal-card.is-active::after,
.question-count-card.is-active::after {
  content: "Selected";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  font-size: 10px;
  font-weight: 900;
}

.generation-goal-card.is-loading {
  cursor: wait;
  opacity: .78;
}

.launch-card::before,
.launch-card::after,
.generation-goal-card.is-active::after,
.question-count-card.is-active::after,
.wrong-mode-card::after,
.record-cleanup-grid .field::before,
.cleanup-status-group::before,
.review-filter-card::before {
  pointer-events: none;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

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

.field .field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field .field-label-row span {
  min-width: 0;
}

.question-count-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.question-count-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 86px;
  padding: 11px;
  border: 1.5px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  color: var(--ink);
  text-align: left;
}

.question-count-card:nth-child(1) {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
  box-shadow: inset 0 4px 0 rgba(15, 118, 110, 0.62);
}

.question-count-card:nth-child(2) {
  border-color: rgba(31, 94, 255, 0.42);
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  box-shadow: inset 0 4px 0 rgba(31, 94, 255, 0.62);
}

.question-count-card:nth-child(3) {
  border-color: rgba(185, 131, 28, 0.46);
  background: linear-gradient(145deg, #fff7df, #ffffff);
  box-shadow: inset 0 4px 0 rgba(185, 131, 28, 0.66);
}

.question-count-card:nth-child(4) {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(145deg, #fff1f2, #ffffff);
  box-shadow: inset 0 4px 0 rgba(239, 68, 68, 0.62);
}

.question-count-card span {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
}

.question-count-card b {
  font-size: 13px;
  line-height: 1.2;
}

.question-count-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.question-count-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(16, 27, 61, 0.78);
  outline: 3px solid rgba(31, 94, 255, 0.18);
  background: linear-gradient(145deg, #ffffff, #eef4ff 56%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(16, 27, 61, 0.82), 0 16px 32px rgba(31, 94, 255, 0.22);
}

.question-count-card.is-active span,
.question-count-card.is-active b {
  color: var(--navy);
}

.question-count-card.is-over-limit:not(.is-active) {
  opacity: .72;
}

.field .field-label-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.compact-button {
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

input:not([type="radio"]):not([type="checkbox"]),
select {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  line-height: 42px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.password-field:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-field input {
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding-right: 8px;
  box-shadow: none;
}

.password-field input:focus {
  box-shadow: none;
}

.password-toggle {
  border: 0;
  border-left: 1px solid var(--line);
  background: #f8fafc;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:active {
  background: #eff6ff;
}

textarea {
  resize: vertical;
  min-height: 120px;
  padding: 12px;
  line-height: 1.65;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.is-hidden {
  display: none !important;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-mixer {
  display: grid;
  gap: 10px;
}

.choice-only-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.choice-only-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  flex: 0 0 auto;
}

.record-save-policy {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.record-save-policy small {
  color: var(--muted);
  line-height: 1.5;
}

.type-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 96px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

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

.type-label b {
  display: block;
  font-size: 14px;
}

.type-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.type-dot {
  width: 12px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
}

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

.mastery-source,
.review-source {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.review-source {
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef4ff, #ffffff 58%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(31, 94, 255, 0.62), var(--shadow);
}

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

.mastery-source > span,
.review-source-head > span {
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
}

.review-source-head small {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.review-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.review-filter-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.review-filter-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  pointer-events: none;
}

.review-filter-card:nth-child(1) {
  border-color: rgba(31, 94, 255, 0.22);
  background: linear-gradient(145deg, #eef4ff, #ffffff);
}

.review-filter-card:nth-child(1)::before {
  background: var(--accent);
}

.review-filter-card:nth-child(2) {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
}

.review-filter-card:nth-child(2)::before {
  background: var(--teal);
}

.review-filter-card:nth-child(3) {
  border-color: rgba(185, 131, 28, 0.24);
  background: linear-gradient(145deg, #fff7df, #ffffff);
}

.review-filter-card:nth-child(3)::before {
  background: var(--gold);
}

.review-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.review-status-options > span {
  width: 100%;
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
}

.mastery-source label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.review-status-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  font-size: 14px;
  font-weight: 800;
}

.mastery-source input,
.review-source input {
  width: auto;
  min-height: 0;
}

.mastery-source p,
.review-source p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.review-source-hint {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 94, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.62), 0 10px 22px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  line-height: 1.6;
}

.review-source-hint.is-ready {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--ink);
}

.review-source-hint span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-source-hint strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.review-source-hint-stats {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-source-hint-stats b {
  display: grid;
  min-width: 86px;
  padding: 9px 11px;
  border: 1px solid rgba(31, 94, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.review-source-hint-stats b:nth-child(2) {
  border-color: rgba(185, 131, 28, 0.22);
  background: #fffdf5;
}

.review-source-hint-stats em {
  color: var(--accent-strong);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.review-source-hint-stats b:nth-child(2) em {
  color: #b9831c;
}

.mastery-source-tree,
.review-source-tree {
  display: grid;
  gap: 8px;
}

.mastery-source-tools,
.mastery-source-pager,
.review-source-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.review-source-tools {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.mastery-source-tools input,
.review-source-tools input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.mastery-source-pager {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.mastery-source-pager span,
.list-pager span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.list-pager span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.list-pager {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.mastery-source-empty,
.review-source-empty,
.review-source-summary {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-source-summary {
  margin: 0;
  border-style: solid;
  background: #f8fbff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.review-source-list {
  display: grid;
  gap: 6px;
}

.review-source-list label {
  min-height: 36px;
  font-size: 13px;
}

.review-source label.field {
  display: grid;
  align-items: stretch;
  gap: 9px;
  min-height: 0;
}

.review-source label.field > span {
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
}

.review-filter-card input,
.review-filter-card select {
  min-height: 42px;
}

.review-source label.review-point-filter {
  max-width: none;
}

.mastery-source-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mastery-source-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
}

.mastery-source-group-head label {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mastery-toggle-button {
  margin-right: 8px;
  min-height: 32px;
  padding: 0 12px;
}

.mastery-source-children {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.mastery-source-children.is-hidden {
  display: none;
}

.mastery-source-children label {
  min-height: 34px;
  padding: 0 10px;
  border-style: dashed;
  font-size: 13px;
}

.mastery-page-jump,
.list-pager label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mastery-page-jump input,
.list-pager input {
  width: 64px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.input-limit-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.input-limit-hint.is-over {
  color: var(--red);
  font-weight: 800;
}

.input-limit-hint.is-review {
  padding: 8px 10px;
  border: 1px solid rgba(202, 138, 4, 0.28);
  border-radius: 8px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 900;
}

.generation-mode-advice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -8px 0 14px;
  padding: 9px 10px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.45;
}

.generation-mode-advice.is-hidden {
  display: none;
}

.generation-mode-advice span {
  min-width: 0;
}

.generation-mode-advice button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.difficulty-preview {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.difficulty-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.difficulty-chip b,
.difficulty-chip em,
.difficulty-chip small {
  font-style: normal;
  line-height: 1.2;
}

.difficulty-chip b {
  min-width: 56px;
  color: var(--difficulty-color);
  font-size: 13px;
}

.difficulty-chip em {
  color: #ea580c;
  font-size: 18px;
  font-weight: 900;
}

.difficulty-chip small {
  color: var(--muted);
  font-size: 12px;
}

.difficulty-lock-hint {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(202, 138, 4, 0.28);
  border-radius: 8px;
  background: #fffbeb;
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}

.distribution-preview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.distribution-preview span,
.distribution-preview p {
  color: var(--muted);
  font-size: 13px;
}

.distribution-preview strong {
  display: block;
  margin-top: 2px;
}

.distribution-preview p {
  margin: 0;
  text-align: right;
}

.action-row,
.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.action-row {
  margin-top: 18px;
}

.generation-progress {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 94, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 244, 255, 0.9), rgba(255, 248, 225, 0.72));
}

.generation-progress.is-hidden {
  display: none;
}

.generation-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.generation-progress-head strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.generation-progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
}

.generation-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--accent), var(--teal), var(--gold));
  transition: width 260ms ease;
}

.generation-progress-detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid rgba(16, 27, 61, 0.12);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 12px 22px rgba(31, 94, 255, 0.18);
}

.primary-button:hover {
  background: linear-gradient(135deg, #0c1533, var(--accent-strong));
}

.secondary-button {
  border: 1px solid rgba(31, 94, 255, 0.18);
  color: var(--accent-strong);
  background: linear-gradient(135deg, #ffffff, #eef4ff);
}

.is-generation-action.is-progressing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(31, 94, 255, 0.92), transparent);
  animation: action-progress-slide 1.15s linear infinite;
}

@keyframes action-progress-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.home-return-button {
  border-color: rgba(14, 165, 233, 0.32);
  color: #075985;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
}

.home-return-button::before {
  content: "←";
  margin-right: 6px;
}

.home-return-button:hover {
  border-color: rgba(14, 165, 233, 0.52);
  background: linear-gradient(135deg, #f0f9ff, #dbeafe);
}

.danger-button {
  border: 1px solid rgba(220, 38, 38, 0.36);
  color: #b91c1c;
  background: #fef2f2;
}

.danger-button:hover {
  background: #fee2e2;
}

.ghost-button {
  border: 1px solid rgba(31, 94, 255, 0.14);
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
}

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

.question-map {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.map-button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.map-button.is-answered {
  border-color: rgba(5, 150, 105, 0.35);
  color: var(--green);
  background: #ecfdf5;
}

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

.exam-bottom-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 18px;
}

.question-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(21, 32, 51, 0.06);
}

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

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}

.pill-basic {
  color: #1d4ed8;
  background: #eff6ff;
}

.pill-strong {
  color: #ca8a04;
  background: #fffbeb;
}

.pill-hard {
  color: #b91c1c;
  background: #fef2f2;
}

.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.filter-button,
.bookmark-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.filter-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.filter-button span {
  color: var(--accent-strong);
  font-size: 12px;
}

.filter-button.is-active,
.bookmark-button.is-active {
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--accent-strong);
  background: #eff6ff;
}

.bookmark-button {
  flex: 0 0 auto;
}

.record-capacity {
  align-self: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #fff;
  font-weight: 900;
}

.mastery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

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

.wrong-challenge-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.wrong-challenge-summary article,
.wrong-mode-card,
.wrong-start-card {
  min-width: 0;
  padding: 16px;
  border: 1.5px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.wrong-challenge-summary article {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.wrong-challenge-summary span,
.wrong-mode-card span {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.wrong-challenge-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 28px;
}

.wrong-count-card select {
  width: 100%;
  min-height: 36px;
  margin: 8px 0 4px;
  padding: 0 10px;
  border: 1.5px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.wrong-challenge-summary small,
.wrong-mode-card p,
.wrong-start-card p,
.wrong-drill-hint {
  color: var(--muted);
  line-height: 1.6;
}

.wrong-drill-hint {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.wrong-review-source-field {
  display: grid;
  gap: 6px;
  width: min(280px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff7ed, #ffffff);
}

.wrong-review-source-field span {
  color: #c2410c;
  font-size: 12px;
  font-weight: 950;
}

.wrong-review-source-field select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.wrong-smart-review {
  display: grid;
  gap: 14px;
}

.wrong-smart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid rgba(20, 184, 166, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfeff, #ffffff 66%, #f0fdf4);
  box-shadow: inset 0 3px 0 rgba(20, 184, 166, 0.28);
}

.wrong-smart-summary span {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.wrong-smart-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 24px;
}

.wrong-smart-summary p {
  margin: 0;
  color: #0f766e;
  font-weight: 900;
}

.wrong-smart-summary small {
  color: var(--muted);
  line-height: 1.5;
}

.wrong-smart-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, .8fr) minmax(220px, 1.2fr);
  gap: 12px;
}

.wrong-smart-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 118px;
  padding: 14px;
  border: 1.5px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fffe);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.wrong-smart-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.wrong-smart-card-head span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.wrong-smart-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wrong-smart-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wrong-smart-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.wrong-smart-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wrong-smart-chip.is-checked,
.wrong-smart-chip:has(input:checked) {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 8px 16px rgba(20, 184, 166, 0.16);
}

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

.wrong-smart-card select,
.wrong-smart-card > input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid rgba(20, 184, 166, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

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

.wrong-mode-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding-bottom: 48px;
  border-width: 2px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wrong-mode-card::after {
  content: "Select";
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid rgba(220, 38, 38, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.wrong-mode-card b {
  color: var(--ink);
  font-size: 20px;
}

.wrong-mode-card[data-wrong-mode="review"] {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.wrong-mode-card[data-wrong-mode="review"] span,
.wrong-mode-card[data-wrong-mode="review"] em {
  color: #c2410c;
}

.wrong-mode-card[data-wrong-mode="review"]::after {
  color: #c2410c;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.22);
}

.wrong-mode-card[data-wrong-mode="unlearned"] {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.wrong-mode-card[data-wrong-mode="unlearned"] span,
.wrong-mode-card[data-wrong-mode="unlearned"] em {
  color: #1d4ed8;
}

.wrong-mode-card[data-wrong-mode="unlearned"]::after {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.22);
}

.wrong-mode-card[data-wrong-mode="smart"] {
  border-color: rgba(20, 184, 166, 0.28);
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.wrong-mode-card[data-wrong-mode="smart"] span,
.wrong-mode-card[data-wrong-mode="smart"] em {
  color: #0f766e;
}

.wrong-mode-card[data-wrong-mode="smart"]::after {
  color: #0f766e;
  background: #ecfeff;
  border-color: rgba(20, 184, 166, 0.22);
}

.wrong-mode-card.is-locked {
  cursor: not-allowed;
  opacity: .72;
  filter: grayscale(.08);
}

.wrong-mode-card.is-locked::after {
  content: "VIP/SVIP";
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  border-color: transparent;
}

.wrong-mode-card em {
  color: #dc2626;
  font-style: normal;
  font-weight: 900;
}

.wrong-mode-card.is-active {
  border-color: rgba(220, 38, 38, 0.52);
  background: linear-gradient(135deg, #fff1f2, #ffffff 58%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(220, 38, 38, 0.68), var(--shadow-strong);
}

.wrong-mode-card.is-active::after {
  content: "Selected";
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.16);
}

.wrong-mode-card[data-wrong-mode="review"].is-active {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: inset 0 4px 0 rgba(249, 115, 22, 0.72), var(--shadow-strong);
}

.wrong-mode-card[data-wrong-mode="review"].is-active::after {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.wrong-mode-card[data-wrong-mode="unlearned"].is-active {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: inset 0 4px 0 rgba(37, 99, 235, 0.72), var(--shadow-strong);
}

.wrong-mode-card[data-wrong-mode="unlearned"].is-active::after {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.wrong-mode-card[data-wrong-mode="smart"].is-active {
  border-color: rgba(20, 184, 166, 0.62);
  box-shadow: inset 0 4px 0 rgba(20, 184, 166, 0.72), var(--shadow-strong);
}

.wrong-mode-card[data-wrong-mode="smart"].is-active::after {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.wrong-mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.62);
  box-shadow: 0 22px 42px rgba(16, 27, 61, 0.14);
}

.wrong-mode-card:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.22);
  outline-offset: 3px;
}

.wrong-start-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-color: rgba(31, 94, 255, 0.18);
  background: linear-gradient(135deg, #eef4ff, #ffffff 60%, #fff7df);
}

.wrong-start-card strong {
  color: var(--navy);
  font-size: 18px;
}

.mastery-scope-bar {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.practice-recommendation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

.practice-recommendation span,
.practice-recommendation p,
.recommendation-chip small {
  color: var(--muted);
}

.practice-recommendation span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
}

.practice-recommendation strong {
  display: block;
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1.35;
}

.practice-recommendation p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.recommendation-practice-button {
  margin-top: 12px;
  width: fit-content;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 62%, #b9831c 100%);
  box-shadow: 0 12px 24px rgba(31, 94, 255, 0.28);
  color: #fff;
  font-weight: 950;
}

.recommendation-practice-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 94, 255, 0.3);
}

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

.mastery-recommendation-progress {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.recommendation-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.recommendation-chip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-chip.is-weak {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff7f7;
}

.recommendation-chip.is-practice {
  border-color: rgba(202, 138, 4, 0.28);
  background: #fffbea;
}

.mastery-scope-bar > span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.mastery-scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mastery-scope-list .filter-button {
  display: grid;
  gap: 2px;
  text-align: left;
  min-height: 44px;
}

.mastery-scope-list .filter-button small {
  color: inherit;
  opacity: .72;
  font-size: 11px;
}

.mastery-scope-field {
  max-width: 520px;
}

.mastery-scope-field select {
  width: 100%;
}

.mastery-scope-manager {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.mastery-scope-manager summary {
  cursor: pointer;
  font-weight: 900;
}

.mastery-merge-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mastery-merge-tools input,
.mastery-merge-tools select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.mastery-subject-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 220px;
  overflow: auto;
}

.mastery-subject-list label {
  display: grid;
  grid-template-columns: auto minmax(120px, .8fr) 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mastery-subject-list small {
  color: var(--muted);
}

.mastery-stat,
.mastery-column,
.mastery-item,
.mastery-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mastery-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.mastery-stat span,
.mastery-stat em,
.mastery-stat small,
.mastery-item span,
.muted-text {
  color: var(--muted);
}

.mastery-stat strong {
  font-size: 34px;
  line-height: 1;
}

.mastery-stat em {
  color: #ea580c;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.mastery-stat.is-green,
.mastery-column.is-green {
  border-color: rgba(5, 150, 105, 0.24);
  background: #f4fffb;
}

.mastery-stat.is-yellow,
.mastery-column.is-yellow {
  border-color: rgba(202, 138, 4, 0.28);
  background: #fffbea;
}

.mastery-stat.is-red,
.mastery-column.is-red {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff7f7;
}

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

.mastery-column {
  min-width: 0;
  padding: 14px;
}

.mastery-column h3 {
  margin: 0 0 12px;
}

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

.mastery-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.mastery-group {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.mastery-group summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.mastery-group summary::-webkit-details-marker {
  display: none;
}

.mastery-group summary::before {
  content: "›";
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
  transition: transform 180ms ease;
}

.mastery-group[open] summary::before {
  transform: rotate(90deg);
}

.mastery-group summary div {
  flex: 1;
  min-width: 0;
}

.mastery-group summary b,
.mastery-group summary span {
  display: block;
}

.mastery-group summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mastery-group summary strong {
  color: var(--accent-strong);
  font-size: 20px;
}

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

.mastery-actions .compact-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.mastery-children {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px 32px;
}

.mastery-children .mastery-item {
  border-style: dashed;
  box-shadow: none;
}

.mastery-item b,
.mastery-item span {
  display: block;
}

.mastery-item span {
  margin-top: 3px;
  font-size: 12px;
}

.mastery-item strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.record-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.record-toolbar .segmented {
  min-width: 220px;
}

.record-search {
  display: grid;
  gap: 6px;
  flex: 1 1 240px;
  min-width: 220px;
}

.record-search span,
.record-scope-field span,
.cleanup-status-head span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 950;
}

.record-scope-field {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.record-scope-field select {
  min-height: 42px;
}

.cleanup-status-group {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, #f5f3ff, #ffffff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.cleanup-status-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #7c3aed;
  pointer-events: none;
}

.cleanup-status-head {
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
}

.cleanup-status-head span {
  font-size: 14px;
}

.cleanup-status-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cleanup-status-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.cleanup-status-section b {
  color: var(--navy);
  font-size: 13px;
}

.cleanup-status-section div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cleanup-answer-section {
  border-color: rgba(31, 94, 255, 0.18);
  background: linear-gradient(145deg, rgba(238, 244, 255, 0.95), rgba(255, 255, 255, 0.8));
}

.cleanup-mastery-section {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.8));
}

.cleanup-status-section label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  font-weight: 800;
  font-size: 13px;
}

.record-cleanup-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: linear-gradient(135deg, #eef4ff, #ffffff 58%, #fff7df);
  box-shadow: inset 0 4px 0 rgba(31, 94, 255, 0.62), 0 18px 44px rgba(15, 23, 42, 0.18);
}

.modal-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.record-cleanup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.record-cleanup-grid .field {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(31, 94, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, #eef4ff, #ffffff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.record-cleanup-grid .field::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  pointer-events: none;
}

.record-cleanup-grid .field:nth-child(2) {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
}

.record-cleanup-grid .field:nth-child(2)::before {
  background: var(--teal);
}

.record-cleanup-grid .field:nth-child(3) {
  border-color: rgba(185, 131, 28, 0.24);
  background: linear-gradient(145deg, #fff7df, #ffffff);
}

.record-cleanup-grid .field:nth-child(3)::before {
  background: var(--gold);
}

.record-cleanup-grid .field > span {
  color: var(--navy);
  font-weight: 950;
}

.record-cleanup-grid .cleanup-status-group {
  grid-column: 1 / -1;
}

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

.cleanup-result-summary article {
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.cleanup-result-summary article:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
}

.cleanup-result-summary article:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #fff7df);
}

.cleanup-result-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cleanup-result-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}

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

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

.truth-status {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.truth-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.truth-card.is-correct {
  border-color: rgba(5, 150, 105, 0.35);
  background: #f0fdf4;
}

.truth-card.is-wrong {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fef2f2;
}

.truth-card.is-unanswered {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.truth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.truth-card-head span {
  min-width: 0;
}

.truth-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.truth-unanswered-tip {
  color: #dc2626;
}

.truth-question-text {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
}

.truth-options {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.truth-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.truth-option input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
  flex: 0 0 auto;
}

.truth-option span {
  min-width: 0;
  line-height: 1.55;
}

.truth-answer-input {
  width: 100%;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.truth-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.truth-result strong {
  color: var(--accent-strong);
}

.truth-bottom-actions {
  margin-top: 18px;
}

.record-list,
.record-question-list,
.knowledge-records {
  display: grid;
  gap: 10px;
}

.record-list {
  align-self: start;
  align-content: start;
}

.record-list .list-pager {
  grid-template-columns: 1fr 1fr;
}

.record-list .list-pager span {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 2px;
  line-height: 1.5;
}

.record-list .list-pager label {
  grid-column: 1 / -1;
  justify-content: center;
}

.record-tab {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.record-tab.is-active {
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
}

.record-tab b,
.record-detail-head h3,
.knowledge-record h3,
.record-question b {
  display: block;
}

.record-tab span,
.record-detail-head p,
.record-question small,
.knowledge-record h3 span {
  color: var(--muted);
  font-size: 12px;
}

.record-detail,
.knowledge-record {
  min-width: 0;
}

.record-detail-head {
  margin-bottom: 12px;
}

.record-detail-head h3,
.knowledge-record h3 {
  margin: 0 0 4px;
}

.knowledge-record {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.record-question {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.record-question.is-wrong {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff7f7;
}

.record-question.is-right {
  border-color: rgba(5, 150, 105, 0.22);
  background: #f4fffb;
}

.record-question p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.55;
}

.membership-plans {
  display: grid;
  gap: 16px;
}

.generator-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.generator-contact a {
  color: #2563eb;
  font-weight: 800;
}

.activation-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 32, 51, 0.06);
}

.activation-panel h3,
.activation-panel p {
  margin: 0;
}

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

.activation-message {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.activation-message.is-error {
  color: #b91c1c;
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 32, 51, 0.06);
}

.plan-card.is-vip {
  border-color: rgba(37, 99, 235, 0.36);
  background: #f8fbff;
}

.plan-card.is-go {
  border-color: rgba(5, 150, 105, 0.3);
  background: #f4fffb;
}

.plan-card.is-delay {
  border-color: rgba(234, 88, 12, 0.32);
  background: #fffaf4;
}

.plan-card.is-svip {
  border-color: rgba(124, 58, 237, 0.34);
  background: #fbf9ff;
}

.plan-badge {
  justify-self: start;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.plan-card.is-svip .plan-badge {
  background: #7c3aed;
}

.plan-card.is-go .plan-badge {
  background: #059669;
}

.plan-card.is-delay .plan-badge {
  background: #ea580c;
}

.plan-head {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

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

.plan-head h3,
.plan-head p {
  margin: 0;
}

.plan-price {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.plan-price strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.plan-price small,
.plan-head del {
  color: var(--muted);
}

.plan-year-price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.plan-year-price strong {
  color: #c2410c;
  font-size: 16px;
}

.plan-year-price em {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff1db;
  color: #c2410c;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.plan-action {
  justify-self: start;
  margin-top: 4px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.plan-features b {
  flex: 0 0 auto;
}

.plan-features span {
  color: var(--muted);
  text-align: right;
}

.compact-empty {
  min-height: 260px;
}

.question-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
}

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

.option-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option-line input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.text-answer {
  min-height: 70px;
}

.exam-subview-switch {
  width: min(360px, 100%);
  margin: -8px 0 16px;
  padding: 5px;
  border: 1px solid rgba(31, 94, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.exam-tab-panel.is-hidden {
  display: none;
}

.analysis-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.analysis-daily-plan {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1.5px solid rgba(31, 94, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #ffffff 58%, #ecfdf5);
  box-shadow: inset 4px 0 0 rgba(31, 94, 255, 0.5), var(--shadow);
}

.analysis-daily-plan.is-hidden {
  display: none;
}

.analysis-daily-path-content {
  display: grid;
  gap: 12px;
}

.analysis-daily-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
  gap: 12px;
  align-items: center;
}

.analysis-daily-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.analysis-daily-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.analysis-daily-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.analysis-daily-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.analysis-daily-step {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.analysis-daily-step span {
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.analysis-daily-step b {
  color: var(--ink);
  font-size: 14px;
}

.analysis-daily-step em {
  color: #92400e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.learning-victory-banner {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1.5px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  color: #0f513f;
  background: linear-gradient(135deg, #ecfdf5, #ffffff 62%, #fff7df);
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.62), var(--shadow);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.study-report-panel {
  min-width: 0;
}

.study-report {
  display: grid;
  gap: 12px;
}

.study-report > p,
.study-report-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.study-report-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.study-report-grid span,
.study-report-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.study-report-grid strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.score-panel {
  display: grid;
  align-content: center;
  min-height: 220px;
  padding: 24px;
}

.score-panel span {
  color: var(--muted);
  font-weight: 800;
}

.score-panel strong {
  margin-top: 8px;
  font-size: 60px;
  line-height: 1;
}

.score-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.quadrant-list,
.review-list,
.benefit-grid {
  display: grid;
  gap: 10px;
}

.quadrant-item,
.review-item,
.benefit-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.quadrant-item b,
.review-item b,
.benefit-item b {
  display: block;
  margin-bottom: 4px;
}

.question-card-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.question-card-headline b {
  min-width: 0;
}

.variation-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.quadrant-item p,
.review-item p,
.benefit-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.review-question-block {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-item .review-question-text {
  color: var(--ink);
  font-weight: 800;
}

.review-option-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-option-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.review-option-list b {
  margin: 0;
  color: var(--ink);
}

.review-item.is-wrong {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff7f7;
}

.review-item.is-right {
  border-color: rgba(5, 150, 105, 0.22);
  background: #f4fffb;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 40px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.empty-state h3 {
  margin: 16px 0 6px;
  font-size: 22px;
}

.empty-state p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-action {
  margin-top: 18px;
}

.empty-visual {
  width: 160px;
  height: 110px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(37, 99, 235, .22) 49%, rgba(37, 99, 235, .22) 51%, transparent 52%),
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #2563eb, #059669) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  transform: translateY(20px);
  opacity: 0;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #152033;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.42);
}

.legal-footer {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.legal-footer button {
  border: 0;
  padding: 4px 8px;
  color: #a5afbd;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .2s ease;
}

.legal-footer button:hover,
.legal-footer button:focus-visible {
  color: #64748b;
}

.notice-card.legal-modal-card {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
}

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

.legal-document-list details {
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}

.legal-document-list summary {
  color: #344256;
  font-weight: 700;
  cursor: pointer;
}

.legal-document-list p,
.legal-draft-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.legal-draft-note {
  margin: 14px 2px 0;
  color: #94a3b8;
  font-size: 11px;
}

.auth-card,
.notice-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

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

.auth-head h2 {
  margin: 4px 0 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.auth-switch {
  margin-bottom: 16px;
}

.verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.verify-button {
  padding: 0 12px;
  white-space: nowrap;
}

.auth-submit {
  width: 100%;
}

.auth-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  color: #b91c1c;
  background: #fff7f7;
  font-size: 13px;
  line-height: 1.5;
}

.auth-error.is-info {
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
  background: #eff6ff;
}

.auth-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.quota-detail {
  display: grid;
  gap: 12px;
}

.quota-detail p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.quota-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.quota-detail div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.quota-detail dt {
  color: var(--muted);
}

.quota-detail dd {
  margin: 0;
  font-weight: 900;
}

.quota-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .coach-day-summary,
  .coach-chapter-layout {
    grid-template-columns: 1fr;
  }

  .coach-tomorrow-preview {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .sidebar {
    position: static;
    height: auto;
    min-width: 0;
    padding: 16px;
  }

  .nav-tabs {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-tab {
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 58px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.2;
  }

  .nav-tab span:last-child {
    display: inline;
  }

  .nav-text {
    justify-items: center;
    text-align: center;
  }

  .nav-text b {
    font-size: 12px;
  }

  .side-panel {
    display: block;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
  }

  .side-panel-title {
    margin-bottom: 10px;
  }

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

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

  .metric-list dd {
    overflow-wrap: anywhere;
  }

  .workspace {
    padding: 18px;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .account-area {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .account-area .primary-button,
  .account-area .ghost-button,
  .account-area .activation-top-button {
    flex: 1 1 120px;
  }

  .activation-shortcut-card {
    align-items: stretch;
    flex-direction: column;
  }

  .activation-shortcut-card .primary-button {
    width: 100%;
  }

  .home-contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head,
  .coach-setup,
  .daily-guide-card,
  .subject-coach-card,
  .today-plan-list,
  .launchpad-grid,
  .daily-path-panel,
  .daily-path-steps,
  .coach-weekly,
  .coach-exam-insights,
  .insight-grid,
  .diagnosis-reason-grid,
  .mini-chart-grid,
  .builder-grid,
  .exam-layout,
  .mastery-summary,
  .mastery-grid,
  .practice-recommendation,
  .wrong-top-row,
  .wrong-challenge-summary,
  .wrong-mode-grid,
  .wrong-smart-grid,
  .activation-panel,
  .plan-card,
  .record-layout,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .study-report-grid,
  .daily-guide-actions,
  .practice-recommendation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-metrics,
  .coach-phase-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .generation-goal-grid.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .truth-toolbar {
    grid-template-columns: 1fr;
  }

  .review-filter-grid {
    grid-template-columns: 1fr;
  }

  .wrong-start-card {
    display: grid;
  }

  .activation-message {
    grid-column: auto;
  }

  .page-head {
    display: grid;
  }

  .exam-switch-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .section-headline {
    display: grid;
    align-items: start;
  }

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

  .generation-source-toggle {
    width: 100%;
  }

  .generation-source-control {
    align-items: stretch;
    flex-direction: column;
  }

  .question-map {
    position: static;
    grid-template-columns: repeat(10, minmax(32px, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-tab {
    min-height: 64px;
    padding: 8px 5px;
  }

  .coach-day-summary-stats,
  .coach-chapter-detail dl {
    grid-template-columns: 1fr;
  }

  .coach-chapter-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .coach-chapter-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .coach-chapter-summary > small {
    grid-column: 1 / -1;
  }

  body {
    overflow-x: hidden;
  }

  .launchpad-headline {
    padding: 15px 14px;
  }

  .launchpad-headline h3 {
    font-size: 26px;
  }

  .launch-card {
    padding-bottom: 58px;
  }

  .launch-card em {
    bottom: 36px;
    max-width: calc(100% - 28px);
  }

  .launch-card::after {
    left: 14px;
    right: auto;
    bottom: 12px;
  }

  .workspace,
  .panel,
  .score-panel,
  .truth-card,
  .review-card,
  .record-detail,
  .knowledge-record,
  .plan-card,
  .activation-panel {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table-wrap,
  .review-list,
  .truth-practice-list,
  .record-layout,
  .mastery-grid {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .study-report-grid,
  .practice-recommendation-list {
    grid-template-columns: 1fr;
  }

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

  .variation-button {
    width: 100%;
  }

  .modal {
    display: block;
    max-height: 100dvh;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-backdrop {
    position: fixed;
  }

  .auth-card,
  .notice-card {
    width: 100%;
    max-height: none;
    min-height: auto;
    margin: 0 auto max(28px, env(safe-area-inset-bottom));
    overflow: visible;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  }

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

  .verify-row {
    grid-template-columns: 1fr;
  }

  .verify-button {
    min-height: 42px;
  }

  .auth-submit {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 2;
    min-height: 44px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  }

  .segmented,
  .filter-bar,
  .mastery-scope-list,
  .record-toolbar,
  .exam-bottom-actions,
  .quota-actions {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar,
  .mastery-scope-list,
  .exam-bottom-actions,
  .quota-actions {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-button,
  .bookmark-button,
  .exam-bottom-actions button,
  .quota-actions button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .record-toolbar {
    display: grid;
    gap: 10px;
  }

  .record-toolbar .segmented,
  .record-search,
  .record-scope-field {
    min-width: 0;
    width: 100%;
  }

  .truth-card-head,
  .review-head,
  .plan-head,
  .activation-form {
    flex-wrap: wrap;
  }

  .truth-option,
  .option-line {
    min-width: 0;
  }

  .truth-option span,
  .option-line span,
  .review-option-list span,
  .plan-features span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

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

  .sidebar .nav-tabs {
    display: grid;
    gap: 8px;
    padding-bottom: 4px;
  }

  .sidebar .nav-tab {
    width: 100%;
  }

  .split-row {
    grid-template-columns: 1fr;
  }

  .source-switch {
    grid-template-columns: 1fr;
  }

  .generation-goal-grid.is-compact {
    display: flex;
    overflow-x: auto;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .generation-goal-grid.is-compact .generation-goal-card {
    flex: 0 0 210px;
    min-height: 104px;
  }

  .daily-guide-stats,
  .daily-guide-actions,
  .subject-coach-card,
  .today-plan-list,
  .launchpad-grid,
  .daily-path-panel,
  .daily-path-steps,
  .insight-grid,
  .diagnosis-reason-grid,
  .mini-chart-grid {
    grid-template-columns: 1fr;
  }

  .coach-form,
  .coach-metrics,
  .coach-phase-list,
  .coach-continuity,
  .coach-weekly,
  .coach-advice,
  .coach-task {
    grid-template-columns: 1fr;
  }

  .coach-continuity-item + .coach-continuity-item {
    border-top: 1px solid rgba(31, 94, 255, 0.14);
    border-left: 0;
  }

  .coach-weekly-metrics,
  .coach-stage-list {
    grid-template-columns: 1fr;
  }

  .coach-plan-bar,
  .coach-today-head {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-plan-actions,
  .coach-time-actions {
    justify-content: stretch;
  }

  .coach-plan-actions button,
  .coach-time-actions button,
  .coach-task > button {
    width: 100%;
  }

  .coach-task-order {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
  }

  .coach-task-progress {
    grid-template-columns: 1fr;
  }

  .daily-path-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-path-title-row label,
  .daily-path-title-row select {
    width: 100%;
  }

  .question-count-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outline-progress-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .type-row {
    grid-template-columns: 1fr;
  }

  .difficulty-custom,
  .difficulty-preview,
  .mastery-source-tools,
  .mastery-source-pager,
  .review-source-tools,
  .record-cleanup-grid,
  .cleanup-status-group,
  .cleanup-result-summary,
  .list-pager,
  .mastery-source-group-head {
    grid-template-columns: 1fr;
  }

  .review-source-head {
    display: grid;
  }

  .review-source-head small {
    max-width: none;
    text-align: left;
  }

  .review-source-hint.is-ready {
    grid-template-columns: 1fr;
  }

  .review-source-hint-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .distribution-preview {
    display: grid;
  }

  .distribution-preview p {
    text-align: left;
  }

  .page-head h2 {
    font-size: 24px;
  }
}
