:root {
  color-scheme: only light !important;
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
  --bg: #ebeae4;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --surface-muted: #f1f2ed;
  --ink: #1d2926;
  --muted: #69736f;
  --muted-strong: #4e5b57;
  --line: #dedfd8;
  --line-strong: #c9ccc4;
  --coral: #ed5b3c;
  --coral-dark: #cb4327;
  --coral-soft: #fbe9e3;
  --teal: #147c70;
  --teal-dark: #0e635a;
  --teal-soft: #e3f1ec;
  --amber: #9e6d0b;
  --amber-soft: #f9efd6;
  --blue: #3867c9;
  --blue-soft: #e9eefb;
  --danger: #b3342d;
  --shadow: 0 14px 40px rgba(35, 45, 41, 0.08);
  --shadow-soft: 0 8px 24px rgba(35, 45, 41, 0.06);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  color-scheme: only light !important;
  -webkit-color-scheme: only light !important;
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  color-scheme: only light !important;
  -webkit-color-scheme: only light !important;
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  display: block;
  flex: 0 0 auto;
}

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

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(56, 103, 201, 0.3);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
  background: var(--paper);
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
  overflow: hidden;
}

.app-shell,
.app-shell * {
  color-scheme: only light !important;
  -webkit-color-scheme: only light !important;
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.home-header,
.topbar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 10px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(237, 91, 60, 0.22);
}

.date-chip {
  padding: 7px 10px;
  color: var(--muted-strong);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.65);
}

main {
  width: 100%;
}

.home-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 20px 40px;
}

.welcome-band {
  padding: 32px 0 34px;
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.welcome-band .eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
}

.welcome-band h1 {
  max-width: 720px;
  font-size: 38px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.15;
}

.welcome-band h1 span {
  position: relative;
  display: inline-block;
  color: var(--coral);
}

.welcome-band h1 span::after {
  position: absolute;
  right: 2px;
  bottom: -4px;
  left: 2px;
  height: 8px;
  content: "";
  background: #f4ce6f;
  opacity: 0.72;
  z-index: -1;
  transform: skewX(-10deg);
}

.welcome-copy {
  max-width: 500px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 15px;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

.channel-row > span:not(.channel-divider) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.74);
}

