:root {
  --ink: #10201f;
  --muted: #60706d;
  --paper: #f5f7f4;
  --card: #ffffff;
  --card-soft: #eef4ef;
  --line: #dce5df;
  --accent: #0b6b5d;
  --accent-dark: #074c42;
  --accent-soft: #d7e7df;
  --accent-warm: #c7a968;
  --warn: #b84624;
  --good: #25764a;
  --shadow: 0 10px 24px rgba(16, 32, 31, 0.1);
  --shadow-soft: 0 4px 12px rgba(16, 32, 31, 0.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 14% -8%, rgba(11, 107, 93, 0.14), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(199, 169, 104, 0.14), transparent 25%),
    radial-gradient(circle at 40% 78%, rgba(215, 231, 223, 0.48), transparent 38%),
    linear-gradient(180deg, #f8faf7 0%, #eef4ef 54%, #f5f7f4 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.78) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 72% 18%, rgba(16, 32, 31, 0.075) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 82% 76%, rgba(11, 107, 93, 0.085) 0 1.2px, transparent 1.9px);
  background-size: 30px 30px, 44px 44px, 62px 62px;
  opacity: 0.78;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 4%, rgba(11, 107, 93, 0.2), transparent 36%),
    radial-gradient(ellipse at 100% 18%, rgba(199, 169, 104, 0.18), transparent 34%),
    radial-gradient(ellipse at 66% 96%, rgba(215, 231, 223, 0.62), transparent 42%);
  opacity: 0.9;
}

body > * {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  padding: 14px 18px 6px;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 auto -34px;
  z-index: -1;
  height: 176px;
  background:
    radial-gradient(circle at 18% 52%, rgba(11, 107, 93, 0.14), transparent 34%),
    radial-gradient(circle at 72% 32%, rgba(199, 169, 104, 0.14), transparent 28%);
  filter: blur(2px);
}

.welcome-active {
  overflow: hidden;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 22px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(11, 107, 93, 0.18), transparent 34%),
    radial-gradient(ellipse at 96% 10%, rgba(199, 169, 104, 0.2), transparent 30%),
    radial-gradient(ellipse at 42% 104%, rgba(215, 231, 223, 0.76), transparent 44%),
    linear-gradient(160deg, #f9fbf7 0%, #eef5ef 52%, #f5f7f4 100%);
}

.welcome-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(16, 32, 31, 0.09) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 74% 20%, rgba(199, 169, 104, 0.16) 0 1.2px, transparent 2px),
    radial-gradient(circle at 82% 78%, rgba(11, 107, 93, 0.12) 0 1.1px, transparent 1.9px);
  background-size: 28px 28px, 46px 46px, 64px 64px;
  opacity: 0.78;
}

.welcome-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9%;
  width: min(420px, 72vw);
  height: min(420px, 72vw);
  border: 1px solid rgba(11, 107, 93, 0.08);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.welcome-shell {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  animation: welcome-rise 360ms var(--ease-out);
}

.welcome-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  animation: card-rise 360ms var(--ease-out) both;
}

.welcome-brandline .eyebrow {
  margin: 0;
  color: rgba(7, 76, 66, 0.78);
}

.welcome-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 107, 93, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 10px rgba(16, 32, 31, 0.08);
}

.welcome-hero-card {
  position: relative;
  margin-top: 12px;
  border: 1px solid rgba(11, 107, 93, 0.13);
  border-radius: 22px;
  padding: 24px;
  background:
    radial-gradient(circle at 102% -8%, rgba(199, 169, 104, 0.2), transparent 34%),
    radial-gradient(circle at 0% 102%, rgba(11, 107, 93, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  box-shadow: 0 14px 30px rgba(16, 32, 31, 0.1);
  overflow: hidden;
}

.welcome-hero-card::after {
  content: "";
  position: absolute;
  right: -82px;
  top: -86px;
  width: 238px;
  height: 238px;
  border-radius: 999px;
  border: 1px solid rgba(199, 169, 104, 0.2);
  background: radial-gradient(circle, rgba(199, 169, 104, 0.14), transparent 64%);
}

.welcome-copy {
  position: relative;
  z-index: 1;
}

.welcome-title {
  max-width: 8.5em;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2.18rem, 10vw, 3.62rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.welcome-title span {
  display: block;
  animation: title-split-rise 420ms var(--ease-out) both;
}

.welcome-title span + span {
  margin-left: 0.82em;
  animation-delay: 70ms;
}

.welcome-lead {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  animation: card-rise 360ms var(--ease-out) 90ms both;
}

.welcome-statement {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  animation: card-rise 360ms var(--ease-out) 140ms both;
}

.welcome-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.welcome-card {
  position: relative;
  border: 1px solid rgba(11, 107, 93, 0.12);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 14px rgba(16, 32, 31, 0.08);
  animation: card-rise 360ms var(--ease-out) 220ms both;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 32, 31, 0.1);
}

.welcome-card:nth-child(2) {
  margin-left: 18px;
  animation-delay: 280ms;
}

.welcome-card:nth-child(3) {
  margin-left: 36px;
  animation-delay: 340ms;
}

.welcome-card-main {
  border-color: rgba(199, 169, 104, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 239, 224, 0.78));
}

.welcome-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.welcome-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.welcome-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  animation: card-rise 360ms var(--ease-out) 380ms both;
}

