/* Home page + mock/drill/recall hubs (P4 #21) */
/* ----------------------------------------------------------------
   5. Home Page
   ---------------------------------------------------------------- */
#page-home {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Nav */
.hp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  border-bottom: 1px solid var(--bd);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
body.dark-mode .hp-nav { background: rgba(15,25,32,0.92); }

.hp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.hp-logo { display: flex; align-items: center; gap: 10px; }
.hp-logo-mark {
  width: 34px; height: 34px;
  background: var(--v-ink); color: var(--v-cream);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.06em; flex-shrink: 0;
}
body.dark-mode .hp-logo-mark { background: var(--v-teal); }
.hp-logo-text {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
  color: var(--tx); letter-spacing: -0.01em;
}
.hp-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hp-logo { cursor: pointer; }
.hp-logo:focus-visible { outline: 2px solid var(--v-teal); outline-offset: 3px; border-radius: 8px; }

/* Top module tabs (专项 / 模拟 / 扩展) */
.hp-tabs {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 4px;
}
.hp-tab {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--f-body); font-size: 0.86rem; font-weight: 600;
  color: var(--tx-3); padding: 8px 16px; border-radius: 999px;
  transition: background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.hp-tab:hover { color: var(--tx); }
.hp-tab.active {
  background: var(--card); color: var(--v-teal);
  box-shadow: var(--sh-sm); border: 1px solid var(--bd);
}
body.dark-mode .hp-tab.active { background: rgba(40,120,106,0.18); border-color: rgba(40,120,106,0.35); }

/* Tab panels — one viewport height, scroll inside panels */
.hp-main-tabs {
  position: relative;
  padding-top: 28px;
  --hp-hub-banner-h: 64px;
}
.hp-main-tabs > .hp-panel {
  display: flex;
  flex-direction: column;
  height: var(--hp-tab-panel-h, calc(100vh - 118px));
  max-height: var(--hp-tab-panel-h, calc(100vh - 118px));
  min-height: 480px;
  overflow: hidden;
  box-sizing: border-box;
}
.hp-main-tabs > .hp-panel > .hp-card-grid,
.hp-main-tabs > .hp-panel > .hp-tests {
  flex: 1;
  min-height: 0;
}
.hp-panel-measure { display: none !important; }
.hp-panel[hidden] { display: none !important; }
.hp-panel-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 12px; padding: 16px 20px;
  background: linear-gradient(135deg, var(--v-cream-2) 0%, var(--card) 100%);
  border: 1px solid var(--bd); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
body.dark-mode .hp-panel-hero {
  background: linear-gradient(135deg, rgba(40,120,106,0.12) 0%, var(--card) 70%);
}
.hp-panel-title {
  font-family: var(--f-display); font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700; color: var(--tx); letter-spacing: -0.02em; margin: 4px 0 6px;
}
.hp-panel-sub { font-size: 0.86rem; color: var(--tx-2); line-height: 1.45; max-width: 560px; margin: 0; }
.hp-panel-side-btn {
  flex-shrink: 0; border: 1px solid var(--bd); background: var(--card);
  color: var(--tx); font-family: var(--f-body); font-weight: 600; font-size: 0.86rem;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.hp-panel-side-btn:hover { border-color: var(--v-teal); color: var(--v-teal); transform: translateY(-1px); }

.hp-card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow-y: auto;
  align-content: start;
  padding-bottom: 4px;
}
.hp-feature-card {
  background: var(--card); border: 1.5px solid var(--bd); border-radius: var(--r-lg);
  padding: 22px 20px 18px; box-shadow: var(--sh-sm); cursor: pointer;
  border-top-width: 3px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column; gap: 8px; min-height: 168px;
}
.hp-feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-md);
}
.hp-feature-card[data-c="blue"]   { border-top-color: var(--c-listen); }
.hp-feature-card[data-c="green"]  { border-top-color: var(--c-read); }
.hp-feature-card[data-c="amber"]  { border-top-color: var(--c-write); }
.hp-feature-card[data-c="violet"] { border-top-color: var(--c-speak); }
.hp-feature-card[data-c="rose"]   { border-top-color: #e11d48; }
.hp-feature-card[data-c="teal"]   { border-top-color: var(--v-teal); }
.hp-feature-icon { font-size: 1.55rem; line-height: 1; }
.hp-feature-card h3 {
  margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--tx);
}
.hp-feature-card p {
  margin: 0; font-size: 0.84rem; color: var(--tx-3); line-height: 1.5; flex: 1;
}
.hp-feature-go {
  font-size: 0.82rem; font-weight: 600; color: var(--v-teal); margin-top: 6px;
}
.hp-feature-card-soon {
  cursor: default; opacity: 0.72;
}
.hp-feature-card-soon:hover {
  transform: none; box-shadow: var(--sh-sm);
}
.hp-feature-card-soon .hp-feature-go {
  color: var(--tx-3);
}