.channel-divider {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.module-section,
.progress-band {
  min-width: 0;
}

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

.section-heading h2,
.progress-title h2 {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-heading.compact {
  margin-bottom: 13px;
}

.section-heading.compact h2 {
  font-size: 19px;
}

.section-note {
  color: var(--muted);
  font-size: 12px;
}

.module-list {
  display: grid;
  gap: 11px;
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 17px 16px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.module-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--card-accent);
}

.module-card:hover {
  border-color: var(--card-border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.module-card:active {
  transform: translateY(0);
}

.module-teal {
  --card-accent: var(--teal);
  --card-border: #a9cec4;
  --card-soft: var(--teal-soft);
  --card-ink: var(--teal);
}

.module-amber {
  --card-accent: var(--amber);
  --card-border: #dec78f;
  --card-soft: var(--amber-soft);
  --card-ink: var(--amber);
}

.module-blue {
  --card-accent: var(--blue);
  --card-border: #b8c6ea;
  --card-soft: var(--blue-soft);
  --card-ink: var(--blue);
}

.module-number {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--line-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.module-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--card-ink);
  background: var(--card-soft);
  border-radius: 8px;
}

.module-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.module-kicker {
  margin-bottom: 3px;
  color: var(--card-ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.module-copy strong {
  font-size: 19px;
  font-weight: 790;
  line-height: 1.3;
}

.module-description {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.module-arrow {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.module-card:hover .module-arrow {
  color: var(--card-ink);
  transform: translate(2px, -2px);
}

.progress-band {
  margin-top: 30px;
  padding: 20px;
  color: #f6f6f1;
  border-radius: 8px;
  background: #24332f;
  box-shadow: var(--shadow-soft);
}

.progress-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.progress-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-band .section-kicker {
  color: #9eb3ac;
}

.progress-band .progress-title > svg,
.progress-band .progress-title > i,
.progress-actions > svg,
.progress-actions > i {
  color: #8faca3;
}

.view-all-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 2px;
  padding: 4px 7px;
  color: #d9e2de;
  font-size: 10px;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  min-width: 0;
  padding: 14px 8px 14px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:nth-child(2) {
  padding-left: 12px;
}

.stat-item:last-child {
  padding-left: 12px;
  border-right: 0;
}

.stat-item strong {
  display: block;
  overflow: hidden;
  font-size: 25px;
  font-weight: 780;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-item strong small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 600;
}

.stat-item > span {
  display: block;
  margin-top: 5px;
  color: #aabbb5;
  font-size: 11px;
}

.empty-history {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #aabbb5;
  font-size: 11px;
  line-height: 1.5;
}

.empty-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #efb64b;
}

.recent-list {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}

.recent-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
}

.recent-item-button {
  width: 100%;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
}

.recent-item-button:hover .recent-copy strong {
  color: #fff;
}

.recent-item + .recent-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #f1c064;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

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

.recent-copy strong,
.recent-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy strong {
  font-size: 12px;
  font-weight: 650;
}

.recent-copy small {
  margin-top: 2px;
  color: #94aaa3;
  font-size: 10px;
}

.recent-score {
  color: #f3d08b;
  font-size: 16px;
  font-weight: 750;
}

.recent-score small {
  margin-left: 1px;
  font-size: 9px;
  font-weight: 500;
}

.history-main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px max(48px, env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
}

.topbar-spacer {
  width: 42px;
  height: 42px;
}

.history-overview {
  display: grid;
  gap: 18px;
  padding: 22px;
  color: #f6f6f1;
  border-radius: 8px;
  background: #24332f;
  box-shadow: var(--shadow-soft);
}

.history-overview .section-kicker {
  color: #9eb3ac;
}

.history-overview h1 {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 820;
  line-height: 1.2;
}

.history-overview p:last-child {
  margin-top: 7px;
  color: #b5c3be;
  font-size: 12px;
}

.history-overview-stats {
  display: flex;
  gap: 24px;
}

.history-overview-stats > span {
  display: grid;
  gap: 2px;
}

.history-overview-stats strong {
  color: #f1c064;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.history-overview-stats small {
  color: #9eb3ac;
  font-size: 10px;
}

.history-list-section {
  display: grid;
  gap: 8px;
}

.history-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 1px;
}

.history-list-heading h2 {
  font-size: 18px;
  font-weight: 800;
}

.history-list-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.history-list {
  display: grid;
  gap: 7px;
}

.history-card {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 9px rgba(35, 45, 41, 0.035);
}

.history-card:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.history-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--card-ink, var(--teal));
  border-radius: 8px;
  background: var(--card-soft, var(--teal-soft));
}

.history-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.history-card-copy strong,
.history-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card-copy strong {
  font-size: 13px;
  font-weight: 720;
}

.history-card-copy small {
  color: var(--muted);
  font-size: 10px;
}

.history-card-side {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.history-card-side strong {
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 800;
}

.history-card-side strong small {
  margin-left: 1px;
  font-size: 9px;
  font-weight: 600;
}

.history-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 46px 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.history-empty > svg,
.history-empty > i {
  color: var(--teal);
}

.history-empty h2 {
  color: var(--ink);
  font-size: 19px;
}

.history-empty p {
  max-width: 420px;
  font-size: 12px;
}

.history-legacy-note p {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
}

.history-legacy-time {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.home-footnote {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  grid-column: 1 / -1;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 12px;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(222, 223, 216, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-title {
  min-width: 0;
  text-align: center;
}

.topbar-title span,
.topbar-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-title span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.topbar-title strong {
  margin-top: 1px;
  font-size: 14px;
  font-weight: 720;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}

.practice-main,
.feedback-main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px max(48px, env(safe-area-inset-bottom));
}

.practice-main {
  display: grid;
  gap: 22px;
}

.task-panel {
  position: relative;
  width: 100%;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.task-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--task-accent, var(--teal));
}

.reading-task {
  --task-accent: var(--teal);
}

.reading-topbar {
  max-width: 920px;
}

.reading-workspace {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px max(48px, env(safe-area-inset-bottom));
}

.reading-workspace .reading-main {
  display: block;
  max-width: 860px;
  padding-top: 0;
  padding-bottom: 0;
}

.reading-main > * + * {
  margin-top: 14px;
}

.reading-workspace .reading-main .answer-section {
  position: static;
  grid-column: auto;
  grid-row: auto;
}

.reading-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: flex-end;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.74);
}

.reading-source-switch {
  flex: 0 0 208px;
  background: #e9eae4;
}

.reading-source-switch .segment {
  min-height: 38px;
  font-size: 12px;
}

.reading-picker {
  display: grid;
  flex: 1 1 390px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.2fr);
  gap: 8px;
  min-width: 0;
}

