:root {
  --bg: #f7efe1;
  --bg-soft: rgba(255, 250, 241, 0.86);
  --card: rgba(255, 253, 247, 0.88);
  --ink: #1f2b27;
  --muted: #5f6963;
  --line: rgba(31, 43, 39, 0.12);
  --accent: #bf5b2c;
  --accent-strong: #8f3d18;
  --accent-soft: rgba(191, 91, 44, 0.12);
  --sage: #6a8f80;
  --gold: #e7c47c;
  --shadow: 0 24px 70px rgba(63, 46, 25, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(231, 196, 124, 0.34), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(106, 143, 128, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf6ea 0%, #f7efe1 44%, #f2e5d2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 38%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 22px,
      rgba(31, 43, 39, 0.025) 22px,
      rgba(31, 43, 39, 0.025) 23px
    );
  pointer-events: none;
  z-index: -1;
}

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

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

.page-shell {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
  color: #fff9ef;
  font-family: "STKaiti", "Kaiti SC", "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(143, 61, 24, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.eyebrow,
h1,
h2,
h3 {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.brand-copy small {
  color: var(--muted);
  margin-top: 2px;
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 43, 39, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-link,
.text-button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: transparent;
  color: var(--accent-strong);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.meta-link:hover,
.text-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.text-button:disabled,
.preset-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.panel,
.resource-strip {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 91, 44, 0.18), transparent 68%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.02;
  margin: 0;
  max-width: 11ch;
}

.hero-text {
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.8;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff9ef;
  box-shadow: 0 14px 26px rgba(143, 61, 24, 0.26);
}

.button.secondary {
  border: 1px solid rgba(31, 43, 39, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.hero-panel {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.meter-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.meter-ring {
  --completion: 0%;
  width: 208px;
  height: 208px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0 58%, transparent 58.4%),
    conic-gradient(var(--accent) var(--completion), rgba(31, 43, 39, 0.08) 0);
  box-shadow:
    inset 0 0 0 1px rgba(31, 43, 39, 0.06),
    0 18px 30px rgba(79, 54, 31, 0.12);
}

.meter-core {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf7, #f7efe1);
  box-shadow: inset 0 0 0 1px rgba(31, 43, 39, 0.06);
}

.meter-core strong {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 2rem;
  line-height: 1;
}

.meter-core span,
.meter-caption,
.column-note,
.stats-summary,
.task-meta,
.phase-window,
.phase-goals li,
.card-caption,
.step-list,
.phrase-list {
  color: var(--muted);
}

.meter-caption {
  margin: 0;
  text-align: center;
  max-width: 26ch;
  line-height: 1.7;
}

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

.stat-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid rgba(31, 43, 39, 0.08);
  min-height: 114px;
  display: grid;
  align-content: space-between;
}

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

.stat-card strong {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-grid,
.double-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

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

.panel {
  padding: 28px;
}

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

.panel-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--accent-strong);
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.text-button {
  cursor: pointer;
}

.task-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.column-note {
  margin: 8px 0 16px;
  line-height: 1.7;
}

.task-list,
.phrase-list,
.phase-goals,
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.task-item {
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.task-item:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 91, 44, 0.22);
}

.task-item label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.task-item input {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
}

.task-copy {
  display: grid;
  gap: 5px;
}

.task-copy strong {
  font-size: 1rem;
}

.task-meta {
  font-size: 0.9rem;
  line-height: 1.6;
}

.task-item.done {
  border-color: rgba(106, 143, 128, 0.3);
  background: linear-gradient(180deg, rgba(230, 244, 239, 0.9), rgba(255, 255, 255, 0.7));
}

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

.stats-form label,
.review-fields label {
  display: grid;
  gap: 8px;
}

.stats-form span,
.review-fields span {
  font-size: 0.92rem;
  color: var(--muted);
}

.stats-form input,
.stats-form select,
.review-fields textarea {
  width: 100%;
  border: 1px solid rgba(31, 43, 39, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stats-form input:focus,
.stats-form select:focus,
.review-fields textarea:focus {
  outline: none;
  border-color: rgba(191, 91, 44, 0.45);
  box-shadow: 0 0 0 4px rgba(191, 91, 44, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.stats-summary {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  line-height: 1.8;
}

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

.review-fields textarea {
  resize: vertical;
  min-height: 92px;
}

.reason-block {
  margin-top: 20px;
}

.reason-block h3 {
  margin-bottom: 14px;
}

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

.reason-chip {
  position: relative;
}

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

.reason-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 39, 0.1);
  background: rgba(255, 255, 255, 0.72);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.reason-chip input:checked + span {
  background: rgba(106, 143, 128, 0.18);
  border-color: rgba(106, 143, 128, 0.28);
  color: var(--ink);
  transform: translateY(-1px);
}

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

.phase-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.phase-card.current {
  background: linear-gradient(180deg, rgba(191, 91, 44, 0.08), rgba(255, 255, 255, 0.76));
  border-color: rgba(191, 91, 44, 0.25);
}

.phase-card.complete {
  border-color: rgba(106, 143, 128, 0.22);
}

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

.phase-title {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.16rem;
}

.phase-window {
  font-size: 0.9rem;
}

.phase-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 43, 39, 0.08);
  white-space: nowrap;
  font-size: 0.85rem;
}

.phase-goals {
  display: grid;
  gap: 8px;
}

.phase-goals li::before,
.phrase-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.sprint-grid,
.tactics-grid,
.toolkit-grid {
  display: grid;
  gap: 16px;
}

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

.sprint-card,
.tactic-card,
.toolkit-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.sprint-card {
  padding: 18px 16px;
  display: grid;
  gap: 10px;
  min-height: 192px;
}

.sprint-card strong,
.tactic-card h3 {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.day-chip {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(191, 91, 44, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
}

.card-caption {
  line-height: 1.7;
}

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

.tactic-card {
  padding: 20px;
  display: grid;
  gap: 12px;
  min-height: 240px;
}

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

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

.toolkit-card {
  padding: 20px;
}

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

.phrase-list {
  display: grid;
  gap: 12px;
  line-height: 1.7;
}

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

.translation-group {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(247, 239, 225, 0.72);
  border: 1px solid rgba(31, 43, 39, 0.06);
}

.translation-group h4 {
  margin: 0 0 10px;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.translation-group ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.step-list li {
  display: flex;
  gap: 12px;
  line-height: 1.7;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(191, 91, 44, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.resource-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-top: 24px;
}

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

.resource-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 43, 39, 0.08);
  color: var(--accent-strong);
}

.timer-stack,
.capture-form,
.entry-list {
  display: grid;
  gap: 14px;
}

.timer-display-card,
.vault-card,
.summary-card,
.entry-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.timer-display-card {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(231, 196, 124, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 225, 0.92));
}

.timer-top,
.entry-top,
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.timer-mode,
.timer-status,
.entry-time,
.entry-source,
.entry-submeta {
  color: var(--muted);
}

.timer-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 43, 39, 0.08);
  font-size: 0.85rem;
}

.timer-display {
  display: block;
  margin-top: 20px;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(3rem, 10vw, 5.7rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.timer-hint {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.preset-grid,
.summary-grid {
  display: grid;
  gap: 12px;
}

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

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

.preset-button {
  padding: 14px 16px;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.preset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 91, 44, 0.2);
}

.preset-button.active {
  background: linear-gradient(180deg, rgba(191, 91, 44, 0.12), rgba(255, 255, 255, 0.84));
  border-color: rgba(191, 91, 44, 0.3);
}

.preset-button strong,
.summary-card strong {
  display: block;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.preset-button strong {
  font-size: 1rem;
  margin-bottom: 6px;
}

.preset-button span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

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

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

.inline-field input,
.capture-form input,
.capture-form select,
.capture-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 43, 39, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.inline-field input:focus,
.capture-form input:focus,
.capture-form select:focus,
.capture-form textarea:focus {
  outline: none;
  border-color: rgba(191, 91, 44, 0.45);
  box-shadow: 0 0 0 4px rgba(191, 91, 44, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

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

.coach-stack,
.coach-list,
.mock-grid {
  display: grid;
  gap: 16px;
}

.coach-hero,
.coach-action,
.mock-card,
.mock-entry {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.coach-hero {
  padding: 20px;
  background:
    radial-gradient(circle at 85% 12%, rgba(106, 143, 128, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 225, 0.92));
}

.coach-hero strong {
  display: block;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
}

.coach-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.coach-action {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.coach-index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(191, 91, 44, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  flex: 0 0 auto;
}

.coach-action strong {
  display: block;
  margin-bottom: 4px;
}

.coach-action p,
.mock-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.summary-card {
  padding: 18px;
  min-height: 116px;
  display: grid;
  align-content: space-between;
}

.summary-card span,
.summary-card small {
  color: var(--muted);
}

.summary-card strong {
  font-size: 1.7rem;
  line-height: 1.15;
}

.material-highlight {
  background:
    radial-gradient(circle at 88% 14%, rgba(106, 143, 128, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 225, 0.88));
}

.material-highlight small {
  line-height: 1.6;
}

.materials-lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 70ch;
}

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

.material-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background:
    radial-gradient(circle at 92% 10%, rgba(231, 196, 124, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 225, 0.9));
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 38px rgba(63, 46, 25, 0.08);
}

.material-top,
.material-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

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

.material-tag {
  background: rgba(255, 255, 255, 0.8);
}

.material-card h3 {
  margin: 12px 0 0;
  font-size: 1.22rem;
  line-height: 1.4;
}

.material-flag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 43, 39, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.material-copy,
.material-source,
.material-usage p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.material-points {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.material-points li {
  line-height: 1.7;
}

.material-points li::marker {
  color: var(--accent-strong);
}

.material-usage {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31, 43, 39, 0.14);
  background: rgba(255, 255, 255, 0.68);
}

.material-usage strong {
  display: block;
  margin-bottom: 6px;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.material-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.material-link:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 91, 44, 0.28);
  background: rgba(255, 255, 255, 0.98);
}

.practice-summary-grid {
  margin-top: 6px;
}

.practice-shell {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 20px;
  margin-top: 20px;
}

.practice-sidebar,
.practice-stage,
.practice-set-list,
.practice-questions {
  display: grid;
  gap: 14px;
}

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

.practice-filter {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 39, 0.1);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.practice-filter.active {
  background: rgba(191, 91, 44, 0.12);
  border-color: rgba(191, 91, 44, 0.26);
  color: var(--accent-strong);
}

.practice-filter:hover,
.practice-set-card:hover,
.practice-option span:hover {
  transform: translateY(-1px);
}

.practice-set-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background:
    radial-gradient(circle at 92% 12%, rgba(231, 196, 124, 0.16), transparent 24%),
    rgba(255, 255, 255, 0.74);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.practice-set-card.active {
  border-color: rgba(191, 91, 44, 0.26);
  box-shadow: 0 16px 30px rgba(143, 61, 24, 0.1);
  background:
    radial-gradient(circle at 92% 12%, rgba(191, 91, 44, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 248, 241, 0.96), rgba(247, 239, 225, 0.92));
}

.practice-set-top,
.practice-set-footer,
.practice-passage-head,
.practice-qhead,
.practice-actions,
.practice-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.practice-set-card strong,
.practice-stem,
.practice-analysis strong {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.practice-set-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.practice-set-card p,
.practice-pass-note,
.practice-passage p,
.practice-question-context,
.practice-analysis p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.practice-set-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.practice-history-block {
  margin-top: 4px;
}

.practice-history-item {
  padding: 16px;
}

.practice-stage {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background:
    radial-gradient(circle at 88% 10%, rgba(106, 143, 128, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 239, 225, 0.92));
}

.practice-head-actions {
  align-items: center;
}

.practice-passage {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(31, 43, 39, 0.14);
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 10px;
}

.practice-passage:empty {
  display: none;
}

.practice-question {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 12px;
}

.practice-question.correct {
  border-color: rgba(106, 143, 128, 0.28);
  background: linear-gradient(180deg, rgba(231, 244, 239, 0.92), rgba(255, 255, 255, 0.72));
}

.practice-question.wrong {
  border-color: rgba(191, 91, 44, 0.24);
  background: linear-gradient(180deg, rgba(255, 244, 239, 0.96), rgba(255, 255, 255, 0.72));
}

.practice-qstatus {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.practice-qstatus.correct {
  background: rgba(106, 143, 128, 0.16);
  color: #2f5a4d;
}

.practice-qstatus.wrong {
  background: rgba(191, 91, 44, 0.12);
  color: var(--accent-strong);
}

.practice-qstatus.neutral {
  background: rgba(31, 43, 39, 0.06);
  color: var(--muted);
}

.practice-question-context {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(247, 239, 225, 0.78);
  border: 1px solid rgba(31, 43, 39, 0.06);
}

.practice-stem {
  display: block;
  font-size: 1.08rem;
  line-height: 1.55;
}

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

.practice-option {
  position: relative;
}

.practice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.practice-option span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 43, 39, 0.1);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

.practice-option input:checked + span {
  border-color: rgba(191, 91, 44, 0.3);
  background: rgba(255, 245, 239, 0.95);
}

.practice-option.is-answer span {
  border-color: rgba(106, 143, 128, 0.28);
  background: rgba(231, 244, 239, 0.92);
}

.practice-option.is-selected-wrong span {
  border-color: rgba(191, 91, 44, 0.28);
  background: rgba(255, 240, 234, 0.95);
}

.option-letter {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 91, 44, 0.1);
  color: var(--accent-strong);
  font-style: normal;
  flex: 0 0 auto;
}

.practice-option em {
  font-style: normal;
  line-height: 1.7;
}

.practice-analysis {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31, 43, 39, 0.14);
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 8px;
}

.practice-analysis strong {
  font-size: 1rem;
}

.practice-feedback {
  margin-top: 0;
}

.vault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mock-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.vault-card {
  padding: 20px;
}

.mock-card {
  padding: 20px;
}

.capture-form label {
  display: grid;
  gap: 8px;
}

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

.capture-form textarea {
  resize: vertical;
  min-height: 88px;
}

.entry-list {
  margin-top: 18px;
}

.entry-empty {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31, 43, 39, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.entry-item {
  padding: 16px;
}

.entry-item strong {
  font-size: 1rem;
}

.mock-entry {
  padding: 16px;
}

.mock-scoreline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(191, 91, 44, 0.12);
  color: var(--accent-strong);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 1.08rem;
}

.score-badge.good {
  background: rgba(106, 143, 128, 0.18);
  color: #2f5a4d;
}

.score-badge.warn {
  background: rgba(231, 196, 124, 0.24);
  color: #8a6022;
}

.score-badge.risk {
  background: rgba(191, 91, 44, 0.16);
  color: var(--accent-strong);
}

.mock-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 43, 39, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(191, 91, 44, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
}

.entry-body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.entry-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.entry-submeta {
  font-size: 0.88rem;
}

.entry-delete {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 39, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

@media (max-width: 1100px) {
  .hero,
  .dashboard-grid,
  .double-grid,
  .task-columns {
    grid-template-columns: 1fr;
  }

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

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

  .mock-grid,
  .practice-shell,
  .materials-grid,
  .vault-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max-width), calc(100vw - 20px));
    padding-top: 12px;
  }

  .topbar,
  .panel-head,
  .resource-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .resource-strip {
    padding: 22px;
  }

  .stat-grid,
  .summary-grid,
  .toolkit-grid,
  .translation-groups,
  .sprint-grid,
  .tactics-grid,
  .preset-grid {
    grid-template-columns: 1fr;
  }

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

  .head-actions {
    justify-content: flex-start;
  }

  h1 {
    max-width: none;
  }

  .meter-ring {
    width: 188px;
    height: 188px;
  }

  .timer-actions,
  .entry-header,
  .entry-top,
  .mock-scoreline,
  .material-top,
  .material-actions,
  .practice-set-top,
  .practice-set-footer,
  .practice-passage-head,
  .practice-qhead,
  .practice-actions,
  .practice-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .reveal,
  .reveal.in-view,
  .meta-link,
  .text-button,
  .button,
  .task-item,
  .reason-chip span {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