.hp-main-tabs .hp-panel-data { margin-top: 0; }

.hp-tab-link { margin-left: 2px; }

/* Shared hub banner strip (专项 / 套卷 / 机经 / 我的学习) */
.hp-hub-banner,
.drl-banner,
.mck-banner,
.rcl-banner,
.lcx-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  min-height: var(--hp-hub-banner-h);
  height: var(--hp-hub-banner-h);
  padding: 0 20px;
  background: linear-gradient(135deg, #1e3a4a 0%, #28786a 100%);
  color: #fff;
}
.hp-hub-banner-text,
.drl-banner-text,
.mck-banner-text,
.rcl-banner-text,
.lcx-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: center;
}
.hp-hub-banner-text strong,
.drl-banner-text strong,
.mck-banner-text strong,
.rcl-banner-text strong,
.lcx-banner-text strong {
  font-size: 0.95rem;
  line-height: 1.25;
}
.hp-hub-banner-text span,
.drl-banner-text span,
.mck-banner-text span,
.rcl-banner-text span,
.lcx-banner-text span {
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.88;
}
.rcl-boundary-note {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0.82;
  font-weight: 500;
}

@media (max-width: 960px) {
  .lcx-body-inner.lcx-body-analysis { grid-template-columns: 1fr; }
  .lcx-sidebar { width: 200px; }
}
@media (max-width: 720px) {
  .hp-main-tabs .drl-banner,
  .hp-main-tabs .mck-banner,
  .hp-main-tabs .rcl-banner,
  .hp-main-tabs .lcx-banner {
    height: auto;
    min-height: var(--hp-hub-banner-h);
    padding: 12px 16px;
  }
  .lcx-workspace { flex-direction: column; }
  .lcx-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--bd); }
  .lcx-banner { flex-direction: column; align-items: flex-start; }
  .lcx-banner-text { text-align: left; width: 100%; }
  .lcx-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .lcx-nav-group { display: contents; }
  .lcx-nav-title { width: 100%; }
}

/* User badge */
.user-badge {
  font-size: 0.78rem; color: var(--tx-2);
  background: var(--surface); border: 1px solid var(--bd);
  border-radius: 20px; padding: 4px 12px;
  font-weight: 500;
}

/* Logout */
.logout-btn {
  font-size: 0.78rem; font-weight: 500; color: var(--tx-3);
  background: none; border: 1px solid var(--bd);
  border-radius: var(--r-sm); padding: 5px 12px; cursor: pointer;
  transition: all var(--t); font-family: var(--f-body);
}
.logout-btn:hover { border-color: var(--v-error); color: var(--v-error); }

/* Theme toggle (shared) */
.theme-toggle {
  background: var(--surface); border: 1px solid var(--bd);
  border-radius: 10px; width: 38px; height: 38px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--t); color: var(--tx-2);
}
.theme-toggle:hover { border-color: var(--v-teal); color: var(--v-teal); }

/* Hero */
.hp-hero-wrap {
  background: linear-gradient(180deg, var(--v-cream-2) 0%, var(--v-cream) 100%);
  padding: 64px 32px 80px; text-align: center;
  position: relative; overflow: hidden;
}
body.dark-mode .hp-hero-wrap {
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(40,120,106,0.15) 0%, transparent 70%), var(--bg);
}
.hp-hero-rings { position: absolute; inset: 0; pointer-events: none; }
body.dark-mode .hp-hero-rings::before,
body.dark-mode .hp-hero-rings::after {
  content: ''; position: absolute; border-radius: 50%;
  left: 50%; transform: translateX(-50%); border: 1px solid rgba(40,120,106,0.1);
}
body.dark-mode .hp-hero-rings::before { width: 560px; height: 560px; top: -260px; }
body.dark-mode .hp-hero-rings::after  { width: 860px; height: 860px; top: -390px; }