.reading-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reading-field > span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.reading-select-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.reading-select {
  width: 100%;
  height: 38px;
  padding: 0 31px 0 10px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #fbfaf6;
  appearance: none;
  cursor: pointer;
}

.reading-select:focus {
  border-color: #97c6bc;
  box-shadow: 0 0 0 3px rgba(20, 124, 112, 0.12);
}

.reading-select-wrap > svg,
.reading-select-wrap > i {
  position: absolute;
  top: 50%;
  right: 9px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.reading-toolbar-note {
  align-self: center;
  margin-left: auto;
  padding: 0 5px 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.reading-task {
  padding: 24px;
  box-shadow: none;
}

.reading-task h1 {
  font-size: 32px;
  letter-spacing: 0;
}

.reading-task .passage-text {
  max-width: 68ch;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.95;
}

.voice-picker-section {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.66);
}

.voice-picker-section .section-heading,
.reading-main .practice-section > .section-heading {
  margin-bottom: 9px;
}

.voice-picker-section h2,
.reading-main .practice-section > .section-heading h2 {
  font-size: 16px;
  letter-spacing: 0;
}

.voice-preview-grid {
  gap: 7px;
}

.voice-option {
  min-height: 52px;
  padding: 8px 10px;
}

.scenario-task {
  --task-accent: var(--amber);
}

.speech-task {
  --task-accent: var(--blue);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}

.task-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--task-accent, var(--teal));
  font-weight: 700;
}

.task-panel h1 {
  max-width: 740px;
  font-size: 30px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.28;
}

.author-line {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.passage-text {
  margin-top: 24px;
  color: #26332f;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 2.05;
}

.passage-text p + p {
  margin-top: 12px;
}

.listen-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 8px 13px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #b9d6cf;
  border-radius: 999px;
  background: var(--teal-soft);
}

.listen-button.is-speaking {
  color: #fff;
  background: var(--teal);
}

.reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.reading-actions .listen-button {
  margin-top: 0;
}

.reading-record-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--coral);
  border-radius: 999px;
  background: var(--coral);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.reading-record-button:hover {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.reading-record-button.is-recording {
  border-color: var(--danger);
  background: var(--danger);
}

.reading-voice-status {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.reading-voice-status.is-recording {
  border-color: #e3b2a6;
  background: #fff8f5;
}

.reading-voice-status .live-transcript {
  min-height: 54px;
  max-height: 150px;
  margin-top: 9px;
  background: var(--surface);
}

.reading-voice-status .live-transcript.settled {
  margin-top: 0;
}

.reading-audio {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 2px;
}

.reading-voice-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.voice-picker-section {
  display: grid;
  gap: 8px;
}

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

.voice-option {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  text-align: left;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.voice-option:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.voice-option.is-active {
  color: var(--teal-dark);
  border-color: #9dc8bf;
  background: var(--teal-soft);
}

.voice-option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.voice-option-play {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--teal);
  border-radius: 50%;
  background: #fff;
}

.voice-option-copy {
  display: block;
  min-width: 0;
  flex: 1;
}

.voice-option-copy strong,
.voice-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-option-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.voice-option-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.voice-option-state {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 720;
}

.practice-section {
  width: 100%;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eeeee8;
}

.segmented-control.simple {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
}

.segmented-control.simple .segment {
  padding-right: 6px;
  padding-left: 6px;
}

.segment {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  border: 0;
  border-radius: 6px;
  background: transparent;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.segment.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(34, 42, 39, 0.08);
}

.mode-tip,
.scenario-hint,
.speech-angle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 12px 13px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.66);
}

