/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --text: #e6edf3;
  --text-muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --border: #2d3a4a;
  --danger: #f87171;
  --ok: #34d399;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f8;
    --bg-elevated: #ffffff;
    --text: #1a1f26;
    --text-muted: #5c6674;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #dce3eb;
    --danger: #dc2626;
    --ok: #059669;
  }
}

html.light,
html.light body {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --text: #1a1f26;
  --text-muted: #5c6674;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #dce3eb;
  --danger: #dc2626;
  --ok: #059669;
}

html.dark,
html.dark body {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --text: #e6edf3;
  --text-muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --border: #2d3a4a;
  --danger: #f87171;
  --ok: #34d399;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.05s ease;
}
button:hover:not(:disabled) {
  background: var(--accent-hover);
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  min-width: 0;
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Home: sticky PWA “Download / Install” bar (does not replace Desktop & Mobile links) */
.pwa-dlbar {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--bg) 88%, #000 12%);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.pwa-dlbar__btn {
  width: 100%;
  max-width: 360px;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.pwa-dlbar__btn:hover,
.pwa-dlbar__btn:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pwa-dlbar__hint,
.pwa-dlbar__sub {
  margin: 0;
  max-width: 26rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.pwa-dlbar[data-open="0"] {
  background: var(--bg-elevated);
}

@media (min-width: 700px) {
  .pdf-host-aside {
    max-height: none !important;
  }
  .pdf-host-body {
    flex-wrap: nowrap !important;
  }
}

/* Mobile remote: book contents modal */
.remote-toc-open-btn {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
}
.remote-toc-open-btn:active {
  filter: brightness(0.95);
}

.remote-toc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

@media (min-height: 520px) {
  .remote-toc-modal {
    align-items: center;
    padding: 16px 12px;
  }
}

@media (min-height: 520px) {
  .remote-toc-modal__panel {
    max-height: min(88dvh, 640px) !important;
    border-radius: 16px;
  }
}

.remote-toc-modal__panel {
  width: 100%;
  max-width: 480px;
  max-height: min(92dvh, 100vh - 32px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 500px) {
  .remote-toc-modal__panel {
    border-radius: 16px;
  }
}

.remote-toc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.remote-toc-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.remote-toc-modal__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.remote-toc-modal__searchwrap {
  padding: 10px 16px 0;
  flex-shrink: 0;
}

.remote-toc-modal__search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.remote-toc-modal__body {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 20px;
  overscroll-behavior: contain;
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/pdf-app.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* PDF chrome — viewer can sit on top of any app theme */
.pdf-app {
  --pdf-chrome: #1e1e1e;
  --pdf-chrome-b: #0d0d0d;
  --pdf-ink: #e8e8e8;
  --pdf-muted: #9aa4b2;
  --pdf-accent: #0d6efd;
  --pdf-canvas: #3d3d3d;
  --pdf-paper: #f5f5f5;
  --pdf-placeholder: #2a2a2a;
  --pdf-ok: #2ecc71;
  --pdf-warn: #f1c40f;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pdf-chrome);
  color: var(--pdf-ink);
}

@media (prefers-color-scheme: light) {
  .pdf-app {
    --pdf-chrome: #f0f0f0;
    --pdf-chrome-b: #d8d8d8;
    --pdf-ink: #1a1a1a;
    --pdf-muted: #5c5c5c;
    --pdf-canvas: #4a4a4a;
    --pdf-paper: #ffffff;
    --pdf-placeholder: #d0d0d0;
  }
}

html.light .pdf-app {
  --pdf-chrome: #f0f0f0;
  --pdf-chrome-b: #d8d8d8;
  --pdf-ink: #1a1a1a;
  --pdf-muted: #5c5c5c;
  --pdf-canvas: #4a4a4a;
  --pdf-paper: #ffffff;
  --pdf-placeholder: #d0d0d0;
}

html.dark .pdf-app {
  --pdf-chrome: #1e1e1e;
  --pdf-chrome-b: #0d0d0d;
  --pdf-ink: #e8e8e8;
  --pdf-muted: #9aa4b2;
  --pdf-canvas: #3d3d3d;
  --pdf-paper: #f5f5f5;
  --pdf-placeholder: #2a2a2a;
}

.pdf-chrome {
  background: var(--pdf-chrome-b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
  position: relative;
  flex-shrink: 0;
}

.pdf-chrome__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
}

.pdf-chrome__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.pdf-chrome__group--right {
  margin-left: auto;
}

.pdf-chrome__link {
  color: var(--pdf-muted) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.pdf-chrome__link:hover {
  color: var(--pdf-ink) !important;
}

.pdf-chrome__btn {
  background: #333;
  color: #eee;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #444;
}
.pdf-chrome__btn--pri {
  background: var(--pdf-accent);
  color: #fff;
  border-color: #0b5ed7;
}
.pdf-chrome__btn:hover {
  filter: brightness(1.1);
}
.pdf-chrome__label {
  margin-left: 4px;
}
.pdf-chrome__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #2a2a2a;
  color: #ddd;
  border: 1px solid #3a3a3a;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.pdf-chrome__ic:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pdf-chrome__ic:hover:not(:disabled) {
  background: #363636;
}
.pdf-chrome__ic--on {
  outline: 1px solid var(--pdf-accent);
  color: #fff;
}

.pdf-chrome__page {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--pdf-muted);
}
.pdf-chrome__go {
  margin-left: 2px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  background: #2a4a6a;
  color: #e8f4ff;
  border: 1px solid #3a6a9a;
  cursor: pointer;
  flex-shrink: 0;
}
.pdf-chrome__go:hover {
  filter: brightness(1.1);
}
.pdf-chrome__input {
  width: 3.2rem;
  text-align: center;
  background: #111;
  color: #eee;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 13px;
}
.pdf-chrome__input--num {
  width: 3rem;
}
.pdf-chrome__zoomin {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0 2px 0 0;
}
.pdf-chrome__pct {
  font-size: 12px;
  color: var(--pdf-muted);
  margin-right: 4px;
}
.pdf-chrome__slash {
  font-size: 13px;
  color: var(--pdf-muted);
}

.pdf-chrome__select {
  background: #111;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  max-width: 160px;
}
.pdf-chrome__select--sm {
  max-width: 88px;
}
.pdf-chrome__seg {
  width: 1px;
  height: 20px;
  background: #444;
  margin: 0 2px;
}
.pdf-chrome__fname {
  max-width: 200px;
  font-size: 12px;
  color: var(--pdf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-chrome__err {
  background: #5c1f1f;
  color: #ffccc7;
  padding: 6px 12px;
  font-size: 13px;
  border-top: 1px solid #722;
}
.pdf-chrome__err--soft {
  background: #3a2a1a;
  color: #ffd7a8;
  border-top-color: #6a4a2a;
}
.pdf-chrome__hint {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #aac;
  border-top: 1px solid #333;
  background: rgba(20, 40, 80, 0.25);
}
.pdf-chrome__hint code {
  font-size: 11px;
  color: #9cf;
}
.pdf-chrome__find {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 10px;
  border-top: 1px solid #333;
  color: var(--pdf-muted);
}
.pdf-chrome__find-in {
  flex: 1 1;
  min-width: 0;
  max-width: 480px;
  background: #111;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}
.pdf-chrome__remote {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pdf-muted);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.pdf-chrome__remote-d {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.pdf-chrome__code {
  font-size: 12px;
  color: #9cf;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-chrome__code--big {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  max-width: none;
}
.pdf-chrome__session-msg {
  color: #aaa;
  font-size: 11px;
  white-space: nowrap;
}
.pdf-chrome__status[data-s="connected"] {
  color: var(--pdf-ok);
  font-weight: 700;
}
.pdf-chrome__status[data-s="waiting"] {
  color: var(--pdf-warn);
  font-weight: 600;
}
.pdf-chrome__status[data-s="disconnected"] {
  color: var(--pdf-muted);
}
.pdf-chrome__qr {
  position: absolute;
  right: 10px;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.pdf-body {
  display: flex;
  flex: 1 1;
  min-height: 0;
  position: relative;
}
@media (max-width: 900px) {
  .pdf-body {
    flex-direction: column;
  }
  .pdf-side {
    width: 100%;
    max-height: 140px;
    border-right: none;
    border-bottom: 1px solid #333;
  }
  .pdf-thumb {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pdf-thumb__btn {
    min-width: 40px;
  }
}
.pdf-side {
  width: 160px;
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #252525;
  border-right: 1px solid #333;
  overflow: hidden;
}
.pdf-side__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  padding: 10px 10px 6px;
  margin: 0;
  font-weight: 700;
}
.pdf-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 6px 10px;
  overflow: auto;
  flex: 1 1;
}
.pdf-thumb__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 4px;
  background: #1b1b1b;
  border: 1px solid #3a3a3a;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
}
.pdf-thumb__btn:hover {
  background: #2a2a2a;
  border-color: #555;
}
.pdf-thumb__btn--on {
  background: #1a3a2a;
  border-color: #2a7a4a;
  color: #8f8;
}
.pdf-main {
  flex: 1 1;
  min-width: 0;
  position: relative;
  background: var(--pdf-canvas);
}
.pdf-scroller {
  position: absolute;
  inset: 0;
  overflow: auto;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.pdf-continuous,
.pdf-single {
  padding: 20px 16px 80px;
  min-height: 100%;
  box-sizing: border-box;
}
.pdf-hint {
  text-align: center;
  color: #888;
  font-size: 15px;
  line-height: 1.5;
  max-width: 400px;
  margin: 64px auto;
}

.pdf-hint--stack {
  max-width: min(480px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 32px auto 64px;
}

/* Toolbar: local recent files (IndexedDB) */
.pdf-chrome__history {
  position: relative;
  z-index: 8;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}
.pdf-chrome__history-sum {
  list-style: none;
  cursor: pointer;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pdf-muted);
  font-weight: 600;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.pdf-chrome__history-sum::-webkit-details-marker {
  display: none;
}
.pdf-chrome__history-count {
  display: inline-flex;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.35);
  color: #cfe0ff;
}
.pdf-chrome__history[open] .pdf-chrome__history-sum {
  color: var(--pdf-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pdf-chrome__history-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 220px;
  max-width: min(320px, 90vw);
  max-height: min(200px, 40vh);
  overflow: auto;
}
.pdf-chrome__history-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
}
.pdf-chrome__history-open {
  flex: 1 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px 6px 10px;
  border: 0;
  background: transparent;
  color: var(--pdf-ink);
  font-size: 12px;
  cursor: pointer;
  min-width: 0;
}
.pdf-chrome__history-open:hover {
  background: rgba(255, 255, 255, 0.06);
}
.pdf-chrome__history-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-chrome__history-meta {
  font-size: 10px;
  color: var(--pdf-muted);
}
.pdf-chrome__history-rm {
  width: 28px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--pdf-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}
.pdf-chrome__history-rm:hover {
  color: #f66;
  background: rgba(255, 0, 0, 0.1);
}

/* Empty state: recents */
.pdf-recent {
  width: 100%;
  max-width: min(480px, 96vw);
  margin-top: 24px;
  padding: 12px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--pdf-placeholder, #2a2a2a);
  text-align: left;
  box-sizing: border-box;
}
.pdf-recent__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pdf-muted, #9aa4b2);
}
.pdf-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pdf-recent__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.pdf-recent__open {
  flex: 1 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--pdf-ink);
  font-size: 14px;
  cursor: pointer;
}
.pdf-recent__open:hover {
  border-color: rgba(13, 110, 253, 0.45);
  background: rgba(13, 110, 253, 0.12);
}
.pdf-recent__name {
  font-weight: 600;
  word-break: break-word;
}
.pdf-recent__sub {
  font-size: 11px;
  color: var(--pdf-muted);
}
.pdf-recent__remove {
  flex-shrink: 0;
  align-self: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--pdf-muted);
  cursor: pointer;
}
.pdf-recent__remove:hover {
  color: #f99;
  border-color: rgba(255, 100, 100, 0.4);
}
.pdf-fab {
  color: #8af;
  font-size: 13px;
  margin-top: 12px;
  display: block;
}

/* Reader: floating page bubble + contents button (replaces fixed sidebar) */
.pdf-reader-toc__fab {
  position: absolute;
  z-index: 6;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(32, 36, 44, 0.92);
  color: #e4e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.pdf-reader-toc__fab:hover {
  filter: brightness(1.1);
}
.pdf-reader-pagebubble {
  position: absolute;
  z-index: 6;
  bottom: 14px;
  right: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1a1a1a;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
html.dark .pdf-reader-pagebubble {
  background: rgba(40, 44, 52, 0.95);
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.1);
}
.pdf-reader-pagebubble__sep {
  opacity: 0.45;
  font-weight: 500;
  margin: 0 2px;
}
.pdf-reader-side {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}
.pdf-reader-side__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  pointer-events: auto;
  cursor: default;
  padding: 0;
  margin: 0;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}
.pdf-reader-side__panel {
  position: relative;
  width: min(320px, 92vw);
  max-width: 96vw;
  background: var(--pdf-chrome, #1e1e1e);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 0;
  pointer-events: auto;
  align-self: stretch;
}
.pdf-reader-side__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pdf-reader-side__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  flex: 1 1;
  min-width: 0;
}
.pdf-reader-side__tabs {
  display: flex;
  gap: 4px;
}
.pdf-reader-side__tabs button {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #333;
  color: #ccc;
  border: 1px solid #444;
  cursor: pointer;
}
.pdf-reader-side__tabs button.on {
  background: var(--pdf-accent, #0d6efd);
  color: #fff;
  border-color: #0b5ed7;
}
.pdf-reader-side__x {
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.pdf-reader-side__body {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 10px;
}
.pdf-reader-toc__ul {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}
.pdf-reader-toc__li {
  margin: 0;
}
.pdf-reader-toc__btn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 10px 6px 8px;
  margin: 0;
  background: transparent;
  border: 0;
  color: #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.pdf-reader-toc__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pdf-reader-toc__empty {
  margin: 12px 12px 0;
  font-size: 13px;
  color: var(--pdf-muted, #9aa4b2);
  line-height: 1.4;
}
.pdf-reader-side .pdf-thumb {
  max-height: none;
  padding: 0 8px 12px;
}

/* Print */
@media print {
  @page {
    size: auto;
    margin: 8mm;
  }
  .no-print,
  .pdf-chrome,
  .pdf-side,
  .pdf-reader-toc__fab,
  .pdf-reader-side,
  .pdf-reader-pagebubble,
  .ThemeToggle,
  .pdf-app {
    max-height: none;
    min-height: auto;
    background: #fff;
  }
  .pdf-body {
    display: block;
  }
  .pdf-scroller,
  .pdf-main {
    position: static;
    overflow: visible;
  }
  .pdf-continuous,
  .pdf-single {
    padding: 0;
  }
  .pdf-page-outer,
  .pdf-page-wrap {
    page-break-after: always;
    break-after: page;
  }
  canvas {
    print-color-adjust: exact;
  }
}