.hp-hero { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.hp-eyebrow {
  display: inline-block; padding: 5px 16px;
  background: var(--v-teal-lt); border: 1px solid rgba(40,120,106,0.2);
  border-radius: 30px; font-size: 0.73rem; font-weight: 500;
  color: var(--v-teal); letter-spacing: 0.04em; margin-bottom: 24px;
  animation: hp-up 0.6s ease both 0.05s;
}
.hp-headline {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 18px; animation: hp-up 0.7s ease both 0.12s;
}
.hp-hl-top { display: block; color: var(--tx); }
.hp-hl-bot { display: block; color: var(--v-teal); font-style: italic; }
body.dark-mode .hp-hl-bot { color: var(--v-teal); }
.hp-sub {
  font-size: 0.97rem; color: var(--tx-2); line-height: 1.65;
  animation: hp-up 0.6s ease both 0.22s;
}
.hp-score-tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; padding: 8px 18px;
  background: var(--v-teal-lt); border: 1px solid rgba(40,120,106,0.2);
  border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 600;
  color: var(--v-teal); animation: hp-up 0.6s ease both 0.3s;
}

/* Module strip */
.hp-main { max-width: 1200px; margin: 0 auto; padding: 0 32px 16px; }
#page-home .hp-main { overflow: hidden; }
.hp-modules {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; margin-top: -34px; margin-bottom: 52px;
  position: relative; z-index: 2;
  animation: hp-up 0.7s ease both 0.28s;
}
.hp-mod {
  background: var(--card); border: 1px solid var(--bd);
  border-radius: var(--r-lg); padding: 20px 18px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: var(--sh); transition: transform var(--t), box-shadow var(--t);
  border-top-width: 3px; cursor: pointer;
}
.hp-mod:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.hp-mod-arrow { margin-left: auto; font-size: 1rem; opacity: 0.3; transition: opacity var(--t), transform var(--t); }
.hp-mod:hover .hp-mod-arrow { opacity: 0.9; transform: translateX(3px); }
.hp-mod[data-c="blue"]   { border-top-color: var(--c-listen); }
.hp-mod[data-c="green"]  { border-top-color: var(--c-read); }
.hp-mod[data-c="amber"]  { border-top-color: var(--c-write); }
.hp-mod[data-c="violet"] { border-top-color: var(--c-speak); }
.hp-mod-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.hp-mod-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.hp-mod[data-c="blue"]   .hp-mod-name { color: var(--c-listen); }
.hp-mod[data-c="green"]  .hp-mod-name { color: var(--c-read); }
.hp-mod[data-c="amber"]  .hp-mod-name { color: var(--c-write); }
.hp-mod[data-c="violet"] .hp-mod-name { color: var(--c-speak); }
.hp-mod-detail { font-size: 0.69rem; color: var(--tx-3); line-height: 1.45; }

/* Tests section */
.hp-tests {
  animation: hp-up 0.7s ease both 0.38s;
  overflow-y: auto;
  min-height: 0;
}
.hp-tests-hd {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.hp-tests-title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: var(--tx); }
.hp-tests-badge {
  font-size: 0.75rem; font-weight: 500; color: var(--tx-3);
  background: var(--surface); border: 1px solid var(--bd);
  border-radius: 20px; padding: 3px 12px;
}
.hp-tests-tools { margin: 0 0 14px; }
.hp-tests-search {
  width: 100%; max-width: 420px;
  padding: 10px 14px;
  border: 1.5px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx);
  font-family: var(--f-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.hp-tests-search:focus {
  border-color: var(--v-teal);
  box-shadow: 0 0 0 3px var(--v-teal-lt);
}
.hp-paper-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.hp-paper-tab {
  appearance: none;
  border: 1px solid var(--bd);
  background: var(--card);
  color: var(--tx-2);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--f-body);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.hp-paper-tab:hover {
  border-color: var(--v-teal);
  color: var(--v-teal);
}
.hp-paper-tab.active {
  background: var(--v-teal);
  border-color: var(--v-teal);
  color: #fff;
}
body.dark-mode .hp-paper-tab.active {
  background: rgba(40,120,106,0.28);
  border-color: rgba(40,120,106,0.45);
  color: #d8f3ec;
}

.hp-tests-hd-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hp-mock-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hp-mock-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--tx-3);
  font-weight: 500;
}
.hp-mock-legend-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
}
.hp-mock-legend-item[data-st="todo"] .hp-mock-legend-ico {
  background: #dbeafe;
  color: #2563eb;
}
.hp-mock-legend-item[data-st="progress"] .hp-mock-legend-ico {
  background: #fee2e2;
  color: #dc2626;
}
.hp-mock-legend-item[data-st="done"] .hp-mock-legend-ico {
  background: #dcfce7;
  color: #16a34a;
}

