:root {
  color-scheme: light;
  --bg: #f7fbf7;
  --panel: #ffffff;
  --panel-soft: #eef6f2;
  --ink: #17231d;
  --muted: #68776f;
  --line: #dce8e1;
  --green: #256f5b;
  --green-dark: #184c3e;
  --amber: #d98f2b;
  --red: #c9534b;
  --blue: #3c67a6;
  --violet: #7562a8;
  --shadow: 0 18px 45px rgba(22, 59, 42, 0.12);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Jiayi high-school politics is isolated from both English runtimes. */
.politics-shell-view {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px;
}

.politics-header,
.politics-practice-title,
.politics-history-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.politics-header {
  justify-content: space-between;
  border-bottom: 1px solid #d9e4dc;
  padding-bottom: 18px;
}

.politics-header > div,
.politics-practice-title > div {
  flex: 1;
  min-width: 0;
}

.politics-header h1,
.politics-practice-title h1 {
  margin: 3px 0 4px;
  font-size: 24px;
  line-height: 1.3;
}

.politics-progress-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid #d7e2da;
  border-radius: 8px;
  background: #d7e2da;
}

.politics-progress-panel > div {
  display: grid;
  gap: 3px;
  min-height: 84px;
  align-content: center;
  padding: 14px;
  background: #fff;
  text-align: center;
}

.politics-progress-panel strong {
  color: #173f35;
  font-size: 24px;
}

.politics-progress-panel span {
  color: #66756f;
  font-size: 13px;
}

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

.politics-entry {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid #d7e2da;
  border-radius: 8px;
  background: #fff;
  color: #1d332c;
  text-align: left;
}

.politics-entry:not(:disabled):active {
  background: #eef7f1;
}

.politics-entry:disabled {
  color: #7b8581;
  background: #f4f6f4;
}

.politics-entry strong {
  font-size: 18px;
  line-height: 1.35;
}

.politics-entry small {
  max-width: 90%;
  color: #62716b;
  line-height: 1.55;
}

.politics-entry .option-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.politics-retry {
  min-height: 44px;
  margin-top: 14px;
}

.politics-history {
  margin-top: 18px;
  padding: 18px;
  border-top: 1px solid #d7e2da;
}

.politics-package-catalog {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  background: #fff;
}

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

.politics-package-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 72px 64px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #dfe8e2;
  border-radius: 6px;
  color: #233a33;
  background: #fff;
  text-align: left;
}

.politics-package-row:not(:disabled) {
  border-color: #2c755f;
  background: #eef7f1;
  cursor: pointer;
}

.politics-package-row:disabled {
  color: #65736e;
}

.politics-package-row span,
.politics-package-row small,
.politics-package-row em {
  color: #66756f;
  font-style: normal;
}

.politics-package-row em {
  text-align: right;
}

.politics-history-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.politics-history-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.5fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e9e4;
}

.politics-history-row span,
.politics-history-row small {
  color: #5d6d66;
  line-height: 1.45;
}

.politics-practice-header {
  display: grid;
  gap: 14px;
}

.politics-question-card h2 {
  margin: 16px 0;
  font-size: 22px;
  line-height: 1.55;
}

.politics-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64736c;
  font-size: 13px;
}

.politics-material {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid #2b7a68;
  background: #f1f7f3;
  color: #263d35;
  line-height: 1.7;
}

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

.politics-choice {
  min-height: 68px;
  height: auto;
  align-items: flex-start;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.politics-submit-panel .politics-answer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.politics-final-submit {
  min-height: 48px;
  height: auto;
  padding-block: 10px;
  line-height: 1.35;
  white-space: normal;
}

.politics-result {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cbd8d1;
  border-radius: 8px;
  background: #f7faf8;
}

.politics-result.is-correct {
  border-color: #74ad8d;
  background: #edf8f1;
}

.politics-result.is-wrong {
  border-color: #dc9c94;
  background: #fff2f0;
}

.politics-result > small {
  color: #65726d;
}

.politics-teaching-path {
  display: grid;
  gap: 8px;
}

.politics-teaching-path > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #d9e4dc;
}

.politics-teaching-path span {
  color: #466057;
  font-weight: 700;
}

.politics-teaching-path p {
  margin: 0;
  line-height: 1.6;
}

.politics-wrong-reason {
  padding: 10px 12px;
  border-left: 4px solid #c46d61;
  background: #fff;
}

.politics-answer-actions > button,
.politics-tools button,
.politics-error button {
  min-height: 44px;
}

.politics-upload-status {
  margin: 12px 0 0;
  color: #61716a;
  font-size: 13px;
}

