:root {
  --rice-paper: #fffaf0;
  --paper: #fffdf7;
  --ink: #1f2524;
  --muted: #69716c;
  --line: #ded2bb;
  --soft: #f7ead0;
  --navy: #26383d;
  --jade: #2f8f7b;
  --jade-dark: #176150;
  --teal: #2f8f7b;
  --green: #3d8b58;
  --gold: #d8a82f;
  --cinnabar: #b94135;
  --rose: #d75a7c;
  --blue: #346bb3;
  --bamboo: #8aa35e;
  --kai-font: KaiTi, STKaiti, "Kaiti SC", "Songti SC", serif;
  --shadow: 0 22px 54px rgba(42, 46, 39, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(185, 65, 53, .09), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(47, 143, 123, .13), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 240, .98), rgba(242, 250, 247, .92)),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(38, 56, 61, .05) 37px 38px),
    var(--rice-paper);
}

button {
  font: inherit;
}

.app-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 28px 24px 32px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(222, 210, 187, .82);
  border-left: 6px solid var(--cinnabar);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .98), rgba(248, 238, 216, .94) 55%, rgba(227, 246, 240, .92)),
    var(--paper);
  box-shadow: var(--shadow);
}

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

h1 {
  margin-bottom: 6px;
  font-family: var(--kai-font);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.date-line {
  margin-bottom: 0;
  color: var(--muted);
}

.score-box {
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 92px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--navy), #1d292e 52%, var(--jade-dark));
  color: white;
  box-shadow: 0 18px 34px rgba(31, 37, 36, .22);
}

.score-box span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 760;
}

.score-box strong {
  color: #ffe08a;
  font-size: 40px;
  line-height: 1;
}

.holiday-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .97), rgba(237, 250, 246, .92)),
    var(--paper);
}

.holiday-panel h2 {
  margin-bottom: 5px;
  font-size: 22px;
  letter-spacing: 0;
}

.holiday-status {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.holiday-status.active {
  color: var(--jade-dark);
  font-weight: 780;
}

.holiday-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.holiday-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.holiday-form input {
  min-height: 42px;
  width: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(38, 56, 61, .06);
}

.holiday-actions {
  display: flex;
  gap: 8px;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 16px;
  align-items: start;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(255, 250, 239, .98)),
    var(--paper);
  box-shadow: var(--shadow);
}

.study-panel.focus-mode {
  grid-column: 1 / -1;
}

.study-panel.focus-mode + .dictation-panel {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  background: linear-gradient(135deg, var(--navy), var(--jade-dark));
  color: white;
}

.panel-header .eyebrow {
  margin-bottom: 4px;
  color: #bfe9dd;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.count-pill {
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.plan-jump-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(222, 210, 187, .82);
  background: rgba(255, 250, 240, .72);
}

.plan-jump-form {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.plan-jump-form label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.plan-jump-form input {
  width: 82px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(38, 56, 61, .06);
}

.plan-jump-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.study-card {
  padding: 12px;
}

.study-entry-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(222, 210, 187, .9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, .97), rgba(229, 247, 241, .84)),
    white;
}

.study-entry-char {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(38, 56, 61, .24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(185, 65, 53, .14) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(47, 143, 123, .14) 50%, transparent calc(50% + 1px)),
    var(--rice-paper);
  color: var(--ink);
  font-family: var(--kai-font);
  font-size: clamp(108px, 12vw, 168px);
  font-weight: 500;
  line-height: 1;
}

.study-entry-copy {
  display: grid;
  gap: 8px;
}

.entry-label {
  margin-bottom: 0;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
}

.study-entry-copy h3 {
  margin-bottom: 0;
  font-family: var(--kai-font);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
}

.study-entry-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.entry-status {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e8f6ef;
  color: var(--jade-dark);
  font-size: 14px;
  font-weight: 780;
}

.entry-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.entry-form-row span {
  border: 1px solid rgba(47, 143, 123, .22);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .72);
  color: var(--jade-dark);
  font-size: 13px;
  font-weight: 780;
}

.study-entry-actions {
  display: grid;
  gap: 10px;
  min-width: 132px;
}

.study-focus-view {
  display: grid;
  gap: 10px;
}

.study-focus-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(222, 210, 187, .9);
}

.study-focus-header h3 {
  margin-bottom: 0;
  font-family: var(--kai-font);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.1;
}