/* Mock set blocks — row layout (剑桥真题 · Test 1–4) */
.hp-range-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.hp-range-tab {
  appearance: none;
  border: 1px solid var(--bd);
  background: var(--card);
  color: var(--tx-2);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--f-body);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t), box-shadow var(--t);
}
.hp-range-tab:hover {
  border-color: #f08a94;
  color: #e11d48;
}
.hp-range-tab.active {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
}

#page-home #testsGrid {
  display: block;
}

.hp-mock-carousel {
  position: relative;
}
.hp-mock-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
  padding: 0 2px;
}
.hp-mock-carousel-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tx-2);
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 2px 10px;
}
.hp-mock-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  outline: none;
}
.hp-mock-track::-webkit-scrollbar { display: none; }
.hp-mock-track .hp-mock-book {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.hp-mock-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.hp-mock-carousel-arrow {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bd);
  background: var(--card);
  color: var(--tx);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 2px;
  transition: border-color var(--t), color var(--t), background var(--t), opacity var(--t);
  box-shadow: var(--sh-sm);
}
.hp-mock-carousel-arrow span {
  display: block;
  margin-top: -2px;
}
.hp-mock-carousel-arrow:hover:not(:disabled):not(.is-disabled) {
  border-color: #fb7185;
  color: #e11d48;
  background: #fff1f2;
}
.hp-mock-carousel-arrow:disabled,
.hp-mock-carousel-arrow.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  color: var(--tx-3);
  background: var(--surface);
  box-shadow: none;
}

.hp-mock-empty {
  color: var(--tx-3);
  padding: 28px 16px;
  text-align: center;
  font-size: 0.9rem;
}

.hp-mock-book {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 18px 18px 10px;
  box-shadow: var(--sh-sm);
}
.hp-mock-book-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd);
}
.hp-mock-book-mark {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  flex-shrink: 0;
}
.hp-mock-book-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tx);
}
.hp-mock-book-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-mock-row {
  display: grid;
  grid-template-columns: 92px repeat(3, minmax(0, 1fr)) minmax(118px, 136px);
  gap: 10px;
  align-items: stretch;
}
.hp-mock-cover {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.hp-mock-cover-inner {
  height: 100%;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px 12px;
  background: linear-gradient(160deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  text-align: center;
}
.hp-mock-cover-num {
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}
.hp-mock-cover-ielts {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.88;
}
.hp-mock-cover-test {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 3px 8px;
}
.hp-mock-exam-btn {
  appearance: none;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.hp-mock-exam-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: #fff;
}

.hp-mock-skill-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 118px;
  justify-content: center;
}
body.dark-mode .hp-mock-skill-card {
  background: var(--surface);
  border-color: var(--bd);
}
.hp-mock-skill-card[data-status="done"] .hp-mock-skill-state {
  color: #16a34a;
  font-weight: 600;
}
.hp-mock-skill-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tx);
}
.hp-mock-skill-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--tx-3);
}
.hp-mock-skill-state { line-height: 1.3; }
.hp-mock-skill-score {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.74rem;
}

.hp-mock-speak-card {
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 118px;
  background: linear-gradient(145deg, #ede9fe 0%, #dbeafe 100%);
  border: 1px solid #c4b5fd;
}
.hp-mock-speak-card[data-status="done"] .hp-mock-skill-state {
  color: #16a34a;
  font-weight: 600;
}
.hp-mock-speak-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #5b21b6;
}
.hp-mock-speak-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: #6b7280;
}
.hp-mock-speak-tag {
  font-size: 0.62rem;
  color: #7c3aed;
  opacity: 0.85;
}

/* Legacy flat test cards (dictation picker etc.) */
#page-home .test-card {
  position: relative;
  background: var(--card); border: 1.5px solid var(--bd);
  border-radius: var(--r-lg); padding: 18px 15px;
  box-shadow: var(--sh-sm); animation: none;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  text-align: left; cursor: pointer;
}
#page-home .test-card:hover {
  border-color: var(--v-teal);
  box-shadow: 0 0 0 1px var(--v-teal), 0 6px 20px var(--v-teal-glow);
  transform: translateY(-2px);
}
#page-home .test-num {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
  color: var(--tx); margin-bottom: 5px; letter-spacing: -0.02em;
  transition: color var(--t);
}
#page-home .test-card:hover .test-num { color: var(--v-teal); }
#page-home .test-topic {
  font-size: 0.78rem; color: var(--tx-2); margin-bottom: 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#page-home .test-status { font-size: 0.68rem; }