.mode-tip > svg,
.mode-tip > i,
.scenario-hint > svg,
.scenario-hint > i,
.speech-angle > svg,
.speech-angle > i {
  margin-top: 1px;
  color: var(--teal);
}

.segment-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segment-list-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  background: #f9f8f3;
}

.segment-list-head > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 650;
  border: 0;
  background: transparent;
}

.audio-segment {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.audio-segment + .audio-segment {
  border-top: 1px solid var(--line);
}

.audio-segment.is-speaking {
  background: var(--teal-soft);
  box-shadow: 3px 0 0 var(--teal) inset;
}

.segment-play {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--teal);
  border: 1px solid #bdd8d1;
  border-radius: 50%;
  background: var(--teal-soft);
}

.audio-segment p {
  padding-top: 5px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.75;
}

.scenario-context {
  margin-bottom: 16px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-task h1 {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 27px;
}

.scenario-hint {
  margin-top: 20px;
  border-color: #ead9af;
  background: var(--amber-soft);
}

.scenario-hint > svg,
.scenario-hint > i {
  color: var(--amber);
}

.speech-prompt {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.speech-angle {
  margin-top: 22px;
  border-color: #c9d4ed;
  background: var(--blue-soft);
}

.speech-angle > svg,
.speech-angle > i {
  color: var(--blue);
}

.duration-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.duration-control > span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

.answer-section {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.answer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.answer-heading h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.answer-count {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.answer-helper {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.input-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 17px;
}

.input-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f5f0;
}

.input-tab.is-active {
  color: var(--coral-dark);
  border-color: #e7b6a9;
  background: var(--coral-soft);
}

.recorder {
  margin-top: 12px;
}

.record-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  padding: 15px;
  overflow: hidden;
  text-align: left;
  border: 1px dashed #ddb9ae;
  border-radius: 8px;
  background: #fdf7f4;
}

.record-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 7px 18px rgba(237, 91, 60, 0.28);
}

.record-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.record-copy strong {
  font-size: 15px;
  font-weight: 750;
}

.record-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.record-pulse {
  position: absolute;
  top: 50%;
  right: -22px;
  width: 108px;
  height: 108px;
  border: 1px solid #f2c7bd;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.record-button:active .record-orb {
  transform: scale(0.96);
}

.recorder.is-recording {
  padding: 16px;
  border: 1px solid #e3b2a6;
  border-radius: 8px;
  background: #fff8f5;
}

.recorder.is-transcribing {
  padding: 16px;
  border: 1px solid #b9d6d0;
  border-radius: 8px;
  background: #f4faf8;
}

.transcribing-status {
  display: flex;
  align-items: center;
  gap: 11px;
}

.transcribing-status > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.transcribing-status strong {
  font-size: 14px;
  font-weight: 750;
}

.transcribing-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.transcribing-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--teal);
  border-radius: 50%;
  background: #e5f3ef;
}

.transcribing-icon svg {
  animation: transcribe-spin 900ms linear infinite;
}

.transcribing-transcript {
  min-height: 0;
  color: var(--muted-strong);
  font-size: 12px;
}

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

.waveform {
  display: flex;
  height: 30px;
  flex: 1;
  align-items: center;
  gap: 4px;
}

.waveform span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--coral);
  animation: waveform 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--bar) * -55ms);
}

.waveform span:nth-child(3n) {
  height: 18px;
}

.waveform span:nth-child(4n) {
  height: 25px;
}

