
  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0;font-family:inherit}

  :root {
    --sidebar-w: 280px;
    --navy: #0d2137;
    --navy-light: #14334d;
    --accent: #e8375a;
    --accent-hover: #ff4d6d;
    --link: #5cc8f0;
    --link-hover: #8ddcff;
    --text-light: #dce6ef;
    --text-muted: #8fa5b8;
    --content-bg: #4a5562;
    --content-bg-alt: #3d464f;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-display: 'Inter', 'Segoe UI', sans-serif;
    --transition: .25s cubic-bezier(.4,0,.2,1);
    --vein-modal-close-top: 12px;
    --vein-modal-close-right: 14px;
    --vein-modal-close-top-mobile: 18px;
    --vein-modal-close-right-mobile: 18px;
  }

  html { font-size: 16px; scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--content-bg);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
  }

  body.vein-modal-open {
    overflow: hidden;
  }

  /* ── SIDEBAR ─────────────────────────────────── */
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--navy-light) transparent;
  }

  /* Hero / banner illustration area */
  .sidebar-hero {
    background: url('images/mpn-svt-study-video-cover.jpg') center/cover no-repeat;
    position: relative;
    width: 100%;
    aspect-ratio: 1.15;
    overflow: hidden;
    flex-shrink: 0;
  }

  /* Home button */
  .home-btn {
    position: absolute;
    top: 0; right: -44px;
    width: 44px; height: 44px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.15rem;
  }
  .home-btn:hover { background: var(--accent-hover); }

  /* Navigation */
  .sidebar-nav {
    flex: 1;
    padding: 1.5rem 1.25rem;
  }
  .sidebar-nav h3 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin-bottom: .85rem;
    font-weight: 600;
  }
  .sidebar-nav ul { list-style: none; }
  .sidebar-nav li { margin-bottom: .15rem; }
  .sidebar-nav a {
    display: block;
    padding: .5rem .75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #FFF;
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
    line-height: 1.35;
  }
  .sidebar-nav a:hover,
  .sidebar-nav a:focus-visible {
    background: var(--navy-light);
    color: #E11D1E;
  }
  .sidebar-nav a.active {
    background: rgba(92,200,240,.12);
    color: #fff;
  }

  /* Instructions */
  .sidebar-instructions {
    padding: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    background: #131313;
  }
  .sidebar-instructions h4 {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text-light);
  }
  .sidebar-instructions p {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.55;
  }
  .sidebar-instructions strong { color: var(--text-light); font-weight: 700; }

  /* Footer */
  .sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    background: #5A6469;
  }
  .sidebar-footer p {
    font-size: .72rem;
    line-height: 1.6;
    margin-bottom: .35rem;
  }
  .sidebar-footer .disclaimer {
    font-style: italic;
    color: var(--text-light);
    font-size: .75rem;
    margin-bottom: .65rem;
  }

  /* ── MENU BOTTOM ────────────────────────────── */
  .flipbook-menuBottom {
    display: none;
  }

  /* ── MAIN CONTENT ────────────────────────────── */
  .main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* Top bar (right controls) */
  .topbar {
    position: fixed;
    top: 0; right: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .topbar-btn {
    width: 48px; height: 48px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    transition: background var(--transition);
  }
  #menuBtn { display: none; }
  .btn-menu { background: var(--navy); }
  .btn-menu:hover { background: var(--navy-light); }
  .btn-rewind { background: var(--navy-light); }
  .btn-rewind:hover { background: var(--navy); }
  .btn-rehighlight { background: #F6B817; }
  .btn-rehighlight:hover,
  .btn-rehighlight.is-active { background: #F6B817; }
  .topbar-popover {
    position: relative;
  }
  .btn-content-view { background: #355577; }
  .btn-content-view:hover,
  .btn-content-view.is-open { background: #294462; }
  .topbar-popover-menu {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    min-width: 184px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(17, 33, 50, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(4px);
    z-index: 95;
  }
  .topbar-popover-menu[hidden] {
    display: none;
  }
  .topbar-popover-item {
    border: 0;
    background: transparent;
    color: #ecf2f8;
    font-size: .87rem;
    font-weight: 600;
    text-align: left;
    border-radius: 7px;
    padding: 9px 10px;
    cursor: pointer;
    transition: background var(--transition);
  }
  .topbar-popover-item:hover,
  .topbar-popover-item:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    outline: none;
  }

  .tippy-box[data-theme~='kcl-tooltip'] {
    background: rgba(17, 33, 50, 0.97);
    color: #eaf2f8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
  }

  .tippy-box[data-theme~='kcl-tooltip'] .tippy-content {
    padding: 10px 12px;
  }

  .tippy-box[data-theme~='kcl-tooltip'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: rgba(17, 33, 50, 0.97);
  }
  .tippy-box[data-theme~='kcl-tooltip'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: rgba(17, 33, 50, 0.97);
  }
  .tippy-box[data-theme~='kcl-tooltip'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: rgba(17, 33, 50, 0.97);
  }
  .tippy-box[data-theme~='kcl-tooltip'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: rgba(17, 33, 50, 0.97);
  }

  .flipbook-page-item-link.kcl-rehighlight {
    animation: rehighlightPulse .3s ease-out;
    box-shadow: 0 0 0 2px rgba(255,255,255,.8), 0 0 0 8px rgba(232,55,90,.35);
  }

  .microlink-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: rgba(255,255,255,.95);
    opacity: .8;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    z-index: 2;
  }
  .flipbook-page-item-link:hover .microlink-icon,
  .flipbook-page-auto-link:hover .microlink-icon,
  .annotationLayer .linkAnnotation>a:hover .microlink-icon,
  .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover .microlink-icon {
    opacity: 1;
    transform: scale(1.05);
  }

  @keyframes rehighlightPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(232,55,90,1);
    }
    100% {
      box-shadow: 0 0 0 10px rgba(232,55,90,0);
    }
  }

  /* Content area */
  .content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: 0;
  }

  /* Page 8 map overlays */
  .vein-svg {
    position: absolute !important;
    left: var(--vein-left, 0%) !important;
    top: var(--vein-top, 0%) !important;
    z-index: var(--vein-z, 1) !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    width: var(--vein-width, 50%) !important;
    height: auto !important;
    max-width: none !important;
    pointer-events: none !important;
  }

  .vein-svg.vein-active {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)) brightness(1.2);
  }

  .vein-label {
    background: #F6B817;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 20px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    position: absolute;
    z-index: 1000;
    pointer-events: auto;
    transition: background 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
  }

  .vein-label:hover,
  .vein-label:focus {
    background: #FFF;
    transform: scale(1.2);
  }

  @media (max-width: 860px) {
  .vein-label {
    font-size: 22px;
    padding: 3px 8px;
  }
}

  .organ-label {
    background: rgba(60, 60, 60, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 20px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: default;
    position: absolute;
    z-index: 1001;
    pointer-events: none;
    white-space: nowrap;
  }

  #labelTrigger {
    position: absolute;
  }

  .vein-svg[data-vein-num="1"] { --vein-left: 30%; --vein-top: 26%; --vein-width: 25%; --vein-z: 4; }
  .vein-svg[data-vein-num="2"] { --vein-left: 35%; --vein-top: 26.5%; --vein-width: 30%; --vein-z: 3; }
  .vein-svg[data-vein-num="3"] { --vein-left: 49%; --vein-top: 38%; --vein-width: 20%; --vein-z: 2; }
  .vein-svg[data-vein-num="4"] { --vein-left: 24.8%; --vein-top: 44.5%; --vein-width: 50%; --vein-z: 1; }

  .vein-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: linear-gradient(270deg, rgba(2, 8, 28, 0.82) 0%, rgba(2, 8, 28, 0.55) 42%, rgba(2, 8, 28, 0.16) 100%);
    z-index: 260;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .38s ease, visibility .38s ease;
  }

  .vein-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .vein-modal {
    height: 86vh;
    max-height: 86vh;
    width: min(480px, 92vw);
    max-width: 100%;
    margin: 0;
    border-radius: 15px 0 0 15px;
    border-left: 1px solid rgba(126, 192, 255, 0.2);
    background: #0A1A30;
    color: #fff;
    padding: 20px 20px!important;
    overflow-y: auto;
    position: relative;
    font-family: "Inter", sans-serif;
    box-shadow: -28px 0 64px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    pointer-events: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translate3d(104%, 0, 0);
    opacity: 0.4;
    transition: transform .54s cubic-bezier(.18, .88, .22, 1), opacity .45s ease;
    will-change: transform, opacity;
  }

  .vein-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 14%, transparent 86%, rgba(255, 255, 255, 0.04) 100%);
  }

  .vein-modal-backdrop.show .vein-modal {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  .vein-modal-close {
    position: absolute;
    top: var(--vein-modal-close-top);
    right: var(--vein-modal-close-right);
    background: var(--accent);
    border: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
    font-weight: 700;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    transition: transform .24s ease, background-color .24s ease, box-shadow .24s ease;
  }

  .vein-modal-close::before,
  .vein-modal-close::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .24s ease;
  }

  .vein-modal-close::before {
    transform: rotate(45deg);
  }

  .vein-modal-close::after {
    transform: rotate(-45deg);
  }

  .vein-modal-close:hover {
    transform: scale(1.04);
    background: var(--accent-hover);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  }

  .vein-modal-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
  }

  .vein-modal-close:active {
    transform: scale(0.97);
  }

  #vein-modal-title {
    font-size: 33px;
    font-weight: 700;
    margin: 4px 0 14px;
    padding: 0 40px 18px 0;
    color: #f4f8ff;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(145, 199, 255, 0.18);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .33s ease .18s, transform .4s ease .18s;
  }

  #vein-modal-title .popup-title,
  #vein-modal-title .vein-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
    color: inherit;
  }

  #vein-modal-content {
    font-size: 15px!important;
    line-height: 1.6;
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    transform: translateX(26px);
    transition: opacity .35s ease .25s, transform .43s ease .25s;
  }

  #vein-modal-content .popup-body,
  #vein-modal-content .vein-description {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  #vein-modal-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #fff;
  }

  #vein-modal-content p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.85);
  }

  #vein-modal-content p:last-child {
    margin-bottom: 0;
  }

  #vein-modal-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .36s ease .33s, transform .46s ease .33s;
  }

  .vein-modal-backdrop.show #vein-modal-title,
  .vein-modal-backdrop.show #vein-modal-content,
  .vein-modal-backdrop.show #vein-modal-buttons {
    opacity: 1;
    transform: translateX(0);
  }

  .vein-modal-btn {
    background: #e2231a;
    color: #fff;
    border: 2px solid #e2231a;
    padding: 9px 18px;
    font-size: 16.1px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    transform: translateY(0);
  }

  .vein-modal-btn:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #fff;
  }

  @media (max-width: 860px) {
    .vein-modal {
      width: min(90vw, 90vw);
      padding: 60px 18px 40px;
    }

    .vein-modal-close {
      top: var(--vein-modal-close-top-mobile);
      right: var(--vein-modal-close-right-mobile);
    }

    #vein-modal-title {
      font-size: 28px;
    }

    #vein-modal-content {
      font-size: 17px;
    }

    #vein-modal-content h4 {
      font-size: 18px;
    }

    .vein-modal-btn {
      font-size: 18px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .vein-modal-backdrop,
    .vein-modal,
    #vein-modal-title,
    #vein-modal-content,
    #vein-modal-buttons,
    .vein-modal-close,
    .vein-modal-btn {
      transition: none !important;
      animation: none !important;
    }

    .vein-modal {
      transform: none;
      opacity: 1;
    }

    #vein-modal-title,
    #vein-modal-content,
    #vein-modal-buttons {
      opacity: 1;
      transform: none;
    }
  }

  /* FlipBook fills the full content area */
  #container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 0px);
  }

  /* Page sections (hidden by default, shown when navigated) */
  .page-section {
    display: none;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    animation: fadeUp .4s ease both;
  }
  .page-section.active { display: block; }
  .page-section h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
  }
  .page-section h2 {
    font-size: 1.25rem;
    margin: 1.8rem 0 .75rem;
    color: var(--link);
    font-weight: 700;
  }
  .page-section p,
  .page-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: .75rem;
  }
  .page-section ul { padding-left: 1.2rem; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── MOBILE HAMBURGER ────────────────────────── */
  .mobile-toggle {
    display: none;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    width: 44px; height: 44px;
    background: var(--accent);
    border: none; border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
  }
  .mobile-toggle.open {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--transition);
  }
  .overlay.show {
    display: block;
    opacity: 1;
  }

  /* ── RESPONSIVE ──────────────────────────────── */
  @media (max-width: 860px) {
    .sidebar {
      transform: translate3d(calc(-100% - 12px), 0, 0);
      opacity: 0;
      transition: transform .42s cubic-bezier(.22, .84, .24, 1), opacity .24s ease;
      will-change: transform, opacity;
      contain: paint;
    }
    .sidebar.open {
      transform: translate3d(0, 0, 0);
      opacity: 1;
      box-shadow: 12px 0 36px rgba(0, 0, 0, 0.32);
    }

    .sidebar-hero,
    .sidebar-nav h3,
    .sidebar-nav li,
    .sidebar-instructions,
    .sidebar-footer {
      opacity: 0;
      transform: translateX(-12px);
      transition: opacity .24s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
      transition-delay: 0s;
    }

    .sidebar.open .sidebar-hero,
    .sidebar.open .sidebar-nav h3,
    .sidebar.open .sidebar-nav li,
    .sidebar.open .sidebar-instructions,
    .sidebar.open .sidebar-footer {
      opacity: 1;
      transform: translateX(0);
    }

    .sidebar.open .sidebar-hero { animation-delay: .06s; }
    .sidebar.open .sidebar-nav h3 { animation-delay: .11s; }
    .sidebar.open .sidebar-nav li:nth-child(1) { animation-delay: .15s; }
    .sidebar.open .sidebar-nav li:nth-child(2) { animation-delay: .19s; }
    .sidebar.open .sidebar-nav li:nth-child(3) { animation-delay: .23s; }
    .sidebar.open .sidebar-nav li:nth-child(4) { animation-delay: .27s; }
    .sidebar.open .sidebar-nav li:nth-child(5) { animation-delay: .31s; }
    .sidebar.open .sidebar-nav li:nth-child(6) { animation-delay: .35s; }
    .sidebar.open .sidebar-nav li:nth-child(7) { animation-delay: .39s; }
    .sidebar.open .sidebar-nav li:nth-child(8) { animation-delay: .43s; }
    .sidebar.open .sidebar-nav li:nth-child(9) { animation-delay: .47s; }
    .sidebar.open .sidebar-nav li:nth-child(10) { animation-delay: .51s; }
    .sidebar.open .sidebar-instructions { animation-delay: .4s; }
    .sidebar.open .sidebar-footer { animation-delay: .46s; }

    .main { margin-left: 0; }
    .mobile-toggle { display: flex; }
    .topbar { top: 12px; right: 12px; flex-direction: row; gap: 6px; }
    .topbar-btn { border-radius: 8px; width: 42px; height: 42px; }
    .topbar-popover-menu {
      top: calc(100% + 8px);
      right: 0;
      min-width: 172px;
    }
    .home-btn { display: none; }
    .content-area { padding: 0; }
    .page-section { padding: 4.5rem 1.25rem 2rem; }
    .page-section h1 { font-size: 1.6rem; }
  }

  @media (max-width: 480px) {
    :root { --sidebar-w: 85vw; }
    .sidebar-hero { aspect-ratio: 1.4; }
  }

  @media (max-width: 860px) {
    .kcl-mobile-page-badge {
      position: fixed !important;
      left: 12px;
      right: auto;
      bottom: 12px;
      top: auto;
      z-index: 220;
      pointer-events: auto;
      margin: 0 !important;
    }

    .kcl-mobile-page-badge .flipbook-currentPageNumber {
      background: rgba(19, 19, 19, 0.86);
      color: #fff;
      border-radius: 999px !important;
      padding: 8px 12px !important;
      font-size: 13px !important;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .kcl-mobile-page-badge .flipbook-currentPageInput {
      font-size: 13px !important;
      color: inherit !important;
    }
  }

  /* Zoom hint tooltip */
  .zoom-badge {
    position: fixed;
    bottom: 16px; right: 16px;
    background: var(--navy);
    color: var(--text-muted);
    font-size: .72rem;
    padding: .45rem .85rem;
    border-radius: 20px;
    opacity: .7;
    pointer-events: none;
    z-index: 80;
    transition: opacity var(--transition);
    display: none;
  }

  #pdf-tracker-bar {
    position: fixed;
    bottom: 22px;
    right: 0;
    display: flex;
    align-items: stretch;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    font-family: inherit;
  }

  #pdf-page-display {
    background: #1a3a5c;
    color: #fff;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-radius: 8px 0 0 8px;
  }

  #pdf-section-display {
    background: #e22b29;
    color: #fff;
    padding: 6px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
  }

  #popup-content-data { display: none; }

  @media (max-width: 860px) { .zoom-badge { display: none; } }

  /* =========================================================
     FlipBook Override Zone (Safe to Edit)
     Global + Desktop + Mobile
     ---------------------------------------------------------
     Use this block for TOC/Page View tweaks so vendor files
     in build/css are never edited directly.
  ========================================================= */

  /* -------------------- Global Overrides -------------------- */
  /* Table of Contents shell */
  .flipbook-tocHolder {
    --kcl-toc-global-override: 1;
    /* width: 300px; */
    /* background: #ffffff; */
  }

  /* TOC item list wrapper */
  .flipbook-toc {
    --kcl-toc-list-global-override: 1;
    /* padding: 12px 10px; */
    /* gap: 6px; */
  }

  /* Page View shell */
  .flipbook-thumbHolder,
  .flipbook-thumbsWrapper,
  .flipbook-thumbsScroller,
  .flipbook-thumbs-grid {
    --kcl-thumbs-shell-global-override: 1;
    /* background: #f8fafc; */
    /* border-color: rgba(0, 0, 0, 0.08); */
  }

  /* Page View thumb card */
  .flipbook-thumb {
    --kcl-thumb-card-global-override: 1;
    /* border-radius: 10px; */
    /* padding: 6px; */
  }

  .flipbook-thumb img {
    --kcl-thumb-image-global-override: 1;
    /* border-radius: 8px; */
  }

  .flipbook-thumb-num {
    --kcl-thumb-number-global-override: 1;
    /* font-size: 12px; */
    /* font-weight: 600; */
  }

  /* Active thumb state */
  .flipbook-thumb-active {
    --kcl-thumb-active-global-override: 1;
    /* outline: 2px solid #1a3a5c; */
    /* outline-offset: 1px; */
  }

  /* -------------------- Desktop Overrides ------------------- */
  @media (min-width: 861px) {
    .flipbook-tocHolder {
      --kcl-toc-desktop-override: 1;
      /* width: 320px; */
    }

    .flipbook-thumbHolder {
      --kcl-thumbs-desktop-override: 1;
      /* width: 230px; */
    }

    .flipbook-tocHolder .title-container {
      gap: 0!important;
    }

    .flipbook-tocHolder .title-container .spacer {
      display: none!important;
    }

    .flipbook-tocHolder .flipbook-menu-header {
      justify-content: start;
    }

    .flipbook-menu-title {
      font-weight: 700!important;
      font-family: inherit;
    }
  }

  /* --------------------- Mobile Overrides ------------------- */
  @media (max-width: 860px) {
    /* Start here for mobile-specific TOC/Page View tuning */
    .flipbook-tocHolder {
      --kcl-toc-mobile-override: 1;
      /* width: 88vw; */
      /* max-width: 340px; */
      padding: 80px 20px 20px 20px;
    }

    .flipbook-tocHolder .title-container {
      gap: 0!important;
    }

    .flipbook-toc {
      --kcl-toc-list-mobile-override: 1;
      /* padding: 10px 8px; */
    }

    .flipbook-thumbHolder {
      --kcl-thumbs-mobile-override: 1;
      /* width: 88vw; */
      /* max-width: 340px; */
    }

    .flipbook-thumb {
      --kcl-thumb-card-mobile-override: 1;
      /* padding: 4px; */
    }

    .flipbook-thumb-num {
      --kcl-thumb-number-mobile-override: 1;
      /* font-size: 11px; */
    }

    .flipbook-tocHolder .title-container .spacer {
      display: none!important;
    }

    .flipbook-tocHolder .flipbook-menu-header {
      justify-content: start;
    }
  }