#page-home .test-done { color: var(--c-read); font-weight: 600; }
#page-home .test-inprogress { color: var(--c-write); }
#page-home .test-badge {
  position: absolute; top: 9px; right: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.5rem; display: flex; align-items: center; justify-content: center;
}
#page-home .badge-done { background: var(--c-read); color: #fff; }

@keyframes hp-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 960px) {
  .hp-modules { grid-template-columns: repeat(2,1fr); margin-top: 24px; }
  .hp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-nav-inner { flex-wrap: wrap; height: auto; min-height: 62px; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .hp-tabs { order: 3; width: 100%; justify-content: center; }
  .hp-panel-hero { flex-direction: column; align-items: flex-start; }
  .hp-mock-row {
    grid-template-columns: 80px repeat(4, minmax(108px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
/* ================================================================
   SPEAKING AI PRACTICE — sa-* components
   ================================================================ */

/* ---- Home CTA Banner ---- */
.hp-speak-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-left: 4px solid var(--c-speak);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--sh);
  animation: fadeUp 0.4s ease both;
}
.hp-speak-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hp-speak-cta-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.hp-speak-cta-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-speak);
  margin-bottom: 2px;
}
.hp-speak-cta-sub {
  font-size: 0.82rem;
  color: var(--tx-3);
  line-height: 1.4;
}
.hp-speak-cta-btn {
  flex-shrink: 0;
  background: var(--c-speak);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 10px 20px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t);
  white-space: nowrap;
}
.hp-speak-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
/* Novel CTA on home page */
.hp-novel-cta { border-color: var(--v-teal); }
.hp-novel-cta .hp-speak-cta-btn { background: var(--v-teal); }
/* ================================================================
   STREAK & WEEKLY RINGS
   ================================================================ */
.hp-streak-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}
.hp-streak-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(217,119,6,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(217,119,6,0.2);
}
.hp-streak-fire { font-size: 1.2rem; }
.hp-streak-num {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #d97706;
}
.hp-streak-label { font-size: 0.78rem; color: var(--tx-3); }

.hp-week-rings { display: flex; gap: 12px; }
.hp-ring-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hp-ring-svg { width: 42px; height: 42px; }
.hp-ring-val {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tx);
  margin-top: -2px;
}
.hp-ring-label { font-size: 0.65rem; color: var(--tx-3); }

@media (max-width: 600px) {
  .hp-streak-row { gap: 16px; flex-wrap: wrap; }
  .hp-ring-svg { width: 36px; height: 36px; }
}


.hp-dictation-cta .hp-speak-cta-icon { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }


.hp-tread-cta .hp-speak-cta-icon { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
/* ================================================================
   MOCK HUB — 套卷模拟（左右分栏）
   ================================================================ */
#homePanelMock {
  padding: 0;
  max-width: none;
  min-height: unset;
  overflow: hidden;
}
#homePanelMock .mck-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.mck-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.mck-banner-extra,
.drl-banner-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
#homePanelMock .mck-hd-right {
  flex-wrap: wrap;
  row-gap: 8px;
}
#homePanelMock .hp-score-tag {
  margin: 0;
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: 999px;
  color: var(--tx-2);
}
#homePanelMock .hp-streak-row {
  margin: 0;
  gap: 12px;
}
#homePanelMock .mck-hd .hp-panel-side-btn {
  padding: 7px 12px;
  font-size: 0.8rem;
}
.mck-hd {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
  flex-wrap: wrap;
}
.mck-type-tabs { display: flex; gap: 8px; }
.mck-type-tab {
  appearance: none;
  border: 1px solid var(--bd);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tx-2);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.mck-type-tab.active {
  border-color: var(--v-teal);
  background: rgba(40,120,106,0.12);
  color: var(--v-teal);
}
.mck-hd-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mck-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.mck-books {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid var(--bd);
  overflow-y: auto;
  padding: 10px;
  background: var(--v-cream-2, #faf8f5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.dark-mode .mck-books { background: #101820; }
.mck-book-btn {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  background: var(--card);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.mck-book-btn:hover { border-color: var(--bd); box-shadow: var(--sh-sm); }
.mck-book-btn.active {
  border-color: var(--v-teal);
  background: rgba(40,120,106,0.08);
}
.mck-book-label { font-size: 0.86rem; font-weight: 700; color: var(--tx); }
.mck-book-count { font-size: 0.72rem; color: var(--tx-3); flex-shrink: 0; }
.mck-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.mck-empty, .mck-empty-small, .mck-loading {
  padding: 32px 24px;
  color: var(--tx-3);
  font-size: 0.88rem;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mck-empty-small { padding: 16px 10px; font-size: 0.82rem; }
.mck-test-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.mck-test-hd {
  flex-shrink: 0;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mck-test-title-hd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tx);
}
.mck-test-count { font-size: 0.78rem; color: var(--tx-3); flex-shrink: 0; }
.mck-test-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mck-test-item {
  appearance: none;
  width: 100%;
  border: 1px solid var(--bd);
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color var(--t), box-shadow var(--t);
}
.mck-test-item:hover {
  border-color: rgba(40,120,106,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mck-test-item[data-status="done"] { border-left: 3px solid var(--c-read); }
.mck-test-item[data-status="progress"] { border-left: 3px solid var(--c-write); }
.mck-test-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--bd);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-2);
}
.mck-test-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mck-test-title { font-size: 0.88rem; font-weight: 700; color: var(--tx); }
.mck-test-preview { font-size: 0.76rem; color: var(--tx-3); line-height: 1.4; }
.mck-test-meta { font-size: 0.72rem; color: var(--tx-3); }
.mck-test-go { flex-shrink: 0; color: var(--tx-3); }

@media (max-width: 900px) {
  .mck-body { flex-direction: column; }
  .mck-books {
    width: 100%;
    max-height: 140px;
    border-right: none;
    border-bottom: 1px solid var(--bd);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mck-book-btn { width: auto; min-width: 88px; }
}

/* ================================================================
   DRILL HUB — 专项学习（左右分栏）
   ================================================================ */
#homePanelDrill {
  padding: 0;
  max-width: none;
  min-height: unset;
  overflow: hidden;
}
#homePanelDrill .drl-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.drl-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drl-hd-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.drl-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.drl-skills {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid var(--bd);
  overflow-y: auto;
  padding: 10px;
  background: var(--v-cream-2, #faf8f5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.dark-mode .drl-skills { background: #101820; }
.drl-skill-btn {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  background: var(--card);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tx);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.drl-skill-btn:hover { border-color: var(--bd); box-shadow: var(--sh-sm); }
.drl-skill-btn.active {
  border-color: var(--v-teal);
  background: rgba(40,120,106,0.08);
  color: var(--v-teal);
}
.drl-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.drl-empty {
  padding: 32px 24px;
  color: var(--tx-3);
  font-size: 0.88rem;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drl-module-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.drl-module-hd {
  flex-shrink: 0;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.drl-module-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tx);
}
.drl-module-count { font-size: 0.78rem; color: var(--tx-3); flex-shrink: 0; }
.drl-module-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drl-module-item {
  appearance: none;
  width: 100%;
  border: 1px solid var(--bd);
  background: var(--card);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.drl-module-item:hover {
  border-color: rgba(40,120,106,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}
.drl-module-item[data-c="blue"]   { border-left: 3px solid var(--c-listen); }
.drl-module-item[data-c="green"]  { border-left: 3px solid var(--c-read); }
.drl-module-item[data-c="amber"]  { border-left: 3px solid var(--c-write); }
.drl-module-item[data-c="violet"] { border-left: 3px solid var(--c-speak); }
.drl-module-item[data-c="rose"]   { border-left: 3px solid #e11d48; }
.drl-module-item[data-c="teal"]   { border-left: 3px solid var(--v-teal); }
.drl-module-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.drl-module-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.drl-module-name { font-size: 0.9rem; font-weight: 700; color: var(--tx); }
.drl-module-desc { font-size: 0.78rem; color: var(--tx-3); line-height: 1.45; }
.drl-module-go {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v-teal);
}

@media (max-width: 900px) {
  .drl-body { flex-direction: column; }
  .drl-skills {
    width: 100%;
    max-height: 140px;
    border-right: none;
    border-bottom: 1px solid var(--bd);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .drl-skill-btn { width: auto; min-width: 88px; }
}

/* ================================================================
   RECALL HUB — 真题机经（左右分栏）
   ================================================================ */
#homePanelExtend {
  padding: 0;
  max-width: none;
  min-height: unset;
  overflow: hidden;
}
#homePanelExtend .rcl-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.rcl-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rcl-hd {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
  flex-wrap: wrap;
}
.rcl-skill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rcl-skill-tab {
  appearance: none;
  border: 1px solid var(--bd);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tx-2);
  transition: border-color var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.rcl-skill-tab:hover {
  border-color: rgba(40,120,106,0.35);
  color: var(--tx);
}
.rcl-skill-tab.active {
  border-color: var(--v-teal);
  background: rgba(40,120,106,0.12);
  color: var(--v-teal);
}
.rcl-hd-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcl-hd-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tx-3);
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 4px 10px;
}
.rcl-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.rcl-timeline {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid var(--bd);
  overflow: hidden;
  padding: 0;
  background: var(--v-cream-2, #faf8f5);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.dark-mode .rcl-timeline { background: #101820; }
.rcl-timeline-hd {
  flex-shrink: 0;
  padding: 12px 10px 10px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
}
.rcl-year-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tx-3);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.rcl-year-select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 8px 28px 8px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tx);
  cursor: pointer;
}
.rcl-year-select:focus {
  outline: 2px solid rgba(40,120,106,0.35);
  outline-offset: 1px;
}
.rcl-month-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}
.rcl-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.rcl-year-block { margin-bottom: 14px; }
.rcl-month-btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--card);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: border-color var(--t), box-shadow var(--t);
}
.rcl-month-btn:hover { border-color: var(--bd); box-shadow: var(--sh-sm); }
.rcl-month-btn.active {
  border-color: var(--v-teal);
  background: rgba(40,120,106,0.08);
}
.rcl-month-num { font-size: 0.86rem; font-weight: 600; color: var(--tx); }
.rcl-month-count { font-size: 0.72rem; color: var(--tx-3); }
.rcl-loading, .rcl-error {
  font-size: 0.86rem;
  color: var(--tx-3);
  padding: 16px;
}
.rcl-error { color: #dc2626; }
.rcl-error-hint { font-size: 0.78rem; color: var(--tx-3); padding: 0 16px 16px; }
.rcl-empty, .rcl-empty-small, .rcl-detail-empty {
  padding: 32px 24px;
  color: var(--tx-3);
  font-size: 0.9rem;
  text-align: center;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rcl-empty-meta { margin-top: 12px; font-size: 0.8rem; }
.rcl-soon-side { padding: 16px; }
.rcl-soon-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--tx-3);
  border: 1px dashed var(--bd);
}
.rcl-soon-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 24px;
  text-align: center;
  gap: 10px;
}
.rcl-soon-icon { font-size: 2.5rem; }
.rcl-soon-main h2 { margin: 0; font-size: 1.2rem; }
.rcl-soon-main p { margin: 0; color: var(--tx-2); max-width: 360px; }
.rcl-soon-tag { font-size: 0.82rem; color: var(--tx-3); margin-top: 8px; }
.rcl-month-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.rcl-month-hd {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rcl-month-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx);
  flex: 1;
  min-width: 0;
}
.rcl-month-meta { font-size: 0.78rem; color: var(--tx-3); flex-shrink: 0; }
.rcl-back-btn {
  appearance: none;
  border: 1px solid var(--bd);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--tx-2);
  margin-right: 8px;
}
.rcl-back-btn:hover { border-color: var(--v-teal); color: var(--v-teal); }
.rcl-detail-body { display: flex; flex-direction: column; gap: 14px; }
.rcl-detail-section {
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--card);
}
.rcl-detail-section h3 { margin: 0 0 6px; font-size: 0.9rem; }
.rcl-detail-meta { margin: 0; font-size: 0.78rem; color: var(--tx-3); }
.rcl-detail-note { margin: 0; font-size: 0.84rem; color: var(--tx-2); line-height: 1.5; }
.rcl-detail-sub { margin: 12px 0 6px; font-size: 0.88rem; }
.rcl-detail-list { margin: 0; padding-left: 18px; font-size: 0.86rem; line-height: 1.55; color: var(--tx-2); }
.rcl-detail-foot { margin: 8px 0 0; font-size: 0.78rem; color: var(--tx-3); }
.rcl-audio { width: 100%; max-width: 480px; margin-top: 4px; }
.rcl-task-tabs { display: flex; gap: 8px; }
.rcl-task-tab {
  appearance: none;
  border: 1px solid var(--bd);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tx-2);
}
.rcl-task-tab span { opacity: 0.65; margin-left: 4px; }
.rcl-task-tab.active {
  border-color: var(--c-write);
  background: rgba(217,119,6,0.1);
  color: var(--c-write);
}
.rcl-task-tab:disabled { opacity: 0.4; cursor: not-allowed; }
.rcl-month-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 16px;
  overflow-y: auto;
}
.rcl-writing-month-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rcl-writing-part-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rcl-writing-part-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bd);
}
.rcl-writing-part-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tx);
}
.rcl-writing-part-meta {
  font-size: 0.76rem;
  color: var(--tx-3);
  flex-shrink: 0;
}
.rcl-start-btn {
  appearance: none;
  border: none;
  background: var(--c-write);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.rcl-start-btn:hover { filter: brightness(1.05); }
.rcl-test-list { display: flex; flex-direction: column; gap: 8px; }
.rcl-test-item {
  appearance: none;
  width: 100%;
  border: 1px solid var(--bd);
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.rcl-test-item:hover {
  border-color: rgba(40,120,106,0.35);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rcl-test-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--bd);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-2);
}
.rcl-test-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.rcl-test-title { font-size: 0.88rem; font-weight: 700; color: var(--tx); }
.rcl-test-preview { font-size: 0.78rem; color: var(--tx-3); line-height: 1.45; }
.rcl-test-go { flex-shrink: 0; color: var(--tx-3); font-size: 1rem; }
.rcl-empty-small { padding: 24px; text-align: center; color: var(--tx-3); font-size: 0.88rem; }
.rcl-q-list {
  border-right: 1px solid var(--bd);
  overflow-y: auto;
  max-height: 560px;
  padding: 8px;
}
.rcl-q-item {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  transition: background var(--t), border-color var(--t);
}
.rcl-q-item:hover { background: rgba(0,0,0,0.03); }
.rcl-q-item.active {
  background: rgba(40,120,106,0.1);
  border-color: rgba(40,120,106,0.25);
}
.rcl-q-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--bd);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-2);
}
.rcl-q-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rcl-q-meta { font-size: 0.7rem; color: var(--tx-3); }
.rcl-q-preview { font-size: 0.8rem; color: var(--tx); line-height: 1.45; }
.rcl-q-detail {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.rcl-wt-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bd);
  background: var(--card);
  flex-shrink: 0;
}
.rcl-wt-meta { font-size: 0.78rem; color: var(--tx-3); flex: 1; }
.rcl-wt-timer { font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rcl-wt-submit {
  appearance: none;
  border: none;
  background: var(--c-write);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.rcl-wt-submit:hover { filter: brightness(1.05); }
#homePanelExtend .rcl-wt-root {
  flex: 1;
  min-height: 360px;
  display: flex !important;
  flex-direction: row;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
}
#homePanelExtend .wt-pane-prompt {
  flex: 1 1 48%;
  background: #fff;
  padding: 16px 18px 20px;
  overflow: auto;
}
#homePanelExtend .wt-pane-editor {
  flex: 1 1 52%;
  background: #f7f7f7;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
}
#homePanelExtend .rp-splitter {
  flex: 0 0 16px;
  position: relative;
  background: linear-gradient(#cfcfcf, #cfcfcf) center/1px 100% no-repeat;
  background-color: #ececec;
}
#homePanelExtend .wt-cbt-textarea {
  flex: 1;
  min-height: 280px;
  width: 100%;
  resize: none;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  background: #fff;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  font-family: Georgia, 'Times New Roman', serif;
}
#homePanelExtend .wt-cbt-wordcount {
  margin-top: 8px;
  text-align: right;
  font-size: 0.82rem;
  color: #666;
}
#homePanelExtend .chart-desc {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f3f4f6;
  border-left: 3px solid var(--c-write);
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}
.rcl-wt-feedback {
  padding: 14px 18px;
  border-top: 1px solid var(--bd);
  background: var(--card);
}
.rcl-fb-band { font-size: 1.2rem; font-weight: 700; color: var(--c-write); margin-bottom: 8px; }
.rcl-fb-overall { font-size: 0.88rem; color: var(--tx-2); margin: 0 0 10px; line-height: 1.55; }
.rcl-fb-list { margin: 0; padding-left: 18px; font-size: 0.84rem; color: var(--tx-2); }

@media (max-width: 900px) {
  .rcl-skill-tabs { gap: 6px; }
  .rcl-skill-tab { padding: 6px 10px; font-size: 0.78rem; }
  .rcl-body { flex-direction: column; }
  .rcl-timeline { width: 100%; max-height: 160px; border-right: none; border-bottom: 1px solid var(--bd); }
}

@media (max-width: 640px) {
  .hp-nav-inner, .hp-main { padding-left: 20px; padding-right: 20px; }
  .hp-hero-wrap { padding: 48px 20px 60px; }
  .hp-modules { grid-template-columns: repeat(2,1fr); }
  .hp-card-grid { grid-template-columns: 1fr; }
  .hp-tab { flex: 1; text-align: center; padding: 8px 10px; font-size: 0.8rem; }
  .hp-tests-hd { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hp-tests-hd-right { width: 100%; justify-content: space-between; }
  .hp-mock-row { grid-template-columns: 72px repeat(4, minmax(96px, 1fr)); }
}
