/*
 * Zen shell and all-Unit UI experiment.
 *
 * Contract: every production selector is rooted at an explicit experiment opt-in.
 * Loading this stylesheet without data-ui-experiment="zen-shell-all-units-v1" is inert.
 */

@font-face {
  font-family: "ZenShellPlexSC";
  src: url("fonts/ibm-plex-sans-sc-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3 Vocab";
  src: url("../../fonts/source-sans-3-vocab.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC Vocab";
  src: url("../../fonts/source-han-sans-sc-regular-vocab.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans SC Vocab";
  src: url("../../fonts/source-han-sans-sc-bold-vocab.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "ZenShellPlexSC";
  src: url("fonts/ibm-plex-sans-sc-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "ZenShellSarasaSC";
  src: url("fonts/sarasa-gothic-sc-ui-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ZenShellSarasaSC";
  src: url("fonts/sarasa-gothic-sc-ui-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body {
  --zen-mist: #f7f8f5;
  --zen-surface: #ffffff;
  --zen-ink: #20251f;
  --zen-muted: #676e65;
  --zen-muted-decoration: #6f766d;
  --zen-accent: #397d5e;
  --zen-accent-dark: #2f6b50;
  --zen-calm: #edf3ef;
  --zen-focus: #dde8f2;
  --zen-pending: #ffffff;
  --zen-soft-risk: #f4efe7;
  --zen-line-soft: rgba(32, 37, 31, 0.08);
  --zen-line: rgba(32, 37, 31, 0.1);
  --zen-line-strong: rgba(32, 37, 31, 0.16);
  --zen-accent-line: rgba(57, 125, 94, 0.28);
  --zen-focus-ring: #8bbca3;
  --zen-halo: rgba(139, 188, 163, 0.24);
  --zen-shadow-soft: 0 14px 38px rgba(47, 107, 80, 0.055),
    0 2px 10px rgba(32, 37, 31, 0.035);
  --zen-shadow-raised: 0 20px 52px rgba(47, 107, 80, 0.09),
    0 8px 22px rgba(32, 37, 31, 0.055);
  --zen-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Translate the experiment through the site's existing semantic tokens. */
  --paper: var(--zen-mist);
  --paper-deep: #f0f2ef;
  --surface: var(--zen-surface);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --ink: var(--zen-ink);
  --body: rgba(32, 37, 31, 0.86);
  --cn: rgba(32, 37, 31, 0.72);
  --muted: var(--zen-muted);
  --muted-soft: var(--zen-muted-decoration);
  --olive: var(--zen-accent);
  --olive-dark: var(--zen-accent-dark);
  --olive-soft: rgba(57, 125, 94, 0.1);
  --dark: var(--zen-ink);
  --dark-soft: #343c34;
  --sage: var(--zen-calm);
  --amber: #eee8d9;
  --sand: var(--zen-soft-risk);
  --aqua: var(--zen-focus);
  --line: var(--zen-line);
  --line-strong: var(--zen-line-strong);
  --hairline: var(--zen-line);
  --shadow: var(--zen-shadow-soft);
  --shadow-high: 0 30px 82px rgba(32, 37, 31, 0.2);

  background: var(--zen-mist);
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
}

html[data-ui-experiment="zen-shell-all-units-v1"] body::selection {
  background: var(--zen-calm);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  button,
  input,
  summary
) {
  font-family: var(--font-learning, var(--font-ui));
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .site-header,
  .study-topbar
) {
  border-bottom-color: var(--zen-line);
  background: rgba(247, 248, 245, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.08);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  a,
  button,
  input,
  summary
):focus-visible {
  outline: 2px solid var(--zen-focus-ring);
  outline-offset: 2px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .button,
  .current-learning-btn,
  .unit-focus-button,
  .entry-link,
  .group-nav,
  .word-jump,
  .assessment-return-bar a,
  .assessment-tools summary,
  .segmented button,
  .word-btn,
  .auditory-card button,
  .review-feedback,
  .primary-btn,
  .ghost-btn,
  .audio-button,
  .audio-play,
  .learning-disclosure > summary,
  .example-translation-disclosure > summary
) {
  transition:
    color 160ms var(--zen-ease),
    background-color 160ms var(--zen-ease),
    border-color 160ms var(--zen-ease),
    box-shadow 160ms var(--zen-ease),
    opacity 160ms var(--zen-ease),
    transform 160ms var(--zen-ease);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .button,
  .current-learning-btn,
  .unit-focus-button,
  .entry-link,
  .assessment-return-bar a,
  .assessment-tools summary,
  .segmented button,
  .word-btn,
  .auditory-card button,
  .review-feedback,
  .primary-btn,
  .ghost-btn,
  .audio-button,
  .audio-play
):active {
  transform: translateY(0) scale(0.975);
  transition-duration: 100ms;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .button,
  .current-learning-btn,
  .unit-focus-button,
  .assessment-return-bar a,
  .assessment-tools summary,
  .word-btn,
  .auditory-card button,
  .review-feedback,
  .primary-btn,
  .ghost-btn,
  .audio-button,
  .audio-play
):hover {
  border-color: var(--zen-line-strong);
  box-shadow: 0 12px 26px rgba(47, 107, 80, 0.08);
  transform: translateY(-2px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  [aria-pressed="true"],
  .active
):is(button, .button) {
  border-color: var(--zen-accent-line);
  box-shadow: 0 0 0 2px var(--zen-halo);
}

/* Unit overview. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] {
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-hero {
  border-color: var(--zen-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(237, 243, 239, 0.78));
  box-shadow: var(--zen-shadow-soft);
  backdrop-filter: blur(16px) saturate(1.02);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-hero h1 {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: -0.025em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-hero .unit-meta {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-focus-button {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-focus-button[aria-pressed="true"] {
  border-color: rgba(76, 112, 143, 0.22);
  background: var(--zen-focus);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-panel {
  border-color: var(--zen-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--zen-shadow-soft);
  backdrop-filter: blur(12px) saturate(1.03);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-head > img {
  border-color: var(--zen-line);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] :where(
  .unit-module-head h2,
  .unit-practice-inventory strong
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] :where(
  .unit-module-state,
  .unit-practice-inventory,
  .unit-practice-inventory > div + div
) {
  border-color: var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-practice-inventory {
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-progress {
  background: rgba(57, 125, 94, 0.12);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-progress > span {
  background: var(--zen-accent);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link:hover {
  border-color: var(--zen-line-strong);
  background: var(--zen-calm);
  box-shadow: 0 10px 24px rgba(47, 107, 80, 0.07);
  transform: translateX(2px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link.primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link.primary:hover {
  border-color: var(--zen-accent-dark);
  background: var(--zen-accent-dark);
}

/* Grouped learning: keep the existing compact three-column workspace. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] {
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .study-sidebar,
  .word-rail
) {
  border-color: var(--zen-line);
  background: rgba(247, 248, 245, 0.94);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .study-sidebar h2,
  .word-rail h2,
  .study-brand,
  .group-header h2
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .study-hero,
  .group-section,
  .word-card
) {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-hero {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 239, 0.64));
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-hero h1 {
  color: var(--zen-ink);
  font-weight: 760;
  letter-spacing: -0.02em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-section {
  border-radius: 18px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-card {
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(47, 107, 80, 0.04);
  transition:
    border-color 160ms var(--zen-ease),
    box-shadow 160ms var(--zen-ease);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-card:hover {
  border-color: var(--zen-accent-line);
  box-shadow: 0 12px 30px rgba(47, 107, 80, 0.065);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-card.hash-target {
  border-color: var(--zen-accent-line);
  box-shadow: 0 0 0 3px var(--zen-halo);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .group-number,
  .word-index
) {
  background: var(--zen-ink);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .group-nav,
  .word-jump
) {
  border-color: transparent;
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .group-nav,
  .word-jump
):hover {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
  transform: translateX(2px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .group-nav.active,
  .word-jump.active,
  .group-nav[aria-current="location"],
  .word-jump[aria-current="location"]
) {
  border-color: rgba(76, 112, 143, 0.2);
  background: var(--zen-focus);
  color: var(--zen-ink);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-rail .word-jump.active {
  transform: translateX(2px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-word-nav .word-jump {
  border-color: var(--zen-line);
  background: var(--zen-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-search {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-search:focus {
  border-color: var(--zen-accent);
  box-shadow: 0 0 0 3px var(--zen-halo);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .current-learning-btn {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .current-learning-btn[aria-pressed="true"] {
  border-color: rgba(76, 112, 143, 0.22);
  background: var(--zen-focus);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .memory-hint {
  border-left-color: var(--zen-accent-line);
  background: rgba(237, 243, 239, 0.78);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .memory-hint h4,
  .usage-scenario > span,
  .learning-disclosure > summary,
  .meaning-relation-card__title
) {
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .learning-block,
  .usage-group,
  .learning-disclosure,
  .meaning-relation-list,
  .meaning-relation-card,
  .meaning-relation-card__title,
  .meaning-relation-card .mini-item
) {
  border-color: var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example {
  border-color: var(--zen-line);
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example-translation-disclosure > summary {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .example-translation-disclosure > summary:hover,
  .example-translation-disclosure[open] > summary
) {
  border-color: var(--zen-accent);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .learning-disclosure > summary:hover {
  color: var(--zen-ink);
  background: rgba(237, 243, 239, 0.84);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .learning-disclosure[open] > summary {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card__title {
  background: var(--zen-mist);
}

/* Restore semantic colour coding after the compact table layout neutralised
   the original relation-card surfaces. Colour is an aid only: every section
   keeps an explicit text heading for learners and forced-colour users. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] {
  --zen-relation-synonym-surface: #eaf5ef;
  --zen-relation-synonym-line: #b9d9c8;
  --zen-relation-synonym-ink: #1f684d;
  --zen-relation-antonym-surface: #fff0ec;
  --zen-relation-antonym-line: #efc2b6;
  --zen-relation-antonym-ink: #9a493c;
  --zen-relation-confusable-surface: #fff7e5;
  --zen-relation-confusable-line: #e7d19a;
  --zen-relation-confusable-ink: #7a5a13;
  --zen-relation-related-surface: #f1effa;
  --zen-relation-related-line: #cec8e5;
  --zen-relation-related-ink: #5e5688;
  --zen-relation-derivation-surface: #eaf3fb;
  --zen-relation-derivation-line: #bdd4e6;
  --zen-relation-derivation-ink: #315f7f;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="synonym"] {
  border-color: var(--zen-relation-synonym-line);
  background: var(--zen-relation-synonym-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="synonym"] .meaning-relation-card__title {
  border-color: var(--zen-relation-synonym-line);
  background: var(--zen-relation-synonym-surface);
  color: var(--zen-relation-synonym-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="antonym"] {
  border-color: var(--zen-relation-antonym-line);
  background: var(--zen-relation-antonym-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="antonym"] .meaning-relation-card__title {
  border-color: var(--zen-relation-antonym-line);
  background: var(--zen-relation-antonym-surface);
  color: var(--zen-relation-antonym-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="confusable"] {
  border-color: var(--zen-relation-confusable-line);
  background: var(--zen-relation-confusable-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="confusable"] .meaning-relation-card__title {
  border-color: var(--zen-relation-confusable-line);
  background: var(--zen-relation-confusable-surface);
  color: var(--zen-relation-confusable-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="related"] {
  border-color: var(--zen-relation-related-line);
  background: var(--zen-relation-related-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card[data-relation-tone="related"] .meaning-relation-card__title {
  border-color: var(--zen-relation-related-line);
  background: var(--zen-relation-related-surface);
  color: var(--zen-relation-related-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .extension-disclosure-body {
  display: grid;
  gap: 8px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .relation-subgroup {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--zen-relation-related-line);
  border-radius: 10px;
  background: var(--zen-relation-related-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .relation-subgroup > h4 {
  margin: 0;
  padding: 10px;
  border-right: 1px solid var(--zen-relation-related-line);
  color: var(--zen-relation-related-ink);
  font-size: 0.78rem;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .relation-subgroup[data-relation-tone="derivation"] {
  border-color: var(--zen-relation-derivation-line);
  background: var(--zen-relation-derivation-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .relation-subgroup[data-relation-tone="derivation"] > h4 {
  border-color: var(--zen-relation-derivation-line);
  color: var(--zen-relation-derivation-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .relation-subgroup .mini-item {
  padding: 9px 10px;
  border-top-color: currentColor;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-grouped-extension .root-note {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid var(--zen-relation-derivation-line);
  border-radius: 7px;
  background: var(--zen-relation-derivation-surface);
  color: var(--zen-relation-derivation-ink);
}

/* Text-density overlay: keep useful content available while reducing labels
   and repeated scaffolding in the grouped word cards. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure {
  margin: 8px 0 12px;
  padding: 0;
  border-left: 3px solid var(--zen-accent-line);
  background: transparent;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure > summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  color: var(--zen-accent-dark);
  font-size: 0.82rem;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure > summary::-webkit-details-marker {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure > summary::before {
  content: "›";
  display: inline-block;
  margin-right: 5px;
  transition: transform 140ms var(--zen-ease);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure[open] > summary::before {
  transform: rotate(90deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure > p {
  margin: 0 10px 9px;
  color: var(--zen-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example-detail > .detail-label[hidden],
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example-detail > .teaching-note[hidden] {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example-detail > .translation {
  margin-top: 4px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-practice-action a[data-zen-compact-practice="true"] {
  min-width: 0;
  white-space: nowrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .review-feedback,
  .audio-button,
  .audio-play
) {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .review-feedback.known {
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .review-feedback.vague {
  background: var(--zen-focus);
  color: #365268;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .review-feedback.unfamiliar {
  background: var(--zen-soft-risk);
  color: #514b43;
}

/* Familiarity assessment. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"],
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] {
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-return-bar {
  border-bottom-color: var(--zen-line);
  background: rgba(247, 248, 245, 0.94);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-return-bar a {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-page-hero h1,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-hero h1 {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: -0.025em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-session-panel {
  border: 1px solid rgba(32, 37, 31, 0.08);
  border-radius: 22px;
  background: var(--zen-ink);
  color: #ffffff;
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-kicker {
  color: #bac7bf;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-actions .button.primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-actions .assessment-on-dark {
  border-color: rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-controls {
  border-color: var(--zen-line);
  background: rgba(247, 248, 245, 0.95);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-search-wrap .search-input {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-search-wrap .search-input:focus {
  border-color: var(--zen-accent);
  box-shadow: 0 0 0 3px var(--zen-halo);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body .segmented {
  border-color: var(--zen-line);
  background: #edf0eb;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body .segmented button {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .segmented button.active,
  .segmented button[aria-pressed="true"]
) {
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: 0 3px 10px rgba(32, 37, 31, 0.08);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-tools summary {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-tools[open] summary {
  border-color: var(--zen-accent);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-tools > div {
  border-color: var(--zen-line);
  border-radius: 16px;
  background: var(--zen-surface);
  box-shadow: var(--zen-shadow-raised);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] :where(
  .word-btn,
  .auditory-card
) {
  border-color: var(--zen-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] :where(
  .word-btn:hover,
  .word-btn:focus-visible,
  .auditory-card:focus-within
) {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  box-shadow: 0 10px 24px rgba(32, 37, 31, 0.07);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] :where(
  .word-btn.unknown,
  .auditory-card.unknown
) {
  border-color: rgba(117, 99, 72, 0.28);
  background: var(--zen-soft-risk);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .auditory-card button {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .floating-card-host::backdrop {
  background: rgba(32, 37, 31, 0.32);
  backdrop-filter: blur(8px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: var(--zen-ink);
  color: #ffffff;
  box-shadow: 0 28px 76px rgba(32, 37, 31, 0.28);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card h2 {
  color: #ffffff;
  font-family: var(--font-learning, var(--font-ui));
  font-weight: 720;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card .assessment-choice.primary {
  border-color: var(--zen-calm);
  background: var(--zen-calm);
  color: var(--zen-ink);
}

/* Unit test setup, runner and results. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-hero {
  border-color: var(--zen-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 239, 0.68));
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-soft);
}

/* Once a Unit Test session is running, the setup hero repeats the session
   context already shown by the compact status line. Keep it on the setup
   screen, but remove it from the active workspace. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"].unit-test-running .assessment-hero {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup {
  gap: 14px;
  padding: 12px 16px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup h2 {
  margin: 0 0 6px;
  font-size: 0.78rem;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-status {
  margin: 6px 0 10px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-hero p {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .test-setup,
  .unit-test-controls,
  .unit-test-summary,
  .unit-test-history
) {
  border-color: var(--zen-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup[data-session-active="true"] {
  background: rgba(247, 248, 245, 0.92);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .test-setup h2,
  .unit-test-summary h2,
  .unit-test-history h2,
  #unitTestHistory time,
  .unit-test-result-grid strong
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup .button.primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup .button.secondary {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
  border-color: rgba(32, 37, 31, 0.12);
  border-radius: 22px;
  background: var(--zen-ink);
  color: #ffffff;
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head h2 {
  color: #ffffff;
  font-family: var(--font-learning, var(--font-ui));
  font-weight: 720;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-word-meta,
  .runner-status,
  .review-core-en,
  .review-core-cn
) {
  color: #bac7bf;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .audio-play,
  .ghost-btn
) {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .primary-btn {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-full-meaning {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-usage-group,
  .review-teaching-example,
  .review-relation-block,
  .unit-test-result-grid span,
  #unitTestHistory li
) {
  border-color: var(--zen-line);
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback.known {
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback.vague {
  background: var(--zen-focus);
  color: #365268;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback.unfamiliar {
  background: var(--zen-soft-risk);
  color: #514b43;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback[aria-pressed="true"] {
  border-color: var(--zen-accent-line);
  box-shadow: 0 0 0 2px var(--zen-halo);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .unit-test-history details,
  .unit-test-history summary,
  .unit-test-export summary
) {
  border-color: var(--zen-line);
  color: var(--zen-accent-dark);
}

/* Quiet reveal: opacity and a short settle only, with no height animation. */
html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .example-translation-disclosure[open] > .example-detail,
  .learning-disclosure[open] > .meaning-relation-list,
  .learning-disclosure[open] > .extension-disclosure-body,
  .assessment-tools[open] > div,
  .unit-test-history details[open] > div,
  .unit-test-export[open] > button
) {
  animation: zen-shell-all-units-reveal 160ms var(--zen-ease) both;
}

@keyframes zen-shell-all-units-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1280px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-layout {
    grid-template-columns: 250px minmax(0, 1fr) 210px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-rail {
    display: block;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-word-nav {
    display: none;
  }
}

@media (max-width: 1279px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-rail {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-word-nav {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body *,
  html[data-ui-experiment="zen-shell-all-units-v1"] body *::before,
  html[data-ui-experiment="zen-shell-all-units-v1"] body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
    a,
    button,
    summary,
    .word-card
  ) {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  :is(
    html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
      [data-page="home"],
      [data-page="auth"],
      [data-page="guide"],
      [data-page="practice-hub"],
      [data-page="review"],
      [data-unit-id]
    ),
    html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
  )::before,
  :is(
    html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
      [data-page="home"],
      [data-page="auth"],
      [data-page="guide"],
      [data-page="practice-hub"],
      [data-page="review"],
      [data-unit-id]
    ),
    html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
  )::after {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
    .entry-panel,
    .study-hero,
    .group-section,
    .word-card,
    .assessment-session-panel,
    .test-setup,
    .unit-test-host,
    .unit-test-controls
  ) {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
    a,
    button,
    input,
    summary
  ):focus-visible {
    outline: 2px solid Highlight;
  }
}

/* Font comparison is opt-in through the allowlisted query parameter. */
html[data-ui-experiment="zen-shell-all-units-v1"][data-zen-font="apple"] body {
  --zen-selected-font: "SF Pro SC", "SF Pro Text", "PingFang SC", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-learning: var(--zen-selected-font);
  --font-ui: var(--zen-selected-font);
  font-family: var(--zen-selected-font);
}

html[data-ui-experiment="zen-shell-all-units-v1"][data-zen-font="plex"] body {
  --zen-selected-font: "ZenShellPlexSC", "IBM Plex Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-learning: var(--zen-selected-font);
  --font-ui: var(--zen-selected-font);
  font-family: var(--zen-selected-font);
}

html[data-ui-experiment="zen-shell-all-units-v1"][data-zen-font="sarasa"] body {
  --zen-selected-font: "ZenShellSarasaSC", "Sarasa Gothic SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-learning: var(--zen-selected-font);
  --font-ui: var(--zen-selected-font);
  font-family: var(--zen-selected-font);
}

html[data-ui-experiment="zen-shell-all-units-v1"][data-zen-font]:not([data-zen-font="current"]) body :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  p,
  a,
  button,
  input,
  select,
  summary,
  code
) {
  font-family: var(--zen-selected-font);
}

/*
 * Quiet-geometric postmodern artwork layer.
 * The same 32 reviewed raster assets now cover every student-facing surface.
 * Navigation gets a clearer canvas; dense learning and practice workspaces use
 * a stronger veil so the artwork never competes with reading or answering.
 */
:is(
  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"],
    [data-unit-id]
  ),
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
) {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  --zen-artwork-position: center center;
  --zen-artwork-opacity: 0.86;
  --zen-artwork-veil: rgba(247, 248, 245, 0.32);
}

:is(
  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"],
    [data-unit-id]
  ),
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
)::before,
:is(
  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"],
    [data-unit-id]
  ),
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

:is(
  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"],
    [data-unit-id]
  ),
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
)::before {
  z-index: 0;
  background-image: var(--zen-artwork-url);
  background-position: var(--zen-artwork-position);
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: none;
  mask-image: none;
  filter: saturate(0.96) contrast(1.02);
  opacity: var(--zen-artwork-opacity);
}

:is(
  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"],
    [data-unit-id]
  ),
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
)::after {
  z-index: 1;
  background: var(--zen-artwork-veil);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="home"],
  [data-page="guide"],
  [data-page="practice-hub"],
  [data-page="review"]
) {
  --zen-artwork-url: url("backgrounds/home.webp");
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] {
  --zen-artwork-url: url("backgrounds/auth.webp");
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="home"],
  [data-page="auth"],
  [data-page="unit-home"]
) {
  --zen-artwork-opacity: 1;
  --zen-artwork-veil: rgba(247, 248, 245, 0.12);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="guide"],
  [data-page="practice-hub"],
  [data-page="review"]
) {
  --zen-artwork-opacity: 0.82;
  --zen-artwork-veil: rgba(247, 248, 245, 0.34);
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id] {
  --zen-artwork-opacity: 0.8;
  --zen-artwork-veil: rgba(247, 248, 245, 0.4);
}