@media (max-width: 720px) {
  .politics-shell-view {
    padding: 14px;
  }

  .politics-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .politics-header .account-switch-button {
    margin-left: 58px;
  }

  .politics-progress-panel,
  .politics-home-grid,
  .politics-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .politics-progress-panel strong {
    font-size: 20px;
  }

  .politics-history-row,
  .politics-package-row,
  .politics-teaching-path > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .politics-package-row em {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .politics-home-grid,
  .politics-choice-grid,
  .politics-submit-panel .politics-answer-actions {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  border: 0;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.diagnostic-shell-view {
  width: min(900px, 100%);
}

.diagnostic-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.diagnostic-header h1 {
  margin: 2px 0 5px;
  font-size: 25px;
}

.diagnostic-header p {
  margin: 0;
}

.diagnostic-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
}

.diagnostic-summary strong {
  font-size: 24px;
}

.diagnostic-package-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.diagnostic-package-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 13px;
  width: 100%;
  min-height: 78px;
  padding: 14px 4px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.diagnostic-package-row:hover,
.diagnostic-package-row:focus-visible {
  background: #f0f6fa;
}

.diagnostic-package-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: #e8f0f7;
  color: #315d78;
  font-weight: 800;
}

.diagnostic-package-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.diagnostic-package-copy strong,
.diagnostic-package-copy small {
  overflow-wrap: anywhere;
}

.diagnostic-package-copy small {
  color: var(--muted);
}

.diagnostic-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.diagnostic-progress > div {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #dfe8ee;
}

.diagnostic-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.diagnostic-passage {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #cfdce5;
  border-radius: 7px;
  background: #f5f9fc;
}

.diagnostic-passage summary {
  cursor: pointer;
  color: #284f69;
  font-weight: 800;
}

.diagnostic-passage p {
  margin: 12px 0 0;
  color: #283b47;
  font-size: 17px;
  line-height: 1.75;
}

.diagnostic-question {
  padding: 22px 0 8px;
}

.diagnostic-question-type {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.diagnostic-question-meta {
  display: flex;
  min-height: 44px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.diagnostic-question-meta .diagnostic-question-type {
  margin: 0;
}

.diagnostic-hint {
  margin: -6px 0 18px;
  padding: 12px 14px;
  border-left: 4px solid #5c8198;
  background: #eef5f8;
  color: #294957;
  line-height: 1.6;
}

.diagnostic-question h2 {
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.55;
}

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

.diagnostic-choice {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 13px 48px 13px 15px;
  align-items: center;
  border: 1px solid #cbd8df;
  border-radius: 7px;
  background: #fff;
  color: #1c2b33;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.diagnostic-choice:not(:disabled):hover,
.diagnostic-choice:not(:disabled):focus-visible {
  border-color: #5683a0;
  background: #f3f8fb;
  outline: 3px solid rgba(60, 103, 166, 0.13);
}

.diagnostic-choice-id {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #c5d2da;
  border-radius: 5px;
  background: #f4f7f9;
  color: #344a57;
  font-weight: 800;
}

.diagnostic-choice.is-correct {
  border-color: #4c9a72;
  background: #edf8f1;
  color: #184c3e;
}

.diagnostic-choice.is-wrong {
  border-color: #cf6a62;
  background: #fff1f0;
  color: #8d3732;
}

.diagnostic-choice.is-pending {
  border-color: #ca9848;
  background: #fff8e9;
}

.diagnostic-choice.is-draft-selected,
.choice-button.is-draft-selected {
  border-color: #4e7895;
  background: #edf5fa;
  color: #244e67;
  box-shadow: 0 0 0 3px rgba(78, 120, 149, 0.14);
}

.shared-choice-check {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #4e7895;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.diagnostic-feedback {
  min-height: 28px;
  margin-top: 14px;
}

.diagnostic-feedback p {
  margin: 6px 0 0;
  line-height: 1.65;
}

.diagnostic-memory-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #d39b2f;
  background: #fff7df;
  color: var(--ink);
}

.feedback-correct,
.feedback-wrong,
.diagnostic-pending {
  padding: 13px 15px;
  border-radius: 6px;
}

.feedback-correct {
  background: #eaf6ef;
  color: #184c3e;
}

.feedback-wrong {
  background: #fff0ef;
  color: #8d3732;
}

.diagnostic-pending {
  background: #fff7e6;
  color: #72501e;
}

.diagnostic-question-actions,
.diagnostic-error-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
}

.diagnostic-secondary-actions {
  display: flex;
  gap: 10px;
}

.diagnostic-answer-submit-actions {
  flex: 0 1 392px;
}

.diagnostic-question-actions button,
.diagnostic-pause-actions button {
  min-width: 112px;
  min-height: 46px;
}

.diagnostic-upload-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.diagnostic-paused {
  display: grid;
  min-height: 58vh;
  gap: 14px;
  place-items: center;
  align-content: center;
  padding: 28px;
  text-align: center;
}

.diagnostic-paused h1,
.diagnostic-paused p {
  margin: 0;
}

.diagnostic-pause-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.diagnostic-loading,
.diagnostic-error {
  display: grid;
  min-height: 50vh;
  gap: 14px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.diagnostic-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #d5e0e6;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: diagnostic-spin 0.8s linear infinite;
}

@keyframes diagnostic-spin {
  to {
    transform: rotate(360deg);
  }
}

.account-gate {
  display: grid;
  min-height: 100vh;
  padding: 28px 18px;
  place-items: center;
  background: #eef4f8;
}

.account-gate:empty {
  display: none;
}

.account-panel {
  width: min(560px, 100%);
  padding: 30px;
  border: 1px solid #d7e2e8;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(38, 57, 68, 0.12);
}

.account-panel h1 {
  margin: 5px 0 8px;
  font-size: 29px;
}

.account-panel h2 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.account-brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.account-hint,
.account-security-note {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.account-security-note {
  margin: 18px 0 0;
  font-size: 13px;
}

.account-error,
.account-success,
.legacy-preserved {
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.account-error {
  background: #fff0ef;
  color: #9e3934;
}

.account-success,
.legacy-preserved {
  background: #eaf6ef;
  color: var(--green-dark);
}

.account-form {
  display: grid;
  gap: 15px;
}

.account-form > label {
  display: grid;
  gap: 7px;
  color: #38463f;
  font-size: 14px;
  font-weight: 700;
}

.account-form select,
.account-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd9d1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.account-form select:focus,
.account-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(60, 103, 166, 0.14);
}

.account-form fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.account-form legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.account-subject-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.account-subject-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-subject-checks input {
  width: 20px;
  min-height: 20px;
}

.account-login-names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.account-panel-heading,
.parent-profile-row > div,
.parent-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.parent-account-panel {
  width: min(760px, 100%);
}

.parent-profile-list,
.parent-device-list {
  display: grid;
  gap: 10px;
}

.parent-profile-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.parent-profile-row span,
.parent-profile-row p,
.parent-device-row {
  color: var(--muted);
  font-size: 13px;
}

.parent-profile-row p {
  margin: 7px 0;
}

.parent-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parent-config-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.parent-config-details summary {
  padding: 12px 0 4px;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 800;
}

.parent-profile-config-form,
.parent-curriculum-form {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fcfa;
}

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

.parent-form-title {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 800;
}

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

.parent-form-grid label {
  display: grid;
  gap: 6px;
  color: #38463f;
  font-size: 13px;
  font-weight: 700;
}

.parent-device-row {
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.subject-header .account-switch-button {
  margin-left: auto;
}

.family-shell {
  min-height: 100vh;
  background: var(--bg);
}

.family-shell-view {
  width: min(1040px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) 28px 24px;
  display: flex;
  flex-direction: column;
}

.family-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(32px, 7vh, 72px);
}

.family-mark {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.family-header h1 {
  font-size: 36px;
}

.family-entry-stage {
  width: min(760px, 100%);
  flex: 1;
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#familyVariantView .family-header {
  margin-bottom: 28px;
}

#familyVariantView .variant-list {
  gap: 18px;
}

#familyVariantView .variant-option {
  grid-template-columns: 68px minmax(0, 1fr) auto 28px;
  height: 164px;
  min-height: 164px;
  padding: 24px 30px;
}

#familyVariantView .option-symbol {
  width: 64px;
  height: 64px;
  font-size: 25px;
}

#familyVariantView .option-copy strong {
  margin-bottom: 9px;
  font-size: 24px;
}

#familyVariantView .option-copy small {
  font-size: 15px;
}

#familyVariantView .option-status {
  font-size: 14px;
}

.variant-list,
.subject-list {
  display: grid;
  gap: 14px;
}

.variant-option,
.subject-option {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 30px rgba(28, 60, 46, 0.08);
  cursor: pointer;
}

.variant-option:focus-visible,
.subject-option:focus-visible,
.back-icon-button:focus-visible {
  outline: 3px solid rgba(60, 103, 166, 0.26);
  outline-offset: 3px;
}

.option-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--green-dark);
  font-size: 21px;
  font-weight: 800;
}

.primary-variant {
  border-color: rgba(60, 103, 166, 0.35);
}

.primary-variant .option-symbol {
  background: rgba(60, 103, 166, 0.12);
  color: var(--blue);
}

.high-school-variant {
  background: #f7f5fa;
  color: #655f70;
  cursor: default;
}

.high-school-variant .option-symbol {
  background: rgba(117, 98, 168, 0.1);
  color: var(--violet);
}

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

.option-copy strong,
.option-copy small {
  display: block;
}

.option-copy strong {
  margin-bottom: 7px;
  font-size: 21px;
}

.option-copy small {
  color: var(--muted);
  font-size: 14px;
}

.option-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.option-status.ready {
  color: var(--green);
}

.option-status.loading {
  color: #8a671d;
}

.option-status.error {
  color: #a23d34;
}

.subject-option[data-runtime-status="loading"] {
  cursor: progress;
}

.subject-option[data-runtime-status="error"] {
  border-color: rgba(162, 61, 52, 0.32);
  background: #fffafa;
}

.option-arrow {
  color: var(--muted);
  font-size: 22px;
  text-align: right;
}

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

.profile-startup-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -20px 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 124, 32, 0.26);
  border-radius: var(--radius);
  background: #fff9e9;
  color: #6c4d16;
  font-size: 14px;
  line-height: 1.5;
}

.profile-startup-status[hidden] {
  display: none;
}

.profile-startup-status .secondary-button {
  flex: 0 0 auto;
}

.profile-startup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.subject-option {
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas:
    "symbol copy"
    "status arrow";
  min-height: 176px;
  align-content: center;
}

.subject-option .option-symbol {
  grid-area: symbol;
}

.subject-option .option-copy {
  grid-area: copy;
}

.subject-option .option-status {
  grid-area: status;
  align-self: end;
}

.subject-option .option-arrow {
  grid-area: arrow;
}

.chinese-subject {
  border-color: rgba(201, 83, 75, 0.18);
  background: #fffafa;
  cursor: default;
}