.quiet-button {
  background: #f8f7f2;
}

.study-focus-grid {
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.study-sequence {
  display: grid;
  gap: 8px;
}

.sequence-step {
  display: grid;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(222, 210, 187, .82);
}

.sequence-step:last-of-type {
  border-bottom: 0;
}

.step-title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.step-title h4 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.1;
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cinnabar);
  color: white;
  font-size: 16px;
  font-weight: 880;
  box-shadow: 0 10px 22px rgba(185, 65, 53, .18);
}

.step-body {
  min-width: 0;
}

.sequence-row {
  display: grid;
  gap: 10px;
  align-items: stretch;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(222, 210, 187, .82);
}

.sequence-row .sequence-step {
  height: 100%;
  padding-bottom: 0;
  border-bottom: 0;
}

.sequence-row .step-body {
  display: grid;
}

.step-row-1-2 {
  grid-template-columns: minmax(220px, .76fr) minmax(0, 1.24fr);
}

.step-row-3-4 {
  grid-template-columns: minmax(240px, .86fr) minmax(0, 1.14fr);
}

.step-row-5-6 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sequence-pair {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 16px;
}

.character-visual-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.radical-character-card {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid rgba(222, 210, 187, .9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(185, 65, 53, .08) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(47, 143, 123, .08) 50%, transparent calc(50% + 1px)),
    white;
}

.radical-sequence-step .radical-character-card {
  min-height: 240px;
}

.radical-character-svg {
  width: min(250px, 100%);
  aspect-ratio: 1;
}

.radical-sequence-step .radical-character-svg {
  width: min(250px, 100%);
}

.radical-stroke-highlight {
  fill: #ef1717;
}

.radical-stroke-muted {
  fill: #565656;
}

.stroke-loading-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  width: 100%;
  border: 1px solid rgba(222, 210, 187, .9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(185, 65, 53, .08) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(47, 143, 123, .08) 50%, transparent calc(50% + 1px)),
    var(--rice-paper);
  color: var(--ink);
  text-align: center;
}

.stroke-loading-char {
  font-family: var(--kai-font);
  font-size: 96px;
  line-height: 1;
}

.stroke-loading-state p {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.focus-stroke-frame {
  min-height: 300px;
}

.rainbow-sequence-step .focus-stroke-frame {
  min-height: 280px;
}

.rainbow-stroke-section {
  background-size: 50% 50%;
}

.focus-stroke-frame .stroke-path-card {
  width: min(340px, 100%);
}

.rainbow-sequence-step .stroke-path-card {
  width: min(320px, 100%);
}

.focus-stroke-frame .stroke-path-character {
  width: min(320px, 100%);
}

.rainbow-sequence-step .stroke-path-character {
  width: min(300px, 100%);
}

.focus-notes {
  display: grid;
  align-content: start;
  gap: 30px;
}

.character-form-section {
  display: grid;
  gap: 12px;
}

.character-form-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 16px;
}

.structure-card,
.radical-card {
  display: grid;
  gap: 12px;
  align-items: stretch;
  min-height: 176px;
  border: 1px solid rgba(222, 210, 187, .9);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 247, .82);
}

.structure-sequence-step .structure-card {
  min-height: 240px;
  align-content: center;
}

.structure-sequence-step .form-card-body {
  gap: 18px;
}

.structure-sequence-step .structure-diagram {
  width: 110px;
  height: 110px;
  padding: 14px;
  gap: 10px;
}

.structure-sequence-step .structure-card strong {
  font-size: 30px;
}

.structure-sequence-step .structure-card span {
  font-size: 20px;
}

.form-card-label {
  margin-bottom: 0;
  color: var(--cinnabar);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .08em;
}

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

.structure-card strong,
.radical-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 24px;
}

.structure-card span,
.radical-card span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.32;
}

.radical-card .radical-pinyin {
  display: block;
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.16;
  opacity: .72;
}

.structure-diagram {
  display: grid;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(47, 143, 123, .32);
  border-radius: 8px;
  padding: 12px;
  background: white;
  gap: 8px;
}

.structure-block,
.structure-frame,
.structure-corner {
  display: block;
  border-radius: 5px;
  background: #21a447;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.structure-single {
  place-items: center;
}

.structure-single .structure-block {
  width: 48px;
  height: 48px;
}