.welcome-enter {
  min-height: 54px;
  width: 100%;
  font-size: 1.05rem;
  box-shadow: 0 10px 18px rgba(11, 107, 93, 0.2);
}

.welcome-trial-button {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(11, 107, 93, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.trial-application {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(11, 107, 93, 0.14);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 169, 104, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(16, 32, 31, 0.08);
  text-align: left;
}

.trial-application.hidden {
  display: none;
}

.trial-application-head {
  display: grid;
  gap: 4px;
}

.trial-application-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.trial-application-head span,
.trial-application-status {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.trial-application label {
  margin: 0;
  gap: 6px;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.trial-application input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(11, 107, 93, 0.18);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.trial-application input:focus-visible {
  outline: 3px solid rgba(11, 107, 93, 0.18);
  outline-offset: 2px;
}

.trial-application-status {
  margin: 0;
  text-align: left;
}

.welcome-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.welcome-disclaimer {
  font-size: 0.82rem;
  opacity: 0.86;
}

.welcome-screen.is-leaving {
  animation: welcome-exit 220ms var(--ease-out) forwards;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.welcome-replay {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(11, 107, 93, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-dark);
  box-shadow: none;
  font-size: 0.78rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.55rem, 5.8vw, 2.6rem);
  line-height: 1.02;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 750;
  margin-bottom: 8px;
}

h3 {
  margin: 20px 0 10px;
  font-size: 1.04rem;
  line-height: 1.3;
  font-weight: 700;
}

.subtitle,
.section-title p {
  color: var(--muted);
  line-height: 1.65;
}

.quick-nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-today {
  max-width: 680px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.nav-chip,
.dock-link {
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.nav-chip.is-active,
.dock-link.is-active {
  background: var(--accent);
  color: white;
}

.nav-chip:disabled,
.dock-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 14px 122px;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, var(--shadow-soft);
  margin: 9px 0;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.hidden {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-weight: 600;
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
}

.custom-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 13px 0 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  text-align: left;
}

.custom-select-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease-out);
}

.custom-select-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select.is-open .custom-select-button {
  border-color: rgba(11, 107, 93, 0.42);
  box-shadow: 0 0 0 4px rgba(11, 107, 93, 0.1);
}

.custom-select.is-open .custom-select-button::after {
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(11, 107, 93, 0.22);
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(16, 32, 31, 0.18);
}

.custom-select.is-open .custom-select-menu {
  display: grid;
  animation: soft-reveal 160ms var(--ease-out);
}

.custom-select-option {
  display: block;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 650;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: rgba(215, 231, 223, 0.72);
}

.custom-select-option.is-selected {
  background: var(--accent);
  color: #ffffff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 9px;
  margin: 12px 0;
}

.action-card {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 68px;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.action-card span {
  font-weight: 800;
}

.action-card small {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.82;
}

.action-card-primary {
  min-height: 76px;
  font-size: 1.16rem;
  box-shadow: 0 12px 20px rgba(11, 107, 93, 0.22);
}

.action-card-secondary {
  border: 1px solid rgba(11, 107, 93, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.training-more,
.review-more,
.section-collapse {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(238, 244, 239, 0.42);
  overflow: hidden;
}

.training-more {
  overflow: visible;
}

.training-more > summary,
.review-more > summary,
.section-collapse > summary {
  padding: 12px 14px;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.legal-disclaimer {
  margin-top: 12px;
  border: 1px solid rgba(96, 112, 109, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.legal-disclaimer > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.legal-disclaimer > summary::-webkit-details-marker {
  display: none;
}

.legal-disclaimer > summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(96, 112, 109, 0.22);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
}

.legal-disclaimer[open] > summary::after {
  content: "-";
}

.legal-disclaimer span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.legal-disclaimer small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 560;
}

.legal-disclaimer p {
  margin: 0;
  padding: 0 13px 13px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.training-more > summary::-webkit-details-marker,
.review-more > summary::-webkit-details-marker,
.section-collapse > summary::-webkit-details-marker {
  display: none;
}

.training-more > summary::after,
.review-more > summary::after,
.section-collapse > summary::after {
  content: "+";
  float: right;
}

.training-more[open] > summary::after,
.review-more[open] > summary::after,
.section-collapse[open] > summary::after {
  content: "-";
}

.training-more > label,
.training-more > .button-row,
.training-more > .stats-grid,
.review-more > h3,
.review-more > div,
.review-more > textarea {
  margin-left: 14px;
  margin-right: 14px;
}

.section-collapse > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 50px;
}

.section-collapse > summary::after {
  float: none;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(11, 107, 93, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.section-collapse > summary span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.25;
}

.section-collapse > summary small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 560;
  line-height: 1.35;
}

.section-collapse > .knowledge-list {
  margin: 0 12px 12px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out);
  touch-action: manipulation;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 14px rgba(11, 107, 93, 0.18);
}

.primary:hover {
  background: var(--accent-dark);
}

button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 3px 8px rgba(11, 107, 93, 0.18);
}

button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(11, 107, 93, 0.24);
  outline-offset: 3px;
}

.ghost {
  background: var(--card-soft);
  color: var(--accent-dark);
}

.wide {
  width: 100%;
  min-height: 54px;
}

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

#progressSummary {
  gap: 10px;
  margin-bottom: 14px;
}

#progressDetails {
  margin-top: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.dashboard-card.wide-card {
  grid-column: 1 / -1;
}

.stat-card,
.dashboard-card,
.knowledge-overview,
.knowledge-note-card,
.knowledge-card,
.wrong-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-card,
.stat-card {
  padding: 9px 10px;
  background: rgba(238, 244, 239, 0.44);
  color: var(--muted);
}

.stats-grid .stat-card,
.dashboard-grid .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
}

.stat-card strong {
  display: block;
  font-size: 1.34rem;
}

.stats-grid .stat-card strong,
.dashboard-grid .stat-card strong {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: normal;
}

.stats-grid .stat-card span,
.dashboard-grid .stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-grid .stat-card {
  align-items: center;
  text-align: center;
}

.stats-grid .stat-card {
  align-items: flex-start;
  text-align: left;
}

.status-card strong {
  font-size: 1rem;
  white-space: nowrap;
}

.dashboard-card strong,
.dashboard-card b {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 780;
}

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

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

.practice-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 2px;
}

.practice-flow span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.practice-flow b,
.focus-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(11, 107, 93, 0.16);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 750;
}

