
:root { --paper:#fff; --ink:#17191d; --amber:#d98945; --light:#f6f1e7; --rule:#bbb; color-scheme:dark }
* { box-sizing:border-box }
body { margin:0; background:#09090a; color:#c9c4ba; font:400 16px/1.4 system-ui,sans-serif }
/* Until the engine has fitted the stage and shown the opening slide, nothing is drawn: no stacked slides, no
   unscaled stage, no unstyled controls. The animation is the fallback if the engine never starts. */
body:not(.deck-ready) > * { animation:deck-wait 5s steps(1,end) both }
body.deck-ready > * { animation:deck-in .25s ease-out }
@keyframes deck-wait { from { opacity:0 } to { opacity:1 } }
@keyframes deck-in { from { opacity:0 } }
#viewport { position:relative; height:100dvh; overflow:hidden }
#stage { position:absolute; left:50%; top:50%; width:1600px; height:900px; transform-origin:center; color:var(--ink); font-family:var(--slide-font,system-ui,sans-serif) }
#stage > .slide { position:absolute; inset:0; overflow:hidden; background:var(--paper); color:var(--ink) }
.slide[hidden], .speaker-notes { display:none !important }
[data-step] { transition:opacity .3s, transform .3s }
[data-step].pending { opacity:0; pointer-events:none; transform:translateY(12px) }
#stage.paused * { animation-play-state:paused !important }
/* Roles. Audience: the frame alone. Presenter: frame left, a side column (next slide, notes, members)
   right, the control bar and a clickable slide overview underneath. Plain window: as before, with the
   members tray toggled into the letterbox band. */
.presenter-only { display: none }
body.audience nav, body.audience #clock { display: none }
body.audience #viewport { height: 100dvh }

body.presenter { --side: 400px; --strip: 140px; --notes-size: 15px; display: grid; grid-template-columns: minmax(0, 1fr) 6px var(--side); grid-template-rows: minmax(0, 1fr) 48px 6px var(--strip); height: 100dvh; overflow: hidden }
body.presenter.resizing { cursor: col-resize; user-select: none }
body.presenter.resizing-y { cursor: row-resize; user-select: none }
#side-handle { grid-column: 2; grid-row: 1; cursor: col-resize; background: rgba(255, 255, 255, .06) }
#strip-handle { grid-column: 1 / -1; grid-row: 3; cursor: row-resize; background: rgba(255, 255, 255, .06) }
#side-handle:hover, #strip-handle:hover, #side-handle.active, #strip-handle.active { background: var(--amber) }
body.presenter #tray { --tray-font: var(--notes-size) }
body.presenter #presenter-notes { font-size: var(--notes-size) }
/* Presenter clock: total and time on the current slide. */
#clock { position: absolute; left: 16px; top: 10px; z-index: 6; display: flex; align-items: center; gap: 14px; font-size: 13px; color: #8d9098; font-variant-numeric: tabular-nums }
/* Reset: one click arms it (label turns amber, "Sure?"), a second click within 3 s does it. */
#reset { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; margin-left: 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: transparent; color: #8d9098; font-size: 12px }
#reset:hover { color: #c9c4ba; border-color: rgba(255, 255, 255, .35) }
#reset.armed { color: var(--amber); border-color: var(--amber) }
#reset .reset-label { display: none }
#reset:hover .reset-label, #reset.armed .reset-label { display: inline }
#clock span::before { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; color: #5c5f66 }
#clock-total::before { content: 'Total' }
#clock-slide::before { content: 'Slide' }
#clock-slide { color: var(--light) }
#motion .icon-play, #motion[aria-pressed="true"] .icon-pause { display: none }
#motion[aria-pressed="true"] .icon-play { display: inline }
#motion svg { vertical-align: -2px }
body.presenter #viewport { grid-column: 1; grid-row: 1; height: auto }
body.presenter > nav[aria-label="Slide controls"] { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid rgba(255, 255, 255, .08) }
body.presenter #tray { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; margin: 0; height: auto; min-height: 0; overflow: auto; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .08) }
body.presenter .presenter-only { display: block }
body.presenter nav .presenter-only { display: inline-block }
body.presenter #presenter-notes { height: auto; flex: 1; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .08) }
body.presenter #members-panel { height: auto; border-top: 1px solid rgba(255, 255, 255, .08) }
#notes-size { display: none; justify-content: flex-end; gap: 2px; padding: 4px 16px 8px }
body.presenter #notes-size { display: flex }
#notes-size button { height: 30px; min-width: 36px; padding: 0 8px; border: 0; background: transparent; color: #7d8088; border-radius: 4px }
#notes-size button:hover { background: rgba(255, 255, 255, .07); color: #c9c4ba }

#tray { display: none; color: #c9c4ba }
/* Presenter panels are laid out and painted on their own, so notes or chips never invalidate the stage. */
#presenter-notes, #next-preview, #members-panel, #decisions-panel, #strip { contain: layout paint style }
#members-panel, #decisions-panel { display: none }
body.members-scene #members-panel { display: block }
body.decisions-scene #decisions-panel { display: block }
#tray .tray-h { position: static; font-size: 12px; margin: 0 0 12px; color: #8d9098; max-width: none; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; line-height: 1 }
#presenter-notes { height: 200px; overflow: auto; padding: 18px 24px; box-sizing: border-box; font-size: 15px; line-height: 1.55 }
#presenter-notes p { margin: 0 0 10px }
#presenter-notes .t { color: var(--amber); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px }
#presenter-notes ul { margin: 0 0 12px; padding-left: 18px }
#presenter-notes li { margin-bottom: 8px }
#presenter-notes li::marker { color: #6f7279 }
#presenter-notes em { font-style: italic }
#presenter-notes a { color: #8fa4ff }
#members-panel { height: 200px; overflow: auto; padding: 18px 24px; box-sizing: border-box; min-width: 0 }
#next-preview { padding: 18px 24px 16px; box-sizing: border-box }
#next-preview .thumb-box { border: 1px solid rgba(255, 255, 255, .12) }
#next-preview .label { margin-top: 10px; font-size: 13px; color: #8d9098 }

/* Slide thumbnails: a scaled clone of the scene inside a 16:9 box. */
.thumb-box { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; contain: layout paint }
.thumb-box img { display: block; width: 100%; height: 100% }
/* Reset everything a thumbnail would otherwise inherit from the grey control chrome around it. */
.thumb { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; pointer-events: none; overflow: hidden;
  color: var(--ink); font: 400 16px / 1.4 var(--slide-font, system-ui, sans-serif); letter-spacing: normal; text-transform: none; text-align: left; white-space: normal; text-shadow: none }
.thumb .slide { display: block }
.thumb .cover-art::before { animation: none }
.thumb .cover-text, .thumb [data-step] { animation: none; opacity: 1; transform: none }
.thumb .collage-veil, .thumb .watch { display: none }
.thumb .m { transition: none }

/* Overview strip under the control bar: click a slide to jump to it. */
#strip { grid-column: 1 / -1; grid-row: 4; height: auto; justify-content: flex-start; align-items: center; display: flex; gap: 10px; padding: 12px 16px; overflow-x: auto; box-sizing: border-box; border-top: 1px solid rgba(255, 255, 255, .08) }
body.presenter #strip { display: flex }
#strip button { flex: 0 0 auto; width: calc((var(--strip, 140px) - 24px) * 16 / 9); height: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 3px; background: #000; overflow: hidden; position: relative; text-align: left; color: #8d9098; font-size: 11px }
#strip button:hover { border-color: rgba(255, 255, 255, .4) }
#strip button.current { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber); z-index: 1 }
#strip button:not(.current) { opacity: .62 } #strip button:not(.current):hover { opacity: 1 }
#strip { scroll-padding: 0 24px }
#strip button .n { position: absolute; left: 6px; top: 4px; z-index: 2; padding: 1px 5px; background: rgba(0, 0, 0, .65); color: var(--light); border-radius: 2px; font-variant-numeric: tabular-nums }

/* Builds (stepped reveals) on the current slide: label plus one dot per step; click a dot to reveal
   up to it, the hollow first dot to hide all. */
/* Builds sit at the left edge and the scene-specific buttons at the right edge, both out of the
   flow, so the centred controls never shift when they appear or disappear. */
#builds { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 0 10px; height: 28px; font-size: 12px; color: #8d9098 }
.nav-right { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 6px }
#builds[hidden] { display: none }
.builds-dots { display: inline-flex; gap: 6px }
.builds-dots button { width: 18px; height: 18px; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: transparent; position: relative }
.builds-dots button::after { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #8d9098; box-sizing: border-box }
.builds-dots button.on::after { background: var(--amber); border-color: var(--amber) }
.builds-dots button.next::after { border-color: var(--light) }
#strip button .b { position: absolute; right: 6px; top: 4px; z-index: 2; padding: 1px 5px; background: rgba(0, 0, 0, .65); color: var(--amber); border-radius: 2px; font-size: 10px }

/* Ink and laser overlays sit inside the frame and scale with it. They take the pointer only while
   a drawing tool is active, so stamps stay draggable otherwise. */
#ink { position: absolute; inset: 0; width: 1600px; height: 900px; z-index: 60; pointer-events: none }
#stage.drawing #ink { pointer-events: auto; cursor: crosshair }
#stage.laser-on { cursor: none }
#ink g { display: none }
#ink g.current { display: block }
#ink path { fill: none; stroke-linecap: round; stroke-linejoin: round }
#ink path.pen { stroke: var(--c, var(--amber)); stroke-width: 4 }
#ink path.hl { stroke: var(--c, var(--amber)); stroke-opacity: .45; stroke-width: 28; mix-blend-mode: multiply }
.dark-scene #ink path.hl { mix-blend-mode: screen; stroke-opacity: .55 }
/* Laser: a hot white core inside a coloured glow, with a short fading trail. */
#laser { position: absolute; left: 0; top: 0; z-index: 61; pointer-events: none; opacity: 0; transition: opacity .3s ease; --laser: #ff2a2a }
#laser.on { opacity: 1 }
#laser i, #laser b { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(calc(var(--x, -100) * 1px - 50%), calc(var(--y, -100) * 1px - 50%)) }
#laser b { width: 22px; height: 22px; background: radial-gradient(circle, #fff 0 22%, var(--laser) 34%, transparent 72%); box-shadow: 0 0 10px 3px var(--laser), 0 0 30px 10px color-mix(in srgb, var(--laser) 45%, transparent) }
#laser i { width: 14px; height: 14px; background: var(--laser); filter: blur(2px) }
#laser i:nth-child(1) { opacity: .42; width: 13px; height: 13px } #laser i:nth-child(2) { opacity: .34; width: 12px; height: 12px } #laser i:nth-child(3) { opacity: .26; width: 11px; height: 11px }
#laser i:nth-child(4) { opacity: .18; width: 10px; height: 10px } #laser i:nth-child(5) { opacity: .11; width: 9px; height: 9px } #laser i:nth-child(6) { opacity: .05; width: 8px; height: 8px }
/* Zoom lens: a round magnifier over the frame showing a scaled clone of the scene under the pointer. */
#lens { position: absolute; left: 0; top: 0; width: 510px; height: 510px; border-radius: 50%; overflow: hidden; z-index: 62; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  border: 2px solid rgba(246, 241, 231, .85); box-shadow: 0 8px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .25); background: var(--paper);
  transform: translate(calc(var(--x, -1000) * 1px - 255px), calc(var(--y, -1000) * 1px - 255px)) }
#lens.on { opacity: 1 }
#lens .lens-inner { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; transform: translate(calc(255px - var(--x, 0) * var(--z, 3) * 1px), calc(255px - var(--y, 0) * var(--z, 3) * 1px)) scale(var(--z, 3)) }
#lens .lens-inner .slide { display: block }
#lens .lens-inner .collage-veil, #lens .lens-inner .watch { display: none }
#lens .lens-inner .m { transition: none }
#lens .lens-inner [data-step].pending { display: none }
#stage.lens-on { cursor: none }
/* Tool options occupy one fixed-width slot so the bar never shifts: colour + undo + clear for the
   drawing tools, the magnification slider for the lens, nothing (but the space) otherwise. */
.tool-options { position: relative; display: inline-flex; align-items: center; width: 168px; height: 40px; margin-left: 4px }
.tool-options > * { position: absolute; left: 0; top: 50%; transform: translateY(-50%); visibility: hidden }
#swatch { left: 0 } #ink-undo { left: 44px } #ink-clear { left: 88px }
.tools.drawing #ink-undo, .tools.drawing #ink-clear, .tools.active:not(.lens) #swatch, .tools.lens #zoom { visibility: visible }
#zoom { display: inline-flex; align-items: center; gap: 10px; width: 168px }
#zoom-range { -webkit-appearance: none; appearance: none; width: 112px; height: 20px; margin: 0; background: transparent; cursor: pointer }
#zoom-range::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, .22); border-radius: 1px }
#zoom-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: var(--light); border: 0; box-shadow: 0 0 0 3px rgba(9, 9, 10, 1) }
#zoom-range:hover::-webkit-slider-thumb, #zoom-range:focus-visible::-webkit-slider-thumb { background: var(--amber) }
#zoom-range::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .22) }
#zoom-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--light); border: 0 }
#zoom-range:focus { outline: 0 }
#zoom-value { font-size: 12px; color: #c9c4ba; font-variant-numeric: tabular-nums; min-width: 34px }

/* Tools cluster: three toggles; undo/clear only light up while a drawing tool is active. */
.tools { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .12) }
.tools button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--light) }
.tools button[data-tool="laser"][aria-pressed="true"] { color: #ff5a5a }
.tools button[data-tool="pen"][aria-pressed="true"], .tools button[data-tool="hl"][aria-pressed="true"] { color: var(--amber) }
.tools button[data-tool="lens"][aria-pressed="true"] { color: var(--light) }
/* Colour swatch + 3×3 palette popover above it; the chosen colour is remembered per tool. */
.tools { position: relative }
#swatch { display: inline-flex; align-items: center; justify-content: center; padding: 0 }
#swatch .dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--amber)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) }
#palette { position: absolute; left: var(--px, 0); bottom: 44px; display: grid; grid-template-columns: repeat(3, 26px); gap: 6px; padding: 8px; background: #1c1c20; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; z-index: 20 }
#palette[hidden] { display: none }
#palette { visibility: visible }
#palette button { width: 26px; height: 26px; min-width: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--c) }
#palette button:hover { border-color: rgba(255, 255, 255, .5) }
#palette button[aria-selected="true"] { border-color: var(--light) }
body.audience .tools { display: none }

/* Blank screen: black over the frame in both windows; the presenter sees a label. */
#blank-veil { position: absolute; inset: 0; z-index: 70; background: #000; opacity: 0; pointer-events: none; transition: opacity .5s ease; display: flex; align-items: center; justify-content: center; color: #5c5f66; font-size: 13px; letter-spacing: .08em; text-transform: uppercase }
body.blank #blank-veil { opacity: 1; pointer-events: auto }
body.audience #blank-veil span { display: none }
#blank[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--light) }
/* Audience link indicator: green while an audience window is heard from. */
#link-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #55585f; margin-right: 8px; vertical-align: 1px; transition: background .3s }
#link-dot.live { background: #3ec26b; box-shadow: 0 0 6px rgba(62, 194, 107, .6) }
#link-dot.covered { background: #e4a11c; box-shadow: 0 0 6px rgba(228, 161, 28, .6) }
/* Shortcut sheet. */
#help { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6) }
#help[hidden] { display: none }
.help-card { width: 460px; padding: 26px 30px; background: #1c1c20; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; color: #c9c4ba; font-size: 14px }
.help-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0 }
.help-card dt { color: var(--light); font-variant-numeric: tabular-nums; letter-spacing: .02em }
.help-card dd { margin: 0; color: #9a9da5 }
#help-button { min-width: 32px; font-weight: 500 }

/* Controls live outside the frame. */
nav { position: relative; height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #7d8088; font-size: 13px }
button { font: inherit; cursor: pointer }
nav button { height: 40px; min-width: 44px; padding: 0 11px; border: 0; background: transparent; color: inherit; font-size: 13px; border-radius: 4px }
nav button:hover { background: rgba(255, 255, 255, .07) }
nav button:disabled { opacity: .3; cursor: default }
nav output { font-size: 12px; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums }
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px }
dialog { background: var(--paper); color: var(--ink); max-width: 760px; max-height: 80dvh; border: 0; padding: 40px; line-height: 1.6; font-size: 18px }
dialog::backdrop { background: rgba(0, 0, 0, .7) }
dialog h2 { position: static; font-size: 30px; margin: 0 0 24px; padding-right: 80px; max-width: none }
dialog button { float: right; padding: 8px 12px; border: 1px solid var(--rule); background: transparent; border-radius: 4px }
dialog p { margin-bottom: 18px }
dialog p:last-child { margin-bottom: 0 }
dialog a { color: var(--cobalt) }
/* Round control (presenter tray): start/stop, remaining time, length. */
#round-panel { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08) }
.round-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0 }
#round-toggle { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: transparent; color: #c9c4ba; font-size: 14px }
#round-toggle:hover { border-color: rgba(255, 255, 255, .5) }
#round-toggle .icon-stop, #round-toggle.running .icon-play { display: none }
#round-toggle.running .icon-stop { display: inline }
#round-toggle.running { border-color: var(--amber); color: var(--light) }
#round-left { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--light); min-width: 54px; letter-spacing: -.02em }
#round-left.over { color: var(--amber) }
.round-durations { display: inline-flex; gap: 2px; flex-wrap: wrap }
.round-durations button { height: 28px; min-width: 34px; padding: 0 8px; border: 0; border-radius: 14px; background: transparent; color: #8d9098; font-size: 12px; font-variant-numeric: tabular-nums }
.round-durations button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--light) }
.round-hint { margin: 10px 0 0; font-size: 12px; color: #6f7279 }

/* Member chips. */
#member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
#member-list li { position: relative }
#member-list .chip {
  float: none; height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: transparent; color: #c9c4ba; font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
}
#member-list .chip[aria-pressed="true"] { background: var(--light); border-color: var(--light); color: var(--ink) }
#member-list .chip:hover { border-color: rgba(255, 255, 255, .5) }
#member-list .remove { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 0; background: #2b2b2f; color: #c9c4ba; font-size: 12px; line-height: 18px; float: none; opacity: 0; transition: opacity .15s }
#member-list li:hover .remove, #member-list li:focus-within .remove { opacity: 1 }
#decisions-panel { padding: 18px 24px; box-sizing: border-box; border-top: 1px solid rgba(255, 255, 255, .08) }
#decisions-panel label { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8d9098 }
#decisions-panel input { height: 32px; padding: 0 12px; font: inherit; font-size: 14px; color: #c9c4ba; background: transparent; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 16px; outline: 0; min-width: 0 }
#decisions-panel input:focus { border-color: var(--amber); border-style: solid }
#decisions-panel input::placeholder { color: #7d8088 }
#decisions-panel .round-hint { margin: 8px 0 0 }
#member-add { display: inline-flex; align-items: center; gap: 6px }
#member-add input { width: 150px; height: 32px; padding: 0 12px; font: inherit; font-size: 14px; color: #c9c4ba; background: transparent; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 16px; outline: 0 }
#member-add input:focus { border-color: var(--amber); border-style: solid }
#member-add input::placeholder { color: #7d8088 }
#member-add button { float: none; height: 32px; padding: 0 12px; border: 0; background: transparent; color: #8d9098; border-radius: 16px }
#member-add button:hover { color: #c9c4ba }