@keyframes waveform {
  from {
    transform: scaleY(0.5);
    opacity: 0.55;
  }
  to {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

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

.recording-time {
  color: var(--coral-dark);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.recording-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.live-transcript {
  min-height: 76px;
  max-height: 210px;
  margin-top: 12px;
  padding: 12px;
  overflow-y: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.live-transcript.settled {
  margin-top: 12px;
}

.transcript-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--teal);
  font-size: 10px;
}

.stop-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  background: var(--coral);
}

.unsupported-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  padding: 13px;
  color: var(--muted-strong);
  border: 1px solid #ead9af;
  border-radius: 8px;
  background: var(--amber-soft);
}

.unsupported-note > svg,
.unsupported-note > i {
  margin-top: 1px;
  color: var(--amber);
}

.unsupported-note strong {
  font-size: 12px;
}

.unsupported-note p {
  margin-top: 2px;
  font-size: 11px;
}

.text-answer-wrap {
  position: relative;
  display: block;
  margin-top: 12px;
}

.answer-textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 14px 14px 36px;
  resize: vertical;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf7;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.answer-textarea::placeholder {
  color: #9ba39f;
}

.answer-textarea:focus {
  border-color: #aabbb5;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 124, 112, 0.09);
}

.textarea-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  pointer-events: none;
}

.transcript-review-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--teal);
  font-size: 11px;
  line-height: 1.55;
  border: 1px solid #bad5ce;
  border-radius: 7px;
  background: var(--teal-soft);
}

.transcript-review-note > svg,
.transcript-review-note > i {
  flex: 0 0 auto;
  margin-top: 1px;
}

.submit-row {
  margin-top: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: 7px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 7px 16px rgba(237, 91, 60, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--coral-dark);
}

.button-primary:disabled {
  color: #9a9f9c;
  background: #e7e7e1;
  box-shadow: none;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.button-quiet {
  color: var(--muted-strong);
  border-color: transparent;
  background: transparent;
}

.button-quiet:hover:not(:disabled) {
  background: var(--surface-muted);
}

.button-wide {
  width: 100%;
}

.file-input-button {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.file-input-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.button-submit {
  width: 100%;
}

.submit-row > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(24, 31, 29, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade-in 170ms ease both;
}

.bottom-sheet {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 24px);
  padding: 10px 20px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(22, 28, 26, 0.24);
  animation: sheet-up 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.sheet-grabber {
  width: 34px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--line-strong);
}

.confirm-sheet {
  text-align: center;
}

.confirm-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--card-ink);
  border-radius: 8px;
  background: var(--card-soft);
}

.sheet-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.confirm-sheet h2,
.command-heading h2 {
  margin-top: 4px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}

.sheet-copy {
  max-width: 340px;
  margin: 8px auto 16px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.65;
}

.input-reminder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 18px;
}

.input-reminder span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--muted-strong);
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f6f1;
}

.confirm-sheet .button + .button {
  margin-top: 4px;
}

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

.command-heading .icon-button {
  width: 36px;
  height: 36px;
}

.command-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 13px 0;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.command-row > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted-strong);
  border-radius: 8px;
  background: var(--surface-muted);
}

.command-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.command-row strong {
  font-size: 13px;
}

.command-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.command-row > svg,
.command-row > i {
  color: var(--muted);
}

.feedback-main {
  display: grid;
  gap: 10px;
  max-width: 840px;
}

.feedback-main-compact {
  grid-template-columns: minmax(0, 1fr);
}

.score-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.score-ring {
  display: grid;
  width: 96px;
  height: 96px;
  padding: 7px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal) calc(var(--score) * 1%),
    #e7e8e1 calc(var(--score) * 1%)
  );
}

.score-ring > div {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: baseline;
  justify-content: center;
  padding-top: 21px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring strong {
  font-size: 32px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
}

.score-ring span {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
}

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

.score-copy h1 {
  margin-top: 4px;
  font-size: 23px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.25;
}

.score-copy > p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.score-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 8px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 720;
  border: 1px solid #b8d4cd;
  border-radius: 999px;
  background: var(--teal-soft);
}

