/* Slides Studio (/presentation-maker). It wears Video Studio's frame and
   panels (video-studio.css): menus, Present and Export along the top, the
   insert and format bar, then the slides, the slide being edited with its
   notes under it, and the settings in a row. On a phone the slides, the
   settings and the notes become sheets opened from tabs. The CSS of a drawn
   slide itself is in /js/slides-studio/slidecss.js, shared with the exports. */

/* ---- The site's fonts, for slides ---- */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/fonts/bitter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/fonts/oswald-latin-wght-normal.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("/fonts/dancing-script-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("/fonts/pacifico-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---- Start screen ---- */
.sl-new .st-new-row + .st-new-row { margin-top: 12px; }
.sl-new .st-new-row > .st-field { flex: 1 1 100%; }
.sl-new-size { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sl-new-size .seg-btn, .sl-size-seg .seg-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; }
.sl-new-size small, .sl-size-seg small { color: var(--faint); font-size: 0.66rem; }
.sl-size-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.sl-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sl-themes.is-small { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.sl-theme { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 0; font: inherit; font-size: 0.72rem; cursor: pointer; transition: border-color 140ms ease, color 140ms ease; }
.sl-theme:hover { color: var(--text); border-color: var(--border); }
.sl-theme.is-active { color: var(--text); border-color: var(--accent); }
.sl-theme:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sl-theme-pic, .sl-layout-pic, .sl-thumb-pic { position: relative; display: block; flex: none; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); pointer-events: none; }
.sl-theme-pic .sl-slide, .sl-layout-pic .sl-slide, .sl-thumb-pic .sl-slide { position: absolute; left: 0; top: 0; }

/* ---- The frame ---- */
.sl-work { grid-template-rows: auto auto minmax(0, 1fr); }
.sl-body { grid-template-columns: 196px minmax(0, 1fr) 300px; }
.sl-present { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.sl-menu-head { margin: 6px 10px 3px; color: var(--accent-strong); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sl-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); border: 0; }
.sl-work .vs-menu { max-height: 76vh; overflow-y: auto; scrollbar-width: thin; }

/* ---- The bar: insert and format ---- */
.sl-bar { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 8px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.sl-bar::-webkit-scrollbar { display: none; }
.sl-tb-group { display: flex; align-items: center; gap: 2px; flex: none; }
.sl-tb-gap { flex: none; width: 1px; height: 22px; margin: 0 5px; background: var(--border); }
.sl-tb { position: relative; flex: none; }
.sl-tb:has(span) { display: inline-flex; align-items: center; gap: 5px; width: auto; padding: 0 8px; font-size: 0.76rem; }
.sl-tb.has-swatch::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 3px; height: 3px; background: var(--sw, transparent); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sl-tb.has-more::after { content: ""; width: 0; height: 0; margin-left: -1px; border: 3.5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sl-font { width: 150px; min-width: 0; flex: none; }
.sl-size { width: 58px; flex: none; }

/* ---- Popovers: colours, shapes, tables, layouts ---- */
.sl-pop { position: absolute; z-index: 45; }
.sl-colours { width: 252px; min-width: 0; }
.sl-sw-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 0 6px 4px; }
.sl-sw-row.is-steps { gap: 3px 3px; }
.sl-sw { width: 100%; aspect-ratio: 1; padding: 0; background: var(--c); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 0; cursor: pointer; }
.sl-sw:hover { outline: 2px solid var(--gold, #e8b44f); outline-offset: 0; z-index: 1; }
.sl-sw.is-on { outline: 2px solid var(--accent); }
.sl-sw:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sl-sw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 2px; border-top: 1px solid var(--border); margin-top: 4px; }
.sl-sw-more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.76rem; cursor: pointer; }
.sl-sw-more input { width: 26px; height: 22px; padding: 0; border: 1px solid var(--border); background: none; cursor: pointer; }
.sl-sw-more:hover { color: var(--text); }
.sl-shapes { width: 320px; min-width: 0; }
.sl-shape-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 0 4px 4px; }
.sl-shape-btn { display: grid; place-items: center; aspect-ratio: 1; padding: 0; color: var(--text); background: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; }
.sl-shape-btn:hover { border-color: var(--accent); background: var(--tint); }
.sl-shape-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sl-tgrid { display: grid; gap: 2px; padding: 2px 8px 8px; }
.sl-tcell { width: 18px; height: 18px; padding: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 0; cursor: pointer; }
.sl-tcell.is-on { background: var(--tint); border-color: var(--accent); }
.sl-layout-pop { width: 340px; min-width: 0; }
.sl-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 4px 4px; }
.sl-layouts.is-small { padding: 0; margin-bottom: 8px; }
.sl-layout-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 2px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 0; font: inherit; font-size: 0.66rem; line-height: 1.2; text-align: center; cursor: pointer; }
.sl-layout-btn:hover { color: var(--text); border-color: var(--border); }
.sl-layout-btn.is-on { color: var(--text); border-color: var(--accent); }
.sl-layout-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- The slides down the side ---- */
.sl-list { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: var(--surface); border-right: 1px solid var(--border); }
.sl-list-scroll { position: relative; min-height: 0; padding: 10px 10px 10px 4px; overflow-y: auto; outline: none; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.sl-list-scroll:focus-visible { box-shadow: inset var(--focus-ring); }
.sl-thumb { position: relative; display: grid; grid-template-columns: 22px auto; align-items: start; gap: 2px; margin-bottom: 10px; cursor: pointer; touch-action: pan-y; }
.sl-thumb-n { padding-top: 2px; color: var(--faint); font: 0.68rem/1 var(--mono); text-align: right; padding-right: 4px; }
.sl-thumb-pic { outline: 2px solid transparent; outline-offset: 1px; transition: outline-color 120ms ease; }
.sl-thumb:hover .sl-thumb-pic { outline-color: var(--border); }
.sl-thumb.is-picked .sl-thumb-pic { outline-color: var(--accent); outline-style: dashed; }
.sl-thumb.is-current .sl-thumb-pic { outline-color: var(--accent); outline-style: solid; }
.sl-thumb.is-current .sl-thumb-n { color: var(--tint-text); }
.sl-thumb.is-hidden .sl-thumb-pic { opacity: 0.45; }
.sl-thumb-hid { position: absolute; left: 28px; bottom: 4px; padding: 1px 5px; color: #fff; background: rgba(0, 0, 0, 0.7); font-size: 0.6rem; }
.sl-thumb-tr { position: absolute; left: 4px; top: 18px; color: var(--accent-strong); font-size: 0.7rem; }
.sl-list-scroll.is-holding .sl-thumb.is-current .sl-thumb-pic { transform: scale(1.03); }
.sl-list-scroll.is-dragging { cursor: grabbing; }
.sl-list-scroll.is-dragging .sl-thumb { cursor: grabbing; }
.sl-drop-mark { position: absolute; left: 26px; right: 10px; height: 3px; margin-top: -6.5px; background: var(--accent); pointer-events: none; }
.sl-list-foot { padding: 6px 8px; border-top: 1px solid var(--border); }
.sl-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }

/* ---- The slide being edited ---- */
.sl-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.sl-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; background: #2b2b31; touch-action: none; }
.sl-stage.is-zoomed { place-items: start; overflow: auto; touch-action: auto; padding: 36px; }
.sl-stage.is-placing, .sl-stage.is-placing .sl-canvas { cursor: crosshair; }
.sl-canvas { position: relative; flex: none; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5); outline: none; }
.sl-slidebox { position: absolute; inset: 0; overflow: hidden; }
.sl-slidebox .sl-slide { position: absolute; left: 0; top: 0; }
.sl-slidebox .sl-tx-in[contenteditable="true"] { -webkit-user-select: text; user-select: text; cursor: text; }
.sl-slidebox .sl-tx-in[contenteditable="true"] * { -webkit-user-select: text; user-select: text; }
.sl-overlay { position: absolute; inset: 0; pointer-events: none; }
.sl-sel { position: absolute; box-sizing: border-box; border: 1px solid #8b5cf6; transform-origin: 50% 50%; pointer-events: none; }
.sl-sel.is-multi { border-style: dashed; }
.sl-sel.is-editing { border: 1px dashed #8b5cf6; }
.sl-sel.is-locked { border-color: #9a9aa5; }
.sl-sel.is-line { height: 0; border: 0; border-top: 1px dashed #8b5cf6; transform-origin: 0 0; }
.sl-h { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; border: 1.5px solid #8b5cf6; pointer-events: auto; touch-action: none; }
.sl-h.is-nw { left: 0; top: 0; cursor: nwse-resize; }
.sl-h.is-n { left: 50%; top: 0; cursor: ns-resize; }
.sl-h.is-ne { left: 100%; top: 0; cursor: nesw-resize; }
.sl-h.is-e { left: 100%; top: 50%; cursor: ew-resize; }
.sl-h.is-se { left: 100%; top: 100%; cursor: nwse-resize; }
.sl-h.is-s { left: 50%; top: 100%; cursor: ns-resize; }
.sl-h.is-sw { left: 0; top: 100%; cursor: nesw-resize; }
.sl-h.is-w { left: 0; top: 50%; cursor: ew-resize; }
.sl-h.is-rot { left: 50%; top: -26px; border-radius: 50%; background: #8b5cf6; border-color: #fff; cursor: grab; }
.sl-h.is-rot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 16px; background: #8b5cf6; }
.sl-h.is-end { border-radius: 50%; cursor: move; }
.sl-sel.is-editing .sl-h { display: none; }
.sl-guide { position: absolute; background: #ff3d8b; pointer-events: none; }
.sl-guide.is-v { top: 0; bottom: 0; width: 1px; }
.sl-guide.is-h { left: 0; right: 0; height: 1px; }
.sl-band { position: absolute; z-index: 3; border: 1px dashed rgba(139, 92, 246, 0.95); background: rgba(139, 92, 246, 0.12); pointer-events: none; }
.sl-band.is-ghost { border-style: solid; }
.sl-msg { position: absolute; left: 10px; bottom: 8px; z-index: 4; max-width: calc(100% - 20px); margin: 0; pointer-events: none; white-space: normal; }
.sl-msg:not(:empty) { padding: 6px 10px; color: var(--text); background: rgba(20, 17, 31, 0.88); border: 1px solid var(--border); }
.sl-msg[data-kind="warn"] { border-color: #e8b44f; }
.sl-msg[data-kind="ok"] { border-color: #2ec4b6; }

/* ---- Notes ---- */
.sl-notes { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 120px; background: var(--surface); border-top: 1px solid var(--border); }
.sl-work.no-notes .sl-notes { display: none; }
.sl-notes-label { padding: 5px 10px 0; color: var(--faint); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sl-notes-text { width: 100%; min-height: 0; padding: 4px 10px 8px; color: var(--text); background: none; border: 0; border-radius: 0; font: 0.84rem/1.45 var(--sans, inherit); resize: none; outline: none; }
.sl-notes-text:focus-visible { box-shadow: inset var(--focus-ring); }

/* ---- Settings ---- */
.sl-colbtn { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; padding: 4px 8px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 0; font: inherit; font-size: 0.78rem; text-align: left; cursor: pointer; }
.sl-colbtn:hover { border-color: var(--accent); }
.sl-colbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sl-colbtn-sw { flex: none; width: 18px; height: 18px; background: var(--c, transparent); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sl-colbtn-sw.is-none { background: linear-gradient(to top right, transparent calc(50% - 1px), #e0465e calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.sl-colbtn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-theme-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 6px 0 10px; }
.sl-theme-cols input[type="color"] { width: 100%; height: 26px; padding: 0; background: none; border: 1px solid var(--border); border-radius: 0; cursor: pointer; }
.sl-outline-box { width: 100%; min-height: 220px; font: 0.84rem/1.5 var(--mono); resize: vertical; }
.sl-ex-bar { width: 100%; height: 6px; margin-top: 8px; accent-color: var(--accent); }

/* ---- The slideshow ---- */
body.sl-showing { overflow: hidden; }
.sl-show { position: fixed; inset: 0; z-index: 1000; display: grid; background: #000; outline: none; cursor: none; touch-action: none; }
.sl-show.is-awake { cursor: default; }
.sl-show.is-laser, .sl-show.is-laser.is-awake { cursor: none; }
.sl-show-stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.sl-show-frame { position: relative; overflow: hidden; }
.sl-show-frame .sl-slide { position: absolute; left: 0; top: 0; }
.sl-show-cover { position: absolute; inset: 0; z-index: 3; display: none; pointer-events: none; }
.sl-show-cover[data-c="black"] { display: block; background: #000; }
.sl-show-cover[data-c="white"] { display: block; background: #fff; }
.sl-show-bar { position: absolute; left: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 4px; background: rgba(28, 26, 36, 0.86); border: 1px solid rgba(255, 255, 255, 0.14); opacity: 0; transition: opacity 200ms ease; }
.sl-show.is-awake .sl-show-bar, .sl-show-bar:focus-within { opacity: 1; }
.sl-show.is-audience .sl-show-bar { display: none; }
.sl-show-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #fff; background: none; border: 0; border-radius: 0; cursor: pointer; }
.sl-show-btn:hover { background: rgba(255, 255, 255, 0.12); }
.sl-show-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sl-show-count { min-width: 56px; padding: 0 6px; color: #ddd; font: 0.78rem/1 var(--mono, monospace); text-align: center; }
.sl-show-end { position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; background: #000; font: 1rem/1.4 system-ui, sans-serif; }
/* Record (record.js): the canvas is the video; the bar sits under it, outside the recording. */
.sl-rec { grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
.sl-rec-frame { position: relative; touch-action: none; cursor: pointer; }
.sl-rec-canvas { display: block; width: 100%; height: 100%; }
.sl-rec-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sl-rec-cam { position: absolute; border-radius: 50%; cursor: move; touch-action: none; }
.sl-rec-cam:hover { box-shadow: 0 0 0 2px var(--accent, #c9a2ff); }
.sl-rec-size { position: absolute; right: 6%; bottom: 6%; width: 22px; height: 22px; background: #fff; border: 2px solid #1c1a24; border-radius: 50%; cursor: nwse-resize; }
.sl-rec-bar { position: static; justify-self: center; opacity: 1; }
.sl-rec-btn { margin: 0 4px; }
.sl-rec-clock { min-width: 44px; padding: 0 6px; color: #ddd; font: 0.78rem/1 var(--mono, monospace); text-align: center; }
.sl-rec.is-rec .sl-rec-clock { color: #ff6b6b; }
.sl-rec.is-rec .sl-rec-clock::before { content: "\25CF  "; }
.sl-laser { position: absolute; z-index: 6; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: radial-gradient(circle, #ff3b3b 0 35%, rgba(255, 40, 40, 0.45) 55%, transparent 70%); border-radius: 50%; pointer-events: none; }
body.sl-audience { margin: 0; background: #000; }

/* ---- Presenter view ---- */
.sl-pv { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #eee; background: #121117; font: 14px/1.4 system-ui, sans-serif; outline: none; }
.sl-pv-top { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-bottom: 1px solid #2c2a36; }
.sl-pv-time { font: 600 1.4rem/1 var(--mono, monospace); font-variant-numeric: tabular-nums; }
.sl-pv-clock, .sl-pv-count { color: #aaa; font: 0.95rem/1 var(--mono, monospace); }
.sl-pv-top > :last-child { margin-left: auto; }
.sl-pv-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; min-height: 0; padding: 14px 16px; }
.sl-pv-cur, .sl-pv-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.sl-pv-cur .sl-pv-box { flex: 1 1 auto; }
.sl-pv-box { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; background: #000; }
.sl-pv-box.is-next { flex: 0 0 34%; }
.sl-pv-label { margin: 0; color: #8b8794; font: 0.66rem/1 var(--mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; }
.sl-pv-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.sl-pv-notes { flex: 1 1 auto; min-height: 0; padding: 10px 12px; overflow-y: auto; background: #1b1a22; font-size: var(--pv-notes, 1.15rem); line-height: 1.5; white-space: pre-wrap; outline: none; }
.sl-pv-notes.is-empty::before { content: "No notes for this slide."; color: #77737f; }
.sl-pv-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #2c2a36; }
.sl-pv-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; color: #eee; background: #24222c; border: 1px solid #3a3746; border-radius: 0; font: inherit; cursor: pointer; }
.sl-pv-btn:hover { border-color: #8b5cf6; }
.sl-pv-btn:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 2px #8b5cf6); }

/* ---- Phones ---- */
@media (max-width: 760px) {
  .sl-new-size { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sl-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sl-size-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-work { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .sl-body { display: block; position: static; }
  .sl-main { height: 100%; grid-template-rows: minmax(0, 1fr); }
  .sl-present span { display: none; }
  #sl-help, #sl-max { display: none; }
  .sl-bar { padding: 3px 6px; }
  .sl-tb-insert { display: none; }
  .sl-tb-insert + .sl-tb-gap { display: none; }
  .sl-bar .vs-ib { width: 36px; height: 36px; }
  .sl-font { width: 118px; }
  .sl-notes { display: none; }
  .sl-work[data-sheet="notes"] .sl-notes { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 20; display: grid; height: 45%; box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.55); }
  .sl-work[data-sheet="notes"] .vs-sheet-close { display: none; }
  .sl-work:not([data-sheet="lib"]) .sl-list, .sl-work:not([data-sheet="insp"]) .sl-insp { display: none; }
  .sl-list.vs-sheet { grid-template-rows: minmax(0, 1fr) auto; }
  .sl-list-scroll { padding: 12px 52px 12px 8px; }
  .sl-msg { left: 8px; right: 8px; bottom: 8px; }
  .sl-shapes { width: min(320px, calc(100vw - 16px)); }
  .sl-pv-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .sl-pv-box.is-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-show-bar, .sl-thumb-pic, .sl-theme { transition: none; }
}