.chinese-subject .option-symbol {
  background: rgba(201, 83, 75, 0.09);
  color: var(--red);
}

.math-subject {
  border-color: rgba(60, 103, 166, 0.18);
  background: #f9fbff;
  cursor: default;
}

.math-subject .option-symbol {
  background: rgba(60, 103, 166, 0.1);
  color: var(--blue);
}

.english-subject {
  border-color: rgba(37, 111, 91, 0.38);
}

.chinese-subject,
.math-subject {
  cursor: pointer;
}

.exam-shell-view {
  gap: 0;
}

.exam-shell-header {
  margin-bottom: 24px;
}

.exam-subject-layout,
.exam-workspace {
  display: grid;
  gap: 28px;
  width: 100%;
}

.exam-embedded-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.exam-embedded-header h2 {
  margin: 0;
  font-size: 20px;
}

.exam-section-band {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-section-band + .exam-section-band {
  border-top: 0;
}

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

.exam-wrongbook-callout {
  border-color: rgba(37, 111, 91, 0.32);
}

.exam-wrongbook-callout .exam-callout-icon {
  background: rgba(37, 111, 91, 0.12);
  color: var(--green-dark);
}

.exam-summary-chips,
.exam-home-summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-summary-chips span,
.exam-home-summary-counts span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

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

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

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

.exam-resume-callout {
  margin-bottom: 16px;
  border-color: #99b9ad;
  background: #f1f8f5;
}

.exam-learning-tile,
.exam-intake-callout,
.exam-record-row,
.exam-pending-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.exam-learning-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy badge"
    "copy arrow";
  align-items: center;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.exam-learning-tile > span:first-child {
  grid-area: copy;
}

.exam-learning-tile > .exam-status-pill {
  grid-area: badge;
}

.exam-learning-tile > .option-arrow {
  grid-area: arrow;
  align-self: end;
}

.exam-learning-tile strong,
.exam-learning-tile small,
.exam-intake-callout strong,
.exam-intake-callout small,
.exam-record-copy strong,
.exam-record-copy small,
.exam-pending-card strong,
.exam-pending-card small {
  display: block;
}

.exam-learning-tile strong {
  margin-bottom: 9px;
  font-size: 18px;
}

.exam-learning-tile small,
.exam-intake-callout small,
.exam-record-copy small,
.exam-pending-card small {
  color: var(--muted);
  line-height: 1.45;
}

.exam-learning-tile.is-preparing {
  background: #f5f5f2;
  color: #6f716d;
}

.exam-intake-callout {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 20px;
  border-color: rgba(60, 103, 166, 0.32);
}

.exam-callout-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(60, 103, 166, 0.12);
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}

.exam-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecefeb;
  color: #5d655f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.exam-status-pill.green {
  background: #e6f4ed;
  color: #1e735a;
}

.exam-status-pill.blue {
  background: #e8eef8;
  color: #315c96;
}

.exam-status-pill.amber {
  background: #fff2d8;
  color: #8a5c09;
}

.exam-status-pill.violet {
  background: #efebf8;
  color: #685598;
}

.exam-status-pill.red {
  background: #fae8e6;
  color: #a64038;
}

.exam-step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-step-strip span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.exam-step-strip span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.exam-step-strip b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #aeb8b2;
  border-radius: 50%;
  font-size: 12px;
}

.exam-step-strip span.active {
  color: var(--green-dark);
  font-weight: 800;
}

.exam-step-strip span.active b {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.exam-gentle-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.exam-file-trigger {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  cursor: pointer;
}

.exam-capture-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
  align-items: stretch;
}

.exam-capture-choices .exam-file-trigger {
  width: 100%;
  margin-top: 10px;
}

.exam-input-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  flex: 0 0 26px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.exam-file-trigger input,
.icon-text-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .exam-capture-choices {
    grid-template-columns: 1fr;
  }
}

.exam-answer-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.exam-answer-section .section-heading {
  margin-bottom: 12px;
}

.exam-answer-section h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.exam-answer-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.exam-answer-mode button {
  min-height: 48px;
  padding: 9px 14px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.exam-answer-mode button.selected {
  background: var(--panel);
  color: var(--green-dark);
  box-shadow: 0 1px 4px rgba(23, 35, 29, 0.12);
}

.exam-answer-required {
  margin: 14px 0 0;
  color: var(--red);
  font-weight: 700;
}

.exam-page-list,
.exam-record-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.exam-page-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  min-height: 150px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.exam-page-preview {
  width: 128px;
  height: 150px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef1ed;
  cursor: zoom-in;
}

.exam-page-preview img,
.exam-private-image-frame img,
.exam-image-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exam-page-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.exam-page-copy > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-page-copy small {
  color: var(--muted);
}

.exam-page-actions,
.exam-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-text-button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.danger-text {
  color: var(--red);
}

.exam-preflight-result {
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: #8a5c09;
}

.exam-preflight-result.pass {
  color: var(--green-dark);
}

.exam-preflight-result strong,
.exam-preflight-result span {
  display: block;
}

.exam-issue-list p {
  margin: 8px 0 0;
}

.exam-primary-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.exam-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 180px;
  align-content: center;
  color: var(--muted);
}

