@import url("classic-practice-theme.css?v=20260726-2");

:root {
  color-scheme: light;
  --ink: #101c24;
  --muted: #68757a;
  --line: #dcd6ca;
  --paper: #f4f0e7;
  --surface: #fffdf8;
  --teal: #2e7d70;
  --teal-dark: #17313a;
  --coral: #d95f3f;
  --cinnabar: #d95f3f;
  --cinnabar-dark: #a8422f;
  --amber: #efaa7d;
  --green: #2e7d70;
  --shadow: 0 18px 50px rgba(16, 28, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(22, 124, 128, 0.18);
}

button:hover,
.topbar-nav a:hover,
.nav-list a:hover,
.text-link:hover {
  filter: brightness(0.96);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f4c66b;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(244, 198, 107, 0.28);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px 20px;
  background: #101c24;
  color: #f7fbfc;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px 4px 14px 4px;
  background: #d95f3f;
  color: #ffffff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.target-card small {
  color: rgba(247, 251, 252, 0.68);
}

.brand.dark strong {
  color: var(--ink);
}

.brand.dark small {
  color: var(--muted);
}

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

.nav-list a {
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(247, 251, 252, 0.76);
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.target-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.target-card span,
.target-card strong,
.target-card small {
  display: block;
}

.target-card strong {
  margin: 6px 0;
  font-size: 36px;
}

main {
  min-width: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 28px;
  min-height: min(720px, 88vh);
  padding: 56px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(10, 26, 31, 0.88) 0%, rgba(10, 26, 31, 0.7) 38%, rgba(10, 26, 31, 0.18) 100%),
    url("assets/ielts-hero.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c66b;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.section-heading button,
.timer button,
.today-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  background: var(--teal);
  color: #ffffff;
}

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

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.today-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.panel-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.today-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 42px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #f4c66b;
  transition: width 180ms ease;
}

.today-panel button {
  background: #ffffff;
  color: #10252c;
}

.section-block {
  padding: 52px 56px;
  scroll-margin-top: 24px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading > p,
.section-copy {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

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

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.module-card,
.exercise-card,
.word-card,
.review-list,
.plan-card,
.bank-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(16, 37, 44, 0.04);
}

.module-card {
  display: grid;
  gap: 16px;
  min-height: 230px;
  padding: 20px;
}

.module-card[data-done="true"] {
  border-color: rgba(76, 122, 78, 0.42);
  background: #f6fbf4;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7f3f2;
  color: var(--teal-dark);
  font-weight: 900;
}

.module-card p,
.exercise-card p,
.plan-card p,
.bank-item p {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.module-card button,
.module-action,
.section-heading button,
.timer button,
.exercise-card button {
  background: #10252c;
  color: #ffffff;
}

.module-card button:hover,
.module-action:hover,
.timer button:hover,
.exercise-card button:hover,
.vocab-tools button:hover,
.trainer-card button:hover,
.spelling-card button:hover,
.practice-actions button:hover,
.practice-timer button:hover {
  transform: translateY(-1px);
  background: #173943;
  box-shadow: 0 10px 20px rgba(16, 37, 44, 0.16);
  filter: none;
}

.module-card button:active,
.module-action:active,
.timer button:active,
.exercise-card button:active,
.vocab-tools button:active,
.trainer-card button:active,
.spelling-card button:active,
.practice-actions button:active,
.practice-timer button:active {
  transform: translateY(0);
  box-shadow: none;
}

.module-card button:focus-visible,
.module-action:focus-visible,
.timer button:focus-visible,
.exercise-card button:focus-visible,
.vocab-tools button:focus-visible,
.trainer-card button:focus-visible,
.spelling-card button:focus-visible,
.practice-actions button:focus-visible,
.practice-timer button:focus-visible {
  background: #173943;
  outline-color: #f4c66b;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 8px #f4c66b,
    0 12px 24px rgba(16, 37, 44, 0.22);
}

.module-card button,
.module-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 32px;
  background: #edf3f3;
}

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

.bank-item {
  padding: 18px;
}

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

.status-pill,
.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7ead9;
  color: #8a4b28;
  font-size: 12px;
  font-weight: 800;
}

.practice-desk {
  background: #ffffff;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.timer span {
  min-width: 76px;
  text-align: center;
  font-weight: 900;
}

.desk-grid,
.vocab-layout,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.exercise-card {
  padding: 22px;
}

.exercise-card label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 800;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcfb;
}

textarea:focus {
  outline: 3px solid rgba(22, 124, 128, 0.18);
  border-color: var(--teal);
}

.compact {
  width: fit-content;
  margin-top: 12px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6f8f5;
}

.word-card {
  min-height: 270px;
  padding: 30px;
  color: #ffffff;
  background: #173d3f;
  box-shadow: var(--shadow);
}

.word-card span {
  color: #f4c66b;
  font-weight: 800;
}

.word-card h3 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  overflow-wrap: anywhere;
}

.word-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.word-card small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.review-list {
  padding: 22px;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child {
  border-bottom: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.topbar-nav a.active,
.topbar-nav a:hover {
  background: #e8f1ef;
  color: var(--teal-dark);
}

.vocab-page {
  background: #f7f9f6;
}

.practice-page {
  background: #f7f9f6;
}

.vocab-main,
.practice-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 32px 64px;
}

.vocab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.vocab-hero h1 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 70px);
}

.vocab-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

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

.vocab-stat-grid div {
  padding: 18px;
  border-radius: 8px;
  background: #edf3f3;
}

.vocab-stat-grid span,
.vocab-stat-grid strong {
  display: block;
}

.vocab-stat-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vocab-stat-grid strong {
  margin-top: 8px;
  font-size: 34px;
}

.vocab-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(160px, 0.7fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.vocab-tools label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.vocab-tools input,
.vocab-tools select,
.spelling-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfb;
}

.vocab-tools button,
.trainer-card button,
.spelling-card button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: #10252c;
  color: #ffffff;
  font-weight: 900;
}

.trainer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
}

.trainer-card,
.spelling-card,
.word-table-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trainer-card {
  min-height: 430px;
  padding: 28px;
}

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

.trainer-card-top span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f1ef;
  color: var(--teal-dark);
  font-weight: 900;
}

