    :root {
      --bg-color: #0b0e14;
      --bg-image: none;
      --overlay-alpha: 0.94;
      --text-primary: #f8fafc;
      --text-muted: #cbd5e1;
      --card-bg: rgba(24, 31, 44, 0.88);
      --card-border: rgba(255, 255, 255, 0.07);
      --card-hover-border: rgba(99, 102, 241, 0.45);
      --muted-bg: rgba(24, 31, 44, 0.65);
      --panel-bg: rgba(18, 23, 33, 0.92);
      --panel-border: rgba(255, 255, 255, 0.08);
      --input-bg: rgba(18, 23, 33, 0.82);
      --input-border: rgba(255, 255, 255, 0.12);
      --accent: #6366f1;
      --accent-hover: #818cf8;
      --accent-gold: #f59e0b;
      --accent-gold-light: #fbbf24;
      --accent-emerald: #10b981;
      --card-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
      --panel-shadow: 0 24px 48px -14px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    }
    html[data-theme="light"] {
      --bg-color: #f1f5f9;
      --text-primary: #0f172a;
      --text-muted: #475569;
      --card-bg: rgba(255, 255, 255, 0.88);
      --card-border: rgba(15, 23, 42, 0.08);
      --card-hover-border: rgba(37, 99, 235, 0.45);
      --muted-bg: rgba(241, 245, 249, 0.9);
      --panel-bg: rgba(255, 255, 255, 0.92);
      --panel-border: rgba(15, 23, 42, 0.09);
      --input-bg: #ffffff;
      --input-border: #cbd5e1;
      --accent: #2563eb;
      --accent-hover: #1d4ed8;
      --card-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.07), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
      --panel-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.09), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    }
    html, body {
      color: var(--text-primary);
      font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      min-height: 100%;
      margin: 0; padding: 0;
      transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }
    .font-display, .uma-heading {
      font-family: 'Unbounded', 'Montserrat', sans-serif !important;
      letter-spacing: -0.02em;
    }
    code, pre, .font-mono {
      font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    }
    body {
      background-color: var(--bg-color);
      background-image: var(--bg-image);
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      background-repeat: no-repeat;
    }
    .overlay-container {
      background-color: rgba(7, 10, 18, var(--overlay-alpha));
      background-image:
        radial-gradient(at 12% 8%, rgba(245, 158, 11, 0.055) 0px, transparent 42%),
        radial-gradient(at 88% 12%, rgba(59, 130, 246, 0.10) 0px, transparent 45%),
        radial-gradient(at 50% 90%, rgba(139, 92, 246, 0.07) 0px, transparent 50%);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      min-height: 100vh;
    }
    html[data-theme="light"] .overlay-container {
      background-color: rgba(241, 245, 249, var(--overlay-alpha));
      background-image:
        radial-gradient(at 12% 8%, rgba(59, 130, 246, 0.08) 0px, transparent 45%),
        radial-gradient(at 88% 12%, rgba(139, 92, 246, 0.07) 0px, transparent 45%);
    }

    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
      background: var(--input-border);
      border-radius: 999px;
      border: 2px solid transparent;
      background-clip: padding-box;
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
    * { scrollbar-width: thin; scrollbar-color: var(--input-border) transparent; }

    .site-title {
      background: linear-gradient(90deg, #34d399, #10b981, #fbbf24, #34d399);
      background-size: 300% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: titleShift 8s ease-in-out infinite;
      letter-spacing: -0.02em;
    }
    @keyframes titleShift {
      0%, 100% { background-position: 0% 50%; }
      50%      { background-position: 100% 50%; }
    }

    .reveal {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    .ripple-btn {
      position: relative;
      overflow: hidden;
      transform: translateZ(0);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .ripple-btn .ripple-circle {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.35);
      transform: scale(0);
      animation: rippleAnim 0.6s ease-out;
      pointer-events: none;
    }
    @keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

    .sticky-header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 40;
      background: rgba(7, 10, 18, 0.78);
      backdrop-filter: blur(22px) saturate(180%);
      -webkit-backdrop-filter: blur(22px) saturate(180%);
      border-bottom: 1px solid var(--card-border);
      box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35);
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
      padding: 6px 0 6px 16px;
    }
    html[data-theme="light"] .sticky-header {
      background: rgba(255, 255, 255, 0.82);
      box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
    }
    .sticky-header.hidden { transform: translateY(-110%); }
    .page-with-fixed-header { padding-top: 72px; }
    @media (max-width: 768px) { .page-with-fixed-header { padding-top: 68px; } }

    .header-logo-link {
      display: flex;
      align-items: center;
      margin-left: auto;
      padding-right: 0;
    }
    .header-logo-img {
      height: 44px;
      max-height: 44px;
      width: auto;
      object-fit: contain;
      display: block;
    }

    .read-progress {
      position: fixed;
      top: 0; left: 0;
      height: 3px;
      background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
      z-index: 9999;
      transition: width 0.1s linear;
      box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
    }

    .theme-card {
      background-color: var(--card-bg);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--card-border);
      box-shadow: var(--card-shadow);
      transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
    }
    .theme-input {
      background-color: var(--input-bg);
      border: 1px solid var(--input-border);
      color: var(--text-primary);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }
    .theme-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
      outline: none;
    }
    .theme-panel {
      background-color: var(--panel-bg);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--panel-border);
      box-shadow: var(--panel-shadow);
    }

    mark.hl {
      background: rgba(59, 130, 246, 0.28);
      color: #93c5fd;
      padding: 1px 4px;
      border-radius: 4px;
      font-weight: 700;
    }
    html[data-theme="light"] mark.hl {
      background: rgba(37, 99, 235, 0.18);
      color: #1d4ed8;
    }

    .pulse-dot {
      display: inline-block;
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #10b981;
      animation: pulseDot 1.6s infinite;
    }
    @keyframes pulseDot {
      0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
      70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
      100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }

    .toast-wrap {
      position: fixed;
      bottom: 24px; right: 24px;
      z-index: 10000;
      display: flex; flex-direction: column-reverse; gap: 10px;
      pointer-events: none;
      width: auto; max-width: 380px;
    }
    @media (max-width: 640px) {
      .toast-wrap {
        bottom: 84px;
        left: 16px; right: 16px;
        max-width: none;
        align-items: center;
      }
    }
    .toast-item {
      background: rgba(18, 23, 33, 0.94);
      color: #f8fafc;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 12px 18px;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      pointer-events: auto;
      display: flex; align-items: center; gap: 10px;
      will-change: transform, opacity;
    }
    .toast-item.success { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 12px 32px -6px rgba(16, 185, 129, 0.25); }
    .toast-item.error   { border-color: rgba(239, 68, 68, 0.45); box-shadow: 0 12px 32px -6px rgba(239, 68, 68, 0.25); }
    .toast-item.info    { border-color: rgba(99, 102, 241, 0.45); box-shadow: 0 12px 32px -6px rgba(99, 102, 241, 0.25); }
    .toast-fade-enter-active, .toast-fade-leave-active { transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
    .toast-fade-enter-from, .toast-fade-leave-to { opacity: 0; transform: translateY(16px) scale(0.95); }

    .search-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 0; right: 0;
      max-height: 65vh;
      overflow-y: auto;
      background: var(--panel-bg);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid var(--panel-border);
      border-radius: 16px;
      box-shadow: 0 22px 54px -10px rgba(0, 0, 0, 0.7);
      z-index: 60;
      padding: 8px;
      overscroll-behavior: contain;
    }
    .search-group-title {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      padding: 10px 12px 4px;
    }
    .search-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 10px;
      border-radius: 12px;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.15s ease;
      border: none;
      background: transparent;
      width: 100%;
      text-align: left;
      color: var(--text-primary);
    }
    .search-item:hover { background: rgba(59, 130, 246, 0.14); transform: translateX(2px); }
    .search-item-cover {
      width: 36px; height: 48px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid var(--card-border);
      flex-shrink: 0;
      background: var(--muted-bg);
    }
    .search-item-body { flex: 1; min-width: 0; }
    .search-item-title {
      font-size: 13px;
      font-weight: 700;
      line-height: 1.3;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .search-item-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .search-item-badge {
      font-size: 9.5px;
      font-weight: 800;
      padding: 3px 7px;
      border-radius: 6px;
      flex-shrink: 0;
      letter-spacing: 0.04em;
    }
    .search-empty {
      text-align: center;
      padding: 24px 12px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .reader-modal {
      position: fixed; inset: 0;
      background: #000;
      z-index: 10000;
      overflow-y: auto;
      overflow-x: hidden;
      text-align: center;
    }
    .reader-bar {
      position: sticky; top: 0;
      z-index: 10;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 10px 14px;
      display: flex; align-items: center; justify-content: space-between;
      gap: 10px; flex-wrap: wrap;
    }
    .reader-pages {
      display: flex; flex-direction: column; align-items: center; gap: 0;
    }
    .reader-image {
      display: block; margin: 0 auto;
      width: auto; max-width: 100%; height: auto;
      user-select: none; pointer-events: none;
    }
    .reader-page-divider {
      height: 1px; width: 100%; max-width: 900px; margin: 8px auto;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    }
    .reader-horizontal {
      position: fixed; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: #000; overflow: hidden;
    }
    .reader-horizontal img:not(.comment-avatar) {
      max-width: 100vw; max-height: 100vh;
      width: auto; height: auto; object-fit: contain;
      user-select: none; pointer-events: none;
    }
    .reader-zone {
      position: absolute; top: 0; bottom: 0; width: 35%;
      z-index: 5; cursor: pointer;
      background: transparent; border: none; outline: none;
    }
    .reader-zone:hover { background: rgba(255, 255, 255, 0.04); }
    .reader-zone-left  { left: 0; }
    .reader-zone-right { right: 0; }
    .reader-page-indicator {
      position: absolute; bottom: 16px; left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.7);
      color: #e2e8f0;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 12px; font-weight: 600;
      z-index: 6;
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      pointer-events: none;
    }

    .ext-link-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 14px;
      font-size: 12.5px; font-weight: 700;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
      color: var(--text-primary);
      border: 1px solid rgba(139, 92, 246, 0.4);
      text-decoration: none;
      white-space: nowrap;
      transition: transform 0.15s ease, filter 0.15s ease, border-color 0.2s ease;
    }
    .ext-link-btn:hover { transform: translateY(-2px); filter: brightness(1.1); border-color: rgba(139, 92, 246, 0.7); }

    .reader-cta {
      position: relative;
      background: linear-gradient(135deg, #3b82f6, #8b5cf6);
      box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
      overflow: hidden;
      transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
    }
    .reader-cta:hover {
      transform: translateY(-1px);
      filter: brightness(1.12);
      box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    }
    .reader-cta:active { transform: translateY(0) scale(0.97); }
    .reader-cta::after {
      content: '';
      position: absolute;
      top: 0; left: -60%;
      width: 40%; height: 100%;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
      transform: skewX(-20deg);
      transition: left 0.5s ease;
      pointer-events: none;
    }
    .reader-cta:hover::after { left: 120%; }

    .burger-btn {
      position: fixed;
      right: 12px;
      z-index: 9997;
      width: 46px;
      height: 46px;
      border-radius: 14px;
      background: linear-gradient(135deg, #3b82f6, #8b5cf6);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
      cursor: pointer;
      border: 1px solid rgba(139, 92, 246, 0.5);
      transition: top 0.3s ease, filter 0.15s ease, box-shadow 0.2s ease;
    }
    .burger-btn.header-visible { top: 18px; }
    .burger-btn.header-hidden { top: 18px; }
    .burger-btn:hover { filter: brightness(1.1); box-shadow: 0 10px 28px rgba(139, 92, 246, 0.55); }
    .burger-btn:active { filter: brightness(0.95); }

    .side-menu-backdrop {
      position: fixed; inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(4px);
      z-index: 70;
      animation: fadeIn 0.2s ease;
      touch-action: none;
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .side-menu {
      position: fixed;
      top: 0;
      right: 0;
      left: auto;
      height: 100vh;
      height: 100dvh;
      width: 290px;
      max-width: 85vw;
      background: var(--panel-bg);
      border-left: 1px solid var(--panel-border);
      border-right: none;
      z-index: 71;
      display: flex;
      flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
      box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }
    .side-menu.open { transform: translateX(0); }

    .side-menu-item {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 18px;
      font-size: 14px; font-weight: 600;
      color: var(--text-primary);
      border-left: 3px solid transparent;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
      background: transparent;
      border-top: none; border-right: none; border-bottom: none;
      width: 100%;
      text-align: left;
    }
    .side-menu-item:hover { background: rgba(59, 130, 246, 0.08); }
    .side-menu-item.active {
      background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), transparent);
      border-left-color: #3b82f6;
      color: #60a5fa;
    }

    .donors-fab {
      position: fixed;
      left: 12px;
      z-index: 45;
      height: 42px;
      padding: 0 16px;
      border-radius: 12px;
      background: linear-gradient(135deg, #f59e0b, #ec4899);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4);
      cursor: pointer;
      border: 1px solid rgba(236, 72, 153, 0.5);
      transition: top 0.3s ease, filter 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.3px;
      white-space: nowrap;
    }
    .donors-fab.header-visible { top: 90px; }
    .donors-fab.header-hidden  { top: 12px; }
    @media (max-width: 768px) {
      .donors-fab.header-visible { top: 90px; }
      .donors-fab.header-hidden  { top: 12px; }
    }
    .donors-fab:hover {
      filter: brightness(1.1);
      box-shadow: 0 8px 22px rgba(236, 72, 153, 0.55);
      transform: translateY(-1px);
    }
    .donors-fab:active { transform: translateY(0) scale(0.97); }
    .donors-fab .donors-fab-pulse {
      position: absolute;
      inset: -3px;
      border-radius: 14px;
      border: 2px solid rgba(236, 72, 153, 0.5);
      animation: donorsPulse 2s ease-out infinite;
      pointer-events: none;
    }
    @keyframes donorsPulse {
      0%   { transform: scale(0.92); opacity: 0.9; }
      100% { transform: scale(1.18); opacity: 0; }
    }

    .donors-panel-backdrop {
      position: fixed; inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(4px);
      z-index: 72;
      animation: fadeIn 0.2s ease;
      touch-action: none;
    }

    .donors-panel {
      position: fixed;
      top: 0;
      left: 0;
      right: auto;
      height: 100vh;
      height: 100dvh;
      width: 340px;
      max-width: 88vw;
      background: var(--panel-bg);
      border-right: 1px solid var(--panel-border);
      border-left: none;
      z-index: 73;
      display: flex;
      flex-direction: column;
      transform: translateX(-100%);
      transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
      box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }
    .donors-panel.open { transform: translateX(0); }

    .section-block {
      margin-bottom: 22px;
      border-radius: 20px;
      border: 1px solid var(--panel-border);
      background: var(--panel-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: var(--panel-shadow);
      overflow: hidden;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .section-block:hover {
      border-color: rgba(148, 163, 184, 0.22);
    }
    .section-head {
      display: flex; align-items: center; gap: 12px;
      padding: 15px 18px;
      cursor: pointer;
      user-select: none;
      transition: background 0.2s ease;
      border-bottom: 1px solid transparent;
      background: linear-gradient(90deg, rgba(59, 130, 246, 0.04), transparent);
    }
    .section-head:hover { background: rgba(59, 130, 246, 0.09); }
    .section-block.open .section-head { border-bottom-color: var(--card-border); }
    .section-title { font-weight: 800; font-size: 15.5px; letter-spacing: -0.01em; }
    .section-count {
      font-size: 11px; font-weight: 800;
      padding: 2px 9px; border-radius: 999px;
      background: rgba(59, 130, 246, 0.14);
      color: #60a5fa;
      border: 1px solid rgba(59, 130, 246, 0.25);
    }
    .section-chevron {
      margin-left: auto;
      font-size: 13px; color: var(--text-muted);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    }
    .section-block.open .section-chevron { transform: rotate(180deg); color: #60a5fa; }
    .section-body { padding: 16px 18px; display: block; }

    .drag-handle {
      cursor: grab;
      color: var(--text-muted);
      padding: 6px 8px;
      border-radius: 8px;
      transition: background 0.15s ease, color 0.15s ease;
      user-select: none;
      font-size: 18px;
      line-height: 1;
      touch-action: none;
      background: var(--muted-bg);
      border: 1px solid var(--card-border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .drag-handle:hover { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: #3b82f6; }
    .drag-handle:active { cursor: grabbing; }

    .drop-line {
      height: 3px; background: #3b82f6; border-radius: 3px; margin: 4px 0;
      box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
    }
    .comic-row.dragging { opacity: 0.4; }

    .highlight-flash {
      animation: flashHighlight 2s ease;
    }
    @keyframes flashHighlight {
      0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8); }
      30%  { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.5); }
      100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    }

    .multi-tag-wrap { position: relative; }
    .multi-tag-box {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px;
      padding: 4px 6px;
      border-radius: 8px;
      min-height: 38px;
      cursor: text;
    }
    .multi-tag-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(59, 130, 246, 0.18);
      color: #60a5fa;
      border: 1px solid rgba(59, 130, 246, 0.35);
      border-radius: 6px;
      padding: 2px 6px;
      font-size: 12px;
      font-weight: 600;
      max-width: 100%;
      word-break: break-word;
    }
    .multi-tag-x {
      background: transparent;
      border: none;
      color: inherit;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      padding: 0 2px;
      opacity: 0.7;
    }
    .multi-tag-x:hover { opacity: 1; }
    .multi-tag-input {
      flex: 1;
      min-width: 80px;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text-primary);
      font-size: 13px;
      padding: 4px 2px;
    }
    .multi-tag-dropdown {
      position: absolute;
      top: calc(100% + 4px);
      left: 0; right: 0;
      max-height: 220px;
      overflow-y: auto;
      background: var(--panel-bg);
      border: 1px solid var(--panel-border);
      border-radius: 10px;
      box-shadow: 0 12px 32px rgba(0,0,0,0.5);
      z-index: 100;
      padding: 4px;
    }
    .multi-tag-option {
      display: block;
      width: 100%;
      text-align: left;
      padding: 7px 10px;
      border-radius: 6px;
      background: transparent;
      border: none;
      color: var(--text-primary);
      font-size: 13px;
      cursor: pointer;
    }
    .multi-tag-option:hover,
    .multi-tag-option.active { background: rgba(59, 130, 246, 0.15); }

    /* ==== ПРЕВЬЮ СТРАНИЦ ==== */
    .page-preview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
      gap: 6px;
      margin-top: 8px;
    }
    .page-preview-item {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--card-border);
      background: var(--muted-bg);
    }
    .page-preview-item img {
      display: block;
      width: 100%;
      height: 90px;
      object-fit: cover;
    }
    .page-preview-item .page-num {
      position: absolute;
      left: 4px; top: 4px;
      background: rgba(0,0,0,0.65);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 4px;
    }

    /* ==== МАССОВОЕ УПРАВЛЕНИЕ ГЛАВАМИ ==== */
    .bulk-bar {
      position: sticky;
      bottom: 12px;
      z-index: 30;
      background: var(--panel-bg);
      border: 1px solid var(--panel-border);
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      box-shadow: 0 -8px 24px rgba(0,0,0,0.45);
      border-radius: 12px;
      margin-top: 12px;
    }
    .bulk-bar .bulk-count {
      font-size: 12px;
      font-weight: 800;
      color: var(--accent);
    }
    .chapter-select {
      width: 16px; height: 16px;
      accent-color: #3b82f6;
      cursor: pointer;
      flex-shrink: 0;
    }
    .hash-copy-btn {
      font-size: 11px;
      opacity: 0.55;
      cursor: pointer;
      padding: 2px 5px;
      border-radius: 5px;
      background: transparent;
      border: none;
      color: var(--text-muted);
      transition: opacity 0.15s ease, background 0.15s ease;
    }
    .hash-copy-btn:hover { opacity: 1; background: rgba(59,130,246,0.15); color: #60a5fa; }