.score-status.is-running {
  color: var(--coral-dark);
  border-color: #ecc2b7;
  background: var(--coral-soft);
}

.score-status.is-running svg,
.score-status.is-running i {
  animation: model-evaluating-spin 1s linear infinite;
}

.score-status.is-fallback {
  color: var(--amber);
  border-color: #e5d7b7;
  background: var(--amber-soft);
}

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

.speak-feedback {
  display: inline-flex;
  grid-column: 1 / -1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 1px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #b8d4cd;
  border-radius: 7px;
  background: var(--teal-soft);
}

.speak-feedback.is-speaking {
  color: #fff;
  background: var(--teal);
}

.feedback-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feedback-main .feedback-section {
  padding: 14px;
}

.reviewed-task {
  border-left: 3px solid var(--teal);
}

.reviewed-task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

.reviewed-task-meta span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 720;
  border: 1px solid #bdd8d2;
  border-radius: 999px;
  background: var(--teal-soft);
}

.reviewed-task h3 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.reviewed-task > p {
  margin-top: 5px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
}

.feedback-good {
  border-left: 3px solid var(--teal);
}

.feedback-improve {
  border-left: 3px solid var(--coral);
}

.core-issue {
  padding: 12px 13px;
  border-left: 3px solid var(--danger);
  border-radius: 0 7px 7px 0;
  background: #fbefed;
}

.core-issue > span {
  color: var(--danger);
  font-size: 11px;
  font-weight: 780;
}

.core-issue > p {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
}

.risk-block {
  padding: 12px;
  border: 1px solid #e5b7b1;
  border-left: 3px solid var(--danger);
  border-radius: 7px;
  background: #fff9f8;
}

.risk-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 12px;
}

.risk-block-title > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #f8e4e1;
}

.risk-block blockquote {
  margin: 12px 0 0;
  padding: 12px 13px;
  color: #592520;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
  border-left: 3px solid var(--danger);
  border-radius: 0 7px 7px 0;
  background: #fff;
}

.risk-explanation {
  margin-top: 11px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
}

.risk-block .risk-rewrite {
  margin-top: 13px;
  border-left-color: var(--danger);
  background: #f8e4e1;
}

.risk-block .risk-rewrite > span {
  color: var(--danger);
}

.risk-finding-list {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid #ecd2ce;
}

.risk-finding-list li {
  display: grid;
  gap: 2px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.55;
}

.risk-finding-list strong {
  color: var(--danger);
  font-size: 11px;
}

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

.feedback-block-title > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--teal);
  border-radius: 50%;
  background: var(--teal-soft);
}

.feedback-improve .feedback-block-title > span {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.feedback-block-title h2 {
  font-size: 17px;
  font-weight: 780;
}

.feedback-list,
.improve-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feedback-list li,
.improve-list li {
  position: relative;
  padding-left: 19px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.feedback-list li::before {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 7px;
  height: 4px;
  content: "";
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.improve-list {
  counter-reset: improve;
}

.improve-list li {
  counter-increment: improve;
  padding-left: 28px;
}

.improve-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 800;
  content: counter(improve);
  border-radius: 50%;
  background: var(--coral-soft);
}

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

.model-evaluating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 650;
  border: 1px solid #bdd8d2;
  border-radius: 7px;
  background: var(--teal-soft);
}

.model-evaluating-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  animation: model-evaluating-pulse 1.1s ease-in-out infinite;
}