.exam-empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.exam-question-number-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(44px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.exam-question-number {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.exam-question-number.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.exam-region-page-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.exam-region-page {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.exam-region-page img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.exam-region-page span {
  display: grid;
  gap: 4px;
}

.exam-region-page small {
  color: var(--muted);
}

.exam-selected-regions,
.exam-recognized-locators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.exam-selected-regions > span,
.exam-recognized-locators > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.exam-selected-regions button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.exam-note-field {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.exam-note-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.exam-private-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.exam-status-view {
  text-align: center;
}

.exam-status-view > p,
.exam-status-view > h2 {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.exam-status-orb {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #aeb8b2;
}

.exam-status-orb.green {
  background: var(--green);
}

.exam-status-orb.blue {
  background: var(--blue);
}

.exam-status-orb.amber {
  background: #c58a22;
}

.exam-status-orb.red {
  background: var(--red);
}

.exam-status-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin: 28px auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-status-timeline span {
  display: grid;
  min-height: 84px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.exam-status-timeline span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.exam-status-timeline span.done {
  color: var(--green-dark);
  font-weight: 700;
}

.exam-confirmation {
  max-width: 680px;
  margin: 22px auto;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-confirmation .exam-button-row,
.exam-status-view > .exam-button-row {
  justify-content: center;
}

.exam-pending-card,
.exam-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
}

.exam-pending-card {
  margin-bottom: 14px;
  border-color: rgba(60, 103, 166, 0.3);
}

.exam-record-row {
  grid-template-columns: 46px minmax(0, 1fr) auto 20px;
}

.exam-record-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--panel-soft);
  font-weight: 800;
}

.exam-learning-container {
  max-width: 920px;
  margin: 0 auto;
}

.exam-evidence-block,
.exam-explanation,
.exam-practice-block,
.exam-retest-block {
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.exam-private-image-frame {
  display: grid;
  width: 100%;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2f4f1;
  color: var(--muted);
  cursor: pointer;
}

.exam-private-image-frame.loaded {
  height: min(560px, 64vh);
}

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

.exam-evidence-item {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.exam-evidence-item span,
.exam-evidence-item small {
  color: var(--muted);
}

.exam-evidence-item strong {
  margin: 10px 0;
  font-size: 18px;
}

.exam-image-dialog {
  width: min(900px, calc(100vw - 32px));
  height: min(90vh, 900px);
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
}

.exam-image-dialog::backdrop {
  background: rgba(17, 25, 21, 0.68);
}

.exam-image-dialog img {
  height: calc(100% - 60px);
}

.exam-image-dialog .primary-button {
  display: block;
  margin: 12px auto 0;
}

.exam-region-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.exam-region-dialog-heading {
  display: grid;
  gap: 4px;
}

.exam-region-dialog-heading span {
  color: var(--muted);
}

.exam-region-canvas {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef3f0;
  cursor: crosshair;
}

.exam-region-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exam-region-marker {
  position: absolute;
  border: 3px solid var(--blue);
  background: rgba(39, 128, 151, 0.18);
  pointer-events: none;
}

.exam-region-dialog .exam-button-row {
  justify-content: flex-end;
}

.exam-region-dialog .primary-button {
  margin: 0;
}

.family-build-footer {
  margin-top: auto;
}

.subject-header {
  margin-bottom: clamp(28px, 6vh, 60px);
}

.back-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.english-location {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand span,
.sync-panel strong,
.sync-panel span {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand span,
.sync-panel span,
.eyebrow,
.muted {
  color: var(--muted);
}

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

.nav-item {
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.nav-item.active {
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
}

.sync-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.resume-banner {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 111, 91, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.resume-banner .secondary-button,
.resume-banner .ghost-button {
  width: fit-content;
}

.app-build-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  margin: 18px auto 0;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(24, 82, 66, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(23, 64, 51, 0.12);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  backdrop-filter: blur(10px);
}

.home-build-footer {
  position: static;
}

.app-build-badge[hidden] {
  display: none;
}

.app-build-badge.family-build-footer {
  margin-top: 0;
  margin-bottom: 0;
}

.app-build-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-update-button {
  min-height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.manual-update-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.letter-keyboard,
.letter-key,
.keyboard-row,
.keyboard-action-row,
.choice-button,
.primary-button,
.secondary-button,
.ghost-button {
  touch-action: manipulation;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #38a66c;
  box-shadow: 0 0 0 6px rgba(56, 166, 108, 0.12);
}

.child-log-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 116, 91, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.child-log-status p {
  margin: 6px 0 0;
  color: var(--muted);
}

.post-submit-translation.is-loading,
.post-submit-translation.is-unavailable {
  border-color: rgba(137, 103, 40, 0.24);
  background: rgba(255, 250, 235, 0.78);
}

.post-submit-translation [data-action="retry-translation"] {
  margin-top: 8px;
}

.content-contract-blocked {
  border-color: rgba(178, 112, 38, 0.32);
  background: rgba(255, 250, 235, 0.9);
}

.shared-choice-text,
.diagnostic-choice-text,
.choice-button {
  overflow-wrap: anywhere;
  white-space: normal;
}

.wish-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: center;
  margin-top: 16px;
}

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

.wish-bottle-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.current-bottle-zone {
  position: relative;
  display: grid;
  min-height: 326px;
  place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 80%, rgba(104, 198, 207, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 246, 242, 0.48));
}

.current-bottle-count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.full-bottle-zone {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  min-height: 86px;
  max-height: 188px;
  overflow: hidden;
  padding: 10px;
  border: 1px dashed rgba(60, 103, 166, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.full-bottle-zone.empty {
  display: grid;
  place-items: center;
}

.wish-bottle {
  position: relative;
  z-index: 0;
  display: flex;
  width: 184px;
  height: 298px;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 19px 25px rgba(35, 98, 108, 0.15));
}

.wish-bottle.archive {
  width: 74px;
  height: 117px;
  flex: 0 0 74px;
  filter: drop-shadow(0 8px 12px rgba(42, 77, 96, 0.1));
}

.bottle-lip {
  position: relative;
  z-index: 5;
  width: 82px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0 auto -5px;
  border: 3px solid rgba(45, 145, 157, 0.52);
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(139, 223, 228, 0.46) 42%, rgba(255, 255, 255, 0.82));
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 4px rgba(40, 150, 160, 0.18),
    0 2px 3px rgba(38, 111, 119, 0.12);
}

.bottle-lip::before {
  content: "";
  position: absolute;
  inset: 3px 8px;
  border: 1px solid rgba(36, 126, 139, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(28, 107, 118, 0.25), rgba(154, 226, 230, 0.12) 52%, rgba(255, 255, 255, 0.78) 72%);
  box-shadow: inset 0 2px 3px rgba(27, 103, 114, 0.18);
}

.bottle-lip::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 1px;
  width: 29px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(0.3px);
}

.bottle-neck {
  position: relative;
  z-index: 4;
  width: 62px;
  height: 104px;
  flex: 0 0 auto;
  margin: 0 auto -14px;
  border-right: 2px solid rgba(45, 145, 157, 0.48);
  border-left: 2px solid rgba(45, 145, 157, 0.48);
  border-radius: 16px 16px 14px 14px / 42px 42px 38px 38px;
  background:
    linear-gradient(96deg, rgba(255, 255, 255, 0.9) 2%, rgba(159, 230, 233, 0.12) 30%, rgba(255, 255, 255, 0.5) 58%, rgba(45, 150, 160, 0.11) 100%);
  box-shadow:
    inset 9px 0 11px rgba(255, 255, 255, 0.76),
    inset -7px 0 10px rgba(37, 141, 151, 0.08);
}

.bottle-neck::before,
.bottle-neck::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.06));
}

.bottle-neck::before {
  left: 8px;
}

.bottle-neck::after {
  right: 7px;
  width: 2px;
  background: rgba(72, 137, 153, 0.14);
}

.bottle-body {
  position: relative;
  z-index: 2;
  width: 182px;
  height: 190px;
  flex: 0 0 auto;
  border: 3px solid rgba(45, 145, 157, 0.48);
  border-radius: 50% 50% 43% 43% / 58% 58% 42% 42%;
  background:
    radial-gradient(ellipse at 50% 103%, rgba(50, 177, 184, 0.22), transparent 48%),
    radial-gradient(ellipse at 24% 58%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(102deg, rgba(255, 255, 255, 0.8), rgba(211, 247, 248, 0.14) 42%, rgba(62, 176, 185, 0.14) 79%, rgba(255, 255, 255, 0.56)),
    rgba(240, 253, 253, 0.48);
  box-shadow:
    inset 16px 0 22px rgba(255, 255, 255, 0.68),
    inset -14px 0 22px rgba(39, 145, 154, 0.1),
    inset 0 -15px 20px rgba(47, 177, 185, 0.17),
    inset 0 9px 14px rgba(255, 255, 255, 0.42),
    0 14px 25px rgba(42, 77, 96, 0.13);
  overflow: hidden;
}

.bottle-body::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 17%;
  top: 18%;
  width: 13%;
  height: 54%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08));
  transform: rotate(12deg);
  pointer-events: none;
}

.bottle-body::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 18%;
  right: 18%;
  bottom: 8px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(58, 126, 144, 0.15);
  background: radial-gradient(ellipse, rgba(62, 139, 157, 0.18), rgba(255, 255, 255, 0.5) 54%, transparent 72%);
  pointer-events: none;
}

.wish-bottle.archive .bottle-lip {
  width: 34px;
  height: 10px;
  border-width: 1px;
  margin-bottom: -3px;
}

.wish-bottle.archive .bottle-lip::before {
  inset: 2px 4px;
  border-width: 0.5px;
}

.wish-bottle.archive .bottle-lip::after {
  left: 6px;
  top: 0;
  width: 12px;
  height: 2px;
}

.wish-bottle.archive .bottle-neck {
  width: 26px;
  height: 40px;
  border-width: 1px;
  border-radius: 7px 7px 5px 5px / 17px 17px 14px 14px;
  margin-bottom: -6px;
}

.wish-bottle.archive .bottle-neck::before,
.wish-bottle.archive .bottle-neck::after {
  display: none;
}

.wish-bottle.archive .bottle-body {
  width: 72px;
  height: 72px;
  border-width: 1px;
  border-radius: 50% 50% 43% 43% / 58% 58% 42% 42%;
}

.wish-bottle.archive .bottle-star {
  width: calc(var(--s, 14px) * 0.4);
  height: calc(var(--s, 14px) * 0.4);
  bottom: calc(var(--y, 12px) * 0.39);
}

.wish-bottle.bottle-variant-b {
  display: grid;
  width: 252px;
  height: 272px;
  place-items: center;
  filter: drop-shadow(0 15px 20px rgba(42, 77, 96, 0.18));
}

.wish-bottle.bottle-variant-b .bottle-art {
  position: relative;
  width: 252px;
  height: 252px;
}

.wish-bottle.bottle-variant-b .bottle-art-image {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.wish-bottle.bottle-variant-b .bottle-star-field {
  position: absolute;
  z-index: 1;
  top: 27%;
  right: 13%;
  bottom: 12%;
  left: 13%;
  overflow: hidden;
  clip-path: polygon(50% 0, 65% 25%, 100% 31%, 74% 51%, 80% 96%, 50% 77%, 20% 96%, 26% 51%, 0 31%, 35% 25%);
}

.wish-bottle.bottle-variant-b .bottle-star-field::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 18%;
  bottom: 5px;
  left: 18%;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(91, 177, 192, 0.21), rgba(255, 255, 255, 0.06) 66%, transparent 72%);
}

.wish-bottle.bottle-variant-b.archive {
  width: 92px;
  height: 96px;
  flex: 0 0 92px;
  filter: drop-shadow(0 6px 8px rgba(42, 77, 96, 0.15));
}

.wish-bottle.bottle-variant-b.archive .bottle-art {
  width: 92px;
  height: 92px;
}

.wish-bottle.bottle-variant-b.archive .bottle-star-field {
  top: 27%;
  right: 13%;
  bottom: 12%;
  left: 13%;
}

.wish-bottle.bottle-variant-b.archive .bottle-star {
  width: calc(var(--s, 14px) * 0.4);
  height: calc(var(--s, 14px) * 0.4);
  bottom: calc(var(--y, 12px) * 0.28);
}

.bottle-star,
.falling-star,
.mini-bottle span,
.sparkle {
  position: absolute;
  width: var(--s, 14px);
  height: var(--s, 14px);
  left: var(--x, 50%);
  bottom: var(--y, 12px);
  transform: translateX(-50%) rotate(var(--r, 8deg));
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.96) 0 7%, rgba(255, 255, 255, 0.36) 8% 17%, transparent 19%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 48%),
    var(--star-color, #f6c64d);
  clip-path: polygon(
    50% 1%, 57% 7%, 63% 29%, 87% 30%, 96% 36%,
    91% 45%, 72% 58%, 79% 81%, 75% 92%, 64% 89%,
    50% 73%, 36% 89%, 25% 92%, 21% 81%, 28% 58%,
    9% 45%, 4% 36%, 13% 30%, 37% 29%, 43% 7%
  );
  filter:
    drop-shadow(0 2px 3px rgba(126, 91, 20, 0.2))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.84));
}