.mode-label {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.card-progress {
  width: fit-content;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.listening-cue {
  min-height: 26px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.audio-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  background: var(--coral) !important;
}

.audio-button[hidden],
.answer-field[hidden] {
  display: none;
}

.trainer-card h2 {
  margin: 34px 0 8px;
  font-size: clamp(36px, 5vw, 68px);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

#trainer-phonetic {
  color: var(--coral);
  font-weight: 900;
}

.definition-toggle {
  margin: 20px 0 10px;
}

.trainer-definition {
  min-height: 76px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.trainer-definition[data-revealed="false"] {
  color: var(--muted);
}

#trainer-source {
  display: block;
  min-height: 22px;
  color: var(--muted);
}

.trainer-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.spelling-card {
  padding: 24px;
}

.spelling-card p {
  color: var(--muted);
  line-height: 1.65;
}

.answer-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.spelling-result {
  min-height: 28px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.spelling-result[data-correct="true"] {
  color: var(--green);
}

.spelling-result[data-correct="false"] {
  color: var(--coral);
}

.word-table-section {
  margin-top: 18px;
  padding: 24px;
}

.word-table {
  display: grid;
  gap: 8px;
}

.word-row {
  display: grid;
  grid-template-columns: 180px 140px minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  content-visibility: auto;
  contain-intrinsic-size: 64px;
}

.word-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.word-row p {
  margin: 0;
  color: var(--muted);
}

.word-row span,
.word-row em {
  color: var(--muted);
  font-style: normal;
}

.empty-state {
  color: var(--muted);
}

.practice-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.private-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.private-hero h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
}

.private-hero p,
.private-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.private-warning {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(199, 95, 69, 0.3);
  border-radius: 8px;
  background: #fff8f5;
}

.private-warning strong {
  color: var(--coral);
}

.private-warning span {
  color: var(--muted);
  line-height: 1.55;
}

.book-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.book-module-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 37, 44, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.book-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 124, 128, 0.45);
  box-shadow: 0 16px 34px rgba(27, 45, 54, 0.1);
}

.book-module-card[aria-current="page"] {
  border-color: var(--teal);
  background: #f1faf8;
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.12);
}

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

.book-module-card span {
  font-size: 13px;
  font-weight: 800;
}

.book-module-card strong {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  color: var(--teal-dark);
  font-size: 56px;
  line-height: 1;
}

.book-module-card b {
  color: var(--teal-dark);
  font-size: 14px;
}

.book-test-section {
  scroll-margin-top: 18px;
}

.book-selection-guide {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px dashed rgba(22, 124, 128, 0.42);
  border-radius: 8px;
  background: #f5fbfa;
}

.book-selection-guide span {
  color: var(--muted);
  line-height: 1.6;
}

.book-selection-guide[hidden],
.book-test-section[hidden] {
  display: none;
}

.book-back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--teal-dark);
  font-weight: 900;
}

.book-test-section:target {
  border-color: rgba(22, 124, 128, 0.45);
  box-shadow: 0 18px 44px rgba(27, 45, 54, 0.1);
}

.private-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.private-sidebar,
.private-content,
.private-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.private-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.private-sidebar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.private-sidebar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfb;
}

.private-open-pdf,
.private-pdf-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: #10252c;
  color: #ffffff;
  font-weight: 900;
}

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

.private-pdf-actions a[hidden] {
  display: none;
}

.private-content {
  padding: 24px;
}

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

.private-book-header p {
  color: var(--muted);
}

.private-practice-status {
  display: grid;
  min-width: 118px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfb;
}

.private-practice-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.private-practice-status strong {
  color: var(--ink);
  font-size: 18px;
}

.private-practice-status[data-state="ready"] {
  border-color: rgba(70, 124, 105, 0.35);
  background: #f1faf6;
}

.private-practice-status[data-state="ready"] strong {
  color: #2e735d;
}

.private-practice-status[data-state="pending"] {
  border-color: rgba(199, 95, 69, 0.28);
  background: #fff8f5;
}

.private-practice-status[data-state="pending"] strong {
  color: var(--coral);
}

.private-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.private-panel {
  padding: 20px;
}