.structure-left-right {
  grid-template-columns: 1fr 1fr;
}

.structure-top-bottom {
  grid-template-rows: 1fr 1fr;
}

.structure-full-surround {
  place-items: center;
}

.structure-full-surround .structure-frame {
  width: 52px;
  height: 52px;
  border: 9px solid #21a447;
  background: transparent;
}

.structure-semi-surround {
  place-items: center;
}

.structure-semi-surround .structure-corner {
  width: 52px;
  height: 52px;
  border-left: 10px solid #21a447;
  border-bottom: 10px solid #21a447;
  background: transparent;
}

.radical-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 90px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .95), rgba(247, 234, 208, .78)),
    var(--rice-paper);
  line-height: 1;
}

.radical-picture-symbol {
  color: #e21717;
  font-size: 56px;
  font-weight: 650;
}

.radical-picture-img {
  display: block;
  width: 88px;
  height: 82px;
  object-fit: contain;
}

.radical-muted {
  color: rgba(31, 37, 36, .34);
  font-size: 24px;
}

.focus-character-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.focus-character {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 2px solid #2c3240;
  border-radius: 8px;
  background: white;
  font-family: var(--kai-font);
  font-size: 106px;
  font-weight: 500;
  line-height: 1;
}

.word-section {
  display: grid;
  gap: 14px;
}

.word-section h4 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: 0;
}

.character-stage {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stroke-frame {
  display: grid;
  place-items: center;
  min-height: 440px;
  border: 1px solid rgba(222, 210, 187, .9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 143, 123, .08), transparent 52%),
    linear-gradient(90deg, rgba(185, 65, 53, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(38, 56, 61, .08) 1px, transparent 1px),
    var(--rice-paper);
  background-size: 50% 50%;
}

.stroke-path-card {
  display: grid;
  justify-items: center;
  width: min(360px, 100%);
}

.stroke-path-character {
  display: grid;
  place-items: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
  border: 2px solid rgba(38, 56, 61, .2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(185, 65, 53, .12) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(47, 143, 123, .12) 50%, transparent calc(50% + 1px)),
    white;
  overflow: visible;
}

.stroke-number-marker circle {
  fill: rgba(255, 255, 255, .94);
  stroke: #1f2432;
  stroke-width: 7;
}

.stroke-number-marker text {
  fill: #1f2432;
  font-size: 42px;
  font-weight: 880;
  text-anchor: middle;
  dominant-baseline: middle;
}

.character-info {
  display: grid;
  gap: 14px;
}

.character-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.plain-character {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: var(--rice-paper);
  border: 1px solid var(--line);
  font-family: var(--kai-font);
  font-size: 66px;
  font-weight: 500;
  line-height: 1;
}

.pinyin-line {
  margin-bottom: 4px;
  color: var(--jade-dark);
  font-size: 32px;
  font-weight: 850;
}

.meaning-line {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.word-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.word-chip {
  display: grid;
  grid-template-rows: 14px minmax(38px, auto) 12px;
  align-items: center;
  justify-items: center;
  gap: 2px;
  min-height: 92px;
  min-width: 96px;
  border-radius: 999px;
  padding: 8px 18px 10px;
  border: 1px solid rgba(47, 143, 123, .18);
  background: #eaf7f0;
  color: var(--jade-dark);
  font-family: var(--kai-font);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.word-text {
  display: block;
}

.word-pinyin,
.word-english {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  opacity: .62;
}

.word-pinyin {
  color: var(--blue);
}

.word-pinyin.empty,
.word-english.empty {
  visibility: hidden;
}

.word-english {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.question-box {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(216, 168, 47, .3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 249, 232, .98), rgba(255, 253, 247, .98));
}

.question-box p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 760;
}

.simple-question {
  gap: 10px;
  min-height: 210px;
  padding: 16px;
  align-content: start;
}

.question-box .sentence-line {
  font-size: 28px;
  line-height: 1.45;
}

.sentence-help-word {
  display: inline-grid;
  justify-items: center;
  gap: 1px;
  margin-inline: 2px;
  vertical-align: middle;
  line-height: 1.05;
}

.sentence-pinyin,
.sentence-english {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  opacity: .62;
}

.sentence-pinyin {
  color: var(--blue);
  font-size: 11px;
}

.sentence-text {
  display: block;
}

.sentence-english {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

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

.simple-options .answer-button {
  min-height: 70px;
  font-family: var(--kai-font);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button,
.answer-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background:
    linear-gradient(180deg, #ffffff, #f8f4e9);
  color: var(--ink);
  cursor: pointer;
  font-weight: 780;
  box-shadow: 0 6px 16px rgba(38, 56, 61, .08);
}

.button:disabled {
  cursor: default;
  opacity: .68;
  transform: none;
}

.button:hover,
.answer-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  border-color: var(--jade-dark);
  background: linear-gradient(135deg, var(--jade-dark), var(--jade));
  color: white;
}

.answer-button.correct {
  border-color: rgba(61, 139, 88, .45);
  background: #e9fff2;
  color: #126b3d;
}

.answer-button.incorrect {
  border-color: rgba(185, 65, 53, .42);
  background: #fff0f0;
  color: #a73333;
}

.feedback-line {
  min-height: 20px;
  margin-bottom: 0;
  color: var(--green);
  font-weight: 780;
}

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

.sequence-nav-row {
  justify-content: flex-end;
}

.sequence-nav-row .button {
  min-height: 48px;
  padding-inline: 18px;
  font-size: 17px;
}

.today-complete-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(47, 143, 123, .26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 246, 239, .96), rgba(255, 250, 240, .98)),
    var(--paper);
  text-align: center;
}

.today-complete-card h3 {
  margin-bottom: 0;
  color: var(--jade-dark);
  font-family: var(--kai-font);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
}

.today-complete-card p:not(.entry-label) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.dictation-step-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dictation-step-title .step-number {
  flex: 0 0 auto;
}

.focus-notes .button {
  min-height: 64px;
  padding-inline: 22px;
  font-size: 20px;
}

.dictation-area {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dictation-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(222, 210, 187, .9);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .98), rgba(246, 251, 247, .96));
}