.bottle-star {
  z-index: 2;
}

.bottle-star::after,
.falling-star::after,
.mini-bottle span::after {
  content: "";
  position: absolute;
  left: 27%;
  top: 18%;
  width: 31%;
  height: 13%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(-18deg);
}

.wish-bottle.empty .bottle-body::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 9px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(58, 126, 144, 0.13);
  background: radial-gradient(ellipse, rgba(62, 139, 157, 0.12), rgba(255, 255, 255, 0.46) 58%, transparent 74%);
}

.wish-reward {
  position: relative;
  display: grid;
  min-height: 228px;
  place-items: center;
  margin: 14px auto 0;
  color: var(--green-dark);
  overflow: hidden;
}

.falling-star {
  --s: 72px;
  top: 10px;
  bottom: auto;
  left: 50%;
  animation: starSpiralDrop 3.55s cubic-bezier(0.2, 0.74, 0.24, 1) both;
  filter: drop-shadow(0 8px 12px rgba(150, 105, 18, 0.22));
}

.sparkle {
  --s: 12px;
  opacity: 0;
  bottom: auto;
  background: var(--star-color, #f6c64d);
  animation: sparkleTwinkle 3.55s ease-in-out both;
}

.sparkle-one {
  left: 38%;
  top: 62px;
}

.sparkle-two {
  left: 62%;
  top: 92px;
  animation-delay: 0.18s;
}

.mini-bottle {
  position: absolute;
  bottom: 8px;
  width: 76px;
  height: 64px;
  border: 2px solid rgba(63, 122, 145, 0.42);
  border-radius: 50% 50% 43% 43% / 58% 58% 42% 42%;
  background:
    radial-gradient(ellipse at 50% 104%, rgba(75, 158, 177, 0.2), transparent 48%),
    linear-gradient(102deg, rgba(255, 255, 255, 0.82), rgba(213, 242, 245, 0.2) 45%, rgba(85, 155, 172, 0.14));
  box-shadow:
    inset 8px 0 14px rgba(255, 255, 255, 0.62),
    inset -7px 0 12px rgba(59, 128, 146, 0.08);
}

.mini-bottle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -21px;
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(63, 122, 145, 0.42);
  border-left: 1px solid rgba(63, 122, 145, 0.42);
  background: linear-gradient(96deg, rgba(255, 255, 255, 0.88), rgba(166, 219, 227, 0.12), rgba(255, 255, 255, 0.48));
  transform: translateX(-50%);
}

.mini-bottle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -25px;
  width: 33px;
  height: 8px;
  border: 1px solid rgba(63, 122, 145, 0.48);
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(154, 213, 224, 0.36), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 2px 2px rgba(31, 78, 96, 0.14);
  transform: translateX(-50%);
}

.mini-bottle span {
  --s: 18px;
  --x: 50%;
  --y: 12px;
  animation: miniBottleStarPop 3.55s ease-out both;
}

.submit-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.submit-status.ok {
  color: var(--green-dark);
}

.submit-status.warn {
  color: #9f5f1c;
}

.submit-status.pending {
  color: var(--blue);
}

@keyframes starSpiralDrop {
  0% {
    opacity: 0;
    transform: translate(-50%, -22px) scale(1.35) rotate(-28deg);
  }
  14% {
    opacity: 1;
    transform: translate(calc(-50% - 44px), 18px) scale(1.08) rotate(52deg);
  }
  34% {
    transform: translate(calc(-50% + 46px), 70px) scale(0.86) rotate(166deg);
  }
  58% {
    transform: translate(calc(-50% - 24px), 124px) scale(0.62) rotate(282deg);
  }
  82% {
    opacity: 1;
    transform: translate(calc(-50% + 12px), 160px) scale(0.42) rotate(396deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 176px) scale(0.28) rotate(480deg);
  }
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.4) rotate(0deg);
  }
  20%, 72% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1) rotate(30deg);
  }
}

@keyframes miniBottleStarPop {
  0%, 78% {
    opacity: 0;
    transform: translateX(-50%) scale(0.3) rotate(-18deg);
  }
  88% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2) rotate(12deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(10deg);
  }
}

.main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
}

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

