
:root{--bg:#0d1113;--panel:#151a1d;--panel2:#1b2226;--text:#eef2f2;--muted:#9da9ae;--line:#2c363b;--good:#a9d5b0;--warn:#e0c57d;--bad:#dc9b9b;--accent:#dce4e6}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}body{overflow:hidden}button,input,select{font:inherit}.app{display:grid;grid-template-columns:310px 1fr;height:100vh}.sidebar{background:#101517;border-right:1px solid var(--line);padding:20px 16px;overflow:auto}.brand{font-size:24px;font-weight:800}.subtitle,.hint,.eyebrow{color:var(--muted);font-size:12px}.subtitle{line-height:1.45;margin:5px 0 16px}.search,.filter,select{width:100%;background:#0b0f11;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px 11px;margin-bottom:8px}.filters{display:grid;grid-template-columns:1fr;gap:0}.resultCount{color:var(--muted);font-size:12px;margin:5px 0 12px}.spec-list{display:flex;flex-direction:column;gap:6px}.spec-btn{border:1px solid transparent;background:transparent;color:var(--text);text-align:left;border-radius:8px;padding:10px 11px;cursor:pointer}.spec-btn:hover,.spec-btn.active{background:var(--panel2);border-color:var(--line)}.spec-btn small{display:block;color:var(--muted);margin-top:3px}.content{overflow:auto}.topbar{position:sticky;top:0;z-index:50;background:rgba(13,17,19,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:12px 20px;display:flex;justify-content:space-between;gap:20px}.mobileControls{display:none}.container{max-width:1480px;margin:auto;padding:24px 26px 80px}.spec-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.spec-head h1{font-size:34px;margin:3px 0}.status{color:var(--muted);margin:0;max-width:900px}.navBtns{display:flex;gap:8px}.navBtns button,.toolbtn{background:#171e22;color:#fff;border:1px solid #354047;border-radius:7px;padding:9px 11px;cursor:pointer}.hero{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:18px}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.summary-item,.card,.image-card{background:var(--panel);border:1px solid var(--line);border-radius:11px}.summary-item{padding:13px}.summary-item h4{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#c9d3d6;margin:0 0 6px}.summary-item p{font-size:14px;line-height:1.5;margin:0}.card{padding:15px}.card h3{margin:0 0 8px}.matrix{display:grid;grid-template-columns:1fr auto}.matrix div{padding:7px 0;border-bottom:1px solid #273136;font-size:13px}.yes{color:var(--good)}.no{color:var(--bad)}.partial{color:var(--warn)}.sourceLine{margin-top:14px;border-top:1px solid var(--line);padding-top:11px}.sourceLine p{font-size:12px;color:var(--muted);line-height:1.45}.section{margin-top:28px}.section h2{font-size:18px;border-bottom:1px solid var(--line);padding-bottom:8px}.section h2 span{color:var(--muted);font-size:12px;font-weight:400}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.image-card{overflow:hidden}.image-wrap{background:#07090a;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;position:relative;cursor:zoom-in}.image-wrap img{width:100%;height:100%;object-fit:contain}.zoom-badge{position:absolute;right:9px;bottom:9px;background:rgba(0,0,0,.7);padding:6px 8px;border-radius:6px;font-size:11px}.caption{padding:11px 12px}.caption strong{display:block;font-size:14px;margin-bottom:4px}.caption code{color:var(--muted);font-size:11px;word-break:break-all}.empty{border:1px dashed var(--line);padding:24px;border-radius:10px;color:var(--muted)}.viewer{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.97);display:none;flex-direction:column}.viewer.open{display:flex}.viewer-bar{display:flex;gap:7px;align-items:center;padding:9px;border-bottom:1px solid #333;background:#0a0d0f}.viewer-title{flex:1;min-width:0}.viewer-title strong,.viewer-title small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-title small{color:var(--muted)}.viewer-stage{flex:1;position:relative;overflow:hidden;touch-action:none;cursor:grab}.viewer-img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;user-select:none;-webkit-user-drag:none;pointer-events:none}.viewer-help{position:absolute;left:12px;bottom:10px;background:rgba(0,0,0,.6);padding:7px 9px;border-radius:6px;color:#ccd5d8;font-size:11px}
@media(max-width:900px){
  body{overflow:auto}
  .app{display:block;height:auto}
  .sidebar{display:none}
  .content{overflow:visible}

  /* Critical narrow-screen rule:
     the control/header block must scroll away.  Keeping .topbar sticky while
     it contains the full-set launcher and filters can consume nearly the
     entire viewport on scaled secondary monitors and hide specimen media
     beneath it. */
  .topbar{
    position:static;
    top:auto;
    z-index:auto;
    display:block;
    padding:10px 11px;
    backdrop-filter:none;
  }

  .topbar .desktopOnly{display:none}
  .mobileControls{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
  .mobileControls .wide{grid-column:1/-1}
  .mobileControls input,.mobileControls select{margin:0;min-height:44px;font-size:16px}
  .container{padding:14px 10px 70px}
  .spec-head{display:block}
  .spec-head h1{font-size:28px}
  .navBtns{margin-top:12px}
  .navBtns button{flex:1}
  .hero{grid-template-columns:1fr}
  .summary-grid{grid-template-columns:1fr}
  .summary-item p{font-size:15px}
  .gallery{grid-template-columns:1fr}
  .image-wrap{aspect-ratio:auto;min-height:240px;max-height:72vh}
  .image-wrap img{height:auto;max-height:72vh}
  .viewer-bar{display:grid;grid-template-columns:repeat(4,1fr)}
  .viewer-title{grid-column:1/-1}
  .toolbtn{width:100%;padding:8px 4px}
  .viewer-help{left:8px;right:8px;text-align:center}

  /* Section headings must also stop floating over the imagery once the
     mobile header is no longer sticky. */
  .section h2{
    position:static;
    top:auto;
    background:transparent;
    z-index:auto;
    padding-top:0
  }
}

.movie-wrap{background:#07090a;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center}.movie-wrap iframe,.movie-wrap img{width:100%;height:100%;border:0;object-fit:contain}.movie-link{display:inline-block;margin-top:8px;color:#dce4e6;text-decoration:none;border:1px solid #354047;border-radius:6px;padding:7px 9px}.movie-link:hover{background:#1b2226}.drive-source{display:block;color:var(--muted);font-size:11px;margin-top:5px}

/* MycoScope fungal arcade entry */
.entry-gate{position:fixed;inset:0;z-index:2000;background:#080c0d;color:var(--text);display:grid;place-items:center;padding:24px;overflow:auto}
.entry-gate.hidden{display:none}
.entry-grid{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle at 30% 20%,rgba(90,130,104,.09),transparent 28%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:auto,34px 34px,34px 34px}
.entry-panel{position:relative;width:min(760px,100%);background:rgba(14,20,22,.96);border:1px solid #314046;border-radius:18px;padding:30px;box-shadow:0 24px 80px rgba(0,0,0,.42)}
.entry-kicker,.entry-foot{font-size:11px;letter-spacing:.14em;color:var(--muted)}
.entry-panel h1{font-size:clamp(38px,8vw,72px);letter-spacing:.08em;margin:8px 0 0;line-height:.95}
.entry-subtitle{margin:10px 0 18px;color:#c8d2d5;font-size:17px}
.entry-status{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--good);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 14px rgba(169,213,176,.55)}
.entry-copy{color:var(--muted);line-height:1.55;margin:18px 0}
.entry-actions,.game-actions{display:flex;gap:10px;flex-wrap:wrap}
.entry-actions button,.game-actions button,.hyphae-overlay button{border-radius:9px;padding:11px 14px;cursor:pointer;border:1px solid #3a474d;color:var(--text);background:#151d20}
.entry-primary{background:#e7ecee!important;color:#101416!important;border-color:#e7ecee!important;font-weight:700}
.entry-secondary{font-weight:700}
.entry-foot{margin-top:22px}
.hyphae-game{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.hyphae-hud{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.hyphae-hud small{display:block;color:var(--muted);margin-top:4px}
.hud-stats{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#cbd5d8}
.hud-stats b{color:var(--warn)}
.hyphae-stage{margin-top:12px;position:relative;background:#040706;border:1px solid var(--line);border-radius:12px;overflow:hidden}
#hyphaeCanvas{display:block;width:100%;height:auto;aspect-ratio:12/7;touch-action:none;background:radial-gradient(circle at center,#0d1712,#050706 72%)}
.hyphae-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:24px;background:rgba(4,7,6,.76);backdrop-filter:blur(2px)}
.hyphae-overlay.hidden{display:none}
.hyphae-overlay strong{font-size:22px}
.hyphae-overlay span{max-width:520px;color:var(--muted);line-height:1.45}
.hyphae-help{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin:8px 0 12px}
.game-actions{justify-content:space-between}
@media(max-width:620px){.entry-gate{padding:10px}.entry-panel{padding:20px;border-radius:14px}.entry-actions button,.game-actions button{width:100%}.hyphae-hud,.hyphae-help{display:block}.hud-stats{margin-top:8px}.hyphae-help span{display:block;margin-top:4px}}


/* Curated Full Data Sets section */
.fullset-panel{margin:12px 0 16px;padding:10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.fullset-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:8px}
.fullset-head strong{font-size:13px}
.fullset-head span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.fullset-list{display:flex;flex-direction:column;gap:6px}
.fullset-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#11181b;color:var(--text);border:1px solid #2c383e;border-radius:8px;padding:9px 10px;text-align:left;cursor:pointer}
.fullset-btn:hover,.fullset-btn.active{background:#1b2428;border-color:#46555c}
.fullset-btn span{min-width:0}.fullset-btn strong,.fullset-btn small{display:block}.fullset-btn small{color:var(--muted);font-size:10px;margin-top:2px}.fullset-btn b{font-size:9px;letter-spacing:.09em;color:var(--good)}
.fullset-badge{display:inline-block;margin-left:8px;padding:3px 6px;border:1px solid #486050;border-radius:999px;color:var(--good);font-size:9px;letter-spacing:.08em;vertical-align:middle}

/* In-site 3D fungal sandbox entry */
.sandbox-link{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 12px;padding:10px 11px;border:1px solid #6b5a2f;border-radius:9px;background:linear-gradient(180deg,#1a1910,#121714);color:var(--text);text-decoration:none}
.sandbox-link strong{font-size:12px;letter-spacing:.02em}
.sandbox-link span{font-size:10px;color:#d9c48b;text-transform:uppercase;letter-spacing:.07em}
.sandbox-link:hover{border-color:#9a8246;background:#1d1e15}
.mobile-sandbox{display:none}
@media(max-width:900px){
  .mobile-sandbox{display:flex;margin:10px 0 8px}
  .topbar>.mobile-sandbox{width:100%}
}


/* Specimen learning accessibility */
.section-read-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.section-read-head h3,.section-read-head h4,.section-read-head strong{margin-top:0}
.readback-btn{flex:0 0 auto;border:1px solid #45545a;background:#0d1518;color:#dce5e7;border-radius:7px;padding:5px 7px;font-size:10px;cursor:pointer}
.readback-btn:hover{border-color:#8b7547;color:#f2dfad}
.record-status{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.record-status .status{flex:1}
.glossary-term{display:inline;border:0;border-bottom:1px dotted #d6ba69;background:transparent;color:#f1d889;padding:0 1px;font:inherit;cursor:pointer}
.glossary-term:hover,.glossary-term:focus-visible{background:#2a2415;color:#fff0b8}
.glossary-term,.glossary-popover,.readback-btn{touch-action:manipulation}
#viewerCap:has(.glossary-term){white-space:normal;overflow-wrap:anywhere;max-height:20vh;overflow:auto}
.glossary-popover{position:fixed;z-index:1001;display:none;overflow:auto;overflow-wrap:anywhere;border:1px solid #6f6545;border-radius:9px;background:rgba(7,13,15,.98);box-shadow:0 14px 36px rgba(0,0,0,.45);padding:11px;color:#edf3f4}
.glossary-popover.open{display:block}
.glossary-popover .glossary-kicker{font-size:9px;letter-spacing:.09em;color:#d9c48b}
.glossary-popover>strong{display:block;margin-top:3px;font-size:14px;text-transform:none}
.glossary-pronunciation{display:block;margin-top:3px;color:#f1d889;font-size:12px}
.glossary-popover p{font-size:11px;line-height:1.45;color:#c8d3d5;margin:6px 0 9px}
.glossary-actions{display:flex;gap:6px;flex-wrap:wrap}
.glossary-actions button{border:1px solid #45545a;background:#10191c;color:#e4ecee;border-radius:7px;min-height:36px;padding:6px 8px;font-size:12px;cursor:pointer}
@media(max-width:700px){.section-read-head,.record-status{align-items:flex-start}.readback-btn{font-size:9px;padding:5px 6px}}


/* Mobile Full Data Sets launcher */
.mobile-fullset-panel{display:none}
@media(max-width:900px){
  .mobile-fullset-panel{
    display:block;
    margin:8px 0 10px;
    padding:8px;
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(255,255,255,.02);
    max-width:100%;
    overflow:hidden
  }
  .mobile-fullset-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:7px}
  .mobile-fullset-head strong{font-size:13px}
  .mobile-fullset-head span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
  .mobile-fullset-list{
    display:flex;
    gap:7px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:1px 1px 5px;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch
  }
  .mobile-fullset-list .fullset-btn{
    flex:0 0 min(220px,78vw);
    min-height:58px;
    padding:9px 10px;
    scroll-snap-align:start
  }
  .mobile-fullset-list .fullset-btn small{font-size:9px}
  .mobile-fullset-list .fullset-btn b{display:none}
  .topbar{max-height:none}
}


/* Narrow desktop / scaled secondary-monitor recovery.
   A fine-pointer device may report <900 CSS px because of OS/browser scaling.
   Preserve a usable split workbench down to 760 px rather than forcing the
   full mobile launcher over the specimen record. */
@media (min-width:760px) and (max-width:900px) and (pointer:fine){
  body{overflow:hidden}
  .app{display:grid;height:100vh;grid-template-columns:250px minmax(0,1fr)}
  .sidebar{display:block;padding:14px 11px;overflow:auto}
  .content{overflow:auto;min-width:0}
  .topbar{position:sticky;top:0;z-index:50;display:flex;padding:10px 14px;backdrop-filter:blur(12px)}
  .topbar .desktopOnly{display:block}
  .mobileControls,.mobile-fullset-panel,.mobile-sandbox{display:none}
  .container{padding:18px 16px 70px;max-width:100%}
  .spec-head{display:flex}
  .spec-head h1{font-size:30px}
  .hero{grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr)}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .image-wrap{aspect-ratio:4/3;min-height:0;max-height:none}
  .image-wrap img{height:100%;max-height:none}
  .section h2{position:static}
  .fullset-panel{padding:8px}
  .fullset-btn{padding:8px}
}


/* ============================================================
   UNIVERSAL MYCOSCOPE WORKBENCH
   2026-10-03
   One layout on every screen: preserve the desktop atlas UI.
   This intentionally overrides all earlier mobile/narrow rules.
   ============================================================ */
@media (max-width:900px){
  html,body{
    width:100%;
    min-width:0;
    height:100%;
    overflow:hidden !important;
  }

  .app{
    display:grid !important;
    grid-template-columns:clamp(220px,24vw,310px) minmax(0,1fr) !important;
    width:100% !important;
    min-width:0 !important;
    height:100vh !important;
  }

  .sidebar{
    display:block !important;
    min-width:0 !important;
    padding:14px 12px !important;
    overflow:auto !important;
    border-right:1px solid var(--line) !important;
  }

  .content{
    display:block !important;
    min-width:0 !important;
    height:100vh !important;
    overflow:auto !important;
  }

  .topbar{
    position:sticky !important;
    top:0 !important;
    z-index:50 !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    gap:14px !important;
    padding:10px 14px !important;
    background:rgba(13,17,19,.95) !important;
    backdrop-filter:blur(12px) !important;
    border-bottom:1px solid var(--line) !important;
  }

  .topbar .desktopOnly{
    display:block !important;
  }

  /* Never substitute the mobile navigation experience. */
  .mobileControls,
  .mobile-fullset-panel,
  .mobile-sandbox{
    display:none !important;
  }

  .container{
    width:100% !important;
    max-width:1480px !important;
    margin:0 auto !important;
    padding:18px 18px 80px !important;
  }

  .spec-head{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:18px !important;
  }

  .spec-head h1{
    font-size:clamp(25px,3vw,34px) !important;
  }

  .navBtns{
    display:flex !important;
    margin-top:0 !important;
  }

  .hero{
    display:grid !important;
    grid-template-columns:minmax(0,1.55fr) minmax(230px,.72fr) !important;
    gap:14px !important;
  }

  .summary-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .gallery{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }

  .image-wrap{
    aspect-ratio:4/3 !important;
    min-height:0 !important;
    max-height:none !important;
  }

  .image-wrap img{
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    object-fit:contain !important;
  }

  .section h2{
    position:static !important;
    top:auto !important;
    background:transparent !important;
    z-index:auto !important;
    padding-top:0 !important;
  }

  .viewer-bar{
    display:flex !important;
  }

  .viewer-title{
    grid-column:auto !important;
  }

  .toolbtn{
    width:auto !important;
    padding:9px 11px !important;
  }
}

/* On exceptionally narrow viewports, keep the same workbench architecture
   rather than switching UI paradigms.  The sidebar compresses but remains
   present and usable. */
@media (max-width:680px){
  .app{
    grid-template-columns:190px minmax(0,1fr) !important;
  }

  .sidebar{
    padding:10px 8px !important;
  }

  .brand{
    font-size:20px !important;
  }

  .subtitle{
    font-size:10px !important;
  }

  .search,.filter,select{
    padding:8px !important;
    font-size:12px !important;
  }

  .fullset-head span{
    display:none !important;
  }

  .fullset-btn{
    padding:7px 8px !important;
  }

  .container{
    padding:14px 12px 70px !important;
  }

  .hero{
    grid-template-columns:minmax(0,1fr) !important;
  }

  .summary-grid,
  .gallery{
    grid-template-columns:1fr !important;
  }

  .topbar .desktopOnly{
    display:none !important;
  }
}

/* Evidence coverage tiers (2026-11-15). Tiers describe photographs, not taxonomy. */
.partialset-panel{margin-top:12px}
.partialset-panel .fullset-list{max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.partialset-btn b{color:var(--warn)}
.partial-badge{color:var(--warn);border-color:var(--warn)}
.limited-badge{color:var(--muted);border-color:var(--line)}
.evidence-state-note{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:8px;padding:10px 12px;margin-top:8px;font-size:12px;line-height:1.5}
.evidence-state-note strong{color:var(--warn)}
.mobile-fullset-panel:has(#mobilePartialSetList) .mobile-fullset-list{max-height:190px;overflow:auto}

/* Evidence source coverage — descriptive, never a species or release certification. */
.evidence-state-note p{margin:8px 0;line-height:1.5}
.evidence-coverage{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:7px;margin:9px 0}
.evidence-coverage>div{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:7px 9px}
.evidence-coverage span{color:var(--muted)}
.evidence-coverage strong{font-variant-numeric:tabular-nums;color:var(--text)}

/* iPhone Safari hotfix: do not force the desktop split pane on touch phones.
   Keep existing desktop and fine-pointer layouts unchanged. */
@media (max-width:680px) and (pointer:coarse){
  html,body{height:auto !important;min-height:100% !important;overflow-x:hidden !important;overflow-y:auto !important}
  .app{display:block !important;width:100% !important;height:auto !important;min-height:100dvh !important;grid-template-columns:none !important}
  .sidebar{display:none !important}
  .content{display:block !important;width:100% !important;height:auto !important;min-height:100dvh !important;overflow:visible !important}
  .topbar{position:relative !important;display:block !important;padding:12px 14px !important}
  .mobileControls{display:grid !important;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
  .mobileControls .wide{grid-column:1/-1}
  .mobileControls input,.mobileControls select{min-width:0}
  .mobile-fullset-panel{display:block !important;margin:8px 0 !important}
  .mobile-sandbox{display:inline-block !important}
  .container{width:100% !important;max-width:100% !important;padding:14px 12px 90px !important}
  .spec-head{display:block !important}
  .navBtns{display:flex !important;flex-wrap:wrap;gap:6px;margin-top:10px !important}
  .hero,.summary-grid,.gallery{display:grid !important;grid-template-columns:minmax(0,1fr) !important}
  .image-card{min-width:0}
  .image-wrap{width:100% !important;aspect-ratio:4/3 !important;max-height:none !important}
  .image-wrap img{width:100% !important;height:100% !important;max-height:none !important;object-fit:contain !important}
  .viewer{height:100dvh}
  .viewer-bar{display:flex !important;flex-wrap:wrap;padding:8px !important}
  .viewer-title{flex:1 0 100%}
  .toolbtn{font-size:12px;padding:7px 9px !important}
  .viewer-stage{min-height:0;flex:1;touch-action:none}
  .viewer-help{font-size:10px}
}

/* Clear, readable fallback for restricted/unavailable remote Drive image previews. */
.image-load-error{display:block;text-align:center;max-width:92%;padding:16px;color:var(--text);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.image-wrap:has(.image-load-error) .zoom-badge{display:none}
