/* 部署时由 tools/bundle-css.cjs 按 index.html 原顺序合并，源文件：home-workspaces.css, academy-panorama.css, dot-companion.css, dot-learning-shell.css, student-startup.css, ux-refresh.css, aivia-ds.css, mobile-minimal.css, reading-library.css, mobile-shell.css, mobile-wallpaper.css, dot-voice.css, dot-actions.css, dot-ambient.css, ui-sweep.css, button-feel.css, ux-polish.css, layers.css */
/* ==== home-workspaces.css ==== */
/* Class homepage: four learning workspaces and two quiet companion tools. */
html[data-visual-world="academy"] #view-today.active:has(.home-workspaces) {
  display: block !important; max-width: none !important; width: 100%; min-width: 0;
}
html[data-visual-world="academy"] #view-today:has(.home-workspaces) :is(.today-focus-layout,.today-plan-card,.today-plan-card > .task-list) {
  display: block !important; width: 100%; max-width: none !important; min-width: 0;
  padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html[data-visual-world="academy"] .home-workspaces { display: grid; gap: 20px !important; min-width: 0; }
html[data-visual-world="academy"] .home-overview-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px;
  padding: 0 0 20px; border-bottom: 1px solid var(--hairline);
}
html[data-visual-world="academy"] .home-completion { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
html[data-visual-world="academy"] .home-completion .home-refresh-icon-action {
  display: grid; place-items: center; flex: none; width: 44px !important; min-width: 44px !important; height: 44px !important;
  min-height: 44px !important; padding: 10px !important; margin: 0 !important; border: 0 !important;
  border-radius: 8px !important; background: transparent !important; color: var(--muted); box-shadow: none !important;
}
html[data-visual-world="academy"] .home-completion .home-refresh-icon-action:is(:hover,:focus-visible) { background: var(--surface-2) !important; color: var(--accent-ink); }
html[data-visual-world="academy"] .home-completion strong { color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
html[data-visual-world="academy"] .home-completion b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
html[data-visual-world="academy"] .home-overview-bar .home-main-cta {
  width: auto !important; max-width: 100%; min-height: 44px; margin: 0 !important; padding: 10px 16px !important;
  border-radius: 8px !important; font-size: 14px !important; white-space: normal; overflow-wrap: anywhere;
}
html[data-visual-world="academy"] .home-overview-bar .home-cta-sub { font-size: 12px !important; /* 小修-20261125 原11px */ max-width: 30ch; white-space: normal; }
html[data-visual-world="academy"] .home-overview-bar .home-member-quota {
  margin: 0 0 0 auto !important; padding: 0 !important; flex: 0 1 320px; min-width: 0;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html[data-visual-world="academy"] .home-overview-bar .home-member-quota-head { padding: 6px 0 !important; min-height: 48px; gap: 10px; }
html[data-visual-world="academy"] .home-overview-bar .home-member-mark { width: 36px; height: 36px; border-radius: 8px; }
html[data-visual-world="academy"] .home-overview-bar .home-member-quota-more { font-size: 12px; }
.home-refresh-label { display: none; }
@media (min-width:1181px) {
  html[data-visual-world="academy"] .home-overview-bar { column-gap: 20px; }
  html[data-visual-world="academy"] .home-completion .home-refresh-icon-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: auto !important; min-width: 88px !important; padding: 8px 12px !important;
    border: 1px solid var(--hairline) !important; background: var(--surface) !important;
    color: var(--ink-2); font-size: 13px !important; font-weight: 600; white-space: nowrap;
  }
  html[data-visual-world="academy"] .home-completion .home-refresh-label { display: inline; }
  html[data-visual-world="academy"] .home-completion .home-refresh-icon-action > svg { width: 16px; height: 16px; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota { margin-left: 0 !important; flex: 0 1 232px !important; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota-head {
    display: grid; grid-template-columns: 20px minmax(0,1fr) 14px; gap: 10px;
    padding: 7px 12px !important; min-height: 44px; border: 1px solid var(--hairline) !important;
    border-radius: 8px; background: var(--surface) !important;
  }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota-head:is(:hover,:focus-visible) { background: var(--surface-2) !important; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-mark { width: 20px; height: 20px; background: transparent !important; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-mark > svg { width: 20px; height: 20px; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-plan strong { font-size: 12px; line-height: 1.35; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-plan .quota-summary { white-space: normal; overflow: visible; overflow-wrap: anywhere; font-size: 12px; /* 小修-20261125 原10.5px */ }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota-more { font-size: 0; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota-more > svg { width: 14px; height: 14px; }
}
html[data-visual-world="academy"] .home-workspace-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(240px,.85fr);
  grid-template-areas: "vocab listen review" "reading writing records";
  align-items: stretch; gap: 20px; min-width: 0;
}
html[data-visual-world="academy"] .home-workspace {
  min-width: 0; padding: 20px !important; margin: 0 !important; border: 1px solid var(--hairline) !important;
  border-radius: 8px !important; background: var(--surface) !important; box-shadow: none !important;
  display: flex; flex-direction: column;
}
html[data-visual-world="academy"] .home-workspace-vocab { grid-area: vocab; }
html[data-visual-world="academy"] .home-workspace-listen { grid-area: listen; }
html[data-visual-world="academy"] .home-workspace-reading { grid-area: reading; }
html[data-visual-world="academy"] .home-workspace-writing { grid-area: writing; }
html[data-visual-world="academy"] .home-workspace-review { grid-area: review; }
html[data-visual-world="academy"] .home-workspace-records { grid-area: records; }
html[data-visual-world="academy"] :is(.home-workspace-review,.home-workspace-records) { background: color-mix(in srgb,var(--surface) 65%,var(--surface-2)) !important; }
html[data-visual-world="academy"] .home-workspace-head { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 16px; }
html[data-visual-world="academy"] .home-workspace-head > div { flex: 1; min-width: 0; }
html[data-visual-world="academy"] .home-workspace-head h2 { font-size: 18px !important; line-height: 1.4; color: var(--ink); font-weight: 750; margin: 0; letter-spacing: 0; }
html[data-visual-world="academy"] .home-workspace-head small { display: block; font-size: 12px; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
html[data-visual-world="academy"] .home-workspace-head .icon-button { margin-left: auto; width: 44px !important; height: 44px !important; min-width: 44px !important; padding: 10px !important; background: transparent !important; border: 0 !important; color: var(--muted); }
html[data-visual-world="academy"] .home-workspace-head .icon-button:is(:hover,:focus-visible) { background: var(--surface-2) !important; color: var(--accent-ink); }
html[data-visual-world="academy"] .home-workspace-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background: var(--surface-2); color: var(--accent-ink); }
html[data-visual-world="academy"] .home-workspace-tasks { display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; flex: 1; }
html[data-visual-world="academy"] .home-workspace .home-check-row {
  display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; gap: 12px !important;
  align-items: center !important; padding: 16px 0 !important; margin: 0 !important;
  border: 0 !important; border-top: 1px solid var(--hairline) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; min-height: 110px;
}
html[data-visual-world="academy"] .home-workspace .home-check-row :is(.home-check-dot,.task-icon) { display: none !important; }
html[data-visual-world="academy"] .home-workspace :is(.home-check-main,.daily-checkin-main) { display: flex !important; flex-direction: column; align-items: flex-start; min-width: 0; gap: 6px !important; grid-column: 1; }
html[data-visual-world="academy"] .home-workspace :is(.home-check-main,.daily-checkin-main) > strong { font-size: 15px !important; line-height: 1.55; color: var(--ink) !important; overflow-wrap: anywhere; white-space: normal !important; }
html[data-visual-world="academy"] .home-workspace :is(.home-check-main > small,.dc-explain,.dc-meta) { font-size: 12px !important; line-height: 1.6; color: var(--muted) !important; white-space: normal !important; overflow-wrap: anywhere; }
/* Tablet and desktop only: phones keep refine.css's compact check-in card (mobile-minimal.css section B). */
@media (min-width: 768px) {
  html[data-visual-world="academy"] .home-workspace .dc-explain { display: block !important; }
  html[data-visual-world="academy"] .home-workspace .dc-meta-extra { display: inline !important; }
}
html[data-visual-world="academy"] .home-task-kind { display: inline-flex; font-size: 12px; /* 小修-20261125 原11px */ font-weight: 700; line-height: 1.6; color: var(--accent-ink); background: var(--surface-2); padding: 2px 7px; border-radius: 4px; }
html[data-visual-world="academy"] .home-task-kind.is-checkin { color: var(--green-ink,var(--accent-ink)); }
html[data-visual-world="academy"] .home-workspace .task-entry-action {
  display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto;
  min-height: 44px !important; min-width: 52px !important; width: auto !important; max-width: 100%; padding: 8px 12px !important;
  border-radius: 6px !important; font-size: 13px !important; white-space: nowrap;
}
html[data-visual-world="academy"] .home-workspace .task-entry-action.is-primary { background: var(--surface-2) !important; color: var(--accent-ink) !important; border: 1px solid var(--hairline) !important; box-shadow: none !important; }
html[data-visual-world="academy"] .home-workspace .daily-checkin-multi { grid-template-columns: minmax(0,1fr) !important; }
html[data-visual-world="academy"] .home-workspace .dc-subtasks { width: 100%; margin: 6px 0 0; }
html[data-visual-world="academy"] .home-workspace .dc-subtask { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 8px; padding: 8px 0; }
html[data-visual-world="academy"] .home-workspace .dc-subtask-title { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
html[data-visual-world="academy"] .home-workspace .dc-status-line { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-visual-world="academy"] .home-workspace .daily-mini-progress { width: 100%; height: 4px; margin: 3px 0 0; }
html[data-visual-world="academy"] .home-workspace-empty { display: grid; justify-items: start; align-content: center; flex: 1; min-height: 124px; padding: 16px 0; border-top: 1px solid var(--hairline); gap: 12px; }
html[data-visual-world="academy"] .home-workspace-empty p { margin: 0; color: var(--muted); font-size: 13px; }
html[data-visual-world="academy"] .home-workspace-empty button { display: inline-flex; align-items: center; gap: 8px; width: auto !important; min-height: 44px; padding: 8px 12px !important; font-size: 13px !important; color: var(--accent-ink) !important; background: var(--surface-2) !important; border-color: transparent !important; }
html[data-visual-world="academy"] .home-review-slot .cv-home-rail { display: block !important; position: static !important; width: 100%; padding: 0; margin: 0; }
html[data-visual-world="academy"] .home-workspace .cv-rail-card { padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
html[data-visual-world="academy"] .home-workspace .cv-rail-eyebrow { color: var(--ink) !important; font-size: 16px !important; letter-spacing: 0 !important; min-height: 40px; margin: 0 0 16px; }
html[data-visual-world="academy"] .home-workspace .cv-rail-review .cv-rail-eyebrow { font-size: 18px !important; gap: 12px; }
html[data-visual-world="academy"] .home-workspace .cv-rail-review .cv-rail-eyebrow > svg { box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; padding: 10px; border-radius: 8px; background: var(--surface-2); color: var(--accent-ink); }
html[data-visual-world="academy"] .home-workspace .cv-rev-word { font-size: 28px; }
html[data-visual-world="academy"] .home-workspace .cv-rev-inner { display: grid; min-height: 172px; }
/* WebKit can paint both transparent grid faces despite backface-visibility.
   Keep both faces in layout for a stable height, but reveal exactly one face
   using the existing button state instead of relying on a 3D compositor. */
html[data-visual-world="academy"] .home-workspace .cv-rev-card .cv-rev-inner { transform: none; transform-style: flat; -webkit-transform-style: flat; transition: none; }
html[data-visual-world="academy"] .home-workspace .home-review-body { display: flex; flex-direction: column; gap: 8px; }
html[data-visual-world="academy"] .home-workspace .cv-rev-card { flex: 1 0 auto; display: grid; align-items: center; width: 100%; min-width: 0; }
html[data-visual-world="academy"] .home-workspace .cv-rev-actions { margin-top: auto; padding-top: 8px; flex: 0 0 auto; }
html[data-visual-world="academy"] .home-workspace .cv-rev-face { position: relative; grid-area: 1 / 1; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 14px 0; transform: none; visibility: hidden; }
html[data-visual-world="academy"] .home-workspace .cv-rev-card:not(.revealed) .cv-rev-face-front,
html[data-visual-world="academy"] .home-workspace .cv-rev-card.revealed .cv-rev-face-back { visibility: visible; }
html[data-visual-world="academy"] .home-workspace .cv-rev-ex { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 13px; }
html[data-visual-world="academy"] .home-workspace .cv-rev-btn { min-width: 0; min-height: 44px; border-radius: 6px !important; padding: 8px; }
html[data-visual-world="academy"] .home-workspace .cv-rev-go { color: var(--accent-ink) !important; background: var(--surface-2) !important; border: 1px solid var(--hairline) !important; }
html[data-visual-world="academy"] .home-workspace .cv-streak-big { margin: 0 0 8px; }
html[data-visual-world="academy"] .home-workspace .cv-rail-streak .cv-rail-eyebrow { min-height: 0; margin: 0 0 8px; font-size: 12px !important; color: var(--muted) !important; }
html[data-visual-world="academy"] .home-workspace .cv-streak-sub { overflow-wrap: anywhere; font-size: 12px; }
.cv-streak-totals { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }
.cv-streak-totals > div { display: flex; flex-direction: column; gap: 2px; }
.cv-streak-totals span { font-size: 12px; color: var(--muted); }
.cv-streak-totals strong { font-size: 20px; line-height: 1.4; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.cv-streak-totals small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
html[data-visual-world="academy"] .home-workspace .cv-rail-streak .cv-rail-eyebrow { display: none; }
html[data-visual-world="academy"] .home-record-links { display: grid; margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--hairline); gap: 2px; }
html[data-visual-world="academy"] .home-self-records { width: 100%; min-width: 0; }
html[data-visual-world="academy"] .home-record-links button { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; padding: 8px 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); text-align: left; font-size: 13px; }
html[data-visual-world="academy"] .home-record-links button span { flex: 1; }
html[data-visual-world="academy"] .home-record-links button:hover { color: var(--accent-ink); background: var(--surface-2); }
html[data-visual-world="academy"] .home-workspace-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
html[data-visual-world="academy"] .home-workspace .feedback { padding: 8px 0 !important; font-size: 12px; background: transparent !important; }
html[data-visual-world="academy"].academy-theme-changing :is(.home-workspace,.home-workspace-icon,.home-task-kind,.home-record-links button) { transition: background-color .55s ease, border-color .55s ease, color .55s ease !important; }
@media (max-width: 1320px) {
  html[data-visual-world="academy"] .home-workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "vocab listen" "reading writing" "review records"; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota { flex-basis: 280px; }
}
/* Only desktop panes scroll independently; touch layouts keep the full task list in page flow. */
@media screen and (min-width: 1181px) {
  html[data-visual-world="academy"] .home-workspace {
    height: clamp(324px, 34vh, 360px); min-height: 0; box-sizing: border-box;
  }
  html[data-visual-world="academy"] .home-workspace-grid.is-quiet .home-workspace { height: 324px; }
  html[data-visual-world="academy"] .home-workspace-head,
  html[data-visual-world="academy"] .home-workspace .cv-rail-review > .cv-rail-eyebrow { flex: 0 0 auto; min-height: 46px; }
  html[data-visual-world="academy"] .home-workspace [data-home-scroll] {
    flex: 1; min-height: 0; min-width: 0; overflow-y: auto;
    overscroll-behavior-y: contain; scrollbar-gutter: stable;
    scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
    padding-right: 8px !important;
  }
  html[data-visual-world="academy"] .home-workspace-tasks > * { flex-shrink: 0; }
  html[data-visual-world="academy"] .home-review-slot,
  html[data-visual-world="academy"] .home-review-slot .cv-home-rail { height: 100%; min-height: 0; }
  html[data-visual-world="academy"] .home-workspace .cv-rail-review { height: 100%; min-height: 0; display: flex; flex-direction: column; }
}
@media (max-width: 680px) {
  html[data-visual-world="academy"] .home-workspaces { gap: 16px !important; }
  html[data-visual-world="academy"] .home-workspace-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "vocab" "listen" "reading" "writing" "review" "records"; gap: 14px; }
  html[data-visual-world="academy"] .home-workspace { padding: 16px !important; }
  html[data-visual-world="academy"] .home-overview-bar { gap: 12px; padding-bottom: 16px; }
  html[data-visual-world="academy"] .home-completion { width: 100%; gap: 4px 12px; font-size: 12px; }
  html[data-visual-world="academy"] .home-completion b { font-size: 18px; margin-left: 2px; }
  html[data-visual-world="academy"] .home-completion .home-refresh-icon-action { margin-left: auto !important; }
  html[data-visual-world="academy"] .home-overview-bar .home-main-cta { width: 100% !important; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota { flex: 1 1 100%; margin: 0 !important; }
  html[data-visual-world="academy"] .home-workspace-empty { min-height: 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
  html[data-visual-world="academy"] .home-workspace-empty p { flex: 1 1 150px; }
  html[data-visual-world="academy"] .home-workspace .cv-rev-inner { min-height: 132px; }
  html[data-visual-world="academy"] .home-workspace .cv-rail-eyebrow { margin-bottom: 8px; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-quota-head { min-height: 44px; padding-block: 0 !important; }
  html[data-visual-world="academy"] .home-overview-bar .home-member-plan .quota-summary { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  html[data-visual-world="academy"] .home-workspace-head { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-visual-world="academy"].academy-theme-changing :is(.home-workspace,.home-workspace-icon,.home-task-kind,.home-record-links button) { transition: none !important; }
}

/* ==== academy-panorama.css ==== */
/* Plan A: scenery lives behind the workspace and never determines its height. */
html[data-visual-world="academy"] {
  --panorama-day: url("assets/academy/panorama/campus-day-v1.webp");
  --panorama-night: url("assets/academy/panorama/campus-night-v1.webp");
  --panorama-day-rgb: 237 247 250;
  --panorama-night-rgb: 27 34 39;
  --panorama-position: center top;
}
html[data-visual-world="academy"][data-skin="warm"] {
  --panorama-day: url("assets/academy/panorama/warm-day-v1.webp");
  --panorama-night: url("assets/academy/panorama/warm-night-v1.webp");
  --panorama-day-rgb: 246 234 211;
  --panorama-night-rgb: 36 35 33;
}
html[data-visual-world="academy"] body::before,
html[data-visual-world="academy"][data-skin="warm"] body::before {
  background: linear-gradient(rgb(var(--panorama-day-rgb) / 96%) 0,rgb(var(--panorama-day-rgb) / 68%) 160px,transparent 420px),linear-gradient(90deg,rgb(var(--panorama-day-rgb) / 72%),rgb(var(--panorama-day-rgb) / 93%) 20%,rgb(var(--panorama-day-rgb) / 93%) 86%,rgb(var(--panorama-day-rgb) / 72%)),var(--panorama-day) var(--panorama-position) / cover no-repeat !important;
}
html[data-visual-world="academy"] .academy-night-canvas {
  background: linear-gradient(rgb(var(--panorama-night-rgb) / 96%) 0,rgb(var(--panorama-night-rgb) / 68%) 160px,transparent 420px),linear-gradient(90deg,rgb(var(--panorama-night-rgb) / 72%),rgb(var(--panorama-night-rgb) / 93%) 20%,rgb(var(--panorama-night-rgb) / 93%) 86%,rgb(var(--panorama-night-rgb) / 72%)),var(--panorama-night) var(--panorama-position) / cover no-repeat !important;
}
/* Remove the separate corner scenes, including the self-study masthead. */
html[data-visual-world="academy"] body[data-view] #appShell .main .topbar::before,
html[data-visual-world="academy"] body[data-view] #appShell .main .topbar::after,
html[data-visual-world="academy"] #appShell .home-greeting-strip::before,
html[data-visual-world="academy"] #appShell .home-greeting-strip::after { content: none !important; }
html[data-visual-world="academy"] #appShell .main { gap: 16px !important; }
@media (min-width:901px) {
  /* The status notice is an optional third row, not the flexible reading pane. */
  html[data-visual-world="academy"] body[data-view="reading"] #appShell .main:has(.reading-shell):has(> #accountMembershipStatus:not(.is-pending)) {
    grid-template-rows: auto auto minmax(0,1fr);
  }
}
html[data-visual-world="academy"] body[data-view] #appShell .main .topbar,
html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(.academy-home-masthead:not(:empty)),
html[data-visual-world="academy"] body[data-view="today"] #appShell .main .topbar:not(:has(.academy-home-masthead:not(:empty))) {
  min-height: 148px !important;
  height: auto !important;
  align-self: start;
  align-content: start;
  padding-block: 20px 0 !important;
  row-gap: 0 !important;
}
html[data-visual-world="academy"] #appShell .academy-home-masthead:empty { display: none; }
html[data-visual-world="academy"] #appShell .academy-home-masthead:not(:empty) { margin-top: 8px; }
/* The same panorama is reframed here so its landmarks survive the full-screen crop. */
html[data-visual-world="academy"] .academy-header-scene {
  position: fixed; top: 48px; right: max(0px,calc((100vw - 1760px) / 2)); width: min(62%,480px); height: 192px;
  opacity: var(--scenery-scroll-opacity,1);
  overflow: hidden; pointer-events: none; z-index: -1; contain: layout paint;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 52%,#000 92%,transparent),linear-gradient(transparent,#000 12%,#000 50%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 52%,#000 92%,transparent),linear-gradient(transparent,#000 12%,#000 50%,transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
html[data-visual-world="academy"] body[data-view] #appShell .main .topbar { z-index: auto !important; }
/* Frost only the small header controls; text and learning surfaces stay opaque. */
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  html[data-visual-world="academy"] #appShell .topbar :is(#menuToggle,#themeToggle,.academy-search-toggle,.academy-search-close,.search-box) {
    background: color-mix(in srgb,var(--surface) 74%,transparent) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: none !important;
  }
  html[data-visual-world="academy"] #appShell .topbar :is(#menuToggle,#themeToggle,.academy-search-toggle,.academy-search-close,.search-box):is(:hover,:focus-within) {
    background: color-mix(in srgb,var(--surface) 92%,transparent) !important;
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  html[data-visual-world="academy"] #appShell .topbar :is(#menuToggle,#themeToggle,.academy-search-toggle,.academy-search-close,.search-box) {
    background: var(--surface) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
html[data-visual-world="academy"] .academy-scene-layer {
  position: absolute; inset: 0 0 auto; aspect-ratio: 3 / 2;
  background: var(--panorama-day) center top / 100% 100% no-repeat;
  opacity: 1; transition: opacity var(--academy-theme-time) var(--academy-theme-ease);
}
html[data-visual-world="academy"] .academy-scene-layer.is-night { background-image: var(--panorama-night); opacity: 0; }
html[data-visual-world="academy"].cv-dark .academy-scene-layer.is-day { opacity: 0; }
html[data-visual-world="academy"].cv-dark .academy-scene-layer.is-night { opacity: 1; }
/* Only the water texture moves; buildings, typography and controls remain stationary. */
html[data-visual-world="academy"] .academy-scene-detail {
  position: absolute; inset: 0; background: inherit;
  clip-path: polygon(17% 54%,87% 55%,93% 68%,72% 82%,30% 78%,11% 65%);
  filter: brightness(1.35); opacity: .15; transform-origin: 60% 60%;
  animation: academy-water-light 6s ease-in-out infinite alternate;
  animation-play-state: paused;
}
html[data-visual-world="academy"][data-skin="warm"] .academy-scene-detail {
  clip-path: polygon(57% 18%,64% 18%,64% 32%,57% 32%);
  filter: brightness(1.55); transform: none;
  animation-name: academy-library-light; animation-duration: 12s;
}
html[data-visual-world="academy"][data-skin="warm"] .is-day .academy-scene-detail { display: none; }
html[data-visual-world="academy"] .academy-scenery.is-playing .is-day .academy-scene-detail,
html[data-visual-world="academy"].cv-dark .academy-scenery.is-playing .is-night .academy-scene-detail { animation-play-state: running; }
html[data-visual-world="academy"].cv-dark .academy-scenery .is-day .academy-scene-detail { animation-play-state: paused; }
@keyframes academy-water-light {
  from { opacity: .12; transform: translateX(-1px) scaleX(1.002); }
  to { opacity: .58; transform: translateX(1px) scaleX(1.006); }
}
@keyframes academy-library-light { from { opacity: .08; } to { opacity: .4; } }
/* Password, registration and recovery use copper; WeChat retains its brand green. */
html[data-visual-world="academy"][data-skin="warm"] #authScreen {
  --academy-action: #914624; --academy-action-hover: #79391d;
}
html[data-visual-world="academy"][data-skin="warm"].cv-dark #authScreen {
  --academy-action: #a6532d; --academy-action-hover: #b65b31;
}
html[data-visual-world="academy"][data-skin="warm"] #authScreen .primary-action:not(.wechat-action) {
  background: var(--academy-action) !important;
}
html[data-visual-world="academy"][data-skin="warm"] #authScreen .primary-action:not(.wechat-action):not(.loading) { color: #fff !important; }
@media (hover:hover) {
  html[data-visual-world="academy"][data-skin="warm"] #authScreen .primary-action:not(.wechat-action):not(:disabled):hover { background: var(--academy-action-hover) !important; }
}
/* Paired photographs keep people still while the lighting crossfades. */
html[data-visual-world="academy"] #authScreen {
  position: relative; isolation: isolate; background: transparent !important;
  --panorama-day: url("assets/academy/login/campus-day-v1.webp");
  --panorama-night: url("assets/academy/login/campus-night-v1.webp");
}
html[data-visual-world="academy"][data-skin="warm"] #authScreen {
  --panorama-day: url("assets/academy/login/library-day-v1.webp");
  --panorama-night: url("assets/academy/login/library-night-v1.webp");
}
html[data-visual-world="academy"] .academy-auth-scene {
  position: fixed; inset: 0; overflow: hidden; z-index: -1;
  pointer-events: none; contain: layout paint;
}
html[data-visual-world="academy"] .academy-auth-scene > .academy-scene-layer {
  width: max(100%,177.78vh); height: auto; left: 50%; right: auto;
  transform: translateX(-50%); aspect-ratio: 1672 / 941;
}
html[data-visual-world="academy"] .academy-auth-scene::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,rgb(8 18 28 / 44%),transparent 58%),linear-gradient(90deg,rgb(8 18 28 / 32%),transparent 56%);
  pointer-events: none;
}
html[data-visual-world="academy"] #authScreen .auth-story .academy-welcome-art { display: none !important; }
html[data-visual-world="academy"] #authScreen .auth-story :is(.brand strong,.brand span,.auth-story-copy h1,.auth-story-copy p) {
  color: #fff !important; text-shadow: 0 2px 12px rgb(0 0 0 / 35%);
}
html[data-visual-world="academy"] #authScreen .auth-story { gap: 28px !important; }
html[data-visual-world="academy"] #authScreen .auth-card {
  background: var(--surface) !important;
  border: 0 !important;
  box-shadow: 0 16px 48px rgb(14 28 40 / 16%) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html[data-visual-world="academy"] #authScreen .auth-companions,
html[data-visual-world="academy"] #authScreen .auth-companions canvas {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html[data-visual-world="academy"] .academy-auth-scene .academy-scene-detail {
  clip-path: polygon(72% 64%,100% 65%,100% 69%,76% 67%);
}
html[data-visual-world="academy"][data-skin="warm"] .academy-auth-scene .academy-scene-detail {
  clip-path: polygon(42% 62%,54% 62%,70% 100%,25% 100%);
  filter: brightness(1.2); animation-duration: 8s;
}
html[data-visual-world="academy"] #authScreen .auth-public-footer {
  background: color-mix(in srgb,var(--surface) 94%,transparent) !important;
}
html[data-visual-world="academy"] #workspaceLevel :is(.learning-level,.workspace-class-context) {
  color: var(--ink-2); font-size: 15px; font-weight: 600;
}
html[data-visual-world="academy"] #workspaceLevel :is(.learning-level,.workspace-class-context) > strong { font-size: 16px; font-weight: 750; color: var(--ink); }
html[data-visual-world="academy"] .home-completion {
  align-items: baseline; gap: 8px 16px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); line-height: 1.5;
}
html[data-visual-world="academy"] .home-completion strong { font-size: 15px; font-weight: 600; line-height: inherit; }
html[data-visual-world="academy"] .home-completion b { font-size: 22px; line-height: 1.2; }
html[data-visual-world="academy"] .home-completion .home-refresh-icon-action { align-self: center; }
html[data-visual-world="academy"] .home-overview-bar { gap: 12px 24px; padding-bottom: 16px; }
/* The fixed panorama owns the reading veil, so view boundaries never cut it off. */
html[data-visual-world="academy"] #appShell .main > .view {
  background: transparent !important;
}
html[data-visual-world="academy"] #appShell .sidebar {
  background: color-mix(in srgb,var(--surface) 94%,transparent) !important;
}
html[data-visual-world="academy"].academy-theme-changing #appShell :is(.main > .view,.home-workspace,.home-workspace-icon) {
  transition: background-color var(--academy-theme-time) var(--academy-theme-ease),border-color var(--academy-theme-time) var(--academy-theme-ease),color var(--academy-theme-time) var(--academy-theme-ease) !important;
}
html[data-visual-world="academy"] .academy-skin-picker [data-skin-select="campus"]::before { background-image: url("assets/academy/panorama/campus-day-small-v1.webp"); }
html[data-visual-world="academy"] .academy-skin-picker [data-skin-select="warm"]::before { background-image: url("assets/academy/panorama/warm-day-small-v1.webp"); }
html[data-visual-world="academy"].cv-dark .academy-skin-picker [data-skin-select="campus"]::before { background-image: url("assets/academy/panorama/campus-night-small-v1.webp"); }
html[data-visual-world="academy"].cv-dark .academy-skin-picker [data-skin-select="warm"]::before { background-image: url("assets/academy/panorama/warm-night-small-v1.webp"); }
@media (max-width:1180px) {
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar,
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(.academy-home-masthead:not(:empty)),
  html[data-visual-world="academy"] body[data-view="today"] #appShell .main .topbar:not(:has(.academy-home-masthead:not(:empty))) { min-height: 176px !important; padding-block: 12px 0 !important; row-gap: 8px !important; }
  html[data-visual-world="academy"] .academy-header-scene { top: 44px; right: 0; height: 164px; width: min(56%,400px); }
}
@media (max-width:767px) {
  html[data-visual-world="academy"] {
    --panorama-day: url("assets/academy/panorama/campus-day-small-v1.webp");
    --panorama-night: url("assets/academy/panorama/campus-night-small-v1.webp");
    --panorama-position: 80% top;
  }
  html[data-visual-world="academy"][data-skin="warm"] {
    --panorama-day: url("assets/academy/panorama/warm-day-small-v1.webp");
    --panorama-night: url("assets/academy/panorama/warm-night-small-v1.webp");
    --panorama-position: 78% top;
  }
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar,
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(.academy-home-masthead:not(:empty)),
  html[data-visual-world="academy"] body[data-view="today"] #appShell .main .topbar:not(:has(.academy-home-masthead:not(:empty))) {
    min-height: 0 !important; padding-block: 8px 0 !important; row-gap: 8px !important;
    grid-template-areas: "menu brand find theme" "title title title title" !important;
    grid-template-rows: 44px auto !important;
  }
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(.academy-home-masthead:not([hidden]):not(:empty)) {
    grid-template-areas: "menu brand find theme" "title title title title" "masthead masthead masthead masthead" !important;
    grid-template-rows: 44px auto auto !important;
  }
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar.academy-search-open {
    grid-template-areas: "menu brand find theme" "search search search close" "title title title title" !important;
    grid-template-rows: 44px 44px auto !important;
  }
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar.academy-search-open:has(.academy-home-masthead:not([hidden]):not(:empty)) {
    grid-template-areas: "menu brand find theme" "search search search close" "title title title title" "masthead masthead masthead masthead" !important;
    grid-template-rows: 44px 44px auto auto !important;
  }
  html[data-visual-world="academy"] #appShell .main { row-gap: 12px !important; align-content: start; }
  html[data-visual-world="academy"] #appShell .main > .view.active { margin-top: 0 !important; }
  html[data-visual-world="academy"] #appShell .topbar .topbar-title { padding-top: 0 !important; gap: 0; }
  html[data-visual-world="academy"] .academy-header-scene {
    top: 68px; right: 0; width: min(68%,300px); height: 164px;
  }
  html[data-visual-world="academy"] #workspaceLevel { max-width: 100%; }
  html[data-visual-world="academy"] #workspaceLevel .workspace-class-context::before { display: none; }
  html[data-visual-world="academy"] #authScreen {
    --panorama-day: url("assets/academy/login/campus-day-mobile-v1.webp");
    --panorama-night: url("assets/academy/login/campus-night-mobile-v1.webp");
  }
  html[data-visual-world="academy"][data-skin="warm"] #authScreen {
    --panorama-day: url("assets/academy/login/library-day-mobile-v1.webp");
    --panorama-night: url("assets/academy/login/library-night-mobile-v1.webp");
  }
  html[data-visual-world="academy"] .academy-auth-scene > .academy-scene-layer {
    width: max(100%,56.28lvh); left: 50%; transform: translateX(-50%); aspect-ratio: 941 / 1672;
  }
  html[data-visual-world="academy"] .academy-auth-scene { opacity: var(--scenery-scroll-opacity,1); }
  html[data-visual-world="academy"] .academy-auth-scene::after { background: linear-gradient(rgb(8 18 28 / 60%),rgb(8 18 28 / 35%) 230px,transparent 480px); }
  html[data-visual-world="academy"] #authScreen .auth-story { gap: 12px !important; }
  html[data-visual-world="academy"] #authScreen .auth-story-copy h1 {
    display: flex; flex-wrap: nowrap; justify-content: center; gap: .18em;
    white-space: nowrap; font-size: 28px !important; line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }
  html[data-visual-world="academy"] #authScreen .auth-story-copy h1 br { display: none; }
  html[data-visual-world="academy"] .academy-auth-scene .academy-scene-detail { clip-path: polygon(55% 55%,100% 55%,100% 65%,60% 61%); }
  html[data-visual-world="academy"][data-skin="warm"] .academy-auth-scene .academy-scene-detail { clip-path: polygon(43% 60%,57% 60%,85% 100%,13% 100%); }
  html[data-visual-world="academy"] .academy-scene-detail { animation-duration: 14s; }
  @keyframes academy-water-light {
    from { opacity: .1; transform: translateX(-.5px); }
    to { opacity: .4; transform: translateX(.5px); }
  }
  html[data-visual-world="academy"] #workspaceLevel :is(.learning-level,.workspace-class-context) { font-size: 14px; }
  html[data-visual-world="academy"] #workspaceLevel :is(.learning-level,.workspace-class-context) > strong { font-size: 15px; }
  html[data-visual-world="academy"] .home-completion,
  html[data-visual-world="academy"] .home-completion strong { font-size: 14px; }
  html[data-visual-world="academy"] .home-completion { column-gap: 10px; align-items: center; }
  html[data-visual-world="academy"] .home-completion b { font-size: 20px; }
}
@media (max-width:380px) {
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar,
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(.academy-home-masthead:not(:empty)) { padding-inline: 12px !important; }
}
@media (prefers-reduced-motion:reduce) {
  html[data-visual-world="academy"] .academy-scene-detail { display: none !important; animation: none !important; }
  html[data-visual-world="academy"].academy-theme-changing #appShell :is(.main > .view,.home-workspace,.home-workspace-icon) { transition: none !important; }
}
html[data-visual-world="academy"].cv-reduce-motion .academy-scene-detail { display: none !important; animation: none !important; }
html[data-visual-world="academy"].cv-reduce-motion.academy-theme-changing #appShell :is(.main > .view,.home-workspace,.home-workspace-icon) { transition: none !important; }
@media (forced-colors:active), print {
  html[data-visual-world="academy"] .academy-scenery { display: none !important; }
  html[data-visual-world="academy"] #authScreen { background: Canvas !important; }
  html[data-visual-world="academy"] body::before,
  html[data-visual-world="academy"][data-skin="warm"] body::before { background: Canvas !important; }
  html[data-visual-world="academy"] .academy-night-canvas { display: none !important; }
  html[data-visual-world="academy"] #appShell :is(.main > .view,.sidebar) { background: Canvas !important; }
}

/* ==== dot-companion.css ==== */
/* Isolated Dot extension. Load after the current Academy styles; no global reset. */
#avdot-panel, #avdot-launcher {
  --avdot-purple: #544bc4;
  --avdot-purple-dark: #3a328f;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing: 0;
  box-sizing: border-box;
}
#avdot-panel *, #avdot-panel *::before, #avdot-panel *::after, #avdot-launcher * { box-sizing: border-box; letter-spacing: 0; }
#avdot-panel [hidden], #avdot-launcher[hidden] { display: none !important; }
#avdot-panel:not([open]) { display: none !important; }
#avdot-panel {
  position: fixed; inset: var(--avdot-top, 0px) 0 auto auto;
  margin: 0; width: min(424px, 100%); max-width: 100%;
  height: var(--avdot-height, 100dvh); max-height: var(--avdot-height, 100dvh);
  padding: 0; border: 0; border-radius: 0;
  color: var(--ink, #17264a); background: var(--surface, #fff);
  box-shadow: var(--shadow-lg, -8px 8px 30px rgb(0 0 0 / 18%));
  z-index: 1000; overflow: hidden;
}
#avdot-panel[open] { display: flex; flex-direction: column; }
#avdot-panel::backdrop { background: rgb(0 0 0 / 20%); }
#avdot-panel :is(h2,h3,p) { margin: 0; padding: 0; color: inherit; background: none; }
#avdot-panel .avdot-head {
  display: flex; flex: none; align-items: center; gap: 8px; padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top)); border-bottom: 1px solid var(--hairline, #d7e4f1);
  background: var(--surface, #fff); position: relative; z-index: 2;
}
#avdot-panel .avdot-heading { flex: 1; min-width: 0; padding-left: 4px; }
#avdot-panel .avdot-heading h2 { font: 650 20px/1.35 var(--font, sans-serif) !important; }
#avdot-panel .avdot-heading p { color: var(--muted, #40536b); font-size: 12px; line-height: 1.5; }
#avdot-panel .avdot-button, #avdot-launcher.avdot-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px !important; width: 44px; height: 44px !important; min-height: 44px !important;
  flex: 0 0 auto; margin: 0 !important; padding: 0 !important;
  font: 500 14px/1.45 var(--font, sans-serif); letter-spacing: 0 !important;
  color: var(--ink-2, #334767) !important; background: transparent !important;
  border: 0 !important; border-radius: 8px !important; box-shadow: none !important;
  cursor: pointer; touch-action: manipulation; transform: none;
  transition: background-color 150ms ease, color 150ms ease;
}
#avdot-launcher.avdot-button:not([hidden]) { display: inline-flex !important; }
#avdot-panel .avdot-button:hover:not(:disabled):not(.avdot-avatar) { background: var(--surface-2, #f2f7fc) !important; }
#avdot-panel .avdot-button:disabled { opacity: .45; cursor: default; }
#avdot-panel .avdot-button svg { width: 19px; height: 19px; flex: none; }
#avdot-panel :is(button,select,textarea,summary):focus:not(:focus-visible), #avdot-launcher:focus:not(:focus-visible) { outline: none !important; }
#avdot-panel :is(button,select,textarea,summary):focus-visible, #avdot-launcher:focus-visible { outline: 3px solid var(--dot-shell-accent, var(--avdot-purple)) !important; outline-offset: 2px !important; }
#avdot-panel .avdot-button.avdot-avatar, #avdot-launcher.avdot-avatar,
#avdot-panel .avdot-button.avdot-avatar:is(:hover,:active,:focus), #avdot-launcher.avdot-avatar:is(:hover,:active,:focus) {
  position: relative; background: var(--avdot-purple) !important; color: white !important;
  border-radius: 50% !important; width: 44px !important; height: 44px !important;
  transition: none !important;
}
.avdot-avatar .avdot-eyes { position: absolute; display: flex; gap: 7px; left: 14px; top: 18px; }
.avdot-avatar .avdot-eyes::before, .avdot-avatar .avdot-eyes::after { content: ""; width: 4px; height: 7px; border-radius: 3px; background: white; }
.avdot-avatar[data-state="idle"] .avdot-eyes { animation: avdot-glance 25s ease-in-out infinite; }
.avdot-avatar[data-state="idle"] .avdot-eyes::before, .avdot-avatar[data-state="idle"] .avdot-eyes::after { animation: avdot-blink 9s ease-in-out infinite; }
.avdot-avatar[data-state="thinking"] .avdot-eyes { transform: translate(2px, -2px); }
.avdot-avatar[data-state="thinking"] .avdot-eyes::before, .avdot-avatar[data-state="thinking"] .avdot-eyes::after { height: 5px; }
.avdot-avatar[data-state="listening"] .avdot-eyes { top: 16px; }
.avdot-avatar[data-state="listening"] .avdot-eyes::before, .avdot-avatar[data-state="listening"] .avdot-eyes::after { height: 10px; }
#avdot-panel .avdot-avatar[data-state="speaking"] { animation: avdot-speaking 900ms ease-in-out infinite alternate; }
.avdot-avatar:not([data-motion="active"]), .avdot-avatar:not([data-motion="active"]) .avdot-eyes,
.avdot-avatar:not([data-motion="active"]) .avdot-eyes::before, .avdot-avatar:not([data-motion="active"]) .avdot-eyes::after { animation-play-state: paused !important; }
@keyframes avdot-blink { 0%,38%,40%,100% { transform: scaleY(1); } 39% { transform: scaleY(.14); } }
@keyframes avdot-glance { 0%,45%,52%,100% { transform: translate(0,0); } 47%,50% { transform: translate(2px,-1px); } }
@keyframes avdot-speaking { from { transform: translateY(0); } to { transform: translateY(-2px); } }
#avdot-panel .avdot-context { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; background: var(--surface-2, #f2f7fc); font-size: 12px; line-height: 1.6; flex: none; }
#avdot-panel .avdot-level { font-weight: 700; color: var(--accent-ink, #0053bd); flex: none; }
#avdot-panel .avdot-context > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--muted, #40536b); }
#avdot-panel .avdot-scroll { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#avdot-panel .avdot-empty { padding: 32px 24px; }
#avdot-panel .avdot-empty h3 { font: 600 21px/1.45 var(--font, sans-serif) !important; max-width: 22ch; margin-bottom: 24px; overflow-wrap: anywhere; }
#avdot-panel .avdot-suggestions { display: grid; gap: 4px; }
#avdot-panel .avdot-suggestion { width: 100%; height: auto !important; text-align: left; justify-content: flex-start; padding: 12px 0 !important; border-radius: 0 !important; border-bottom: 1px solid var(--hairline-soft, #e7eef6) !important; overflow-wrap: anywhere; }
#avdot-panel .avdot-continue { width: auto; margin-top: 20px !important; color: var(--accent-ink, #0053bd) !important; }
#avdot-panel .avdot-notice { margin-top: 18px; color: var(--muted, #40536b); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#avdot-panel .avdot-log { padding: 20px; }
#avdot-panel .avdot-log:empty { display: none; }
#avdot-panel .avdot-turn { margin-bottom: 28px; }
#avdot-panel .avdot-message { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
#avdot-panel .avdot-message p { white-space: pre-wrap; }
#avdot-panel .avdot-speaker { display: block; font-size: 12px; /* 小修-20261125 原11px */ font-weight: 650; color: var(--muted, #40536b); margin-bottom: 5px; }
#avdot-panel .avdot-user { margin-bottom: 20px; padding: 12px 14px; background: var(--surface-2, #f2f7fc); border-radius: 8px; font-size: 15px; }
#avdot-panel .avdot-assistant { padding-inline: 2px; }
#avdot-panel .avdot-replay { margin: 6px 0 0 -10px !important; color: var(--accent-ink, #0053bd) !important; }
#avdot-panel .avdot-error { padding-top: 12px; font-size: 13px; line-height: 1.6; color: var(--red-ink, #b22a20); overflow-wrap: anywhere; }
#avdot-panel .avdot-bottom { flex: none; padding: 8px 16px max(14px, env(safe-area-inset-bottom)); background: var(--surface, #fff); border-top: 1px solid var(--hairline-soft, #e7eef6); }
#avdot-panel .avdot-follow { display: flex; gap: 16px; padding-bottom: 4px; }
#avdot-panel .avdot-follow .avdot-button { width: auto; height: 36px !important; min-height: 36px !important; font-size: 12px; color: var(--accent-ink, #0053bd) !important; }
#avdot-panel .avdot-composer { border: 1px solid var(--hairline, #d7e4f1); border-radius: 8px; padding: 8px; background: var(--surface, #fff); }
#avdot-panel textarea {
  display: block; width: 100%; height: 68px; min-height: 48px !important; max-height: 112px;
  padding: 4px 6px !important; resize: none; overflow-y: auto;
  color: var(--ink, #17264a) !important; background: transparent !important; caret-color: currentColor;
  border: 0 !important; border-radius: 2px !important; box-shadow: none !important;
  font: 400 16px/1.6 var(--font, sans-serif) !important;
}
#avdot-panel textarea::placeholder { color: var(--muted, #40536b); opacity: 1; }
/* Text fields and an already-focused dialog control can retain :focus-visible after a tap. */
#avdot-panel[data-focus-input="pointer"] :is(button,select,textarea,summary):focus,
#avdot-launcher[data-focus-input="pointer"]:focus { outline: none !important; }
#avdot-panel .avdot-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 4px; }
#avdot-panel .avdot-toolbar .avdot-mic { width: auto; padding: 0 12px !important; color: #fff !important; background: var(--avdot-purple) !important; }
#avdot-panel .avdot-toolbar .avdot-mic:hover:not(:disabled) { background: var(--avdot-purple-dark) !important; }
#avdot-panel .avdot-composer.avdot-has-text .avdot-mic { color: var(--avdot-purple-dark) !important; background: var(--surface-2, #f2f7fc) !important; }
#avdot-panel .avdot-toolbar .avdot-send { margin-left: auto !important; color: #fff !important; background: var(--academy-action, #076be8) !important; }
#avdot-panel .avdot-toolbar .avdot-send:hover:not(:disabled) { background: var(--academy-action-hover, #0053bd) !important; }
#avdot-panel .avdot-composer:not(.avdot-has-text) .avdot-send { color: var(--ink-2, #334767) !important; background: transparent !important; }
#avdot-panel .avdot-toolbar [aria-pressed="true"] { color: var(--accent-ink, #0053bd) !important; background: var(--accent-soft, #e8f2ff) !important; }
#avdot-panel .avdot-toolbar .avdot-mic[aria-pressed="true"],
#avdot-panel .avdot-toolbar .avdot-mic[aria-pressed="true"]:hover:not(:disabled) { color: var(--red-ink, #b22a20) !important; background: var(--red-soft, #fff0f0) !important; }
#avdot-panel .avdot-record-time { order: 5; flex: 1 0 100%; color: var(--muted, #40536b); font-size: 12px; /* 小修-20261125 原11px */ font-variant-numeric: tabular-nums; white-space: nowrap; }
#avdot-panel .avdot-options { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; }
#avdot-panel .avdot-options label { display: flex; align-items: center; gap: 4px; color: var(--muted, #40536b); font-size: 12px; /* 小修-20261125 原11px */ min-width: 0; }
#avdot-panel select { width: auto !important; min-width: 0; max-width: 125px; height: 36px !important; min-height: 36px !important; padding: 4px 20px 4px 6px !important; border: 0 !important; border-radius: 4px !important; background-color: var(--surface, #fff) !important; color: var(--ink-2, #334767) !important; box-shadow: none !important; font: 400 12px/1.4 var(--font, sans-serif) !important; }
#avdot-panel .avdot-status { padding: 6px 2px 0; color: var(--muted, #40536b); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#avdot-panel .avdot-remaining, #avdot-panel .avdot-retry { width: auto; height: 32px !important; min-height: 32px !important; color: var(--accent-ink, #0053bd) !important; font-size: 12px; line-height: 1.5; }
#avdot-panel .avdot-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The new 44px column exists only while a permitted student's entry is visible. */
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(#avdot-launcher:not([hidden])) {
    grid-template-columns: 44px minmax(100px,1fr) minmax(100px,240px) 44px 44px !important;
    grid-template-areas: "menu brand search dot theme" "title title title title title" "masthead masthead masthead masthead masthead" !important;
  }
  #avdot-launcher { grid-area: dot; }
}
@media (max-width: 767px) {
  #avdot-panel { width: 100%; box-shadow: none; }
  #avdot-panel .avdot-head { padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
  #avdot-panel .avdot-heading h2 { font-size: 18px !important; }
  #avdot-panel .avdot-empty { padding: 28px 20px; }
  #avdot-panel .avdot-context { padding-inline: 16px; }
  #avdot-panel .avdot-bottom { padding-inline: 12px; }
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar:has(#avdot-launcher:not([hidden])) {
    grid-template-columns: 44px minmax(0,1fr) 44px 44px 44px !important;
    grid-template-areas: "menu brand find dot theme" "title title title title title" "masthead masthead masthead masthead masthead" !important;
    grid-template-rows: 44px auto auto !important;
  }
  html[data-visual-world="academy"] body[data-view] #appShell .main .topbar.academy-search-open:has(#avdot-launcher:not([hidden])) {
    grid-template-areas: "menu brand find dot theme" "search search search search close" "title title title title title" "masthead masthead masthead masthead masthead" !important;
    grid-template-rows: 44px 44px auto auto !important;
  }
  html[data-visual-world="academy"] #appShell .topbar:has(#avdot-launcher:not([hidden])) .academy-mobile-brand { white-space: normal; overflow-wrap: normal; }
  #avdot-launcher { grid-area: dot; }
}
@media (max-height: 500px) {
  #avdot-panel .avdot-head { padding-block: 6px; }
  #avdot-panel .avdot-context { padding-block: 4px; }
  #avdot-panel .avdot-bottom { padding-block: 4px; }
  #avdot-panel textarea { height: 48px; }
  #avdot-panel .avdot-options { padding-top: 2px; }
  #avdot-panel .avdot-follow { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #avdot-panel *, #avdot-panel *::before, #avdot-panel *::after, #avdot-launcher, #avdot-launcher *, #avdot-launcher *::before, #avdot-launcher *::after { animation: none !important; transition: none !important; }
}
html.cv-reduce-motion #avdot-panel *, html.cv-reduce-motion #avdot-panel *::before, html.cv-reduce-motion #avdot-panel *::after,
html.cv-reduce-motion #avdot-launcher, html.cv-reduce-motion #avdot-launcher *, html.cv-reduce-motion #avdot-launcher *::before, html.cv-reduce-motion #avdot-launcher *::after { animation: none !important; transition: none !important; }
@media (forced-colors: active) {
  #avdot-panel { border: 1px solid CanvasText; }
  #avdot-panel .avdot-avatar, #avdot-launcher { forced-color-adjust: none; }
  #avdot-panel :is(button,select,textarea,summary):focus-visible, #avdot-launcher:focus-visible,
  #avdot-panel[data-focus-input="pointer"] :is(button,select,textarea,summary):focus,
  #avdot-launcher[data-focus-input="pointer"]:focus { outline: 3px solid Highlight !important; outline-offset: 2px !important; }
}

/* The learning shell docks this exact dialog; no second conversation or audio node. */
#avdot-panel.avdot-inline {
  position: relative; inset: auto; width: 100%; max-width: none;
  height: 100%; max-height: none; min-height: 0; margin: 0;
  background: transparent; color: var(--dot-shell-ink, #292844); box-shadow: none;
  z-index: auto; overflow: visible;
}
#avdot-panel.avdot-inline .avdot-head { border: 0; background: transparent; padding: 12px 0 10px; justify-content: center; flex-wrap: wrap; gap: 12px; }
#avdot-panel.avdot-inline .avdot-heading { flex: initial; padding: 0; }
#avdot-panel.avdot-inline .avdot-heading p { display: none; }
#avdot-panel.avdot-inline #avdot-close { display: none; }

#avdot-panel.avdot-inline .avdot-context { justify-content: center; padding: 6px 0; background: transparent; }
#avdot-panel.avdot-inline .avdot-scroll { flex: 1 1 auto; overflow: auto; max-height: min(46vh, 480px); }
#avdot-panel.avdot-inline .avdot-empty { padding: 24px 8px 20px; text-align: center; }
#avdot-panel.avdot-inline .avdot-empty h3 { max-width: none; margin-bottom: 20px; font-size: 30px !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: 0; }
#avdot-panel.avdot-inline .avdot-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#avdot-panel.avdot-inline .avdot-suggestion { width: auto; min-width: 0 !important; justify-content: center; text-align: center; color: var(--dot-shell-accent-ink) !important; background: var(--dot-shell-soft) !important; border: 0 !important; border-radius: 10px !important; max-width: 100%; padding: 10px 14px !important; height: auto !important; line-height: 1.5; }
#avdot-panel.avdot-inline .avdot-notice { margin-top: 12px; font-size: 12px; /* 小修-20261125 原11px */ }
#avdot-panel.avdot-inline .avdot-log { padding: 20px 12px 8px 2px; }
#avdot-panel.avdot-inline .avdot-turn { margin-bottom: 28px; }
#avdot-panel.avdot-inline .avdot-user { width: fit-content; max-width: 90%; margin-left: auto; padding: 12px 16px; border-radius: 12px; background: var(--dot-shell-soft); color: var(--dot-shell-ink); font-size: 15px; }
#avdot-panel.avdot-inline .avdot-bottom { padding: 8px 0 max(12px, env(safe-area-inset-bottom)); border: 0; background: transparent; }
#avdot-panel.avdot-inline .avdot-composer { border: 0; background: var(--dot-shell-surface); border-radius: 16px; padding: 12px; box-shadow:0 8px 28px rgb(41 40 68 / 6%); }
#avdot-panel.avdot-inline .avdot-send { background: #544bc4 !important; }
#avdot-panel.avdot-inline .avdot-level { color: #49409f; }
#avdot-panel.avdot-inline .avdot-remaining { display: none; }
#avdot-panel .avdot-preferences { margin: 4px 0 0; color: var(--muted,#40536b); font-size: 12px; }
#avdot-panel .avdot-preferences > summary { cursor: pointer; min-height: 36px; width: fit-content; padding: 8px 2px; }
#avdot-panel .avdot-preferences:not([open]) .avdot-options { display: none; }
#avdot-panel.avdot-inline .avdot-preferences:not([open]) { display: none; }
body[data-dot-shell="guided"] #avdot-panel.avdot-inline :is(.avdot-context,.avdot-notice,.avdot-preferences,.avdot-remaining) { display: none !important; }
@media (forced-colors: active) { #avdot-panel.avdot-inline .avdot-composer { border-color: CanvasText; } }

/* A saved learning event is distinct from words typed by the student. */
.avdot-event { color: var(--avdot-muted, #6c7283); background: transparent; font-size: .85rem; }
.avdot-event .avdot-speaker { font-weight: 500; }

/* Keep the companion present while the conversation itself stays uncluttered. */
#avdot-panel .avdot-head-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
#avdot-panel .avdot-head-tools .avdot-button { width: auto; padding-inline: 10px !important; }
#avdot-panel.avdot-inline .avdot-head-tools { flex-basis: 100%; order: 3; justify-content: flex-end; }
#avdot-panel.avdot-inline .avdot-heading { display: none; }
#avdot-panel.avdot-inline .avdot-head > .avdot-avatar { width: 76px !important; height: 76px !important; box-shadow: inset 0 -5px 12px rgb(32 23 102 / 16%), 0 10px 22px rgb(56 44 125 / 12%) !important; }
#avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes { left: 26px; top: 30px; gap: 12px; }
#avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes::before,#avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes::after { width: 6px; height: 11px; }
#avdot-panel.avdot-inline .avdot-head > .avdot-avatar[data-state="listening"] .avdot-eyes { top: 27px; }
#avdot-panel.avdot-inline .avdot-head > .avdot-avatar[data-state="listening"] .avdot-eyes::before,#avdot-panel.avdot-inline .avdot-head > .avdot-avatar[data-state="listening"] .avdot-eyes::after { height: 15px; }
#avdot-panel.avdot-inline .avdot-head > .avdot-avatar::after { content: none; }
#avdot-panel.avdot-inline .avdot-head-tools :is(button,summary) { color: var(--dot-shell-muted) !important; font-size: 12px; }
#avdot-panel.avdot-inline .avdot-level { color: var(--dot-shell-accent-ink); }
#avdot-panel.avdot-inline .avdot-context > span:last-child,#avdot-panel.avdot-inline .avdot-notice,#avdot-panel.avdot-inline .avdot-speaker,#avdot-panel.avdot-inline .avdot-state { color: var(--dot-shell-muted); }
#avdot-panel.avdot-inline textarea { color: var(--dot-shell-ink) !important; }
#avdot-panel.avdot-inline textarea::placeholder { color: var(--dot-shell-muted); }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head { justify-content: flex-start; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head > .avdot-avatar { width: 44px !important; height: 44px !important; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head > .avdot-avatar .avdot-eyes { left: 14px; top: 18px; gap: 7px; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head > .avdot-avatar .avdot-eyes::before,#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head > .avdot-avatar .avdot-eyes::after { width: 4px; height: 7px; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head-tools { flex-basis: auto; flex: 1; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-context { justify-content: flex-start; padding-block: 8px 12px; border-bottom: 0; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-scroll { max-height: min(50dvh,540px); }
#avdot-panel.avdot-inline .avdot-toolbar .avdot-button { border-radius: 10px !important; }
#avdot-panel.avdot-inline .avdot-toolbar .avdot-mic { padding: 0 14px !important; }
@media(max-width:767px) {
  #avdot-panel .avdot-head { flex-wrap: wrap; }
  #avdot-panel .avdot-head-tools { flex-basis: 100%; }
  #avdot-panel.avdot-inline .avdot-empty { padding: 20px 0 16px; }
  #avdot-panel.avdot-inline .avdot-empty h3 { font-size: 24px !important; }
  #avdot-panel.avdot-inline .avdot-composer { padding: 8px; }
  #avdot-panel.avdot-inline .avdot-log { padding-right: 4px; }
  #avdot-panel.avdot-inline .avdot-head { padding-top: 10px; }
  #avdot-panel.avdot-inline .avdot-head-tools { gap: 4px; }
  #avdot-panel.avdot-inline[data-conversation="true"] .avdot-head-tools { flex-basis: auto; }
  #avdot-panel.avdot-inline .avdot-message { font-size: 16px; line-height: 1.7; }
}

body[data-dot-shell="guided"] #avdot-panel.avdot-inline .avdot-toolbar .avdot-send:not(:disabled) { background: #544bc4 !important; color: #fff !important; }
body[data-dot-shell="guided"] #avdot-panel.avdot-inline .avdot-toolbar .avdot-send:disabled { background: transparent !important; color: var(--dot-shell-muted) !important; }
body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #avdot-panel.avdot-inline .avdot-empty h3 { font-size: 24px !important; }
@media(max-width:359px) {
  #avdot-panel .avdot-toolbar .avdot-button.avdot-mic { padding-inline: 6px !important; gap: 4px; font-size: 13px; }
}

#avdot-panel.avdot-inline .avdot-head-tools { display:none; }
#avdot-panel.avdot-inline .avdot-user { border-radius:16px 16px 4px 16px; }
#avdot-panel.avdot-inline .avdot-user .avdot-speaker { display:none; }
#avdot-panel.avdot-inline .avdot-assistant .avdot-speaker { margin-bottom:8px; color:var(--dot-shell-accent-ink); }
#avdot-panel.avdot-inline .avdot-status { color:var(--dot-shell-muted); min-height:24px; }
#avdot-panel.avdot-inline .avdot-follow .avdot-button { color:var(--dot-shell-accent-ink) !important; }
#avdot-panel .avdot-assistant { animation:avdot-answer-in 260ms cubic-bezier(.2,.8,.2,1); }
@keyframes avdot-answer-in { from { opacity:0;transform:translateY(6px); } to { opacity:1;transform:translateY(0); } }
@media(forced-colors:active) { #avdot-panel.avdot-inline .avdot-composer { border:1px solid CanvasText; } }

#avdot-panel.avdot-inline .avdot-scroll { scroll-padding-block:16px; }
#avdot-panel.avdot-inline .avdot-bottom #dot-shell-choices { padding-block:8px 14px; }
#dot-shell-home-view:has(.avdot-inline[data-conversation="true"]) {
  height:calc(100dvh - 120px); min-height:480px; margin:12px auto 28px; padding-block:0;
}
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-head { padding-top:0; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-scroll { flex:1 1 0; max-height:none; }
#avdot-panel.avdot-inline[data-conversation="true"] .avdot-bottom { padding-top:0; }
#dot-shell-home-view:has(.avdot-inline[data-conversation="true"]) #dot-shell-next-row { display:none; }
body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #dot-shell-home-view {
  height:calc(100dvh - 108px); max-height:none; min-height:460px; top:12px; padding-block:12px 0; margin:0;
}
@media(max-width:767px) {
  #dot-shell-home-view:has(.avdot-inline[data-conversation="true"]) { height:calc(100dvh - 148px); min-height:460px; margin-block:8px 16px; }
  #dot-shell-choices { display:flex; flex-wrap:wrap; }
  #dot-shell-choices > .dot-shell-choice { flex:1 1 140px; width:auto; min-width:0; }
  #dot-shell-choices .dot-shell-more-choices { flex-basis:100%; }
  #avdot-panel.avdot-inline .avdot-toolbar .avdot-button { flex-shrink:0; }
}
#dot-shell-home-view:has(.avdot-inline[data-conversation="true"]) { display:flex; flex-direction:column; }
#dot-shell-home-view:has(.avdot-inline[data-conversation="true"]) #dot-shell-dock { flex:1; min-height:0; }

/* 5.8.21 small-screen conversation: once a chat has started, learning choices collapse into one
   scrollable row so the conversation itself keeps real height on 320-414px phones. */
@media (max-width:767px) {
  #avdot-panel.avdot-inline[data-conversation="true"] .avdot-scroll { min-height: min(40dvh, 300px); }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices {
    display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
    padding-block: 4px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices::-webkit-scrollbar { display: none; }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices > .dot-shell-choice,
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices .dot-shell-extra-choices > .dot-shell-choice {
    flex: 0 0 auto; width: auto; max-width: 72vw; min-height: 40px; padding: 8px 14px; gap: 6px; border-radius: 999px !important;
  }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices .dot-shell-choice-title {
    font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal;
  }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices .dot-shell-choice-arrow { display: none; }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices .dot-shell-more-choices { flex: 0 0 auto; flex-basis: auto; }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices .dot-shell-more-choices > summary {
    min-height: 40px; padding: 8px 10px; margin: 0; white-space: nowrap;
  }
  #avdot-panel.avdot-inline[data-conversation="true"] #dot-shell-choices .dot-shell-extra-choices { display: flex; flex-wrap: nowrap; gap: 8px; }
  #avdot-panel.avdot-inline[data-conversation="true"] textarea { height: 44px; min-height: 44px; }
}
@media (max-width:767px) and (max-height:700px) {
  #dot-shell-home-view:has(.avdot-inline[data-conversation="true"]) { min-height: 0; height: calc(100dvh - 132px); }
  #avdot-panel.avdot-inline[data-conversation="true"] .avdot-scroll { min-height: min(34dvh, 240px); }
}

/* 5.10.3-dot-sheet-v1：手机半屏用的「收起」和细条只在半屏时出现；「在原文里看」按钮和原文高亮 */
#avdot-panel .avdot-min-btn, #avdot-panel .avdot-peek { display: none !important; }
#avdot-panel .avdot-source {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 34px; padding: 4px 12px 4px 10px;
  border: 1px solid var(--accent-edge, #c9cff0); border-radius: 999px; background: transparent; color: var(--accent-ink, #3a328f);
  font: 600 13px/1.2 var(--font, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#avdot-panel .avdot-source svg { width: 16px; height: 16px; flex: none; }
#avdot-panel .avdot-source:active { background: var(--accent-soft-2, #eef0fb); }
::highlight(avdot-source) { background-color: rgb(255 196 61 / 55%); color: inherit; }
.avdot-source-box { position: absolute; z-index: 20; pointer-events: none; border-radius: 3px; background: rgb(255 196 61 / 42%); }
@media (forced-colors: active) { ::highlight(avdot-source) { background-color: Highlight; color: HighlightText; } }

/* Dot 专属记忆（5.10.3-dot-memory-v1）：读回的旧对话按日期分隔；2 小时以前的对话后面写一句「以上是之前的对话」 */
#avdot-panel .avdot-day { margin: 0 0 12px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--avdot-muted, #6c7283); letter-spacing: .02em; }
#avdot-panel .avdot-earlier { margin: 10px 0 0; }
#avdot-panel .avdot-earlier::before, #avdot-panel .avdot-earlier::after { content: ''; display: inline-block; width: 28px; height: 1px; margin: 0 8px; vertical-align: middle; background: currentColor; opacity: .35; }

/* ==== dot-learning-shell.css ==== */
/* One calm learning surface; original learning views keep their own layout and handlers. */
body {
  --dot-shell-ink: #292844; --dot-shell-muted: #626178; --dot-shell-canvas: #f8f7f4;
  --dot-shell-surface: #ffffff; --dot-shell-soft: #eeecf6; --dot-shell-line: #e4e1eb;
  --dot-shell-accent: #544bc4; --dot-shell-accent-ink: #42399c;
}
html.cv-dark body {
  --dot-shell-ink: #eeedf7; --dot-shell-muted: #bbb8cf; --dot-shell-canvas: #191922;
  --dot-shell-surface: #252530; --dot-shell-soft: #31303f; --dot-shell-line: #464358;
  --dot-shell-accent: #b1aaff; --dot-shell-accent-ink: #c5beff;
}
#dot-shell-bar, #dot-shell-home-view, #dot-shell-tool-bar, #dot-shell-menu, #dot-shell-notice, #dot-shell-return-entry {
  font-family: var(--font, sans-serif); box-sizing: border-box; color: var(--dot-shell-ink);
}
:is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) * { box-sizing: border-box; }
:is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-notice,#dot-shell-return-entry)[hidden] { display: none !important; }
:is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) button:where(:not(.avdot-button)), #dot-shell-return-entry {
  width: auto; min-width: 44px; min-height: 44px; height: auto; margin: 0; padding: 10px 14px;
  border: 0 !important; border-radius: 10px !important; box-shadow: none !important;
  color: var(--dot-shell-ink) !important; background: transparent !important; font: 500 14px/1.5 var(--font, sans-serif); cursor: pointer;
  letter-spacing: 0; transform: none; touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
:is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) button:where(:not(.avdot-button)):hover:not(:disabled),#dot-shell-return-entry:hover { background: var(--dot-shell-soft) !important; }
:is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) :is(button,summary):focus-visible,#dot-shell-return-entry:focus-visible { outline: 3px solid var(--dot-shell-accent) !important; outline-offset: 3px; }
:is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) button:where(:not(.avdot-button)):disabled { opacity: .5; cursor: default; }
:is(#dot-shell-bar,#dot-shell-home-view) button.dot-shell-primary { background: #544bc4 !important; color: #fff !important; padding-inline: 20px; font-weight: 600; }
:is(#dot-shell-bar,#dot-shell-home-view) button.dot-shell-primary:hover:not(:disabled) { background: #41399c !important; }
html body[data-dot-shell="guided"] { background: var(--dot-shell-canvas) !important; }
html body[data-dot-shell="guided"]::before,body[data-dot-shell="guided"] .academy-night-canvas,body[data-dot-shell="guided"] .academy-header-scene { display: none !important; }
html[data-visual-world] body[data-dot-shell="guided"] #appShell,body[data-dot-shell="guided"] #appShell {
  display: grid !important; grid-template-columns: minmax(0,1fr) !important; grid-template-rows: auto 1fr;
  gap: 0 !important; width: min(1600px,100%) !important; min-height: 100dvh; height: auto; margin: 0 auto !important; padding: 0 36px !important;
  background: var(--dot-shell-canvas) !important; overflow: visible !important;
}
body[data-dot-shell="guided"] #appShell.hidden { display: none !important; }
body[data-dot-shell="guided"] #appShell > .sidebar,body[data-dot-shell="guided"] .mobile-tabbar,body[data-dot-shell="guided"] .cv-mobile-tabbar { display: none !important; }
#dot-shell-bar { display: flex; align-items: center; align-self: start; gap: 16px; grid-column: 1/-1; padding: max(18px,env(safe-area-inset-top)) 0 18px; min-width: 0; position: sticky; top: 0; z-index: 60; background: var(--dot-shell-canvas); border-bottom: 1px solid var(--dot-shell-line); }
#dot-shell-bar .dot-shell-brand { display: inline-flex; align-items: center; gap: 9px; padding: 4px 0; white-space: nowrap; text-align: left; }
#dot-shell-bar .dot-shell-brand strong { font: 700 19px/1.3 var(--font, sans-serif); color: var(--accent-ink); }
#dot-shell-bar .dot-shell-brand .brand-mark { display: block; width: 36px; height: 36px; flex: none; background: none !important; box-shadow: none !important; }
#dot-shell-bar .dot-shell-brand svg { display: block; width: 100%; height: 100%; }
.dot-shell-progress { color: var(--dot-shell-muted); font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.dot-shell-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.dot-shell-nav button { white-space: nowrap; }
#dot-shell-home-view { width: min(720px,100%); margin: auto; padding: 32px 0 40px; min-width: 0; }
.dot-shell-resume { color: var(--dot-shell-muted); font-size: 12px; line-height: 1.6; text-align: center; margin: 0 0 8px; }
#dot-shell-resume:empty { display: none; }
#dot-shell-dock { min-width: 0; }
#dot-shell-next-row { display: flex; justify-content: center; margin-top: 10px; }
#dot-shell-next-row[hidden] { display: none; }
#dot-shell-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding-top: 24px; }
#dot-shell-choices[hidden] { display: none; }
#dot-shell-choices .dot-shell-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px;
  text-decoration: none; text-align: left; background: var(--dot-shell-soft) !important; border: 0 !important; border-radius: 8px !important;
}
#dot-shell-choices .dot-shell-choice:hover:not(:disabled) { background: var(--dot-shell-line) !important; }
#dot-shell-choices:has(> .dot-shell-choice):not(:has(> .dot-shell-choice:nth-child(2))) { grid-template-columns: minmax(0,1fr); }
#dot-shell-choices:has(> .dot-shell-choice:nth-child(2)):not(:has(> .dot-shell-choice:nth-child(3))) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dot-shell-choice-copy { display: grid; gap: 5px; min-width: 0; }
.dot-shell-choice-title { color: var(--dot-shell-ink); font-size: 14px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.dot-shell-choice-arrow { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; width: 18px; height: 18px; flex: none; color: var(--dot-shell-accent-ink); }
.dot-shell-more-choices { grid-column: 1/-1; min-width: 0; color: var(--dot-shell-muted); font-size: 13px; }
.dot-shell-more-choices > summary { cursor: pointer; width: fit-content; min-height: 44px; padding: 12px 6px; margin-inline: auto; border-radius: 8px; }
.dot-shell-more-choices[open] > summary { margin-bottom: 8px; }
.dot-shell-extra-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.dot-shell-choice-group { grid-column: 1/-1; min-width: 0; }
.dot-shell-choice-group h3 { margin: 16px 0 10px; font: 600 13px/1.5 var(--font, sans-serif); color: var(--dot-shell-muted); }
.dot-shell-choice-group-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
body[data-dot-shell="guided"][data-dot-tool="closed"] #appShell > .main { display: none !important; }
html[data-visual-world] body[data-dot-shell="guided"][data-dot-tool="open"] #appShell > .main,body[data-dot-shell="guided"][data-dot-tool="open"] #appShell > .main {
  display: block !important; padding: 0 0 32px !important; min-width: 0; width: 100%; height: auto !important; overflow: visible !important; background: transparent !important;
}
body[data-dot-shell="guided"] #appShell > .main > :is(.hero-grid,.metric-grid,.topbar,.global-search-panel) { display: none !important; }
body[data-dot-shell="guided"] #appShell > .main > .view.active { margin: 0 !important; width: 100% !important; min-width: 0; }
#dot-shell-tool-bar { display: flex; position: sticky; top: var(--dot-shell-header-height,81px); z-index: 30; gap: 10px; align-items: center; min-height: 64px; padding: 10px 0; background: var(--dot-shell-canvas); }
#dot-shell-tool-title { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#dot-shell-save { margin-left: auto; color: var(--dot-shell-muted); font-size: 12px; line-height: 1.5; }
body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="false"] #dot-shell-home-view { display: none; }
html[data-visual-world] body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #appShell,body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #appShell {
  grid-template-columns: minmax(280px,.64fr) minmax(0,1.36fr) !important; column-gap: 40px !important;
}
/* Match the 1000px landscape branch in dot-learning-shell.js, including touch.
   A 1024px tablet can expose only 1015 CSS pixels once the page scrolls. */
@media (min-width: 1000px) and (max-width: 1199px) and (orientation: landscape) {
  html[data-visual-world] body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #appShell,
  body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #appShell {
    grid-template-columns: minmax(320px,.7fr) minmax(0,1.3fr) !important;
    column-gap: 24px !important;
  }
}
body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] #dot-shell-home-view { align-self: start; position: sticky; top: var(--dot-shell-header-height,81px); margin: 0; padding: 24px 0; max-height: calc(100dvh - var(--dot-shell-header-height,81px) - 16px); overflow: auto; scrollbar-gutter: stable; }
body[data-dot-shell="guided"][data-dot-tool="open"][data-dot-wide="true"] :is(#dot-shell-choices,.dot-shell-extra-choices,.dot-shell-choice-group-items) { grid-template-columns: minmax(0,1fr); }
#dot-shell-menu { width: min(380px,calc(100vw - 32px)); padding: 24px; border: 1px solid var(--dot-shell-line); border-radius: 16px; background: var(--dot-shell-surface); max-height: calc(100dvh - 32px); overflow: auto; }
#dot-shell-menu:not([open]) { display: none; }
#dot-shell-menu::backdrop { background: rgb(41 40 68 / 24%); }
#dot-shell-menu header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#dot-shell-menu h2 { font-size: 18px; margin: 0; }
#dot-shell-menu-items { display: grid; gap: 4px; padding-top: 16px; }
#dot-shell-menu-items button { width: 100%; text-align: left; }
body[data-dot-shell="guided"] #dot-shell-progress { display: none !important; }
body[data-dot-shell="guided"] #dot-shell-menu { width: min(360px,calc(100vw - 32px)); padding: 20px; border-radius: 8px; }
body[data-dot-shell="guided"] #dot-shell-menu-close { width: 44px; padding: 0; flex: none; }
body[data-dot-shell="guided"] #dot-shell-menu-items { gap: 20px; padding-top: 20px; }
body[data-dot-shell="guided"] #dot-shell-menu .avdot-options { display: grid; gap: 16px; min-width: 0; }
body[data-dot-shell="guided"] #dot-shell-menu .avdot-options label { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 12px; color: var(--dot-shell-ink); font-size: 14px; }
body[data-dot-shell="guided"] #dot-shell-menu .avdot-options select {
  width: 100% !important; min-width: 0; min-height: 44px; margin: 0; padding: 8px 28px 8px 10px !important;
  border: 1px solid var(--dot-shell-line) !important; border-radius: 6px !important; box-shadow: none !important;
  background-color: var(--dot-shell-surface) !important; color: var(--dot-shell-ink) !important; font: 400 14px/1.5 var(--font,sans-serif);
}
body[data-dot-shell="guided"] #dot-shell-menu select:focus:not(:focus-visible) { outline: none !important; }
body[data-dot-shell="guided"] #dot-shell-menu select:focus-visible { outline: 3px solid var(--dot-shell-accent) !important; outline-offset: 2px !important; }
body[data-dot-shell="guided"] #dot-shell-menu .dot-shell-quota { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--dot-shell-line); color: var(--dot-shell-muted); font-size: 14px; }
body[data-dot-shell="guided"] #dot-shell-menu .dot-shell-quota strong { color: var(--dot-shell-ink); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
#dot-shell-notice { position: fixed; z-index: 2000; bottom: max(20px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; margin: 0; border: 1px solid var(--dot-shell-line); border-radius: 12px; background: var(--dot-shell-surface); font-size: 14px; line-height: 1.6; }
#dot-shell-return-entry { flex: none; white-space: nowrap; font-size: 13px; }
#appShell .topbar .top-actions #dot-shell-return-entry:not([hidden]) { display: inline-flex !important; align-items: center; }
html[data-visual-world] body[data-dot-shell="guided"] #appShell #dot-original-topbar,body[data-dot-shell="guided"] #appShell #dot-original-topbar,body[data-dot-shell="guided"] #appShell #globalSearchPanel { display: none !important; }
body[data-dot-shell="guided"] #avdot-panel.avdot-inline :is(.avdot-empty .avdot-suggestions,.avdot-continue) { display: none !important; }
/* A single short optical transition on deliberate entry; no input-blocking overlay. */
body[data-dot-transition="enter"] #dot-shell-home-view { animation: dot-shell-arrive 540ms cubic-bezier(.16,1,.3,1); }
body[data-dot-transition="enter"] #dot-shell-bar { animation: dot-shell-header 420ms cubic-bezier(.16,1,.3,1); }
body[data-dot-transition="enter"] #dot-shell-home-view::before { content: ""; position: fixed; pointer-events: none; inset: 0; z-index: 50; background: linear-gradient(112deg,transparent 35%,rgb(147 136 225 / 14%) 48%,rgb(255 255 255 / 22%) 50%,transparent 64%); animation: dot-shell-scan 540ms cubic-bezier(.16,1,.3,1) both; }
@keyframes dot-shell-arrive { from { opacity: .5; filter: blur(4px); transform: translateY(12px) scale(.985); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes dot-shell-header { from { opacity: .5; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes dot-shell-scan { from { transform: translateX(-40%); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(40%); opacity: 0; } }
@media(max-width:1180px) { #appShell .topbar #dot-shell-return-entry:not([hidden]) { grid-column: 1/-1 !important; justify-self: start; } }
@media(max-width:767px) {
  html[data-visual-world] body[data-dot-shell="guided"] #appShell,body[data-dot-shell="guided"] #appShell { padding: 0 max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left)) !important; }
  #dot-shell-bar { gap: 6px 10px; padding: max(12px,env(safe-area-inset-top)) 0 12px; flex-wrap: wrap; }
  #dot-shell-bar .dot-shell-brand strong { font-size: 18px; }
  #dot-shell-bar .dot-shell-brand .brand-mark { width: 30px; height: 30px; }
  #dot-shell-bar .dot-shell-progress { margin-left: auto; font-size: 12px; }
  #dot-shell-bar .dot-shell-nav { flex-basis: 100%; justify-content: flex-end; gap: 4px; }
  #dot-shell-bar button { padding-inline: 12px; font-size: 13px; }
  #dot-shell-bar .dot-shell-brand { padding-left: 0; }
  #dot-shell-home-view { padding: 24px 0 max(24px,env(safe-area-inset-bottom)); }
  #dot-shell-tool-bar { flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; }
  #dot-shell-tool-title { flex: 1; font-size: 15px; }
  #dot-shell-save { margin-left: 8px; }
  #dot-shell-return-entry { padding: 8px; }
  #dot-shell-choices,#dot-shell-choices:has(> .dot-shell-choice:nth-child(2)),.dot-shell-extra-choices,.dot-shell-choice-group-items { grid-template-columns: minmax(0,1fr); }
  #dot-shell-choices { padding-top: 20px; gap: 8px; }
  #dot-shell-choices .dot-shell-choice { min-height: 50px; padding: 12px 14px; }
}
@media(prefers-reduced-motion:reduce) {
  :is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu), :is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) *, body[data-dot-shell="guided"] #appShell > .main { scroll-behavior: auto !important; transition: none !important; }
  body[data-dot-transition] :is(#dot-shell-home-view,#dot-shell-bar),body[data-dot-transition] #dot-shell-home-view::before { animation: none !important; }
}
html.cv-reduce-motion body[data-dot-transition] :is(#dot-shell-home-view,#dot-shell-bar),html.cv-reduce-motion body[data-dot-transition] #dot-shell-home-view::before { animation: none !important; }
@media(forced-colors:active) { :is(#dot-shell-bar,#dot-shell-home-view) button.dot-shell-primary { background: ButtonFace !important; color: ButtonText !important; border: 1px solid ButtonText !important; } }

/* A single task row; the existing course tools remain available under More. */
body[data-dot-shell="guided"] #dot-shell-home-view:has(#dot-shell-choices > button) #dot-shell-next-row,
body[data-dot-shell="guided"] #dot-shell-home-view:has(#dot-shell-choices[data-state="loading"]) #dot-shell-next-row { display:none; }
#dot-shell-choices .dot-shell-choice:active:not(:disabled) { background:var(--dot-shell-line) !important; }
/* Native dialog autofocus can keep :focus-visible after a pointer opens Settings. */
body[data-dot-shell="guided"]:has(#avdot-panel[data-focus-input="pointer"]) :is(#dot-shell-bar,#dot-shell-menu) :is(button,summary,select):focus { outline:none !important; }
@media(forced-colors:active) {
  #dot-shell-choices .dot-shell-choice { border:1px solid ButtonText !important; }
  :is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) :is(button,summary):focus-visible,#dot-shell-return-entry:focus-visible { outline-color:Highlight !important; }
  body[data-dot-shell="guided"] #dot-shell-menu select:focus-visible { outline-color:Highlight !important; }
  body[data-dot-shell="guided"]:has(#avdot-panel[data-focus-input="pointer"]) :is(#dot-shell-bar,#dot-shell-menu) :is(button,summary,select):focus { outline:3px solid Highlight !important; outline-offset:2px !important; }
}

html.cv-reduce-motion :is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu), html.cv-reduce-motion :is(#dot-shell-bar,#dot-shell-home-view,#dot-shell-tool-bar,#dot-shell-menu) *, html.cv-reduce-motion body[data-dot-shell="guided"] #appShell > .main { scroll-behavior: auto !important; transition: none !important; }

/* 5.8.21: the guided-learning entry reads as a real button and pairs visually with Dot. */
#appShell #dot-shell-return-entry:not([hidden]) {
  gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px !important; border-radius: 999px !important;
  background: var(--dot-shell-soft) !important; color: var(--dot-shell-accent-ink) !important;
  border: 1px solid var(--dot-shell-line) !important; font-weight: 650; font-size: 14px; line-height: 1.3;
}
#appShell #dot-shell-return-entry:not([hidden])::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 45%, #fff 0 1.6px, transparent 2px), radial-gradient(circle at 65% 45%, #fff 0 1.6px, transparent 2px), var(--dot-shell-accent);
}
#appShell #dot-shell-return-entry:not([hidden]):hover { background: var(--dot-shell-line) !important; }
@media (forced-colors: active) { #appShell #dot-shell-return-entry:not([hidden]) { border: 1px solid ButtonText !important; } }

/* ==== student-startup.css ==== */
body.aivia-startup-pending { overflow: hidden !important; }
body.aivia-startup-pending > :not(#aiviaStudentStartup):not(#cvSplash) { visibility: hidden !important; }
#aiviaStudentStartup {
  position: fixed; inset: 0; z-index: 2147483000; overflow: auto;
  display: grid; place-items: center; box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--surface, #fff); color: var(--text, #182842);
}
#aiviaStudentStartup .student-startup-content { width: min(100%, 460px); min-width: 0; text-align: center; }
#aiviaStudentStartup [hidden] { display: none !important; }
#aiviaStudentStartup .cv-anim-load { flex-direction: column; padding: 20px 0; min-height: 220px; }
#aiviaStudentStartup .cv-anim-copy { text-align: center; }
#aiviaStudentStartup .cv-anim-copy strong { font-size: 20px; }
#aiviaStudentStartup .cv-anim-copy span { font-size: 14px; line-height: 1.6; }
#aiviaStudentStartup h2 { font-size: 22px; line-height: 1.4; margin: 0 0 12px; }
#aiviaStudentStartup p { font-size: 15px; line-height: 1.7; margin: 0 0 24px; }
#aiviaStudentStartup .student-startup-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#aiviaStudentStartup button { flex: 1 1 120px; width: auto !important; min-height: 44px; font-size: 15px; white-space: nowrap; }

/* ==== ux-refresh.css ==== */
/* 5.8.21 student UX refresh — loaded last; presentation only, no business state.
   Owner: Claude (2026-10-26). Remove this file + its <link> to roll back the visual layer. */

/* ---------- Home: the suggested next step leads, progress and quota follow ---------- */
html[data-visual-world="academy"] .home-overview-bar > .learning-journey {
  order: -1; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft, #e8f2ff));
}
html[data-visual-world="academy"] .home-overview-bar > .learning-journey .learning-journey-copy strong { font-size: 18px; font-weight: 750; }
html[data-visual-world="academy"] .home-overview-bar > .learning-journey .learning-journey-category {
  justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 12px;
}
html[data-visual-world="academy"] .home-overview-bar > .learning-journey [data-journey] { padding-inline: 20px !important; }
html[data-visual-world="academy"] .home-overview-bar { row-gap: 12px; }

/* ---------- Home: modules with nothing scheduled become compact tiles ---------- */
html[data-visual-world="academy"] .home-workspace:has(.home-workspace-empty) .home-workspace-empty p { font-size: 12px; }
@media (max-width: 1180px) {
  /* Listening and writing both free: pair the task-heavy modules, then the quiet ones. */
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty) {
    grid-template-areas: "vocab reading" "listen writing" "review records";
  }
  html[data-visual-world="academy"] .home-workspace:has(.home-workspace-empty) .home-workspace-empty { min-height: 0; align-content: start; padding-top: 12px; }
}
@media (max-width: 680px) {
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty) {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-areas: "vocab vocab" "reading reading" "listen writing" "review review" "records records";
  }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) { padding: 14px !important; }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) .home-workspace-head { margin-bottom: 8px; gap: 10px; }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) .home-workspace-head .icon-button { display: none !important; }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) .home-workspace-icon { width: 36px; height: 36px; flex-basis: 36px; }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) .home-workspace-empty { display: block; padding-top: 8px; border-top: 0; }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) .home-workspace-empty p {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  html[data-visual-world="academy"] .home-workspace-grid:has(.home-workspace-listen .home-workspace-empty):has(.home-workspace-writing .home-workspace-empty)
    :is(.home-workspace-listen,.home-workspace-writing) .home-workspace-empty button { width: 100% !important; justify-content: center; }
  html[data-visual-world="academy"] .home-overview-bar > .learning-journey { padding: 14px; }
  html[data-visual-world="academy"] .home-overview-bar > .learning-journey .learning-journey-copy strong { font-size: 17px; }
}

/* ---------- Home: daily check-in strip only covers the check-in's own days ---------- */
.daily-checkin-days .dc-days-label { margin-right: 2px; color: var(--muted); font-size: 12px; /* 小修-20261125 原11px */ white-space: nowrap; }
/* phone layout draws the strip as a fixed 7-column grid: the label takes its own row */
.daily-checkin-card .daily-checkin-days .dc-days-label { grid-column: 1 / -1; }
.daily-checkin-days span.is-today { box-shadow: 0 0 0 1.5px var(--accent, #0065df); }

/* ---------- Words: open vocab homework banner ---------- */
.vocab-assignment-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  margin: 12px 0 4px; padding: 12px 16px; border: 1px solid var(--accent-edge, #99c7ff); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft, #e8f2ff)); color: var(--ink);
}
.vocab-assignment-banner .vab-copy { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; }
.vocab-assignment-banner .vab-copy .home-task-kind { justify-self: start; }
.vocab-assignment-banner strong { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.vocab-assignment-banner small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.vocab-assignment-banner .primary-action { width: auto !important; min-height: 44px; flex: none; }
@media (max-width: 680px) {
  /* phones: copy and action share one row so the banner stays short */
  .vocab-assignment-banner { flex-wrap: nowrap; align-items: center; padding: 12px 12px 12px 14px; gap: 10px; }
  .vocab-assignment-banner .vab-copy { flex: 1 1 0; }
  .vocab-assignment-banner .primary-action { padding-inline: 14px !important; }
}

/* ---------- Quiz: start card before questions are drawn ---------- */
.quiz-start-layout { display: block !important; }
.quiz-start-card { max-width: 640px; margin: 12px auto 0; display: grid; gap: 12px; }
.quiz-start-card h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.quiz-start-card .muted { margin: 0; }
.quiz-start-card .quiz-scope-field { margin: 0; }
.quiz-start-card .quiz-start-meta { margin: 0; color: var(--ink-2); font-size: 14px; }
.quiz-start-card .session-actions .primary-action { min-width: 160px; width: auto !important; }
.quiz-start-card .quiz-start-assignment { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline-soft, var(--hairline)); color: var(--muted); font-size: 13px; }
.quiz-start-card .quiz-start-assignment .text-button { font-size: 13px; font-weight: 650; }
@media (max-width: 680px) {
  .quiz-start-card .session-actions .primary-action { width: 100% !important; }
}

/* ---------- Writing: draft-version notice sits with the essay text, as a calm note ---------- */
.writing-text-column #writingCloudState {
  margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--surface-2); font-size: 14px;
}
.writing-text-column #writingCloudState h4 { margin: 10px 0 4px; font-size: 14px; }
.writing-text-column #writingCloudState p { margin: 4px 0; }
.writing-text-column #writingCloudState .followup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.writing-text-column #writingCloudState .followup-actions button { width: auto !important; min-height: 40px; }

/* ---------- Writing (phones): the history link stops squeezing the mode switch ---------- */
@media (max-width: 680px) {
  html[data-visual-world] #view-writing .writing-mode-toolbar { flex-wrap: wrap !important; row-gap: 2px; }
  html[data-visual-world] #view-writing .writing-mode-toolbar > .writing-mode-tabs { flex: 1 1 100% !important; }
  html[data-visual-world] #view-writing .writing-history-jump {
    order: 2; margin: -6px 0 -6px auto; min-height: 44px !important; padding: 0 2px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    color: var(--accent-ink) !important; font-size: 13px !important;
  }
}

/* ---------- Header (phones & tablets): "Dot 带我学" joins the title row instead of taking its own ---------- */
@media (max-width: 1180px) {
  html[data-visual-world] #appShell .topbar #dot-shell-return-entry:not([hidden]) {
    grid-row: title !important; grid-column: 1 / -1 !important; justify-self: end !important; align-self: start !important;
    /* 5.8.21 fix1: 必须高于 .topbar-title(z-index:4)，否则透明标题区盖住按钮、点击无反应 */
    position: relative; z-index: 6 !important; margin-top: 2px;
  }
}
@media (max-width: 680px) {
  html[data-visual-world] #appShell .topbar #dot-shell-return-entry:not([hidden]) {
    min-height: 36px; padding: 6px 12px 6px 8px !important; font-size: 13px; gap: 6px;
  }
}

/* ---------- Home cards: one calmer radius for the learning modules ---------- */
html[data-visual-world="academy"] .home-workspace { border-radius: 12px !important; }
html[data-visual-world="academy"] .home-workspace-icon { border-radius: 10px; }

/* ---------- Reading: source tabs sit on one row at every width ---------- */
html[data-visual-world] #view-reading .reading-source-tabs:has(> button:nth-child(3)) {
  display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; flex-wrap: nowrap;
}
html[data-visual-world] #view-reading .reading-source-tabs:has(> button:nth-child(3)) > button {
  display: grid !important; justify-items: center; align-content: center; gap: 2px; width: auto !important; min-width: 0 !important;
  min-height: 52px; padding: 6px 4px !important; text-align: center; white-space: normal;
}
html[data-visual-world] #view-reading .reading-source-tabs > button strong { font-size: 13px; line-height: 1.3; }
html[data-visual-world] #view-reading .reading-source-tabs > button span { font-size: 12px; /* 小修-20261125 原11px */ line-height: 1.3; }
html[data-visual-world] #view-reading .reading-source-tabs > button[data-empty="true"]:not(.active) { opacity: .62; }

/* ---------- Writing: "历史作文" reads as a link, not a squeezed box ---------- */
html[data-visual-world] #view-writing .writing-history-jump {
  min-height: 44px !important; padding: 0 6px !important; white-space: nowrap;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: var(--accent-ink) !important; font-size: 13px !important; font-weight: 650;
}

/* ==== aivia-ds.css ==== */
/* Aivia design system 6 (web 5.9.0) — written by Claude.
   Loaded last. Active only on html[data-ds]: students and the sign-in screen; teacher pages since
   5.10.0 and admin pages since 5.10.3-audit-b5-v1 (both fixed to the secondary stage). Seven skins (data-ds-skin:
   academy / library / ginkgo / seaside / observatory / vivid / minimal; library added in 5.9.2, the three
   rooms in 5.10.0), each with light and dark (html.cv-dark), and a learner stage (data-stage:
   primary for Starters/Movers, secondary otherwise) that scales type and touch targets.
   Presentation only: no element is added, removed or re-ordered and no behaviour changes.

   Specificity: legacy rules reach (0,3,1) for tokens and use !important widely, so token
   blocks below use four attribute selectors and component rules start with the P prefix
   html[data-ds][data-visual-world] (0,2,1) or stronger. */

/* ── 0. Fonts ─────────────────────────────────────────────────────────────────────────
   Academy display face: Baskerville (John Baskerville, printer to Cambridge University).
   Apple devices ship it; other systems use the self-hosted Libre Baskerville when present
   and otherwise use the bundled Libre Baskerville (OFL, unmodified). Chinese headings use
   Songti / Noto Serif where installed and the system sans elsewhere. */
@font-face { font-family: "Aivia Baskerville"; src: local("Baskerville"), local("Baskerville-Regular"), url("assets/fonts/aivia-libre-baskerville-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aivia Baskerville"; src: local("Baskerville-SemiBold"), local("Baskerville SemiBold"), url("assets/fonts/aivia-libre-baskerville-400.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Aivia Baskerville"; src: local("Baskerville-Italic"), local("Baskerville Italic"), url("assets/fonts/aivia-libre-baskerville-400.woff") format("woff"); font-weight: 400 800; font-style: italic; font-display: swap; }
/* Minimal display face: Instrument Sans (Latin subset). */
@font-face { font-family: "Aivia Instrument Sans"; src: url("assets/fonts/aivia-instrument-sans-400.woff") format("woff"); font-weight: 400 550; font-style: normal; font-display: swap; }
@font-face { font-family: "Aivia Instrument Sans"; src: url("assets/fonts/aivia-instrument-sans-700.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

/* ── 1. Skin tokens ───────────────────────────────────────────────────────────────────
   Each block re-points the legacy variables (so every legacy rule follows the skin) and
   defines the --ds-* tokens used by this file. */
html[data-ds][data-visual-world][data-palette][data-ds-skin] {
  --ds-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font: var(--ds-sans);
  --ds-ease: cubic-bezier(.2, .7, .2, 1);
  --ds-fast: 140ms;
  --ds-base: 15px;
  --ds-target: 44px;
  --ds-gutter: 32px;
  --ds-content: 1240px;
  --ds-sidebar: 248px;
  --ds-rail: 92px;
  --academy-theme-time: .35s;
}

/* Academy — Cambridge stone, gown navy, college blue, brass. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="academy"] {
  color-scheme: light;
  --bg: #eef0ec; --bg-tint: #f3f4f0;
  --surface: #ffffff; --surface-2: #f4f5f1; --surface-3: #e6e9e3;
  --ink: #16233f; --ink-2: #2f3c58; --muted: #566173; --muted-2: #566173;
  --hairline: #d5dbd3; --hairline-soft: #e4e8e2; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #203d86; --accent-press: #172f6b; --accent-ink: #1d3778; --accent-soft: #e6ebf6; --accent-soft-2: #f0f3fa; --accent-edge: #9fb0d8; --accent-2: #3d5fb5; --accent-glow: transparent;
  --academy-action: #203d86; --academy-action-hover: #172f6b; --academy-scene-ink: #16233f; --academy-sidebar: var(--surface);
  --green: #2f7259; --green-ink: #2a6650; --green-soft: #e2efe9; --green-strong: #2f7259; --green-strong-press: #245a46;
  --red: #c0392b; --red-ink: #a3332a; --red-soft: #f8e6e3;
  --amber: #b07a17; --amber-ink: #7f5512; --amber-soft: #f6ebd3; --gold-ink: #7d5d1f;
  --blue: var(--accent); --cyan: var(--accent-2);
  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --radius: 10px; --radius-sm: 8px;
  --shadow-xs: 0 1px 1px rgb(22 35 63 / 4%);
  --shadow-sm: 0 1px 2px rgb(22 35 63 / 5%), 0 4px 12px rgb(22 35 63 / 5%);
  --shadow: 0 1px 2px rgb(22 35 63 / 5%), 0 12px 32px rgb(22 35 63 / 8%);
  --shadow-lg: 0 24px 64px rgb(15 25 48 / 18%);
  --shadow-accent: none;
  --font-display: "Aivia Baskerville", Baskerville, "Libre Baskerville", "Baskerville Old Face", Georgia, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ds-brass: #a07a32; --ds-brass-ink: #7d5d1f; --ds-brass-soft: #f5eedf;
  --ds-canvas: #eef0ec; --ds-card: #ffffff; --ds-card-edge: #dfe3dc;
  --ds-nav-active-bg: var(--accent-soft); --ds-nav-active-ink: var(--accent-ink); --ds-nav-mark: var(--ds-brass);
  --ds-display-weight: 700; --ds-display-track: -.005em;
  --ds-r-card: 14px; --ds-r-control: 10px; --ds-r-hero: 20px;
  --panorama-day-rgb: 238 240 236; --panorama-night-rgb: 18 24 34;
  --dot-shell-canvas: #eef0ec; --dot-shell-surface: #ffffff; --dot-shell-soft: #f0f3fa; --dot-shell-line: #d5dbd3;
  --dot-shell-ink: #16233f; --dot-shell-muted: #566173; --dot-shell-accent: #203d86; --dot-shell-accent-ink: #1d3778;
  --avdot-purple: #4b42c4; --avdot-purple-dark: #3a328f;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="academy"].cv-dark {
  color-scheme: dark;
  --bg: #121822; --bg-tint: #151c27;
  --surface: #1a2230; --surface-2: #212a3a; --surface-3: #2b3546;
  --ink: #ece7dc; --ink-2: #d6d2c8; --muted: #a9b0bd; --muted-2: #a9b0bd;
  --hairline: #2f394a; --hairline-soft: #242d3b;
  --accent: #a9bdf3; --accent-press: #c5d3f8; --accent-ink: #bccbf6; --accent-soft: #253456; --accent-soft-2: #1e2a42; --accent-edge: #4c63a3; --accent-2: #8aa3e8;
  --academy-action: #3554a6; --academy-action-hover: #4062bb; --academy-scene-ink: #ece7dc;
  --green-ink: #8fd1b5; --green-soft: #1f3a31; --green-strong: #2f7259; --green-strong-press: #3a8569;
  --red-ink: #ffb1a8; --red-soft: #46282a; --amber-ink: #ecc77e; --amber-soft: #3d3222; --gold-ink: #e2c387;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 20%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 22%), 0 4px 12px rgb(0 0 0 / 16%);
  --shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 12px 32px rgb(0 0 0 / 24%);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 45%);
  --shadow-accent: none;
  --ds-brass: #d8b46c; --ds-brass-ink: #e2c387; --ds-brass-soft: #3a3122;
  --ds-canvas: #121822; --ds-card: #1a2230; --ds-card-edge: #2a3445;
  --dot-shell-canvas: #121822; --dot-shell-surface: #1a2230; --dot-shell-soft: #212a3a; --dot-shell-line: #2f394a;
  --dot-shell-ink: #ece7dc; --dot-shell-muted: #a9b0bd; --dot-shell-accent: #3554a6; --dot-shell-accent-ink: #bccbf6;
}

/* Library (5.9.2) — the reading room: parchment, walnut ink, green leather, a brass lamp. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="library"] {
  color-scheme: light;
  --bg: #efe6d6; --bg-tint: #f3ecdf;
  --surface: #fffbf3; --surface-2: #f6eedf; --surface-3: #ece1cd;
  --ink: #2a2620; --ink-2: #463f35; --muted: #6a6052; --muted-2: #6a6052;
  --hairline: #e0d3bd; --hairline-soft: #ebe1cf; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #1f5c46; --accent-press: #174635; --accent-ink: #1d5440; --accent-soft: #e2ebdf; --accent-soft-2: #eef3ec; --accent-edge: #9dbaa9; --accent-2: #2f7a5d; --accent-glow: transparent;
  --academy-action: #1f5c46; --academy-action-hover: #174635; --academy-scene-ink: #2a2620; --academy-sidebar: var(--surface);
  --green: #2e7550; --green-ink: #276645; --green-soft: #e1eddf; --green-strong: #2e7550; --green-strong-press: #235c3e;
  --red: #b23a2b; --red-ink: #9c3226; --red-soft: #f6e3dc;
  --amber: #a87420; --amber-ink: #7a5414; --amber-soft: #f4e7cc; --gold-ink: #7a5a1d;
  --blue: var(--accent); --cyan: var(--accent-2);
  --r-xs: 8px; --r-sm: 10px; --r: 12px; --r-lg: 16px; --radius: 10px; --radius-sm: 8px;
  --shadow-xs: 0 1px 1px rgb(60 42 20 / 5%);
  --shadow-sm: 0 1px 2px rgb(60 42 20 / 6%), 0 4px 12px rgb(60 42 20 / 6%);
  --shadow: 0 1px 2px rgb(60 42 20 / 6%), 0 12px 32px rgb(60 42 20 / 10%);
  --shadow-lg: 0 24px 64px rgb(43 30 14 / 22%);
  --shadow-accent: none;
  --ds-brass: #9a7330; --ds-brass-ink: #7a5a1d; --ds-brass-soft: #f3e8d2;
  --ds-canvas: #efe6d6; --ds-card: #fffbf3; --ds-card-edge: #e6d9c3;
  --ds-nav-active-bg: var(--accent-soft); --ds-nav-active-ink: var(--accent-ink); --ds-nav-mark: var(--ds-brass);
  --ds-display-weight: 700; --ds-display-track: -.005em;
  --ds-r-card: 12px; --ds-r-control: 10px; --ds-r-hero: 18px;
  --panorama-day-rgb: 239 230 214; --panorama-night-rgb: 29 26 22;
  --dot-shell-canvas: #efe6d6; --dot-shell-surface: #fffbf3; --dot-shell-soft: #f6eedf; --dot-shell-line: #e0d3bd;
  --dot-shell-ink: #2a2620; --dot-shell-muted: #6a6052; --dot-shell-accent: #1f5c46; --dot-shell-accent-ink: #1d5440;
  --avdot-purple: #4b42c4; --avdot-purple-dark: #3a328f;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="library"].cv-dark {
  color-scheme: dark;
  --bg: #1d1a16; --bg-tint: #211d18;
  --surface: #26221d; --surface-2: #2e2923; --surface-3: #39332b;
  --ink: #f1e8d7; --ink-2: #ddd3c1; --muted: #c1b7a3; --muted-2: #c1b7a3;
  --hairline: #433c32; --hairline-soft: #352f27;
  --accent: #a8cdb3; --accent-press: #c2ddc9; --accent-ink: #b6d6c0; --accent-soft: #233a2f; --accent-soft-2: #1f2c24; --accent-edge: #4f7d63; --accent-2: #8fbf9f;
  --academy-action: #2a6b52; --academy-action-hover: #327a5e; --academy-scene-ink: #f1e8d7;
  --green-ink: #9fd4ae; --green-soft: #22382a; --green-strong: #2a6b52; --green-strong-press: #327a5e;
  --red-ink: #ffb3a6; --red-soft: #46271f; --amber-ink: #e8c47c; --amber-soft: #3d3220; --gold-ink: #e2c387;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 20%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 22%), 0 4px 12px rgb(0 0 0 / 16%);
  --shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 12px 32px rgb(0 0 0 / 24%);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 45%);
  --shadow-accent: none;
  --ds-brass: #d8b46c; --ds-brass-ink: #e2c387; --ds-brass-soft: #3a3122;
  --ds-canvas: #1d1a16; --ds-card: #26221d; --ds-card-edge: #3d362d;
  --dot-shell-canvas: #1d1a16; --dot-shell-surface: #26221d; --dot-shell-soft: #2e2923; --dot-shell-line: #433c32;
  --dot-shell-ink: #f1e8d7; --dot-shell-muted: #c1b7a3; --dot-shell-accent: #2a6b52; --dot-shell-accent-ink: #b6d6c0;
}

/* Minimal — quiet neutrals, one brand indigo taken from the logo. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="minimal"] {
  color-scheme: light;
  --bg: #f4f5f7; --bg-tint: #f7f8f9;
  --surface: #ffffff; --surface-2: #f2f3f5; --surface-3: #e7e9ed;
  --ink: #171b26; --ink-2: #363c4b; --muted: #5f6675; --muted-2: #5f6675;
  --hairline: #e1e3e8; --hairline-soft: #ebedf0; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #4b42c4; --accent-press: #3c349f; --accent-ink: #4038b0; --accent-soft: #eeedfb; --accent-soft-2: #f6f5fd; --accent-edge: #b9b4ee; --accent-2: #6d64dc; --accent-glow: transparent;
  --academy-action: #4b42c4; --academy-action-hover: #3c349f; --academy-scene-ink: #171b26; --academy-sidebar: var(--bg);
  --green: #18804f; --green-ink: #13703f; --green-soft: #e5f4ec; --green-strong: #18804f; --green-strong-press: #136a41;
  --red: #d33a2c; --red-ink: #b42c20; --red-soft: #fbe9e7;
  --amber: #c27c00; --amber-ink: #8a5600; --amber-soft: #fbf0d9; --gold-ink: #8a5600;
  --blue: var(--accent); --cyan: var(--accent-2);
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 12px; --radius: 8px; --radius-sm: 6px;
  --shadow-xs: none;
  --shadow-sm: 0 1px 2px rgb(23 27 38 / 5%);
  --shadow: 0 1px 2px rgb(23 27 38 / 5%);
  --shadow-lg: 0 18px 48px rgb(23 27 38 / 16%);
  --shadow-accent: none;
  --font-display: "Aivia Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  --ds-canvas: #f4f5f7; --ds-card: #ffffff; --ds-card-edge: #e3e5ea;
  --ds-nav-active-bg: #e9eaee; --ds-nav-active-ink: var(--ink); --ds-nav-mark: var(--accent);
  --ds-display-weight: 650; --ds-display-track: -.012em;
  --ds-r-card: 10px; --ds-r-control: 10px; --ds-r-hero: 12px;
  --panorama-day-rgb: 244 245 247; --panorama-night-rgb: 22 24 29;
  --dot-shell-canvas: #f4f5f7; --dot-shell-surface: #ffffff; --dot-shell-soft: #f2f3f5; --dot-shell-line: #e1e3e8;
  --dot-shell-ink: #171b26; --dot-shell-muted: #5f6675; --dot-shell-accent: #4b42c4; --dot-shell-accent-ink: #4038b0;
  --avdot-purple: #4b42c4; --avdot-purple-dark: #3c349f;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="minimal"].cv-dark {
  color-scheme: dark;
  --bg: #16181d; --bg-tint: #191b21;
  --surface: #1d2026; --surface-2: #24282f; --surface-3: #2e323a;
  --ink: #eceef2; --ink-2: #d1d5dc; --muted: #a2a8b4; --muted-2: #a2a8b4;
  --hairline: #2e323a; --hairline-soft: #252930;
  --accent: #a59dff; --accent-press: #c0baff; --accent-ink: #b7b0ff; --accent-soft: #2b2850; --accent-soft-2: #222036; --accent-edge: #5e56b8; --accent-2: #8f86f2;
  --academy-action: #5b52d6; --academy-action-hover: #6a62e0; --academy-scene-ink: #eceef2;
  --green-ink: #7fd3a6; --green-soft: #1d3428; --red-ink: #ffaea4; --red-soft: #432826; --amber-ink: #f0c879; --amber-soft: #3b3020; --gold-ink: #f0c879;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%); --shadow: 0 1px 2px rgb(0 0 0 / 30%); --shadow-lg: 0 18px 48px rgb(0 0 0 / 50%);
  --ds-canvas: #16181d; --ds-card: #1d2026; --ds-card-edge: #2c3038;
  --ds-nav-active-bg: #262a32;
  --dot-shell-canvas: #16181d; --dot-shell-surface: #1d2026; --dot-shell-soft: #24282f; --dot-shell-line: #2e323a;
  --dot-shell-ink: #eceef2; --dot-shell-muted: #a2a8b4; --dot-shell-accent: #5b52d6; --dot-shell-accent-ink: #b7b0ff;
}

/* Vivid — sunlit apricot canvas, Dot's grape as the action colour, playground accents.
   5.10.3 calm: the grape is matte (about 39% saturation, the same step as observatory and
   minimal) and buttons share the one flat spec of every other skin; the treehouse keeps its
   painting, its rounded face and its heavier titles. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="vivid"] {
  color-scheme: light;
  --bg: #fff3e8; --bg-tint: #fff7ef;
  --surface: #ffffff; --surface-2: #fff2e4; --surface-3: #fde3cc;
  --ink: #35231a; --ink-2: #4f382b; --muted: #7a6151; --muted-2: #7a6151;
  --hairline: #f0d8c2; --hairline-soft: #f8e8d8; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #5a4eb0; --accent-press: #4d4299; --accent-ink: #4b3fa0; --accent-soft: #efecfa; --accent-soft-2: #f6f4fd; --accent-edge: #c4bde8; --accent-2: #7a70c8; --accent-glow: transparent;
  --academy-action: #5a4eb0; --academy-action-hover: #4d4299; --academy-scene-ink: #35231a; --academy-sidebar: var(--surface);
  --green: #12a07a; --green-ink: #0d7a5c; --green-soft: #ddf6ec; --green-strong: #0f8f6c; --green-strong-press: #0b7558;
  --red: #e5484d; --red-ink: #be2f3a; --red-soft: #ffe7e6;
  --amber: #f0a020; --amber-ink: #8f5500; --amber-soft: #fff0cc; --gold-ink: #8f5500;
  --blue: var(--accent); --cyan: #2f9be8;
  --r-xs: 12px; --r-sm: 14px; --r: 20px; --r-lg: 26px; --radius: 14px; --radius-sm: 12px;
  --shadow-xs: 0 1px 1px rgb(53 35 26 / 5%);
  --shadow-sm: 0 1px 2px rgb(53 35 26 / 5%), 0 4px 12px rgb(53 35 26 / 6%);
  --shadow: 0 1px 2px rgb(53 35 26 / 5%), 0 12px 32px rgb(53 35 26 / 9%);
  --shadow-lg: 0 26px 64px rgb(90 45 20 / 20%);
  --shadow-accent: none;
  --font-display: "Nunito", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  --ds-tangerine: #ff8a3d; --ds-sun: #ffc53d; --ds-mint: #1fb58f; --ds-sky: #3aa0ff; --ds-berry: #ff5d8f;
  --ds-canvas: #fff3e8; --ds-card: #ffffff; --ds-card-edge: #f3dcc6;
  --ds-nav-active-bg: var(--accent-soft); --ds-nav-active-ink: var(--accent-ink); --ds-nav-mark: var(--accent);
  --ds-display-weight: 800; --ds-display-track: 0;
  --ds-r-card: 20px; --ds-r-control: 10px; --ds-r-hero: 28px;
  --ds-press: none;
  --panorama-day-rgb: 255 243 232; --panorama-night-rgb: 33 23 31;
  --dot-shell-canvas: #fff3e8; --dot-shell-surface: #ffffff; --dot-shell-soft: #fff2e4; --dot-shell-line: #f0d8c2;
  --dot-shell-ink: #35231a; --dot-shell-muted: #7a6151; --dot-shell-accent: #5a4eb0; --dot-shell-accent-ink: #4b3fa0;
  --avdot-purple: #5a4eb0; --avdot-purple-dark: #4d4299;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="vivid"].cv-dark {
  color-scheme: dark;
  --bg: #21171f; --bg-tint: #251a23;
  --surface: #2b1f29; --surface-2: #342633; --surface-3: #41303f;
  --ink: #fbeee3; --ink-2: #eadbd0; --muted: #c9b6aa; --muted-2: #c9b6aa;
  --hairline: #48363f; --hairline-soft: #3a2b35;
  --accent: #c6bfee; --accent-press: #d6d0f3; --accent-ink: #c6bfee; --accent-soft: #3b2f63; --accent-soft-2: #2f2547; --accent-edge: #6a60b8; --accent-2: #a69ee0;
  --academy-action: #6458c0; --academy-action-hover: #6f64c9; --academy-scene-ink: #fbeee3;
  --green-ink: #7fe0bf; --green-soft: #1b3a31; --red-ink: #ffb0b0; --red-soft: #4a2730; --amber-ink: #ffd27a; --amber-soft: #44331f; --gold-ink: #ffd27a;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 20%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 22%), 0 4px 12px rgb(0 0 0 / 16%);
  --shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 12px 32px rgb(0 0 0 / 24%);
  --shadow-lg: 0 26px 64px rgb(0 0 0 / 50%);
  --shadow-accent: none; --ds-press: none;
  --ds-nav-active-bg: #4a3c7c; /* 5.10.3: the plain --accent-soft sat too close to the plum surface for the selected nav/tab */
  --ds-canvas: #21171f; --ds-card: #2b1f29; --ds-card-edge: #45343e;
  --dot-shell-canvas: #21171f; --dot-shell-surface: #2b1f29; --dot-shell-soft: #342633; --dot-shell-line: #48363f;
  --dot-shell-ink: #fbeee3; --dot-shell-muted: #c9b6aa; --dot-shell-accent: #6458c0; --dot-shell-accent-ink: #c6bfee;
}

/* Ginkgo (5.10.0) — 银杏庭院: lime-washed walls, slate roof tiles (黛), ginkgo gold, cinnabar columns.
   Chinese headings use Songti with the academy serif; actions are slate so red keeps meaning "attention". */
html[data-ds][data-visual-world][data-palette][data-ds-skin="ginkgo"] {
  color-scheme: light;
  --bg: #f2ede3; --bg-tint: #f6f2ea;
  --surface: #fffdf8; --surface-2: #f7f2e8; --surface-3: #ece5d6;
  --ink: #27221c; --ink-2: #433b32; --muted: #675e52; --muted-2: #675e52;
  --hairline: #e1d7c5; --hairline-soft: #ebe3d4; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #2f4a5c; --accent-press: #233a49; --accent-ink: #2b4557; --accent-soft: #e4eaee; --accent-soft-2: #f0f4f6; --accent-edge: #a5b7c3; --accent-2: #3f6278; --accent-glow: transparent;
  --academy-action: #2f4a5c; --academy-action-hover: #233a49; --academy-scene-ink: #27221c; --academy-sidebar: var(--surface);
  --green: #2f7259; --green-ink: #2a6650; --green-soft: #e2efe9; --green-strong: #2f7259; --green-strong-press: #245a46;
  --red: #b23a2b; --red-ink: #9c3226; --red-soft: #f7e4dd;
  --amber: #b07a17; --amber-ink: #7a5512; --amber-soft: #f6e9cc; --gold-ink: #7a5a10;
  --blue: var(--accent); --cyan: var(--accent-2);
  --r-xs: 8px; --r-sm: 10px; --r: 12px; --r-lg: 16px; --radius: 10px; --radius-sm: 8px;
  --shadow-xs: 0 1px 1px rgb(58 44 24 / 5%);
  --shadow-sm: 0 1px 2px rgb(58 44 24 / 6%), 0 4px 12px rgb(58 44 24 / 6%);
  --shadow: 0 1px 2px rgb(58 44 24 / 6%), 0 12px 32px rgb(58 44 24 / 10%);
  --shadow-lg: 0 24px 64px rgb(40 30 16 / 22%);
  --shadow-accent: none;
  --ds-brass: #b8861c; --ds-brass-ink: #7a5a10; --ds-brass-soft: #f8ecc9;
  --ds-canvas: #f2ede3; --ds-card: #fffdf8; --ds-card-edge: #e5dbca;
  --ds-nav-active-bg: #f6e8c4; --ds-nav-active-ink: #57400f; --ds-nav-mark: #b03a28;
  --ds-display-weight: 700; --ds-display-track: -.005em;
  --ds-r-card: 12px; --ds-r-control: 10px; --ds-r-hero: 18px;
  --panorama-day-rgb: 242 237 227; --panorama-night-rgb: 28 25 27;
  --dot-shell-canvas: #f2ede3; --dot-shell-surface: #fffdf8; --dot-shell-soft: #f7f2e8; --dot-shell-line: #e1d7c5;
  --dot-shell-ink: #27221c; --dot-shell-muted: #675e52; --dot-shell-accent: #2f4a5c; --dot-shell-accent-ink: #2b4557;
  --avdot-purple: #4b42c4; --avdot-purple-dark: #3a328f;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="ginkgo"].cv-dark {
  color-scheme: dark;
  --bg: #1c191b; --bg-tint: #201c1e;
  --surface: #262124; --surface-2: #2e292b; --surface-3: #3a3336;
  --ink: #f3eadb; --ink-2: #ddd2c2; --muted: #c0b4a3; --muted-2: #c0b4a3;
  --hairline: #443b3c; --hairline-soft: #352e30;
  --accent: #a9c6d6; --accent-press: #c3d8e4; --accent-ink: #b6d0de; --accent-soft: #23333d; --accent-soft-2: #1e2a31; --accent-edge: #4f6f82; --accent-2: #8fb4c8;
  --academy-action: #3b6075; --academy-action-hover: #46708a; --academy-scene-ink: #f3eadb;
  --green-ink: #8fd1b5; --green-soft: #1f3a31; --green-strong: #2f7259; --green-strong-press: #3a8569;
  --red-ink: #ffb3a6; --red-soft: #46271f; --amber-ink: #ecc77e; --amber-soft: #3d3222; --gold-ink: #e8c46a;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 20%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 22%), 0 4px 12px rgb(0 0 0 / 16%);
  --shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 12px 32px rgb(0 0 0 / 24%);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 45%);
  --shadow-accent: none;
  --ds-brass: #e2b24c; --ds-brass-ink: #ecc66e; --ds-brass-soft: #3b3020;
  --ds-canvas: #1c191b; --ds-card: #262124; --ds-card-edge: #3e3537;
  --ds-nav-active-bg: #3a2f1d; --ds-nav-active-ink: #f1d28b; --ds-nav-mark: #e0745a;
  --dot-shell-canvas: #1c191b; --dot-shell-surface: #262124; --dot-shell-soft: #2e292b; --dot-shell-line: #443b3c;
  --dot-shell-ink: #f3eadb; --dot-shell-muted: #c0b4a3; --dot-shell-accent: #3b6075; --dot-shell-accent-ink: #b6d0de;
}

/* Seaside (5.10.0) — 海边书屋: whitewash and pale oak, sea blue, coral cushions. A light sans display face. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="seaside"] {
  color-scheme: light;
  --bg: #f1eee9; --bg-tint: #f5f3ef;
  --surface: #fffefb; --surface-2: #f5f2ec; --surface-3: #e9e4db;
  --ink: #1d2833; --ink-2: #36424f; --muted: #5a6470; --muted-2: #5a6470;
  --hairline: #ddd8cf; --hairline-soft: #e8e4dc; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #1d6390; --accent-press: #164e73; --accent-ink: #1b5a84; --accent-soft: #e1edf5; --accent-soft-2: #eef5fa; --accent-edge: #9fc1d8; --accent-2: #2f7fb0; --accent-glow: transparent;
  --academy-action: #1d6390; --academy-action-hover: #164e73; --academy-scene-ink: #1d2833; --academy-sidebar: var(--surface);
  --green: #1f7a5c; --green-ink: #1a6a50; --green-soft: #ddefe7; --green-strong: #1f7a5c; --green-strong-press: #186248;
  --red: #c4412f; --red-ink: #a8372a; --red-soft: #fbe6e1;
  --amber: #b97a12; --amber-ink: #7d5410; --amber-soft: #f8ebcf; --gold-ink: #7d5410;
  --blue: var(--accent); --cyan: var(--accent-2);
  --r-xs: 10px; --r-sm: 12px; --r: 16px; --r-lg: 20px; --radius: 12px; --radius-sm: 10px;
  --shadow-xs: 0 1px 1px rgb(29 40 51 / 4%);
  --shadow-sm: 0 1px 2px rgb(29 40 51 / 5%), 0 4px 14px rgb(29 70 110 / 6%);
  --shadow: 0 1px 2px rgb(29 40 51 / 5%), 0 14px 34px rgb(29 70 110 / 9%);
  --shadow-lg: 0 24px 64px rgb(16 32 52 / 20%);
  --shadow-accent: none;
  --font-display: "Aivia Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", sans-serif;
  --ds-brass: #d4673f; --ds-brass-ink: #9c4422; --ds-brass-soft: #fbe7dd;
  --ds-canvas: #f1eee9; --ds-card: #fffefb; --ds-card-edge: #e3ded5;
  --ds-nav-active-bg: var(--accent-soft); --ds-nav-active-ink: var(--accent-ink); --ds-nav-mark: #d4673f;
  --ds-display-weight: 650; --ds-display-track: -.01em;
  --ds-r-card: 16px; --ds-r-control: 10px; --ds-r-hero: 22px;
  --panorama-day-rgb: 241 238 233; --panorama-night-rgb: 17 26 39;
  --dot-shell-canvas: #f1eee9; --dot-shell-surface: #fffefb; --dot-shell-soft: #f5f2ec; --dot-shell-line: #ddd8cf;
  --dot-shell-ink: #1d2833; --dot-shell-muted: #5a6470; --dot-shell-accent: #1d6390; --dot-shell-accent-ink: #1b5a84;
  --avdot-purple: #4b42c4; --avdot-purple-dark: #3a328f;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="seaside"].cv-dark {
  color-scheme: dark;
  --bg: #111a27; --bg-tint: #141e2c;
  --surface: #182334; --surface-2: #1f2b3f; --surface-3: #29364c;
  --ink: #eaf0f5; --ink-2: #d0d9e2; --muted: #a6b3c1; --muted-2: #a6b3c1;
  --hairline: #2c3a4f; --hairline-soft: #223044;
  --accent: #9ccbec; --accent-press: #bcdcf3; --accent-ink: #acd3ef; --accent-soft: #1d3550; --accent-soft-2: #182b40; --accent-edge: #3f6d93; --accent-2: #7fb6de;
  --academy-action: #26689a; --academy-action-hover: #2f77ad; --academy-scene-ink: #eaf0f5;
  --green-ink: #8fd8bb; --green-soft: #173a33; --green-strong: #1f7a5c; --green-strong-press: #28906d;
  --red-ink: #ffb0a3; --red-soft: #44262a; --amber-ink: #f0c97a; --amber-soft: #3a3122; --gold-ink: #f0c97a;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 22%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 24%), 0 4px 12px rgb(0 0 0 / 18%);
  --shadow: 0 1px 2px rgb(0 0 0 / 26%), 0 12px 32px rgb(0 0 0 / 26%);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 48%);
  --shadow-accent: none;
  --ds-brass: #f08f6c; --ds-brass-ink: #f4a487; --ds-brass-soft: #3d2a28;
  --ds-canvas: #111a27; --ds-card: #182334; --ds-card-edge: #2a3850;
  --ds-nav-active-bg: #1d3550; --ds-nav-active-ink: #bfe0f7; --ds-nav-mark: #f08f6c;
  --dot-shell-canvas: #111a27; --dot-shell-surface: #182334; --dot-shell-soft: #1f2b3f; --dot-shell-line: #2c3a4f;
  --dot-shell-ink: #eaf0f5; --dot-shell-muted: #a6b3c1; --dot-shell-accent: #26689a; --dot-shell-accent-ink: #acd3ef;
}

/* Observatory (5.10.0) — 星空天文台: lavender plaster, midnight dome ribs, a brass telescope. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="observatory"] {
  color-scheme: light;
  --bg: #eeedf4; --bg-tint: #f3f2f8;
  --surface: #ffffff; --surface-2: #f4f3f9; --surface-3: #e6e4ef;
  --ink: #1c1d36; --ink-2: #35364f; --muted: #5d5e76; --muted-2: #5d5e76;
  --hairline: #dcdae8; --hairline-soft: #e7e5f0; --line: var(--hairline); --panel: var(--surface); --soft: var(--surface-2);
  --accent: #3d3a8c; --accent-press: #2f2c70; --accent-ink: #3a3786; --accent-soft: #e8e7f6; --accent-soft-2: #f3f2fb; --accent-edge: #b3b0e0; --accent-2: #5a56b0; --accent-glow: transparent;
  --academy-action: #3d3a8c; --academy-action-hover: #2f2c70; --academy-scene-ink: #1c1d36; --academy-sidebar: var(--surface);
  --green: #2f7259; --green-ink: #2a6650; --green-soft: #e2efe9; --green-strong: #2f7259; --green-strong-press: #245a46;
  --red: #c0392b; --red-ink: #a3332a; --red-soft: #f8e6e3;
  --amber: #b07a17; --amber-ink: #7f5512; --amber-soft: #f6ebd3; --gold-ink: #78591c;
  --blue: var(--accent); --cyan: var(--accent-2);
  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --radius: 10px; --radius-sm: 8px;
  --shadow-xs: 0 1px 1px rgb(28 29 54 / 4%);
  --shadow-sm: 0 1px 2px rgb(28 29 54 / 5%), 0 4px 12px rgb(40 36 90 / 6%);
  --shadow: 0 1px 2px rgb(28 29 54 / 5%), 0 12px 32px rgb(40 36 90 / 9%);
  --shadow-lg: 0 24px 64px rgb(20 18 50 / 20%);
  --shadow-accent: none;
  --ds-brass: #a8833a; --ds-brass-ink: #78591c; --ds-brass-soft: #f3ecdc;
  --ds-canvas: #eeedf4; --ds-card: #ffffff; --ds-card-edge: #e0deeb;
  --ds-nav-active-bg: var(--accent-soft); --ds-nav-active-ink: var(--accent-ink); --ds-nav-mark: var(--ds-brass);
  --ds-display-weight: 700; --ds-display-track: -.005em;
  --ds-r-card: 14px; --ds-r-control: 10px; --ds-r-hero: 20px;
  --panorama-day-rgb: 238 237 244; --panorama-night-rgb: 19 20 42;
  --dot-shell-canvas: #eeedf4; --dot-shell-surface: #ffffff; --dot-shell-soft: #f4f3f9; --dot-shell-line: #dcdae8;
  --dot-shell-ink: #1c1d36; --dot-shell-muted: #5d5e76; --dot-shell-accent: #3d3a8c; --dot-shell-accent-ink: #3a3786;
  --avdot-purple: #4b42c4; --avdot-purple-dark: #3a328f;
}
html[data-ds][data-visual-world][data-palette][data-ds-skin="observatory"].cv-dark {
  color-scheme: dark;
  --bg: #13142a; --bg-tint: #16172f;
  --surface: #1b1c37; --surface-2: #232442; --surface-3: #2d2e4f;
  --ink: #ecebf7; --ink-2: #d3d2e6; --muted: #aeadc6; --muted-2: #aeadc6;
  --hairline: #2f3054; --hairline-soft: #26274a;
  --accent: #bcb8f4; --accent-press: #d3d0f8; --accent-ink: #c8c5f6; --accent-soft: #2c2b5c; --accent-soft-2: #232347; --accent-edge: #5c58b0; --accent-2: #9f9aec;
  --academy-action: #4d48b0; --academy-action-hover: #5a55c2; --academy-scene-ink: #ecebf7;
  --green-ink: #8fd1b5; --green-soft: #1d3830; --green-strong: #2f7259; --green-strong-press: #3a8569;
  --red-ink: #ffb1a8; --red-soft: #46282f; --amber-ink: #ecc77e; --amber-soft: #3b3123; --gold-ink: #e2c387;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / 22%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 24%), 0 4px 12px rgb(0 0 0 / 18%);
  --shadow: 0 1px 2px rgb(0 0 0 / 26%), 0 12px 32px rgb(0 0 0 / 26%);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 48%);
  --shadow-accent: none;
  --ds-brass: #dcb86e; --ds-brass-ink: #e6c787; --ds-brass-soft: #37301f;
  --ds-canvas: #13142a; --ds-card: #1b1c37; --ds-card-edge: #2e2f55;
  --ds-nav-active-bg: #2c2b5c; --ds-nav-active-ink: #d3d0f8;
  --dot-shell-canvas: #13142a; --dot-shell-surface: #1b1c37; --dot-shell-soft: #232442; --dot-shell-line: #2f3054;
  --dot-shell-ink: #ecebf7; --dot-shell-muted: #aeadc6; --dot-shell-accent: #4d48b0; --dot-shell-accent-ink: #c8c5f6;
}

/* Learner stage: primary learners get larger type and touch targets in every skin. */
html[data-ds][data-visual-world][data-palette][data-ds-skin][data-stage="primary"] {
  --ds-base: 16px;
  --ds-target: 48px;
}

/* ── 2. Canvas and type ───────────────────────────────────────────────────────────── */
html[data-ds][data-visual-world] body {
  font-family: var(--ds-sans) !important;
  font-size: var(--ds-base);
  color: var(--ink);
  background-color: var(--ds-canvas) !important;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}
html[data-ds][data-visual-world] :is(h1, h2, h3) { font-family: var(--font-display) !important; letter-spacing: var(--ds-display-track) !important; }
html[data-ds][data-visual-world] :is(h4, h5, h6, button, input, textarea, select, label) { font-family: var(--ds-sans); }
html[data-ds][data-visual-world] ::selection { background: var(--accent-soft); color: var(--ink); }
/* Academy: Baskerville for English, Songti for Chinese headings where the system has it. */
html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) {
  --font-display: "Aivia Baskerville", Baskerville, "Libre Baskerville", "Baskerville Old Face", Georgia, "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}
/* Minimal shows no scenery: the canvas is the colour. */
html[data-ds][data-visual-world][data-ds-skin="minimal"] body::before { background: var(--ds-canvas) !important; }
html[data-ds][data-visual-world][data-ds-skin="minimal"] .academy-night-canvas { background: var(--ds-canvas) !important; }
html[data-ds][data-visual-world][data-ds-skin="minimal"] #appShell .academy-scenery { display: none !important; }
/* Academy and vivid: scenery stays atmospheric behind the workspace; the veil keeps text calm. */
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body::before {
  background: linear-gradient(rgb(var(--panorama-day-rgb) / 97%) 0, rgb(var(--panorama-day-rgb) / 80%) 200px, rgb(var(--panorama-day-rgb) / 55%) 520px), linear-gradient(90deg, rgb(var(--panorama-day-rgb) / 86%), rgb(var(--panorama-day-rgb) / 95%) 22%, rgb(var(--panorama-day-rgb) / 95%) 84%, rgb(var(--panorama-day-rgb) / 82%)), var(--panorama-day) var(--panorama-position) / cover no-repeat !important;
}
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) .academy-night-canvas {
  background: linear-gradient(rgb(var(--panorama-night-rgb) / 97%) 0, rgb(var(--panorama-night-rgb) / 80%) 200px, rgb(var(--panorama-night-rgb) / 58%) 520px), linear-gradient(90deg, rgb(var(--panorama-night-rgb) / 88%), rgb(var(--panorama-night-rgb) / 95%) 22%, rgb(var(--panorama-night-rgb) / 95%) 84%, rgb(var(--panorama-night-rgb) / 84%)), var(--panorama-night) var(--panorama-position) / cover no-repeat !important;
}

/* ── 3. Shell: sidebar ─────────────────────────────────────────────────────────────── */
html[data-ds][data-visual-world] .app-shell { width: 100% !important; max-width: none !important; }
@media (min-width: 1181px) { html[data-ds][data-visual-world] .app-shell { grid-template-columns: var(--ds-sidebar) minmax(0, 1fr) !important; } }
html[data-ds][data-visual-world] #appShell .sidebar {
  width: var(--ds-sidebar) !important;
  padding: 22px 14px 16px !important;
  background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
  border-right: 1px solid var(--hairline-soft) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: saturate(140%) blur(18px) !important;
  backdrop-filter: saturate(140%) blur(18px) !important;
  gap: 6px;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #appShell .sidebar { background: var(--ds-canvas) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-ds][data-visual-world] .sidebar .brand { padding: 0 8px 22px !important; gap: 10px !important; align-items: center; }
html[data-ds][data-visual-world] .sidebar .brand-mark { width: 34px !important; height: 34px !important; flex: none; }
html[data-ds][data-visual-world] .sidebar .brand strong {
  font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
  font-size: 19px !important; line-height: 1.15; color: var(--ink) !important; letter-spacing: var(--ds-display-track) !important;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] .sidebar .brand strong { font-size: 20px !important; font-weight: 900 !important; color: var(--accent-ink) !important; }
html[data-ds][data-visual-world] #mainNav.nav { gap: 2px !important; }
html[data-ds][data-visual-world] #mainNav .nav-item {
  position: relative;
  min-height: var(--ds-target) !important; padding: 0 12px !important; gap: 12px !important;
  border: 0 !important; border-radius: var(--ds-r-control) !important;
  color: var(--ink-2) !important; background: transparent !important;
  font-size: calc(var(--ds-base) - 1px) !important; font-weight: 560 !important;
  transition: background-color var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease) !important;
}
html[data-ds][data-visual-world] #mainNav .nav-item .nav-ic { width: 22px; height: 22px; display: inline-grid; place-items: center; opacity: .82; }
html[data-ds][data-visual-world] #mainNav .nav-item .ic { width: 20px !important; height: 20px !important; stroke-width: 1.75 !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #mainNav .nav-item:not(.active):hover { background: color-mix(in srgb, var(--ink) 5%, transparent) !important; color: var(--ink) !important; }
}
html[data-ds][data-visual-world] #mainNav .nav-item.active {
  background: var(--ds-nav-active-bg) !important; color: var(--ds-nav-active-ink) !important; font-weight: 680 !important;
}
html[data-ds][data-visual-world] #mainNav .nav-item.active .nav-ic { opacity: 1; }
html[data-ds][data-visual-world] #mainNav .nav-item.active::before {
  content: "" !important; position: absolute !important; left: 0 !important; top: 50% !important;
  width: 3px !important; height: 18px !important; transform: translateY(-50%);
  border-radius: 0 3px 3px 0 !important; background: var(--ds-nav-mark) !important; display: block !important;
}

/* Daily English: a quiet line of English rather than a card with clip art. */
html[data-ds][data-visual-world] .sidebar .quote-card {
  margin: auto 4px 10px !important; padding: 16px 4px 4px !important;
  background: none !important; border: 0 !important; border-top: 1px solid var(--hairline) !important; border-radius: 0 !important; box-shadow: none !important;
}
html[data-ds][data-visual-world] .sidebar .quote-card::before, html[data-ds][data-visual-world] .sidebar .quote-card::after { display: none !important; }
html[data-ds][data-visual-world] .sidebar .quote-card .eyebrow {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px !important;
  color: var(--muted) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
}
html[data-ds][data-visual-world] .sidebar .quote-card .eyebrow .ic { color: var(--ds-brass, var(--accent)); width: 14px; height: 14px; }
html[data-ds][data-visual-world] .sidebar .quote-card #dailyQuote {
  display: block; color: var(--ink) !important; font-family: var(--font-display) !important; font-weight: 400 !important;
  font-size: 15px !important; line-height: 1.55 !important;
}
html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) .sidebar .quote-card #dailyQuote { font-style: italic; font-size: 16px !important; }
html[data-ds][data-visual-world][data-ds-skin="vivid"] .sidebar .quote-card {
  border: 0 !important; border-radius: var(--ds-r-card) !important; padding: 14px 14px 12px !important;
  background: color-mix(in srgb, var(--ds-sun) 22%, var(--surface)) !important;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] .sidebar .quote-card #dailyQuote { font-weight: 700 !important; }
html[data-ds][data-visual-world][data-ds-skin="vivid"].cv-dark .sidebar .quote-card { background: color-mix(in srgb, var(--ds-sun) 14%, var(--surface)) !important; }

html[data-ds][data-visual-world] .sidebar .account-chip {
  min-height: 56px; padding: 8px 10px !important; gap: 10px !important;
  border: 1px solid var(--hairline-soft) !important; border-radius: var(--ds-r-control) !important;
  background: var(--surface) !important; box-shadow: none !important;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] .sidebar .account-chip { background: transparent !important; }
html[data-ds][data-visual-world] .sidebar .account-avatar { background: var(--accent) !important; color: #fff !important; font-weight: 700; }
html[data-ds][data-visual-world].cv-dark .sidebar .account-avatar { background: var(--academy-action) !important; }
html[data-ds][data-visual-world] .sidebar .account-meta small { color: var(--muted) !important; font-size: 12px !important; }
html[data-ds][data-visual-world] .sidebar .account-meta strong { color: var(--ink) !important; font-size: 14px !important; }

/* ── 4. Shell: header (desktop and tablet) ───────────────────────────────────────────
   One row: page title and level on the left, tools on the right; Dot sits at the end. */
html[data-ds][data-visual-world] #appShell .main { padding: 0 var(--ds-gutter) 64px !important; row-gap: 20px !important; }
html[data-ds][data-visual-world] #appShell .main > :is(.view, #view-today) { max-width: var(--ds-content) !important; width: 100% !important; margin-inline: auto !important; }
@media (min-width: 768px) {
  html[data-ds][data-visual-world][data-ds-skin] body[data-view]:not([data-dot-shell="guided"]) #appShell .main #dot-original-topbar.topbar,
  html[data-ds][data-visual-world][data-ds-skin] body[data-view]:not([data-dot-shell="guided"]) #appShell .main #dot-original-topbar.topbar:has(#avdot-launcher:not([hidden])),
  html[data-ds][data-visual-world][data-ds-skin] body[data-view]:not([data-dot-shell="guided"]) #appShell .main #dot-original-topbar.topbar:has(.academy-home-masthead:not(:empty)) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    grid-template-areas: "title actions" "masthead masthead" !important;
    align-items: start !important; column-gap: 24px !important; row-gap: 12px !important;
    width: 100%; max-width: var(--ds-content); margin: 0 auto !important; box-sizing: border-box;
    min-height: 0 !important; padding: 28px 0 8px !important;
  }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar :is(#menuToggle, .academy-mobile-brand, .academy-search-toggle, .academy-search-close) { display: none !important; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .topbar-title { grid-area: title !important; width: auto !important; padding: 0 !important; display: grid; gap: 6px; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .top-actions {
    grid-area: actions !important; position: static !important; display: flex !important;
    align-items: center; gap: 8px !important; max-width: none !important; padding-top: 2px;
  }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .top-actions #academySearchBox { order: 1; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .top-actions #themeToggle { order: 2; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .top-actions #dot-shell-return-entry { order: 3; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .top-actions #avdot-launcher { order: 4; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .academy-home-masthead { grid-area: masthead !important; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .academy-header-scene { top: 0; height: 200px; width: min(52%, 560px); }
}
html[data-ds][data-visual-world] #appShell #dot-original-topbar h1#viewTitle {
  margin: 0 !important; color: var(--ink) !important;
  font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
  font-size: 32px !important; line-height: 1.2 !important; letter-spacing: var(--ds-display-track) !important;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] #appShell #dot-original-topbar h1#viewTitle { font-weight: 900 !important; }
/* Level and class read as one quiet line under the title. */
html[data-ds][data-visual-world] #appShell #workspaceLevel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px !important; min-height: 0; color: var(--muted) !important; font-size: 14px !important; }
html[data-ds][data-visual-world] #appShell #workspaceLevel :is(.learning-level, .workspace-class-context) { display: inline-flex; align-items: center; gap: 6px; min-height: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--muted) !important; }
html[data-ds][data-visual-world] #appShell #workspaceLevel strong { color: var(--ink) !important; font-weight: 650 !important; font-size: 14px !important; }
html[data-ds][data-visual-world] #appShell #workspaceLevel .workspace-class-context::before { content: ""; width: 1px; height: 12px; background: var(--hairline) !important; margin-right: 8px; display: inline-block !important; position: static !important; }
html[data-ds][data-visual-world] #appShell #workspaceLevel .learning-level-help { min-width: 0 !important; min-height: 0 !important; }
html[data-ds][data-visual-world] #appShell #workspaceLevel .learning-level-help > summary { width: 28px !important; height: 28px !important; min-height: 28px !important; min-width: 28px !important; }

/* Header tools share one height and one surface. */
html[data-ds][data-visual-world] #appShell .topbar :is(#themeToggle, #menuToggle, .academy-search-toggle, .academy-search-close, .search-box) {
  height: 44px !important; min-height: 44px !important;
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important;
  background: color-mix(in srgb, var(--surface) 86%, transparent) !important; color: var(--ink-2) !important;
  box-shadow: none !important;
}
html[data-ds][data-visual-world] #appShell .topbar .search-box { width: 280px !important; padding: 0 12px !important; gap: 8px; }
html[data-ds][data-visual-world] #appShell .topbar .search-box input::placeholder { color: var(--muted); opacity: 1; }
html[data-ds][data-visual-world] #appShell .topbar #themeToggle { width: 44px !important; min-width: 44px !important; padding: 0 !important; justify-content: center; }
html[data-ds][data-visual-world] #appShell .topbar #themeToggle > span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Dot: the learning-shell entry is one quiet light pill in every skin (the 5.8.21 design):
   a tint of the skin's colour with a hairline of it, no shadow. Its little face is Dot's own
   violet, so it reads as Dot rather than as two dots floating before the label. */
html[data-ds][data-visual-world] #appShell .topbar #dot-shell-return-entry {
  --dot-shell-accent: var(--ds-dot);
  height: 44px !important; min-height: 44px !important; padding: 0 16px 0 12px !important; gap: 8px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent) !important; border-radius: 999px !important;
  background: var(--accent-soft) !important; color: var(--accent-ink) !important;
  font-weight: 650 !important; font-size: 14px !important; box-shadow: none !important;
}
html[data-ds][data-visual-world] #appShell .topbar #dot-shell-return-entry :is(svg, .ic, span[class*="eye"], [class*="avatar"]) { color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #appShell .topbar #dot-shell-return-entry:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)) !important; }
  /* Dark: mixing into the dark surface turned the tint grey; step the tint itself up instead. */
  html[data-ds][data-visual-world].cv-dark #appShell .topbar #dot-shell-return-entry:hover { background: color-mix(in srgb, var(--accent) 14%, var(--accent-soft)) !important; }
}
html[data-ds][data-visual-world] #appShell .topbar #dot-shell-return-entry:active { transform: scale(.98) !important; }
html[data-ds][data-visual-world] #appShell .topbar #avdot-launcher { width: 44px !important; height: 44px !important; flex: none; }

/* ── 5. Tablet: navigation rail (768–1180px) ─────────────────────────────────────────
   All destinations stay visible with icon and label; no drawer and no bottom tab bar. */
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-ds][data-visual-world] { --ds-gutter: 28px; }
  html[data-ds][data-visual-world] .app-shell { grid-template-columns: var(--ds-rail) minmax(0, 1fr) !important; }
  html[data-ds][data-visual-world] #appShell .sidebar {
    position: sticky !important; top: 0 !important; left: auto !important; transform: none !important; visibility: visible !important;
    width: var(--ds-rail) !important; height: 100vh !important; height: 100dvh !important; z-index: 20 !important;
    padding: 16px 8px 12px !important; border-radius: 0 !important; box-shadow: none !important; transition: none !important;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  }
  html[data-ds][data-visual-world] #appShell .sidebar .brand { justify-content: center; padding: 0 0 14px !important; }
  html[data-ds][data-visual-world] #appShell .sidebar .brand > div:not(.brand-mark) { display: none !important; }
  html[data-ds][data-visual-world] #appShell #mainNav .nav-item:not(.hidden):not([hidden]) {
    display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important;
    gap: 4px !important; min-height: 60px !important; padding: 8px 2px !important; text-align: center;
    font-size: 12px !important; line-height: 1.2 !important;
  }
  html[data-ds][data-visual-world] #appShell #mainNav .nav-item .nav-tx { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; display: block; text-align: center; }
  html[data-ds][data-visual-world] #appShell #mainNav .nav-item.active::before { left: -8px !important; }
  html[data-ds][data-visual-world] #appShell .sidebar .quote-card { display: none !important; }
  html[data-ds][data-visual-world] #appShell .sidebar .account-footer { margin-top: auto; }
  html[data-ds][data-visual-world] #appShell .sidebar .account-chip { justify-content: center; padding: 6px !important; min-height: 52px; border: 0 !important; background: transparent !important; }
  html[data-ds][data-visual-world] #appShell .sidebar .account-chip :is(.account-meta, .account-gear) { display: none !important; }
  html[data-ds][data-visual-world] body.nav-open::after { display: none !important; }
  html[data-ds][data-visual-world] .mobile-tabbar { display: none !important; }
  html[data-ds][data-visual-world] #appShell .main { padding-bottom: 48px !important; }
  html[data-ds][data-visual-world] #appShell .topbar .search-box { width: 220px !important; }
}

/* ── 6. Phone (< 768px): compact header, bottom tab bar ─────────────────────────────── */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] { --ds-gutter: 16px; }
  html[data-ds][data-visual-world] #appShell .main { padding: 0 16px var(--cv-mobile-tabbar-clearance, 96px) !important; row-gap: 14px !important; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar { padding-top: max(8px, env(safe-area-inset-top)) !important; }
  /* 5.10.3: bleed exactly the 16px phone gutter (academy-theme.css keeps -24px up to 600px, so 601-767px scrolled sideways by 8px). */
  html[data-ds][data-visual-world] #appShell #dot-original-topbar { margin-inline: -16px !important; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar .academy-mobile-brand {
    font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
    color: var(--ink) !important; font-size: 19px !important; text-align: left !important; letter-spacing: var(--ds-display-track);
    align-self: center;
  }
  html[data-ds][data-visual-world][data-ds-skin="vivid"] #appShell #dot-original-topbar .academy-mobile-brand { color: var(--accent-ink) !important; font-weight: 900 !important; }
  html[data-ds][data-visual-world] #appShell #dot-original-topbar h1#viewTitle { font-size: 26px !important; }
  html[data-ds][data-visual-world] #appShell .topbar :is(#themeToggle, #menuToggle, .academy-search-toggle, .academy-search-close):not([hidden]) {
    width: 44px !important; min-width: 44px !important; padding: 0 !important; display: inline-grid !important; place-items: center;
    border-color: transparent !important; background: transparent !important;
  }
  html[data-ds][data-visual-world] #appShell .topbar .search-box { width: 100% !important; }
  html[data-ds][data-visual-world] #appShell .topbar #dot-shell-return-entry { height: 40px !important; min-height: 40px !important; font-size: 13px !important; padding: 0 14px 0 10px !important; }
  html[data-ds][data-visual-world] #appShell .sidebar { border-radius: 0 var(--ds-r-hero) var(--ds-r-hero) 0 !important; background: var(--surface) !important; width: min(300px, calc(100vw - 56px)) !important; }
  html[data-ds][data-visual-world] #appShell .sidebar .quote-card { display: none !important; }

  html[data-ds][data-visual-world] .mobile-tabbar {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    background: color-mix(in srgb, var(--surface) 90%, transparent) !important;
    -webkit-backdrop-filter: saturate(160%) blur(20px) !important; backdrop-filter: saturate(160%) blur(20px) !important;
    border-top: 1px solid var(--hairline-soft) !important; box-shadow: none !important;
  }
  html[data-ds][data-visual-world] .mobile-tabbar .mobile-tab {
    min-height: 54px !important; gap: 4px !important; border-radius: var(--ds-r-control) !important;
    color: var(--muted) !important; font-size: 12px !important; /* 小修-20261125 原11px */ font-weight: 600 !important; background: transparent !important;
  }
  html[data-ds][data-visual-world] .mobile-tabbar .mobile-tab .mt-icon {
    width: 48px !important; height: 28px !important; display: grid !important; place-items: center; border-radius: 999px !important;
    background: transparent !important; transform: none !important; transition: background-color var(--ds-fast) var(--ds-ease);
  }
  html[data-ds][data-visual-world] .mobile-tabbar .mobile-tab .ic { width: 22px !important; height: 22px !important; stroke-width: 1.8 !important; }
  html[data-ds][data-visual-world] .mobile-tabbar .mobile-tab.active { color: var(--accent-ink) !important; font-weight: 700 !important; }
  html[data-ds][data-visual-world] .mobile-tabbar .mobile-tab.active .mt-icon { background: var(--ds-nav-active-bg, var(--accent-soft)) !important; } /* 5.10.3: same chip as the selected side-nav item */
  html[data-ds][data-visual-world][data-ds-skin="minimal"] .mobile-tabbar .mobile-tab.active { color: var(--ink) !important; }
  html[data-ds][data-visual-world][data-ds-skin="minimal"] .mobile-tabbar .mobile-tab.active .mt-icon { background: var(--ds-nav-active-bg) !important; }
}
html[data-ds][data-visual-world][data-stage="primary"] .mobile-tabbar .mobile-tab { font-size: 12px !important; }

/* ── 7. Primitives: buttons, fields, cards, chips ─────────────────────────────────────
   5.10.3 calm: one button spec in every skin, colour is the only thing a skin changes.
   Primary: the skin's action colour, white label, no shadow, 10px corners. Secondary: the
   surface with a hairline. Small buttons, tags, entry pills, back and the Dot entry are
   999px pills. Hover only darkens one step, a press scales to .98, nothing lifts or shines. */
html[data-ds][data-visual-world] :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta) {
  min-height: var(--ds-target);
  border-radius: var(--ds-r-control) !important;
  background: var(--academy-action) !important; color: #fff !important; border: 1px solid transparent !important;
  font-weight: 650 !important; letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: background-color var(--ds-fast) var(--ds-ease), box-shadow var(--ds-fast) var(--ds-ease), transform var(--ds-fast) var(--ds-ease) !important;
}
/* refine.css lifts the word-card buttons with a coloured glow in dark mode at (0,4,2). */
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta) { box-shadow: none !important; }
html[data-ds][data-visual-world] :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta):disabled { opacity: .45 !important; box-shadow: none !important; }
html[data-ds][data-visual-world] .primary-action.danger-action { background: var(--red-ink) !important; }
html[data-ds][data-visual-world].cv-dark .primary-action.danger-action { background: #b3382e !important; }
html[data-ds][data-visual-world] :is(.secondary-action, .cv-wc-know, .cv-wc-tool, .pill-button) {
  min-height: var(--ds-target);
  border-radius: var(--ds-r-control) !important;
  background: var(--surface) !important; color: var(--ink-2) !important; border: 1px solid var(--hairline) !important;
  font-weight: 600 !important; box-shadow: none !important;
  transition: background-color var(--ds-fast) var(--ds-ease), border-color var(--ds-fast) var(--ds-ease) !important;
}
html[data-ds][data-visual-world] .icon-button { border-radius: var(--ds-r-control) !important; border-color: var(--hairline) !important; background: var(--surface) !important; color: var(--ink-2) !important; box-shadow: none !important; }
html[data-ds][data-visual-world] .secondary-action.danger-action { color: var(--red-ink) !important; border-color: color-mix(in srgb, var(--red-ink) 30%, var(--hairline)) !important; }
/* Entry pills (开始 / 继续 / 回看 on homework and check-in rows): a light tint with coloured
   text, so the page keeps one solid button. --mod is the workspace colour where a view sets
   one and the skin colour elsewhere; the text is deepened toward the ink so it keeps 4.5:1
   on every skin, light and dark. "Done" rows (is-secondary) step down to a hairline pill. */
html[data-ds][data-visual-world] .task-entry-action {
  --ds-entry: var(--mod, var(--accent));
  border-radius: 999px !important; box-shadow: none !important; font-weight: 650 !important; letter-spacing: 0 !important;
  transition: background-color var(--ds-fast) var(--ds-ease), border-color var(--ds-fast) var(--ds-ease), transform var(--ds-fast) var(--ds-ease) !important;
}
html[data-ds][data-visual-world] .task-entry-action.is-primary {
  min-height: var(--ds-target);
  background: color-mix(in srgb, var(--ds-entry) 12%, var(--ds-card)) !important; color: color-mix(in srgb, var(--ds-entry) 80%, var(--ink)) !important;
  border: 1px solid color-mix(in srgb, var(--ds-entry) 22%, transparent) !important;
}
html[data-ds][data-visual-world] .task-entry-action.is-secondary { background: transparent !important; color: var(--ink-2) !important; border: 1px solid var(--hairline) !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta):not(:disabled):hover { background: var(--academy-action-hover) !important; }
  html[data-ds][data-visual-world] :is(.secondary-action, .cv-wc-know, .cv-wc-tool, .pill-button):not(:disabled):hover { background: var(--surface-2) !important; border-color: var(--accent-edge) !important; color: var(--ink) !important; }
  html[data-ds][data-visual-world] .icon-button:not(:disabled):hover { background: var(--surface-2) !important; }
  html[data-ds][data-visual-world] button.task-entry-action.is-primary:not(:disabled):hover { background: color-mix(in srgb, var(--ds-entry) 18%, var(--ds-card)) !important; }
  html[data-ds][data-visual-world] button.task-entry-action.is-secondary:not(:disabled):hover { background: var(--surface-2) !important; }
}
/* Legacy layers raise buttons 1–2px on hover (it sticks after a tap on phones) and add a
   brightness filter; here nothing lifts and a press is one small scale. The press rule
   outranks the hover one so the feedback survives a hovered pointer. A disabled button keeps
   its own filter (the gated 下一个 is greyed with grayscale), so a hover cannot "enable" it. */
html[data-ds][data-visual-world] :is(.primary-action, .secondary-action, .pill-button, .icon-button, .cv-wc-next, .cv-wc-know, .cv-wc-tool, .cv-wc-say, .home-main-cta, .task-entry-action, .reading-mode-tabs button, .writing-mode-tabs button):hover { transform: none !important; }
html[data-ds][data-visual-world] :is(.primary-action, .secondary-action, .pill-button, .icon-button, .cv-wc-next, .cv-wc-know, .cv-wc-tool, .cv-wc-say, .home-main-cta, .task-entry-action, .reading-mode-tabs button, .writing-mode-tabs button):not(:disabled):hover { filter: none !important; }
html[data-ds][data-visual-world] :is(.primary-action, .secondary-action, .pill-button, .icon-button, .cv-wc-next, .cv-wc-know, .cv-wc-tool, .cv-wc-say, .home-main-cta, .task-entry-action, .cv-rev-btn):not(:disabled):active { transform: scale(.98) !important; }
html[data-ds][data-visual-world] :is(.primary-action, .secondary-action, .cv-wc-next, .cv-wc-know, .cv-wc-tool, .cv-wc-say, .pill-button, .icon-button, .task-entry-action):focus-visible {
  outline: 2px solid var(--accent) !important; outline-offset: 2px !important;
}
html[data-ds][data-visual-world] :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta):focus-visible { outline-color: var(--accent) !important; }

html[data-ds][data-visual-world] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([class*="search"] > input), textarea, select) {
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important;
  background-color: var(--surface) !important; color: var(--ink) !important;
  transition: border-color var(--ds-fast) var(--ds-ease), box-shadow var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] .search-box input#globalSearch.search-input, html[data-ds][data-visual-world] .search-box input#globalSearch, html[data-ds][data-visual-world] .search-box input:is([type="search"], [type="text"], :not([type])) { border: 0 !important; background: transparent !important; box-shadow: none !important; }
html[data-ds][data-visual-world] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([class*="search"] > input), textarea, select):focus {
  outline: none !important; border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important;
}
/* Search fields drawn by their wrapper (icon + input): the wrapper is the field. */
html[data-ds][data-visual-world] :is(label, div)[class*="search"]:has(> input:not([type="checkbox"])) {
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important; background: var(--surface) !important; color: var(--muted);
}
html[data-ds][data-visual-world] [class*="search"] > input:not([type="checkbox"]) { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; }
html[data-ds][data-visual-world] :is(label, div)[class*="search"]:has(> input:focus) { border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important; }
html[data-ds][data-visual-world] .search-box:focus-within { outline: none !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important; }
html[data-ds][data-visual-world] .search-box input:focus { box-shadow: none !important; }
html[data-ds][data-visual-world] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--academy-action); }
/* 小修-20261125 聚焦补漏：
   1）带图标的搜索框（顶栏全站搜索、听力页搜索、管理员各搜索框）聚焦时画在外框上。顶栏和听力页各有一条带 id 的规则
      （本文件「#appShell .topbar :is(#themeToggle…)」、academy-panorama.css、refine.css「#view-listen .listen-search」）把外框的
      边线和阴影钉成平时的样子，上面 :has(> input:focus) 那条输了，Tab 进去什么都看不出来。两个 :not(#_) 只为抬高优先级，不排除任何元素。
   2）输入框和外框的聚焦立刻出现，不渐变（cv-anim.css 给 :focus 加了 0.18s 过渡）。离开时仍按原来的过渡淡出。 */
html[data-ds][data-visual-world] :is(label, div)[class*="search"]:has(> input:not([type="checkbox"]):focus):not(#_):not(#_) {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important;
  transition-duration: 0s !important;
}
html[data-ds][data-visual-world] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus:not(#_) { transition-duration: 0s !important; }

/* Cards: one surface language. Academy and vivid lift slightly; minimal uses a hairline. */
html[data-ds][data-visual-world] .surface-card {
  background: var(--ds-card) !important; border: 1px solid var(--ds-card-edge) !important;
  border-radius: var(--ds-r-card) !important; box-shadow: var(--shadow-sm) !important;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] .surface-card { box-shadow: none !important; }
html[data-ds][data-visual-world] .section-head h3 { font-size: 19px !important; font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] .eyebrow { letter-spacing: 0 !important; text-transform: none !important; }
html[data-ds][data-visual-world] :is(.badge, .status-pill, .role-chip) { border-radius: 999px !important; font-weight: 650; }
html[data-ds][data-visual-world] .feedback { border-radius: var(--ds-r-control) !important; }
html[data-ds][data-visual-world] :is(.muted, small) { color: var(--muted); }
html[data-ds][data-visual-world] .ic { stroke-width: 1.8; }
html[data-ds][data-visual-world] :is(.metric-value, .stat-value, .ring span, .hero-progress strong) { font-variant-numeric: tabular-nums lining-nums; }

/* ── 8. Home (学习中心) ────────────────────────────────────────────────────────────────
   Overview becomes one hero panel: the next step on the left, today's numbers on the right.
   Each workspace keeps its own colour so children find "words", "listening"… by sight. */
html[data-ds][data-visual-world][data-ds-skin="academy"] {
  --ds-mod-vocab: #203d86; --ds-mod-listen: #2f7259; --ds-mod-reading: #8a6418; --ds-mod-writing: #8a2d3b; --ds-mod-review: #3d5fb5; --ds-mod-records: #5b4a8a;
}
html[data-ds][data-visual-world][data-ds-skin="academy"].cv-dark {
  --ds-mod-vocab: #a9bdf3; --ds-mod-listen: #8fd1b5; --ds-mod-reading: #e2c387; --ds-mod-writing: #f0a3ad; --ds-mod-review: #a9bdf3; --ds-mod-records: #c7b8f0;
}
html[data-ds][data-visual-world][data-ds-skin="library"] {
  --ds-mod-vocab: #1f5c46; --ds-mod-listen: #2f5f86; --ds-mod-reading: #8a6418; --ds-mod-writing: #8a2d3b; --ds-mod-review: #5b4a8a; --ds-mod-records: #7a5b1d;
}
html[data-ds][data-visual-world][data-ds-skin="library"].cv-dark {
  --ds-mod-vocab: #a8cdb3; --ds-mod-listen: #9cc3e6; --ds-mod-reading: #e2c387; --ds-mod-writing: #f0a3ad; --ds-mod-review: #c7b8f0; --ds-mod-records: #e8c47c;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] {
  --ds-mod-vocab: #5a4eb0; --ds-mod-listen: #1672bd; --ds-mod-reading: #0a7d60; --ds-mod-writing: #c2510f; --ds-mod-review: #c4366a; --ds-mod-records: #9a6a00;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"].cv-dark {
  --ds-mod-vocab: #c6bfee; --ds-mod-listen: #7cc4ff; --ds-mod-reading: #6fe0bd; --ds-mod-writing: #ffab73; --ds-mod-review: #ff8fb4; --ds-mod-records: #ffd36b;
}
html[data-ds][data-visual-world][data-ds-skin="ginkgo"] {
  --ds-mod-vocab: #2f4a5c; --ds-mod-listen: #2f6f5a; --ds-mod-reading: #8a6418; --ds-mod-writing: #9b3324; --ds-mod-review: #5b4a8a; --ds-mod-records: #7a5b1d;
}
html[data-ds][data-visual-world][data-ds-skin="ginkgo"].cv-dark {
  --ds-mod-vocab: #a9c6d6; --ds-mod-listen: #8fd1b5; --ds-mod-reading: #e2c387; --ds-mod-writing: #f2a596; --ds-mod-review: #c7b8f0; --ds-mod-records: #e8c47c;
}
html[data-ds][data-visual-world][data-ds-skin="seaside"] {
  --ds-mod-vocab: #1d6390; --ds-mod-listen: #1f7a6c; --ds-mod-reading: #8a6418; --ds-mod-writing: #b04e2d; --ds-mod-review: #5b4a8a; --ds-mod-records: #7a5b1d;
}
html[data-ds][data-visual-world][data-ds-skin="seaside"].cv-dark {
  --ds-mod-vocab: #9ccbec; --ds-mod-listen: #86d6c6; --ds-mod-reading: #e8c47c; --ds-mod-writing: #f4a487; --ds-mod-review: #c7b8f0; --ds-mod-records: #e8c47c;
}
html[data-ds][data-visual-world][data-ds-skin="observatory"] {
  --ds-mod-vocab: #3d3a8c; --ds-mod-listen: #2f6f86; --ds-mod-reading: #8a6418; --ds-mod-writing: #8a2d3b; --ds-mod-review: #5a56b0; --ds-mod-records: #7a5b1d;
}
html[data-ds][data-visual-world][data-ds-skin="observatory"].cv-dark {
  --ds-mod-vocab: #bcb8f4; --ds-mod-listen: #9cd0e6; --ds-mod-reading: #e2c387; --ds-mod-writing: #f0a3ad; --ds-mod-review: #c7b8f0; --ds-mod-records: #e8c47c;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] {
  --ds-mod-vocab: var(--ink-2); --ds-mod-listen: var(--ink-2); --ds-mod-reading: var(--ink-2); --ds-mod-writing: var(--ink-2); --ds-mod-review: var(--ink-2); --ds-mod-records: var(--ink-2);
}
html[data-ds][data-visual-world] .home-workspaces { gap: 24px !important; }

/* Overview hero */
html[data-ds][data-visual-world] #view-today .home-overview-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-areas: "journey today" "journey quota";
  grid-auto-flow: row dense;
  align-items: stretch; gap: 0 !important;
  padding: 0 !important; border: 1px solid var(--ds-card-edge) !important; border-radius: var(--ds-r-hero) !important;
  background: var(--ds-card) !important; box-shadow: var(--shadow) !important; overflow: hidden;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-today .home-overview-bar { box-shadow: none !important; }
html[data-ds][data-visual-world] #view-today .home-overview-bar > * { margin: 0 !important; min-width: 0; }
html[data-ds][data-visual-world] #view-today .home-overview-bar > :not(.learning-journey):not(.home-completion):not(.home-member-quota) { grid-column: 1 / -1; padding: 16px 28px; border-top: 1px solid var(--hairline-soft); }
html[data-ds][data-visual-world] #view-today .home-overview-bar > .learning-journey {
  grid-area: journey; order: 0 !important;
  display: flex !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px !important;
  padding: 32px 32px 30px !important; border: 0 !important; position: relative;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--ds-card) !important;
}
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"], [data-ds-skin="vivid"]) #view-today .home-overview-bar > .learning-journey::before {
  content: ""; position: absolute; left: 32px; top: 0; width: 56px; height: 3px; background: var(--ds-brass); border-radius: 0 0 3px 3px;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-today .home-overview-bar > .learning-journey { background: var(--ds-card) !important; }
html[data-ds][data-visual-world] #view-today .learning-journey-copy { gap: 8px !important; max-width: 60ch; flex: 0 1 auto !important; }
html[data-ds][data-visual-world] #view-today .learning-journey-copy strong {
  font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
  font-size: 26px !important; line-height: 1.3 !important; color: var(--ink) !important; letter-spacing: var(--ds-display-track);
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] #view-today .learning-journey-copy strong { font-weight: 900 !important; }
html[data-ds][data-visual-world] #view-today .learning-journey-copy :is(span, small) { font-size: 15px !important; color: var(--ink-2) !important; line-height: 1.6 !important; }
html[data-ds][data-visual-world] #view-today .learning-journey-copy small { color: var(--muted) !important; font-size: 13px !important; }
html[data-ds][data-visual-world] #view-today .learning-journey-copy .learning-journey-category { color: var(--accent-ink) !important; font-size: 13px !important; font-weight: 650 !important; }
html[data-ds][data-visual-world] #view-today .learning-journey :is(button, [data-journey]) { min-height: 48px !important; padding-inline: 22px !important; font-size: 15px !important; }

/* Today numbers */
html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion {
  grid-area: today; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 14px 16px !important;
  padding: 24px 24px 18px !important; border-left: 1px solid var(--hairline-soft); background: color-mix(in srgb, var(--surface-2) 70%, var(--ds-card));
  color: var(--muted) !important;
}
html[data-ds][data-visual-world] #view-today .home-completion > span:first-child { grid-column: 1 / -1; font-size: 13px !important; font-weight: 650; color: var(--ink-2) !important; }
html[data-ds][data-visual-world] #view-today .home-completion > strong {
  display: flex !important; flex-direction: column-reverse; align-items: flex-start; gap: 2px;
  color: var(--muted) !important; font-size: 12px !important; font-weight: 600 !important;
}
html[data-ds][data-visual-world] #view-today .home-completion > strong b {
  margin: 0 !important; font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
  font-size: 30px !important; line-height: 1.1 !important; color: var(--ink) !important; font-variant-numeric: tabular-nums lining-nums;
}
html[data-ds][data-visual-world] #view-today .home-completion .home-refresh-icon-action {
  grid-column: 1 / -1; justify-self: start; min-height: 36px !important; height: 36px !important; padding: 0 12px !important; gap: 6px;
  border-radius: 999px !important; font-size: 13px !important; background: var(--surface) !important;
}
html[data-ds][data-visual-world] #view-today .home-completion .home-refresh-label { display: inline !important; white-space: nowrap; }
html[data-ds][data-visual-world] #view-today .home-completion .home-refresh-icon-action:not([hidden]) { width: auto !important; min-width: 0 !important; white-space: nowrap; display: inline-flex !important; align-items: center; }
html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-member-quota {
  grid-area: quota; align-self: stretch; padding: 0 24px 18px !important; border: 0 !important; border-left: 1px solid var(--hairline-soft) !important;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--ds-card)) !important; flex: none !important;
}
html[data-ds][data-visual-world] #view-today .home-member-quota-head {
  width: 100%; padding: 10px 12px !important; min-height: 52px !important; gap: 10px !important;
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important; background: var(--surface) !important;
}
html[data-ds][data-visual-world] #view-today .home-member-mark { color: var(--ds-brass, var(--accent)) !important; background: transparent !important; }
html[data-ds][data-visual-world] #view-today .home-member-plan strong { font-size: 13px !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-today .home-member-plan .quota-summary { font-size: 12px !important; color: var(--muted) !important; }
html[data-ds][data-visual-world] #view-today .home-member-quota-body { padding: 10px 2px 0; }

/* Workspace cards */
html[data-ds][data-visual-world] .home-workspace-grid { gap: 20px !important; }
html[data-ds][data-visual-world] .home-workspace { --mod: var(--ds-mod-vocab); }
html[data-ds][data-visual-world] .home-workspace-listen { --mod: var(--ds-mod-listen); }
html[data-ds][data-visual-world] .home-workspace-reading { --mod: var(--ds-mod-reading); }
html[data-ds][data-visual-world] .home-workspace-writing { --mod: var(--ds-mod-writing); }
html[data-ds][data-visual-world] .home-workspace-review { --mod: var(--ds-mod-review); }
html[data-ds][data-visual-world] .home-workspace-records { --mod: var(--ds-mod-records); }
html[data-ds][data-visual-world] #view-today .home-workspace {
  padding: 22px 22px 18px !important; border: 1px solid var(--ds-card-edge) !important; border-radius: var(--ds-r-card) !important;
  background: var(--ds-card) !important; box-shadow: var(--shadow-sm) !important; position: relative;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-today .home-workspace { box-shadow: none !important; }
html[data-ds][data-visual-world] #view-today :is(.home-workspace-review, .home-workspace-records) { background: var(--ds-card) !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-head { gap: 14px !important; margin-bottom: 14px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-icon,
html[data-ds][data-visual-world] #view-today .home-workspace .cv-rail-review .cv-rail-eyebrow > svg {
  width: 44px !important; height: 44px !important; flex: 0 0 44px !important; border-radius: calc(var(--ds-r-control) + 2px) !important;
  background: color-mix(in srgb, var(--mod) 11%, var(--ds-card)) !important; color: var(--mod) !important;
}
html[data-ds][data-visual-world] #view-today .home-workspace .cv-rail-review .cv-rail-eyebrow > svg { padding: 11px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-icon .ic { width: 22px; height: 22px; }
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-today .home-workspace-icon,
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-today .home-workspace .cv-rail-review .cv-rail-eyebrow > svg { background: var(--surface-2) !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-head h2,
html[data-ds][data-visual-world] #view-today .home-workspace .cv-rail-eyebrow {
  font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
  font-size: 20px !important; line-height: 1.3 !important; color: var(--ink) !important;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] #view-today .home-workspace-head h2,
html[data-ds][data-visual-world][data-ds-skin="vivid"] #view-today .home-workspace .cv-rail-eyebrow { font-weight: 850 !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-head small { font-size: 13px !important; color: var(--muted) !important; margin-top: 2px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-head .icon-button { border: 0 !important; background: transparent !important; color: var(--muted) !important; border-radius: 999px !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #view-today .home-workspace-head .icon-button:hover { background: var(--surface-2) !important; color: var(--mod) !important; }
}
html[data-ds][data-visual-world] #view-today .home-workspace .home-check-row { border-top-color: var(--hairline-soft) !important; padding: 14px 0 !important; min-height: 0 !important; }
html[data-ds][data-visual-world] #view-today .home-workspace :is(.home-check-main, .daily-checkin-main) > strong { font-size: 15px !important; font-weight: 650 !important; }
html[data-ds][data-visual-world] #view-today .home-task-kind {
  border-radius: 999px !important; padding: 2px 9px !important; font-size: 12px !important; /* 小修-20261125 原11.5px */
  background: color-mix(in srgb, var(--mod) 10%, var(--ds-card)) !important; color: color-mix(in srgb, var(--mod) 80%, var(--ink)) !important;
}
/* 开始 / 继续, 去听音频 and 进入训练 in the cards: the workspace-tinted entry pill (section 7),
   so the overview's 继续学习 stays the one solid button on the page. */
html[data-ds][data-visual-world] #view-today .home-workspace .task-entry-action { border-radius: 999px !important; padding: 8px 16px !important; font-weight: 650 !important; }
html[data-ds][data-visual-world] #view-today .home-workspace :is(.home-workspace-empty button, .cv-rev-go) {
  --ds-entry: var(--mod);
  border-radius: 999px !important; box-shadow: none !important; font-weight: 650 !important;
  background: color-mix(in srgb, var(--ds-entry) 12%, var(--ds-card)) !important; color: color-mix(in srgb, var(--ds-entry) 80%, var(--ink)) !important;
  border: 1px solid color-mix(in srgb, var(--ds-entry) 22%, transparent) !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #view-today .home-workspace :is(.home-workspace-empty button, .cv-rev-go):not(:disabled):hover { background: color-mix(in srgb, var(--ds-entry) 18%, var(--ds-card)) !important; }
}
/* Minimal's workspaces are all neutral ink; its one brand indigo marks the actions instead
   (as its solid 开始 did before), so the pills never read as greyed out. */
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-today .home-workspace :is(.task-entry-action, .home-workspace-empty button, .cv-rev-go) { --ds-entry: var(--accent); }
html[data-ds][data-visual-world] #view-today .home-workspace-empty { border-top: 1px solid var(--hairline-soft) !important; gap: 10px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-empty p { color: var(--muted) !important; font-size: 14px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace .cv-rev-word { font-family: var(--font-display) !important; font-size: 34px !important; font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world][data-ds-skin="vivid"] #view-today .home-workspace .cv-rev-word { font-weight: 900 !important; }
html[data-ds][data-visual-world] #view-today .home-workspace .cv-rev-btn { border-radius: 999px !important; font-weight: 650 !important; }
html[data-ds][data-visual-world] #view-today .home-record-links { border-top-color: var(--hairline-soft) !important; }
html[data-ds][data-visual-world] #view-today .home-record-links button { border-radius: var(--ds-r-control) !important; padding: 8px 10px !important; color: var(--ink-2) !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-notice { padding: 10px 16px; border-radius: var(--ds-r-control); background: var(--amber-soft); color: var(--amber-ink) !important; font-size: 14px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-notice .secondary-action { min-height: 36px !important; height: 36px; border-radius: 999px !important; }

@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-today .home-overview-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "journey" "today" "quota"; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > :is(.home-completion, .home-member-quota) { border-left: 0 !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion { grid-template-columns: auto auto 1fr; align-items: end; border-top: 1px solid var(--hairline-soft); }
  html[data-ds][data-visual-world] #view-today .home-completion .home-refresh-icon-action { grid-column: auto; justify-self: end; }
  html[data-ds][data-visual-world] #view-today .home-completion > span:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  html[data-ds][data-visual-world] .home-workspaces { gap: 16px !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar { border-radius: var(--ds-r-card) !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .learning-journey { padding: 22px 20px 20px !important; gap: 14px !important; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"], [data-ds-skin="vivid"]) #view-today .home-overview-bar > .learning-journey::before { left: 20px; }
  html[data-ds][data-visual-world] #view-today .learning-journey-copy strong { font-size: 21px !important; }
  html[data-ds][data-visual-world] #view-today .learning-journey :is(button, [data-journey]) { width: 100% !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion { padding: 16px 20px 14px !important; gap: 10px 18px !important; }
  html[data-ds][data-visual-world] #view-today .home-completion > strong b { font-size: 24px !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-member-quota { padding: 0 20px 16px !important; }
  html[data-ds][data-visual-world] #view-today .home-workspace { padding: 18px 18px 14px !important; }
  html[data-ds][data-visual-world] .home-workspace-grid { gap: 14px !important; }
}

/* ── 9. Listening (听力音频) ────────────────────────────────────────────────────────────
   Modes as a segmented control; the catalogue as one list with quiet rows. */
html[data-ds][data-visual-world] #view-listen { --mod: var(--ds-mod-listen); }
html[data-ds][data-visual-world] #view-listen .listen-mode-grid { border-radius: calc(var(--ds-r-control) + 4px) !important; background: color-mix(in srgb, var(--ink) 6%, transparent) !important; padding: 4px !important; }
html[data-ds][data-visual-world] #view-listen .listen-mode-card { border-radius: var(--ds-r-control) !important; color: var(--ink-2) !important; min-height: 40px !important; padding: 8px 14px !important; }
html[data-ds][data-visual-world] #view-listen .listen-mode-card strong { font-size: 15px !important; font-weight: 650 !important; }
html[data-ds][data-visual-world] #view-listen .listen-mode-card.active { background: var(--surface) !important; color: var(--ink) !important; border-color: transparent !important; box-shadow: 0 1px 2px rgb(16 24 40 / 10%), 0 0 0 1px var(--hairline-soft) !important; }
/* academy-theme.css draws a white inset focus ring on these, which vanishes on the white chip
   and on the tinted play buttons; the ring sits outside in the skin colour instead. */
html[data-ds][data-visual-world] #view-listen :is(.listen-mode-card, .book-audio-play, .listen-catalog-play):focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px !important; }
html[data-ds][data-visual-world] #view-listen .academy-catalog-filters { gap: 12px 16px !important; }
html[data-ds][data-visual-world] #view-listen .academy-catalog-filters .listen-search-bar { border-radius: var(--ds-r-control) !important; }
html[data-ds][data-visual-world] #view-listen .listen-list-card > .section-head h3 { font-family: var(--ds-sans) !important; font-size: 13px !important; font-weight: 650 !important; color: var(--muted) !important; }
/* "Start here" */
html[data-ds][data-visual-world] #view-listen .listen-catalog-guide {
  border: 1px solid color-mix(in srgb, var(--mod) 24%, var(--hairline)) !important; border-radius: var(--ds-r-card) !important;
  background: color-mix(in srgb, var(--mod) 7%, var(--ds-card)) !important; box-shadow: none !important; padding: 14px 16px !important;
}
html[data-ds][data-visual-world] #view-listen .listen-catalog-guide .listen-catalog-count { color: var(--mod) !important; font-style: normal; }
html[data-ds][data-visual-world] #view-listen .listen-catalog-guide strong { font-family: var(--font-display) !important; font-size: 18px !important; font-weight: var(--ds-display-weight) !important; }
/* The list */
html[data-ds][data-visual-world] #view-listen .book-audio-list {
  gap: 0 !important; overflow: hidden;
  border: 1px solid var(--ds-card-edge) !important; border-radius: var(--ds-r-card) !important; background: var(--ds-card) !important; box-shadow: var(--shadow-sm);
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-listen .book-audio-list { box-shadow: none; }
html[data-ds][data-visual-world] #view-listen .book-audio-list > .cv-listen-divider {
  margin: 0 !important; padding: 14px 18px 8px; gap: 10px;
  font-size: 13px !important; font-weight: 650 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important;
  background: color-mix(in srgb, var(--surface-2) 60%, var(--ds-card)); border-bottom: 1px solid var(--hairline-soft);
}
html[data-ds][data-visual-world] #view-listen .book-audio-list > .cv-listen-divider:not(:first-child) { border-top: 1px solid var(--hairline-soft); }
html[data-ds][data-visual-world] #view-listen .book-audio-list > .cv-listen-divider::after { display: none; }
html[data-ds][data-visual-world] #view-listen .cv-listen-divider .cv-div-book { color: var(--ink) !important; font-weight: 700 !important; }
html[data-ds][data-visual-world] #view-listen .cv-listen-divider .cv-div-count { color: var(--muted) !important; font-weight: 500 !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-row {
  grid-template-columns: 44px minmax(0, 1fr) 44px !important; min-height: 68px !important; gap: 14px !important; padding: 10px 14px 10px 18px !important;
  border: 0 !important; border-bottom: 1px solid var(--hairline-soft) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; position: relative;
}
html[data-ds][data-visual-world] #view-listen .book-audio-row:last-child { border-bottom: 0 !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #view-listen .book-audio-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent) !important; }
}
html[data-ds][data-visual-world] #view-listen .book-audio-row:has(.book-audio-heard) { background: transparent !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-row.active { background: color-mix(in srgb, var(--mod) 8%, var(--ds-card)) !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-row.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mod); }
html[data-ds][data-visual-world] #view-listen :is(.book-audio-play, .listen-catalog-play) {
  width: 44px !important; height: 44px !important; background: color-mix(in srgb, var(--mod) 12%, var(--ds-card)) !important; color: var(--mod) !important; box-shadow: none !important;
}
html[data-ds][data-visual-world] #view-listen :is(.book-audio-row.active .book-audio-play, .listen-catalog-play) { background: var(--mod) !important; color: #fff !important; }
html[data-ds][data-visual-world].cv-dark #view-listen :is(.book-audio-row.active .book-audio-play, .listen-catalog-play) { color: var(--ds-canvas) !important; }
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-listen :is(.book-audio-play) { background: var(--surface-2) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-listen :is(.book-audio-row.active .book-audio-play, .listen-catalog-play) { background: var(--academy-action) !important; color: #fff !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-play svg { width: 18px !important; height: 18px !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-main strong { font-size: 16px !important; font-weight: 650 !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-subline { margin-top: 2px !important; gap: 4px 14px !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-meta { font-size: 13px !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-heard { color: var(--green-ink) !important; font-weight: 600; }
html[data-ds][data-visual-world] #view-listen .book-audio-favorite { border-radius: 999px !important; }
html[data-ds][data-visual-world] #view-listen .book-audio-favorite[aria-pressed="true"] { color: var(--red-ink) !important; }

/* ── 10. Reading (朗读训练) and Writing (写作训练) ────────────────────────────────────────
   Shared mode tabs; reading becomes one two-pane surface with the passage set as text. */
html[data-ds][data-visual-world] #view-reading { --mod: var(--ds-mod-reading); }
html[data-ds][data-visual-world] #view-writing { --mod: var(--ds-mod-writing); }
html[data-ds][data-visual-world] :is(#view-reading, #view-writing) :is(.reading-mode-tabs, .writing-mode-tabs) {
  background: color-mix(in srgb, var(--ink) 6%, transparent) !important; border-radius: calc(var(--ds-r-control) + 4px) !important; padding: 4px !important; gap: 4px !important;
}
html[data-ds][data-visual-world] :is(#view-reading, #view-writing) :is(.reading-mode-tabs, .writing-mode-tabs) button {
  border-radius: var(--ds-r-control) !important; background: transparent !important; color: var(--ink-2) !important; border: 0 !important; box-shadow: none !important;
}
html[data-ds][data-visual-world] :is(#view-reading, #view-writing) :is(.reading-mode-tabs, .writing-mode-tabs) button.active {
  background: var(--surface) !important; color: var(--ink) !important; box-shadow: 0 1px 2px rgb(16 24 40 / 10%), 0 0 0 1px var(--hairline-soft) !important;
}
html[data-ds][data-visual-world] :is(#view-reading, #view-writing) :is(.reading-mode-tabs, .writing-mode-tabs) button :is(span, small) { color: var(--muted) !important; }

html[data-ds][data-visual-world] #view-reading .reading-workspace {
  background: var(--ds-card) !important; border: 1px solid var(--ds-card-edge) !important; border-radius: var(--ds-r-card) !important;
  box-shadow: var(--shadow-sm) !important; overflow: hidden; gap: 0 !important;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-reading .reading-workspace { box-shadow: none !important; }
html[data-ds][data-visual-world] #view-reading .reading-catalog {
  padding: 16px 14px !important; background: color-mix(in srgb, var(--surface-2) 70%, var(--ds-card)) !important; border-right: 1px solid var(--hairline-soft) !important;
}
html[data-ds][data-visual-world] #view-reading .reading-source-tabs { gap: 4px !important; }
html[data-ds][data-visual-world] #view-reading .reading-source-tabs button { border-radius: var(--ds-r-control) !important; border: 1px solid transparent !important; background: transparent !important; color: var(--ink-2) !important; box-shadow: none !important; }
html[data-ds][data-visual-world] #view-reading .reading-source-tabs button.active { background: var(--surface) !important; border-color: var(--hairline) !important; color: var(--ink) !important; font-weight: 650; }
html[data-ds][data-visual-world] #view-reading .reading-source-note { color: var(--muted) !important; font-size: 12px !important; }
html[data-ds][data-visual-world] #view-reading .reading-catalog-heading strong { font-size: 14px !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-reading .reading-task-list { gap: 4px !important; }
html[data-ds][data-visual-world] #view-reading .reading-task-card {
  padding: 12px 12px 12px 14px !important; border: 1px solid transparent !important; border-radius: var(--ds-r-control) !important;
  background: transparent !important; box-shadow: none !important; position: relative;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #view-reading .reading-task-card:not(.active):hover { background: color-mix(in srgb, var(--ink) 4%, transparent) !important; }
}
html[data-ds][data-visual-world] #view-reading .reading-task-card.active { background: var(--surface) !important; border-color: var(--hairline) !important; box-shadow: var(--shadow-xs) !important; }
html[data-ds][data-visual-world] #view-reading .reading-task-card.active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mod); }
html[data-ds][data-visual-world] #view-reading .reading-task-card strong { font-size: 15px !important; font-weight: 650 !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-reading .reading-task-card small { color: var(--muted) !important; font-size: 12.5px !important; }
html[data-ds][data-visual-world] #view-reading .reading-task-status { border-radius: 999px !important; font-size: 12px !important; /* 小修-20261125 原11.5px */ padding: 2px 8px !important; }
html[data-ds][data-visual-world] #view-reading .reading-detail { padding: 8px 28px 24px !important; }
html[data-ds][data-visual-world] #view-reading .reading-card { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html[data-ds][data-visual-world] #view-reading .reading-card-head h3 {
  font-family: var(--font-display) !important; font-size: 30px !important; font-weight: var(--ds-display-weight) !important; line-height: 1.25 !important; color: var(--ink) !important;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] #view-reading .reading-card-head h3 { font-weight: 900 !important; }
html[data-ds][data-visual-world] #view-reading .reading-badges .badge { background: color-mix(in srgb, var(--mod) 10%, var(--ds-card)) !important; color: color-mix(in srgb, var(--mod) 80%, var(--ink)) !important; font-size: 12px !important; }
html[data-ds][data-visual-world] #view-reading .sentence-list-head strong { font-size: 15px !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-reading .sentence-row { border-color: var(--hairline-soft) !important; background: transparent !important; border-radius: 0 !important; }
html[data-ds][data-visual-world] #view-reading .sentence-index {
  width: 28px !important; height: 28px !important; border-radius: 999px !important; display: grid; place-items: center;
  font-size: 12px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--mod) 10%, var(--ds-card)) !important; color: var(--mod) !important; border: 0 !important;
}
html[data-ds][data-visual-world] #view-reading .sentence-index.done { background: var(--green-soft) !important; color: var(--green-ink) !important; }
/* The passage itself: set like a reader, not a form. */
html[data-ds][data-visual-world] #view-reading :is(.reading-paragraph-copy p, .sentence-text, .reading-full-text p) {
  font-family: var(--ds-reading-face, var(--ds-sans)) !important; font-size: 19px !important; line-height: 1.7 !important; color: var(--ink) !important; max-width: 68ch;
}
html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) { --ds-reading-face: "Aivia Baskerville", Baskerville, "Libre Baskerville", Georgia, var(--ds-sans); }
html[data-ds][data-visual-world][data-ds-skin="vivid"] { --ds-reading-face: "Nunito", var(--ds-sans); }
html[data-ds][data-visual-world] #view-reading .reading-mini-btn { min-height: 40px !important; border-radius: 999px !important; padding: 0 14px !important; font-size: 13px !important; }
html[data-ds][data-visual-world] #view-reading .quota-hint { color: var(--muted) !important; font-size: 13px !important; }
@media (max-width: 900px) {
  html[data-ds][data-visual-world] #view-reading .reading-workspace { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible; }
  html[data-ds][data-visual-world] #view-reading .reading-catalog { background: transparent !important; border-right: 0 !important; padding: 0 !important; }
  html[data-ds][data-visual-world] #view-reading .reading-detail { padding: 0 !important; }
  html[data-ds][data-visual-world] #view-reading .reading-task-card { background: var(--ds-card) !important; border-color: var(--ds-card-edge) !important; }
  html[data-ds][data-visual-world] #view-reading .reading-card { background: var(--ds-card) !important; border: 1px solid var(--ds-card-edge) !important; border-radius: var(--ds-r-card) !important; padding: 18px !important; }
  html[data-ds][data-visual-world] #view-reading .reading-card-head h3 { font-size: 24px !important; }
  html[data-ds][data-visual-world] #view-reading :is(.reading-paragraph-copy p, .sentence-text, .reading-full-text p) { font-size: 18px !important; }
}
/* Writing: three steps, each its own card; the step marker shows progress. */
html[data-ds][data-visual-world] #view-writing .writing-flow-shell { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: grid; gap: 16px !important; }
html[data-ds][data-visual-world] #view-writing .writing-step {
  padding: 22px 24px !important; margin: 0 !important;
  background: var(--ds-card) !important; border: 1px solid var(--ds-card-edge) !important; border-radius: var(--ds-r-card) !important; box-shadow: var(--shadow-sm) !important;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-writing .writing-step { box-shadow: none !important; }
html[data-ds][data-visual-world] #view-writing .writing-step.is-upcoming { background: color-mix(in srgb, var(--ds-card) 70%, transparent) !important; box-shadow: none !important; }
html[data-ds][data-visual-world] #view-writing .writing-step-head strong { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 18px !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-writing .writing-step-head small { color: var(--muted) !important; font-size: 13px !important; }
html[data-ds][data-visual-world] #view-writing .writing-step-number {
  width: 32px !important; height: 32px !important; border-radius: 999px !important; display: grid !important; place-items: center;
  border: 1.5px solid var(--hairline) !important; background: var(--ds-card) !important; color: var(--muted) !important;
  font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 15px !important;
}
html[data-ds][data-visual-world] #view-writing .writing-step.is-current .writing-step-number { background: var(--mod) !important; border-color: var(--mod) !important; color: #fff !important; }
html[data-ds][data-visual-world].cv-dark #view-writing .writing-step.is-current .writing-step-number { color: var(--ds-canvas) !important; }
html[data-ds][data-visual-world] #view-writing .writing-step.is-done .writing-step-number { background: var(--green-soft) !important; border-color: transparent !important; color: var(--green-ink) !important; }
html[data-ds][data-visual-world] #view-writing .upload-drop {
  border: 1.5px dashed color-mix(in srgb, var(--mod) 40%, var(--hairline)) !important; border-radius: var(--ds-r-card) !important;
  background: color-mix(in srgb, var(--mod) 5%, var(--ds-card)) !important; box-shadow: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #view-writing .upload-drop:hover { border-color: var(--mod) !important; background: color-mix(in srgb, var(--mod) 9%, var(--ds-card)) !important; }
}
html[data-ds][data-visual-world] #view-writing textarea { line-height: 1.7 !important; font-size: 16px !important; }
html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) #view-writing #writingOcrText, html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) #view-writing .writing-text-column textarea { font-family: var(--ds-reading-face) !important; font-size: 17px !important; }
html[data-ds][data-visual-world] #view-writing .writing-history-jump { color: var(--accent-ink) !important; font-weight: 650 !important; }
/* 生成题目 is the generator's primary: ultimate.css painted it with --accent (pale in dark
   mode, so its white label nearly vanished) plus a glow and a hover lift, at (1,1,0). */
html[data-ds][data-visual-world] #view-writing .writing-prompt-controls > #generateWritingPrompt {
  background: var(--academy-action) !important; color: #fff !important; border: 1px solid transparent !important;
  border-radius: var(--ds-r-control) !important; box-shadow: none !important; font-weight: 650 !important;
}
html[data-ds][data-visual-world] #view-writing .writing-prompt-controls > #generateWritingPrompt:hover { transform: none !important; }
@media (hover: hover) and (pointer: fine) {
  /* Like every other primary: the hover step only where there is a real pointer (a tap on a phone left it dark). */
  html[data-ds][data-visual-world] #view-writing .writing-prompt-controls > #generateWritingPrompt:not(:disabled):hover { background: var(--academy-action-hover) !important; color: #fff !important; }
}
html[data-ds][data-visual-world] #view-writing .writing-prompt-controls > #generateWritingPrompt:not(:disabled):active { transform: scale(.98) !important; }
/* 题型 chips are small tag buttons: pills like the growth filter chips (member-center.css drew 6px boxes). */
html[data-ds][data-visual-world] #view-writing .writing-type-chip { border-radius: 999px !important; }
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-writing .writing-step { padding: 16px !important; }
}

/* ── 11. Settings: style picker (also used on staff pages, so not scoped to data-ds) ─────
   5.9.2: each look is shown by its own artwork (day or night with the theme) with a small
   card of its colours on top; "auto" spans the row and shows the two looks it chooses between. */
html[data-visual-world] .academy-skin-picker.ds-skin-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select] {
  position: relative; display: flex !important; flex-direction: column; align-items: stretch; gap: 10px !important;
  min-width: 0; min-height: 0; padding: 6px 6px 12px !important; text-align: left;
  border: 1px solid var(--hairline) !important; border-radius: calc(var(--ds-r-control, 10px) + 2px) !important;
  background: var(--surface) !important; color: var(--ink) !important; box-shadow: none !important; outline: none;
  transition: border-color var(--ds-fast, .14s) ease, box-shadow var(--ds-fast, .14s) ease, background-color var(--ds-fast, .14s) ease;
}
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select="auto"] {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px !important; padding: 6px 14px 6px 6px !important;
}
/* 5.10.0: seven looks. The six illustrated ones pair up; minimal (no artwork) closes the list on its own row. */
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select="minimal"] {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px !important; padding: 6px 14px 6px 6px !important;
}
html[data-visual-world] [data-skin-select="minimal"] .ds-skin-swatch { width: 132px; flex: none; }
html[data-visual-world] [data-skin-select="minimal"] .ds-skin-copy { padding: 0 28px 0 0; }
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select]::before { display: none !important; content: none !important; }
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select]::after { display: none; }
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select][aria-pressed="true"]::after {
  content: "" !important; display: block; position: absolute; right: 12px !important; top: 12px !important; bottom: auto !important; z-index: 1;
  width: 22px !important; height: 22px !important; border: 2px solid #fff !important; border-radius: 50%; transform: none !important;
  background: var(--academy-action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%); box-sizing: border-box;
}
html[data-visual-world] .academy-skin-picker.ds-skin-picker [aria-pressed="true"] { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent) inset !important; background: var(--accent-soft-2) !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select]:not([aria-pressed="true"]):hover { border-color: var(--accent-edge) !important; background: var(--surface-2) !important; }
}
html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select]:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px !important; }
html[data-visual-world] .ds-skin-copy { display: grid; gap: 2px; min-width: 0; padding: 0 6px; }
html[data-visual-world] [data-skin-select="auto"] .ds-skin-copy { padding: 0 28px 0 0; }
html[data-visual-world] .ds-skin-copy strong { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
html[data-visual-world] .ds-skin-copy small { font-size: 12px; line-height: 1.45; font-weight: 500; color: var(--muted); }
html[data-visual-world] .ds-skin-copy [data-skin-current] { color: var(--accent-ink); font-weight: 650; white-space: nowrap; }
/* The swatch: artwork, with a small card in the look's colours (heading, brass line, action). */
html[data-visual-world] .ds-skin-swatch {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--ds-r-control, 8px); overflow: hidden;
  --sw-canvas: #eef0ec; --sw-card: #fff; --sw-ink: #16233f; --sw-act: #203d86; --sw-mark: #a07a32; --sw-r: 4px; --sw-art: none;
  background: var(--sw-canvas) var(--sw-art) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
}
html[data-visual-world] [data-skin-select="auto"] .ds-skin-swatch { width: 132px; flex: none; }
html[data-visual-world] .ds-skin-swatch::before {
  content: ""; position: absolute; left: 8%; bottom: 10%; width: 42%; height: 40%; border-radius: var(--sw-r); background: var(--sw-card);
  box-shadow: 0 2px 6px rgb(0 0 0 / 22%);
}
html[data-visual-world] .ds-skin-swatch::after {
  content: ""; position: absolute; left: calc(8% + 7px); bottom: calc(10% + 40% - 12px); width: 22%; height: 4px; border-radius: 2px; background: var(--sw-ink);
  box-shadow: 0 7px 0 -1px var(--sw-mark), 6px 16px 0 1px var(--sw-act);
}
html[data-visual-world] .ds-skin-swatch[data-swatch="academy"] { --sw-art: url("assets/academy/swatches/campus-day-v1.webp"); }
html[data-visual-world] .ds-skin-swatch[data-swatch="library"] { --sw-art: url("assets/academy/swatches/library-day-v1.webp"); --sw-canvas: #efe6d6; --sw-card: #fffbf3; --sw-ink: #2a2620; --sw-act: #1f5c46; --sw-mark: #9a7330; }
html[data-visual-world] .ds-skin-swatch[data-swatch="vivid"] { --sw-art: url("assets/academy/swatches/vivid-day-v1.webp"); --sw-canvas: #fff3e8; --sw-ink: #35231a; --sw-act: #5a4eb0; --sw-mark: #ffc53d; --sw-r: 8px; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="academy"] { --sw-art: url("assets/academy/swatches/campus-night-v1.webp"); --sw-card: #1a2230; --sw-ink: #ece7dc; --sw-act: #3554a6; --sw-mark: #d8b46c; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="library"] { --sw-art: url("assets/academy/swatches/library-night-v1.webp"); --sw-card: #26221d; --sw-ink: #f1e8d7; --sw-act: #2a6b52; --sw-mark: #d8b46c; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="vivid"] { --sw-art: url("assets/academy/swatches/vivid-night-v1.webp"); --sw-card: #2b1f29; --sw-ink: #fbeee3; --sw-act: #6458c0; --sw-mark: #ffc53d; }
html[data-visual-world] .ds-skin-swatch[data-swatch="ginkgo"] { --sw-art: url("assets/academy/swatches/ginkgo-day-v1.webp"); --sw-canvas: #f2ede3; --sw-card: #fffdf8; --sw-ink: #27221c; --sw-act: #2f4a5c; --sw-mark: #b8861c; }
html[data-visual-world] .ds-skin-swatch[data-swatch="seaside"] { --sw-art: url("assets/academy/swatches/seaside-day-v1.webp"); --sw-canvas: #f1eee9; --sw-card: #fffefb; --sw-ink: #1d2833; --sw-act: #1d6390; --sw-mark: #d4673f; --sw-r: 6px; }
html[data-visual-world] .ds-skin-swatch[data-swatch="observatory"] { --sw-art: url("assets/academy/swatches/observatory-day-v1.webp"); --sw-canvas: #eeedf4; --sw-ink: #1c1d36; --sw-act: #3d3a8c; --sw-mark: #a8833a; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="ginkgo"] { --sw-art: url("assets/academy/swatches/ginkgo-night-v1.webp"); --sw-card: #262124; --sw-ink: #f3eadb; --sw-act: #3b6075; --sw-mark: #e2b24c; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="seaside"] { --sw-art: url("assets/academy/swatches/seaside-night-v1.webp"); --sw-card: #182334; --sw-ink: #eaf0f5; --sw-act: #26689a; --sw-mark: #f08f6c; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="observatory"] { --sw-art: url("assets/academy/swatches/observatory-night-v1.webp"); --sw-card: #1b1c37; --sw-ink: #ecebf7; --sw-act: #4d48b0; --sw-mark: #dcb86e; }
/* Minimal has no artwork: the swatch is a drawing of its plain page. */
html[data-visual-world] .ds-skin-swatch[data-swatch="minimal"] { --sw-canvas: #f4f5f7; --sw-ink: #171b26; --sw-act: #4b42c4; --sw-mark: #d6d8de; --sw-r: 3px; }
html[data-visual-world] .ds-skin-swatch[data-swatch="minimal"]::before { left: 12%; right: 12%; width: auto; top: 16%; bottom: 16%; height: auto; box-shadow: 0 0 0 1px #e3e5ea; }
html[data-visual-world] .ds-skin-swatch[data-swatch="minimal"]::after { left: calc(12% + 9px); top: calc(16% + 9px); bottom: auto; width: 34%; box-shadow: 0 9px 0 -1px var(--sw-mark), 0 16px 0 -1px var(--sw-mark), 54px 34px 0 2px var(--sw-act); }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="minimal"] { --sw-canvas: #16181d; --sw-card: #1d2026; --sw-ink: #eceef2; --sw-act: #5b52d6; --sw-mark: #3a3f48; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="minimal"]::before { box-shadow: 0 0 0 1px #2c3038; }
/* Auto: the campus on the left, the treehouse on the right; the one in use stays in full colour. */
html[data-visual-world] .ds-skin-swatch[data-swatch="auto"] {
  background:
    url("assets/academy/swatches/vivid-day-v1.webp") right center / cover no-repeat,
    #fff3e8;
}
html[data-visual-world] .ds-skin-swatch[data-swatch="auto"]::before {
  left: 0; top: 0; bottom: 0; width: 100%; height: auto; border-radius: 0; box-shadow: none;
  background: url("assets/academy/swatches/campus-day-v1.webp") left center / cover no-repeat;
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}
html[data-visual-world] .ds-skin-swatch[data-swatch="auto"]::after {
  left: 50%; top: 0; bottom: 0; width: 2px; height: auto; border-radius: 0; background: rgb(255 255 255 / 85%);
  transform: translateX(-50%) skewX(-9deg); box-shadow: none;
}
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="auto"] { background-image: url("assets/academy/swatches/vivid-night-v1.webp"); background-color: #21171f; }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="auto"]::before { background-image: url("assets/academy/swatches/campus-night-v1.webp"); }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="auto"]::after { background: rgb(255 255 255 / 45%); }
/* The half not in use is softened, so the look being used now reads first. */
html[data-visual-world] .ds-skin-swatch[data-swatch="auto"][data-resolved="academy"] { box-shadow: inset 0 0 0 999px rgb(255 255 255 / 38%), inset 0 0 0 1px rgb(0 0 0 / 8%); }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="auto"][data-resolved="academy"] { box-shadow: inset 0 0 0 999px rgb(0 0 0 / 42%), inset 0 0 0 1px rgb(255 255 255 / 10%); }
html[data-visual-world] .ds-skin-swatch[data-swatch="auto"][data-resolved="vivid"]::before { filter: saturate(.35) brightness(1.1); }
html[data-visual-world].cv-dark .ds-skin-swatch[data-swatch="auto"][data-resolved="vivid"]::before { filter: saturate(.4) brightness(.62); }
html[data-visual-world].cv-dark .ds-skin-swatch { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }
@media (max-width: 380px) {
  html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select="auto"] { flex-direction: column; align-items: stretch; padding: 6px 6px 12px !important; }
  html[data-visual-world] [data-skin-select="auto"] .ds-skin-swatch { width: 100%; }
  html[data-visual-world] [data-skin-select="auto"] .ds-skin-copy { padding: 0 6px; }
  html[data-visual-world] .academy-skin-picker.ds-skin-picker [data-skin-select="minimal"] { flex-direction: column; align-items: stretch; padding: 6px 6px 12px !important; }
  html[data-visual-world] [data-skin-select="minimal"] .ds-skin-swatch { width: 100%; }
  html[data-visual-world] [data-skin-select="minimal"] .ds-skin-copy { padding: 0 6px; }
}
@media (prefers-reduced-transparency: reduce) { html[data-visual-world] .ds-skin-swatch::before { box-shadow: none; } }

/* ── 12. Dot ────────────────────────────────────────────────────────────────────────────
   The learning shell is Dot's room: the skin's canvas with a soft halo where Dot sits.
   Dot keeps its own violet in every skin — it is a character, not a theme colour. */
html[data-ds][data-visual-world] body {
  --dot-shell-ink: var(--ink); --dot-shell-muted: var(--muted); --dot-shell-canvas: var(--ds-canvas);
  --dot-shell-surface: var(--surface); --dot-shell-soft: var(--accent-soft-2); --dot-shell-line: var(--hairline);
  --dot-shell-accent: var(--academy-action); --dot-shell-accent-ink: var(--accent-ink);
  --ds-dot: #5b4fd6; --ds-dot-deep: #3f35a8;
}
html[data-ds][data-visual-world].cv-dark body { --ds-dot: #6a5ff0; --ds-dot-deep: #4a40c0; }
html[data-ds][data-visual-world] body[data-dot-shell="guided"] {
  background:
    radial-gradient(56% 42% at 50% 30%, color-mix(in srgb, var(--ds-dot) 10%, transparent), transparent 70%),
    var(--ds-canvas) !important;
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] body[data-dot-shell="guided"] {
  background:
    radial-gradient(40% 32% at 50% 28%, color-mix(in srgb, var(--ds-sun) 30%, transparent), transparent 72%),
    radial-gradient(60% 50% at 50% 34%, color-mix(in srgb, var(--ds-dot) 12%, transparent), transparent 72%),
    var(--ds-canvas) !important;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] body[data-dot-shell="guided"] { background: var(--ds-canvas) !important; }
/* Header */
html[data-ds][data-visual-world] body #dot-shell-bar { background: color-mix(in srgb, var(--ds-canvas) 88%, transparent) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--hairline-soft) !important; }
html[data-ds][data-visual-world] body #dot-shell-bar .dot-shell-brand strong {
  font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; letter-spacing: var(--ds-display-track);
}
html[data-ds][data-visual-world][data-ds-skin="vivid"] body #dot-shell-bar .dot-shell-brand strong { color: var(--accent-ink) !important; font-weight: 900 !important; }
html[data-ds][data-visual-world] body :is(#dot-shell-bar, #dot-shell-home-view, #dot-shell-tool-bar, #dot-shell-menu) button:where(:not(.avdot-button)) { border-radius: var(--ds-r-control) !important; color: var(--ink-2) !important; font-weight: 600 !important; }
html[data-ds][data-visual-world] body :is(#dot-shell-bar, #dot-shell-home-view) button.dot-shell-primary { background: var(--academy-action) !important; color: #fff !important; border-radius: 999px !important; }
html[data-ds][data-visual-world] body :is(#dot-shell-bar, #dot-shell-home-view) button.dot-shell-primary:hover:not(:disabled) { background: var(--academy-action-hover) !important; }
/* Dot itself: a flat disc of Dot's violet (no glass highlight); eyes and moods are unchanged. */
html[data-ds][data-visual-world] body #avdot-panel .avdot-button.avdot-avatar,
html[data-ds][data-visual-world] body #avdot-launcher.avdot-avatar { background: var(--ds-dot) !important; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head > .avdot-avatar {
  width: 92px !important; height: 92px !important;
  box-shadow: inset 0 -6px 14px rgb(24 16 90 / 22%), 0 0 0 10px color-mix(in srgb, var(--ds-dot) 9%, transparent), 0 0 0 22px color-mix(in srgb, var(--ds-dot) 5%, transparent), 0 18px 36px rgb(63 53 168 / 26%) !important;
}
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes { left: 32px; top: 36px; gap: 14px; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes::before,
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes::after { width: 7px; height: 13px; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head { padding-top: 28px !important; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-empty { padding-top: 30px !important; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-empty h3 {
  font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important;
  font-size: 40px !important; line-height: 1.2 !important; letter-spacing: var(--ds-display-track) !important; color: var(--ink) !important;
}
html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) body #avdot-panel.avdot-inline .avdot-empty h3 { font-weight: 400 !important; font-style: italic; }
html[data-ds][data-visual-world][data-ds-skin="vivid"] body #avdot-panel.avdot-inline .avdot-empty h3 { font-weight: 900 !important; }
/* What Dot can do now */
html[data-ds][data-visual-world] body #dot-shell-choices { gap: 12px !important; }
html[data-ds][data-visual-world] body #dot-shell-choices .dot-shell-choice {
  min-height: 60px !important; padding: 12px 16px !important; border-radius: var(--ds-r-card) !important;
  background: var(--surface) !important; border: 1px solid var(--hairline) !important; box-shadow: var(--shadow-xs) !important; text-align: left;
}
html[data-ds][data-visual-world] body #dot-shell-choices .dot-shell-choice:hover:not(:disabled) { border-color: var(--accent-edge) !important; background: var(--surface) !important; box-shadow: var(--shadow-sm) !important; }
html[data-ds][data-visual-world] body .dot-shell-choice-title { font-size: 15px !important; color: var(--ink) !important; }
/* Composer */
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-composer {
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-hero) !important; padding: 14px 14px 12px !important;
  background: var(--surface) !important; box-shadow: var(--shadow) !important;
}
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-composer:focus-within { border-color: color-mix(in srgb, var(--ds-dot) 50%, var(--hairline)) !important; }
html[data-ds][data-visual-world] body #avdot-panel textarea#avdot-input { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 16px !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-toolbar .avdot-mic { background: var(--ds-dot) !important; border-radius: 999px !important; padding: 0 16px 0 12px !important; font-weight: 650 !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-toolbar .avdot-mic:hover:not(:disabled) { background: var(--ds-dot-deep) !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-composer.avdot-has-text .avdot-mic { background: var(--accent-soft-2) !important; color: var(--ds-dot-deep) !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-toolbar .avdot-send { border-radius: 999px !important; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-send,
html[data-ds][data-visual-world] body #avdot-panel .avdot-composer.avdot-has-text .avdot-send { background: var(--ds-dot) !important; color: #fff !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-composer:not(.avdot-has-text) .avdot-send { background: var(--surface-2) !important; color: var(--muted) !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-button:disabled:not(.avdot-avatar) { opacity: .38 !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-status { color: var(--muted) !important; text-align: center; }
/* Conversation */
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-user { background: color-mix(in srgb, var(--ds-dot) 10%, var(--surface)) !important; border-radius: 18px 18px 6px 18px !important; }
html[data-ds][data-visual-world] body #avdot-panel :is(.avdot-reply, .avdot-dot-text, .avdot-answer) { font-size: 16px; line-height: 1.7; color: var(--ink); }
@media (max-width: 767px) {
  html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-empty h3 { font-size: 30px !important; }
  html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head > .avdot-avatar { width: 80px !important; height: 80px !important; }
  html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-head > .avdot-avatar .avdot-eyes { left: 27px; top: 31px; gap: 12px; }
  html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-composer { border-radius: var(--ds-r-card) !important; }
}
/* "Stop" only appears while Dot is listening or speaking; idle it looked like an empty checkbox. */
html[data-ds][data-visual-world] body #avdot-panel .avdot-toolbar .avdot-button:is([aria-label="停止"], [aria-label="Stop"]):disabled { display: none !important; }

/* ── 13. Sign-in ────────────────────────────────────────────────────────────────────────
   The approved candid photographs stay; controls follow the skin. */
html[data-ds][data-visual-world][data-ds-skin="vivid"] #authScreen { --academy-action: #5a4eb0; --academy-action-hover: #4d4299; }
html[data-ds][data-visual-world][data-ds-skin="vivid"].cv-dark #authScreen { --academy-action: #6458c0; --academy-action-hover: #6f64c9; }
html[data-ds][data-visual-world] #authScreen .auth-card { border-radius: var(--ds-r-hero) !important; }
html[data-ds][data-visual-world] #authScreen .auth-head h2 { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 24px !important; }
html[data-ds][data-visual-world] #authScreen .auth-tabs button.active { border-bottom-color: var(--academy-action) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #authScreen .auth-form input:not([type="checkbox"]) { border-radius: var(--ds-r-control) !important; }

/* ── 14. Floating Dot panel ────────────────────────────────────────────────────────────
   (5.10.3: the vivid-only filled controls and their dark-mode fixes are gone; every skin
   marks a selected tab, mode or nav item with a light tint or a white chip.) */
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) { background: var(--surface) !important; border-left: 1px solid var(--hairline-soft) !important; box-shadow: var(--shadow-lg) !important; }
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-head { background: var(--surface) !important; border-bottom: 1px solid var(--hairline-soft) !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-heading h2 { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-empty h3 { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 24px !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-composer { border-radius: var(--ds-r-card) !important; border-color: var(--hairline) !important; }

/* ── 15. Learner stage: primary learners (Starters, Movers) ────────────────────────────
   Larger reading text and targets; the same layout so teachers can still guide by sight. */
html[data-ds][data-visual-world][data-stage="primary"] #mainNav .nav-item { font-size: 16px !important; }
html[data-ds][data-visual-world][data-stage="primary"] #appShell #dot-original-topbar h1#viewTitle { font-size: 34px !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-today .learning-journey-copy strong { font-size: 28px !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-today .home-workspace-head h2,
html[data-ds][data-visual-world][data-stage="primary"] #view-today .home-workspace .cv-rail-eyebrow { font-size: 22px !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-today .home-workspace :is(.home-check-main, .daily-checkin-main) > strong { font-size: 16px !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-reading :is(.reading-paragraph-copy p, .sentence-text, .reading-full-text p) { font-size: 21px !important; line-height: 1.75 !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-listen .book-audio-main strong { font-size: 17px !important; }
html[data-ds][data-visual-world][data-stage="primary"] :is(.primary-action, .secondary-action, .cv-wc-next, .cv-wc-know, .cv-wc-tool, .cv-wc-say) { min-height: 48px !important; font-size: 16px !important; }
html[data-ds][data-visual-world][data-stage="primary"] body #avdot-panel textarea#avdot-input { font-size: 17px !important; }
@media (max-width: 767px) {
  html[data-ds][data-visual-world][data-stage="primary"] #appShell #dot-original-topbar h1#viewTitle { font-size: 28px !important; }
  html[data-ds][data-visual-world][data-stage="primary"] #view-reading :is(.reading-paragraph-copy p, .sentence-text, .reading-full-text p) { font-size: 20px !important; }
}

/* ── 16. Word card ──────────────────────────────────────────────────────────────────── */
html[data-ds][data-visual-world] #view-study .word-card { border-radius: var(--ds-r-hero) !important; }
html[data-ds][data-visual-world] #view-study .word-card .word-title { font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world]:is([data-ds-skin="academy"], [data-ds-skin="library"], [data-ds-skin="ginkgo"], [data-ds-skin="observatory"]) #view-study .word-card .word-title { font-weight: 400 !important; }
html[data-ds][data-visual-world][data-ds-skin="vivid"] #view-study .word-card .word-title { font-weight: 900 !important; }
html[data-ds][data-visual-world] #view-study .word-card .word-example { font-family: var(--ds-reading-face, var(--ds-sans)) !important; font-size: 17px !important; line-height: 1.65 !important; color: var(--ink-2) !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-study .word-card .word-title { font-size: clamp(48px, 6.4vw, 76px) !important; }
html[data-ds][data-visual-world][data-stage="primary"] #view-study .word-card :is(.word-meaning, .word-example) { font-size: 19px !important; }
html[data-ds][data-visual-world] .words-mode-toggle { background: color-mix(in srgb, var(--ink) 6%, transparent) !important; border-radius: calc(var(--ds-r-control) + 4px) !important; padding: 4px !important; border: 0 !important; }
html[data-ds][data-visual-world] .words-mode-toggle .wm-btn { border-radius: var(--ds-r-control) !important; border: 0 !important; background: transparent !important; color: var(--ink-2) !important; box-shadow: none !important; }
html[data-ds][data-visual-world] .words-mode-toggle .wm-btn:is(.on, [aria-pressed="true"]) { background: var(--surface) !important; color: var(--ink) !important; box-shadow: 0 1px 2px rgb(16 24 40 / 10%), 0 0 0 1px var(--hairline-soft) !important; }
/* Selected segment (word modes, listening modes, reading and writing tabs, teacher filters):
   a raised chip in every skin, never a solid fill. In dark mode the plain surface sat darker
   than its track and read as a hole, so the chip steps up to --surface-3 with a light ring (the
   dark --hairline is the same tone as --surface-3 and left the chip without an edge). */
html[data-ds][data-visual-world].cv-dark :is(#view-listen .listen-mode-card.active, #view-reading .reading-mode-tabs button.active, #view-writing .writing-mode-tabs button.active, .words-mode-toggle .wm-btn:is(.on, [aria-pressed="true"]), #view-teacher .t-seg button[aria-pressed="true"]) {
  background: var(--surface-3) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), 0 1px 2px rgb(0 0 0 / 30%) !important;
}

/* ── 17. Homework records (作业记录) ─────────────────────────────────────────────────── */
html[data-ds][data-visual-world] #view-assignments .assignment-archive-section {
  padding: 18px 22px !important; background: var(--ds-card) !important; border: 1px solid var(--ds-card-edge) !important;
  border-radius: var(--ds-r-card) !important; box-shadow: var(--shadow-sm) !important;
}
html[data-ds][data-visual-world][data-ds-skin="minimal"] #view-assignments .assignment-archive-section { box-shadow: none !important; }
html[data-ds][data-visual-world] #view-assignments .assignment-collapsible { padding: 0 !important; }
html[data-ds][data-visual-world] #view-assignments .assignment-collapsible > summary { padding: 16px 22px !important; border-radius: var(--ds-r-card); }
html[data-ds][data-visual-world] #view-assignments .assignment-collapsible[open] > summary { border-bottom: 1px solid var(--hairline-soft); border-radius: var(--ds-r-card) var(--ds-r-card) 0 0; }
html[data-ds][data-visual-world] #view-assignments .assignment-collapsible-body { padding: 8px 22px 18px !important; }
html[data-ds][data-visual-world] #view-assignments .assignment-section-toggle strong,
html[data-ds][data-visual-world] #view-assignments .assignment-archive-section .section-head h3 { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 18px !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-assignments .assignment-overview-counts dd { font-family: var(--font-display) !important; font-size: 24px !important; font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-assignments .assignment-find-bar { gap: 10px !important; }
html[data-ds][data-visual-world] .view .workspace-back { width: fit-content !important; max-width: 100%; justify-self: start; align-self: flex-start; padding: 0 16px 0 12px !important; border-radius: 999px !important; }

/* ── 18. Dialogs ────────────────────────────────────────────────────────────────────── */
html[data-ds][data-visual-world] .modal-mask .speech-modal { border-radius: var(--ds-r-hero) !important; border: 1px solid var(--hairline-soft) !important; box-shadow: var(--shadow-lg) !important; background: var(--surface) !important; }
html[data-ds][data-visual-world] .modal-mask .speech-modal h2 { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; }
html[data-ds][data-visual-world] .modal-mask .speech-target { font-family: var(--ds-reading-face, var(--ds-sans)) !important; font-size: 18px !important; line-height: 1.6 !important; border-radius: var(--ds-r-control) !important; }
html[data-ds][data-visual-world] .modal-mask .modal-close { border-radius: 999px !important; }
html[data-ds][data-visual-world] .settings-drawer { border-radius: var(--ds-r-hero) 0 0 var(--ds-r-hero) !important; }
@media (max-width: 767px) { html[data-ds][data-visual-world] .settings-drawer { border-radius: 0 !important; } }
/* Start-up screen continues the splash: same canvas, display face for its heading. */
html[data-ds][data-visual-world] #aiviaStudentStartup { background: var(--ds-canvas) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #aiviaStudentStartup :is(h2, .cv-anim-copy strong) { font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #aiviaStudentStartup :is(p, .cv-anim-copy span) { color: var(--muted) !important; }

/* ── 19. Vivid illustration (5.9.1): a children's treehouse reading nook, day and night. ── */
html[data-ds][data-visual-world][data-palette][data-ds-skin="vivid"] {
  --panorama-day: url("assets/academy/skins/vivid/vivid-day-v1.webp");
  --panorama-night: url("assets/academy/skins/vivid/vivid-night-v1.webp");
  --panorama-position: center top;
}
@media (max-width: 767px) {
  html[data-ds][data-visual-world][data-palette][data-ds-skin="vivid"] {
    --panorama-day: url("assets/academy/skins/vivid/vivid-day-small-v1.webp");
    --panorama-night: url("assets/academy/skins/vivid/vivid-night-small-v1.webp");
    --panorama-position: 70% top;
  }
}
/* The library light shimmer belonged to the old photograph. */
html[data-ds][data-visual-world][data-ds-skin="vivid"] #appShell .academy-scene-detail { display: none !important; }

/* ── 19b. Three illustrated rooms (5.10.0): ginkgo courtyard, seaside reading nook, observatory.
   Each is one 3:2 painting with a matched day and night version; the phone crop keeps the
   focal object (the tree, the window, the telescope) to the right of the page title. */
html[data-ds][data-visual-world][data-palette][data-ds-skin="ginkgo"] { --panorama-day: url("assets/academy/skins/ginkgo/ginkgo-day-v1.webp"); --panorama-night: url("assets/academy/skins/ginkgo/ginkgo-night-v1.webp"); --panorama-position: 64% top; }
html[data-ds][data-visual-world][data-palette][data-ds-skin="seaside"] { --panorama-day: url("assets/academy/skins/seaside/seaside-day-v1.webp"); --panorama-night: url("assets/academy/skins/seaside/seaside-night-v1.webp"); --panorama-position: 60% top; }
html[data-ds][data-visual-world][data-palette][data-ds-skin="observatory"] { --panorama-day: url("assets/academy/skins/observatory/observatory-day-v1.webp"); --panorama-night: url("assets/academy/skins/observatory/observatory-night-v1.webp"); --panorama-position: 62% top; }
@media (max-width: 767px) {
  html[data-ds][data-visual-world][data-palette][data-ds-skin="ginkgo"] { --panorama-day: url("assets/academy/skins/ginkgo/ginkgo-day-small-v1.webp"); --panorama-night: url("assets/academy/skins/ginkgo/ginkgo-night-small-v1.webp"); --panorama-position: 66% top; }
  html[data-ds][data-visual-world][data-palette][data-ds-skin="seaside"] { --panorama-day: url("assets/academy/skins/seaside/seaside-day-small-v1.webp"); --panorama-night: url("assets/academy/skins/seaside/seaside-night-small-v1.webp"); --panorama-position: 62% top; }
  html[data-ds][data-visual-world][data-palette][data-ds-skin="observatory"] { --panorama-day: url("assets/academy/skins/observatory/observatory-day-small-v1.webp"); --panorama-night: url("assets/academy/skins/observatory/observatory-night-small-v1.webp"); --panorama-position: 64% top; }
}
/* The campus water shimmer is drawn for the campus painting only. */
html[data-ds][data-visual-world]:is([data-ds-skin="ginkgo"], [data-ds-skin="seaside"], [data-ds-skin="observatory"]) #appShell .academy-scene-detail { display: none !important; }
/* The quote card and journey mark pick up each room's signature colour. */
html[data-ds][data-visual-world][data-ds-skin="ginkgo"] .sidebar .quote-card .eyebrow .ic { color: #b03a28; }
html[data-ds][data-visual-world][data-ds-skin="ginkgo"].cv-dark .sidebar .quote-card .eyebrow .ic { color: #e0745a; }

/* ── 20. 5.9.2 fixes ─────────────────────────────────────────────────────────────────── */
/* Class-membership warning: a readable notice in the content column, not a bare bar. */
html[data-ds][data-visual-world] #appShell .main > #accountMembershipStatus:not(.is-pending) {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: var(--ds-content); margin: 16px auto 0 !important; box-sizing: border-box;
  padding: 8px 8px 8px 16px !important; border: 1px solid color-mix(in srgb, var(--amber-ink) 22%, transparent) !important;
  border-radius: var(--ds-r-control) !important; background: var(--amber-soft) !important; color: var(--amber-ink) !important;
  font-size: 14px !important; box-shadow: none !important;
}
html[data-ds][data-visual-world] #appShell .main > #accountMembershipStatus:not(.is-pending) [data-refresh-membership] { color: var(--amber-ink) !important; border-radius: 999px !important; min-width: 40px; min-height: 40px; }
/* Phone: listening modes share the width equally so the third tab never clips. */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-listen .listen-mode-grid { width: 100% !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html[data-ds][data-visual-world] #view-listen .listen-mode-card { min-width: 0 !important; width: 100% !important; padding: 8px 4px !important; }
  html[data-ds][data-visual-world] #view-listen .listen-mode-card strong { font-size: 14px !important; }
}

/* ── 21. Frosted overview (5.9.2) ────────────────────────────────────────────────────
   On the illustrated looks the home overview is a pane of frosted glass: the artwork above it
   carries on underneath as soft colour instead of stopping at a white slab. The scene on the
   home page is taller so there is artwork to see through the glass. Text keeps its contrast
   because the glass stays mostly opaque; minimal and reduced-transparency stay solid. */
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body[data-view]:not([data-dot-shell="guided"]) #appShell #dot-original-topbar .academy-header-scene {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44%, #000 94%, transparent), linear-gradient(transparent, #000 10%, #000 58%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 44%, #000 94%, transparent), linear-gradient(transparent, #000 10%, #000 58%, transparent);
}
@media (min-width: 768px) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body[data-view]:not([data-dot-shell="guided"]) #appShell #dot-original-topbar .academy-header-scene { top: 0; width: min(56vw, 640px); height: min(420px, 60vh, min(56vw, 640px) * 2 / 3); }
}
@media (max-width: 767px) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body[data-view]:not([data-dot-shell="guided"]) #appShell #dot-original-topbar .academy-header-scene {
    top: 44px; width: 100vw; height: calc(100vw * 2 / 3);
    -webkit-mask-image: linear-gradient(90deg, transparent 36%, #000 80%), linear-gradient(transparent, #000 12%, #000 56%, transparent);
    mask-image: linear-gradient(90deg, transparent 36%, #000 80%), linear-gradient(transparent, #000 12%, #000 56%, transparent);
  }
}
/* The view entrance fade must not stay applied once it ends (legacy fill "both"): a held
   opacity effect makes every view a backdrop root, and the glass would see nothing to blur. */
html[data-ds][data-visual-world] .view.active { animation-fill-mode: backwards !important; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* 5.10.3 calm: the white sheen and the bright inner top edge read as gloss; both are kept
     faint so the pane stays matte, with its hairline border and soft shadow to separate it. */
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) {
    --ds-glass: color-mix(in srgb, var(--ds-card) 74%, transparent);
    --ds-glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 0%) 46%);
    --ds-glass-edge: inset 0 1px 0 rgb(255 255 255 / 28%);
    --ds-glass-tint: color-mix(in srgb, var(--surface-2) 34%, transparent);
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]).cv-dark {
    --ds-glass: color-mix(in srgb, var(--ds-card) 80%, transparent);
    --ds-glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 0%) 46%);
    --ds-glass-edge: inset 0 1px 0 rgb(255 255 255 / 7%);
    --ds-glass-tint: color-mix(in srgb, var(--surface-2) 30%, transparent);
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #view-today .home-overview-bar {
    background: var(--ds-glass-sheen), var(--ds-glass) !important;
    border-color: color-mix(in srgb, var(--ds-card-edge) 72%, transparent) !important;
    box-shadow: var(--ds-glass-edge), var(--shadow) !important;
    -webkit-backdrop-filter: saturate(165%) blur(24px); backdrop-filter: saturate(165%) blur(24px);
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #view-today .home-overview-bar > .learning-journey {
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%) !important;
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #view-today .home-overview-bar > :is(.home-completion, .home-member-quota) { background: var(--ds-glass-tint) !important; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #view-today :is(.home-member-quota-head, .home-completion .home-refresh-icon-action) {
    background: color-mix(in srgb, var(--surface) 78%, transparent) !important;
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  html[data-ds][data-visual-world] #view-today .home-overview-bar { background: var(--ds-card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > :is(.home-completion, .home-member-quota) { background: var(--surface-2) !important; }
}

/* ── 22. Breathing room (5.9.2) ──────────────────────────────────────────────────────
   Labels never touch the edge of the shape drawn around them. Pills need more side room
   than rectangles because the round ends take up part of the width, so every button sits
   on one scale: 18px (14px small) beside the label, in every skin (5.10.3: vivid no longer
   turns every button into a pill). An icon in front of a label always has its own gap. */
html[data-ds][data-visual-world] { --ds-btn-px: 18px; --ds-btn-px-sm: 14px; }
/* Icon + label: buttons laid out as plain blocks had the icon glued to the text. Low
   specificity on purpose, so any layout a component sets for itself still wins. */
html[data-ds] :where(.primary-action, .secondary-action, .pill-button):where(:has(> svg:first-child)) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
html[data-ds] :where(.primary-action, .secondary-action, .pill-button) > svg:first-child { flex: none; }

/* Home */
html[data-ds][data-visual-world] #view-today .home-completion .home-refresh-icon-action { padding: 0 var(--ds-btn-px-sm) 0 12px !important; }
html[data-ds][data-visual-world] #view-today .home-member-quota-head { padding: 10px 14px 10px 16px !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-empty button { padding: 0 calc(var(--ds-btn-px) - 4px) 0 var(--ds-btn-px) !important; }
html[data-ds][data-visual-world] #view-today .home-workspace .task-entry-action { padding: 8px var(--ds-btn-px) !important; }
html[data-ds][data-visual-world] #view-today .home-workspace-notice { padding: 10px 10px 10px 18px; gap: 12px; }
html[data-ds][data-visual-world] #view-today .home-workspace-notice .secondary-action { padding: 0 var(--ds-btn-px-sm) 0 12px !important; gap: 6px !important; }
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-today .home-workspace-notice { padding: 12px 12px 12px 16px; }
}

/* Back: a soft tinted pill, never a box against the edge of the page. */
html[data-ds][data-visual-world] .view .workspace-back,
html[data-ds][data-visual-world] #view-reading .reading-detail .cv-read-back,
html[data-ds][data-visual-world] #view-reading .reading-detail-tools > .cv-read-back {
  display: inline-flex !important; align-items: center; gap: 6px !important;
  width: fit-content !important; max-width: 100%; min-height: 40px !important;
  padding: 0 18px 0 12px !important; border: 0 !important; border-radius: 999px !important;
  background: color-mix(in srgb, var(--ink) 6%, transparent) !important; color: var(--ink-2) !important;
  font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important; text-decoration: none;
}
html[data-ds][data-visual-world] :is(.view .workspace-back, #view-reading .cv-read-back) .ic { width: 16px; height: 16px; opacity: .8; }
/* The check-in focus pages' 返回学习中心 is the same back: the soft pill, not a hairline box
   (on phones it was a full-width bar). Shape and colour only; display stays the page's own. */
html[data-ds][data-visual-world] :is(#readingFocusBack, #listenFocusBack) {
  width: fit-content !important; max-width: 100%; min-height: 40px !important; gap: 6px !important;
  padding: 0 18px 0 12px !important; border: 0 !important; border-radius: 999px !important;
  background: color-mix(in srgb, var(--ink) 6%, transparent) !important; color: var(--ink-2) !important;
  font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] :is(.view .workspace-back, #view-reading .reading-detail .cv-read-back, #view-reading .reading-detail-tools > .cv-read-back):hover { background: color-mix(in srgb, var(--ink) 10%, transparent) !important; color: var(--ink) !important; }
  html[data-ds][data-visual-world] :is(#readingFocusBack, #listenFocusBack):not(:disabled):hover { background: color-mix(in srgb, var(--ink) 10%, transparent) !important; color: var(--ink) !important; }
}
/* Reading detail: the sticky commands float over the text, so they are frosted and inset. */
html[data-ds][data-visual-world] #view-reading .reading-detail-tools { padding: 6px 2px 10px !important; gap: 10px !important; }
html[data-ds][data-visual-world] #view-reading .reading-detail-tools > .reading-full-jump {
  min-height: 40px !important; padding: 0 12px 0 18px !important; gap: 4px !important; border: 0 !important; border-radius: 999px !important;
  background: color-mix(in srgb, var(--accent) 9%, transparent) !important; color: var(--accent-ink) !important;
  font-size: 14px !important; text-decoration: none !important;
}
html[data-ds][data-visual-world] #view-reading .reading-detail-tools > :is(.cv-read-back, .reading-full-jump) {
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
}
html[data-ds][data-visual-world] #view-reading .reading-detail-tools > .cv-read-back { background: color-mix(in srgb, var(--surface) 72%, color-mix(in srgb, var(--ink) 14%, transparent)) !important; }
html[data-ds][data-visual-world] #view-reading .reading-detail-tools > .reading-full-jump { background: color-mix(in srgb, var(--surface) 72%, color-mix(in srgb, var(--accent) 22%, transparent)) !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #view-reading .reading-detail-tools > .reading-full-jump:hover { background: var(--accent-soft) !important; }
}
html[data-ds][data-visual-world] #view-reading .quota-link { padding: 0 var(--ds-btn-px-sm) !important; border-radius: 999px !important; text-decoration: none !important; }

/* Segmented controls and chips */
html[data-ds][data-visual-world] .words-mode-toggle .wm-btn { padding-inline: 16px !important; }
html[data-ds][data-visual-world] :is(#view-reading .reading-mode-tabs, #view-writing .writing-mode-tabs) button { padding-inline: 18px !important; }
html[data-ds][data-visual-world] #view-reading .reading-source-tabs button { padding-inline: 16px !important; }
/* Three sources in the narrow catalogue column: columns follow their labels, so the longest
   label ("AI 拓展阅读") gets the room instead of three equal, cramped thirds. */
html[data-ds][data-visual-world] #view-reading .reading-source-tabs:has(> button:nth-child(3)) { grid-template-columns: repeat(3, auto) !important; }
html[data-ds][data-visual-world] #view-reading .reading-source-tabs:has(> button:nth-child(3)) > button { padding-inline: 6px !important; }
html[data-ds][data-visual-world] #view-growth .growth-filter-chip { min-height: 34px !important; padding: 0 var(--ds-btn-px-sm) !important; }
/* Selected filter chip: a tint, not a solid --accent fill (in dark mode that put white on a pale
   fill at under 2.5:1). Teacher activity filters use the same chip. */
html[data-ds][data-visual-world] :is(#view-growth, #view-teacher) .growth-filter-chip.active { background: var(--accent-soft) !important; border-color: var(--accent-edge) !important; color: var(--accent-ink) !important; }
/* Teacher 打卡 result filters (全部学生 / 未完成 …): ux-workspace.css marks the pressed one at (0,2,1), which the
   secondary rule above outranks, so the selection did not show at all. Same tint chip, a step bolder. */
html[data-ds][data-visual-world] .teacher-result-quick-filters button[aria-pressed="true"] { background: var(--accent-soft) !important; border-color: var(--accent-edge) !important; color: var(--accent-ink) !important; font-weight: 650 !important; }
/* Badge-wall category tabs: the selected count took the raw category colour (3.4–3.7:1). */
html[data-ds][data-visual-world] #view-growth .cv-ms-tabs button.is-active { color: color-mix(in srgb, var(--cat) 70%, var(--ink)); }
html[data-ds][data-visual-world] #view-writing .writing-direct-action { padding: 0 var(--ds-btn-px-sm) 0 12px !important; gap: 6px !important; min-height: 38px; }
html[data-ds][data-visual-world] #view-writing #clearWritingOcr { padding-inline: var(--ds-btn-px) !important; }
html[data-ds][data-visual-world] #view-member .member-offer { padding-inline: 16px !important; }
/* Icon buttons drawn by member-center.css took the legacy --r-xs (6–12px by skin). */
html[data-ds][data-visual-world] :is(.member-icon-action, .member-dialog-close) { border-radius: var(--ds-r-control) !important; }
/* 刷新额度 is a small secondary button: the same pill and weight as the home 刷新 (it was a 10px box at 800). */
html[data-ds][data-visual-world] .member-refresh-action { border-radius: 999px !important; font-weight: 600 !important; }
/* 难词本 rows carry a strip of small (34px) buttons — 播放 / 练习 / 造句巩固 / 自评已会: pills in every skin
   (only the row's own strip; the 造句巩固 coach panel that opens below keeps the regular shapes). */
html[data-ds][data-visual-world] #view-wrong .wrong-word-card > .inline-actions :is(.primary-action, .secondary-action) { border-radius: 999px !important; }

/* Settings: each section is a card, so its contents sit inside it. */
html[data-ds][data-visual-world] #settingsDrawer .settings-card.surface-card { padding: 20px !important; }
html[data-ds][data-visual-world] #settingsDrawer .settings-level-option { padding-inline: 16px !important; }
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #settingsDrawer .settings-card.surface-card { padding: 18px 16px !important; }
}

/* Dot: the floating panel's suggestions are full-width rows with a way-in arrow; the
   inline (Dot page) suggestions stay pills with generous ends. */
html[data-ds][data-visual-world] body #avdot-panel .avdot-suggestion { border-radius: 999px !important; }
html[data-ds][data-visual-world] body #avdot-panel.avdot-inline .avdot-suggestion { padding: 10px 18px !important; }
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-suggestions { gap: 8px !important; }
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-suggestion {
  display: flex !important; align-items: center; justify-content: space-between !important; gap: 12px;
  width: 100%; min-height: 48px; padding: 12px 16px 12px 18px !important;
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)) !important; color: var(--ink) !important;
  font-size: 15px !important; font-weight: 600 !important; text-align: left; box-shadow: none !important;
  transition: border-color var(--ds-fast) var(--ds-ease), background-color var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-suggestion::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .45;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-suggestion:not(:disabled):hover { border-color: var(--accent-edge) !important; background: var(--accent-soft-2) !important; color: var(--accent-ink) !important; }
  html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-suggestion:not(:disabled):hover::after { opacity: .9; }
}
html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-suggestion:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px !important; }
html[data-ds][data-visual-world] body #avdot-panel .avdot-toolbar .avdot-mic { padding: 0 20px 0 16px !important; }
@media (max-width: 359px) { html[data-ds][data-visual-world] body #avdot-panel .avdot-toolbar .avdot-mic { padding: 0 10px 0 8px !important; } }
/* Sync notice (main column and settings): a rounded notice with room inside, its own marker. */
html[data-ds][data-visual-world] #appShell .main > .learning-recovery { width: 100%; max-width: var(--ds-content); margin: 0 auto !important; box-sizing: border-box; }
html[data-ds][data-visual-world] .learning-recovery { border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important; background: var(--surface) !important; overflow: hidden; }
html[data-ds][data-visual-world] .learning-recovery > summary { display: flex; align-items: center; gap: 10px; padding: 10px 16px !important; list-style: none; }
html[data-ds][data-visual-world] .learning-recovery > summary::-webkit-details-marker { display: none; }
html[data-ds][data-visual-world] .learning-recovery > summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); opacity: .55; transition: transform var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] .learning-recovery[open] > summary::before { transform: rotate(45deg); }
html[data-ds][data-visual-world] .learning-recovery-panel { padding: 0 16px 14px !important; }
html[data-ds][data-visual-world] .learning-recovery button { border-radius: 999px !important; padding: 0 var(--ds-btn-px-sm) !important; }
/* Phone: the floating Dot panel keeps its close button on the title row when it is the only tool. */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] body #avdot-panel:not(.avdot-inline) .avdot-head-tools:has(> :only-child) { flex-basis: auto; }
}

/* ── 23. Glass pages (5.9.3) ─────────────────────────────────────────────────────────
   The artwork carries on behind the page on every student view, and the cards that sit on
   it are frosted glass, so the picture shows through softly instead of stopping at a slab.
   The home overview is the clearest pane (its shapes stay readable); other cards are a
   little more opaque. Only top-level cards are glass: a frosted parent would hide the art
   from any frosted child. Minimal, reduced transparency, forced colours and the quieter
   interface setting (减少动效) keep solid cards, which also spares slower devices the blur. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) {
    --ds-glass-lead: color-mix(in srgb, var(--ds-card) 50%, transparent);
    --ds-glass-card: color-mix(in srgb, var(--ds-card) 72%, transparent);
    --ds-glass-panel: color-mix(in srgb, var(--surface-2) 66%, transparent);
    --ds-glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 0%) 42%);
    --ds-glass-tint: color-mix(in srgb, var(--surface-2) 28%, transparent);
    --ds-glass-blur: saturate(150%) blur(16px);
    --ds-glass-blur-lead: saturate(150%) blur(8px);
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion).cv-dark {
    --ds-glass-lead: color-mix(in srgb, var(--ds-card) 62%, transparent);
    --ds-glass-card: color-mix(in srgb, var(--ds-card) 78%, transparent);
    --ds-glass-panel: color-mix(in srgb, var(--surface-2) 72%, transparent);
    --ds-glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 0%) 42%);
    --ds-glass-tint: color-mix(in srgb, var(--surface-2) 26%, transparent);
  }
  /* Home overview: the clearest pane. Small grey labels are darkened a step to stay legible. */
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #view-today .home-overview-bar {
    --muted: color-mix(in srgb, var(--muted) 45%, var(--ink));
    background: var(--ds-glass-sheen), var(--ds-glass-lead) !important;
    -webkit-backdrop-filter: var(--ds-glass-blur-lead); backdrop-filter: var(--ds-glass-blur-lead);
  }
  /* Top-level cards on every student view. */
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell .main :is(
    #view-today .home-workspace,
    #view-study :is(.cv-study-sheet, .word-card),
    #view-listen :is(.book-audio-list, .listen-catalog-guide),
    #view-reading .reading-workspace,
    #view-writing .writing-step,
    #view-growth :is(.growth-hero, .cv-ms-focus, .growth-heatmap-card, .growth-curve-card, .growth-history-card),
    #view-member :is(.member-beneficiary, .member-value-card, .member-free-card, .member-offer, .member-checkout-panel, .member-live-list, .member-quota-table),
    #view-referral :is(.cv-ref-hero, .cv-ref-share, .cv-ref-list-card),
    #view-referral > .workbench-loading,
    #view-assignments .assignment-archive-section
  ) {
    background-color: var(--ds-glass-card) !important;
    border-color: color-mix(in srgb, var(--ds-card-edge) 70%, transparent) !important;
    -webkit-backdrop-filter: var(--ds-glass-blur); backdrop-filter: var(--ds-glass-blur);
  }
  /* Member panels were tinted (surface-2); they stay a touch warmer than plain cards. */
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-member :is(.member-beneficiary, .member-value-card, .member-free-card, .member-checkout-panel) { background-color: var(--ds-glass-panel) !important; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-member .member-offer.is-selected { background-color: color-mix(in srgb, var(--accent-soft-2) 80%, transparent) !important; }
  /* Panels inside a glass card become tints of it rather than solid blocks. */
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-reading .reading-workspace .reading-full-text { background-color: var(--ds-glass-tint) !important; }
  @media (min-width: 768px) { html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-reading .reading-workspace .reading-catalog { background-color: var(--ds-glass-tint) !important; } }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-listen .book-audio-list .cv-listen-divider { background-color: var(--ds-glass-tint) !important; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-growth .cv-ms-focus :is(.cv-ms-focus-head, .cv-ms-focus-note) { background-color: var(--ds-glass-tint) !important; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-referral .cv-ref-stat { background-color: var(--ds-glass-tint) !important; }
}
/* The quieter interface setting keeps the overview solid too. */
html[data-ds][data-visual-world].cv-reduce-motion #view-today .home-overview-bar { background: var(--ds-card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-ds][data-visual-world].cv-reduce-motion #view-today .home-overview-bar > :is(.home-completion, .home-member-quota) { background: color-mix(in srgb, var(--surface-2) 70%, var(--ds-card)) !important; }
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  html[data-ds][data-visual-world] #appShell .main .view :is(.home-workspace, .cv-study-sheet, .word-card, .book-audio-list, .listen-catalog-guide, .reading-workspace, .writing-step, .growth-hero, .cv-ms-focus, .growth-heatmap-card, .growth-curve-card, .growth-history-card, .member-offer, .member-live-list, .member-quota-table, .cv-ref-hero, .cv-ref-share, .cv-ref-list-card, .assignment-archive-section) {
    background-color: var(--ds-card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}

/* 5.10.3: the fallbacks above lose to the glass rules (2,6,1). Switching the glass tokens themselves
   keeps every glass surface solid under reduced transparency and forced colours (like phones, mobile-minimal.css A2). */
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  html[data-ds][data-visual-world],
  html[data-ds][data-visual-world].cv-dark {
    --ds-glass: var(--ds-card) !important;
    --ds-glass-lead: var(--ds-card) !important;
    --ds-glass-card: var(--ds-card) !important;
    --ds-glass-panel: var(--surface-2) !important;
    --ds-glass-tint: color-mix(in srgb, var(--surface-2) 70%, var(--ds-card)) !important;
    --ds-glass-sheen: none !important;
    --ds-glass-blur: none !important;
    --ds-glass-blur-lead: none !important;
  }
}

/* ── 24. Teacher workspace (5.10.0): pick a class, then work inside it ─────────────────
   The sidebar lists teacher functions only (no member centre). 我的班级 shows every class
   with its numbers; inside a class: 概况 · 布置作业 · 作业进度 · 作文批改 · 每日打卡 · 学生.
   Prefix T = html[data-ds][data-visual-world] #view-teacher. */
html[data-ds][data-visual-world] #mainNav[hidden] { display: none !important; }
html[data-ds][data-visual-world] #teacherNav.nav { display: flex; flex-direction: column; gap: 2px !important; min-width: 0; }
html[data-ds][data-visual-world] #teacherNav .nav-item {
  position: relative; display: flex; align-items: center; width: 100%;
  min-height: var(--ds-target) !important; padding: 0 12px !important; gap: 12px !important;
  border: 0 !important; border-radius: var(--ds-r-control) !important;
  color: var(--ink-2) !important; background: transparent !important; text-align: left;
  font-size: calc(var(--ds-base) - 1px) !important; font-weight: 560 !important; cursor: pointer;
  transition: background-color var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease) !important;
}
html[data-ds][data-visual-world] #teacherNav .nav-item .nav-ic { width: 22px; height: 22px; display: inline-grid; place-items: center; opacity: .82; flex: none; }
html[data-ds][data-visual-world] #teacherNav .nav-item .ic { width: 20px !important; height: 20px !important; stroke-width: 1.75 !important; }
html[data-ds][data-visual-world] #teacherNav .nav-item .nav-tx { flex: 1; min-width: 0; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] #teacherNav :is(.nav-item:not(.active), .t-nav-class-link, .t-nav-back):hover { background: color-mix(in srgb, var(--ink) 5%, transparent) !important; color: var(--ink) !important; }
  html[data-ds][data-visual-world] #teacherNav .t-nav-class:hover { border-color: var(--accent-edge) !important; }
}
html[data-ds][data-visual-world] #teacherNav .nav-item.active { background: var(--ds-nav-active-bg) !important; color: var(--ds-nav-active-ink) !important; font-weight: 680 !important; }
html[data-ds][data-visual-world] #teacherNav .nav-item.active .nav-ic { opacity: 1; }
html[data-ds][data-visual-world] #teacherNav .nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 18px; transform: translateY(-50%);
  border-radius: 0 3px 3px 0; background: var(--ds-nav-mark);
}
html[data-ds][data-visual-world] #teacherNav :is(.t-nav-count, .t-badge) { margin-left: auto; flex: none; }
html[data-ds][data-visual-world] #teacherNav .t-nav-count { font-size: 12px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #teacherNav .t-nav-classes { display: grid; gap: 1px; margin: 2px 0 6px; }
html[data-ds][data-visual-world] #teacherNav .t-nav-class-link {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 46px; border: 0; border-radius: var(--ds-r-control);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
html[data-ds][data-visual-world] #teacherNav .t-nav-class-link > span:first-child { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ds][data-visual-world] #teacherNav .t-nav-back {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--ds-r-control);
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; text-align: left;
}
html[data-ds][data-visual-world] #teacherNav .t-nav-class {
  display: grid; gap: 2px; margin: 4px 0 10px; padding: 12px 14px; text-align: left; cursor: pointer; font: inherit;
  border: 1px solid var(--hairline) !important; border-radius: calc(var(--ds-r-control) + 2px); background: var(--surface-2); color: var(--ink);
  transition: border-color var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] #teacherNav .t-nav-class-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
/* 小修-20261125：「当前班级」是 <small>，浏览器默认缩一号成 10px，跟上一行一样 12px */
html[data-ds][data-visual-world] #teacherNav .t-nav-class-top > small { font-size: inherit; }
html[data-ds][data-visual-world] #teacherNav .t-nav-class-top > span { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink); font-weight: 650; }
html[data-ds][data-visual-world] #teacherNav .t-nav-class-top .ic { width: 14px; height: 14px; }
html[data-ds][data-visual-world] #teacherNav .t-nav-class strong { margin-top: 4px; font-family: var(--font-display); font-weight: var(--ds-display-weight); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #teacherNav .t-nav-class > small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] #teacherNav :is(.nav-item, .t-nav-class, .t-nav-back, .t-nav-class-link):focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 1px !important; }
/* Shared bits: level chip, type chip, badge, progress bar. */
html[data-ds][data-visual-world] :is(#view-teacher, #teacherNav, .t-switch-mask) .t-level {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; flex: none;
  font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--accent-soft); color: var(--accent-ink);
}
html[data-ds][data-visual-world] :is(#view-teacher, .t-switch-mask) .t-level[data-level="pet"] { background: color-mix(in srgb, #5b4a8a 14%, var(--ds-card)); color: color-mix(in srgb, #5b4a8a 82%, var(--ink)); }
html[data-ds][data-visual-world] :is(#view-teacher, .t-switch-mask) .t-level[data-level="young"] { background: color-mix(in srgb, #c46a1c 15%, var(--ds-card)); color: color-mix(in srgb, #8a4b12 85%, var(--ink)); }
html[data-ds][data-visual-world] :is(#view-teacher, .t-switch-mask) .t-level[data-level="upper"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world].cv-dark :is(#view-teacher, .t-switch-mask) .t-level[data-level="pet"] { color: #d6c9f5; }
html[data-ds][data-visual-world].cv-dark :is(#view-teacher, .t-switch-mask) .t-level[data-level="young"] { color: #f3c48f; }
html[data-ds][data-visual-world] #view-teacher .t-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 44px; padding: 0 9px; border-radius: 999px; flex: none;
  font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--accent-soft); color: var(--accent-ink);
}
html[data-ds][data-visual-world] #view-teacher .t-chip[data-kind="reading"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-chip[data-kind="writing"] { background: var(--amber-soft); color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-chip[data-kind="checkin"] { background: color-mix(in srgb, #5b4a8a 13%, var(--ds-card)); color: color-mix(in srgb, #5b4a8a 82%, var(--ink)); }
html[data-ds][data-visual-world].cv-dark #view-teacher .t-chip[data-kind="checkin"] { color: #d6c9f5; }
html[data-ds][data-visual-world] #view-teacher .t-chip[data-kind="student"] { background: var(--red-soft); color: var(--red-ink); }
html[data-ds][data-visual-world] :is(#view-teacher, #teacherNav, .t-switch-mask) .t-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box;
  border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
}
html[data-ds][data-visual-world] :is(#view-teacher, #teacherNav) .t-badge[hidden] { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
html[data-ds][data-visual-world] #view-teacher .t-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .4s var(--ds-ease); }
html[data-ds][data-visual-world] #view-teacher .t-bar.is-mid > i { background: var(--amber); }
html[data-ds][data-visual-world] #view-teacher .t-bar.is-low > i { background: var(--red); }
html[data-ds][data-visual-world] #view-teacher :is(.t-warn-text, .t-low) { color: var(--red-ink) !important; }
html[data-ds][data-visual-world] #view-teacher .t-mid { color: var(--amber-ink) !important; }
html[data-ds][data-visual-world] #view-teacher .t-muted-b { color: var(--muted) !important; font-weight: 560 !important; }
html[data-ds][data-visual-world] #view-teacher .t-skel { display: inline-block; width: 48px; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: t-skel 1.2s ease-in-out infinite; }
@keyframes t-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
html[data-ds][data-visual-world].cv-reduce-motion #view-teacher .t-skel { animation: none; }
html[data-ds][data-visual-world] #view-teacher :is(.t-empty-line, .t-note) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
html[data-ds][data-visual-world] #view-teacher .t-empty-line { padding: 14px 0 4px; }
html[data-ds][data-visual-world] #view-teacher .t-note .text-button { display: inline-flex; align-items: center; gap: 4px; }
/* Workspace frame */
html[data-ds][data-visual-world] #view-teacher .t-ws { display: grid; gap: 20px; width: 100%; max-width: var(--ds-content); margin: 0 auto; min-width: 0; transition: opacity .18s var(--ds-ease); }
html[data-ds][data-visual-world] #view-teacher .t-ws.is-switching { opacity: .55; pointer-events: none; }
html[data-ds][data-visual-world] #view-teacher .t-ws > .feedback:not(.hidden) { margin: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-section { display: grid; gap: 20px; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-section.hidden { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="classes"] .t-class-head { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-class-head,
html[data-ds][data-visual-world] #view-teacher .t-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-class-id { display: grid; justify-items: start; gap: 6px; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-class-id h2,
html[data-ds][data-visual-world] #view-teacher .t-sec-title { margin: 0 !important; font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 28px !important; line-height: 1.2 !important; color: var(--ink) !important; overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-sec-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
html[data-ds][data-visual-world] #view-teacher .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-class-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 14.5px; }
html[data-ds][data-visual-world] #view-teacher .t-class-meta b { color: var(--ink); font-weight: 700; letter-spacing: .02em; }
html[data-ds][data-visual-world] #view-teacher .t-class-meta .text-button { min-height: 32px !important; padding: 0 !important; font-size: 14px !important; color: var(--accent-ink) !important; background: none !important; border: 0 !important; }
html[data-ds][data-visual-world] #view-teacher :is(.t-class-actions, .t-sec-actions) { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html[data-ds][data-visual-world] #view-teacher :is(.t-class-actions, .t-sec-actions) :is(.primary-action, .secondary-action) { min-height: 44px !important; display: inline-flex; align-items: center; gap: 8px; }
html[data-ds][data-visual-world] #view-teacher .secondary-action.icon-only { width: 44px; padding: 0 !important; justify-content: center; }
html[data-ds][data-visual-world] #view-teacher :is(.t-class-actions, .t-sec-actions) .ic { width: 18px; height: 18px; }
/* 我的班级 */
html[data-ds][data-visual-world] #view-teacher .t-attn { display: flex; flex-wrap: wrap; gap: 12px; }
html[data-ds][data-visual-world] #view-teacher .t-attn[hidden] { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-attn-item { flex: 1 1 260px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--ds-r-card); background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; line-height: 1.45; }
html[data-ds][data-visual-world] #view-teacher .t-attn-item b { font-family: var(--font-display); font-size: 24px; font-weight: var(--ds-display-weight); font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-attn-item[data-tone="red"] { background: var(--red-soft); color: var(--red-ink); }
html[data-ds][data-visual-world] #view-teacher .t-attn-item[data-tone="green"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
html[data-ds][data-visual-world] #view-teacher .t-class-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; box-sizing: border-box;
  background: var(--ds-card); border: 1px solid var(--ds-card-edge); border-radius: var(--ds-r-card); box-shadow: var(--shadow-sm);
}
html[data-ds][data-visual-world] #view-teacher .t-class-card.is-current { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-sm); }
html[data-ds][data-visual-world] #view-teacher .t-class-card.is-alert { border-color: color-mix(in srgb, var(--red) 38%, var(--ds-card-edge)); }
html[data-ds][data-visual-world] #view-teacher .t-cc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html[data-ds][data-visual-world] #view-teacher .t-cc-code { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-cc-name h3 { margin: 0 !important; font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 20px !important; line-height: 1.3 !important; color: var(--ink) !important; overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-cc-name p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-cc-metric { display: grid; gap: 7px; }
html[data-ds][data-visual-world] #view-teacher .t-cc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; font-size: 14px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-cc-row b { color: var(--ink); font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-cc-enter { margin-top: auto; width: 100%; min-height: 44px !important; justify-content: center; }
html[data-ds][data-visual-world] #view-teacher .t-empty-card { padding: 28px !important; display: grid; gap: 6px; }
html[data-ds][data-visual-world] #view-teacher .t-empty-card strong { font-family: var(--font-display); font-size: 20px; font-weight: var(--ds-display-weight); }
html[data-ds][data-visual-world] #view-teacher .t-empty-card p { margin: 0; color: var(--muted); line-height: 1.6; }
/* Folded tools (create class, class settings, add student, more data) */
html[data-ds][data-visual-world] #view-teacher .t-fold { padding: 0 !important; overflow: hidden; }
html[data-ds][data-visual-world] #view-teacher .t-fold > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 56px; padding: 12px 52px 12px 20px; position: relative;
  list-style: none; cursor: pointer; color: var(--ink); border-radius: var(--ds-r-card);
}
html[data-ds][data-visual-world] #view-teacher .t-fold > summary::-webkit-details-marker { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-fold > summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] #view-teacher .t-fold[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
html[data-ds][data-visual-world] #view-teacher .t-fold > summary > span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
html[data-ds][data-visual-world] #view-teacher .t-fold > summary > span .ic { width: 18px; height: 18px; color: var(--accent-ink); }
html[data-ds][data-visual-world] #view-teacher .t-fold > summary > small { font-size: 13.5px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html[data-ds][data-visual-world] #view-teacher .t-fold[open] > summary { border-bottom: 1px solid var(--hairline-soft); border-radius: var(--ds-r-card) var(--ds-r-card) 0 0; }
html[data-ds][data-visual-world] #view-teacher .t-fold > :not(summary) { margin: 18px 20px !important; }
html[data-ds][data-visual-world] #view-teacher .t-inline-form { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 14px !important; }
html[data-ds][data-visual-world] #view-teacher .t-inline-form > label { flex: 1 1 220px; display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-inline-form > button { min-height: 44px !important; }
html[data-ds][data-visual-world] #view-teacher #teacherClassList { display: grid; gap: 12px; }
html[data-ds][data-visual-world] #view-teacher #teacherClassList .admin-row { border: 1px solid var(--hairline-soft) !important; border-radius: var(--ds-r-control) !important; background: var(--surface-2) !important; box-shadow: none !important; }
/* 班级概况 */
html[data-ds][data-visual-world] #view-teacher .t-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html[data-ds][data-visual-world] #view-teacher .t-kpi {
  display: grid; align-content: start; gap: 4px; min-width: 0; padding: 18px 20px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--ds-card); border: 1px solid var(--ds-card-edge); border-radius: var(--ds-r-card); box-shadow: var(--shadow-sm);
  transition: border-color var(--ds-fast) var(--ds-ease), transform var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] #view-teacher .t-kpi > span { font-size: 13.5px; color: var(--muted); font-weight: 560; }
html[data-ds][data-visual-world] #view-teacher .t-kpi > b { font-family: var(--font-display); font-size: 30px; font-weight: var(--ds-display-weight); line-height: 1.15; font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-kpi > small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-kpi[data-tone="amber"] > b { color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-kpi[data-tone="red"] > b { color: var(--red-ink); }
@media (hover: hover) and (pointer: fine) { html[data-ds][data-visual-world] #view-teacher :is(.t-kpi, .t-class-card):hover { border-color: var(--accent-edge); } }
html[data-ds][data-visual-world] #view-teacher .t-kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-ds][data-visual-world] #view-teacher .t-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px; align-items: start; }
html[data-ds][data-visual-world] #view-teacher :is(.t-main, .t-side) { display: grid; gap: 20px; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-card { padding: 20px 22px !important; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-card h3 { margin: 0 !important; font-family: var(--font-display) !important; font-weight: var(--ds-display-weight) !important; font-size: 18px !important; line-height: 1.3 !important; color: var(--ink) !important; }
html[data-ds][data-visual-world] #view-teacher .t-card > h3 { margin-bottom: 6px !important; }
html[data-ds][data-visual-world] #view-teacher .t-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
html[data-ds][data-visual-world] #view-teacher .t-card-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher :is(.t-card-head, .t-assign-aside, .t-note, .t-more-line, .t-empty-line) .text-button { min-height: 36px !important; padding: 0 2px !important; font-size: 14px !important; font-weight: 650 !important; color: var(--accent-ink) !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="assign"] .t-assign-cta { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-todo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--hairline-soft); font-size: 14.5px; line-height: 1.5; }
html[data-ds][data-visual-world] #view-teacher .t-todo:first-child { border-top: 0; }
html[data-ds][data-visual-world] #view-teacher .t-todo-text { flex: 1 1 220px; min-width: 0; color: var(--ink); }
/* Small row buttons (去批改 / 看名单 / 明细 …, 36px) are pills, like every small button (5.10.3). */
html[data-ds][data-visual-world] #view-teacher :is(.t-todo, .t-cur-row, .t-prog-actions, .t-empty, .t-hard-row) .secondary-action { min-height: 36px !important; padding: 0 14px !important; font-size: 14px !important; flex: none; border-radius: 999px !important; }
html[data-ds][data-visual-world] #view-teacher .t-cur-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.6fr) minmax(96px, .8fr) minmax(120px, 1fr) auto; gap: 12px 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--hairline-soft); font-size: 14px;
}
html[data-ds][data-visual-world] #view-teacher .t-cur-row:first-child { border-top: 0; }
html[data-ds][data-visual-world] #view-teacher :is(.t-cur-title, .t-prog-title) { display: grid; gap: 2px; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher :is(.t-cur-title, .t-prog-title) strong { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher :is(.t-cur-title, .t-prog-title) small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher :is(.t-cur-due, .t-prog-due) { font-size: 13.5px; color: var(--ink-2); }
html[data-ds][data-visual-world] #view-teacher :is(.t-cur-due, .t-prog-due).is-today { color: var(--red-ink); font-weight: 650; }
html[data-ds][data-visual-world] #view-teacher :is(.t-cur-done, .t-prog-done) { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-more-line { margin: 8px 0 0; }
html[data-ds][data-visual-world] #view-teacher .t-hard-list { display: grid; }
html[data-ds][data-visual-world] #view-teacher .t-hard-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hairline-soft); font-size: 14px; }
html[data-ds][data-visual-world] #view-teacher .t-hard-row:first-child { border-top: 0; }
html[data-ds][data-visual-world] #view-teacher .t-hard-row > span:first-child { flex: 1; min-width: 0; display: grid; }
html[data-ds][data-visual-world] #view-teacher .t-hard-row strong { font-family: var(--ds-reading-face, var(--ds-sans)); font-size: 15.5px; }
html[data-ds][data-visual-world] #view-teacher .t-hard-row small { font-size: 12px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-hard-n { font-size: 13px; color: var(--muted); white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-hard-row .text-button { min-height: 32px !important; padding: 0 6px !important; font-size: 13px !important; color: var(--accent-ink) !important; }
html[data-ds][data-visual-world] #view-teacher .t-side .bar-chart { height: 150px !important; margin-top: 4px; }
html[data-ds][data-visual-world] #view-teacher .t-more-data > .dashboard-hero { margin: 16px 20px 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-more-data .t-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
html[data-ds][data-visual-world] #view-teacher .t-more-data .t-more-grid .t-card { padding: 16px 18px !important; border: 1px solid var(--hairline-soft); border-radius: var(--ds-r-control); background: var(--surface-2); }
/* 布置作业 */
html[data-ds][data-visual-world] #view-teacher .t-lead { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
html[data-ds][data-visual-world] #view-teacher .t-lead strong { color: var(--ink); }
html[data-ds][data-visual-world] #view-teacher .t-type-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html[data-ds][data-visual-world] #view-teacher .t-type-picker [data-assign-type] {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--ds-card); border: 1px solid var(--ds-card-edge); border-radius: var(--ds-r-card); box-shadow: var(--shadow-xs);
  transition: border-color var(--ds-fast) var(--ds-ease), background-color var(--ds-fast) var(--ds-ease);
}
html[data-ds][data-visual-world] #view-teacher .t-type-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); }
html[data-ds][data-visual-world] #view-teacher .t-type-ic .ic { width: 20px; height: 20px; }
html[data-ds][data-visual-world] #view-teacher .t-type-copy { display: grid; gap: 3px; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-type-copy strong { font-size: 16px; font-weight: 750; }
html[data-ds][data-visual-world] #view-teacher .t-type-copy small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-type-picker [aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft-2); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-ds][data-visual-world] #view-teacher .t-type-picker [aria-selected="true"] .t-type-ic { background: var(--academy-action); color: #fff; }
html[data-ds][data-visual-world] #view-teacher .t-type-picker [data-assign-type]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { html[data-ds][data-visual-world] #view-teacher .t-type-picker [aria-selected="false"]:hover { border-color: var(--accent-edge); } }
html[data-ds][data-visual-world] #view-teacher .t-assign-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: 20px; align-items: start; }
html[data-ds][data-visual-world] #view-teacher .t-assign-forms { min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-form-card { padding: 22px 24px !important; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-form-card[hidden] { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px !important; margin: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > * { grid-column: 1 / -1; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > label:has(> :is(select, input:not([type="checkbox"]):not([type="radio"]))):not(:has(textarea)) { grid-column: auto; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > label { display: grid !important; gap: 6px !important; margin: 0 !important; font-size: 14px !important; font-weight: 600 !important; color: var(--ink-2) !important; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > label[hidden],
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form .t-class-field { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > :is(.teacher-remediation-summary, .teacher-remediation-followup, input[type="hidden"]) { grid-column: 1 / -1; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > :is(.teacher-remediation-summary, [data-remediation-followup]):empty { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > button[type="submit"],
html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form .reading-publish-actions { justify-self: end; grid-column: 1 / -1; }
html[data-ds][data-visual-world] #view-teacher .t-form-card button[type="submit"] { min-height: 48px !important; padding: 0 28px !important; font-size: 15.5px !important; }
html[data-ds][data-visual-world] #view-teacher .t-form-card .teacher-draft-status:empty { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-form-card > .feedback:not(.hidden) { margin-top: 14px !important; }
html[data-ds][data-visual-world] #view-teacher .t-assign-aside { position: sticky; top: 16px; display: grid; gap: 10px; }
html[data-ds][data-visual-world] #view-teacher .t-assign-aside h3 { font-size: 16px !important; }
html[data-ds][data-visual-world] #view-teacher .t-aside-list { display: grid; }
html[data-ds][data-visual-world] #view-teacher .t-aside-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--hairline-soft); }
html[data-ds][data-visual-world] #view-teacher .t-aside-row:first-child { border-top: 0; }
html[data-ds][data-visual-world] #view-teacher .t-aside-row strong { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-aside-row small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-assign-aside .text-button { justify-self: start; min-height: 36px !important; padding: 0 !important; font-size: 14px !important; color: var(--accent-ink) !important; }
/* 发给谁 */
html[data-ds][data-visual-world] #view-teacher .t-audience { display: grid; gap: 4px; margin: 4px 0 0 !important; padding: 14px 16px 12px !important; border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control); background: var(--surface-2); min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-audience legend { padding: 0 6px; margin-left: -6px; font-size: 14px; font-weight: 750; color: var(--ink); }
html[data-ds][data-visual-world] #view-teacher .t-aud-row { display: flex !important; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 4px; margin: 0 !important; border-radius: 8px; cursor: pointer; font-weight: 500 !important; }
html[data-ds][data-visual-world] #view-teacher .t-aud-row input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
html[data-ds][data-visual-world] #view-teacher .t-aud-row > span { display: grid; gap: 1px; }
html[data-ds][data-visual-world] #view-teacher .t-aud-row strong { font-size: 14.5px; color: var(--ink); font-weight: 650; }
html[data-ds][data-visual-world] #view-teacher .t-aud-row small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-aud-row.is-current { cursor: default; }
html[data-ds][data-visual-world] #view-teacher .t-aud-row:has(input:checked:not(:disabled)) { background: var(--amber-soft); }
html[data-ds][data-visual-world] #view-teacher .t-aud-sub { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--hairline-soft); font-size: 13px; color: var(--muted); font-weight: 600; }
html[data-ds][data-visual-world] #view-teacher .t-aud-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
html[data-ds][data-visual-world] :is(#view-teacher, .t-switch-mask) .t-aud-warn { margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; background: var(--accent-soft-2); color: var(--ink-2); }
html[data-ds][data-visual-world] :is(#view-teacher, .t-switch-mask) .t-aud-warn[data-tone="amber"] { background: var(--amber-soft); color: var(--amber-ink); font-weight: 600; }
html[data-ds][data-visual-world] #view-teacher .t-aud-warn[hidden] { display: none; }
html[data-ds][data-visual-world] #view-teacher .feedback .t-batch-list { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
html[data-ds][data-visual-world] #view-teacher .feedback .t-batch-list li[data-ok="false"] { color: var(--red-ink); }

/* 老师端朗读作业：自己提供的文章先生成示范音频、试听，再发布 */
#createReadingMaterialForm .reading-draft-step { display: grid; gap: 12px; }
#createReadingMaterialForm .reading-draft-step[hidden] { display: none; }
#createReadingMaterialForm .reading-draft-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
#createReadingMaterialForm .reading-draft-step-head .reading-admin-action { min-height: 46px; padding: 0 22px; flex: 0 0 auto; }
#createReadingMaterialForm .reading-draft-hint { flex: 1 1 220px; min-width: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
#createReadingMaterialForm.reading-draft-ready .reading-draft-hint { color: var(--green-ink); }
.reading-draft-audio:empty { display: none; }
.reading-draft-audio { display: grid; gap: 10px; }
.reading-draft-audio.is-stale .reading-draft-list { opacity: .72; }
.reading-draft-head { display: grid; gap: 2px; }
.reading-draft-head strong { font-size: 15px; color: var(--ink-2); }
#createReadingMaterialForm.reading-draft-ready .reading-draft-head strong { color: var(--green-ink); }
.reading-draft-head small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.reading-draft-danger { background: var(--red-soft) !important; color: var(--red-ink) !important; font-weight: 600; }
.reading-draft-list { list-style: none; margin: 0; padding: 0; display: grid; max-height: 460px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; }
.reading-draft-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--hairline-soft); }
.reading-draft-list li:first-child { border-top: 0; }
.reading-draft-list li[data-break="paragraph"] { border-top: 6px solid var(--hairline-soft); }
.reading-draft-list li[data-state="bad"] { background: var(--red-soft); }
.reading-draft-n { padding-top: 3px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.reading-draft-body { display: grid; gap: 6px; min-width: 0; }
.reading-draft-text { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.reading-draft-problem { font-size: 13px; line-height: 1.5; color: var(--red-ink); font-weight: 600; }
.reading-draft-fixes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reading-draft-fixes small { font-size: 12px; color: var(--muted); }
.reading-draft-fix { min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--accent-edge, var(--line)); background: var(--accent-soft-2); color: var(--ink-2); font-size: 13px; line-height: 1.4; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.reading-draft-fixes.is-tip .reading-draft-fix { background: transparent; }
.reading-draft-fix:hover { border-color: var(--accent); }
.reading-draft-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.reading-draft-tools .text-button { font-size: 13px !important; color: var(--muted); }
.reading-draft-edit { width: 100%; min-height: 72px; box-sizing: border-box; font-size: 15px; line-height: 1.6; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--accent); }
.reading-draft-edit-hint { font-size: 12px; color: var(--muted); }
.reading-draft-inline-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: 6px; vertical-align: middle; }
.reading-draft-note { margin: 0; font-size: 13px; color: var(--muted); }
.reading-draft-btn { width: auto !important; min-height: 34px !important; padding: 0 10px !important; font-size: 13px !important; white-space: nowrap; }
#createReadingMaterialForm .reading-publish-actions { grid-template-columns: minmax(0, 1fr) !important; justify-items: end; }
#createReadingMaterialForm .reading-publish-actions .reading-admin-action { width: auto !important; min-width: 200px; }
#createReadingMaterialForm .reading-publish-actions .reading-admin-action:disabled { opacity: .55; cursor: not-allowed; }
#createReadingMaterialForm .reading-legacy-tts { justify-self: start; font-size: 13px; }
#createReadingMaterialForm .reading-legacy-tts.needs-attention { color: var(--amber-ink) !important; font-weight: 600; }
#createReadingMaterialForm .reading-legacy-tts[hidden] { display: none; }
@media (max-width: 640px) {
  #createReadingMaterialForm .reading-publish-actions .reading-admin-action { width: 100% !important; }
  #createReadingMaterialForm .reading-draft-step-head .reading-admin-action { width: 100%; }
  .reading-draft-list { max-height: none; }
  .reading-draft-inline-actions { margin-left: 0; }
}
html[data-ds][data-visual-world] #view-teacher .feedback p { margin: 0; }
/* Filters: segmented controls */
html[data-ds][data-visual-world] #view-teacher .t-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
html[data-ds][data-visual-world] #view-teacher .t-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
html[data-ds][data-visual-world] #view-teacher .t-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: calc(var(--ds-r-control) + 3px); background: color-mix(in srgb, var(--surface-3) 70%, transparent); border: 1px solid var(--hairline-soft); }
html[data-ds][data-visual-world] #view-teacher .t-seg button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--ds-r-control);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
html[data-ds][data-visual-world] #view-teacher .t-seg button > span { font-size: 12px; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-seg button[aria-pressed="true"] { background: var(--ds-card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 0 0 1px var(--hairline-soft); }
html[data-ds][data-visual-world] #view-teacher .t-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
html[data-ds][data-visual-world] #view-teacher .t-select { display: inline-flex !important; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 !important; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-select select { min-height: 40px !important; max-width: 280px; }
/* 作业进度 */
html[data-ds][data-visual-world] #view-teacher .t-prog-list { padding: 0 !important; overflow: hidden; }
html[data-ds][data-visual-world] #view-teacher .t-prog-row { border-top: 1px solid var(--hairline-soft); transition: background-color .6s var(--ds-ease); }
html[data-ds][data-visual-world] #view-teacher .t-prog-row:first-child { border-top: 0; }
html[data-ds][data-visual-world] #view-teacher .t-prog-row.is-focus { background: var(--accent-soft-2); }
html[data-ds][data-visual-world] #view-teacher .t-prog-main {
  display: grid; grid-template-columns: 64px minmax(0, 1.6fr) 150px minmax(170px, 1fr) 180px; gap: 12px 16px; align-items: center; padding: 16px 22px 10px;
}
/* 5.10.3: from 768 to 1099px the five fixed columns left the title 0px wide (one character per line).
   Two rows instead: chip · title · actions, then due · progress under the title. */
@media (min-width: 768px) and (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher .t-prog-main { grid-template-columns: 64px minmax(0, 1fr) minmax(170px, 220px); grid-template-areas: "chip title actions" ". due done"; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-chip { grid-area: chip; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-title { grid-area: title; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-due { grid-area: due; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-done { grid-area: done; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-actions { grid-area: actions; }
}
html[data-ds][data-visual-world] #view-teacher .t-prog-due { display: grid; gap: 2px; }
html[data-ds][data-visual-world] #view-teacher .t-state { font-size: 12px; font-weight: 700; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-prog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
html[data-ds][data-visual-world] #view-teacher .t-prog-actions .text-button { min-height: 36px !important; padding: 0 8px !important; font-size: 14px !important; }
html[data-ds][data-visual-world] #view-teacher .t-prog-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 22px 8px 102px; font-size: 13px; }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report { width: auto !important; max-width: none !important; box-sizing: border-box; margin: 0 22px 14px 102px !important; padding: 0 !important; border: 1px solid var(--hairline-soft) !important; border-radius: var(--ds-r-control) !important; background: color-mix(in srgb, var(--surface-2) 80%, transparent) !important; box-shadow: none !important; }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report > summary { min-height: 40px; padding: 8px 40px 8px 14px !important; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 650; color: var(--accent-ink); }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report > summary::-webkit-details-marker { display: none; }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report > summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report > summary small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-prog-report .t-prog-load { float: right; width: auto !important; max-width: calc(100% - 28px); min-height: 32px !important; padding: 0 12px !important; font-size: 13px !important; border-radius: 999px !important; }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report[open] { background: var(--ds-card) !important; }
html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report[open] > :not(summary) { margin: 4px 14px 14px; }
html[data-ds][data-visual-world] #view-teacher .t-prog-row > :is(.teacher-remediation-followup, [data-remediation-followup]) { margin: 0 22px 14px 102px; }
html[data-ds][data-visual-world] #view-teacher .t-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; color: var(--muted); font-size: 14.5px; }
/* 作文批改 */
html[data-ds][data-visual-world] #view-teacher .t-grading { display: grid !important; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important; gap: 20px !important; align-items: start; }
html[data-ds][data-visual-world] #view-teacher .t-grading > .submission-list { padding: 6px !important; display: grid; gap: 2px; max-height: none !important; overflow: visible !important; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-card {
  display: grid !important; gap: 3px; width: 100%; padding: 12px 14px !important; text-align: left; border: 0 !important; border-radius: var(--ds-r-control) !important;
  background: transparent !important; box-shadow: none !important; color: var(--ink); cursor: pointer;
}
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-card + .submission-card { border-top: 1px solid var(--hairline-soft) !important; border-radius: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-card:is(.active, [aria-pressed="true"], [aria-current="true"]) { background: var(--accent-soft-2) !important; border-radius: var(--ds-r-control) !important; box-shadow: 0 0 0 1px var(--accent-edge) inset !important; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-card > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-card strong { font-size: 13.5px; font-weight: 560; color: var(--ink-2); }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-card small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-review-badge { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-review-badge.pending { background: var(--amber-soft); color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-review-badge.done { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-grading > .submission-detail { padding: 22px 24px !important; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-detail-card { border: 0 !important; padding: 0 !important; box-shadow: none !important; background: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-image { max-height: 420px; width: auto; max-width: 100%; border-radius: var(--ds-r-control); }
html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box { margin-top: 16px; padding: 18px !important; border-radius: var(--ds-r-card) !important; background: var(--surface-2) !important; border: 1px solid var(--hairline-soft) !important; }
html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-actions .badge { margin-right: auto; }
html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-actions button { min-height: 44px !important; }
html[data-ds][data-visual-world] #view-teacher .t-review-hint { margin: 8px 0 0; font-size: 12.5px; text-align: right; }
html[data-ds][data-visual-world] #view-teacher .teacher-submission-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; font-size: 13px; }
/* 学生 */
html[data-ds][data-visual-world] #view-teacher .t-section.teacher-roster { padding: 0 !important; border: 0 !important; background: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-roster-card .data-table-wrap { max-height: none !important; overflow: visible auto !important; }
html[data-ds][data-visual-world] #view-teacher .t-roster-head { align-items: center; }
html[data-ds][data-visual-world] #view-teacher .t-roster-head .teacher-roster-tools { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-roster-head .teacher-roster-search { min-width: min(280px, 100%); margin: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-students-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
html[data-ds][data-visual-world] #view-teacher .t-roster-card { padding: 6px 0 0 !important; overflow: hidden; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-roster-card .data-table-wrap { border: 0 !important; box-shadow: none !important; background: none !important; overflow-x: auto; }
html[data-ds][data-visual-world] #view-teacher table.t-roster { width: 100%; border-collapse: collapse; font-size: 14px; background: transparent !important; }
html[data-ds][data-visual-world] #view-teacher table.t-roster th { padding: 10px 14px !important; text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted) !important; background: transparent !important; border-bottom: 1px solid var(--hairline-soft) !important; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher table.t-roster td { padding: 11px 14px !important; border-bottom: 1px solid var(--hairline-soft) !important; color: var(--ink-2); font-variant-numeric: tabular-nums; vertical-align: middle; }
html[data-ds][data-visual-world] #view-teacher table.t-roster tr:last-child td { border-bottom: 0 !important; }
html[data-ds][data-visual-world] #view-teacher table.t-roster tr.is-selected td { background: var(--accent-soft-2); }
html[data-ds][data-visual-world] #view-teacher table.t-roster td.td-title { display: grid; gap: 1px; }
html[data-ds][data-visual-world] #view-teacher table.t-roster .teacher-student-name { justify-self: start; min-height: 28px !important; padding: 0 !important; font-size: 15px !important; font-weight: 700 !important; color: var(--ink) !important; background: none !important; border: 0 !important; text-align: left; }
html[data-ds][data-visual-world] #view-teacher table.t-roster td.td-title small { font-size: 12px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher table.t-roster .t-last { white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher table.t-roster .t-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
html[data-ds][data-visual-world] #view-teacher table.t-roster .t-last[data-tone="amber"] .t-dot { background: var(--amber); }
html[data-ds][data-visual-world] #view-teacher table.t-roster .t-last[data-tone="red"] { color: var(--red-ink); }
html[data-ds][data-visual-world] #view-teacher table.t-roster .t-last[data-tone="red"] .t-dot { background: var(--red); }
html[data-ds][data-visual-world] #view-teacher table.t-roster tr[hidden] { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-roster-card .teacher-roster-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 14px; font-size: 13px; }
html[data-ds][data-visual-world] #view-teacher .t-roster-card .teacher-roster-footer button[hidden] { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-roster-card #teacherRosterEmpty { margin: 0; padding: 18px; }
html[data-ds][data-visual-world] #view-teacher .t-student-aside { position: sticky; top: 16px; padding: 20px !important; min-width: 0; max-height: calc(100vh - 32px); overflow: auto; }
html[data-ds][data-visual-world] #view-teacher .t-student-aside .student-detail-panel { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
/* 每日打卡 */
html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="checkin"] .teacher-checkin-dashboard { padding: 22px 24px !important; }
/* Labelled search fields (task student search, textbook search) keep the label outside the box. */
html[data-ds][data-visual-world] #view-teacher :is(.teacher-result-search, .reading-textbook-search):has(> input) {
  display: grid !important; gap: 6px; padding: 0 !important; min-height: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
html[data-ds][data-visual-world] #view-teacher :is(.teacher-result-search, .reading-textbook-search) > input {
  min-height: 44px !important; padding: 0 14px !important; border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control) !important; background: var(--surface) !important;
}
html[data-ds][data-visual-world] #view-teacher :is(.teacher-result-search, .reading-textbook-search) > input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important; }
html[data-ds][data-visual-world] #view-teacher .teacher-checkin-dashboard > .section-head .eyebrow { display: none; }
/* Class switcher, QR and batch confirmation */
html[data-ds][data-visual-world] .t-switch-mask { position: fixed !important; inset: 0 !important; z-index: 120 !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 24px !important; background: rgb(12 18 30 / 42%) !important; }
html[data-ds][data-visual-world] .t-switch {
  width: min(480px, 100%); max-height: min(720px, calc(100vh - 48px)); overflow: auto; box-sizing: border-box; padding: 18px 20px 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline-soft); border-radius: var(--ds-r-hero); box-shadow: var(--shadow-lg);
}
html[data-ds][data-visual-world] .t-switch > header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
html[data-ds][data-visual-world] .t-switch > header h2 { flex: 1; margin: 0; font-family: var(--font-display); font-weight: var(--ds-display-weight); font-size: 21px; color: var(--ink); }
html[data-ds][data-visual-world] .t-switch > header .text-button { min-height: 40px !important; font-size: 14px !important; color: var(--accent-ink) !important; }
html[data-ds][data-visual-world] .t-switch-grip { display: none; }
html[data-ds][data-visual-world] .t-switch-list { display: grid; gap: 2px; }
html[data-ds][data-visual-world] .t-switch-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
html[data-ds][data-visual-world] .t-switch-row + .t-switch-row { box-shadow: 0 -1px 0 var(--hairline-soft); }
html[data-ds][data-visual-world] .t-switch-row.is-current { background: var(--accent-soft-2); box-shadow: none !important; }
html[data-ds][data-visual-world] .t-switch-row .t-level { width: 64px; justify-content: center; padding: 0 6px; }
html[data-ds][data-visual-world] .t-switch-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
html[data-ds][data-visual-world] .t-switch-copy strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ds][data-visual-world] .t-switch-copy small { font-size: 12.5px; color: var(--muted); }
html[data-ds][data-visual-world] .t-switch-copy small.t-warn-text { color: var(--red-ink); }
html[data-ds][data-visual-world] .t-switch-here { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
html[data-ds][data-visual-world] .t-switch-here .ic { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { html[data-ds][data-visual-world] .t-switch-row:not(.is-current):hover { background: var(--surface-2); } }
html[data-ds][data-visual-world] .t-switch-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html[data-ds][data-visual-world] .t-switch > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
html[data-ds][data-visual-world] .t-switch > footer :is(.primary-action, .secondary-action) { min-height: 44px !important; display: inline-flex; align-items: center; gap: 8px; }
html[data-ds][data-visual-world] .t-switch:not(.t-confirm):not(.t-qr) > footer .secondary-action { width: 100%; justify-content: center; }
html[data-ds][data-visual-world] .t-qr { text-align: center; width: min(380px, 100%); }
html[data-ds][data-visual-world] .t-qr img { width: 200px; height: 200px; margin: 6px auto 10px; display: block; border-radius: 12px; background: #fff; padding: 8px; box-sizing: content-box; }
html[data-ds][data-visual-world] .t-qr img[hidden] { display: block; visibility: hidden; }
html[data-ds][data-visual-world] .t-qr p { margin: 4px 0; }
html[data-ds][data-visual-world] .t-qr > footer { justify-content: center; }
html[data-ds][data-visual-world] .t-confirm > p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
html[data-ds][data-visual-world] .t-confirm-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
html[data-ds][data-visual-world] .t-confirm-list li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-top: 1px solid var(--hairline-soft); font-size: 15px; }
html[data-ds][data-visual-world] .t-confirm-list li:first-child { border-top: 0; }
html[data-ds][data-visual-world] .t-confirm-list li strong { flex: 1; min-width: 0; }
html[data-ds][data-visual-world] .t-confirm-list li span:last-child { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Glass, as on the student pages: top-level teacher cards let the scenery show through. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]):not(.cv-reduce-motion) #appShell #view-teacher :is(.t-class-card, .t-kpi, .t-main > .t-card, .t-side > .t-card, .t-ws > .t-section > .t-fold, .t-form-card, .t-assign-aside, .t-prog-list, .t-grading > .submission-list, .t-grading > .submission-detail, .t-roster-card, .t-student-aside, .teacher-checkin-dashboard, .t-empty-card, .t-type-picker > button[aria-selected="false"]) {
    background-color: var(--ds-glass-card, var(--ds-card)) !important;
    border-color: color-mix(in srgb, var(--ds-card-edge) 70%, transparent) !important;
    -webkit-backdrop-filter: var(--ds-glass-blur, none); backdrop-filter: var(--ds-glass-blur, none);
  }
}
/* Tablet rail (768–1180): icons with short labels; the class card becomes a compact switch button. */
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-ds][data-visual-world] #appShell #teacherNav .nav-item {
    flex-direction: column !important; justify-content: center !important; gap: 4px !important; min-height: 60px !important; padding: 8px 2px !important;
    font-size: 12px !important; line-height: 1.2 !important; text-align: center;
  }
  html[data-ds][data-visual-world] #appShell #teacherNav .nav-item .nav-tx { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; text-align: center; }
  html[data-ds][data-visual-world] #appShell #teacherNav .nav-item.active::before { left: -8px; }
  html[data-ds][data-visual-world] #appShell #teacherNav :is(.t-nav-count, .t-nav-classes) { display: none; }
  html[data-ds][data-visual-world] #appShell #teacherNav .nav-item .t-badge { position: absolute; top: 4px; right: 10px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-back { justify-content: center; padding: 0; font-size: 12px; }
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-back span { display: none; }
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-back::after { content: "全部班级"; }
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-class { padding: 8px 6px; margin: 2px 0 8px; text-align: center; justify-items: center; }
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-class-top small,
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-class > small { display: none; }
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-class strong { font-size: 12px; font-family: var(--ds-sans); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html[data-ds][data-visual-world] #view-teacher .t-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ds][data-visual-world] #view-teacher .t-type-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher :is(.t-cols, .t-assign-body, .t-students-cols) { grid-template-columns: minmax(0, 1fr); }
  html[data-ds][data-visual-world] #view-teacher :is(.t-assign-aside, .t-student-aside) { position: static; max-height: none; }
  html[data-ds][data-visual-world] #view-teacher .t-assign-aside { order: -1; }
  html[data-ds][data-visual-world] #view-teacher .t-grading { grid-template-columns: minmax(0, 1fr) !important; }
}
/* Phone: the class sits in the page header; a sheet switches it; sections live in the tab bar. */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws { gap: 16px; }
  html[data-ds][data-visual-world] #view-teacher .t-section { gap: 14px; }
  html[data-ds][data-visual-world] #view-teacher .t-class-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
  html[data-ds][data-visual-world] #view-teacher .t-class-id h2 { font-size: 22px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-class-meta { font-size: 13px; gap: 2px 10px; }
  html[data-ds][data-visual-world] #view-teacher .t-class-actions { display: contents; }
  html[data-ds][data-visual-world] #view-teacher .t-class-actions #refreshTeacherTop { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-class-actions .t-switch-btn { grid-row: 1; grid-column: 2; min-height: 40px !important; padding: 0 12px !important; font-size: 14px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-class-actions .t-assign-cta { grid-column: 1 / -1; width: 100%; justify-content: center; }
  html[data-ds][data-visual-world] #view-teacher .t-ws:not([data-section="overview"]) .t-class-actions .t-assign-cta { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-sec-title { font-size: 24px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-sec-actions { width: 100%; }
  html[data-ds][data-visual-world] #view-teacher .t-sec-actions > * { flex: 1 1 auto; justify-content: center; }
  html[data-ds][data-visual-world] #view-teacher .t-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-ds][data-visual-world] #view-teacher .t-kpi { padding: 14px; }
  html[data-ds][data-visual-world] #view-teacher .t-kpi > b { font-size: 24px; }
  html[data-ds][data-visual-world] #view-teacher .t-kpi > small { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-card { padding: 16px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-cur-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "chip title action" "due due done"; gap: 8px 10px; }
  html[data-ds][data-visual-world] #view-teacher .t-cur-row > .t-chip { grid-area: chip; }
  html[data-ds][data-visual-world] #view-teacher .t-cur-row > .t-cur-title { grid-area: title; }
  html[data-ds][data-visual-world] #view-teacher .t-cur-row > .t-cur-due { grid-area: due; }
  html[data-ds][data-visual-world] #view-teacher .t-cur-row > .t-cur-done { grid-area: done; min-width: 120px; }
  html[data-ds][data-visual-world] #view-teacher .t-cur-row > button { grid-area: action; }
  html[data-ds][data-visual-world] #view-teacher .t-type-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-ds][data-visual-world] #view-teacher .t-type-picker [data-assign-type] { padding: 12px; gap: 10px; }
  html[data-ds][data-visual-world] #view-teacher .t-type-copy small { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-type-ic { width: 32px; height: 32px; }
  html[data-ds][data-visual-world] #view-teacher .t-form-card { padding: 16px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form { grid-template-columns: minmax(0, 1fr); }
  html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > label { grid-column: 1 / -1 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-form-card button[type="submit"] { width: 100%; justify-self: stretch; }
  html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form .reading-publish-actions { justify-self: stretch; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "chip title" "due due" "done done" "actions actions"; padding: 14px 16px 8px; gap: 8px 10px; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-chip { grid-area: chip; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-title { grid-area: title; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-due { grid-area: due; display: flex; gap: 8px; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-done { grid-area: done; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-main > .t-prog-actions { grid-area: actions; justify-content: flex-start; }
  html[data-ds][data-visual-world] #view-teacher :is(.t-prog-row, .t-bundle-part) > .assignment-report,
  html[data-ds][data-visual-world] #view-teacher .t-prog-row > :is(.teacher-remediation-followup, [data-remediation-followup]) { margin: 0 16px 14px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-extra { padding: 0 16px 8px; }
  html[data-ds][data-visual-world] #view-teacher .t-prog-bundle .t-bundle-part-label { margin: 2px 16px 6px; } /* 2026-11-13：一组打卡的两份明细和别的作业一样缩进、加框 */
  html[data-ds][data-visual-world] #view-teacher .t-seg { width: 100%; }
  html[data-ds][data-visual-world] #view-teacher .t-seg button { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  html[data-ds][data-visual-world] #view-teacher .t-filter-group,
  html[data-ds][data-visual-world] #view-teacher .t-select { width: 100%; }
  html[data-ds][data-visual-world] #view-teacher .t-select select { flex: 1; max-width: none; }
  html[data-ds][data-visual-world] #view-teacher .t-roster-head .teacher-roster-tools { width: 100%; }
  html[data-ds][data-visual-world] #view-teacher .t-roster-head .teacher-roster-search { flex: 1 1 100%; }
  html[data-ds][data-visual-world] #view-teacher .t-roster-head > .primary-action { width: 100%; justify-content: center; }
  html[data-ds][data-visual-world] #view-teacher table.t-roster thead { display: none; }
  html[data-ds][data-visual-world] #view-teacher table.t-roster tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--hairline-soft); }
  html[data-ds][data-visual-world] #view-teacher table.t-roster tr[hidden] { display: none; }
  html[data-ds][data-visual-world] #view-teacher table.t-roster td { display: grid; padding: 0 !important; border: 0 !important; font-size: 14px; }
  html[data-ds][data-visual-world] #view-teacher table.t-roster td.td-title { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
  html[data-ds][data-visual-world] #view-teacher table.t-roster td[data-label]::before { content: attr(data-label); font-size: 12px; /* 小修-20261125 原11.5px */ color: var(--muted); }
  html[data-ds][data-visual-world] #view-teacher table.t-roster tr.is-selected { background: var(--accent-soft-2); }
  html[data-ds][data-visual-world] #view-teacher table.t-roster tr.is-selected td { background: none; }
  html[data-ds][data-visual-world] #view-teacher .t-fold > summary { padding: 12px 44px 12px 16px; }
  html[data-ds][data-visual-world] #view-teacher .t-fold > :not(summary) { margin: 14px 16px !important; }
  html[data-ds][data-visual-world] .t-switch-mask { align-items: flex-end !important; padding: 0 !important; }
  html[data-ds][data-visual-world] .t-switch { width: 100%; max-width: none; margin: 0 !important; max-height: 88vh; border-radius: 20px 20px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); border-bottom: 0; }
  html[data-ds][data-visual-world] .t-switch-grip { display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--hairline); margin: 0 auto 12px; }
  html[data-ds][data-visual-world] .t-confirm > footer > * { flex: 1 1 auto; justify-content: center; }
}

/* ── 25. Registration agreement (5.10.0) ──────────────────────────────────────────────
   On phones (≤600px) the 44px touch rule in academy-theme.css made the checkbox's hit area
   wider than its 18px column and turned the two document links into 44px boxes, so the box
   sat over the first character and the sentence broke into widely spaced lines. Here the
   checkbox keeps its 44px hit area but it is centred on the box with negative margins, so the
   box lines up with the first line of text. The links stay in the text flow and get their
   taller hit area from an invisible ::after, which does not change the line height.
   Above 600px nothing changes. */
@media (max-width: 600px) {
  html[data-visual-world] #authScreen .auth-form .agreement-check {
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 10px !important;
  }
  html[data-visual-world] #authScreen .agreement-check .auth-agreement-hit {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important;
    margin: -13px !important; padding: 0 !important; cursor: pointer; position: relative; z-index: 1;
    align-self: start !important; justify-self: start !important;
  }
  html[data-visual-world] #authScreen .agreement-check .auth-agreement-hit input[type="checkbox"] { margin: 0 !important; align-self: center !important; }
  html[data-visual-world] #authScreen .agreement-check .auth-agreement-copy { min-width: 0; line-height: 18px !important; }
  html[data-visual-world] #authScreen #registerForm .agreement-check .auth-doc-link {
    display: inline !important; position: relative;
    min-width: 0 !important; min-height: 0 !important; height: auto !important;
    padding: 0 1px !important; margin: 0 !important;
    line-height: inherit !important; font-size: inherit !important; vertical-align: baseline !important;
    border-radius: 4px;
  }
  html[data-visual-world] #authScreen #registerForm .agreement-check .auth-doc-link::after {
    content: ""; position: absolute; inset: -13px -2px;
  }
}

/* 老师端表单里的「更多设置」：不常用的选项收起来 */
#view-teacher .t-more-settings { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; min-width: 0; }
#view-teacher .t-more-settings > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
#view-teacher .t-more-settings[open] { padding-bottom: 14px; }
#view-teacher .t-more-body { display: grid; gap: 14px; min-width: 0; }
#view-teacher .t-more-body label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 0; }
#view-teacher .t-more-body label small { font-weight: 400; color: var(--muted); font-size: 12px; }
#createReadingMaterialForm .reading-legacy-tts[data-none] { display: none !important; }

/* 学生端朗读：自己粘贴的文章按原文分段显示；听全文时标出正在播的句子；读全文弹窗的文字框高一些 */
.sentence-list .reading-paragraph-row[data-break="paragraph"] { margin-top: 14px; }
.sentence-list .reading-paragraph-row.is-playing { background: var(--accent-soft-2); border-radius: 10px; }
.reading-full-card .reading-full-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reading-full-card .reading-full-actions > button { flex: 1 1 160px; }
.modal-mask .speech-target.is-full-passage { max-height: min(480px, 50vh) !important; }

/* 老师端词汇作业：按词选、按单元分组、已布置标记、已选条、底部发布条 */
#createVocabAssignmentForm .vocab-picker-box { display: grid; gap: 10px; grid-column: 1 / -1; min-width: 0; }
#createVocabAssignmentForm .vocab-picker-toolbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
#createVocabAssignmentForm .vocab-picker-search { flex: 1 1 240px; min-width: 0; }
#createVocabAssignmentForm .vocab-picker-search input { width: 100%; min-height: 42px; box-sizing: border-box; }
#createVocabAssignmentForm .vocab-hide-assigned { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
#view-teacher #createVocabAssignmentForm .vocab-quick-actions { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
#view-teacher #createVocabAssignmentForm .vocab-quick-actions > button { width: auto !important; flex: 0 0 auto; min-height: 40px; }
#createVocabAssignmentForm .vocab-paste { flex: 1 1 100%; }
#createVocabAssignmentForm .vocab-paste > summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink, var(--accent)); }
#createVocabAssignmentForm .vocab-paste-body { display: grid; gap: 8px; margin-top: 6px; }
#createVocabAssignmentForm .vocab-paste-body textarea { width: 100%; box-sizing: border-box; font-size: 15px; }
#createVocabAssignmentForm .vocab-paste-body button { justify-self: start; width: auto !important; }
#createVocabAssignmentForm .vocab-word-picker { display: block !important; max-height: min(62vh, 640px) !important; overflow: auto; padding: 0 2px 2px; border: 1px solid var(--line); border-radius: 12px; }
#createVocabAssignmentForm .vocab-group + .vocab-group { margin-top: 6px; }
#createVocabAssignmentForm .vocab-group-head { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 8px; background: var(--surface, #fff); border-bottom: 1px solid var(--hairline-soft); }
#createVocabAssignmentForm .vocab-group-head strong { font-size: 14px; }
#createVocabAssignmentForm .vocab-group-head small { font-size: 12px; color: var(--muted); flex: 1 1 auto; }
#createVocabAssignmentForm .vocab-group-head .text-button { font-size: 13px !important; }
#createVocabAssignmentForm .vocab-group-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 6px; }
#createVocabAssignmentForm .vocab-word-option.is-assigned { opacity: .62; }
#createVocabAssignmentForm .vocab-word-option.is-assigned.selected { opacity: 1; }
#createVocabAssignmentForm .vocab-word-tag { grid-column: 2; justify-self: start; font-size: 12px; /* 小修-20261125 原11px */ line-height: 1.4; padding: 0 6px; border-radius: 6px; background: var(--amber-soft); color: var(--amber-ink); }
#createVocabAssignmentForm .vocab-selected-bar { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft-2); }
#createVocabAssignmentForm .vocab-selected-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
#createVocabAssignmentForm .vocab-selected-head strong { font-size: 15px; }
#createVocabAssignmentForm .vocab-selected-head small { font-size: 12px; color: var(--muted); flex: 1 1 auto; }
#createVocabAssignmentForm .vocab-selected-empty { margin: 0; font-size: 13px; color: var(--muted); }
#createVocabAssignmentForm .vocab-selected-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; }
#createVocabAssignmentForm .vocab-selected-list[hidden] { display: none; }
#createVocabAssignmentForm .vocab-selected-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface, #fff); font-size: 13px; cursor: pointer; }
#createVocabAssignmentForm .vocab-selected-chip span { color: var(--muted); }
#createVocabAssignmentForm .vocab-range-row { display: flex; gap: 8px; }
#createVocabAssignmentForm .vocab-range-row input { flex: 1 1 auto; min-width: 0; }
#createVocabAssignmentForm .vocab-range-row button { width: auto !important; flex: 0 0 auto; }
#createVocabAssignmentForm .vocab-more-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
#createVocabAssignmentForm .teacher-selection-message:not([hidden]) { margin: 0; font-size: 13px; color: var(--ink-2); }

/* 表单最下面的发布条：电脑上贴住窗口底部，长表单不用滚到底才能发布 */
#view-teacher .t-form-card .mini-form > .t-submit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; }
#view-teacher .t-submit-summary { font-size: 13px; color: var(--muted); }
#view-teacher .t-submit-summary:empty { display: none; }
@media (min-width: 641px) {
  #view-teacher .t-form-card .mini-form > .t-submit-row { position: sticky; bottom: 0; z-index: 2; padding: 10px 0; margin-bottom: -10px; background: linear-gradient(to bottom, transparent, var(--surface, #fff) 30%); }
}
@media (max-width: 640px) {
  #createVocabAssignmentForm .vocab-group-words { grid-template-columns: minmax(0, 1fr); }
  #view-teacher .t-form-card .mini-form > .t-submit-row { justify-content: stretch; }
  #view-teacher .t-form-card .mini-form > .t-submit-row button[type="submit"] { flex: 1 1 100%; }
}
.t-confirm .t-danger-action { background: var(--red-ink) !important; border-color: var(--red-ink) !important; color: #fff !important; }
#view-teacher .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
#createVocabAssignmentForm .vocab-picker-search { display: block; border: 0 !important; padding: 0 !important; background: none !important; }
#createVocabAssignmentForm .vocab-hide-assigned input[type="checkbox"] { width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; flex: 0 0 auto; }

/* 发布后的结果卡片（表单上方） */
#view-teacher .t-publish-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green-ink) 22%, transparent); }
#view-teacher .t-publish-result[data-tone="warn"] { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber-ink) 25%, transparent); }
#view-teacher .t-publish-result-text { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
#view-teacher .t-publish-result-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--green-ink); }
#view-teacher .t-publish-result[data-tone="warn"] .t-publish-result-text strong { color: var(--amber-ink); }
#view-teacher .t-publish-result-text p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
#view-teacher .t-publish-result-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#view-teacher .t-publish-result-actions .secondary-action { width: auto !important; }

/* 每日打卡：内容按分册、单元分组，可收起 */
#createDailyCheckinForm .checkin-target-multi { max-height: min(56vh, 520px) !important; overflow: auto; }
#createDailyCheckinForm .checkin-target-group { border-bottom: 1px solid var(--hairline-soft); }
#createDailyCheckinForm .checkin-target-group[hidden] { display: none; }
#createDailyCheckinForm .checkin-target-group > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
#createDailyCheckinForm .checkin-target-group > summary small { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-weight: 400; font-size: 12px; color: var(--muted); }
#createDailyCheckinForm .checkin-target-group.has-picked > summary small { color: var(--accent); font-weight: 600; }
#createDailyCheckinForm .checkin-target-group-body { display: grid; gap: 2px; padding: 0 8px 8px; }
#createDailyCheckinForm .checkin-days-note { grid-column: 1 / -1; margin: 0; font-size: 13px; }
#createDailyCheckinForm .checkin-days-note[data-tone="bad"] { color: var(--red-ink); font-weight: 600; }

/* 新老师：班级概况最上面的「三步开始用」 */
#view-teacher .t-start-guide { margin-bottom: 16px; }
#view-teacher .t-start-guide h3 { margin: 0 0 10px; font-size: 16px !important; }
#view-teacher .t-start-guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#view-teacher .t-start-guide li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft-2); }
#view-teacher .t-start-guide li.is-done { background: transparent; opacity: .7; }
#view-teacher .t-start-n { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
#view-teacher .t-start-guide li.is-done .t-start-n { background: var(--green-ink); }
#view-teacher .t-start-copy { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
#view-teacher .t-start-copy small { font-size: 13px; color: var(--muted); line-height: 1.5; }
#view-teacher .t-start-guide li > button { width: auto !important; }
#createDailyCheckinForm .checkin-days-note[data-tone="bad"] { color: var(--red-ink) !important; }

/* teacher-ease-v3：全文录音最后 30 秒倒数（5.3 保持约 3 分钟上限，快到时提醒） */
#recordingStatus.is-time-warning { color: var(--danger, #b42318) !important; font-weight: 600; }

/* ── teacher-ease-v3：每日打卡一组（朗读 + 听力）、按单元快速选、每天用时 ── */
#createDailyCheckinForm .checkin-intro { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.55; }
#createDailyCheckinForm .checkin-unit-pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft-2); }
#createDailyCheckinForm .checkin-unit-pick .checkin-unit-title { font-weight: 600; font-size: 14px; color: var(--ink-2); }
#createDailyCheckinForm .checkin-unit-pick label { margin: 0; min-width: 0; }
#createDailyCheckinForm .checkin-unit-pick select { min-height: 38px; max-width: 100%; }
#createDailyCheckinForm .checkin-unit-pick #dailyCheckinUnit { min-width: 12em; }
#createDailyCheckinForm .checkin-unit-pick .secondary-action { width: auto !important; }
#createDailyCheckinForm .checkin-unit-pick small { flex-basis: 100%; font-size: 12px; line-height: 1.5; }
#createDailyCheckinForm .checkin-paste-btn { margin: 4px 0 6px; font-weight: 600; }
#createDailyCheckinForm .checkin-load { grid-column: 1 / -1; margin: 4px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
#createDailyCheckinForm .checkin-load[data-tone="amber"] { background: var(--amber-soft); color: var(--amber-ink); }
@media (max-width: 640px) {
  #createDailyCheckinForm .checkin-unit-pick label, #createDailyCheckinForm .checkin-unit-pick #dailyCheckinUnit { flex: 1 1 100%; min-width: 0; width: 100%; }
  #createDailyCheckinForm .checkin-unit-pick .secondary-action { flex: 1 1 100%; width: 100% !important; }
}
/* 学生端一组打卡：每一项前面标朗读、听力 */
.daily-checkin-bundle .dc-subtask-kind { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft-2, #eef1f8); color: var(--ink-2, #344); font-size: 12px; /* 小修-20261125 原11px */ font-weight: 600; line-height: 18px; vertical-align: 1px; }
/* 作业进度：一组打卡下面分朗读部分、听力部分的名单 */
.t-prog-bundle .t-bundle-part { margin-top: 4px; }
.t-prog-bundle .t-bundle-part-label { display: block; margin: 2px 22px 6px 102px; font-size: 12px; font-weight: 600; color: var(--muted); }
/* 朗读表单「加进每日打卡」样子 */
#createReadingMaterialForm .t-checkin-paste-banner { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; line-height: 1.55; }
#createReadingMaterialForm .t-checkin-paste-banner strong { font-size: 14px; }
#createReadingMaterialForm .t-checkin-paste-banner .text-button { margin-left: auto; }
/* 数字读法二选一 */
.reading-draft-choice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reading-draft-choice small { color: var(--ink-2); font-size: 12px; }
.reading-draft-choose-note { display: block; margin-top: 6px; font-weight: 400; }
.t-aud-warn [data-draft-fixall] { margin-left: 6px; width: auto !important; min-height: 32px; padding: 4px 12px; }
/* 改截止时间对话框 */
.t-edit-assignment .field { display: grid; gap: 4px; margin: 10px 0 0; }
.t-edit-assignment .field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.t-edit-assignment .field input { width: 100%; min-height: 40px; }
.t-edit-assignment .feedback[hidden] { display: none; }
/* teacher-ease-v3：在班学生首页，同一组打卡合成一张卡片，放在各模块上面 */
.home-checkin-bundles { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--hairline-soft, rgba(0,0,0,.08)); }
.home-checkin-bundles .home-workspace-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.home-checkin-bundles .home-workspace-head h2 { margin: 0; font-size: 17px; }
.home-checkin-bundles .home-workspace-head small { color: var(--muted); font-size: 12px; }
.home-checkin-bundle-list { display: grid; gap: 10px; }
.home-checkin-bundles .daily-checkin-bundle .dc-subtask-title { white-space: normal; overflow-wrap: anywhere; }

/* ── teacher-ease-v5：单词作业的正确率和跟读 ── */
.speech-stars { color: #d49a12; letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.assignment-study-counts { flex-wrap: wrap; }
.assignment-study-status.is-progress { color: var(--ink-2, #344); font-weight: 500; }
.assignment-speech-fold { margin-top: 8px; }
.assignment-speech-fold > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2, #344); }
.assignment-speech-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.assignment-speech-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.assignment-speech-list li > span[lang] { min-width: 7em; font-weight: 600; }
.assignment-speech-list li small { color: var(--muted, #667); }
.assignment-speech-list li.is-low small { color: var(--amber-ink, #8a5a00); }
.assignment-speech-list li.is-unread > span[lang] { color: var(--muted, #667); font-weight: 400; }
html[data-ds][data-visual-world] :is(#view-teacher, .t-switch-mask) .vocab-attention { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); }
.vocab-attention > strong { font-size: 14px; margin-right: 8px; }
.vocab-attention > small { font-size: 12px; opacity: .85; }
.vocab-attention-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vocab-attention-item { background: rgba(255,255,255,.6); border-radius: 8px; padding: 2px 8px; }
.vocab-attention-item > summary { cursor: pointer; display: flex; gap: 6px; align-items: baseline; font-weight: 600; }
.vocab-attention-item > summary small { font-weight: 400; }
.vocab-attention-item p { margin: 4px 0 2px; font-size: 12px; }
.vocab-detail-table small { color: var(--muted, #667); }
.vocab-detail-table .speech-attention-count { color: var(--amber-ink, #8a5a00); }
.t-vocab-student { max-height: min(86vh, 720px); overflow: auto; }
.t-vocab-student > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vocab-word-speech { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 2px; }
.vocab-word-speech li { border-bottom: 1px solid var(--hairline-soft, rgba(0,0,0,.06)); padding: 6px 2px; font-size: 14px; }
.vocab-word-speech li > details > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; }
.vocab-word-speech li > details > summary::-webkit-details-marker { display: none; }
.vocab-word-speech li span[lang] { min-width: 8em; font-weight: 600; }
.vocab-word-speech li small { color: var(--muted, #667); font-size: 12px; }
.vocab-word-speech li details p { margin: 4px 0 0 0; font-size: 13px; color: var(--ink-2, #344); }
.vocab-word-speech li.is-attention span[lang] { color: var(--amber-ink, #8a5a00); }
.vocab-word-speech li.is-unread { display: flex; gap: 10px; align-items: center; }
.vocab-word-speech li.is-unread span[lang] { color: var(--muted, #667); font-weight: 400; }
/* 手机作业信息条变成按钮：去掉按钮外观；点开的完成情况总结 */
button.cv-assign-bar-info { background: none !important; border: 0 !important; padding: 0 !important; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; box-shadow: none !important; width: auto !important; min-height: 0; }
.cv-assign-summary-sheet { max-height: min(86vh, 680px); overflow: auto; }
.cv-assign-summary-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cv-assign-summary-sheet .assignment-speech-fold[open] .assignment-speech-list, .cv-assign-summary-sheet .assignment-speech-list { max-height: none; }
/* 手机卡片样式（refine.css）默认藏掉格子里的小字；词汇明细的「答对/作答」「N 个要注意」「还没测」要显示 */
.data-table.responsive-cards.vocab-detail-table td:not(.td-title) small { display: inline !important; }
.vocab-class-avg { margin: 2px 0 8px; font-size: 14px; color: var(--ink-2, #344); }
.vocab-class-avg strong { font-size: 16px; margin: 0 2px; }
.vocab-class-avg small { margin-left: 6px; color: var(--muted, #667); font-size: 12px; }
/* 5.10.3-starters-pics-v1：Starters 单词题配图，放在题干上方；图自带奶油色底，没有图的题照旧 */
.question-card .word-pic { margin: 6px 0 12px; width: 176px; height: 176px; border-radius: 16px; overflow: hidden; background: #FFF6E5; box-shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 6px 18px rgba(60, 40, 10, .10); }
.question-card .word-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .question-card .word-pic { width: 148px; height: 148px; margin: 2px auto 10px; } }
/* 有图时四个短选项排成两列两行（.options 本来就是 grid） */
.question-card .options.options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
/* CC-AV1-049 F1：「听全文」正在播的那句要看得出来。ultimate.css 给 .sentence-row 下了 background !important，
   上面 2352 行那条不带 !important 的被盖掉了；同文件里 html[data-ds][data-visual-world] #view-reading .sentence-row 也把背景设成透明，
   所以这里要带 !important 且选择器比它多一级。颜色和 Starters 课文的一致 */
.sentence-list .reading-paragraph-row.is-playing,
#view-reading .sentence-list .reading-paragraph-row.is-playing,
html[data-ds][data-visual-world] #view-reading .sentence-list .reading-paragraph-row.is-playing { background: var(--accent-soft) !important; border-radius: 10px !important; box-shadow: inset 0 0 0 1px var(--accent-edge) !important; }
/* 5.10.3-student-check-v2：作业完成页加了「正确率」卡片，四张卡片手机上也排成两列两行（原来手机一张一行，四张太长） */
@media (max-width: 760px) { .assignment-complete-final .assignment-result-grid.has-accuracy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 手机上 ultimate.css 把卡片小字都藏了（.metric-card small display:none !important）；正确率这张要看得到「答对 / 作答」 */
@media (max-width: 760px) { .assignment-complete-final .assignment-accuracy-card small { display: block !important; font-size: 12px !important; } }
/* 5.10.3-student-check-v4（2026-11-13，老师说明书拍图时发现）：电脑上「学生」页右侧详情栏只有约 310px，
   已学 / 测验 / 口语 / 写作四张数字卡挤成竖条，「180」被截掉一半。详情卡窄的时候和手机一样排两列，活动记录和朗读问题上下排。 */
#view-teacher .student-detail-card { container-type: inline-size; }
@container (max-width: 560px) {
  #view-teacher .student-detail-card .student-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #view-teacher .student-detail-card .student-detail-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

#createVocabAssignmentForm .vocab-require-read { display: flex; flex-direction: row; align-items: center; gap: .55rem; }
#createVocabAssignmentForm .vocab-require-read input { width: auto; flex: none; }
@media (max-width: 760px) {
  .assignment-complete-final .assignment-result-grid.has-reading-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vocab-detail-table .vocab-detail-reading {
    flex: 1;
    min-width: 0;
    text-align: right;
    overflow-wrap: normal;
    line-height: 1.6;
  }
  .vocab-detail-reading [data-vocab-student-words] {
    width: auto;
    white-space: nowrap;
  }
}

/* ==== mobile-minimal.css ==== */
/* mobile-minimal.css (5.10.3-calm-ui-v1)
 * 手机端（屏宽 < 768px）的精简规则集中放在这里，排在 aivia-ds.css 之后加载。
 * 回退：删掉 index.html 里引用本文件的那一行 <link>，本文件的效果就全部撤回
 *（app.js 里按手机宽度渲染的改动要另外回退）。
 * 约定：
 * - 只写 @media (max-width: 767px) 里的规则。
 * - 选择器以 html[data-ds][data-visual-world] 开头并带 !important，且特异性要高于被覆盖的那条
 *  （例如顶栏网格 (2,5,2)、毛玻璃 (2,6,1)、极简皮肤的 Dot 胶囊 (2,4,1)）。
 * - 管理端没有 data-ds，不受本文件影响；老师端页面在 #view-teacher / .t-ws 里。
 */

/* ===== A. 外框：顶栏、Dot 入口、毛玻璃、页头插画、触控区、抽屉 ===== */
/* A-START */
@media (max-width: 767px) {
  /* A1. 只留一个 Dot 入口：顶栏的 Dot 头像在手机上不显示，标题行右侧的「Dot 带我学」保留。
     头像仍挂在 DOM 里（hidden 属性不变），「请 Dot 讲这个词」等找不到陪学页时仍能弹出同一个对话框。
     顶栏网格按头像的 hidden 属性切到 5 列（dot-companion.css:136-143，特异性 (2,5,2)/(2,6,2)），
     这里按同一条件改回 4 列，搜索收起和展开两种状态都不留空列。 */
  html[data-ds][data-visual-world] #appShell .topbar #avdot-launcher { display: none !important; }
  html[data-ds][data-visual-world] body[data-view] #appShell .main #dot-original-topbar.topbar:has(#avdot-launcher:not([hidden])) {
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px !important;
    grid-template-areas: "menu brand find theme" "title title title title" "masthead masthead masthead masthead" !important;
  }
  html[data-ds][data-visual-world] body[data-view] #appShell .main #dot-original-topbar.topbar.academy-search-open:has(#avdot-launcher:not([hidden])) {
    grid-template-areas: "menu brand find theme" "search search search close" "title title title title" "masthead masthead masthead masthead" !important;
  }
  /* 「Dot 带我学」的外观由全站按钮规则决定；手机上只保证 44px 高的点击区。 */
  html[data-ds][data-visual-world] body[data-view] #appShell #dot-original-topbar.topbar #dot-shell-return-entry:not([hidden]) {
    height: 44px !important; min-height: 44px !important;
  }
  /* 它和「学习级别 · 班级」那一行同在标题格里、靠右；级别行给它让出宽度，班级名长或屏幕窄（320–360px）时换到第二行，不再被它压住。 */
  html[data-ds][data-visual-world] body[data-view] #appShell #dot-original-topbar:has(#dot-shell-return-entry:not([hidden])) #workspaceLevel {
    max-width: calc(100% - 132px) !important;
  }
  /* 换行后行首不留竖线（手机上本来就不画这条分隔线，academy-panorama.css 的手机规则被 aivia-ds.css 盖掉了）。 */
  html[data-ds][data-visual-world] body #appShell #workspaceLevel .workspace-class-context::before { display: none !important; }

  /* A2. 手机不用毛玻璃：卡片回到实色。改的是 aivia-ds.css 第 21、23 节用到的变量；
     深色单独再写一份（深色变量块 aivia-ds.css:1613-1619 的特异性更高）。老师端手机页共用这些变量，同样变成实色。 */
  html[data-ds][data-visual-world],
  html[data-ds][data-visual-world].cv-dark {
    --ds-glass: var(--ds-card) !important;
    --ds-glass-lead: var(--ds-card) !important;
    --ds-glass-card: var(--ds-card) !important;
    --ds-glass-panel: var(--surface-2) !important;
    --ds-glass-tint: color-mix(in srgb, var(--surface-2) 70%, var(--ds-card)) !important;
    --ds-glass-sheen: none !important;
    --ds-glass-blur: none !important;
    --ds-glass-blur-lead: none !important;
  }
  /* 底栏、抽屉和顶栏小按钮也不做背景模糊（DESIGN.md「侧栏、标题及底栏去除背景模糊」）。 */
  html[data-ds][data-visual-world] body .mobile-tabbar {
    background: var(--surface) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-ds][data-visual-world] body #appShell .sidebar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html[data-ds][data-visual-world] body #appShell .topbar :is(#menuToggle, #themeToggle, .academy-search-toggle, .academy-search-close, .search-box) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-ds][data-visual-world] body #appShell #dot-original-topbar .search-box { background: var(--surface) !important; }

  /* A3. 页头插画只留在学习中心；其他学生页面标题区干净（插画本是 fixed、z-index:-1 的装饰层，不占布局）。
     老师端的首页（我的班级，data-view="teacher"）照旧保留，手机精简只针对学生页面。 */
  html[data-ds][data-visual-world] body:not([data-view="today"]):not([data-view="teacher"]) #appShell #dot-original-topbar .academy-header-scene { display: none !important; }

  /* A4. 触控区不小于 44px（PRODUCT.md:99）。只放大可点区域，图标和文字大小不变。 */
  /* 学习级别 ⓘ：外圈 44px，负外边距抵消，行高不变；展开时的浅底仍是原来 28px 的圆。 */
  html[data-ds][data-visual-world] body #appShell #workspaceLevel .learning-level-help > summary {
    box-sizing: border-box !important;
    width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important;
    margin: -8px !important; padding: 8px !important; background-clip: content-box !important;
  }
  html[data-ds][data-visual-world] body #view-today .home-completion .home-refresh-icon-action,
  html[data-ds][data-visual-world] body #view-today .home-workspace-notice .secondary-action {
    height: 44px !important; min-height: 44px !important;
  }
  html[data-ds][data-visual-world] body #view-reading .reading-mini-btn { min-height: 44px !important; }
  html[data-ds][data-visual-world] body #view-growth .growth-filter-chip { min-height: 44px !important; }
  html[data-ds][data-visual-world] body #appShell .main > #accountMembershipStatus:not(.is-pending) [data-refresh-membership] {
    min-width: 44px !important; min-height: 44px !important;
  }

  /* A5. 抽屉只放底栏没有的入口：学习中心、单词、听力、朗读、写作已在底栏，这里不重复。
     只用 CSS 隐藏，不加 .hidden 类（底栏按 .hidden 挑选标签，enhance.js:141-145）；
     抽屉的焦点循环只走看得见的按钮（enhance.js:502-504、536-538）。 */
  html[data-ds][data-visual-world] body #appShell #mainNav .nav-item:is([data-view="today"], [data-view="study"], [data-view="listen"], [data-view="reading"], [data-view="writing"]) {
    display: none !important;
  }
  /* 「学习记录」：index.html 里默认 hidden（电脑、平板、管理端都不显示），只在学生手机抽屉里出现；
     点了和首页「学习记录」卡片一样打开 assignments 页面（data-jump，app.js 启动时统一绑定）。
     老师端 #mainNav 本身是 hidden，所以只有学生看得到。 */
  html[data-ds][data-visual-world] body #appShell #mainNav:not([hidden]) > .drawer-records-link[hidden] {
    display: flex !important; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
    min-height: var(--ds-target, 44px); margin: 0; padding: 0 12px;
    border: 0; border-radius: var(--ds-r-control, 10px); background: transparent;
    color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer;
    transition: background-color var(--ds-fast, .15s) var(--ds-ease, ease), color var(--ds-fast, .15s) var(--ds-ease, ease);
  }
  html[data-ds][data-visual-world] body #appShell #mainNav > .drawer-records-link .nav-ic { width: 22px; height: 22px; display: inline-grid; place-items: center; opacity: .82; }
  html[data-ds][data-visual-world] body #appShell #mainNav > .drawer-records-link .ic { width: 20px; height: 20px; stroke-width: 1.75; }
  html[data-ds][data-visual-world] body[data-view="assignments"] #appShell #mainNav > .drawer-records-link {
    background: var(--ds-nav-active-bg) !important; color: var(--ds-nav-active-ink) !important;
  }
  html[data-ds][data-visual-world] body[data-view="assignments"] #appShell #mainNav > .drawer-records-link .nav-ic { opacity: 1; }
}
@media (max-width: 600px) {
  /* A6. 单词页 5 个模式按钮平分一行、图标在上文字在下（ux-workspace.css:29-41 的原设计）。
     aivia-ds.css:1535 给所有宽度加了 16px 左右内边距，320–390px 时「难词本」三个字放不下，这里改回 4px。 */
  html[data-ds][data-visual-world] .words-mode-toggle.vocab-mode-toolbar .wm-btn {
    padding-inline: 4px !important; min-width: 0 !important;
  }
}
/* A-END */




/* ===== B. 各页：学习中心、列表、会员、打卡、成长档案、朗读筛选 ===== */
/* B-START */
@media (max-width: 767px) {
  /* B0. Folds (<details>) drawn by app.js only on phones: quiet text rows with a small chevron. */
  html[data-ds][data-visual-world] :is(#view-today, #view-wrong, #view-reading, #view-growth) details:is(.more-actions, .reading-tips-fold, .dc-subtasks-fold, .reading-filter-more, .growth-history-fold, .growth-more) > summary {
    list-style: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html[data-ds][data-visual-world] :is(#view-today, #view-wrong, #view-reading, #view-growth) details:is(.more-actions, .reading-tips-fold, .dc-subtasks-fold, .reading-filter-more, .growth-history-fold, .growth-more) > summary::-webkit-details-marker { display: none; }
  html[data-ds][data-visual-world] :is(#view-today, #view-wrong, #view-reading, #view-growth) :is(.more-actions, .reading-tips-fold, .dc-subtasks-fold, .growth-more) > summary,
  html[data-ds][data-visual-world] #view-reading .reading-filter-toggle {
    display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
    color: var(--ink-2) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3;
  }
  html[data-ds][data-visual-world] :is(#view-today, #view-wrong, #view-reading, #view-growth) :is(.more-actions, .reading-tips-fold, .dc-subtasks-fold, .growth-more, .growth-history-fold) > summary::after,
  html[data-ds][data-visual-world] #view-reading .reading-filter-toggle::after {
    content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px 3px 2px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7;
  }
  html[data-ds][data-visual-world] :is(#view-today, #view-wrong, #view-reading, #view-growth) details[open]:is(.more-actions, .reading-tips-fold, .dc-subtasks-fold, .growth-more, .growth-history-fold) > summary::after,
  html[data-ds][data-visual-world] #view-reading .reading-filter-more[open] .reading-filter-toggle::after { margin-bottom: -3px; transform: rotate(225deg); }
  html[data-ds][data-visual-world] :is(#view-today, #view-wrong, #view-reading, #view-growth) details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

  /* B1. 学习中心: only what is due today. Modules without a task, 快速过一词 and the record numbers step back. */
  html[data-ds][data-visual-world] #view-today .home-workspace-grid {
    display: flex !important; flex-direction: column !important; gap: 12px !important; grid-template-areas: none !important;
  }
  html[data-ds][data-visual-world] #view-today .home-workspace-grid > .home-workspace-review,
  html[data-ds][data-visual-world] #view-today .home-workspace-grid > .home-workspace.is-empty:not(.is-syncing),
  html[data-ds][data-visual-world] #view-today .home-workspace-grid > .home-workspace.is-syncing ~ .home-workspace.is-syncing,
  html[data-ds][data-visual-world] #view-today .home-workspace.is-syncing .home-workspace-empty > button,
  html[data-ds][data-visual-world] #view-today .cv-home-rail,
  html[data-ds][data-visual-world] #view-today .student-home.self-mode > .home-today-ring:not(.home-today-ring-loading) { display: none !important; }
  html[data-ds][data-visual-world] #view-today .home-workspace.is-syncing .home-workspace-empty { min-height: 0 !important; padding: 10px 0 0 !important; }
  /* Self-study: with the ring gone, "学习清单 x/y" is the one completion count (refine.css hides it below 760px). */
  html[data-ds][data-visual-world] #view-today .student-home.self-mode .daily-section-count { display: inline !important; }

  /* 学习记录: one quiet row instead of a card of numbers. */
  html[data-ds][data-visual-world] #view-today :is(.home-workspace-records.is-line, .home-self-records.is-line) {
    display: block !important; padding: 0 !important; min-height: 0 !important; height: auto !important; overflow: hidden;
  }
  html[data-ds][data-visual-world] #view-today .home-self-records.is-line {
    border: 1px solid var(--ds-card-edge, var(--hairline)); border-radius: var(--ds-r-card, 12px); background: var(--ds-card, var(--surface));
  }
  html[data-ds][data-visual-world] #view-today .home-workspace-records.is-line .checkin-read-notice.is-quiet { display: none !important; }
  html[data-ds][data-visual-world] #view-today .home-workspace-records.is-line .checkin-read-notice { margin: 12px 16px 0 !important; }
  html[data-ds][data-visual-world] #view-today .home-records-line {
    display: flex !important; align-items: center; gap: 10px; width: 100% !important; min-height: 52px !important; margin: 0 !important;
    padding: 0 16px 0 18px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
    color: var(--ink) !important; font-size: 15px !important; font-weight: 650 !important; text-align: left;
  }
  html[data-ds][data-visual-world] #view-today .home-records-line > span { flex: 1; }
  html[data-ds][data-visual-world] #view-today .home-records-line > .ic { color: var(--muted); }

  /* Main card: the next step leads; today's progress is one small line with a quiet refresh icon. */
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 14px !important;
    padding: 6px 8px 6px 20px !important; min-height: 0 !important;
  }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion > span:first-child { font-size: 13px !important; font-weight: 600 !important; color: var(--muted) !important; }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion > strong {
    display: inline-flex !important; flex-direction: row !important; align-items: baseline; gap: 4px !important;
    font-size: 13px !important; font-weight: 600 !important; color: var(--muted) !important;
  }
  html[data-ds][data-visual-world] #view-today .home-overview-bar > .home-completion > strong b {
    font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.4 !important; color: var(--ink-2) !important;
  }
  html[data-ds][data-visual-world] #view-today .home-overview-bar .home-completion .home-refresh-icon-action:not([hidden]) {
    margin-left: auto !important; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important;
    padding: 0 !important; justify-content: center; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--muted) !important;
  }
  html[data-ds][data-visual-world] #view-today .home-overview-bar .home-completion .home-refresh-icon-action:not(.pending-sync) .home-refresh-label { display: none !important; }
  /* 待同步 N stays readable while work is waiting to sync. */
  html[data-ds][data-visual-world] #view-today .home-overview-bar .home-completion .home-refresh-icon-action.pending-sync:not([hidden]) {
    width: auto !important; padding: 0 12px !important; gap: 6px; border-radius: 999px !important;
    background: var(--amber-soft) !important; color: var(--amber-ink) !important;
  }
  /* The quota strip only speaks up when something is low, used up or unconfirmed. */
  html[data-ds][data-visual-world] #view-today .home-member-quota-fold:is(.is-ok, .is-syncing) { display: none !important; }
  /* The sync line under the next step repeats the recovery banner; the banner wins. */
  html[data-ds][data-visual-world] #appShell .main:has(> .learning-recovery:not([hidden])) #view-today .learning-journey-copy > small[role="status"] { display: none !important; }

  /* One "继续" per assignment: the row the main button already continues shows only its progress. */
  html[data-ds][data-visual-world] #view-today .home-workspace-tasks .home-check-row.is-home-lead > .task-entry-action { display: none !important; }

  /* Check-in card: title, state and one button. Level/end date and the 7-day dots live in 打卡记录. */
  html[data-ds][data-visual-world] #view-today .daily-checkin-card .dc-meta-extra,
  html[data-ds][data-visual-world] #view-today .daily-checkin-card .daily-checkin-days,
  html[data-ds][data-visual-world] #view-today .daily-checkin-card:not(.daily-checkin-multi):not(.pending) .dc-explain { display: none !important; }
  html[data-ds][data-visual-world] #view-today .daily-checkin-card:is(.daily-checkin-multi, .pending) .dc-explain { display: block !important; }
  html[data-ds][data-visual-world] #view-today .home-workspace .daily-checkin-card.daily-checkin-multi { grid-template-columns: minmax(0, 1fr) auto !important; }
  html[data-ds][data-visual-world] #view-today .dc-subtasks-fold { width: 100%; margin-top: -4px; }
  html[data-ds][data-visual-world] #view-today .dc-subtasks-fold > summary { min-height: 36px !important; color: var(--muted) !important; font-weight: 500 !important; }
  html[data-ds][data-visual-world] #view-today .dc-subtasks-fold .dc-subtasks { margin-top: 0 !important; }
  /* While the per-article list is open its own 开始 buttons lead, so the card-level button steps aside. */
  html[data-ds][data-visual-world] #view-today .daily-checkin-card:has(> .daily-checkin-main > .dc-subtasks-fold[open]) > .task-entry-action { display: none !important; }

  /* B2. 难词本 rows: 播放 + 练习 in the row; Dot, 造句巩固 and 自评已会 drop down under this row's "更多". */
  html[data-ds][data-visual-world] #view-wrong .wrong-word-card .wrong-row-actions { flex-wrap: nowrap !important; align-items: flex-start !important; }
  html[data-ds][data-visual-world] #view-wrong .wrong-row-actions > .wrong-play-icon {
    flex: none; width: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; justify-content: center;
  }
  html[data-ds][data-visual-world] #view-wrong .wrong-row-actions > .secondary-action { min-height: 44px !important; }
  html[data-ds][data-visual-world] #view-wrong .wrong-row-actions > .more-actions { flex: 1 1 auto; min-width: 0; text-align: right; }
  html[data-ds][data-visual-world] #view-wrong .more-actions > summary { justify-content: flex-end; padding: 0 4px 0 12px; }
  html[data-ds][data-visual-world] #view-wrong .more-actions-list { display: grid; gap: 8px; padding: 4px 0 2px; text-align: left; }
  html[data-ds][data-visual-world] #view-wrong .wrong-word-card .more-actions-list > button {
    width: 100% !important; min-height: 44px !important; margin: 0 !important; justify-content: center;
  }

  /* B3. 朗读: 来源 tabs stay; the source note goes; 册别/单元, search and refresh share one "筛选". */
  html[data-ds][data-visual-world] #view-reading .reading-source-note { display: none !important; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-more > summary.reading-catalog-heading { display: flex !important; align-items: center; gap: 8px; min-height: 44px; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-more > summary #readingCatalogCount { margin-left: 0 !important; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-toggle { margin-left: auto; min-height: 44px; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-toggle > .ic { width: 14px; height: 14px; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-body { display: grid; gap: 10px; padding: 2px 0 12px; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-body .starters-catalog-filters { margin: 0 !important; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-body .reading-catalog-search { margin: 0 !important; }
  html[data-ds][data-visual-world] #view-reading .reading-filter-body .reading-sync-button {
    display: inline-flex !important; align-items: center; justify-self: start; gap: 6px; width: auto !important; min-width: 0 !important;
    height: 44px; padding: 0 16px !important; border-radius: 999px !important; white-space: nowrap; color: var(--ink-2) !important; font-size: 13px !important;
  }
  /* Per sentence: 示范 + 读这一段 in the row; 慢速 and the hint tags fold under "提示与慢速". */
  html[data-ds][data-visual-world] #view-reading .reading-tips-fold { margin-top: 2px; }
  html[data-ds][data-visual-world] #view-reading .reading-paragraph-row > .reading-tips-fold { grid-column: 1 / -1; min-width: 0; margin-top: 4px; }
  html[data-ds][data-visual-world] #view-reading .reading-tips-fold > summary { min-height: 36px !important; color: var(--muted) !important; font-weight: 500 !important; }
  html[data-ds][data-visual-world] #view-reading .reading-tips-body { display: grid; justify-items: start; gap: 8px; padding: 2px 0 6px; }
  html[data-ds][data-visual-world] #view-reading .reading-tips-body > .reading-mini-btn { width: auto !important; }
  html[data-ds][data-visual-world] #view-reading .reading-tips-body > :is(.token-list, .reading-ai-guidance) { margin: 0 !important; }
  /* 慢速 alone: the fold ends the action row and opens downward under its own label. */
  html[data-ds][data-visual-world] #view-reading .reading-paragraph-row .reading-actions { align-items: flex-start !important; }
  html[data-ds][data-visual-world] #view-reading .reading-actions > .reading-tips-fold { margin: 0 0 0 auto; }
  html[data-ds][data-visual-world] #view-reading .reading-actions > .reading-tips-fold > summary { min-height: 40px !important; padding: 0 4px 0 8px; }
  html[data-ds][data-visual-world] #view-reading .reading-actions > .reading-tips-fold .reading-tips-body { justify-items: end; padding: 2px 0 0; }

  /* B4. 成长档案: the four histories start folded; 保存报告 (print) sits in "更多" at the end. */
  html[data-ds][data-visual-world] #view-growth .growth-history-fold > summary.section-head { min-height: 44px; margin: 0 !important; }
  html[data-ds][data-visual-world] #view-growth .growth-history-fold > summary.section-head::after { order: 3; margin-left: 4px; }
  html[data-ds][data-visual-world] #view-growth .growth-history-fold > summary.section-head > .muted { margin-left: auto; }
  html[data-ds][data-visual-world] #view-growth .growth-history-fold[open] > summary.section-head { margin-bottom: 12px !important; }
  html[data-ds][data-visual-world] #view-growth .growth-more { margin: 4px 0 0; padding: 0 4px; }
  html[data-ds][data-visual-world] #view-growth .growth-more-body { padding: 4px 0 8px; }
  html[data-ds][data-visual-world] #view-growth .growth-more-body > #growthPrint { width: auto !important; min-height: 44px !important; }
}
/* B-END */

/* ==== reading-library.css ==== */
/* Aivia 英文阅读馆 (5.10.3-reading-library-v1)
   沿用站内语义变量（--surface / --ink / --hairline / --accent / --ds-card / --ds-brass …），深浅主题自动跟随。
   阅读馆特有元素：书封、书架横板、黄铜“在读”书签、衬线正文、点词释义卡。 */

/* 功能开关：未开启时侧栏/手机菜单都不显示阅读馆入口（开启方式见 app.js syncReadingLibraryFeature）。
   选择器要比 aivia-ds.css 的 `html[data-ds][data-visual-world] #appShell #mainNav .nav-item:not(.hidden):not([hidden])`
   （display:flex !important）更具体，否则会被它盖掉。 */
html body:not(.cv-feature-library) #appShell #mainNav .nav-item[data-view="library"][data-roles][type] { display: none !important; }

/* 页头插画：沿用“两人共同阅读”的场景 */
html[data-visual-world="academy"] body[data-view="library"] {
  --academy-scene-day: url("assets/academy/scenes/reading-day-v1.webp");
  --academy-scene-night: url("assets/academy/scenes/reading-night-v1.webp");
  --academy-scene-day-small: url("assets/academy/scenes/reading-day-small-v1.webp");
  --academy-scene-night-small: url("assets/academy/scenes/reading-night-small-v1.webp");
}

#view-library .lib {
  --lib-card: var(--ds-card, var(--surface));
  --lib-edge: var(--ds-card-edge, var(--hairline));
  --lib-r: var(--ds-r-card, 14px);
  --lib-rc: var(--ds-r-control, 10px);
  --lib-brass: var(--ds-brass, #a07a32);
  --lib-brass-ink: var(--ds-brass-ink, #7d5d1f);
  --lib-brass-soft: var(--ds-brass-soft, #f5eedf);
  --lib-serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  --lib-display: var(--font-display, var(--lib-serif));
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-bottom: 24px;
  color: var(--ink);
}
#view-library .lib * { box-sizing: border-box; }
#view-library .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; }
#view-library .ic { width: 18px; height: 18px; flex: none; }
#view-library .lib-muted { color: var(--muted); font-size: 13px; }
#view-library .lib-note { margin: 4px 0 0; }
#view-library .lib-state { margin: 24px 0; color: var(--muted); }

/* ── intro strip ── */
#view-library .lib-intro {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 20px; background: var(--lib-card); border: 1px solid var(--lib-edge); border-radius: var(--lib-r);
}
#view-library .lib-intro-main { display: grid; gap: 4px; min-width: 0; }
#view-library .lib-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--lib-brass-ink); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
#view-library .lib-intro-line { margin: 0; font-size: 16px; color: var(--ink-2); }
#view-library .lib-intro-line b { color: var(--accent-ink); }
#view-library .lib-stats { display: flex; gap: 6px; margin: 0; }
#view-library .lib-stats div { min-width: 72px; padding: 6px 12px; border-radius: var(--lib-rc); background: var(--surface-2); text-align: center; }
#view-library .lib-stats dt { font-size: 12px; color: var(--muted); }
#view-library .lib-stats dd { margin: 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ── four entries (underline tabs, same idea as 朗读/写作模式) ── */
#view-library .lib-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
#view-library .lib-tabs::-webkit-scrollbar { display: none; }
#view-library .lib-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 14px;
  border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted);
  font-size: 15px; font-weight: 600; border-radius: 0;
}
#view-library .lib-tab:hover { color: var(--ink); }
#view-library .lib-tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
#view-library .lib-panel { display: grid; gap: 14px; min-width: 0; }

#view-library .lib-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
#view-library .lib-section-head h2 { margin: 0; font-size: 18px; font-weight: 650; color: var(--ink); }
#view-library .lib-link { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent-ink); font-size: 14px; font-weight: 600; }

/* chips & status */
#view-library .lib-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
#view-library .lib-chip-level { background: var(--lib-brass-soft); color: var(--lib-brass-ink); }
#view-library .lib-chip-soft { background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
#view-library .lib-status { font-size: 12px; font-weight: 650; }
#view-library .lib-status.is-read { color: var(--green-ink); }
#view-library .lib-status.is-reading { color: var(--accent-ink); }

/* progress */
#view-library .lib-progress { height: 6px; border-radius: 999px; background: var(--hairline-soft); overflow: hidden; }
#view-library .lib-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--academy-action, var(--accent)); transition: width .3s ease; }

/* ── book covers (library element) ── */
#view-library .lib-cover {
  --cv-bg: #dfe8f6; --cv-spine: #3d5fb5; --cv-ink: #16233f;
  position: relative; display: grid; align-content: end; gap: 4px; width: 100%; aspect-ratio: 3 / 4;
  padding: 14px 12px 12px 22px; overflow: hidden; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cv-bg) 82%, #fff) 0%, var(--cv-bg) 70%);
  color: var(--cv-ink); text-align: left; box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 6px 14px rgb(22 35 63 / 10%);
}
#view-library .lib-cover[data-tone="rose"] { --cv-bg: #f4e1dc; --cv-spine: #b0544a; --cv-ink: #3d1d19; }
#view-library .lib-cover[data-tone="leaf"] { --cv-bg: #dfeee5; --cv-spine: #2f7259; --cv-ink: #173a2d; }
#view-library .lib-cover[data-tone="brass"] { --cv-bg: #f3ebd9; --cv-spine: #a07a32; --cv-ink: #3d2e10; }
html.cv-dark #view-library .lib-cover { --cv-bg: #24324c; --cv-spine: #8aa3e8; --cv-ink: #ece7dc; box-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 14px rgb(0 0 0 / 30%); background: linear-gradient(160deg, color-mix(in srgb, var(--cv-bg) 85%, #fff) 0%, var(--cv-bg) 70%); }
html.cv-dark #view-library .lib-cover[data-tone="rose"] { --cv-bg: #432c2c; --cv-spine: #e08c80; }
html.cv-dark #view-library .lib-cover[data-tone="leaf"] { --cv-bg: #20392f; --cv-spine: #8fd1b5; }
html.cv-dark #view-library .lib-cover[data-tone="brass"] { --cv-bg: #3b3122; --cv-spine: #d8b46c; }
#view-library .lib-cover-spine { position: absolute; inset: 0 auto 0 0; width: 10px; background: var(--cv-spine); box-shadow: inset -2px 0 0 rgb(255 255 255 / 18%); }
#view-library .lib-cover-ic { position: absolute; top: 14px; left: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--cv-spine) 16%, transparent); color: var(--cv-spine); }
#view-library .lib-cover-title { font-family: var(--lib-display); font-size: 17px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
#view-library .lib-cover-zh { font-size: 13px; font-weight: 600; opacity: .85; }
#view-library .lib-cover-type { margin-top: 4px; font-size: 12px; /* 小修-20261125 原11px */ font-weight: 650; letter-spacing: .04em; color: var(--cv-spine); }
#view-library .lib-cover.is-big { max-width: 200px; padding: 18px 16px 16px 26px; }
#view-library .lib-cover.is-big .lib-cover-title { font-size: 22px; }
#view-library .lib-ribbon {
  position: absolute; top: 0; right: 14px; padding: 6px 6px 10px; background: var(--lib-brass); color: #fff;
  font-size: 12px; /* 小修-20261125 原11px */ font-weight: 700; line-height: 1; writing-mode: vertical-rl; letter-spacing: .1em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
}

/* shelf: each book stands on a plank; adjacent planks meet across the 16px gap */
#view-library .lib-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#view-library .lib-filter { min-height: 36px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
#view-library .lib-filter.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
#view-library .lib-select select { min-height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--hairline); border-radius: 999px; background-color: var(--surface); color: var(--ink-2); font-size: 14px; }
#view-library .lib-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 16px; padding: 4px 8px 8px; }
#view-library .lib-book { position: relative; display: grid; gap: 14px; align-content: start; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
#view-library .lib-book .lib-cover { transition: transform .18s ease; }
#view-library .lib-book::after {
  content: ""; grid-row: 1; grid-column: 1; align-self: end; height: 8px; margin: 0 -8px; border-radius: 2px;
  background: color-mix(in srgb, var(--lib-brass) 34%, var(--surface-2)); box-shadow: 0 2px 0 color-mix(in srgb, var(--lib-brass) 22%, transparent);
}
#view-library .lib-book .lib-cover { grid-row: 1; grid-column: 1; width: calc(100% - 12px); margin: 0 6px 8px; }
#view-library .lib-book-meta { grid-row: 2; grid-column: 1; }
#view-library .lib-book-meta { display: grid; gap: 2px; }
#view-library .lib-book-name { font-size: 15px; font-weight: 650; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  #view-library .lib-book:hover .lib-cover { transform: translateY(-3px); }
}

/* item cards */
#view-library .lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
#view-library .lib-card {
  display: grid; gap: 6px; align-content: start; min-height: 150px; padding: 16px; text-align: left;
  border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card); color: inherit;
}
#view-library .lib-card:hover { border-color: var(--accent-edge); }
#view-library .lib-card-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
#view-library .lib-card-fav { color: var(--lib-brass); }
#view-library .lib-card-title { font-family: var(--lib-serif); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
#view-library .lib-card-zh { font-size: 14px; color: var(--ink-2); }
#view-library .lib-card-intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--muted); line-height: 1.55; }
#view-library .lib-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); }

/* continue reading */
#view-library .lib-continue {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--accent-edge); border-radius: var(--lib-r); background: var(--accent-soft-2);
}
#view-library .lib-continue .lib-cover { padding: 8px 6px 8px 14px; border-radius: 4px 8px 8px 4px; }
#view-library .lib-continue .lib-cover-title, #view-library .lib-continue .lib-cover-zh, #view-library .lib-continue .lib-cover-type, #view-library .lib-continue .lib-ribbon { display: none; }
#view-library .lib-continue .lib-cover-ic { top: 50%; left: 50%; transform: translate(-40%, -50%); }
#view-library .lib-continue-main { display: grid; gap: 6px; min-width: 0; }
#view-library .lib-continue-title { margin: 0; font-family: var(--lib-serif); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
#view-library .lib-eyebrow { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }

/* teacher lists */
#view-library .lib-lists { display: grid; gap: 8px; }
#view-library .lib-list-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card); color: inherit; text-align: left;
}
#view-library .lib-list-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lib-brass-soft); color: var(--lib-brass-ink); }
#view-library .lib-list-ic.is-big { width: 64px; height: 64px; border-radius: 16px; }
#view-library .lib-list-main { display: grid; gap: 2px; min-width: 0; }
#view-library .lib-list-title { font-size: 16px; font-weight: 650; }

/* topics */
#view-library .lib-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#view-library .lib-topic {
  display: grid; justify-items: start; gap: 6px; min-height: 112px; padding: 14px; text-align: left;
  border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card); color: inherit;
}
#view-library .lib-topic:not(:disabled):hover { border-color: var(--accent-edge); }
#view-library .lib-topic.is-empty { opacity: .6; cursor: default; }
#view-library .lib-topic-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
#view-library .lib-topic-ic.is-big { width: 64px; height: 64px; }
#view-library .lib-topic-ic.is-big .ic, #view-library .lib-list-ic.is-big .ic { width: 28px; height: 28px; }
#view-library .lib-topic-name { font-size: 15px; font-weight: 650; }

/* rows */
#view-library .lib-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#view-library .lib-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  border: 1px solid var(--hairline-soft); border-radius: var(--lib-rc); background: var(--surface); color: inherit; text-align: left;
}
#view-library .lib-row:hover { border-color: var(--accent-edge); }
#view-library .lib-row-no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
#view-library .lib-row-no .ic { width: 16px; height: 16px; color: var(--green-ink); }
#view-library .lib-row-main { display: grid; gap: 2px; min-width: 0; }
#view-library .lib-row-title { font-family: var(--lib-serif); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
#view-library .lib-row-zh { font-size: 13px; color: var(--muted); }
#view-library .lib-row-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
#view-library .lib-row-go { color: var(--muted); }
#view-library .lib-steps .lib-row-no { background: var(--lib-brass-soft); color: var(--lib-brass-ink); }

#view-library .lib-empty { display: grid; justify-items: center; gap: 10px; padding: 24px 16px; border: 1px dashed var(--hairline); border-radius: var(--lib-r); color: var(--muted); text-align: center; }
#view-library .lib-empty .ic { width: 28px; height: 28px; }
#view-library .lib-empty p { margin: 0; }

#view-library .lib-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
#view-library .lib-words li { display: grid; grid-template-columns: auto minmax(0, 1fr) 36px; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px 4px 14px; border: 1px solid var(--hairline-soft); border-radius: var(--lib-rc); background: var(--surface); }
#view-library .lib-word-en { font-family: var(--lib-serif); font-size: 16px; font-weight: 700; }
#view-library .lib-word-zh { overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-icon-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--lib-rc); background: none; color: var(--muted); font-size: 14px; font-weight: 700; }
#view-library .lib-icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
#view-library .lib-icon-btn:disabled { opacity: .4; }

#view-library .lib-foot-note { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
#view-library .lib-foot-note .ic { width: 16px; height: 16px; }

/* ── set / list / topic headers ── */
#view-library .lib-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
#view-library .lib-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--hairline); border-radius: var(--lib-rc); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
#view-library .lib-trail { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#view-library :is(.lib-set-head, .lib-list-head, .lib-topic-head) {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px;
  padding: 20px; border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card);
}
#view-library .lib-set-head .lib-cover { width: 168px; }
#view-library .lib-set-info { display: grid; justify-items: start; gap: 8px; min-width: 0; }
#view-library .lib-set-title { margin: 0; font-family: var(--lib-display); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
#view-library .lib-set-zh { margin: -4px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
#view-library .lib-set-summary { margin: 0; max-width: 60ch; color: var(--ink-2); line-height: 1.6; }
#view-library .lib-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 4px 0; }
#view-library .lib-facts dt { font-size: 12px; color: var(--muted); }
#view-library .lib-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
#view-library .lib-unit { display: grid; gap: 8px; }
#view-library .lib-unit h3 { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 0; font-size: 16px; font-weight: 650; }
#view-library .lib-source { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
#view-library .lib-source .ic { width: 14px; height: 14px; margin-top: 2px; }
#view-library .lib-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#view-library .lib-actions > :is(.primary-action, .secondary-action) { width: auto !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ── reader ── */
#view-library .lib-reader { --lib-font: 18px; position: relative; display: grid; gap: 16px; width: 100%; max-width: 760px; margin: 0 auto; }
#view-library .lib-reader-head { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
#view-library .lib-reader-title { margin: 0; font-family: var(--lib-display); font-size: 30px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
#view-library .lib-reader-zh { margin: -2px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
#view-library .lib-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
#view-library .lib-font { display: inline-flex; gap: 4px; padding: 2px; border: 1px solid var(--hairline); border-radius: var(--lib-rc); }
#view-library .lib-font .lib-icon-btn { min-width: 44px; height: 40px; font-family: var(--lib-serif); }
#view-library .lib-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: var(--lib-rc); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
#view-library .lib-tool.is-on { border-color: color-mix(in srgb, var(--lib-brass) 60%, transparent); background: var(--lib-brass-soft); color: var(--lib-brass-ink); }
#view-library .lib-notice { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--lib-rc); background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
#view-library .lib-prompt { padding: 12px 16px; border-left: 3px solid var(--lib-brass); border-radius: 0 var(--lib-rc) var(--lib-rc) 0; background: var(--lib-brass-soft); }
#view-library .lib-prompt h3 { margin: 0 0 4px; color: var(--lib-brass-ink); font-size: 13px; font-weight: 700; }
#view-library .lib-prompt p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }
#view-library .lib-audio { display: grid; gap: 6px; padding: 10px 14px; border: 1px solid var(--hairline-soft); border-radius: var(--lib-rc); background: var(--surface); }
#view-library .lib-audio-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
#view-library .lib-audio audio { width: 100%; height: 40px; }
#view-library .lib-tip { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
#view-library .lib-tip .ic { width: 15px; height: 15px; color: var(--lib-brass); }

#view-library .lib-text { font-family: var(--lib-serif); font-size: var(--lib-font); line-height: 1.75; color: var(--ink); }
#view-library .lib-text p { margin: 0 0 .9em; }
#view-library .lib-line { display: grid; grid-template-columns: minmax(64px, 9ch) minmax(0, 1fr); gap: 12px; }
#view-library .lib-speaker { padding-top: .2em; color: var(--accent-ink); font-family: var(--ds-sans, inherit); font-size: max(13px, calc(var(--lib-font) - 4px)); font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
#view-library .lib-w { border-radius: 3px; cursor: pointer; }
#view-library .lib-w:hover { background: var(--accent-soft-2); }
#view-library .lib-w.is-saved { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lib-brass) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
#view-library .lib-w.is-active { background: var(--accent-soft); color: var(--accent-ink); }

#view-library :is(.lib-gloss, .lib-quiz) { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card); }
#view-library :is(.lib-gloss, .lib-quiz) h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 650; }
#view-library .lib-gloss dl { display: grid; gap: 10px; margin: 0; }
#view-library .lib-gloss dt { font-family: var(--lib-serif); font-size: 16px; font-weight: 700; }
#view-library .lib-gloss dd { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
#view-library .lib-q { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
#view-library .lib-q legend { display: flex; gap: 10px; margin-bottom: 8px; font-size: 16px; font-weight: 600; line-height: 1.5; }
#view-library .lib-q-no { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: 13px; }
#view-library .lib-q-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
#view-library .lib-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--lib-rc); background: var(--surface); color: var(--ink); text-align: left; font-size: 15px; }
#view-library .lib-opt:hover:not(:disabled) { border-color: var(--accent-edge); background: var(--accent-soft-2); }
#view-library .lib-opt:disabled { cursor: default; }
#view-library .lib-opt-key { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
#view-library .lib-opt.is-right { border-color: var(--green-ink); background: var(--green-soft); }
#view-library .lib-opt.is-wrong { border-color: var(--red-ink); background: var(--red-soft); }
#view-library .lib-q-why { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--lib-rc); font-size: 14px; line-height: 1.55; }
#view-library .lib-q-why.is-right { background: var(--green-soft); color: var(--green-ink); }
#view-library .lib-q-why.is-wrong { background: var(--red-soft); color: var(--red-ink); }
#view-library .lib-reader-foot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hairline); }
#view-library .lib-reader-foot a { color: var(--accent-ink); }

/* word card */
.lib-pop {
  position: absolute; z-index: 30; display: grid; gap: 8px; padding: 12px 14px 14px; border: 1px solid var(--hairline);
  border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg, 0 18px 48px rgb(0 0 0 / 18%));
}
.lib-pop-head { display: flex; align-items: center; gap: 8px; }
.lib-pop-word { font-family: "Iowan Old Style", "Charter", "Georgia", serif; font-size: 20px; font-weight: 700; }
.lib-pop .lib-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ds-brass-soft, #f5eedf); color: var(--ds-brass-ink, #7d5d1f); font-size: 12px; font-weight: 650; }
.lib-pop .lib-muted { color: var(--muted); font-size: 13px; }
.lib-pop .lib-icon-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 10px; background: none; color: var(--muted); }
.lib-pop .lib-icon-btn .ic { width: 18px; height: 18px; }
.lib-pop-zh { margin: 0; font-size: 16px; line-height: 1.5; }
.lib-pop-def { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.lib-pop p { margin: 0; }
.lib-pop .lib-pop-save { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto !important; min-height: 44px; }
.lib-pop .lib-pop-save .ic { width: 16px; height: 16px; }
.lib-pop.is-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; width: auto; border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ── tablet & phone ── */
@media (max-width: 760px) {
  #view-library .lib { gap: 14px; }
  #view-library .lib-intro { padding: 14px; }
  #view-library .lib-stats { width: 100%; }
  #view-library .lib-stats div { flex: 1; min-width: 0; }
  #view-library :is(.lib-set-head, .lib-list-head, .lib-topic-head) { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  #view-library .lib-set-head .lib-cover { width: 132px; }
  #view-library .lib-set-title { font-size: 24px; }
  #view-library .lib-reader-title { font-size: 25px; }
  #view-library .lib-row { grid-template-columns: 32px minmax(0, 1fr) 16px; }
  #view-library .lib-row-meta { grid-column: 2; grid-row: 2; flex-wrap: wrap; white-space: normal; }
  #view-library .lib-row-go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  #view-library .lib-tab { padding: 0 10px; font-size: 14px; }
  #view-library .lib-tab .ic { display: none; }
  #view-library .lib-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; padding-inline: 8px; }
  #view-library .lib-cards { grid-template-columns: 1fr; }
  #view-library .lib-continue { grid-template-columns: 56px minmax(0, 1fr); }
  #view-library .lib-continue-go { grid-column: 1 / -1; width: 100% !important; }
  #view-library .lib-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-library .lib-line { grid-template-columns: 1fr; gap: 0; }
  #view-library .lib-speaker { padding-top: 0; }
  #view-library .lib-q-opts { grid-template-columns: 1fr; }
  #view-library .lib-actions > :is(.primary-action, .secondary-action) { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  #view-library .lib-book .lib-cover, #view-library .lib-progress > span { transition: none; }
}


/* 5.10.3-bbc-library-v1 · 已确认阅读页 */
/* 阅读馆阅读页 · 已确认设计 v3。颜色全部用站内语义变量，7 套皮肤和深色模式自动跟随。
   布局：阅读页宽度够（≥ 900px）且是「辅助阅读」时，左文右栏（词卡 + 本文词汇 + 练习）；
   否则单栏，词汇和练习排在正文后面。手机上正文贴边、顶部细进度条、点词先出小气泡、详情从底部弹出。 */

/* ── 0. 变量 ─────────────────────────────────────────────────────── */
#view-library .lib {
  --lib-serif: var(--ds-reading-face, "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif);
  --lib-sticky-top: inherit;  /* render 按宿主顶栏实测设置 */
  --lib-mini-h: 52px;
  --lib-flash: color-mix(in srgb, var(--lib-brass) 22%, transparent);
}

/* ── 1. 纸页与左右分栏 ───────────────────────────────────────────── */
#view-library .lib-reader { container: reader / inline-size; max-width: 1180px; gap: 0; grid-template-columns: minmax(0, 1fr); }
#view-library :is(.lib-reader, .lib-page, .lib-reader-head, .lib-meta) > * { min-width: 0; }
#view-library .lib-page {
  position: relative; display: grid; gap: 18px; padding: 24px 36px 32px;
  border: 1px solid var(--lib-edge); border-radius: var(--ds-r-hero, 20px);
  background: var(--lib-card); box-shadow: var(--shadow-sm);
}
#view-library .lib-layout { display: grid; gap: 28px; align-items: start; }
#view-library .lib-main { position: relative; display: grid; gap: 16px; min-width: 0; }
#view-library .lib-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#view-library .lib-side-tabs { display: none; }
#view-library .lib-side .lib-panel-ex { order: 1; }
#view-library .lib-side .lib-panel-words { order: 2; }
#view-library .lib-panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; font-weight: 650; color: var(--ink); }
#view-library .lib-wordcard { display: none; }

@container reader (min-width: 900px) {
  #view-library .lib-reader.mode-assist .lib-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  #view-library .lib-reader.mode-assist .lib-side {
    position: sticky; top: calc(var(--lib-sticky-top) + var(--lib-mini-h) + 12px);
    max-height: calc(100vh - var(--lib-sticky-top) - var(--lib-mini-h) - 28px); overflow: auto;
    padding-left: 24px; border-left: 1px solid var(--hairline-soft); overscroll-behavior: contain;
  }
  #view-library .lib-reader.mode-assist .lib-side-tabs { display: flex; position: sticky; top: 0; z-index: 2; padding-bottom: 8px; background: var(--lib-card); }
  #view-library .lib-reader.mode-assist .lib-side .lib-panel { display: none; }
  #view-library .lib-reader.mode-assist .lib-side[data-tab="words"] .lib-panel-words,
  #view-library .lib-reader.mode-assist .lib-side[data-tab="ex"] .lib-panel-ex { display: block; }
  #view-library .lib-reader.mode-assist .lib-side .lib-panel-title { display: none; }
  #view-library .lib-reader.mode-assist .lib-wordcard.is-on { display: grid; }
  #view-library .lib-reader.mode-assist .lib-gloss-list { grid-template-columns: 1fr; }
}
@container reader (min-width: 1100px) {
  #view-library .lib-reader.mode-assist .lib-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
/* 纯净阅读：正文居中一栏 */
#view-library .lib-reader.mode-clean .lib-main { max-width: calc(var(--lib-font) * 36); margin-inline: auto; width: 100%; }
#view-library .lib-reader.mode-clean .lib-text { margin-inline: auto; }
#view-library .lib-reader.mode-clean :is(.lib-reader-head, .lib-side, .lib-reader-foot) { width: 100%; max-width: calc(var(--lib-font) * 36); margin-inline: auto; }

/* ── 2. 顶部读物条：常驻，一条里放「选读物」、阅读方式（宽屏）、Aa、收藏和进度 ── */
#view-library .lib-rbar { position: sticky; top: var(--lib-sticky-top); z-index: 30; margin-bottom: 10px; }
#view-library .lib-rbar-in {
  position: relative; display: flex; align-items: center; gap: 8px; height: var(--lib-mini-h); padding: 0 8px 0 6px;
  border: 1px solid var(--hairline-soft); border-radius: 14px; background: color-mix(in srgb, var(--lib-card) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-xs);
}
#view-library .lib-pick-btn {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 42px; padding: 0 10px 0 6px;
  border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left;
}
#view-library .lib-pick-btn:hover { background: var(--surface-2); }
/* 读物条左端的返回键（5.10.3-sticky-back-v1）：只在手机上出现。手机上网站顶栏的「‹ 阅读馆」读文章时收起，原来只能左滑返回；电脑、平板有侧栏和顶栏标题 */
#view-library .lib-rbar-back { display: none; flex: none; width: 40px; min-width: 40px; height: 42px; padding: 0; color: var(--accent, #203d86); }
#view-library .lib-rbar-back .ic { width: 22px; height: 22px; }
@media (max-width: 767px) { #view-library .lib-rbar-back { display: inline-grid; } }
body.cv-mshell #view-library .lib-rbar-back { display: inline-grid; }
#view-library .lib-pick-btn > .ic { flex: none; width: 16px; height: 16px; color: var(--muted); }
#view-library .lib-pick-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--lib-brass-soft); color: var(--lib-brass-ink); }
#view-library .lib-pick-ic .ic { width: 17px; height: 17px; }
#view-library .lib-pick-txt { display: grid; min-width: 0; line-height: 1.25; }
#view-library .lib-pick-a { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
#view-library .lib-pick-a b { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-pick-a span { flex: none; color: var(--muted); font-size: 12px; }
#view-library .lib-pick-a .lib-pos-s { display: none; }
#view-library .lib-pick-b { display: none; overflow: hidden; font-family: var(--lib-display); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-rbar.is-scrolled .lib-pick-a { display: none; }
#view-library .lib-rbar.is-scrolled .lib-pick-b { display: block; }
#view-library .lib-rbar-tools { display: flex; align-items: center; gap: 4px; flex: none; }
#view-library .lib-rbar .lib-icon-btn { min-width: 42px; height: 42px; }
#view-library .lib-rbar .lib-aa-btn { font-family: var(--lib-display); font-size: 17px; font-weight: 700; color: var(--ink-2); }
#view-library .lib-rbar .lib-aa-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-ink); }
#view-library .lib-rbar .lib-fav.is-on { color: var(--lib-brass); }
#view-library .lib-rbar .lib-mode { display: none; margin-right: 4px; }
#view-library .lib-rbar-prog { position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--hairline-soft); overflow: hidden; }
#view-library .lib-rbar-prog span { display: block; height: 100%; width: 0; background: var(--academy-action, var(--accent)); transition: width .12s linear; }
#view-library .lib-seg { display: inline-flex; padding: 3px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface-2); }
#view-library .lib-seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
#view-library .lib-seg button[aria-pressed="true"] { background: var(--academy-action, var(--accent)); color: var(--on-action, #fff); box-shadow: var(--shadow-xs); }
#view-library .lib-aa {
  position: absolute; z-index: 25; top: calc(100% + 8px); right: 0; display: grid; gap: 14px; width: min(320px, calc(100vw - 32px));
  padding: 14px 16px 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg);
}
#view-library .lib-aa-row { display: grid; gap: 8px; }
#view-library .lib-aa-label { color: var(--muted); font-size: 12px; font-weight: 650; }
#view-library .lib-aa .lib-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
#view-library .lib-aa .lib-seg button { min-height: 38px; padding: 0 6px; font-size: 14px; }
#view-library .lib-aa-tip { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
#view-library .lib-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 600; }
#view-library .lib-switch i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--hairline); transition: background .15s; }
#view-library .lib-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: transform .15s; }
#view-library .lib-switch[aria-checked="true"] i { background: var(--academy-action, var(--accent)); }
#view-library .lib-switch[aria-checked="true"] i::after { transform: translateX(18px); }
@container reader (min-width: 900px) {
  #view-library .lib-rbar .lib-mode { display: inline-flex; }
  #view-library .lib-aa-mode, #view-library .lib-aa-tip { display: none; }
}

/* ── 3. 页头：标题 + 一行信息 + 一行读前提示，尽快进正文 ───────── */
#view-library .lib-reader-head { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline-soft); }
#view-library .lib-reader-title { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.18; text-wrap: balance; }
#view-library .lib-meta { display: grid; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
#view-library .lib-meta-zh { color: var(--ink-2); font-size: 16px; font-weight: 500; }
#view-library .lib-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
#view-library .lib-meta-topic::before { content: "·"; margin-right: 10px; color: var(--hairline); }
#view-library .lib-status-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 650; }
#view-library .lib-prompt-mini { border-radius: var(--lib-rc); background: var(--lib-brass-soft); color: var(--ink); font-size: 14px; }
#view-library .lib-prompt-mini summary { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; list-style: none; cursor: pointer; }
#view-library .lib-prompt-mini summary::-webkit-details-marker { display: none; }
#view-library .lib-prompt-mini summary b { flex: none; color: var(--lib-brass-ink); font-size: 13px; }
#view-library .lib-prompt-mini summary span { min-width: 0; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-prompt-mini summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 3px auto; border-right: 2px solid var(--lib-brass-ink); border-bottom: 2px solid var(--lib-brass-ink); transform: rotate(45deg); transition: transform .15s; }
#view-library .lib-prompt-mini[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
#view-library .lib-prompt-mini[open] summary span { display: none; }
#view-library .lib-prompt-mini p { margin: 0; padding: 0 12px 10px; line-height: 1.6; }
#view-library .lib-reader.mode-clean .lib-prompt-mini { display: none; }
/* 正文末尾的来源（BBC 等每篇都在这里注明） */
#view-library .lib-src { display: flex; align-items: flex-start; gap: 6px; max-width: 34em; margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed var(--hairline); color: var(--muted); font-size: 13px; line-height: 1.55; }
#view-library .lib-src .ic { width: 14px; height: 14px; margin-top: 3px; flex: none; }
#view-library .lib-src a { color: var(--accent-ink); }
/* 读完：下一篇 */
#view-library .lib-reader-foot { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
#view-library .lib-next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: 100%; padding: 14px 16px;
  border: 1px solid var(--accent-edge); border-radius: var(--lib-r); background: var(--accent-soft-2); color: var(--ink); text-align: left;
}
#view-library .lib-next > .ic { grid-column: 2; grid-row: 1 / span 3; width: 20px; height: 20px; color: var(--accent-ink); }
#view-library .lib-next-k { color: var(--accent-ink); font-size: 12px; font-weight: 700; }
#view-library .lib-next-t { font-family: var(--lib-display); font-size: 18px; font-weight: 700; line-height: 1.3; }
#view-library .lib-next-z { color: var(--muted); font-size: 13px; }

/* ── 4. 正文排版 ─────────────────────────────────────────────────── */
#view-library .lib-text { max-width: 34em; font-family: var(--lib-serif); font-size: var(--lib-font); line-height: 1.78; color: var(--ink); text-wrap: pretty; }
#view-library .lib-text > .lib-b { margin: 0 0 .95em; scroll-margin-top: calc(var(--lib-sticky-top) + var(--lib-mini-h) + 24px); border-radius: 8px; transition: background-color .6s; }
#view-library .lib-text > .lib-b > p { margin: 0; }
#view-library .lib-text > .lib-b.is-flash { background: var(--lib-flash); box-shadow: 0 0 0 6px var(--lib-flash); transition: none; }
#view-library .lib-text.is-numbered { padding-left: 2.2em; }
#view-library .lib-b-p { position: relative; }
#view-library .lib-pno { display: none; }
#view-library .lib-text.is-numbered .lib-pno {
  display: block; position: absolute; left: -2.2em; top: .55em; width: 1.6em;
  font-family: var(--ds-sans, sans-serif); font-size: 12px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums;
  text-align: right; color: var(--muted); opacity: .8; user-select: none;
}
#view-library .lib-b-p.is-drop > p:not(.lib-zh)::first-letter { float: left; margin: .08em .1em 0 0; font-family: var(--lib-display); font-size: 3.35em; font-weight: 700; line-height: .8; color: var(--lib-brass-ink); }
#view-library .lib-text > .lib-b-h { margin: 1.7em 0 .7em; }
#view-library .lib-h { display: flex; align-items: baseline; gap: .6em; margin: 0; font-family: var(--lib-display); font-size: 1.1em; font-weight: 700; line-height: 1.35; color: var(--ink); }
#view-library .lib-h::before { content: ""; flex: none; width: 1.1em; height: 2px; border-radius: 2px; background: var(--lib-brass); transform: translateY(-.32em); }
#view-library .lib-b-h .lib-zh { padding-left: 1.7em; border-left: 0; }
#view-library .lib-text > .lib-line { display: grid; grid-template-columns: minmax(64px, 8.5ch) minmax(0, 1fr); gap: 14px; margin-bottom: .6em; }
#view-library .lib-line[data-spk="0"] { --spk: var(--accent-ink); }
#view-library .lib-line[data-spk="1"] { --spk: var(--green-ink); }
#view-library .lib-line[data-spk="2"] { --spk: var(--lib-brass-ink); }
#view-library .lib-line[data-spk="3"] { --spk: var(--red-ink); }
#view-library .lib-line .lib-speaker { position: relative; padding-top: .3em; padding-left: 12px; color: var(--spk, var(--accent-ink)); font-family: var(--ds-sans, inherit); font-size: max(13px, calc(var(--lib-font) - 4px)); font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
#view-library .lib-line .lib-speaker::before { content: ""; position: absolute; left: 0; top: calc(.3em + .5lh - 3px); width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
#view-library .lib-line.is-same .lib-speaker { color: transparent; }
#view-library .lib-line.is-same .lib-speaker::before { display: none; }
#view-library .lib-dir { color: var(--muted); font-style: italic; }
#view-library .lib-text > .lib-b-aside { margin: .2em 0 .9em; }
#view-library .lib-text.is-dialogue .lib-b-aside { padding-left: calc(max(64px, 8.5ch) + 14px); }
#view-library .lib-aside { margin: 0; color: var(--muted); font-style: italic; font-size: .92em; line-height: 1.6; }
#view-library .lib-text > .lib-b-quote { position: relative; margin: 1.2em 0; padding: .85em 1.2em .85em 2.6em; border: 1px solid var(--hairline-soft); border-radius: var(--lib-rc); background: var(--surface-2); }
#view-library .lib-b-quote::before { content: "\201C"; position: absolute; left: .32em; top: .08em; font-family: var(--lib-display); font-size: 2.6em; line-height: 1; color: var(--lib-brass); opacity: .75; }
#view-library .lib-quote { margin: 0; font-style: italic; }
#view-library .lib-b-quote .lib-zh, #view-library .lib-b-poem .lib-zh { border-left: 0; padding-left: 0; }
#view-library .lib-text > .lib-b-poem { width: fit-content; max-width: 100%; margin: 1.4em auto; padding: .2em 0 .2em 1.2em; border-left: 2px solid color-mix(in srgb, var(--lib-brass) 70%, transparent); }
#view-library .lib-poem { margin: 0; font-style: italic; line-height: 1.85; }
#view-library .lib-verse { display: block; }
#view-library .lib-list { margin: 0; padding-left: 1.3em; }
#view-library .lib-list li { margin: .15em 0; padding-left: .2em; }
#view-library .lib-list li::marker { content: "\2726  "; color: var(--lib-brass); font-size: .7em; }
#view-library .lib-text > .lib-b-img { margin: 1.4em 0; }
#view-library .lib-fig { margin: 0; }
#view-library .lib-fig img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--lib-r); background: var(--surface-2); }
#view-library .lib-fig figcaption { margin-top: .6em; font-family: var(--ds-sans, sans-serif); font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
/* 绘本版式（2026-11-08 第三批）：插图完整显示、不裁切（书里的字也画在图上），一页图配一两句话，正文大一号 */
#view-library .lib-text.is-picture > .lib-b-img { margin: 1.7em 0 .75em; }
#view-library .lib-text.is-picture > .lib-b-img:first-child { margin-top: .3em; }
#view-library .lib-text.is-picture .lib-fig img { width: auto; max-width: 100%; height: auto; max-height: min(72vh, 620px); margin: 0 auto; object-fit: contain; background: none; }
#view-library .lib-text.is-picture > .lib-b-p { font-size: 1.08em; line-height: 1.7; }
#view-library .lib-break { display: flex; justify-content: center; gap: 1.1em; margin: 1.6em 0; color: var(--lib-brass); font-size: .72em; line-height: 1; }
#view-library .lib-break::before, #view-library .lib-break::after, #view-library .lib-break span::before { content: "\2726"; }
#view-library .lib-zh { display: none; margin: .35em 0 0; padding-left: .75em; border-left: 2px solid var(--hairline); font-family: var(--ds-sans, sans-serif); font-size: max(14px, calc(var(--lib-font) - 3px)); font-style: normal; font-weight: 400; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
#view-library .lib-reader.show-zh .lib-zh { display: block; }
#view-library .lib-reader.show-zh .lib-text > .lib-b { margin-bottom: 1.25em; }
#view-library .lib-reader.show-zh .lib-text > .lib-line { margin-bottom: .85em; }

/* ── 5. 本文生词与短语：辅助阅读下点线标出；点中的高亮 ─────────── */
#view-library .lib-w { cursor: pointer; border-radius: 3px; }
#view-library .lib-reader.mode-assist .lib-w.is-gloss,
#view-library .lib-reader.mode-assist .lib-phr {
  text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, var(--lib-brass) 85%, transparent);
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none;
}
#view-library .lib-phr .lib-w { text-decoration: inherit; }
#view-library .lib-w.is-saved { text-decoration: underline solid; text-decoration-color: color-mix(in srgb, var(--lib-brass) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
#view-library :is(.lib-w, .lib-phr).is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 4px; }
#view-library .lib-reader.mode-clean .lib-text { padding-left: 0; }
#view-library .lib-reader.mode-clean .lib-pno, #view-library .lib-reader.mode-clean .lib-prompt { display: none; }

/* ── 6. 点词：右栏词卡（电脑）/ 小气泡 + 底部弹层（窄屏） ────────── */
#view-library .lib-wordcard { gap: 8px; padding: 14px 16px 16px; border: 1px solid var(--accent-edge); border-radius: var(--lib-r); background: var(--accent-soft-2); }
:is(#view-library, .lib-sheet) .lib-wc-head { display: flex; align-items: center; gap: 8px; }
/* 单词 + 类别：窄的时候类别换行，单词只在整个词都放不下时才断开（2026-11-09，原来 overflow-wrap: anywhere 会把 Microsoft 拆成 Microsof/t） */
:is(#view-library, .lib-sheet) .lib-wc-title { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; }
:is(#view-library, .lib-sheet) .lib-wc-word { min-width: 0; font-family: var(--lib-display, Georgia, serif); font-size: 24px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
:is(#view-library, .lib-sheet) .lib-wc-word.is-long { font-size: 21px; }
:is(#view-library, .lib-sheet) .lib-wc-word.is-xlong { font-size: 19px; }
:is(#view-library, .lib-sheet) .lib-wc-tag { white-space: nowrap; }
:is(#view-library, .lib-sheet) .lib-wc-head .lib-icon-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); }
:is(#view-library, .lib-sheet) .lib-wc-head .lib-icon-btn .ic { width: 18px; height: 18px; }
:is(#view-library, .lib-sheet) .lib-wc-head [data-say] { margin-left: auto; }
:is(#view-library, .lib-sheet) .lib-wc-zh { margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.45; }
:is(#view-library, .lib-sheet) .lib-wc-ctx { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ds-brass-soft, #f5eedf); color: var(--ink); font-size: 14px; line-height: 1.55; }
:is(#view-library, .lib-sheet) .lib-wc-ctx b { margin-right: 6px; color: var(--ds-brass-ink, #7d5d1f); font-weight: 700; }
:is(#view-library, .lib-sheet) .lib-wc-ex { margin: 0; color: var(--ink-2); font-family: var(--lib-serif, Georgia, serif); font-size: 15px; line-height: 1.6; }
:is(#view-library, .lib-sheet) .lib-wc-ex mark { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; font-weight: 700; }
:is(#view-library, .lib-sheet) .lib-wc-def { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
:is(#view-library, .lib-sheet) .lib-wc-save { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto !important; min-height: 42px; margin-top: 4px; justify-self: start; }
:is(#view-library, .lib-sheet) .lib-wc-save .ic { width: 16px; height: 16px; }
#view-library .lib-bubble {
  position: absolute; z-index: 26; display: flex; align-items: center; gap: 10px; max-width: min(300px, calc(100% - 8px)); padding: 8px 8px 8px 14px;
  border: 1px solid var(--accent-edge); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; line-height: 1.4;
}
#view-library .lib-bubble::after { content: ""; position: absolute; left: var(--ax, 50%); width: 10px; height: 10px; background: var(--surface); border: 1px solid var(--accent-edge); transform: translateX(-50%) rotate(45deg); }
#view-library .lib-bubble.is-up::after { bottom: -6px; border-top: 0; border-left: 0; }
#view-library .lib-bubble.is-down::after { top: -6px; border-bottom: 0; border-right: 0; }
#view-library .lib-bubble-zh { min-width: 0; color: var(--ink); font-weight: 650; }
#view-library .lib-bubble-more { display: inline-flex; align-items: center; flex: none; min-height: 36px; padding: 0 6px 0 10px; border: 0; border-left: 1px solid var(--hairline-soft); background: none; color: var(--accent-ink); font-size: 13px; font-weight: 650; }
#view-library .lib-bubble-more .ic { width: 16px; height: 16px; }
.lib-sheet-mask { position: fixed; inset: 0; z-index: 139; background: rgb(10 16 30 / 28%); }
.lib-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: grid; gap: 8px; max-width: 560px; margin: 0 auto;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font-family: var(--ds-sans, sans-serif);
  animation: lib-sheet-in .2s ease-out;
}
.lib-sheet::before { content: ""; justify-self: center; width: 40px; height: 4px; margin-bottom: 4px; border-radius: 4px; background: var(--hairline); }
.lib-sheet .lib-muted { color: var(--muted); font-size: 13px; }
@keyframes lib-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── 7. 右栏 / 正文后的「本文词汇」「练习」 ───────────────────── */
#view-library .lib-side-tabs { gap: 4px; }
#view-library .lib-side-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font-size: 14px; font-weight: 650; }
#view-library .lib-side-tabs button[aria-selected="true"] { border-color: var(--hairline); background: var(--surface-2); color: var(--ink); }
#view-library .lib-side-tabs .lib-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--hairline-soft); font-size: 12px; line-height: 20px; }
#view-library .lib-gloss-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
#view-library .lib-gloss-list button {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 10px; width: 100%; min-height: 44px; padding: 8px 10px;
  border: 0; border-bottom: 1px solid var(--hairline-soft); border-radius: 8px 8px 0 0; background: none; color: inherit; text-align: left;
}
#view-library .lib-gloss-list button:hover, #view-library .lib-gloss-list button.is-active { background: var(--accent-soft-2); }
#view-library .lib-gloss-list .lib-gl-term { font-family: var(--lib-serif); font-size: 16px; font-weight: 700; color: var(--ink); }
#view-library .lib-gloss-list .lib-gl-zh { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
#view-library .lib-gloss-list .lib-gl-pos { grid-column: 1; color: var(--muted); font-size: 12px; }

/* ── 8. 练习 ─────────────────────────────────────────────────────── */
#view-library .lib-ex { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card); }
#view-library .lib-ex + .lib-ex { margin-top: 14px; }
#view-library .lib-ex-head { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 650; }
#view-library .lib-ex-head .ic { color: var(--lib-brass); }
#view-library .lib-ex-status { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
#view-library .lib-ex-note { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
#view-library .lib-ex-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#view-library .lib-ex-actions > button { width: auto !important; min-height: 44px; }
#view-library .lib-ex .lib-q { display: grid; gap: 8px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--hairline-soft); }
#view-library .lib-ex .lib-q:first-of-type { padding-top: 0; border-top: 0; }
#view-library .lib-ex .lib-q legend { display: flex; gap: 8px; padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
#view-library .lib-q-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
#view-library .lib-ex { container: ex / inline-size; }
#view-library .lib-q-opts.is-short { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
@container ex (max-width: 460px) {
  #view-library .lib-q-opts.is-short[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#view-library .lib-q-opts.is-short .lib-opt { justify-content: center; padding: 0 8px; white-space: nowrap; }
#view-library .lib-q-opts.is-short .lib-opt-key { display: none; } /* True / False / Not given 这类短选项不用字母 */
#view-library .lib-opt { min-height: 46px; }
#view-library .lib-opt.is-dim { opacity: .55; }
#view-library .lib-blank { display: inline-block; min-width: 4.5em; margin: 0 2px; border-bottom: 2px solid var(--muted); line-height: 1.2; text-align: center; }
#view-library .lib-blank.is-filled { border-color: var(--green-ink); color: var(--green-ink); font-weight: 700; }
#view-library .lib-goto { display: inline-flex; align-items: center; min-height: 28px; margin-left: 4px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; }
#view-library .lib-goto-sm { position: absolute; top: 7px; right: 8px; margin: 0; color: var(--accent-ink); border-color: var(--accent-edge); background: var(--surface); }
#view-library .lib-mrow-btn { padding-right: 64px; }
/* 段落配对 */
#view-library .lib-mrows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#view-library .lib-mrow { position: relative; display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--lib-rc); background: var(--surface); }
#view-library .lib-mrow-btn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
#view-library .lib-mrow-no { color: var(--lib-brass-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
#view-library .lib-mrow-snip { overflow: hidden; color: var(--muted); font-family: var(--lib-serif); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-mrow-pick { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-self: start; min-height: 36px; padding: 0 12px; border: 1px dashed var(--accent-edge); border-radius: 999px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
#view-library .lib-mrow-pick.is-set { border-style: solid; background: var(--accent-soft); }
#view-library .lib-mrow.is-open { border-color: var(--accent-edge); box-shadow: 0 0 0 3px var(--accent-soft); }
#view-library .lib-mrow.is-right { border-color: color-mix(in srgb, var(--green-ink) 50%, transparent); background: var(--green-soft); }
#view-library .lib-mrow.is-wrong { border-color: color-mix(in srgb, var(--red-ink) 45%, transparent); background: var(--red-soft); }
#view-library .lib-mrow-ans { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--green-ink); font-size: 14px; font-weight: 650; }
#view-library .lib-mrow-ans .ic { width: 16px; height: 16px; }
#view-library .lib-chips, #view-library .lib-bank, #view-library .lib-rate { display: flex; flex-wrap: wrap; gap: 8px; }
#view-library .lib-chip-opt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-align: left;
}
#view-library .lib-chip-opt b { color: var(--lib-brass-ink); }
#view-library .lib-chip-opt.is-on { border-color: var(--academy-action, var(--accent)); background: var(--academy-action, var(--accent)); color: var(--on-action, #fff); }
#view-library .lib-chip-opt.is-on b { color: inherit; }
#view-library .lib-chip-opt.is-used { opacity: .5; }
#view-library .lib-chip-opt:disabled.is-used { text-decoration: line-through; }
/* 选词填空 */
#view-library .lib-bank { padding: 10px; border-radius: var(--lib-rc); background: var(--surface-2); }
#view-library .lib-cloze { margin: 0; font-family: var(--lib-serif); font-size: 17px; line-height: 2.15; }
#view-library .lib-gap {
  display: inline-flex; align-items: center; gap: 6px; min-width: 5.5em; min-height: 34px; margin: 0 2px; padding: 0 10px; vertical-align: middle;
  border: 0; border-bottom: 2px solid var(--muted); border-radius: 6px 6px 0 0; background: var(--surface-2); color: var(--ink);
  font-family: var(--ds-sans, sans-serif); font-size: 15px; font-weight: 650; line-height: 1.2;
}
#view-library .lib-gap-no { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--hairline-soft); color: var(--muted); font-size: 12px; /* 小修-20261125 原11px */ }
#view-library .lib-gap.is-active { border-bottom-color: var(--academy-action, var(--accent)); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-edge); }
#view-library .lib-gap.is-set { color: var(--accent-ink); }
#view-library .lib-gap.is-right { border-bottom-color: var(--green-ink); background: var(--green-soft); color: var(--green-ink); }
#view-library .lib-gap.is-wrong { border-bottom-color: var(--red-ink); background: var(--red-soft); color: var(--red-ink); text-decoration: line-through; }
#view-library .lib-gap-ans { margin: 0 4px 0 2px; color: var(--green-ink); font-family: var(--ds-sans, sans-serif); font-size: 15px; font-weight: 700; }
/* 思考题 */
#view-library .lib-oq { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hairline-soft); }
#view-library .lib-oq:first-of-type { padding-top: 0; border-top: 0; }
#view-library .lib-oq-q { display: flex; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
#view-library .lib-oq-show { display: inline-flex; align-items: center; gap: 6px; justify-self: start; width: auto !important; min-height: 44px; }
#view-library .lib-oq-show .ic { width: 16px; height: 16px; }
#view-library .lib-oq-a { display: grid; gap: 8px; padding: 10px 12px; border-left: 3px solid var(--green-ink); border-radius: 0 var(--lib-rc) var(--lib-rc) 0; background: var(--green-soft); }
#view-library .lib-oq-a p { margin: 0; font-size: 15px; line-height: 1.6; }
#view-library .lib-oq-label { display: flex; align-items: center; gap: 6px; color: var(--green-ink); font-size: 13px !important; font-weight: 700; }
#view-library .lib-oq-label .lib-goto { margin-left: auto; }

/* ── 9. 「回到题目」浮钮 ───────────────────────────────────────── */
.lib-jumpback {
  position: fixed; left: 50%; bottom: calc(var(--cv-mobile-tabbar-clearance, 24px) + 8px); z-index: 120; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--academy-action, #203d86); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 650; transform: translateX(-50%);
}
.lib-jumpback .ic { width: 16px; height: 16px; }

/* ── 10. 书封新色 ─────────────────────────────────────────────── */
#view-library .lib-cover[data-tone="ink"] { --cv-bg: #e3e1ef; --cv-spine: #221e57; --cv-ink: #1b1840; }
#view-library .lib-cover[data-tone="plum"] { --cv-bg: #efe2ec; --cv-spine: #7b3f6e; --cv-ink: #351a30; }
html.cv-dark #view-library .lib-cover[data-tone="ink"] { --cv-bg: #262447; --cv-spine: #d6b46e; }
html.cv-dark #view-library .lib-cover[data-tone="plum"] { --cv-bg: #3a2636; --cv-spine: #dd9cc9; }

/* ── 选读面板：手机从底部弹出（占 88% 高），电脑从左侧滑出（420px 宽） ── */
html.lib-pk-lock, html.lib-pk-lock body { overflow: hidden; }
#view-library .lib-pk-mask { position: fixed; inset: 0; z-index: 150; background: rgb(10 16 30 / 34%); }
#view-library .lib-pk {
  position: fixed; z-index: 151; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; height: 88vh; height: 88dvh;
  border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  animation: lib-sheet-in .22s ease-out;
}
#view-library .lib-pk.is-steady { animation: none; }
#view-library .lib-pk::before { content: ""; align-self: center; width: 40px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--hairline); }
@media (min-width: 768px) {
  #view-library .lib-pk { top: 0; right: auto; width: 420px; height: auto; border-radius: 0 18px 18px 0; animation-name: lib-drawer-in; }
  #view-library .lib-pk::before { display: none; }
}
@keyframes lib-drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
#view-library .lib-pk-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 4px 16px; }
#view-library .lib-pk-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; }
#view-library .lib-pk-head [data-pk-back] + h2 { margin-left: -4px; }
#view-library .lib-pk-tools { display: grid; gap: 10px; padding: 4px 16px 10px; border-bottom: 1px solid var(--hairline-soft); }
#view-library .lib-pk-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
#view-library .lib-pk-search .ic { width: 16px; height: 16px; flex: none; }
#view-library .lib-pk-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; }
#view-library .lib-pk-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
#view-library .lib-pk-tabs button { min-height: 36px; font-size: 14px; }
#view-library .lib-pk-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 4px 8px calc(16px + env(safe-area-inset-bottom, 0px)); }
#view-library .lib-pk-h { display: flex; align-items: baseline; gap: 8px; margin: 14px 8px 6px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
#view-library .lib-pk-h .lib-muted { font-weight: 500; }
#view-library .lib-pk-h.is-sticky { position: sticky; top: -4px; z-index: 1; margin: 10px 0 4px; padding: 8px; background: var(--surface); }
#view-library .lib-pk-rows, #view-library .lib-pk-sets { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
#view-library :is(.lib-pk-row, .lib-pk-setrow) {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px;
  border: 0; border-radius: 12px; background: none; color: inherit; text-align: left;
}
#view-library :is(.lib-pk-row, .lib-pk-setrow):hover { background: var(--surface-2); }
#view-library .lib-pk-row.is-here { background: var(--accent-soft-2); box-shadow: inset 3px 0 0 var(--academy-action, var(--accent)); }
#view-library .lib-pk-main { display: grid; gap: 2px; min-width: 0; }
#view-library .lib-pk-t { overflow: hidden; font-family: var(--lib-serif); font-size: 16px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-pk-setrow .lib-pk-t { font-family: inherit; font-size: 15px; }
#view-library .lib-pk-z { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#view-library .lib-pk-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
#view-library .lib-pk-setrow .lib-pk-meta { flex-direction: row; align-items: center; }
#view-library .lib-pk-meta .ic { width: 16px; height: 16px; }
#view-library .lib-pk-here { color: var(--accent-ink); font-weight: 700; }
#view-library .lib-pk-st { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--hairline); border-radius: 50%; color: #fff; }
#view-library .lib-pk-st.is-read { border-color: var(--green-ink); background: var(--green-ink); }
#view-library .lib-pk-st.is-read .ic { width: 13px; height: 13px; }
/* 读到一半：SVG 进度环，中间透明（原来用白色圆片盖住渐变，在暖色皮肤的面板底色上会露出白边，看起来像碎了） */
#view-library .lib-pk-st.is-reading { border: 0; background: none; }
#view-library .lib-ring { width: 22px; height: 22px; transform: rotate(-90deg); }
#view-library .lib-ring circle { fill: none; stroke: var(--hairline); stroke-width: 2.6; }
#view-library .lib-ring .lib-ring-on { stroke: var(--academy-action, var(--accent)); stroke-linecap: round; }
#view-library .lib-pk-lv { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 4px; padding: 2px 8px 6px; scrollbar-width: none; }
#view-library .lib-pk-lv .lib-chip-opt { flex: none; min-height: 34px; padding: 0 12px; font-size: 13px; }
#view-library .lib-pk-set { display: flex; align-items: center; gap: 12px; margin: 8px 8px 4px; }
#view-library .lib-pk-set-t { margin: 0 0 2px; font-size: 17px; font-weight: 700; }
#view-library .lib-pk-set .lib-muted { margin: 0; }
#view-library .lib-pk-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 8px; }
#view-library .lib-pk-topic { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--surface); color: inherit; text-align: left; font-size: 14px; font-weight: 650; }
#view-library .lib-pk-topic .ic { grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--lib-brass); }
#view-library .lib-pk-topic .lib-muted { font-size: 12px; font-weight: 500; }
#view-library .lib-pk-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--accent-ink); font-size: 14px; font-weight: 650; }
#view-library .lib-pk-more .ic { width: 16px; height: 16px; }
#view-library .lib-pk-empty { margin: 4px 10px 8px; color: var(--muted); font-size: 13px; }
/* 小书封：只留书脊和图标 */
#view-library .lib-cover.is-mini { flex: none; width: 40px; padding: 0; border-radius: 3px 7px 7px 3px; }
#view-library .lib-cover.is-mini > :not(.lib-cover-spine, .lib-cover-ic) { display: none; }
#view-library .lib-cover.is-mini .lib-cover-spine { width: 5px; }
#view-library .lib-cover.is-mini .lib-cover-ic { top: 50%; left: 56%; width: 26px; height: 26px; transform: translate(-50%, -50%); }
#view-library .lib-cover.is-mini .lib-cover-ic .ic { width: 15px; height: 15px; }

/* 一句话提示（回到上次位置 / 为什么推荐这篇） */
.lib-toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--cv-mobile-tabbar-clearance, 24px) + 8px); z-index: 125; display: flex; align-items: center; gap: 12px; width: fit-content; max-width: min(520px, calc(100vw - 32px)); box-sizing: border-box; margin: 0 auto;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink, #16233f); color: var(--surface, #fff); box-shadow: var(--shadow-lg);
  font-family: var(--ds-sans, sans-serif); font-size: 14px; animation: lib-sheet-in .2s ease-out;
}
.lib-toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-toast button { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface, #fff) 18%, transparent); color: inherit; font-size: 13px; font-weight: 700; }

/* 宿主页面：读文章时，手机上收起网站顶栏的页面标题，和朗读、刷卡页做法一致（预览里没有网站顶栏，看不出效果） */
@media (max-width: 767px) {
  html:has(> body[data-view="library"] #view-library .lib-reader) #appShell #dot-original-topbar.topbar { row-gap: 0 !important; }
  html:has(> body[data-view="library"] #view-library .lib-reader) #appShell #dot-original-topbar.topbar .topbar-title { display: none !important; }
}
html:has(> body[data-view="library"] #view-library .lib-reader) #appShell #dot-original-topbar .academy-header-scene { display: none !important; }

/* ── 11. 平板与手机 ───────────────────────────────────────────── */
@media (max-width: 760px) {
  #view-library .lib-page { padding: 20px 20px 24px; }
}
@media (max-width: 600px) {
  /* 手机：读物条和纸页都贴边，正文最宽 */
  #view-library .lib-rbar { margin: 0 -16px 0; }
  #view-library .lib-rbar-in { border-radius: 0; border-width: 0 0 1px; box-shadow: none; padding: 0 4px 0 2px; }
  #view-library .lib-rbar-prog { left: 0; right: 0; }
  #view-library .lib-pick-a .lib-pos-l { display: none; }
  #view-library .lib-pick-a .lib-pos-s { display: inline; }
  #view-library .lib-page { margin-inline: -16px; padding: 14px 16px 24px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  #view-library .lib-reader-head { gap: 6px; padding-bottom: 12px; }
  #view-library .lib-reader-title { font-size: 24px; }
  #view-library .lib-meta-zh { font-size: 15px; }
  #view-library .lib-text.is-numbered { padding-left: 1.5em; }
  #view-library .lib-text.is-numbered .lib-pno { left: -1.6em; width: 1.2em; font-size: 12px; /* 小修-20261125 原11px */ }
  #view-library .lib-text > .lib-line { grid-template-columns: 1fr; gap: 0; margin-bottom: .75em; }
  #view-library .lib-line .lib-speaker { padding-top: 0; }
  #view-library .lib-line .lib-speaker::before { top: calc(.5lh - 3px); }
  #view-library .lib-line.is-same .lib-speaker { display: none; }
  #view-library .lib-text.is-dialogue .lib-b-aside { padding-left: 0; }
  #view-library .lib-text > .lib-b-quote { padding: .8em 1em .8em 2.2em; }
  #view-library .lib-text > .lib-b-poem { margin-inline: 0; }
  #view-library .lib-ex { padding: 14px; }
  #view-library .lib-cloze { font-size: 16px; }
  #view-library .lib-gloss-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #view-library .lib-rbar-prog span, .lib-sheet, #view-library .lib-pk, #view-library .lib-text > .lib-b { transition: none; animation: none; }
}

/* 正式数据与本机阅读记录 */
#view-library .lib-listen { display:grid;gap:8px;margin:0 0 18px;color:var(--muted);font-size:13px; }
#view-library .lib-listen audio { width:100%;max-width:440px; }
#view-library .lib-saved-list { list-style:none;padding:0;display:grid;gap:8px; }
#view-library .lib-saved-list li { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--hairline); }
#view-library .lib-saved-list li span { grid-column:1;font-size:13px;color:var(--muted); }
#view-library .lib-saved-list li button { grid-column:2;grid-row:1 / 3; }
#view-library .lib-actions .primary-action,#view-library .lib-actions .secondary-action { width:auto!important; }

/* ── 2026-11-07 第二轮 ───────────────────────────────────────────── */
/* 推荐栏标题和「换一批」（推荐理由小标签 2026-11-08 晚起不再显示，样式一并去掉） */
#view-library .lib-pk-rech { align-items: center; justify-content: space-between; }
#view-library .lib-pk-rech > span { display: flex; align-items: baseline; gap: 8px; }
#view-library .lib-pk-swap { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--accent-ink); font-size: 12.5px; font-weight: 650; }
#view-library .lib-pk-swap .ic { width: 14px; height: 14px; }

/* 加载：阅读馆里恢复老鼠跑轮（全站的 calm-ui 把它换成了细进度条，见 cv-anim.css）。
   加载超过 0.25 秒才淡入，读物已缓存、秒开时不闪一下。减少动效时老鼠不跑。 */
#view-library .lib-loading { display: grid; justify-items: center; gap: 14px; padding: 56px 16px; opacity: 0; animation: lib-loading-in .2s ease-out .25s forwards; }
#view-library .lib-loading p { margin: 0; color: var(--muted); font-size: 14px; }
#view-library .lib-loading .cvh { order: 0; font-size: 7px !important; width: 12em !important; height: 12em !important; background: none !important; border-radius: 0 !important; overflow: visible !important; }
#view-library .lib-loading .cvh::after { content: none !important; display: none !important; }
#view-library .lib-loading .cvh > * { display: block !important; }
@keyframes lib-loading-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #view-library .lib-loading { opacity: 1; animation: none; } }
/* 读物条：手机上只显示资源包名最后一段（「BBC · 随身英语 · 文化与社会」→「文化与社会」），书架里仍是全名 */
#view-library .lib-pick-a .lib-set-s { display: none; }
@media (max-width: 600px) {
  #view-library .lib-pick-a .lib-set-l { display: none; }
  #view-library .lib-pick-a .lib-set-s { display: inline; }
}

/* ── 2026-11-07 第二轮 · 书架封面流 ─────────────────────────────── */
/* 9 套书各一种颜色：原有 sky / rose / leaf / brass / ink / plum，新增 teal（健康）/ olive（自然）/ clay（VOA） */
#view-library .lib-cover[data-tone="sky"] { --cv-bg: #dfe8f6; --cv-spine: #3d5fb5; --cv-ink: #16233f; }
#view-library .lib-cover[data-tone="teal"] { --cv-bg: #d9eeec; --cv-spine: #1d7a77; --cv-ink: #0f3433; }
#view-library .lib-cover[data-tone="olive"] { --cv-bg: #e9ebd3; --cv-spine: #6a7a25; --cv-ink: #2b3210; }
#view-library .lib-cover[data-tone="clay"] { --cv-bg: #f6e3d4; --cv-spine: #c0622a; --cv-ink: #43220c; }
html.cv-dark #view-library .lib-cover[data-tone="sky"] { --cv-bg: #24324c; --cv-spine: #8aa3e8; }
html.cv-dark #view-library .lib-cover[data-tone="teal"] { --cv-bg: #1c3836; --cv-spine: #7fd0c9; }
html.cv-dark #view-library .lib-cover[data-tone="olive"] { --cv-bg: #31351d; --cv-spine: #c4cf7f; }
html.cv-dark #view-library .lib-cover[data-tone="clay"] { --cv-bg: #3f2a1d; --cv-spine: #eda06e; }

/* 书封质感：布纹 + 左上角柔光 + 下沿压暗；书脊旁一道压痕；出版方上方一条细线 */
#view-library .lib-cover:not(.is-mini) {
  background:
    radial-gradient(120% 70% at 22% 0%, rgb(255 255 255 / 38%), transparent 58%),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 1.8%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 5%) 0 1px, transparent 1px 4px),
    linear-gradient(168deg, color-mix(in srgb, var(--cv-bg) 74%, #fff) 0%, var(--cv-bg) 58%, color-mix(in srgb, var(--cv-bg) 86%, var(--cv-spine)) 100%);
}
html.cv-dark #view-library .lib-cover:not(.is-mini) {
  background:
    radial-gradient(120% 70% at 22% 0%, rgb(255 255 255 / 10%), transparent 58%),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 8%) 0 1px, transparent 1px 3px),
    linear-gradient(168deg, color-mix(in srgb, var(--cv-bg) 82%, #fff) 0%, var(--cv-bg) 60%, color-mix(in srgb, var(--cv-bg) 80%, #000) 100%);
}
#view-library .lib-cover-spine::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% + 3px); width: 2px; background: linear-gradient(90deg, rgb(0 0 0 / 10%), rgb(255 255 255 / 22%)); }
#view-library .lib-cover-series { font-size: 11px; /* 小修-20261125 原9.5px */ font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--cv-spine); opacity: .9; }
#view-library .lib-cover-type { padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--cv-spine) 30%, transparent); }

/* 电脑和平板：选读面板改成居中宽面板（原来是左侧 420px 抽屉），列表两列排 */
@media (min-width: 768px) {
  #view-library .lib-pk {
    inset: 0; margin: auto; width: min(1040px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px));
    border-radius: 20px; animation-name: lib-modal-in;
  }
  #view-library .lib-pk-head { padding: 14px 14px 6px 24px; }
  #view-library .lib-pk-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 12px 20px; padding: 4px 24px 12px; }
  #view-library .lib-pk-body { padding: 4px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
  #view-library .lib-pk-rows { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); column-gap: 12px; }
  #view-library .lib-pk-topics { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  #view-library .lib-pk-more { max-width: 420px; margin-inline: auto; }
}
@keyframes lib-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* 封面流 */
#view-library .cf {
  --cf-w: 140px; --cf-h: 187px; --cf-s: 77px; --cf-pad: 160px; --cf-top: 22px; --cf-floor: 30px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; padding-top: 2px;
}
#view-library .cf > *, #view-library .cf-info > * { min-width: 0; }
#view-library .cf.has-reflect { --cf-floor: calc(var(--cf-h) * .2 + 10px); }
#view-library .cf-stage { position: relative; isolation: isolate; margin: 0 -8px; }
#view-library .cf-stage:focus { outline: none; } /* 键盘换书途中焦点暂放在书架上，不画框 */
/* 书架页固定留出滚动条的位置：换一套书、下方介绍变长变短时滚动条不会忽有忽无，书架宽度不跟着变 */
#view-library .lib-pk-body:has(> .cf) { scrollbar-gutter: stable; }
#view-library .cf.is-wide .cf-stage { margin: 0 -16px; }
/* 正中那套书的颜色在背后打一圈淡光（单独一个元素：颜色只写在它身上，换书时不牵动整个书架重算样式） */
#view-library .cf-glow {
  position: absolute; z-index: -2; left: 50%; top: calc(var(--cf-top) + var(--cf-h) * .5);
  width: calc(var(--cf-w) * 3.2); height: calc(var(--cf-h) * 1.5); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cf-glow, var(--accent)) 17%, transparent), transparent);
  transition: background .45s ease;
}
html.cv-dark #view-library .cf-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--cf-glow, var(--accent)) 22%, transparent), transparent); }
#view-library .cf-scroller {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: var(--cf-top) 0 var(--cf-floor); cursor: grab; outline: none; contain: inline-size; -webkit-tap-highlight-color: transparent;
}
#view-library .cf-scroller::-webkit-scrollbar { display: none; }
/* is-free：脚本自己在滚（电脑的触控板、滚轮、拖动、箭头），先关掉吸附，滑到某一本再打开 */
#view-library .cf-scroller.is-free, #view-library .cf-scroller.is-dragging { scroll-snap-type: none; }
#view-library .cf-scroller.is-dragging { cursor: grabbing; }
#view-library .cf-scroller.is-dragging .cf-book { cursor: grabbing; }
#view-library .cf-track { display: flex; width: max-content; padding: 0 var(--cf-pad); }
#view-library .cf-slot { position: relative; flex: none; width: var(--cf-s); height: var(--cf-h); scroll-snap-align: center; pointer-events: none; }
/* 落在台面上的影子：跟着书走，越靠两侧越淡越小（位移、大小、浓淡由脚本每帧直接写；单独成层，滑动时不重画） */
#view-library .cf-shadow {
  position: absolute; z-index: -1; left: 50%; bottom: -7px; width: calc(var(--cf-w) * .92); height: 16px; margin-left: calc(var(--cf-w) * -.46);
  border-radius: 50%; background: radial-gradient(closest-side, rgb(18 26 46 / 30%), transparent); pointer-events: none; will-change: transform, opacity;
}
html.cv-dark #view-library .cf-shadow { background: radial-gradient(closest-side, rgb(0 0 0 / 55%), transparent); }

/* 一本书 = 封面 + 书页侧（右）+ 书脊侧（左），厚度随篇数变（--cf-tk 0~1） */
#view-library .cf-book {
  all: unset; box-sizing: border-box; position: absolute; top: 0; left: 50%; display: block;
  width: var(--cf-w); height: var(--cf-h); margin-left: calc(var(--cf-w) / -2);
  --cf-t: calc(var(--cf-w) * (.05 + .08 * var(--cf-tk, .5)));
  transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform;
  pointer-events: auto; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y;
}
#view-library .cf-book > .lib-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; gap: calc(var(--cf-w) * .022);
  padding: calc(var(--cf-w) * .1) calc(var(--cf-w) * .09) calc(var(--cf-w) * .085) calc(var(--cf-w) * .17);
  transform: translateZ(calc(var(--cf-t) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 4px 9px 9px 4px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 10%), 0 12px 24px -6px rgb(22 35 63 / 22%);
  transition: box-shadow .25s ease;
}
#view-library .cf-book.is-center > .lib-cover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%), inset 0 -1px 0 rgb(0 0 0 / 6%), 0 2px 4px rgb(0 0 0 / 10%), 0 20px 34px -8px rgb(22 35 63 / 32%); }
html.cv-dark #view-library .cf-book > .lib-cover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 1px 2px rgb(0 0 0 / 40%), 0 14px 26px -6px rgb(0 0 0 / 55%); }
/* 随角度移动的高光：书转过去时光带滑过封面 */
#view-library .cf-book > .lib-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 30%) 46%, transparent 60%) no-repeat;
  background-size: 260% 100%; background-position: calc(50% + var(--cf-ry, 0) * 1.3%) 0; mix-blend-mode: soft-light;
}
#view-library .cf-book .lib-cover-spine { width: calc(var(--cf-w) * .075); background: linear-gradient(90deg, color-mix(in srgb, var(--cv-spine) 78%, #000), var(--cv-spine) 45%, color-mix(in srgb, var(--cv-spine) 85%, #000)); }
#view-library .cf-book .lib-cover-ic { top: calc(var(--cf-w) * .1); left: calc(var(--cf-w) * .17); width: calc(var(--cf-w) * .24); height: calc(var(--cf-w) * .24); }
#view-library .cf-book .lib-cover-ic .ic { width: 52%; height: 52%; }
#view-library .cf-book .lib-cover-series { font-size: clamp(8px, calc(var(--cf-w) * .056), 11px); }
#view-library .cf-book .lib-cover-title { font-size: clamp(17px, calc(var(--cf-w) * .15), 30px); line-height: 1.05; letter-spacing: -.01em; }
#view-library .cf-book .lib-cover-zh { font-size: clamp(12px, calc(var(--cf-w) * .088), 17px); }
#view-library .cf-book .lib-cover-type { margin-top: calc(var(--cf-w) * .03); font-size: clamp(8.5px, calc(var(--cf-w) * .06), 12px); }
#view-library .cf-book .lib-ribbon { right: calc(var(--cf-w) * .1); z-index: 2; box-shadow: 0 2px 4px rgb(0 0 0 / 18%); }
/* 「变淡」：盖一层和面板同色的纱，不用 opacity（opacity 会把 3D 压平，还会透出后面的书） */
#view-library .cf-shade { position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: var(--surface); opacity: 0; pointer-events: none; } /* 浓淡由脚本直接写 */
#view-library .cf-edge { position: absolute; left: calc(50% - var(--cf-t) / 2); width: var(--cf-t); backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; }
#view-library .cf-edge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); opacity: var(--cf-fade, 0); }
#view-library .cf-pages {
  top: 1.6%; height: 96.8%; transform: rotateY(90deg) translateZ(calc(var(--cf-w) / 2 - 3px));
  background: linear-gradient(90deg, rgb(0 0 0 / 12%), transparent 26%, transparent 74%, rgb(0 0 0 / 14%)), repeating-linear-gradient(90deg, #f8f4ea 0 1.6px, #ddd4c1 1.6px 2.4px);
}
html.cv-dark #view-library .cf-pages { background: linear-gradient(90deg, rgb(0 0 0 / 22%), transparent 30%, transparent 70%, rgb(0 0 0 / 26%)), repeating-linear-gradient(90deg, #cfc6b2 0 1.6px, #a99f8a 1.6px 2.4px); }
#view-library .cf-spine {
  top: 0; height: 100%; border-radius: 4px; transform: rotateY(-90deg) translateZ(calc(var(--cf-w) / 2));
  background: linear-gradient(90deg, color-mix(in srgb, var(--cf-spine, #3d5fb5) 62%, #000), var(--cf-spine, #3d5fb5) 42%, color-mix(in srgb, var(--cf-spine, #3d5fb5) 78%, #000));
}
#view-library .cf-book:focus-visible > .lib-cover { outline: 3px solid var(--academy-action, var(--accent)); outline-offset: 4px; }
/* 倒影（Chrome / Safari；Firefox 不显示，不影响使用）和台面细线 */
#view-library .cf.has-reflect .cf-book > .lib-cover { -webkit-box-reflect: below 5px linear-gradient(transparent 80%, rgb(0 0 0 / 12%)); }
html.cv-dark #view-library .cf.has-reflect .cf-book > .lib-cover { -webkit-box-reflect: below 5px linear-gradient(transparent 80%, rgb(0 0 0 / 16%)); }
#view-library .cf-stage::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--cf-top) + var(--cf-h) + 2px); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 12%, transparent) 20%, color-mix(in srgb, var(--ink) 12%, transparent) 80%, transparent);
}
/* 两侧箭头：手机上小一点、贴边 */
#view-library .cf-nav {
  position: absolute; z-index: 600; top: calc(var(--cf-top) + var(--cf-h) / 2); display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid var(--hairline); border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ink); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: opacity .15s ease, transform .15s ease;
}
#view-library .cf-nav:hover { background: var(--surface); }
#view-library .cf-nav:active { transform: scale(.94); }
#view-library .cf-nav .ic { width: 20px; height: 20px; }
#view-library .cf-prev { left: 10px; }
#view-library .cf-next { right: 10px; }
#view-library .cf-nav:disabled { opacity: 0; pointer-events: none; }
#view-library .cf.is-wide .cf-prev { left: 22px; }
#view-library .cf.is-wide .cf-next { right: 22px; }
#view-library .cf.is-wide .cf-nav { width: 46px; height: 46px; margin-top: -23px; }
@media (max-width: 600px) { #view-library .cf-nav { width: 34px; height: 34px; margin-top: -17px; } #view-library .cf-prev { left: 6px; } #view-library .cf-next { right: 6px; } }
/* 位置小点 */
#view-library .cf-dots { display: flex; justify-content: center; gap: 6px; margin: 0; }
#view-library .cf-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--hairline); transition: width .2s ease, background-color .2s ease; }
#view-library .cf-dots span.is-on { width: 18px; background: var(--academy-action, var(--accent)); }

/* 正中那套书的信息 */
#view-library .cf-info { display: grid; gap: 4px; padding: 8px 4px 0; }
#view-library .cf-info.is-in { animation: cf-in .22s ease-out; }
@keyframes cf-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#view-library .cf-info-main { display: grid; justify-items: center; gap: 6px; text-align: center; }
#view-library .cf-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--lib-brass-ink); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
#view-library .cf-here { padding: 1px 8px; border-radius: 999px; background: var(--lib-brass); color: #fff; font-size: 12px; /* 小修-20261125 原11px */ line-height: 18px; }
#view-library .cf-name { margin: 0; color: var(--ink); font-size: 19px; font-weight: 750; line-height: 1.3; }
#view-library .cf-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 13px; }
#view-library .cf-meta b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
#view-library .cf-sum { max-width: 30em; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
#view-library .cf-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
#view-library .cf-parts li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; }
#view-library .cf-open { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto !important; min-height: 44px; margin-top: 6px; padding: 0 24px; }
#view-library .cf-open .ic { width: 18px; height: 18px; }
#view-library .cf-info-list .lib-pk-h { margin-top: 18px; }
#view-library .cf:not(.is-wide) .cf-info-list .lib-pk-rows > li:nth-child(n+4) { display: none; }
#view-library .cf.is-wide .cf-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; padding: 10px 16px 0; }
#view-library .cf.is-wide .cf-info-main { justify-items: start; text-align: left; padding-top: 12px; }
#view-library .cf.is-wide .cf-name { font-size: 24px; }
#view-library .cf.is-wide .cf-meta, #view-library .cf.is-wide .cf-parts { justify-content: flex-start; }
#view-library .cf.is-wide .cf-info-list .lib-pk-h { margin-top: 6px; }
#view-library .cf .cf-info-list .lib-pk-rows { grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) {
  #view-library .cf-info.is-in, #view-library .lib-pk { animation: none; }
  #view-library .cf-nav, #view-library .cf-dots span, #view-library .cf-glow, #view-library .cf-book > .lib-cover { transition: none; }
}

/* ── 读完小结卡 ── */
#view-library .lib-done { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--green-ink, #2f7259) 22%, var(--hairline)); border-radius: var(--lib-rc, 14px); background: color-mix(in srgb, var(--green-soft, #e3f1e8) 55%, var(--surface)); animation: lib-done-in .3s ease-out; }
@keyframes lib-done-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#view-library .lib-done-head { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green-ink, #2f7259); font-size: 13px; }
#view-library .lib-done-head .ic { width: 20px; height: 20px; }
#view-library .lib-done-head b { color: var(--ink); font-size: 17px; }
#view-library .lib-done-head span { color: var(--muted); }
#view-library .lib-done-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
#view-library .lib-done-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
#view-library .lib-done-stats dt { color: var(--muted); font-size: 12px; }
#view-library .lib-done-stats dd { margin: 0; color: var(--ink); font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
#view-library .lib-done-stats small { color: var(--muted); font-size: 12px; font-weight: 600; }
#view-library .lib-done-ex { display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: start; width: auto !important; min-height: 40px; }
#view-library .lib-done-ex .ic { width: 16px; height: 16px; }

/* ── 手机：往下读时读物条收起，只留底边进度线；往上滑再出来 ── */
#view-library .lib-rbar { transition: transform .22s ease; }
@media (max-width: 600px) {
  #view-library .lib-rbar.is-tucked { transform: translateY(calc(-100% + 2px)); }
  #view-library .lib-rbar.is-tucked .lib-rbar-in > :not(.lib-rbar-prog) { visibility: hidden; transition: visibility 0s .22s; }
}
@media (prefers-reduced-motion: reduce) { #view-library .lib-rbar, #view-library .lib-done { transition: none; animation: none; } }

/* ── 难词本里的「阅读生词」（不在阅读馆页面里，用全站变量）──────── */
.rw { --rw-brass: var(--ds-brass, #a07a32); --rw-brass-ink: var(--ds-brass-ink, #7d5d1f); --rw-brass-soft: var(--ds-brass-soft, #f5eedf);
  display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--rw-brass) 45%, var(--hairline)); }
.rw[hidden] { display: none; }
.rw .ic { width: 16px; height: 16px; flex: none; }
.rw-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.rw-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 17px; font-weight: 750; }
.rw-title .ic { width: 18px; height: 18px; color: var(--rw-brass); }
.rw-count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--rw-brass-soft); color: var(--rw-brass-ink); font-size: 12px; line-height: 22px; text-align: center; }
.rw-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.rw-cards-btn { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; min-height: 40px; }
.rw-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rw-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--hairline-soft, var(--hairline)); border-left: 3px solid var(--rw-brass); border-radius: 12px; background: color-mix(in srgb, var(--rw-brass-soft) 35%, var(--surface)); }
.rw-main { display: grid; gap: 3px; min-width: 0; }
.rw-main p { margin: 0; }
.rw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--rw-brass-soft, #f5eedf); color: var(--rw-brass-ink, #7d5d1f); font-size: 12px; /* 小修-20261125 原11.5px */ font-weight: 700; line-height: 20px; }
.rw-tag .ic { width: 12px; height: 12px; }
.rw-tag.is-book { background: var(--accent-soft, #e8eefb); color: var(--accent-ink, #2a4a9a); font-weight: 650; }
.rw-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rw-word { font-family: "Iowan Old Style", "Charter", Georgia, serif; font-size: 19px; color: var(--ink); overflow-wrap: anywhere; }
.rw-zh { color: var(--ink-2, var(--ink)); font-size: 14px; }
.rw-from { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.rw-acts .secondary-action { width: auto !important; min-height: 36px; padding: 0 12px; font-size: 13px; }
.rw-acts .rw-icon { display: inline-grid; place-items: center; width: 36px !important; padding: 0; }
.rw-more { justify-self: center; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--accent-ink); font-size: 13px; font-weight: 650; }
@media (max-width: 600px) {
  .rw-item { grid-template-columns: minmax(0, 1fr); }
  .rw-acts { justify-content: flex-start; }
}
/* 卡片复习 */
.rw-cards-mask { position: fixed; inset: 0; z-index: 180; background: rgb(10 16 30 / 42%); }
.rw-cards { position: fixed; z-index: 181; left: 50%; top: 50%; display: grid; gap: 14px; width: min(420px, calc(100vw - 32px)); padding: 16px 18px 20px; transform: translate(-50%, -50%);
  border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font-family: var(--ds-sans, system-ui, sans-serif); animation: rw-in .2s ease-out; }
@keyframes rw-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.rw-cards .ic { width: 18px; height: 18px; }
.rw-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rw-x { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); }
.rw-card { display: grid; justify-items: center; gap: 10px; min-height: 200px; align-content: center; padding: 20px 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(165deg, color-mix(in srgb, var(--ds-brass-soft, #f5eedf) 70%, var(--surface)), var(--surface)); border: 1px solid var(--hairline); }
.rw-card p { margin: 0; }
.rw-card-word { display: flex; align-items: center; gap: 4px; font-family: "Iowan Old Style", "Charter", Georgia, serif; font-size: 32px; font-weight: 700; overflow-wrap: anywhere; }
.rw-card-zh { font-size: 20px; font-weight: 650; }
.rw-card-hint { color: var(--muted); font-size: 14px; }
.rw-card-end { font-size: 16px; }
.rw-card-end b { font-size: 22px; }
.rw-card-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.rw-card-acts button { width: 100% !important; min-height: 46px; }
@media (prefers-reduced-motion: reduce) { .rw-cards { animation: none; } }

/* ── 问 Dot：读物条上一个、单词卡上一个 ── */
#view-library .lib-dot-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 11px 0 9px; border: 1px solid color-mix(in srgb, var(--academy-action, var(--accent)) 30%, var(--hairline)); border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft, #e8eefb) 60%, var(--surface)); color: var(--accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
#view-library .lib-dot-btn .ic { width: 15px; height: 15px; }
@media (max-width: 380px) { #view-library .lib-dot-btn span { display: none; } #view-library .lib-dot-btn { padding: 0 9px; } }
:is(#view-library, .lib-sheet) .lib-wc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
:is(#view-library, .lib-sheet) .lib-wc-acts .lib-wc-save { margin-top: 0; }
:is(#view-library, .lib-sheet) .lib-wc-dot { display: inline-flex; align-items: center; gap: 6px; width: auto !important; min-height: 42px; }
:is(#view-library, .lib-sheet) .lib-wc-dot .ic { width: 16px; height: 16px; }

/* 5.10.3-reading-dict：点词卡片的原形一行（tell 的过去式和过去分词）；文章末尾统一说明一次点词释义的来源（方案 B） */
:is(#view-library, .lib-sheet) .lib-wc-form { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
:is(#view-library, .lib-sheet) .lib-wc-form span[lang] { color: var(--ink-2); font-weight: 650; }
#view-library .lib-src-note { max-width: 34em; margin: -10px 0 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* 5.10.3-library-home：进门先到书库首页。内容和读文章时打开的选读面板是同一份，只是铺在页面里：
   没有遮罩、关闭按钮和弹出动画，页面整体上下滚（面板里是面板自己滚）。 */
#view-library .lib-pk.is-home {
  position: relative; inset: auto; z-index: auto; width: auto; height: auto; margin: 0;
  border: 1px solid var(--lib-edge); border-radius: var(--lib-r); background: var(--lib-card); box-shadow: none; animation: none;
}
#view-library .lib-pk.is-home::before { display: none; }
#view-library .lib-pk.is-home .lib-pk-head { padding-top: 12px; }
#view-library .lib-pk.is-home .lib-pk-body { flex: none; overflow: visible; }
#view-library .lib-pk.is-home .lib-pk-h.is-sticky { top: var(--lib-sticky-top, 0px); }
@media (min-width: 768px) {
  #view-library .lib-pk.is-home { inset: auto; margin: 0; width: auto; height: auto; border-radius: 20px; }
}

/* ── 12. 历年中考（5.10.3-zhongkao-v1，2026-11-09）───────────────────────
   用户原话：「注意保证学生端作答的方便」。
   - 手机和窄屏（阅读页 < 900px）：答题卡贴在屏幕底部（sticky，读到文末自然落回原位），可收起；一次显示一道题/一个空，题号条随时跳。
   - 宽屏：答题卡在右侧栏（沿用原侧栏的贴顶滚动），阅读理解所有题一列排开，当前题高亮。
   - 完形：文中每个空是一个按钮，点了在答题卡里选词，选完自动跳到下一空；核对后对错标在文中。
   - 原卷划线照原样显示。 */
#view-library .lib-u { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
/* 空格用行内方块、按基线对齐（5.10.3-zhongkao-v4：原来是 inline-flex，空着时以方框下沿当基线，和这一行的字错位，用户反映「每个空都低于对应的行」） */
#view-library .lib-xgap {
  display: inline-block; min-width: 4.4em; margin: 0 2px; padding: 0 7px; text-align: left;
  border: 0; border-bottom: 2px solid var(--accent-edge); border-radius: 7px 7px 3px 3px;
  background: var(--accent-soft-2); color: var(--ink); font: inherit; line-height: 1.35; vertical-align: baseline; cursor: pointer;
  white-space: nowrap; transition: background .15s, box-shadow .15s;
}
#view-library .lib-xgap > span + span { margin-left: 5px; }
#view-library .lib-xgap-n {
  display: inline-block; vertical-align: .14em; padding: 2px 6px; border-radius: 999px; background: var(--surface);
  font: 700 12px/1.1 var(--ds-sans, system-ui, sans-serif); color: var(--accent-ink); letter-spacing: 0;
}
#view-library .lib-xgap-w { font-weight: 600; }
#view-library .lib-xgap-w:empty { display: inline-block; width: 2.2em; }
#view-library .lib-xgap.is-cur { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
#view-library .lib-xgap.is-right { background: var(--green-soft); border-bottom-color: var(--green-ink); }
#view-library .lib-xgap.is-wrong { background: var(--red-soft); border-bottom-color: var(--red-ink); }
#view-library .lib-xgap.is-wrong .lib-xgap-w { text-decoration: line-through; opacity: .7; font-weight: 500; }
#view-library .lib-xgap-a { font-weight: 700; color: var(--green-ink); }
#view-library .lib-xgap.is-static { min-width: 0; cursor: default; }

#view-library .lib-xpanel { display: grid; border: 1px solid var(--hairline); border-radius: 16px; background: var(--lib-card); }
#view-library .lib-xbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; padding: 8px 14px;
  border: 0; border-radius: 16px 16px 0 0; background: var(--lib-card); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
#view-library .lib-xbar-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
#view-library .lib-xbar-t .ic { color: var(--lib-brass-ink, var(--accent-ink)); }
#view-library .lib-xbar-t b { font-size: 15px; font-weight: 650; white-space: nowrap; }
#view-library .lib-xbar-s { overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
#view-library .lib-xbar-h { display: inline-flex; flex: none; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
#view-library .lib-xbar-h .ic { transition: transform .2s; }
#view-library .lib-xpanel:not(.is-open) .lib-xbar-h .ic { transform: rotate(180deg); }
#view-library .lib-xbody { display: grid; gap: 12px; padding: 2px 14px 14px; }
#view-library .lib-xrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
#view-library .lib-xchips { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; }
#view-library .lib-xarrow { display: none; flex: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
#view-library .lib-xq > legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
#view-library .lib-xq > legend + * { clear: both; }
#view-library .lib-xq-sm { font-size: 13px; font-weight: 600; color: var(--muted); }
#view-library .lib-xq .lib-blank.is-filled { display: inline; }
#view-library .lib-xchip {
  min-width: 38px; height: 32px; padding: 0 9px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: 650 13px/1 var(--ds-sans, system-ui, sans-serif); cursor: pointer;
}
#view-library .lib-xchip.is-set { border-color: var(--accent-edge); background: var(--accent-soft-2); color: var(--accent-ink); }
#view-library .lib-xchip.is-right { border-color: var(--green-ink); background: var(--green-soft); color: var(--green-ink); }
#view-library .lib-xchip.is-wrong { border-color: var(--red-ink); background: var(--red-soft); color: var(--red-ink); }
#view-library .lib-xchip.is-cur { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
#view-library .lib-xq { margin: 0; }
#view-library .lib-xq-t { white-space: pre-line; }
#view-library .lib-xq-media { display: block; max-width: 100%; margin: 4px 0 8px; border-radius: 8px; background: #fff; }
/* 选项两列还是一列按最长的选项算（--optw = 最长选项的字数，5.10.3-dot-sheet-v1）：两列放不下就一列，长词不再撑出格子 */
#view-library .lib-xopts.is-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--optw, 12) * .56em + 66px)), 1fr)); }
#view-library .lib-xopts .lib-opt { min-width: 0; }
#view-library .lib-xopts .lib-opt > span:last-child { min-width: 0; overflow-wrap: break-word; }
#view-library .lib-xopts.has-img { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#view-library .lib-xopts.has-img .lib-opt { flex-direction: column; align-items: flex-start; padding: 8px; }
#view-library .lib-opt-img { display: block; max-width: 100%; max-height: 130px; object-fit: contain; border-radius: 6px; background: #fff; }
#view-library .lib-opt.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
#view-library .lib-xpanel .lib-ex-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* 答题卡里一键问 Dot（5.10.3-zhongkao-v2）：没作答时要提示，作答后问为什么 */
#view-library .lib-xdot {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--accent-edge); border-radius: 999px; background: var(--accent-soft-2); color: var(--accent-ink);
  font: 600 13px/1.2 var(--ds-sans, system-ui, sans-serif); cursor: pointer;
}
#view-library .lib-xdot .ic { width: 16px; height: 16px; }
#view-library .lib-xdot:hover { background: var(--accent-soft); }

/* 手机和窄屏：底部答题卡 */
@container reader (max-width: 899.98px) {
  #view-library .lib-reader.is-exam .lib-layout { gap: 20px; }
  #view-library .lib-reader.is-exam .lib-xside { position: sticky; bottom: 0; z-index: 25; gap: 0; }
  #view-library .lib-reader.is-exam .lib-xpanel {
    max-height: min(50vh, 440px); overflow: auto; overscroll-behavior: contain;
    border-radius: 18px 18px 0 0; box-shadow: 0 -10px 28px rgb(15 23 42 / 14%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #view-library .lib-reader.is-exam .lib-xbar { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--hairline-soft); }
  #view-library .lib-reader.is-exam .lib-xpanel:not(.is-open) .lib-xbar { border-bottom-color: transparent; }
  #view-library .lib-reader.is-exam .lib-xpanel:not(.is-open) .lib-xbody { display: none; }
  #view-library .lib-reader.is-exam .lib-xbody { gap: 10px; padding-top: 8px; }
  #view-library .lib-reader.is-exam .lib-xq:not(.is-cur) { display: none; }
  #view-library .lib-reader.is-exam .lib-xchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; scroll-padding-inline: 40px; }
  #view-library .lib-reader.is-exam .lib-xarrow { display: grid; }
  #view-library .lib-reader.is-exam .lib-xchips::-webkit-scrollbar { display: none; }
  #view-library .lib-reader.is-exam .lib-xchip { flex: none; }
}
@media (max-width: 600px) {
  #view-library .lib-reader.is-exam .lib-xside { margin-inline: -16px; }
  #view-library .lib-reader.is-exam .lib-xpanel { border-width: 1px 0 0; }
}
/* 宽屏：右侧栏 */
@container reader (min-width: 900px) {
  #view-library .lib-reader.is-exam .lib-xpanel { border: 0; border-radius: 0; background: transparent; }
  #view-library .lib-reader.is-exam .lib-xbar { position: sticky; top: 0; z-index: 3; padding: 4px 0 8px; border-radius: 0; cursor: default; }
  #view-library .lib-reader.is-exam .lib-xbar-h { display: none; }
  #view-library .lib-reader.is-exam .lib-xbody { display: grid; padding: 0 0 8px; }
  #view-library .lib-reader.is-exam .lib-xrow { position: sticky; top: 50px; z-index: 2; padding: 4px 0 10px; background: var(--lib-card); }
  /* 当前题不再套蓝底框（用户 11-10：「选项背景蓝框尺寸不合适（这个背景蓝框是不是可以不要了）」），只把题号标成强调色 */
  #view-library .lib-reader.is-exam .lib-xq { padding: 4px 0 10px; border: 0; border-radius: 0; background: none; }
  #view-library .lib-reader.is-exam-reading .lib-xq.is-cur .lib-q-no { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
  #view-library .lib-reader.is-exam-cloze .lib-xarrow { display: grid; }
}
/* 答题卡在底部时，手机的 Dot 浮钮让到它上面 */
body.lib-exam-dock .msh-fab { bottom: calc(var(--lib-dock-h, 0px) + 14px + env(safe-area-inset-bottom, 0px)); transition: bottom .2s; }
@media (prefers-reduced-motion: reduce) {
  #view-library .lib-xbar-h .ic, body.lib-exam-dock .msh-fab { transition: none; }
}

/* ==== mobile-shell.css ==== */
/* 学生手机端外壳（5.11-mobile-shell），配合 mobile-shell.js。只在 body.cv-mshell（学生 + ≤767px）时生效。
   颜色一律取设计系统变量（--ds-canvas / --ds-card / --ink / --accent / --ds-brass …），七套皮肤和深色模式自动跟随；
   Dot 的紫到蓝渐变（--msh-dot / --msh-dot2）只用在 Dot 相关的地方。减少动态效果时动画全部关掉。
   选择器前缀 html[data-visual-world] body.cv-mshell[data-view] #appShell 是为了压过 aivia-ds.css / academy-*.css 里同样带 !important 的手机规则。 */
body.cv-mshell {
  --msh-dot: #4b42c4; --msh-dot2: #2f6fe4; --msh-dot-soft: #ece9ff; --msh-dot-ink: #3a32a8;
  --msh-card: var(--ds-card, var(--surface, #fff)); --msh-canvas: var(--ds-canvas, var(--surface-2, #eef0ec));
  --msh-edge: var(--ds-card-edge, var(--hairline, #dfe3dc)); --msh-ink: var(--ink, #16233f); --msh-muted: var(--muted, #66707f);
  --msh-accent: var(--accent, #203d86); --msh-accent-soft: var(--accent-soft, #e4e9f5); --msh-brass: var(--ds-brass, #a07a32); --msh-brass-soft: var(--ds-brass-soft, #f5eedf);
  --msh-good: #2f7a55; --msh-shadow: 0 1px 2px rgb(22 35 63 / 5%), 0 12px 32px rgb(22 35 63 / 7%);
  --cv-mobile-tabbar-clearance: 104px;
}
html.cv-dark body.cv-mshell { --msh-on-accent: var(--ds-canvas, #121822); --msh-dot: #8b84f0; --msh-dot2: #6aa0ff; --msh-dot-soft: #262447; --msh-dot-ink: #c4bfff; --msh-good: #7fcaa2; --msh-shadow: none; }

/* ── 去掉底栏、汉堡抽屉和旧入口 ── */
body.cv-mshell .mobile-tabbar, body.cv-mshell #appShell > .sidebar, body.cv-mshell #menuToggle,
body.cv-mshell #dot-shell-return-entry, body.cv-mshell #avdot-launcher { display: none !important; }

/* ── 顶部：首页不显示旧顶栏（新首页自带问候）；其他页只留「‹ + 页名」一行 ── */
html[data-visual-world] body.cv-mshell.msh-at-home[data-view] #appShell .main #dot-original-topbar.topbar.topbar { display: none !important; }
html[data-visual-world] body.cv-mshell[data-view] #appShell .main #dot-original-topbar.topbar.topbar {
  display: flex !important; align-items: center; gap: 2px; grid-template-columns: none !important; grid-template-areas: none !important; grid-template-rows: none !important;
  position: sticky; top: 0; z-index: 30; min-height: 52px; margin: 0 -16px 8px !important; padding: max(6px, env(safe-area-inset-top, 0px)) 12px 6px !important;
  background: color-mix(in srgb, var(--msh-canvas) 94%, transparent) !important; border: 0 !important; box-shadow: none !important;
}
html[data-visual-world] body.cv-mshell[data-view] #appShell .main #dot-original-topbar :is(.academy-mobile-brand, .top-actions, .academy-home-masthead, .academy-header-scene, #workspaceLevel, #menuToggle, .menu-toggle) { display: none !important; }
html[data-visual-world] body.cv-mshell[data-view] #appShell .main #dot-original-topbar .topbar-title { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; text-align: left !important; gap: 2px; min-width: 0; flex: 1; margin: 0 !important; padding: 0 !important; }
html[data-visual-world] body.cv-mshell[data-view] #appShell .main #dot-original-topbar #viewTitle { flex: 1; min-width: 0; margin: 0 !important; text-align: left !important; font-size: 18px !important; line-height: 1.3 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cv-mshell #viewTitle .vt-long { display: none !important; }
body.cv-mshell #viewTitle .vt-short { display: inline !important; }
.msh-back { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--msh-accent); font: 400 30px/1 var(--font-display, Georgia, serif); padding: 0 0 3px; cursor: pointer; }
.msh-back:active { background: var(--msh-accent-soft); }
body:not(.cv-mshell) .msh-back { display: none !important; }
/* 顶栏吸顶（5.10.3-sticky-back-v1）：上面那条规则写了 sticky，但 academy-theme.css 在窄屏给 .topbar 下了 position:relative !important，
   顶栏一直跟着页面滚走，往下翻以后找不到「‹」（用户 11-11：阅读馆没找到返回按钮，只能左滑）。这里带 !important 压回去。
   读文章（阅读馆）、朗读详情、刷卡三处顶栏标题本来就收起，只剩一条空边，不吸顶；它们各有自己的置顶返回（读物条「‹」、「返回文章列表」、退出刷卡）。 */
html[data-visual-world] body.cv-mshell[data-view]:not([data-view="reading"].cv-read-detail):not(:has(#view-library .lib-reader)):not(:has(.view.active #swipeStage)) #appShell .main #dot-original-topbar.topbar.topbar {
  position: sticky !important; top: 0 !important; z-index: 30 !important; /* academy-panorama.css 给顶栏下了 z-index:auto !important，阅读馆书库的卡片（position:relative）会盖住它 */
}
/* 朗读打开一篇但不是从列表进来的（例如今日打卡）：顶栏还在，练习条（全文测评）吸在顶栏下面，不钻到顶栏底下 */
html[data-visual-world] body.cv-mshell[data-view="reading"]:not(.cv-read-detail) #view-reading .reading-detail-tools { top: var(--cv-topbar-height, 52px) !important; }
/* 做任务时顶部换成任务条 */
html[data-visual-world] body.cv-mshell.cv-taskmode[data-view] #appShell .main #dot-original-topbar.topbar.topbar { display: none !important; }
html[data-ds][data-visual-world] body.cv-mshell.cv-taskmode #appShell .main { padding-top: calc(var(--msh-strip-h, 96px) + 12px) !important; }
/* 页面里自带的「返回学习中心」和顶部返回、任务条 ✕ 重复，手机端藏掉 */
html body.cv-mshell #appShell :is(.workspace-back, #listenFocusBack, #readingFocusBack) { display: none !important; }

/* ── 按下的手感 ── */
.msh-press, .msh-titem, .msh-mod, .msh-ritem, .msh-mrow { transition: transform .12s cubic-bezier(.3,.7,.4,1), background-color .15s, box-shadow .15s, filter .15s; -webkit-tap-highlight-color: transparent; }
.msh-press:active { transform: scale(.96); filter: brightness(.97); }
.msh-titem:active, .msh-ritem:active, .msh-mrow:active { transform: scale(.985); background: var(--msh-accent-soft) !important; }
.msh-mod:active .msh-mi { transform: scale(.93); }

/* ── 新首页 ── */
body.cv-mshell #view-today > :not(#msh-home) { display: none !important; }
body:not(.cv-mshell) #msh-home { display: none !important; }
#msh-home { display: grid; gap: 10px; padding-top: max(10px, env(safe-area-inset-top, 0px)); color: var(--msh-ink); }
#msh-home button { font: inherit; color: inherit; cursor: pointer; }
.msh-hhead { display: flex; align-items: center; gap: 12px; padding: 4px 2px 8px; }
.msh-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--msh-accent) !important; color: var(--msh-on-accent, #fff) !important; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.msh-ava.big { width: 56px; height: 56px; font-size: 20px; }
.msh-greet { flex: 1; min-width: 0; display: grid; gap: 1px; }
.msh-hello { font: 700 24px/1.25 var(--font-display, Georgia, serif); letter-spacing: -.01em; }
.msh-date { font-size: 12.5px; color: var(--msh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-lv { flex: none; border: 1px solid var(--msh-brass) !important; background: transparent !important; color: color-mix(in srgb, var(--msh-brass) 62%, var(--msh-ink)) !important; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.msh-today { background: var(--msh-card); border-radius: 22px; padding: 18px 14px 14px; display: grid; gap: 12px; box-shadow: var(--msh-shadow); border: 1px solid color-mix(in srgb, var(--msh-edge) 60%, transparent); }
.msh-thead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.msh-ttitle { font: 700 21px/1.3 var(--font-display, Georgia, serif); }
.msh-tmeta { font-size: 12.5px; color: var(--msh-muted); font-variant-numeric: tabular-nums; }
.msh-segbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 0 4px; }
.msh-segbar i { height: 4px; border-radius: 2px; background: var(--msh-edge); }
.msh-segbar i.on { background: var(--msh-good); }
.msh-tlist { display: grid; gap: 2px; }
.msh-titem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 14px; background: transparent; text-align: left; min-height: 52px; }
.msh-titem.next { background: var(--msh-canvas); }
.msh-chk { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--msh-edge); display: grid; place-items: center; color: transparent; font-size: 12px; font-weight: 700; }
.msh-titem.done .msh-chk, .msh-chk.on { background: var(--msh-good); border-color: var(--msh-good); color: #fff; }
.msh-tmain { flex: 1; min-width: 0; display: grid; gap: 1px; }
.msh-tmain b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-tmain span { font-size: 12.5px; color: var(--msh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-titem.done b { color: var(--msh-muted); font-weight: 500; }
.msh-hw { font-size: 12px; font-weight: 700; color: var(--msh-brass); flex: none; }
.msh-tnote { margin: 0; padding: 0 4px; font-size: 14px; color: var(--msh-muted); line-height: 1.6; }
.msh-btn, .msh-btn2 { display: block; width: 100%; min-height: 48px; border-radius: 14px; font-size: 15.5px; font-weight: 700; text-align: center; }
.msh-btn { border: 0; background: var(--msh-accent) !important; color: #fff !important; }
/* 5.10.3-audit-fix0-v1（全站体检 T7-01）：深色下 --msh-accent、--msh-good 都是给文字用的浅色，实心底压白字只有 1.86:1，「开始今天」像禁用了。
   主按钮改用按钮动作色（和电脑、平板主按钮同一个变量，深色下白字约 7:1）；完成圆勾、完成闪屏、小结的勾改用深色字。 */
html.cv-dark body.cv-mshell .msh-btn { background: var(--academy-action, var(--msh-accent)) !important; }
/* 小修-20261125：「开始今天」和左上角头像是实心主色底，全站的蓝色内描边聚焦框画在上面看不见（对比度 1:1）。
   改画在按钮外面 2px，和电脑、平板实心按钮的聚焦框同一种（aivia-ds.css「outline-offset: 2px」），深浅色都压在页面底色上 */
html body.cv-mshell :is(.msh-btn, .msh-ava):focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px !important; }
html.cv-dark body.cv-mshell :is(.msh-titem.done .msh-chk, .msh-chk.on, .msh-flash span, .msh-sumok) { color: var(--msh-on-accent) !important; }
.msh-btn2 { border: 1px solid var(--msh-edge) !important; background: var(--msh-card) !important; color: var(--msh-ink) !important; }
.msh-skel { display: block; height: 44px; border-radius: 12px; background: linear-gradient(90deg, var(--msh-canvas) 25%, color-mix(in srgb, var(--msh-edge) 60%, var(--msh-canvas)) 50%, var(--msh-canvas) 75%) 0 0 / 200% 100%; animation: msh-shimmer 1.4s linear infinite; }
.msh-skel.short { width: 60%; }
@keyframes msh-shimmer { to { background-position: -200% 0; } }
.msh-sec { margin: 0; padding: 14px 4px 0; font-size: 12.5px; font-weight: 700; color: var(--msh-muted); letter-spacing: .08em; }
.msh-mods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.msh-mod { display: grid; justify-items: center; gap: 7px; padding: 6px 0; border: 0; background: transparent; border-radius: 16px; font-size: 12.5px; font-weight: 600; color: var(--msh-ink); }
.msh-mi { width: 56px; height: 56px; border-radius: 19px; background: var(--msh-card); display: grid; place-items: center; box-shadow: 0 1px 2px rgb(22 35 63 / 6%), 0 4px 12px rgb(22 35 63 / 5%); border: 1px solid color-mix(in srgb, var(--msh-edge) 50%, transparent); transition: transform .15s; }
.msh-mi .msh-ic { width: 25px; height: 25px; color: var(--msh-accent); }
.msh-resume { background: var(--msh-card); border-radius: 20px; padding: 2px 14px; display: grid; box-shadow: var(--msh-shadow); border: 1px solid color-mix(in srgb, var(--msh-edge) 60%, transparent); }
.msh-ritem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--msh-edge); background: transparent; text-align: left; border-radius: 12px; }
.msh-ritem:first-child { border-top: 0; }
.msh-ri, .msh-li { width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--msh-accent-soft); display: grid; place-items: center; }
.msh-ri .msh-ic, .msh-li .msh-ic { width: 20px; height: 20px; color: var(--msh-accent); }
.msh-rmain, .msh-lmain { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msh-rmain b, .msh-lmain b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-rmain > span, .msh-lmain > span { font-size: 12.5px; color: var(--msh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-rp { display: block; height: 3px; border-radius: 2px; background: var(--msh-edge); overflow: hidden; margin-top: 5px; }
.msh-rp i { display: block; height: 100%; background: var(--msh-accent); }
.msh-chev { color: var(--msh-muted); font-size: 20px; line-height: 1; flex: none; }
.msh-ic { display: block; }

/* ── Dot 浮钮 ── */
.msh-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(140deg, var(--msh-dot), var(--msh-dot2)); box-shadow: 0 10px 24px rgb(60 50 170 / 32%), inset 0 1px 0 rgb(255 255 255 / 25%); display: grid; place-items: center; animation: msh-breathe 3.6s ease-in-out infinite; transition: transform .15s; }
.msh-fab::before { content: ""; width: 20px; height: 8px; border-left: 5px solid #fff; border-right: 5px solid #fff; box-sizing: border-box; animation: msh-blink 4.8s infinite; }
.msh-fab:active { transform: scale(.93); }
.msh-fab[hidden] { display: none !important; }
body:not(.cv-mshell) .msh-fab { display: none !important; }
@keyframes msh-breathe { 50% { box-shadow: 0 10px 28px rgb(60 50 170 / 42%), 0 0 0 8px rgb(91 80 224 / 10%), inset 0 1px 0 rgb(255 255 255 / 25%); } }
@keyframes msh-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.15); } }

/* ── 底部面板（Dot 面板、退出确认） ── */
.msh-layer { position: fixed; inset: 0; z-index: 1200; }
/* 输入法弹出时（mobile-shell.js 的 fitLayer 把弹层对齐到可见区域）：弹层贴着输入法上沿，底部不再留安全区的空白 */
.msh-layer.is-kb .msh-sheet { max-height: 96%; padding-bottom: 10px; border-radius: 20px 20px 0 0; }
.msh-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 18 38 / 18%), rgb(14 18 38 / 46%)); animation: msh-fade .2s ease both; }
.msh-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(88dvh, 92%); overflow-y: auto; overscroll-behavior: contain; background: var(--msh-card); color: var(--msh-ink); border-radius: 24px 24px 0 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px;
  box-shadow: 0 -12px 30px rgb(22 35 63 / 18%); animation: msh-rise .34s cubic-bezier(.2,.9,.3,1.12) both; }
.msh-sheet button { font: inherit; cursor: pointer; }
.msh-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--msh-edge); justify-self: center; display: block; }
.msh-h { font-size: 18px; font-weight: 700; }
.msh-p { margin: 0; font-size: 14.5px; color: var(--msh-muted); line-height: 1.6; }
@keyframes msh-rise { from { transform: translateY(100%); } }
@keyframes msh-fade { from { opacity: 0; } }
@keyframes msh-up { from { opacity: 0; transform: translateY(8px); } }
.msh-dotsheet { padding-top: 0; gap: 12px; border-radius: 26px 26px 0 0;
  background: var(--msh-card); isolation: isolate; }
.msh-dotsheet::before { content: ""; position: sticky; top: 0; display: block; height: 2px; margin: 0 6px -14px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--msh-dot), var(--msh-dot2), transparent); }
.msh-dotsheet > * { animation: msh-up .36s ease both; }
.msh-dotsheet > :nth-child(2) { animation-delay: .05s; } .msh-dotsheet > :nth-child(3) { animation-delay: .1s; } .msh-dotsheet > :nth-child(4) { animation-delay: .15s; } .msh-dotsheet > :nth-child(5) { animation-delay: .2s; } .msh-dotsheet > :nth-child(6) { animation-delay: .24s; }
.msh-dhead { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 0 2px; touch-action: none; cursor: grab; }
.msh-dhead .msh-grab { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; }
.msh-dava { width: 46px; height: 46px; flex: none; position: relative; border-radius: 50%; background: linear-gradient(140deg, var(--msh-dot), var(--msh-dot2)); display: grid; place-items: center; box-shadow: 0 6px 16px rgb(60 50 170 / 30%); }
.msh-dava::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--msh-dot) 35%, transparent); animation: msh-halo 2.4s ease-out infinite; }
.msh-dava i { width: 17px; height: 7px; border-left: 4.5px solid #fff; border-right: 4.5px solid #fff; animation: msh-blink 4.8s infinite; }
@keyframes msh-halo { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.msh-did { flex: 1; min-width: 0; display: grid; gap: 1px; }
.msh-did b { font: 700 19px/1.3 var(--font-display, Georgia, serif); }
.msh-did > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--msh-muted); }
.msh-live { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgb(47 191 113 / 18%); }
.msh-live.off { background: var(--msh-muted); box-shadow: none; }
.msh-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--msh-canvas) !important; color: var(--msh-muted) !important; font-size: 13px; }
.msh-ctx { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 10px; border-radius: 10px; background: var(--msh-dot-soft); color: var(--msh-dot-ink); font-size: 12.5px; }
.msh-ctx span { font-size: 9px; animation: msh-ping 1.8s ease-in-out infinite; }
.msh-ctx b { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes msh-ping { 50% { opacity: .35; } }
.msh-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.msh-mini { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, var(--msh-dot), var(--msh-dot2)); display: grid; place-items: center; }
.msh-mini::before { content: ""; width: 10px; height: 4px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.msh-msg p { margin: 0; padding: 10px 12px; border-radius: 4px 16px 16px 16px; background: var(--msh-canvas); border: 1px solid color-mix(in srgb, var(--msh-dot) 14%, var(--msh-edge)); font-size: 14px; line-height: 1.6; }
.msh-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 36px; }
.msh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid transparent !important; font-size: 13px; font-weight: 600; color: var(--msh-dot-ink) !important;
  background: linear-gradient(var(--msh-card), var(--msh-card)) padding-box, linear-gradient(120deg, var(--msh-dot), var(--msh-dot2)) border-box !important; }
.msh-chip span { font-size: 12px; /* 小修-20261125 原11px */ background: linear-gradient(120deg, var(--msh-dot), var(--msh-dot2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.msh-input { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; border: 1.5px solid transparent;
  background: linear-gradient(var(--msh-card), var(--msh-card)) padding-box, linear-gradient(120deg, color-mix(in srgb, var(--msh-dot) 55%, var(--msh-edge)), color-mix(in srgb, var(--msh-dot2) 55%, var(--msh-edge))) border-box; box-shadow: 0 6px 18px rgb(60 50 170 / 10%); }
.msh-input:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--msh-dot) 18%, transparent), 0 6px 18px rgb(60 50 170 / 12%); }
/* 小修-20261125：输入框聚焦原来只有一圈 18% 的淡光（和白底对比约 1.2:1，几乎看不出）。外框的渐变边线改成满色 Dot 紫→蓝（对白底 ≥4:1），和下面的 Dot 建议按钮同一种边线 */
.msh-input:focus-within { background: linear-gradient(var(--msh-card), var(--msh-card)) padding-box, linear-gradient(120deg, var(--msh-dot), var(--msh-dot2)) border-box; }
html body #msh-dot-input#msh-dot-input { flex: 1; min-width: 0; height: auto !important; min-height: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 16px !important; color: var(--msh-ink) !important; outline: none !important; padding: 6px 0 !important; }
.msh-mic, .msh-send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; }
.msh-mic { background: var(--msh-dot-soft) !important; color: var(--msh-dot-ink) !important; }
.msh-mic .msh-ic { width: 19px; height: 19px; }
.msh-send { background: linear-gradient(140deg, var(--msh-dot), var(--msh-dot2)) !important; color: #fff !important; font-size: 17px; font-weight: 700; }
.msh-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--msh-edge) !important; background: var(--msh-card) !important; color: var(--msh-ink) !important; text-align: left; box-shadow: 0 1px 2px rgb(22 35 63 / 6%), 0 6px 16px rgb(22 35 63 / 6%); }
.msh-arrow { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--msh-canvas); color: var(--msh-accent); font-weight: 700; transition: transform .2s; }
.msh-link:active .msh-arrow { transform: translateX(3px); }

/* ── Dot 对话面板：手机上从底部升起，和浮钮面板同一套样子（回答在面板里出来，往上还有空间追问） ── */
body.cv-mshell #avdot-panel { inset: auto 0 0 0 !important; top: auto !important; width: 100% !important; max-width: 100% !important;
  height: min(86dvh, calc(var(--avdot-height, 100dvh) - 24px)) !important; max-height: min(86dvh, calc(var(--avdot-height, 100dvh) - 24px)) !important;
  border-radius: 26px 26px 0 0 !important; box-shadow: 0 -12px 30px rgb(22 35 63 / 20%) !important; animation: msh-rise .34s cubic-bezier(.2,.9,.3,1.12) both;
  background: var(--surface, #fff) !important; }
body.cv-mshell #avdot-panel::backdrop { background: linear-gradient(180deg, rgb(14 18 38 / 18%), rgb(14 18 38 / 46%)); }
body.cv-mshell #avdot-panel::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--msh-dot), var(--msh-dot2), transparent); }
body.cv-mshell #avdot-panel .avdot-head { padding-top: 16px !important; background: transparent !important; border-bottom-color: color-mix(in srgb, var(--msh-edge) 60%, transparent) !important; }

/* ── 半屏 Dot（5.10.3-dot-sheet-v1）：不是模态框，上面还能看、能滚原文；里面留边距，输入区收成一条
   用户 11-10：「这里的dot直接跳转到全屏的dot界面了」「里面的按钮也太丑了，都充满了」「当前内部的边框撑满了，尤其是下面那个，很丑」
   「这个dot在对话框里面的大圆点 有点过大而且位置太靠边了」 ── */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet {
  inset: auto 0 var(--avdot-bottom, 0px) 0 !important; width: 100% !important; max-width: 100% !important;
  height: min(64dvh, calc(var(--avdot-height, 100dvh) - 16px)) !important; max-height: none !important;
  border: 0 !important; border-top: 1px solid color-mix(in srgb, var(--msh-edge) 70%, transparent) !important; border-radius: 22px 22px 0 0 !important;
  background: var(--msh-card, #fff) !important; box-shadow: 0 -10px 34px rgb(22 35 63 / 16%) !important;
  animation: msh-rise .3s cubic-bezier(.2,.9,.3,1.06) both;
}
html.cv-dark body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet { box-shadow: 0 -10px 34px rgb(0 0 0 / 40%) !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet::before { left: calc(50% - 18px); right: auto; width: 36px; top: 7px; height: 4px; background: color-mix(in srgb, var(--msh-muted) 35%, transparent); }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head { gap: 10px !important; padding: 16px 10px 8px 16px !important; border-bottom: 1px solid color-mix(in srgb, var(--msh-edge) 55%, transparent) !important; background: transparent !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head > .avdot-avatar { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; box-shadow: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head > .avdot-avatar .avdot-eyes { left: 9px; top: 11px; gap: 5px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head > .avdot-avatar .avdot-eyes::before, html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head > .avdot-avatar .avdot-eyes::after { width: 3px; height: 6px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head > .avdot-avatar::after { content: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-heading { padding: 0 !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-heading h2 { font-size: 16px !important; line-height: 1.3 !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-heading p { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head-tools { gap: 2px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head-tools .avdot-button { width: 38px !important; min-width: 38px !important; height: 38px !important; min-height: 38px !important; border-radius: 12px !important; color: var(--msh-muted) !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-min-btn { display: inline-flex !important; }
/* 顶部只留一行（用户 11-10：「dot栏目上方部分不要那么宽，没啥用」）：文章名上面页面里看得到，不再重复 */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-context { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-scroll { flex: 1 1 auto; min-height: 0; padding: 0 16px; overscroll-behavior: contain; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-empty { padding: 14px 2px 8px !important; text-align: left; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-empty h3 { font-size: 18px !important; margin-bottom: 10px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet :is(.avdot-continue, .avdot-voice-hint) { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-notice { font-size: 12px !important; /* 小修-20261125 原11px */ margin-top: 10px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-suggestions { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-suggestion { width: auto !important; min-width: 0 !important; height: auto !important; min-height: 34px !important; padding: 6px 12px !important; border: 1px solid color-mix(in srgb, var(--msh-edge) 85%, transparent) !important; border-radius: 999px !important; background: var(--msh-card) !important; color: var(--msh-ink) !important; font-size: 13px !important; box-shadow: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-suggestion::after { content: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-log { padding: 12px 0 6px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-turn { margin-bottom: 16px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-message { font-size: 15.5px !important; line-height: 1.65 !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-user { width: fit-content; max-width: 86%; margin: 0 0 10px auto !important; padding: 8px 12px !important; border-radius: 16px 16px 6px 16px !important; background: color-mix(in srgb, var(--msh-dot) 10%, var(--msh-card)) !important; font-size: 15px !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-user .avdot-speaker { display: none; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-actions { margin-top: 8px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-bottom { display: grid; gap: 8px; padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important; border: 0 !important; background: transparent !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet :is(#dot-shell-choices, .avdot-preferences, .avdot-remaining) { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-status { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 5.10.3-audit-fix0-v1（全站体检 T5-09）：带 :not([hidden])，没有完整回答时「更简单的英文 / 中文帮助」照电脑一样藏起来，不再一打开就能点、白扣一次。 */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow:not([hidden]) { display: flex !important; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 2px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow::-webkit-scrollbar { display: none; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow .avdot-button { width: auto !important; min-width: 0 !important; height: 30px !important; min-height: 30px !important; padding: 0 12px !important; border: 1px solid color-mix(in srgb, var(--msh-edge) 85%, transparent) !important; border-radius: 999px !important; background: var(--msh-card) !important; color: var(--msh-ink) !important; font-size: 13px !important; white-space: nowrap; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-composer { display: flex !important; align-items: flex-end; gap: 6px; margin: 0 !important; padding: 5px !important; border: 1px solid color-mix(in srgb, var(--msh-edge) 85%, transparent) !important; border-radius: 24px !important; background: var(--msh-canvas) !important; box-shadow: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-composer:focus-within { border-color: color-mix(in srgb, var(--msh-dot) 45%, var(--msh-edge)) !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar { display: contents !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet textarea#avdot-input { order: 1; flex: 1 1 auto; min-width: 0; min-height: 38px !important; max-height: 104px; margin: 0 !important; padding: 9px 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 16px !important; line-height: 1.3 !important; resize: none; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-button { width: 38px !important; min-width: 38px !important; height: 38px !important; min-height: 38px !important; padding: 0 !important; border-radius: 50% !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-mic { order: 0; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-mic > span { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-stop, html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-mute, html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-record-time { order: 2; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-record-time { align-self: center; font-size: 12px; color: var(--msh-muted); }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-send { order: 3; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-retry { justify-self: start; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head { flex-wrap: nowrap !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head-tools { flex: none !important; flex-basis: auto !important; order: 0 !important; margin-left: auto; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet::after { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-level { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-composer { flex-wrap: nowrap !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-composer::before { content: none !important; display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-mic { flex: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar :is(.avdot-stop, .avdot-mute, .avdot-send) { margin: 0 !important; align-self: flex-end; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet.avdot-min .avdot-head > .avdot-avatar { width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; }
/* 收成细条：只留头像、Dot 最后一句和「展开」；答题卡在底部时浮在答题卡上面 */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet.avdot-min {
  left: 10px !important; right: 10px !important; width: auto !important; height: auto !important;
  bottom: calc(var(--avdot-bottom, 0px) + 10px + env(safe-area-inset-bottom, 0px)) !important;
  border: 1px solid color-mix(in srgb, var(--msh-edge) 80%, transparent) !important; border-radius: 999px !important;
  box-shadow: 0 8px 26px rgb(22 35 63 / 20%) !important; animation: msh-rise .24s ease both;
}
html body.cv-mshell.lib-exam-dock #avdot-panel#avdot-panel.avdot-sheet.avdot-min { bottom: calc(var(--lib-dock-h, 0px) + 10px + env(safe-area-inset-bottom, 0px)) !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet.avdot-min::before { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet.avdot-min :is(.avdot-context, .avdot-scroll, .avdot-bottom, .avdot-heading, .avdot-min-btn) { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet.avdot-min .avdot-head { padding: 6px 6px 6px 8px !important; border: 0 !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet.avdot-min .avdot-peek { display: flex !important; flex: 1 1 auto; min-width: 0; align-items: center; gap: 10px; min-height: 38px; padding: 0 4px; border: 0; background: transparent; color: var(--msh-ink); font: inherit; text-align: left; cursor: pointer; }
.avdot-peek-t { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.avdot-peek-go { flex: none; font-size: 13px; font-weight: 700; color: var(--msh-accent); }
body.avdot-sheet-open .msh-fab { display: none !important; }

/* ── 「我的」页 ── */
.msh-me, .msh-summary { position: fixed; inset: 0; z-index: 1100; overflow-y: auto; overscroll-behavior: contain; background: var(--msh-canvas); color: var(--msh-ink); animation: msh-slide .24s ease both; }
@keyframes msh-slide { from { transform: translateX(28%); opacity: .4; } }
.msh-me button, .msh-summary button { font: inherit; cursor: pointer; }
.msh-mehead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 2px; min-height: 52px; padding: max(6px, env(safe-area-inset-top, 0px)) 12px 6px; background: color-mix(in srgb, var(--msh-canvas) 94%, transparent); }
.msh-mehead h1 { margin: 0; font-size: 18px; font-weight: 700; }
.msh-back2 { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--msh-accent); font: 400 30px/1 var(--font-display, Georgia, serif); padding: 0 0 3px; }
.msh-mebody { display: grid; gap: 12px; padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.msh-profile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--msh-card); box-shadow: var(--msh-shadow); }
.msh-pmain { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msh-pmain b { font-size: 17px; }
.msh-pmain span { font-size: 12.5px; color: var(--msh-muted); }
.msh-tier { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--msh-canvas); color: color-mix(in srgb, var(--msh-muted) 55%, var(--msh-ink)); font-size: 12px; font-weight: 700; }
.msh-tier.on { background: var(--msh-brass-soft); color: color-mix(in srgb, var(--msh-brass) 55%, var(--msh-ink)); }
.msh-mgroup { display: grid; border-radius: 18px; background: var(--msh-card); overflow: hidden; box-shadow: 0 1px 2px rgb(22 35 63 / 5%); }
.msh-mrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border: 0; border-top: 1px solid var(--msh-edge); background: transparent; color: var(--msh-ink); text-align: left; }
.msh-mrow:first-child { border-top: 0; }
.msh-mic2 { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--msh-accent-soft); display: grid; place-items: center; }
.msh-mic2 .msh-ic { width: 18px; height: 18px; color: var(--msh-accent); }
.msh-mtext { flex: 1; font-size: 15px; font-weight: 600; }
.msh-mval { font-size: 13px; color: var(--msh-muted); }

/* ── 单词页：学习 · 待复习难词 · 测验 ── */
body:not(.cv-mshell) .msh-wseg { display: none !important; }
.msh-wseg { display: flex; gap: 3px; padding: 3px; margin-bottom: 10px; border-radius: 12px; background: color-mix(in srgb, var(--msh-edge) 55%, var(--msh-canvas)); }
.msh-wseg button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--msh-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.msh-wseg button[aria-selected="true"] { background: var(--msh-card); color: var(--msh-ink); box-shadow: 0 1px 2px rgb(22 35 63 / 10%); }
html[data-ds] body.cv-mshell .vocab-mode-toolbar:not(.msh-sub) { display: none !important; }
html[data-ds] body.cv-mshell .vocab-mode-toolbar.msh-sub [data-vocab-mode="quiz"], html[data-ds] body.cv-mshell .vocab-mode-toolbar.msh-sub [data-vocab-mode="wrong"], html[data-ds] body.cv-mshell .vocab-mode-toolbar.msh-sub [data-vocab-mode="spelling"] { display: none !important; }

/* ── 任务模式：顶部任务条 ── */
.msh-strip { position: fixed; left: 0; right: 0; top: 0; z-index: 70; padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--msh-canvas) 96%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--msh-edge) 70%, transparent); color: var(--msh-ink); display: grid; gap: 6px; }
body:not(.cv-mshell) .msh-strip { display: none !important; }
.msh-strip button { font: inherit; cursor: pointer; }
.msh-srow { display: flex; align-items: center; gap: 8px; }
.msh-sx { width: 38px; height: 38px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--msh-muted); font-size: 17px; }
.msh-stitle { flex: 1; min-width: 0; text-align: center; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-sn { flex: none; font-size: 13px; color: var(--msh-muted); font-variant-numeric: tabular-nums; }
.msh-sdot { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(140deg, var(--msh-dot), var(--msh-dot2)); display: grid; place-items: center; }
.msh-sdot::before { content: ""; width: 13px; height: 5px; border-left: 3.5px solid #fff; border-right: 3.5px solid #fff; box-sizing: border-box; }
.msh-sbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.msh-sbar i { height: 5px; border-radius: 3px; background: var(--msh-edge); }
.msh-sbar i.on { background: var(--msh-good); }
.msh-sbar i.cur { background: var(--msh-accent); }
.msh-snext { justify-self: end; border: 0; background: transparent; color: var(--msh-accent); font-size: 12.5px; font-weight: 600; padding: 2px 4px; }
.msh-flash { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; background: color-mix(in srgb, var(--msh-canvas) 70%, transparent); animation: msh-fade .2s; pointer-events: none; }
.msh-flash div { display: grid; justify-items: center; gap: 6px; padding: 18px 26px; border-radius: 20px; background: var(--msh-card); color: var(--msh-ink); font-weight: 700; box-shadow: 0 10px 30px rgb(22 35 63 / 18%); }
.msh-flash span { width: 46px; height: 46px; border-radius: 50%; background: var(--msh-good); color: #fff; display: grid; place-items: center; font-size: 22px; }
.msh-summary { display: grid; align-content: start; gap: 14px; padding: calc(28px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.msh-sumcard { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border-radius: 22px; background: var(--msh-card); box-shadow: var(--msh-shadow); text-align: center; }
.msh-sumcard h1 { margin: 0; font: 700 22px/1.3 var(--font-display, Georgia, serif); }
.msh-sumcard p { margin: 0; color: var(--msh-muted); font-size: 14px; }
.msh-sumok { width: 58px; height: 58px; border-radius: 50%; background: var(--msh-good); color: #fff; display: grid; place-items: center; font-size: 28px; }
.msh-sumlist { display: grid; border-radius: 18px; background: var(--msh-card); overflow: hidden; }
.msh-sumrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--msh-edge); font-size: 14.5px; }
.msh-sumrow:first-child { border-top: 0; }
.msh-sumrow.todo { color: var(--msh-muted); }
.msh-sumcard.part .msh-sumok { background: color-mix(in srgb, var(--msh-accent, #2f6fe4) 14%, transparent); color: var(--msh-accent, #2f6fe4); }
.msh-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1400; max-width: 86vw; padding: 9px 16px; border-radius: 999px; background: var(--msh-ink); color: var(--msh-card); font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.msh-toast.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .msh-fab, .msh-fab::before, .msh-dava::after, .msh-dava i, .msh-ctx span, .msh-skel, .msh-sheet, .msh-dotsheet > *, .msh-scrim, .msh-me, .msh-summary, .msh-flash, body.cv-mshell #avdot-panel { animation: none !important; }
  .msh-press, .msh-titem, .msh-mod, .msh-ritem, .msh-mrow, .msh-mi, .msh-arrow { transition: none !important; }
}

/* ── 听力、朗读长列表按单元折叠 ── */
html body.cv-mshell #appShell .msh-folded, html body.cv-mshell #appShell .msh-foldon .cv-div-count { display: none !important; }
body.cv-mshell .msh-fold-h { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 14px 14px; border: 0; border-top: 1px solid var(--msh-edge); background: transparent; color: var(--msh-ink); text-align: left; font: inherit; cursor: pointer; }
body.cv-mshell .msh-fold-h[hidden] { display: none !important; }
body.cv-mshell .msh-fold-h .msh-fl { flex: 1; min-width: 0; display: grid; gap: 2px; }
body.cv-mshell .msh-fold-h b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cv-mshell .msh-fold-h small { font-size: 12.5px; color: var(--msh-muted); }
body.cv-mshell :is(.msh-fold-h, .msh-fold-heading) .msh-fchev { flex: none; color: var(--msh-muted); font-size: 20px; line-height: 1; transition: transform .2s ease; }
body.cv-mshell .msh-fold-h[aria-expanded="true"] { background: var(--msh-accent-soft); }
body.cv-mshell .msh-fold-h[aria-expanded="true"] .msh-fchev { transform: rotate(90deg); }
body.cv-mshell .msh-fold-h:active { background: var(--msh-accent-soft); }
html body.cv-mshell #appShell .reading-unit-heading.msh-fold-heading { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 13px 4px !important; border-bottom: 1px solid var(--msh-edge); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html body.cv-mshell #appShell .reading-unit-heading.msh-fold-heading[hidden] { display: none !important; }
html body.cv-mshell #appShell .reading-unit-heading.msh-fold-heading::after { content: '›'; margin-left: 6px; color: var(--msh-muted); font-size: 20px; line-height: 1; transition: transform .2s ease; }
html body.cv-mshell #appShell .reading-unit-heading.msh-fold-heading[aria-expanded="true"]::after { transform: rotate(90deg); }
html body.cv-mshell #appShell .reading-unit-heading .msh-fcount { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--msh-muted); white-space: nowrap; }
html body.cv-mshell #appShell .reading-unit-heading.msh-fold-heading:active { background: var(--msh-accent-soft); }
/* 听力筛选：两个下拉并一行，搜索单独一行 */
html[data-visual-world] body.cv-mshell #appShell #view-listen .academy-catalog-filters { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
html[data-visual-world] body.cv-mshell #appShell #view-listen .academy-catalog-filters > label { display: block !important; min-width: 0; margin: 0 !important; }
html[data-visual-world] body.cv-mshell #appShell #view-listen .academy-catalog-filters > label > span { display: none !important; }
html[data-visual-world] body.cv-mshell #appShell #view-listen .academy-catalog-filters > label > select { width: 100% !important; }
html[data-visual-world] body.cv-mshell #appShell #view-listen .academy-catalog-filters > .listen-search { grid-column: 1 / -1; display: flex !important; }

/* 没做完的练习（app.js 生成，按钮由 app.js 委托处理） */
body.cv-mshell #msh-home .home-practice-resume { display: grid; gap: 12px; margin: 0 0 14px; padding: 16px; border-radius: 20px; background: var(--msh-card); box-shadow: var(--msh-shadow); border: 1px solid var(--msh-edge); color: var(--msh-ink); }
body.cv-mshell #msh-home .home-practice-resume .hpr-tag { color: var(--msh-accent); font-size: 12.5px; font-weight: 700; }
body.cv-mshell #msh-home .home-practice-resume .hpr-copy strong { font-size: 16px; }
body.cv-mshell #msh-home .home-practice-resume .hpr-copy span:not(.hpr-tag) { color: var(--msh-muted); font-size: 13.5px; }
body.cv-mshell #msh-home .home-practice-resume .hpr-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
body.cv-mshell #msh-home .home-practice-resume button { width: auto !important; min-height: 44px; margin: 0 !important; }

/* ── 5.10.3-voice-first-v1（2026-11-09）：不缩放 + Dot 语音优先 ──
   不缩放：mobile-shell.js 在外壳期间给 viewport 加 maximum-scale=1、拦 iOS 双指手势；这里关掉双击放大，
   并把手机上仅有的两个小于 16px 的输入框（Dot 浮钮面板、听力搜索）改成 16px，iOS 点进去就不会放大。 */
body.cv-mshell { touch-action: manipulation; }
html[data-visual-world] body.cv-mshell[data-view] #appShell #listenSearch#listenSearch { font-size: 16px !important; }

/* 浮钮右下角的小麦克风：告诉学生点开就能说话 */
.msh-fab-mic { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--msh-card); color: var(--msh-dot-ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--msh-dot) 30%, transparent), 0 3px 8px rgb(22 35 63 / 18%); pointer-events: none; }
.msh-fab-mic .msh-ic { width: 14px; height: 14px; stroke-width: 2.2; }

/* 浮钮面板：第一眼是「点一下，和 Dot 说话」大按钮，打字收在旁边的键盘按钮里 */
.msh-voice { display: flex; align-items: stretch; gap: 10px; }
.msh-voice[hidden], .msh-input[hidden] { display: none !important; }
.msh-talk { flex: 1; min-width: 0; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border: 0; border-radius: 20px; text-align: left; cursor: pointer;
  background: linear-gradient(130deg, var(--msh-dot), var(--msh-dot2)) !important; color: var(--msh-on-accent, #fff) !important;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--msh-dot) 32%, transparent), inset 0 1px 0 rgb(255 255 255 / 22%); }
.msh-talk-ic { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, currentColor 18%, transparent); }
.msh-talk-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 45%, transparent); animation: msh-talk-ring 2.4s ease-out infinite; }
@keyframes msh-talk-ring { 0% { transform: scale(.86); opacity: .9; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
.msh-talk-ic .msh-ic { width: 22px; height: 22px; stroke-width: 2; }
.msh-talk-t { display: grid; gap: 2px; min-width: 0; }
.msh-talk-t b { font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
.msh-talk-t span { font-size: 12.5px; line-height: 1.4; opacity: .88; }
.msh-kbd { flex: none; width: 52px; border: 0; border-radius: 18px; display: grid; place-items: center; cursor: pointer;
  background: var(--msh-dot-soft) !important; color: var(--msh-dot-ink) !important; }
.msh-kbd .msh-ic { width: 22px; height: 22px; }
@media (max-width: 340px) { .msh-talk-t span { display: none; } }
@media (prefers-reduced-motion: reduce) { .msh-talk-ic::after { animation: none !important; opacity: 0; } }

/* 帮助与反馈（5.10.3-help-feedback-v1）：有新回复的小红点（侧边栏、设置卡片、手机「我的」都用它） */
.hf-nav-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #d64535; box-shadow: 0 0 0 2px var(--surface, #fff); vertical-align: 1px; }
.hf-nav-dot[hidden] { display: none !important; }
.msh-mrow .msh-hfdot { margin: 0 4px 0 auto; }

/* ── 5.10.3-wall-v2：「我的」二级页和级别提示 ──────────────────────────────────────
   用户 11-10：「我建议是只从头像处进入……返回还是返回到上一级菜单……把菜单整体的风格都做成现在点击头像进去的那个样式」。
   设置抽屉在手机外壳里（#settingsDrawer[data-phone-page]）改成「我的」同款整页：‹ + 标题、分组白卡片，盖在「我的」上面。 */
html body.cv-mshell #settingsDrawer.settings-drawer[data-phone-page] {
  position: fixed !important; inset: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  width: auto !important; max-width: none !important; height: auto !important; max-height: none !important;
  z-index: 1150 !important; transform: none !important; transition: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--msh-canvas) !important; color: var(--msh-ink);
}
html body.cv-mshell.settings-open #settingsDrawer.settings-drawer[data-phone-page] { animation: msh-slide .24s ease both; }
html body.cv-mshell #settingsScrim:has(~ #settingsDrawer[data-phone-page]) { display: none !important; }
html body.cv-mshell #settingsDrawer[data-phone-page] .msp-head {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 2px; min-height: 52px;
  padding: max(6px, env(safe-area-inset-top, 0px)) 12px 6px; background: color-mix(in srgb, var(--msh-canvas) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html body.cv-mshell #settingsDrawer[data-phone-page] .msp-head h1 { margin: 0; font-size: 18px; font-weight: 700; color: var(--msh-ink); }
html body.cv-mshell #settingsDrawer[data-phone-page] .msp-back {
  width: 40px; height: 40px; min-height: 40px !important; flex: none; border: 0 !important; border-radius: 12px !important;
  background: transparent !important; box-shadow: none !important; color: var(--msh-accent) !important;
  font: 400 30px/1 var(--font-display, Georgia, serif) !important; padding: 0 0 3px !important;
}
html body.cv-mshell #settingsDrawer.settings-drawer[data-phone-page] .drawer-body.msp-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: block !important;
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) !important;
}
html body.cv-mshell #settingsDrawer[data-phone-page] .msp-panel { display: grid; gap: 12px; margin-bottom: 12px; }
html body.cv-mshell #settingsDrawer.settings-drawer[data-phone-page] .settings-card.settings-card {
  margin: 0 !important; padding: 16px !important; border: 0 !important; border-radius: 18px !important;
  background: var(--msh-card) !important; box-shadow: 0 1px 2px rgb(22 35 63 / 5%) !important;
}
html.cv-dark body.cv-mshell #settingsDrawer.settings-drawer[data-phone-page] .settings-card.settings-card { box-shadow: none !important; }
html body.cv-mshell #settingsDrawer[data-phone-page] .settings-card .section-head h3 { font-size: 16px; }
html body.cv-mshell #settingsDrawer[data-phone-page] .settings-row { padding-inline: 0 !important; }
html body.cv-mshell #settingsDrawer[data-phone-page] details.settings-card > summary { min-height: 44px; display: flex; align-items: center; }

/* 首页右上角级别：点一下只出提示，2 秒后自己收起 */
.msh-lvtip {
  position: fixed; z-index: 1200; max-width: 250px; padding: 9px 12px; border-radius: 12px;
  background: #16233f; color: #fff; font-size: 13px; line-height: 1.5; box-shadow: 0 8px 24px rgb(15 25 48 / 24%);
  animation: msh-tipin .18s ease both; pointer-events: auto;
}
.msh-lvtip::before { content: ""; position: absolute; top: -5px; right: 18px; width: 10px; height: 10px; background: inherit; border-radius: 2px; transform: rotate(45deg); }
.msh-lvtip b { font-weight: 700; color: #f2d58c; }
@keyframes msh-tipin { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .msh-lvtip, html body.cv-mshell.settings-open #settingsDrawer.settings-drawer[data-phone-page] { animation: none !important; } }
/* 5.10.3-assign-done-v1：「今天完成」卡片下面两个按钮并排（看已交作业 / 再学一点） */
.msh-tbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.msh-tbtns .msh-btn2 { margin: 0; }

/* ==== mobile-wallpaper.css ==== */
/* 学生手机端成套壁纸（5.10.3-mobile-wallpaper-v1，2026-11-09）
   用户原话：「我们的壁纸在手机端是否可以有适当的展示……针对各个壁纸主题定制各个页面的成套壁纸。（电脑和平板可以保持以前的不变）」
   「全部六套做齐一起接入。另外到时接入的时候，你要注意背景上文字的颜色，要能够看清楚文字。」
   壁纸由 Codex 按 CC-AV1-025 生成：6 套主题（学院、书房、银杏、海边、天文台、多彩；极简没有壁纸）× 7 个页面 × 白天/夜晚，
   1080×2340，放 assets/academy/mobile/<主题>/<页面>-<day|night>-v1.webp（换内容就换文件名，assets/academy/ 按 7 天缓存）。
   只在学生手机外壳（body.cv-mshell）里生效：接管设计系统的两层背景（白天 body::before、深色 .academy-night-canvas），
   壁纸固定在页面后面、上部场景清楚，往下融进主题底色；文字清楚靠三样：
     ① 顶部薄薄一层底色（状态栏和标题行）、场景下沿开始逐渐盖上底色；
     ② 直接压在背景上的字（问候、日期、小标题、页面标题）加一圈和底色同色的柔光；
     ③ 首页卡片半透明磨砂，透出景但字还在卡片上。
   页面对应：home=首页和未列出的页面；words=单词/练习/测验/待复习难词/口语/专项；listen=听力；reading=朗读；writing=写作；library=阅读馆；me=「我的」及成长、作业、会员、邀请、额度、设置。 */

/* ── 满版壁纸 v2（5.10.3-wall-v2 起，CC-AV1-036）──────────────────────────────────────
   v2 是满版构图（整页都是画，卡片磨砂浮在上面）；v1 是上部场景、下部留白。每张图一个文件名，换成 v2 只改那一处「-v1」为「-v2」。
   已全部换成 v2：6 套主题 × 7 个页面 × 白天/夜晚共 84 张（CC-AV1-036 第一期 5 张 + 第二期 79 张）。 */
html[data-ds-skin="academy"] body.cv-mshell { --msh-wall-day: url("assets/academy/mobile/academy/home-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/home-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell:is([data-view="study"],[data-view="practice"],[data-view="quiz"],[data-view="wrong"],[data-view="speaking"],[data-view="training"]) { --msh-wall-day: url("assets/academy/mobile/academy/words-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/words-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell:is([data-view="listen"]) { --msh-wall-day: url("assets/academy/mobile/academy/listen-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/listen-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell:is([data-view="reading"]) { --msh-wall-day: url("assets/academy/mobile/academy/reading-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/reading-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell:is([data-view="writing"]) { --msh-wall-day: url("assets/academy/mobile/academy/writing-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/writing-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell:is([data-view="library"]) { --msh-wall-day: url("assets/academy/mobile/academy/library-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/library-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell:is([data-view="growth"],[data-view="assignments"],[data-view="member"],[data-view="referral"],[data-view="quota"],[data-view="settings"]) { --msh-wall-day: url("assets/academy/mobile/academy/me-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/academy/me-night-v2.webp"); }
html[data-ds-skin="academy"] body.cv-mshell { --msh-me-day: url("assets/academy/mobile/academy/me-day-v2.webp"); --msh-me-night: url("assets/academy/mobile/academy/me-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell { --msh-wall-day: url("assets/academy/mobile/library/home-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/home-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell:is([data-view="study"],[data-view="practice"],[data-view="quiz"],[data-view="wrong"],[data-view="speaking"],[data-view="training"]) { --msh-wall-day: url("assets/academy/mobile/library/words-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/words-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell:is([data-view="listen"]) { --msh-wall-day: url("assets/academy/mobile/library/listen-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/listen-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell:is([data-view="reading"]) { --msh-wall-day: url("assets/academy/mobile/library/reading-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/reading-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell:is([data-view="writing"]) { --msh-wall-day: url("assets/academy/mobile/library/writing-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/writing-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell:is([data-view="library"]) { --msh-wall-day: url("assets/academy/mobile/library/library-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/library-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell:is([data-view="growth"],[data-view="assignments"],[data-view="member"],[data-view="referral"],[data-view="quota"],[data-view="settings"]) { --msh-wall-day: url("assets/academy/mobile/library/me-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/library/me-night-v2.webp"); }
html[data-ds-skin="library"] body.cv-mshell { --msh-me-day: url("assets/academy/mobile/library/me-day-v2.webp"); --msh-me-night: url("assets/academy/mobile/library/me-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell { --msh-wall-day: url("assets/academy/mobile/ginkgo/home-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/home-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell:is([data-view="study"],[data-view="practice"],[data-view="quiz"],[data-view="wrong"],[data-view="speaking"],[data-view="training"]) { --msh-wall-day: url("assets/academy/mobile/ginkgo/words-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/words-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell:is([data-view="listen"]) { --msh-wall-day: url("assets/academy/mobile/ginkgo/listen-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/listen-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell:is([data-view="reading"]) { --msh-wall-day: url("assets/academy/mobile/ginkgo/reading-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/reading-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell:is([data-view="writing"]) { --msh-wall-day: url("assets/academy/mobile/ginkgo/writing-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/writing-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell:is([data-view="library"]) { --msh-wall-day: url("assets/academy/mobile/ginkgo/library-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/library-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell:is([data-view="growth"],[data-view="assignments"],[data-view="member"],[data-view="referral"],[data-view="quota"],[data-view="settings"]) { --msh-wall-day: url("assets/academy/mobile/ginkgo/me-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/ginkgo/me-night-v2.webp"); }
html[data-ds-skin="ginkgo"] body.cv-mshell { --msh-me-day: url("assets/academy/mobile/ginkgo/me-day-v2.webp"); --msh-me-night: url("assets/academy/mobile/ginkgo/me-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell { --msh-wall-day: url("assets/academy/mobile/seaside/home-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/home-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell:is([data-view="study"],[data-view="practice"],[data-view="quiz"],[data-view="wrong"],[data-view="speaking"],[data-view="training"]) { --msh-wall-day: url("assets/academy/mobile/seaside/words-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/words-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell:is([data-view="listen"]) { --msh-wall-day: url("assets/academy/mobile/seaside/listen-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/listen-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell:is([data-view="reading"]) { --msh-wall-day: url("assets/academy/mobile/seaside/reading-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/reading-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell:is([data-view="writing"]) { --msh-wall-day: url("assets/academy/mobile/seaside/writing-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/writing-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell:is([data-view="library"]) { --msh-wall-day: url("assets/academy/mobile/seaside/library-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/library-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell:is([data-view="growth"],[data-view="assignments"],[data-view="member"],[data-view="referral"],[data-view="quota"],[data-view="settings"]) { --msh-wall-day: url("assets/academy/mobile/seaside/me-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/seaside/me-night-v2.webp"); }
html[data-ds-skin="seaside"] body.cv-mshell { --msh-me-day: url("assets/academy/mobile/seaside/me-day-v2.webp"); --msh-me-night: url("assets/academy/mobile/seaside/me-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell { --msh-wall-day: url("assets/academy/mobile/observatory/home-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/home-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell:is([data-view="study"],[data-view="practice"],[data-view="quiz"],[data-view="wrong"],[data-view="speaking"],[data-view="training"]) { --msh-wall-day: url("assets/academy/mobile/observatory/words-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/words-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell:is([data-view="listen"]) { --msh-wall-day: url("assets/academy/mobile/observatory/listen-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/listen-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell:is([data-view="reading"]) { --msh-wall-day: url("assets/academy/mobile/observatory/reading-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/reading-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell:is([data-view="writing"]) { --msh-wall-day: url("assets/academy/mobile/observatory/writing-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/writing-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell:is([data-view="library"]) { --msh-wall-day: url("assets/academy/mobile/observatory/library-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/library-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell:is([data-view="growth"],[data-view="assignments"],[data-view="member"],[data-view="referral"],[data-view="quota"],[data-view="settings"]) { --msh-wall-day: url("assets/academy/mobile/observatory/me-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/observatory/me-night-v2.webp"); }
html[data-ds-skin="observatory"] body.cv-mshell { --msh-me-day: url("assets/academy/mobile/observatory/me-day-v2.webp"); --msh-me-night: url("assets/academy/mobile/observatory/me-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell { --msh-wall-day: url("assets/academy/mobile/vivid/home-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/home-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell:is([data-view="study"],[data-view="practice"],[data-view="quiz"],[data-view="wrong"],[data-view="speaking"],[data-view="training"]) { --msh-wall-day: url("assets/academy/mobile/vivid/words-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/words-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell:is([data-view="listen"]) { --msh-wall-day: url("assets/academy/mobile/vivid/listen-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/listen-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell:is([data-view="reading"]) { --msh-wall-day: url("assets/academy/mobile/vivid/reading-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/reading-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell:is([data-view="writing"]) { --msh-wall-day: url("assets/academy/mobile/vivid/writing-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/writing-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell:is([data-view="library"]) { --msh-wall-day: url("assets/academy/mobile/vivid/library-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/library-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell:is([data-view="growth"],[data-view="assignments"],[data-view="member"],[data-view="referral"],[data-view="quota"],[data-view="settings"]) { --msh-wall-day: url("assets/academy/mobile/vivid/me-day-v2.webp"); --msh-wall-night: url("assets/academy/mobile/vivid/me-night-v2.webp"); }
html[data-ds-skin="vivid"] body.cv-mshell { --msh-me-day: url("assets/academy/mobile/vivid/me-day-v2.webp"); --msh-me-night: url("assets/academy/mobile/vivid/me-night-v2.webp"); }

/* 遮罩（5.10.3-dot-sheet-v1 改）：整幅画从顶到底都露出来，只罩一层很淡、越往下略浓的底色（画本身下半截就是留白）。
   用户 11-10：「壁纸是不是尽量能让用户看到整体的画风和质感」，方案选「按试验版做」。原来顶部罩 58%、64% 以下全是底色。 */
body.cv-mshell {
  --msh-veil-c: var(--ds-canvas, #eef0ec);
  --msh-veil: linear-gradient(180deg, color-mix(in srgb, var(--msh-veil-c) 8%, transparent) 0, color-mix(in srgb, var(--msh-veil-c) 4%, transparent) 22%,
    color-mix(in srgb, var(--msh-veil-c) 18%, transparent) 50%, color-mix(in srgb, var(--msh-veil-c) 34%, transparent) 78%, color-mix(in srgb, var(--msh-veil-c) 42%, transparent) 100%);
}
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell::before {
  background: var(--msh-veil), var(--msh-wall-day, none) center top / cover no-repeat, var(--msh-veil-c) !important;
}
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell .academy-night-canvas {
  background: var(--msh-veil), var(--msh-wall-night, none) center top / cover no-repeat, var(--msh-veil-c) !important;
}
/* 「我的」页是盖在上面的整页，用自己的 me 壁纸（滚动时壁纸不动） */
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell .msh-me {
  background: var(--msh-veil), var(--msh-me-day, none) center top / cover no-repeat, var(--msh-veil-c) !important; background-attachment: local, scroll, scroll !important;
}
/* 5.10.3-wall-v2：「我的」里的设置二级页（学习级别 / 外观与主题 / 账号与设置）用同一张「我的」壁纸 */
html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell #settingsDrawer.settings-drawer[data-phone-page] {
  background: var(--msh-veil), var(--msh-me-day, none) center top / cover no-repeat, var(--msh-veil-c) !important;
}
html.cv-dark[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell #settingsDrawer.settings-drawer[data-phone-page] {
  background: var(--msh-veil), var(--msh-me-night, none) center top / cover no-repeat, var(--msh-veil-c) !important;
}
html.cv-dark[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell .msh-me {
  background: var(--msh-veil), var(--msh-me-night, none) center top / cover no-repeat, var(--msh-veil-c) !important;
}

/* 直接压在背景上的字：一圈和底色同色的柔光 */
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell :is(.msh-hello, .msh-date, .msh-sec, .msh-mod > span:last-child, .topbar-title, .topbar-title *, .msh-mehead, .msh-mehead *) {
  text-shadow: 0 0 2px var(--msh-veil-c), 0 0 8px var(--msh-veil-c), 0 0 16px color-mix(in srgb, var(--msh-veil-c) 80%, transparent);
}

/* 首页卡片：半透明磨砂，透出景，字仍在卡片上 */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #msh-home :is(.msh-today, .msh-resume, .msh-mi) {
    background: color-mix(in srgb, var(--msh-card) 80%, transparent) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  }
}


/* 局部遮罩：直接压在景上的几处字后面垫一片和底色同色的柔光（按 11-09 逐页对比度检查找出来的） */
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell :is(#msh-home .msh-sec, #msh-home .msh-greet, #view-listen .listen-list-card > .section-head, #view-writing .writing-history-jump) {
  position: relative; isolation: isolate;
}
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #msh-home .msh-sec { width: fit-content; }
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell :is(#msh-home .msh-sec, #msh-home .msh-greet, #view-listen .listen-list-card > .section-head, #view-writing .writing-history-jump)::before {
  content: ""; position: absolute; z-index: -1; inset: -4px -10px; border-radius: 14px; pointer-events: none;
  background: color-mix(in srgb, var(--msh-veil-c) 92%, transparent);
  filter: blur(7px);
}
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #msh-home .msh-sec::before { inset: 10px -10px -4px -6px; }
/* 首页右上角级别标签：磨砂底 */
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #msh-home .msh-lv { background: color-mix(in srgb, var(--msh-card) 78%, transparent) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* 这几处原来是浅灰字（在纯底色上也只有约 4.4:1），压在壁纸上时调深一点 */
html[data-ds]:not([data-ds-skin="minimal"]):not(.cv-dark) body.cv-mshell :is(#msh-home .msh-sec, #msh-home .msh-date, #view-listen .listen-list-card > .section-head, #view-listen .listen-list-card > .section-head *, #view-listen #listenListCount) {
  color: color-mix(in srgb, var(--msh-muted, #66707f) 45%, var(--msh-ink, #16233f)) !important;
}
/* 单词页「精学 / 刷卡 / 练习」一排：没选中的按钮原来是透明底，压在窗景上发虚，整排加磨砂底 */
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #appShell .words-mode-toggle.vocab-mode-toolbar {
  background: color-mix(in srgb, var(--msh-card) 80%, transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border-radius: 16px;
}

/* ── 子页面标题栏（5.10.3-dot-sheet-v1 起；5.10.3-wall-compact-v1 收紧）────────────────────
   单词（选范围）、阅读馆书库首页、听力列表、朗读列表、难词本：标题栏透明压在壁纸上，页面滚动后变磨砂
   （mobile-shell.js 在 <html> 上记 data-msh-scrolled）。
   dot-sheet-v1 曾在标题下面空出 min(24vh, 200px) 露出整幅景；用户 11-10 指出手机本来就小，内容被推得太靠下，
   wall-compact-v1 起不再留这段，内容紧贴标题，壁纸只作整页背景从磨砂卡片后透出。
   5.10.3-weak-map-v1：用户 11-12「写作训练、单词训练上方的那个返回按钮的背景上来就是白色的（手机端）而另外两个模块就有上滑渐变白色的质感」——
   单词原来只在「选范围」那一步透明，选好范围进单词页就回到 94% 实底；写作页没登记。现在单词页（刷卡舞台除外）和写作页都和听力、朗读一样。 */
html[data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode):is(
  [data-view="study"]:not(:has(.view.active #swipeStage)),
  [data-view="writing"],
  [data-view="library"]:has(#lib-picker.is-home),
  [data-view="listen"]:not(:has(#view-listen .reading-focused)),
  [data-view="reading"]:not(.cv-read-detail):not(:has(#view-reading .reading-focused)),
  [data-view="wrong"]) #appShell .main #dot-original-topbar.topbar.topbar {
  background: transparent !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .2s;
}
html[data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode):is(
  [data-view="study"]:not(:has(.view.active #swipeStage)),
  [data-view="writing"],
  [data-view="library"]:has(#lib-picker.is-home),
  [data-view="listen"]:not(:has(#view-listen .reading-focused)),
  [data-view="reading"]:not(.cv-read-detail):not(:has(#view-reading .reading-focused)),
  [data-view="wrong"]) #appShell .main #dot-original-topbar #viewTitle { font-size: 22px !important; }
html[data-msh-scrolled][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell[data-view] #appShell .main #dot-original-topbar.topbar.topbar,
html[data-msh-scrolled][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode):is(
  [data-view="study"]:not(:has(.view.active #swipeStage)),
  [data-view="writing"],
  [data-view="library"]:has(#lib-picker.is-home),
  [data-view="listen"]:not(:has(#view-listen .reading-focused)),
  [data-view="reading"]:not(.cv-read-detail):not(:has(#view-reading .reading-focused)),
  [data-view="wrong"]) #appShell .main #dot-original-topbar.topbar.topbar {
  /* 5.10.3-sticky-back-v1：顶栏真正吸顶后，滚动时下面的内容从它后面经过；72% 时字叠字，改 88%。
     第二个选择器：上面「透明压在壁纸上」那条特异度更高，滚动后的磨砂原来在这五页从没生效（顶栏滚走了看不出来）。 */
  background: color-mix(in srgb, var(--msh-canvas) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
/* 景下面的大卡片：磨砂半透明，透出画的颜色和质感（里面的小卡片照旧） */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell :is(#view-study .cv-word-scope-chooser, #lib-picker.lib-pk.is-home, #view-listen .listen-catalog-guide, #view-wrong .cvw-head, #view-reading .reading-shell > .reading-workspace) {
    background: color-mix(in srgb, var(--msh-card) 76%, transparent) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  }
}

/* ── 磨砂卡片（5.10.3-wall-v2）──────────────────────────────────────────────────────
   用户 11-10 看过满版壁纸效果对比后选「画全套，加磨砂卡片」。满版壁纸上，各子页的大卡片改成半透明磨砂，画从卡片后透出颜色；
   卡片里面的一行行再淡一点、不再叠第二层模糊。读文章、做题、任务模式不在这里（正文保持实底）。
   透明度 --msh-frost（大卡片）/ --msh-frost-in（里面的行），对比度按最坏的壁纸像素核过（见工单 手机壁纸满版/）。 */
body.cv-mshell { --msh-frost: 80%; --msh-frost-in: 58%; --msh-frost-ctl: 88%; }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  /* 前缀 #appShell .main：aivia-ds.css 的玻璃卡片规则带两个 id（#appShell + 视图 id），这里要压过它 */
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode) #appShell .main :is(
    #view-listen .book-audio-list, #view-listen .listen-catalog-guide, #view-listen .listen-mode-card,
    #view-reading .reading-workspace, #view-reading .reading-mode-tabs,
    #lib-picker.lib-pk.is-home,
    #view-study .cv-word-scope-chooser, #view-study .word-card,
    #view-wrong .cvw-head, #view-wrong section.surface-card,
    #view-growth section.surface-card, #view-growth .cv-ms-focus,
    #view-assignments section.assignment-archive-list-card, #view-assignments details.assignment-archive-list-card,
    #view-member .member-beneficiary, #view-member .member-value-card
  ),
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell :is(.msh-me .msh-profile, .msh-me .msh-mgroup, #settingsDrawer.settings-drawer[data-phone-page] .settings-card.settings-card) {
    background: color-mix(in srgb, var(--msh-card) var(--msh-frost), transparent) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.1) !important; backdrop-filter: blur(16px) saturate(1.1) !important;
  }
  /* 大卡片里面的行：再淡一点，不叠第二层模糊；选中项保持原来的高亮 */
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode) #appShell .main :is(
    #view-listen .book-audio-list .msh-fold-h,
    #view-reading .reading-workspace .reading-task-card:not(.active),
    #view-reading .reading-workspace .reading-detail .reading-card,
    #lib-picker.lib-pk.is-home :is(.lib-pk-search, .lib-pk-tabs, .lib-pk-more),
    #view-study .cv-word-scope-chooser .cv-word-scope-option,
    #view-wrong .cvw-intro,
    #view-assignments .assignment-archive-list-card .empty-state-card
  ) {
    background: color-mix(in srgb, var(--msh-card) var(--msh-frost-in), transparent) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  /* 直接压在画上的输入框、下拉框：几乎实底，好读 */
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode) #appShell .main :is(
    #view-listen :is(.listen-search, select), #view-reading :is(.reading-catalog-search, select), #view-assignments :is(.assignment-find-input, select)
  ) {
    background: color-mix(in srgb, var(--msh-card) var(--msh-frost-ctl), transparent) !important;
  }
}
/* 5.10.3-sync-merge-v1：CC-AV1-040 验收发现单词页主词卡（article.word-card）和朗读练习面板（.reading-card）还是实底。
   词卡归入上面的大卡片；朗读练习面板套在已经磨砂的 reading-workspace 里面，按「里面的行」处理（58%、不再叠模糊），
   两层叠起来约九成实底，长句照样好读。 */
/* 对比度核对后的个别调整（5.10.3-wall-v2，壁纸最坏像素下文字 ≥ 4.5:1）：
   听力「从这里开始」卡片里是蓝色小字，卡片再实一点；成长档案进度数值、「我的」Member 标签在深色下原来就偏暗（实底也不到 4.5）。 */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell:not(.cv-taskmode) #appShell .main #view-listen .listen-catalog-guide.listen-catalog-guide {
    background: color-mix(in srgb, var(--msh-card) 90%, transparent) !important;
  }
}
html.cv-dark body.cv-mshell #view-growth .cv-ms-focus-value { color: #b9b0ff !important; }
html.cv-dark body.cv-mshell .msh-tier.on { background: color-mix(in srgb, var(--msh-brass) 24%, var(--msh-card)); color: color-mix(in srgb, var(--msh-brass) 30%, var(--msh-ink)); }

/* ==== dot-voice.css ==== */
/* Dot 语音优先（5.10.3-voice-first-v1，2026-11-09 用户要求「三端最好都适当凸显语音交流的优先性」）
   作用于三端共用的 Dot 对话面板 #avdot-panel（浮钮面板、手机底部弹层、电脑「Dot 带我学」里的嵌入面板）和顶栏 Dot 头像。
   - 麦克风是第一行的大按钮「点一下，和 Dot 说话」；录音时变红、外圈呼吸，文字换成「说完了，点这里发送」。
   - 打字框、静音、发送退到第二行。只改排版：按钮、事件和录音流程都还是 dot-companion.js 原来那一套。
   - Dot 说完提示「轮到你了」时，麦克风外圈闪几下（dot-companion.js 加 .avdot-mic-cue，8 秒后去掉）。
   选择器写两个 #avdot-panel，是为了压过 aivia-ds.css 里 html[data-ds][data-visual-world] body #avdot-panel … !important 的规则。 */
html body #avdot-panel#avdot-panel {
  --avv-dot: var(--ds-dot, var(--avdot-purple, #544bc4));
  --avv-deep: var(--ds-dot-deep, var(--avdot-purple-dark, #3a328f));
  --avv-on: #fff;
  --avv-rec: #d63c3c; --avv-rec-deep: #b02828;
}

/* 面板空的时候：标题下面一句话说清楚怎么和 Dot 说话 */
html body #avdot-panel#avdot-panel .avdot-empty h3 { margin-bottom: 8px !important; }
html body #avdot-panel#avdot-panel .avdot-voice-hint { margin: 0 0 22px; max-width: 32ch; color: var(--muted, #5b6676); font-size: 14px; line-height: 1.6; }
html body #avdot-panel#avdot-panel.avdot-inline .avdot-voice-hint { margin-inline: auto; text-align: center; }

/* 排版：第一行 麦克风（+ 停止），第二行 静音 · 打字框 · 发送 */
html body #avdot-panel#avdot-panel .avdot-composer { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 0 8px; padding: 10px !important; }
html body #avdot-panel#avdot-panel .avdot-composer::before { content: ""; order: 4; flex: 0 0 100%; height: 0; }
html body #avdot-panel#avdot-panel .avdot-toolbar { display: contents !important; }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic {
  order: 1; position: relative; flex: 1 1 calc(100% - 64px); min-width: 0; width: auto !important;
  height: 54px !important; min-height: 54px !important; margin: 0 0 8px !important; padding: 0 18px !important;
  justify-content: center; gap: 10px; border-radius: 999px !important;
  font-size: 16px !important; font-weight: 700 !important; letter-spacing: .01em !important;
  color: var(--avv-on) !important; background: linear-gradient(130deg, var(--avv-dot), var(--avv-deep)) !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--avv-dot) 30%, transparent), inset 0 1px 0 rgb(255 255 255 / 20%) !important;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: transform 120ms ease, filter 150ms ease, background-color 150ms ease !important;
}
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic svg { width: 22px; height: 22px; }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic:hover:not(:disabled) { filter: brightness(1.07); }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic:active:not(:disabled) { transform: scale(.98); }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic:disabled { opacity: .5; box-shadow: none !important; }
/* 学生已经开始打字：麦克风退成浅色，发送是主按钮 */
html body #avdot-panel#avdot-panel .avdot-composer.avdot-has-text .avdot-toolbar .avdot-mic:not([aria-pressed="true"]) {
  color: var(--avv-deep) !important; background: color-mix(in srgb, var(--avv-dot) 12%, var(--surface, #fff)) !important; box-shadow: none !important;
}
/* 录音中 */
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic[aria-pressed="true"] {
  color: #fff !important; background: linear-gradient(130deg, var(--avv-rec), var(--avv-rec-deep)) !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--avv-rec) 30%, transparent) !important;
}
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic[aria-pressed="true"]::after { animation: avv-live 1.5s ease-out infinite; --avv-ring: var(--avv-rec); }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic.avdot-mic-cue:not(:disabled):not([aria-pressed="true"])::after { animation: avv-live 1.4s ease-out 4; --avv-ring: var(--avv-dot); }
@keyframes avv-live { 0% { opacity: .6; box-shadow: 0 0 0 0 var(--avv-ring); } 100% { opacity: 0; box-shadow: 0 0 0 14px var(--avv-ring); } }

html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-stop { order: 2; flex: none; width: 54px !important; height: 54px !important; margin: 0 0 8px !important; border-radius: 999px !important;
  background: var(--surface-2, #f2f4f8) !important; color: var(--ink-2, #334767) !important; }
html body #avdot-panel#avdot-panel .avdot-record-time { order: 3; flex: 0 0 100% !important; margin: -2px 0 8px; text-align: center; color: var(--muted, #5b6676); font-size: 12px; }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mute { order: 5; flex: none; align-self: center; border-radius: 999px !important; }
html body #avdot-panel#avdot-panel textarea#avdot-input {
  order: 6; flex: 1 1 0; min-width: 0; width: auto !important; height: 44px; min-height: 44px !important; max-height: 132px; margin: 0 !important;
  padding: 11px 14px !important; border-radius: 16px !important; resize: none !important; overflow-y: auto;
  background: color-mix(in srgb, var(--avv-dot) 5%, var(--surface-2, #f4f6fa)) !important; font-size: 16px !important; line-height: 1.4 !important;
}
html body #avdot-panel#avdot-panel textarea#avdot-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--avv-dot) 22%, transparent) !important; }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-send { order: 7; flex: none; width: 44px !important; height: 44px !important; border-radius: 999px !important; }

@media (max-width: 359px) {
  html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic { font-size: 15px !important; padding: 0 12px !important; gap: 8px; }
}

/* 顶栏 Dot 头像（电脑、平板）右下角的小麦克风：点开就能说话 */
html body #avdot-launcher#avdot-launcher.avdot-avatar { overflow: visible; }
html body #avdot-launcher#avdot-launcher.avdot-avatar::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%; pointer-events: none;
  background: var(--surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ds-dot, #544bc4) 35%, transparent), 0 2px 6px rgb(22 35 63 / 18%);
}

@media (prefers-reduced-motion: reduce) {
  html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic::after { animation: none !important; }
  html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic { transition: none !important; }
}
@media (forced-colors: active) {
  html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic { border: 2px solid ButtonText !important; }
}

/* ==== dot-actions.css ==== */
/* Dot 回答下面的「打开」按钮（5.10.3-dot-actions-v1，2026-11-09 用户要求）
   Dot 说「我们从词汇作业开始」时，回答下面直接出现能点的按钮，比如「KET 词汇 · Unit 2 · 打开」。选项来自 dot-tools.js 已校验的工具计划，
   dot-companion.js 画在这一轮回答下面（浮动面板、手机底部弹层）；「Dot 带我学」整页沿用自己的选项区，这里只给它加同样的弹出动画。
   出现方式：用户原话「浮现出来 同时q弹一些……有一种慢慢冒出来的感觉」——
   按钮区先慢慢展开，按钮从下往上一个个冒出来，略冲过头再回弹；图标晚一点转着弹出来；第一个按钮扫过一道光。减少动态效果时全部直接出现。
   颜色取 dot-voice.css 在 #avdot-panel 上定的 --avv-dot / --avv-deep，七套主题和深色模式自动跟随。 */
html body #avdot-panel#avdot-panel .avdot-actions {
  display: grid; grid-template-rows: 0fr; margin: 0 -6px;
  transition: grid-template-rows 620ms cubic-bezier(.22, .9, .3, 1);
}
html body #avdot-panel#avdot-panel .avdot-actions.is-shown { grid-template-rows: 1fr; }
/* 展开前先藏住，免得头两帧露出按钮上沿 */
html body #avdot-panel#avdot-panel .avdot-actions:not(.is-shown) .avdot-action { opacity: 0; }
html body #avdot-panel#avdot-panel .avdot-actions-in { min-height: 0; overflow: hidden; display: grid; gap: 8px; padding: 4px 6px 12px; }

html body #avdot-panel#avdot-panel .avdot-action {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  width: 100% !important; height: auto !important; min-height: 58px !important; margin: 0 !important; padding: 10px 12px 10px 10px !important;
  border: 1px solid color-mix(in srgb, var(--avv-dot) 24%, var(--hairline, #e3e6ee)) !important; border-radius: 16px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--avv-dot) 7%, var(--surface, #fff)), var(--surface, #fff)) !important;
  color: var(--ink, #16233f) !important; text-align: left; cursor: pointer; font: inherit;
  box-shadow: 0 1px 2px rgb(22 35 63 / 6%), 0 6px 14px color-mix(in srgb, var(--avv-dot) 11%, transparent) !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 460ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 220ms ease, border-color 220ms ease, opacity 260ms ease;
}
/* 冒出来：只在动画期间生效（backwards），结束后回到正常状态，悬停和按下的弹性才不会被动画盖住 */
html body #avdot-panel#avdot-panel .avdot-actions.is-shown .avdot-action {
  animation: avdot-pop 860ms cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(160ms + var(--i, 0) * 130ms);
}
@keyframes avdot-pop {
  0% { opacity: 0; transform: translateY(18px) scale(.86); filter: blur(6px); }
  36% { opacity: 1; transform: translateY(-4px) scale(1.035); filter: blur(0); }
  60% { transform: translateY(1.5px) scale(.99); }
  80% { transform: translateY(-.5px) scale(1.004); }
  100% { opacity: 1; transform: none; filter: none; }
}
html body #avdot-panel#avdot-panel .avdot-action:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--avv-dot) 45%, var(--hairline, #e3e6ee)) !important;
  box-shadow: 0 2px 4px rgb(22 35 63 / 7%), 0 12px 24px color-mix(in srgb, var(--avv-dot) 18%, transparent) !important;
}
html body #avdot-panel#avdot-panel .avdot-action:active:not(:disabled) { transform: scale(.965); transition-duration: 120ms; }
html body #avdot-panel#avdot-panel .avdot-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--avv-dot) 60%, transparent) !important; outline-offset: 2px; }

html body #avdot-panel#avdot-panel .avdot-action-ic {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--avv-on, #fff); background: linear-gradient(135deg, var(--avv-dot), var(--avv-deep));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--avv-dot) 32%, transparent);
}
html body #avdot-panel#avdot-panel .avdot-action-ic svg { width: 17px; height: 17px; }
html body #avdot-panel#avdot-panel .avdot-actions.is-shown .avdot-action-ic {
  animation: avdot-pop-ic 720ms cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(300ms + var(--i, 0) * 130ms);
}
@keyframes avdot-pop-ic { 0% { transform: scale(.35) rotate(-24deg); } 55% { transform: scale(1.16) rotate(5deg); } 78% { transform: scale(.96); } 100% { transform: none; } }

html body #avdot-panel#avdot-panel .avdot-action-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
html body #avdot-panel#avdot-panel .avdot-action-t b { font-size: 15px; font-weight: 650; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #avdot-panel#avdot-panel .avdot-action-t span { color: var(--muted, #5b6676); font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #avdot-panel#avdot-panel .avdot-action-chev { flex: none; display: grid; color: var(--avv-deep); transition: transform 360ms cubic-bezier(.34, 1.56, .64, 1); }
html body #avdot-panel#avdot-panel .avdot-action-chev svg { width: 18px; height: 18px; }
html.cv-dark body #avdot-panel#avdot-panel .avdot-action-chev { color: color-mix(in srgb, var(--avv-dot) 65%, #fff); }
html body #avdot-panel#avdot-panel .avdot-action:hover:not(:disabled) .avdot-action-chev { transform: translateX(3px); }

/* 第一个按钮冒出来后扫过一道光，提示「可以点这个」 */
html body #avdot-panel#avdot-panel .avdot-action::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 60%) 50%, transparent 68%);
}
html.cv-dark body #avdot-panel#avdot-panel .avdot-action::after { background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / 12%) 50%, transparent 68%); }
html body #avdot-panel#avdot-panel .avdot-actions.is-shown .avdot-action:first-child::after { animation: avdot-sheen 1100ms ease-out 1000ms both; }
@keyframes avdot-sheen { to { transform: translateX(130%); } }

/* 点了以后：图标往右上轻推表示正在打开；打开成功后其他选项变淡 */
html body #avdot-panel#avdot-panel .avdot-action.is-going .avdot-action-ic svg { animation: avdot-nudge 700ms ease-in-out infinite; }
@keyframes avdot-nudge { 50% { transform: translate(2px, -2px); } }
html body #avdot-panel#avdot-panel .avdot-action.is-done { border-color: color-mix(in srgb, var(--avv-dot) 55%, var(--hairline, #e3e6ee)) !important; }

/* 和首页「今天」同一份清单（5.10.3-dot-plan-v1）：做完的打勾变灰，点开过没做完的标「进行中」；别的按钮不再变淡，回来照样能点 */
html body #avdot-panel#avdot-panel .avdot-action-ic svg + svg { display: none; }
html body #avdot-panel#avdot-panel .avdot-action.is-complete .avdot-action-ic svg:first-child { display: none; }
html body #avdot-panel#avdot-panel .avdot-action.is-complete .avdot-action-ic svg + svg { display: block; }
html body #avdot-panel#avdot-panel .avdot-action.is-complete .avdot-action-ic { background: var(--green-soft, #e2f1e9); color: var(--green-ink, #2f7a55); box-shadow: none; }
html body #avdot-panel#avdot-panel .avdot-action.is-complete { background: var(--surface, #fff) !important; box-shadow: none !important; border-color: var(--hairline, #e3e6ee) !important; }
html body #avdot-panel#avdot-panel .avdot-action.is-complete .avdot-action-t { opacity: .62; }
html body #avdot-panel#avdot-panel .avdot-action.is-complete .avdot-action-t b { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
html body #avdot-panel#avdot-panel .avdot-action-tag {
  flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.5;
  background: color-mix(in srgb, var(--avv-dot) 12%, var(--surface, #fff)); color: var(--avv-deep);
}
html.cv-dark body #avdot-panel#avdot-panel .avdot-action-tag { color: color-mix(in srgb, var(--avv-dot) 70%, #fff); }
html body #avdot-panel#avdot-panel .avdot-action.is-complete .avdot-action-tag { background: var(--green-soft, #e2f1e9); color: var(--green-ink, #2f7a55); }
html body #avdot-panel#avdot-panel .avdot-action-tag[hidden] { display: none !important; }
/* 「按这个顺序做」：进首页那套顶部任务条，按 Dot 排的顺序一项项做 */
html body #avdot-panel#avdot-panel .avdot-seq {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; width: 100%; margin: 2px 0 0; padding: 10px 14px;
  border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--avv-dot), var(--avv-deep)); color: var(--avv-on, #fff);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html body #avdot-panel#avdot-panel .avdot-seq[hidden] { display: none; }
html body #avdot-panel#avdot-panel .avdot-seq svg { grid-row: span 2; width: 18px; height: 18px; fill: currentColor; stroke: none; }
html body #avdot-panel#avdot-panel .avdot-seq b { font-size: 15px; font-weight: 700; line-height: 1.3; }
html body #avdot-panel#avdot-panel .avdot-seq span { font-size: 12.5px; opacity: .86; }
html body #avdot-panel#avdot-panel .avdot-seq:active { transform: scale(.98); }
html body #avdot-panel#avdot-panel .avdot-seq:focus-visible { outline: 3px solid color-mix(in srgb, var(--avv-dot) 60%, transparent); outline-offset: 2px; }

/* 「Dot 带我学」整页的选项：同样一个个弹出来 */
body[data-dot-shell="guided"] #dot-shell-choices .dot-shell-choice { animation: avdot-pop 860ms cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: 80ms; }
body[data-dot-shell="guided"] #dot-shell-choices .dot-shell-choice:nth-child(2) { animation-delay: 210ms; }
body[data-dot-shell="guided"] #dot-shell-choices .dot-shell-choice:nth-child(3) { animation-delay: 340ms; }
body[data-dot-shell="guided"] #dot-shell-choices .dot-shell-more-choices { animation: avdot-pop 860ms cubic-bezier(.2, .8, .2, 1) 470ms backwards; }

@media (prefers-reduced-motion: reduce) {
  html body #avdot-panel#avdot-panel .avdot-actions { transition: none; }
  html body #avdot-panel#avdot-panel :is(.avdot-action, .avdot-action-ic, .avdot-action-ic svg),
  body[data-dot-shell="guided"] #dot-shell-choices :is(.dot-shell-choice, .dot-shell-more-choices) { animation: none !important; transition: none !important; }
  html body #avdot-panel#avdot-panel .avdot-action::after { animation: none !important; display: none; }
}
@media (forced-colors: active) {
  html body #avdot-panel#avdot-panel .avdot-action { border: 1px solid ButtonText !important; }
}

/* ==== dot-ambient.css ==== */
/* Dot 氛围光（5.10.3-dot-actions-v1，2026-11-09）
   用户原话：「dot的那个点阵背景 是不是有点嘈杂了」「如何能有一种科技智能感 同时不显得嘈杂」。
   做法：不铺满底纹，只在顶部放一层很淡、缓慢流动的紫蓝极光；顶边细线每隔几秒扫过一道光；
   对话面板的极光跟着 Dot 的状态变：在听时变亮、轻轻呼吸，在想时流得快一点，在说时随说话起伏。平时几乎是静的。
   作用于：手机 Dot 浮钮弹层（.msh-dotsheet）、三端的 Dot 对话面板（#avdot-panel，「Dot 带我学」整页除外，那里有自己的大头像光晕）。
   颜色取 --avv-dot（dot-voice.css）/ --msh-dot、--msh-dot2（mobile-shell.css），跟随主题和深色模式。减少动态效果时只留静态的淡光。 */

/* ── 对话面板（电脑、平板侧边；手机底部弹层） ── */
html body #avdot-panel#avdot-panel:not(.avdot-inline) { isolation: isolate; }
/* 顶栏原来是不透明白底，改透明让极光透出来；下面的级别条照旧 */
html body #avdot-panel#avdot-panel:not(.avdot-inline) .avdot-head { background: transparent !important; }
html body #avdot-panel#avdot-panel:not(.avdot-inline)::after {
  content: ""; position: absolute; z-index: -1; left: -18%; right: -18%; top: -80px; height: 210px; pointer-events: none;
  background:
    radial-gradient(36% 52% at 26% 58%, color-mix(in srgb, var(--avv-dot) 30%, transparent), transparent 72%),
    radial-gradient(32% 48% at 76% 46%, color-mix(in srgb, #2f6fe4 22%, transparent), transparent 72%);
  filter: blur(22px); opacity: .7;
  animation: avv-aurora 24s ease-in-out infinite alternate;
  transition: opacity 700ms ease;
}
@keyframes avv-aurora {
  0% { transform: translateX(-6%) scale(1); }
  50% { transform: translateX(1%) scale(1.06); }
  100% { transform: translateX(6%) scale(1); }
}
/* 跟着 Dot 的状态（头像上的 data-state）：在听 / 在想 / 在说 */
html body #avdot-panel#avdot-panel:not(.avdot-inline):has(.avdot-head .avdot-avatar[data-state="listening"])::after {
  opacity: 1; animation: avv-aurora-listen 2.6s ease-in-out infinite alternate;
}
@keyframes avv-aurora-listen { from { transform: translateX(-2%) scale(.98); } to { transform: translateX(2%) scale(1.14); } }
html body #avdot-panel#avdot-panel:not(.avdot-inline):has(.avdot-head .avdot-avatar[data-state="thinking"])::after {
  opacity: .9; animation-duration: 5s;
}
html body #avdot-panel#avdot-panel:not(.avdot-inline):has(.avdot-head .avdot-avatar[data-state="speaking"])::after {
  opacity: 1; animation: avv-aurora-speak 1.1s ease-in-out infinite alternate;
}
@keyframes avv-aurora-speak { from { transform: scale(1); } to { transform: scale(1.08) translateY(4px); } }

/* 顶边细线 + 隔几秒扫过一道光（手机原有的细线也换成这条） */
html body #avdot-panel#avdot-panel:not(.avdot-inline)::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 90%), transparent) no-repeat,
    linear-gradient(90deg, transparent, var(--avv-dot), #2f6fe4, transparent);
  background-size: 28% 100%, 100% 100%; background-position: -40% 0, 0 0;
  animation: avv-scan 7s ease-in-out infinite;
}
@keyframes avv-scan { 0%, 60% { background-position: -40% 0, 0 0; } 88%, 100% { background-position: 140% 0, 0 0; } }

/* ── 手机 Dot 浮钮弹层 ── */
body.cv-mshell .msh-dotsheet::after {
  content: ""; position: absolute; z-index: -1; left: -18%; right: -18%; top: -80px; height: 220px; pointer-events: none;
  background:
    radial-gradient(36% 52% at 26% 58%, color-mix(in srgb, var(--msh-dot) 28%, transparent), transparent 72%),
    radial-gradient(32% 48% at 76% 46%, color-mix(in srgb, var(--msh-dot2) 22%, transparent), transparent 72%);
  filter: blur(22px); opacity: .75;
  animation: avv-aurora 24s ease-in-out infinite alternate;
}
body.cv-mshell .msh-dotsheet::before {
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 90%), transparent) no-repeat,
    linear-gradient(90deg, transparent, var(--msh-dot), var(--msh-dot2), transparent) !important;
  background-size: 28% 100%, 100% 100% !important; background-position: -40% 0, 0 0;
  animation: avv-scan 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html body #avdot-panel#avdot-panel:not(.avdot-inline)::after, html body #avdot-panel#avdot-panel:not(.avdot-inline)::before,
  body.cv-mshell .msh-dotsheet::after, body.cv-mshell .msh-dotsheet::before { animation: none !important; }
}
@media (forced-colors: active) {
  html body #avdot-panel#avdot-panel:not(.avdot-inline)::after, body.cv-mshell .msh-dotsheet::after { display: none; }
}

/* ==== ui-sweep.css ==== */
/* 5.10.3-ui-sweep-v1（2026-11-18）三端界面整体优化。按区排列，顺序即原来 ui-sweep-a1.css … a7.css 的加载顺序，不要调换。
   各区改了什么见 工单/界面三端优化-20261118/交付/aN/变更说明.md */
/* 5.10.3-ui-sweep-v1 · A1 管理员后台（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。
   管理员页不带 data-ds（academy-skin.js setScope('admin')），所以这里的规则都按「旧外观 + academy 场景」写，并用 #view-admin 提高优先级：
   admin-help-feedback.css 是用到时才插进 <head> 的，排在本文件后面，同等优先级会被它盖掉。 */

/* ── 1. 概况：一条矮的实底卡片（四个数字 + 导出 / 刷新），不再有「管理员后台 / 系统总览」两层标题 ── */
#view-admin .admin-overview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); color: var(--ink);
}
#view-admin .admin-stat-strip { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#view-admin .admin-stat {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num label" "num note";
  column-gap: 10px; align-items: center; min-width: 0; padding: 4px 14px; border-left: 1px solid var(--hairline);
}
#view-admin .admin-stat:first-child { border-left: 0; padding-left: 6px; }
#view-admin .admin-stat strong { grid-area: num; font-size: 24px; line-height: 1.1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
#view-admin .admin-stat span { grid-area: label; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-admin .admin-stat small { grid-area: note; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-admin .admin-stat[data-tone="warn"] strong { color: var(--amber-ink); }
#view-admin .admin-overview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
#view-admin .admin-overview-actions .secondary-action { width: auto !important; min-height: 44px; white-space: nowrap; }

/* ── 2. 分页标签：排成一行并吸顶；放不下时横滑，边缘渐隐提示（app.js syncAdminTabStrip 写 data-edge-*） ── */
#view-admin .admin-sticky {
  position: sticky; top: 0; z-index: 40; display: grid; gap: 6px;
  margin-inline: -6px; padding: 6px;
  border-radius: 0 0 14px 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
html[data-visual-world] body #view-admin .admin-tabs {
  display: flex !important; flex-wrap: nowrap !important; grid-template-columns: none !important;
  gap: 4px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: none;
}
#view-admin .admin-tabs::-webkit-scrollbar { display: none; }
html[data-visual-world] body #view-admin .admin-tabs > button {
  flex: 1 0 auto !important; min-width: 0 !important; min-height: 44px !important; padding: 8px 12px !important;
  white-space: nowrap; scroll-snap-align: none;
}
#view-admin .admin-tabs .admin-tab-short { display: none; }
#view-admin .admin-tabs[data-edge-end="true"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
#view-admin .admin-tabs[data-edge-start="true"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
#view-admin .admin-tabs[data-edge-start="true"][data-edge-end="true"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }

/* 提示条跟着标签吸顶，右边「×」收起 */
#view-admin .admin-sticky > #adminGlobalMessage:not(.hidden) { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 6px 8px 12px; }
#view-admin #adminGlobalMessage .admin-msg-text { flex: 1 1 auto; min-width: 0; align-self: center; user-select: text; }
html[data-visual-world] body #view-admin #adminGlobalMessage .admin-msg-close {
  flex: none; width: 36px; min-width: 36px; height: 36px; min-height: 36px !important; padding: 0; border: 0 !important;
  border-radius: 999px; background: transparent !important; color: inherit !important; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none !important;
}

/* ── 3. 各分页统一放进实底卡片（academy 场景原来把它们设成透明，灰色小字直接压在壁纸上） ── */
html[data-visual-world] #view-admin .admin-panel > .surface-card {
  background: var(--surface) !important; border: 1px solid var(--hairline) !important; border-radius: 14px !important;
  box-shadow: none !important; padding: 18px 20px !important;
}

/* 内容页顶上的「题目疑问」入口也放进实底卡片；词库上传和词汇音频之间隔开 */
html[data-visual-world] #view-admin .admin-panel > .qfa-entry { padding: 10px 14px 10px 20px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
#view-admin .admin-vocab-tts-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }

/* ── 4. 待审核老师：名字完整一行，按钮在旁边（手机放下面），申请时间写成北京时间 ── */
html[data-visual-world] #view-admin .admin-pending-row {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px;
}
#view-admin .admin-pending-who { min-width: 0; }
#view-admin .admin-pending-who strong { display: block; overflow-wrap: anywhere; }
#view-admin .admin-pending-row > .primary-action { width: auto !important; min-width: 112px; min-height: 44px; }

/* ── 5. 账号行操作：停用、重置密码在外面，「更多」里是改身份和「注销」（排最后、红字、和前面隔开） ── */
#view-admin .account-table .table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
#view-admin .admin-more { display: inline-block; max-width: 100%; }
#view-admin .admin-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
#view-admin .admin-more > summary::-webkit-details-marker { display: none; }
#view-admin .admin-more > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px); opacity: .7;
}
#view-admin .admin-more[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
#view-admin .admin-more .admin-more-close,
#view-admin .admin-more[open] .admin-more-open { display: none; }
#view-admin .admin-more[open] .admin-more-close { display: inline; }
#view-admin .admin-more-menu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-left: 8px; vertical-align: middle; }
#view-admin .admin-more-menu [data-delete-user] { margin-left: 12px; }

/* ── 6. 内容页：音频选项排成多列；「补齐下一批」是主按钮 ── */
html[data-visual-world] #view-admin .admin-vocab-tts-panel .mini-form {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px 14px !important; align-items: end;
}
html[data-visual-world] #view-admin .admin-vocab-tts-panel .mini-form > label { min-width: 0; }
html[data-visual-world] #view-admin .admin-vocab-tts-panel .mini-form :is(select, input) { width: 100%; min-width: 0; }

/* ── 7. 运营页：没配单价时顶部一条「去设置单价」 ── */
#view-admin .usage-price-setup {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 14px 0 4px; padding: 10px 12px 10px 14px; border-radius: 12px;
  background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; font-weight: 600; line-height: 1.5;
}
#view-admin .usage-price-setup > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
#view-admin .usage-price-setup .ic { flex: none; }
#view-admin .usage-price-setup .primary-action { width: auto !important; min-height: 44px; white-space: nowrap; }
#view-admin .usage-config-disclosure { scroll-margin-top: 76px; }

/* ── 8. 帮助与反馈：处理区在详情顶部；诊断信息默认折叠；窄屏点一条进整屏详情，带「返回列表」 ── */
#view-admin .ahf-back { display: none; }
#view-admin .ahf-review { margin: 4px 0 6px; padding: 4px 14px 14px; border: 1px solid var(--hairline); border-top: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); }
#view-admin .ahf-review h5 { margin-top: 12px; }
#view-admin .ahf-diag { margin-top: 16px; border: 1px solid var(--hairline); border-radius: 12px; }
#view-admin .ahf-diag > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 44px; padding: 8px 14px;
  font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
#view-admin .ahf-diag > summary::-webkit-details-marker { display: none; }
#view-admin .ahf-diag > summary::before { content: "▸"; color: var(--muted); }
#view-admin .ahf-diag[open] > summary::before { content: "▾"; }
#view-admin .ahf-diag > summary small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
#view-admin .ahf-diag[open] > summary { border-bottom: 1px solid var(--hairline); }
#view-admin .ahf-diag > :not(summary) { margin-left: 14px; margin-right: 14px; }
#view-admin .ahf-diag > :last-child { margin-bottom: 14px; }
@media (max-width: 1099px) {
  #view-admin .ahf-grid:not(.has-sel) > .ahf-detail { display: none; }
  #view-admin .ahf-grid.has-sel > .ahf-list,
  #view-admin .ahf-has-sel > .ahf-bar { display: none; }
  #view-admin .ahf-grid.has-sel .ahf-back { display: inline-flex; align-items: center; width: auto !important; min-height: 44px; margin: 0 0 12px; }
  #view-admin .ahf-detail { scroll-margin-top: 72px; }
  #view-admin .ahf-detail-card { padding: 14px; }
}

/* ── 9. 平板（768–1180）：和学生、老师一样常驻侧边图标栏，不用汉堡菜单和底部两格栏（enhance.js 只在手机上把侧栏当抽屉） ── */
@media (min-width: 768px) and (max-width: 1180px) {
  html:not([data-ds])[data-visual-world] body .app-shell { grid-template-columns: 92px minmax(0, 1fr) !important; }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar {
    position: sticky !important; top: 0 !important; left: auto !important; transform: none !important; visibility: visible !important;
    width: 92px !important; min-width: 0 !important; height: 100vh !important; height: 100dvh !important; z-index: 20 !important;
    padding: 16px 8px 12px !important; border-radius: 0 !important; box-shadow: none !important; transition: none !important;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar .brand { justify-content: center; padding: 0 0 14px !important; }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar .brand > div:not(.brand-mark) { display: none !important; }
  html:not([data-ds])[data-visual-world] body #appShell #mainNav .nav-item:not(.hidden):not([hidden]) {
    display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important;
    gap: 4px !important; width: 100% !important; min-height: 60px !important; padding: 8px 2px !important; text-align: center;
    font-size: 12px !important; line-height: 1.2 !important;
  }
  html:not([data-ds])[data-visual-world] body #appShell #mainNav .nav-item .nav-tx { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; display: block; text-align: center; }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar .quote-card { display: none !important; }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar .account-footer { margin-top: auto; }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar .account-chip { justify-content: center; padding: 6px !important; min-height: 52px; border: 0 !important; background: transparent !important; }
  html:not([data-ds])[data-visual-world] body #appShell .sidebar .account-chip :is(.account-meta, .account-gear) { display: none !important; }
  html:not([data-ds])[data-visual-world] body.nav-open::after { display: none !important; }
  html:not([data-ds])[data-visual-world] body .mobile-tabbar { display: none !important; }
  html:not([data-ds])[data-visual-world] body #appShell #menuToggle { display: none !important; }
  html:not([data-ds])[data-visual-world] body[data-view] #appShell .main { padding-bottom: 48px !important; }
  html:not([data-ds])[data-visual-world] body[data-view] #appShell .main .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 300px) 44px !important;
    grid-template-areas: "brand search theme" "title title title" "masthead masthead masthead" !important;
  }
  /* 标签条在平板上去掉图标，六个排得下一行 */
  #view-admin .admin-tabs .ic { display: none; }
}

/* 触屏宽度：概况数字只在「账号」分页显示，别的分页只留「刷新」 */
@media (max-width: 1180px) {
  #view-admin .admin-console:not([data-admin-active="accounts"]) .admin-stat-strip,
  #view-admin .admin-console:not([data-admin-active="accounts"]) #adminExportUsers { display: none !important; }
  #view-admin .admin-console:not([data-admin-active="accounts"]) .admin-overview { padding: 0; border: 0; background: transparent; }
  #view-admin .admin-console:not([data-admin-active="accounts"]) .admin-overview-actions { justify-content: flex-end; }
  #view-admin .admin-console:not([data-admin-active="accounts"]) .admin-overview-actions .secondary-action { flex: 0 0 auto; }
  /* 会员、运营、反馈三页自带「刷新」，概况整条收起 */
  #view-admin .admin-console:is([data-admin-active="members"], [data-admin-active="operations"], [data-admin-active="feedback"]) .admin-overview { display: none !important; }
}

/* ── 10. 触屏宽度（≤1180）账号表格改成卡片行：名字 + 身份 + 状态一行，班级和最近登录一行小字（手机不显示），操作一行 ── */
@media (max-width: 1180px) {
  #view-admin .account-table thead { display: none !important; }
  #view-admin .account-table, #view-admin .account-table tbody { display: block !important; min-width: 0 !important; width: 100%; }
  html[data-visual-world] body #view-admin .account-table tr {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "who role status" "meta meta meta" "act act act";
    align-items: center; gap: 4px 8px; margin: 0 0 8px; padding: 12px 14px;
    border: 1px solid var(--hairline) !important; border-radius: 12px !important; background: var(--surface) !important; box-shadow: none !important;
  }
  html[data-visual-world] body #view-admin .account-table td {
    display: block !important; min-width: 0; padding: 0 !important; border: 0 !important; text-align: left !important; background: transparent !important;
  }
  html[data-visual-world] body #view-admin .account-table td::before { content: none !important; }
  html[data-visual-world] body #view-admin .account-table td.td-title { grid-area: who; margin: 0 !important; border: 0 !important; }
  html[data-visual-world] body #view-admin .account-table td.td-title strong { display: inline; font-size: 16px; overflow-wrap: anywhere; }
  html[data-visual-world] body #view-admin .account-table td.td-title small { display: block !important; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
  html[data-visual-world] body #view-admin .account-table td.td-title br { display: none; }
  #view-admin .account-table td[data-label="角色"] { grid-area: role; }
  #view-admin .account-table td[data-label="状态"] { grid-area: status; }
  #view-admin .account-table :is(.role-badge, .status-badge) { white-space: nowrap; }
  /* 班级（左）和最近登录（右）叠在同一行格子里，不撑宽身份、状态两列 */
  html[data-visual-world] body #view-admin .account-table td[data-label="班级"] { grid-area: meta; justify-self: start; }
  html[data-visual-world] body #view-admin .account-table td[data-label="最近登录"] { grid-area: meta; justify-self: end; text-align: right !important; }
  html[data-visual-world] body #view-admin .account-table td:is([data-label="班级"], [data-label="最近登录"]) { font-size: 12.5px; color: var(--muted); }
  html[data-visual-world] body #view-admin .account-table td:is([data-label="班级"], [data-label="最近登录"])::before { content: attr(data-label) " " !important; }
  html[data-visual-world] body #view-admin .account-table td:is([data-label="班级"], [data-label="最近登录"]) small { display: inline !important; font-size: inherit; }
  html[data-visual-world] body #view-admin .account-table td.td-action { grid-area: act; padding-top: 6px !important; }
  html[data-visual-world] body #view-admin .account-table .table-actions .text-button {
    flex: 0 0 auto !important; width: auto !important; min-width: 44px !important; min-height: 44px !important; margin: 0 !important;
    padding: 0 14px !important; border: 1px solid var(--hairline) !important; border-radius: 999px !important;
    background: var(--surface) !important; color: var(--ink) !important; font-size: 14px; font-weight: 700; white-space: nowrap;
  }
  html[data-visual-world] body #view-admin .account-table .table-actions .text-button.danger {
    color: var(--red-ink) !important; border-color: color-mix(in srgb, var(--red-ink) 35%, transparent) !important; background: var(--red-soft) !important;
  }
  #view-admin .admin-more-menu { display: flex; margin: 8px 0 0; }
  #view-admin .admin-more[open] { flex-basis: 100%; }
  #view-admin .admin-more-menu [data-delete-user] { margin-left: 20px; }
  #view-admin .table-actions > .muted { font-size: 13px; }
  #view-admin .admin-account-group-body { padding: 0 10px 10px; }
  html[data-visual-world] body #view-admin .admin-account-group-body .data-table-wrap { border: 0 !important; overflow: visible !important; background: transparent !important; }
}

/* ── 11. 手机（< 768） ── */
@media (max-width: 767px) {
  #view-admin .admin-overview { padding: 0; border: 0; background: transparent; gap: 8px; }
  #view-admin .admin-stat-strip { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #view-admin .admin-stat { padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
  #view-admin .admin-stat:first-child { padding-left: 10px; }
  #view-admin .admin-stat strong { font-size: 20px; }
  #view-admin .admin-overview-actions { width: 100%; }
  #view-admin .admin-overview-actions .secondary-action { flex: 1 1 0; }
  #view-admin .admin-console:not([data-admin-active="accounts"]) .admin-overview-actions .secondary-action { flex: 0 0 auto; }
  html[data-visual-world] body #view-admin [data-admin-panel="accounts"] > .surface-card > .section-head { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-visual-world] body #view-admin .admin-search { flex: none; justify-self: stretch; align-self: stretch; width: 100% !important; max-width: none !important; }
  #view-admin .admin-account-group-body { padding: 0 0 8px; }
  /* 手机用两个字的短名，去掉图标，六个一行 */
  #view-admin .admin-tabs .admin-tab-label,
  #view-admin .admin-tabs .ic { display: none !important; }
  #view-admin .admin-tabs .admin-tab-short { display: inline; }
  html[data-visual-world] body #view-admin .admin-tabs > button { padding: 6px 6px !important; gap: 4px !important; font-size: 14px !important; }
  #view-admin .admin-sticky { margin-inline: -4px; padding: 6px 4px; }
  html[data-visual-world] #view-admin .admin-panel > .surface-card { padding: 14px 12px !important; }
  html[data-visual-world] body #view-admin .account-table td:is([data-label="班级"], [data-label="最近登录"]) { display: none !important; }
  html[data-visual-world] body #view-admin .account-table tr { grid-template-areas: "who role status" "act act act"; padding: 12px; }
  html[data-visual-world] body #view-admin .account-table .table-actions .text-button { padding: 0 12px !important; }
}
@media (max-width: 560px) {
  html[data-visual-world] #view-admin .admin-pending-row { grid-template-columns: minmax(0, 1fr); }
  #view-admin .admin-pending-row > .primary-action { justify-self: start; }
  html[data-visual-world] #view-admin .admin-vocab-tts-panel .mini-form { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* 5.10.3-ui-sweep-v1 · A2 老师端·布置作业（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。 */

/* 1. 勾选框：「单词必须读」「要求拼写」原来被 aivia-ds.css 的
   html[data-ds][data-visual-world] #view-teacher .t-form-card .mini-form > label { display:grid !important } 排成上下两行，
   输入框又被 styles.css 的 .mini-form input { width:100%; min-height:46px } 撑成整行宽的大方块。
   这里改回「小勾选框 + 文字」同一行，整行可点；文字可换行，勾选框不变形。
   选择器带两个 id，才压得过上面那条带 !important 的长选择器。 */
#view-teacher #createVocabAssignmentForm > label.vocab-require-read {
  display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px !important;
  min-height: 44px; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 500 !important; line-height: 1.5;
}
#view-teacher #createVocabAssignmentForm > label.vocab-require-read:has(input:checked) { background: var(--amber-soft); border-color: transparent; }
/* 「发给谁」的班级勾选框也被撑成 18×46，框和班名对不齐 */
#view-teacher .t-form-card .mini-form :is(label.vocab-require-read, label.t-aud-row) > input[type="checkbox"] {
  width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 0 !important; max-height: 18px;
  margin: 2px 0 0 !important; padding: 0 !important; flex: 0 0 18px; accent-color: var(--accent);
}

/* 4. 「本班进行中的作业」：窄屏原来排在表单前面（order:-1），把表单往下推约 140px。改到表单后面；
   还没有作业时收成一行小字。 */
@media (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher .t-assign-body > .t-assign-aside { order: 0; }
}
html[data-ds][data-visual-world] #view-teacher .t-assign-aside:has(> .t-empty-line) {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 16px !important;
}
html[data-ds][data-visual-world] #view-teacher .t-assign-aside:has(> .t-empty-line) > h3 { margin: 0 !important; font-size: 14px !important; }
html[data-ds][data-visual-world] #view-teacher .t-assign-aside:has(> .t-empty-line) > .t-empty-line { margin: 0 !important; padding: 0 !important; font-size: 13px; color: var(--muted); }

/* 6. 「搜索单词或中文」：aivia-ds.css 的 [class*="search"] > input 规则把边框和底色去掉了，看着像小标题。 */
#view-teacher #createVocabAssignmentForm .vocab-picker-search > input#vocabAssignmentSearch {
  border: 1px solid var(--line) !important; border-style: solid !important; background: var(--surface) !important; padding: 0 12px !important;
}
#view-teacher #createVocabAssignmentForm .vocab-picker-search > input#vocabAssignmentSearch:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; outline: none !important;
}
/* 6. 「更多设置」：summary 是 flex，原生三角没了，看着像输入框。补一个展开箭头，展开后转向。 */
#view-teacher .t-form-card .t-more-settings > summary { list-style: none; gap: 8px; }
#view-teacher .t-form-card .t-more-settings > summary::-webkit-details-marker { display: none; }
#view-teacher .t-form-card .t-more-settings > summary::after {
  content: ""; width: 7px; height: 7px; margin: 0 4px 3px auto; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease;
}
#view-teacher .t-form-card .t-more-settings[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }

/* 2、3. 四类表单统一用吸底发布条（朗读原来是表单最底下的灰按钮，手机上四类都要滚到底才能发布）。
   电脑、平板贴窗口底；手机贴在底部 5 个标签上方（底栏高 6+54+6+1=67px，见 aivia-ds.css「6. Phone」）。
   原来 641–767px 时发布条贴在 bottom:0，被底栏盖住，这里一并按底栏是否出现（<768）来分。 */
#view-teacher .t-form-card .mini-form > .t-submit-row {
  position: sticky; bottom: 0; z-index: 3; padding: 10px 0; margin-bottom: -10px;
  background: linear-gradient(to bottom, transparent, var(--surface, #fff) 30%);
}
@media (max-width: 767px) {
  #view-teacher .t-form-card .mini-form > .t-submit-row {
    bottom: calc(67px + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; justify-content: flex-end; gap: 10px;
    padding: 10px 0 8px; margin-bottom: -8px; background: linear-gradient(to bottom, transparent, var(--surface, #fff) 12px);
  }
  #view-teacher .t-form-card .mini-form > .t-submit-row .t-submit-summary { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.4; }
  #view-teacher .t-form-card .mini-form > .t-submit-row button[type="submit"] { flex: 0 0 auto; width: auto !important; min-height: 48px !important; padding: 0 20px !important; }
}
#view-teacher .t-submit-summary { font-weight: 600; color: var(--ink-2); }

/* 5. 触屏宽度（平板、手机）：选词列表不再是页面里嵌着的小滚动框（手指容易卡在框里），改成自然展开、按单元收起；
   展开的单元标题吸顶，长单元滚到中间也能随时收起。电脑上保持原来的滚动框和全部展开。
   （每日打卡的内容列表在 v2 第 3 条里改成按单元分组、触屏不再是小滚动框。） */
#createVocabAssignmentForm .vocab-group-fold {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 1 1 auto; min-width: 0;
  margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default;
}
@media (min-width: 1181px) { #createVocabAssignmentForm .vocab-group-fold { pointer-events: none; } }
@media (max-width: 1180px) {
  #createVocabAssignmentForm .vocab-word-picker { max-height: none !important; overflow: visible !important; padding: 0 !important; border: 0 !important; display: grid !important; gap: 8px; }
  #createVocabAssignmentForm .vocab-group + .vocab-group { margin-top: 0; }
  #createVocabAssignmentForm .vocab-group { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  #createVocabAssignmentForm .vocab-group-head { top: 0; padding: 0 8px 0 0; border-radius: 12px; flex-wrap: nowrap; }
  #createVocabAssignmentForm .vocab-group:not(.is-folded) .vocab-group-head { border-radius: 12px 12px 0 0; }
  #createVocabAssignmentForm .vocab-group.is-folded .vocab-group-head { border-bottom: 0; }
  #createVocabAssignmentForm .vocab-group-fold { min-height: 48px; padding: 4px 4px 4px 12px; gap: 8px; cursor: pointer; flex-wrap: nowrap; }
  #createVocabAssignmentForm .vocab-group-fold strong { flex: none; white-space: nowrap; }
  #createVocabAssignmentForm .vocab-group-fold small { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #createVocabAssignmentForm .vocab-group-fold::before {
    content: ""; width: 7px; height: 7px; margin: 0 4px 0 0; flex: none; color: var(--muted);
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease;
  }
  #createVocabAssignmentForm .vocab-group-fold[aria-expanded="true"]::before { transform: rotate(45deg); }
  #createVocabAssignmentForm .vocab-group.is-folded .vocab-group-words { display: none; }
  #view-teacher #createVocabAssignmentForm .vocab-group-head .text-button { flex: 0 0 auto; min-height: 44px !important; padding: 0 10px !important; }

  #createDailyCheckinForm .checkin-target-group > summary { min-height: 44px; }

  /* 触屏点击区域 ≥44px：选下一组、粘贴词表、只看还没布置过的、粘贴新文章 */
  #view-teacher #createVocabAssignmentForm .vocab-quick-actions > button { min-height: 44px; }
  #createVocabAssignmentForm .vocab-paste > summary { min-height: 44px; }
  #createVocabAssignmentForm .vocab-hide-assigned { min-height: 44px; cursor: pointer; }
  #createVocabAssignmentForm .vocab-more-actions .text-button { min-height: 44px !important; }
  #createDailyCheckinForm .checkin-paste-btn { min-height: 44px !important; }
}

/* 手机：单元名和「N 个词 · 已选 M」上下两行，右边的「这组全选」不再把词数挤成省略号 */
@media (max-width: 767px) {
  #createVocabAssignmentForm .vocab-group-fold { display: grid; grid-template-columns: 11px minmax(0, 1fr); column-gap: 8px; row-gap: 0; align-content: center; }
  #createVocabAssignmentForm .vocab-group-fold::before { grid-row: 1 / span 2; align-self: center; }
  #createVocabAssignmentForm .vocab-group-fold :is(strong, small) { grid-column: 2; line-height: 1.3; }
}

/* 5.10.3-ui-sweep-v1 · A3 老师端·班级外壳/进度/批改/打卡/学生（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。 */

/* ── 1. 班级头的「复制邀请链接」「二维码」：原来是约 20px 高的文字链 → 按钮（触屏宽度 44px，电脑 36px） ── */
html[data-ds][data-visual-world] #view-teacher .t-class-meta .text-button.t-invite-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 36px !important; padding: 0 14px !important;
  border: 1px solid var(--hairline) !important; border-radius: 999px !important;
  background: var(--ds-card, var(--surface)) !important; color: var(--accent-ink) !important;
  font-weight: 600; white-space: nowrap;
}
html[data-ds][data-visual-world] #view-teacher .t-class-meta .text-button.t-invite-btn:hover { border-color: var(--accent-edge) !important; }
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-teacher .t-class-meta .text-button.t-invite-btn { min-height: 44px !important; padding: 0 16px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-class-meta { row-gap: 8px; }
}

/* ── 2. 平板侧栏（768–1180）：去掉「切换 KET 周六 10:00」（班名断成几行，页头已有「切换班级」） ── */
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-ds][data-visual-world] #appShell #teacherNav .t-nav-class { display: none !important; }
}

/* ── 3. 手机（≤767）：布置 / 进度 / 批改 / 打卡分页里，班级头收成一行吸顶的「班名 · 人数」+「切换班级」。
        概况页、学生页照旧完整显示（邀请码、复制链接、二维码只在这两页）。 ── */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-head {
    position: sticky; top: 0; z-index: 30;
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
    padding: 6px 6px 6px 14px;
    background: var(--ds-card, var(--surface));
    border: 1px solid var(--ds-card-edge, var(--hairline)); border-radius: var(--ds-r-card, 16px);
    box-shadow: var(--shadow-sm);
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-id {
    display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden;
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-id .t-level { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-id h2 {
    font-size: 17px !important; line-height: 1.3 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; overflow-wrap: normal;
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-meta { flex: 0 0 auto; flex-wrap: nowrap; font-size: 13px; }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-meta > :not([data-teacher-student-count]) { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-meta [data-teacher-student-count]::before { content: "· "; }
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-actions .t-switch-btn { min-height: 44px !important; }
}

/* ── 4. 平板 / 手机（≤1099，名单和详情上下叠放的宽度）：点名单打开整屏详情，顶上一条「返回名单 · 第几位 · 下一位」 ── */
html[data-ds][data-visual-world] #view-teacher .t-detail-bar { display: none !important; }
@media (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="writing"][data-detail="writing"] :is(.t-class-head, [data-teacher-panel="writing"] > .t-filters, .t-grading > .submission-list),
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="students"][data-detail="students"] :is(.t-class-head, .t-roster-head, .t-roster-card, #teacherAddStudentFold) { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="writing"][data-detail="writing"] .t-grading > .t-detail-bar,
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="students"][data-detail="students"] .t-students-cols > .t-detail-bar {
    display: flex !important; align-items: center; justify-content: space-between; gap: 8px;
    position: sticky; top: 0; z-index: 30; padding: 6px;
    background: var(--ds-card, var(--surface));
    border: 1px solid var(--ds-card-edge, var(--hairline)); border-radius: var(--ds-r-card, 16px);
    box-shadow: var(--shadow-sm);
  }
  html[data-ds][data-visual-world] #view-teacher .t-detail-bar .secondary-action {
    width: auto !important; min-height: 44px !important; padding: 0 14px !important;
    display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  }
  html[data-ds][data-visual-world] #view-teacher .t-detail-bar .secondary-action:disabled { opacity: .55; }
  html[data-ds][data-visual-world] #view-teacher .t-detail-pos { flex: 1 1 auto; min-width: 0; text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail] :is(#teacherSubmissionDetail, #teacherStudentDetail, .t-student-aside) { scroll-margin-top: 72px; }
}

/* ── 5. 每日打卡：状态筛选只留一组按钮（下拉框藏起来，值仍由它保存）；当天没有任务时只留日期 + 空状态 + 一个主按钮 ── */
html[data-ds][data-visual-world] #view-teacher label.t-quick-source { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-checkin-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-ds][data-visual-world] #view-teacher .t-checkin-head-actions .secondary-action { width: auto !important; min-height: 44px !important; display: inline-flex; align-items: center; gap: 6px; }
html[data-ds][data-visual-world] #view-teacher .teacher-checkin-dashboard.is-empty :is(.teacher-checkin-task-picker, [data-checkin-more], .teacher-result-scope, .teacher-result-filters:not(.teacher-checkin-catalog), #teacherCheckinResults, .t-checkin-head-actions [data-teacher-go]) { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-checkin-empty {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 22px 16px; border: 1px dashed var(--hairline); border-radius: var(--ds-r-card, 16px);
}
html[data-ds][data-visual-world] #view-teacher .t-checkin-empty strong { font-size: 16px; color: var(--ink); }
html[data-ds][data-visual-world] #view-teacher .t-checkin-empty p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 34em; }
html[data-ds][data-visual-world] #view-teacher .t-checkin-empty .primary-action { width: auto !important; min-height: 44px !important; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }

/* ── 6. 班级概况：「近 7 天每日学词」没有数据时写清楚、压矮；「三步开始用」三个按钮同样式同大小 ── */
html[data-ds][data-visual-world] #view-teacher .t-chart-empty { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
html[data-ds][data-visual-world] #view-teacher .t-start-guide li > .t-start-btn {
  min-height: 44px !important; min-width: 120px; padding: 0 16px !important;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px !important;
}

/* ── 7. 读不到数据时：原因一句 + 「重试」按钮 ── */
html[data-ds][data-visual-world] #view-teacher .t-read-fail,
html[data-ds][data-visual-world] .teacher-result-content .t-read-fail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
html[data-ds][data-visual-world] :is(#view-teacher, .teacher-result-content) .t-read-fail .secondary-action { width: auto !important; min-height: 44px !important; }

/* ── 8. 作文详情顶部 7 个信息块：原来窄屏一块一行（约 470px），改成按宽度排 2–4 列、压矮 ── */
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 8px; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta div { padding: 8px 12px !important; }
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-class-actions .t-switch-btn { min-height: 44px !important; }
}

/* ── 9.（补查）「我的班级」页说明文字在平板 / 手机上压在页头照片上 → 放进半透明实底 ── */
html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="classes"] .t-sec-sub {
  width: fit-content; max-width: 100%; padding: 6px 12px; border-radius: 12px;
  background: var(--ds-card, var(--surface));
  background: color-mix(in srgb, var(--ds-card, var(--surface)) 84%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ── 10.（补查）手机「班级简报预览」顶栏：「打印 / 存 PDF」被挤成三行 → 按钮不换行，标题让位 ── */
@media (max-width: 767px) {
  #teacherBriefOverlay .report-overlay-bar { gap: 8px; }
  #teacherBriefOverlay .report-overlay-bar > strong { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #teacherBriefOverlay .report-overlay-bar > div { display: flex; flex: 0 0 auto; gap: 8px; }
  #teacherBriefOverlay .report-overlay-bar :is(.primary-action, .secondary-action) { width: auto !important; min-height: 44px !important; white-space: nowrap; padding: 0 14px !important; }
}

/* 5.10.3-ui-sweep-v1 · A4 学生·听力/朗读训练/阅读馆/页头（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。 */

/* ── 1. 页头照片压字（电脑、平板）────────────────────────────────────────────
   页头照片（.academy-header-scene）铺在标题右侧、往下淡出约 420px；照片上面的分段标签条
   （单词 / 听力 / 朗读 / 写作）原来只有 6% 的灰底，「测验」「难词本」「收藏」「自由写作」等字直接压在照片上。
   标签条、「历史作文」、列表右上的计数改用和卡片一样的磨砂底（--ds-glass-card），灰色底纹叠在磨砂上，样子不变。
   手机的页头不铺照片（mobile-minimal.css），不受影响；「简约」外观没有照片，也不改。 */
@media (min-width: 768px) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #appShell :is(.words-mode-toggle, #view-listen .listen-mode-grid, #view-reading .reading-mode-tabs, #view-writing .writing-mode-tabs) {
    background: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent), color-mix(in srgb, var(--ink) 6%, transparent)), var(--ds-glass-card, var(--ds-card)) !important;
    box-shadow: inset 0 0 0 1px var(--hairline-soft) !important;
    -webkit-backdrop-filter: var(--ds-glass-blur, none); backdrop-filter: var(--ds-glass-blur, none);
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #appShell #view-writing .writing-history-jump {
    align-self: center; min-height: 44px !important; padding: 0 16px !important; border-radius: 999px !important;
    background: var(--ds-glass-card, var(--ds-card)) !important; box-shadow: 0 0 0 1px var(--hairline-soft) !important;
    -webkit-backdrop-filter: var(--ds-glass-blur, none); backdrop-filter: var(--ds-glass-blur, none);
  }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) #appShell :is(#listenListCount, #assignmentFindCount:not(:empty)) {
    display: inline-block; padding: 3px 10px; border-radius: 999px; color: var(--ink-2);
    background: var(--ds-glass-card, var(--ds-card)); box-shadow: 0 0 0 1px var(--hairline-soft);
    -webkit-backdrop-filter: var(--ds-glass-blur, none); backdrop-filter: var(--ds-glass-blur, none);
  }
}

/* ── 2. 共用页头：触屏上能点的东西不小于 44px ─────────────────────────────── */
@media (max-width: 1180px) {
  /* 「学习级别」后面的 ⓘ：图标不变，点击区域扩到 44px */
  html[data-visual-world] #appShell .topbar .learning-level-help > summary { position: relative; }
  html[data-visual-world] #appShell .topbar .learning-level-help > summary::before { content: "" !important; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}
/* 听力 / 朗读 / 单词 / 写作页的「返回学习中心」、朗读详情的「返回」「全文测评」和逐句按钮：触屏 40 → 44（原来只有手机是 44） */
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #appShell :is(.view .workspace-back, #readingFocusBack, #listenFocusBack, #view-reading .cv-read-back, #view-reading .reading-detail-tools > .reading-full-jump, #view-reading .reading-mini-btn) { min-height: 44px !important; }
}
/* 手机外壳页头的返回键 40 → 44 */
html[data-visual-world] body.cv-mshell #appShell .msh-back { min-width: 44px !important; min-height: 44px !important; }

/* ── 3. 听力：平板上搜索框独占一行（原来挤在第二行左边，只有约 210px，提示字被截断）；三个模式按钮 44px 高 ── */
@media (min-width: 601px) and (max-width: 1180px) {
  html[data-visual-world] #appShell #view-listen .academy-catalog-filters > .listen-search-bar { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #appShell #view-listen .listen-mode-card { min-height: 44px !important; }
}

/* ── 4. 听力、朗读长列表按单元折叠（电脑、平板；手机外壳原来就有，逻辑在 mobile-shell.js 的 foldList）──
   折起来的单元只留一行「单元名 · N 条 · 已听 M」/「N 篇 · 练过 M」，点一下展开。 */
html body:not(.cv-mshell) #appShell :is(#view-listen, #view-reading) .msh-folded,
html body:not(.cv-mshell) #appShell #view-listen .msh-foldon .cv-div-count { display: none !important; }
html body:not(.cv-mshell) #appShell #view-listen .book-audio-list > .msh-fold-h {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 10px 20px 10px 18px;
  border: 0; border-bottom: 1px solid var(--hairline-soft); border-radius: 0; background: transparent; box-shadow: none;
  color: var(--ink); text-align: left; font: inherit; cursor: pointer;
}
html body:not(.cv-mshell) #appShell #view-listen .book-audio-list > .msh-fold-h[hidden] { display: none !important; }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h .msh-fl { flex: 1; min-width: 0; display: grid; gap: 2px; }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h b { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h small { color: var(--muted); font-size: 13px; }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h .msh-fchev { flex: none; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s ease; }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h[aria-expanded="true"] { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h[aria-expanded="true"] .msh-fchev { transform: rotate(90deg); }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
html body:not(.cv-mshell) #appShell #view-listen .msh-fold-h:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 手机：单元名长的（如「Unit 12 · Have you ever been on a plane?」）换行，不截成省略号 */
html body.cv-mshell #appShell #view-listen .msh-fold-h b { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading {
  display: flex !important; align-items: center; gap: 8px; min-height: 44px; margin: 2px 0 0 !important; padding: 8px 8px 8px 6px !important;
  border-radius: 10px; color: var(--ink-2) !important; cursor: pointer;
}
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading[hidden] { display: none !important; }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading::after { content: "›"; flex: none; margin-left: 4px; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s ease; }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading[aria-expanded="true"]::after { transform: rotate(90deg); }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading .msh-fcount { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── 5. 阅读馆 ──────────────────────────────────────────────────────────── */
/* 书名前的空心圆像单选框：没读过的不画圈，只在读过（✓）、读到一半（进度环）时显示；
   整个面板里一篇都没读过时连位置也不留，书名往左靠齐。 */
#view-library .lib-pk-st:not(.is-read):not(.is-reading) { border-color: transparent; }
#view-library .lib-pk:not(:has(.lib-pk-st:is(.is-read, .is-reading))) .lib-pk-st { width: 0; margin-right: -12px; border: 0; }
/* 手机书架页横向多出 14px（base 就有）：书架下面那层装饰光晕 .cf-glow 比书架宽（-14 → 389px）。
   只在书架这一块横向收边（overflow-x: clip 不会让它变成滚动容器）；书架自己的横向滚动在内层 .cf-scroller，不受影响。
   5.10.3-audit-fix0-v1：原来这里给阅读馆页的 <html> 加了 overflow-x: hidden，和 body 原有的 overflow-x: hidden 叠在一起，
   body 变成一个从不滚动的滚动容器，阅读馆里所有吸顶、吸底（读物条、侧栏、手机中考答题卡）都失效了（全站体检 T2-09）。
   不要再在 <html> 上写 overflow。 */
#view-library .cf-stage { overflow-x: clip; }
/* 平板竖屏（768–1023）：搜索框和「推荐 / 书架 / 主题 / 我的」各占一行（原来搜索框只有约 170px，提示字被截断） */
@media (min-width: 768px) and (max-width: 1023px) {
  #view-library .lib-pk-tools { grid-template-columns: minmax(0, 1fr); }
}
/* 触屏：分段标签、「换一批」、搜索框 44px 高 */
@media (max-width: 1180px) {
  #view-library .lib-pk-tabs button { min-height: 44px; }
  #view-library .lib-pk-swap { min-height: 44px; padding-inline: 14px; }
  #view-library .lib-pk-search { height: 44px; }
}

/* ── 6. 触屏点击区域（补查）：读物页顶条、读前提示、历年中考答题卡题号、书架左右换套、朗读逐句「慢速」 ── */
@media (max-width: 1180px) {
  #view-library .lib-rbar :is(.lib-icon-btn, .lib-rbar-back) { min-width: 44px; height: 44px; }
  #view-library .lib-rbar .lib-pick-btn { height: 44px; }
  #view-library .lib-prompt-mini summary { min-height: 44px; }
  #view-library .lib-xchip { min-width: 44px; height: 44px; }
  #view-library .lib-xarrow { width: 44px; height: 44px; }
  #view-library .cf-nav, #view-library .cf.is-wide .cf-nav { width: 44px; height: 44px; margin-top: -22px; }
  html[data-ds][data-visual-world] #appShell #view-reading .reading-tips-fold > summary { min-height: 44px !important; }
  /* 读后练习：选词按钮 40 → 44；「看原文」小按钮外观不变，点击区域上下各扩 8px */
  #view-library .lib-chip-opt { min-height: 44px; }
  #view-library .lib-goto-sm::before { content: ""; position: absolute; inset: -8px 0; }
  /* 听力播放条：倍速「1×」宽 40 → 44；A-B 复读提示的关闭钮 13px → 44px 点击区域（负边距，提示条高度不变） */
  html[data-visual-world] #appShell #view-listen .academy-player .listen-ctl-btn { min-width: 44px; }
  html[data-visual-world] #appShell #view-listen .listen-ab-hint .session-gear-hint-x { flex: none; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; margin: -14px -12px -14px 0; }
}

/* 5.10.3-ui-sweep-v1 · A5 学生·首页/单词/测验/拼写（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。 */

/* ── 首页（手机外壳）「今天」清单：说明最多两行，截止时间不再被省略号吃掉（文字本身也改短了，见 app.js vocabAssignmentShortText） ── */
body.cv-mshell #msh-home .msh-tmain span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.35; }
/* 首页头像、级别标签：手指点击区不小于 44px */
body.cv-mshell #msh-home .msh-ava:not(.big) { width: 44px; height: 44px; }
body.cv-mshell #msh-home .msh-lv { min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; }

/* ── 单词页：手机分段（学习 / 拼写 / 待复习难词 / 测验）和二级标签点击区 44px ── */
body.cv-mshell .msh-wseg button { min-height: 44px; }
/* 刷卡时分段条在 .cv-study-topbar（竖排、居中）里被缩成内容宽，「待复习难词」折成三行：撑满一行（改前就有） */
body.cv-mshell #view-study .cv-study-topbar > .msh-wseg { align-self: stretch; }
/* 刷卡时 refine.css 用 html:has(… #swipeStage) 压成 min-height:0 !important，这里要带 ID 才压得过 */
html[data-ds] body.cv-mshell .view.active:is(#view-study, #view-practice) .words-mode-toggle.vocab-mode-toolbar.msh-sub .wm-btn { min-height: 44px !important; }

/* ── 单词页（电脑 / 平板）：选范围、刷卡时标签条不再居中，和精学词卡页同一个位置、同一个宽度（原来从居中跳到左对齐）。
      词卡页的工作区是 min(100%,1120px) 居中（academy-theme.css .cv-study-workspace-toolbar），这里照它 ── */
@media (min-width: 768px) {
  #view-study .cv-word-scope-shell { width: min(100%, 1120px); margin-inline: auto; }
  #view-study .cv-study-topbar:not(.cv-study-workspace-toolbar) { width: min(100%, 1120px); margin-inline: auto; align-items: flex-start; }
}
@media (min-width: 900px) {
  #view-study .cv-study-topbar:not(.cv-study-workspace-toolbar) { justify-content: space-between; align-items: center; }
}
@media (min-width: 1200px) {
  /* 选范围卡片铺满后，四种范围排一行，卡片更矮 */
  #view-study .cv-word-scope-shell .cv-word-scope-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 手机单词页：有作业时作业条放最上面，下面用「自己练」把分段、范围收成一组；没有作业时只是更紧凑 ── */
@media (max-width: 767px) {
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell:has(> .vocab-assignment-banner) { display: flex; flex-direction: column; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .vocab-assignment-banner { order: -2; margin: 0 0 16px; }
  /* 原来这里用 ::before 画了一个「自己练」小标签；v2 第 4 条换成 mobile-shell.js 放的真按钮 .msh-selfbtn（样式见文件末尾） */
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-heading { margin-bottom: 10px; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-heading .eyebrow { display: none; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-heading h2 { font-size: 20px; margin: 0 0 4px; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-heading p { font-size: 12px; line-height: 1.45; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-unit { margin-bottom: 10px; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-option { min-height: 56px; padding-block: 8px; }
}

/* ── 触屏宽度（≤1180，平板 + 手机）：本区可点的东西点击区不小于 44px（补查量出来偏小的那些） ── */
@media (max-width: 1180px) {
  /* 首页：「刷新」和打卡提示条里的「重新读取」（平板走电脑首页） */
  #view-today #refreshDailyPlan { min-height: 44px !important; }
  html[data-ds][data-visual-world] #view-today .home-workspace-notice .secondary-action { min-height: 44px !important; height: 44px; }
  /* 精学词卡：「听单词」小喇叭、「没有麦克风？跳过跟读」 */
  #view-study #miniPlayWord, #view-study #cardMicEscapeWord { min-height: 44px; }
  /* 单元选择 + 「新词 · 31 词 更换」 */
  #view-study .cv-word-rangebar :is(select, .cv-word-range-switch) { height: 44px !important; min-height: 44px !important; }
  /* 刷卡：只显单词 / 单词+释义、返回列表、卡片下面的按钮、手势提示的关闭 */
  #view-study .swipe-seg button { min-height: 44px; min-width: 44px; }
  html #view-study .swipe-bar #swipeBack { min-height: 44px !important; }
  #view-study .swp2-actions :is(.swp2-deep, .swp2-play-ex) { min-height: 44px; }
  #view-study .swipe-gesture-hint .session-gear-hint-x { min-width: 44px; min-height: 44px; margin: -12px -10px -12px 0; justify-content: center; align-items: center; }
  /* 练习 / 测验设置：「全部」「当前」 */
  .view.active .unit-tools button { min-height: 44px !important; }
  /* 难词本：说明「i」、「知道了」、每个词下面的一排按钮 */
  #view-wrong :is(.cvw-info, .cvw-intro-x) { min-width: 44px !important; min-height: 44px !important; flex-shrink: 0; }
  #view-wrong .wrong-word-card .inline-actions > button, #view-wrong .wrong-word-card .more-actions > summary { min-height: 44px !important; }
}

/* ── 测验 / 练习（手机）：题目上方的提示压矮，题干、四个选项尽量一屏内看全 ── */
@media (max-width: 768px) {
  /* 「想换范围或题量?点这里调整」：关闭按钮保持 44px 可点，但不再把这一行撑到 52px */
  html[data-visual-world="academy"] #appShell .training-grid.session-live .session-gear-hint .session-gear-hint-x { margin-block: -10px; align-items: center; justify-content: center; }
  /* 「可用题量少于设置，本组将按实际 8 题进行。」 */
  .training-grid.session-live .question-card > .feedback[role="status"] { padding: 8px 12px; font-size: 13px; line-height: 1.45; margin-block: 6px 8px; }
}
/* 「正在同步答题进度…」原来是灰色小字直接压在壁纸上：给实底 */
#view-quiz .quiz-sync-notice > span[role="status"]:not(:empty) { flex: 0 1 auto; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); }

/* ── 深色主题：测验结果「错题复盘」卡写死了白底（styles.css .quiz-review-card），单词（var(--ink) 变浅色）压在白底上看不见 ── */
html.cv-dark .quiz-review-card { background: color-mix(in srgb, var(--surface) 92%, transparent); border-color: var(--hairline-soft, rgba(255,255,255,.14)); }
html.cv-dark .quiz-review-card p { color: var(--ink); }

/* 5.10.3-ui-sweep-v1 · A6 学生·写作/成长档案/会员/我的/帮助反馈（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。 */

/* ── 1. 作文分数统一写「12/100」、中性色（app.js writingScoreOutOf）。原来成长档案 <60 是红色徽章，像不及格 ── */
#view-writing .wh-score.wh-scored { color: var(--ink-2); background: var(--surface-2); }
#view-growth .score-badge.is-writing { color: var(--ink-2); background: var(--surface-2); font-size: 13px; }

/* ── 2. 写作页「查看额度 / 刷新」：触屏宽度做成 44px 描边按钮（原来是带下划线的小字，「刷新」常单独掉一行） ── */
@media (max-width: 1180px) {
  #view-writing .quota-hint[data-quota-feature] { gap: 6px 8px; }
  #view-writing .quota-hint[data-quota-feature] button {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--hairline) !important;
    border-radius: 999px !important;
    background: var(--surface) !important;
    font-weight: 600;
    text-decoration: none;
  }
}
/* 手机，以及平板横屏左右两栏时较窄的图片栏：说明单独一行，两个按钮并排在下一行（不再「查看额度」「刷新」各占一行） */
@media (max-width: 560px) {
  #view-writing .quota-hint[data-quota-feature] .quota-hint-main { flex: 1 0 100%; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  #view-writing .writing-capture-column .quota-hint[data-quota-feature] .quota-hint-main { flex: 1 0 100%; }
}

/* ── 3. 写作第 2 步：宽度 <900 时上下排，作文框占满一行（平板竖屏原来只有约 335px 宽）并加高 ── */
@media (max-width: 899px) {
  #view-writing .writing-capture-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (min-width: 761px) and (max-width: 899px) {
  #view-writing .writing-textarea-label textarea { min-height: 300px !important; }
  #view-writing .writing-upload-trigger { min-height: 96px !important; }
}

/* ── 4. 成长档案四张记录卡：按内容高度、最多显示 4 行（原来固定 4 行高，空卡和只有 1 条的卡下面空一大块）；空状态压矮 ── */
#view-growth .growth-history-scroll { height: auto; max-height: calc(var(--history-row-height) * 4); margin-top: 0; }
#view-growth .growth-history-scroll .empty-state-card { min-height: 0 !important; padding: 16px !important; }
html[data-visual-world] #view-growth .growth-history-scroll .empty-state-card::before { width: 72px; height: 60px; margin-bottom: 6px; }
#view-growth .growth-history-scroll .empty-state-card p { margin: 0; line-height: 1.6; }
#view-growth .growth-history-scroll .empty-state-cta { width: auto !important; min-height: 44px; margin-top: 10px; padding-inline: 18px !important; }
@media print { #view-growth .growth-history-scroll { max-height: none; } }

/* ── 5. 「近 7 天成长」：平板竖屏一类中等宽度，三个数字换到说明下面一行（原来挤断成「学习天/数」「学习词/汇」） ── */
@media (min-width: 761px) and (max-width: 1023px) {
  #view-growth .cv-ms-weekly { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ── 6. 手机：直接压在整页壁纸上的字加底板（壁纸固定在视口里，滚到哪都在字后面） ──
   会员页头的说明和三条卖点、成长档案「我的成就」整块：做成和其他大卡片一样的磨砂底板（--msh-card / --msh-frost，见 mobile-wallpaper.css）；
   会员页各段标题和段尾说明：沿用 mobile-wallpaper.css「局部遮罩」的做法，在字后面垫一片和底色同色的柔光。 */
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #appShell .main :is(#view-member .member-hero-copy, #view-growth .cv-ms-shelf) {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--msh-card) var(--msh-frost, 80%), transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #view-member :is(.member-section-heading, .member-value-foot, .member-usage-notes) {
  position: relative; isolation: isolate;
}
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #view-member :is(.member-section-heading, .member-value-foot, .member-usage-notes)::before {
  content: ""; position: absolute; z-index: -1; inset: -4px -10px; border-radius: 14px; pointer-events: none;
  background: color-mix(in srgb, var(--msh-veil-c) 92%, transparent);
  filter: blur(7px);
}

/* ── 7. 账号与设置（手机「我的 → 账号与设置」、电脑 / 平板设置抽屉）──
   手机两列按钮里「重新连接数据」断成两行；按钮补到 44px；「退出登录」和上面几个常用按钮拉开一点距离。 */
@media (max-width: 1180px) {
  .settings-drawer .settings-actions button { min-height: 44px; }
  .settings-drawer .settings-actions #settingsLogout { margin-top: 8px; }
  #settingsDrawer a[href="audio-attributions.html"] { min-height: 44px; align-items: center; }
}
@media (max-width: 460px) {
  .settings-drawer .settings-actions button { padding-inline: 8px !important; white-space: nowrap; }
}

/* ── 8. 帮助与反馈弹窗：触屏宽度下能点的东西补到 44px。
   help-feedback.css 是用到时才加载的，排在本文件后面，所以选择器前面多写一个 dialog 压过它 ── */
@media (max-width: 1180px) {
  dialog.hf-dialog .hf-x { width: 44px; height: 44px; }
  dialog.hf-dialog .hf-tabs button { min-height: 44px; }
  dialog.hf-dialog .hf-chip span { min-height: 44px; }
  dialog.hf-dialog .hf-switch { min-height: 44px; }
  /* summary 保持 list-item（不改 display，展开三角才在），用上下内边距撑高 */
  dialog.hf-dialog .hf-diagnote summary { padding-block: 12px; line-height: 20px; }
  dialog.hf-dialog .hf-link { min-height: 44px; }
  /* 「去掉这张」：点击区 44px，看到的圆点保持 28px */
  dialog.hf-dialog .hf-thumb-x { top: 0; right: 0; width: 44px; height: 44px; background: transparent; }
  dialog.hf-dialog .hf-thumb-x::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgb(12 18 32 / 66%); }
  dialog.hf-dialog .hf-thumb-x .hf-ic { position: relative; }
}

/* ── 9. 补查：手机（≤600 / ≤767）已经补到 44px 的按钮，平板（768–1180）没覆盖到 ──
   写作「直接输入」「编辑」「清空作文」「查看上次提交与评价」，成长档案口语筛选和「查看徽章」，会员页「用户协议 / 学习数据说明」「刷新额度」 */
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-writing :is(.writing-direct-action, .cv-b7-edit, .writing-clear-action) { min-height: 44px !important; }
  html[data-ds][data-visual-world] #view-writing #viewWritingSubmission { display: inline-flex; align-items: center; min-height: 44px; }
  html[data-ds][data-visual-world] #view-growth :is(.growth-filter-chip, [data-cv-ms-collection-toggle]) { min-height: 44px !important; }
  html[data-ds][data-visual-world] #view-member :is([data-auth-doc], [data-member-quota-refresh]) { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px !important; }
}

/* 5.10.3-ui-sweep-v1 · A7 Dot 面板/登录注册/启动屏（2026-11-18 三端界面整体优化）。新规则只写在这个文件里。
   只改点击区域和显示，不改按钮、事件、云端调用。「看起来」尽量不变：小图标、小胶囊用透明的 ::before 把能点的范围撑到 44px。 */

/* ── 1. 登录 / 注册：平板（601–1180px）的点击区域。≤600px 早已在 academy-theme.css / aivia-ds.css 里做过，这里补上平板这一段。 ── */
@media (min-width: 601px) and (max-width: 1180px) {
  html[data-visual-world] #authScreen .auth-tabs :is(#showLoginBtn, #showRegisterBtn) { min-height: 44px !important; }
  html[data-visual-world] #authScreen :is(#inlineRegisterBtn, .auth-public-footer button, .auth-public-footer a) {
    min-width: 44px !important; min-height: 44px !important; display: inline-flex !important; align-items: center; justify-content: center;
  }
  html[data-visual-world] #authScreen label:has(#rememberMe) { min-height: 44px; }
  /* 「我已阅读并同意」：勾选框的 44px 点击区以小方框为中心，两份协议链接留在句子里，用透明 ::after 撑高（同 aivia-ds.css ≤600px 的做法） */
  html[data-visual-world] #authScreen .auth-form .agreement-check {
    grid-template-columns: 18px minmax(0, 1fr) !important; align-items: start !important; column-gap: 10px !important;
  }
  html[data-visual-world] #authScreen .agreement-check .auth-agreement-hit {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important;
    margin: -13px !important; padding: 0 !important; cursor: pointer; position: relative; z-index: 1;
    align-self: start !important; justify-self: start !important;
  }
  html[data-visual-world] #authScreen .agreement-check .auth-agreement-hit input[type="checkbox"] { margin: 0 !important; align-self: center !important; }
  html[data-visual-world] #authScreen .agreement-check .auth-agreement-copy { min-width: 0; line-height: 18px !important; }
  html[data-visual-world] #authScreen #registerForm .agreement-check .auth-doc-link { position: relative; }
  html[data-visual-world] #authScreen #registerForm .agreement-check .auth-doc-link::after { content: ""; position: absolute; inset: -13px -2px; }
}

/* ── 2. Dot 浮动面板（电脑 / 平板）：触屏宽度下面板里的小按钮撑到 44px ── */
@media (max-width: 1180px) {
  html body #avdot-panel#avdot-panel:not(.avdot-sheet) .avdot-follow .avdot-button,
  html body #avdot-panel#avdot-panel:not(.avdot-sheet) :is(.avdot-remaining, .avdot-retry) { height: 44px !important; min-height: 44px !important; min-width: 44px !important; }
  html body #avdot-panel#avdot-panel:not(.avdot-sheet) .avdot-follow { gap: 8px 16px; flex-wrap: wrap; }
  html body #avdot-panel#avdot-panel details > summary { box-sizing: border-box; min-height: 44px; padding-block: 8px !important; line-height: 28px; } /* 不改 display，保留展开三角 */
  html body #avdot-panel#avdot-panel select { height: 44px !important; min-height: 44px !important; }
}

/* 「Dot 带我学」整页有自己的选项区：之前在浮动面板里问出的打卡 / 作业按钮，面板嵌进整页后不再重复显示（dot-companion.js 本来就不在整页里画这些按钮） */
html body #avdot-panel#avdot-panel.avdot-inline .avdot-actions { display: none !important; }

/* ── 3. 手机 Dot：浮钮弹层 + 底部半屏面板 ── */
@media (max-width: 767px) {
  /* 弹层：关闭、麦克风、发送 44px；两个建议胶囊看起来不变，点击区撑高 */
  body.cv-mshell .msh-x { width: 44px; height: 44px; }
  body.cv-mshell .msh-mic, body.cv-mshell .msh-send { width: 44px; height: 44px; }
  body.cv-mshell .msh-chip { position: relative; }
  body.cv-mshell .msh-chip::before { content: ""; position: absolute; inset: -3px -2px; }
  html body #msh-dot-input#msh-dot-input { align-self: stretch; }
  /* 半屏面板：收起 / 关闭、麦克风、静音、发送 38 → 44px；头像和「更简单的英文」等胶囊看起来不变，点击区撑到 44px */
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head-tools .avdot-button,
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-button {
    width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important;
  }
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-head > .avdot-avatar::before { content: ""; position: absolute; inset: -7px; }
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow { overflow: visible !important; flex-wrap: wrap; }
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow .avdot-button { position: relative; overflow: visible !important; }
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow .avdot-button::before { content: ""; position: absolute; inset: -7px -3px; }
}

/* ── 4. 全局外壳 ── */
/* 手机外壳页头：头像、返回 40 → 44px；级别胶囊看起来不变，点击区撑到 44px 高 */
@media (max-width: 767px) {
  body.cv-mshell .msh-ava:not(.big), body.cv-mshell .msh-back { width: 44px; height: 44px; }
  body.cv-mshell .msh-lv { position: relative; }
  body.cv-mshell .msh-lv::before { content: ""; position: absolute; inset: -9px -4px; }
}
/* 平板（768–1180）：顶栏搜索框 42 → 44px；「学习级别 ⓘ」说明按钮看起来不变，点击区撑到 44px */
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-visual-world] .topbar .search-box #globalSearch { height: 44px !important; min-height: 44px !important; }
}
@media (max-width: 1180px) {
  html[data-visual-world] .learning-level-help > summary { position: relative; }
  html[data-visual-world] .learning-level-help > summary::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
}


/* ═══ 合并衔接（主会话，11-18）：各区之间互相转交、没人接手的小问题 ═══ */
/* 手机「我的」各子页左上「‹」：40×40 → 44×44（A6 转 A7） */
body.cv-mshell .msh-back2 { width: 44px; height: 44px; }
/* 阅读馆读物页顶条「问 Dot」：触屏 34px 高 → 44px（A4 转 A7） */
@media (max-width: 1180px) { #view-library .lib-dot-btn { min-height: 44px; } }
/* 老师手机端布置作业：A3 的班级头吸顶（top:0，约 58px 高）和 A2 的选词单元标题吸顶会叠在一起，单元标题挪到班级头下面 */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="assign"] #createVocabAssignmentForm .vocab-group-head { top: 64px; }
}

/* ═══ 5.10.3-ui-sweep-v2 · 第 4 条（B2，11-18）：手机单词页「自己练」做成真正可收起 ═══
   有词汇作业、停在「选范围」时，作业条下面一行「自己练」按钮；收起时分段（学习 / 拼写 / 待复习难词 / 测验）、
   精学 / 刷卡 / 练习和选范围卡片都藏起来。按钮和收起状态由 mobile-shell.js syncWords() 每次页面变化后重新套上
   （#view-study.msh-selfshut、按钮 aria-expanded）。默认收起 / 展开见 mobile-shell.js 的 SELF_OPEN_DEFAULT。 */
body:not(.cv-mshell) .msh-selfbtn { display: none !important; }
@media (max-width: 767px) {
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .msh-selfbtn {
    order: -1; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 0 0 10px; padding: 8px 16px;
    border: 1px solid color-mix(in srgb, var(--msh-edge) 70%, transparent); border-radius: 16px; background: var(--msh-card); box-shadow: var(--msh-shadow);
    color: var(--msh-ink); font: inherit; text-align: left; cursor: pointer;
  }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .msh-selfbtn strong { flex: none; font-size: 16px; font-weight: 700; color: var(--msh-ink); }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .msh-selfbtn span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--msh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 右边的箭头：收起时朝下，展开后朝上 */
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .msh-selfbtn i {
    flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0; border: solid var(--msh-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
  }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .msh-selfbtn[aria-expanded="true"] i { margin-top: 4px; transform: rotate(-135deg); }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .msh-selfbtn[aria-expanded="true"] { background: color-mix(in srgb, var(--msh-accent-soft) 60%, var(--msh-card)); }
  /* 收起：只留作业条和「自己练」这一行 */
  body.cv-mshell #view-study.word-scope-choosing.msh-selfshut .cv-word-scope-shell > :not(.vocab-assignment-banner):not(.msh-selfbtn) { display: none !important; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body.cv-mshell .msh-selfbtn i { transition: none !important; }
}

/* ═══ 5.10.3-ui-sweep-v2 · 第 6 条（B2，11-18）：手机练习答错后，「下一题」一眼看得到、不用往下滚 ═══
   改前：答错面板依次是「正确答案 · 解析 · 例句 · 三个按钮 · 下一题」，线上 KET 题（有解析、例句）在 375×812 上
   「下一题」落在 y 883–1017，整颗在屏幕外。两种排法，app.js practiceReviewHtml() 里 nextAt 一行切换（只在 ≤767px 生效）：
   - pr-next-top（方案甲）：「下一题」挪到第一行，排在「正确答案」右边；解析、例句、三个按钮在下面。
   - pr-next-dock（方案乙）：顺序不变，「下一题」吸在屏幕底部，往下滚到面板末尾时落回原位。 */
@media (max-width: 767px) {
  .training-grid.session-live .practice-review.bad.pr-next-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .training-grid.session-live .practice-review.bad.pr-next-top > * { grid-column: 1 / -1; }
  .training-grid.session-live .practice-review.bad.pr-next-top > .pr-head { grid-column: 1; grid-row: 1; }
  /* width:auto 必带 !important：styles.css 在 ≤460px 给 .primary-action 塞了 width:100% */
  .training-grid.session-live .practice-review.bad.pr-next-top > #continuePractice { grid-column: 2; grid-row: 1; width: auto !important; min-width: 96px; min-height: 44px; padding-inline: 20px; white-space: nowrap; }

  /* 方案乙：网格里的格子吸不动（只能在自己那一格里动），面板改成竖排 flex */
  .training-grid.session-live .practice-review.bad.pr-next-dock { display: flex; flex-direction: column; }
  .training-grid.session-live .practice-review.bad.pr-next-dock > #continuePractice { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 3; min-height: 48px; box-shadow: 0 6px 20px rgb(22 35 63 / 22%); }
}

/* ══ 5.10.3-ui-sweep-v2 · B1（2026-11-18）老师端批改 / 学生页整屏详情 ══ */
/* 第 0 节（详情顶栏吸顶）先量过：Chromium、WebKit 在 375、820 宽、作文和学生两页都已吸住（top = 0），按方案跳过，不加样式。 */

/* ── v2 · 第 1 条：平板 / 手机整屏批改，「保存」那一行一直吸在屏幕底部 ──
   只在 ≤1099px 且 .t-ws[data-detail="writing"] 时生效；电脑宽度、没进整屏详情时完全不变。
   盒子 .teacher-review-box 和里面的三个 id、两个保存按钮都不搬（草稿保留靠它们的位置，见 app.js renderTeacherSubmissionResult）。
   开关在 app.js TEACHER_REVIEW_DOCK：'row' = 方案甲（盒子 display:contents，只有按钮行吸底）；'box' = 方案乙（整个盒子默认收起、吸底）。
   说明：作文卡片 .submission-detail-card 保持 grid —— 先量过网格子元素能吸底（同第 0 节），不按方案改 flex，作文照片尺寸也就不受影响。 */
#view-teacher .teacher-review-actions :is(.t-review-jump, .t-review-status, .t-label-short) { display: none !important; }
@media (max-width: 1099px) {
  /* 方案甲：盒子不出框，子元素直接算作文卡片的子元素，按钮行就能跨整篇作文吸底 */
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box:not(.t-dock-box) { display: contents !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box:not(.t-dock-box) > .eyebrow {
    margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--hairline);
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box:not(.t-dock-box) > .teacher-review-actions,
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box.t-dock-box:not(.is-open) {
    position: sticky; bottom: 0; z-index: 5;
    background: var(--ds-card, var(--surface)) !important;
    border: 1px solid var(--ds-card-edge, var(--hairline)) !important; border-radius: var(--ds-r-card, 16px) !important;
    box-shadow: var(--shadow-sm);
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box:not(.t-dock-box) > .teacher-review-actions { margin-top: 0; padding: 8px; gap: 8px; }
  /* 方案乙：收起时只露出按钮行；点「打分 · 评语」加 is-open，回到原来的盒子样子（不吸底） */
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box.t-dock-box:not(.is-open) { margin-top: 0; padding: 8px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box.t-dock-box:not(.is-open) > :not(.teacher-review-actions) { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box.t-dock-box > .teacher-review-actions { margin-top: 0; gap: 8px; }
  /* 「打分 · 评语」按钮（乙展开后不再需要）、就近的保存结果提示 */
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box:not(.is-open.t-dock-box) .t-review-jump { display: inline-block !important; margin-right: auto; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .t-review-status:not(:empty) {
    display: block !important; flex: 1 0 100%; order: -1; margin: 0 2px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--ink-2);
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .t-review-status[data-tone="good"] { color: var(--green-ink); }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .t-review-status[data-tone="bad"] { color: var(--red-ink); }
}
/* 手机（< 768，有底部 5 个标签）：贴在底栏上方（和 A2 发布条同一个数）；三个按钮一行放下，主按钮显示短的「保存，下一篇」。
   详情卡片左右各有 24px 内边距，吸底条往两边各伸出 12px（375 宽时 293 → 317px），不然三个按钮要折成两行 */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box:not(.t-dock-box) > .teacher-review-actions,
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-box.t-dock-box:not(.is-open) {
    bottom: calc(67px + env(safe-area-inset-bottom, 0px)); margin-left: -12px; margin-right: -12px; padding: 6px !important;
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-actions { gap: 6px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-actions button {
    flex: 0 0 auto; width: auto !important; padding: 0 10px !important; white-space: nowrap;
  }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-actions .t-label-long { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-actions .t-label-short { display: inline !important; }
  /* 「已批改 · 老师」小标签：顶上的「已批改」徽章已经写了，吸底行里放不下就不重复 */
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-detail="writing"] .t-grading .teacher-review-actions > .badge { display: none !important; }
}

/* ═══ v2 · 第 3 条（B3）：每日打卡的朗读 / 听力列表，触屏宽度（≤1180）不再是嵌在页面里的小滚动框（手指容易卡在框里），
   和选词列表一样自然展开、按组收起。听力原来只按分册分成两组（学生用书一组 105 条），app.js teacherCheckinListeningChoices
   改成按「分册 · 单元」分组后，「按单元快速选」只展开选中的那个单元。电脑上保持原来的滚动框。 ═══ */
@media (max-width: 1180px) {
  #createDailyCheckinForm .checkin-target-multi { max-height: none !important; overflow: visible !important; }
}


/* ═══ v2 · 第 7 条（B3）：电脑（>1180，表格形式）管理员账号表的「更多」是浮在按钮下面的菜单，不再把这一行撑高。
   app.js openAdminMorePop 把 .admin-more-menu 挂到 body 上、按「更多」的位置定位（fixed），收起时放回原处；
   平板、手机（≤1180 卡片行）照旧在行里往下展开，不受影响。 ═══ */
body > .admin-more-menu.admin-more-pop {
  position: fixed; z-index: 1050; top: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  min-width: 152px; max-width: calc(100vw - 16px); margin: 0; padding: 6px; box-sizing: border-box;
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg);
}
body > .admin-more-pop .text-button {
  display: flex !important; align-items: center; justify-content: flex-start; width: 100% !important; min-height: 38px !important; margin: 0 !important;
  padding: 0 12px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important;
  color: var(--ink) !important; font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; box-shadow: none !important;
}
body > .admin-more-pop .text-button:is(:hover, :focus-visible) { background: var(--surface-2) !important; }
body > .admin-more-pop .text-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 「注销」排最后、红字，和上面隔一条线 */
body > .admin-more-pop .text-button.danger { color: var(--red-ink) !important; }
body > .admin-more-pop .text-button.danger:is(:hover, :focus-visible) { background: var(--red-soft) !important; }
body > .admin-more-pop .text-button.danger:not(:first-child) { position: relative; margin-top: 9px !important; }
body > .admin-more-pop .text-button.danger:not(:first-child)::before { content: ""; position: absolute; left: 6px; right: 6px; top: -6px; border-top: 1px solid var(--hairline); }
/* 电脑上菜单浮在外面，按钮上仍写「更多」（不换成「收起」），箭头朝上表示开着 */
@media (min-width: 1181px) {
  #view-admin .admin-more[open] .admin-more-open { display: inline; }
  #view-admin .admin-more[open] .admin-more-close { display: none; }
}


/* ═══ v2 · 第 5 条（B3）：手机 Dot 半屏面板「更简单的英文 / 中文帮助」胶囊的点击区往下差一点。
   原因：胶囊有 1px 边框，绝对定位的 ::before 是从边框里面（padding box）算 inset 的，A7 第 3 节的 inset:-7px -3px
   实际只撑到 42px 高（30 − 2 + 14），中心往下 21px 正好落在下沿外面。把边框算进去：上下各 8px、左右各 4px，正好 44px。
   胶囊看起来不变；下沿离输入框还有 1px，不会盖住输入框。 ═══ */
@media (max-width: 767px) {
  html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-follow .avdot-button::before { inset: -8px -4px; }
}


/* ═══ 全站体检批次 2 · a1（数据与提示）开始：a1 的样式只写在这一段里 ═══ */
/* T1-11 / T4-06 / T4-04：手机「今天」卡顶上的状态行（作业 / 打卡没读出来、正在读取、还有 N 项没交给老师）。
   一行字 + 右边「重试」；重试按钮 44px 高。颜色取设计系统变量，七套皮肤和深色自动跟随。 */
html body.cv-mshell #msh-home .msh-tstat { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 0; padding: 0 4px 0 12px;
  border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--msh-ink); background: var(--msh-canvas); }
html body.cv-mshell #msh-home .msh-tstat > span { flex: 1; min-width: 0; padding: 10px 0; }
html body.cv-mshell #msh-home .msh-tstat.is-bad,
html body.cv-mshell #msh-home .msh-tstat.is-sync { background: var(--msh-brass-soft); color: var(--ds-brass-ink, var(--msh-ink)); font-weight: 600; }
html body.cv-mshell #msh-home .msh-tstat.is-bad > span::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%;
  background: var(--msh-brass); color: var(--msh-card); font-size: 12px; font-weight: 800; vertical-align: 1px; }
html body.cv-mshell #msh-home .msh-tstat.is-wait { color: var(--msh-muted); }
html body.cv-mshell #msh-home .msh-tstat .msh-tretry { flex: none; min-height: 44px; min-width: 64px; padding: 0 14px; border: 0 !important; border-radius: 10px;
  background: transparent !important; color: var(--msh-accent) !important; font-size: 15px; font-weight: 700; }
/* ═══ 批次 2 · a1 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 2 · a2（作业流程与按钮）开始：a2 的样式只写在这一段里 ═══ */
/* ── T1-1、T1-2：作业测验完成页（.assignment-complete-final）──
   奖杯、「测验完成」、标题各占一行居中；标题用专用类 .assignment-complete-heading，22–26px（原来借做题的 .question-prompt，电脑上 52px）。
   「下一步」主按钮（.assignment-complete-next）在标题下面；六张数字卡压成一行小标签；次要按钮（.assignment-complete-more）放最后。 */
.assignment-complete-final .assignment-complete-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.assignment-complete-final .assignment-complete-trophy { display: block; margin: 0 0 2px; }
.assignment-complete-final .assignment-complete-hero .eyebrow { display: block; margin: 0; }
.assignment-complete-final h2.assignment-complete-heading { margin: 4px 0 2px; font-size: clamp(22px, 15px + 1.1vw, 26px) !important; line-height: 1.3 !important; font-weight: 800 !important; letter-spacing: -0.01em !important; color: var(--ink) !important; text-wrap: balance; max-width: 30em; }
.assignment-complete-final .assignment-complete-hero .word-meaning { margin: 2px 0 0; font-size: 15px !important; line-height: 1.5 !important; color: var(--muted) !important; }
.assignment-complete-final .assignment-complete-next { justify-content: center; margin: 14px 0 4px; }
.assignment-complete-final .assignment-complete-next .primary-action { min-width: 220px; min-height: 48px; font-size: 16px; }
.assignment-complete-final .assignment-result-grid.assignment-complete-stats { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 12px 0 4px; }
.assignment-complete-final .assignment-complete-stats > .metric-card { display: inline-flex !important; align-items: baseline; gap: 6px; min-height: 0 !important; padding: 5px 12px !important; border-radius: 999px !important; box-shadow: none !important; text-align: left !important; grid-column: auto !important; }
.assignment-complete-final .assignment-complete-stats > .metric-card:hover { transform: none !important; box-shadow: none !important; }
.assignment-complete-final .assignment-complete-stats > .metric-card span { display: inline !important; font-size: 12.5px !important; white-space: nowrap !important; overflow: visible !important; }
.assignment-complete-final .assignment-complete-stats > .metric-card strong { font-size: 15px !important; letter-spacing: 0 !important; font-family: inherit !important; }
.assignment-complete-final .assignment-complete-stats > .metric-card small { display: none !important; }
.assignment-complete-final .assignment-complete-more { justify-content: center; margin-top: 14px; }
/* 方案乙（app.js assignmentQuizCompleteHtml 里 nextAt = 'dock'）：手机上主按钮排到错题复盘后面，吸在屏幕底部，滚到页尾时落回原位 */
@media (max-width: 767px) {
  .assignment-complete-final.cv-complete-next-dock { display: flex; flex-direction: column; }
  .assignment-complete-final.cv-complete-next-dock > * { order: 1; }
  .assignment-complete-final.cv-complete-next-dock > .assignment-complete-hero { order: 0; }
  .assignment-complete-final.cv-complete-next-dock > .assignment-complete-next { order: 2; position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 3; margin: 12px 0 0; }
  .assignment-complete-final.cv-complete-next-dock > .assignment-complete-next .primary-action { box-shadow: 0 6px 20px rgb(22 35 63 / 22%); }
  .assignment-complete-final.cv-complete-next-dock > .assignment-complete-more { order: 3; }
}

/* ── T1-4：练习、自由测验、作业测验每组结果：按钮行在分数下面，错题复盘在按钮下面 ── */
.session-q-body .cv-result-actions { margin: 14px 0 6px; }
/* 练习做完时页面滚到结果区顶上（app.js），手机上给吸顶标题栏留出位置 */
.session-q-body { scroll-margin-top: 12px; }
@media (max-width: 767px) { .session-q-body { scroll-margin-top: 68px; } }

/* ── T1-4：错题卡压短（.qrc-compact）：单词 + 小标签、题目、「你选 → 正确」、一句例句；其余收进「展开」 ── */
.quiz-review-card.qrc-compact { gap: 6px; padding: 12px 14px; }
.quiz-review-card.qrc-compact .qrc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.quiz-review-card.qrc-compact .qrc-head strong { font-size: 17px; }
.quiz-review-card.qrc-compact .qrc-tags { font-size: 12px; font-weight: 700; color: var(--muted); }
.quiz-review-card.qrc-compact p.qrc-prompt { font-size: 14px; line-height: 1.45; color: var(--muted); }
.quiz-review-card.qrc-compact .review-detail.qrc-body { display: grid; gap: 6px; margin: 0; }
.quiz-review-card.qrc-compact p.qrc-pick { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.quiz-review-card.qrc-compact .qrc-pick b { font-weight: 700; }
.quiz-review-card.qrc-compact .qrc-yours b { color: var(--red-ink, var(--red)); }
.quiz-review-card.qrc-compact .qrc-right b { color: var(--green-ink, var(--green)); font-weight: 800; }
.quiz-review-card.qrc-compact .qrc-arrow { margin: 0 2px; color: var(--muted); }
.quiz-review-card.qrc-compact p.qrc-line { font-size: 14px; line-height: 1.5; color: var(--ink-2, var(--ink)); }
.quiz-review-card.qrc-compact .qrc-line small { margin-right: 2px; font-size: 12px; font-weight: 800; color: var(--muted); }
.quiz-review-card.qrc-compact:not(.is-open) .qrc-x { display: none !important; }
.quiz-review-card.qrc-compact .qrc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.quiz-review-card.qrc-compact .qrc-toggle { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); }
.quiz-review-card.qrc-compact .qrc-toggle::after { content: ""; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.quiz-review-card.qrc-compact.is-open .qrc-toggle::after { transform: translateY(1px) rotate(-135deg); }
.quiz-review-card.qrc-compact [data-dot-select-review] { width: auto !important; min-height: 40px; }
@media (max-width: 767px) { .quiz-review-card.qrc-compact .qrc-toggle { min-height: 44px; } }

/* ── T1-20：作业词都学完后，词卡区的完成卡（三端通用） ── */
.cv-assign-learned { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px !important; }
.cv-assign-learned .cv-assign-learned-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink, var(--green)); }
.cv-assign-learned .cv-assign-learned-ic .ic { width: 28px; height: 28px; }
.cv-assign-learned h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.3; color: var(--ink); }
.cv-assign-learned p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cv-assign-learned .cv-assign-learned-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.cv-assign-learned .cv-assign-learned-actions .primary-action { min-width: 200px; min-height: 48px; font-size: 16px; }
.cv-assign-learned .cv-assign-learned-actions .secondary-action { min-height: 44px; }
@media (max-width: 460px) { .cv-assign-learned .cv-assign-learned-actions { flex-direction: column; align-self: stretch; } }
/* 平板（769–1180px 侧栏排在词卡下面）：步骤条在词卡上面也放一份，侧栏里那份藏起来；其余宽度反过来 */
.cv-assign-steps-top { display: none; }
@media (min-width: 769px) and (max-width: 1180px) {
  #view-study .cv-assign-steps-top { display: block; margin: 0 0 12px; }
  #view-study .cv-assign-steps-top .assignment-steps { margin: 0; }
  #view-study .cv-assignment-sheet .assignment-study-progress > .assignment-steps { display: none; }
}

/* ── T1-10：难词本主按钮换成「难词测验 · 答对才算复习」，刷卡在第二行变成次要按钮 ── */
#view-wrong .cvw-actions.cvw-quiz-first .cvw-swipe-lite { flex: 1 1 auto !important; }
/* 刷卡结束卡多了一个直达难词测验的按钮：三个按钮竖排，主按钮在上 */
.swp2-end .swp2-end-actions.swp2-end-wrong { flex-direction: column; align-items: stretch; width: min(100%, 300px); }
.swp2-end .swp2-end-actions.swp2-end-wrong > button { width: 100% !important; min-height: 44px; }
.swp2-end .swp2-rev .swp2-mean { max-width: 22em; margin-inline: auto; }
/* ═══ 批次 2 · a2 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 2 · a3（听说读写与会员）开始：a3 的样式只写在这一段里 ═══ */
/* T2-01 听力打卡聚焦页的播完条：打卡状态那句占一整行，「下一件 / 返回学习中心」是主按钮（盖 academy-theme.css 的 (1,3,1)!important） */
html[data-visual-world] body #view-listen .listen-finish-hint.listen-finish-checkin > span { flex-basis: 100%; margin-right: 0; line-height: 1.5; }
html[data-visual-world] body #view-listen .listen-finish-hint.listen-finish-checkin .listen-ctl-btn.is-primary {
  background: var(--academy-action, var(--accent)) !important; border-color: transparent !important; color: #fff !important; font-weight: 650;
}
@media (max-width: 767px) {
  html[data-visual-world] body #view-listen .listen-finish-hint.listen-finish-checkin .listen-ctl-btn { flex: 1 1 0; }
}
/* T2-05 朗读：逐句出分后的「读下一句 / 再读一遍」一排；全文有正式分后的「下一篇」（styles.css ≤460 给按钮塞了 width:100%，这里改回） */
#speechModal .reading-sentence-next { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
#speechModal .reading-sentence-next > button { width: auto !important; min-height: 44px; }
/* 方案甲收起「录音」后，录音卡里不留一块空白 */
#speechModal .recorder-actions:not(:has(> button:not(.hidden))) { display: none; }
.reading-next-task-row { margin-top: 12px; }
#speechModal .reading-next-task-row { margin: 12px 0 4px; }
.reading-next-task-row > .reading-next-task { width: 100% !important; min-height: 44px; justify-content: center; text-align: center; white-space: normal; }
@media (max-width: 560px) {
  #speechModal .reading-sentence-next > .primary-action { flex: 2 1 0; }
  #speechModal .reading-sentence-next > .secondary-action { flex: 1 1 0; }
  /* 手机上四个分数原来一格一行（styles.css 把 .score-grid 改成单列），「读下一句」被挤到弹窗第二屏；改成一行四格 */
  #speechModal .speech-result .score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #speechModal .speech-result .score-card { padding: 8px 6px; text-align: center; }
  #speechModal .speech-result .score-card span { font-size: 12px; /* 小修-20261125 原11px */ white-space: nowrap; }
  #speechModal .speech-result .score-card strong { margin-top: 2px; font-size: 22px; }
}
/* T2-04 朗读录音弹窗：麦克风权限被拒时的提示卡（琥珀色，图标 + 一句话 + 当前设备的步骤 + 我已打开，重试） */
#speechModal .speech-mic-help[hidden] { display: none !important; }
#speechModal .speech-mic-help { display: grid; gap: 8px; margin: 12px 0 4px; padding: 14px; border: 1px solid color-mix(in srgb, var(--amber-ink) 35%, transparent); border-radius: 14px; background: var(--amber-soft); color: var(--ink); text-align: left; }
#speechModal .speech-mic-help-head { display: flex; align-items: center; gap: 8px; color: var(--amber-ink); font-size: 16px; }
#speechModal .speech-mic-help-head .ic { width: 22px; height: 22px; flex: none; }
#speechModal .speech-mic-help p { margin: 0; font-size: 14px; line-height: 1.55; }
#speechModal .speech-mic-help :is(ol, ul) { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
#speechModal .speech-mic-help li { font-size: 14px; line-height: 1.55; }
#speechModal .speech-mic-help li b { margin-right: 6px; }
#speechModal .speech-mic-help li.is-current { padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 15px; }
#speechModal .speech-mic-help-more summary { cursor: pointer; color: var(--amber-ink); font-size: 13px; font-weight: 650; min-height: 32px; display: flex; align-items: center; }
#speechModal .speech-mic-help-more ul { padding-top: 4px; }
#speechModal .speech-mic-help-more li { color: var(--muted); font-size: 13px; }
#speechModal .speech-mic-help-again { color: var(--amber-ink); font-weight: 650; }
#speechModal .speech-mic-help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
#speechModal .speech-mic-help-actions > button { width: auto !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
#speechModal .speech-mic-help-actions > .primary-action { flex: 1 1 0; min-width: 0; }
#speechModal .speech-mic-help-actions > .secondary-action { flex: 0 0 auto; }
/* T5-18 Dot：麦克风出错的说明。电脑侧栏里状态行看得见，这里只留「怎么打开麦克风」；手机半屏状态行是读屏专用，这里连那句话一起显示 */
#avdot-panel .avdot-mic-help[hidden] { display: none !important; }
#avdot-panel .avdot-mic-help { display: grid; gap: 6px; margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--ink); font-size: 13px; line-height: 1.55; text-align: left; }
#avdot-panel:not(.avdot-sheet) .avdot-mic-help:not(.is-denied) { display: none !important; }
#avdot-panel:not(.avdot-sheet) .avdot-mic-help-lead { display: none; }
#avdot-panel .avdot-mic-help-lead { margin: 0; color: var(--amber-ink); font-weight: 650; }
#avdot-panel .avdot-mic-help-how summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--amber-ink); font-weight: 650; }
#avdot-panel .avdot-mic-help-how ul { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
#avdot-panel .avdot-mic-help-how li b { margin-right: 6px; }
#avdot-panel .avdot-mic-help-how li.is-current { padding: 6px 8px; border-radius: 8px; background: var(--surface); }
/* T2-11 手机作文回看：最上面是老师评价卡 / 「老师还没批改」，下面是带状态的按钮（宽屏照旧用 .wv-desktop-blocks，这一块不显示） */
.writing-viewer-card .wv-mobile-top { display: none; }
@media (max-width: 768px) {
  .writing-viewer-card .wv-mobile-top { display: block; margin: 12px 0; }
  .writing-viewer-card .wv-mobile-teacher { padding: 14px; border: 1px solid var(--hairline); border-left: 4px solid var(--green-ink); border-radius: 14px; background: var(--surface); }
  .writing-viewer-card .wv-mobile-teacher > .eyebrow { margin-bottom: 6px; color: var(--green-ink); }
  .writing-viewer-card .wv-mobile-teacher .wtr-score strong { font-size: 32px; }
  .writing-viewer-card .wv-mobile-teacher .feedback { margin: 0; font-size: 15px; line-height: 1.6; }
  .writing-viewer-card .wv-mobile-teacher .badge { align-self: flex-start; }
  .writing-viewer-card .wv-mobile-teacher.is-pending { display: flex; align-items: center; gap: 8px; border-left-color: var(--hairline); background: var(--surface-2); color: var(--muted); font-size: 14px; line-height: 1.5; }
  .writing-viewer-card .wv-mobile-teacher.is-pending .ic { flex: none; width: 18px; height: 18px; }
  .writing-viewer-card .wv-mobile-actions { margin: 0 0 14px; }
  .writing-viewer-card .wv-mobile-actions .secondary-action { width: auto !important; min-height: 44px; }
}
/* T6-10 手机会员页：学生手机外壳没有底栏，吸底支付条不再按旧底栏留空（--cv-mobile-tabbar-clearance 在外壳里是 104px），只留安全区 + 10px。
   Dot 浮钮由 mobile-shell.js 抬到条上方。没勾说明时点条上的按钮，勾选框亮起来、条上的小字变成「先勾选上面的说明」。 */
@media (max-width: 560px) {
  body.cv-mshell #view-member .member-mobile-checkout { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
#view-member .member-mobile-checkout small.is-nudge { color: var(--amber-ink); font-size: 12px; /* 小修-20261125 原11.5px */ font-weight: 700; }
#view-member .member-acceptance.is-attention { border-color: var(--amber-ink); background: var(--amber-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber-ink) 24%, transparent); animation: cv-b2a3-attention 1s ease-out 2; }
@keyframes cv-b2a3-attention { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber-ink) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { #view-member .member-acceptance.is-attention { animation: none; } }
/* T6-10 顺带：阅读馆「回到题目」浮钮和一句话小提示也按旧底栏留空（离底 112px）。手机外壳里改成跟着 Dot 浮钮走：
   「回到题目」和浮钮一样高（居中、窄，左右不碰浮钮）；小提示较宽，放在浮钮上方 12px。中考答题卡吸底时（lib-exam-dock）一起往上抬，和浮钮的抬法一致。 */
body.cv-mshell .lib-jumpback { bottom: calc(29px + env(safe-area-inset-bottom, 0px)); }
body.cv-mshell .lib-toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
body.cv-mshell.lib-exam-dock .lib-jumpback { bottom: calc(var(--lib-dock-h, 0px) + 21px + env(safe-area-inset-bottom, 0px)); }
body.cv-mshell.lib-exam-dock .lib-toast { bottom: calc(var(--lib-dock-h, 0px) + 84px + env(safe-area-inset-bottom, 0px)); }
/* ═══ 批次 2 · a3 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 2 · a4（系统返回与报错文案）开始：a4 的样式只写在这一段里 ═══ */
/* T6-8：帮助与反馈写了字没提交时按返回，弹窗顶上（标签下面）先出一条提醒：「继续写」/「先关掉」。颜色走 help-feedback.css 的 --hf-* 变量，深色模式跟着变 */
.hf-dialog .hf-hold { flex: none; margin: 12px 18px 0; padding: 12px 14px; border: 1px solid var(--amber-line, #e7cf9c); border-radius: 12px; background: var(--amber-soft, #f6ebd3); color: var(--amber-ink, #7f5512); }
.hf-dialog .hf-hold[hidden] { display: none; }
.hf-dialog .hf-hold p { margin: 0; font-size: 14px; line-height: 1.5; }
.hf-dialog .hf-hold p b { display: block; margin-bottom: 2px; font-size: 15px; }
.hf-dialog .hf-hold-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* 按钮不用 .hf-submit / .hf-secondary：测试和别处按 .hf-submit 找「提交反馈」 */
.hf-dialog .hf-hold-btn { min-height: 44px; padding: 8px 18px; border: 1px solid var(--hf-line); border-radius: 12px; background: var(--hf-surface); color: var(--hf-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hf-dialog .hf-hold-btn.is-main { border-color: var(--hf-accent); background: var(--hf-accent); color: #fff; font-weight: 700; }
.hf-dialog .hf-hold-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--hf-accent) 42%, transparent); outline-offset: 2px; }
html.cv-dark .hf-dialog .hf-hold { border-color: color-mix(in srgb, var(--amber-ink, #e2b866) 45%, transparent); background: color-mix(in srgb, var(--amber-ink, #e2b866) 16%, var(--hf-surface)); color: var(--hf-ink); }
/* ═══ 批次 2 · a4 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 3 · a1（批改）开始：a1 的样式只写在这一段里 ═══ */

/* ── T3-03：电脑（≥1100，名单和详情两栏）上，「打分 · 评语 / 只保存 / 保存，批改下一篇」那一行也吸底，吸在右边详情卡的底部。
   做法同 v2 第 1 条方案甲：盒子 display:contents，按钮行就能跨整篇作文吸底；盒子和里面的 id 都不搬（草稿保留不受影响）。
   开关在 app.js TEACHER_REVIEW_DOCK_WIDE（加 .t-dock-wide 类）；≤1099 仍走 v2 第 1 条的样式。
   打分框、评语框在按钮行上面，聚焦或点「打分 · 评语」时留出按钮行的高度，不被盖住。 */
@media (min-width: 1100px) {
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide { display: contents !important; }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide > .eyebrow {
    margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--hairline);
  }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide > .teacher-review-actions {
    position: sticky; bottom: 12px; z-index: 5; margin-top: 0; padding: 8px 10px; gap: 10px;
    background: var(--ds-card, var(--surface)) !important;
    border: 1px solid var(--ds-card-edge, var(--hairline)) !important; border-radius: var(--ds-r-card, 16px) !important;
    box-shadow: var(--shadow-md, var(--shadow-sm));
  }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide .t-review-jump { display: inline-block !important; margin-right: auto; }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide .teacher-review-actions > .badge { margin-right: 0; }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide .t-review-status:not(:empty) {
    display: block !important; flex: 1 0 100%; order: -1; margin: 0 2px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--ink-2);
  }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide .t-review-status[data-tone="good"] { color: var(--green-ink); }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide .t-review-status[data-tone="bad"] { color: var(--red-ink); }
  html[data-ds][data-visual-world] #view-teacher .t-grading .teacher-review-box.t-dock-wide :is(#teacherWritingScore, #teacherWritingComment) { scroll-margin-bottom: 96px; }
}

/* ── T3-04：只读的作文、订正版、参考改写改成按内容撑开的文字块（app.js writingReadBlockHtml），保留换行，能选中复制。
   老师批改详情、学生端作文结果和历史回看共用。样子照原来的只读框（边框、底色、行距），只是不再固定高度、不在框里滚。 */
.writing-read-block .writing-read-text {
  min-width: 0; margin: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal;
  font: inherit; font-size: 15.5px; line-height: 1.7; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm, 10px);
  -webkit-user-select: text; user-select: text; cursor: text;
}
.writing-read-block .writing-read-text.is-empty { color: var(--muted); font-size: 14px; }
@media (max-width: 767px) {
  .writing-read-block .writing-read-text { padding: 12px 14px; font-size: 15px; line-height: 1.65; }
}

/* ── T3-05：批改详情信息块：字数（低于题目要求标黄）、提交（迟交标出）、可折叠的题目要求 ── */
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta.t-sub-meta dd small {
  display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.4;
}
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta.t-sub-meta > div:is(.is-short, .is-late) {
  background: var(--amber-soft) !important; border-color: color-mix(in srgb, var(--amber-ink) 28%, transparent) !important;
}
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta.t-sub-meta > div:is(.is-short, .is-late) :is(dd, dd small) { color: var(--amber-ink) !important; }
html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta.t-sub-meta > div.is-late .t-late-tag { font-weight: 750; }
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt {
  min-width: 0; max-width: 100%; overflow: hidden; /* 收起时那一行题目开头不把网格列撑宽 */
  padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline-soft);
}
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt > summary {
  cursor: pointer; display: flex; align-items: baseline; gap: 8px; min-width: 0; min-height: 24px; list-style: none;
  font-size: 13px; font-weight: 750; color: var(--ink-2);
}
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt > summary::-webkit-details-marker { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt > summary > span:first-of-type { flex: 0 0 auto; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt > summary::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin: 0 2px 2px 0; align-self: center;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s;
}
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt[open] > summary::before { transform: rotate(45deg); }
/* 收起时标题后面露一行题目开头，展开后藏掉 */
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt .t-sub-prompt-peek {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--muted);
}
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt[open] .t-sub-prompt-peek { display: none; }
html[data-ds][data-visual-world] #view-teacher .t-grading .t-sub-prompt > p {
  margin: 6px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; color: var(--ink);
  -webkit-user-select: text; user-select: text;
}
@media (max-width: 767px) {
  /* 手机：信息块两列，格子压矮一点 */
  html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta.t-sub-meta { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html[data-ds][data-visual-world] #view-teacher .t-grading .submission-meta.t-sub-meta > div { padding: 7px 10px !important; }
}

/* ── T3-19：批改页筛选条右边的「刷新」（手机班级头的刷新按钮是藏起来的，这里所有宽度都有） ── */
html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="writing"] > .t-filters > #teacherWritingArchiveCount { margin-left: auto; }
html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="writing"] > .t-filters > .t-writing-refresh {
  display: inline-flex; align-items: center; gap: 6px; width: auto !important; min-height: 36px !important; padding: 0 12px !important; font-size: 14px;
}
html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="writing"] > .t-filters > .t-writing-refresh.is-busy svg { animation: cv-b3a1-spin 0.9s linear infinite; }
@keyframes cv-b3a1-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="writing"] > .t-filters > .t-writing-refresh.is-busy svg { animation: none; }
}
html.cv-reduce-motion[data-ds][data-visual-world] #view-teacher [data-teacher-panel="writing"] > .t-filters > .t-writing-refresh.is-busy svg { animation: none; }
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="writing"] > .t-filters > .t-writing-refresh { min-height: 44px !important; }
}

/* ═══ 批次 3 · a1 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 3 · a2（进度、催交与打卡看板）开始：a2 的样式只写在这一段里 ═══ */
/* T3-02：老师端轻提示 #teacherToast（app.js showTeacherToast）。基础样式是 refine.css 的 .safe-sync-toast：屏幕底部居中，手机在底栏上面 */
.safe-sync-toast.t-toast { z-index: 2600; max-width: min(520px, calc(100vw - 24px)); padding: 12px 16px; border-left-width: 4px; font-size: 14px; font-weight: 650; text-align: left; }
.safe-sync-toast.t-toast.good { border-left-color: var(--green-ink); }
.safe-sync-toast.t-toast.bad { border-left-color: var(--red-ink, #b42318); background: color-mix(in srgb, var(--red-soft, #fbe4e1) 60%, var(--surface)); }
.safe-sync-toast.t-toast.busy { border-left-color: var(--accent); }

/* T3-10 / T4-09：名单「今天的作业」没数据时的「今天还没打开」用灰字 */
html[data-ds][data-visual-world] #view-teacher .t-roster .t-hw-none { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* T3-06：作业明细顶上「未完成 N 人：名字…」+「复制催交消息」；复制后下面显示原文（复制不成时选中它） */
html[data-ds][data-visual-world] #view-teacher .t-chase { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--amber-ink) 26%, var(--hairline-soft)); border-radius: 10px; background: color-mix(in srgb, var(--amber-soft) 55%, var(--surface)); }
html[data-ds][data-visual-world] #view-teacher .t-chase.is-clear { border-color: color-mix(in srgb, var(--green-ink) 26%, var(--hairline-soft)); background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); }
html[data-ds][data-visual-world] #view-teacher .t-chase-line { flex: 1 1 240px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-chase-line strong { color: var(--amber-ink); font-weight: 700; }
html[data-ds][data-visual-world] #view-teacher .t-chase.is-clear .t-chase-line { color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-chase .t-chase-copy { flex: 0 0 auto; width: auto !important; min-height: 44px !important; padding: 0 14px !important; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-chase-preview { flex: 1 1 100%; margin: 0; padding: 8px 10px; border: 1px dashed var(--hairline); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
html[data-ds][data-visual-world] #view-teacher .t-chase-preview[hidden] { display: none !important; }

/* T3-06：明细里的状态改成彩色小徽章（未开始红、进行中黄、已完成绿），所有宽度一样；跟读列没要求时标「选做」（T3-18） */
html[data-ds][data-visual-world] #view-teacher .assignment-detail-table .t-dc-badge { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.6; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .assignment-detail-table .t-dc-badge[data-state="done"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .assignment-detail-table .t-dc-badge[data-state="pending"] { background: var(--amber-soft); color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .assignment-detail-table .t-dc-badge[data-state="notstarted"] { background: var(--red-soft, #fbe4e1); color: var(--red-ink, #9b2c1f); }
html[data-ds][data-visual-world] #view-teacher .assignment-detail-table th .t-dc-optional { margin-left: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
html[data-ds][data-visual-world] #view-teacher .assignment-detail-table .t-dc-toggle { display: none !important; }

/* T3-06：手机（≤560px，原来就是卡片）每人压成两行：名字 + 状态徽章 / 进度 · 正确率（或分数）；
   跟读、拼写、提交 / 批改、最近活动、朗读结果收起来，点卡片（或右边的 ⌄）展开。筛选隐藏的行（[hidden]）照旧不显示 */
@media (max-width: 560px) {
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state]:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px 12px !important; margin-bottom: 8px !important; cursor: pointer; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td { grid-column: 1 / -1; min-width: 0; background: transparent !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.td-title { grid-column: 1; grid-row: 1; display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 6px; padding: 0 !important; margin: 0 !important; border: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.td-title strong { min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.td-title br { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state]:not(.is-open) > td.td-title small { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.td-title small { order: 3; flex-basis: 100%; color: var(--muted); font-size: 12px; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards .t-dc-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 28px !important; min-width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards .t-dc-toggle .ic { transition: transform .15s ease; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr.is-open .t-dc-toggle .ic { transform: rotate(180deg); }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.t-dc-state { grid-column: 2; grid-row: 1; display: flex !important; justify-content: flex-end; padding: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.t-dc-state::before { content: none !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.t-dc-l2 { grid-column: 1; grid-row: 2; display: flex !important; justify-content: flex-start; align-items: baseline; gap: 6px; padding: 0 !important; font-size: 14px; color: var(--ink-2); text-align: left; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.t-dc-l2 + td.t-dc-l2 { grid-column: 2; justify-content: flex-end; text-align: right; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.t-dc-l2 { white-space: nowrap; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state] > td.t-dc-l2::before { max-width: none !important; font-size: 13px; font-weight: 500; }
  /* 「重新加载」在右边浮动；手机上未完成那一行排到它下面，占满整行 */
  html[data-ds][data-visual-world] #view-teacher .t-chase { clear: both; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state]:not(.is-open) > td.t-dc-l2 :is(br, br + small) { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr[data-result-state]:not(.is-open) > td.t-dc-more { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr.is-open > td.t-dc-more { display: flex !important; padding: 4px 0 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr.is-open > td.t-dc-l2 + td.t-dc-more { margin-top: 6px; border-top: 1px solid var(--hairline-soft) !important; padding-top: 8px !important; }
  html[data-ds][data-visual-world] #view-teacher .assignment-detail-table.responsive-cards tr.is-open > td.td-action.t-dc-more { display: block !important; }
}

/* T3-06 / T3-07：手机上（≤760px）明细和打卡看板的状态筛选排成一行，可以左右滑（原来折成 2–3 行） */
@media (max-width: 760px) {
  html[data-ds][data-visual-world] #view-teacher .teacher-result-quick-filters { display: flex !important; flex: 1 1 100% !important; flex-wrap: nowrap !important; gap: 8px !important; min-width: 0; max-width: 100%; margin: 0 !important; padding: 2px 0 !important; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  html[data-ds][data-visual-world] #view-teacher .teacher-result-quick-filters::-webkit-scrollbar { display: none; }
  html[data-ds][data-visual-world] #view-teacher .teacher-result-quick-filters > button { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; min-height: 44px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 999px !important; font-size: 14px !important; white-space: nowrap !important; }
}

/* T3-18：打卡摘要「完成 3 · 部分 1 · 未打卡 3」（三个互斥的数） */
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; flex: 0 1 auto; color: var(--ink-2); font-size: 15px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item { white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item + .t-ck-sum-item::before { content: "·"; margin: 0 8px; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item b { margin-left: 2px; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item[data-state="done"] b { color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item[data-state="pending"] b { color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item[data-state="notstarted"] b { color: var(--red-ink, #9b2c1f); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-note { flex: 1 1 100%; margin-top: 2px; color: var(--muted); font-size: 13px; }

/* T3-07：学生行一行——名字 · 状态徽章 · 7 个小圆点（最右边是查看的那一天，带一圈描边）· ⌄；点开看账号、带日期的 7 天格子、连续天数、朗读结果 */
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-list { display: block; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-row { border-top: 1px solid var(--hairline-soft); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-row:first-child { border-top: 0; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-row[hidden] { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-head { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 10px; width: 100% !important; min-height: 48px !important; margin: 0 !important; padding: 6px 4px !important; border: 0 !important; border-radius: 8px !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; font: inherit !important; text-align: left; cursor: pointer; transform: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-head:hover { background: var(--surface-2) !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-head:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent) !important; outline-offset: 1px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-badge { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 650; line-height: 1.6; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-badge[data-state="done"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-badge[data-state="pending"] { background: var(--amber-soft); color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-badge[data-state="notstarted"] { background: var(--red-soft, #fbe4e1); color: var(--red-ink, #9b2c1f); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots i.is-on { background: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots i.is-half { background: linear-gradient(90deg, var(--amber-ink) 50%, var(--surface-3) 50%); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots i.is-last { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--accent) 55%, transparent); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-chev { flex: 0 0 auto; color: var(--muted); transition: transform .15s ease; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-row.is-open .t-ck-chev { transform: rotate(180deg); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-body { display: grid; gap: 8px; padding: 2px 4px 14px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-body[hidden] { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-meta { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
@media (prefers-reduced-motion: reduce) { html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-chev { transition: none; } }
@media (min-width: 761px) {
  /* 电脑、平板：名字定宽、徽章定宽，各行的 7 个圆点上下对齐；⌄ 靠右 */
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-name { flex: 0 1 200px; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-badge { min-width: 76px; text-align: center; box-sizing: border-box; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots { margin-left: 18px; gap: 6px; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-dots i { width: 12px; height: 12px; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-chev { margin-left: auto; }
}

/* T3-07：手机（≤760px）打卡看板第一屏——标题和两个图标按钮一行；日期 ▾ · 任务 ▾ 一行（看今天时不显示「今天」按钮）；
   状态胶囊一行可横滑；查找框一行；说明文字、「今天有 N 项打卡任务」、筛选计数、任务标题块都收起（任务名就在下拉框里） */
@media (max-width: 760px) {
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="checkin"] .teacher-checkin-dashboard.t-ck2 { padding: 14px 14px 16px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 > .section-head { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; margin: 0 0 8px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 > .section-head > div:first-child { flex: 1 1 auto; min-width: 0; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 > .section-head h3 { margin: 0 !important; font-size: 18px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-checkin-head-actions { flex: 0 0 auto; flex-wrap: nowrap !important; gap: 6px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-checkin-head-actions .secondary-action { min-width: 44px !important; min-height: 44px !important; padding: 0 10px !important; justify-content: center; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-checkin-head-actions .t-ck-btn-text { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-catalog { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; padding: 0 0 8px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-catalog > label { display: block !important; flex: 1 1 0 !important; min-width: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-catalog > label.teacher-result-date { flex: 0 1 40% !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-catalog :is(input, select) { width: 100% !important; min-height: 44px !important; padding: 0 8px !important; font-size: 14px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-catalog [data-checkin-more] { flex: 1 1 100% !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2.is-today [data-checkin-view-today] { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 :is(.teacher-checkin-catalog, .teacher-result-filters) .t-ck-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-result-scope,
  html[data-ds][data-visual-world] #view-teacher .t-ck2 [data-checkin-catalog-status] .t-ck-count,
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-result-filters:not(.teacher-checkin-catalog) .teacher-result-filter-count { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 [data-checkin-catalog-status] { min-height: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-result-filters:not(.teacher-checkin-catalog) { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; padding: 0 0 6px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-result-filters:not(.teacher-checkin-catalog) .teacher-result-quick-filters { order: -1; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-result-filters:not(.teacher-checkin-catalog) .teacher-result-search { flex: 1 1 100% !important; gap: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-result-filters:not(.teacher-checkin-catalog) .teacher-result-search > input { min-height: 40px !important; font-size: 15px !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-card { padding: 6px 0 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .teacher-checkin-card-head { padding-bottom: 4px !important; gap: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-card-title { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-sum-item b { font-size: 18px; }
}

/* T3-07：电脑、平板的「学生 × 任务」打卡总表（方案甲，开关 app.js TEACHER_CHECKIN_MATRIX） */
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-box { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--surface); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-box[hidden] { display: none !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-head strong { color: var(--ink); font-size: 16px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-head small { color: var(--muted); font-size: 13px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-wrap { overflow-x: auto; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 table.t-ck-matrix { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix :is(th, td) { padding: 5px 10px !important; border: 0 !important; border-bottom: 1px solid var(--hairline-soft) !important; background: none !important; text-align: center; vertical-align: middle; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix thead th { padding-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; vertical-align: bottom; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix thead th:first-child,
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix tbody th { text-align: left; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix tbody tr:hover :is(th, td) { background: var(--surface-2) !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-matrix-task { display: inline-grid !important; gap: 2px; width: auto !important; min-height: 44px !important; margin: 0 auto !important; padding: 6px 10px !important; border: 1px solid transparent !important; border-radius: 8px !important; background: none !important; box-shadow: none !important; color: var(--accent-ink) !important; font: inherit !important; font-size: 14px !important; font-weight: 650 !important; line-height: 1.4; text-align: center; cursor: pointer; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-matrix-task:hover { background: var(--accent-soft-2) !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-matrix-task[aria-pressed="true"] { border-color: var(--accent-edge) !important; background: var(--accent-soft) !important; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 button.t-ck-matrix-task small { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix td[data-state] > span[aria-hidden] { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 750; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix td[data-state="done"] > span[aria-hidden] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix td[data-state="pending"] > span[aria-hidden] { background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix td[data-state="notstarted"] > span[aria-hidden] { background: var(--surface-2); color: var(--red-ink, #9b2c1f); }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix .t-ck-matrix-sum { color: var(--muted); font-size: 13px; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-ck2 .t-ck-matrix-box > p.muted { margin: 8px 0 0; font-size: 13px; }
/* ═══ 批次 3 · a2 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 3 · a3（布局与触屏）开始：a3 的样式只写在这一段里 ═══ */

/* ── T3-11 老师端三张表不再撑出 680px（styles.css `.data-table { min-width: 680px }`），列不再藏到框外 ── */
/* 学生名单：所有宽度都按框宽排。手机本来就是 3 列卡片网格，放开后卡片就是屏宽；
   平板 820（框 662px）、1100–1180 两栏（框 622px）原来也把「最近学习」藏在框外 */
html[data-ds][data-visual-world] #view-teacher table.data-table.t-roster { min-width: 0 !important; }
/* 难词排行（概况 → 更多班级数据）：所有宽度都按框宽排；电脑上半栏只有 443–495px，收窄内边距和错误条 */
html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table { min-width: 0 !important; }
html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table :is(th, td) { padding: 10px 8px !important; }
html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table .hw-bar { width: 52px; margin-right: 6px; }
/* 难词排行窄屏（≤1099）：一行一条「单词 单元 · N 人错 …… 选择补练学生」，不再是每词一张 188px 高的卡（手机）或半栏里的横滑表（平板） */
@media (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table,
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table > tbody { display: block !important; width: 100% !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table > thead { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table tr {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; box-sizing: border-box; min-height: 56px;
    margin: 0 !important; padding: 6px 6px 6px 12px !important;
    border: 0 !important; border-bottom: 1px solid var(--hairline-soft) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
  }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table tr:last-child { border-bottom: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; min-width: 0; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td::before { content: none !important; display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td:is(.rank-cell, [data-label="累计错误"]) { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td.td-title { display: contents !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td.td-title > strong { font-size: 15px; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td.td-title > br { display: none; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td.td-title > button { order: 9; margin: 0 0 0 auto !important; width: auto !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td[data-label="单元"] { font-size: 13px; color: var(--muted) !important; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td[data-label="影响人数"] { font-size: 14px; color: var(--ink-2) !important; font-weight: 600; }
  html[data-ds][data-visual-world] #view-teacher .t-more-data table.data-table.hardword-table td[data-label="影响人数"]::after { content: " 人错"; }
}
/* 作业明细（作业进度 → 学生名单与明细）在平板宽度（561–1099，手机 ≤560 是卡片，归 a2）：
   按框宽排；「最近活动」不再单占一列（820 上就是它被藏在框外），挪到「状态」格下面一行小字。
   做法：每行改成网格，「状态」占第 2 列上半格，「最近活动」占第 2 列下半格，其余格子占上下两格。只用样式，模板不动。 */
@media (min-width: 561px) and (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table { display: block !important; width: 100% !important; min-width: 0 !important; }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table > :is(thead, tbody) { display: block !important; }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr {
    display: grid !important; grid-template-columns: minmax(84px, 1.25fr) repeat(4, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  }
  /* 要求拼写的词汇作业、朗读作业多一列 */
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr:has(> :nth-child(7)) { grid-template-columns: minmax(84px, 1.25fr) repeat(5, minmax(0, 1fr)); }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr:has(> :nth-child(8)) { grid-template-columns: minmax(84px, 1.25fr) repeat(6, minmax(0, 1fr)); }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr[hidden] { display: none !important; }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr > :is(th, td) { grid-row: 1 / span 2; min-width: 0; padding: 10px 8px !important; overflow-wrap: anywhere; }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr > :nth-child(2) { grid-row: 1; grid-column: 2; border-bottom: 0 !important; padding-bottom: 2px !important; }
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table tr > td[data-label="最近活动"],
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table.vocab-detail-table > thead th:last-child,
  html[data-ds][data-visual-world] #view-teacher table.data-table.assignment-detail-table:not(.vocab-detail-table) > thead th:nth-child(6) {
    grid-row: 2; grid-column: 2; padding-top: 0 !important; font-size: 12px !important; line-height: 1.4; color: var(--muted) !important;
  }
}

/* ── T3-14 触屏宽度（≤1180）：概况、作业进度、学生三页的按钮统一 ≥44px（布置页 v1 已统一） ── */
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="overview"] :is(.t-todo, .t-cur-row, .t-hard-row) :is(.secondary-action, .text-button),
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="overview"] :is(.t-card-head, .t-more-line) .text-button,
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="overview"] .t-more-data table.hardword-table .text-button,
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="progress"] .t-prog-actions :is(.secondary-action, .text-button),
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="progress"] .t-prog-report .t-prog-load,
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="progress"] .assignment-detail-table button,
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="students"] .teacher-activity-filters .growth-filter-chip,
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="students"] [data-teacher-remediation] {
    min-height: 44px !important; min-width: 44px; display: inline-flex !important; align-items: center; justify-content: center;
  }
  html[data-ds][data-visual-world] #view-teacher :is([data-teacher-panel="progress"], [data-teacher-panel="students"]) .t-seg button { min-height: 44px; }
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="progress"] :is(.t-prog-row, .t-bundle-part) > .assignment-report > summary { min-height: 44px; }
  html[data-ds][data-visual-world] #view-teacher [data-teacher-panel="students"] .teacher-remediation-evidence > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
}
/* 学生名单整行（手机上是整张卡）都能点，打开这位学生（app.js bindTeacherRosterTable）；名字按钮照旧可以用键盘 */
html[data-ds][data-visual-world] #view-teacher #teacherRosterTable tr[data-teacher-roster-row] { cursor: pointer; }
/* 作业进度每行的「关闭 / 关闭打卡」：红底胶囊 → 描边红字，排到这一行按钮的最后（不能恢复、最少用的操作不再排第一个） */
html[data-ds][data-visual-world] #view-teacher .t-prog-actions > :is([data-close-vocab-assignment], [data-close-assignment], [data-close-reading-assignment], [data-close-daily-checkin]) {
  order: 9; padding: 0 10px !important; border: 1px solid color-mix(in srgb, var(--red-ink) 42%, transparent) !important; border-radius: 999px !important;
  background: transparent !important; color: var(--red-ink) !important; font-weight: 600 !important;
}
html[data-ds][data-visual-world] #view-teacher .t-prog-actions > :is([data-close-vocab-assignment], [data-close-assignment], [data-close-reading-assignment], [data-close-daily-checkin]):is(:hover, :focus-visible) { background: var(--red-soft) !important; }
/* 平板（768–1099）进度行的按钮列 170–220px → 170–232px：描边后的「关闭」和「改截止时间」「复制再发」仍排一行 */
@media (min-width: 768px) and (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher .t-prog-main { grid-template-columns: 64px minmax(0, 1fr) minmax(170px, 232px); }
}
/* 手机名单卡片：隔行底色原来涂在每个格子上（ultimate.css `tr:nth-child(even) td`），卡片里一块块灰；改成整张卡一个底色 */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher table.t-roster tbody tr > td { background: transparent !important; }
  html[data-ds][data-visual-world] #view-teacher table.t-roster tbody tr:nth-child(even):not(.is-selected) { background: var(--stripe); }
  html[data-ds][data-visual-world] #view-teacher table.t-roster tbody tr:not(.is-selected):hover { background: var(--accent-soft-2); }
}

/* ── T3-13 平板（768–1099）班级头：布置 / 进度 / 批改 / 打卡四页收成一行吸顶「班名 · N 名学生 ｜ 切换班级 · 刷新」，去掉和侧栏重复的「布置作业」。
   概况、学生两页保持完整（邀请码、复制链接、二维码在那两页）。照手机（ui-sweep.css v1 A3 第 3 节）的做法。
   开关：app.js TEACHER_TABLET_CLASS_HEAD 写到 <html data-t-tablet-head>。'compact' = 方案甲（推荐，下面这些规则生效）；'full' = 方案乙（保持三行、不吸顶）。 ── */
@media (min-width: 768px) and (max-width: 1099px) {
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-head {
    position: sticky; top: 0; z-index: 30;
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 6px 6px 6px 16px;
    background: var(--ds-card, var(--surface));
    border: 1px solid var(--ds-card-edge, var(--hairline)); border-radius: var(--ds-r-card, 16px);
    box-shadow: var(--shadow-sm);
  }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-id {
    display: flex; align-items: baseline; gap: 8px; flex: 1 1 auto; min-width: 0; overflow: hidden;
  }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-id .t-level { display: none; }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-id h2 {
    font-size: 19px !important; line-height: 1.3 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; overflow-wrap: normal;
  }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-meta { flex: 0 0 auto; flex-wrap: nowrap; font-size: 14px; }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-meta > :not([data-teacher-student-count]) { display: none !important; }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-meta [data-teacher-student-count]::before { content: "· "; }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-actions {
    flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; padding-left: 12px; border-left: 1px solid var(--hairline);
  }
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) .t-class-actions .t-assign-cta { display: none !important; }
  /* 吸顶条下面的东西被程序滚到顶部时（概况点「明细」跳到那份作业等），让出吸顶条的高度 */
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) :is(.t-prog-row, .t-form-card, .t-section) { scroll-margin-top: 72px; }
  /* 布置页展开的单元标题（v1 A2 吸顶，top:0）挪到班级条下面：班级条 58px 高 + 6px 间距，和手机「合并衔接」一样 */
  html[data-t-tablet-head="compact"][data-ds][data-visual-world] #view-teacher .t-ws[data-section="assign"] #createVocabAssignmentForm .vocab-group-head { top: 64px; }
}
/* 手机（v1 已吸顶）同样让出吸顶条的高度 */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws:is([data-section="assign"], [data-section="progress"], [data-section="writing"], [data-section="checkin"]) :is(.t-prog-row, .t-form-card, .t-section) { scroll-margin-top: 72px; }
}

/* ── T3-16 班级二维码：弹窗「保存图片」；「班级设置」里的二维码在本机画 ── */
html[data-ds][data-visual-world] .t-qr > footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html[data-ds][data-visual-world] .t-qr > footer :is(.primary-action, .secondary-action) { width: auto !important; min-height: 44px !important; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px !important; }
html[data-ds][data-visual-world] .t-qr .t-qr-status { min-height: 0; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
html[data-ds][data-visual-world] .t-qr .t-qr-status:empty { display: none; }
html[data-ds][data-visual-world] .t-qr .t-qr-status[data-tone="bad"] { color: var(--red-ink); }
html[data-ds][data-visual-world] .t-qr .t-qr-fail { margin: 12px auto; max-width: 260px; font-size: 14px; color: var(--muted); }
/* 不能分享、不能下载（微信里等）时，弹窗里换成那张卡片图，长按保存 */
html[data-ds][data-visual-world] .t-qr .t-qr-card { margin: 6px auto 4px; }
html[data-ds][data-visual-world] .t-qr .t-qr-card img { width: auto; height: auto; max-width: min(260px, 100%); max-height: 52vh; padding: 0; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; box-sizing: border-box; }
html[data-ds][data-visual-world] .t-qr .t-qr-card figcaption { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
html[data-ds][data-visual-world] .t-qr.is-card > :is(img[data-teacher-qr-img], p:not(.t-qr-status)) { display: none !important; }
/* 「班级设置」的二维码：画好之前是空白框，不显示替代文字；画不出来时写一句 */
#teacherClassList .class-qr img[data-class-qr] { padding: 8px; box-sizing: border-box; background: #fff; } /* 本机画的二维码不带白边，留出扫码需要的空白 */
#teacherClassList .class-qr img[data-class-qr]:not([src]) { font-size: 0; color: transparent; }
#teacherClassList .class-qr img[data-class-qr].is-failed { display: grid; place-items: center; padding: 8px; box-sizing: border-box; font-size: 12px; /* 小修-20261125 原11px */ color: var(--muted); text-align: center; }

/* ── T3-12（P3）「更多班级数据」：1100 以下单列；「练习记录」卡不再被右边的表撑高；分数类数字用中性色 ── */
@media (max-width: 1099px) {
  html[data-ds][data-visual-world] #view-teacher .t-more-data .t-more-grid { grid-template-columns: minmax(0, 1fr); }
}
html[data-ds][data-visual-world] #view-teacher .t-more-data .t-more-grid > .t-card { align-self: start; }
/* 「今日学词 42」「测验均分 83」原来是红字（卡片固定配色 peach），「写作均分」紫字：数字本身不分好坏，一律用正文色 */
html[data-ds][data-visual-world] #view-teacher .t-more-data [data-teacher-metrics] .metric-card:is(.peach, .purple) strong { color: var(--ink) !important; }

/* ── T3-17（P3）「我的班级」：提醒卡、班级卡里的「待批改作文」「今日打卡」是按钮，直接进对应班的那一页；已有班级时「创建班级」是次要按钮 ── */
html[data-ds][data-visual-world] #view-teacher button.t-attn-item.t-attn-go {
  min-height: 44px; margin: 0; border: 0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; width: auto;
  box-shadow: none; transition: filter .15s ease, box-shadow .15s ease;
}
html[data-ds][data-visual-world] #view-teacher button.t-attn-item.t-attn-go > span { flex: 1 1 auto; min-width: 0; }
html[data-ds][data-visual-world] #view-teacher button.t-attn-item.t-attn-go > span small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .85; }
html[data-ds][data-visual-world] #view-teacher button.t-attn-item.t-attn-go::after { content: "›"; flex: none; font-size: 22px; line-height: 1; opacity: .7; }
html[data-ds][data-visual-world] #view-teacher button.t-attn-item.t-attn-go:hover { filter: brightness(.97); box-shadow: 0 0 0 1px currentColor inset; }
html[data-ds][data-visual-world] #view-teacher button.t-attn-item.t-attn-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-ds][data-visual-world] #view-teacher .t-class-card button.t-cc-row.t-cc-go {
  width: calc(100% + 16px); min-height: 36px; margin: -6px -8px; padding: 0 8px; border: 0; border-radius: 10px;
  background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
html[data-ds][data-visual-world] #view-teacher .t-class-card button.t-cc-row.t-cc-go::after { content: "›"; margin-left: -4px; font-size: 18px; line-height: 1; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-class-card button.t-cc-row.t-cc-go > span:first-child { margin-right: auto; }
html[data-ds][data-visual-world] #view-teacher .t-class-card button.t-cc-row.t-cc-go:hover { background: var(--accent-soft-2); }
html[data-ds][data-visual-world] #view-teacher .t-class-card button.t-cc-row.t-cc-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-teacher .t-class-card button.t-cc-row.t-cc-go { min-height: 44px; margin: -10px -8px; }
}
/* 手机：「添加学生到班级」「创建班级」两个次要按钮排一行，班级卡往上挪一行 */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="classes"] .t-sec-actions:has([data-teacher-open="addStudent"]) { flex-wrap: nowrap; gap: 8px; }
  html[data-ds][data-visual-world] #view-teacher .t-ws[data-section="classes"] .t-sec-actions:has([data-teacher-open="addStudent"]) > .secondary-action { flex: 1 1 0; width: auto !important; min-width: 0; justify-content: center; padding: 0 10px !important; white-space: nowrap; }
}

/* ═══ 批次 3 · a3 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 4 · a1（Dot 入口与上下文）开始：a1 的样式只写在这一段里 ═══ */
/* 各处「问 Dot」小按钮共用的样子：和阅读馆中考答题卡的 .lib-xdot 一样（浅蓝底、圆角胶囊、左边一个对话图标） */
.session-dot-ask, .sentence-feedback-dot, .spell-root .spell-dot {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--accent-edge); border-radius: 999px; background: var(--accent-soft-2); color: var(--accent-ink);
  font: 600 13px/1.2 var(--ds-sans, system-ui, sans-serif); cursor: pointer; white-space: nowrap;
}
.session-dot-ask .ic, .sentence-feedback-dot .ic, .spell-root .spell-dot .ic { width: 16px; height: 16px; flex: none; }
.session-dot-ask:hover, .sentence-feedback-dot:hover, .spell-root .spell-dot:hover { background: var(--accent-soft); }
.session-dot-ask:focus-visible, .sentence-feedback-dot:focus-visible, .spell-root .spell-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── T5-21 测验、练习做题时：手机题目卡片里进度点那一行右边的「问 Dot 要思路」。
   只在学生手机外壳（body.cv-mshell，做题时浮钮收起）里出现；电脑、平板照旧用顶栏 Dot，不显示这个入口。
   和进度点同一行，不另占一行压住选项；判完这一题就不渲染（app.js questionHtml）。 ── */
.session-dot-ask { display: none; }
@media (max-width: 767px) {
  body.cv-mshell .training-grid.session-live .session-q-top { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
  body.cv-mshell .training-grid.session-live .session-q-top > .session-dots { flex: 1 1 auto; min-width: 0; margin: 0; }
  body.cv-mshell .training-grid.session-live .session-q-top > .session-dot-ask { display: inline-flex; flex: none; margin-left: auto; min-height: 32px; padding: 4px 11px; }
}

/* ── T5-01 练习答错面板：「问 Dot 为什么错」和「造句巩固」同一排。电脑、平板四个按钮一排放得下（一行字）。
   手机一排挤不下四个一行字的按钮，两种排法（app.js practiceReviewHtml 的 dotWhyAt 切换）：
   pr-dot-row（方案甲）：还是一排四个，Dot 按钮里「问 Dot / 为什么错」两行字、不带图标，面板高度和原来一样；
   pr-dot-grid（方案乙）：两排两个，播放单词 / 播放例句，造句巩固 / 问 Dot 为什么错。 ── */
.pr-actions .secondary-action.pr-dot-ask { gap: 5px; color: var(--accent-ink) !important; border-color: var(--accent-edge) !important; background: var(--accent-soft-2) !important; }
.pr-actions .secondary-action.pr-dot-ask .ic { width: 15px; height: 15px; flex: none; }
/* styles.css 给 .practice-review span 下了 12px、900、全大写（Dot 会变成 DOT），按钮里的字照按钮本身 */
.practice-review .pr-actions .pr-dot-ask > span { font-size: inherit; font-weight: inherit; text-transform: none; }
@media (max-width: 767px) {
  .practice-review.pr-dot-row .pr-actions:has(.pr-dot-ask) { gap: 6px; }
  .practice-review.pr-dot-row .pr-actions:has(.pr-dot-ask) .secondary-action { padding: 4px 3px !important; font-size: 12.5px; white-space: nowrap; }
  .practice-review.pr-dot-row .pr-actions .pr-dot-ask { flex-direction: column; gap: 0; font-size: 12px; line-height: 1.2; }
  .practice-review.pr-dot-row .pr-actions .pr-dot-ask .ic { display: none; }
  .practice-review.pr-dot-grid .pr-actions:has(.pr-dot-ask) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-review.pr-dot-grid .pr-actions .pr-dot-ask { white-space: nowrap; }
}

/* ── T5-03 拼写拼错：结果下面「问 Dot 怎么记」 ── */
.spell-root .spell-fb .spell-dot { justify-self: center; margin-top: 6px; }

/* ── T5-14 写作 AI 初评「逐句反馈」：每条下面「问 Dot 这条怎么改」 ── */
.sentence-feedback .sentence-feedback-dot { display: flex; width: fit-content; max-width: 100%; margin-top: 10px; min-height: 34px; padding: 5px 12px; } /* 单独一行，不跟在建议句后面 */

/* ── T5-10 阅读馆普通读物的读后题：「没思路？问 Dot 要提示 / 问 Dot 为什么」（按钮本身用阅读馆的 .lib-xdot）。
   配对、填空核对以后一行「问 Dot 为什么：第 1 段 / 第 2 段…」，做错的排前面、红色描边。 ── */
#view-library .lib-ex .lib-pdot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
#view-library .lib-ex .lib-pdot-lead { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2, var(--muted)); }
#view-library .lib-ex .lib-pdot-lead .ic { width: 16px; height: 16px; }
#view-library .lib-ex .lib-pdot.is-chip { margin-top: 0; min-height: 32px; padding: 4px 12px; }
#view-library .lib-ex .lib-pdot.is-chip.is-wrong { border-color: var(--red-ink, #b3261e); }
#view-library .lib-ex .lib-mrow .lib-pdot { margin: 8px 0 2px; }
#view-library .lib-ex .lib-cloze + .lib-pdot { margin: 4px 0 10px; }
/* ═══ 批次 4 · a1 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 4 · a2（Dot 面板与界面）开始：a2 的样式只写在这一段里 ═══ */
/* 选择器写两个 #avdot-panel：压过 aivia-ds.css、dot-companion.css 里带 !important 的面板规则（同 dot-voice.css 的写法）；手机半屏另写 .cv-mshell … .avdot-sheet 一组，压过 mobile-shell.css */

/* T5-04：快捷提问常驻在输入框上方一行。左边是「更简单的英文 / 中文帮助」（有回答才出现），右边是当前页的快捷提问（带 ✦）；放不下就横着滑，不换行 */
html body #avdot-panel#avdot-panel .avdot-quick {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; margin: 0; padding: 2px 2px 8px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html body #avdot-panel#avdot-panel .avdot-quick::-webkit-scrollbar { display: none; }
html body #avdot-panel#avdot-panel .avdot-quick[hidden] { display: none !important; }
html body #avdot-panel#avdot-panel .avdot-quick > :is(.avdot-follow:not([hidden]), .avdot-suggestions) { display: flex !important; flex: none; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; padding: 0 !important; overflow: visible !important; }
html body #avdot-panel#avdot-panel .avdot-quick > .avdot-suggestions:empty { display: none !important; }
html body #avdot-panel#avdot-panel .avdot-quick .avdot-button {
  flex: none; width: auto !important; min-width: 0 !important; height: 32px !important; min-height: 32px !important; margin: 0 !important; padding: 0 12px !important;
  justify-content: center; gap: 4px; border: 1px solid var(--hairline, #d7e4f1) !important; border-radius: 999px !important; box-shadow: none !important;
  background: var(--surface, #fff) !important; color: var(--accent-ink, #0053bd) !important;
  font: 600 13px/1 var(--font, sans-serif) !important; letter-spacing: 0 !important; text-align: center; white-space: nowrap; overflow-wrap: normal;
}
html body #avdot-panel#avdot-panel .avdot-quick .avdot-suggestion::before { content: "✦"; color: var(--ds-dot, #544bc4); font-size: 11px; font-weight: 400; }
html body #avdot-panel#avdot-panel .avdot-quick .avdot-suggestion::after { content: none !important; }
html body #avdot-panel#avdot-panel .avdot-quick .avdot-button:disabled { opacity: .5; }
@media (hover: hover) { html body #avdot-panel#avdot-panel .avdot-quick .avdot-button:not(:disabled):hover { border-color: var(--accent-edge, #9cc0ee) !important; background: var(--accent-soft-2, #f1f6fd) !important; } }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-bottom { grid-template-columns: minmax(0, 1fr); }   /* 一行快捷提问再长也不把半屏撑宽（它自己横着滑） */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-quick { padding: 0 2px; }
/* 右边还有没露出来的快捷提问：边上淡出一点，提示可以滑（dot-companion.js 按滚动位置加 .is-more） */
html body #avdot-panel#avdot-panel .avdot-quick.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
/* 手机半屏空状态：快捷提问挪走后有地方了，把「怎么和 Dot 说话」那句露出来（跟着「说中文」开关写） */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-empty .avdot-voice-hint { display: block !important; margin: 0 0 4px !important; font-size: 14px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-quick .avdot-button { height: 32px !important; min-height: 32px !important; padding: 0 12px !important; border-color: color-mix(in srgb, var(--msh-edge) 85%, transparent) !important; background: var(--msh-card) !important; color: var(--msh-ink) !important; font-size: 13px !important; }
/* 「Dot 带我学」整页（没开学习工具时）下面有自己的几张选项卡，照旧只留「更简单的英文 / 中文帮助」；左右两栏（开着学习工具）时快捷提问露出来 */
body[data-dot-shell="guided"]:not([data-dot-tool="open"]) #avdot-panel#avdot-panel.avdot-inline .avdot-quick > .avdot-suggestions { display: none !important; }
body[data-dot-shell="guided"]:not([data-dot-tool="open"]) #avdot-panel#avdot-panel.avdot-inline .avdot-quick:has(> .avdot-follow[hidden]) { display: none !important; }

/* T5-11：麦克风旁边的「说中文」开关（小开关 + 字）。电脑、平板和大麦克风同一行、同高；手机半屏在小麦克风右边 */
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-zh {
  order: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 54px; margin: 0 0 8px; padding: 0 14px 0 12px;
  border: 1px solid var(--hairline, #d7e4f1) !important; border-radius: 999px !important; background: var(--surface, #fff) !important; color: var(--ink-2, #334767) !important;
  font: 650 14px/1 var(--font, sans-serif) !important; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: none !important;
}
/* 大麦克风原来 flex-basis 是「整行减 64px」（给停止键留位），多了「说中文」就会被挤到下一行：改成占剩下的宽度 */
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-mic { flex: 1 1 0; }
html body #avdot-panel#avdot-panel .avdot-zh-dot { position: relative; flex: none; width: 26px; height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--muted, #5b6676) 35%, transparent); transition: background-color .15s; }
html body #avdot-panel#avdot-panel .avdot-zh-dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); transition: transform .15s; }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-zh.is-on { border-color: color-mix(in srgb, var(--ds-dot, #544bc4) 45%, transparent) !important; background: color-mix(in srgb, var(--ds-dot, #544bc4) 10%, var(--surface, #fff)) !important; color: var(--ds-dot-deep, #3a328f) !important; }
html body #avdot-panel#avdot-panel .avdot-zh.is-on .avdot-zh-dot { background: var(--ds-dot, #544bc4); }
html body #avdot-panel#avdot-panel .avdot-zh.is-on .avdot-zh-dot::after { transform: translateX(10px); }
html body #avdot-panel#avdot-panel .avdot-toolbar .avdot-zh:disabled { opacity: .5; cursor: default; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-zh { order: 0; height: 38px; margin: 0 !important; padding: 0 10px 0 8px; gap: 5px; align-self: flex-end; font-size: 13px !important; border-color: color-mix(in srgb, var(--msh-edge) 85%, transparent) !important; background: var(--msh-card) !important; color: var(--msh-muted) !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-zh.is-on { border-color: color-mix(in srgb, var(--msh-dot) 40%, transparent) !important; background: var(--msh-dot-soft) !important; color: var(--msh-dot-ink) !important; }
html.cv-dark body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-toolbar .avdot-zh.is-on { background: color-mix(in srgb, var(--msh-dot) 28%, var(--msh-card)) !important; color: #fff !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-composer.avdot-has-text .avdot-toolbar .avdot-zh { display: none !important; }   /* 打字时让出位置给输入框；清空后回来 */
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-zh-dot { width: 22px; height: 14px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-zh-dot::after { width: 10px; height: 10px; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-zh.is-on .avdot-zh-dot::after { transform: translateX(8px); }
@media (prefers-reduced-motion: reduce) { html body #avdot-panel#avdot-panel :is(.avdot-zh-dot, .avdot-zh-dot::after) { transition: none; } }

/* T5-08：额度用完。输入框上方一块说明 +「查看额度」（Free 账号再加「了解会员」）；状态行只留给读屏（不重复），底部「剩余 0 轮」藏起来 */
html body #avdot-panel#avdot-panel .avdot-quota-out { display: grid; gap: 10px; margin: 0 0 8px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--amber-ink, #8a5a00) 28%, transparent); border-radius: 14px; background: var(--amber-soft, #fff4dc); color: var(--ink, #17264a); }
html body #avdot-panel#avdot-panel .avdot-quota-out[hidden] { display: none !important; }
html body #avdot-panel#avdot-panel .avdot-quota-out-t { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.5; }
html body #avdot-panel#avdot-panel .avdot-quota-out-acts { display: flex; flex-wrap: wrap; gap: 8px; }
html body #avdot-panel#avdot-panel .avdot-quota-out-btn { height: 34px !important; min-height: 34px !important; padding: 0 14px !important; border: 1px solid color-mix(in srgb, var(--amber-ink, #8a5a00) 30%, transparent) !important; border-radius: 999px !important; background: var(--surface, #fff) !important; color: var(--ink, #17264a) !important; font: 600 13px/1 var(--font, sans-serif) !important; cursor: pointer; box-shadow: none !important; }
html body #avdot-panel#avdot-panel .avdot-quota-out-btn[hidden] { display: none !important; }
html body #avdot-panel#avdot-panel .avdot-quota-out-member { color: var(--ds-dot-deep, #3a328f) !important; }
html body #avdot-panel#avdot-panel.avdot-quota-is-out .avdot-status { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html body #avdot-panel#avdot-panel.avdot-quota-is-out .avdot-remaining { display: none !important; }
html body.cv-mshell #avdot-panel#avdot-panel.avdot-sheet .avdot-quota-out { margin: 0; }
/* 深色：深紫字在深底上看不清，换浅一点 */
html.cv-dark body #avdot-panel#avdot-panel .avdot-quota-out-member { color: color-mix(in srgb, var(--ds-dot, #544bc4) 45%, #fff) !important; }
html.cv-dark body #avdot-panel#avdot-panel .avdot-toolbar .avdot-zh.is-on { background: color-mix(in srgb, var(--ds-dot, #544bc4) 30%, var(--surface, #1d1b26)) !important; color: #fff !important; }

/* 058-3：手机做历年中考、答题卡吸底时，浮钮不压正文。开关在 mobile-shell.js 的 EXAM_FAB_MODE（浮钮上的 data-exam-fab）。
   方案甲 hide：答题卡展开时收起浮钮（顶栏「问 Dot」和答题卡里「问 Dot 要提示」还在）；收成细条时浮钮照旧在细条上方。
   方案乙 bar：浮钮缩成 40px，贴进答题卡折叠条（50px 高）里「收起」的左边；答题卡展开、收起都跟着折叠条走。 */
body.cv-mshell.lib-exam-dock:has(#view-library .lib-reader.is-exam .lib-xpanel.is-open) .msh-fab[data-exam-fab="hide"] { display: none !important; }
body.cv-mshell.lib-exam-dock .msh-fab[data-exam-fab="bar"] {
  right: calc(var(--a2-xbar-h-w, 48px) + 24px); bottom: calc(var(--lib-dock-h, 0px) - 45px); width: 40px; height: 40px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--msh-dot) 30%, transparent);
}
body.cv-mshell.lib-exam-dock .msh-fab[data-exam-fab="bar"]::before { width: 14px; height: 6px; border-left-width: 4px; border-right-width: 4px; }
body.cv-mshell.lib-exam-dock .msh-fab[data-exam-fab="bar"] .msh-fab-mic { display: none; }
body.cv-mshell.lib-exam-dock:has(.msh-fab[data-exam-fab="bar"]:not([hidden])) #view-library .lib-reader.is-exam .lib-xbar-h { margin-left: 50px; }
/* T5-04 补：触屏宽度（≤1180px，电脑右侧面板 / 平板）快捷提问一行和原来「更简单的英文」一样撑到 44px 高，好点；手机半屏照旧 32px */
@media (max-width: 1180px) {
  html body #avdot-panel#avdot-panel:not(.avdot-sheet) .avdot-quick .avdot-button,
  html body:not(.cv-mshell) #avdot-panel#avdot-panel .avdot-quick .avdot-button { height: 44px !important; min-height: 44px !important; padding: 0 14px !important; }
}

/* T5-07：平板竖屏（768–1023px，dot-companion.js 的 tabletSheet()）也用底部半屏：不再从右边盖住 424px，上面的原文照常滚动；可以收成细条（右上角 ⌄）。
   手机那套半屏样式全挂在 body.cv-mshell 下面（手机外壳），平板没有那个类，这里另写一份最少的：外框、居中的内容宽度、收起细条。 */
@media (min-width: 768px) and (max-width: 1023px) {
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet {
    inset: auto 0 var(--avdot-bottom, 0px) 0 !important; width: 100% !important; max-width: 100% !important;
    height: min(56dvh, calc(var(--avdot-height, 100dvh) - 16px)) !important; max-height: none !important;
    border: 0 !important; border-top: 1px solid var(--hairline, #d7e4f1) !important; border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -12px 34px rgb(22 35 63 / 16%) !important;
  }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-head { padding: 10px 14px 8px 20px !important; border-radius: 22px 22px 0 0; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet :is(.avdot-context, .avdot-scroll, .avdot-bottom) { padding-inline: max(16px, calc((100% - 720px) / 2)) !important; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-empty { padding: 20px 4px 12px !important; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-log { padding: 16px 4px !important; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-min-btn { display: inline-flex !important; }
  /* 麦克风出错的说明照电脑侧栏（状态行看得见，只留「怎么打开麦克风」） */
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-mic-help:not(.is-denied) { display: none !important; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-mic-help-lead { display: none; }
  /* 收成细条：只留头像、Dot 最后一句和「展开对话」 */
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet.avdot-min {
    left: 16px !important; right: 16px !important; width: auto !important; height: auto !important;
    bottom: calc(var(--avdot-bottom, 0px) + 12px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid var(--hairline, #d7e4f1) !important; border-radius: 999px !important; box-shadow: 0 8px 26px rgb(22 35 63 / 20%) !important;
  }
  html body:not(.cv-mshell).lib-exam-dock #avdot-panel#avdot-panel.avdot-sheet.avdot-min { bottom: calc(var(--lib-dock-h, 0px) + 12px + env(safe-area-inset-bottom, 0px)) !important; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet.avdot-min :is(.avdot-context, .avdot-scroll, .avdot-bottom, .avdot-heading, .avdot-min-btn) { display: none !important; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet.avdot-min .avdot-head { padding: 6px 6px 6px 10px !important; border: 0 !important; border-radius: 999px; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet.avdot-min .avdot-peek { display: flex !important; flex: 1 1 auto; min-width: 0; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--ink, #17264a); font: inherit; text-align: left; cursor: pointer; }
  html body:not(.cv-mshell) #avdot-panel#avdot-panel.avdot-sheet .avdot-peek-go { color: var(--accent, #203d86); }
}
/* ═══ 批次 4 · a2 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 5 · a1（设置重排）开始：a1 的样式只写在这一段里 ═══ */
/* T6-0 / T6-1：设置抽屉重排（方案 A）。电脑抽屉放宽到 540px，平板（≤1180）保持 480px，手机满宽不变。 */
@media (min-width: 1181px) {
  html[data-visual-world] .settings-drawer#settingsDrawer:not([data-phone-page]) { width: min(100vw, 540px) !important; }
}
/* 头部账号小卡：头像、名字、身份 · ID · 班级，学生右边一个会员胶囊 */
html[data-visual-world] #settingsDrawer .settings-id-card {
  flex: none; display: flex; align-items: center; gap: 12px; min-width: 0;
  margin: 0 20px 10px; padding: 10px 12px; border-radius: var(--ds-r-control, 12px);
  background: var(--surface-2); color: var(--ink);
}
html[data-visual-world] #settingsDrawer .settings-id-avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; font-size: 17px;
}
html[data-visual-world] #settingsDrawer .settings-id-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
html[data-visual-world] #settingsDrawer .settings-id-main strong { font-size: 15px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-visual-world] #settingsDrawer .settings-id-main small { font-size: 12px; color: var(--muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-visual-world] #settingsDrawer .settings-id-tier {
  flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 8px 0 12px !important;
  border: 1px solid var(--accent-edge) !important; border-radius: 999px !important; background: var(--surface) !important;
  color: var(--accent-ink) !important; font-size: 13px; font-weight: 650; box-shadow: none !important; cursor: pointer;
}
html[data-visual-world] #settingsDrawer .settings-id-tier.is-member { border-color: var(--ds-brass, var(--accent-edge)) !important; background: var(--ds-brass-soft, var(--surface)) !important; color: var(--ds-brass-ink, var(--accent-ink)) !important; }
html[data-visual-world] #settingsDrawer .settings-id-tier .ic { width: 14px; height: 14px; }
/* 老师、管理员只有三个分类 */
html[data-visual-world] #settingsDrawer .settings-nav[data-tab-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
/* 卡片收紧：每张卡之间留 12px，卡里标题下少留一点 */
html[data-visual-world] #settingsDrawer.settings-drawer:not([data-phone-page]) .drawer-body { padding-top: 12px !important; }
html[data-visual-world] #settingsDrawer.settings-drawer:not([data-phone-page]) .settings-panel > .settings-card.surface-card {
  margin: 0 0 12px !important; padding: 16px 18px !important;
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-card, 14px) !important; background: var(--surface) !important;
}
html[data-visual-world] #settingsDrawer .settings-panel > .settings-card { row-gap: 10px !important; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-card .section-head { margin-bottom: 0 !important; }
html[data-visual-world] #settingsDrawer :is(#studentClassSyncFeedback, #settingsLearningSync):empty { display: none; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-card .field-label { margin: 0 !important; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-card .settings-field-label { margin: 8px 0 0 !important; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-card .settings-seg { margin-top: 0 !important; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-card .section-head > span { color: var(--muted); }
/* 「学习级别」：按钮缩小排 4 列，说明挪到按钮下面 */
html[data-visual-world] #settingsDrawer .settings-panel .settings-level-options { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; margin-top: 0 !important; }
html[data-visual-world] #settingsDrawer.settings-drawer .settings-panel .settings-level-option { min-height: 48px !important; padding: 6px 8px !important; text-align: center; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-level-option .settings-level-name { justify-content: center; font-size: 13px; letter-spacing: .01em; white-space: nowrap; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-level-option .settings-level-name .ic { width: 13px; height: 13px; flex: none; }
html[data-visual-world] #settingsDrawer .settings-panel .settings-level-option small { margin-top: 1px; font-size: 12px; /* 小修-20261125 原11px */ color: var(--muted); }
html[data-visual-world] #settingsDrawer .settings-panel .settings-level-option.active small { color: var(--accent-ink); }
html[data-visual-world] #settingsDrawer .settings-level-card .settings-note { font-size: 12px !important; line-height: 1.55 !important; }
/* 「我的班级」：当前班级一行 + 邀请码一行 */

html[data-visual-world] #settingsDrawer .settings-class-card .settings-join-class .field { margin-bottom: 0 !important; font-size: 13px; color: var(--muted); }
html[data-visual-world] #settingsDrawer .settings-class-card .settings-note { font-size: 12px !important; }
html[data-visual-world] #settingsDrawer .settings-class-card .feedback:not(.hidden) { margin: 0 !important; }
/* 「每天学多少」「词卡与声音」：标签在左、下拉框在右，一项一行 */
html[data-visual-world] #settingsDrawer .settings-panel .field.settings-inline-field {
  display: grid !important; grid-template-columns: minmax(4.5em, auto) minmax(0, 1fr); align-items: center; gap: 12px !important;
  margin: 0 !important; min-height: 52px; padding: 4px 0; border-bottom: 1px solid var(--hairline-soft); color: var(--ink-2); font-size: 14px;
}
html[data-visual-world] #settingsDrawer .settings-panel .field.settings-inline-field select { min-height: 44px; width: 100%; min-width: 0; }
html[data-visual-world] #settingsDrawer .settings-daily-card .settings-note { font-size: 12px !important; }
html[data-visual-world] #settingsDrawer .settings-sound-card .setting-check { min-height: 44px !important; padding: 6px 0 !important; border-bottom: 1px solid var(--hairline-soft) !important; border-radius: 0 !important; font-weight: 500; }
html[data-visual-world] #settingsDrawer .settings-sound-card .settings-note { font-size: 12px !important; }
html[data-visual-world] #settingsDrawer a.settings-inline-link,
html[data-visual-world] #settingsDrawer a.settings-inline-link[href="audio-attributions.html"] { display: inline !important; min-height: 0 !important; margin-left: 4px; color: var(--accent-ink); font-weight: 650; text-decoration: none; }
/* 账号：登录与安全、学习进度同步、会员；「退出登录」单独一行放最底下 */
html[data-visual-world] #settingsDrawer .settings-panel .settings-card .settings-actions { margin-top: 0 !important; }
html[data-visual-world] #settingsDrawer .settings-sync-card .learning-recovery { margin: 0 !important; }
html[data-visual-world] #settingsDrawer .settings-member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
html[data-visual-world] #settingsDrawer .settings-member-row .secondary-action { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
html[data-visual-world] #settingsDrawer .settings-logout-row { margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--hairline); }
html[data-visual-world] #settingsDrawer .settings-logout-row #settingsLogout {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100% !important; min-height: 48px;
  border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control, 10px) !important; background: transparent !important;
  color: var(--red-ink) !important; font-weight: 650; box-shadow: none !important;
}
/* 帮助：「添加到桌面」默认收起；「修复页面显示」从外观挪来 */
html[data-visual-world] #settingsDrawer details.settings-pwa-card { display: block !important; }
html[data-visual-world] #settingsDrawer details.settings-pwa-card > summary { list-style: none; cursor: pointer; min-height: 44px; margin: -8px 0 !important; }
html[data-visual-world] #settingsDrawer details.settings-pwa-card > summary::-webkit-details-marker { display: none; }
html[data-visual-world] #settingsDrawer details.settings-pwa-card[open] > summary { margin-bottom: 8px !important; }
html[data-visual-world] #settingsDrawer .settings-pwa-more { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink) !important; font-weight: 650; }
html[data-visual-world] #settingsDrawer .settings-pwa-more .ic { width: 14px; height: 14px; transition: transform .2s ease; }
html[data-visual-world] #settingsDrawer details.settings-pwa-card[open] .settings-pwa-more .ic { transform: rotate(180deg); }
html[data-visual-world] #settingsDrawer .settings-repair-card .settings-actions { grid-template-columns: minmax(0, 1fr) !important; }
/* 外观：主题三档；皮肤卡缩成小缩略图，4 列两行放下（T6-6） */
html[data-visual-world] #settingsDrawer .settings-seg.settings-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html[data-visual-world] #settingsDrawer .academy-skin-picker.ds-skin-picker { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
html[data-visual-world] #settingsDrawer .academy-skin-picker.ds-skin-picker [data-skin-select],
html[data-visual-world] #settingsDrawer .academy-skin-picker.ds-skin-picker [data-skin-select="auto"],
html[data-visual-world] #settingsDrawer .academy-skin-picker.ds-skin-picker [data-skin-select="minimal"] {
  grid-column: auto !important; flex-direction: column !important; align-items: stretch !important; gap: 6px !important; padding: 4px 4px 8px !important;
}
html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-swatch,
html[data-visual-world] #settingsDrawer [data-skin-select="auto"] .ds-skin-swatch,
html[data-visual-world] #settingsDrawer [data-skin-select="minimal"] .ds-skin-swatch { width: 100% !important; aspect-ratio: 4 / 3; }
html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-swatch::before { width: 46%; height: 42%; left: 9%; bottom: 11%; }
html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-swatch::after { left: calc(9% + 4px); bottom: calc(11% + 42% - 9px); height: 3px; box-shadow: 0 5px 0 -1px var(--sw-mark), 4px 11px 0 1px var(--sw-act); }
html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-copy,
html[data-visual-world] #settingsDrawer [data-skin-select="auto"] .ds-skin-copy,
html[data-visual-world] #settingsDrawer [data-skin-select="minimal"] .ds-skin-copy { padding: 0 2px !important; text-align: center; }
html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-copy strong { font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-copy small { display: none !important; }
html[data-visual-world] #settingsDrawer .academy-skin-picker.ds-skin-picker [data-skin-select][aria-pressed="true"]::after { top: 8px !important; right: 8px !important; width: 18px !important; height: 18px !important; background-size: 10px !important; }
html[data-visual-world] #settingsDrawer .settings-skin-note { font-size: 12px !important; }
@media (max-width: 460px) {
  html[data-visual-world] #settingsDrawer [data-skin-select] .ds-skin-copy strong { font-size: 12px; /* 小修-20261125 原11px */ letter-spacing: -.02em; }
  html[data-visual-world] #settingsDrawer .academy-skin-picker.ds-skin-picker { gap: 6px !important; }
  html[data-visual-world] #settingsDrawer .settings-panel .settings-level-option .settings-level-name { font-size: 12px; letter-spacing: 0; }
}
/* 停在「外观」时背后的遮罩去掉模糊、调淡，页面当预览看（T6-6） */
html[data-visual-world] body.settings-open #settingsScrim:has(~ #settingsDrawer[data-settings-section="display"]:not([data-phone-page])) {
  background: color-mix(in srgb, var(--ink) 14%, transparent) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* T6-3：平板图标栏里头像下面写「我的」，和上面各项同样的小字 */
#accountSettingsBtn .account-rail-label { display: none; }
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-visual-world] body #appShell .sidebar #accountSettingsBtn.account-chip { flex-direction: column !important; gap: 4px !important; min-height: 60px !important; padding: 8px 2px !important; }
  html[data-visual-world] body #appShell .sidebar #accountSettingsBtn .account-rail-label { display: block; font-size: 12px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
}
/* T6-4：「Dot 声音」弹框底部「更多设置…」（dot-learning-shell.css 给弹框里的按钮下了 id 级 + !important 的样式，这里同样用 id） */
#dot-shell-menu #dot-shell-menu-more {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; margin-top: 16px; padding: 12px 4px 0 !important;
  border: 0 !important; border-top: 1px solid var(--dot-shell-line, var(--hairline)) !important; border-radius: 0 !important;
  color: var(--dot-shell-accent-ink, var(--accent-ink)) !important; font-weight: 650; text-align: left;
}
#dot-shell-menu #dot-shell-menu-more:hover:not(:disabled) { background: transparent !important; text-decoration: underline; text-underline-offset: 3px; }
#dot-shell-menu #dot-shell-menu-more .ic { width: 16px; height: 16px; flex: none; }
/* 手机二级页（我的 › 学习 / 外观 / 账号 / 帮助与反馈）：同一套内容，按手机外壳的白卡片排 */
html body.cv-mshell #settingsDrawer[data-phone-page] .settings-logout-row { margin: 4px 0 12px; padding-top: 0; border-top: 0; }
html body.cv-mshell #settingsDrawer[data-phone-page] .settings-logout-row #settingsLogout { background: var(--msh-card, var(--surface)) !important; border-color: transparent !important; }
html body.cv-mshell #settingsDrawer[data-phone-page] .academy-skin-picker.ds-skin-picker { gap: 6px !important; }
/* 减少动效：箭头不转 */
html.cv-reduce-motion #settingsDrawer .settings-pwa-more .ic { transition: none !important; }
@media (prefers-reduced-motion: reduce) { #settingsDrawer .settings-pwa-more .ic { transition: none !important; } }
/* ═══ 批次 5 · a1 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 5 · a2（首页与进度）开始：a2 的样式只写在这一段里 ═══ */

/* —— T7-04：模块卡第 4 条起的条目和「还有 N 项」。电脑、平板怎么排见末尾「全站体检批次 6 · 首页版式」 —— */
html[data-visual-world] body #view-today .home-task-extra { display: contents; }
html[data-visual-world] body #view-today .home-workspace-more { display: none; }
html[data-visual-world] body #view-today .home-workspace-foot { display: grid; flex: 0 0 auto; min-width: 0; }
html[data-visual-world] body #view-today .home-workspace-more {
  align-items: center; gap: 2px; justify-self: start; min-height: 44px; margin: 0; padding: 8px 0;
  border: 0; border-top: 1px solid var(--hairline-soft, var(--hairline)); border-radius: 0; background: transparent;
  width: 100%; color: var(--accent-ink); font-size: 14px; font-weight: 650; text-align: left; cursor: pointer;
}
html[data-visual-world] body #view-today .home-workspace-more:is(:hover, :focus-visible) { color: var(--ink); }
/* —— T1-7：词汇格里「待复习难词 N 个 · 开始复习」（电脑、平板） —— */
html[data-visual-world] body #view-today .home-review-due {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 10px 0 4px;
  border: 0; border-top: 1px solid var(--hairline-soft, var(--hairline)); border-radius: 0; background: transparent;
  color: var(--ink-2); font-size: 14px; text-align: left; cursor: pointer;
}
html[data-visual-world] body #view-today .home-review-due > .ic { flex: none; width: 18px; height: 18px; color: var(--mod, var(--accent-ink)); }
html[data-visual-world] body #view-today .home-review-due b { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-visual-world] body #view-today .home-review-due-go {
  display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex: none;
  color: var(--accent-ink); font-weight: 650;
}
html[data-visual-world] body #view-today .home-review-due:is(:hover, :focus-visible) .home-review-due-go { color: var(--ink); }

/* —— T1-6：没做完的练习降成大卡下面的一条细条（电脑、平板），按钮次要样式；页面只留「建议的下一步」一个实心主按钮 —— */
html[data-visual-world] body #view-today .home-practice-resume.is-slim { gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-copy .hpr-tag { font-size: 12.5px; font-weight: 700; color: var(--muted); }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-copy strong { font-size: 15px; font-weight: 650; }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-copy span:not(.hpr-tag) { font-size: 13px; color: var(--muted); }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-actions { gap: 6px; }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-actions button { min-height: 44px; padding: 8px 14px !important; font-size: 13.5px !important; }
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-actions .hpr-dismiss {
  background: transparent !important; border-color: transparent !important; color: var(--muted) !important;
}
html[data-visual-world] body #view-today .home-practice-resume.is-slim .hpr-actions .hpr-dismiss:is(:hover, :focus-visible) { color: var(--ink) !important; background: var(--surface-2) !important; }

/* —— T1-6（手机）：「接着上次」里的练习一行：图标 + 两行字 + 两个次要按钮（接着做 / 不做了） —— */
body.cv-mshell #msh-home .msh-rprac { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 0; border-top: 1px solid var(--msh-edge); }
body.cv-mshell #msh-home .msh-rprac:first-child { border-top: 0; }
body.cv-mshell #msh-home .msh-rprac .msh-rmain strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cv-mshell #msh-home .msh-rprac .msh-rmain > .msh-rbtns { display: flex; gap: 8px; margin-top: 8px; overflow: visible; white-space: normal; font-size: inherit; color: inherit; }
body.cv-mshell #msh-home .msh-rbtn {
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--msh-edge);
  background: var(--msh-card); color: var(--msh-accent); font-size: 14px; font-weight: 700;
}
body.cv-mshell #msh-home .msh-rbtn.is-quiet { border-color: transparent; background: transparent; color: var(--msh-muted); font-weight: 600; }
/* 「接着上次」是首页最后一块：底下留出 Dot 浮钮的高度，滚到底时最后一行不被浮钮压住 */
body.cv-mshell #msh-home > .msh-resume:last-child { margin-bottom: 72px; }

/* —— T7-11：手机「今天」进度条 —— 新亮的那几段 300ms 从左往右填满（底下灰轨道留着），刚做完那一行的圆勾弹一下（200ms）。
   类名由 mobile-shell.js 的 celebrateProgress() 加，只在完成数比上次多时加一次；减少动效时不加，这里也再关一道 */
body.cv-mshell #msh-home .msh-segbar i.msh-seg-fill { position: relative; overflow: hidden; background: var(--msh-edge); }
body.cv-mshell #msh-home .msh-segbar i.msh-seg-fill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--msh-good);
  transform-origin: left center; animation: msh-seg-fill .3s cubic-bezier(.3, .7, .4, 1) both; animation-delay: inherit;
}
body.cv-mshell #msh-home .msh-titem.done .msh-chk.msh-chk-pop { animation: msh-chk-pop .2s ease-out both; }
@keyframes msh-seg-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes msh-chk-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
html.cv-reduce-motion body.cv-mshell #msh-home .msh-segbar i.msh-seg-fill::after,
html.cv-reduce-motion body.cv-mshell #msh-home .msh-chk.msh-chk-pop { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.cv-mshell #msh-home .msh-segbar i.msh-seg-fill::after, body.cv-mshell #msh-home .msh-chk.msh-chk-pop { animation: none !important; }
}
/* ═══ 批次 5 · a2 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 5 · a3（图标、按钮、空状态与管理员）开始：a3 的样式只写在这一段里 ═══ */
/* T7-06：手机外壳的图标改用雪碧图（<svg class="ic msh-ic"><use href="#i-…">），文字符号 ‹ › ✓ ✕ ✦ ↑ → 换成 chevron-left / chevron-right / check / close / sparkle / send。
   这里只定图标的尺寸和粗细；颜色仍跟着按钮文字色（currentColor），深色和 7 套皮肤自动跟随。 */
html body.cv-mshell :is(.msh-back, .msh-back2) { padding: 0; }
html body.cv-mshell :is(.msh-back, .msh-back2) .msh-ic { width: 24px; height: 24px; stroke-width: 2; }
html body.cv-mshell #settingsDrawer[data-phone-page] .msp-back { padding: 0 !important; display: inline-grid; place-items: center; }
html body.cv-mshell #settingsDrawer[data-phone-page] .msp-back .ic { width: 24px; height: 24px; stroke-width: 2; }
html body.cv-mshell .msh-chk .msh-ic { width: 13px; height: 13px; stroke-width: 2.8; }
html body.cv-mshell .msh-chev .msh-ic { width: 18px; height: 18px; }
html body.cv-mshell .msh-chip > .msh-ic { width: 14px; height: 14px; flex: none; color: var(--msh-dot); }
html body.cv-mshell .msh-x .msh-ic { width: 16px; height: 16px; stroke-width: 2.2; }
html body.cv-mshell .msh-sx .msh-ic { width: 18px; height: 18px; stroke-width: 2.2; }
html body.cv-mshell .msh-send .msh-ic { width: 18px; height: 18px; stroke-width: 2.2; transform: translate(-1px, 1px); }
html body.cv-mshell .msh-arrow .msh-ic { width: 16px; height: 16px; stroke-width: 2.2; }
html body.cv-mshell .msh-flash span .msh-ic { width: 24px; height: 24px; stroke-width: 2.6; }
html body.cv-mshell .msh-sumok .msh-ic { width: 30px; height: 30px; stroke-width: 2.4; }
html body.cv-mshell .msh-sumrow .msh-chk .msh-ic { width: 13px; height: 13px; stroke-width: 2.8; }
/* aivia-ds.css 给所有 .ic 定了 1.8 线宽（选择器更强），手机外壳原来特意加粗的两处补回来 */
html body.cv-mshell .msh-fab-mic .msh-ic { stroke-width: 2.2; }
html body.cv-mshell .msh-talk-ic .msh-ic { stroke-width: 2; }
/* T7-06：跟读星级（学生作业、老师作业明细）★☆ → star 图标：亮的实心，空的只描边 */
.speech-stars { display: inline-flex; align-items: center; gap: 1px; letter-spacing: 0; vertical-align: -2px; }
html .speech-stars .ic-star { width: 14px; height: 14px; stroke-width: 1.8; }
html .speech-stars .ic-star.is-on { fill: currentColor; }
/* T7-06：拼写结果的拼对 / 拼错记号 ✓ ✗ → check / close 图标 */
html body .spell-list .spell-mark .ic { width: 18px; height: 18px; stroke-width: 2.4; vertical-align: -3px; }
/* T7-07：空状态统一成「浅底圆 + 和内容对应的线条图标 + 一句话 + 一个按钮」，和 cvCapybaraEmpty()（cv-anim.css 的 .cvc）同一个样子：
   48px 浅底圆、22px 线条图标、图标用次要文字色。原来在 academy 皮肤下被 3D 书本贴图换掉的 .icon 重新露出来；上下浮动的小动画不要（一页几张会一起晃）。 */
html[data-visual-world] .empty-state-card > .icon {
  display: grid !important; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px !important;
  border-radius: 50%; background: var(--surface-2); font-size: 0 !important; line-height: 0; animation: none !important;
}
html[data-visual-world] .empty-state-card > .icon .ic { width: 22px; height: 22px; stroke-width: 1.75; color: var(--muted) !important; }
html[data-visual-world] .empty-state-card > p { margin: 0; color: var(--muted); line-height: 1.6; }
html[data-visual-world] .empty-state-card > h3 + p { margin-top: 4px; }
html[data-visual-world] .empty-state-card > .empty-state-cta { margin-top: 12px; }
/* 老师、管理员、成长档案的紧凑空状态：圆小一号 */
html[data-visual-world] :is(#view-teacher, #view-admin, #view-growth) .empty-state-card > .icon { width: 40px; height: 40px; margin-bottom: 8px !important; }
html[data-visual-world] :is(#view-teacher, #view-admin, #view-growth) .empty-state-card > .icon .ic { width: 20px; height: 20px; }
/* T7-03：管理员接入新样式——和 5.10.0 老师端一样打开 data-ds（index.html 启动脚本 + academy-skin.js 的 setScope），管理员固定用 secondary 学段。
   颜色、圆角、字号、商标字、按钮图标间距都由 aivia-ds.css 统一给；这里只补接入后露出来的两处。表格密度不动。 */
/* 1）「帮助与反馈」分页的「按账号搜索」：aivia-ds.css 把 [class*="search"] > input 的边框去掉（给外层画框的搜索条用），这个搜索框外层没有框，补回来 */
html[data-ds][data-visual-world] #view-admin .ahf-search > input { border: 1px solid var(--hairline) !important; border-radius: var(--ds-r-control, 10px) !important; background: var(--surface) !important; padding: 6px 12px !important; }
/* 小修-20261125：边框画在输入框自己身上，聚焦也要画在它身上（aivia-ds.css 把 [class*="search"] > input 的聚焦全去掉了，Tab 进来什么都看不出）。
   和其他输入框一样：边线变主色 + 3px 淡光，立刻出现 */
html[data-ds][data-visual-world] #view-admin .ahf-search > input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent) !important; transition-duration: 0s !important; }
/* 2）词库上传：自绘「选择 CSV / JSON 文件」按钮 + 已选文件名，真的文件框透明地盖在上面 */
html[data-visual-world] #view-admin .a3-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
html[data-visual-world] #view-admin .a3-file > input[type="file"] { position: absolute !important; inset: 0 !important; z-index: 1; width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; cursor: pointer; }
html[data-visual-world] #view-admin .a3-file-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--ds-btn-px, 18px);
  border: 1px solid var(--hairline); border-radius: var(--ds-r-control, 10px); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600;
  transition: background-color .15s, border-color .15s;
}
html[data-visual-world] #view-admin .a3-file-name { min-width: 0; color: var(--muted); font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
html[data-visual-world] #view-admin .a3-file-name.is-picked { color: var(--ink); font-weight: 600; }
@media (hover: hover) { html[data-visual-world] #view-admin .a3-file:hover .a3-file-btn { background: var(--surface-2); border-color: var(--accent-edge, var(--hairline)); } }
html[data-visual-world] #view-admin .a3-file:has(> input:focus-visible) .a3-file-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
html.cv-reduce-motion #view-admin .a3-file-btn { transition: none; }
@media (prefers-reduced-motion: reduce) { #view-admin .a3-file-btn { transition: none; } }
/* 3）平板（768–1180）：新样式的页边更宽，顶部统计第 4 格「词库单词」被截成「词库…」、全局搜索的提示被截掉，收一点内边距、搜索框放宽到 260px */
@media (min-width: 768px) and (max-width: 1180px) {
  html[data-ds][data-visual-world] #view-admin .admin-stat { padding-inline: 10px; column-gap: 8px; }
  html[data-ds][data-visual-world] #view-admin .admin-stat:first-child { padding-left: 6px; }
  html[data-ds][data-visual-world] body[data-view="admin"] #appShell .topbar .search-box { width: 260px !important; }
}
/* ═══ 批次 5 · a3 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 5 · a4（学习页统一骨架）开始：a4 的样式只写在这一段里 ═══ */
/* 五个学习页（单词、听力、朗读、写作、阅读馆）统一骨架：页头 →「老师布置的」→ 分段条 → 主工作区。
   用到的类：.lp-assigned / .lp-arow / .lp-more（app.js learnPageAssignedHtml）、.lp-seg（各页的模式切换都加了这个类）、
   .lp-seg-side（分段条右边的次要入口，现在是写作「历史作文 ›」）、.reading-shell.lp-one（朗读方案甲：一条分段条）。
   这段规则要压过 refine / academy-theme / aivia-ds / mobile-wallpaper 里各页自己的那套标签样式，所以选择器前缀带 #appShell + 视图 id 两个 id、
   .lp-seg 重复写四次（mobile-wallpaper.css 的磨砂规则最高到 (2,8,2)），全部 !important。 */

/* ── 1. 「老师布置的」：单词页原来那种作业横条，作业和每日打卡都放这里，最多露两条 ── */
.lp-assigned { display: grid; gap: 8px; min-width: 0; margin: 0 0 12px; }
.lp-assigned[hidden] { display: none !important; }
.lp-assigned .lp-arow {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; min-width: 0;
  padding: 12px 16px; border: 1px solid var(--accent-edge); border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft)); color: var(--ink);
}
.lp-assigned .lp-arow[hidden] { display: none !important; }
.lp-assigned .lp-acopy { display: grid; gap: 4px; flex: 1 1 220px; min-width: 0; }
.lp-assigned .lp-acopy .home-task-kind { justify-self: start; }
.lp-assigned .lp-acopy strong { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.lp-assigned .lp-acopy small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
/* width:auto 必带 !important：styles.css 在 ≤460px 给 .primary-action / .secondary-action 塞了 width:100%（AGENTS.md 第 8 条） */
.lp-assigned .lp-arow > button { flex: none; width: auto !important; min-height: 44px; }
/* 做完的：浅色、小标签变绿，按钮是次按钮「回看」 */
.lp-assigned .lp-arow.is-done { border-color: var(--hairline); background: var(--surface-2); }
.lp-assigned .lp-arow.is-done .lp-acopy strong { color: var(--ink-2); font-weight: 600; }
html[data-visual-world] .lp-assigned .lp-arow.is-done .home-task-kind { background: var(--green-soft); color: var(--green-ink); }
/* 「还有 N 项」：原地展开，箭头转 90° */
.lp-assigned .lp-more {
  justify-self: end; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 8px 0 12px;
  border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--accent-ink);
  font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.lp-assigned .lp-more .ic { width: 16px; height: 16px; transition: transform .18s ease; }
.lp-assigned .lp-more[aria-expanded="true"] .ic { transform: rotate(90deg); }
.lp-assigned .lp-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1180px) { .lp-assigned .lp-more { min-height: 44px; } }
@media (max-width: 680px) {
  /* 手机：文字和按钮同一行，横条矮一点（和原来的作业条一样） */
  .lp-assigned .lp-arow { flex-wrap: nowrap; padding: 12px 12px 12px 14px; gap: 10px; }
  .lp-assigned .lp-acopy { flex: 1 1 0; }
  .lp-assigned .lp-arow > button { padding-inline: 14px !important; }
}
/* 各页里的位置：朗读页电脑上是定高的上下排（refine.css），这一块不伸缩；手机打开文章时和分段条一起收起 */
@media (min-width: 901px) { #view-reading .reading-shell > .lp-assigned { flex: 0 0 auto; margin: 0; } }
@media (max-width: 900px) { body.cv-read-detail #view-reading .lp-assigned { display: none !important; } }
#view-writing .writing-flow-shell > .lp-assigned, #view-listen .listen-view > .lp-assigned { margin: 0; }
/* 手机单词页：「老师布置的」和原来的作业条一样排在最上面；「自己练」收起时它留着 */
@media (max-width: 767px) {
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell:has(> .lp-assigned:not([hidden])) { display: flex; flex-direction: column; }
  body.cv-mshell #view-study.word-scope-choosing .cv-word-scope-shell > .lp-assigned { order: -2; margin: 0 0 16px; }
  body.cv-mshell #view-study.word-scope-choosing.msh-selfshut .cv-word-scope-shell > .lp-assigned:not([hidden]):not(.vocab-assignment-banner):not(.msh-selfbtn) { display: grid !important; }
}

/* ── 2. 分段条（T7-02）：所有页面级模式切换都照单词页 —— 浅灰轨道里白片表示选中，44px 高，可带图标和条数 ── */
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg {
  display: inline-flex !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 4px !important;
  width: max-content !important; max-width: 100% !important; min-width: 0 !important; grid-template-columns: none !important;
  padding: 4px !important; border: 0 !important; border-radius: calc(var(--ds-r-control) + 4px) !important;
  background: color-mix(in srgb, var(--ink) 6%, transparent) !important; box-shadow: none !important;
  overflow-x: auto; scrollbar-width: none;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg::-webkit-scrollbar { display: none; }
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button {
  flex: 0 0 auto !important; display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
  width: auto !important; min-width: 0 !important; height: auto !important; min-height: 44px !important; margin: 0 !important; padding: 0 16px !important;
  border: 0 !important; border-radius: var(--ds-r-control) !important; background: transparent !important; box-shadow: none !important;
  color: var(--ink-2) !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.25 !important; white-space: nowrap !important; text-align: center !important;
  opacity: 1 !important; transform: none !important; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease !important;
}
/* 按钮里的文字：名字 + 条数（听力卡片里多一层 div，图标留着） */
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button > div:not(.listen-card-icon) {
  display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 6px !important; margin: 0 !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button strong {
  order: -1 !important; display: inline !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; color: inherit !important; white-space: nowrap !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button :is(span, small):not(.listen-card-icon *) {
  display: inline !important; font-size: 12px !important; font-weight: 600 !important; line-height: inherit !important; color: var(--muted) !important; opacity: 1 !important; font-variant-numeric: tabular-nums; white-space: nowrap !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button small:empty { display: none !important; }
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button .listen-card-icon {
  display: inline-grid !important; place-items: center; flex: none; width: 16px !important; height: 16px !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: inherit !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button .listen-card-icon .ic { width: 16px !important; height: 16px !important; }
/* 选中：白片 + 一圈细线（深色模式白片抬到 --surface-3，和 aivia-ds 第 16 节一致） */
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button:is(.active, .on, [aria-pressed="true"]) {
  background: var(--surface) !important; color: var(--ink) !important; box-shadow: var(--shadow-xs), 0 0 0 1px var(--hairline-soft) !important;
}
html[data-ds][data-visual-world].cv-dark body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button:is(.active, .on, [aria-pressed="true"]) {
  background: var(--surface-3) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), var(--shadow-xs) !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button:focus-visible {
  outline: 2px solid var(--accent) !important; outline-offset: 2px !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button:not(.active):not(.on):not([aria-pressed="true"]):hover {
    background: color-mix(in srgb, var(--surface) 50%, transparent) !important; color: var(--ink) !important;
  }
}
/* 电脑、平板压在页头照片上：和单词页一样垫一层磨砂（ui-sweep v1 A4 第 1 节的做法）；「简约」外观没有照片，不垫 */
@media (min-width: 768px) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg {
    background: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent), color-mix(in srgb, var(--ink) 6%, transparent)), var(--ds-glass-card, var(--ds-card)) !important;
    box-shadow: inset 0 0 0 1px var(--hairline-soft) !important;
    -webkit-backdrop-filter: var(--ds-glass-blur, none); backdrop-filter: var(--ds-glass-blur, none);
  }
}
/* 手机：撑满一行、各段等分；压在满版壁纸上用磨砂底（和 mobile-wallpaper.css 的卡片同一个透明度） */
@media (max-width: 767px) {
  html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg { display: flex !important; width: 100% !important; }
  html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button { flex: 1 1 0 !important; padding: 0 8px !important; }
  /* 四段排一行时只写名字，不写条数 */
  html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg:has(> button:nth-child(4)) > button :is(span, small):not(.listen-card-icon *) { display: none !important; }
  html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg:has(> button:nth-child(3)) > button .listen-card-icon { display: none !important; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body.cv-mshell #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg {
    background: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent), color-mix(in srgb, var(--ink) 6%, transparent)), color-mix(in srgb, var(--msh-card, var(--surface)) var(--msh-frost, 80%), transparent) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  }
  html[data-ds][data-visual-world] body.cv-mshell #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button:is(.active, .on, [aria-pressed="true"]) { background: var(--msh-card, var(--surface)) !important; }
  html[data-ds][data-visual-world].cv-dark body.cv-mshell #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button:is(.active, .on, [aria-pressed="true"]) { background: var(--surface-3) !important; }
}
/* 系统「减少动态」、站内「减少动效」：分段条和「还有 N 项」的过渡都关掉（上面带 !important 的 transition 会压过 styles.css 的全局兜底，这里再关一次） */
@media (prefers-reduced-motion: reduce) {
  html[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button { transition: none !important; }
  .lp-assigned .lp-more .ic { transition: none !important; }
}
html.cv-reduce-motion[data-ds][data-visual-world] body #appShell .main :is(#view-study, #view-listen, #view-reading, #view-writing, #view-library).view .lp-seg.lp-seg.lp-seg.lp-seg > button,
html.cv-reduce-motion .lp-assigned .lp-more .ic { transition: none !important; }
/* 各页的外边距（听力页的上下间距由 .listen-view 的 gap 管，不另加） */
#appShell #view-listen .listen-mode-grid.lp-seg { margin: 0 !important; }
#appShell #view-reading .reading-shell > .lp-seg { margin: 0 0 12px !important; }
@media (min-width: 901px) { #appShell #view-reading .reading-shell > .lp-seg { margin: 0 !important; } }
#appShell #view-reading .reading-catalog .reading-source-tabs.lp-seg { margin: 0 0 6px !important; }
/* 方案乙：第二层来源分段条在电脑目录栏里（约 250px 宽），撑满、各段等分、字小一号，不横向滚动 */
html[data-ds][data-visual-world] body #appShell .main #view-reading.view .reading-catalog .reading-source-tabs.lp-seg.lp-seg.lp-seg.lp-seg { display: flex !important; width: 100% !important; }
html[data-ds][data-visual-world] body #appShell .main #view-reading.view .reading-catalog .reading-source-tabs.lp-seg.lp-seg.lp-seg.lp-seg > button { flex: 1 1 0 !important; padding: 0 6px !important; font-size: 13px !important; gap: 4px !important; }
html[data-ds][data-visual-world] body #appShell .main #view-reading.view .reading-catalog .reading-source-tabs.lp-seg.lp-seg.lp-seg.lp-seg > button span { font-size: 12px !important; /* 小修-20261125 原11px */ }
html[data-ds][data-visual-world] body #appShell .main #view-reading.view .reading-catalog .reading-source-tabs.lp-seg.lp-seg.lp-seg.lp-seg:has(> button:nth-child(3)) > button span { display: none !important; }
/* 朗读方案甲：来源已经并进最上面那条分段条，目录里第二层来源标签不再显示 */
html[data-ds][data-visual-world] body #appShell .main #view-reading.view .reading-shell.lp-one .reading-catalog .reading-source-tabs.lp-seg.lp-seg.lp-seg.lp-seg { display: none !important; }
/* 阅读馆：分段条放在搜索框右边（电脑）/ 下面（手机），格子宽度跟着字 */
@media (min-width: 768px) {
  html[data-ds][data-visual-world] body #appShell .main #view-library.view .lib-pk-tools > .lp-seg.lp-seg.lp-seg.lp-seg { justify-self: end; }
}
/* 阅读馆里其他小分段（读文章时的「字号」「阅读方式」）：选中也改成白片，不再实心填充（设计说明 5.10.3） */
html[data-ds][data-visual-world] #view-library .lib-seg:not(.lp-seg) button[aria-pressed="true"] {
  background: var(--surface) !important; color: var(--ink) !important; box-shadow: var(--shadow-xs), 0 0 0 1px var(--hairline-soft) !important;
}
html[data-ds][data-visual-world].cv-dark #view-library .lib-seg:not(.lp-seg) button[aria-pressed="true"] { background: var(--surface-3) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent) !important; }

/* ── 3. 列表里的筛选：和成长档案「全部 / 单词跟读 / AI 造句」同一种小胶囊（选中浅底 + 描边，不实心） ── */
html[data-ds][data-visual-world] #view-library .lib-pk-lv .lib-chip-opt {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--line, var(--hairline)) !important; border-radius: 999px !important;
  background: transparent !important; color: var(--ink-2) !important; font-size: 12px !important; font-weight: 600 !important;
}
html[data-ds][data-visual-world] #view-library .lib-pk-lv .lib-chip-opt.is-on { background: var(--accent-soft) !important; border-color: var(--accent-edge) !important; color: var(--accent-ink) !important; }
@media (max-width: 1180px) { html[data-ds][data-visual-world] #view-library .lib-pk-lv .lib-chip-opt { min-height: 44px; } }

/* ── 4. 写作：「老师作业 / 自由写作」分段条 + 右边的「历史作文 ›」文字入口（不再是单独一颗胶囊） ── */
html[data-visual-world] body #appShell #view-writing .writing-mode-toolbar { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; gap: 8px 12px !important; margin: 0 !important; }
html[data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .writing-mode-tabs { flex: 0 1 auto !important; }
html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .writing-history-jump.lp-seg-side {
  order: 2; flex: none; display: inline-flex !important; align-items: center !important; gap: 2px !important; align-self: center !important;
  min-height: 44px !important; margin: 0 0 0 auto !important; padding: 0 8px 0 12px !important; border: 0 !important; border-radius: 999px !important;
  background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  color: var(--accent-ink) !important; font-size: 14px !important; font-weight: 650 !important; white-space: nowrap !important; text-decoration: none !important;
}
html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .writing-history-jump.lp-seg-side .ic { width: 16px; height: 16px; }
/* 电脑、平板这行压在页头照片上：字后面垫一片和底色同色的柔光（手机外壳在 mobile-wallpaper.css 已有同样的做法），没有边、不成胶囊 */
@media (min-width: 768px) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body #appShell #view-writing .writing-mode-toolbar > .writing-history-jump.lp-seg-side { position: relative; isolation: isolate; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body #appShell #view-writing .writing-mode-toolbar > .writing-history-jump.lp-seg-side::before {
    content: ""; position: absolute; z-index: -1; inset: 6px 0; border-radius: 14px; pointer-events: none;
    background: color-mix(in srgb, var(--ds-canvas, var(--bg)) 88%, transparent); filter: blur(8px);
  }
}
@media (max-width: 767px) {
  html[data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .writing-mode-tabs { flex: 1 1 auto !important; width: auto !important; }
  html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .writing-history-jump.lp-seg-side { padding: 0 4px 0 8px !important; font-size: 13px !important; }
}

/* ── 5. 「查看额度 · 刷新」：朗读、写作同一个小组件 —— 一行灰字 + 两个墨蓝文字按钮，不加下划线、不描边 ── */
html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] {
  display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 0 2px !important;
  padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--muted) !important; font-size: 13px !important; line-height: 1.5 !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] .quota-hint-main { flex: 0 1 auto !important; min-width: 0; margin-right: 6px; }
html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] .quota-hint-detail { flex: 1 0 100% !important; order: 3; }
html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] button {
  display: inline-flex !important; align-items: center !important; width: auto !important; min-width: 0 !important; min-height: 36px !important; margin: 0 !important; padding: 0 8px !important;
  border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important;
  color: var(--accent-ink) !important; font-size: 13px !important; font-weight: 650 !important; text-decoration: none !important; white-space: nowrap !important;
}
html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] button:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: -2px !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] button:hover { background: var(--accent-soft-2, var(--accent-soft)) !important; }
}
/* 触屏：按钮点击区域 44px（ui-sweep v1 的触屏规矩），样子不变 */
@media (max-width: 1180px) {
  html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] button { min-height: 44px !important; }
  html[data-ds][data-visual-world] body #appShell .main :is(#view-reading, #view-writing) .quota-hint.quota-hint[data-quota-feature] .quota-hint-main { flex: 0 1 auto !important; }
}

/* ── 6. T7-12：写作「当前步骤」的圆点用动作色（墨蓝），写作的模块色（酒红）只留给图标；深色模式下动作色是 #3554a6，白字 7:1 ── */
html[data-ds][data-visual-world]:is(.cv-dark, :not(.cv-dark)) #view-writing .writing-step.is-current .writing-step-number {
  background: var(--academy-action) !important; border-color: var(--academy-action) !important; color: #fff !important;
}
/* ═══ 批次 5 · a4 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 5 · a5（动效）开始：a5 的样式只写在这一段里 ═══ */
/* 提案 C 的原则：动效只用来说明「状态变了」，150–300ms，只动 opacity / transform（translate）/ 颜色；
   站内「减少动效」和系统「减少动态」打开时全部关掉（本段末尾）。 */

/* —— T7-05 答题反馈：五处共用一组类名 ——
   练习、Starters 图片题（.option）、拼写（.spell-input / .spell-slot）、阅读馆读后题（.lib-opt / .lib-gap / .lib-mrow）、
   历年中考阅读 / 完形（.lib-opt / .lib-xgap）。类名由 cv-reward.js 的 window.cvAnswerFx 在判完的那一下加上，420ms 后摘掉：
   .cv-fx-ok 答对项、.cv-fx-key 答错时的正确项：底色 / 边框 / 字色 150ms 过渡到绿；
   .cv-fx-bad 选错项：150ms 过渡到红，同时左右抖 2 次（4px，共 240ms）；
   .cv-fx-pop 答对时项内的小勾：60% → 100%，200ms。整条选项不缩放（原来是放大到 118%，撑出卡片）。
   过渡要盖过各处自带的 transition（ultimate.css 的 .option 带 !important），所以这里也带 !important；
   抖动用独立的 translate 属性，和 :hover 的 transform（同样带 !important）叠加，不会被吃掉。 */
html .cv-fx-ok, html .cv-fx-key, html .cv-fx-bad {
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out !important;
}
/* 过渡的起点：判完那一下先压回「没判时」的底色 / 边框 / 字色（cv-reward.js 加上、读一次样式、马上摘掉）。
   要盖过各处带 !important 的对错色（包括下面拼写输入框那条），所以用 #appShell 加三个同名类 */
html body #appShell .cv-fx-from.cv-fx-from.cv-fx-from { color: var(--ink) !important; transition: none !important; }
html body #appShell .cv-fx-from.cv-fx-from.cv-fx-from:not(.spell-word) { background-color: var(--surface) !important; border-color: var(--hairline) !important; }
html .cv-fx-bad { animation: a5-fx-shake .24s ease-in-out !important; }
@keyframes a5-fx-shake { 0%, 100% { translate: 0 0; } 12.5% { translate: -4px 0; } 37.5% { translate: 4px 0; } 62.5% { translate: -4px 0; } 87.5% { translate: 4px 0; } }
html .cv-fx-pop { animation: a5-fx-pop .2s ease-out both !important; }
@keyframes a5-fx-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 答对时项内的小勾（练习由 cv-reward.js 补进去，阅读馆 / 中考由 reading-library.js 画；减少动效时照样有，只是不弹） */
:is(.option, #view-library .lib-opt) .cv-fx-tick {
  display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-strong, var(--green)); color: var(--on-action, #fff); vertical-align: middle; line-height: 1;
}
.option .cv-fx-tick { margin-left: 8px; }
#view-library .lib-opt .cv-fx-tick { margin-left: auto; }
:is(.option, #view-library .lib-opt) .cv-fx-tick .ic { width: 12px; height: 12px; stroke-width: 2.4; }
/* 拼写：判完以后输入框 / 字母格也用对错色（原来只有下面的提示框变色）；拼错时下面的正确拼写用绿字（和阅读馆、中考的「正确答案」一致）。
   spelling.css 是进拼写时才加载、排在本文件后面，选择器要更具体才盖得过。 */
/* 输入框：aivia-ds.css 的全站输入框样式带 !important（底色、边框、字色），这里也要带，并用 #appShell 压过它 */
#appShell .spell-card .spell-input.is-right { border-color: var(--green-ink) !important; background-color: var(--green-soft) !important; color: var(--green-ink) !important; }
#appShell .spell-card .spell-input.is-wrong { border-color: var(--red-ink) !important; background-color: var(--red-soft) !important; color: var(--red-ink) !important; }
.spell-root .spell-card .spell-slot.filled.is-right { border-color: var(--green-ink); background: var(--green-soft); color: var(--green-ink); }
.spell-root .spell-card .spell-slot.filled.is-wrong { border-color: var(--red-ink); background: var(--red-soft); color: var(--red-ink); }
.spell-root .spell-fb .spell-word.is-right { color: var(--green-ink); }

/* —— T7-09 换页：三端统一 0.18s 淡入（电脑原来 0.5s；≤1180px 早就是 0.18s，见 refine.css）。
   只动透明度：keyframes 已在 refine.css 改成只有 opacity；加 transform 会把 .view.active 变成 fixed 元素的包含块（AGENTS.md 第 8 条第 3 点）。 */
.view.active { animation-duration: .18s !important; }

/* —— T7-10 手机 Dot 浮钮的「呼吸」：不再一直播 ——
   原来 .msh-fab 上 msh-breathe 每 3.6 秒一次、改的是 box-shadow（每帧重画）。现在浮钮本身不动画，
   呼吸改成对 ::after 光圈做 opacity / transform 动画，只在 mobile-shell.js 给了 data-breathe 时播：
   intro = 刚进首页，播 2 次；news = Dot 有话要说（有新的学习反馈要讲，或者有首页上还没看过的新作业 / 打卡），一直播到学生点开 Dot 或回首页。
   ::before 的眨眼（只改 transform）保留。 */
body.cv-mshell .msh-fab { animation: none; }
body.cv-mshell .msh-fab::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--msh-dot) 12%, transparent), 0 10px 28px color-mix(in srgb, var(--msh-dot) 26%, transparent);
}
body.cv-mshell .msh-fab[data-breathe]::after { animation: a5-fab-breathe 3.6s ease-in-out 2; }
body.cv-mshell .msh-fab[data-breathe="news"]::after { animation-iteration-count: infinite; }
@keyframes a5-fab-breathe { 0%, 100% { opacity: 0; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }

/* —— 提案 C · 3 进度条：数值变化统一 250ms ——
   作业进度条、拼写进度条的宽度 / 颜色（重画出来的新条由 cv-reward.js 先放回旧宽度再放到新宽度）；
   练习 / 测验题目圆点：新完成的那一个从「当前」的样子过渡到「已完成」，新的当前点从小变大。 */
.daily-mini-progress > i, .assignment-progress-bar > i { transition: width .25s ease-out, background-color .25s ease-out; }
.spell-root .spell-progress > i { transition: width .25s ease-out, background-color .25s ease-out; }
.session-dots i.done.cv-prog-new { animation: a5-dot-done .25s ease-out; }
@keyframes a5-dot-done { from { opacity: 1; transform: scale(1.5); } }
.session-dots i.current.cv-prog-cur { animation: a5-dot-cur .25s ease-out; }
@keyframes a5-dot-cur { from { opacity: .45; transform: scale(1); } }

/* —— 提案 C · 5 展开箭头：统一用雪碧图的 chevron-right，展开时转 90°，180ms ——
   听力单元折叠（.msh-fold-h，原来是文字「›」）、朗读单元折叠（原来是 CSS ::after 的「›」，改成 mobile-shell.js 补的图标）、
   作业历史（原来是「⌄」转 180°）、手机成长档案历史卡和「更多」（原来是 CSS 画的折角）。
   会员额度条「额度明细 ›」本来就是 chevron-right 转 90°、0.18s，不用改。长列表展开不做高度动画。 */
html body #appShell :is(.msh-fold-h, .msh-fold-heading) .msh-fchev { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; font-size: 0; line-height: 0; transition: transform .18s ease !important; }
html body #appShell :is(.msh-fold-h, .msh-fold-heading) .msh-fchev .ic { width: 18px; height: 18px; }
html body #appShell :is(.msh-fold-h, .msh-fold-heading)[aria-expanded="true"] .msh-fchev { transform: rotate(90deg); }
html body #appShell #view-reading .reading-unit-heading.msh-fold-heading::after { display: none !important; }
html body:not(.cv-mshell) #appShell #view-reading .reading-unit-heading.msh-fold-heading .msh-fchev { margin-left: 4px; color: var(--muted); }
#view-assignments .assignment-section-toggle b::after { content: none !important; display: none !important; }
.cv-fold-chev { flex: none; width: 16px; height: 16px; transition: transform .18s ease; }
details[open] > summary .cv-fold-chev { transform: rotate(90deg); }
html[data-ds][data-visual-world] #view-growth :is(.growth-history-fold, .growth-more) > summary::after { content: none !important; display: none !important; }
#view-growth :is(.growth-history-fold, .growth-more) > summary .cv-fold-chev { margin-left: 4px; color: var(--muted); }
/* 短面板展开时 200ms 淡入（手机成长档案「更多」、首页额度明细）；长列表（听力 / 朗读单元、作业历史）不做 */
#view-growth details.growth-more[open] > .growth-more-body, .home-member-quota-body:not([hidden]) { animation: a5-fade-in .2s ease-out; }
@keyframes a5-fade-in { from { opacity: 0; } }

/* —— 减少动效：站内设置（html.cv-reduce-motion）和系统设置都关掉本段的全部动画和过渡 —— */
html.cv-reduce-motion :is(.cv-fx-ok, .cv-fx-key, .cv-fx-bad, .cv-fx-pop, .cv-prog-new, .cv-prog-cur, .msh-fchev, .cv-fold-chev, .growth-more-body, .home-member-quota-body),
html.cv-reduce-motion .msh-fab::after,
html.cv-reduce-motion :is(.daily-mini-progress, .assignment-progress-bar, .spell-progress) > i { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  :is(.cv-fx-ok, .cv-fx-key, .cv-fx-bad, .cv-fx-pop, .cv-prog-new, .cv-prog-cur, .msh-fchev, .cv-fold-chev, .growth-more-body, .home-member-quota-body),
  .msh-fab::after,
  :is(.daily-mini-progress, .assignment-progress-bar, .spell-progress) > i { animation: none !important; transition: none !important; }
}
/* ═══ 批次 5 · a5 结束 ═══ */

/* —— 分隔 —— */

/* ═══ 全站体检批次 5 · 合并（主会话）开始 ═══ */
/* 059-4：保存批改超时后「还没确认存上，先点刷新」用警告色（a6 的 data-tone="warn"） */
html[data-ds][data-visual-world] #view-teacher .t-grading .t-review-status[data-tone="warn"] { color: var(--amber-ink); }
/* ═══ 批次 5 · 合并 结束 ═══ */

/* ═══ 全站体检批次 6 · a1（学生端：截止与补交）开始：a1 的样式只写在这一段里 ═══ */

/* 全站体检批次 6（T4-10）：补交提示。琥珀色只做提示，不当错误 */
.late-submit-note {
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, #d97706 11%, var(--surface, #fff));
  color: var(--ink-2, #5b4a2c);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.late-submit-cost {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-2, #5b4a2c);
  font-weight: 600;
}
/* 全站体检批次 6（T4-10）：「已截止，可补交」比「已逾期」长，窄屏不换行、不把标题挤没 */
.assignment-history-row.expired .assignment-status { white-space: nowrap; }
/* 全站体检批次 6（T4-10）：卡片上的额度提示，额度够时这一格是空的 */
.late-submit-quota { margin-top: 6px; min-width: 0; }
.late-submit-quota:empty { display: none; }
/* 全站体检批次 6（T4-10、T4-12）：手机作业信息条下面的两句，断点和 .cv-assign-bar 一致（768） */
.cv-assign-bar-note { display: none; }
@media (max-width: 768px) {
  /* 这里下面是壁纸，文字要有自己的底才读得清 */
  .cv-assign-bar-note { display: block; margin: -4px 0 10px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface, #fff) 92%, transparent); }
  .cv-assign-bar-note .late-submit-note { margin: 0; padding: 0; border-radius: 0; background: none; color: var(--ink, #16233f); font-weight: 600; }
  .cv-assign-bar-note .assignment-practice-note { margin: 0; color: var(--ink-2, #2f3c58); }
  .cv-assign-bar-note .late-submit-note + .assignment-practice-note { margin-top: 2px; }
}
/* 全站体检批次 6（T4-10）：手机默认藏分组说明，有可补交时这句要露出来 */
#view-assignments .assignment-section-toggle small.late-submit-lead { display: block; }
/* 全站体检批次 6（T4-12）：练习词说明句 */
.assignment-practice-note {
  margin: 6px 0 0;
  color: var(--muted, #667);
  font-size: 13px;
  line-height: 1.5;
}

/* ═══ 批次 6 · a1 结束 ═══ */

/* ═══ 全站体检批次 6 · a2（学生端：提醒、报告、换班确认）开始：a2 的样式只写在这一段里 ═══ */
/* T4-08：首页批改提醒。排在文档流里，不盖内容；文字可换行，手机上不撑宽 */
.sn-review { display: flex; align-items: stretch; gap: 2px; min-width: 0; margin: 0 0 8px; border-radius: 12px; background: color-mix(in srgb, var(--primary, #534AB7) 11%, var(--msh-card, #fff)); color: var(--ink, #26215C); }
.sn-review-go { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px 8px 12px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; cursor: pointer; border-radius: 12px 0 0 12px; }
.sn-review-go span { min-width: 0; overflow-wrap: anywhere; }
.sn-review .ic { width: 16px; height: 16px; flex: none; }
.sn-x { flex: none; width: 40px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: inherit; opacity: .62; cursor: pointer; border-radius: 0 12px 12px 0; }
.sn-review-go:focus-visible, .sn-x:focus-visible, .sn-streak:focus-visible { outline: 2px solid var(--primary, #534AB7); outline-offset: 1px; }
body.cv-mshell .msh-today .sn-review { margin: 0; }
/* 新作业角标：放在标题前面，长标题被省略时也看得见 */
.sn-new { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 6px; background: #C9353A; color: #fff; font-size: 12px; /* 小修-20261125 原11px */ font-style: normal; font-weight: 800; line-height: 16px; vertical-align: 1px; white-space: nowrap; }
/* T5-16：Dot 浮钮（手机）、Dot 头像（电脑）上的小圆点。静止不闪，不额外占位 */
.sn-fab-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
#avdot-launcher:has(> .sn-fab-dot) { position: relative; }
.cv-dark .sn-fab-dot { box-shadow: 0 0 0 2px #1d2030; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.cv-reduce-motion) .sn-fab-dot { animation: sn-dot-in .22s ease-out; }
  @keyframes sn-dot-in { from { transform: scale(0); } to { transform: scale(1); } }
}
/* T5-16：电脑上点开 Dot，输入框上方写这一句 */
.sn-panel-note { margin: 0 12px 6px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--primary, #534AB7) 11%, transparent); font-size: 13px; line-height: 1.45; font-weight: 600; }
/* T5-16：练习答错面板里连错 3 题的一行，整行是按钮 */
.sn-streak { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; margin-top: 8px; padding: 6px 10px; border: 1px dashed color-mix(in srgb, currentColor 34%, transparent); border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.35; text-align: left; text-transform: none; font-variant: normal; letter-spacing: 0; cursor: pointer; }
.sn-streak span { text-transform: none; font-variant: normal; }
.sn-streak .ic { flex: none; }
/* T4-07：从设置里打开确认框时要盖在抽屉上面（确认框默认 120，电脑抽屉 160，手机二级页 1150） */
html[data-ds][data-visual-world] body.settings-open #teacherConfirmDialog, body.settings-open #teacherConfirmDialog { z-index: 1250 !important; }
/* T2-12：报告图片弹层。图片按屏幕高度收，不用滚动 */
.sn-report-modal .cv-poster-img { max-height: min(68vh, 560px); width: auto; max-width: 100%; margin-inline: auto; display: block; }


/* ═══ 批次 6 · a2 结束 ═══ */

/* ═══ 全站体检批次 6 · a3（老师端和 Dot 卡点）开始：a3 的样式只写在这一段里 ═══ */
/* T3-08 / T5-20：学生详情里的「当前作业」「Dot 发现的问题」，排在指标卡和活动记录之间 */
html[data-ds][data-visual-world] #view-teacher .t-sx { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--surface); min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-sx h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
html[data-ds][data-visual-world] #view-teacher .t-sx h4 small { margin-left: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
html[data-ds][data-visual-world] #view-teacher .t-sx-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
html[data-ds][data-visual-world] #view-teacher .t-sx-list > li + li { border-top: 1px solid var(--hairline-soft); }
html[data-ds][data-visual-world] #view-teacher .t-sx-empty { margin: 0; font-size: 14px; }
html[data-ds][data-visual-world] #view-teacher .t-sx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 10px; width: 100%; min-height: 44px; padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: none; }
html[data-ds][data-visual-world] #view-teacher .t-sx-row:hover { background: var(--surface-2); }
html[data-ds][data-visual-world] #view-teacher .t-sx-row:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: -2px; }
html[data-ds][data-visual-world] #view-teacher :is(.t-sx-kind) { display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 650; line-height: 1.7; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-sx-title { min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-sx-state { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.6; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-sx-state[data-state="done"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-sx-state[data-state="doing"] { background: var(--amber-soft); color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-sx-due { color: var(--muted); font-size: 13px; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-sx-finding { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 8px 4px; }
html[data-ds][data-visual-world] #view-teacher .t-sx-finding > span { min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-sx-finding > small { color: var(--muted); font-size: 13px; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-sx-foot { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@container (max-width: 560px) {
  html[data-ds][data-visual-world] #view-teacher .t-sx-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  html[data-ds][data-visual-world] #view-teacher .t-sx-row .t-sx-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
  html[data-ds][data-visual-world] #view-teacher .t-sx-row .t-sx-due { grid-column: 2 / -1; grid-row: 2; white-space: normal; }
  html[data-ds][data-visual-world] #view-teacher .t-sx-row .t-late-chip { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
}

/* T4-10 迟交小标签、T4-11 进班晚的说明 */
html[data-ds][data-visual-world] #view-teacher .t-late-chip { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--amber-ink) 34%, var(--hairline-soft)); border-radius: 999px; color: var(--amber-ink); font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-sx-row .t-late-chip { margin-left: 0; }
html[data-ds][data-visual-world] #view-teacher .t-join-note { margin: 4px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* T3-09：电脑的「学生 × 作业」总表；不到 1024 宽不显示（也不读数据） */
html[data-ds][data-visual-world] #view-teacher [data-teacher-grid]:empty { display: none; }
@media (max-width: 1023.98px) { html[data-ds][data-visual-world] #view-teacher [data-teacher-grid] { display: none; } }
html[data-ds][data-visual-world] #view-teacher .t-grid { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--hairline-soft); border-radius: 14px; background: var(--surface); min-width: 0; }
html[data-ds][data-visual-world] #view-teacher .t-grid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
html[data-ds][data-visual-world] #view-teacher .t-grid-head h3 { margin: 0; font-size: 16px; color: var(--ink); }
html[data-ds][data-visual-world] #view-teacher .t-grid-head small { color: var(--muted); font-size: 13px; }
html[data-ds][data-visual-world] #view-teacher .t-grid-tools { display: flex; flex: 0 0 auto; gap: 8px; }
html[data-ds][data-visual-world] #view-teacher .t-grid-tools .secondary-action { width: auto !important; min-height: 36px !important; padding: 0 12px !important; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grid-wrap { max-height: min(62vh, 560px); overflow: auto; border: 1px solid var(--hairline-soft); border-radius: 10px; }
html[data-ds][data-visual-world] #view-teacher .t-grid-wrap:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; font-size: 13px; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table :is(th, td) { padding: 4px; border-bottom: 1px solid var(--hairline-soft); background: var(--surface); text-align: center; vertical-align: middle; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table tbody tr:last-child > * { border-bottom: 0; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table thead th { position: sticky; top: 0; z-index: 2; min-width: 112px; max-width: 148px; padding: 8px 6px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; vertical-align: top; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table thead th > * { display: block; margin-inline: auto; width: fit-content; max-width: 100%; }
html[data-ds][data-visual-world] #view-teacher .t-grid-title { margin-top: 3px; overflow: hidden; color: var(--ink); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table thead small { margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table .t-grid-name { position: sticky; left: 0; z-index: 1; min-width: 96px; max-width: 150px; padding-inline: 10px; overflow: hidden; color: var(--ink); font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table thead .t-grid-name { z-index: 3; background: var(--surface-2); vertical-align: middle; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table .t-grid-owed { position: sticky; right: 0; z-index: 1; min-width: 58px; max-width: none; color: var(--muted); font-weight: 650; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table thead .t-grid-owed { z-index: 3; vertical-align: middle; }
html[data-ds][data-visual-world] #view-teacher .t-grid-table td.is-owed { color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-grid-owed button { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; box-shadow: none; }
html[data-ds][data-visual-world] #view-teacher .t-grid-owed button:hover { background: var(--surface); }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 36px; padding: 3px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; line-height: 1.3; cursor: pointer; box-shadow: none; }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell > span { font-weight: 650; }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell > small { color: var(--amber-ink); font-size: 12px; white-space: nowrap; }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell[data-state="done"] { background: var(--green-soft); color: var(--green-ink); }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell[data-state="doing"] { background: var(--amber-soft); color: var(--amber-ink); }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell[data-state="todo"] { background: var(--surface-2); color: var(--ink-2); }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell[data-state="na"] { cursor: default; opacity: .65; }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell:hover { filter: brightness(.97); }
html[data-ds][data-visual-world] #view-teacher .t-grid-cell:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: -1px; }

/* T3-15：班级简报的「本周作业」（简报层在 #view-teacher 外面，打印也用这一段） */
.t-brief-week p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.t-brief-week .t-brief-scroll { overflow-x: auto; }
.t-brief-week table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-brief-week :is(th, td) { padding: 7px 8px; border-bottom: 1px solid var(--hairline-soft, #e4e8e2); color: var(--ink); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.t-brief-week th { color: var(--muted); font-weight: 650; white-space: nowrap; }
.t-brief-week td:nth-child(2), .t-brief-week td:nth-child(3) { white-space: nowrap; }
.t-brief-week td strong { display: block; font-weight: 650; }
.t-brief-week td small { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .t-brief-week td:nth-child(2) { white-space: normal; min-width: 72px; } }
@media print { .t-brief-week .t-brief-scroll { overflow: visible; } .t-brief-week :is(th, td) { color: #000 !important; border-color: #bbb !important; } .t-brief-week tr { break-inside: avoid; } }

/* T4-03：上一版老师点评（学生回看、老师批改页共用），默认折叠、次要样式，不抢这一版的评价 */
.wv-prev-review { margin-top: 10px; padding: 0 12px; border: 1px dashed var(--hairline, #d8dcd4); border-radius: 10px; background: transparent; color: var(--ink-2, inherit); }
.wv-prev-review > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 44px; padding: 11px 0; color: var(--ink-2, inherit); font-size: 14px; font-weight: 600; cursor: pointer; }
.wv-prev-review > summary small { color: var(--muted); font-size: 13px; font-weight: 500; }
.wv-prev-review .wv-prev-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.wv-prev-review .wv-prev-item { padding: 8px 0 10px; border-top: 1px solid var(--hairline-soft, #e4e8e2); }
.wv-prev-review .wv-prev-item > small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.wv-prev-review .wv-prev-item > strong { display: block; color: var(--ink-2, inherit); font-size: 18px; font-weight: 700; }
.wv-prev-review .wv-prev-item > strong small { margin-left: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.wv-prev-review .wv-prev-item > p { margin: 4px 0 0; color: var(--ink-2, inherit); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-ds][data-visual-world] #view-teacher .t-review-draft-note { margin: 2px 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; line-height: 1.55; }

/* T5-20：Dot 面板提示老师能看到什么。「带我学」模式把 .avdot-notice 都藏了，这一句要留着 */

/* ═══ 批次 6 · a3 结束 ═══ */

/* ═══ 全站体检批次 6 · 合并（主会话）开始 ═══ */
/* T5-20：Dot 输入框上方「老师能看到什么」的提示，点「知道了」后不再显示 */
#avdot-panel .avdot-teacher-note { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--surface-2, #f2f7fc); color: var(--ink-2, #334767); font-size: 12px; line-height: 1.45; }
#avdot-panel .avdot-teacher-note[hidden] { display: none; }
#avdot-panel .avdot-teacher-note > span { flex: 1; min-width: 0; }
#avdot-panel .avdot-teacher-note-ok { flex: none; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--accent-ink, #0053bd); font-size: 12px; font-weight: 650; cursor: pointer; }
/* ═══ 批次 6 · 合并 结束 ═══ */

/* ═══ 全站体检批次 6 · a4（交作业和 AI 点评拆开）开始：a4 的样式只写在这一段里 ═══ */
/* 提交前的一句：提示，不是错误 */
#view-writing .writing-noai-note { display: block; margin: 2px 0 4px; color: var(--ink-2, inherit); font-weight: 600; font-size: 13.5px; line-height: 1.55; }
/* 交完的提示跟在提交按钮下面 */
#view-writing .writing-noai-done { margin-top: 10px; font-weight: 600; }
/* 没有分数的位置写文字，不用分数徽章的样子 */
#view-writing .writing-history-row .wh-score.muted { white-space: nowrap; }
#view-growth .score-badge.is-writing.is-unscored { color: var(--muted); background: transparent; padding-inline: 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
/* ═══ 批次 6 · a4 结束 ═══ */

/* ═══ 全站体检批次 6 · 首页版式 开始：拼贴（用户选的方案甲），只管电脑、平板（>=768），手机一条都不进 ═══
   结构由 app.js 的 homeBentoHtml() 输出。颜色只用现有变量，没有新动画。 */
@media screen and (min-width: 768px) {
  /* —— 格子间距一致，卡片不定高、不内滚，任务行收紧 —— */
  html[data-visual-world] body #view-today [data-home-bento] { display: grid; gap: 16px !important; min-width: 0; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace {
    grid-area: auto; height: auto; min-height: 0; min-width: 0; box-sizing: border-box; padding: 16px 18px 12px !important;
  }
  html[data-visual-world] body #view-today [data-home-bento] .home-member-quota-head { display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; }
  html[data-visual-world] body #view-today [data-home-bento] .home-member-quota-more { font-size: 0; }
  html[data-visual-world] body #view-today [data-home-bento] .home-member-quota-more > .ic { width: 14px; height: 14px; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today .home-completion { grid-template-columns: auto auto 1fr !important; align-items: end; gap: 8px 18px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today .home-completion .home-refresh-icon-action { grid-column: 3 !important; justify-self: end; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace-head { flex: 0 0 auto; min-height: 44px; margin-bottom: 6px !important; gap: 12px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace-head h2 { font-size: 18px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace-icon { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace [data-home-scroll] {
    display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: visible; padding-right: 0 !important; scrollbar-gutter: auto;
  }
  html[data-visual-world] body #view-today [data-home-bento] :is(.home-review-slot, .home-review-slot .cv-home-rail, .cv-rail-review) { height: 100%; }
  html[data-visual-world] body #view-today [data-home-bento] .home-task-extra { display: none; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace-more { display: inline-flex; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace-foot { margin-top: auto; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace .home-check-row {
    flex: 1 0 auto; gap: 10px !important; padding: 11px 0 !important; min-height: 0 !important;
  }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace :is(.home-check-main, .daily-checkin-main) {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 8px !important;
  }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace :is(.home-check-main, .daily-checkin-main) > :not(.home-task-kind, strong) { grid-column: 1 / -1; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace :is(.home-check-main > small, .dc-explain, .dc-meta) { line-height: 1.5 !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace .task-entry-action { padding: 8px 14px !important; min-width: 56px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-completion .home-refresh-icon-action { min-height: 44px !important; height: 44px !important; }
  /* 主任务和今日数字：拆成独立的格子时，去掉原来「左右两栏 + 分隔线」的排法 */
  html[data-visual-world] body #view-today [data-home-bento] .home-overview-bar {
    grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: none !important; grid-auto-rows: auto; min-width: 0;
  }
  html[data-visual-world] body #view-today [data-home-bento] .home-overview-bar > * { grid-area: auto !important; grid-column: 1 / -1; border-left: 0 !important; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-hero > .learning-journey { padding: 24px 28px 22px !important; gap: 14px !important; justify-content: center; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-hero > .home-practice-resume { padding: 10px 18px 10px 28px !important; align-self: end; }
  html[data-ds][data-visual-world] body #view-today [data-home-bento] .home-overview-bar > :is(.home-completion, .home-member-quota) { background: transparent !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-record-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; margin-top: 8px; padding-top: 4px; }
  html[data-visual-world] body #view-today [data-home-bento] .home-record-links button { padding: 6px 4px !important; font-size: 13px; }
  html[data-visual-world] body #view-today [data-home-bento] .home-records-body > .home-record-links { margin-top: auto; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace-notice .secondary-action { min-height: 44px !important; height: 44px; }
  html[data-visual-world] body #view-today [data-home-bento] .cv-rev-inner { min-height: 112px; }
  html[data-visual-world] body #view-today [data-home-bento] .cv-rev-face { padding: 6px 0; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace .cv-rail-eyebrow { font-size: 18px !important; min-height: 44px; margin: 0 0 6px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace .cv-rail-review { display: flex; flex-direction: column; }
  html[data-visual-world] body #view-today [data-home-bento] .home-workspace .home-review-body { flex: 1 1 auto; justify-content: space-between; }

  /* —— 主任务占两列，今日占一列；下面三列（平板两列）按内容分配，每列最后撑满，四边对齐 —— */
  html[data-visual-world] body #view-today [data-home-bento] .hb-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-hero { grid-column: span 2; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today { grid-template-rows: 1fr auto; align-content: stretch; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today > .home-completion { padding: 18px 20px 12px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today > .home-member-quota { padding: 0 20px 16px !important; background: transparent !important; align-self: end; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-cols {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-areas: none !important;
    align-items: stretch !important; gap: 16px !important; min-width: 0;
  }
  html[data-visual-world] body #view-today [data-home-bento] .hb-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-col > .home-workspace { grid-area: auto; flex: 6 1 auto; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-col > .home-workspace.is-empty {
    flex: 1 1 auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px !important;
  }
  html[data-visual-world] body #view-today [data-home-bento] .is-empty .home-workspace-head { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
  html[data-visual-world] body #view-today [data-home-bento] .is-empty .home-workspace-head .icon-button { display: none; }
  html[data-visual-world] body #view-today [data-home-bento] .is-empty [data-home-scroll] { flex: 0 0 auto; }
  html[data-visual-world] body #view-today [data-home-bento] .is-empty .home-workspace-empty { min-height: 0; padding: 0; border: 0 !important; display: block; flex: none; }
  html[data-visual-world] body #view-today [data-home-bento] .is-empty:not(.is-syncing) .home-workspace-empty p { display: none; }


}
/* 横屏平板起三列、竖屏平板两列 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  html[data-visual-world] body #view-today [data-home-bento] .hb-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-items: center; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today > * { grid-column: auto !important; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-today > .home-member-quota { padding: 12px 18px !important; }
  html[data-visual-world] body #view-today [data-home-bento] .hb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* ═══ 批次 6 · 首页版式 结束 ═══ */

/* 批次 5、6 线上验证修复：平板头部「班级」折到第二行时，不留行首竖线 */
@media (min-width: 768px) and (max-width: 1023px) {
  /* aivia-ds.css 这里写了 inline-block !important，选择器要一样重 */
  html[data-ds][data-visual-world] #appShell #workspaceLevel .workspace-class-context::before { display: none !important; }
}

/* Dot 卡点提升（11-24）：每条问题下的建议、班里共性问题卡片 */
.t-sx-finding .t-sx-advice { display: block; margin-top: 4px; color: var(--ink-soft, #4b5563); line-height: 1.5; }
.t-dot-common .t-dot-common-list { margin-top: 6px; }
.t-dot-common .t-sx-finding + .t-sx-finding { margin-top: 10px; }
.t-dot-common .t-sx-foot { margin-top: 10px; }

/* ═══ 写作批阅 · C 开始 ═══ */
/* 写作批阅（11-24）：作文逐处批改（学生提交后、作文回看、老师批改页）+ 学生「写作提醒」（writing-lessons.js 画，app.js 留位置）。
   颜色按大类统一：动词 / 名词 / 介词搭配用词 / 词性比较 / 句子 / 拼写 / 标点 七个色，深色模式各有一套。 */
:root {
  --wl-verb: #c2410c; --wl-noun: #7c3aed; --wl-link: #0369a1; --wl-form: #0f766e; --wl-sent: #a16207; --wl-spell: #be185d; --wl-punct: #52606d;
}
html.cv-dark {
  --wl-verb: #fb923c; --wl-noun: #c4b5fd; --wl-link: #7dd3fc; --wl-form: #5eead4; --wl-sent: #fcd34d; --wl-spell: #f9a8d4; --wl-punct: #cbd5e1;
}
.wl-f-verb { --wl-c: var(--wl-verb); } .wl-f-noun { --wl-c: var(--wl-noun); } .wl-f-link { --wl-c: var(--wl-link); } .wl-f-form { --wl-c: var(--wl-form); }
.wl-f-sent { --wl-c: var(--wl-sent); } .wl-f-spell { --wl-c: var(--wl-spell); } .wl-f-punct { --wl-c: var(--wl-punct); }
.wl-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wl-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wl-c, var(--muted)); }

/* ── 点评里的「逐处批改」 ── */
.wl-review { display: grid; gap: 12px; min-width: 0; margin: 4px 0; }
.wl-review > .eyebrow { margin: 0; }
.wl-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.wl-sum strong { font-weight: 700; }
.wl-sum-sep { color: var(--muted); }
.wl-sum-c { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.wl-sum.is-clean { gap: 8px; color: var(--green-ink); font-weight: 650; }
.wl-sum.is-clean .ic { width: 18px; height: 18px; }
.wl-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--muted); white-space: normal; font-family: var(--ds-sans, inherit); }
.wl-review > .wl-hint { margin: 0; }
.wl-hint .ic { width: 14px; height: 14px; }
/* 原文：提交后的点评里自己带一个框；回看和老师批改页放在原来的作文框里 */
.wl-essay { position: relative; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; -webkit-user-select: text; user-select: text; }
.wl-review > .wl-essay { padding: 14px 16px; font-size: 15.5px; line-height: 1.85; color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm, 10px); }
:is(.wv-essay-text, .writing-read-text) > .wl-essay { line-height: 1.85; }
.wl-mk {
  padding: 1px 1px 0; border-radius: 3px 3px 0 0; color: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--wl-c) 13%, transparent); box-shadow: inset 0 -2px 0 var(--wl-c);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; -webkit-tap-highlight-color: transparent;
}
.wl-mk:hover, .wl-mk.is-on { background: color-mix(in srgb, var(--wl-c) 26%, transparent); }
.wl-mk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wl-pop {
  position: absolute; z-index: 30; box-sizing: border-box; display: grid; gap: 10px; padding: 12px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 12px 32px rgb(15 25 48 / 18%); white-space: normal; font-family: var(--ds-sans, inherit); font-size: 14px; line-height: 1.55;
}
html.cv-dark .wl-pop { box-shadow: 0 12px 32px rgb(0 0 0 / 45%); }
.wl-pop-row { display: grid; gap: 4px; min-width: 0; }
.wl-pop-row + .wl-pop-row { padding-top: 10px; border-top: 1px solid var(--hairline-soft); }
.wl-pop-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.wl-pop-fix b { color: var(--green-ink); font-weight: 700; font-size: 15px; }
.wl-pop-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--wl-c); background: color-mix(in srgb, var(--wl-c) 12%, transparent); }
.wl-pop-why { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.wl-pop-dot { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin: 2px 0 -4px; border: 1px solid var(--hairline); border-radius: 999px; background: transparent; color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.wl-pop-dot:hover { background: var(--accent-soft-2, var(--accent-soft)); }
/* 分组列表 */
.wl-groups { display: grid; gap: 14px; min-width: 0; }
.wl-group { min-width: 0; }
.wl-gh { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.wl-gh small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.wl-better .wl-gh .ic { width: 16px; height: 16px; color: var(--accent-ink); }
.wl-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.wl-item { display: grid; gap: 3px; min-width: 0; padding: 9px 0 9px 16px; border-top: 1px solid var(--hairline-soft); }
.wl-list:first-of-type > .wl-item:first-child { border-top: 0; }
.wl-fix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.wl-fix s { color: var(--muted); text-decoration-color: color-mix(in srgb, var(--red-ink, #b22a20) 70%, transparent); }
.wl-fix b { color: var(--green-ink); font-weight: 700; }
.wl-arrow { color: var(--muted); }
.wl-why { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.wl-prior { justify-self: start; margin: 2px 0 0; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--amber-ink); background: var(--amber-soft); }
.wl-more > summary {
  display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 0 0 16px; list-style: none; cursor: pointer;
  color: var(--accent-ink); font-size: 14px; font-weight: 650;
}
.wl-more > summary::-webkit-details-marker { display: none; }
.wl-chev { width: 16px; height: 16px; transition: transform .18s ease; }
.wl-more[open] > summary .wl-chev, .wl-fixed[open] > summary .wl-chev { transform: rotate(90deg); }
.wl-more[open] > summary { min-height: 36px; }
@media (prefers-reduced-motion: reduce) { .wl-chev { transition: none; } }
html.cv-reduce-motion .wl-chev { transition: none; }

/* ── 写作页：「写作提醒 N」入口（和「历史作文 ›」同一种文字入口） ── */
html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .wl-entry.lp-seg-side {
  order: 2; flex: none; display: inline-flex !important; align-items: center !important; gap: 4px !important; align-self: center !important;
  min-height: 44px !important; margin: 0 0 0 auto !important; padding: 0 6px 0 12px !important; border: 0 !important; border-radius: 999px !important;
  background: transparent !important; box-shadow: none !important; color: var(--accent-ink) !important; font-size: 14px !important; font-weight: 650 !important; white-space: nowrap !important; text-decoration: none !important;
}
html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .wl-entry.lp-seg-side[hidden] { display: none !important; }
html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar > .wl-entry:not([hidden]) + .writing-history-jump.lp-seg-side { margin-left: 0 !important; }
.wl-entry .ic { width: 16px; height: 16px; }
.wl-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12px; font-weight: 700; line-height: 1; }
@media (min-width: 768px) {
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body #appShell #view-writing .writing-mode-toolbar > .wl-entry.lp-seg-side { position: relative; isolation: isolate; }
  html[data-ds][data-visual-world]:not([data-ds-skin="minimal"]) body #appShell #view-writing .writing-mode-toolbar > .wl-entry.lp-seg-side::before {
    content: ""; position: absolute; z-index: -1; inset: 6px 0; border-radius: 14px; pointer-events: none;
    background: color-mix(in srgb, var(--ds-canvas, var(--bg)) 88%, transparent); filter: blur(8px);
  }
}
/* 手机、平板（平板右侧有卡片，左栏窄）：分段条占满一行，「写作提醒」「历史作文」放第二行两头 */
@media (max-width: 1179px) {
  html[data-visual-world] body #appShell #view-writing .writing-mode-toolbar.wl-on { flex-wrap: wrap !important; row-gap: 0 !important; }
  html[data-visual-world] body #appShell #view-writing .writing-mode-toolbar.wl-on > .writing-mode-tabs { flex: 1 1 100% !important; }
  html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar.wl-on > .wl-entry.lp-seg-side { margin: 0 !important; padding: 0 6px 0 4px !important; font-size: 13px !important; }
  html[data-ds][data-visual-world] body #appShell #view-writing .writing-mode-toolbar.wl-on > .writing-history-jump.lp-seg-side { margin-left: auto !important; }
}

/* 手机外壳：这行压在景上，字后面垫一片和底色同色的柔光（照 mobile-wallpaper.css 给「历史作文」的做法） */
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #view-writing .wl-entry { position: relative; isolation: isolate; }
html[data-ds]:not([data-ds-skin="minimal"]) body.cv-mshell #view-writing .wl-entry::before {
  content: ""; position: absolute; z-index: -1; inset: -4px -10px; border-radius: 14px; pointer-events: none;
  background: color-mix(in srgb, var(--msh-veil-c) 92%, transparent); filter: blur(7px);
}

/* ── 开写前提示（编辑框上方，可收起） ── */
.wl-tip { min-width: 0; margin: 0 0 10px; border: 1px solid color-mix(in srgb, var(--amber-ink, #8f5b00) 22%, transparent); border-radius: 12px; background: var(--amber-soft); color: var(--ink); }
.wl-tip[hidden] { display: none !important; }
.wl-tip-fold {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent;
  color: var(--amber-ink); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer;
}
.wl-tip-fold > span { flex: 1 1 auto; min-width: 0; }
.wl-tip-fold em { font-style: normal; font-size: 13px; font-weight: 600; }
.wl-tip-fold .ic { width: 16px; height: 16px; flex: none; }
.wl-tip-fold .wl-chev { transition: transform .18s ease; }
.wl-tip-fold[aria-expanded="true"] .wl-chev { transform: rotate(180deg); }
.wl-tip-list { display: grid; gap: 6px; margin: 0; padding: 0 14px 12px; list-style: none; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.wl-tip-list li, .wl-before li { display: flex; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.wl-tip-list strong { color: var(--ink); }
.wl-num { flex: none; color: var(--amber-ink); font-weight: 700; }

/* ── 电脑、平板：写作页右侧卡片（手机不出，手机走入口 + 全屏面板） ── */
html[data-visual-world] body #appShell #view-writing .wl-card[hidden] { display: none !important; }
@media (max-width: 767px) { html[data-visual-world] body #appShell #view-writing .wl-card { display: none !important; } }
@media (min-width: 768px) {
  html[data-visual-world] body #appShell #view-writing .writing-grid.wl-has-card {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 260px !important; grid-template-rows: auto auto !important; grid-auto-rows: auto !important;
    column-gap: 20px !important; row-gap: 0 !important; align-items: start !important; width: min(100%, 1420px); margin: 0 auto;
  }
  html[data-visual-world] body #appShell #view-writing .writing-grid.wl-has-card > .writing-flow-shell { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
  html[data-visual-world] body #appShell #view-writing .writing-grid.wl-has-card > .writing-history-card { grid-column: 1; grid-row: 2; width: 100%; margin: 0 0 12px; }
  html[data-visual-world] body #appShell #view-writing .writing-grid.wl-has-card > .wl-card { grid-column: 2; grid-row: 1 / span 2; align-self: start !important; height: auto !important; position: sticky; top: 16px; }
}
@media (min-width: 1180px) {
  html[data-visual-world] body #appShell #view-writing .writing-grid.wl-has-card { grid-template-columns: minmax(0, 1fr) 300px !important; column-gap: 24px !important; }
}
html[data-visual-world] body #appShell #view-writing .wl-card {
  display: grid; gap: 12px; min-width: 0; margin: 0; padding: 16px !important; border: 1px solid var(--hairline-soft) !important; border-radius: 14px !important;
  background: var(--ds-card, var(--surface)) !important; box-shadow: none !important;
}
.wl-card-head .eyebrow { margin: 0 0 2px; }
.wl-card-head h3 { margin: 0; font-size: 17px; line-height: 1.35; color: var(--ink); }
.wl-card-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wl-card-list li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.wl-card-list li > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.wl-card-list strong { font-size: 14.5px; color: var(--ink); }
.wl-card-list span { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
html[data-visual-world] body #appShell #view-writing .wl-card .wl-card-all { width: 100% !important; min-height: 44px; justify-content: center; gap: 4px; }

/* ── 成长档案：「单词：难词 N 个｜写作：提醒 M 条」 ── */
.wl-growth { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 12px; padding: 4px 6px; border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--ds-card, var(--surface)); }
.wl-growth[hidden] { display: none !important; }
.wl-growth-go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.wl-growth-go span { color: var(--muted); }
.wl-growth-go strong { font-weight: 700; color: var(--accent-ink); }
.wl-growth-go .ic { width: 16px; height: 16px; color: var(--muted); }
.wl-growth-go:hover { background: var(--accent-soft-2, var(--accent-soft)); }
.wl-growth-sep { color: var(--hairline); }
@media (max-width: 420px) { .wl-growth-sep { display: none; } .wl-growth-go { flex: 1 1 100%; justify-content: flex-start; } }
@media print { .wl-growth { display: none !important; } }

/* ── 写作提醒面板：电脑、平板居中 640px；手机全屏 ── */
dialog.wl-panel {
  width: min(640px, calc(100vw - 32px)); max-width: none; max-height: min(820px, calc(100dvh - 32px)); margin: auto; padding: 0;
  display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden;
  background: var(--surface, #fff); color: var(--ink, #16233f); font-family: var(--ds-sans, inherit); font-size: 15px; line-height: 1.55;
  box-shadow: 0 24px 64px rgb(15 25 48 / 22%);
}
dialog.wl-panel:not([open]) { display: none; }
dialog.wl-panel::backdrop { background: rgb(12 18 32 / 42%); }
html.wl-panel-open, html.wl-panel-open body { overflow: hidden; }
.wl-panel-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 14px 12px 22px; border-bottom: 1px solid var(--hairline-soft); }
.wl-panel-head > div { flex: 1 1 auto; min-width: 0; }
.wl-panel-head h2 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.wl-panel-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
dialog.wl-panel .wl-x { position: static !important; flex: none; width: 44px; height: 44px; display: grid; place-items: center; margin: -6px 0 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
dialog.wl-panel .wl-x:hover { background: var(--surface-2); color: var(--ink); }
.wl-panel-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 18px; padding: 16px 22px 24px; }
.wl-before { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); }
.wl-before h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; color: var(--amber-ink); }
.wl-before h3 .ic { width: 16px; height: 16px; }
.wl-before ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
.wl-before li > span:last-child { display: grid; gap: 1px; min-width: 0; }
.wl-before strong { color: var(--ink); }
.wl-before em { font-style: normal; color: var(--ink-2); }
.wl-cat { display: grid; gap: 10px; min-width: 0; }
.wl-cat > h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; color: var(--ink); }
.wl-cat > h3 small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.wl-lesson { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--surface); }
.wl-lesson-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wl-lesson h4 { margin: 0; font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }
.wl-rule { margin: 0; font-size: 14px; color: var(--ink-2); }
.wl-ex { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.wl-ex-s { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.wl-ex-mk { padding: 0 1px; border-radius: 3px; color: inherit; background: color-mix(in srgb, var(--red-ink, #b22a20) 14%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--red-ink, #b22a20) 70%, transparent); }
.wl-ex-fix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: 14.5px; }
.wl-ex-fix b { color: var(--green-ink); }
.wl-ex-fix small { font-size: 12px; color: var(--muted); }
.wl-meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.wl-lesson .wl-more > summary { padding-left: 0; }
.wl-lesson .wl-more .wl-ex + .wl-ex { margin-top: 6px; }
.wl-fixed > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 44px; list-style: none; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 650; }
.wl-fixed > summary::-webkit-details-marker { display: none; }
.wl-fixed > summary small { font-weight: 500; font-size: 12.5px; }
.wl-fixed > summary .wl-chev { order: -1; }
.wl-fixed .wl-lesson + .wl-lesson, .wl-fixed > summary + .wl-lesson { margin-top: 8px; }
.wl-lesson.is-fixed { opacity: .72; background: var(--surface-2); }
.wl-lesson.is-fixed h4, .wl-lesson.is-fixed .wl-rule { color: var(--muted); }
.wl-fixed-tag { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--green-ink); background: var(--green-soft); }
.wl-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 12px; text-align: center; color: var(--ink-2); }
.wl-empty .ic { width: 28px; height: 28px; color: var(--green-ink); }
.wl-empty p { margin: 0; max-width: 340px; }
.wl-empty.is-small { padding: 12px; }
@media (max-width: 767px) {
  dialog.wl-panel { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .wl-panel-head { padding: calc(12px + env(safe-area-inset-top, 0px)) 8px 10px 16px; }
  .wl-panel-body { padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
}
/* ═══ 写作批阅 · C 结束 ═══ */
/* ═══ 小修-20261125 · 作文回看「补一次 AI 点评」（app.js writingBackfillSectionHtml） ═══
   电脑、平板在「AI 初评与建议」那一格（.wv-desktop-blocks 里），手机在老师评价下面（.wv-mobile-top 里）；两处同时在页面里，按宽度只露一处。
   按钮是普通次按钮：ultimate.css 给按钮下了 !important，宽度要带 !important；styles.css 460px 以下会塞 width:100%，这里改回 auto。 */
.writing-viewer-card .wv-backfill { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.writing-viewer-card .wv-backfill > .eyebrow { margin: 0; }
.writing-viewer-card .wv-backfill-lead { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.writing-viewer-card .wv-backfill [data-wv-backfill-go] { width: auto !important; max-width: 100%; min-height: 44px; }
.writing-viewer-card .wv-backfill [data-wv-backfill-go][aria-busy="true"] { cursor: progress; opacity: .78; }
.writing-viewer-card .wv-backfill [data-wv-backfill-note] { color: var(--muted); font-size: 13px; line-height: 1.5; }
.writing-viewer-card .wv-backfill-msg { margin: 0; color: var(--amber-ink); font-size: 13.5px; line-height: 1.55; }
.writing-viewer-card .wv-backfill-msg[hidden] { display: none; }
/* 补好后焦点放到 AI 点评那一格（tabindex="-1"，只为读屏从这里读）：和标题程序聚焦一样不画框（refine.css「标题程序聚焦不画焦点框」） */
.writing-viewer-card [data-wv-ai-block]:is(:focus, :focus-visible),
html[data-visual-world] .writing-viewer-card [data-wv-ai-block]:is(:focus, :focus-visible) { outline: none !important; box-shadow: none !important; }
@media (max-width: 768px) {
  .writing-viewer-card .wv-mobile-top .wv-backfill { margin-top: 12px; padding: 14px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); }
}
/* ═══ 小修-20261125 · 补一次 AI 点评 结束 ═══ */

/* ==== button-feel.css ==== */
/* ═══════════════════════════════════════════════════════════════════════════════════════
   小修-20261125 按键质感 · 方案甲「釉面实体」定稿（用户 11-25 选定）
   ───────────────────────────────────────────────────────────────────────────────────────
   思路：按钮像一枚做工好的实体键——光从上面来。
     · 主按钮：原来的纯色底上叠一层很淡的上亮下暗（白 13% → 0），顶边 1px 高光、底边 1px 暗线，
       下面一道又短又紧的中性阴影（不是彩色光晕，不发光）。
     · 次按钮 / 图标按钮 / 选择题选项 / 阅读馆选项 / 拼写字母块 / 手机首页图标方块：白面 + 细边线，
       底边线略深一档（像键帽的下沿），顶边 1px 内高光，1–2px 的轻阴影。
     · 按下：往下沉 1px（translateY，不缩放——缩放会让小字发虚、整行文字抖动），阴影收进来变成内阴影，
       底色暗一档。按下 50ms 到位，松开 180ms 回来（不过冲）。
     · 悬停（只在有鼠标的电脑上）：阴影稍微放开一点，颜色深一档；不上浮、不发光。
     · 列表行、作业卡片这类「整块可点」：不做立体，按下只换浅色底，不移动。
   八种状态（定稿补齐）：平时 / 悬停 / 按下 / 键盘聚焦 / 禁用 / 加载中 / 选中（分段条）/ 答对答错（不碰，沿用原来的）。
     · 禁用：灰底灰字（不是半透明）——禁用按钮上常写着原因（如「还差 3 个词没学」），半透明后孩子看不清；
       鼠标变「不可点」；只认原生 disabled 和 aria-disabled="true" 两种属性，不认类名，保证看着不可点 = 读屏也知道不可点。
     · 加载中（aria-busy="true"）：保持原来的颜色、只稍淡一点（.88，白字在七套皮肤上都 ≥ 4.5:1），字看得清；鼠标变「转圈」；不响应按下。
       作文回看「补一次 AI 点评」按钮留够宽度，变成「AI 正在看你的作文…」时不跳宽。
     · 键盘聚焦：2px 主题色外框，立刻出现（过渡里不含 outline），和旁边底色的对比度 ≥ 3:1（七套皮肤 × 深浅色都算过）。
   覆盖：主 / 次 / 图标 / 入口小胶囊 / 文字按钮 / 选择题选项 / 整块可点的卡片 / 分段条 / 侧栏和底栏导航 /
         手机首页按钮和图标方块 / Dot 浮钮 / 录音键（「跟读一遍」「录音」「读这一句」都是主 / 次按钮）/
         作文回看「补一次 AI 点评」/ 阅读馆的选项、小图标钮、筛选胶囊 / 拼写字母块 / 帮助与反馈面板的提交和次按钮。
   用法：放在 index.html 里 ui-sweep.css 后面一行（所有首屏样式表之后）：
         <link rel="stylesheet" href="button-feel.css?v=<版本号>" />
         只靠这一个文件生效，不改 HTML / JS。拿掉这一行就回到原样。
   依赖：iOS Safari 要页面上有 touchstart 监听才会给按钮加 :active（手机按下的样式靠它）。
         这一行由体验组加在 app.js（document.addEventListener('touchstart', …, { passive: true })）；没有它，
         iPhone 上按下时既没有系统灰块（本文件关掉了）也可能没有本文件的按下样式。合并时两样要一起上。
   进页面才加载的样式表（spelling.css、help-feedback.css、admin-help-feedback.css、admin-question-feedback.css）
         排在本文件后面；2026-11-25 逐个核过，它们没有能盖过本文件的按钮规则（见 方案说明.md「甲定稿」）。
   页头的主题切换、菜单、搜索钮（#appShell .topbar 里那几个）是 aivia-ds.css 用 ID 刻意拍平的，和搜索框一组，这里不改。

   写法约定（AGENTS.md 第 8 条）：
     · ultimate.css / aivia-ds.css 给按钮下了 !important，这里要盖过去也带 !important，
       并用前缀 P = html[data-ds][data-visual-world][data-ds-skin] body（0,3,2）压过 aivia-ds.css 的 (0,2,1) 起步；
       阅读馆的规则带 #view-library，这里对应的选择器也带上它。
     · 不改 width（styles.css 在 ≤460px 给 .primary-action / .secondary-action 塞了 width:100%，这里不碰）；
       只给「补一次 AI 点评」加了 min-width。
     · 不给 .view / .view.active 加任何 transform 或动画。
     · 颜色全部走现有变量（--academy-action、--surface、--hairline、--ink、--accent…），
       所以七套皮肤（学院 / 图书馆 / 银杏 / 海边 / 天文台 / 童趣 / 极简）× 深浅色都跟着走，不写死蓝色。
     · 高光和按下变暗用「叠在底色上的一层渐变」（background-image），不换底色，
       所以红色的危险按钮、朗读页金色的「练弱项」按钮这些自带底色的按钮也照样有质感，不会被刷成蓝色。
     · 答题对错（.correct / .wrong、阅读馆 .is-right / .is-wrong / .is-on）、答题动效（.cv-fx-*）不碰。
   性能：只在按钮自己身上过渡 transform / box-shadow / 底色；没有 backdrop-filter，没有循环动画。
   减少动效（站内 html.cv-reduce-motion 或系统 prefers-reduced-motion）：不移动，只换颜色和阴影，而且瞬间切换。
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ── 0. 变量 ─────────────────────────────────────────────────────────────────────────── */
html[data-ds][data-visual-world][data-ds-skin] {
  --bf-ease: cubic-bezier(.2, .7, .2, 1);
  --bf-in: 50ms;                       /* 按下到位 */
  --bf-out: 180ms;                     /* 松开回来 */
  /* 主按钮：叠在底色上的高光 / 按下的暗层 */
  --bf-p-sheen: linear-gradient(180deg, rgb(255 255 255 / .13) 0%, rgb(255 255 255 / .04) 55%, rgb(255 255 255 / 0) 100%);
  --bf-p-sheen-hover: linear-gradient(180deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / .05) 55%, rgb(255 255 255 / 0) 100%);
  --bf-p-press: linear-gradient(180deg, rgb(0 0 0 / .14) 0%, rgb(0 0 0 / .06) 100%);
  --bf-p-shadow: inset 0 1px 0 rgb(255 255 255 / .20), inset 0 -1px 0 rgb(0 0 0 / .18), 0 1px 1px rgb(16 24 40 / .10), 0 2px 6px -2px rgb(16 24 40 / .26);
  --bf-p-shadow-hover: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .18), 0 1px 2px rgb(16 24 40 / .12), 0 4px 12px -4px rgb(16 24 40 / .32);
  --bf-p-shadow-press: inset 0 1px 3px rgb(0 0 0 / .30), inset 0 0 0 1px rgb(0 0 0 / .06), 0 0 0 rgb(16 24 40 / 0);
  /* 次按钮 / 键帽：白面 + 细边，底边略深 */
  --bf-k-edge: color-mix(in srgb, var(--hairline) 77%, var(--ink));
  --bf-k-sheen: linear-gradient(180deg, rgb(255 255 255 / 0) 50%, color-mix(in srgb, var(--ink) 3%, transparent) 100%);
  --bf-k-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 2px rgb(16 24 40 / .07);
  --bf-k-shadow-hover: inset 0 1px 0 rgb(255 255 255 / .9), 0 2px 6px -2px rgb(16 24 40 / .14);
  --bf-k-press: linear-gradient(180deg, color-mix(in srgb, var(--ink) 7%, transparent), color-mix(in srgb, var(--ink) 3%, transparent));
  --bf-k-shadow-press: inset 0 1px 2px rgb(16 24 40 / .12), 0 0 0 rgb(16 24 40 / 0);
  /* 文字按钮、导航、整块卡片按下时的浅色层 */
  --bf-tint: linear-gradient(color-mix(in srgb, var(--accent) 11%, transparent), color-mix(in srgb, var(--accent) 11%, transparent));
  --bf-tint-soft: linear-gradient(color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  /* 禁用：灰底灰字（字和底的对比度 ≥ 4.5:1，七套皮肤都算过）；键盘聚焦框颜色 */
  --bf-dis-bg: color-mix(in srgb, var(--ink) 7%, var(--surface));
  --bf-dis-edge: color-mix(in srgb, var(--ink) 10%, var(--surface));
  --bf-dis-ink: var(--muted);
  --bf-focus: var(--accent);
}
html[data-ds][data-visual-world][data-ds-skin].cv-dark {
  /* 深色：高光更弱、阴影改成纯黑更重一点（深底上浅阴影看不见），键帽顶边只留很淡的亮线 */
  --bf-p-sheen: linear-gradient(180deg, rgb(255 255 255 / .10) 0%, rgb(255 255 255 / .03) 55%, rgb(255 255 255 / 0) 100%);
  --bf-p-sheen-hover: linear-gradient(180deg, rgb(255 255 255 / .13) 0%, rgb(255 255 255 / .04) 55%, rgb(255 255 255 / 0) 100%);
  --bf-p-press: linear-gradient(180deg, rgb(0 0 0 / .20) 0%, rgb(0 0 0 / .10) 100%);
  --bf-p-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -1px 0 rgb(0 0 0 / .25), 0 1px 1px rgb(0 0 0 / .35), 0 2px 6px -2px rgb(0 0 0 / .55);
  --bf-p-shadow-hover: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 -1px 0 rgb(0 0 0 / .25), 0 1px 2px rgb(0 0 0 / .40), 0 4px 12px -4px rgb(0 0 0 / .60);
  --bf-p-shadow-press: inset 0 1px 3px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(0 0 0 / .10), 0 0 0 rgb(0 0 0 / 0);
  --bf-k-edge: color-mix(in srgb, var(--hairline) 70%, #000);
  --bf-k-sheen: linear-gradient(180deg, rgb(255 255 255 / .035) 0%, rgb(255 255 255 / 0) 60%);
  --bf-k-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 1px 2px rgb(0 0 0 / .30);
  --bf-k-shadow-hover: inset 0 1px 0 rgb(255 255 255 / .07), 0 2px 6px -2px rgb(0 0 0 / .45);
  --bf-k-press: linear-gradient(180deg, rgb(0 0 0 / .18), rgb(0 0 0 / .08));
  --bf-k-shadow-press: inset 0 1px 2px rgb(0 0 0 / .40), 0 0 0 rgb(0 0 0 / 0);
  --bf-tint: linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
  --bf-tint-soft: linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
  --bf-dis-bg: color-mix(in srgb, var(--ink) 8%, var(--surface));
  --bf-dis-edge: color-mix(in srgb, var(--ink) 12%, var(--surface));
}

/* ── 1. 手机：去掉系统的方块点按高亮（安卓是半透明蓝块、iOS 是灰块，不跟圆角走），
       换成下面每类按钮自己的按下样式。只对这里列到、并且有按下样式的按钮去掉。 ── */
html[data-ds][data-visual-world][data-ds-skin] body :is(
  .primary-action, .secondary-action, .pill-button, .icon-button, .text-button, .link-button, .quota-link,
  .cv-wc-next, .cv-wc-say, .cv-wc-know, .cv-wc-tool, .home-main-cta, .task-entry-action, .cv-rev-btn,
  .option, .wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .nav-item,
  .msh-btn, .msh-titem, .msh-mod, .msh-selfbtn, .msh-fab, .avdot-avatar,
  .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .upload-drop, .listen-mode-card, .book-audio-play,
  .lib-opt, .lib-icon-btn, .lib-seg button, .spell-tile, .hf-submit, .hf-secondary
) { -webkit-tap-highlight-color: transparent; }

/* ── 2. 主按钮（实色）：叠高光 + 紧阴影；按下下沉 1px ─────────────────────────────────── */
/* [class][class]：refine.css 约 5664 行用 body:not(…)×4 .primary-action:not(…)（0,6,1）把学习卡以外页面的主按钮阴影清掉了，
   这里抬到 0,6,2 才盖得过；禁用（第 10 节）、加载中（第 11 节）同样抬高并排在后面。 */
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn)[class][class] {
  background-image: var(--bf-p-sheen) !important;
  box-shadow: var(--bf-p-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease), color var(--bf-out) var(--bf-ease) !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover {
    background-image: var(--bf-p-sheen-hover) !important; box-shadow: var(--bf-p-shadow-hover) !important;
  }
}
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active {
  transform: translateY(1px) !important; filter: none !important;
  background-image: var(--bf-p-press) !important; box-shadow: var(--bf-p-shadow-press) !important;
  transition-duration: var(--bf-in) !important;
}

/* ── 3. 次按钮 / 药丸按钮 / 图标按钮 / 单词卡「我会了」/ 补一次 AI 点评：白面键帽 ─────────── */
html[data-ds][data-visual-world][data-ds-skin] body :is(.secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool) {
  background-image: var(--bf-k-sheen) !important;
  border-bottom-color: var(--bf-k-edge) !important;
  box-shadow: var(--bf-k-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), border-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease), color var(--bf-out) var(--bf-ease) !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world][data-ds-skin] body :is(.secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover {
    box-shadow: var(--bf-k-shadow-hover) !important; border-bottom-color: color-mix(in srgb, var(--accent-edge) 70%, var(--ink)) !important;
  }
}
html[data-ds][data-visual-world][data-ds-skin] body :is(.secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active {
  transform: translateY(1px) !important;
  background-image: var(--bf-k-press) !important; box-shadow: var(--bf-k-shadow-press) !important;
  border-bottom-color: var(--hairline) !important;
  transition-duration: var(--bf-in) !important;
}
/* 首页模块标题右边那种透明小箭头（.icon-button 但没有底和边）：不做键帽，按下只出一个浅色圆 */
html[data-ds][data-visual-world][data-ds-skin] body .home-workspace-head .icon-button, html[data-ds][data-visual-world][data-ds-skin] body .home-workspace-head .icon-button:not(:disabled):hover { background-image: none !important; box-shadow: none !important; }
html[data-ds][data-visual-world][data-ds-skin] body .home-workspace-head .icon-button:not(:disabled):active { background-image: var(--bf-tint) !important; box-shadow: none !important; transform: none !important; }
/* 作文回看「补一次 AI 点评」（ui-sweep.css 小修-20261125 那段）：留够「AI 正在看你的作文…」的宽度，加载时不跳宽 */
html[data-ds][data-visual-world][data-ds-skin] body .writing-viewer-card [data-wv-backfill-go] { min-width: 12.5em; justify-content: center; text-align: center; }

/* ── 3b. 帮助与反馈面板（help-feedback.css 进面板才加载、排在本文件后面；按钮是它自己的类名 .hf-submit / .hf-secondary）：
       套上同样的高光、键帽和下沉。它们的禁用（「正在提交…」时 disabled）沿用 help-feedback.css 原样，这里不改。 ── */
html[data-ds][data-visual-world][data-ds-skin] body .hf-dialog .hf-submit:not(:disabled) {
  background-image: var(--bf-p-sheen) !important; box-shadow: var(--bf-p-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .hf-dialog .hf-secondary:not(:disabled) {
  background-image: var(--bf-k-sheen) !important; border-bottom-color: var(--bf-k-edge) !important; box-shadow: var(--bf-k-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), border-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .hf-dialog .hf-submit:not(:disabled):active {
  transform: translateY(1px) !important; background-image: var(--bf-p-press) !important; box-shadow: var(--bf-p-shadow-press) !important; transition-duration: var(--bf-in) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .hf-dialog .hf-secondary:not(:disabled):active {
  transform: translateY(1px) !important; background-image: var(--bf-k-press) !important; box-shadow: var(--bf-k-shadow-press) !important; border-bottom-color: var(--hairline) !important; transition-duration: var(--bf-in) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .hf-dialog :is(.hf-submit, .hf-secondary):focus-visible {
  outline: 2px solid var(--bf-focus) !important; outline-offset: 2px !important;
  transition-property: background-color, border-color, box-shadow, transform !important;
}

/* ── 4. 入口小胶囊（作业行的「开始 / 继续 / 回看」、快速过一词的「进入训练 / 换一个」） ── */
html[data-ds][data-visual-world][data-ds-skin] body :is(.task-entry-action, .cv-rev-btn) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 1px 1px rgb(16 24 40 / .06) !important;
  transition: background-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease), color var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin].cv-dark body :is(.task-entry-action, .cv-rev-btn) { box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 1px 1px rgb(0 0 0 / .30) !important; }
html[data-ds][data-visual-world][data-ds-skin] body :is(.task-entry-action, .cv-rev-btn):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active {
  transform: translateY(1px) !important;
  background-image: var(--bf-k-press) !important; box-shadow: var(--bf-k-shadow-press) !important;
  transition-duration: var(--bf-in) !important;
}

/* ── 5. 文字按钮 / 链接按钮 / 「查看额度」：不立体，按下出一块圆角浅色底 ─────────────────── */
html[data-ds][data-visual-world][data-ds-skin] body :is(.text-button, .link-button, .quota-link) {
  transition: background-color var(--bf-out) var(--bf-ease), color var(--bf-out) var(--bf-ease) !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world][data-ds-skin] body :is(.text-button, .quota-link):not(:disabled):not([aria-disabled="true"]):hover { background-image: var(--bf-tint-soft) !important; }
}
html[data-ds][data-visual-world][data-ds-skin] body :is(.text-button, .link-button, .quota-link):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):active {
  background-image: var(--bf-tint) !important; transform: none !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .link-button:not(:disabled):active { border-radius: 6px; }

/* ── 6. 选择题选项（练习、测验、Starters 图片题）：白面键帽，按下下沉并染上主题浅色 ─────────
   对错颜色、答题动效类、禁用（答完以后锁住）都排除在外；原来悬停时往右挪 3px 的效果去掉（看着像晃了一下）。
   答完以后选项是 disabled：这是「锁住」不是「不能用」，不套第 10 节的灰底灰字，对错颜色照原样。 */
html[data-ds][data-visual-world][data-ds-skin] body .option:not(.correct):not(.wrong):not(.cv-fx-ok):not(.cv-fx-key):not(.cv-fx-bad):not(.cv-fx-from) {
  border-bottom-color: var(--bf-k-edge) !important;
  box-shadow: var(--bf-k-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), border-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .option:hover { transform: none !important; }
@media (hover: hover) and (pointer: fine) {
  html[data-ds][data-visual-world][data-ds-skin] body .option:not(:disabled):not(.correct):not(.wrong):not(.cv-fx-ok):not(.cv-fx-key):not(.cv-fx-bad):not(.cv-fx-from):hover {
    border-color: var(--accent-edge) !important; background-color: var(--accent-soft-2) !important; box-shadow: var(--bf-k-shadow-hover) !important;
  }
}
html[data-ds][data-visual-world][data-ds-skin] body .option:not(:disabled):not(.correct):not(.wrong):not(.cv-fx-ok):not(.cv-fx-key):not(.cv-fx-bad):not(.cv-fx-from):active {
  transform: translateY(1px) !important;
  background-color: var(--accent-soft) !important; border-color: var(--accent-edge) !important; border-bottom-color: var(--accent-edge) !important;
  box-shadow: var(--bf-k-shadow-press) !important;
  transition-duration: var(--bf-in) !important;
}

/* ── 6b. 阅读馆选项（读后题、历年中考 .lib-opt）：同选择题；对错（.is-right / .is-wrong）、已选（.is-on）、答题动效不碰 ── */
html[data-ds][data-visual-world][data-ds-skin] body #view-library .lib-opt:not(.is-right):not(.is-wrong):not(.is-on):not(.cv-fx-ok):not(.cv-fx-key):not(.cv-fx-bad):not(.cv-fx-from):not(:disabled) {
  border-bottom-color: var(--bf-k-edge) !important;
  box-shadow: var(--bf-k-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), border-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body #view-library .lib-opt:not(.is-right):not(.is-wrong):not(.is-on):not(.cv-fx-ok):not(.cv-fx-key):not(.cv-fx-bad):not(.cv-fx-from):not(:disabled):active {
  transform: translateY(1px) !important;
  background-color: var(--accent-soft) !important; border-color: var(--accent-edge) !important;
  box-shadow: var(--bf-k-shadow-press) !important;
  transition-duration: var(--bf-in) !important;
}
/* 阅读馆的小图标钮（收藏、关闭、字号…）和级别筛选胶囊：按下出浅色底 */
html[data-ds][data-visual-world][data-ds-skin] body :is(#view-library, .lib-pop, .lib-sheet) .lib-icon-btn:not(:disabled):active { background-image: var(--bf-tint) !important; }
html[data-ds][data-visual-world][data-ds-skin] body #view-library .lib-seg button:not([aria-pressed="true"]):not(:disabled):active { background-image: var(--bf-tint-soft) !important; }

/* ── 6c. 拼写字母块（.spell-tile，spelling.css 进拼写才加载、排在本文件后面）：本来就是「键」，做成键帽 ── */
html[data-ds][data-visual-world][data-ds-skin] body .spell-tile:not(:disabled) {
  border-bottom-color: var(--bf-k-edge) !important;
  box-shadow: var(--bf-k-shadow) !important;
  transition: background-color var(--bf-out) var(--bf-ease), border-color var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), transform var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .spell-tile:not(:disabled):active {
  transform: translateY(1px) !important;
  background-image: var(--bf-k-press) !important; box-shadow: var(--bf-k-shadow-press) !important;
  transition-duration: var(--bf-in) !important;
}

/* ── 7. 分段条（单词页模式、手机「学习 / 拼写 / 难词 / 测验」、朗读写作模式、老师端筛选）──────
   选中的那一片像一枚凸起的白键；没选中的按下出浅色底。 */
html[data-ds][data-visual-world][data-ds-skin] body :is(.wm-btn.on, .msh-wseg > button[aria-selected="true"], .lp-seg > button.active, .t-seg > button[aria-pressed="true"]) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 0 0 .5px rgb(16 24 40 / .08), 0 1px 2px rgb(16 24 40 / .10), 0 2px 6px -2px rgb(16 24 40 / .10) !important;
}
html[data-ds][data-visual-world][data-ds-skin].cv-dark body :is(.wm-btn.on, .msh-wseg > button[aria-selected="true"], .lp-seg > button.active, .t-seg > button[aria-pressed="true"]) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 0 0 .5px rgb(0 0 0 / .4), 0 1px 2px rgb(0 0 0 / .35) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body :is(.wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button):not(:disabled):not([aria-disabled="true"]):active {
  transform: none !important; background-image: var(--bf-tint-soft) !important;
}

/* ── 8. 整块可点的卡片和列表行：不立体，按下换浅色底，不移动不缩放 ──────────────────────── */
html[data-ds][data-visual-world][data-ds-skin] body :is(.msh-titem, .msh-ritem, .msh-mrow, .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .msh-selfbtn, .upload-drop, .listen-mode-card, .cv-rev-card):not(:disabled):active {
  transform: none !important; background-image: var(--bf-tint-soft) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body :is(.msh-titem, .msh-ritem, .msh-mrow):not(:disabled):active { background-color: var(--accent-soft) !important; }

/* ── 9. 导航（电脑侧栏、平板侧轨、老师手机底栏）：按下出浅色底 ─────────────────────────── */
html[data-ds][data-visual-world][data-ds-skin] body .nav-item:not(.active):not(:disabled):active { background-image: var(--bf-tint-soft) !important; transform: none !important; }

/* ── 10. 禁用：灰底灰字 + 鼠标「不可点」，原生 disabled 和 aria-disabled="true" 一样对待 ────────
   不用半透明：禁用按钮上常写着原因（「还差 3 个词没学」「AI 点评次数用完了…」写在旁边小字里），要看得清。
   正在加载（aria-busy）的按钮也常带 disabled / aria-disabled，它走第 11 节，不变灰。 */
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn, .secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool, .task-entry-action, .cv-rev-btn)[class]:is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) {
  background-color: var(--bf-dis-bg) !important; background-image: none !important;
  border-color: var(--bf-dis-edge) !important; color: var(--bf-dis-ink) !important;
  box-shadow: none !important; opacity: 1 !important; filter: none !important; transform: none !important;
  cursor: not-allowed !important;
}
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn, .secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool, .task-entry-action, .cv-rev-btn):is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) :is(.ic, svg) { color: inherit !important; opacity: .9; }
/* 透明底的文字按钮、分段条、透明小箭头：只把字变灰 */
html[data-ds][data-visual-world][data-ds-skin] body :is(.text-button, .link-button, .quota-link, .wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .home-workspace-head .icon-button):is(:disabled, [aria-disabled="true"]):not([aria-busy="true"]) {
  color: var(--bf-dis-ink) !important; background-image: none !important; box-shadow: none !important; opacity: 1 !important; transform: none !important;
  cursor: not-allowed !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .home-workspace-head .icon-button:is(:disabled, [aria-disabled="true"]) { background-color: transparent !important; border-color: transparent !important; }

/* ── 11. 加载中（aria-busy="true"）：保持原来的颜色、只稍淡一点（.88），字看得清；鼠标「转圈」；不响应按下 ── */
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn, .secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool, .task-entry-action, .cv-rev-btn, .text-button)[class][class][aria-busy="true"] {
  opacity: .88 !important; filter: none !important; transform: none !important;
  background-image: none !important; box-shadow: none !important;
  cursor: progress !important;
}

/* ── 12. 键盘聚焦：2px 主题色外框，立刻出现（过渡里去掉 outline），和旁边底色对比 ≥ 3:1 ───────
   只在键盘操作时出现（:focus-visible），鼠标、手指点了不出框。 */
html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .cv-wc-next, .cv-wc-say, .home-main-cta, .msh-btn, .secondary-action, .pill-button, .icon-button, .cv-wc-know, .cv-wc-tool, .task-entry-action, .cv-rev-btn, .text-button, .quota-link, .option, .spell-tile):focus-visible,
html[data-ds][data-visual-world][data-ds-skin] body #view-library .lib-opt:focus-visible {
  outline: 2px solid var(--bf-focus) !important; outline-offset: 2px !important;
  transition-property: background-color, border-color, box-shadow, transform, color, opacity !important;
}
/* 分段条、卡片、导航：外框的位置照原来的（有的贴在里面，免得被外层裁掉），只保证颜色和「立刻出现」 */
html[data-ds][data-visual-world][data-ds-skin] body :is(.wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .nav-item, .msh-titem, .msh-mod, .msh-selfbtn, .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .upload-drop, .listen-mode-card, .link-button):focus-visible {
  outline-color: var(--bf-focus) !important;
  transition-property: background-color, border-color, box-shadow, transform, color, opacity !important;
}

/* ── 13. 手机首页：主按钮「开始今天」（见第 2 节）、学习图标方块像一排小键帽 ─────────────── */
html[data-ds][data-visual-world][data-ds-skin] body .msh-mod .msh-mi {
  border-bottom-color: var(--bf-k-edge) !important;
  box-shadow: var(--bf-k-shadow) !important;
  transition: transform var(--bf-out) var(--bf-ease), box-shadow var(--bf-out) var(--bf-ease), background-color var(--bf-out) var(--bf-ease) !important;
}
html[data-ds][data-visual-world][data-ds-skin] body .msh-mod:active .msh-mi {
  transform: translateY(1px) !important; box-shadow: var(--bf-k-shadow-press) !important; background-image: var(--bf-k-press) !important;
  transition-duration: var(--bf-in) !important;
}
/* mobile-shell.css 的按下缩放（.msh-press:active scale .96、brightness .97）在主按钮上换成第 2 节的下沉；
   头像、级别、返回这些小圆钮保留原来的缩放。 */
html[data-ds][data-visual-world][data-ds-skin] body .msh-btn.msh-press:active { filter: none !important; }

/* ── 14. 播放 / Dot 浮钮：圆形保持原样，只补按下反馈（原来电脑上的 Dot 头像按了没反应） ──── */
html[data-ds][data-visual-world][data-ds-skin] body .avdot-avatar { transition: transform var(--bf-out) var(--bf-ease) !important; }
html[data-ds][data-visual-world][data-ds-skin] body .avdot-avatar:active { transform: scale(.94) !important; transition-duration: var(--bf-in) !important; }

/* ── 15. 减少动效：不移动、不缩放，颜色和阴影瞬间切换（按下照样看得出来） ──────────────────
   前缀故意写得很长（重复的类名 / 属性，0,14,2 起），让特异性高过上面所有按下规则（最高的是选项按下那条 0,12,2），
   这样不用一条条去对。站内开关是 html.cv-reduce-motion，系统设置走 @media。 */
html.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion[data-ds][data-ds][data-visual-world][data-ds-skin][data-palette] body :is(
  .primary-action, .secondary-action, .pill-button, .icon-button, .text-button, .link-button, .quota-link,
  .cv-wc-next, .cv-wc-say, .cv-wc-know, .cv-wc-tool, .home-main-cta, .task-entry-action, .cv-rev-btn, .option, .lib-opt, .spell-tile, .hf-submit, .hf-secondary,
  .wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .nav-item, .msh-btn, .msh-titem, .msh-ritem, .msh-mrow, .msh-mod .msh-mi,
  .msh-selfbtn, .avdot-avatar, .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .upload-drop, .listen-mode-card
):is(*, :hover, :active, :focus-visible) { transition: none !important; }
html.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion[data-ds][data-ds][data-visual-world][data-ds-skin][data-palette] body :is(
  .primary-action, .secondary-action, .pill-button, .icon-button, .text-button, .link-button, .quota-link,
  .cv-wc-next, .cv-wc-say, .cv-wc-know, .cv-wc-tool, .home-main-cta, .task-entry-action, .cv-rev-btn, .option, .lib-opt, .spell-tile, .hf-submit, .hf-secondary,
  .wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .nav-item, .msh-btn, .msh-titem, .msh-ritem, .msh-mrow,
  .msh-selfbtn, .avdot-avatar, .msh-fab, .msh-press, .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .upload-drop, .listen-mode-card
):is(:hover, :active),
html.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion.cv-reduce-motion[data-ds][data-ds][data-visual-world][data-ds-skin][data-palette] body .msh-mod:active .msh-mi { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-visual-world][data-ds-skin][data-palette] body :is(
    .primary-action, .secondary-action, .pill-button, .icon-button, .text-button, .link-button, .quota-link,
    .cv-wc-next, .cv-wc-say, .cv-wc-know, .cv-wc-tool, .home-main-cta, .task-entry-action, .cv-rev-btn, .option, .lib-opt, .spell-tile, .hf-submit, .hf-secondary,
    .wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .nav-item, .msh-btn, .msh-titem, .msh-ritem, .msh-mrow, .msh-mod .msh-mi,
    .msh-selfbtn, .avdot-avatar, .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .upload-drop, .listen-mode-card
  ):is(*, :hover, :active, :focus-visible) { transition: none !important; }
  html[data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-visual-world][data-ds-skin][data-palette] body :is(
    .primary-action, .secondary-action, .pill-button, .icon-button, .text-button, .link-button, .quota-link,
    .cv-wc-next, .cv-wc-say, .cv-wc-know, .cv-wc-tool, .home-main-cta, .task-entry-action, .cv-rev-btn, .option, .lib-opt, .spell-tile, .hf-submit, .hf-secondary,
    .wm-btn, .msh-wseg > button, .lp-seg > button, .t-seg > button, .nav-item, .msh-btn, .msh-titem, .msh-ritem, .msh-mrow,
    .msh-selfbtn, .avdot-avatar, .msh-fab, .msh-press, .home-check-row.clickable, .reading-task-card, .t-kpi, .cv-word-scope-option, .upload-drop, .listen-mode-card
  ):is(:hover, :active),
  html[data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-ds][data-visual-world][data-ds-skin][data-palette] body .msh-mod:active .msh-mi { transform: none !important; }
}
/* 高对比 / 强制配色（Windows 高对比主题）：交给系统画，不留阴影和叠层；聚焦框用系统的高亮色 */
@media (forced-colors: active) {
  html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .secondary-action, .pill-button, .icon-button, .option, .msh-btn, .cv-wc-next, .cv-wc-say, .cv-wc-know, .spell-tile, .lib-opt) { background-image: none !important; box-shadow: none !important; }
  html[data-ds][data-visual-world][data-ds-skin] body :is(.primary-action, .secondary-action, .pill-button, .icon-button, .option, .msh-btn, .cv-wc-next, .cv-wc-say, .cv-wc-know, .spell-tile, .lib-opt):focus-visible { outline-color: Highlight !important; }
}
/* ═══ 方案甲定稿 结束 ═══ */

/* ==== ux-polish.css ==== */
/* 小修-20261125（体验组）ux-polish.css
   只放体验组这一轮新加的东西：撤销条、灰按钮旁边的原因、刷卡「已移出」按钮、阅读馆「我的」空状态。
   不改已有组件的颜色和尺寸；颜色全部走现有变量，七套皮肤和深浅色自动跟着变。
   依据：DESIGN.md「交互质感与可读性检查清单（2026-11-25 起）」。 */

/* ── 撤销条（app.js showUndoStrip）：底子沿用 reading-library.css 的 .lib-toast（深色底 + 按钮），这里补层级、换行和 44px 按钮 ──
   小修-20261125（用户看图后）：整条铺满（左右各留 12px），文字靠左、「撤销」靠右；最宽 520px，电脑、平板上居中。
   原来是贴左下角、按文字长短缩成一小截，看着像没摆好。z-index 在 Dot 浮钮之上，6 秒里暂时盖住浮钮。 */
.lib-toast.cv-undo {
  z-index: 2450; /* 在底栏、Dot 浮钮、刷卡台之上；比老师端轻提示（2600）低 */
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  width: auto; max-width: 520px; margin: 0 auto;
  justify-content: space-between;
  min-height: 56px;
  padding: 6px 6px 6px 18px;
  gap: 12px;
  border-radius: 16px;
}
.lib-toast.cv-undo span {
  flex: 1 1 auto;
  white-space: normal; overflow: visible; text-overflow: clip;
  font-size: 15px; font-weight: 600; line-height: 1.45;
}
.lib-toast.cv-undo button {
  min-height: 44px; min-width: 72px; padding: 0 18px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease;
}
/* 平板（768–1180 是左侧竖栏，没有底栏）和电脑：放页面顶部居中，宽到 460px，从上往下滑进来。
   电脑、平板上刷卡卡片一直伸到屏幕底部，底部不管放中间还是右下角都会压住「精学这个词」「我会了」（实测 820 / 1280 宽）；
   顶部只会暂时盖住页面标题和搜索框，不挡学习按钮。 */
@keyframes cv-undo-drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) {
  .lib-toast.cv-undo {
    left: 0; right: 0; margin: 0 auto;
    width: min(460px, calc(100vw - 48px));
    top: max(16px, env(safe-area-inset-top, 0px)); bottom: auto;
    animation: cv-undo-drop .2s ease-out;
  }
}

/* 小修-20261125：6 秒到了淡出（0.18 秒，手机往下、电脑平板往上），淡出时不再接点击 */
.lib-toast.cv-undo.is-leaving {
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .18s ease-in, transform .18s ease-in;
}
@media (min-width: 768px) { .lib-toast.cv-undo.is-leaving { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lib-toast.cv-undo.is-leaving { transition: none; transform: none; } }
html.cv-reduce-motion .lib-toast.cv-undo.is-leaving { transition: none; transform: none; }

/* 手机外壳：贴底 16px，整条铺满 */
body.cv-mshell .lib-toast.cv-undo {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.lib-toast.cv-undo button:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (hover: hover) {
  .lib-toast.cv-undo button:hover { background: color-mix(in srgb, var(--surface, #fff) 30%, transparent); }
}
.lib-toast.cv-undo button:active { background: color-mix(in srgb, var(--surface, #fff) 36%, transparent); transition-duration: .05s; }
@media (prefers-reduced-motion: reduce) { .lib-toast.cv-undo { animation: none; } .lib-toast.cv-undo button { transition: none; } }
html.cv-reduce-motion .lib-toast.cv-undo { animation: none; }
html.cv-reduce-motion .lib-toast.cv-undo button { transition: none; }

/* ── 难词本：「难词测验」灰着时，按钮下面一行写原因（app.js renderWrongBook 的 #cvwQuizWhy） ── */
#view-wrong .cvw-why {
  margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted);
}

/* ── 刷卡「我会了」点过以后变「已移出难词本」：变淡、不可点（还能点底部「撤销」） ── */
.swp2-master.is-done {
  border-color: var(--hairline) !important; color: var(--muted) !important; background: var(--surface-2, var(--surface)) !important;
  cursor: default;
}

/* ── 阅读馆「我的」：每一栏空着时的一句话 + 整页都空时的「去推荐里挑一篇」（reading-library.js pkBody） ── */
.lib-pk-empty.lib-pk-empty-tip { margin: 2px 0 12px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.lib-pk-mine-empty { display: grid; justify-items: start; gap: 10px; margin: 4px 0 16px; padding: 16px; border: 1px solid var(--hairline-soft, var(--hairline)); border-radius: 12px; background: var(--surface); }
.lib-pk-mine-empty strong { font-size: 16px; line-height: 1.4; color: var(--ink); }
.lib-pk-mine-empty p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lib-pk-mine-empty .primary-action { min-height: 44px; }

/* ==== layers.css ==== */
/* 小修-20261125 叠层 · 方案甲「压暗 + 轻糊」 layers.css
   用户 11-25：「每个新词这样学……下面的内容是不是要适当糊化一些，不然会有点乱……看下整个网页这类的问题」。
   挂在 ux-polish.css 后面（最后一个样式表）。只改浮层下面那层（遮罩）的颜色/模糊和进场；不改卡片内容、按钮颜色、答题对错色、撤销条位置。
   分三类（理由见 叠层/方案说明.md）：
     A 先处理（引导卡、离开确认、各种弹窗、阅读生词卡片复习、帮助反馈、徽章详情、海报）：压暗 + 3px 轻糊，点不到后面；
     B 弹层/抽屉（阅读馆生词卡和选读物、手机底部面板、设置抽屉、额度抽屉、练习设置）：只压暗、不糊，孩子要对照上面的原文；
     C 边看边用（气泡提示、Dot 半屏和电脑 Dot 面板、撤销条、轻提示）：不压暗，靠阴影和位置；不能盖住正在学的字。
   为什么用 html:not(#_)：ultimate.css / aivia-ds.css / cv-quota.css 给遮罩下了 !important（AGENTS.md 第 8 条陷阱 1），
   :not(#_) 只为抬优先级，不排除任何元素（和 styles.css 减少动效总开关同一写法）。
   颜色写 rgba(r, g, b, a) 逗号写法：旧内核（Chrome 65 以前）不认 rgb(r g b / a)，整条声明会被丢掉。
   ::backdrop 里不用 var()：旧一点的浏览器里 ::backdrop 拿不到 :root 的变量（Chrome 122 之前），所以写死数值。
   打印不受影响：整份包在 @media screen 里（premium.css 打印时把报告层改成白底）。 */

@media screen {
  :root {
    --cv-scrim-a: rgba(23, 38, 74, .38);   /* 先处理：墨蓝（品牌 ink #17264a）38% */
    --cv-scrim-b: rgba(23, 38, 74, .24);   /* 弹层/抽屉：同色 24% */
    --cv-scrim-blur: blur(3px);
  }
  html.cv-dark {
    --cv-scrim-a: rgba(6, 9, 14, .56);
    --cv-scrim-b: rgba(6, 9, 14, .44);
  }
  /* 不支持 backdrop-filter 的旧内核（旧版 X5 等）：没有糊，就再暗一档，层次照样分得开 */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --cv-scrim-a: rgba(23, 38, 74, .48); }
    html.cv-dark { --cv-scrim-a: rgba(6, 9, 14, .64); }
  }
  /* 系统「减少透明度」或站内「减少动效」打开：不糊，同样暗一档（这类用户多半在意清楚和省电） */
  @media (prefers-reduced-transparency: reduce) {
    :root { --cv-scrim-blur: none; --cv-scrim-a: rgba(23, 38, 74, .48); }
    html.cv-dark { --cv-scrim-a: rgba(6, 9, 14, .64); }
  }
  html.cv-reduce-motion { --cv-scrim-blur: none; --cv-scrim-a: rgba(23, 38, 74, .48); }
  html.cv-reduce-motion.cv-dark { --cv-scrim-a: rgba(6, 9, 14, .64); }

  /* ── A 先处理：压暗 + 轻糊 ── */
  html:not(#_) .cv-study-coach,
  html:not(#_) .cv-quiz-guard,
  html:not(#_) .modal-mask:not(.quota-drawer),
  html:not(#_) .member-qr-dialog-mask,
  html:not(#_) .member-admin-dialog-mask,
  html:not(#_) .cv-poster-modal,
  html:not(#_) .report-overlay,
  html:not(#_) .rw-cards-mask {   /* 阅读生词卡片复习：居中的一张卡，孩子要专心看卡 */
    background: var(--cv-scrim-a) !important;
    -webkit-backdrop-filter: var(--cv-scrim-blur) !important;
    backdrop-filter: var(--cv-scrim-blur) !important;
  }
  /* 徽章聚光：只压暗不糊——彩纸（.cv-confetti）在它下面一直在动，糊了既看不清又每帧重算 */
  html:not(#_) .cv-ms-unlock-layer.is-spotlight .cv-ms-unlock-backdrop { background: var(--cv-scrim-a) !important; }

  /* 原生 <dialog> 的背景层（帮助与反馈、题目反馈、管理员题目反馈、手机号登录、写作提醒、徽章详情） */
  html:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)::backdrop {
    background: rgba(23, 38, 74, .38) !important;
    -webkit-backdrop-filter: blur(3px) !important; backdrop-filter: blur(3px) !important;
  }
  html.cv-dark:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)::backdrop { background: rgba(6, 9, 14, .56) !important; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)::backdrop { background: rgba(23, 38, 74, .48) !important; }
  }
  html.cv-reduce-motion:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)::backdrop {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }

  /* ── B 弹层/抽屉：只压暗，不糊 ── */
  html:not(#_) .lib-sheet-mask,
  html:not(#_) #view-library .lib-pk-mask,
  html:not(#_) .quota-drawer.modal-mask,
  html:not(#_) .msh-layer .msh-scrim,
  html:not(#_) body .settings-scrim,
  html:not(#_) body.session-settings-open .session-settings-scrim,
  html:not(#_) body.cv-wordset-open .cv-wordset-scrim {
    background: var(--cv-scrim-b) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html:not(#_) body.nav-open::after { background: var(--cv-scrim-b) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  /* 设置停在「外观」时，后面的页面当预览看：保持原来的淡遮罩、不糊（ui-sweep.css T6-6），这里再写一次压过上面那条 */
  html:not(#_) body.settings-open #settingsScrim:has(~ #settingsDrawer[data-settings-section="display"]:not([data-phone-page])) {
    background: color-mix(in srgb, var(--ink) 14%, transparent) !important;
  }
  html:not(#_) body #avdot-panel::backdrop,
  html:not(#_) body #dot-shell-menu::backdrop { background: rgba(23, 38, 74, .24) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html.cv-dark:not(#_) body #avdot-panel::backdrop,
  html.cv-dark:not(#_) body #dot-shell-menu::backdrop { background: rgba(6, 9, 14, .44) !important; }

  /* ── 进场：遮罩淡入 160ms；引导卡、离开确认卡片淡入 + 上移 6px，200ms。关掉时直接消失（不用为退场改 JS） ── */
  @keyframes cv-layer-fade { from { opacity: 0; } }
  @keyframes cv-layer-rise { from { opacity: 0; transform: translateY(6px); } }
  html:not(#_) .cv-study-coach,
  html:not(#_) .cv-quiz-guard,
  html:not(#_) .modal-mask:not(.hidden):not(.quota-drawer),
  html:not(#_) .lib-sheet-mask,
  html:not(#_) #view-library .lib-pk-mask,
  html:not(#_) .rw-cards-mask { animation: cv-layer-fade .16s ease-out both; }
  html:not(#_) :is(.cv-study-coach-card, .cv-quiz-guard-card) { animation: cv-layer-rise .2s cubic-bezier(.2, .8, .2, 1) both; }
  html:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)[open]::backdrop { animation: cv-layer-fade .16s ease-out both; }
  /* 减少动效：卡片不位移，只剩瞬间出现（两条总开关会把时长压到 0.01ms；::backdrop 不在总开关的 * 里，单独写） */
  @media (prefers-reduced-motion: reduce) {
    html:not(#_) :is(.cv-study-coach-card, .cv-quiz-guard-card) { animation-name: cv-layer-fade; }
    html:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)::backdrop { animation: none !important; }
  }
  html.cv-reduce-motion:not(#_) :is(.cv-study-coach-card, .cv-quiz-guard-card) { animation-name: cv-layer-fade; }
  html.cv-reduce-motion:not(#_) :is(dialog.hf-dialog, dialog.question-feedback-dialog, dialog.qfa-dialog, dialog.phone-dialog, dialog.wl-panel, dialog.cv-ms-dialog)::backdrop { animation: none !important; }

  /* 引导卡本身：深色下和后面的卡片同色，加一圈细边线分开；阴影统一成「浮层卡片」那一档 */
  html:not(#_) .cv-study-coach-card { box-shadow: 0 18px 48px rgba(16, 24, 40, .22); }
  html.cv-dark:not(#_) .cv-study-coach-card { border-color: var(--hairline); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }

  /* ── C 边看边用：手机刷卡页的手势气泡原来盖在单词上（refine.css 把它 absolute 到卡片顶部，正好压住词形）。
     挪到卡片下部、按钮上面那片空白里，横向居中，去掉指向进度的小三角。电脑平板它在卡片上方的文档流里，不动。 */
  @media (max-width: 560px) {   /* 和 refine.css 那段同一个断点 */
    html:has(.view.active #swipeStage) .swipe-review > .swipe-gesture-hint,
    html:has(.view.active #swipeStage) .swipe-review.seg-moved > .swipe-gesture-hint {
      top: auto !important; bottom: 84px; left: 12px !important; right: 12px !important;
      width: fit-content; margin: 0 auto !important;
    }
    html:has(.view.active #swipeStage) .swipe-review > .swipe-gesture-hint::after { display: none; }
    /* 两行时别只剩一个「义」字挂在第二行 */
    html:has(.view.active #swipeStage) .swipe-review > .swipe-gesture-hint > span { text-wrap: pretty; }
  }
}