.thumb .slide { position:absolute; inset:0; margin:0; color:var(--ink); background:var(--paper); overflow:hidden }
.thumb .speaker-notes, .thumb [data-preview-hide] { display:none !important }
.thumb [data-step].pending { opacity:1; transform:none }
.thumb * { animation:none !important; transition:none !important }
.thumb-box .thumb { transform:scale(var(--thumb-scale, .15)) }
#next-preview .thumb-box { flex-shrink:0 }
#help { overflow:auto; padding:16px }
#help h2 { margin:0 0 16px; font-size:18px }
#help-close { float:right; border:0; background:none; color:inherit; padding:8px }
#stage [data-members] { position:absolute; left:96px; right:96px; bottom:50px; display:flex; flex-wrap:wrap; gap:12px }
#stage [data-members] .tent { padding:18px 28px; background:var(--paper); color:var(--ink); border:1px solid currentColor; font-size:28px }
#round-dial { position:absolute; right:36px; bottom:36px; z-index:50; font-size:36px; font-variant-numeric:tabular-nums; color:var(--ink); background:var(--paper); padding:8px 16px; border-radius:4px }
#round-dial[hidden] { display:none }
#stage [data-decision] { white-space:pre-wrap; overflow-wrap:anywhere }
#side-handle:focus-visible,#strip-handle:focus-visible { outline:2px solid var(--amber) }
body.presenter { grid-template-columns:minmax(0,1fr) 6px min(var(--side), 45vw) }
body.presenter #strip { min-height:0 }
body.presenter > nav[aria-label="Slide controls"] { justify-content:flex-start; overflow-x:auto; padding:0 12px; white-space:nowrap }
#builds,.nav-right { position:static; transform:none; flex-shrink:0 }
#builds { order:-1 }
.nav-right { margin-left:auto }
#strip button { min-width:120px }
@media(max-width:760px) { body.presenter { grid-template-columns:minmax(0,1fr) 6px min(var(--side), 38vw) } #tray>* { padding:12px } #clock { font-size:11px; gap:6px } #decisions-panel label { grid-template-columns:1fr; gap:4px } }
@media(prefers-reduced-motion:reduce) { #stage *,#blank-veil,#lens,#laser { animation:none !important; transition:none !important } }

/* Slide search (Cmd-K) */
#jump { position:fixed; inset:0; z-index:95; display:flex; justify-content:center; align-items:flex-start; padding-top:14vh; background:rgba(0,0,0,.55) }
#jump[hidden] { display:none }
#jump .jump-card { width:min(680px,92vw); background:#161616; color:#eee; border:1px solid rgba(255,255,255,.14); border-radius:12px; box-shadow:0 24px 80px rgba(0,0,0,.6); overflow:hidden; font:15px/1.4 system-ui,sans-serif }
#jump input { width:100%; box-sizing:border-box; padding:16px 18px; border:0; border-bottom:1px solid rgba(255,255,255,.1); background:none; color:inherit; font:inherit; font-size:17px; outline:none }
#jump ol { list-style:none; margin:0; padding:6px; max-height:52vh; overflow:auto }
#jump li { display:flex; gap:12px; align-items:baseline; padding:8px 12px; border-radius:8px; cursor:pointer }
#jump li.on { background:rgba(255,255,255,.1) }
#jump li b { min-width:26px; text-align:right; font-weight:500; font-variant-numeric:tabular-nums; opacity:.55 }
#jump li.here b { opacity:1; color:var(--amber,#ffb454) }
#jump li span { display:block; min-width:0 } #jump li strong { font-weight:500 }
#jump li small { display:block; font-size:13px; opacity:.7; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
#jump li small i { font-style:normal; opacity:.7; margin-right:4px } #jump mark { background:none; color:var(--amber,#ffb454) }
#jump li.none { cursor:default; opacity:.6 }