:is(
  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"],
    [data-unit-id]
  ),
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
) > :where(
  main,
  .home-shell,
  .auth-shell,
  .study-layout,
  .reference-layout,
  .assessment-shell,
  .review-shell,
  .practice-adapter-shell,
  .page-shell
) {
  position: relative;
  z-index: 2;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id] > .unit-breadcrumb {
  position: relative;
  z-index: 2;
}

:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_01"] { --zen-artwork-url: url("backgrounds/unit_01.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_02"] { --zen-artwork-url: url("backgrounds/unit_02.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_03"] { --zen-artwork-url: url("backgrounds/unit_03.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_04"] { --zen-artwork-url: url("backgrounds/unit_04.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_05"] { --zen-artwork-url: url("backgrounds/unit_05.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_06"] { --zen-artwork-url: url("backgrounds/unit_06.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_07"] { --zen-artwork-url: url("backgrounds/unit_07.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_08"] { --zen-artwork-url: url("backgrounds/unit_08.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_09"] { --zen-artwork-url: url("backgrounds/unit_09.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_10"] { --zen-artwork-url: url("backgrounds/unit_10.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_11"] { --zen-artwork-url: url("backgrounds/unit_11.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_12"] { --zen-artwork-url: url("backgrounds/unit_12.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_13"] { --zen-artwork-url: url("backgrounds/unit_13.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_14"] { --zen-artwork-url: url("backgrounds/unit_14.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_15"] { --zen-artwork-url: url("backgrounds/unit_15.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_16"] { --zen-artwork-url: url("backgrounds/unit_16.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_17"] { --zen-artwork-url: url("backgrounds/unit_17.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_18"] { --zen-artwork-url: url("backgrounds/unit_18.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_19"] { --zen-artwork-url: url("backgrounds/unit_19.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_20"] { --zen-artwork-url: url("backgrounds/unit_20.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_21"] { --zen-artwork-url: url("backgrounds/unit_21.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_22"] { --zen-artwork-url: url("backgrounds/unit_22.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_23"] { --zen-artwork-url: url("backgrounds/unit_23.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_24"] { --zen-artwork-url: url("backgrounds/unit_24.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_25"] { --zen-artwork-url: url("backgrounds/unit_25.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_26"] { --zen-artwork-url: url("backgrounds/unit_26.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_27"] { --zen-artwork-url: url("backgrounds/unit_27.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_28"] { --zen-artwork-url: url("backgrounds/unit_28.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_29"] { --zen-artwork-url: url("backgrounds/unit_29.webp"); }
:is(html[data-ui-experiment="zen-shell-all-units-v1"], html[data-practice-ui-experiment="zen-shell-all-units-v1"]) body[data-unit-id="unit_30"] { --zen-artwork-url: url("backgrounds/unit_30.webp"); }

