.reader-hero {
      position: relative;
      display: grid;
      gap: 14px;
      padding: 22px 24px 72px;
      border-radius: 30px;
      background:
        radial-gradient(circle at top left, rgba(59, 167, 248, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(243, 93, 127, 0.14), transparent 24%),
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-soft) 94%, transparent));
      border: 1px solid rgba(23, 32, 51, 0.06);
      box-shadow: var(--shadow);
    }
    .reader-hero-top {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 16px;
    }
    .reader-hero-vote {
      position: absolute;
      right: 24px;
      bottom: 16px;
      display: flex;
      justify-content: flex-end;
      margin-left: 0;
      z-index: 1;
    }
    .reader-hero-vote-buttons {
      display: flex;
      flex-wrap: nowrap;
      gap: 8px;
      justify-content: flex-end;
    }
    .reader-hero h1 {
      margin: 0;
      font-size: clamp(2rem, 3.8vw, 3.2rem);
      line-height: 1.02;
    }
    .reader-hero p {
      margin: 0;
      max-width: 840px;
      color: var(--muted);
      line-height: 1.7;
    }
    .reader-hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }
    .reader-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(59, 167, 248, 0.14);
      color: var(--blue-700);
      font-size: 0.84rem;
      font-weight: 800;
      box-shadow: 0 12px 26px rgba(45, 97, 146, 0.08);
      width: fit-content;
    }
    .meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
    .meta-card {
      padding: 20px;
      border: 1px solid rgba(23, 32, 51, 0.06);
      border-radius: 22px;
      background: color-mix(in srgb, var(--surface) 98%, transparent);
      box-shadow: 0 18px 40px rgba(46, 90, 138, 0.08);
    }
    .meta-card.vote-card {
      display: grid;
      gap: 10px;
    }
    .vote-card .vote-btn {
      width: 100%;
      justify-content: space-between;
    }
    .vote-card small strong {
      display: inline;
    }
    .reader-shell {
      display: grid;
      gap: 18px;
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      overflow: visible;
    }
    @media (max-width: 991.98px) {
      .reader-shell {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
      }
    }
    .reader-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 16px;
      flex-wrap: wrap;
    }
    .reader-actions,
    .reader-preferences,
    .vote-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }
    .reader-preferences {
      justify-content: flex-end;
    }
    .reader-back-link,
    .reader-bookmark-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #fff;
    }
    .reader-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 0 16px;
      border: 1px solid rgba(23, 32, 51, 0.12);
      border-radius: 999px;
      background: #ffffff;
      color: var(--text);
      font-weight: 700;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .reader-toggle.active {
      background: linear-gradient(135deg, #1f6fb5, #3ba7f8);
      color: #ffffff;
      border-color: transparent;
      box-shadow: 0 16px 28px rgba(31, 111, 181, 0.24);
    }
    .reader-toggle:hover {
      transform: translateY(-1px);
    }
    .reader-status {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding: 14px 16px;
      border-radius: 18px;
      background:
        radial-gradient(circle at top right, rgba(59, 167, 248, 0.1), transparent 38%),
        radial-gradient(circle at bottom left, rgba(243, 93, 127, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
      color: var(--muted);
      border: 1px solid rgba(59, 167, 248, 0.12);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 28px rgba(45, 97, 146, 0.08);
    }
    .reader-status.is-warning {
      background: #fff8e6;
      color: #8a6806;
      border-color: rgba(154, 107, 0, 0.18);
    }
    .reader-status-copy {
      flex: 1 1 240px;
      min-width: 0;
    }
    .reader-status-copy:empty {
      display: none;
    }
    .reader-status-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      flex: 0 1 auto;
      flex-wrap: wrap;
      margin-left: auto;
    }
    .reader-part-controls,
    .reader-page-controls {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
      margin: 0;
    }
    .reader-page-controls {
      margin-left: auto;
      justify-content: flex-end;
    }
    .reader-viewport {
      position: relative;
      display: flex;
      min-height: 520px;
      width: 100%;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .reader-viewport.is-all-pages {
      display: block;
      overflow: visible;
    }
    .reader-viewport.is-single-scroll {
      overflow-x: hidden;
      overflow-y: auto;
    }
    .reader-stage {
      flex: 1 1 auto;
      width: 100%;
      min-height: 484px;
      height: 100%;
      display: grid;
      place-items: center;
    }
    .reader-stage.is-all-pages {
      min-height: 0;
      height: auto;
      display: block;
    }
    .reader-stage.is-single-scroll {
      min-height: 0;
      height: auto;
      display: block;
    }
    .reader-stage.is-turning-next .reader-paper,
    .reader-stage.is-turning-prev .reader-paper {
      animation-duration: 0.34s;
      animation-timing-function: ease;
    }
    .reader-stage.is-turning-next .reader-paper { animation-name: page-flip-next; }
    .reader-stage.is-turning-prev .reader-paper { animation-name: page-flip-prev; }
    .reader-paper {
      width: 100%;
      background: #fffdfa;
      box-shadow: none;
      overflow: hidden;
      cursor: pointer;
    }
    .reader-stage > .reader-paper {
      height: 100%;
    }
    .reader-stage.is-single-scroll > .reader-paper {
      height: auto;
    }
    .reader-paper img,
    .reader-paper canvas {
      width: 100%;
      height: auto;
      display: block;
      background: #fffdfa;
    }
    .reader-stage > .reader-paper img,
    .reader-stage > .reader-paper canvas {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .reader-stage.is-single-scroll > .reader-paper img,
    .reader-stage.is-single-scroll > .reader-paper canvas {
      height: auto;
      object-fit: initial;
    }
    .reader-stack {
      display: grid;
      align-items: start;
      justify-content: center;
      max-height: none;
      overflow: visible;
      padding-right: 0;
    }
    .reader-progress {
      display: grid;
      gap: 12px;
      padding: 16px 18px;
      border-radius: 22px;
      background:
        radial-gradient(circle at top right, rgba(59, 167, 248, 0.1), transparent 38%),
        radial-gradient(circle at bottom left, rgba(243, 93, 127, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
      border: 1px solid rgba(59, 167, 248, 0.12);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 28px rgba(45, 97, 146, 0.08);
    }
    .reader-progress-main {
      display: flex;
      justify-content: flex-end;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap;
    }
    .reader-page-inline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      white-space: nowrap;
    }
    .reader-page-inline strong {
      color: var(--text);
    }
    .reader-page-inline-form,
    .reader-part-inline-form {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
      margin: 0;
      min-width: max-content;
    }
    .reader-page-inline-form select,
    .reader-part-inline-form select {
      min-width: 132px;
      text-align: left;
    }
    .reader-jump-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .reader-jump-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: end;
    }
    .reader-jump-field {
      display: grid;
      gap: 6px;
      min-width: 0;
    }
    .reader-jump-field label {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--muted);
    }
    .reader-jump-field input {
      min-width: 0;
    }
    .vote-strip {
      padding: 14px 16px;
      border-radius: 22px;
      background: color-mix(in srgb, var(--surface) 98%, transparent);
      border: 1px solid rgba(23, 32, 51, 0.06);
      justify-content: flex-end;
    }
    .vote-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(23, 32, 51, 0.12);
      background: #ffffff;
      font-weight: 700;
      color: var(--text);
    }
    .reader-hero-vote .vote-btn {
      min-height: 36px;
      padding: 0 12px;
      font-size: 0.84rem;
      box-shadow: none;
    }
    .vote-btn.active.is-upvote {
      color: #0e6aa8;
      border-color: rgba(14, 106, 168, 0.26);
      background: #edf7ff;
    }
    .vote-btn.active.is-downvote {
      color: #b04a2b;
      border-color: rgba(176, 74, 43, 0.26);
      background: #fff1ec;
    }
    .mature-content-modal .modal-content {
      border: 1px solid rgba(208, 87, 46, 0.18);
      border-radius: 28px;
      background: linear-gradient(135deg, rgba(255, 249, 245, 0.98), rgba(255, 248, 223, 0.95));
      box-shadow: 0 24px 48px rgba(23, 32, 51, 0.16);
    }
    .mature-content-modal .modal-header,
    .mature-content-modal .modal-footer {
      border-color: rgba(208, 87, 46, 0.12);
    }
    .mature-content-modal .modal-footer {
      display: flex;
      flex-wrap: nowrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
    }
    .mature-content-modal .modal-footer .btn {
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .mature-content-modal .modal-title {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #8f3617;
    }
    .mature-content-modal .modal-body {
      color: #6c472d;
      line-height: 1.65;
    }
    .mature-content-modal .modal-body p:last-child {
      margin-bottom: 0;
    }
    .reader-answer-card {
      padding: 22px;
      border-radius: 26px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-soft) 94%, transparent));
      border: 1px solid rgba(23, 32, 51, 0.06);
      box-shadow: var(--shadow);
    }
    .reader-answer-card p:last-child {
      margin-bottom: 0;
    }
    @keyframes page-flip-next {
      0% { transform: perspective(1600px) rotateY(0deg) translateX(0); opacity: 1; }
      50% { transform: perspective(1600px) rotateY(-8deg) translateX(-12px); opacity: 0.88; }
      100% { transform: perspective(1600px) rotateY(0deg) translateX(0); opacity: 1; }
    }
    @keyframes page-flip-prev {
      0% { transform: perspective(1600px) rotateY(0deg) translateX(0); opacity: 1; }
      50% { transform: perspective(1600px) rotateY(8deg) translateX(12px); opacity: 0.88; }
      100% { transform: perspective(1600px) rotateY(0deg) translateX(0); opacity: 1; }
    }
    body.dark-theme .reader-answer-card {
      background: linear-gradient(180deg, rgba(16, 27, 43, 0.98), rgba(12, 21, 33, 0.98));
      border-color: rgba(147, 167, 199, 0.12);
      box-shadow: 0 28px 54px rgba(0, 0, 0, 0.3);
    }
    body.dark-theme .reader-toggle,
    body.dark-theme .vote-btn {
      background: #132238;
      color: #e6eefb;
      border-color: rgba(147, 167, 199, 0.16);
    }
    body.dark-theme .reader-toggle.active {
      background: linear-gradient(135deg, #2788d8, #d95779);
    }
    body.dark-theme .reader-status,
    body.dark-theme .reader-progress {
      background:
        radial-gradient(circle at top right, rgba(59, 167, 248, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(243, 93, 127, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(20, 34, 54, 0.96), rgba(15, 27, 43, 0.98));
      border-color: rgba(108, 167, 220, 0.2);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 18px 34px rgba(0, 0, 0, 0.24);
    }
    body.dark-theme .vote-strip,
    body.dark-theme .meta-card {
      background: rgba(18, 32, 51, 0.94);
      border-color: rgba(147, 167, 199, 0.12);
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    }
    body.dark-theme .mature-content-modal .modal-content {
      background: linear-gradient(180deg, rgba(24, 35, 50, 0.98), rgba(17, 25, 36, 0.98));
      border-color: rgba(147, 167, 199, 0.14);
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    }
    body.dark-theme .mature-content-modal .modal-header,
    body.dark-theme .mature-content-modal .modal-footer {
      border-color: rgba(147, 167, 199, 0.12);
    }
    body.dark-theme .mature-content-modal .modal-title {
      color: #ffd9c9;
    }
    body.dark-theme .mature-content-modal .modal-body {
      color: #c7d7ee;
    }
    body.dark-theme .reader-viewport {
      background: transparent;
      border-color: transparent;
    }
    body.dark-theme .reader-paper {
      background: #f7f1e7;
      border-color: rgba(92, 75, 46, 0.22);
    }
    @media (max-width: 991.98px) {
      .reader-toolbar { flex-direction: column; }
      .reader-preferences { justify-content: flex-start; }
      .reader-hero-top { align-items: stretch; justify-content: flex-start; }
      .reader-hero-vote {
        right: 18px;
        bottom: 14px;
      }
      .vote-strip { justify-content: flex-start; }
    }
    @media (max-width: 575.98px) {
      .reader-hero {
        gap: 12px;
        padding: 18px 16px 66px;
      }
      .reader-hero-top {
        flex-wrap: wrap;
        overflow: visible;
        gap: 10px;
        align-items: flex-start;
      }
      .reader-hero-meta,
      .reader-toolbar,
      .reader-actions,
      .reader-preferences {
        flex-wrap: nowrap;
      }
      .reader-hero-meta,
      .reader-actions,
      .reader-preferences {
        min-width: 0;
      }
      .reader-hero-vote {
        right: 16px;
        bottom: 12px;
      }
      .reader-chip,
      .reader-hero-vote .vote-btn,
      .reader-toggle,
      .reader-back-link,
      .reader-bookmark-btn {
        min-height: 34px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.78rem;
      }
      .reader-toolbar {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        gap: 10px;
      }
      .reader-progress {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        flex-wrap: initial;
        overflow-x: visible;
      }
      .reader-progress-main,
      .reader-status-actions {
        width: 100%;
        min-width: 0;
      }
      .reader-progress-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .reader-page-inline-form,
      .reader-part-inline-form,
      .reader-page-controls,
      .reader-part-controls {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-width: 0;
      }
      .reader-page-inline {
        width: 100%;
        min-width: 0;
      }
      .reader-page-inline-form select,
      .reader-part-inline-form select,
      .reader-page-controls select,
      .reader-part-controls select {
        width: 100%;
        min-width: 0;
      }
      .reader-page-controls {
        width: 100%;
      }
      .reader-actions,
      .reader-preferences {
        gap: 8px;
      }
      .reader-back-label,
      .reader-bookmark-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .mature-content-modal .modal-footer {
        gap: 6px;
      }
      .mature-content-modal .modal-footer .btn {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 0.78rem;
      }
      .reader-shell { padding: 0; }
      .reader-viewport { min-height: 400px; padding: 0; }
      .reader-stage { min-height: 360px; }
    }