.sticky-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.progress-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.progress-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  margin: 12px 0;
  background: var(--card);
}

.question-card legend {
  padding: 0;
  font-weight: 750;
  line-height: 1.55;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf7;
  font-weight: 600;
}

.choice input {
  margin-top: 4px;
}

.submit-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 0 0;
}

.submit-wrap .wide {
  flex: 1 1 auto;
  width: auto;
}

.answer-feedback {
  margin-top: 12px;
  border: 1px solid rgba(11, 107, 93, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: rgba(238, 244, 239, 0.9);
  line-height: 1.6;
}

.answer-feedback p {
  margin: 8px 0 0;
}

.result-summary {
  display: grid;
  gap: 10px;
}

.review-jump-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.result-score {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.knowledge-list,
.wrong-list {
  display: grid;
  gap: 10px;
}

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

.review-focus-card,
.direction-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 244, 239, 0.5));
}

.review-focus-card p,
.direction-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.direction-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.direction-status-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid rgba(11, 107, 93, 0.14);
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.68);
}

.direction-status-target {
  border-color: rgba(199, 169, 104, 0.28);
  background: rgba(251, 246, 232, 0.7);
}

.direction-status-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.direction-status-card strong {
  color: var(--accent-dark);
  font-size: 1.08rem;
  line-height: 1.15;
}

.direction-status-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

@media (max-width: 360px) {
  .direction-status-grid {
    grid-template-columns: 1fr;
  }
}

