    @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Caveat:wght@600;700&display=swap');

    :root {
      /* Shared Blackboard & Whiteboard Design Variables (Edit here to change theme everywhere!) */
      --board-slate-bg-color: #0c0e10;
      --board-slate-bg-image:
        radial-gradient(130% 110% at 50% 50%, rgba(255, 255, 255, 0.026) 0%, rgba(255, 255, 255, 0.010) 45%, transparent 75%),
        radial-gradient(90% 70% at 20% 30%, rgba(255, 255, 255, 0.018) 0%, transparent 60%),
        radial-gradient(90% 70% at 80% 70%, rgba(255, 255, 255, 0.018) 0%, transparent 60%);
      --board-whiteboard-bg-color: #ffffff;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      padding: 0;
      background-color: #080a0d;
      color: #1b2228;
      font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow: hidden;
      user-select: none;
      width: 100vw;
      height: 100vh;
    }

    /* Presentation Viewport */
    #viewport.deck-viewport {
      width: 100vw !important;
      height: 100vh !important;
      display: block !important;
      position: relative !important;
      overflow: hidden !important;
      background: #000000;
      transition: background-color 0.25s ease;
    }

    /* Seamless Full-Bleed Blackboard & Whiteboard Viewport Backgrounds */
    #viewport.deck-viewport.board-slate {
      background-color: var(--board-slate-bg-color) !important;
      background-image: var(--board-slate-bg-image) !important;
      background-repeat: no-repeat !important;
      background-size: 100% 100% !important;
    }

    #viewport.deck-viewport.board-whiteboard {
      background-color: var(--board-whiteboard-bg-color) !important;
      background-image: none !important;
    }

    /* Virtual Slide Stage (Letterboxed and Uncapped Scaling) */
    #stage.slide-stage {
      position: absolute !important;
      background: #000000;
      overflow: hidden;
      box-shadow: none;
      border: none !important;
      outline: none !important;
      transform-origin: 0 0 !important;
      border-radius: 0;
      transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1), top 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* When Blackboard overlay is active, stage reveals the seamless full-bleed viewport background with no border or line */
    #stage.slide-stage.board-overlay-active {
      background: transparent !important;
      box-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    #viewport.deck-viewport.board-whiteboard #stage.slide-stage.board-overlay-active {
      background: transparent !important;
      box-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    #stage.slide-stage.board-overlay-active #explanationOverlay {
      background: transparent !important;
      box-shadow: none !important;
      border: none !important;
      outline: none !important;
    }

    /* Hide slide drawing canvas completely when Blackboard/Canva mode is active */
    #stage.slide-stage.board-overlay-active #drawCanvas {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    /* In Fullscreen mode, crisp borders */
    :fullscreen .slide-stage {
      border-radius: 0;
      box-shadow: none;
    }

    /* Slide container & transitions */
    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      visibility: hidden;
      transform: translateX(45px) scale(0.985);
      transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
      padding: 40px 60px;
      box-sizing: border-box;
      pointer-events: auto;
      background: #fefefc;
    }

    .slide.active {
      opacity: 1;
      visibility: visible;
      transform: translateX(0) scale(1);
    }

    .slide.previous {
      opacity: 0;
      visibility: hidden;
      transform: translateX(-45px) scale(0.985);
    }

    /* Slide Animation & Micro-Interaction Engine */
    .slide:not(.active) .anim-fade-down,
    .slide:not(.active) .anim-fade-up,
    .slide:not(.active) .anim-slide-left,
    .slide:not(.active) .anim-slide-right,
    .slide:not(.active) .anim-pop-in,
    .slide:not(.active) .anim-card-in {
      opacity: 0;
      animation: none !important;
    }

    .slide.active .anim-fade-down {
      animation: animFadeDown 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .slide.active .anim-fade-up {
      animation: animFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .slide.active .anim-slide-left {
      animation: animSlideLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .slide.active .anim-slide-right {
      animation: animSlideRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .slide.active .anim-pop-in {
      animation: animPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .slide.active .anim-card-in {
      animation: animCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* Staggered Delay Utilities */
    .delay-50  { animation-delay: 0.05s !important; }
    .delay-100 { animation-delay: 0.10s !important; }
    .delay-150 { animation-delay: 0.15s !important; }
    .delay-200 { animation-delay: 0.20s !important; }
    .delay-250 { animation-delay: 0.25s !important; }
    .delay-300 { animation-delay: 0.30s !important; }
    .delay-350 { animation-delay: 0.35s !important; }
    .delay-400 { animation-delay: 0.40s !important; }
    .delay-450 { animation-delay: 0.45s !important; }
    .delay-500 { animation-delay: 0.50s !important; }
    .delay-550 { animation-delay: 0.55s !important; }
    .delay-600 { animation-delay: 0.60s !important; }
    .delay-650 { animation-delay: 0.65s !important; }
    .delay-700 { animation-delay: 0.70s !important; }

    /* Incremental Click Build Steps (Fragments) */
    .step, .fragment, [data-step] {
      opacity: 0;
      visibility: hidden;
      transform: translateY(14px);
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
    }

    .step.step-active, .fragment.step-active, [data-step].step-active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .step.fade, .fragment.fade { transform: none; }
    .step.fade.step-active, .fragment.fade.step-active { transform: none; }
    .step.zoom, .fragment.zoom { transform: scale(0.88); }
    .step.zoom.step-active, .fragment.zoom.step-active { transform: scale(1); }
    .step.slide-left, .fragment.slide-left { transform: translateX(25px); }
    .step.slide-left.step-active, .fragment.slide-left.step-active { transform: translateX(0); }
    .step.slide-right, .fragment.slide-right { transform: translateX(-25px); }
    .step.slide-right.step-active, .fragment.slide-right.step-active { transform: translateX(0); }
    .step.highlight, .fragment.highlight { opacity: 0.32; visibility: visible; transform: none; }
    .step.highlight.step-active, .fragment.highlight.step-active { opacity: 1; transform: none; }

    /* Sub-Slide Drilldowns (Inner Slides) */
    .subslide {
      position: absolute;
      inset: 0;
      background: #fefefc;
      z-index: 38;
      opacity: 0;
      visibility: hidden;
      transform: scale(0.96) translateY(20px);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      padding: 36px 54px;
      box-sizing: border-box;
      border-radius: 10px;
      overflow-y: auto;
      pointer-events: none;
    }
    .subslide.subslide-active {
      opacity: 1;
      visibility: visible;
      transform: scale(1) translateY(0);
      pointer-events: auto;
    }

    /* ================= WEBSLIDER SLIDES DRAWER ================= */
    #websliderSlideDrawer {
      position: fixed;
      top: 12px;
      left: 12px;
      bottom: 12px;
      width: min(320px, 88vw);
      background: rgba(20, 24, 31, 0.98);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 18px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.15);
      z-index: 100;
      transform: translateX(calc(-100% - 24px));
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      pointer-events: auto;
    }
    #websliderSlideDrawer.drawer-open,
    #websliderSlideDrawer.open {
      transform: translateX(0) !important;
    }
    #websliderSlideList::-webkit-scrollbar {
      width: 5px;
    }
    #websliderSlideList::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.02);
    }
    #websliderSlideList::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 4px;
    }
    #websliderSlideList::-webkit-scrollbar-thumb:hover {
      background: rgba(245, 183, 24, 0.6);
    }

    #websliderSlideBackdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      z-index: 99;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #websliderSlideBackdrop.backdrop-open,
    #websliderSlideBackdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    /* Workspace / Board Sidebar Drawer (Matching User Screenshot) */
    #slideDrawer {
      position: fixed;
      top: 12px;
      left: 12px;
      bottom: 12px;
      width: min(280px, 85vw);
      background: rgba(20, 24, 31, 0.98);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 18px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.15);
      z-index: 95;
      transform: translateX(calc(-100% - 24px));
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #slideDrawer.drawer-open {
      transform: translateX(0);
    }

    #slideDrawerList::-webkit-scrollbar {
      width: 6px;
    }
    #slideDrawerList::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.02);
    }
    #slideDrawerList::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
    }
    #slideDrawerList::-webkit-scrollbar-thumb:hover {
      background: rgba(245, 183, 24, 0.5);
    }

    /* Slight dimming on main stage when left drawer is open (hidden when dashboard is open) */
    #slideDrawerBackdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      z-index: 52;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #slideDrawerBackdrop.backdrop-open {
      opacity: 1;
      pointer-events: auto;
    }
    body.in-dashboard #slideDrawerBackdrop,
    body.in-settings #slideDrawerBackdrop,
    body.in-dashboard #bottomDock,
    body.in-settings #bottomDock,
    body.in-dashboard #leftActionsDock,
    body.in-settings #leftActionsDock,
    body.in-dashboard #overlayCameraControls,
    body.in-settings #overlayCameraControls,
    body.in-dashboard #topLeftBoardControls,
    body.in-settings #topLeftBoardControls,
    body.in-dashboard #inkPropertiesMenu,
    body.in-settings #inkPropertiesMenu,
    body.in-dashboard #inkEdgeTrigger,
    body.in-settings #inkEdgeTrigger {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .slide-thumb-card {
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    }
    .slide-thumb-card:hover {
      transform: translateX(3px) scale(1.01);
      border-color: rgba(245, 183, 24, 0.6) !important;
    }

    /* ================= EXCALIDRAW-STYLE PRESENTATION SIDEBAR ================= */
    #presentationSidebar {
      position: fixed;
      top: 12px;
      left: 12px;
      bottom: 12px;
      width: min(260px, 80vw);
      background: rgba(22, 24, 29, 0.94);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 18px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.15);
      z-index: 100;
      transform: translateX(calc(-100% - 24px));
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      pointer-events: auto;
    }
    #presentationSidebar.sidebar-open,
    #presentationSidebar.open {
      transform: translateX(0) !important;
    }
    #presentationSlideList::-webkit-scrollbar {
      width: 4px;
    }
    #presentationSlideList::-webkit-scrollbar-track {
      background: transparent;
    }
    #presentationSlideList::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.16);
      border-radius: 4px;
    }
    #presentationSlideList::-webkit-scrollbar-thumb:hover {
      background: rgba(133, 140, 247, 0.6);
    }
    #presentationBackdrop {
      display: none !important;
      pointer-events: none !important;
    }
    .presentation-slide-card {
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    }
    .presentation-slide-card:hover {
      transform: translateY(-2px);
      border-color: rgba(133, 140, 247, 0.5) !important;
    }
    .presentation-add-slide-card {
      transition: all 0.2s ease;
    }
    .presentation-add-slide-card:hover {
      border-color: rgba(245, 183, 24, 0.75) !important;
      background: rgba(245, 183, 24, 0.08) !important;
      color: #F5B718 !important;
    }

    /* Slides Layout Modal */
    #slidesLayoutModal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.95);
      width: min(600px, 92vw);
      max-height: 90vh;
      background: rgba(26, 30, 38, 0.98);
      backdrop-filter: blur(32px);
      -webkit-backdrop-filter: blur(32px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 24px;
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
      z-index: 120;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #slidesLayoutModal.modal-open,
    #slidesLayoutModal.open {
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: translate(-50%, -50%) scale(1) !important;
    }
    #slidesLayoutBackdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 115;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }
    #slidesLayoutBackdrop.backdrop-open,
    #slidesLayoutBackdrop.open {
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    @keyframes animFadeDown {
      0% { opacity: 0; transform: translateY(-24px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    @keyframes animFadeUp {
      0% { opacity: 0; transform: translateY(24px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    @keyframes animSlideLeft {
      0% { opacity: 0; transform: translateX(-40px); }
      100% { opacity: 1; transform: translateX(0); }
    }
    @keyframes animSlideRight {
      0% { opacity: 0; transform: translateX(50px) scale(0.96); }
      100% { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes animPopIn {
      0% { opacity: 0; transform: scale(0.65); }
      70% { opacity: 1; transform: scale(1.06); }
      100% { opacity: 1; transform: scale(1); }
    }
    @keyframes animCardIn {
      0% { opacity: 0; transform: translateY(45px) scale(0.92); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Continuous Physics Micro-Animations */
    @keyframes kineticHeave {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-8px) rotate(-0.5deg); }
    }
    .anim-kinetic-hero {
      animation: kineticHeave 5s ease-in-out infinite;
      transform-origin: bottom center;
    }

    @keyframes energyTitlePulse {
      0%, 100% { text-shadow: 0 0 0px rgba(245, 183, 24, 0); }
      50% { text-shadow: 0 4px 20px rgba(245, 183, 24, 0.45); }
    }
    .anim-energy-title {
      animation: energyTitlePulse 3s ease-in-out infinite;
    }

    @keyframes gravOrbit {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-7px) rotate(2deg); }
    }
    .anim-gravity-float {
      animation: gravOrbit 4s ease-in-out infinite;
    }

    @keyframes chargeOscillation {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.25)); }
      50% { transform: scale(1.06); filter: drop-shadow(0 4px 16px rgba(239, 68, 68, 0.55)); }
    }
    .anim-electro-pulse {
      animation: chargeOscillation 2.2s ease-in-out infinite;
    }

    @keyframes magnetFlux {
      0%, 100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.2)); }
      25% { transform: translateY(-4px) rotate(-1.5deg); }
      75% { transform: translateY(2px) rotate(1.5deg); }
    }
    .anim-magnet-flux {
      animation: magnetFlux 3.2s ease-in-out infinite;
    }

    @keyframes nuclearVibe {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.3)); }
      50% { transform: scale(1.05) rotate(1deg); filter: drop-shadow(0 6px 20px rgba(245, 158, 11, 0.6)); }
    }
    .anim-nuclear-vibe {
      animation: nuclearVibe 2s ease-in-out infinite;
    }

    @keyframes calloutFloat {
      0%, 100% { transform: rotate(-3deg) translateY(0px); }
      50% { transform: rotate(-1.5deg) translateY(-6px); }
    }
    .anim-callout-float {
      animation: calloutFloat 3.6s ease-in-out infinite;
    }

    /* Interactive Hover Physics (Cursor Mode) */
    .physics-badge {
      transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
    }
    .physics-badge:hover {
      transform: translateY(-8px) scale(1.1);
    }
    .physics-badge:hover img {
      filter: drop-shadow(0 8px 18px rgba(245, 183, 24, 0.5));
    }

    .force-card {
      transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .force-card:hover {
      transform: translateY(-10px) scale(1.025);
      box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.12), 0 0 0 2px currentColor;
    }
    .force-card:hover img {
      transform: scale(1.1);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Persistent Brand Logo Layer (Stage Top-Right) */
    .stage-brand-logo {
      position: absolute;
      top: 14px;
      right: 20px;
      width: 82px;
      height: auto;
      z-index: 30;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    /* Transparent Vector Drawing Canvas Layer */
    #drawCanvas {
      position: absolute;
      top: 0;
      left: 0;
      touch-action: none;
      cursor: crosshair;
      z-index: 40;
      pointer-events: auto;
    }

    #overlayCanvas,
    #overlayGridCanvas {
      display: block;
      touch-action: none;
      width: 100%;
      height: 100%;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }
    #overlayCanvas {
      cursor: crosshair;
    }

    #drawCanvas.laser-mode,
    #overlayCanvas.laser-mode,
    #explanationOverlay.laser-mode,
    .deck-viewport.laser-mode,
    body.laser-mode,
    body.laser-mode *:not(#settingsModal):not(#settingsModal *) {
      cursor: none !important;
    }

    #settingsModal,
    #settingsModal * {
      cursor: default !important;
    }
    #settingsModal button,
    #settingsModal [role="button"],
    #settingsModal a {
      cursor: pointer !important;
    }

    #laserDot {
      position: fixed;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: radial-gradient(circle, #ffffff 22%, #ff3b14 65%, #e60000 100%);
      box-shadow: 0 0 6px 2px rgba(255, 30, 0, 0.95), 0 0 14px 4px rgba(255, 30, 0, 0.6);
      pointer-events: none;
      z-index: 9999;
      display: none;
      transform: translate(-50%, -50%);
      transition: width 0.12s cubic-bezier(0.16, 1, 0.3, 1), height 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #laserDot.pressing {
      width: 12px;
      height: 12px;
      box-shadow: 0 0 8px 3px rgba(255, 40, 0, 1), 0 0 18px 6px rgba(255, 30, 0, 0.8), 0 0 28px 10px rgba(255, 30, 0, 0.4);
    }

    /* Solid High-Contrast Dock & Menus (100% Opacity - No Washout on White Slides) */
    .ppt-menu {
      background: #14181F !important;
      box-shadow: 0 25px 60px -10px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.18) !important;
      border: 1.5px solid rgba(255,255,255,0.22) !important;
    }

    .dock-solid {
      background: #14181F !important;
      border: none !important;
      box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.65), 0 -4px 14px rgba(0, 0, 0, 0.45), 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    }

    /* Top-Left Nav & Three-Dot Dropdown: Exact match with bottom-right toggle button (36px x 36px, rounded-xl) */
    #btnTopLeftSidebar,
    #btnTopLeftMenu {
      width: 36px !important;
      height: 36px !important;
      border-radius: 12px !important;
      background-color: #14181F !important;
      color: rgba(255, 255, 255, 0.85) !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
      outline: none !important;
    }
    #btnTopLeftSidebar:hover,
    #btnTopLeftMenu:hover {
      background-color: rgba(255, 255, 255, 0.1) !important;
      color: #ffffff !important;
    }
    #btnPageSwitcherPill {
      height: 36px !important;
      border-radius: 12px !important;
    }

    #moreToolsMenu {
      background-color: #161B22 !important;
      color: #ffffff !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    }
    #moreToolsMenu button {
      color: rgba(255, 255, 255, 0.82) !important;
    }
    #moreToolsMenu button:hover {
      background-color: rgba(255, 255, 255, 0.12) !important;
      color: #ffffff !important;
    }

    #bottomDock {
      height: 44px !important;
      border-radius: 12px !important; /* rounded-xl matching top-left buttons */
      box-sizing: border-box !important;
      display: inline-flex !important;
      align-items: center !important;
      box-shadow: 0 -14px 38px rgba(0, 0, 0, 0.75), 0 -4px 14px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .dock-pill {
      height: 36px !important;
      border-radius: 12px !important; /* rounded-xl matching top-left buttons */
      box-sizing: border-box !important;
      display: inline-flex !important;
      align-items: center !important;
      box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 -4px 14px rgba(0, 0, 0, 0.4) !important;
    }

    #shapesMenu, #arrowsMenu {
      border: none !important;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 6px 18px rgba(0, 0, 0, 0.5) !important;
      transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    #shapesMenu.hidden, #arrowsMenu.hidden {
      display: none !important;
    }

    #inkPropertiesMenu {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease !important;
      transform: translate(0, 0);
    }

    #inkPropertiesMenu.retracted {
      transform: translate(calc(100% + 24px), 0) !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    #inkPropertiesMenu.hidden {
      display: none !important;
    }
    #inkPropertiesMenu:not(.hidden) {
      display: flex !important;
      flex-direction: column !important;
    }

    .color-chip, .fill-color-chip {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: background-color 0.15s ease, transform 0.15s ease;
      background: transparent;
    }
    .color-chip::after, .fill-color-chip::after {
      content: '';
      width: 15px;
      height: 15px;
      border-radius: 9999px;
      background-color: var(--chip-color, currentColor);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
      transition: transform 0.15s ease;
    }
    .color-chip[data-color="#ffffff"]::after, .fill-color-chip[data-color="#ffffff"]::after {
      border: 1px solid rgba(255, 255, 255, 0.6);
    }
    .color-chip:hover, .fill-color-chip:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    .color-chip:hover::after, .fill-color-chip:hover::after {
      transform: scale(1.15);
    }
    .color-chip.active, .fill-color-chip.active {
      background-color: rgba(255, 255, 255, 0.18) !important;
      box-shadow: none !important;
    }
    .color-chip.active::after, .fill-color-chip.active::after {
      transform: scale(1.08);
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    }

    /* Compact Slot Indicator (Subtle Amber Pip on 1st Custom Swatch) */
    .compact-custom-slot {
      position: relative;
    }
    .compact-custom-slot::before {
      content: '';
      position: absolute;
      top: 3px;
      right: 3px;
      width: 4px;
      height: 4px;
      border-radius: 9999px;
      background-color: #F5B718;
      box-shadow: 0 0 3px rgba(245, 183, 24, 0.9);
      opacity: 0.9;
      pointer-events-none;
      z-index: 2;
    }

    .opacity-range-slider {
      -webkit-appearance: none;
      appearance: none;
      background: rgba(255, 255, 255, 0.15);
      height: 6px;
      border-radius: 9999px;
      outline: none;
      cursor: pointer;
    }
    .opacity-range-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #F5B718;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      transition: transform 0.1s ease;
    }
    .opacity-range-slider::-webkit-slider-thumb:hover {
      transform: scale(1.2);
    }
    .opacity-range-slider::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #F5B718;
      border: none;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      transition: transform 0.1s ease;
    }
    .opacity-range-slider::-moz-range-thumb:hover {
      transform: scale(1.2);
    }

    .pen-mode {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpolygon points='0,0 8,3 22,17 17,22 3,8' fill='%23e0e0e0' stroke='%23222222' stroke-width='1.2'/%3E%3Cpolygon points='0,0 5,2 10,7 7,10 2,5' fill='%23ffffff'/%3E%3Cline x1='0' y1='0' x2='9' y2='9' stroke='%23222222' stroke-width='1.2'/%3E%3Ccircle cx='9' cy='9' r='1.3' fill='%23222222'/%3E%3C/svg%3E") 0 0, crosshair !important;
    }

    .marker-mode {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpolygon points='2,6 6,2 14,10 10,14' fill='%23ffee33' stroke='%23333333' stroke-width='1.2'/%3E%3Cpolygon points='10,14 14,10 25,21 21,25' fill='%23444444' stroke='%23222222' stroke-width='1.2'/%3E%3Cline x1='12' y1='12' x2='23' y2='23' stroke='%23888888' stroke-width='1'/%3E%3C/svg%3E") 2 2, crosshair !important;
    }

    .chalk-mode {
      cursor: url('../slider_assets/chalk_cursor.png') 2 2, url('../images/chalk_cursor.png') 2 2, crosshair !important;
    }

    .pencil-mode {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpolygon points='1,27 2,21 21,2 26,7 7,26' fill='%2310b981' stroke='%23064e3b' stroke-width='1.2'/%3E%3Cpolygon points='1,27 2,21 7,26' fill='%23374151'/%3E%3Cline x1='4' y1='19' x2='23' y2='5' stroke='%23d1fae5' stroke-width='1'/%3E%3C/svg%3E") 1 27, crosshair !important;
    }

    .shape-mode {
      cursor: crosshair !important;
    }

    .eraser-mode,
    .eraser-mode canvas,
    .eraser-mode #overlayCanvas,
    .eraser-mode #drawCanvas,
    .eraser-mode #explanationOverlay {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpolygon points='3,10 10,3 27,20 20,27' fill='rgba(0,0,0,0.35)' transform='translate(1.5, 1.5)'/%3E%3Cpolygon points='2,9 9,2 14,7 7,14' fill='%23fb7185' stroke='%230f172a' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpolygon points='2,9 9,2 11,4 4,11' fill='%23fecdd3'/%3E%3Cpolygon points='7,14 14,7 26,19 19,26' fill='%232563eb' stroke='%230f172a' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpolygon points='7,14 14,7 16,9 9,16' fill='%2360a5fa'/%3E%3Cline x1='12' y1='19' x2='19' y2='12' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-opacity='0.85'/%3E%3Ccircle cx='3' cy='3' r='1.8' fill='%23e11d48' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/svg%3E") 3 3, crosshair !important;
    }

    #eraserRadiusRing {
      border: 1.5px dashed rgba(255, 255, 255, 0.75);
      background: transparent;
      box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    }

    #eraserRadiusRing.eraser-scrubbing-active {
      border: 2px dotted #FDE047 !important;
      background: transparent !important;
      box-shadow: 0 0 8px rgba(253, 224, 71, 0.4) !important;
    }

    /* Dedicated Text Pen — same shape as pen cursor, tinted emerald green, tip at 0,0 */
    .textpen-mode {
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpolygon points='0,0 8,3 22,17 17,22 3,8' fill='%2334d399' stroke='%23064e3b' stroke-width='1.2'/%3E%3Cpolygon points='0,0 5,2 10,7 7,10 2,5' fill='%23a7f3d0'/%3E%3Cline x1='0' y1='0' x2='9' y2='9' stroke='%23064e3b' stroke-width='1.2'/%3E%3Ccircle cx='9' cy='9' r='1.3' fill='%23059669'/%3E%3C/svg%3E") 0 0, crosshair !important;
    }

    /* Dedicated Text Tool (T) — crisp crosshair for placing / dragging text boxes */
    .text-mode,
    .text-mode canvas,
    .text-mode #overlayCanvas,
    .text-mode #drawCanvas {
      cursor: crosshair !important;
    }

    /* Slate Blackboard & Frosted Whiteboard Overlay Themes */
    #explanationOverlay.board-slate {
      background-color: var(--board-slate-bg-color, #0c0e10) !important;
      background-image: var(--board-slate-bg-image) !important;
      background-repeat: no-repeat !important;
      background-size: 100% 100% !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }
    #explanationOverlay.board-whiteboard {
      background-color: var(--board-whiteboard-bg-color, #ffffff) !important;
      background-image: none !important;
      opacity: 1 !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    #explanationOverlay {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }
    #explanationOverlay::-webkit-scrollbar {
      width: 6px;
    }
    #explanationOverlay::-webkit-scrollbar-track {
      background: transparent;
    }
    #explanationOverlay::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.22);
      border-radius: 10px;
    }
    #explanationOverlay::-webkit-scrollbar-horizontal {
      height: 0px !important;
      display: none !important;
    }
    #explanationOverlay::-webkit-scrollbar-corner {
      background: transparent !important;
    }
    #overlayScrollBody, #overlayCanvas, #overlayGridCanvas {
      display: block;
      background: transparent;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    /* Auto-hiding control chrome in Fullscreen */
    .control-chrome {
      transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .control-chrome.chrome-hidden {
      opacity: 0 !important;
      pointer-events: none !important;
    }

    /* Drag & Drop Upload Overlay */
    #dropOverlay {
      position: fixed;
      inset: 0;
      background: rgba(13, 17, 23, 0.88);
      backdrop-filter: blur(10px);
      z-index: 100;
      display: none;
      align-items: center;
      justify-content: center;
      border: 4px dashed #F5B718;
      pointer-events: none;
    }
    #dropOverlay.active {
      display: flex;
    }

    /* Interactive Web & YouTube Embed Cards (Full-Bleed, Pure Video & Website, No Internal Header) */
    .board-embed-card {
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      user-select: none;
      transition: box-shadow 0.15s ease, outline 0.15s ease;
    }
    .board-embed-card.is-selected {
      outline: 2px solid #3b82f6;
      outline-offset: 1px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(59, 130, 246, 0.4);
    }
    .board-embed-card.is-interactive {
      outline: 2px solid #10b981;
      outline-offset: 1px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.4);
    }
    .board-embed-card .embed-inner-wrap {
      width: 100%;
      height: 100%;
      border-radius: 10px;
      overflow: hidden;
      background: #000000;
      position: relative;
    }
    .board-embed-card iframe {
      border: 0;
      display: block;
      background: #000000;
    }
    .board-embed-card .embed-selection-ui {
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease;
    }
    .board-embed-card.is-selected .embed-selection-ui,
    .board-embed-card:hover .embed-selection-ui,
    .board-embed-card.is-interactive .embed-selection-ui {
      opacity: 1;
      pointer-events: auto;
    }
    .board-embed-card.is-interactive .embed-drag-shield {
      display: none !important;
      pointer-events: none !important;
    }
    .board-embed-card .embed-handle {
      transition: transform 0.1s ease;
    }
    .board-embed-card .embed-handle:hover {
      transform: scale(1.25);
    }

    /* Dedicated Interactive Text Editor (tldraw style) */
    #boardTextEditorWrap {
      position: absolute;
      transform-origin: 0 0;
      z-index: 45;
      pointer-events: none;
    }
    #boardTextEditorInput {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      outline: none !important;
      resize: none;
      overflow: hidden;
      border: none;
      border-radius: 0;
      background: transparent;
      padding: 0;
      margin: 0;
      box-shadow: none;
      line-height: 1.35;
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: break-word;
      cursor: text !important;
      pointer-events: auto;
      caret-color: #2f80ed;
    }
    #boardTextEditorInput.has-box-border {
      border: 1.5px dashed #2f80ed !important;
      border-radius: 4px !important;
      padding: 4px 6px !important;
    }
    #boardTextEditorInput::placeholder {
      display: none;
    }
    .text-mode {
      cursor: crosshair !important;
    }