/* Main 30-Unit directory: compact Zen shell, existing content and behavior. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] {
  min-width: 0;
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-shell {
  position: relative;
  width: min(1328px, 100%);
  max-width: none;
  padding: 18px 24px 72px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-guide-link {
  position: absolute;
  top: 42px;
  right: 48px;
  left: auto;
  z-index: 4;
  gap: 5px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
  .home-guide-label,
  .home-guide-hint
) {
  min-height: 40px;
  border: 1px solid var(--zen-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--zen-accent-dark);
  box-shadow: 0 8px 24px rgba(32, 37, 31, 0.07);
  font-size: 11px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-guide-label {
  padding: 6px 11px;
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-guide-hint {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero {
  min-height: 184px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--zen-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 16%, rgba(139, 188, 163, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 243, 239, 0.76));
  box-shadow: var(--zen-shadow-soft);
  backdrop-filter: blur(16px) saturate(1.02);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero-copy {
  width: min(660px, 58%);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-brand-line {
  margin-bottom: 9px;
  color: var(--zen-accent-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.065em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero h1 {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero .home-feature-line {
  max-width: 560px;
  margin-top: 11px;
  color: var(--zen-muted);
  font-size: 15px;
  font-weight: 600;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-family-collage::after {
  background: rgba(247, 248, 245, 0.52);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-family-collage {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-card {
  width: 168px;
  border-color: var(--zen-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(47, 107, 80, 0.07);
  opacity: 0.16;
  filter: saturate(0.66) contrast(0.9) brightness(1.04);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-effect {
  right: 390px;
  top: -70px;
  transform: rotate(-2deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-respond {
  right: 210px;
  top: 4px;
  transform: rotate(1deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-offer {
  right: 30px;
  top: -54px;
  transform: rotate(2deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-definite {
  right: 390px;
  top: 104px;
  transform: rotate(1deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-receive {
  right: 210px;
  top: 148px;
  transform: rotate(-2deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-serve {
  right: 30px;
  top: 94px;
  transform: rotate(-1deg);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-panel {
  min-height: 0;
  display: block;
  margin-top: 14px;
  padding: 22px 24px 18px;
  border: 1px solid var(--zen-line);
  border-left-width: 1px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 4% 0%, rgba(139, 188, 163, 0.17), transparent 34%),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-heading {
  gap: 3px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-heading h2 {
  color: var(--zen-ink);
  font-size: 22px;
  font-weight: 720;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-heading p {
  color: var(--zen-muted);
  font-size: 13px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-content {
  grid-template-columns: minmax(270px, 0.82fr) minmax(430px, 1.18fr);
  gap: 22px;
  margin-top: 14px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .today-training {
  gap: 15px;
  padding: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-plan-summary strong {
  color: var(--zen-ink);
  font-size: 20px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions {
  max-width: 480px;
  gap: 8px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions :where(
  .button,
  .button.primary,
  .button.secondary
) {
  min-height: 44px;
  border-radius: 14px;
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions .button.primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions .button.secondary {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress {
  gap: 7px;
  padding: 0 0 0 22px;
  border-left-color: var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-head strong,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-metrics,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-forecast strong {
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-track {
  height: 10px;
  border-color: var(--zen-line);
  background: #e9ece8;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-segment.unseen {
  background: #dce0dc;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-segment.learning {
  background: #b9cad0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-segment.consolidating {
  background: #8bbca3;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-segment.mastered {
  background: var(--zen-accent);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-help-wrap {
  margin-top: 12px;
  padding-top: 7px;
  border-top-color: var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-help-link {
  min-height: 36px;
  color: var(--zen-accent-dark);
  font-size: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card {
  min-height: 194px;
  padding: 16px;
  border: 1px solid var(--zen-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 22px rgba(47, 107, 80, 0.035);
  backdrop-filter: blur(10px) saturate(1.02);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card::before {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  box-shadow: 0 14px 34px rgba(47, 107, 80, 0.08);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card.is-current-unit {
  border-color: var(--zen-accent-line);
  background: linear-gradient(145deg, rgba(237, 243, 239, 0.95), rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 0 2px var(--zen-halo), 0 14px 34px rgba(47, 107, 80, 0.07);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card h3 {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
  font-size: 20px;
  font-weight: 700;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-focus-button {
  width: 44px;
  height: 44px;
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-focus-button[aria-pressed="true"] {
  border-color: rgba(76, 112, 143, 0.22);
  background: var(--zen-focus);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-meta {
  margin-top: 5px;
  color: var(--zen-muted);
  font-size: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-progress {
  margin-top: 5px;
  color: var(--zen-muted);
  font-size: 12px;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-progress[data-evidence="ready"] {
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-actions a {
  min-height: 44px;
  padding: 5px 7px;
  border-color: var(--zen-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--zen-accent-dark);
  font-size: 11px;
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-actions .unit-action-primary {
  grid-column: 1 / -1;
  min-height: 40px;
  border-color: rgba(57, 125, 94, 0.18);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-actions :where(
  .unit-action-assessment,
  .unit-action-test,
  .unit-action-practice
) {
  border-color: var(--zen-line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--zen-accent-dark);
}

@media (min-width: 900px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1360px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero-copy {
    width: min(660px, 78%);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .family-collage-card {
    opacity: 0.12;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-content {
    grid-template-columns: 1fr;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress {
    margin-top: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--zen-line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-shell {
    padding: 12px 10px 58px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-guide-link {
    position: static;
    width: fit-content;
    margin-bottom: 8px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-guide-hint {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero {
    min-height: 166px;
    padding: 22px 20px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero-copy {
    width: 100%;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero h1 {
    font-size: 32px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-panel {
    padding: 17px 15px 14px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions {
    grid-template-columns: 1fr;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-legend,
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
    .library-progress-metrics,
    .library-forecast
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-grid {
    grid-template-columns: 1fr;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card {
    min-height: 178px;
  }

}

/*
 * 2026-08-24 Zen package calibration.
 * Source authority: zen-tokens.ts + zen-interface-kit.tsx.
 * This layer changes only the opted-in shell and Unit 01 learning surfaces;
 * the signed practice workbench remains isolated below.
 */
