/* 首页 / 学习看板 共用样式（由 templates/index.html 内联样式抽出） */
.hm-lookup {
  position: relative;
  margin-bottom: 14px;
  padding: 20px 22px;
  overflow: hidden;
  border-color: rgba(14, 116, 144, .22);
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 211, 238, .18), transparent 34%),
    linear-gradient(135deg, rgba(236, 254, 255, .94), rgba(255, 255, 255, .92));
}
.hm-library-progress {
  margin-bottom: 14px;
  padding: 18px 20px;
}
.hm-library-progress-head {
  align-items: flex-start;
  margin-bottom: 14px;
}
.hm-library-progress-head p {
  margin: 4px 0 0;
  color: var(--muted, #64748b);
  font-size: 11px;
}
.hm-today-rate {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 8px;
  text-align: right;
}
.hm-today-rate span {
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 700;
}
.hm-today-rate strong {
  color: #0f766e;
  font-size: 20px;
  line-height: 1;
}
.hm-today-rate small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--muted, #64748b);
  font-size: 10px;
}
.hm-segmented-progress {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}
.hm-segmented-progress span { display: block; height: 100%; }
.hm-segment-learned { background: linear-gradient(90deg, #14b8a6, #22c55e); }
.hm-segment-unlearned { background: linear-gradient(90deg, #fbbf24, #fb923c); }
.hm-segment-empty { width: 100%; background: #e2e8f0; }
.hm-progress-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 11px;
}
.hm-progress-legend > div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted, #64748b);
  font-size: 11px;
}
.hm-progress-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hm-dot-learned { background: #14b8a6; }
.hm-dot-unlearned { background: #fb923c; }
.hm-progress-legend b { color: var(--text, #0f172a); }
.hm-progress-legend em {
  color: var(--muted, #64748b);
  font-style: normal;
  font-weight: 800;
}
.hm-today-progress {
  height: 4px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14, 116, 144, .1);
}
.hm-today-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0e7490;
}
.theme-dark .hm-segmented-progress,
.theme-dark .hm-segment-empty { background: #334155; }
.theme-dark .hm-progress-legend b { color: #f8fafc; }
.theme-dark .hm-today-rate strong { color: #5eead4; }
.hm-due-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-color: rgba(249, 115, 22, .25);
  background:
    radial-gradient(circle at 4% 50%, rgba(251, 146, 60, .12), transparent 30%),
    var(--surface, #fff);
}
.hm-due-review > * { min-width: 0; }
.hm-due-review.is-complete {
  border-color: rgba(34, 197, 94, .24);
  background: linear-gradient(135deg, rgba(240, 253, 244, .95), rgba(255, 255, 255, .94));
}
.hm-due-review-lead { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hm-due-review-lead p {
  margin: 4px 0 0;
  color: var(--muted, #64748b);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.hm-due-review-icon {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #9a3412;
  background: linear-gradient(145deg, #ffedd5, #fed7aa);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .12);
}
.hm-due-review-icon span { font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.hm-due-review-icon strong { margin-top: -4px; font-size: 22px; line-height: 1; }
.hm-due-review-progress {
  display: grid;
  min-width: 0;
  width: 100%;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.hm-due-review-progress > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 8px 10px;
  border: 1px solid var(--ui-line, #e2e8f0);
  border-radius: 0 !important;
  background: var(--ui-surface-muted, #f1f2f6);
}
.hm-due-review-progress span {
  min-width: 0;
  color: var(--text, #0f172a);
  font-size: 11px;
  font-weight: 750;
}
.hm-due-review-progress b {
  min-width: 0;
  color: #c2410c;
  font-size: 10px;
  white-space: nowrap;
}
.hm-due-review-progress i {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 0 !important;
  background: #ffedd5;
}
.hm-due-review-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #f97316);
}
.hm-due-review-action {
  padding: 10px 15px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 8px 18px rgba(234, 88, 12, .18);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.hm-due-review-cleared {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 10px;
  font-weight: 900;
}
.theme-dark .hm-due-review {
  background:
    radial-gradient(circle at 4% 50%, rgba(249, 115, 22, .12), transparent 30%),
    rgba(15, 23, 42, .88);
}
.theme-dark .hm-due-review.is-complete { background: rgba(20, 83, 45, .15); }
.theme-dark .hm-due-review-progress i { background: rgba(154, 52, 18, .38); }
@media (max-width: 1020px) {
  .hm-due-review { grid-template-columns: minmax(0, 1fr) auto; }
  .hm-due-review-progress { grid-column: 1 / -1; }
  .hm-due-review-action, .hm-due-review-cleared {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 760px) {
  .hm-due-review { grid-template-columns: 1fr; }
  .hm-due-review-progress,
  .hm-due-review-action,
  .hm-due-review-cleared {
    grid-column: 1;
    grid-row: auto;
  }
  .hm-due-review-action, .hm-due-review-cleared { justify-self: stretch; text-align: center; }
}
.hm-consolidation {
  margin-bottom: 14px;
  padding: 18px 20px;
  border-color: rgba(15, 118, 110, .22);
}
.hm-consolidation.is-complete {
  background: linear-gradient(135deg, rgba(240, 253, 244, .95), rgba(236, 254, 255, .9));
}
.hm-consolidation-head { align-items: flex-start; }
.hm-consolidation-head p {
  margin: 4px 0 0;
  color: var(--muted, #64748b);
  font-size: 11px;
}
.hm-consolidation-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.hm-consolidation-status.is-pending { color: #92400e; background: #fef3c7; }
.hm-consolidation-rounds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.hm-consolidation-rounds > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
}
.hm-consolidation-rounds span { color: var(--text, #0f172a); font-size: 12px; font-weight: 750; }
.hm-consolidation-rounds b { color: #0f766e; font-size: 11px; }
.hm-consolidation-bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.hm-consolidation-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #22c55e);
}
.hm-consolidation-action {
  display: block;
  margin-top: 11px;
  padding: 9px 13px;
  border-radius: 10px;
  color: white;
  background: #0f766e;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.hm-consolidation-empty {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  color: var(--muted, #64748b);
  background: rgba(148, 163, 184, .08);
  font-size: 11px;
}
.theme-dark .hm-consolidation.is-complete { background: rgba(20, 83, 45, .15); }
.theme-dark .hm-consolidation-bar { background: #334155; }
@media (max-width: 560px) {
  .hm-consolidation-rounds { grid-template-columns: 1fr; }
}
.theme-dark .hm-lookup {
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 211, 238, .12), transparent 34%),
    linear-gradient(135deg, rgba(8, 47, 73, .72), rgba(15, 23, 42, .94));
}
.hm-lookup-copy { max-width: 680px; }
.hm-lookup-kicker {
  color: #0e7490;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.hm-lookup h2 {
  margin: 3px 0 4px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.hm-lookup-copy p {
  margin: 0;
  color: var(--sub);
  font-size: 12px;
}
.hm-lookup-membership {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(14, 116, 144, .13);
  border-radius: 9px;
  background: rgba(8, 145, 178, .055);
}
.hm-lookup-membership__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .12);
}
.hm-lookup-membership strong {
  color: #155e75;
  font-size: 10px;
  font-weight: 850;
}
.hm-lookup-membership a {
  padding-left: 7px;
  border-left: 1px solid rgba(14, 116, 144, .18);
  color: #9a6b13;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
.hm-lookup-membership.is-member {
  border-color: rgba(5, 150, 105, .16);
  background: rgba(16, 185, 129, .07);
}
.hm-lookup-membership.is-member .hm-lookup-membership__dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .13);
}
.hm-lookup-membership.is-member strong { color: #047857; }
.hm-lookup-membership.is-member a { display: none; }
.theme-dark .hm-lookup-membership strong { color: #67e8f9; }
.theme-dark .hm-lookup-membership.is-member strong { color: #6ee7b7; }
.hm-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 15px;
  padding: 6px;
  border: 1px solid rgba(14, 116, 144, .2);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 14px 34px rgba(8, 145, 178, .1);
}
.hm-lookup .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hm-lookup-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
}
.hm-lookup-input-wrap > span {
  margin-right: 9px;
  color: #0891b2;
  font-size: 22px;
  line-height: 1;
}
.hm-lookup-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.hm-lookup-form button {
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  box-shadow: 0 12px 28px rgba(8, 145, 178, .26);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.hm-lookup-form button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 15px 32px rgba(8, 145, 178, .32);
}
.hm-lookup-form button:disabled { opacity: .65; cursor: wait; }
.hm-lookup-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.hm-lookup-sources span {
  color: var(--sub);
  font-size: 10px;
}
.hm-lookup-sources a {
  padding: 5px 8px;
  border: 1px solid rgba(14, 116, 144, .12);
  border-radius: 999px;
  background: rgba(8, 145, 178, .055);
  color: #0e7490;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.hm-lookup-sources a:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 116, 144, .3);
  background: rgba(8, 145, 178, .1);
}
.hm-lookup-result {
  margin-top: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(14, 116, 144, .18);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.hm-lookup-result.is-error {
  border-color: rgba(220, 38, 38, .18);
  color: #b91c1c;
}
.hm-lookup-result-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.hm-lookup-result-head strong { font-size: 20px; }
.hm-lookup-result-head span { color: #0e7490; font-size: 13px; }
.hm-lookup-result p { margin: 6px 0 0; line-height: 1.65; }
.hm-lookup-result small { display: block; margin-top: 7px; color: var(--sub); }
.hm-lookup-root {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-light);
}
.hm-lookup-root > b {
  display: block;
  margin-bottom: 7px;
  color: #0e7490;
  font-size: 11px;
  letter-spacing: .08em;
}
.hm-lookup-root-analysis {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}
.hm-lookup-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}
.hm-lookup-related-item {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(14, 116, 144, .14);
  border-radius: 9px;
  background: rgba(8, 145, 178, .05);
}
.hm-lookup-related-item strong,
.hm-lookup-related-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-lookup-related-item strong { font-size: 13px; }
.hm-lookup-related-item span { margin-top: 2px; color: var(--sub); font-size: 10px; }
.hm-course-entry {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-color: rgba(14,116,144,.16);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hm-course-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(14,116,144,.32);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
}
.hm-course-entry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(14,116,144,.1);
  color: #0e7490;
  font: 800 16px Georgia,'Songti SC',serif;
}
.hm-course-entry-copy small,
.hm-course-entry-copy strong,
.hm-course-entry-copy em { display: block; }
.hm-course-entry-copy small {
  color: #0e7490;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.hm-course-entry-copy strong { margin-top: 2px; font-size: 14px; }
.hm-course-entry-copy em {
  margin-top: 2px;
  color: var(--sub);
  font-size: 10px;
  font-style: normal;
}
.hm-course-entry-action {
  color: #0e7490;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hm-hero {
  display: flex; align-items: center; gap: 24px;
  border-radius: 18px; padding: 24px 26px; margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(99,102,241,.08), rgba(168,85,247,.05)),
    var(--card-bg, rgba(255,255,255,.04));
  position: relative; overflow: hidden;
}
.hm-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.08), transparent 70%);
  pointer-events: none;
}
.hm-hero-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hm-hero-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #6366f1; margin-bottom: 8px; text-transform: uppercase;
}
.hm-hero-title {
  font-size: 22px; font-weight: 800; color: var(--text, #0f172a);
  margin: 0 0 6px; letter-spacing: -.01em;
}
.hm-hero-copy {
  font-size: 13px; color: var(--muted, rgba(100,116,139,.75));
  margin: 0 0 16px; line-height: 1.5;
}
.hm-hero-copy b { color: var(--text, #0f172a); font-weight: 700; }
.hm-hero-num { color: #6366f1 !important; font-size: 16px; }

.hm-actions { display: flex; flex-direction: column; gap: 10px; }
.hm-cta-primary {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; text-align: center;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
  transition: transform .15s, box-shadow .15s;
}
.hm-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.4); }
.hm-quick-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-quick-form { display: contents; }
.hm-quick {
  padding: 7px 12px; border-radius: 8px;
  background: var(--card-bg2, rgba(255,255,255,.06));
  border: 1px solid var(--border, rgba(148,163,184,.15));
  color: var(--text, #0f172a); text-decoration: none;
  font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: border-color .15s;
}
.hm-quick:hover { border-color: rgba(99,102,241,.4); }

.hm-ring-wrap {
  position: relative; flex-shrink: 0;
  width: 130px; height: 130px;
}
.hm-ring { width: 100%; height: 100%; }
.hm-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hm-ring-pct {
  font-size: 28px; font-weight: 800; color: var(--text, #0f172a);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.hm-ring-pct span { font-size: 14px; opacity: .65; margin-left: 1px; }
.hm-ring-meta {
  font-size: 10px; color: var(--muted, rgba(100,116,139,.6));
  margin-top: 4px; font-variant-numeric: tabular-nums;
}

.hm-root-entry { margin: 0 0 14px; }
.hm-root-entry-btn {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 1px solid rgba(16,185,129,.28);
  border-radius: 16px; color: var(--text, #0f172a); font-family: inherit;
  text-align: left; cursor: pointer;
  background:
    radial-gradient(circle at 8% 0%, rgba(52,211,153,.18), transparent 35%),
    linear-gradient(115deg, rgba(16,185,129,.11), rgba(20,184,166,.05)),
    var(--card-bg, rgba(255,255,255,.04));
  box-shadow: 0 8px 24px rgba(16,185,129,.08);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hm-root-entry-btn:hover {
  transform: translateY(-2px); border-color: rgba(16,185,129,.48);
  box-shadow: 0 12px 28px rgba(16,185,129,.14);
}
.hm-root-entry-btn:focus-visible {
  outline: 3px solid rgba(16,185,129,.28); outline-offset: 3px;
}
.hm-root-entry-icon {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px;
  border-radius: 14px; background: rgba(16,185,129,.13); font-size: 25px;
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.14);
}
.hm-root-entry-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.hm-root-entry-kicker {
  color: #059669; font-size: 10px; font-weight: 800; letter-spacing: .1em;
}
.hm-root-entry-title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.hm-root-entry-meta { color: var(--muted, #64748b); font-size: 12px; line-height: 1.45; }
.hm-root-entry-action {
  flex: 0 0 auto; padding: 9px 14px; border-radius: 10px;
  background: #059669; color: #fff; font-size: 12px; font-weight: 800;
  box-shadow: 0 5px 14px rgba(5,150,105,.2);
}
.hm-summary-entry {
  display: flex; align-items: center; gap: 16px; margin: -4px 0 14px;
  padding: 14px 18px; border: 1px solid rgba(217,119,6,.22);
  border-radius: 16px; color: var(--text, #0f172a); text-decoration: none;
  background:
    linear-gradient(110deg, rgba(245,158,11,.09), rgba(251,191,36,.025)),
    var(--card-bg, rgba(255,255,255,.04));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hm-summary-entry:hover {
  transform: translateY(-2px); border-color: rgba(217,119,6,.42);
  box-shadow: 0 10px 24px rgba(217,119,6,.1);
}
.hm-summary-entry:focus-visible {
  outline: 3px solid rgba(245,158,11,.25); outline-offset: 3px;
}
.hm-summary-entry-icon {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 13px; background: rgba(245,158,11,.13); font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(217,119,6,.12);
}
.hm-summary-entry-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.hm-summary-entry-kicker {
  color: #b45309; font-size: 10px; font-weight: 800; letter-spacing: .1em;
}
.hm-summary-entry-title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.hm-summary-entry-meta { color: var(--muted, #64748b); font-size: 11px; line-height: 1.45; }
.hm-summary-entry-action {
  flex: 0 0 auto; color: #b45309; font-size: 12px; font-weight: 800;
  padding: 8px 12px; border-radius: 10px; background: rgba(245,158,11,.11);
}
.hm-ielts-entry {
  display: flex; align-items: center; gap: 16px; margin: -4px 0 14px;
  padding: 14px 18px; border: 1px solid rgba(37,99,235,.2);
  border-radius: 16px; color: var(--text, #0f172a); text-decoration: none;
  background:
    linear-gradient(110deg, rgba(37,99,235,.08), rgba(14,165,233,.025)),
    var(--card-bg, rgba(255,255,255,.04));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.hm-ielts-entry:hover {
  transform: translateY(-2px); border-color: rgba(37,99,235,.42);
  box-shadow: 0 10px 24px rgba(37,99,235,.1);
}
.hm-ielts-entry:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 3px; }
.hm-ielts-entry-icon {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px;
  border-radius: 13px; background: #1d4ed8; color: #fff;
  font: 800 9px Georgia, 'Times New Roman', serif; letter-spacing: .08em;
  box-shadow: 0 5px 14px rgba(29,78,216,.18);
}
.hm-ielts-entry-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.hm-ielts-entry-kicker { color: #2563eb; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.hm-ielts-entry-title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.hm-ielts-entry-meta { color: var(--muted, #64748b); font-size: 11px; line-height: 1.45; }
.hm-ielts-entry-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.hm-ielts-entry-actions a {
  padding: 8px 11px; border-radius: 9px; background: rgba(37,99,235,.08);
  color: #1d4ed8; font-size: 11px; font-weight: 800; text-decoration: none;
}
.hm-ielts-entry-actions a.primary { background: #1d4ed8; color: #fff; }
.hm-method {
  position: relative; overflow: hidden; margin: 0 0 14px; padding: 20px;
  border: 1px solid rgba(14,116,144,.18); border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8,145,178,.075), transparent 48%),
    var(--card-bg, rgba(255,255,255,.04));
}
.hm-method::after {
  content: ''; position: absolute; top: -54px; right: -54px; width: 150px; height: 150px;
  border: 1px solid rgba(8,145,178,.12); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 22px rgba(8,145,178,.025), 0 0 0 44px rgba(8,145,178,.018);
}
.hm-method-intro { display: grid; grid-template-columns: 70px 1fr; gap: 16px; position: relative; z-index: 1; }
.hm-method-index {
  color: #0e7490; font: 700 12px Georgia, 'Times New Roman', serif;
  letter-spacing: .08em; padding-top: 4px;
}
.hm-method-kicker { color: #0e7490; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.hm-method h2 {
  margin: 5px 0 6px; color: var(--text, #0f172a);
  font-family: Georgia, 'Songti SC', 'STSong', serif; font-size: 20px; line-height: 1.35;
}
.hm-method-intro p { margin: 0; color: var(--muted, #64748b); font-size: 11px; line-height: 1.65; }
.hm-method-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px;
  margin: 18px 0 0; padding: 0; list-style: none;
  border: 1px solid rgba(14,116,144,.13); border-radius: 14px; overflow: hidden;
  background: rgba(14,116,144,.1);
}
.hm-method-steps li {
  min-width: 0; padding: 13px 12px; background: var(--card-bg, rgba(255,255,255,.88));
}
.hm-method-no { display: block; margin-bottom: 12px; color: #0891b2; font: 700 10px Georgia, serif; }
.hm-method-steps b { color: var(--text, #0f172a); font-size: 12px; line-height: 1.4; }
.hm-method-steps p { margin: 5px 0 0; color: var(--muted, #64748b); font-size: 10px; line-height: 1.55; }
.hm-method-rhythm {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px;
  padding: 9px 11px; border-radius: 10px; background: rgba(8,145,178,.065);
  color: var(--muted, #64748b); font-size: 10px;
}
.hm-method-rhythm > span { color: #0e7490; font-weight: 900; margin-right: 3px; }
.hm-method-rhythm b { color: var(--text, #0f172a); font-size: 10px; }
.hm-method-rhythm i { color: #0891b2; font-style: normal; }
.hm-method-source { margin: 9px 2px 0; color: var(--muted, #94a3b8); font-size: 8px; line-height: 1.5; }
.theme-dark .hm-method-index, .theme-dark .hm-method-kicker,
.theme-dark .hm-method-rhythm > span { color: #67e8f9; }
.theme-dark .hm-method-no, .theme-dark .hm-method-rhythm i { color: #22d3ee; }

@media (max-width: 600px) {
  .hm-hero { flex-direction: column-reverse; }
  .hm-ring-wrap { width: 100px; height: 100px; align-self: center; }
  .hm-method { padding: 17px 14px; }
  .hm-method-intro { grid-template-columns: 1fr; gap: 5px; }
  .hm-method-index { padding: 0; }
  .hm-method h2 { font-size: 18px; }
  .hm-method-steps { grid-template-columns: 1fr; }
  .hm-method-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
  .hm-method-no { margin: 2px 0 0; }
  .hm-ielts-entry-actions { flex-direction: column; }
  .hm-ielts-entry-actions a { padding: 7px 9px; text-align: center; }
}

.hm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 600px) { .hm-stats { grid-template-columns: repeat(2, 1fr); } }
.hm-stat {
  border-radius: 14px; padding: 16px 14px; text-align: center;
  border: 1px solid; background: var(--card-bg, rgba(255,255,255,.04));
  transition: transform .15s;
}
.hm-stat:hover { transform: translateY(-2px); }
.hm-stat-icon { font-size: 22px; margin-bottom: 4px; }
.hm-stat-num {
  font-size: 26px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hm-stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--muted, rgba(100,116,139,.65));
  margin-top: 4px;
}
.hm-stat-due    { border-color: rgba(239,68,68,.25); background: linear-gradient(180deg, rgba(239,68,68,.06), transparent); }
.hm-stat-due    .hm-stat-num { color: #ef4444; }
.hm-stat-new    { border-color: rgba(59,130,246,.25); background: linear-gradient(180deg, rgba(59,130,246,.06), transparent); }
.hm-stat-new    .hm-stat-num { color: #3b82f6; }
.hm-stat-streak { border-color: rgba(249,115,22,.25); background: linear-gradient(180deg, rgba(249,115,22,.06), transparent); }
.hm-stat-streak .hm-stat-num { color: #f97316; }
.hm-stat-level  { border-color: rgba(234,179,8,.25); background: linear-gradient(180deg, rgba(234,179,8,.06), transparent); }
.hm-stat-level  .hm-stat-num { color: #eab308; font-size: 22px; }
.hm-card { border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.hm-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 10px;
}
.hm-card-title { font-size: 14px; font-weight: 700; color: var(--text, #0f172a); }
.hm-card-meta  { font-size: 11px; color: var(--muted, rgba(100,116,139,.55)); }
.hm-card-link  { font-size: 12px; color: #6366f1; text-decoration: none; font-weight: 600; }

.hm-unit { margin-bottom: 14px; }
.hm-unit:last-child { margin-bottom: 0; }
.hm-unit-name {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted, rgba(100,116,139,.6));
  text-transform: uppercase; margin-bottom: 8px;
}
.hm-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--card-bg2, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(148,163,184,.15));
  text-decoration: none; transition: border-color .15s, background .15s;
}
.hm-chip:hover { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.05); }
.hm-chip-name { font-size: 12px; font-weight: 600; color: var(--text, #0f172a); }
.hm-chip-badges { display: inline-flex; gap: 4px; }
.hm-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700;
}
.hm-badge-due   { background: rgba(239,68,68,.12);  color: #ef4444; }
.hm-badge-new   { background: rgba(59,130,246,.12); color: #3b82f6; }
.hm-badge-learn { background: rgba(245,158,11,.12); color: #f59e0b; }

.hm-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;
}
@media (max-width: 600px) { .hm-grid-2 { grid-template-columns: 1fr; } }

.hm-level-num {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin: 6px 0;
}
.hm-level-meta { font-size: 11px; color: var(--muted, rgba(100,116,139,.7)); margin-bottom: 8px; }
.hm-bar {
  height: 6px; border-radius: 3px;
  background: rgba(148,163,184,.2); overflow: hidden;
}
.hm-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #f59e0b, #eab308);
  border-radius: 3px; transition: width .8s ease;
}
.hm-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hm-medal {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(99,102,241,.1); color: #6366f1;
}
.hm-asset-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.hm-asset {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px; border-radius: 10px;
  background: var(--card-bg2, rgba(255,255,255,.03));
  border: 1px solid; text-decoration: none;
  transition: transform .15s;
}
.hm-asset:hover { transform: translateY(-1px); }
.hm-asset-num {
  font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.hm-asset-label { font-size: 11px; color: var(--muted, rgba(100,116,139,.7)); }
.hm-asset-new  { border-color: rgba(59,130,246,.2);  } .hm-asset-new  .hm-asset-num { color: #3b82f6; }
.hm-asset-warn { border-color: rgba(245,158,11,.2);  } .hm-asset-warn .hm-asset-num { color: #f59e0b; }
.hm-asset-ok   { border-color: rgba(34,197,94,.2);   } .hm-asset-ok   .hm-asset-num { color: #22c55e; }
.hm-asset-bad  { border-color: rgba(239,68,68,.2);   } .hm-asset-bad  .hm-asset-num { color: #ef4444; }

.hm-empty {
  text-align: center; padding: 24px 0; margin: 0;
  font-size: 13px; color: var(--muted, rgba(100,116,139,.55));
}

.hm-today-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 4px;
}
.hm-today-cell {
  padding: 12px 14px; border-radius: 10px;
  background: var(--card-bg2, rgba(255,255,255,.03));
  border: 1px solid var(--border, rgba(148,163,184,.1));
}
.hm-today-label { font-size: 11px; color: var(--muted, rgba(100,116,139,.65)); margin-bottom: 4px; }
.hm-today-num {
  font-size: 22px; font-weight: 800; color: var(--text, #0f172a);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.hm-today-sub { font-size: 11px; color: var(--muted, rgba(100,116,139,.6)); margin-top: 4px; }
.hm-today-total {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(249,115,22,.06); border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted, rgba(100,116,139,.7));
}
.hm-today-total b { color: #f97316; font-weight: 800; font-size: 14px; }

.hm-learning-hub {
  margin: 14px 0 10px; padding: 20px; border-radius: 18px;
  border: 1px solid rgba(15,118,110,.18);
  background: linear-gradient(135deg,rgba(13,148,136,.07),transparent 45%),var(--card-bg,rgba(255,255,255,.04));
}
.hm-hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.hm-hub-kicker { color: #0f766e; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.hm-hub-head h2 { margin: 4px 0 0; color: var(--text,#0f172a); font: 700 21px/1.25 Georgia,'Songti SC',serif; }
.hm-hub-head p { max-width: 330px; margin: 0; color: var(--muted,#64748b); font-size: 11px; line-height: 1.55; text-align: right; }
.hm-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.hm-hub-card { display: grid; grid-template-columns: 38px 1fr; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--border,rgba(148,163,184,.16)); border-radius: 14px; background: var(--card-bg,rgba(255,255,255,.7)); }
.hm-hub-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(15,118,110,.1); color: #0f766e; font: 800 15px Georgia,'Songti SC',serif; }
.hm-hub-card b { color: var(--text,#0f172a); font-size: 13px; }
.hm-hub-card p { min-height: 34px; margin: 4px 0 10px; color: var(--muted,#64748b); font-size: 10px; line-height: 1.55; }
.hm-hub-card nav { display: flex; flex-wrap: wrap; gap: 5px; }
.hm-hub-card nav a,.hm-hub-card nav button { display: inline-block; padding: 6px 8px; border: 0; border-radius: 8px; background: rgba(15,118,110,.09); color: #0f766e; font: 800 10px/1.2 inherit; text-decoration: none; cursor: pointer; }
.hm-hub-card nav form { display: inline; }
.hm-hub-roots .hm-hub-icon { background: rgba(217,119,6,.1); color: #b45309; }
.hm-hub-roots nav a,.hm-hub-roots nav button { background: rgba(217,119,6,.1); color: #b45309; }
.hm-hub-ielts .hm-hub-icon { background: rgba(37,99,235,.1); color: #1d4ed8; }
.hm-hub-ielts nav a { background: rgba(37,99,235,.09); color: #1d4ed8; }
.hm-hub-knowledge .hm-hub-icon { background: rgba(180,83,9,.1); color: #b45309; }
.hm-hub-knowledge nav a { background: rgba(245,158,11,.1); color: #92400e; }
.hm-hub-tuijie .hm-hub-icon { background: rgba(190,24,93,.1); color: #be185d; }
.hm-hub-tuijie nav a { background: rgba(190,24,93,.09); color: #9d174d; }
.hm-method-guide { margin: 0 0 14px; border: 1px solid rgba(14,116,144,.16); border-radius: 15px; overflow: hidden; }
.hm-method-guide summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; cursor: pointer; list-style: none; }
.hm-method-guide summary::-webkit-details-marker { display: none; }
.hm-method-guide summary span { display: flex; align-items: center; gap: 10px; }
.hm-method-guide summary i { color: #0e7490; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .1em; }
.hm-method-guide summary b { color: var(--text,#0f172a); font-size: 12px; }
.hm-method-guide summary em { color: var(--muted,#64748b); font-size: 10px; font-style: normal; }
.hm-method-guide[open] summary em { font-size: 0; }
.hm-method-guide[open] summary em::after { content: '收起'; font-size: 10px; }
.hm-method-guide-body { padding: 0 17px 16px; }
.hm-method-guide-body ol { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.hm-method-guide-body li { padding: 10px; border-radius: 10px; background: rgba(8,145,178,.06); }
.hm-method-guide-body li b,.hm-method-guide-body li span { display: block; }
.hm-method-guide-body li b { color: #0e7490; font-size: 11px; }
.hm-method-guide-body li span { margin-top: 4px; color: var(--muted,#64748b); font-size: 9px; line-height: 1.55; }
.hm-method-guide-rhythm { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(8,145,178,.06); color: var(--muted,#64748b); font-size: 10px; text-align: center; }
.hm-method-guide-rhythm i { margin: 0 5px; color: #0891b2; font-style: normal; }

.theme-dark .hm-hero-title, .theme-dark .hm-hero-copy b,
.theme-dark .hm-card-title, .theme-dark .hm-chip-name,
.theme-dark .hm-ring-pct, .theme-dark .hm-quick,
.theme-dark .hm-today-num, .theme-dark .hm-root-entry-btn,
.theme-dark .hm-summary-entry { color: #f1f5f9; }
.theme-dark .hm-root-entry-kicker { color: #34d399; }
.theme-dark .hm-summary-entry-kicker,
.theme-dark .hm-summary-entry-action { color: #fbbf24; }

@media (max-width: 768px) {
  .hm-lookup { padding: 16px; }
  .hm-lookup h2 { font-size: 19px; }
  .hm-lookup-form { grid-template-columns: minmax(0, 1fr) auto; }
  .hm-lookup-form button {
    width: auto;
    padding: 0 16px;
    font-size: 14px;
  }
  .hm-lookup-input-wrap { padding: 0 9px; }
  .hm-lookup-input-wrap > span { margin-right: 6px; }
  .hm-lookup-sources { gap: 6px; }
  .hm-lookup-sources span { width: 100%; }
  .hm-lookup-related { grid-template-columns: 1fr; }
  .hm-course-entry {
    grid-template-columns: 40px minmax(0,1fr);
    padding: 14px;
  }
  .hm-course-entry-icon { width: 40px; height: 40px; }
  .hm-course-entry-action {
    grid-column: 2;
    margin-top: 2px;
  }
  .hm-hero {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    margin-bottom: 10px;
    border-radius: 16px;
  }
  .hm-hero-title {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .hm-hero-copy {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.35;
  }
  .hm-ring-wrap {
    width: 74px;
    height: 74px;
    align-self: auto;
  }
  .hm-ring-pct {
    font-size: 20px;
  }
  .hm-ring-meta {
    font-size: 9px;
    margin-top: 2px;
  }
  .hm-actions {
    gap: 7px;
  }
  .hm-cta-primary {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
  }
  .hm-quick-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .hm-quick {
    padding: 7px 4px;
    text-align: center;
    font-size: 11px;
    border-radius: 10px;
  }
  .hm-root-entry {
    margin-bottom: 10px;
  }
  .hm-root-entry-btn {
    gap: 11px;
    padding: 12px;
    border-radius: 14px;
  }
  .hm-root-entry-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
  }
  .hm-root-entry-title {
    font-size: 15px;
  }
  .hm-root-entry-meta {
    font-size: 10px;
  }
  .hm-root-entry-action {
    padding: 8px 10px;
    font-size: 11px;
  }
  .hm-summary-entry {
    gap: 11px;
    margin: -2px 0 10px;
    padding: 11px 12px;
    border-radius: 14px;
  }
  .hm-summary-entry-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 20px;
  }
  .hm-summary-entry-title {
    font-size: 14px;
  }
  .hm-summary-entry-meta {
    font-size: 10px;
  }
  .hm-summary-entry-action {
    padding: 7px 9px;
    font-size: 10px;
  }
  .hm-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }
  .hm-stat {
    padding: 9px 4px;
    border-radius: 12px;
  }
  .hm-stat-icon {
    font-size: 17px;
    margin-bottom: 2px;
  }
  .hm-stat-num {
    font-size: 18px;
  }
  .hm-stat-label {
    font-size: 10px;
    margin-top: 2px;
  }
  .hm-card {
    padding: 12px 12px;
    margin-bottom: 9px;
    border-radius: 14px;
  }
  .hm-card-head {
    margin-bottom: 8px;
  }
  .hm-due-groups-card {
    max-height: 214px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 10px 8px;
  }
  .hm-due-groups-card .hm-card-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 6px;
    background: var(--panel, #fff);
  }
  .theme-dark .hm-due-groups-card .hm-card-head {
    background: var(--panel, #1e293b);
  }
  .hm-due-groups-card .hm-unit {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
  }
  .hm-due-groups-card .hm-unit-name {
    margin: 0;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hm-due-groups-card .hm-chip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding: 1px 0 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hm-due-groups-card .hm-chip-list::-webkit-scrollbar {
    display: none;
  }
  .hm-due-groups-card .hm-chip {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 8px;
    gap: 5px;
    border-radius: 999px;
  }
  .hm-due-groups-card .hm-chip-name {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }
  .hm-due-groups-card .hm-chip-badges {
    gap: 3px;
  }
  .hm-due-groups-card .hm-badge {
    font-size: 9px;
    padding: 1px 4px;
  }
  .hm-grid-2 {
    gap: 9px;
    margin-bottom: 9px;
  }
  .hm-level-num {
    font-size: 28px;
  }
  .hm-asset {
    padding: 9px 10px;
  }
  .hm-asset-num,
  .hm-today-num {
    font-size: 18px;
  }
  .hm-today-cell {
    padding: 9px 10px;
  }
  .hm-empty {
    padding: 14px 0;
  }
  .hm-learning-hub { padding: 14px; }
  .hm-hub-head { display: block; }
  .hm-hub-head p { margin-top: 5px; text-align: left; }
  .hm-hub-grid { grid-template-columns: 1fr; }
  .hm-hub-card p { min-height: 0; }
  .hm-method-guide-body ol { grid-template-columns: 1fr; }
  .hm-method-guide summary span { display: block; }
  .hm-method-guide summary i,.hm-method-guide summary b { display: block; }
  .hm-method-guide summary b { margin-top: 3px; }
}

@media (max-width: 390px) {
  .hm-hero {
    padding: 12px;
  }
  .hm-ring-wrap {
    width: 64px;
    height: 64px;
  }
  .hm-stat-label,
  .hm-quick {
    font-size: 10px;
  }
  .hm-root-entry-btn {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hm-root-entry-copy {
    padding-top: 1px;
  }
  .hm-root-entry-action {
    width: 100%;
    text-align: center;
  }
  .hm-summary-entry {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hm-summary-entry-copy {
    padding-top: 1px;
  }
  .hm-summary-entry-action {
    width: 100%;
    text-align: center;
  }
  .hm-due-groups-card {
    max-height: 196px;
  }
}
.hm-container { max-width: 980px; }
.hm-ring-progress { transition: stroke-dashoffset .8s ease; }
.hm-chart-wrap { margin-top: 10px; }
body.app-shell .hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 22px;
}
body.app-shell .hm-hero-body,
body.app-shell .hm-hero-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.app-shell .hm-ring-wrap {
  z-index: 1;
  width: 120px;
  height: 120px;
  justify-self: center;
}
@media (max-width: 820px) {
  body.app-shell .hm-hero {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 16px;
    padding: 22px;
  }
  body.app-shell .hm-hero-title { font-size: clamp(1.55rem, 5vw, 2.2rem); }
  body.app-shell .hm-ring-wrap { width: 92px; height: 92px; }
}
@media (max-width: 620px) {
  body.app-shell .hm-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.app-shell .hm-ring-wrap {
    grid-row: 1;
    width: 82px;
    height: 82px;
  }
  body.app-shell .hm-hero-body {
    grid-row: 2;
    width: 100%;
  }
}
/* 学习看板顶部导航条 */
.hm-board-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
}
.hm-board-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .82);
  color: var(--text, #0f172a);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hm-board-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}
.hm-board-hint {
  color: var(--muted, #64748b);
  font-size: 12px;
}
.theme-dark .hm-board-back {
  border-color: rgba(148, 163, 184, .3);
  background: rgba(30, 41, 59, .72);
  color: #f1f5f9;
}
.theme-dark .hm-board-hint { color: #94a3b8; }
@media (max-width: 768px) {
  .hm-board-topbar { flex-direction: column; align-items: flex-start; }
}


/* 首页：本机浏览器查词记录 */
.hm-lookup-history {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed rgba(14, 116, 144, .18);
}
.hm-lookup-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.hm-lookup-history-head b {
  color: var(--sub);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.hm-lookup-history-head button {
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.hm-lookup-history-head button:hover {
  border-color: rgba(220, 38, 38, .35);
  color: #b91c1c;
}
.hm-lookup-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hm-lookup-history-item {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: 999px;
  background: rgba(8, 145, 178, .05);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.hm-lookup-history-item:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 116, 144, .32);
  background: rgba(8, 145, 178, .1);
}
.hm-lookup-history-item strong {
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}
.hm-lookup-history-item span {
  overflow: hidden;
  max-width: 190px;
  color: var(--sub);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-dark .hm-lookup-history-item {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(8, 145, 178, .12);
}
.theme-dark .hm-lookup-history-item strong { color: #67e8f9; }
.theme-dark .hm-lookup-history-head button { border-color: rgba(148, 163, 184, .3); }

/* 首页：未登录提示卡 */
.hm-guest-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-color: rgba(14, 116, 144, .16);
}
.hm-guest-copy small,
.hm-guest-copy strong { display: block; }
.hm-guest-copy small {
  color: #0e7490;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.hm-guest-copy strong { margin-top: 3px; font-size: 14px; }
.hm-guest-copy p {
  margin: 5px 0 0;
  color: var(--sub);
  font-size: 11px;
  line-height: 1.6;
}
.hm-guest-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.hm-guest-actions a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.hm-guest-login {
  border: 1px solid rgba(148, 163, 184, .35);
  color: var(--text, #0f172a);
}
.hm-guest-register {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 145, 178, .22);
}
.theme-dark .hm-guest-login {
  border-color: rgba(148, 163, 184, .3);
  color: #f1f5f9;
}
@media (max-width: 620px) {
  .hm-guest-panel { grid-template-columns: 1fr; }
  .hm-guest-actions a { flex: 1; text-align: center; }
}

/* Learning home: warm paper, ink green, quiet focus. Scoped to the home. */
.lw-home { --lw-ink:#203e36; --lw-muted:#62756b; --lw-paper:#f7f5ed; max-width:1080px; padding-bottom:36px; }
.lw-welcome { display:grid; grid-template-columns:1fr 260px; gap:44px; padding:48px 20px 38px; color:var(--lw-ink); }
.lw-eyebrow { font-size:11px; font-weight:750; letter-spacing:2px; color:var(--lw-muted); }
.lw-welcome h1 { font-size:clamp(32px,4.6vw,52px); line-height:1.3; letter-spacing:-1.5px; margin:18px 0; font-weight:750; }
.lw-welcome h1 em { font-style:normal; color:#47806b; }
.lw-welcome p { line-height:1.9; color:var(--lw-muted); }
.lw-actions,.lw-controls { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:24px; }
.lw-home .lw-primary { display:inline-flex; justify-content:center; align-items:center; gap:20px; border:1px solid #285746; background:#285746; color:#fff; padding:13px 22px; border-radius:9px; font-weight:650; text-decoration:none; cursor:pointer; }
.lw-actions a:not(.lw-primary) { color:var(--lw-ink); font-size:13px; }
.lw-benefits { display:flex; flex-wrap:wrap; gap:20px; margin-top:28px; color:var(--lw-muted); font-size:12px; }
.lw-note { background:#e8edda; border:1px solid #d5dec5; border-radius:4px 40px 4px 4px; padding:28px; transform:rotate(2deg); align-self:center; box-shadow:8px 10px 0 #203e3609; }
.lw-note>span { font-size:9px; letter-spacing:1.7px; }
.lw-note strong { display:block; font-family:Georgia,serif; font-size:48px; line-height:1.05; margin-top:24px; font-weight:normal; }
.lw-note>div { border-top:1px solid #c5d0b6; padding-top:16px; font-size:11px; }
.lw-practice { border:1px solid #dbe1d7; background:var(--lw-paper); border-radius:18px; padding:28px; margin:8px 0 26px; color:var(--lw-ink); scroll-margin-top:90px; }
.lw-practice header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.lw-practice h2 { font-size:21px; margin:8px 0; }
#lw-count { font-size:11px; background:#e5ecdf; padding:7px 12px; border-radius:20px; white-space:nowrap; }
#lw-source,.lw-session-note { font-size:12px; line-height:1.8; color:var(--lw-muted); }
.lw-flash { text-align:center; padding:22px 12px; min-height:180px; border-block:1px solid #dde3d8; margin-top:20px; }
#lw-position { font-size:12px; color:var(--lw-muted); }
#lw-word { font:normal clamp(28px,5vw,46px)/1.2 Georgia,serif; overflow-wrap:anywhere; margin:16px 0; }
.lw-home button:not(.lw-primary) { border:1px solid #ccd6ca; background:transparent; color:inherit; border-radius:8px; padding:10px 16px; cursor:pointer; }
#lw-speak { font-size:12px; }
#lw-hint { color:var(--lw-muted); font-size:13px; }
#lw-answer { line-height:1.8; white-space:pre-wrap; }
.lw-controls { justify-content:center; }
.lw-session-note { text-align:center; margin-top:20px; }
.lw-home [hidden] { display:none !important; }
.lw-home :is(a,button,input):focus-visible { outline:3px solid #b67c28; outline-offset:4px; }
.lw-home .hm-lookup { background:#f8faf6; border-color:#dbe1d7; border-radius:18px; }
.lw-home .hm-lookup-kicker { color:#47806b; }
.lw-home #homeLookupButton { background:#285746; }
.theme-dark .lw-home,body.dark .lw-home { --lw-ink:#deebe3; --lw-muted:#b2c6b8; --lw-paper:#1e3029; }
.theme-dark .lw-note,body.dark .lw-note { background:#304335; border-color:#53664d; }
.theme-dark #lw-count,body.dark #lw-count { background:#304335; }
.theme-dark .lw-home .hm-lookup,body.dark .lw-home .hm-lookup { background:#1e3029; }
@media(max-width:700px) { .lw-welcome { grid-template-columns:1fr; padding:24px 4px; gap:12px; } .lw-note { display:none; } .lw-practice { padding:20px 16px; } .lw-practice header { align-items:flex-start; } .lw-practice h2 { font-size:18px; } .lw-controls button { flex:1; } .lw-benefits { gap:12px; } }
/* Keep recall typography legible against the shared mobile type scale. */
.lw-home #lw-word { font-size:clamp(32px,5vw,46px) !important; }
.lw-home .lw-practice h2 { font-size:21px !important; }
.theme-dark .lw-home .lw-welcome h1 em { color:#92c9ac; }
.theme-dark .lw-home .lw-actions a:not(.lw-primary) { color:#deebe3 !important; }
.lw-home .hm-guest-register { color:#fff !important; }
@media(max-width:700px) { .lw-home .lw-practice h2 { font-size:18px !important; } }
