/* sphinx-annotated-pdf: viewer styles.
 * Uses pydata-sphinx-theme design tokens (--pst-*) with fallbacks so the
 * viewer also looks right in Furo / RTD / Alabaster. Dark mode follows
 * html[data-theme="dark"] (pydata) and prefers-color-scheme as a fallback.
 */
.apdf {
  --apdf-primary: var(--pst-color-primary, #0a7080);
  --apdf-text: var(--pst-color-text-base, #222832);
  --apdf-muted: var(--pst-color-text-muted, #646464);
  --apdf-border: var(--pst-color-border, #d1d5da);
  --apdf-surface: var(--pst-color-surface, #f3f4f5);
  --apdf-bg: var(--pst-color-background, #fff);
  --apdf-on-bg: var(--pst-color-on-background, #fff);
  --apdf-on-primary: #fff;          /* text on a primary-coloured pill; dark themes use a light primary, so it flips */
  --apdf-stage: #e6e9ec;
  --apdf-radius: 0.375rem;
  --apdf-font: var(--pst-font-family-base, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --apdf-mono: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
  --apdf-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px -8px rgba(0, 0, 0, .18);
  position: relative;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--apdf-border);
  border-radius: var(--apdf-radius);
  background: var(--apdf-bg);
  box-shadow: var(--apdf-shadow);
  font-family: var(--apdf-font);
  color: var(--apdf-text);
  overflow: hidden;
  scroll-margin-top: calc(var(--pst-header-height, 4rem) + 1rem);
}
html[data-theme="dark"] .apdf, .apdf-fs.apdf-dark {
  --apdf-stage: #14181d;
  --apdf-on-primary: #0b1014;
  --apdf-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .apdf { --apdf-stage: #14181d; --apdf-on-primary: #0b1014; }
}

/* ---------------------------------------------------------------- header */
.apdf-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--apdf-border);
  background: var(--apdf-surface);
}
.apdf-heading { display: flex; align-items: baseline; gap: .6rem; min-width: 0; flex: 1; }
.apdf-kicker { font-size: .8rem; color: var(--apdf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.apdf-kicker::before { content: "·"; margin-right: .6rem; }
.apdf-title { font-weight: 700; font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 60%; }
.apdf-count {
  flex: none;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .5rem;
  border-radius: 999px;
  background: var(--apdf-primary);
  color: var(--apdf-on-primary);
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- viewer */
.apdf-viewer { position: relative; background: var(--apdf-stage); }
.apdf-toolbar { display: flex; gap: .4rem; margin-left: auto; }
.apdf-tb-group {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: .4rem;
  background: var(--apdf-bg);
  border: 1px solid var(--apdf-border);
  position: relative;
}
.apdf-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--apdf-text);
  width: 2rem;
  height: 2rem;
  border-radius: .3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  line-height: 1;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.apdf-btn:hover, .apdf-btn:focus-visible { background: color-mix(in srgb, var(--apdf-primary) 14%, transparent); color: var(--apdf-primary); outline: none; text-decoration: none; }
.apdf-btn:focus-visible { box-shadow: 0 0 0 2px var(--apdf-primary); }
.apdf-btn:disabled { opacity: .4; cursor: default; }
.apdf-btn.apdf-btn-text { width: auto; padding: 0 .6rem; gap: .35rem; font-weight: 600; }
.apdf-btn.apdf-btn-toggle:not(.is-on) { color: var(--apdf-muted); }
.apdf-btn.apdf-btn-toggle:not(.is-on) .apdf-icon { opacity: .55; }
.apdf-btn.apdf-btn-toggle.is-on { color: var(--apdf-primary); }
.apdf-zoom-level { width: auto; min-width: 3.4rem; padding: 0 .4rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.apdf-icon { width: 1rem; height: 1rem; flex: none; }
.apdf-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 10rem;
  padding: .3rem;
  border-radius: .4rem;
  background: var(--apdf-bg);
  border: 1px solid var(--apdf-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
}
.apdf-menu button {
  appearance: none; border: 0; background: transparent; color: var(--apdf-text);
  text-align: left; padding: .4rem .6rem; border-radius: .3rem; cursor: pointer; font: inherit; font-size: .85rem;
}
.apdf-menu button:hover { background: color-mix(in srgb, var(--apdf-primary) 14%, transparent); color: var(--apdf-primary); }
.apdf-menu button.is-current { color: var(--apdf-primary); font-weight: 700; }
.apdf-fs .apdf-menu { background: var(--apdf-surface); }

.apdf-stage {
  position: relative;
  height: var(--apdf-height, 560px);
  max-height: 88vh;
  overflow: auto;
  display: flex;
  outline: none;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}
.apdf-stage.is-panning { cursor: grabbing; user-select: none; }
.apdf-stage.is-fitted { overflow: hidden; overscroll-behavior: auto; }   /* whole page visible: nothing to scroll, and the wheel scrolls the docs page instead of sticking */
.apdf-auto .apdf-stage.is-fitted { background: #fff; }   /* the 1px rounding guard never shows as a grey sliver */
/* default: the stage takes the page's own proportions at full width, so a fitted page has no empty band around it */
.apdf-auto .apdf-stage { height: auto; max-height: none; aspect-ratio: var(--apdf-ratio, 4/3); }
.apdf-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--apdf-primary); }
.apdf-sheet {
  position: relative;
  margin: auto;
  flex: none;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 10px 30px -10px rgba(0, 0, 0, .5);
  width: 0; height: 0;
  transition: none;
}
.apdf-canvas { position: absolute; left: 0; top: 0; display: block; }
.apdf-canvas-tile { z-index: 1; }
.apdf-overlay { position: absolute; inset: 0; z-index: 2; }

/* highlight rectangles: box/tag/hide/ripple live in highlights.css (shared with Studio); only the
   viewer's own states are here */
.apdf-rect:hover, .apdf-rect.is-hover, .apdf-rect:focus-visible {
  background: color-mix(in srgb, var(--apdf-c) 30%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--apdf-c) 45%, transparent);
  outline: none;
  z-index: 3;
}
.apdf-rect.is-active { border-width: 2px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--apdf-c) 35%, transparent); z-index: 3; }
@media (max-width: 720px) {
  /* fixed-height viewers on a phone: no empty band above/below the page */
  .apdf:not(.apdf-auto) .apdf-stage { height: auto; aspect-ratio: var(--apdf-ratio, 4/3); min-height: 16rem; max-height: var(--apdf-height, 560px); }
  .apdf-btn { width: 1.8rem; height: 1.8rem; }
  .apdf-zoom-level { min-width: 2.8rem; }
}

.apdf-loading {
  position: absolute; inset: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  color: var(--apdf-muted); font-size: .9rem; pointer-events: none;
}
.apdf-loading[hidden] { display: none; }
.apdf.is-failed .apdf-loading { pointer-events: auto; }
.apdf-spinner {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid var(--apdf-border); border-top-color: var(--apdf-primary);
  animation: apdf-spin .8s linear infinite;
}
@keyframes apdf-spin { to { transform: rotate(360deg); } }
.apdf.is-busy .apdf-viewer::after {
  content: "Saving screenshot…"; position: absolute; left: .6rem; bottom: .6rem; z-index: 6;
  padding: .3rem .6rem; border-radius: .3rem; background: var(--apdf-bg); border: 1px solid var(--apdf-border);
  font-size: .78rem; color: var(--apdf-muted);
}
.apdf-noscript { padding: 2rem; text-align: center; }

/* ---------------------------------------------------------------- intro/tabs */
/* the caption written under an annotated-pdf directive: the document's own words about it */
.apdf-caption { margin: .5rem 0 1.2rem; padding-left: .9rem; border-left: 2px solid var(--apdf-border, #d1d5da); font-size: .92em; color: var(--apdf-muted, #5a6470); }
.apdf-caption > :last-child { margin-bottom: 0; }
.apdf-intro { padding: .9rem 1rem 0; }
.apdf-intro > :last-child { margin-bottom: 0; }
.apdf-tabs { border-top: 1px solid var(--apdf-border); margin-top: 0; }
.apdf-intro + .apdf-tabs { margin-top: .9rem; }
.apdf-tablist-wrap { position: relative; display: flex; align-items: stretch; background: var(--apdf-surface); border-bottom: 1px solid var(--apdf-border); }
.apdf-tablist {
  display: flex; flex: 1; gap: .15rem; padding: .35rem .5rem 0; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.apdf-tablist::-webkit-scrollbar { display: none; }
.apdf-tab {
  --apdf-c: var(--apdf-primary);
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .7rem .55rem; margin-bottom: -1px;
  border: 1px solid transparent; border-bottom: 0; border-radius: .35rem .35rem 0 0;
  color: var(--apdf-muted); font-size: .9rem; font-weight: 500; text-decoration: none !important;
  white-space: nowrap; max-width: 22rem; cursor: pointer; transition: color .12s, background .12s;
}
.apdf-tab:hover, .apdf-tab.is-hover { color: var(--apdf-text); background: color-mix(in srgb, var(--apdf-c) 10%, transparent); }
.apdf-tab:focus-visible { outline: 2px solid var(--apdf-primary); outline-offset: -2px; }
.apdf-tab.is-active { color: var(--apdf-text); background: var(--apdf-bg); border-color: var(--apdf-border); box-shadow: inset 0 3px 0 var(--apdf-c); font-weight: 600; }
.apdf-tab-label { overflow: hidden; text-overflow: ellipsis; }
.apdf-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--apdf-c); color: #fff; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* tab strip pager: real buttons with their own identity, disabled (not hidden) at either end */
.apdf-tabscroll {
  flex: none; align-self: center; width: 1.9rem; height: 1.9rem; margin: 0 .35rem;
  border: 1px solid var(--apdf-border); border-radius: 999px; background: var(--apdf-bg); color: var(--apdf-text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.apdf-tabscroll:hover:not(:disabled) { color: var(--apdf-primary); border-color: var(--apdf-primary); }
.apdf-tabscroll:focus-visible { outline: 2px solid var(--apdf-primary); outline-offset: 1px; }
.apdf-tabscroll:disabled { opacity: .35; cursor: default; }
.apdf-tabscroll[hidden] { display: none; }

.apdf-panels { padding: 0; }
.apdf-panel { --apdf-c: var(--apdf-primary); padding: .9rem 1rem 1rem; outline: none; }
.apdf-panel[hidden] { display: none; }
.apdf-tabs-stacked .apdf-tablist-wrap { display: none; }
.apdf-tabs-stacked .apdf-panel { display: block !important; border-top: 1px solid var(--apdf-border); }
.apdf-tabs-stacked .apdf-panel:first-child { border-top: 0; }
/* one line: chips on the left (collapsed to "+N" when they do not fit), link + locate pinned on the right */
.apdf-panel-head { display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem .6rem; margin-bottom: .7rem; min-width: 0; }
.apdf-panel-head:empty { display: none; }
.apdf-panel-meta { display: flex; flex-wrap: nowrap; gap: .3rem; flex: 1 1 0; min-width: 0; overflow: hidden; }
.apdf-panel-meta.is-expanded { flex-wrap: wrap; overflow: visible; }
.apdf-panel-meta:empty { display: none; }
.apdf-panel-meta .apdf-chip { flex: none; }
.apdf-panel-meta .apdf-chip[hidden] { display: none; }
.apdf-chip-more { cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; appearance: none; color: var(--apdf-primary); border-style: dashed; }
.apdf-chip-more:hover { background: color-mix(in srgb, var(--apdf-primary) 12%, transparent); }
.apdf-panel-actions { display: inline-flex; flex-wrap: nowrap; gap: .3rem; margin-left: auto; flex: none; }
.apdf-panel-actions .apdf-btn-text span { white-space: nowrap; }
@media (max-width: 640px) { .apdf-panel-locate span { display: none; } .apdf-panel-locate { width: 1.8rem; padding: 0; } }
.apdf-chip {
  display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; line-height: 1.4; border: 1px solid var(--apdf-border);
  color: var(--apdf-muted); background: var(--apdf-surface);
}
.apdf-chip-cat { border-color: color-mix(in srgb, var(--apdf-c) 40%, transparent); color: var(--apdf-c); background: color-mix(in srgb, var(--apdf-c) 10%, transparent); }
code.apdf-chip-ref { font-family: var(--apdf-mono); font-weight: 500; font-size: .74rem; padding: .05rem .45rem; }
.apdf-panel-link, .apdf-panel-locate { border: 1px solid var(--apdf-border); height: 1.8rem; font-size: .78rem; }
.apdf-panel-locate { color: var(--apdf-muted); font-weight: 500; }
.apdf-panel-body > :last-child { margin-bottom: 0; }
.apdf-panel-body p { margin-bottom: .6rem; }
.apdf-muted { color: var(--apdf-muted); font-style: italic; }
.apdf-empty { margin: 0; padding: .9rem 1rem; color: var(--apdf-muted); font-size: .9rem; }

/* summary card for annotated-pdf :show-card: */
.apdf-card {
  display: flex; align-items: center; gap: 1rem; margin: 1rem 0; padding: .8rem 1rem;
  border: 1px solid var(--pst-color-border, #d1d5da); border-radius: .375rem; background: var(--pst-color-surface, #f3f4f5);
}
.apdf-card-body { flex: 1; min-width: 0; }
.apdf-card-title { font-weight: 600; }
.apdf-card-meta { font-size: .8rem; color: var(--pst-color-text-muted, #646464); }
.apdf-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.apdf-card .apdf-btn { border: 1px solid var(--pst-color-border, #d1d5da); color: var(--pst-color-text-base, #222); white-space: nowrap; }
@media (max-width: 640px) { .apdf-card { flex-wrap: wrap; } .apdf-card-actions { width: 100%; justify-content: flex-start; } }

/* ---------------------------------------------------------------- fullscreen */
.apdf-fs {
  --apdf-primary: var(--pst-color-primary, #0a7080);
  --apdf-on-primary: #fff;
  --apdf-text: #e8ebef;
  --apdf-muted: #9aa4b1;
  --apdf-border: #2c333c;
  --apdf-surface: #1b2027;
  --apdf-bg: #10141a;
  --apdf-stage: #0b0e12;
  --apdf-font: var(--pst-font-family-base, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --apdf-mono: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column;
  background: var(--apdf-bg); color: var(--apdf-text); font-family: var(--apdf-font);
}
/* if a host ever puts the overlay into true fullscreen, keep the controls out of the macOS menu-bar reveal zone */
.apdf-fs:fullscreen .apdf-fs-bar { padding-top: calc(.5rem + 28px); }
.apdf-fs[hidden] { display: none; }
body.apdf-fs-open { overflow: hidden; }
.apdf-fs-bar {
  display: flex; align-items: center; gap: 1rem; padding: .5rem .9rem;
  background: var(--apdf-surface); border-bottom: 1px solid var(--apdf-border);
}
.apdf-fs-titles { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .6rem; }
.apdf-fs-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 50%; }
.apdf-fs-kicker { font-size: .8rem; color: var(--apdf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.apdf-fs-kicker::before { content: "·"; margin-right: .6rem; }
.apdf-fs-pager { display: inline-flex; align-items: center; gap: .25rem; font-variant-numeric: tabular-nums; font-size: .85rem; }
.apdf-fs .apdf-tb-group { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.apdf-fs .apdf-btn { color: var(--apdf-text); }
.apdf-fs .apdf-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.apdf-fs-body { position: relative; flex: 1; min-height: 0; display: flex; }
.apdf-fs-stage { flex: 1; height: auto; max-height: none; background: var(--apdf-stage); }

/* page rail: thumbnail, annotation count, heading */
.apdf-fs-side {
  flex: none; width: 13.5rem; overflow-y: auto; overflow-x: hidden; padding: .6rem .6rem 1rem;
  background: var(--apdf-surface); border-right: 1px solid var(--apdf-border); scrollbar-width: thin;
  display: flex; flex-direction: column; gap: .4rem;
}
.apdf-fs-noside .apdf-fs-side { display: none; }
.apdf-fs-thumb {
  appearance: none; display: block; width: 100%; padding: .35rem; border: 1px solid transparent; border-radius: .4rem;
  background: transparent; color: var(--apdf-muted); font: inherit; text-align: left; cursor: pointer;
}
.apdf-fs-thumb:hover { background: rgba(255, 255, 255, .06); color: var(--apdf-text); }
.apdf-fs-thumb:focus-visible { outline: 2px solid var(--apdf-primary); outline-offset: -2px; }
.apdf-fs-thumb.is-active { border-color: var(--apdf-primary); background: color-mix(in srgb, var(--apdf-primary) 18%, transparent); color: #fff; }
html[data-theme="dark"] .apdf-fs, .apdf-fs.apdf-dark { --apdf-on-primary: #0b1014; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .apdf-fs { --apdf-on-primary: #0b1014; } }
.apdf-fs-thumb-img { position: relative; display: block; width: 100%; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.apdf-fs-thumb-img canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.apdf-fs-thumb-marks { position: absolute; inset: 0; }
.apdf-fs-thumb-marks i { position: absolute; opacity: .35; border-radius: 1px; }
.apdf-fs-thumb-badge {
  position: absolute; top: .3rem; right: .3rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  height: 1.2rem; min-width: 1.2rem; padding: 0 .4rem; border-radius: 999px; background: rgba(18, 22, 30, .82); color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .45);
}
.apdf-fs-thumb.is-active .apdf-fs-thumb-badge { background: var(--apdf-primary); color: var(--apdf-on-primary); }
.apdf-fs-thumb-label { display: block; margin-top: .35rem; font-size: .76rem; line-height: 1.3; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.apdf-fs-thumb-label { font-weight: 600; }

/* description card, anchored next to the clicked block and draggable by its header */
.apdf-fs-card {
  position: absolute; left: 1rem; top: 1rem; z-index: 20;
  width: min(40rem, calc(100% - 2rem)); max-height: min(72%, 36rem); display: flex; flex-direction: column;
  border-radius: .5rem; border: 1px solid var(--apdf-border); overflow: hidden;
  background: rgba(20, 25, 32, .9); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 3px 0 var(--apdf-c, var(--apdf-primary));
  animation: apdf-card-in .18s ease-out;
}
.apdf-fs-card[hidden] { display: none; }
@keyframes apdf-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.apdf-fs-card-head {
  display: flex; align-items: center; gap: .6rem; padding: .85rem .6rem .6rem 1rem; flex: none;
  cursor: grab; user-select: none; border-bottom: 1px solid var(--apdf-border);
}
.apdf-fs-card-head.is-dragging { cursor: grabbing; }
.apdf-fs-card-title { flex: 1; min-width: 0; font-weight: 600; color: #fff; }
.apdf-fs-card-inner { overflow: auto; scrollbar-width: thin; }
.apdf-fs-card .apdf-panel { padding: .8rem 1rem 1rem; color: var(--apdf-text); }
.apdf-fs-card .apdf-chip { background: rgba(255, 255, 255, .06); border-color: var(--apdf-border); color: var(--apdf-muted); }
.apdf-fs-card a { color: #8fd3e2; }
.apdf-fs-card code, .apdf-fs-card pre { background: rgba(255, 255, 255, .08); color: #e8ebef; }
.apdf-fs-card .apdf-panel-link { color: var(--apdf-text); }
@media (max-width: 720px) {
  .apdf-fs-bar { flex-wrap: wrap; gap: .4rem; }
  .apdf-fs-titles { flex-basis: 100%; }
  .apdf-fs-body { flex-direction: column; }
  .apdf-fs-side { order: 2; width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-top: 1px solid var(--apdf-border); padding: .4rem .5rem; }
  .apdf-fs-thumb { width: 7.5rem; flex: none; }
  .apdf-fs-thumb-label { -webkit-line-clamp: 1; }
  .apdf-fs-card { left: .5rem !important; right: .5rem; top: auto !important; bottom: .5rem; width: auto; max-height: 48%; }
}

/* print: show every panel, hide controls */
@media print {
  .apdf-toolbar, .apdf-tablist-wrap, .apdf-loading { display: none !important; }
  .apdf-stage { height: auto; max-height: none; overflow: visible; }
  .apdf-panel { display: block !important; break-inside: avoid; }
  .apdf { box-shadow: none; break-inside: avoid; }
}