html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .button,
  .entry-link,
  .current-learning-btn,
  .unit-focus-button,
  .assessment-return-bar a,
  .assessment-tools summary,
  .segmented button,
  .word-btn,
  .auditory-card button,
  .review-feedback,
  .primary-btn,
  .ghost-btn
) {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 600;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .eyebrow,
  .assessment-panel-kicker,
  .home-brand-line
) {
  color: var(--zen-accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .unit-hero h1,
  .study-hero h1,
  .assessment-page-hero h1,
  .assessment-hero h1,
  .home-hero h1
) {
  font-weight: 740;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .site-header,
  .study-topbar,
  .assessment-return-bar,
  .assessment-controls
) {
  backdrop-filter: blur(18px) saturate(1.06);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] :where(
  .entry-panel,
  .entry-link,
  .unit-focus-button
),
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .study-hero,
  .group-section,
  .word-card,
  .group-nav,
  .word-jump,
  .study-search,
  .current-learning-btn
),
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
  .home-hero,
  .daily-panel,
  .unit-card,
  .unit-card-actions a
) {
  transition:
    color 160ms var(--zen-ease),
    background-color 160ms var(--zen-ease),
    border-color 160ms var(--zen-ease),
    box-shadow 160ms var(--zen-ease),
    transform 160ms var(--zen-ease);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-grid {
  gap: 16px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-panel {
  padding: 22px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-head > img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] :where(
  .unit-module-state,
  .unit-practice-inventory
) {
  border-radius: 14px;
  background: rgba(247, 248, 245, 0.72);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link {
  border-radius: 14px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link.primary:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions .button.primary:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-actions .button.primary:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .test-setup .button.primary,
  .primary-btn
):hover {
  border-color: var(--zen-accent-dark);
  background: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .study-sidebar,
  .word-rail
) {
  background: rgba(247, 248, 245, 0.9);
  backdrop-filter: blur(18px) saturate(1.04);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-section {
  padding: 22px 24px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-head {
  border-bottom-color: var(--zen-line-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .pos-badge,
  .detail-label,
  .usage-scenario > span
) {
  border-color: var(--zen-line);
  border-radius: 999px;
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .usage-group,
  .learning-disclosure,
  .meaning-relation-card,
  .example
) {
  border-radius: 14px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example {
  background: rgba(247, 248, 245, 0.74);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .meaning-relation-card__title {
  background: rgba(237, 243, 239, 0.68);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .example-translation-disclosure > summary {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-controls {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(47, 107, 80, 0.045);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-session-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(139, 188, 163, 0.18), transparent 38%),
    var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .word-grid {
  gap: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] :where(
  .word-btn,
  .auditory-card
) {
  box-shadow: 0 5px 18px rgba(47, 107, 80, 0.03);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .test-setup,
  .unit-test-controls,
  .unit-test-summary,
  .unit-test-history
) {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(1.03);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
  background:
    radial-gradient(circle at 88% 8%, rgba(139, 188, 163, 0.16), transparent 36%),
    var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions :where(
  .button.primary,
  .button.secondary
) {
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-legend span:nth-child(1) {
  --legend-color: #cfd5cf !important;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-legend span:nth-child(2) {
  --legend-color: #b9cad0 !important;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-legend span:nth-child(3) {
  --legend-color: #8bbca3 !important;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .library-progress-legend span:nth-child(4) {
  --legend-color: #397d5e !important;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-progress::before {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border: 1px solid rgba(32, 37, 31, 0.18);
  border-radius: 50%;
  background: var(--zen-pending);
  content: "";
  vertical-align: 1px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-progress[data-evidence="ready"]::before {
  border-color: rgba(57, 125, 94, 0.3);
  background: var(--zen-accent);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-actions a:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card-actions a:focus-visible {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
  box-shadow: 0 8px 20px rgba(47, 107, 80, 0.06);
  transform: translateY(-2px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card.is-current-unit .unit-action-primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card.is-current-unit .unit-action-primary:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .unit-card.is-current-unit .unit-action-primary:focus-visible {
  border-color: var(--zen-accent-dark);
  background: var(--zen-accent-dark);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-help-link {
  min-height: 44px;
  border-radius: 12px;
  color: var(--zen-accent-dark);
  font-weight: 600;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] dialog {
  border-radius: 24px;
  box-shadow: var(--zen-shadow-raised);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] dialog::backdrop {
  background: rgba(32, 37, 31, 0.34);
  backdrop-filter: blur(8px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
  .dialog-card,
  .daily-plan-dialog-card
) {
  border: 1px solid var(--zen-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--zen-shadow-raised);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .dialog-head {
  border-bottom-color: var(--zen-line-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .dialog-head h2 {
  color: var(--zen-ink);
  font-weight: 720;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .dialog-close {
  width: 44px;
  height: 44px;
  border-color: var(--zen-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .dialog-close:hover {
  border-color: var(--zen-accent-line);
  background: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
  .rhythm-explainer li,
  .task-workload-warning
) {
  border-color: var(--zen-line);
  border-radius: 14px;
  background: rgba(247, 248, 245, 0.82);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
  .plan-form-grid input,
  .plan-form-grid select
) {
  min-height: 44px;
  border-color: var(--zen-line);
  border-radius: 12px;
  background: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] :where(
  .plan-form-grid input,
  .plan-form-grid select
):focus-visible {
  border-color: var(--zen-accent);
  outline: 2px solid var(--zen-focus-ring);
  outline-offset: 2px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .local-save-badge {
  border-color: var(--zen-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .local-save-badge::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--zen-accent);
  content: "";
}

/* Practice remains the signed white/gray workbench; only its moved trigger changes. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] body > #open-question-overview.zen-practice-drawer-trigger {
  position: fixed;
  z-index: 45;
  top: 50%;
  left: 0;
  width: 46px;
  min-width: 46px;
  height: 92px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px 5px;
  border: 1px solid rgba(30, 53, 46, 0.25);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: rgba(255, 255, 255, 0.98);
  color: #123d33;
  box-shadow: 0 8px 24px rgba(24, 42, 37, 0.11);
  transform: translateY(-50%);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: normal;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] body > #open-question-overview.zen-practice-drawer-trigger:hover {
  border-color: rgba(29, 89, 72, 0.48);
  background: #f6f9f7;
  box-shadow: 0 10px 28px rgba(24, 42, 37, 0.14);
  transform: translateY(-50%);
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] body > #open-question-overview.zen-practice-drawer-trigger:focus-visible {
  outline: 3px solid #1d5948;
  outline-offset: 3px;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] body > #open-question-overview.zen-practice-drawer-trigger[aria-expanded="true"] {
  border-color: #1d5948;
  background: #edf4f1;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .zen-practice-drawer-trigger img {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .zen-practice-drawer-trigger .zen-practice-drawer-label {
  display: block;
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
}

/* Unit 01 practice density experiment.
   Keep the signed white/gray workbench, but spend the viewport on reading and
   answering instead of metadata chrome.  Every selector is experiment-scoped
   so the shared practice runtime and Units 02–30 remain untouched. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-sat .practice-content,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-toefl_reading .practice-content {
  grid-template-columns: minmax(320px, 0.96fr) minmax(390px, 1.04fr);
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .material-card > header {
  gap: 8px;
  padding: 9px 14px;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .material-card > header > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] #material-title {
  min-width: 0;
  margin: 0;
  font-family: var(--content-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] #material-category {
  flex: none;
  margin: 0;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1.25;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-toefl_reading .passage {
  max-height: calc(100dvh - 120px);
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.72;
}

/* Complete Words keeps its title, material type, and live progress on one
   compact metadata row.  The passage remains a separate reading surface. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .material-card > header {
  min-width: 0;
  grid-column: 1;
  border-bottom: 0;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .composite-stats {
  min-width: max-content;
  align-self: center;
  grid-column: 2;
  margin: 7px 12px 7px 0;
  padding: 5px 8px;
  border: 0;
  background: #f2f6f4;
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .passage {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  line-height: 2;
}

/* The input is the only in-flow child that establishes the suffix baseline.
   Guides sit behind it, so inherited passage leading cannot lift the typed
   letters away from their one-to-one underlines. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot {
  align-items: baseline;
  margin: 0 0.22em;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 650 1em/1.25 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  vertical-align: baseline;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-prefix {
  font: inherit;
  line-height: 1.25;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry {
  position: relative;
  display: inline-flex;
  width: calc(var(--completion-letters) * 1ch);
  height: auto;
  align-items: baseline;
  grid-template: none;
  line-height: 1.25;
  vertical-align: baseline;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-letter-guides {
  position: absolute;
  inset: 0 0 0.05em;
  display: grid;
  width: 100%;
  height: auto;
  grid-template-columns: repeat(var(--completion-letters), 1ch);
  pointer-events: none;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-letter-guide::after {
  right: 0.1ch;
  bottom: 0;
  left: 0.1ch;
  border-bottom: 1px solid #879991;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 1.25em;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--forest-deep);
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.25;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry:focus-within,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot.is-current {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry:focus-within .completion-letter-guide::after,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot.is-current .completion-letter-guide::after {
  border-bottom-width: 2px;
  border-bottom-color: var(--forest);
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot.is-correct,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot.is-incorrect {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot.is-correct .completion-letter-guide::after {
  border-bottom-color: #3a8051;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .complete-word-slot.is-incorrect .completion-letter-guide::after {
  border-bottom-color: #a95147;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-actions {
  gap: 8px;
  margin-top: 14px;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-card.is-composite-controller .question-actions {
  margin-top: 7px;
  padding: 6px 8px;
  box-shadow: 0 5px 16px rgba(24, 42, 37, 0.07);
}

/* Active practice should occupy only the space its learning content needs.
   The shared workbench keeps idle/loading states viewport-high; retaining that
   minimum after a session starts leaves sentence and completion exercises with
   a large, misleading empty floor. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-panel:has(.session:not([hidden])) {
  min-height: 0;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .panel-choice > .eyebrow,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-choice-card > header .eyebrow,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-overview-card > header .eyebrow,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .reveal-heading .eyebrow,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session-complete > .eyebrow,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .progress-data-dialog .eyebrow {
  display: none;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-choice-card > header h2,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-overview-card > header h2 {
  margin-top: 0;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .question-card.is-composite-controller,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-sentence .question-card {
  padding-bottom: 14px;
}

@media (max-width: 900px) {
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-toefl_reading .passage {
    max-height: none;
  }

  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .material-card > header {
    padding-block: 8px;
  }

  html[data-practice-ui-experiment="zen-shell-all-units-v1"] #material-title {
    font-size: 19px;
  }
}

/*
 * Formal light-workspace unification.
 *
 * These selectors are intentionally limited to the signed Zen UI profile.
 * The practice profile keeps its independent white/gray workbench styling.
 */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-shell {
  width: min(1280px, calc(100% - 48px));
  padding-top: 20px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 22px;
  padding: 16px 0 22px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-session-panel {
  min-height: 0;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--zen-line);
  border-radius: 18px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] :where(
  .assessment-panel-kicker,
  .assessment-session-panel > div > strong
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-kicker {
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-actions .assessment-on-dark {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-actions .assessment-on-dark:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-panel-actions .assessment-on-dark:focus-visible {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .floating-card-host::backdrop {
  background: rgba(32, 37, 31, 0.28);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card {
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  padding: 24px;
  border: 1px solid var(--zen-line-strong);
  border-radius: 20px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-raised);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card h2 {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.04;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] :where(
  .assessment-card header p,
  .assessment-card .review-core-en,
  .assessment-card .review-core-cn,
  .assessment-card .review-word-meta
) {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card button {
  border-color: var(--zen-line);
  background: var(--zen-surface-soft);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card .assessment-choice.primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card :where(
  .review-full-meaning,
  .review-example-cues,
  .review-usage-group,
  .review-teaching-example,
  .review-relation-block
) {
  border-color: var(--zen-line);
  background: var(--zen-mist);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card .review-full-meaning {
  max-height: min(42vh, 430px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-stage {
  grid-template-columns: minmax(0, 1000px) minmax(170px, 196px);
  gap: 16px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-side-rail {
  min-height: clamp(430px, calc(100svh - 360px), 560px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
  padding: clamp(24px, 2.6vw, 36px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-card {
  min-height: 0;
}

/* A phone opens on learning content, not a tall independently scrolling menu. */
@media (max-width: 620px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 8px 12px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-sidebar h2,
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-sidebar > p {
    display: inline-block;
    margin: 0 8px 6px 0;
    font-size: 12px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-sidebar nav {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-nav {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    grid-template-columns: auto auto auto;
    gap: 8px;
    white-space: nowrap;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-hero {
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-hero h1 {
    font-size: 24px;
    margin-block: 4px;
  }
}

@media (max-width: 760px), (max-height: 520px) {
  :is(
    html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
      [data-page="home"],
      [data-page="auth"],
      [data-page="guide"],
      [data-page="practice-hub"],
      [data-page="review"],
      [data-unit-id]
    ),
    html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]
  ) {
    --zen-artwork-position: center top;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="home"],
    [data-page="auth"],
    [data-page="unit-home"]
  ) {
    --zen-artwork-opacity: 0.86;
    --zen-artwork-veil: rgba(247, 248, 245, 0.34);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
    [data-page="guide"],
    [data-page="practice-hub"],
    [data-page="review"]
  ) {
    --zen-artwork-opacity: 0.78;
    --zen-artwork-veil: rgba(247, 248, 245, 0.42);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id]:not([data-page="unit-home"]) {
    --zen-artwork-opacity: 0.76;
    --zen-artwork-veil: rgba(247, 248, 245, 0.44);
  }

  html[data-practice-ui-experiment="zen-shell-all-units-v1"] body[data-unit-id] {
    --zen-artwork-opacity: 0.72;
    --zen-artwork-veil: rgba(247, 248, 245, 0.48);
  }
}

/* Practice pool tabs carry both inventory and distinct-word coverage. Keep the
   secondary line quiet so the pool name remains the primary decision label. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-choice-card .pool-switch button {
  min-height: 52px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
  text-align: left;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-pool-label {
  color: inherit;
  font-size: 12px;
  font-weight: 750;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-pool-coverage {
  color: #68766f;
  font-size: 11px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .pool-switch button.is-active .practice-pool-coverage {
  color: #376a59;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .pool-switch button:disabled .practice-pool-coverage {
  color: #8a938f;
}

/* Keep account access discoverable without presenting implementation status
   as learner-facing copy. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-brand-line:has(.auth-account-entry) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .auth-account-entry {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--zen-line);
  border-radius: 999px;
  color: var(--zen-muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .auth-account-entry:hover {
  border-color: var(--zen-accent-line);
  color: var(--zen-accent-dark);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .auth-account-entry:focus-visible {
  outline: 2px solid var(--zen-focus-ring);
  outline-offset: 2px;
}

/* Final semantic colour pass for expanded vocabulary explanations.
   The colour is intentionally confined to the learning relationship blocks:
   green = similar meaning, peach = opposite meaning, blue = easy to confuse,
   and violet = derivation / word-building. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card h2:focus {
  outline: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="assessment"],
  [data-page="review"],
  [data-page="unit-test"]
) .review-relation-block:is(
  [data-relation-key="advanced_synonyms"],
  [data-relation-key="basic_synonyms"],
  [data-relation-key="near_synonyms"]
) {
  border-color: #b8d2c3;
  border-left: 3px solid #74a188;
  background: #eef5f0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="assessment"],
  [data-page="review"],
  [data-page="unit-test"]
) .review-relation-block:is(
  [data-relation-key="antonyms"],
  [data-relation-key="basic_antonyms"]
) {
  border-color: #e7c7ac;
  border-left: 3px solid #c88b61;
  background: #fbf2e9;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="assessment"],
  [data-page="review"],
  [data-page="unit-test"]
) .review-relation-block[data-relation-key="confusable_words"] {
  border-color: #bfd2df;
  border-left: 3px solid #789cb6;
  background: #edf3f7;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="assessment"],
  [data-page="review"],
  [data-page="unit-test"]
) .review-relation-block:is(
  [data-relation-key="nearby_words"],
  [data-relation-key="word_family"],
  [data-relation-key="related_words"],
  [data-relation-key="memory_links"]
) {
  border-color: #d4cbe2;
  border-left: 3px solid #9281ae;
  background: #f4f1f8;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body:is(
  [data-page="assessment"],
  [data-page="review"],
  [data-page="unit-test"]
) .review-relation-block > h4 {
  color: var(--zen-ink);
}

/*
 * 2026-08-27 full-surface completion pass.
 * Auth, compatibility routes, empty states and account dialogs now use the
 * same restrained Zen information hierarchy without changing data protocols.
 */

/* Authentication: compact context plus one focused form. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] {
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  background: var(--zen-mist);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 12px;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--zen-ink);
  color: #fff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-skip-link:focus {
  transform: translateY(0);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-shell {
  width: min(1080px, calc(100% - 48px));
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  margin: 0 auto;
  padding: 36px 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-context {
  min-width: 0;
  padding: 8px 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--zen-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 680;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .brand img {
  width: 38px;
  height: 30px;
  object-fit: contain;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .eyebrow {
  margin: 0 0 10px;
  color: var(--zen-accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-context h1 {
  max-width: 620px;
  margin: 0;
  color: var(--zen-ink);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .lead {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--zen-muted);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.72;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-benefits li {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--zen-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.64);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-benefits strong {
  color: var(--zen-ink);
  font-size: 13px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-benefits span {
  color: var(--zen-muted);
  font-size: 12px;
  line-height: 1.45;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-home-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--zen-accent-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--zen-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--zen-shadow-raised);
  backdrop-filter: blur(18px) saturate(1.04);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-panel-head {
  margin-bottom: 18px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-panel-head h2 {
  margin: 0;
  color: var(--zen-ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-panel-head > p:last-child {
  margin: 7px 0 0;
  color: var(--zen-muted);
  font-size: 13px;
  line-height: 1.55;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--zen-line);
  border-radius: 13px;
  background: #edf0ed;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .tab {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--zen-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .tab.active {
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: 0 4px 12px rgba(32, 37, 31, 0.07);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] #authForm {
  display: grid;
  gap: 13px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] #authForm label {
  display: grid;
  gap: 6px;
  color: var(--zen-ink);
  font-size: 13px;
  font-weight: 630;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] #authForm input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--zen-line-strong);
  border-radius: 11px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  font: inherit;
  font-size: 15px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] #authForm input::placeholder {
  color: #8a9088;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] #authForm input:focus {
  border-color: var(--zen-accent);
  outline: 3px solid var(--zen-halo);
  outline-offset: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] #authForm input[aria-invalid="true"] {
  border-color: #a95147;
  background: #fff9f8;
  outline-color: rgba(169, 81, 71, 0.16);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] :where(button.primary, button.secondary) {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--zen-line);
  border-radius: 11px;
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] button.primary {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #fff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-signout {
  border-color: transparent;
  background: transparent;
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] button:disabled {
  opacity: 0.5;
  cursor: wait;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .hint {
  margin: 2px 0 0;
  color: var(--zen-muted);
  font-size: 12px;
  line-height: 1.55;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .status {
  min-height: 20px;
  margin: 0;
  color: var(--zen-muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.5;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .status.error {
  color: #91463e;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .status.ok {
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .hidden {
  display: none !important;
}

/* The compatibility adapter must never fall back to browser-default HTML. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] {
  min-height: 100svh;
  margin: 0;
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] .practice-adapter-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] .practice-adapter-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--zen-line);
  border-radius: 20px;
  background: var(--zen-surface);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] .practice-adapter-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] .practice-adapter-card h1 {
  width: 100%;
  margin: 0;
  color: var(--zen-ink);
  font-size: 32px;
  font-weight: 710;
  letter-spacing: -0.025em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] #adapter-status {
  margin: 14px 0 0;
  color: var(--zen-muted);
  line-height: 1.65;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] .practice-adapter-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="practice-hub"] .practice-adapter-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--zen-line);
  border-radius: 11px;
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

/* Material and question are one continuous reading surface, including when an
   older saved session still carries a material-only/question-only pane value. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] #mobile-pane-tabs {
  display: none !important;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.has-reading-panes .material-card:not([hidden]),
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.has-reading-panes .question-card:not([hidden]) {
  display: block;
}

/* Full reference remains a compatibility route, but its complete information
   is readable, colour-coded and consistent with grouped learning. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] {
  min-width: 0;
  background: var(--zen-mist);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .unit-breadcrumb {
  border-bottom-color: var(--zen-line);
  background: rgba(247, 248, 245, 0.94);
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-layout {
  width: min(1420px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 auto;
  padding: 18px 0 72px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-sidebar {
  position: sticky;
  top: calc(var(--header-h, 60px) + 50px);
  max-height: calc(100svh - var(--header-h, 60px) - 68px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--zen-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--zen-shadow-soft);
  scrollbar-color: rgba(57, 125, 94, 0.28) transparent;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-sidebar h2 {
  margin: 0;
  color: var(--zen-ink);
  font-size: 18px;
  font-weight: 690;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-sidebar > p {
  margin: 4px 0 12px;
  color: var(--zen-muted);
  font-size: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] :where(
  .sidebar-search,
  .filter-chip,
  .pagination button,
  .reference-word-link
) {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .sidebar-search {
  min-height: 42px;
  border-radius: 10px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .filter-row {
  gap: 5px;
  margin-block: 10px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .filter-chip {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] :where(
  .filter-chip.active,
  .reference-word-link.active
) {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-word-link {
  min-height: 42px;
  border-radius: 9px;
  font-size: 13px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-main {
  min-width: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-card {
  margin: 0 0 14px;
  padding: 21px 22px;
  border: 1px solid var(--zen-line);
  border-radius: 18px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: 0 8px 26px rgba(47, 107, 80, 0.04);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-card:focus,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-card.hash-target {
  border-color: var(--zen-accent-line);
  outline: 3px solid var(--zen-halo);
  outline-offset: 2px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-head {
  padding-bottom: 14px;
  border-bottom-color: var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-head h2 {
  color: var(--zen-ink);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] :where(
  .word-index,
  .pos-badge,
  .usage-scenario > span,
  .detail-label
) {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] :where(
  .phonetic,
  .pos-summary,
  .core-en,
  .usage-focus,
  .usage-scenario,
  .mini-meaning,
  .mini-note
) {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] :where(
  .memory-hint,
  .learning-block,
  .usage-group,
  .example,
  .learning-disclosure,
  .meaning-relation-card
) {
  border-color: var(--zen-line);
  border-radius: 13px;
  background: var(--zen-mist);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .learning-block > h4 {
  margin-bottom: 10px;
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .example {
  background: var(--zen-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .example-translation-disclosure > summary {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-color: var(--zen-line);
  border-radius: 10px;
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .meaning-relation-card[data-relation-tone="synonym"] {
  border-left: 3px solid #7ea892;
  background: #eef5f0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .meaning-relation-card[data-relation-tone="antonym"] {
  border-left: 3px solid #d19a72;
  background: #fbf2e9;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .meaning-relation-card[data-relation-tone="confusable"] {
  border-left: 3px solid #8aa9c1;
  background: #edf3f7;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .meaning-relation-card[data-relation-tone="related"] {
  border-left: 3px solid #aaa18d;
  background: #f4f2ed;
}

/* Reduce non-learning chrome and empty canvases. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-return-bar {
  justify-content: flex-start;
  gap: 6px;
  padding: 4px max(18px, calc((100vw - 1280px) / 2));
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-return-bar a {
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-card > div:last-child {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-stage {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"][data-zen-runner-active="true"] .unit-test-stage {
  display: grid;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-host {
  min-height: clamp(340px, calc(100svh - 390px), 470px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-host:has(.review-full-meaning) {
  min-height: clamp(430px, calc(100svh - 320px), 560px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .assessment-controls .button.secondary {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-panel:has(
  .panel-choice:not([hidden]),
  .panel-empty:not([hidden]),
  .panel-error:not([hidden])
) {
  min-height: clamp(340px, calc(100svh - 210px), 620px);
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-panel:has(
  .panel-loading:not([hidden])
) {
  min-height: 340px;
}

html[data-practice-ui-experiment="zen-shell-all-units-v1"] :where(
  .panel-loading,
  .panel-choice,
  .panel-empty,
  .panel-error
) {
  min-height: inherit;
}

/* Account blockers and first-login migration use the same account vocabulary. */
html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .vocab-panorama-auth-blocker-card,
  .vocab-panorama-bootstrap-blocker,
  .vocab-panorama-migration-card
) {
  border-color: var(--zen-line);
  border-radius: 18px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-raised);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body .vocab-panorama-migration-dialog::backdrop {
  background: rgba(32, 37, 31, 0.28);
  backdrop-filter: blur(8px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .vocab-panorama-auth-blocker-card p,
  .vocab-panorama-migration-card > p:not(.vocab-panorama-migration-eyebrow),
  .vocab-panorama-migration-status
) {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .vocab-panorama-migration-eyebrow,
  .vocab-panorama-migration-card h2,
  .vocab-panorama-auth-blocker-card strong
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body :where(
  .vocab-panorama-auth-blocker-card a,
  .vocab-panorama-migration-actions button.primary
) {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #fff;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body .vocab-panorama-migration-actions button:not(.primary) {
  border-color: var(--zen-line);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
}

@media (max-width: 900px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-shell {
    width: min(680px, calc(100% - 28px));
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 22px 0 36px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-brand-row {
    margin-bottom: 28px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-context h1 {
    font-size: clamp(36px, 8vw, 48px);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-layout {
    width: min(100% - 24px, 920px);
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 560px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-benefits,
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .actions,
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .row {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="auth"] .auth-panel {
    padding: 20px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="reference"] .reference-card {
    padding: 17px;
  }
}

/* Daily review now shares the same light Zen reading surfaces. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] {
  background: var(--zen-mist);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-shell {
  width: min(1320px, calc(100% - 48px));
  padding-top: 18px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-summary-bar {
  gap: 18px;
  margin-bottom: 10px;
  padding: 14px 18px;
  border: 1px solid var(--zen-line);
  border-radius: 16px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] :where(
  .review-summary-main > span,
  .review-summary-main small,
  .review-summary-context span,
  .review-keyboard-help
) {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-keyboard-help {
  margin: 0 2px 10px;
  font-size: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-keyboard-help kbd {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-layout {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 210px);
  gap: 16px;
  min-height: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-host {
  min-height: 340px;
  place-items: stretch;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--zen-line);
  border-radius: 20px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-host:has(
  .review-example-cues,
  .review-full-meaning
) {
  min-height: clamp(440px, calc(100svh - 310px), 560px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-card {
  width: 100%;
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-head {
  border-bottom-color: var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-runner-head h2 {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui));
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] :where(
  .review-word-meta,
  .runner-status,
  .review-core-en,
  .review-core-cn,
  .review-runner-host .loading-state
) {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] :where(
  .review-example-cues,
  .review-full-meaning,
  .review-usage-group,
  .review-teaching-example,
  .review-relation-block,
  .review-examples p
) {
  border-color: var(--zen-line);
  background: var(--zen-mist);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-controls-host {
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--zen-line);
  border-radius: 16px;
  background: var(--zen-surface);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback {
  min-height: 46px;
  border-color: var(--zen-line);
  border-radius: 11px;
  background: var(--zen-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.known {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.vague {
  border-color: rgba(76, 112, 143, 0.24);
  background: var(--zen-focus);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.unfamiliar {
  border-color: rgba(117, 99, 72, 0.22);
  background: var(--zen-soft-risk);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.too-easy {
  position: relative;
  min-height: 56px;
  margin-top: 5px;
  border-color: rgba(176, 119, 35, 0.48);
  background: linear-gradient(145deg, rgba(255, 249, 231, 0.98), rgba(245, 224, 177, 0.94));
  color: #75470f;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 5px 14px rgba(128, 88, 27, 0.08);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.too-easy::after {
  content: "今日直接达标";
  display: block;
  margin-top: 2px;
  color: rgba(117, 71, 15, 0.72);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.too-easy:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.too-easy:focus-visible {
  border-color: rgba(150, 94, 18, 0.78);
  background: linear-gradient(145deg, #fff7df, #eed299);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.too-easy[aria-pressed="true"] {
  border-color: #9e6419;
  background: #ebcb88;
  color: #593406;
  box-shadow: 0 0 0 3px rgba(185, 125, 35, 0.18), 0 7px 16px rgba(128, 88, 27, 0.13);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-feedback.too-easy[disabled] {
  opacity: 0.42;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] :where(
  .state-tools,
  .daily-completion-card,
  .challenge-progress-card
) {
  border-color: var(--zen-line);
  border-radius: 16px;
  background: var(--zen-surface);
  color: var(--zen-ink);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__title {
  margin: 0;
  color: var(--zen-ink);
  font-size: 18px;
  line-height: 1.35;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] :where(
  .daily-practice-recommendations__status,
  .daily-practice-recommendations__summary
) {
  margin: 5px 0 0;
  color: var(--zen-muted);
  font-size: 13px;
  line-height: 1.55;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__link {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--zen-line);
  border-radius: 12px;
  background: var(--zen-mist);
  color: var(--zen-ink);
  text-decoration: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__link:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__link:focus-visible {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__kind {
  color: var(--zen-accent-dark);
  font-size: 14px;
  line-height: 1.35;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__meta {
  color: var(--zen-muted);
  font-size: 12px;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__taxonomy {
  color: var(--zen-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__words {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__word-role {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__word-role.direct {
  color: var(--zen-accent-dark);
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__word-role.context {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__more-copy {
  margin: 0;
  color: var(--zen-muted);
  font-size: 12px;
  line-height: 1.5;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__more-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--zen-accent-line);
  border-radius: 999px;
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__more-button:hover,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__more-button:focus-visible {
  background: var(--zen-calm);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 117, 87, 0.12);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__second {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--zen-line);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__second-title {
  margin: 0;
  color: var(--zen-ink);
  font-size: 15px;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__second-summary {
  margin: 4px 0 0;
  color: var(--zen-muted);
  font-size: 12px;
  line-height: 1.5;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__list.is-secondary {
  margin-top: 9px;
}

@media (max-width: 900px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="assessment"] .assessment-page-hero,
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .review-controls-host {
    position: static;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__list {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="review"] .daily-practice-recommendations__more {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Focused daily review: one reading plane, one decision rail, no nested scroll. */
html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .global-breadcrumb {
  display: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-shell {
  width: min(1180px, calc(100% - 40px));
  padding: 10px 0 64px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(250px, auto);
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 9px;
  padding: 5px 2px 8px;
  border: 0;
  border-bottom: 1px solid var(--zen-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-main {
  display: flex;
  align-items: baseline;
  gap: 2px 10px;
  flex-wrap: wrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-main h1 {
  margin: 0;
  color: var(--zen-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-main > span {
  color: var(--zen-ink);
  font-size: 13px;
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-main small {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-context {
  gap: 1px;
  justify-items: end;
  color: var(--zen-muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: right;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-summary-context span {
  font-size: inherit;
  font-weight: 560;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-keyboard-help {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
  margin: 0;
  padding-left: 13px;
  border-left: 1px solid var(--zen-line);
  color: var(--zen-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-keyboard-help p {
  margin: 0;
  white-space: nowrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-keyboard-help kbd {
  min-width: 20px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1.55;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-layout {
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 14px;
  align-items: start;
  min-height: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-runner-host {
  min-height: 320px;
  padding: 20px 22px;
  border-radius: 18px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-runner-host:has(.review-example-cues, .review-full-meaning) {
  min-height: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-runner-card {
  width: 100%;
  max-width: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-runner-head {
  padding-bottom: 13px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-runner-head h2 {
  font-size: clamp(38px, 4.2vw, 52px);
  line-height: 1.02;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .audio-first-label {
  margin-bottom: 5px;
  font-size: 21px;
  line-height: 1.3;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  :where(.review-reveal-actions, .review-example-cues, .review-full-meaning) {
  margin-top: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-full-meaning {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--zen-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-full-meaning .review-learning-section + .review-learning-section {
  margin-top: 15px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .runner-status,
html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .state-tools {
  display: none !important;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-controls-host {
  position: sticky;
  top: calc(var(--header-h, 60px) + 12px);
  min-height: 0;
  padding: 9px;
  border-radius: 14px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-controls-host .review-control-panel {
  gap: 7px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-feedback {
  min-height: 44px;
  padding: 8px;
  font-size: 13px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-feedback.too-easy {
  min-height: 56px;
  margin-top: 6px;
}

html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-commit-wrap {
  margin-top: 0;
}

@media (min-width: 901px) {
  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host:has(.review-control-panel) {
    position: sticky;
    top: calc(var(--header-h, 60px) + 12px);
    align-self: start;
    display: grid;
    place-items: center stretch;
    height: calc(100svh - var(--header-h, 60px) - 24px);
    min-height: 260px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host .review-control-panel {
    width: 100%;
    padding: 9px;
    border: 1px solid var(--zen-line);
    border-radius: 14px;
    background: var(--zen-surface);
    box-shadow: var(--zen-shadow-soft);
  }
}

@media (max-width: 900px) {
  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-shell {
    width: calc(100% - 58px);
    margin-right: 12px;
    margin-left: 46px;
    padding-top: 7px;
    padding-bottom: 108px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-summary-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-keyboard-help {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 4px 12px;
    padding: 4px 0 0;
    border: 0;
    border-top: 1px solid var(--zen-line);
    text-align: right;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-runner-host {
    min-height: 300px;
    padding: 17px 18px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host {
    position: fixed;
    z-index: 95;
    inset: auto 0 0;
    min-height: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 22px rgba(32, 37, 31, 0.1);
    backdrop-filter: blur(14px);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host .review-control-panel {
    width: min(760px, 100%);
    display: flex;
    align-items: stretch;
    gap: 7px;
    margin: 0 auto;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
  body[data-page="review"][data-review-focus-layout="v1"]
  .review-controls-host .review-feedback-row {
    flex: 1 1 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host .review-feedback.too-easy {
    min-height: 44px;
    margin-top: 0;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host .review-commit-wrap {
    flex: 0 0 102px;
    margin: 0;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host .review-commit-wrap span {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-controls-host .review-commit-wrap .primary-btn {
    width: 100%;
    min-height: 44px;
    padding: 6px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  /* Phones need full reading width and a separate, stable submit row. */
  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"] .review-summary-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"] .review-shell {
    width: calc(100% - 24px);
    margin-inline: 12px;
    padding-bottom: calc(170px + env(safe-area-inset-bottom));
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"] .review-controls-host .review-control-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"] .review-controls-host .review-feedback-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"] .review-controls-host .review-commit-wrap {
    min-width: 0;
    flex-basis: auto;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"] .review-runner-head h2 {
    overflow-wrap: anywhere;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-summary-main h1,
  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-summary-main small {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-keyboard-help {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"]
    body[data-page="review"][data-review-focus-layout="v1"]
    .review-runner-head h2 {
    font-size: clamp(34px, 10vw, 44px);
  }
}
/* CSP-safe presentation primitives. Values are expressed as external classes
   or data attributes because the preview and formal service intentionally
   reject inline style attributes. */
.zen-copy-fallback {
  position: fixed;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] .zen-guide-word-sample {
  color: var(--zen-ink);
  font-family: var(--font-learning, var(--font-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif));
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.zen-progress-pct-0 { width: 0% !important; }
.zen-progress-pct-1 { width: 1% !important; }
.zen-progress-pct-2 { width: 2% !important; }
.zen-progress-pct-3 { width: 3% !important; }
.zen-progress-pct-4 { width: 4% !important; }
.zen-progress-pct-5 { width: 5% !important; }
.zen-progress-pct-6 { width: 6% !important; }
.zen-progress-pct-7 { width: 7% !important; }
.zen-progress-pct-8 { width: 8% !important; }
.zen-progress-pct-9 { width: 9% !important; }
.zen-progress-pct-10 { width: 10% !important; }
.zen-progress-pct-11 { width: 11% !important; }
.zen-progress-pct-12 { width: 12% !important; }
.zen-progress-pct-13 { width: 13% !important; }
.zen-progress-pct-14 { width: 14% !important; }
.zen-progress-pct-15 { width: 15% !important; }
.zen-progress-pct-16 { width: 16% !important; }
.zen-progress-pct-17 { width: 17% !important; }
.zen-progress-pct-18 { width: 18% !important; }
.zen-progress-pct-19 { width: 19% !important; }
.zen-progress-pct-20 { width: 20% !important; }
.zen-progress-pct-21 { width: 21% !important; }
.zen-progress-pct-22 { width: 22% !important; }
.zen-progress-pct-23 { width: 23% !important; }
.zen-progress-pct-24 { width: 24% !important; }
.zen-progress-pct-25 { width: 25% !important; }
.zen-progress-pct-26 { width: 26% !important; }
.zen-progress-pct-27 { width: 27% !important; }
.zen-progress-pct-28 { width: 28% !important; }
.zen-progress-pct-29 { width: 29% !important; }
.zen-progress-pct-30 { width: 30% !important; }
.zen-progress-pct-31 { width: 31% !important; }
.zen-progress-pct-32 { width: 32% !important; }
.zen-progress-pct-33 { width: 33% !important; }
.zen-progress-pct-34 { width: 34% !important; }
.zen-progress-pct-35 { width: 35% !important; }
.zen-progress-pct-36 { width: 36% !important; }
.zen-progress-pct-37 { width: 37% !important; }
.zen-progress-pct-38 { width: 38% !important; }
.zen-progress-pct-39 { width: 39% !important; }
.zen-progress-pct-40 { width: 40% !important; }
.zen-progress-pct-41 { width: 41% !important; }
.zen-progress-pct-42 { width: 42% !important; }
.zen-progress-pct-43 { width: 43% !important; }
.zen-progress-pct-44 { width: 44% !important; }
.zen-progress-pct-45 { width: 45% !important; }
.zen-progress-pct-46 { width: 46% !important; }
.zen-progress-pct-47 { width: 47% !important; }
.zen-progress-pct-48 { width: 48% !important; }
.zen-progress-pct-49 { width: 49% !important; }
.zen-progress-pct-50 { width: 50% !important; }
.zen-progress-pct-51 { width: 51% !important; }
.zen-progress-pct-52 { width: 52% !important; }
.zen-progress-pct-53 { width: 53% !important; }
.zen-progress-pct-54 { width: 54% !important; }
.zen-progress-pct-55 { width: 55% !important; }
.zen-progress-pct-56 { width: 56% !important; }
.zen-progress-pct-57 { width: 57% !important; }
.zen-progress-pct-58 { width: 58% !important; }
.zen-progress-pct-59 { width: 59% !important; }
.zen-progress-pct-60 { width: 60% !important; }
.zen-progress-pct-61 { width: 61% !important; }
.zen-progress-pct-62 { width: 62% !important; }
.zen-progress-pct-63 { width: 63% !important; }
.zen-progress-pct-64 { width: 64% !important; }
.zen-progress-pct-65 { width: 65% !important; }
.zen-progress-pct-66 { width: 66% !important; }
.zen-progress-pct-67 { width: 67% !important; }
.zen-progress-pct-68 { width: 68% !important; }
.zen-progress-pct-69 { width: 69% !important; }
.zen-progress-pct-70 { width: 70% !important; }
.zen-progress-pct-71 { width: 71% !important; }
.zen-progress-pct-72 { width: 72% !important; }
.zen-progress-pct-73 { width: 73% !important; }
.zen-progress-pct-74 { width: 74% !important; }
.zen-progress-pct-75 { width: 75% !important; }
.zen-progress-pct-76 { width: 76% !important; }
.zen-progress-pct-77 { width: 77% !important; }
.zen-progress-pct-78 { width: 78% !important; }
.zen-progress-pct-79 { width: 79% !important; }
.zen-progress-pct-80 { width: 80% !important; }
.zen-progress-pct-81 { width: 81% !important; }
.zen-progress-pct-82 { width: 82% !important; }
.zen-progress-pct-83 { width: 83% !important; }
.zen-progress-pct-84 { width: 84% !important; }
.zen-progress-pct-85 { width: 85% !important; }
.zen-progress-pct-86 { width: 86% !important; }
.zen-progress-pct-87 { width: 87% !important; }
.zen-progress-pct-88 { width: 88% !important; }
.zen-progress-pct-89 { width: 89% !important; }
.zen-progress-pct-90 { width: 90% !important; }
.zen-progress-pct-91 { width: 91% !important; }
.zen-progress-pct-92 { width: 92% !important; }
.zen-progress-pct-93 { width: 93% !important; }
.zen-progress-pct-94 { width: 94% !important; }
.zen-progress-pct-95 { width: 95% !important; }
.zen-progress-pct-96 { width: 96% !important; }
.zen-progress-pct-97 { width: 97% !important; }
.zen-progress-pct-98 { width: 98% !important; }
.zen-progress-pct-99 { width: 99% !important; }
.zen-progress-pct-100 { width: 100% !important; }

html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="1"] { --completion-letters: 1; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="2"] { --completion-letters: 2; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="3"] { --completion-letters: 3; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="4"] { --completion-letters: 4; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="5"] { --completion-letters: 5; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="6"] { --completion-letters: 6; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="7"] { --completion-letters: 7; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="8"] { --completion-letters: 8; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="9"] { --completion-letters: 9; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="10"] { --completion-letters: 10; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="11"] { --completion-letters: 11; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="12"] { --completion-letters: 12; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="13"] { --completion-letters: 13; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="14"] { --completion-letters: 14; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="15"] { --completion-letters: 15; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="16"] { --completion-letters: 16; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="17"] { --completion-letters: 17; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="18"] { --completion-letters: 18; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="19"] { --completion-letters: 19; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="20"] { --completion-letters: 20; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="21"] { --completion-letters: 21; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="22"] { --completion-letters: 22; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="23"] { --completion-letters: 23; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="24"] { --completion-letters: 24; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="25"] { --completion-letters: 25; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="26"] { --completion-letters: 26; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="27"] { --completion-letters: 27; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="28"] { --completion-letters: 28; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="29"] { --completion-letters: 29; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="30"] { --completion-letters: 30; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="31"] { --completion-letters: 31; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="32"] { --completion-letters: 32; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="33"] { --completion-letters: 33; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="34"] { --completion-letters: 34; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="35"] { --completion-letters: 35; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="36"] { --completion-letters: 36; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="37"] { --completion-letters: 37; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="38"] { --completion-letters: 38; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="39"] { --completion-letters: 39; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .completion-word-entry[data-completion-letters="40"] { --completion-letters: 40; }


/* At 200% browser zoom the effective viewport can be both narrow and short.
   A sticky action bar then covers answer choices, so it returns to normal
   document flow for that constrained desktop viewport. */
@media (max-width: 900px) and (max-height: 520px) {
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-actions,
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-card.is-composite-controller .question-actions {
    position: static;
  }
}

@media (max-width: 680px) {
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .material-card {
    grid-template-columns: 1fr;
  }

  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .material-card > header,
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .composite-stats {
    grid-column: 1;
  }

  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-complete-words .composite-stats {
    width: fit-content;
    min-width: 0;
    margin: 0 14px 7px;
    white-space: normal;
  }
}

/* Standalone, side-by-side typography laboratory. */
body[data-type-lab-experiment="zen-shell-all-units-v1"] {
  --type-lab-bg: #f5f7f4;
  --type-lab-ink: #20251f;
  --type-lab-muted: #646c63;
  --type-lab-line: rgba(32, 37, 31, 0.13);
  --type-lab-accent: #397d5e;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  background: var(--type-lab-bg);
  color: var(--type-lab-ink);
  font-family: "Source Sans 3 Vocab", "Source Han Sans SC Vocab", "PingFang SC",
    sans-serif;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] *,
body[data-type-lab-experiment="zen-shell-all-units-v1"] *::before,
body[data-type-lab-experiment="zen-shell-all-units-v1"] *::after {
  box-sizing: border-box;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] a:focus-visible {
  outline: 2px solid #8bbca3;
  outline-offset: 3px;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-header h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--type-lab-muted);
  font-size: 14px;
  line-height: 1.65;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-back {
  flex: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--type-lab-line);
  border-radius: 9px;
  background: #ffffff;
  color: #2f6b50;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--type-lab-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(32, 37, 31, 0.06);
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen.current {
  font-family: "Source Sans 3 Vocab", "Source Han Sans SC Vocab", "PingFang SC",
    sans-serif;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen.apple {
  font-family: "SF Pro SC", "SF Pro Text", "PingFang SC", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen.plex {
  font-family: "ZenShellPlexSC", "IBM Plex Sans SC", "PingFang SC", sans-serif;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen.sarasa {
  font-family: "ZenShellSarasaSC", "Sarasa Gothic SC", "PingFang SC", sans-serif;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen-kicker {
  margin: 0 0 8px;
  color: var(--type-lab-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen-note {
  min-height: 42px;
  margin: 8px 0 14px;
  color: var(--type-lab-muted);
  font-size: 12px;
  line-height: 1.55;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-word-card {
  padding: 15px;
  border: 1px solid var(--type-lab-line);
  border-radius: 10px;
  background: #fbfcfb;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-word-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-word-row strong {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-word-row span {
  color: var(--type-lab-accent);
  font-size: 11px;
  font-weight: 700;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-meta {
  margin: 4px 0 0;
  color: var(--type-lab-muted);
  font-size: 12px;
  line-height: 1.5;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-core-cn {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-core-en,
body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-example,
body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-dense-line {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.62;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-example {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--type-lab-line);
  font-weight: 600;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-dense-line {
  color: var(--type-lab-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid var(--type-lab-line);
  border-radius: 8px;
  background: #ffffff;
  color: #2f6b50;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-specimen-actions a:first-child {
  border-color: var(--type-lab-accent);
  background: var(--type-lab-accent);
  color: #ffffff;
}

@media (max-width: 1180px) {
  body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-shell {
    width: min(100% - 20px, 1500px);
    padding-top: 16px;
  }

  body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-type-lab-experiment="zen-shell-all-units-v1"] .type-lab-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * All-Unit light recall workspace + compact continuity affordances.
 *
 * Keep this final experiment layer after the imported Zen calibration so the
 * baseline dark review runner cannot leak back into the Unit 01 branch.  The
 * signed/shared review runtime and all non-experimental units remain untouched.
 */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] {
  --zen-test-surface: #ffffff;
  --zen-test-surface-soft: #f4f7f4;
  --zen-test-surface-quiet: #fafbfa;
  --zen-test-border: rgba(32, 37, 31, 0.12);
  --zen-test-border-strong: rgba(32, 37, 31, 0.19);
  color: var(--zen-ink);
  font-family: "SF Pro SC", "SF Pro Text", "PingFang SC", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .assessment-shell,
  .unit-test-stage,
  .unit-test-host,
  .unit-test-side-rail,
  .review-runner-card,
  .review-runner-head,
  .review-full-meaning,
  .unit-test-controls
) {
  min-width: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-shell {
  width: min(1360px, calc(100% - 48px));
  padding-top: 20px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-hero {
  background: var(--zen-test-surface);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup {
  gap: 14px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.92);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup[data-session-active="true"] {
  background: rgba(250, 251, 250, 0.94);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-status {
  margin-block: 10px 8px;
  color: var(--zen-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-stage {
  grid-template-columns: minmax(0, 980px) minmax(160px, 190px);
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
  min-height: clamp(520px, calc(100svh - 270px), 700px);
  align-content: start;
  place-items: stretch;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--zen-test-border);
  border-radius: 20px;
  background: var(--zen-test-surface);
  color: var(--zen-ink);
  box-shadow: 0 16px 42px rgba(47, 107, 80, 0.06),
    0 2px 10px rgba(32, 37, 31, 0.035);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host:empty {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-card {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head {
  padding: 2px 0 17px;
  border-bottom: 1px solid var(--zen-test-border);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head h2 {
  margin: 0;
  color: var(--zen-ink);
  font-family: "SF Pro SC", "SF Pro Text", "PingFang SC", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .audio-first-label {
  margin: 0 0 6px;
  color: var(--zen-ink);
  font-size: clamp(21px, 2.3vw, 26px);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-word-meta,
  .runner-status,
  .review-core-en,
  .review-core-cn
) {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-word-meta {
  margin: 7px 0 0;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.5;
}

html[data-ui-experiment="zen-shell-all-units-v1"] .assessment-pronunciations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] .assessment-pronunciations button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--zen-test-border, #dbe4de);
  border-radius: 10px;
  background: var(--zen-test-surface-soft, #f5f8f6);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--zen-accent-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

html[data-ui-experiment="zen-shell-all-units-v1"] .assessment-pronunciations button[aria-pressed="true"] {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] .assessment-pronunciations button:focus-visible {
  outline: 2px solid var(--zen-accent-dark, #27624e);
  outline-offset: 2px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-reveal-actions {
  gap: 7px;
  margin-top: 14px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .audio-play,
  .ghost-btn,
  .primary-btn
) {
  min-height: 40px;
  border-radius: 12px;
  font-weight: 650;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .audio-play {
  width: 40px;
  height: 40px;
  padding: 0;
  border-color: var(--zen-test-border-strong);
  background: var(--zen-test-surface-soft);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .ghost-btn {
  border-color: var(--zen-test-border);
  background: var(--zen-test-surface);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .primary-btn {
  border-color: var(--zen-accent);
  background: var(--zen-accent);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(47, 107, 80, 0.14);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .audio-play,
  .ghost-btn
):hover {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-example-cues {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--zen-test-border);
  border-radius: 14px;
  background: var(--zen-test-surface-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-example-cues h3 {
  margin: 0 0 8px;
  color: var(--zen-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-example-cues p {
  margin: 7px 0 0;
  padding: 9px 11px;
  border: 1px solid var(--zen-test-border);
  border-left: 2px solid var(--zen-accent);
  border-radius: 9px;
  background: var(--zen-test-surface);
  color: var(--zen-ink);
  font-size: 15px;
  line-height: 1.58;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-full-meaning {
  max-height: none;
  height: auto;
  overflow: visible;
  margin-top: 14px;
  padding: clamp(15px, 2vw, 20px);
  border: 1px solid var(--zen-test-border);
  border-radius: 14px;
  background: var(--zen-test-surface-quiet);
  color: var(--zen-ink);
  box-shadow: none;
  scrollbar-color: rgba(57, 125, 94, 0.35) transparent;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-full-meaning :where(
  .review-learning-section > h3,
  .review-usage-group > header h4,
  .review-relation-block > h4,
  .review-relation-item h5
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-full-meaning .review-learning-section + .review-learning-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: var(--zen-test-border);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-usage-group,
  .review-teaching-example,
  .review-relation-block
) {
  border-color: var(--zen-test-border);
  background: var(--zen-test-surface);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-pattern-row code,
  .review-phrase-row > span,
  .review-pos-badge,
  .review-root-affix
) {
  border-color: var(--zen-test-border);
  background: var(--zen-calm);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-example-en,
  .review-relation-example,
  .review-meaning-focus,
  .review-when-to-use,
  .review-student-note
) {
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .review-full-meaning .review-core-en,
  .review-example-en,
  .review-relation-example
) {
  font-family: inherit;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-full-meaning .review-examples p {
  border: 1px solid var(--zen-test-border);
  border-left: 2px solid var(--zen-accent);
  background: var(--zen-test-surface);
  color: var(--zen-ink);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-full-meaning .review-examples small {
  color: var(--zen-muted);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .runner-status {
  margin: auto 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--zen-test-border);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-side-rail {
  min-height: clamp(520px, calc(100svh - 270px), 700px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 9px 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-controls {
  position: static;
  top: auto;
  width: 100%;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-control-panel {
  width: 100%;
  gap: 8px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback {
  min-height: 46px;
  border-color: var(--zen-test-border);
  border-radius: 11px;
  background: var(--zen-test-surface);
  color: var(--zen-ink);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback.known {
  background: var(--zen-calm);
  color: var(--zen-accent-dark);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback.vague {
  background: var(--zen-focus);
  color: #365268;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback.unfamiliar {
  background: var(--zen-soft-risk);
  color: #514b43;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-feedback[aria-pressed="true"] {
  border-color: var(--zen-accent);
  box-shadow: 0 0 0 2px var(--zen-halo);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-commit-wrap {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-commit-wrap span {
  color: var(--zen-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

/* Keyboard help lives in the otherwise unused upper-right rail. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .zen-unit-test-shortcuts,
  .review-shortcut-hints
) {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--zen-muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.4;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-unit-test-shortcuts > p {
  margin: 0;
  color: var(--zen-muted);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .zen-shortcut-list,
  .review-shortcut-hints ul
) {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-shortcut-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
  .zen-shortcut-key,
  .review-shortcut-hints kbd
) {
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 3px;
  padding: 2px 6px;
  border: 1px solid var(--zen-test-border-strong);
  border-radius: 6px;
  background: var(--zen-test-surface);
  color: var(--zen-accent-dark);
  box-shadow: inset 0 -1px 0 rgba(32, 37, 31, 0.12);
  font: 650 10px/1.35 "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-history {
  display: none !important;
}

/* Grouped-learning continuity bar and Unit-home resume metadata. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .zen-learning-position-bar,
  .grouped-resume-bar
) {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid var(--zen-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--zen-muted);
  box-shadow: 0 6px 18px rgba(47, 107, 80, 0.04);
  backdrop-filter: blur(12px) saturate(1.02);
  font-size: 12px;
  line-height: 1.45;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .zen-learning-position-copy,
  .learning-resume-meta
) {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px 9px;
  flex: 1 1 280px;
  flex-wrap: wrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-learning-position-value {
  color: var(--zen-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-learning-position-word {
  min-width: 0;
  color: var(--zen-accent-dark);
  font-weight: 650;
  overflow-wrap: anywhere;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .zen-learning-position-reset,
  .grouped-resume-bar button
) {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--zen-line-strong);
  border-radius: 10px;
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
  .zen-learning-position-reset,
  .grouped-resume-bar button
):hover {
  border-color: var(--zen-accent-line);
  background: var(--zen-calm);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .learning-resume-meta {
  min-width: 0;
  display: block;
  margin-top: 2px;
  color: var(--zen-muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .entry-link.primary .learning-resume-meta {
  color: rgba(255, 255, 255, 0.78);
}

/* Family maps now share the same quiet Zen workspace instead of dropping back
   to the warmer legacy surface. The graph semantics and source data stay intact. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .map-shell {
  width: min(1240px, calc(100% - 48px));
  padding-top: 24px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .map-hero {
  padding: 26px 30px;
  border-color: var(--zen-line);
  border-radius: 22px;
  background: var(--zen-surface);
  box-shadow: var(--zen-shadow-soft);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .map-hero h1 {
  color: var(--zen-ink);
  font: 680 clamp(34px, 4vw, 48px) / 1.08 var(--font-learning, var(--font-ui));
  letter-spacing: -0.035em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .assessment-controls {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--zen-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(32, 37, 31, 0.04);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .family-map-card {
  padding: 18px;
  border-color: var(--zen-line);
  border-radius: 18px;
  background: var(--zen-surface);
  box-shadow: 0 10px 30px rgba(32, 37, 31, 0.045);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .family-map-card h2 {
  color: var(--zen-ink);
  font-size: 23px;
  letter-spacing: -0.02em;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .family-graph {
  border-color: var(--zen-line);
  border-radius: 14px;
  background: var(--zen-mist);
  background-image: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .family-edge-row {
  border-radius: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .family-node {
  border-color: var(--zen-line-strong);
  background: var(--zen-surface);
  color: var(--zen-accent-dark);
  box-shadow: none;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .family-node.core {
  border-color: var(--zen-accent-dark);
  background: var(--zen-accent-dark);
  color: #ffffff;
}

@media (max-width: 900px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .map-shell {
    width: min(100% - 28px, 1240px);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="family-maps"] .map-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-side-rail {
    min-height: 0;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 0;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-unit-test-shortcuts {
    padding: 8px 0 0;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-unit-test-shortcuts > p {
    display: none;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-shortcut-list {
    display: flex;
    align-items: center;
    gap: 5px 12px;
    flex-wrap: wrap;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-shortcut-list li {
    width: auto;
    display: inline-flex;
    gap: 4px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-controls {
    position: relative;
    top: auto;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-controls .review-feedback-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-shell {
    width: min(100% - 20px, 1360px);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
    min-height: 460px;
    padding: 18px 15px;
    border-radius: 16px;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head h2 {
    font-size: clamp(40px, 13vw, 58px);
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
    .zen-unit-test-shortcuts,
    .review-shortcut-hints
  ) {
    align-items: flex-start;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
    .zen-learning-position-bar,
    .grouped-resume-bar
  ) {
    align-items: stretch;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
    .zen-learning-position-reset,
    .grouped-resume-bar button
  ) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
    .review-runner-card,
    .review-reveal-actions,
    .review-full-meaning,
    .zen-unit-test-shortcuts
  ),
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
    .zen-learning-position-bar,
    .grouped-resume-bar
  ) {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] :where(
    .unit-test-host,
    .review-example-cues,
    .review-full-meaning,
    .unit-test-controls,
    .zen-unit-test-shortcuts,
    .review-shortcut-hints
  ),
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :where(
    .zen-learning-position-bar,
    .grouped-resume-bar
  ) {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}

/* Final active-runner density refinement. This block intentionally follows
   the runner theme so the compact progress chip wins the cascade. */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-practice-action a[data-zen-compact-practice="true"] .formal-question-count {
  display: inline;
  margin: 0;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-card {
  position: relative;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head {
  padding-right: min(46%, 380px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .runner-status {
  position: absolute;
  top: 18px;
  right: 20px;
  max-width: min(46%, 360px);
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--zen-line);
  border-radius: 999px;
  background: var(--zen-mist);
  color: var(--zen-muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head {
    padding-right: 0;
  }

  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .runner-status {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin-top: 16px;
    text-align: left;
  }
}

/* Desktop proportions must never override the earlier single-column breakpoint. */
@media (min-width: 901px) {
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-stage {
  grid-template-columns: minmax(0, 1000px) minmax(170px, 196px);
  gap: 16px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-side-rail {
  min-height: clamp(430px, calc(100svh - 360px), 560px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
  padding: clamp(24px, 2.6vw, 36px);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-card {
  min-height: 0;
}
}

/* Phone recall: one reading column, reachable feedback, and space beneath it. */
@media (max-width: 680px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .assessment-shell {
    width: calc(100% - 20px);
    padding-top: 8px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup > div {
    min-width: 0;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup h2 {
    margin: 0 0 5px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .segmented {
    display: flex;
    width: 100%;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .segmented button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    white-space: nowrap;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .test-setup-actions button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-host {
    min-height: 260px;
    padding: 18px 15px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .unit-test-side-rail {
    display: block;
    min-height: 0;
    padding: 0;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .zen-unit-test-shortcuts {
    display: none;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-runner-head h2 {
    font-size: clamp(28px, 9vw, 40px);
    overflow-wrap: anywhere;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"][data-zen-runner-active="true"] .assessment-shell {
    padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"][data-zen-runner-active="true"] .unit-test-controls {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    width: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--zen-line);
    background: var(--zen-test-surface);
    box-shadow: 0 -4px 18px rgba(32, 37, 31, 0.06);
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-commit-wrap {
    gap: 4px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-test"] .review-commit-wrap .primary-btn {
    width: 100%;
    min-height: 44px;
  }
}
/* Question navigation is one peer group, not split between toolbar and footer. */
html[data-practice-ui-experiment] {
  min-width: 0;
}
html[data-practice-ui-experiment] .practice-step-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
html[data-practice-ui-experiment] .practice-step-navigation > button {
  margin: 0;
  min-height: 44px;
}
@media (max-width: 620px) {
  html[data-practice-ui-experiment] .practice-step-navigation {
    grid-column: 1 / -1;
    width: 100%;
    flex: 1 0 100%;
    justify-content: space-between;
  }
}

/* listening-toolbar-compact-v2: UI-only append */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session-tools #open-question-overview.is-listening-docked {
  position:static;
  inset:auto;
  transform:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
  width:auto;
  min-width:64px;
  flex:0 0 auto;
  white-space:nowrap;
  height:40px;
  padding:6px 9px;
  writing-mode:horizontal-tb;
  border-radius:6px;
  box-shadow:none;
  font-size:12px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session-tools #open-question-overview.is-listening-docked img {
  width:14px;
  height:14px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session-tools #open-question-overview.is-listening-docked span {
  white-space:nowrap;
  writing-mode:horizontal-tb;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .audio-wrap.is-listening-compact {
  display:block;
  min-width:0;
  padding:6px 12px 8px;
  border:0;
  background:#f8faf9;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .audio-wrap.is-listening-compact > .audio-heading {
  display:none !important;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact > audio {
  display:block;
  width:100%;
  min-width:0;
  height:32px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact > .audio-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:2px 8px;
  min-width:0;
  margin:2px 0 0;
  padding:0;
  border:0;
  background:transparent;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact :is(.listening-playback-controls,.listening-mode-switch,.listening-sentence-controls) {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .listening-playback-controls {
  flex-wrap:nowrap;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .audio-tools :is(button,select) {
  box-sizing:border-box;
  flex:0 0 auto;
  min-width:32px;
  min-height:28px;
  height:28px;
  max-width:100%;
  margin:0;
  padding:3px 6px;
  border:0;
  border-radius:3px;
  color:#426654;
  background:transparent;
  font:inherit;
  font-size:12px;
  font-weight:500;
  line-height:1.3;
  cursor:pointer;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .audio-tools button:hover {
  color:#1d533c;
  background:#eef3ef;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .listening-playback-controls label {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:2px;
  min-width:0;
  margin:0 3px;
  padding-left:8px;
  color:#7b877f;
  font-size:11px;
  border-inline:1px solid #e2e8e4;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact #playback-speed {
  width:55px;
  padding-inline:3px;
  font-variant-numeric:tabular-nums;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .listening-mode-switch button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .listening-mode-switch button img {
  display:none;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact #listening-practice-tab {
  color:#758278;
  font-weight:400;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact #listening-intensive-tab {
  color:#285a40;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact #listening-assistance-note {
  display:inline;
  margin:0;
  padding:0;
  color:#879389;
  background:transparent;
  font-size:10px;
  font-weight:400;
  line-height:1.3;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .listening-sentence-controls {
  flex-basis:100%;
  gap:4px;
  border-top:1px solid #e9eeeb;
  padding-top:3px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .listening-sentence-controls:not(:has(button:not([hidden]))) {
  display:none;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .audio-tools .is-active {
  color:#24594a;
  text-decoration:underline;
  text-underline-offset:4px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .audio-tools :is(button,select):focus-visible {
  outline:2px solid #397d5e;
  outline-offset:1px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .audio-tools [hidden] {
  display:none !important;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact #transcript-title {
  scroll-margin-block-start:112px;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-toefl_listening #question-card {
  scroll-margin-block-start:112px;
}
@media (max-width:620px) {
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .audio-wrap.is-listening-compact { padding:4px 8px 6px; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact #transcript-title,
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .session.is-toefl_listening #question-card { scroll-margin-block-start:calc(168px + env(safe-area-inset-top,0px)); }
}
@media (pointer:coarse) {
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact .audio-tools :is(button,select) { min-width:44px;min-height:44px;height:44px; }
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .is-listening-compact > audio { height:40px; }
}

/* practice-question-navigation-v1: keep mobile navigation tools within the viewport */
@media (max-width: 360px) {
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-header .session-tools {
    flex-wrap: wrap;
  }
}

/* home-daily-clarity-v1: current work first, optional long-term analytics */
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-content { display: block; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .today-training { grid-template-rows: auto auto; gap: 12px; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-heading p { display: none; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-plan-summary { gap: 4px; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-task-note { margin: 0; color: var(--zen-muted); font-size: 13px; line-height: 1.6; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] #dailyPlanSummary { font-weight: 400; font-size: 12px; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; border-top: 1px solid var(--zen-line); padding-top: 10px; margin-top: 14px; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-resume > span { color: var(--zen-muted); font-size: 12px; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-resume a { color: var(--zen-accent-dark); font-size: 15px; font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; max-width: 100%; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-progress-details { margin-top: 4px; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-progress-details > summary { color: var(--zen-muted); cursor: pointer; font-size: 13px; padding: 10px 0; min-height: 44px; box-sizing: border-box; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-progress-details .library-progress { border: 0; padding: 12px 0 4px; margin: 0; }
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions [data-dialog-open="dailyPlanDialog"] { border-color: transparent; background: transparent; }
@media (max-width: 760px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero { min-height: 0; padding: 18px; }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-hero h1 { font-size: 28px; }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions [data-continue-daily-challenge] { grid-column: 1 / -1; }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .daily-actions .button { font-size: 13px; padding: 10px; overflow-wrap: anywhere; }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .home-resume { display: grid; gap: 0; }
}

/* mobile-reading-clarity-v1: preserve content; remove nested phone gutters */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .question-actions :is(button, .start-button),
html[data-practice-ui-experiment="zen-shell-all-units-v1"] .practice-step-navigation > button {
  font-size: 14px;
  min-height: 44px;
}
@media (max-width: 760px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .study-main {
    margin-inline: 10px;
    min-width: 0;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-header {
    padding: 16px 14px;
    border: 1px solid var(--zen-line);
    border-radius: 14px;
    background: var(--zen-surface);
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .group-header .group-number {
    top: 16px;
    left: 14px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-card {
    padding: 16px 14px;
    border-radius: 14px;
    box-shadow: none;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .word-title-row h3 {
    font-size: clamp(22px, 6.5vw, 28px);
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure {
    display: block;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure > summary {
    min-height: 40px;
    font-size: 14px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .zen-memory-disclosure > p {
    margin: 0 10px 10px;
    font-size: 15px;
    line-height: 1.65;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] .learning-block {
    padding-left: 10px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="grouped"] :is(.usage-group, .example-text, .teaching-note) {
    font-size: 16px;
    line-height: 1.65;
  }
  html[data-practice-ui-experiment="zen-shell-all-units-v1"] .option-button {
    font-size: 15px;
    line-height: 1.55;
    min-height: 44px;
  }
}
/* end mobile-reading-clarity-v1 */

/* practice-action-priority-v2: emphasis only; retain existing button geometry. */
html[data-practice-ui-experiment="zen-shell-all-units-v1"] :is(#next-question, #check-answer, #check-material):not(.primary-action) {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--forest-deep);
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] :is(#next-question, #check-answer, #check-material).primary-action {
  border-color: var(--forest);
  background: var(--forest);
  color: #ffffff;
}
html[data-practice-ui-experiment="zen-shell-all-units-v1"] :is(#next-question, #check-answer, #check-material).primary-action:hover:not(:disabled) {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
}
/* end practice-action-priority-v2 */


/* JT brand and unit progress cards. Reuse the existing transparent JT mark. */
html[data-ui-experiment="zen-shell-all-units-v1"] body .site-brand,
html[data-ui-experiment="zen-shell-all-units-v1"] body .study-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body .jt-brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="home"] .jt-home-logo {
  display: block;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  object-fit: contain;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  padding: 15px 16px;
  border: 1px solid rgba(57, 125, 94, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8faf8, #f0f5f1);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state[data-progress-state="complete"] {
  border-color: rgba(57, 125, 94, 0.27);
  background: linear-gradient(135deg, #f4faf5, #e8f3ea);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state .unit-module-state-label {
  color: #577667;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-align: left;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state .unit-module-state-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e2eee5;
  color: #2f694b;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state[data-progress-state="empty"] .unit-module-state-rate,
html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state[data-progress-state="loading"] .unit-module-state-rate {
  background: #e9eeea;
  color: #61736a;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state > strong {
  display: block;
  color: #203c2e;
  font-size: 20px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state .unit-module-state-detail {
  color: #637269;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-progress {
  width: 100%;
  height: 8px;
  margin-top: 3px;
  border-radius: 999px;
  background: #dfe9e2;
  box-shadow: inset 0 1px 2px rgba(34, 71, 49, 0.06);
}

html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b9971, #307654);
  transition: width 260ms var(--zen-ease);
}

@media (max-width: 640px) {
  html[data-ui-experiment="zen-shell-all-units-v1"] body .jt-brand-logo {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  html[data-ui-experiment="zen-shell-all-units-v1"] body[data-page="unit-home"] .unit-module-state {
    min-height: 124px;
  }
}