.eyebrow {
  margin: 0 0 6px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.top-actions,
.button-row,
.segmented,
.field-row,
.metric-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button {
  display: grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(22, 59, 42, 0.08);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.card {
  padding: 18px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.exam-home-summary-band,
.course-tools-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-home-summary-copy,
.course-tools-band > div:first-child {
  min-width: 0;
}

.exam-home-summary-band h2,
.course-tools-band h2 {
  margin: 3px 0 6px;
  font-size: 21px;
}

.exam-home-summary-band .muted,
.course-tools-band .muted {
  margin: 0;
}

.exam-home-summary-counts {
  margin-top: 10px;
}

.exam-home-summary-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.course-tools-band .button-row {
  flex: 0 0 auto;
  margin: 0;
}

.today-plan {
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #174b3d 0%, #246f59 52%, #f2bd5c 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.today-plan .muted {
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

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

.task-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.task-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.task-time {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  white-space: nowrap;
}

.classroom-flow {
  margin-bottom: 16px;
}

.flow-strip,
.mini-flow {
  display: grid;
  gap: 10px;
}

.flow-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.flow-step {
  display: grid;
  min-height: 118px;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.flow-step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 99px;
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 850;
}

.flow-step strong {
  font-size: 17px;
}

.flow-step small {
  color: var(--muted);
  line-height: 1.45;
}

.support-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff8ea;
  color: #715020;
  line-height: 1.6;
}

.training-copy {
  color: var(--muted);
}

.subject-tile {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.subject-tile.primary {
  border-color: rgba(37, 111, 91, 0.35);
}

.subject-tile.disabled {
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}

.badge,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.badge.amber {
  background: #fff0d8;
  color: #8a5318;
}

.badge.red {
  background: #fdebe8;
  color: #9f3932;
}

.badge.blue {
  background: #eaf1ff;
  color: #274f8f;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--green-dark);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.compact-button {
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

.ghost-button {
  background: var(--panel-soft);
  color: var(--green-dark);
}

.danger-button {
  background: #fdebe8;
  color: #9f3932;
}

.stat-card {
  min-height: 120px;
}

.stat-value {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: 850;
}

.unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.unit-row:first-child {
  border-top: 0;
}

.practice-stage {
  display: grid;
  min-height: 520px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.question-card {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.lesson-card {
  align-content: start;
  text-align: left;
}

.lesson-list {
  display: grid;
  width: min(760px, 100%);
  gap: 10px;
  margin: 18px auto 0;
}

.preview-reading-group {
  width: min(760px, 100%);
  margin: 20px auto 0;
}

.preview-reading-group > h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.preview-reading-group .lesson-list {
  margin-top: 10px;
}

.lesson-source-label {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

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

.badge-button {
  appearance: none;
  border: 1px solid var(--line);
  cursor: pointer;
}

.lesson-row:hover,
.choice-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(37, 111, 91, 0.35);
}

.lesson-row.is-playing {
  border-color: rgba(37, 111, 91, 0.45);
  background: #f7fbf7;
}

.question-word {
  margin-bottom: 10px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 850;
}

.review-question-text {
  width: min(760px, 100%);
  margin: 16px auto 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 800;
}

.fill-blank-prompt {
  width: min(760px, 100%);
  margin-inline: auto;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 700;
  text-align: left;
}

.inline-blank {
  display: inline-block;
  width: 128px;
  max-width: 42vw;
  height: 0.9em;
  margin: 0 6px;
  vertical-align: -0.08em;
  border-bottom: 3px solid rgba(20, 83, 70, 0.72);
}

.question-zh {
  color: var(--muted);
  font-size: 22px;
}

.dictation-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 650;
}

.dictation-meaning {
  width: min(760px, 100%);
  margin: 12px auto 6px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 850;
}

.keyboard-question-inner {
  width: 100%;
  max-width: 1040px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(640px, 100%);
}

.choice-button {
  position: relative;
  min-height: 64px;
  padding: 12px 48px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.choice-button.correct {
  border-color: #70b98e;
  background: #e9f7ee;
}

.choice-button.wrong {
  border-color: #e2ad5e;
  background: #fff6e6;
}

.choice-button:disabled {
  opacity: 0.88;
}

.answer-feedback {
  min-height: 32px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.answer-feedback.ok {
  color: var(--green-dark);
}

.answer-feedback.warn {
  color: #9f5f1c;
}

.answer-submit-panel {
  min-height: 76px;
}

.answer-submit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 190px));
  gap: 12px;
  justify-content: end;
}

.answer-submit-actions button {
  min-height: 48px;
}

.spelling-memory-feedback-host {
  min-height: 0;
  margin: 18px auto 16px;
}

.spelling-memory-feedback {
  width: min(720px, 100%);
  padding: 18px 20px 16px;
  border: 2px solid #cf6a62;
  border-radius: 8px;
  background: #fff8f7;
  color: var(--ink);
  text-align: left;
}

.spelling-memory-feedback p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.spelling-memory-feedback .spelling-memory-answer {
  font-size: 22px;
}

.spelling-memory-feedback .spelling-memory-learner-answer,
.spelling-memory-feedback .spelling-memory-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.spelling-memory-feedback .spelling-memory-learner-answer span,
.spelling-memory-feedback .spelling-memory-answer span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.spelling-character-diff {
  border: 1px solid #ccd9d1;
  background: #f8fbf9;
  padding: 10px;
  border-radius: 6px;
}

.spelling-diff-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.spelling-diff-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.spelling-diff-token {
  min-width: 28px;
  padding: 4px 6px;
  border: 1px solid transparent;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.spelling-diff-token.is-replace,
.spelling-diff-token.is-missing,
.spelling-diff-token.is-extra {
  min-width: 54px;
  border-color: #a3483f;
  border-bottom-width: 3px;
  background: #fff4f1;
  font-weight: 700;
}

.spelling-memory-feedback strong {
  color: #8d3732;
}

.spelling-memory-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.spelling-memory-audio button {
  min-height: 44px;
}

.text-input {
  width: min(460px, 100%);
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  font-size: 22px;
}

.text-input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 111, 91, 0.12);
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

select {
  height: 48px;
  padding: 0 12px;
}

.meter {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: var(--panel-soft);
}

.meter span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.mistake-list,
.report-list {
  display: grid;
  gap: 10px;
}

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

.mistake-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.mistake-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.mistake-stat span,
.mistake-stat small {
  color: var(--muted);
}

.mistake-stat strong {
  font-size: 24px;
}

.mistake-history {
  margin-top: 16px;
}

.mistake-history summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 700;
}

.mistake-history .mistake-list {
  margin-top: 8px;
}

.mistake-category-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 172px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.mistake-item,
.report-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.letter-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 14px auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
}

.letter-answer:empty::before {
  content: "点下面字母作答";
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.letter-answer.locked {
  background: var(--panel-soft);
}

.letter-keyboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(96%, 1040px);
  max-width: none;
  margin: 0 auto;
}

.keyboard-row {
  display: grid;
  gap: 14px;
}

.keyboard-row-1 {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.keyboard-row-2 {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  padding: 0 1.5%;
}

.keyboard-row-3 {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding: 0 4.5%;
}

.keyboard-symbol-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 14%;
}

.keyboard-action-row {
  grid-template-columns: 1fr 1fr minmax(180px, 3fr) 1.1fr;
}

.letter-key {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  cursor: pointer;
}

.letter-key.shift-key.active,
.letter-keyboard.is-shifted .shift-key {
  background: var(--green-dark);
  color: #fff;
}

.letter-key.utility {
  text-transform: none;
}

.letter-key.symbol {
  text-transform: none;
}

.letter-key.confirm {
  background: var(--green-dark);
  color: #fff;
  text-transform: none;
}

.preview-range-selector {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.chip-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

.chip-button.active {
  background: var(--green-dark);
  color: #fff;
}

.preview-unit-choice {
  display: grid;
  min-width: 180px;
  gap: 3px;
  border-radius: var(--radius);
  text-align: left;
}

.preview-unit-choice small {
  color: var(--muted);
  font-weight: 700;
}

.preview-unit-choice.active small {
  color: rgba(255, 255, 255, 0.82);
}

.preview-unit-choice.is-locked,
.secondary-button.is-locked {
  border-color: #d9d6cb;
  background: #f3f2ee;
  color: #77736a;
}

.preview-unit-row.is-current {
  box-shadow: inset 3px 0 0 var(--green-dark);
}

.preview-unit-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.preview-unit-progress,
.preview-unit-gate-summary {
  margin: 7px 0 0;
}

.preview-dual-progress {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.preview-dual-progress.is-detailed {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

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

.preview-progress-level {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.preview-progress-level span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-progress-level strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.preview-unit-meter {
  margin-top: 0;
}

.preview-progress-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preview-progress-counts > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.preview-progress-counts strong {
  color: var(--text);
  font-size: 17px;
}

.preview-progress-sync {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.preview-progress-sync.is-stale {
  color: #8a5c13;
}

.preview-progress-actions {
  display: flex;
  margin-top: 10px;
}

.preview-pending-dialog {
  width: min(620px, 100%);
}

.preview-pending-group {
  margin-top: 18px;
}

.preview-pending-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 15px;
}

.preview-pending-group h3 span {
  color: var(--muted);
  font-size: 13px;
}

.preview-pending-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-pending-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.preview-pending-row > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.preview-pending-row strong,
.preview-pending-row small {
  overflow-wrap: anywhere;
}

.preview-pending-row small {
  color: var(--muted);
}

.preview-unit-cooldown-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--green-dark);
  background: #eef7f1;
  color: var(--text);
}

.preview-unit-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 27, 23, 0.56);
}

.preview-unit-dialog {
  width: min(520px, 100%);
  max-height: min(620px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 27, 23, 0.22);
}

.preview-unit-dialog h2 {
  margin-top: 12px;
}

.preview-unit-dialog .button-row {
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .preview-progress-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .preview-progress-levels {
    grid-template-columns: 1fr;
  }

  .preview-pending-row {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .preview-progress-counts {
    grid-template-columns: 1fr;
  }
}

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

.mic-button {
  display: grid;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 22px 55px rgba(24, 76, 62, 0.25);
}

.mic-button.recording {
  background: var(--red);
}

.mic-button strong {
  font-size: 26px;
}

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

.score-box {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.score-box strong {
  display: block;
  font-size: 28px;
}

.field-row > * {
  flex: 1 1 190px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.setting-stack {
  display: grid;
  gap: 14px;
}

.student-settings {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.export-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 111, 91, 0.22);
  border-radius: var(--radius);
  background: #f4fbf7;
}

.export-callout strong,
.export-callout span {
  display: block;
}

.export-callout span,
.support-line {
  color: var(--muted);
}

.support-line {
  margin: 12px 0 0;
  line-height: 1.55;
}

.speaking-scope {
  margin-bottom: 14px;
}

.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

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

.daily-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.parent-plan-progress {
  margin: 16px 0;
}

.parent-plan-header,
.parent-plan-track-heading,
.parent-plan-book-heading,
.parent-plan-progress-value,
.parent-plan-action {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.parent-plan-header,
.parent-plan-track-heading,
.parent-plan-book-heading {
  align-items: flex-start;
}

.parent-plan-header h2 {
  margin-bottom: 0;
}

.parent-plan-track {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.parent-plan-track-heading {
  align-items: center;
  margin-bottom: 12px;
}

.parent-plan-track-heading > div,
.parent-plan-book-heading > div {
  min-width: 0;
}

.parent-plan-track-heading strong,
.parent-plan-kicker,
.parent-plan-book-heading strong,
.parent-plan-book-heading span {
  display: block;
}

.parent-plan-kicker,
.parent-plan-progress-value span,
.parent-plan-book p,
.parent-plan-book-heading span,
.parent-plan-stage > span:last-child,
.parent-plan-action span,
.parent-plan-empty span {
  color: var(--muted);
}

.parent-plan-kicker {
  margin-bottom: 4px;
  font-size: 14px;
}

.parent-plan-book-grid,
.parent-plan-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.parent-plan-book {
  min-width: 0;
  padding: 14px;
}

.parent-plan-book:not(:last-child),
.parent-plan-stage:not(:last-child) {
  border-right: 1px solid var(--line);
}

.parent-plan-book-heading {
  min-height: 44px;
}

.parent-plan-book-heading > .badge {
  flex: 0 0 auto;
}

.parent-plan-progress-value {
  align-items: baseline;
  margin-top: 14px;
  font-size: 13px;
}

.parent-plan-progress-value strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.parent-plan-meter {
  height: 7px;
  margin-top: 8px;
}

.parent-plan-meter.pending span {
  background: transparent;
}

.parent-plan-book p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.parent-plan-stage {
  position: relative;
  min-width: 0;
  min-height: 86px;
  padding: 14px 12px 12px 30px;
}

.parent-plan-stage strong,
.parent-plan-stage > span:last-child {
  display: block;
}

.parent-plan-stage > span:last-child {
  margin-top: 5px;
  font-size: 13px;
}

.parent-plan-stage-marker {
  position: absolute;
  top: 18px;
  left: 12px;
  width: 9px;
  height: 9px;
  border: 2px solid #aab7b1;
  border-radius: 50%;
  background: #fff;
}

.parent-plan-stage.completed .parent-plan-stage-marker {
  border-color: var(--green);
  background: var(--green);
}

.parent-plan-stage.current .parent-plan-stage-marker {
  border-color: #3c67a6;
  background: #3c67a6;
}

.parent-plan-stage.next .parent-plan-stage-marker {
  border-color: #c58a22;
  background: #f2bd5c;
}

.parent-plan-action {
  align-items: baseline;
  padding-top: 16px;
}

.parent-plan-action span {
  flex: 0 0 auto;
  font-size: 14px;
}

.parent-plan-action strong {
  text-align: right;
}

.parent-plan-empty,
.parent-plan-section-empty {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.parent-plan-empty {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.parent-plan-empty strong {
  color: var(--ink);
}

.parent-plan-section-empty {
  padding: 16px 0 2px;
}

.exam-paper-grid,
.exam-section-list {
  display: grid;
  gap: 12px;
}

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

.exam-paper-card,
.exam-section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.exam-paper-card {
  min-height: 142px;
  cursor: pointer;
}

.exam-paper-card.active {
  border-color: rgba(60, 103, 166, 0.55);
  background: #f6f9ff;
}

.exam-section {
  background: var(--panel-soft);
}

.standard-item {
  min-height: 106px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.standard-item strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 16px;
  border-radius: var(--radius);
  background: #17231d;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

@media (max-width: 860px) {
  .family-shell-view {
    padding: 24px 18px 18px;
  }

  .family-header {
    margin-bottom: 28px;
  }

  .family-header h1 {
    font-size: 29px;
  }

  .family-entry-stage {
    width: min(720px, 100%);
    padding: 24px 0 32px;
  }

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

  .subject-option {
    grid-template-columns: 52px minmax(0, 1fr) auto 24px;
    grid-template-areas: "symbol copy status arrow";
    min-height: 98px;
  }

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

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

  .exam-question-number-grid {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

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

  .exam-status-timeline span:nth-child(2) {
    border-right: 0;
  }

  .exam-status-timeline span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .shell {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .sidebar {
    position: static;
    align-self: start;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand,
  .sync-panel {
    display: none;
  }

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

  .nav-item {
    text-align: center;
  }

  .main {
    padding: 18px;
  }

  .english-location {
    gap: 10px;
  }

  h1 {
    font-size: 27px;
  }

  .hero-band,
  .grid.two,
  .grid.three,
  .flow-strip,
    .mini-flow,
    .mistake-category-grid,
    .score-grid,
    .standards-grid,
    .daily-summary-grid,
    .exam-paper-grid,
    .export-callout,
    .wish-panel {
    grid-template-columns: 1fr;
  }

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

  .exam-home-summary-band,
  .course-tools-band {
    align-items: flex-start;
  }

  .wish-bottle {
    margin: 0 auto;
  }

  .child-log-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .wish-bottle-shelf {
    justify-content: center;
  }

  .parent-plan-book-grid,
  .parent-plan-stage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .letter-keyboard,
  .keyboard-row {
    gap: 8px;
  }

  .keyboard-row-1,
  .keyboard-row-2 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    padding: 0;
  }

  .keyboard-row-3 {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    padding: 0;
  }

  .keyboard-symbol-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 6%;
  }

  .keyboard-action-row {
    grid-template-columns: 0.85fr 0.9fr minmax(96px, 1.8fr) 0.9fr;
  }

  .letter-key {
    min-height: 66px;
    font-size: 21px;
  }

  .question-word {
    font-size: 42px;
  }

  .fill-blank-prompt {
    font-size: 20px;
    line-height: 1.5;
  }

  .inline-blank {
    width: 96px;
  }
}

@media (max-width: 620px) {
  .account-gate {
    padding: 14px;
  }

  .account-panel {
    padding: 22px 18px;
  }

  .account-panel h1 {
    font-size: 25px;
  }

  .account-panel-heading {
    align-items: flex-start;
  }

  .parent-form-grid {
    grid-template-columns: 1fr;
  }

  .subject-header {
    flex-wrap: wrap;
  }

  .subject-header .account-switch-button {
    min-height: 42px;
  }

  .exam-home-summary-band,
  .course-tools-band {
    display: grid;
  }

  .exam-home-summary-actions,
  .course-tools-band .button-row {
    width: 100%;
  }

  .exam-home-summary-actions > button,
  .course-tools-band .button-row > button {
    flex: 1 1 0;
  }

  .variant-option,
  .subject-option {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 92px;
    padding: 14px;
  }

  .variant-option {
    grid-template-areas:
      "symbol copy status"
      "symbol copy arrow";
  }

  .variant-option .option-symbol,
  .subject-option .option-symbol {
    grid-area: symbol;
    width: 44px;
    height: 44px;
  }

  .variant-option .option-copy,
  .subject-option .option-copy {
    grid-area: copy;
  }

  .variant-option .option-status,
  .subject-option .option-status {
    grid-area: status;
    align-self: end;
  }

  .variant-option .option-arrow,
  .subject-option .option-arrow {
    grid-area: arrow;
    align-self: start;
  }

  .subject-option {
    grid-template-areas:
      "symbol copy status"
      "symbol copy arrow";
  }

  .option-copy strong {
    font-size: 18px;
  }

  #familyVariantView .variant-option {
    grid-template-columns: 52px minmax(0, 1fr) auto 22px;
    grid-template-areas: none;
    height: 150px;
    min-height: 150px;
    padding: 20px;
  }

  #familyVariantView .variant-option .option-symbol,
  #familyVariantView .variant-option .option-copy,
  #familyVariantView .variant-option .option-status,
  #familyVariantView .variant-option .option-arrow {
    grid-area: auto;
  }

  #familyVariantView .option-symbol {
    width: 50px;
    height: 50px;
  }

  #familyVariantView .option-copy strong {
    font-size: 21px;
  }

  .exam-learning-grid,
  .exam-evidence-grid {
    grid-template-columns: 1fr;
  }

  .exam-page-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .exam-page-preview {
    width: 92px;
    height: 118px;
  }

  .exam-record-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .exam-record-row .option-arrow {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .top-actions {
    flex-wrap: nowrap;
  }

  .parent-plan-book-grid,
  .parent-plan-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-plan-book,
  .parent-plan-stage {
    border-right: 1px solid var(--line);
  }

  .parent-plan-book:nth-child(2n),
  .parent-plan-stage:nth-child(2n) {
    border-right: 0;
  }

  .parent-plan-book:nth-child(n + 3),
  .parent-plan-stage:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .parent-plan-track-heading,
  .parent-plan-action,
  .parent-plan-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .parent-plan-action strong {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .diagnostic-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .diagnostic-header .account-switch-button {
    grid-column: 2;
    justify-self: start;
  }

  .diagnostic-header h1 {
    font-size: 21px;
  }

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

  .diagnostic-summary > :last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .diagnostic-package-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .diagnostic-package-row > :last-child {
    display: none;
  }

  .diagnostic-question {
    padding-top: 16px;
  }

  .diagnostic-question h2 {
    font-size: 20px;
  }

  .diagnostic-choice {
    grid-template-columns: 31px minmax(0, 1fr);
    padding: 12px;
    font-size: 16px;
  }

  .diagnostic-passage p {
    font-size: 16px;
  }

  .diagnostic-question-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .diagnostic-secondary-actions,
  .diagnostic-answer-submit-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .diagnostic-question-actions button,
  .diagnostic-secondary-actions button {
    min-width: 0;
    padding-inline: 8px;
  }

  .diagnostic-pause-actions {
    width: min(100%, 360px);
    flex-direction: column;
  }
}

.shared-english-today,
.shared-english-section {
  width: 100%;
}

.shared-plan-stage {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #d9e7df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.shared-plan-stage-head,
.shared-stage-meta,
.shared-weakness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shared-plan-stage-head > div {
  display: grid;
  gap: 5px;
}

.shared-plan-stage-head small,
.shared-stage-meta,
.shared-weakness-row small {
  color: var(--muted);
}

.shared-stage-meta {
  margin-top: 10px;
  font-size: 14px;
}

.shared-weakness-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.shared-weakness-row {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  background: #fff;
}

.shared-weakness-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shared-plan-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.shared-english-choice {
  min-height: 52px;
}

@media (max-width: 720px) {
  .shared-plan-stage-head,
  .shared-stage-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
.preview-runtime-shell {
  width: min(100%, 920px);
  margin: 0 auto;
}

.preview-practice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #dfe8e3);
}

.preview-practice-header h1 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: 0;
}

.preview-progress-pair {
  display: grid;
  gap: 6px;
  min-width: 136px;
  text-align: right;
  color: #31574b;
  font-size: 14px;
}

.preview-learning-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dce9e3;
  border-radius: 8px;
  background: #f7fbf9;
}

.preview-learning-card h2 {
  margin: 10px 0 12px;
  font-size: 28px;
  letter-spacing: 0;
}

.preview-learning-card p {
  line-height: 1.7;
}

.shared-preview-batch-learning {
  width: min(100%, 920px);
  margin: 0 auto;
}

.preview-batch-stage-strip {
  margin-top: 16px;
}

.preview-focus-list {
  display: grid;
  width: min(760px, 100%);
  gap: 10px;
  margin: 18px auto 0;
}

.preview-focus-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf9;
}

.preview-focus-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.preview-focus-card p {
  margin: 7px 0 0;
  line-height: 1.6;
}

.preview-word-meaning {
  font-size: 19px;
  font-weight: 700;
}

.preview-confirm-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.preview-confirm-actions button {
  min-height: 48px;
  width: 100%;
}

.preview-track-stage {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-track-stage > button {
  margin-top: 12px;
}

.preview-unit-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.preview-unit-list .is-locked {
  opacity: 0.66;
}

.review-memory-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
}

@media (max-width: 720px) {
  .preview-practice-header {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-progress-pair {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .preview-confirm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.post-submit-translation {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cddfd8;
  border-radius: 8px;
  background: #f5faf8;
  color: #18372e;
}

.post-submit-translation h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.post-submit-translation p {
  margin: 6px 0;
}

.post-submit-translation.is-pending {
  border-color: #e2d7b4;
  background: #fffaf0;
  color: #674d16;
}

.translation-choice-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.translation-choice-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}

.profile-reward-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid #d4e2dc;
  border-radius: 8px;
  background: #f7fbf9;
}

.profile-reward-summary strong,
.profile-reward-summary small {
  display: block;
}

.profile-reward-summary small {
  margin-top: 5px;
  color: #5f716b;
}

.profile-reward-mini-bottle {
  position: relative;
  width: 38px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid #508474;
  border-radius: 6px 6px 12px 12px;
  background: #fff;
}

.profile-reward-mini-bottle span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--reward-fill, 0%);
  background: #f6c64d;
}
