    /* ─── DESIGN TOKENS (matched to Speak3000) ──────────────────────── */
    .reader-root {
      --bg: #f6f8fb;
      --bg-2: #f0f3f8;
      --panel: rgba(255, 255, 255, .92);
      --panel-strong: #fff;
      --text: #1a1d23;
      --muted: #6b7280;
      --border: #e6e8eb;
      --accent: #3b7bec;
      --accent-2: #2563eb;
      --accent-soft: rgba(59, 123, 236, .08);
      --warm: #fdf9f3;
      --warm-2: #fffaf2;
      --keyword-highlight: #fff7cc;
      --correct: #edfaf3;
      --wrong: #fff1f1;
      --shadow: 0 10px 24px rgba(14, 25, 40, .07);
      --radius: 18px;
      --radius-sm: 12px;
      --drawer-width: 320px;
      --topbar-h: 64px;
      --hero-ring: rgba(59, 123, 236, .12);
      --danger: #dc2626;
      --danger-soft: #fff1f1;
      --reading-font-size: 1.05em;
      /* Added for dynamic resizing */
    }

    .reader-root.theme-dark {
      --bg: #111722;
      --bg-2: #162031;
      --panel: rgba(22, 32, 49, .85);
      --panel-strong: #172131;
      --text: #edf2f7;
      --muted: #b8c2d1;
      --border: #2b3c58;
      --warm: #1b2a3c;
      --warm-2: #1a2737;
      --keyword-highlight: #42361d;
      --correct: #153427;
      --wrong: #3a1f22;
      --shadow: 0 20px 40px rgba(0, 0, 0, .28);
      --accent-soft: rgba(110, 169, 255, .12);
      --hero-ring: rgba(110, 169, 255, .12);
      --danger: #f87171;
      --danger-soft: #311818;
    }

    .reader-root *,
    .reader-root *::before,
    .reader-root *::after {
      box-sizing: border-box
    }

    .reader-root,
    .reader-root {
      margin: 0;
      min-height: 100%;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background: var(--bg);
      overflow-x: clip;
      font-size: 20px;
      line-height: 1.75;
      transition: background .28s ease, color .28s ease;
    }

    .reader-root::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -2;
      background:
        radial-gradient(ellipse at top left, rgba(230, 238, 255, .42) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
      background-repeat: no-repeat;
      background-attachment: fixed;
    }

    .reader-root.theme-dark::before {
      background:
        radial-gradient(circle at top left, rgba(44, 65, 96, .55) 0%, transparent 28%),
        radial-gradient(circle at top right, rgba(39, 57, 85, .6) 0%, transparent 24%),
        linear-gradient(180deg, #162031 0%, #111722 100%);
    }

    .reader-root button,
    .reader-root select {
      font: inherit
    }

    .reader-root .app {
      min-height: 100vh;
      display: flex;
      flex-direction: column
    }

    /* ─── FOCUS MODE (Zen) ───────────────────────────────────────────── */
    .reader-root.focus-mode .side-col {
      display: none !important;
    }

    .reader-root.focus-mode .layout {
      grid-template-columns: 1fr;
      max-width: 900px;
      margin-inline: auto;
    }

    /* ─── DRAWER ─────────────────────────────────────────────────────── */
    .reader-root .drawer {
      position: fixed;
      top: 0;
      right: 0;
      width: var(--drawer-width);
      height: 100vh;
      z-index: 60;
      transform: translateX(100%);
      transition: transform .34s cubic-bezier(.2, .8, .2, 1);
      background: var(--panel-strong);
      border-left: 1px solid var(--border);
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
    }

    .reader-root.drawer-open .drawer {
      transform: translateX(0)
    }

    .reader-root .drawer-head {
      min-height: var(--topbar-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 18px 14px;
      border-bottom: 1px solid var(--border);
      font-weight: 800;
      letter-spacing: .02em;
    }

    .reader-root .drawer-list {
      padding: 14px;
      display: grid;
      gap: 10px;
      overflow: auto
    }

    .reader-root .drawer-item {
      width: 100%;
      text-align: left;
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text);
      border-radius: 18px;
      padding: 14px;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(44, 32, 17, .05);
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .reader-root .drawer-item:hover,
    .reader-root .drawer-item.active {
      transform: translateX(-4px);
      border-color: rgba(37, 99, 235, .45);
      background: rgba(37, 99, 235, .06);
    }

    .reader-root.theme-dark .drawer-item:hover,
    .reader-root.theme-dark .drawer-item.active {
      background: rgba(110, 169, 255, .12)
    }

    .reader-root .drawer-item strong {
      display: block;
      font-size: 15px;
      margin-bottom: 4px
    }

    .reader-root .drawer-item span {
      display: block;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.45
    }

    /* ─── DRAWER OVERLAY ─────────────────────────────────────────────── */
    .reader-root .drawer-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 50;
      background: rgba(10, 18, 32, 0.38);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      animation: overlayIn .22s ease forwards;
    }

    .reader-root.drawer-open .drawer-overlay {
      display: block;
    }

    @keyframes overlayIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    /* ─── SHELL ──────────────────────────────────────────────────────── */
    .reader-root .app-shell {
      min-height: 100vh;
      transition: padding-right .34s cubic-bezier(.2, .8, .2, 1);
    }

    .reader-root.drawer-open .app-shell {
      padding-right: var(--drawer-width)
    }

    /* ─── TOPBAR ─────────────────────────────────────────────────────── */
    .reader-root .topbar {
      position: sticky;
      top: 0;
      left: 0;
      right: 0;
      z-index: 40;
      transition: none;
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: var(--topbar-h);
      padding: 12px 8px 12px 18px;
      background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    }

    .reader-root.drawer-open .topbar {
      /* sticky topbar is already scoped to reader-root width — no right shift needed */
    }

    /* ─── SHARED BUTTON BASES ────────────────────────────────────────── */
    .reader-root .icon-btn,
    .reader-root .title-switch,
    .reader-root .nav-circle,
    .reader-root .mode-btn,
    .reader-root .cta-btn,
    .reader-root .ghost-btn,
    .reader-root .confidence-btn {
      border: 1px solid var(--border);
      background: var(--panel-strong);
      color: var(--text);
      border-radius: 16px;
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 8px 20px rgba(44, 32, 17, .06);
      cursor: pointer;
      transition: transform .18s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
    }

    .reader-root .icon-btn:hover,
    .reader-root .title-switch:hover,
    .reader-root .nav-circle:hover,
    .reader-root .mode-btn:hover,
    .reader-root .ghost-btn:hover,
    .reader-root .confidence-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(37, 99, 235, .28);
    }

    .reader-root .icon-btn {
      width: 46px;
      padding: 0;
      flex: 0 0 auto
    }

    /* --- PLAY / PAUSE BUTTON ANIMATION --- */
    .reader-root .play-active {
      color: var(--danger) !important;
      border-color: rgba(220, 38, 38, 0.4) !important;
      background: color-mix(in srgb, var(--panel-strong) 85%, var(--danger) 15%) !important;
      animation: pulseRed 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reader-root.theme-dark .play-active {
      color: #f87171 !important;
      border-color: rgba(248, 113, 113, 0.4) !important;
      background: color-mix(in srgb, var(--panel-strong) 85%, #f87171 15%) !important;
    }

    @keyframes pulseRed {
      0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
      }

      70% {
        box-shadow: 0 0 14px 6px rgba(220, 38, 38, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
      }
    }

    .reader-root .icon-btn svg {
      transition: all .2s ease;
    }

    /* ------------------------------------- */

    .reader-root .title-nav {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      max-width: min(58vw, 840px);
      flex: 0 1 auto;
      min-width: 0;
    }

    .reader-root .title-switch {
      padding: 0 16px;
      min-width: 0;
      width: fit-content;
      max-width: min(42vw, 520px);
      flex: 0 1 auto;
      justify-content: flex-start;
    }

    .reader-root .title-switch .title-text {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 800;
      font-size: 16px;
      max-width: 100%;
    }

    .reader-root .nav-circle {
      width: 46px;
      height: 46px;
      min-height: 46px;
      padding: 0;
      border-radius: 999px;
      flex: 0 0 46px;
      position: relative;
      background: color-mix(in srgb, var(--panel-strong) 88%, var(--bg-2) 12%);
      box-shadow: 0 8px 18px rgba(44, 32, 17, .06), inset 0 1px 0 rgba(255, 255, 255, .7);
    }

    .reader-root .nav-circle::before {
      content: "";
      position: absolute;
      inset: 5px;
      border-radius: 999px;
      background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .18) 38%, transparent 70%);
      opacity: .5;
      pointer-events: none;
      transition: opacity .22s ease;
    }

    .reader-root .nav-circle:hover {
      transform: translateY(-1px);
      background: color-mix(in srgb, var(--panel-strong) 64%, #dbe3ef 36%);
      border-color: color-mix(in srgb, var(--border) 65%, #9aa8bf 35%);
      box-shadow: 0 10px 22px rgba(30, 41, 59, .11), 0 0 0 4px rgba(160, 174, 197, .10), inset 0 1px 0 rgba(255, 255, 255, .82);
    }

    .reader-root .nav-circle:hover::before {
      opacity: .72
    }

    .reader-root .nav-circle svg {
      transition: transform .2s ease;
      position: relative;
      z-index: 1;
      opacity: .86
    }

    .reader-root .nav-circle:hover svg {
      transform: scale(1.03);
      opacity: 1
    }

    .reader-root.theme-dark .nav-circle {
      background: color-mix(in srgb, var(--panel-strong) 82%, #0d1522 18%);
      box-shadow: 0 10px 22px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .reader-root .nav-circle:disabled {
      opacity: .45;
      cursor: default;
      transform: none !important;
      box-shadow: 0 8px 20px rgba(44, 32, 17, .06);
      background: var(--panel-strong);
      border-color: var(--border);
    }

    .reader-root .nav-circle:disabled svg {
      color: var(--muted);
      transform: none !important;
      opacity: .7
    }

    .reader-root .toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto
    }

    .reader-root .select {
      border: 1px solid var(--border);
      border-radius: 14px;
      min-height: 46px;
      padding: 0 14px;
      background: var(--panel-strong);
      color: var(--text);
      box-shadow: 0 6px 18px rgba(44, 32, 17, .05);
      cursor: pointer;
    }

    .reader-root .toolbar-divider {
      width: 1px;
      height: 24px;
      background: var(--border);
      margin: 0 4px;
    }

    /* ─── LAYOUT ─────────────────────────────────────────────────────── */
    .reader-root .content-wrap {
      position: relative;
      width: min(1380px, calc(100% - 28px));
      margin: 22px auto 30px;
      transition: width .34s cubic-bezier(.2, .8, .2, 1);
    }

    .reader-root.drawer-open .content-wrap {
      width: min(1380px, calc(100% - var(--drawer-width) - 28px));
    }

    .reader-root .layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 20px;
      align-items: start;
      /* Main layout container will be dynamically animated via JS */
    }

    .reader-root .main-col {
      display: flex;
      flex-direction: column;
      gap: 18px;
      min-width: 0
    }

    .reader-root .side-col {
      display: flex;
      flex-direction: column;
      gap: 18px;
      position: sticky;
      top: calc(var(--topbar-h) + 18px)
    }

    /* ─── CARD ───────────────────────────────────────────────────────── */
    .reader-root .card {
      background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
      padding: 18px;
      transition: background .28s ease, border-color .28s ease;
    }

    /* ─── HERO CARD ──────────────────────────────────────────────────── */
    .reader-root .hero-card {
      position: relative;
      padding: 22px 22px 20px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 95%, transparent), color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%));
      box-shadow: 0 12px 28px rgba(14, 25, 40, .07), 0 0 0 6px var(--hero-ring);
      overflow: hidden;
    }

    .reader-root .hero-card::after {
      content: "";
      position: absolute;
      width: 220px;
      height: 220px;
      right: -40px;
      top: -60px;
      background: radial-gradient(circle, rgba(59, 123, 236, .12), transparent 70%);
      pointer-events: none;
    }

    .reader-root.theme-dark .hero-card::after {
      background: radial-gradient(circle, rgba(110, 169, 255, .12), transparent 70%);
    }

    .reader-root .hero-topline {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .reader-root .brand-pill,
    .reader-root .lesson-pill,
    .reader-root .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 32px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .02em;
      border: 1px solid var(--border);
      background: var(--panel-strong);
      color: var(--text);
    }

    .reader-root .brand-pill {
      background: linear-gradient(135deg, rgba(59, 123, 236, .12), rgba(59, 123, 236, .04));
      border-color: rgba(59, 123, 236, .18);
      color: #1f4fb2;
    }

    .reader-root.theme-dark .brand-pill {
      color: #dceafe;
      background: linear-gradient(135deg, rgba(110, 169, 255, .12), rgba(110, 169, 255, .05));
      border-color: rgba(110, 169, 255, .16);
    }

    .reader-root .lesson-pill {
      color: var(--muted)
    }

    .reader-root .hero-grid {
      display: grid;
      grid-template-columns: 1.3fr .9fr;
      gap: 18px;
      align-items: start;
    }

    .reader-root .hero-copy-block {
      min-width: 0
    }

    .reader-root .lesson-title {
      font-size: clamp(26px, 3.2vw, 36px);
      font-weight: 900;
      line-height: 1.05;
      margin: 0 0 10px;
      letter-spacing: -.02em;
    }

    .reader-root .hero-goal {
      font-size: 15px;
      color: var(--text);
      margin: 0 0 10px;
      line-height: 1.55;
    }

    .reader-root .hero-subline {
      color: var(--muted);
      font-size: 14px;
      margin: 0 0 14px
    }

    .reader-root .progress-wrap {
      display: grid;
      gap: 8px;
      margin: 10px 0 16px
    }

    .reader-root .progress-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 13px;
      color: var(--muted);
      font-weight: 700;
    }

    .reader-root .progress-bar {
      width: 100%;
      height: 12px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--panel-strong) 76%, var(--bg) 24%);
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .reader-root .progress-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent), #73a5ff);
      transition: width .4s ease;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    }

    .reader-root .hero-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 6px
    }

    .reader-root .cta-btn,
    .reader-root .ghost-btn {
      min-height: 48px;
      padding: 0 18px;
      font-size: 14px;
      font-weight: 800;
      border-radius: 14px;
    }

    .reader-root .cta-btn {
      background: var(--accent);
      color: #fff;
      border-color: transparent
    }

    .reader-root .cta-btn:hover {
      background: var(--accent-2);
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(37, 99, 235, .22)
    }

    .reader-root .ghost-btn {
      background: color-mix(in srgb, var(--panel-strong) 96%, var(--bg) 4%)
    }

    .reader-root .hero-right {
      display: grid;
      gap: 12px
    }

    .reader-root .hero-mini-card {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 14px;
      background: color-mix(in srgb, var(--panel-strong) 94%, var(--bg) 6%);
    }

    .reader-root .mini-title-top {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      margin: 0 0 8px;
      font-weight: 800;
    }

    .reader-root .mini-help {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.55
    }

    /* ─── SECTION HEADERS ────────────────────────────────────────────── */
    .reader-root .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }

    .reader-root .section-kicker {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      font-weight: 800;
      margin-bottom: 2px;
    }

    .reader-root .section-title {
      margin: 0;
      font-size: 15px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: color-mix(in srgb, var(--text) 70%, #b68d57);
    }

    .reader-root .status-badge {
      min-height: 28px;
      font-size: 11px;
      padding: 4px 10px;
      box-shadow: none;
      font-weight: 800
    }

    .reader-root .status-new {
      color: var(--muted);
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%)
    }

    .reader-root .status-practised {
      color: #167c47;
      background: rgba(34, 197, 94, .12);
      border-color: rgba(34, 197, 94, .18)
    }

    /* ─── GRAMMAR CARD ───────────────────────────────────────────────── */
    .reader-root .grammar-copy {
      font-size: 16px;
      line-height: 1.88
    }

    .reader-root .grammar-chip {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 10px;
      background: var(--keyword-highlight);
      border: 1px solid #f5d98d;
      font-weight: 800;
    }

    .reader-root .grammar-examples {
      margin-top: 14px;
      display: grid;
      gap: 10px
    }

    .reader-root .grammar-example {
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      border-radius: 16px;
      padding: 14px 16px;
      font-size: 15px;
      line-height: 1.68;
    }

    .reader-root .grammar-example small {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
    }

    /* ─── READING PASSAGE ────────────────────────────────────────────── */
    .reader-root .reading-passage {
      font-size: var(--reading-font-size);
      line-height: 2;
      color: var(--text);
      position: relative;
      transition: font-size 0.2s ease;
    }

    .reader-root .sentence-span {
      display: inline;
      padding: 1px 3px;
      border-radius: 8px;
      cursor: pointer;
      transition: background .16s ease, color .16s ease;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }

    .reader-root .sentence-span:hover {
      background: rgba(251, 231, 143, .36);
    }

    .reader-root .sentence-span.active {
      background: linear-gradient(135deg, rgba(253, 246, 186, .96), rgba(246, 232, 140, .92));
      color: #5f4a00;
      box-shadow: inset 0 0 0 1px rgba(214, 188, 78, .4);
    }

    .reader-root.theme-dark .sentence-span.active {
      background: linear-gradient(135deg, rgba(134, 116, 34, .6), rgba(170, 141, 39, .48));
      color: #fff6c5;
      box-shadow: inset 0 0 0 1px rgba(240, 214, 115, .28);
    }

    /* vocab chip → locate in text: highlight matching sentence */
    .reader-root .sentence-span.highlight-hit {
      background: rgba(253, 224, 71, .28);
      border-radius: 6px;
      outline: 2px solid rgba(253, 224, 71, .5);
    }

    .reader-root .sentence-pl-line {
      display: none;
      font-size: .82em;
      line-height: 1.5;
      color: #2a4a7f;
      font-weight: 500;
      font-style: italic;
      margin: 2px 0 6px 2px;
      padding: 4px 8px;
      border-left: 2px solid rgba(59, 123, 236, .25);
    }

    .reader-root .sentence-pl-line.show {
      display: block;
      animation: fadeSlideIn .22s ease forwards;
    }

    .reader-root.theme-dark .sentence-pl-line {
      color: #93bbf5
    }

    @keyframes fadeSlideIn {
      from {
        opacity: 0;
        transform: translateY(-4px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    /* ─── SENTENCE TOOL PANEL ────────────────────────────────────────── */
    .reader-root .sentence-tool {
      display: block;
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transform: translateY(-6px);
      transition:
        max-height .38s cubic-bezier(.2, .8, .2, 1),
        opacity .26s ease,
        transform .26s cubic-bezier(.2, .8, .2, 1),
        margin .22s ease;
      margin-bottom: 0;
      margin-top: 0;
    }

    .reader-root .sentence-tool.open {
      max-height: 300px;
      opacity: 1;
      transform: translateY(0);
      margin-top: 6px;
      margin-bottom: 10px;
    }

    .reader-root .sentence-tool-inner {
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--panel-strong) 95%, var(--bg) 5%);
      border-radius: 16px;
      padding: 12px 14px;
      box-shadow: 0 6px 18px rgba(14, 25, 40, .06);
      position: relative;
    }

    .reader-root .sentence-tool-inner::before {
      content: "";
      position: absolute;
      top: -6px;
      left: 18px;
      width: 10px;
      height: 10px;
      background: var(--panel-strong);
      border-top: 1px solid var(--border);
      border-left: 1px solid var(--border);
      transform: rotate(45deg);
    }

    .reader-root .tool-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 9px;
    }

    .reader-root .tool-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-weight: 800;
      color: var(--accent);
    }

    /* Sentence Confidence Row */
    .reader-root .sent-conf-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .reader-root .sent-conf-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      font-weight: 800;
      margin-right: 2px;
    }

    .reader-root .sent-conf-btn {
      background: var(--bg-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 10px;
      font-weight: 700;
      color: var(--text);
      padding: 2px 8px;
      cursor: pointer;
      transition: all .15s;
    }

    .reader-root .sent-conf-btn:hover {
      background: var(--border);
    }

    .reader-root .sent-conf-btn.active.easy {
      background: #dcfce7;
      border-color: #86efac;
      color: #166534;
    }

    .reader-root .sent-conf-btn.active.hard {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #991b1b;
    }

    .reader-root.theme-dark .sent-conf-btn.active.easy {
      background: #14532d;
      border-color: #166534;
      color: #bbf7d0;
    }

    .reader-root.theme-dark .sent-conf-btn.active.hard {
      background: #7f1d1d;
      border-color: #991b1b;
      color: #fecaca;
    }

    .reader-root .chunk-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .reader-root .chunk-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 11px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      background: var(--panel-strong);
      border: 1px solid var(--border);
      color: var(--text);
      box-shadow: 0 4px 12px rgba(14, 25, 40, .05);
      cursor: pointer;
      transition: background .16s ease, border-color .16s ease, transform .14s ease, box-shadow .14s ease, color .16s ease;
      position: relative;
      animation: tagIn .3s cubic-bezier(.2, .8, .2, 1) backwards;
    }

    .reader-root .chunk-tag::before {
      content: "✦";
      color: var(--accent);
      font-size: 10px;
    }

    .reader-root .chunk-tag:hover {
      background: var(--accent-soft);
      border-color: rgba(59, 123, 236, .28);
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(59, 123, 236, .1);
    }

    /* ─── CHUNK TAG ACTIVE (selected state) ──────────────────────────── */
    .reader-root .chunk-tag.active {
      background: var(--accent-soft);
      border-color: var(--accent);
      color: var(--accent-2);
      box-shadow: 0 0 0 2px rgba(59, 123, 236, .18), 0 8px 18px rgba(59, 123, 236, .1);
      transform: translateY(-1px);
    }

    .reader-root.theme-dark .chunk-tag.active {
      background: rgba(110, 169, 255, .16);
      border-color: rgba(110, 169, 255, .5);
      color: #93c5fd;
    }

    /* --- COLLECTED TAG VISUALS (Darkens when added to My List) --- */
    .reader-root .chunk-tag.collected-tag {
      background: #e2e8f0;
      border-color: #cbd5e1;
      color: #3f4a5c;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, .06);
    }

    .reader-root.theme-dark .chunk-tag.collected-tag {
      background: #1e293b;
      border-color: #334155;
      color: #94a3b8;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3);
    }

    .reader-root .chunk-tag:nth-child(1) {
      animation-delay: .04s
    }

    .reader-root .chunk-tag:nth-child(2) {
      animation-delay: .08s
    }

    .reader-root .chunk-tag:nth-child(3) {
      animation-delay: .12s
    }

    @keyframes tagIn {
      from {
        opacity: 0;
        transform: translateY(5px) scale(.95)
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1)
      }
    }

    /* ─── CHUNK TOOLTIP ──────────────────────────────────────────────── */
    .reader-root .chunk-tooltip {
      position: fixed;
      z-index: 200;
      pointer-events: none;
      padding: 8px 13px;
      border-radius: 12px;
      background: var(--panel-strong);
      border: 1px solid rgba(59, 123, 236, .22);
      box-shadow: 0 12px 28px rgba(14, 25, 40, .14), 0 0 0 4px rgba(59, 123, 236, .06);
      font-size: 13px;
      font-weight: 700;
      color: #2a4a7f;
      font-style: italic;
      white-space: nowrap;
      opacity: 0;
      transform: translateY(4px) scale(.97);
      transition: opacity .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
    }

    .reader-root .chunk-tooltip.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .reader-root.theme-dark .chunk-tooltip {
      color: #93bbf5;
      border-color: rgba(110, 169, 255, .22)
    }

    /* ─── Q&A BLOCKS ─────────────────────────────────────────────────── */
    .reader-root .reader-shell {
      display: grid;
      gap: 12px
    }

    .reader-root .paragraph {
      padding: 16px 18px;
      border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
      border-radius: 18px;
      background: color-mix(in srgb, var(--panel) 90%, transparent);
      transition: border-color .18s ease, box-shadow .18s ease;
      cursor: pointer;
    }

    .reader-root .paragraph:hover {
      box-shadow: 0 10px 20px rgba(14, 25, 40, .05)
    }

    .reader-root .paragraph.active {
      border-color: #d6d9b1;
      box-shadow: 0 12px 24px rgba(168, 162, 72, .1);
    }

    .reader-root.theme-dark .paragraph.active {
      border-color: #6e7f54;
      box-shadow: 0 14px 26px rgba(0, 0, 0, .22);
    }

    .reader-root .paragraph-text {
      font-size: 1.05em;
      line-height: 1.92;
      color: var(--text);
    }

    .reader-root .reveal-chip {
      display: inline;
      padding: 2px 4px;
      border-radius: 10px;
      cursor: pointer;
      transition: background .18s ease;
    }

    .reader-root .reveal-chip:hover {
      background: rgba(251, 231, 143, .34)
    }

    .reader-root .reveal-chip.active {
      background: linear-gradient(135deg, rgba(253, 246, 186, .96), rgba(246, 232, 140, .92));
      color: #5f4a00;
      box-shadow: inset 0 0 0 1px rgba(214, 188, 78, .48);
    }

    .reader-root.theme-dark .reveal-chip.active {
      background: linear-gradient(135deg, rgba(134, 116, 34, .6), rgba(170, 141, 39, .48));
      color: #fff6c5;
    }

    .reader-root .sentence-pl,
    .reader-root .inline-pl {
      display: block;
      margin: 4px 0 6px 3px;
      font-size: .82em;
      line-height: 1.5;
      color: #2a4a7f;
      font-weight: 500;
      font-style: italic;
    }

    .reader-root.theme-dark .sentence-pl,
    .reader-root.theme-dark .inline-pl {
      color: #93bbf5
    }

    /* ─── METRIC PANEL (sidebar gamification) ────────────────────────── */
    .reader-root .metrics-panel {
      padding: 14px 16px
    }

    .reader-root .metrics-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .reader-root .metric-item {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px;
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .reader-root .metric-label {
      font-size: 12px;
      color: var(--muted)
    }

    .reader-root .metric-value {
      font-size: 22px;
      font-weight: 800;
      line-height: 1.1;
    }

    .reader-root .playback-status {
      margin-top: 12px;
      border-top: 1px solid var(--border);
      padding-top: 12px;
      display: grid;
      gap: 6px;
    }

    .reader-root .playback-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      font-weight: 800;
    }

    .reader-root .playback-current {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.35
    }

    .reader-root .playback-track {
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--panel-strong) 76%, var(--bg) 24%);
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .reader-root .playback-track-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), #73a5ff);
      transition: width .22s ease;
    }

    /* ─── SIDE IDENTITY CARD ─────────────────────────────────────────── */
    .reader-root .identity-tagline {
      font-size: 18px;
      line-height: 1.35;
      font-weight: 900;
      letter-spacing: -.02em;
      margin: 0 0 8px;
    }

    .reader-root .identity-copy {
      font-size: 13px;
      line-height: 1.65;
      color: var(--muted);
      margin: 0
    }

    /* ─── TARGET VOCABULARY (Tabbed Sidebar Chips) ───────────────────── */
    .reader-root .vocab-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      padding: 4px;
      border-radius: 12px;
      border: 1px solid var(--border);
    }

    .reader-root .vocab-tab {
      flex: 1;
      padding: 6px;
      text-align: center;
      font-size: 12px;
      font-weight: 800;
      border-radius: 8px;
      border: none;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .reader-root .vocab-tab.active {
      background: var(--panel-strong);
      color: var(--text);
      box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .reader-root .vocab-pane {
      display: none;
      grid-gap: 8px;
    }

    .reader-root .vocab-pane.active {
      display: grid;
    }

    .reader-root .vocab-chip {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      color: var(--text);
      border-radius: 14px;
      padding: 8px 12px;
      cursor: pointer;
      transition: background .16s ease, border-color .16s ease, transform .16s ease;
    }

    .reader-root .vocab-chip:hover {
      background: var(--accent-soft);
      border-color: rgba(59, 123, 236, .28);
      transform: translateX(2px);
    }

    .reader-root .vocab-chip.highlight-hit {
      background: var(--accent-soft) !important;
      box-shadow: 0 0 0 2px rgba(59, 123, 236, .18) !important;
    }

    .reader-root .vocab-chip-play {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 999px;
      background: rgba(59, 123, 236, .1);
      color: var(--accent);
      border: none;
      cursor: pointer;
      transition: all .15s ease;
    }

    .reader-root .vocab-chip-play:hover {
      background: var(--accent);
      color: #fff;
      transform: scale(1.1);
    }

    .reader-root .vocab-chip-text {
      flex: 1;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.4;
      text-align: left;
    }

    .reader-root .vocab-chip-freq {
      flex-shrink: 0;
      font-size: 11px;
      font-weight: 800;
      color: var(--muted);
      background: var(--bg-2);
      padding: 2px 6px;
      border-radius: 999px;
    }

    .reader-root .helper {
      margin-top: 10px;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.55
    }

    /* ─── QUIZ CTA CARD ──────────────────────────────────────────────── */
    .reader-root .quiz-cta-card {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 20px 24px;
    }

    .reader-root .quiz-cta-text {
      margin: 0;
      font-size: 16px;
      font-weight: 500;
      color: var(--text);
      flex: 1
    }

    .reader-root .quiz-enter-btn {
      flex-shrink: 0;
      padding: 10px 22px;
      border-radius: 999px;
      border: none;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      transition: background .18s ease, transform .15s ease;
    }

    .reader-root .quiz-enter-btn:hover {
      background: var(--accent-2);
      transform: translateY(-1px)
    }

    /* ─── CONFIDENCE ─────────────────────────────────────────────────── */
    .reader-root .confidence-wrap {
      display: grid;
      gap: 12px;
      margin-top: 8px
    }

    .reader-root .confidence-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap
    }

    .reader-root .confidence-btn {
      min-height: 42px;
      padding: 0 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: none;
    }

    .reader-root .confidence-btn.active {
      background: var(--accent);
      color: #fff;
      border-color: transparent;
    }

    .reader-root .confidence-note {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5
    }

    /* ─── FULL-PAGE ZONES (TEST / PRINT) ─────────────────────────────── */
    .reader-root .test-zone,
    .reader-root .print-zone {
      display: none;
    }

    .reader-root.test-mode .layout,
    .reader-root.test-mode .topbar,
    .reader-root.print-mode .layout,
    .reader-root.print-mode .topbar {
      display: none !important;
    }

    .reader-root.test-mode .content-wrap,
    .reader-root.print-mode .content-wrap {
      margin-top: 18px;
      width: min(900px, calc(100vw - 28px));
    }

    .reader-root.test-mode .test-zone {
      display: block;
    }

    .reader-root.print-mode .print-zone {
      display: block;
    }

    /* Shared header for full-page zones */
    .reader-root .test-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .reader-root .test-header-left {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap
    }

    .reader-root .test-title-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .09em;
      color: var(--muted);
      font-weight: 800;
    }

    .reader-root .test-title {
      margin: 4px 0 0;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -.03em;
      line-height: 1.08;
    }

    .reader-root .close-test-btn {
      width: 44px;
      height: 44px;
      min-height: 44px;
      padding: 0;
      border: 1px solid rgba(220, 38, 38, .22);
      background: color-mix(in srgb, var(--panel-strong) 88%, #fff 12%);
      color: var(--danger);
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform .18s ease, background .18s ease, border-color .18s ease;
      box-shadow: 0 8px 18px rgba(220, 38, 38, .08);
    }

    .reader-root .close-test-btn:hover {
      transform: translateY(-1px) scale(1.03);
      background: rgba(220, 38, 38, .08);
      border-color: rgba(220, 38, 38, .34);
    }

    .reader-root.theme-dark .close-test-btn {
      border-color: rgba(248, 113, 113, .22);
      color: #f87171
    }

    .reader-root .test-meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }

    .reader-root .meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 13px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--panel-strong);
      font-size: 13px;
      font-weight: 700;
    }

    .reader-root .test-card {
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
      border-radius: var(--radius);
      padding: 26px 24px 22px;
      display: grid;
      gap: 20px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    }

    .reader-root .test-question {
      font-size: 28px;
      line-height: 1.34;
      font-weight: 900;
      letter-spacing: -.03em;
    }

    .reader-root .test-note {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65
    }

    .reader-root .test-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .reader-root .test-option {
      text-align: left;
      border: 2px solid var(--border);
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      color: var(--text);
      border-radius: 18px;
      padding: 16px 18px;
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      transition: transform .16s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

    .reader-root .test-option:hover:not([disabled]) {
      transform: translateY(-2px);
      border-color: rgba(59, 123, 236, .4);
      box-shadow: 0 6px 18px rgba(59, 123, 236, .1);
    }

    .reader-root .test-option:disabled {
      cursor: default;
    }

    .reader-root .test-option.correct {
      background: #edfaf3;
      border-color: #22c55e;
      color: #14532d;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, .18), 0 8px 20px rgba(34, 197, 94, .14);
      animation: correctPulse .5s cubic-bezier(.2, .8, .2, 1) forwards;
    }

    .reader-root .test-option.wrong {
      background: #fff1f1;
      border-color: #ef4444;
      color: #7f1d1d;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, .16);
      animation: shake .32s ease;
    }

    @keyframes correctPulse {
      0% {
        transform: scale(1);
      }

      40% {
        transform: scale(1.025);
      }

      100% {
        transform: scale(1);
      }
    }

    .reader-root.theme-dark .test-option.correct {
      background: #14532d;
      border-color: #22c55e;
      color: #bbf7d0;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, .2), 0 8px 20px rgba(34, 197, 94, .12);
    }

    .reader-root.theme-dark .test-option.wrong {
      background: #3a1f22;
      border-color: #ef4444;
      color: #fecaca;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, .2);
    }

    /* ─── STREAK FIRE & COMPLETION ─────────────────────────────────────── */
    .reader-root .meta-pill.streak-fire {
      background: linear-gradient(135deg, #ff6b1a 0%, #ff9500 100%);
      border-color: #ff6b1a;
      color: #fff;
      box-shadow: 0 0 0 3px rgba(255, 107, 26, .2);
      animation: firePulse .6s ease infinite alternate;
    }

    @keyframes firePulse {
      from {
        box-shadow: 0 0 0 3px rgba(255, 107, 26, .18);
      }

      to {
        box-shadow: 0 0 0 7px rgba(255, 107, 26, .34);
      }
    }

    .reader-root .test-complete-summary {
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 14px;
      padding: 18px 0 8px;
    }

    .reader-root .tcs-score {
      font-size: 44px;
      font-weight: 900;
      letter-spacing: -.04em;
      color: var(--accent);
    }

    .reader-root .tcs-pct {
      font-size: 22px;
      font-weight: 700;
      color: var(--muted);
    }

    /* ─── TEST FEEDBACK STATES ───────────────────────────────────────────── */
    .reader-root .test-feedback {
      min-height: 28px;
      font-size: 15px;
      font-weight: 700;
      color: var(--muted);
      transition: color .2s ease;
    }

    .reader-root .test-feedback.feedback-correct {
      color: #16a34a;
    }

    .reader-root.theme-dark .test-feedback.feedback-correct {
      color: #4ade80;
    }

    .reader-root .test-feedback.feedback-wrong {
      color: #dc2626;
    }

    .reader-root.theme-dark .test-feedback.feedback-wrong {
      color: #f87171;
    }

    .reader-root .test-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .reader-root .read-btn {
      min-height: 44px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--panel-strong);
      color: var(--text);
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      transition: transform .16s ease, border-color .16s ease;
    }

    .reader-root .read-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(59, 123, 236, .28)
    }

    .reader-root .next-btn {
      min-height: 44px;
      padding: 0 22px;
      border-radius: 999px;
      border: none;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      transition: transform .16s ease, background .16s ease;
    }

    .reader-root .next-btn:hover {
      background: var(--accent-2);
      transform: translateY(-1px)
    }

    /* ─── PRINT ZONE SPECIFIC STYLES ─────────────────────────────────── */
    .reader-root .print-table {
      width: 100%;
      border-collapse: collapse;
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      background: var(--panel-strong);
    }

    .reader-root .print-table th {
      text-align: left;
      padding: 10px 14px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      border-bottom: 1px solid var(--border);
    }

    .reader-root .print-table td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
    }

    .reader-root .print-table tr:last-child td {
      border-bottom: none;
    }

    .reader-root .print-en {
      font-weight: 700;
      font-size: 15px;
      color: var(--text);
    }

    .reader-root .print-pl {
      font-size: 14px;
      color: #2a4a7f;
      font-style: italic;
    }

    .reader-root.theme-dark .print-pl {
      color: #93bbf5;
    }

    .reader-root .print-actions {
      margin-top: 20px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    @media print {

      .reader-root.print-mode .print-actions,
      .reader-root.print-mode .close-test-btn,
      .reader-root.print-mode .test-header-left div .test-title-label {
        display: none !important;
      }

      .reader-root.print-mode .test-card {
        box-shadow: none;
        border: none;
        padding: 0;
      }
    }

    /* ─── POINTS FLOAT ───────────────────────────────────────────────── */
    .reader-root .points-float {
      position: fixed;
      z-index: 120;
      pointer-events: none;
      font-size: 17px;
      font-weight: 900;
      color: var(--accent);
      animation: floatUp .8s ease forwards;
    }

    @keyframes floatUp {
      0% {
        opacity: 0;
        transform: translateY(10px) scale(.9)
      }

      18% {
        opacity: 1;
        transform: translateY(0) scale(1)
      }

      100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.05)
      }
    }

    /* ─── RESPONSIVE ─────────────────────────────────────────────────── */
    @media (max-width: 1180px) {
      .reader-root .layout {
        grid-template-columns: 1fr
      }

      .reader-root .side-col {
        position: static
      }
    }

    @media (max-width: 900px) {
      .reader-root .hero-grid {
        grid-template-columns: 1fr
      }

      .reader-root .test-options {
        grid-template-columns: 1fr
      }
    }

    @media (max-width: 720px) {
      .reader-root .title-switch .title-text {
        font-size: 14px
      }
    }

    /* ─── MY LIST TO LEARN ───────────────────────────────────────────── */
    .reader-root .my-list-box {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
      box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
      overflow: hidden;
    }

    .reader-root .my-list-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px 10px;
      border-bottom: 1px solid var(--border);
    }

    .reader-root .my-list-title {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--accent);
    }

    .reader-root .my-list-print-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted);
      padding: 4px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color .16s ease, background .16s ease;
    }

    .reader-root .my-list-print-btn:hover {
      color: var(--accent);
      background: var(--accent-soft)
    }

    .reader-root .my-list-body {
      padding: 10px 14px 12px;
      display: grid;
      gap: 8px
    }

    .reader-root .my-list-empty {
      font-size: 12px;
      color: var(--muted);
      font-style: italic;
      text-align: center;
      padding: 8px 0 4px;
    }

    .reader-root .my-list-item {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 9px 11px;
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
      animation: tagIn .25s cubic-bezier(.2, .8, .2, 1) backwards;
    }

    .reader-root .my-list-item-text {
      display: grid;
      gap: 2px;
      min-width: 0
    }

    .reader-root .my-list-item-en {
      font-size: 13px;
      font-weight: 700;
      color: var(--text)
    }

    .reader-root .my-list-item-pl {
      font-size: 12px;
      color: var(--muted);
      font-style: italic
    }

    .reader-root .my-list-remove {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted);
      padding: 2px 4px;
      border-radius: 6px;
      font-size: 15px;
      line-height: 1;
      flex-shrink: 0;
      transition: color .14s ease;
    }

    .reader-root .my-list-remove:hover {
      color: var(--danger)
    }

    /* Diamond collect button on chunk-tag */
    .reader-root .collect-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0 0 0 4px;
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      opacity: .45;
      transition: opacity .16s ease, transform .16s ease;
      line-height: 1;
    }

    .reader-root .collect-btn:hover {
      opacity: 1;
      transform: scale(1.2)
    }

    .reader-root .collect-btn.collected {
      opacity: 1
    }

    .reader-root .collect-btn svg {
      display: block
    }



    /* =========================================
   READER MOBILE TOPBAR + TEST PATCH
   add at very end of reader.css
   ========================================= */

    /* ---------- stronger default icon visibility ---------- */
    .reader-root .icon-btn[data-r="menuBtn"] svg,
    .reader-root .icon-btn[data-r="playBtn"] svg,
    .reader-root .icon-btn[data-r="focusBtn"] svg,
    .reader-root .icon-btn[data-r="themeBtn"] svg,
    .reader-root .nav-circle svg,
    .reader-root .close-test-btn svg {
      opacity: 1;
      stroke: currentColor;
    }

    .reader-root .icon-btn[data-r="menuBtn"] {
      color: var(--text);
      border-color: color-mix(in srgb, var(--border) 72%, var(--accent) 28%);
      background: color-mix(in srgb, var(--panel-strong) 88%, var(--accent-soft) 12%);
    }

    /* ---------- mobile layout ---------- */
    @media (max-width: 720px) {
      .reader-root {
        --topbar-h: auto;
      }

      .reader-root .content-wrap {
        width: min(100%, calc(100% - 16px));
        margin: 12px auto 22px;
      }

      .reader-root .topbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
        padding: 10px 10px 12px;
        min-height: unset;
      }

      /* row 1: arrows + headword */
      .reader-root .title-nav {
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        align-items: center;
      }

      .reader-root .nav-circle {
        width: 42px;
        height: 42px;
        min-height: 42px;
        flex: 0 0 42px;
      }

      .reader-root .title-switch {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 14px;
      }

      .reader-root .title-switch .title-text {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      /* row 2: font size + play/stop + hamburger */
      .reader-root .toolbar {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        align-items: center;
      }

      /* keep only the requested mobile priority items visible */
      .reader-root .toolbar .select,
      .reader-root .toolbar .toolbar-divider,
      .reader-root .toolbar .icon-btn[data-r="focusBtn"],
      .reader-root .toolbar .icon-btn[data-r="themeBtn"] {
        display: none !important;
      }

      .reader-root .toolbar .icon-btn[data-r="textDecBtn"],
      .reader-root .toolbar .icon-btn[data-r="textIncBtn"],
      .reader-root .toolbar .icon-btn[data-r="playBtn"],
      .reader-root .toolbar .icon-btn[data-r="menuBtn"] {
        display: inline-flex !important;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        height: 42px;
        border-radius: 14px;
      }

      .reader-root .toolbar .icon-btn[data-r="textDecBtn"] {
        grid-column: span 1;
        font-size: 13px !important;
        font-weight: 800;
      }

      .reader-root .toolbar .icon-btn[data-r="textIncBtn"] {
        grid-column: span 1;
        font-size: 15px !important;
        font-weight: 800;
      }

      .reader-root .toolbar .icon-btn[data-r="playBtn"] {
        grid-column: span 2;
      }

      .reader-root .toolbar .icon-btn[data-r="menuBtn"] {
        grid-column: span 2;
        color: var(--text);
        border-width: 1.5px;
        box-shadow: 0 8px 18px rgba(14, 25, 40, .08);
      }

      .reader-root .toolbar .icon-btn[data-r="menuBtn"] svg {
        width: 20px;
        height: 20px;
        opacity: 1;
      }

      .reader-root .toolbar .icon-btn svg {
        width: 18px;
        height: 18px;
      }

      /* cards / sections */
      .reader-root .card {
        padding: 14px;
        border-radius: 16px;
      }

      .reader-root .hero-card {
        padding: 16px 14px 14px;
      }

      .reader-root .hero-topline {
        gap: 8px;
      }

      .reader-root .brand-pill,
      .reader-root .lesson-pill,
      .reader-root .status-badge {
        min-height: 28px;
        padding: 5px 10px;
        font-size: 11px;
      }

      .reader-root .lesson-title {
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.1;
      }

      .reader-root .hero-goal,
      .reader-root .hero-subline,
      .reader-root .mini-help,
      .reader-root .grammar-copy {
        font-size: 14px;
        line-height: 1.6;
      }

      .reader-root .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .reader-root .cta-btn,
      .reader-root .ghost-btn {
        width: 100%;
        min-height: 44px;
      }

      .reader-root .section-head {
        align-items: flex-start;
        gap: 8px;
      }

      .reader-root .section-title {
        font-size: 14px;
      }

      .reader-root .reading-passage {
        line-height: 1.8;
      }

      .reader-root .sentence-tool.open {
        max-height: 420px;
      }

      .reader-root .tool-header-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }

      .reader-root .sent-conf-row {
        flex-wrap: wrap;
      }

      .reader-root .chunk-tags {
        gap: 6px;
      }

      .reader-root .chunk-tag {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 100%;
      }

      .reader-root .reader-shell {
        gap: 10px;
      }

      .reader-root .paragraph {
        padding: 12px;
        border-radius: 14px;
      }

      .reader-root .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .reader-root .vocab-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .reader-root .vocab-tab {
        width: 100%;
      }

      /* ---------- test / print zone mobile ---------- */
      .reader-root.test-mode .content-wrap,
      .reader-root.print-mode .content-wrap {
        margin-top: 10px;
        width: min(100%, calc(100vw - 16px));
      }

      .reader-root .test-zone,
      .reader-root .print-zone {
        padding-bottom: 18px;
      }

      .reader-root .test-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: start;
        gap: 10px;
        margin-bottom: 14px;
      }

      .reader-root .test-header-left {
        min-width: 0;
        display: block;
      }

      .reader-root .test-header-left>div {
        min-width: 0;
      }

      .reader-root .test-title {
        font-size: 22px;
        line-height: 1.12;
        margin-top: 4px;
        padding-right: 2px;
        word-break: break-word;
      }

      .reader-root .close-test-btn {
        justify-self: end;
        align-self: start;
        position: sticky;
        top: 8px;
        right: 0;
        margin-left: auto;
        width: 42px;
        height: 42px;
        min-height: 42px;
        flex: 0 0 42px;
      }

      .reader-root .test-meta-row {
        gap: 8px;
        margin-bottom: 14px;
      }

      .reader-root .meta-pill {
        font-size: 12px;
        padding: 7px 10px;
      }

      .reader-root .test-card {
        padding: 16px 14px;
        gap: 14px;
        border-radius: 16px;
      }

      .reader-root .test-question {
        font-size: 22px;
        line-height: 1.28;
      }

      .reader-root .test-note,
      .reader-root .test-feedback {
        font-size: 14px;
        line-height: 1.55;
      }

      .reader-root .test-options {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .reader-root .test-option {
        padding: 14px 14px;
        border-radius: 14px;
        font-size: 15px;
      }

      .reader-root .test-actions,
      .reader-root .print-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .reader-root .read-btn,
      .reader-root .next-btn,
      .reader-root .print-actions .next-btn {
        width: 100%;
        min-height: 44px;
      }
    }

    /* ---------- extra small phones ---------- */
    @media (max-width: 420px) {
      .reader-root .topbar {
        padding-inline: 8px;
      }

      .reader-root .title-nav {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px;
      }

      .reader-root .nav-circle,
      .reader-root .close-test-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        flex-basis: 40px;
      }

      .reader-root .title-switch {
        padding-inline: 10px;
      }

      .reader-root .title-switch .title-text {
        font-size: 13px;
      }

      .reader-root .toolbar {
        gap: 6px;
      }

      .reader-root .toolbar .icon-btn[data-r="textDecBtn"],
      .reader-root .toolbar .icon-btn[data-r="textIncBtn"],
      .reader-root .toolbar .icon-btn[data-r="playBtn"],
      .reader-root .toolbar .icon-btn[data-r="menuBtn"] {
        min-height: 40px;
        height: 40px;
      }

      .reader-root .lesson-title {
        font-size: 20px;
      }

      .reader-root .test-title {
        font-size: 20px;
      }

      .reader-root .test-question {
        font-size: 20px;
      }
    }

    /* =========================================
   READER READ / RESTORE PATCH
   ========================================= */
    .reader-root .drawer-head-main {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .reader-root .drawer-toggle-btn,
    .reader-root .read-action-btn,
    .reader-root .learned-main-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--panel-strong) 94%, var(--bg) 6%);
      color: var(--text);
      font-weight: 800;
      font-size: 12px;
      line-height: 1.2;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(44, 32, 17, .06);
      transition: transform .18s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
    }

    .reader-root .drawer-toggle-btn {
      padding: 0 12px;
    }

    .reader-root .drawer-toggle-btn:hover,
    .reader-root .read-action-btn:hover,
    .reader-root .learned-main-btn:hover {
      transform: translateY(-1px);
      border-color: rgba(37, 99, 235, .28);
    }

    .reader-root .drawer-toggle-btn.active {
      background: rgba(37, 99, 235, .08);
      border-color: rgba(37, 99, 235, .28);
      color: var(--accent-2);
    }

    .reader-root .drawer {
      overflow-y: auto;
      overflow-x: visible;
    }

    .reader-root .drawer-list {
      padding: 16px 16px 22px;
      gap: 14px;
      overflow: visible;
    }

    .reader-root .drawer-item-shell {
      border: 1px solid var(--border);
      background: var(--panel);
      border-radius: 20px;
      box-shadow: 0 10px 24px rgba(14, 25, 40, .08), inset 0 1px 0 rgba(255, 255, 255, .65);
      overflow: visible;
      transition: transform .2s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
    }

    .reader-root .drawer-item-shell:hover,
    .reader-root .drawer-item-shell.active {
      border-color: rgba(37, 99, 235, .38);
      background: color-mix(in srgb, var(--panel-strong) 90%, rgba(37, 99, 235, .08) 10%);
      box-shadow: 0 16px 30px rgba(37, 99, 235, .12), 0 0 0 3px rgba(37, 99, 235, .07);
    }

    .reader-root .drawer-item-shell.read {
      opacity: .94;
    }

    .reader-root .drawer-item-shell .drawer-item {
      border: 0;
      box-shadow: none;
      border-radius: 0;
      background: transparent;
      padding: 15px 15px 10px;
    }

    .reader-root .drawer-item-shell .drawer-item:hover,
    .reader-root .drawer-item-shell .drawer-item.active {
      transform: none;
      background: transparent;
      border-color: transparent;
    }

    .reader-root .drawer-item-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 15px 15px;
    }

    .reader-root .read-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(34, 197, 94, .18);
      background: rgba(34, 197, 94, .1);
      color: #167c47;
      font-size: 12px;
      font-weight: 800;
    }

    .reader-root.theme-dark .read-pill {
      color: #8df0b5;
      background: rgba(34, 197, 94, .12);
    }

    .reader-root .read-action-btn {
      padding: 0 12px;
    }

    .reader-root .drawer-empty {
      padding: 18px;
      border: 1px dashed var(--border);
      border-radius: 18px;
      background: color-mix(in srgb, var(--panel-strong) 92%, var(--bg) 8%);
    }

    .reader-root .drawer-empty strong {
      display: block;
      margin-bottom: 6px;
    }

    .reader-root .drawer-empty span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .reader-root .learned-main-btn {
      width: 100%;
      min-height: 50px;
      padding: 0 18px;
      border: 1px solid transparent;
      border-radius: 16px;
      background: linear-gradient(135deg, #3b7bec 0%, #2563eb 100%);
      color: #fff;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: .01em;
      box-shadow: 0 12px 26px rgba(37, 99, 235, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
    }

    .reader-root .learned-main-btn:hover {
      box-shadow: 0 18px 34px rgba(37, 99, 235, .28), 0 0 0 4px rgba(37, 99, 235, .10);
    }

    .reader-root .learned-main-btn.is-read {
      background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
      box-shadow: 0 12px 26px rgba(34, 197, 94, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
    }

    @media (max-width: 720px) {
      .reader-root .drawer {
        width: min(90vw, 360px);
      }

      .reader-root .drawer-list {
        padding: 14px 12px 20px;
        gap: 12px;
      }

      .reader-root .drawer-item-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px 12px;
      }

      .reader-root .read-pill,
      .reader-root .read-action-btn,
      .reader-root .drawer-toggle-btn {
        width: 100%;
      }
    }

    /* =========================================
   READER VISUAL PATCH — Speak3000 harmony
   ========================================= */

    /* ── GLOBAL BACKGROUND ── */
    .reader-root {
      background: #f2f4f8 !important;
    }

    .reader-root::before {
      display: none !important;
    }

    /* ── ALL CARDS — white, soft shadow ── */
    .reader-root .card,
    .reader-root .hero-card,
    .reader-root .metrics-panel,
    .reader-root .quiz-cta-card,
    .reader-root .hero-mini-card,
    .reader-root .my-list-box,
    .reader-root .test-card {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, .07) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 14px rgba(14, 25, 40, .07) !important;
      transition: background .22s ease, border-color .22s ease, box-shadow .2s ease !important;
    }

    .reader-root .hero-card::after {
      display: none !important;
    }

    .reader-root.theme-dark .card,
    .reader-root.theme-dark .hero-card,
    .reader-root.theme-dark .metrics-panel,
    .reader-root.theme-dark .quiz-cta-card,
    .reader-root.theme-dark .hero-mini-card,
    .reader-root.theme-dark .my-list-box,
    .reader-root.theme-dark .test-card {
      background: #172131 !important;
      border: 1px solid rgba(255, 255, 255, .06) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 6px 18px rgba(0, 0, 0, .24) !important;
    }

    /* ── HERO CARD — blue palette ── */
    .reader-root .hero-card {
      background: linear-gradient(145deg, #eef5ff 0%, #dbeafe 100%) !important;
      border-color: rgba(59, 123, 236, .18) !important;
      box-shadow: 0 2px 8px rgba(59, 123, 236, .08), 0 8px 28px rgba(59, 123, 236, .12) !important;
      padding: 22px 24px 20px !important;
      overflow: hidden !important;
    }

    .reader-root .hero-card .lesson-title {
      color: #1e3a8a !important;
    }

    .reader-root .hero-card .progress-fill {
      background: linear-gradient(90deg, #3b7bec, #60a5fa) !important;
    }

    .reader-root .hero-card .hero-mini-card {
      background: rgba(255, 255, 255, .62) !important;
      border-color: rgba(59, 123, 236, .12) !important;
    }

    .reader-root.theme-dark .hero-card {
      background: linear-gradient(145deg, #162240, #111d35) !important;
      border-color: rgba(110, 169, 255, .14) !important;
    }

    .reader-root.theme-dark .hero-card .lesson-title {
      color: #bfdbfe !important;
    }

    .reader-root.theme-dark .hero-card .hero-mini-card {
      background: rgba(255, 255, 255, .05) !important;
    }

    /* ── BRAND PILL ── */
    .reader-root .brand-pill {
      background: linear-gradient(135deg, #3b7bec, #2563eb) !important;
      border-color: transparent !important;
      color: #fff !important;
      font-size: 11px !important;
      font-weight: 800 !important;
      padding: 5px 11px !important;
      min-height: 26px !important;
      letter-spacing: .04em !important;
      box-shadow: 0 2px 8px rgba(37, 99, 235, .25) !important;
    }

    .reader-root .lesson-pill {
      background: rgba(0, 0, 0, .04) !important;
      border-color: rgba(0, 0, 0, .08) !important;
      color: var(--muted) !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      padding: 5px 11px !important;
      min-height: 26px !important;
    }

    .reader-root.theme-dark .lesson-pill {
      background: rgba(255, 255, 255, .06) !important;
      border-color: rgba(255, 255, 255, .10) !important;
    }

    /* ── STATUS BADGES ── */
    .reader-root .status-badge {
      font-size: 10.5px !important;
      font-weight: 700 !important;
      padding: 3px 10px !important;
      min-height: 24px !important;
      letter-spacing: .03em !important;
      border-radius: 999px !important;
    }

    .reader-root .status-new {
      background: rgba(0, 0, 0, .05) !important;
      border-color: rgba(0, 0, 0, .09) !important;
      color: var(--muted) !important;
    }

    .reader-root .status-practised {
      background: rgba(34, 197, 94, .10) !important;
      border-color: rgba(34, 197, 94, .20) !important;
      color: #15803d !important;
    }

    .reader-root.theme-dark .status-practised {
      color: #4ade80 !important;
    }

    /* ── HERO ACTIONS — one row, no wrap ── */
    .reader-root .hero-actions {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 8px !important;
      align-items: center !important;
    }

    .reader-root .cta-btn {
      flex: 0 1 auto !important;
      min-height: 42px !important;
      padding: 0 16px !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      border-radius: 12px !important;
      white-space: nowrap !important;
      background: linear-gradient(135deg, #3b7bec, #2563eb) !important;
      border-color: transparent !important;
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(59, 123, 236, .28) !important;
    }

    .reader-root .cta-btn:hover {
      background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
      transform: translateY(-1px) !important;
      box-shadow: 0 6px 18px rgba(59, 123, 236, .34) !important;
    }

    .reader-root .ghost-btn {
      flex: 0 1 auto !important;
      min-height: 42px !important;
      padding: 0 14px !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      border-radius: 12px !important;
      white-space: nowrap !important;
    }

    .reader-root .learned-main-btn {
      flex: 0 1 auto !important;
      min-height: 36px !important;
      width: auto !important;
      padding: 0 16px !important;
      font-size: 12px !important;
      font-weight: 800 !important;
      border-radius: 999px !important;
      border: 1px solid rgba(59, 123, 236, .24) !important;
      background: #ffffff !important;
      color: var(--accent) !important;
      box-shadow: 0 2px 6px rgba(37, 99, 235, .10) !important;
      white-space: nowrap !important;
      letter-spacing: .01em !important;
    }

    .reader-root .learned-main-btn:hover {
      transform: translateY(-1px) !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, .18) !important;
    }

    .reader-root .learned-main-btn.is-read {
      background: linear-gradient(135deg, #16a34a, #22c55e) !important;
      border-color: transparent !important;
      color: #fff !important;
      box-shadow: 0 2px 6px rgba(34, 197, 94, .22) !important;
    }

    /* ── PROGRESS BAR ── */
    .reader-root .progress-bar {
      width: 100% !important;
      height: 10px !important;
      border-radius: 999px !important;
      background: rgba(0, 0, 0, .08) !important;
      border: none !important;
      overflow: hidden !important;
    }

    .reader-root .progress-fill {
      height: 100% !important;
      border-radius: 999px !important;
      background: linear-gradient(90deg, #3b7bec, #60a5fa) !important;
      transition: width .3s ease !important;
      box-shadow: none !important;
    }

    /* ── GRAMMAR EXAMPLES — clean cards ── */
    .reader-root .grammar-example {
      background: rgba(59, 123, 236, .04) !important;
      border-color: rgba(59, 123, 236, .12) !important;
      border-radius: 14px !important;
      padding: 14px 16px !important;
    }

    .reader-root.theme-dark .grammar-example {
      background: rgba(110, 169, 255, .06) !important;
      border-color: rgba(110, 169, 255, .12) !important;
    }

    /* ── GAMIFICATION — 4 coloured badge cards ── */
    .reader-root .metrics-panel {
      padding: 18px !important;
      background: #ffffff !important;
    }

    .reader-root .metrics-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
      padding-bottom: 16px !important;
      margin-bottom: 14px !important;
      border-bottom: 1px solid rgba(0, 0, 0, .07) !important;
    }

    .reader-root.theme-dark .metrics-grid {
      border-bottom-color: rgba(255, 255, 255, .07) !important;
    }

    .reader-root .metric-item {
      display: flex !important;
      flex-direction: column !important;
      gap: 4px !important;
      padding: 11px 12px 10px !important;
      border-radius: 14px !important;
      box-shadow: none !important;
      border: 1px solid transparent !important;
    }

    /* Points — blue */
    .reader-root .metric-item:nth-child(1) {
      background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
      border-color: rgba(59, 123, 236, .18) !important;
    }

    .reader-root .metric-item:nth-child(1) .metric-value {
      color: #1d4ed8 !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(1) {
      background: rgba(59, 123, 236, .15) !important;
      border-color: rgba(59, 123, 236, .25) !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(1) .metric-value {
      color: #93c5fd !important;
    }

    /* Time — amber */
    .reader-root .metric-item:nth-child(2) {
      background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
      border-color: rgba(245, 158, 11, .20) !important;
    }

    .reader-root .metric-item:nth-child(2) .metric-value {
      color: #92400e !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(2) {
      background: rgba(245, 158, 11, .13) !important;
      border-color: rgba(245, 158, 11, .22) !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(2) .metric-value {
      color: #fcd34d !important;
    }

    /* Heard — green */
    .reader-root .metric-item:nth-child(3) {
      background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
      border-color: rgba(34, 197, 94, .20) !important;
    }

    .reader-root .metric-item:nth-child(3) .metric-value {
      color: #15803d !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(3) {
      background: rgba(34, 197, 94, .13) !important;
      border-color: rgba(34, 197, 94, .22) !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(3) .metric-value {
      color: #4ade80 !important;
    }

    /* Revealed — violet */
    .reader-root .metric-item:nth-child(4) {
      background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
      border-color: rgba(139, 92, 246, .18) !important;
    }

    .reader-root .metric-item:nth-child(4) .metric-value {
      color: #5b21b6 !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(4) {
      background: rgba(139, 92, 246, .13) !important;
      border-color: rgba(139, 92, 246, .22) !important;
    }

    .reader-root.theme-dark .metric-item:nth-child(4) .metric-value {
      color: #c4b5fd !important;
    }

    .reader-root .metric-label {
      font-size: 9px !important;
      font-weight: 800 !important;
      text-transform: uppercase !important;
      letter-spacing: .10em !important;
      color: var(--muted) !important;
      white-space: nowrap !important;
    }

    .reader-root .metric-value {
      font-size: clamp(18px, 2.8vw, 24px) !important;
      font-weight: 900 !important;
      line-height: 1 !important;
      letter-spacing: -.03em !important;
      white-space: nowrap !important;
    }

    /* Playback strip */
    .reader-root .playback-status {
      border-top: 1px solid rgba(0, 0, 0, .07) !important;
      padding-top: 12px !important;
      margin-top: 0 !important;
      display: grid !important;
      gap: 5px !important;
    }

    .reader-root.theme-dark .playback-status {
      border-top-color: rgba(255, 255, 255, .07) !important;
    }

    .reader-root .playback-label {
      font-size: 9px !important;
      font-weight: 800 !important;
      text-transform: uppercase !important;
      letter-spacing: .10em !important;
      color: var(--muted) !important;
    }

    .reader-root .playback-current {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: var(--text) !important;
    }

    .reader-root .playback-track {
      height: 5px !important;
      border: none !important;
      border-radius: 999px !important;
      background: rgba(0, 0, 0, .07) !important;
      overflow: hidden !important;
    }

    .reader-root.theme-dark .playback-track {
      background: rgba(255, 255, 255, .09) !important;
    }

    .reader-root .playback-track-fill {
      height: 100% !important;
      border-radius: 999px !important;
      background: linear-gradient(90deg, var(--accent), #60a5fa) !important;
      transition: width .3s ease !important;
    }

    /* ── CONFIDENCE BUTTONS — coloured ── */
    .reader-root .confidence-btn {
      min-height: 40px !important;
      padding: 0 22px !important;
      border-radius: 999px !important;
      font-size: 13.5px !important;
      font-weight: 700 !important;
      transition: transform .15s ease, box-shadow .18s ease !important;
    }

    .reader-root .confidence-btn:hover {
      transform: translateY(-1px) !important;
    }

    .reader-root .confidence-btn[data-conf="easy"] {
      background: rgba(34, 197, 94, .10) !important;
      border-color: rgba(34, 197, 94, .22) !important;
      color: #15803d !important;
    }

    .reader-root .confidence-btn[data-conf="easy"]:hover,
    .reader-root .confidence-btn[data-conf="easy"].active {
      background: rgba(34, 197, 94, .20) !important;
      border-color: rgba(34, 197, 94, .36) !important;
      box-shadow: 0 4px 12px rgba(34, 197, 94, .18) !important;
    }

    .reader-root .confidence-btn[data-conf="okay"] {
      background: rgba(245, 158, 11, .10) !important;
      border-color: rgba(245, 158, 11, .22) !important;
      color: #92400e !important;
    }

    .reader-root .confidence-btn[data-conf="okay"]:hover,
    .reader-root .confidence-btn[data-conf="okay"].active {
      background: rgba(245, 158, 11, .20) !important;
      border-color: rgba(245, 158, 11, .36) !important;
      box-shadow: 0 4px 12px rgba(245, 158, 11, .18) !important;
    }

    .reader-root .confidence-btn[data-conf="hard"] {
      background: rgba(239, 68, 68, .08) !important;
      border-color: rgba(239, 68, 68, .18) !important;
      color: #b91c1c !important;
    }

    .reader-root .confidence-btn[data-conf="hard"]:hover,
    .reader-root .confidence-btn[data-conf="hard"].active {
      background: rgba(239, 68, 68, .18) !important;
      border-color: rgba(239, 68, 68, .32) !important;
      box-shadow: 0 4px 12px rgba(239, 68, 68, .16) !important;
    }

    .reader-root.theme-dark .confidence-btn[data-conf="easy"] {
      background: rgba(34, 197, 94, .12) !important;
      border-color: rgba(34, 197, 94, .22) !important;
      color: #4ade80 !important;
    }

    .reader-root.theme-dark .confidence-btn[data-conf="okay"] {
      background: rgba(245, 158, 11, .12) !important;
      border-color: rgba(245, 158, 11, .22) !important;
      color: #fbbf24 !important;
    }

    .reader-root.theme-dark .confidence-btn[data-conf="hard"] {
      background: rgba(239, 68, 68, .12) !important;
      border-color: rgba(239, 68, 68, .22) !important;
      color: #f87171 !important;
    }

    /* ── QUIZ CTA CARD ── */
    .reader-root .quiz-enter-btn {
      padding: 10px 22px !important;
      border-radius: 999px !important;
      background: linear-gradient(135deg, #3b7bec, #2563eb) !important;
      color: #fff !important;
      font-weight: 700 !important;
      font-size: 14px !important;
      box-shadow: 0 4px 14px rgba(59, 123, 236, .28) !important;
      transition: transform .15s ease, box-shadow .18s ease !important;
      border: none !important;
    }

    .reader-root .quiz-enter-btn:hover {
      transform: translateY(-1px) !important;
      box-shadow: 0 6px 18px rgba(59, 123, 236, .34) !important;
      background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    }

    /* ── DRAWER — light backdrop, white panel ── */
    .reader-root .drawer {
      background: #ffffff !important;
      border-left: 1px solid rgba(0, 0, 0, .07) !important;
      box-shadow: -4px 0 20px rgba(14, 25, 40, .08) !important;
    }

    .reader-root .drawer-overlay {
      background: rgba(80, 100, 130, .12) !important;
      backdrop-filter: blur(6px) !important;
      -webkit-backdrop-filter: blur(6px) !important;
    }

    .reader-root.theme-dark .drawer {
      background: #172131 !important;
      border-left: 1px solid rgba(255, 255, 255, .05) !important;
    }

    .reader-root.theme-dark .drawer-overlay {
      background: rgba(5, 10, 22, .35) !important;
    }

    .reader-root .drawer-item-shell {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, .06) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 3px 10px rgba(14, 25, 40, .05) !important;
      transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease !important;
    }

    .reader-root .drawer-item-shell:hover:not(.active) {
      transform: translateY(-2px) !important;
      box-shadow: 0 4px 10px rgba(14, 25, 40, .08), 0 10px 22px rgba(14, 25, 40, .08) !important;
      border-color: rgba(59, 123, 236, .18) !important;
    }

    .reader-root .drawer-item-shell.active {
      background: #f0f5ff !important;
      border-color: rgba(59, 123, 236, .25) !important;
    }

    .reader-root.theme-dark .drawer-item-shell {
      background: rgba(255, 255, 255, .04) !important;
      border-color: rgba(255, 255, 255, .06) !important;
    }

    /* ── MY LIST BOX ── */
    .reader-root .my-list-box {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, .07) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 14px rgba(14, 25, 40, .07) !important;
      border-radius: var(--radius) !important;
    }

    .reader-root .my-list-header {
      border-bottom-color: rgba(0, 0, 0, .07) !important;
    }

    .reader-root .my-list-item {
      background: rgba(59, 123, 236, .04) !important;
      border-color: rgba(59, 123, 236, .10) !important;
      border-radius: 12px !important;
    }

    .reader-root.theme-dark .my-list-box {
      background: #172131 !important;
    }

    .reader-root.theme-dark .my-list-item {
      background: rgba(110, 169, 255, .06) !important;
      border-color: rgba(110, 169, 255, .12) !important;
    }

    /* ── VOCAB CHIPS ── */
    .reader-root .vocab-chip {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, .07) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04) !important;
      border-radius: 12px !important;
      transition: background .16s ease, border-color .16s ease, transform .14s ease, box-shadow .14s ease !important;
    }

    .reader-root .vocab-chip:hover {
      background: rgba(59, 123, 236, .06) !important;
      border-color: rgba(59, 123, 236, .22) !important;
      transform: translateX(2px) !important;
      box-shadow: 0 4px 12px rgba(59, 123, 236, .10) !important;
    }

    .reader-root.theme-dark .vocab-chip {
      background: rgba(255, 255, 255, .04) !important;
      border-color: rgba(255, 255, 255, .08) !important;
    }

    /* ── SENTENCE TOOL ── */
    .reader-root .sentence-tool-inner {
      background: #ffffff !important;
      border-color: rgba(59, 123, 236, .14) !important;
      box-shadow: 0 4px 14px rgba(59, 123, 236, .08), 0 1px 3px rgba(0, 0, 0, .04) !important;
      border-radius: 14px !important;
    }

    .reader-root.theme-dark .sentence-tool-inner {
      background: #172131 !important;
      border-color: rgba(110, 169, 255, .14) !important;
    }

    /* ── TEST OPTIONS ── */
    .reader-root .test-option {
      background: #ffffff !important;
      border: 1.5px solid rgba(0, 0, 0, .08) !important;
      border-radius: 16px !important;
      transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease !important;
    }

    .reader-root .test-option:hover:not([disabled]) {
      border-color: rgba(59, 123, 236, .32) !important;
      box-shadow: 0 4px 14px rgba(59, 123, 236, .10) !important;
      transform: translateY(-2px) !important;
    }

    .reader-root.theme-dark .test-option {
      background: rgba(255, 255, 255, .04) !important;
      border-color: rgba(255, 255, 255, .08) !important;
    }

    /* ── READ-ACTION BTNS in drawer — compact pills ── */
    .reader-root .drawer-toggle-btn,
    .reader-root .read-action-btn {
      border-radius: 999px !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      min-height: 32px !important;
      padding: 0 12px !important;
      background: rgba(0, 0, 0, .04) !important;
      border-color: rgba(0, 0, 0, .09) !important;
      box-shadow: none !important;
    }

    .reader-root .drawer-toggle-btn:hover,
    .reader-root .read-action-btn:hover {
      background: rgba(59, 123, 236, .08) !important;
      border-color: rgba(59, 123, 236, .22) !important;
      transform: translateY(-1px) !important;
    }

    .reader-root .drawer-toggle-btn.active {
      background: rgba(59, 123, 236, .10) !important;
      border-color: rgba(59, 123, 236, .26) !important;
      color: #1d4ed8 !important;
    }

    .reader-root .read-pill {
      background: rgba(34, 197, 94, .10) !important;
      border-color: rgba(34, 197, 94, .20) !important;
      color: #15803d !important;
      border-radius: 999px !important;
      font-size: 11px !important;
      min-height: 26px !important;
    }

    /* ── NEXT / READ BUTTONS in test ── */
    .reader-root .next-btn {
      background: linear-gradient(135deg, #3b7bec, #2563eb) !important;
      color: #fff !important;
      border-radius: 999px !important;
      box-shadow: 0 4px 14px rgba(59, 123, 236, .26) !important;
      font-weight: 700 !important;
    }

    .reader-root .next-btn:hover {
      background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
      transform: translateY(-1px) !important;
      box-shadow: 0 6px 18px rgba(59, 123, 236, .32) !important;
    }

    .reader-root .read-btn {
      border-radius: 999px !important;
      border-color: rgba(0, 0, 0, .09) !important;
      background: #ffffff !important;
      font-weight: 700 !important;
    }

    .reader-root .read-btn:hover {
      border-color: rgba(59, 123, 236, .26) !important;
      transform: translateY(-1px) !important;
    }