.private-panel-primary {
  border-color: rgba(70, 124, 105, 0.35);
  background: linear-gradient(180deg, #f6fbf8, #ffffff);
}

.audio-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.audio-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.audio-item strong,
.audio-item small {
  display: block;
}

.audio-item small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audio-item audio {
  width: 100%;
}

.listening-book-card {
  width: 100%;
  color: inherit;
  text-align: left;
}

.listening-test-picker,
.listening-audio-panel,
.listening-question-sheets,
.listening-answer-sheet,
.listening-key-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.listening-test-picker {
  scroll-margin-top: 18px;
}

.listening-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.listening-test-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f1ef;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.listening-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.listening-answer-sheet {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.listening-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.listening-answer-grid label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.listening-answer-grid label.is-correct input {
  border-color: #2f8f62;
  background: #edf8f2;
}

.listening-answer-grid label.is-incorrect input {
  border-color: #c75f45;
  background: #fff1ed;
}

.listening-answer-grid label.is-unanswered input {
  border-color: #c58a32;
  background: #fff8e8;
}

.answer-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  margin: 0 0 2px 34px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f3f6f5;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.is-correct .answer-state { color: #23714c; }
.is-incorrect .answer-state { color: #a94731; }
.is-unanswered .answer-state { color: #96631c; }
.listening-answer-grid .answer-correct-value { color: var(--ink); }

#check-listening {
  background: var(--teal);
}

#check-listening:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.listening-answer-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.listening-answer-grid input {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

.listening-sheet {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5f1;
}

.listening-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.listening-sheet figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.listening-native-status {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.listening-part-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.listening-part-tabs[hidden],
.listening-native-pages[hidden],
.listening-native-part[hidden],
.listening-native-key[hidden] {
  display: none;
}

.listening-part-tabs button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f7;
  color: var(--ink);
  font-weight: 900;
}

.listening-part-tabs button[aria-current="page"] {
  border-color: var(--teal);
  background: #e8f4f2;
  color: var(--teal-dark);
}

.listening-part-tabs small {
  color: var(--muted);
  font-size: 11px;
}

.listening-native-part {
  margin-top: 16px;
}

.listening-native-part h3 {
  margin: 22px 0 16px;
  color: var(--teal-dark);
  font-size: clamp(24px, 3vw, 34px);
}

.listening-task-instructions {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.listening-task-instructions p + p {
  margin-top: 6px;
  font-style: italic;
}

.listening-native-question {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.listening-native-question img {
  display: block;
  width: 100%;
  height: auto;
}

.listening-part-answer-list {
  display: none;
  gap: 14px;
  margin-top: 22px;
}

.listening-part-answer-list label {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.listening-part-answer-list span {
  padding-bottom: 9px;
  color: var(--ink);
  font-size: 20px;
}

.listening-part-answer-list input {
  min-width: 0;
  border: 0;
  border-bottom: 2px dashed #6f777a;
  border-radius: 0;
  padding: 10px 4px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  outline: none;
}

.listening-part-answer-list input:focus {
  border-bottom-color: var(--teal);
}

.listening-native-text,
.listening-native-key {
  max-width: 100%;
  margin: 10px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfb;
  color: var(--ink);
  font: 500 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.listening-original-pages,
.listening-original-key {
  margin-top: 16px;
}

.listening-original-pages summary,
.listening-original-key summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .listening-workspace {
    grid-template-columns: 1fr;
  }

  .listening-answer-sheet {
    position: static;
  }
}

@media (max-width: 720px) {
  .listening-answer-grid {
    grid-template-columns: 1fr;
  }

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

  .listening-answer-sheet {
    display: none;
  }

  .listening-part-answer-list {
    display: grid;
  }

  .listening-question-sheets {
    padding: 18px;
  }
}

.practice-header h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
}

.practice-header p {
  color: var(--muted);
  line-height: 1.7;
}

.practice-timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.practice-timer span {
  min-width: 82px;
  text-align: center;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.practice-timer button,
.practice-actions button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: #10252c;
  color: #ffffff;
  font-weight: 900;
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.reading-toolbelt {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 49, 58, 0.16);
  border-radius: 12px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body[data-reading-mode="exam"] .reading-toolbelt {
  border-color: rgba(216, 93, 63, 0.42);
  background: linear-gradient(90deg, #fff3eb, #fffaf5);
  box-shadow: inset 4px 0 0 #d85d3f;
}

body[data-reading-mode="review"] .reading-toolbelt {
  border-color: rgba(100, 86, 199, 0.38);
  background: linear-gradient(90deg, #f2efff, #faf9ff);
  box-shadow: inset 4px 0 0 #6456c7;
}

.reading-mode-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(23, 49, 58, 0.18);
  border-radius: 9px;
  background: #ffffff;
}

.reading-mode-switch button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #ffffff;
  color: #68747a;
  font-weight: 900;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.reading-mode-switch button::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bcc4c7;
  content: "";
}

.reading-mode-switch button[aria-pressed="true"] { transform: translateY(-1px); }

body[data-reading-mode="exam"] .reading-mode-switch button[data-reading-mode="exam"] {
  background: #d85d3f;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(216, 93, 63, 0.28);
}

body[data-reading-mode="review"] .reading-mode-switch button[data-reading-mode="review"] {
  background: #6456c7;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(100, 86, 199, 0.27);
}

.reading-mode-switch button[aria-pressed="true"]::before {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.reading-toolbelt p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reading-toolbelt p[data-state="success"] { color: #14705f; }
.reading-toolbelt p[data-state="error"] { color: var(--cinnabar-dark); }

.reading-toolbelt > a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.passage-content p[data-paragraph-key] {
  cursor: text;
  user-select: text;
}

.reading-highlight {
  padding: 0.04em 0;
  border-radius: 2px;
  background: linear-gradient(transparent 10%, rgba(255, 214, 83, 0.72) 10%, rgba(255, 214, 83, 0.72) 92%, transparent 92%);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body[data-reading-mode="exam"] .reading-highlight { cursor: pointer; }
body[data-reading-mode="review"] .passage-content p[data-paragraph-key] { cursor: text; }

.selection-action-toolbar {
  position: fixed;
  z-index: 1100;
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(10, 27, 34, 0.18);
  border-radius: 12px;
  background: #102a33;
  box-shadow: 0 14px 36px rgba(10, 27, 34, 0.3);
}

.selection-action-toolbar[hidden] { display: none; }

.selection-action-toolbar::after {
  position: absolute;
  bottom: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: #102a33;
  content: "";
  transform: rotate(45deg);
}

.selection-action-toolbar button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 900;
}

.selection-action-toolbar button > span { font-size: 13px; }
.selection-action-toolbar button[data-selection-action="highlight"] { background: #d89b20; }
.selection-action-toolbar button[data-selection-action="translate"] { background: #6456c7; }
.selection-action-toolbar button:disabled { opacity: 0.42; cursor: not-allowed; }
.selection-action-toolbar button[hidden] { display: none !important; }

.dictionary-popover {
  position: fixed;
  z-index: 1000;
  max-height: min(420px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(23, 49, 58, 0.2);
  border-radius: 14px 5px 14px 5px;
  background: #fffdf8;
  box-shadow: 0 22px 64px rgba(11, 31, 39, 0.24);
}

.dictionary-popover[hidden] { display: none; }

.dictionary-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.dictionary-word-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-right: 30px;
}

.dictionary-word-line strong {
  color: var(--ink-deep);
  font-family: Georgia, serif;
  font-size: 28px;
}

.dictionary-word-line span { color: var(--muted); font-size: 13px; }

.dictionary-pos {
  display: inline-block;
  margin: 10px 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f2ef;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.dictionary-translation {
  margin: 3px 0 16px;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-line;
}

.dictionary-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #b9472f;
  border-radius: 10px;
  background: #d95f3f;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(185, 71, 47, 0.25);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dictionary-save:hover:not(:disabled) { background: #b9472f; filter: none; transform: translateY(-1px); }
.dictionary-save:disabled { background: #8c9699; border-color: #7c878a; opacity: 1; cursor: default; box-shadow: none; }
.dictionary-save[hidden] { display: none !important; }
.dictionary-personal-link {
  display: block;
  margin-top: 11px;
  color: #6456c7;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.dictionary-personal-link[hidden] { display: none !important; }
.dictionary-popover > small { display: block; margin-top: 11px; color: var(--muted); text-align: center; }

.personal-vocab-page { min-height: 100vh; background: #f5f0e7; }

.personal-vocab-main {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.personal-vocab-hero {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  padding: 34px 38px;
  border: 1px solid rgba(23, 49, 58, 0.14);
  border-radius: 20px 7px 20px 7px;
  background: linear-gradient(135deg, #102a33 0 62%, #183d46 62%);
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(17, 42, 51, 0.13);
}

.personal-vocab-hero .eyebrow { color: #ff9f78; }
.personal-vocab-hero h1 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 72px); }
.personal-vocab-hero p:last-child { max-width: 680px; margin: 0; color: rgba(255, 255, 255, 0.72); line-height: 1.8; }

.personal-vocab-count {
  display: grid;
  min-width: 170px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}
.personal-vocab-count strong { color: #ffb28e; font-family: Georgia, serif; font-size: 48px; }
.personal-vocab-count span { color: rgba(255, 255, 255, 0.68); font-size: 13px; }

.personal-vocab-toolbar {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(23, 49, 58, 0.13);
  border-radius: 12px;
  background: #ffffff;
}
.personal-vocab-toolbar label { display: grid; gap: 7px; width: min(520px, 70%); color: var(--muted); font-size: 12px; font-weight: 900; }
.personal-vocab-toolbar input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; }
.personal-vocab-toolbar a { color: var(--teal-dark); font-weight: 900; }

.personal-vocab-empty {
  padding: 70px 28px;
  border: 1px dashed rgba(23, 49, 58, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.personal-vocab-empty[hidden] { display: none; }
.personal-vocab-empty > span { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: #ede9ff; color: #6456c7; font-size: 38px; }
.personal-vocab-empty h2 { margin: 0 0 10px; font-size: 28px; }
.personal-vocab-empty p { max-width: 660px; margin: 0 auto 22px; color: var(--muted); line-height: 1.8; }
.personal-vocab-empty a { display: inline-flex; padding: 12px 18px; border-radius: 9px; background: #6456c7; color: #ffffff; font-weight: 900; }

.personal-vocab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.personal-vocab-grid[hidden] { display: none; }
.personal-word-card { padding: 22px; border: 1px solid rgba(23, 49, 58, 0.14); border-radius: 15px 5px 15px 5px; background: #ffffff; box-shadow: 0 10px 28px rgba(18, 45, 54, 0.06); }
.personal-word-heading { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.personal-word-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 32px; }
.personal-word-heading p { margin: 4px 0 0; color: var(--muted); }
.personal-word-heading > span { padding: 6px 9px; border-radius: 999px; background: #ede9ff; color: #5144ad; font-size: 12px; font-weight: 900; }
.personal-word-translation { min-height: 54px; margin: 18px 0; color: var(--ink); line-height: 1.7; white-space: pre-line; }
.personal-word-card details { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.personal-word-card details p { padding: 10px 12px; border-left: 3px solid #d89b20; background: #fff9e9; line-height: 1.65; }
.personal-word-meta { display: flex; gap: 10px; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.personal-word-actions { display: flex; gap: 8px; margin-top: 14px; }
.personal-word-actions button { flex: 1; min-height: 39px; border-radius: 8px; background: #e9f2ef; color: var(--teal-dark); font-size: 12px; font-weight: 900; }
.personal-word-actions button[data-word-action="delete"] { background: #fff0ea; color: #b9472f; }
.personal-vocab-no-result { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }

.test-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.test-switcher > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.test-switcher a {
  min-width: 82px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal-dark);
  text-align: center;
  font-weight: 900;
}

.test-switcher a[aria-current="page"] {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #ffffff;
}

.passage-panel,
.question-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.passage-panel {
  padding: 28px;
}

.question-panel {
  position: sticky;
  top: 18px;
  padding: 24px;
}

@media (min-width: 1121px) and (min-height: 700px) {
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) {
    overflow-y: auto;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) > .practice-main {
    width: min(100%, 1600px);
    padding: 18px 28px 20px;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .practice-header {
    padding: 20px 26px;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .practice-header h1 {
    font-size: clamp(34px, 4vw, 52px);
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .test-switcher {
    position: relative;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .practice-layout {
    height: clamp(560px, calc(100vh - 140px), 900px);
    align-items: stretch;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .passage-panel,
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .question-panel {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(23, 49, 58, 0.45) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .passage-panel::-webkit-scrollbar,
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .question-panel::-webkit-scrollbar {
    width: 9px;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .passage-panel::-webkit-scrollbar-thumb,
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .question-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(23, 49, 58, 0.36);
    background-clip: padding-box;
  }

  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .passage-panel:focus-within,
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .question-panel:focus-within,
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .passage-panel:hover,
  body.practice-page:not(.listening-practice-page):not(.writing-practice-page) .question-panel:hover {
    border-color: rgba(23, 49, 58, 0.34);
    box-shadow: 0 14px 36px rgba(16, 28, 36, 0.08);
  }
}

@media (max-width: 900px) {
  .reading-toolbelt { grid-template-columns: 1fr; }
  .reading-mode-switch { width: 100%; }
  .reading-mode-switch button { flex: 1; }
  .reading-toolbelt > a { white-space: normal; }
}

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

.panel-heading h2 {
  margin: 0;
}

.content-pager {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8f7;
}

.content-pager div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.content-pager strong {
  color: var(--ink);
  font-size: 14px;
}

.content-pager span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.content-pager button {
  min-height: 40px;
  border: 1px solid var(--teal-dark);
  border-radius: 8px;
  padding: 0 13px;
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 900;
}

.content-pager button:hover:not(:disabled) {
  background: var(--teal-dark);
  color: #ffffff;
}

.content-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.question-type-index {
  display: grid;
  gap: 9px;
  margin: -8px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.question-type-index section {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.question-type-index section > strong {
  padding-top: 7px;
  color: var(--teal-dark);
  font-size: 12px;
}

.question-type-index section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.question-type-index button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #425159;
  font-size: 11px;
  font-weight: 800;
}

.question-type-index button span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.question-type-index button[aria-current="true"] {
  border-color: var(--teal-dark);
  background: #e8f2ef;
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px var(--teal-dark);
}

.question-instruction {
  margin-bottom: 14px;
  padding: 18px 19px;
  border: 1px solid rgba(100, 86, 199, 0.26);
  border-left: 5px solid #6456c7;
  border-radius: 11px;
  background: linear-gradient(135deg, #f3f0ff, #fffdf8);
}

.question-instruction > span {
  display: inline-block;
  margin-bottom: 9px;
  color: #6456c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.question-instruction p {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.question-instruction strong {
  display: block;
  color: #30266f;
  font-size: 16px;
  line-height: 1.5;
}

.question-instruction small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.test-classification-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.test-classification-list li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.test-classification-list strong {
  color: var(--teal-dark);
  font-size: 12px;
}

.test-classification-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.passage-content {
  display: grid;
  gap: 1.25em;
  min-height: 62vh;
  animation: page-in 180ms ease-out;
}

.passage-article-intro {
  display: grid;
  gap: 8px;
  margin: -2px 0 6px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.passage-article-intro span {
  color: var(--cinnabar-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.passage-article-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
}

.passage-paragraph {
  padding: 0;
}

.passage-paragraph h3 {
  color: var(--teal-dark);
}

.passage-paragraph p {
  margin: 0;
  color: #35434b;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.passage-paragraph p + p {
  margin-top: 1.25em;
}

.passage-paragraph .passage-article-title {
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.question-list {
  display: grid;
  gap: 12px;
  min-height: 280px;
  animation: page-in 180ms ease-out;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.question-card[data-correct="true"] {
  border-color: rgba(76, 122, 78, 0.38);
  background: #f6fbf4;
}

.question-card[data-correct="false"] {
  border-color: rgba(199, 95, 69, 0.38);
  background: #fff8f5;
}

.question-card-target {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 4px rgba(217, 95, 63, 0.16), 0 14px 34px rgba(16, 28, 36, 0.1);
  animation: target-question-pulse 900ms ease-out;
}

@keyframes target-question-pulse {
  0% { transform: scale(0.985); }
  55% { transform: scale(1.008); }
  100% { transform: scale(1); }
}

.question-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.question-card strong {
  line-height: 1.55;
}

.question-card input,
.question-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

.question-card select:not(:invalid) {
  font-weight: 800;
}

.grouped-selection-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 2px solid #2f7f7b;
  border-radius: 10px;
  padding: 14px 16px;
  background: #edf8f6;
}

.grouped-selection-summary > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.grouped-selection-summary strong {
  color: #164f4c;
  font-size: 17px;
}

.grouped-selection-summary small {
  color: #376d69;
  font-weight: 800;
}

.grouped-selection-values {
  display: grid;
  gap: 8px;
}

.grouped-selection-values span {
  display: block;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.grouped-selection-values .has-selection {
  border: 1px solid #6ba8a3;
  background: #ffffff;
  color: var(--ink);
}

.grouped-selection-values .is-empty {
  border: 1px dashed #9fbab7;
  color: var(--muted);
}

.grouped-selection-summary[data-duplicate="true"] {
  border-color: var(--coral);
  background: #fff2ee;
}

.grouped-selection-summary[data-duplicate="true"] small {
  color: #a6402c;
}

.question-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 20px;
  color: var(--muted);
  font-weight: 900;
}

.question-feedback[data-correct="true"] .feedback-state {
  color: var(--green);
}

.question-feedback[data-correct="false"] .feedback-state {
  color: var(--coral);
}

.question-card .question-feedback .feedback-answer {
  color: var(--ink);
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.score-panel {
  min-height: 42px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf3f3;
  color: var(--ink);
  font-weight: 900;
}

.score-panel:empty {
  display: none;
}

.score-panel[data-state="success"] {
  background: #f1f8ee;
  color: var(--green);
}

.score-panel[data-state="review"] {
  background: #fff5ee;
  color: var(--coral);
}

.analysis-panel {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.analysis-panel[hidden] {
  display: none;
}

.analysis-heading h3 {
  margin: 10px 0 6px;
  font-size: 24px;
}

.analysis-heading p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

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

.analysis-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.analysis-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  font-weight: 900;
}

.analysis-card summary span {
  color: var(--teal-dark);
}

.analysis-card summary strong {
  color: var(--coral);
}

.analysis-card > p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--ink);
  line-height: 1.75;
}

.analysis-vocabulary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 14px;
}

.analysis-vocabulary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f1ef;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.plan-card {
  min-height: 150px;
  padding: 18px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

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

  .hero,
  .split-section,
  .desk-grid,
  .vocab-layout,
  .vocab-hero,
  .trainer-layout,
  .practice-header,
  .practice-layout,
  .private-hero,
  .private-layout,
  .private-test-grid,
  .audio-item {
    grid-template-columns: 1fr;
  }

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

  .question-panel,
  .private-sidebar {
    position: static;
  }

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

@media (max-width: 720px) {
  .sidebar,
  .topbar,
  .hero,
  .section-block,
  .vocab-main,
  .practice-main {
    padding: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-switcher {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .test-switcher > span {
    width: 100%;
    margin: 0 0 2px;
  }

  .test-switcher a {
    flex: 1;
  }

  .question-type-index section {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .question-type-index section > strong {
    padding-top: 0;
  }

  .content-pager {
    grid-template-columns: 1fr 1fr;
  }

  .content-pager div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .content-pager button {
    width: 100%;
  }

  .passage-content {
    min-height: 0;
  }

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

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .module-grid,
  .bank-list,
  .book-module-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action,
  .section-heading button {
    width: 100%;
  }

  .inline-actions,
  .vocab-tools,
  .vocab-stat-grid {
    grid-template-columns: 1fr;
  }

  .inline-actions,
  .trainer-card-top,
  .trainer-actions,
  .practice-actions,
  .practice-timer,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-actions button,
  .practice-timer button {
    width: 100%;
  }

  .word-row {
    grid-template-columns: 1fr;
  }
}

.writing-book-card {
  width: 100%;
  color: inherit;
  text-align: left;
}

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

.writing-test-card h3 {
  margin: 8px 0;
}

.writing-task-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.writing-task-links a {
  display: grid;
  gap: 5px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #f7faf8;
  color: var(--ink);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.writing-task-links a:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 12px 26px rgba(27, 45, 54, 0.09);
}

.writing-task-links strong {
  color: var(--teal-dark);
  font-size: 19px;
}

.writing-task-links span,
.writing-task-links small {
  color: var(--muted);
}

.writing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.writing-prompt-panel,
.writing-editor-panel,
.writing-sample-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(16, 37, 44, 0.04);
}

.writing-editor-panel {
  position: sticky;
  top: 18px;
}

.writing-prompt-sheet,
.writing-sample-sheet {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5f1;
}

.writing-prompt-sheet img,
.writing-sample-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.writing-sample-sheet figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.writing-editor-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

#writing-word-count {
  color: var(--coral);
}

#writing-word-count[data-state="ready"] {
  color: #2f7a5d;
}

.writing-draft-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

#writing-draft {
  width: 100%;
  min-height: 54vh;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfb;
  color: var(--ink);
  font: 500 16px/1.75 Georgia, "Times New Roman", serif;
}

#writing-draft:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 124, 128, 0.12);
}

#save-writing {
  background: var(--teal);
}

.writing-actions {
  margin-top: 12px;
}

.writing-checklist {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.writing-checklist h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.writing-checklist ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.writing-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.writing-checklist input {
  margin-top: 3px;
  accent-color: var(--teal);
}

.writing-sample-panel {
  margin-top: 18px;
  scroll-margin-top: 18px;
}

.writing-sample-panel > p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .writing-workspace {
    grid-template-columns: 1fr;
  }

  .writing-editor-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .writing-test-grid,
  .writing-task-links {
    grid-template-columns: 1fr;
  }

  .writing-prompt-panel,
  .writing-editor-panel,
  .writing-sample-panel {
    padding: 18px;
  }

  #writing-draft {
    min-height: 440px;
  }

  .personal-vocab-main { width: min(100% - 24px, 1220px); padding-top: 24px; }
  .personal-vocab-hero { align-items: stretch; padding: 25px 22px; flex-direction: column; }
  .personal-vocab-count { min-width: 0; }
  .personal-vocab-toolbar { align-items: stretch; flex-direction: column; }
  .personal-vocab-toolbar label { width: 100%; }
  .personal-vocab-grid { grid-template-columns: 1fr; }
}

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

/* ==========================================================================
   KEJIE DESIGN SYSTEM 2026 · Homepage learning console
   ========================================================================== */
.home-page {
  --kj-navy-950: #071b23;
  --kj-navy-900: #0b2731;
  --kj-navy-800: #123b46;
  --kj-teal-600: #0e9488;
  --kj-teal-500: #18afa1;
  --kj-teal-100: #dff5f1;
  --kj-orange-600: #e4623f;
  --kj-orange-100: #fff0eb;
  --kj-surface: #ffffff;
  --kj-canvas: #f3f7f6;
  --kj-line: #d8e2e0;
  --kj-text: #10242c;
  --kj-muted: #64757b;
  background: var(--kj-canvas);
  color: var(--kj-text);
}

.home-page,
.home-page button,
.home-page input,
.home-page select,
.home-page textarea {
  font-family: "Avenir Next", "SF Pro Display", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.home-page .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
.home-page .sidebar { gap: 32px; padding: 24px 18px; background: var(--kj-navy-950); }
.home-page .brand { gap: 11px; padding: 0 6px; }
.home-page .theme-compare {
  display: grid;
  gap: 8px;
}
.home-page .theme-compare > span {
  color: rgba(255,255,255,.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.home-page .theme-compare > div {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  padding: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
}
.home-page .theme-compare a {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 4px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
}
.home-page .theme-compare a.active {
  background: rgba(255,255,255,.11);
  color: #fff;
}
.home-page .brand-mark {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; background: var(--kj-orange-600);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.08);
}
.home-page .brand strong { font-size: 16px; letter-spacing: .02em; }
.home-page .brand small { margin-top: 2px; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.home-page .nav-list { gap: 3px; }
.home-page .nav-label {
  margin: 17px 12px 5px; color: rgba(255,255,255,.34); font-size: 10px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.home-page .nav-label:first-child { margin-top: 0; }
.home-page .nav-list a {
  position: relative; min-height: 40px; border-radius: 7px; padding: 10px 12px 10px 17px;
  color: rgba(255,255,255,.66); font-size: 14px; font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}
.home-page .nav-list a::before {
  position: absolute; top: 50%; left: 6px; width: 3px; height: 0; border-radius: 3px;
  background: var(--kj-teal-500); content: ""; transform: translateY(-50%);
  transition: height 180ms ease;
}
.home-page .nav-list a:hover,
.home-page .nav-list a.active { background: rgba(255,255,255,.07); color: #fff; }
.home-page .nav-list a:hover::before,
.home-page .nav-list a.active::before { height: 16px; }
.home-page .target-card {
  padding: 17px; border-color: rgba(255,255,255,.11); border-radius: 10px;
  background: rgba(255,255,255,.045);
}
.home-page .target-card-heading { display: flex; align-items: center; justify-content: space-between; }
.home-page .target-card-heading small {
  color: var(--kj-teal-500); font-size: 10px; font-weight: 800; letter-spacing: .08em;
}
.home-page .target-card strong {
  margin: 8px 0 10px; font-size: 38px; font-variant-numeric: tabular-nums; line-height: 1;
}
.home-page .target-card a { color: rgba(255,255,255,.58); font-size: 12px; font-weight: 700; }

.home-page .hero {
  isolation: isolate; grid-template-columns: minmax(0,.93fr) minmax(390px,.72fr);
  align-items: center; gap: clamp(34px,5vw,78px); min-height: 680px;
  padding: clamp(54px,7vw,96px); background: var(--kj-navy-900);
}
.home-page .hero::before {
  position: absolute; z-index: -1; inset: 0; opacity: .42;
  background-image: linear-gradient(rgba(255,255,255,.034) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.034) 1px,transparent 1px);
  background-size: 38px 38px; content: "";
  mask-image: linear-gradient(90deg,transparent 4%,#000 45%,#000 100%);
}
.home-page .hero::after { display: none; }
.home-page .hero-copy { max-width: 760px; }
.home-page .eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  color: var(--kj-teal-600); font-size: 11px; font-weight: 850; letter-spacing: .12em;
}
.home-page .hero .eyebrow { color: #71d9cf; }
.home-page .hero .eyebrow > span { width: 18px; height: 1px; background: currentColor; }
.home-page .hero h1 {
  max-width: 740px; margin-bottom: 24px; font-size: clamp(46px,4.7vw,68px);
  font-weight: 760; letter-spacing: -.055em; line-height: 1.08;
}
.home-page .hero h1 span { display: block; color: #71d9cf; }
.home-page .hero-copy > p:not(.eyebrow) {
  max-width: 630px; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.78;
}
.home-page .hero-actions { margin-top: 30px; }
.home-page .primary-action,
.home-page .secondary-action {
  min-height: 48px; border-radius: 7px; padding: 0 21px;
  transition: background 180ms ease,border-color 180ms ease,color 180ms ease;
}
.home-page .primary-action { background: var(--kj-orange-600); color: #fff; }
.home-page .primary-action:hover { background: #c94c2f; }
.home-page .secondary-action {
  gap: 14px; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.82);
}
.home-page .secondary-action:hover {
  border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06);
}
.home-page .hero-resource-links { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 21px; }
.home-page .hero-resource-links a {
  border-bottom: 1px solid rgba(255,255,255,.19); padding-bottom: 2px;
  color: rgba(255,255,255,.48); font-size: 12px; font-weight: 750;
  transition: color 180ms ease,border-color 180ms ease;
}
.home-page .hero-resource-links a:hover { border-color: #71d9cf; color: #fff; }

.home-page .learning-console {
  position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px; background: rgba(7,27,35,.78); color: #fff;
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
}
.home-page .learning-console::before {
  position: absolute; top: 0; left: 0; width: 36%; height: 2px;
  background: var(--kj-teal-500); content: "";
}
.home-page .console-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px 17px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.home-page .console-header strong,
.home-page .console-header span { display: block; }
.home-page .console-kicker {
  margin-bottom: 4px; color: rgba(255,255,255,.38); font-size: 9px;
  font-weight: 800; letter-spacing: .12em;
}
.home-page .live-status {
  display: flex !important; align-items: center; gap: 7px; color: #82ded5;
  font-size: 11px; font-weight: 750;
}
.home-page .live-status i,
.member-page .sidebar-system-status i,
.member-page .continue-status i {
  width: 7px; height: 7px; border-radius: 50%; background: #35d5a4;
  box-shadow: 0 0 0 4px rgba(53,213,164,.12);
}
.home-page .console-score-row {
  display: grid; grid-template-columns: 114px minmax(0,1fr); align-items: center;
  gap: 20px; padding: 24px 22px 18px;
}
.home-page .readiness-ring {
  position: relative; display: grid; width: 108px; height: 108px; place-items: center;
  border-radius: 50%; background: conic-gradient(var(--kj-teal-500) 76%,rgba(255,255,255,.09) 0);
}
.home-page .readiness-ring::before {
  position: absolute; width: 86px; height: 86px; border-radius: 50%;
  background: var(--kj-navy-950); content: "";
}
.home-page .readiness-ring div { position: relative; z-index: 1; }
.home-page .readiness-ring strong { font-size: 31px; font-variant-numeric: tabular-nums; }
.home-page .readiness-ring span { margin-left: 2px; color: rgba(255,255,255,.48); font-size: 12px; }
.home-page .console-summary span,
.home-page .console-summary strong,
.home-page .console-summary small { display: block; }
.home-page .console-summary span { color: rgba(255,255,255,.46); font-size: 11px; }
.home-page .console-summary strong { margin: 7px 0 5px; font-size: 16px; }
.home-page .console-summary small { color: #82ded5; font-size: 11px; }
.home-page .skill-signals { display: grid; gap: 12px; padding: 4px 22px 21px; }
.home-page .skill-signals > div {
  display: grid; grid-template-columns: 70px minmax(0,1fr) 34px; align-items: center; gap: 10px;
}
.home-page .skill-signals span,
.home-page .skill-signals strong {
  color: rgba(255,255,255,.54); font-size: 10px; font-weight: 700;
}
.home-page .skill-signals strong { color: rgba(255,255,255,.72); text-align: right; }
.home-page .skill-signals i { height: 3px; overflow: hidden; background: rgba(255,255,255,.09); }
.home-page .skill-signals b { display: block; height: 100%; background: var(--kj-teal-500); }
.home-page .today-panel {
  grid-template-columns: auto minmax(80px,1fr) auto; align-items: center; gap: 14px;
  padding: 16px 22px; border: 0; border-top: 1px solid rgba(255,255,255,.09);
  border-radius: 0; background: rgba(255,255,255,.025); backdrop-filter: none;
}
.home-page .today-panel > div:first-child { display: flex; align-items: baseline; gap: 7px; }
.home-page .panel-label { font-size: 10px; }
.home-page .today-panel strong { margin: 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.home-page .progress-track { height: 4px; border-radius: 0; background: rgba(255,255,255,.09); }
.home-page .progress-track span { background: var(--kj-orange-600); }
.home-page .today-panel button {
  min-height: auto; padding: 0; background: transparent; color: rgba(255,255,255,.42); font-size: 10px;
}

.home-page .proof-strip {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  border-bottom: 1px solid var(--kj-line); background: var(--kj-surface);
}
.home-page .proof-strip > div {
  display: flex; align-items: baseline; justify-content: center; gap: 9px;
  min-height: 96px; border-right: 1px solid var(--kj-line); padding: 22px;
}
.home-page .proof-strip > div:last-child { border-right: 0; }
.home-page .proof-strip strong {
  color: var(--kj-navy-900); font-size: 26px; font-variant-numeric: tabular-nums;
}
.home-page .proof-strip span { color: var(--kj-muted); font-size: 12px; font-weight: 700; }
.home-page .section-block { padding: clamp(58px,7vw,94px) clamp(34px,7vw,96px); }
.home-page .section-heading { align-items: end; margin-bottom: 30px; }
.home-page .section-heading h2,
.home-page .split-section h2 {
  max-width: 720px; margin-bottom: 0; color: var(--kj-navy-950);
  font-size: clamp(30px,3.4vw,48px); font-weight: 720; letter-spacing: -.035em; line-height: 1.14;
}
.home-page .section-heading > p,
.home-page .section-copy {
  max-width: 500px; margin-bottom: 0; color: var(--kj-muted); font-size: 14px;
}
.home-page .module-grid { gap: 1px; border: 1px solid var(--kj-line); background: var(--kj-line); }
.home-page .module-card,
.home-page .exercise-card,
.home-page .word-card,
.home-page .review-list,
.home-page .plan-card,
.home-page .bank-item {
  border: 0; border-radius: 0; background: var(--kj-surface); box-shadow: none;
}
.home-page .module-card {
  position: relative; min-height: 300px; padding: 25px; transition: background 180ms ease;
}
.home-page .module-card:hover { background: #f9fcfb; }
.home-page .module-card[data-done="true"] { background: #f1faf7; }
.home-page .module-icon {
  width: 44px; height: 44px; border: 1px solid #cce8e3;
  border-radius: 8px; background: var(--kj-teal-100);
}
.home-page .module-icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--kj-teal-600);
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8;
}
.home-page .module-index {
  position: absolute; top: 25px; right: 25px; color: #a5b3b6;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
}
.home-page .module-card h3 { margin-top: 3px; color: var(--kj-navy-950); font-size: 20px; }
.home-page .module-card p,
.home-page .exercise-card p,
.home-page .plan-card p,
.home-page .bank-item p { color: var(--kj-muted); font-size: 13px; }
.home-page .module-card p strong { color: var(--kj-navy-800); font-size: 12px; }
.home-page .module-card button,
.home-page .module-action {
  justify-content: flex-start; min-height: 36px; border: 1px solid var(--kj-line);
  border-radius: 6px; background: transparent; color: var(--kj-navy-900); font-size: 12px;
  transition: background 180ms ease,border-color 180ms ease,color 180ms ease;
}
.home-page .module-card button:hover,
.home-page .module-action:hover {
  transform: none; border-color: var(--kj-navy-800); background: var(--kj-navy-900);
  color: #fff; box-shadow: none;
}
.home-page .split-section {
  grid-template-columns: minmax(250px,.62fr) minmax(520px,1.38fr);
  gap: clamp(36px,6vw,88px); background: #eaf1ef;
}
.home-page .section-cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 20px;
  border-bottom: 1px solid #b8cac6; padding-bottom: 4px; color: var(--kj-navy-900);
  font-size: 13px; font-weight: 800;
}
.home-page .bank-list { gap: 1px; border: 1px solid #cbd8d5; background: #cbd8d5; }
.home-page .bank-item { min-height: 164px; padding: 21px; }
.home-page .bank-item h3 { color: var(--kj-navy-950); font-size: 17px; }
.home-page .status-pill,
.home-page .skill-tag {
  border-radius: 4px; background: var(--kj-orange-100); color: #aa452d;
  font-size: 9px; letter-spacing: .08em;
}
.home-page .practice-desk { background: var(--kj-surface); }
.home-page .timer { border-color: var(--kj-line); border-radius: 7px; background: var(--kj-canvas); }
.home-page .desk-grid { gap: 1px; border: 1px solid var(--kj-line); background: var(--kj-line); }
.home-page .exercise-card { min-height: 340px; padding: 28px; }
.home-page .word-card { background: var(--kj-navy-900); }
.home-page .review-list { border: 1px solid var(--kj-line); }
.home-page .plan-grid {
  grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px;
  border: 1px solid var(--kj-line); background: var(--kj-line);
}
.home-page .plan-card { min-height: 132px; padding: 20px; }
.home-page .plan-card h3 { color: var(--kj-orange-600); font-size: 12px; }
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible,
.home-page select:focus-visible,
.home-page textarea:focus-visible {
  outline: 2px solid #4fd3c7; outline-offset: 3px; box-shadow: none;
}

@media (max-width: 1180px) {
  .home-page .hero { grid-template-columns: minmax(0,1fr) 390px; padding: 58px 44px; }
  .home-page .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .split-section { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .home-page .app-shell { grid-template-columns: 1fr; }
  .home-page .sidebar {
    position: relative; z-index: 4; display: grid; grid-template-columns: auto 1fr;
    align-items: center; height: auto; padding: 16px 22px;
  }
  .home-page .nav-list { display: flex; justify-content: flex-start; overflow-x: auto; }
  .home-page .theme-compare { min-width: 160px; }
  .home-page .nav-label,
  .home-page .target-card { display: none; }
  .home-page .nav-list a { flex: 0 0 auto; min-height: auto; padding: 9px 11px; }
  .home-page .nav-list a::before { display: none; }
  .home-page .hero { grid-template-columns: 1fr; min-height: auto; }
  .home-page .learning-console { width: min(100%,620px); }
  .home-page .split-section { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .home-page .sidebar { grid-template-columns: 1fr; gap: 14px; }
  .home-page .theme-compare { width: min(100%,260px); }
  .home-page .nav-list { justify-content: flex-start; }
  .home-page .nav-list a:nth-of-type(n+5) { display: none; }
  .home-page .hero { gap: 38px; padding: 48px 20px; }
  .home-page .hero h1 { font-size: clamp(40px,13vw,58px); }
  .home-page .hero-actions { align-items: stretch; flex-direction: column; }
  .home-page .primary-action,
  .home-page .secondary-action { width: 100%; }
  .home-page .console-score-row { grid-template-columns: 92px minmax(0,1fr); }
  .home-page .readiness-ring { width: 88px; height: 88px; }
  .home-page .readiness-ring::before { width: 70px; height: 70px; }
  .home-page .skill-signals > div { grid-template-columns: 60px minmax(0,1fr) 32px; }
  .home-page .today-panel { grid-template-columns: 1fr auto; }
  .home-page .today-panel .progress-track { grid-column: 1/-1; grid-row: 2; }
  .home-page .proof-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .proof-strip > div:nth-child(2) { border-right: 0; }
  .home-page .proof-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--kj-line); }
  .home-page .section-block { padding: 52px 20px; }
  .home-page .section-heading { align-items: flex-start; flex-direction: column; }
  .home-page .module-grid,
  .home-page .bank-list,
  .home-page .plan-grid { grid-template-columns: 1fr; }
}