.dictation-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
}

.dictation-char {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: var(--rice-paper);
  font-family: var(--kai-font);
  font-size: 62px;
  font-weight: 500;
  line-height: 1;
}

.dictation-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.dictation-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 760;
}

.status-badge.today {
  background: #e8f5ef;
  color: var(--jade-dark);
}

.status-badge.overdue {
  background: #fff0d8;
  color: #985f10;
}

.dictation-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-stroke-paths {
  display: none;
  place-items: center;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rice-paper);
}

.mini-stroke-paths.visible {
  display: grid;
}

.mini-stroke-paths .stroke-path-card {
  width: min(260px, 100%);
}

.mini-stroke-paths .stroke-path-character {
  width: 180px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(216, 168, 47, .55);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.holiday-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed rgba(47, 143, 123, .55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #eaf7f0, #fffaf0);
  text-align: center;
}

.holiday-state.compact {
  min-height: 190px;
}

.holiday-state h3 {
  margin-bottom: 8px;
  color: var(--jade-dark);
  font-size: 28px;
  letter-spacing: 0;
}

.holiday-state p {
  max-width: 520px;
  margin-bottom: 0;
  color: #315d5a;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .app-shell {
    padding: 14px;
  }

  .app-header,
  .holiday-panel,
  .learning-layout,
  .character-stage,
  .study-entry-card,
  .study-focus-grid,
  .focus-character-block {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
  }

  .score-box {
    min-height: 72px;
  }

  .study-entry-card {
    min-height: 0;
  }

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

  .holiday-form,
  .holiday-actions {
    width: 100%;
  }

  .holiday-form label {
    flex: 1 1 130px;
  }

  .holiday-form input {
    width: 100%;
  }

  .study-focus-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sequence-row,
  .sequence-pair {
    grid-template-columns: 1fr;
  }

  .stroke-frame {
    min-height: 330px;
  }

  .focus-stroke-frame {
    min-height: 420px;
  }

  .radical-character-card {
    min-height: 300px;
  }

  .radical-character-svg {
    width: min(310px, 100%);
  }

  .focus-character {
    width: 116px;
    height: 116px;
    font-size: 86px;
  }

  .plain-character,
  .dictation-char {
    width: 78px;
    height: 78px;
    font-size: 54px;
  }

  .button,
  .answer-button {
    width: 100%;
  }

  .simple-options {
    grid-template-columns: 1fr;
  }
}