@keyframes model-evaluating-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.diagnostic-item {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.diagnostic-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.diagnostic-item > p {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.diagnostic-item > p.diagnostic-note {
  margin-top: 6px;
  color: var(--coral-dark);
  font-size: 11px;
}

.issue-list {
  display: grid;
  gap: 7px;
  margin: 7px 0 0;
  padding-left: 19px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.issue-list li::marker {
  color: var(--danger);
  font-weight: 760;
}

.sentence-review-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.sentence-review-list > li {
  padding-left: 2px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.65;
}

.sentence-review-list > li::marker {
  color: var(--blue);
  font-weight: 800;
}

.sentence-review-list blockquote {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.sentence-review-list > li > p {
  margin-top: 4px;
}

.sentence-fix {
  margin-top: 7px;
  padding: 8px 10px;
  border-left: 2px solid var(--teal);
  border-radius: 0 6px 6px 0;
  background: var(--teal-soft);
}

.sentence-fix > span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 760;
}

.sentence-fix > p {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.65;
}

.diagnostic-rewrite {
  padding: 13px 14px;
  border-left: 3px solid var(--coral);
  border-radius: 0 7px 7px 0;
  background: var(--coral-soft);
}

.diagnostic-rewrite > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 750;
}

.diagnostic-rewrite > p {
  margin-top: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
}

.next-step-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  color: var(--muted-strong);
  border: 1px solid #d8dfd9;
  border-radius: 7px;
  background: var(--surface-muted);
}

.next-step-box > svg,
.next-step-box > i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--blue);
}

.next-step-box span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
}

.next-step-box p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.65;
}

.word-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.word-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 4px 8px;
  color: var(--danger);
  font-size: 11px;
  border: 1px solid #ecc6c2;
  border-radius: 999px;
  background: #fbefed;
}

.word-tags > .tag-success {
  color: var(--teal);
  border-color: #b8d8d0;
  background: var(--teal-soft);
}

.pause-list {
  display: grid;
  gap: 7px;
  margin: 5px 0 0;
  padding-left: 17px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.55;
}

.reference-panel,
.answer-review {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.reference-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.reference-tabs h2 {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.25;
}

.reference-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(66px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
}

.reference-switch button {
  min-height: 33px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.reference-switch button.is-active {
  color: var(--teal);
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(26, 35, 32, 0.09);
}

.reference-open .reference-body {
  padding-top: 14px;
}

.reference-variant-label {
  padding-top: 0 !important;
  color: var(--teal) !important;
  font-size: 10px !important;
  font-weight: 700;
}

.reference-panel summary,
.answer-review summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 17px;
  cursor: pointer;
  list-style: none;
}

.reference-panel summary::-webkit-details-marker,
.answer-review summary::-webkit-details-marker {
  display: none;
}

.reference-panel summary > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.reference-panel summary strong {
  font-size: 13px;
}

.reference-panel summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.reference-action {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  background: var(--surface-muted);
  transition: transform 180ms ease;
}

.reference-panel[open] .reference-action {
  transform: rotate(180deg);
}

.reference-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.reference-body > p {
  padding-top: 12px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.75;
}

.reference-copy {
  display: grid;
  gap: 7px;
  padding-top: 12px;
}

.reference-copy > p {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.75;
}

.reference-answer-text {
  font-size: 13px !important;
  font-weight: 600;
}

.reference-outline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reference-outline > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
}

.inline-listen {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 6px 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 650;
  border: 1px solid #bad5ce;
  border-radius: 999px;
  background: var(--teal-soft);
}

.outline-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
}

.duration-feedback {
  margin-top: 13px !important;
  padding: 10px 11px;
  color: var(--blue) !important;
  border-radius: 6px;
  background: var(--blue-soft);
}

.answer-review summary {
  color: var(--muted-strong);
  font-size: 11px;
}

.answer-review summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.answer-review summary small {
  color: var(--muted);
  font-size: 10px;
}