.focus-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

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

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

.trend-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  width: min(100%, 340px);
  min-height: 58px;
  border: 1px solid rgba(11, 107, 93, 0.1);
  border-radius: 12px;
  padding: 8px 8px 7px;
  background: rgba(255, 255, 255, 0.58);
}

.trend-bar-item {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.trend-bar {
  display: block;
  width: 100%;
  max-width: 16px;
  border-radius: 2px 2px 0 0;
  background: rgba(11, 107, 93, 0.82);
}

.trend-bar-item small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.1;
}

.trend-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.diagnostic-card {
  background: rgba(255, 255, 255, 0.86);
}

.diagnostic-title {
  display: block;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.35;
}

.diagnostic-card p {
  margin: 0;
  line-height: 1.58;
}

.diagnostic-card b {
  margin-right: 4px;
  color: var(--accent-dark);
  font-weight: 760;
}

.diagnostic-primary {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(11, 107, 93, 0.08);
}

.diagnostic-body {
  display: grid;
  gap: 10px;
}

.diagnostic-path {
  color: var(--ink);
}

.diagnostic-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.diagnostic-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(11, 107, 93, 0.18);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--card-soft);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 650;
}

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

.knowledge-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.knowledge-overview h3 {
  margin: 0 0 8px;
}

.knowledge-note-card {
  padding: 0;
  overflow: hidden;
}

.knowledge-note-card summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

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

.knowledge-note-card summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--accent-dark);
  font-weight: 800;
}

.knowledge-note-card[open] summary::after {
  content: "-";
}

.knowledge-note-card summary span {
  grid-column: 1;
  font-weight: 750;
  line-height: 1.35;
}

.knowledge-note-card summary small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.note-body {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  line-height: 1.7;
}

.note-body h3,
.note-body h4,
.note-body h5 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.note-body p {
  margin: 8px 0;
}

.note-body ul {
  margin: 8px 0;
  padding-left: 1.2rem;
}

.note-body li {
  margin: 6px 0;
}

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fbf6e8;
  font-size: 0.88rem;
  font-weight: 650;
}

.wrong-card.correct {
  border-color: rgba(47, 125, 71, 0.35);
}

.answer-line {
  margin: 8px 0;
  line-height: 1.55;
}

.answer-line b {
  color: var(--warn);
}

.answer-diagnosis {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(184, 70, 36, 0.08);
}

textarea {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--card);
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  line-height: 1.55;
}

.top-button {
  position: fixed;
  right: 14px;
  bottom: 82px;
  z-index: 8;
  box-shadow: var(--shadow);
}

.dock-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(16, 32, 31, 0.14);
}

.dock-link {
  padding: 10px 8px;
  font-size: 0.92rem;
  font-weight: 760;
  box-shadow: none;
}

.dock-link.is-active {
  box-shadow: 0 8px 18px rgba(11, 107, 93, 0.2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 10;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(24, 32, 21, 0.94);
  color: white;
  box-shadow: var(--shadow);
}

.toast.hidden {
  display: none;
}

@keyframes soft-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcome-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-split-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes welcome-exit {
  to {
    opacity: 0;
    transform: scale(0.992);
  }
}

.section-collapse[open] > .knowledge-list,
.review-more[open] > div,
.review-more[open] > textarea,
.training-more[open] > label,
.training-more[open] > .button-row,
.training-more[open] > .stats-grid,
.knowledge-note-card[open] > .note-body {
  animation: soft-reveal 180ms var(--ease-out);
}

.training-more > summary::after,
.review-more > summary::after,
.section-collapse > summary::after,
.knowledge-note-card summary::after {
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.training-more[open] > summary::after,
.review-more[open] > summary::after,
.section-collapse[open] > summary::after,
.knowledge-note-card[open] summary::after {
  background: rgba(11, 107, 93, 0.1);
  border-color: rgba(11, 107, 93, 0.28);
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 759px) {
  .hero {
    padding-top: 12px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

  .action-card-primary,
  .action-card-secondary {
    min-height: 64px;
  }

  .button-row > button {
    flex: 1 1 100%;
  }

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

  .submit-wrap .wide {
    grid-column: 1 / -1;
  }

  .review-jump-row > button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (min-width: 760px) {
  .panel {
    padding: 22px;
  }

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

  .sticky-head {
    margin: -22px -22px 18px;
    padding: 14px 22px;
  }

  .shell {
    padding-bottom: 110px;
  }
}