.answer-review > p {
  padding: 0 17px 17px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.next-actions {
  display: grid;
  gap: 8px;
  padding-top: 3px;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.split-actions .button {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 11px;
}

.toast-root {
  position: fixed;
  right: 14px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 14px;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  max-width: 430px;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #25332f;
  box-shadow: 0 12px 36px rgba(20, 27, 25, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast > svg,
.toast > i {
  color: #f0c76b;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .home-header {
    padding: 28px 32px 12px;
  }

  .home-main {
    padding: 8px 32px 54px;
  }

  .topbar {
    padding-right: 32px;
    padding-left: 32px;
  }

  .practice-main,
  .feedback-main,
  .history-main {
    padding: 28px 32px 60px;
  }

  .history-overview {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .history-overview-stats {
    justify-content: flex-end;
  }

  .welcome-band {
    padding: 40px 0 42px;
  }

  .welcome-band h1 {
    font-size: 48px;
  }

  .welcome-copy {
    font-size: 16px;
  }

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

  .module-card {
    grid-template-columns: 1fr 26px;
    align-content: start;
    min-height: 206px;
    padding: 20px 17px;
  }

  .module-icon {
    margin-bottom: 25px;
  }

  .module-copy {
    grid-column: 1 / -1;
    padding-right: 5px;
  }

  .module-arrow {
    position: absolute;
    top: 19px;
    right: 15px;
  }

  .progress-band {
    margin-top: 34px;
  }

  .bottom-sheet {
    align-self: center;
  }

  .sheet-backdrop {
    align-items: center;
  }

  .task-panel,
  .answer-section,
  .feedback-section {
    padding: 24px;
  }

  .score-hero {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 22px;
    padding: 26px;
  }

  .score-ring {
    width: 112px;
    height: 112px;
  }

  .score-ring > div {
    padding-top: 27px;
  }

  .score-ring strong {
    font-size: 38px;
  }

  .score-copy h1 {
    font-size: 30px;
  }

  .score-copy > p:last-child {
    max-width: 600px;
    font-size: 13px;
  }

  .speak-feedback {
    grid-column: auto;
    min-width: 126px;
    margin: 0;
  }

  .feedback-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .score-hero,
  .answer-review,
  .next-actions {
    grid-column: 1 / -1;
  }

  .next-actions {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .practice-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
  }

  .practice-main .task-panel,
  .practice-main .practice-section {
    grid-column: 1;
  }

  .practice-main .answer-section {
    position: sticky;
    top: 92px;
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .task-panel h1 {
    font-size: 34px;
  }

  .passage-text {
    font-size: 20px;
  }

  .answer-textarea {
    min-height: 240px;
  }

}

@media (min-width: 960px) {
  .home-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
    gap: 28px 32px;
    align-items: start;
  }

  .welcome-band {
    grid-column: 1 / -1;
    padding-bottom: 34px;
  }

  .welcome-band h1 {
    font-size: 56px;
  }

  .module-section {
    grid-column: 1;
  }

  .progress-band {
    position: sticky;
    top: 24px;
    grid-column: 2;
    margin-top: 0;
  }

  .home-footnote {
    display: flex;
  }

  .module-card {
    min-height: 154px;
    grid-template-columns: 52px minmax(0, 1fr) 26px;
  }

  .module-icon {
    margin: 0;
  }

  .module-copy {
    grid-column: auto;
  }

  .module-arrow {
    position: static;
  }

  .module-number {
    right: 14px;
  }

  .module-description {
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .reading-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 8px;
  }

  .reading-source-switch {
    width: 100%;
  }

  .reading-picker {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .reading-toolbar-note {
    margin-left: 0;
    padding: 0 2px 2px;
  }

  .reading-task {
    padding: 20px 18px;
  }

  .reading-task h1 {
    font-size: 28px;
  }

  .reading-task .passage-text {
    font-size: 17px;
    line-height: 1.9;
  }
}

@media (max-width: 380px) {
  .home-header,
  .home-main,
  .topbar,
  .practice-main,
  .feedback-main,
  .history-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .reading-workspace {
    padding-right: 14px;
    padding-left: 14px;
  }

  .reading-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .welcome-band h1 {
    font-size: 34px;
  }

  .date-chip {
    display: none;
  }

  .module-card {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 11px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .module-icon {
    width: 44px;
    height: 44px;
  }

  .score-hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  .score-ring {
    width: 82px;
    height: 82px;
    padding: 6px;
  }

  .score-ring > div {
    padding-top: 18px;
  }

  .score-ring strong {
    font-size: 29px;
  }

  .score-copy h1 {
    font-size: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
