oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1/* editor.css — the editor's chrome (templates/editor.html, spec §3.1).
2
3 What a slide looks like is slides.css; this file only places the
4 editor's own parts around it. Every selector here is an app
5 attribute (slides-*), so nothing can collide with the rst-* grammar
6 the chrome inside it uses.
7
8 Two layouts, one document order. From 1100px the strip and the stage
9 sit side by side and the inspector is a card floating over the
10 desk's top end corner. Below it they stack in the order the markup
11 has them: the bar, a horizontal filmstrip, the stage, the inspector
12 in the flow at the foot. Nothing is hidden in either, and the reflow holds
13 at 320px (spec §8): the stage scrolls inside its own region, which
14 is the one allowance the spec makes. */
15
16/* Type sizes and corner radii are the published ones (spec §7):
17 rastrillo's --rst-fs-xs|sm|base|lg (11.5, 12.5, 14, 17px; a step
18 larger under a coarse pointer or below 40rem) and --rst-radius,
19 --rst-radius-sm, --rst-radius-pill (12, 8, 999px), and estilo's
20 --estilo-float-radius (9px), wherever one is within a pixel of what
21 the part needs. What they lack is named here, once, for what it is
22 for; nothing else in this file states a size or a radius as a number
23 (TestQuieterCSSUsesTokens). A size that must not grow on touch, in a
24 fixed box, is named here too. */
25/* slides: named values */
26:root {
27 /* The layout pictures' inks. */
28 --slides-glyph-paper: light-dark(#ffffff, #23211f);
29 --slides-glyph-edge: light-dark(#cfc8bf, #4a4540);
30 --slides-glyph-ink: light-dark(#3d3832, #d8d2cb);
31 --slides-glyph-soft: light-dark(#cdc5bb, #5a544d);
32 --slides-glyph-accent: var(--rst-accent);
33 /* The strip: the gutter its numbers sit in (three digits), and the
34 ground under an item's ⋮, translucent so the button reads on a
35 light slide in the dark theme and a dark one in the light. */
36 --slides-strip-gutter: 24px;
37 --slides-strip-menu-ground: light-dark(rgb(255 255 255 / 0.8), rgb(24 22 20 / 0.72));
38 /* Type in a fixed box, which must not grow on touch: the strip's
39 numbers in their gutter, and the initials (and the "+n") in a
40 presence face's 22px circle. */
41 --slides-fs-strip-number: 12px;
42 --slides-fs-avatar: 10px;
43 --slides-fs-avatar-more: 9px;
44 /* A press number in a box's margin (step-marks.mjs): small, and
45 the same on touch, beside the box it numbers. */
46 --slides-fs-step-mark: 10px;
47 /* A slide's count of presses in its thumbnail's corner (strip.mjs):
48 as small as a press number, in the picture's fixed box. */
49 --slides-fs-strip-presses: 10px;
50 /* The speaker notes: larger than a form's text (--rst-fs-base),
51 because they are written to be read aloud. */
52 --slides-fs-notes: 15px;
53 /* Corners: a short grip's and a handle's; the ring round the text
54 being edited; the slide lying on the desk, and on the phone's
55 screen; a thumbnail's; the deck title's and a menu title's hover
56 ground in the bar; a key cap's; the layouts popover's, the card's
57 two row popovers' and the shortcuts dialog's; the assistant's,
58 and its sheet's top on a phone; the phone frame's; a dot. */
59 --slides-radius-glyph: 2px;
60 --slides-radius-edit-ring: 2px;
61 --slides-radius-paper: 4px;
62 --slides-radius-thumb: 6px;
63 --slides-radius-bar-item: 6px;
64 --slides-radius-key: 6px;
65 --slides-radius-panel: 14px;
66 --slides-radius-assist: 16px;
67 --slides-radius-sheet: 18px;
68 --slides-radius-phone: 28px;
69 --slides-radius-circle: 50%;
70 /* A scene's data table (scene-card.mjs): the least a cell's field
71 narrows to, and a row's remove button, a 24px target round a
72 16px icon. */
73 --slides-scene-cell-min: 64px;
74 --slides-scene-remove-size: 24px;
75 --slides-scene-remove-icon: 16px;
76}
77/* end named values */
78
79/* `hidden` must actually hide. The bundle shows and hides most of the
80 inspector with the hidden PROPERTY, and the UA's own
81 [hidden]{display:none} loses to every author `display` in this file
82 and in rastrillo's — [rst-form], [rst-box-head], [rst-callout],
83 [rst-field-row] are all flex. Without this the Block section, the
84 delete confirmation and the phone-override badge are on screen
85 whether or not they apply to anything. Scoped to the editor and
86 deliberately !important: it is a reset, and anything it beats is a
87 layout rule that has no business showing a hidden element. */
88[slides-editor] [hidden] {
89 display: none !important;
90}
91
92[slides-editor] {
93 display: grid;
94 grid-template-areas:
95 "bar"
96 "desk";
97 grid-template-columns: minmax(0, 1fr);
98 min-block-size: 100dvh;
99}
100/* With scripts off the <noscript> says the editor needs them and links
101 the viewer. It is first in the root, but a grid places an item with no
102 area after the named ones: it was under the whole desk, below the
103 fold, while a deck opened here from the list. Under the bar instead.
104 Only with scripting off: a page with scripts is untouched (a third
105 row, even empty, would take a share of the root's stretched height
106 and move the desk). */
107@media (scripting: none) {
108 [slides-editor] {
109 grid-template-areas:
110 "bar"
111 "notice"
112 "desk";
113 }
114 [slides-editor] > noscript {
115 display: block;
116 grid-area: notice;
117 padding: var(--rst-sp-3) var(--rst-sp-4) 0;
118 }
119}
120/* The desk: below 1100px the panes stack in document order — the font
121 status, a horizontal filmstrip, the stage, the inspector — and
122 nothing is hidden but a card Format has closed; from 1100px the strip
123 and the stage sit side by side under the floating card, the font
124 status over the stage (the end of this file). */
125[slides-desk] {
126 display: grid;
127 gap: var(--rst-sp-4);
128 grid-area: desk;
129 grid-template-areas:
130 "fonts"
131 "strip"
132 "stage"
133 "inspector";
134 grid-template-columns: minmax(0, 1fr);
135 padding: var(--rst-sp-3) var(--rst-sp-3) var(--rst-sp-6);
136}
137
138/* ── The font status ─────────────────────────────────────────────────
139 What the editor says about its fonts (fixtures/font-status.mjs): a
140 change waiting for a font, a change refused while it does, a font
141 that could not be loaded, substitutes in use. Its own row of the
142 desk (over the stage, beside the strip, from 1100px; so the strip's
143 surface meets the bar), always in the page and always this height — two lines' room on a narrow screen,
144 where the longest note wraps, one from 40rem — so saying something
145 moves nothing on the page (Paul, 2026-10-26: a layout that moves
146 after the page is shown is a flash too). Empty when there is nothing
147 to say, but still there: its text is a live region, which is only
148 heard if it was in the page before the text changed. Text, never
149 colour alone; the dismiss button appears for the two notes that stay
150 a while. */
151[slides-fonts-status] {
152 align-items: center;
153 display: flex;
154 gap: var(--rst-sp-2);
155 grid-area: fonts;
156 font-size: var(--rst-fs-sm);
157 line-height: 1.4;
158 min-block-size: calc(2 * 1.4em);
159 margin-block: 0;
160}
161@media (min-width: 40rem) {
162 [slides-fonts-status] {
163 min-block-size: max(24px, calc(1.4em + 4px));
164 }
165}
166[slides-fonts-status-text] {
167 flex: 1 1 auto;
168 margin: 0;
169 min-inline-size: 0;
170 overflow-wrap: anywhere;
171}
172[slides-fonts-status][data-state] [slides-fonts-status-text] {
173 font-weight: 600;
174}
175[slides-fonts-status-dismiss] {
176 align-items: center;
177 background: transparent;
178 border: 0;
179 border-radius: var(--rst-radius-sm);
180 color: inherit;
181 cursor: pointer;
182 display: none;
183 flex: none;
184 justify-content: center;
185 min-block-size: 24px;
186 min-inline-size: 24px;
187 padding: 0;
188}
189[slides-fonts-status-dismiss]:hover {
190 background: var(--rst-surface-2);
191}
192[slides-fonts-status][data-state="unavailable"] [slides-fonts-status-dismiss],
193[slides-fonts-status][data-state="interrupted"] [slides-fonts-status-dismiss],
194[slides-fonts-status][data-state="substitute"] [slides-fonts-status-dismiss] {
195 display: inline-flex;
196}
197
198/* ── The header ───────────────────────────────────────────────────
199 estilo's stacked bar, the suite's editor header: the editor draws it
200 itself (editor.html's "bar" is empty) with estilo's hooks, so its
201 heights, title and menus are estilo's and only placement is here. */
202[slides-head] {
203 grid-area: bar;
204 position: sticky;
205 top: 0;
206 z-index: 30;
207}
208[slides-head-brand] {
209 flex: none;
210}
211[slides-editor-title] {
212 font-size: inherit;
213}
214/* A small heading inside a menu ("New slide", "On this slide"), and a
215 layout's picture beside its name. */
216[slides-menu-heading] {
217 color: var(--rst-text-muted);
218 font-size: var(--rst-fs-xs);
219 font-weight: 600;
220 margin: var(--rst-sp-2) var(--rst-sp-3) var(--rst-sp-1);
221}
222[slides-menu-glyph] {
223 display: inline-flex;
224 margin-inline-end: var(--rst-sp-2);
225}
226[slides-menu-glyph] svg {
227 block-size: 18px;
228 inline-size: 32px;
229}
230[slides-head-end] {
231 align-items: center;
232 display: flex;
233 flex: none;
234 gap: var(--rst-sp-2);
235}
236[slides-head-end] [estilo-save-status] {
237 color: var(--rst-text-muted);
238 font-size: var(--rst-fs-sm);
239 margin-inline-end: var(--rst-sp-1);
240 text-align: end;
241}
242/* "Saved" is news, not a state to keep reading: it shows for two seconds
243 after a save, then fades. A page that has just opened has nothing to
244 report, and a transition does not run on first paint, so it opens
245 without it. Opacity, so it stays the live region and holds its room. */
246[slides-head-end] [estilo-save-status][data-state="saved"] {
247 opacity: 0;
248 transition: opacity 300ms ease-out 2s;
249}
250/* The history pill: Undo and Redo as one control. Each is an
251 [estilo-bar-control]; estilo has no joined pair, so the joining is
252 here. Below 800px estilo draws no pills and this is the pair's whole
253 look: a grey pill, a hairline between. */
254[slides-history] {
255 align-items: center;
256 border-radius: var(--rst-radius-pill);
257 display: inline-flex;
258}
259[slides-history] button:focus-visible,
260[slides-head-tool]:focus-visible {
261 outline: 2px solid var(--rst-accent);
262 outline-offset: 2px;
263}
264@media (max-width: 799.98px) {
265 [slides-history] {
266 background: var(--rst-surface-2);
267 padding: 2px; /* spacing-allow: the pill's 2px track round its two buttons */
268 }
269 [slides-history] button {
270 align-items: center;
271 background: none;
272 block-size: 32px;
273 border: 0;
274 border-radius: var(--rst-radius-pill);
275 color: var(--rst-text-muted);
276 cursor: pointer;
277 display: inline-flex;
278 inline-size: 36px;
279 justify-content: center;
280 padding: 0;
281 }
282 [slides-history] [estilo-bar-control] + [estilo-bar-control] > button {
283 box-shadow: -1px 0 0 0 var(--rst-line);
284 }
285 [slides-history] button:hover {
286 background: var(--rst-surface);
287 color: var(--rst-text);
288 }
289}
290/* From 800px, the pair Docs has: one soft pill holding two round
291 buttons with a hairline between, 28px in all. A hovered button lifts
292 within it. */
293@media (min-width: 800px) {
294 [slides-history] {
295 background: linear-gradient(light-dark(rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.04)), transparent 60%), var(--rst-surface-2);
296 box-shadow:
297 inset 0 1px 0 light-dark(rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.06)),
298 inset 0 -1px 0 light-dark(rgb(23 32 60 / 0.05), rgb(0 0 0 / 0.2)),
299 0 1px 2px rgb(23 32 60 / 0.06);
300 padding: 2px; /* spacing-allow: the pill's 2px track round its two buttons, 28px in all */
301 }
302 [slides-history] [estilo-bar-control] > button {
303 block-size: 24px;
304 box-shadow: none;
305 color: var(--rst-text);
306 min-block-size: 24px;
307 min-inline-size: 30px;
308 padding: 0 var(--rst-sp-1);
309 }
310 [slides-history] [estilo-bar-control] > button svg {
311 block-size: 16px;
312 inline-size: 16px;
313 }
314 [slides-history] [estilo-bar-control] > button:hover:not(:disabled) {
315 background-color: var(--rst-surface);
316 box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.10);
317 }
318 [slides-history] [estilo-bar-control] > button:disabled {
319 color: var(--rst-text-faint);
320 opacity: 0.6;
321 }
322 [slides-history] [estilo-bar-control] + [estilo-bar-control] > button {
323 position: relative;
324 }
325 [slides-history] [estilo-bar-control] + [estilo-bar-control] > button::before {
326 border-inline-start: 1px solid light-dark(rgb(23 32 60 / 0.14), rgb(255 255 255 / 0.14));
327 content: "";
328 inset-block: 4px;
329 inset-inline-start: -0.5px;
330 position: absolute;
331 }
332}
333@media (min-width: 800px) and (pointer: coarse) {
334 [slides-history] {
335 padding: 0;
336 }
337 [slides-history] [estilo-bar-control] > button {
338 block-size: 32px;
339 min-block-size: 32px;
340 min-inline-size: 32px;
341 }
342}
343/* The header's toggles (Format, the assistant): a pill that is lit
344 while what it shows is shown — the fill AND aria-expanded or
345 aria-pressed (and, for Format, the View menu's check) say it. From
346 800px each is estilo's own pill ([estilo-bar-control]), which wins
347 over this, and estilo tints an aria-expanded one; the assistant's
348 aria-pressed tint is this rule's at every width. Narrower, estilo
349 draws no pill and this is their look. */
350[slides-head-tool] {
351 align-items: center;
352 background: none;
353 block-size: 36px;
354 border: 0;
355 border-radius: var(--rst-radius-pill);
356 color: var(--rst-text-muted);
357 cursor: pointer;
358 display: inline-flex;
359 font: 600 var(--rst-fs-base)/1 var(--rst-font, system-ui), sans-serif;
360 gap: var(--rst-sp-2);
361 padding: 0 var(--rst-sp-4) 0 var(--rst-sp-3);
362}
363[slides-head-tool]:hover {
364 background: var(--rst-surface-2);
365 color: var(--rst-text);
366}
367[slides-head-tool]:is([aria-pressed="true"], [aria-expanded="true"]) {
368 background: var(--rst-accent-soft);
369 color: var(--rst-accent);
370}
371[slides-present-form] {
372 margin: 0;
373}
374[slides-present-form] [rst-btn] .icon {
375 fill: currentColor;
376}
377/* Share and Present below 800px, where estilo draws no pill: rastrillo's
378 buttons, made pills. From 800px estilo's set draws them, and these
379 would outweigh it, so they stop there. */
380@media (max-width: 799.98px) {
381 [slides-head-share],
382 [slides-present-form] [rst-btn] {
383 block-size: 36px;
384 border-radius: var(--rst-radius-pill);
385 padding-inline: var(--rst-sp-4);
386 }
387 [slides-present-form] [rst-btn] {
388 gap: var(--rst-sp-2);
389 }
390 [slides-present-form] [rst-btn] .icon {
391 block-size: 14px;
392 inline-size: 14px;
393 }
394}
395[slides-head-end] > [estilo-account] {
396 box-shadow: -9px 0 0 -8px var(--rst-line);
397 padding-inline-start: var(--rst-sp-2);
398}
399/* Narrower windows keep every control and drop words: the toggle and
400 Present become their icons (each keeps its name for a reader), the
401 save line goes to its icon-free minimum. */
402@media (max-width: 899px) {
403 [slides-head-tool] > span,
404 [slides-present-form] [rst-btn] > span {
405 block-size: 1px;
406 clip-path: inset(50%);
407 inline-size: 1px;
408 overflow: hidden;
409 position: absolute;
410 white-space: nowrap;
411 }
412 [slides-head-tool],
413 [slides-present-form] [rst-btn] {
414 padding-inline: var(--rst-sp-3);
415 }
416 /* "Saved" at rest leaves the screen to make room, and stays in the
417 page (visually hidden, never display: none): it is the live
418 region, and any other state — saving, offline, refused — is
419 shown and said. */
420 [slides-head-end] [estilo-save-status][data-state="saved"] {
421 block-size: 1px;
422 clip-path: inset(50%);
423 inline-size: 1px;
424 overflow: hidden;
425 position: absolute;
426 white-space: nowrap;
427 }
428}
429/* A phone: estilo's two rows, and the controls as a third, since they
430 do not fit beside the title. */
431@media (max-width: 599px) {
432 [slides-head][estilo-bar] {
433 grid-template-areas: "brand title" "menus menus" "end end";
434 grid-template-columns: auto minmax(0, 1fr);
435 grid-template-rows: 3.25rem auto auto;
436 padding-block-end: var(--rst-sp-2);
437 position: static;
438 }
439 [slides-head-end] {
440 flex-wrap: wrap;
441 gap: var(--rst-sp-2);
442 justify-content: flex-end;
443 margin-inline-start: 0;
444 }
445 [slides-head-share] {
446 font-size: var(--rst-fs-base);
447 padding-inline: var(--rst-sp-3);
448 }
449}
450[slides-load-error] {
451 font-size: var(--rst-fs-sm);
452 font-weight: 600;
453}
454[slides-load-error]:empty {
455 display: none;
456}
457
458/* ── The keyboard shortcuts dialog, and Deck settings (spec §8) ──── */
459[slides-keys-dialog],
460[slides-deck-dialog] {
461 background: var(--rst-surface);
462 border: 1px solid var(--rst-line);
463 border-radius: var(--slides-radius-panel);
464 box-shadow: var(--rst-shadow-pop);
465 color: var(--rst-text);
466 inline-size: min(30rem, calc(100vw - 2rem));
467 padding: var(--rst-sp-4) var(--rst-sp-5);
468}
469[slides-keys-dialog]::backdrop,
470[slides-deck-dialog]::backdrop {
471 background: rgb(0 0 0 / 0.35);
472}
473[slides-keys-dialog] h2,
474[slides-deck-dialog] h2 {
475 font-size: var(--rst-fs-lg);
476 margin: 0 0 var(--rst-sp-3);
477}
478[slides-keys-list] {
479 display: grid;
480 margin: 0;
481}
482[slides-keys-list] > div {
483 align-items: baseline;
484 border-block-end: 1px solid var(--rst-line);
485 display: flex;
486 gap: var(--rst-sp-3);
487 justify-content: space-between;
488 padding-block: var(--rst-sp-2);
489}
490[slides-keys-list] dt {
491 font-size: var(--rst-fs-sm);
492}
493[slides-keys-list] dd {
494 flex: none;
495 margin: 0;
496}
497[slides-keys-list] kbd {
498 background: var(--rst-surface-2);
499 border: 1px solid var(--rst-line);
500 border-radius: var(--slides-radius-key);
501 font: 600 var(--rst-fs-xs)/1 var(--rst-font, system-ui), sans-serif;
502 padding: var(--rst-sp-1) var(--rst-sp-2);
503}
504[slides-keys-dialog] form > p,
505[slides-deck-dialog] form > p {
506 display: flex;
507 justify-content: flex-end;
508 margin: var(--rst-sp-4) 0 0;
509}
510
511/* ── The strip ───────────────────────────────────────────────────── */
512
513[slides-strip-nav] {
514 grid-area: strip;
515 min-width: 0;
516}
517[slides-strip] {
518 display: flex;
519 gap: var(--rst-sp-1);
520 list-style: none;
521 margin: 0;
522 overflow-x: auto;
523 padding: 0 0 var(--rst-sp-2);
524}
525/* An item is the slide's number in a narrow gutter and its picture
526 beside it, as Keynote's navigator is; no title under it (spec §6.1).
527 The number is real text the server writes and strip.mjs keeps right:
528 drawn in the gutter and hidden from a screen reader, which hears its
529 hidden twin at the start of the link's name instead, once. */
530[slides-strip-item] {
531 align-items: start;
532 border-radius: var(--estilo-float-radius);
533 box-sizing: border-box;
534 column-gap: var(--rst-sp-2);
535 display: grid;
536 flex: none;
537 grid-template-columns: var(--slides-strip-gutter) minmax(0, 1fr);
538 padding: var(--rst-sp-1) var(--rst-sp-2) var(--rst-sp-1) 0;
539 position: relative;
540 width: 196px;
541}
542[slides-strip-item] > [slides-thumb] {
543 grid-column: 2;
544 grid-row: 1;
545}
546[slides-strip-item] > [slides-strip-link] {
547 grid-column: 1;
548 grid-row: 1;
549}
550/* New slide, a quiet row straight after the last thumbnail: under it
551 in the column, beside it in the row below 1100px. Two plain
552 buttons, the one that adds and the chevron that opens its layouts,
553 with no fill or border until hovered or focused; in the column they
554 start where the pictures do, past the gutter. */
555[slides-strip-new] {
556 align-self: center;
557 flex: none;
558 padding: var(--rst-sp-1) var(--rst-sp-2);
559}
560[slides-strip-add] {
561 anchor-name: --slides-strip-add;
562 display: flex;
563 gap: var(--rst-sp-1);
564}
565[slides-strip-add] > [rst-btn] {
566 background: none;
567 border-color: transparent;
568 color: var(--rst-text-muted);
569 font-weight: 500;
570}
571[slides-strip-add] > [rst-btn]:is(:hover, :focus-visible) {
572 background: var(--rst-surface-2);
573 border-color: transparent;
574 color: var(--rst-text);
575}
576[slides-strip-add] > [rst-btn]:first-child {
577 gap: var(--rst-sp-2);
578 padding-inline: var(--rst-sp-2) var(--rst-sp-3);
579}
580[slides-strip-add] > [slides-layouts-toggle] {
581 padding-inline: var(--rst-sp-2);
582}
583/* The layouts, over everything, opening upward from the New slide
584 row where the engine can anchor them (and in the middle of the
585 window where it cannot). The row scrolls with the strip, so it can be
586 anywhere: at the top of a short strip they open downward instead,
587 and at the end of the row below 1100px, to its start. */
588[slides-layout-grid] {
589 background: var(--rst-surface);
590 border: 0;
591 border-radius: var(--slides-radius-panel);
592 box-shadow:
593 0 0 0 1px light-dark(rgb(40 28 12 / 0.1), rgb(255 255 255 / 0.1)),
594 0 10px 20px -8px rgb(40 28 12 / 0.2),
595 0 28px 56px -20px rgb(40 28 12 / 0.35);
596 color: var(--rst-text);
597 gap: var(--rst-sp-1);
598 grid-template-columns: repeat(2, minmax(0, 1fr));
599 inline-size: 19rem;
600 padding: var(--rst-sp-2);
601}
602[slides-layout-grid]:popover-open {
603 display: grid;
604}
605@supports (position-area: top) {
606 [slides-layout-grid] {
607 inset: auto;
608 margin: 0 0 var(--rst-sp-2);
609 position-anchor: --slides-strip-add;
610 position-area: top span-right;
611 position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
612 }
613}
614[slides-layout-grid] > button {
615 align-items: center;
616 background: none;
617 border: 1px solid transparent;
618 border-radius: var(--rst-radius-sm);
619 color: var(--rst-text);
620 cursor: pointer;
621 display: grid;
622 font-size: var(--rst-fs-xs);
623 gap: var(--rst-sp-2);
624 justify-items: center;
625 padding: var(--rst-sp-2) var(--rst-sp-1);
626}
627[slides-layout-grid] > button:hover,
628[slides-layout-grid] > button:focus-visible {
629 background: var(--rst-surface-2);
630 border-color: var(--rst-line);
631 outline: none;
632}
633[slides-layout-grid] > button:focus-visible {
634 box-shadow: 0 0 0 2px var(--rst-accent);
635}
636[slides-layout-glyph] svg {
637 block-size: 54px;
638 display: block;
639 inline-size: 96px;
640}
641/* The current slide has one mark: the accent outline round its
642 picture — with aria-current and the screen-reader "Current slide",
643 never colour alone. */
644[slides-strip-item][data-current="true"] [slides-thumb] {
645 outline: 2px solid var(--rst-accent);
646 outline-offset: 2px;
647}
648/* The thumbnail: a 16:9 box holding one <img> of the server's SVG of
649 the slide (internal/slides/thumbs.go). It used to be the slide's own
650 HTML laid out at 900px and shrunk by a transform — nine live copies
651 of a document in the page, and a second opinion about what a slide
652 looks like. The picture is drawn from the same paint list the PDF
653 export is.
654
655 A background under it so a picture still loading, or one that
656 failed, is a slide-shaped space rather than a hole in the row. */
657[slides-thumb] {
658 aspect-ratio: 16 / 9;
659 background: var(--rst-surface);
660 border-radius: var(--slides-radius-thumb);
661 box-shadow:
662 0 0 0 1px light-dark(rgb(40 28 12 / 0.08), rgb(255 255 255 / 0.08)),
663 0 1px 2px rgb(40 28 12 / 0.10),
664 0 4px 10px -6px rgb(40 28 12 / 0.25);
665 overflow: hidden;
666 position: relative;
667 transition: box-shadow 160ms ease, transform 160ms ease;
668 width: 100%;
669}
670[slides-strip-item]:hover [slides-thumb] {
671 transform: translateY(-1px);
672}
673[slides-thumb-img] {
674 block-size: 100%;
675 display: block;
676 inline-size: 100%;
677 object-fit: contain;
678}
679/* The whole item is the target: the link's box stretches over the
680 item, so a click on the picture opens the slide and the focus ring
681 frames the item. What the link shows is the number, in the gutter. */
682[slides-strip-link] {
683 color: inherit;
684 display: block;
685 min-height: 24px;
686 text-decoration: none;
687}
688[slides-strip-number] {
689 color: var(--rst-text-muted);
690 display: block;
691 font-size: var(--slides-fs-strip-number);
692 font-variant-numeric: tabular-nums;
693 font-weight: 500;
694 line-height: 1.5;
695 text-align: end;
696}
697[slides-strip-link]::after {
698 content: "";
699 inset: 0;
700 position: absolute;
701}
702[slides-strip-link]:focus-visible {
703 outline: none;
704}
705[slides-strip-link]:focus-visible::after {
706 outline: 2px solid var(--rst-accent);
707 outline-offset: 2px;
708}
709/* The number said, the slide's label and "Current slide" are for a
710 screen reader: the gutter shows the one, the picture the next and
711 the outline the last. Visually hidden the way rst-sr-only is, kept
712 in the link's name; the label is the link's title too, the tooltip. */
713[slides-strip-number-said],
714[slides-strip-label],
715[slides-strip-talk],
716[slides-strip-current] {
717 block-size: 1px;
718 clip-path: inset(50%);
719 inline-size: 1px;
720 overflow: hidden;
721 position: absolute;
722 white-space: nowrap;
723}
724[slides-strip-item]:not([data-current="true"]) [slides-strip-current] {
725 display: none;
726}
727
728/* What is in the talk, and a slide's presses (steps and presenter spec
729 §4), drawn by the server and kept by strip.mjs. The count, small and
730 muted on the picture's bottom end corner (the item's padding plus
731 4px), clear of the ⋮ at the top and the faces at the start; it is in
732 the link's name too. Not drawn when empty: a slide without steps
733 shows nothing new. */
734[slides-strip-presses] {
735 background: var(--slides-strip-menu-ground);
736 border-radius: var(--rst-radius-sm);
737 bottom: 8px;
738 color: var(--rst-text-muted);
739 font-size: var(--slides-fs-strip-presses);
740 font-variant-numeric: tabular-nums;
741 line-height: 1.5;
742 padding: 0 var(--rst-sp-1);
743 pointer-events: none;
744 position: absolute;
745 right: calc(var(--rst-sp-2) + 4px);
746 white-space: nowrap;
747}
748[slides-strip-presses]:empty {
749 display: none;
750}
751/* Full version only: a dashed edge round the picture, the current
752 slide's accent ring dashed too; the words are said after the title. */
753[slides-strip-item][data-talk="full"] > [slides-thumb] {
754 outline: 1px dashed var(--rst-text-muted);
755 outline-offset: 2px;
756}
757[slides-strip-item][data-talk="full"][data-current="true"] > [slides-thumb] {
758 outline: 2px dashed var(--rst-accent);
759}
760/* Parked: the item collapses, in its place, to a slim bar holding its
761 title beside its number, with no picture and no count; Parked is said
762 after the title. The current one keeps the accent ring, on the bar. */
763[slides-strip-item][data-talk="parked"] {
764 align-items: center;
765}
766[slides-strip-item][data-talk="parked"] > [slides-thumb],
767[slides-strip-item][data-talk="parked"] [slides-strip-presses] {
768 display: none;
769}
770[slides-strip-item][data-talk="parked"] > [slides-strip-link] {
771 align-items: center;
772 column-gap: var(--rst-sp-2);
773 display: grid;
774 grid-column: 1 / -1;
775 grid-template-columns: var(--slides-strip-gutter) minmax(0, 1fr);
776}
777[slides-strip-item][data-talk="parked"] [slides-strip-label] {
778 block-size: auto;
779 border: 1px dashed var(--rst-line);
780 border-radius: var(--slides-radius-thumb);
781 box-sizing: border-box;
782 clip-path: none;
783 color: var(--rst-text-muted);
784 font-size: var(--rst-fs-xs);
785 inline-size: auto;
786 line-height: 1.5;
787 overflow: hidden;
788 padding-block: var(--rst-sp-1);
789 /* spacing-allow: the end is the ⋮ button's room, so the title never runs under it */
790 padding-inline: var(--rst-sp-2) 32px;
791 position: static;
792 text-overflow: ellipsis;
793}
794[slides-strip-item][data-talk="parked"][data-current="true"] [slides-strip-label] {
795 outline: 2px solid var(--rst-accent);
796 outline-offset: 2px;
797}
798[slides-strip-item][data-talk="parked"] [slides-strip-menu] {
799 top: 50%;
800 transform: translateY(-50%);
801}
802
803/* ── The stage ───────────────────────────────────────────────────── */
804
805[slides-stage-pane] {
806 /* The pane's lengths the desktop slide's room is made of, named
807 once so the notes card can be the slide's width (the desk's rules,
808 below): the gap between the pane's rows, the stage bar's row in
809 Desktop view (estilo's segmented control, 28px), and the stage's
810 own padding round the slide. That padding is the stage's
811 geometry, not the page's spacing: the selection's handles sit in
812 it, the presses control under the slide is placed from it
813 (play-through.mjs), and moved to 12px or 16px it changes the
814 slide's pixels when a late editor mounts
815 (TestFontALateEditorMovesNothing). Its two uses say so. */
816 --slides-stage-pane-gap: var(--rst-sp-3);
817 --slides-stage-bar-block-size: 28px;
818 --slides-stage-inset: 14px;
819 display: grid;
820 gap: var(--slides-stage-pane-gap);
821 grid-area: stage;
822 min-width: 0;
823}
824[slides-stage] {
825 overflow: auto;
826}
827/* The slide lying on the desk: a hairline edge, a contact shadow and a
828 short soft one, Docs' paper. The stage's own padding (below) is the
829 room the selection outline and the canvas handles take. The phone
830 frame lies on the desk with the same shadow. */
831[slides-stage-pane] {
832 --slides-paper-shadow:
833 0 0 0 1px rgb(40 28 12 / 0.06),
834 0 1px 2px rgb(40 28 12 / 0.10),
835 0 12px 32px -16px rgb(40 28 12 / 0.35);
836}
837[slides-stage] > [slides-slide] {
838 border-radius: var(--slides-radius-paper);
839 box-shadow: var(--slides-paper-shadow);
840}
841/* ── The notes card (spec §5; the quieter editor, §6.2) ─────────────
842
843 A card at the foot of the stage pane, the pane's last child in the
844 flow, so the stages give up its height by layout. Quiet: a hairline
845 frame on the surface, no shadow and no heading (the field's
846 placeholder names it). Its height is --slides-notes-block-size,
847 which fixtures/notes-card.mjs keeps between two lines and half the
848 desk; the card is that box exactly: its hairline (1 + 1) and padding
849 (12 + 12) around the body, the only part that scrolls —
850 notes-card.mjs's HEAD_PX is the sum of all but the body. The × sits
851 in the padding's top end corner, over the body's end padding, which
852 keeps the notes' first line clear of it. In Desktop view the card is
853 the slide's width and lines up with its edges (the desk's rules,
854 below); in Phone and Both it is inset from the pane's edges as the
855 frames' room is. The notes are set in the chrome's face, larger than
856 a form's text, because they are written to be read aloud. Closed,
857 the card is not drawn and [slides-notes-open], the tab, sits in the
858 pane's bottom start corner in a strip the pane keeps for it. */
859[slides-stage-pane] {
860 position: relative;
861}
862[slides-notes-pane] {
863 background: var(--rst-surface);
864 block-size: var(--slides-notes-block-size, 144px);
865 border: 1px solid var(--rst-line);
866 border-radius: var(--rst-radius-sm);
867 box-sizing: border-box;
868 display: grid;
869 grid-template-rows: minmax(0, 1fr);
870 /* spacing-allow: estilo's inspector inset (desk.css), so the card lines up with the floating inspector */
871 margin: 0 var(--estilo-inspector-inset, 12px) var(--estilo-inspector-inset, 12px);
872 min-block-size: 0;
873 padding: var(--rst-sp-3);
874 position: relative;
875}
876/* In Desktop view the slide is as wide as the stage less its padding
877 (narrower than the desk, below 1100px); the card is inset the same. */
878[slides-stage-pane][data-view="desktop"] > [slides-notes-pane] {
879 margin-inline: var(--slides-stage-inset); /* spacing-allow: the stage's own inset, so the card lines up with the slide's edges */
880}
881[slides-notes-pane]:is([hidden], [data-state="closed"]) {
882 display: none;
883}
884[slides-notes-close] {
885 align-items: center;
886 background: none;
887 block-size: 28px;
888 border: 0;
889 border-radius: var(--rst-radius-pill);
890 color: var(--rst-text-muted);
891 cursor: pointer;
892 display: inline-flex;
893 inline-size: 28px;
894 inset-block-start: 6px;
895 inset-inline-end: 6px;
896 justify-content: center;
897 padding: 0;
898 position: absolute;
899 /* Over the top edge's target where the two meet. */
900 z-index: 2;
901}
902[slides-notes-close] svg {
903 block-size: 16px;
904 inline-size: 16px;
905}
906[slides-notes-close]:hover {
907 background: var(--rst-surface-2);
908 color: var(--rst-text);
909}
910/* The body scrolls; its padding, given back by its margin, is the room
911 the focused notes' outline (outline-offset 3px) needs inside it. Its
912 end padding is the ×'s column. */
913[slides-notes-body] {
914 margin: -5px; /* spacing-allow: gives back the padding below, the focus outline's room */
915 min-block-size: 0;
916 overflow-y: auto;
917 padding: 5px calc(5px + 28px) 5px 5px; /* spacing-allow: the notes' focus outline (offset 3px) and, at the end, the ×'s 28px column */
918 scrollbar-width: thin;
919}
920[slides-notes] {
921 font-size: var(--slides-fs-notes);
922 line-height: 1.55;
923}
924/* The top edge: a 24px strip (the target size, WCAG 2.5.8) centred on
925 the card's top border. Placed against the card's padding box, it runs
926 from 12px above it — the pane's 12px gap over the card, so never over
927 the stages or a frame's edge — to 12px into it, where the card's
928 12px padding ends and the notes' first line begins. A short grip on
929 it says it moves, drawn only while the pointer is over the edge, the
930 edge has focus, or it is being dragged. */
931[slides-notes-resize] {
932 block-size: 24px;
933 cursor: ns-resize;
934 inset-block-start: -12px;
935 inset-inline: 12px;
936 position: absolute;
937 touch-action: none;
938 z-index: 1;
939}
940[slides-notes-resize]::after {
941 background: var(--rst-line-strong);
942 block-size: 4px;
943 border-radius: var(--slides-radius-glyph);
944 content: "";
945 inline-size: 36px;
946 inset-block-start: 10px;
947 inset-inline-start: calc(50% - 18px);
948 opacity: 0;
949 position: absolute;
950}
951[slides-notes-resize]:is(:hover, :focus, :active)::after {
952 opacity: 1;
953}
954[slides-notes-resize]:hover::after {
955 background: var(--rst-text-muted);
956}
957:is([slides-notes-close], [slides-notes-resize], [slides-notes-open]):focus-visible {
958 outline: 2px solid var(--rst-accent);
959 outline-offset: 2px;
960}
961[slides-notes-resize]:focus-visible::after {
962 background: var(--rst-accent);
963}
964/* Closed: the tab, a small text button in the pane's bottom start
965 corner that says Notes, or Notes and the slide's count of words
966 (the server's first paint, then notes-card.mjs's refresh). Only while
967 the card is closed, and never when there is no slide (the card is
968 hidden then). The pane keeps a strip as tall as the tab and its
969 inset, so the stage never runs under it. */
970[slides-stage-pane] {
971 --slides-notes-tab-block-size: 24px;
972}
973[slides-notes-open] {
974 display: none;
975}
976[slides-stage-pane]:has(> [slides-notes-pane][data-state="closed"]:not([hidden])) {
977 /* spacing-allow: the closed notes' tab and its inset, estilo's, so the stage never runs under it */
978 padding-block-end: calc(var(--slides-notes-tab-block-size) + var(--estilo-inspector-inset, 12px));
979}
980[slides-stage-pane]:has(> [slides-notes-pane][data-state="closed"]:not([hidden])) > [slides-notes-open] {
981 align-items: center;
982 background: var(--rst-surface);
983 block-size: var(--slides-notes-tab-block-size);
984 border: 1px solid var(--rst-line);
985 border-radius: var(--rst-radius-sm);
986 box-sizing: border-box;
987 color: var(--rst-text-muted);
988 cursor: pointer;
989 display: inline-flex;
990 font: inherit;
991 font-size: var(--rst-fs-sm);
992 inset-block-end: var(--estilo-inspector-inset, 12px);
993 inset-inline-start: var(--estilo-inspector-inset, 12px);
994 line-height: 1;
995 padding: 0 var(--rst-sp-2);
996 position: absolute;
997 white-space: nowrap;
998 z-index: 2;
999}
1000[slides-notes-open]:hover {
1001 background: var(--rst-surface-2);
1002 color: var(--rst-text);
1003}
1004[slides-notes] p {
1005 margin: 0;
1006}
1007[slides-notes] p + p {
1008 margin-block-start: var(--rst-sp-3);
1009}
1010
1011/* ProseMirror inside a block. The editable node IS the block element
1012 (or the blockquote / code inside it), so the block's own styling
1013 from slides.css still applies; these rules only give the paragraphs
1014 ProseMirror draws the same shape the renderer's had, and make focus
1015 visible on a surface that has no border of its own. */
1016[slides-editor] .ProseMirror {
1017 outline: none;
1018 white-space: pre-wrap;
1019 word-wrap: break-word;
1020}
1021/* A code block's editable node is its <code>, which is inline until
1022 told otherwise. Only that one: the others are block elements already,
1023 and a list (flex, spaced by its gap) or a table cell made a block
1024 would be laid out differently once bound than the slide was shown. */
1025[slides-editor] code.ProseMirror {
1026 display: block;
1027}
1028[slides-editor] .ProseMirror:focus-visible,
1029[slides-editor] .ProseMirror.ProseMirror-focused {
1030 outline: 2px solid var(--rst-accent);
1031 outline-offset: 3px;
1032 border-radius: var(--slides-radius-edit-ring);
1033}
1034[slides-editor] .ProseMirror > * {
1035 margin: 0;
1036}
1037[slides-editor] .ProseMirror > * + * {
1038 margin-block-start: 0.6em; /* spacing-allow: a text block's paragraph spacing on the slide, slides.css's p + p, in the slide's own em (canvas) */
1039}
1040/* The lines the renderer joins with <br> (a heading's, a cell's) and a
1041 list's items, which its flex gap spaces, take no margin: ProseMirror
1042 draws each as an element of its own, and the 0.6em above is a text
1043 block's paragraph spacing. The heading and the list ARE the editable
1044 node (stage.mjs's mountTarget), so they match on the element itself;
1045 code's editable node is the <code> inside it. */
1046[slides-editor] :is([data-block="heading"], [data-block="list"], th, td).ProseMirror > * + *,
1047[slides-editor] [data-block="code"] .ProseMirror > * + * {
1048 margin-block-start: 0;
1049}
1050/* The notes are the chrome's text, not a slide's: their paragraphs are
1051 a step apart, bound or not ([slides-notes] p + p, above). */
1052[slides-editor] [slides-notes].ProseMirror > * + * {
1053 margin-block-start: var(--rst-sp-3);
1054}
1055
1056/* The server draws the stage's text in ProseMirror's own markup
1057 (render/editing.go) so that the editor binding to a slide already in
1058 view moves nothing (Paul, 2026-10-26: a layout that moves after the
1059 page is shown is a flash too; the font gate shows the slide before a
1060 late editor has mounted). What the node ProseMirror makes editable
1061 gets — from ProseMirror (white-space, wrapping) and from the
1062 browser's own stylesheet for contenteditable (line-break:
1063 after-white-space, which places the line breaks after trailing
1064 spaces) — the server's markup gets before it is, on the same
1065 elements, and a code block's <code> is a block. Nothing else differs:
1066 TestFontALateEditorMovesNothing compares every computed property's
1067 effect, pixel for pixel. */
1068[slides-editor] [slides-stage] :is(
1069 [slides-block][data-block="heading"],
1070 [slides-block][data-block="text"],
1071 [slides-block][data-block="list"],
1072 [slides-block][data-block="quote"] blockquote,
1073 [slides-block][data-block="code"] > code,
1074 [slides-block][data-block="table"] :is(th, td)
1075) {
1076 white-space: pre-wrap;
1077 word-wrap: break-word;
1078 -webkit-line-break: after-white-space;
1079 line-break: after-white-space;
1080}
1081[slides-editor] [slides-stage] [slides-block][data-block="code"] > code {
1082 display: block;
1083}
1084
1085/* ── The inspector ───────────────────────────────────────────────── */
1086
1087/* The inspector (spec §4): estilo's card ([estilo-card]: surface,
1088 rim, radius, shadow, 12px padding; [estilo-inspector]: 248px, 13px
1089 type, scrolls inside itself). data-state="closed" (the
1090 slides-inspector cookie, then Format) hides it at every width:
1091 estilo's own rule. Below 1100px it is in the flow under the stage,
1092 full width and with no shadow; from 1100px it floats over the desk's
1093 top end corner (the end of this file). Shown as a block holding the
1094 three forms, each a column of estilo's labelled groups
1095 ([estilo-inspector-group], 14px apart). The card's backdrop
1096 (estilo-card's ::before) is placed against the card and stays behind
1097 its content. */
1098[slides-inspector] {
1099 grid-area: inspector;
1100 inline-size: auto;
1101 isolation: isolate;
1102 min-width: 0;
1103 position: relative;
1104}
1105[slides-inspector][data-state="open"] {
1106 display: block;
1107}
1108@media (max-width: 1099.98px) {
1109 [slides-inspector] {
1110 box-shadow: none;
1111 }
1112}
1113/* What the card shows (spec §4.1) is the root's data-inspect alone,
1114 which fixtures/inspect.mjs keeps to this person's selection: "box",
1115 the Block form; "slide", the Slide form; "notes", the Block form's
1116 Text group and nothing else of it (the marks format the notes too).
1117 A deck with no slides has no slide to show the options of: there the
1118 card shows no form (the deck's own are the Deck settings dialog's,
1119 spec §8). The bundle never sets hidden on a form; it only fills them, and shows
1120 and hides the fields inside. */
1121[slides-editor]:not([data-inspect="box"], [data-inspect="notes"]) [slides-inspector] [data-section="block"],
1122[slides-editor]:not([data-inspect="slide"]) [slides-inspector] [data-section="slide"],
1123[slides-editor]:not(:has([slides-strip-item][data-slide-id])) [slides-inspector] [data-section="slide"],
1124[slides-editor][data-inspect="notes"] [slides-inspector] [data-section="block"] > :not([data-group="text"]) {
1125 display: none;
1126}
1127/* A box's Text group is for the kinds with text to put a caret in
1128 (stage.mjs binds an editor to these and to a table's cells), as the
1129 pill was; fillBlock writes the selected box's type on the form. */
1130[slides-editor][data-inspect="box"] [slides-inspector] [data-section="block"]:not([data-block-type="heading"], [data-block-type="text"], [data-block-type="list"], [data-block-type="quote"], [data-block-type="code"], [data-block-type="table"]) > [data-group="text"] {
1131 display: none;
1132}
1133/* The forms: a column of groups, a step apart, with no box of their
1134 own. The Deck's is the Deck settings dialog's: a column of fields,
1135 the same step apart. */
1136[slides-inspector-form][rst-form] {
1137 gap: var(--rst-sp-3);
1138 margin: 0;
1139 max-width: none;
1140 padding: 0;
1141}
1142/* Inside a group every field is a row of its own; estilo lays the
1143 group out as a wrapping row, so each direct child takes the whole
1144 width. */
1145[slides-inspector] [estilo-inspector-group] > :not([estilo-inspector-label]) {
1146 flex: 1 1 100%;
1147 min-inline-size: 0;
1148}
1149[slides-inspector-form] [rst-field],
1150[slides-inspector-form] [rst-field-range],
1151[slides-inspector-form] [rst-field-row],
1152[slides-inspector-form] p,
1153[slides-inspector-actions] {
1154 margin: 0;
1155}
1156[slides-inspector-form] [rst-field] {
1157 display: flex;
1158 flex-direction: column;
1159 gap: var(--rst-sp-1);
1160}
1161[slides-inspector-form] [rst-field-label],
1162[slides-inspector-form] legend {
1163 color: var(--rst-text-muted);
1164 font-size: var(--rst-fs-xs);
1165 font-weight: 500;
1166}
1167[slides-inspector-form] [rst-field-hint] {
1168 font-size: var(--rst-fs-xs);
1169 line-height: 1.35;
1170 margin: 0;
1171}
1172/* The fields take estilo's inspector measure (desk.css: 28px, 8px
1173 corners, 13px); a colour well and a file input are drawn here. */
1174[slides-inspector-form] [rst-input] {
1175 inline-size: 100%;
1176}
1177[slides-inspector-form] select[rst-input] {
1178 padding-block: 0;
1179}
1180/* Deck settings' selects are out of estilo's card, which gives the
1181 card's their 28px (desk.css): the same here, over the 24px target. */
1182[slides-deck-dialog] select[rst-input] {
1183 block-size: 28px;
1184}
1185[slides-inspector-form] [rst-input][type="color"] {
1186 block-size: 28px;
1187 border-radius: var(--rst-radius-sm);
1188 padding: 2px; /* spacing-allow: the colour well's ring inside its 28px box */
1189}
1190[slides-inspector-form] [rst-input][type="file"] {
1191 font-size: var(--rst-fs-xs);
1192}
1193[slides-inspector-form] [rst-field-row] {
1194 flex-wrap: nowrap;
1195 gap: var(--rst-sp-2);
1196}
1197[slides-inspector-form] [rst-field-row] > [rst-field] {
1198 flex: 1 1 0;
1199 min-inline-size: 0;
1200}
1201/* A segmented control with its label: the legend over the segments. */
1202[slides-seg-field] {
1203 border: 0;
1204 margin: 0;
1205 min-inline-size: 0;
1206 padding: 0;
1207}
1208[slides-seg-field] > legend {
1209 margin-block-end: var(--rst-sp-1);
1210 padding: 0;
1211}
1212/* Worded segments (Level, Size, Fit) size to their words, with room
1213 inside each: estilo shares the row out equally and pads none, and
1214 "Subheading" touched its edges. The look stays estilo's. */
1215[slides-seg-field] [estilo-seg-item] {
1216 flex: 1 1 auto;
1217 padding-inline: var(--rst-sp-2);
1218 white-space: nowrap;
1219}
1220/* The card at rest (spec §3.1, fixtures/layout-pick.mjs): the slide's
1221 layout as eight pictures, four across. Each is a label round its
1222 radio (the state, not a thing to see, as in estilo's segments) and
1223 its drawing. Lit: estilo's selected tint and a complete 2px ring, so
1224 colour is not the only sign; focus is an outline outside it. */
1225[slides-layout-pick] {
1226 border: 0;
1227 display: grid;
1228 gap: var(--rst-sp-1);
1229 grid-template-columns: repeat(4, minmax(0, 1fr));
1230 margin: 0;
1231 min-inline-size: 0;
1232 padding: 0;
1233}
1234[slides-layout-pick-item] {
1235 align-items: center;
1236 border-radius: var(--rst-radius-sm);
1237 cursor: pointer;
1238 display: grid;
1239 justify-items: center;
1240 min-block-size: 24px;
1241 padding: var(--rst-sp-1);
1242 position: relative;
1243}
1244[slides-layout-pick-item] > input {
1245 cursor: inherit;
1246 inset: 0;
1247 margin: 0;
1248 opacity: 0;
1249 position: absolute;
1250}
1251[slides-layout-pick-item]:hover {
1252 background: var(--rst-surface-2);
1253}
1254[slides-layout-pick-item]:has(input:checked) {
1255 background: var(--rst-accent-soft);
1256 box-shadow: inset 0 0 0 2px var(--rst-accent);
1257}
1258[slides-layout-pick-item]:has(input:focus-visible) {
1259 outline: 2px solid var(--rst-accent);
1260 outline-offset: 1px;
1261}
1262/* The picture a question is asking about (layout-pick.mjs), while the
1263 lit one is still the slide's own: a dashed outline in the neutral
1264 line colour (its strong step, which keeps 3:1 against the card),
1265 apart from the lit ring by its style as well as its colour, and gone
1266 once the question is answered or withdraws. */
1267[slides-layout-pick-item][data-asked] {
1268 outline: 2px dashed var(--rst-line-strong);
1269 outline-offset: 1px;
1270}
1271[slides-pick-glyph] {
1272 display: block;
1273 inline-size: 100%;
1274 max-inline-size: 48px;
1275}
1276[slides-pick-glyph] svg {
1277 block-size: auto;
1278 display: block;
1279 inline-size: 100%;
1280}
1281@media (forced-colors: active) {
1282 [slides-layout-pick-item]:has(input:checked) {
1283 outline: 2px solid Highlight;
1284 outline-offset: -2px;
1285 }
1286 [slides-layout-pick-item]:has(input:focus-visible) {
1287 outline: 2px solid Highlight;
1288 outline-offset: 2px;
1289 }
1290 [slides-layout-pick-item][data-asked] {
1291 outline: 2px dashed CanvasText;
1292 outline-offset: 2px;
1293 }
1294}
1295/* Background and Transition: quiet rows, a name and a chevron, each
1296 opening its popover. Each row is the anchor its popover opens
1297 under, end edges aligned, flipped above or to the other side where
1298 the window has no room (and in the middle of the window where the
1299 engine cannot anchor). */
1300[slides-slide-rows] {
1301 display: grid;
1302 gap: var(--rst-sp-1);
1303}
1304[slides-slide-row],
1305[slides-card-row] {
1306 align-items: center;
1307 background: none;
1308 border: 0;
1309 border-radius: var(--rst-radius-sm);
1310 color: var(--rst-text);
1311 cursor: pointer;
1312 display: flex;
1313 font: inherit;
1314 font-size: var(--rst-fs-sm);
1315 justify-content: space-between;
1316 min-block-size: 28px;
1317 padding: 0 var(--rst-sp-2);
1318}
1319[slides-slide-row]:is(:hover, :focus-visible),
1320[slides-card-row]:is(:hover, :focus-visible) {
1321 background: var(--rst-surface-2);
1322}
1323[slides-slide-row]:focus-visible,
1324[slides-card-row]:focus-visible {
1325 outline: 2px solid var(--rst-accent);
1326 outline-offset: -2px;
1327}
1328[slides-slide-row] .icon,
1329[slides-card-row] .icon {
1330 block-size: 16px;
1331 color: var(--rst-text-muted);
1332 inline-size: 16px;
1333}
1334[slides-slide-row][popovertarget="slides-pop-background"] {
1335 anchor-name: --slides-row-background;
1336}
1337[slides-slide-row][popovertarget="slides-pop-transition"] {
1338 anchor-name: --slides-row-transition;
1339}
1340[slides-slide-pop] {
1341 background: var(--rst-surface);
1342 border: 0;
1343 border-radius: var(--slides-radius-panel);
1344 box-shadow:
1345 0 0 0 1px light-dark(rgb(40 28 12 / 0.1), rgb(255 255 255 / 0.1)),
1346 0 10px 20px -8px rgb(40 28 12 / 0.2),
1347 0 28px 56px -20px rgb(40 28 12 / 0.35);
1348 box-sizing: border-box;
1349 color: var(--rst-text);
1350 gap: var(--rst-sp-3);
1351 inline-size: min(15rem, calc(100vw - 16px));
1352 padding: var(--rst-sp-3);
1353}
1354[slides-slide-pop]:popover-open {
1355 display: grid;
1356}
1357@supports (position-area: bottom) {
1358 [slides-slide-pop] {
1359 inset: auto;
1360 /* Centred under its row, so on a desktop it hangs inside the
1361 card's side edges (it is a little wider than the row, less
1362 than the row and the card's padding); in a narrow window it is
1363 shifted to stay inside it. */
1364 justify-self: anchor-center;
1365 margin: var(--rst-sp-1) 0;
1366 position-area: bottom;
1367 position-try-fallbacks: flip-block;
1368 }
1369 #slides-pop-background {
1370 position-anchor: --slides-row-background;
1371 }
1372 #slides-pop-transition {
1373 position-anchor: --slides-row-transition;
1374 }
1375 #slides-pop-after {
1376 position-anchor: --slides-row-after;
1377 }
1378}
1379[slides-inspector] [estilo-seg-item] {
1380 font-size: var(--rst-fs-sm);
1381}
1382/* How a box arrives (steps and presenter spec §4,
1383 fixtures/inspector-steps.mjs): estilo's segments, sharing the row
1384 equally. A list's three do not fit the card's width on one line in
1385 the card's type, so a segment's words wrap inside it, centred, and
1386 the row grows to the tallest; never clipped, never smaller type. On
1387 a box that is not a list Item by item is hidden, and On a press is
1388 the last segment, its end corners rounded. After… is a quiet row
1389 under them, the anchor of its popover, whose rows are the slide's
1390 presses. */
1391[slides-appears] [estilo-seg-item] {
1392 block-size: auto;
1393 line-height: 1.2;
1394 padding: var(--rst-sp-1);
1395 text-align: center;
1396 text-wrap: balance;
1397}
1398[slides-appears] [estilo-seg-item]:nth-last-child(1 of [estilo-seg-item]:not([hidden])) {
1399 border-end-end-radius: var(--rst-radius-sm);
1400 border-start-end-radius: var(--rst-radius-sm);
1401}
1402[slides-appears-after] {
1403 anchor-name: --slides-row-after;
1404 margin-block-start: var(--rst-sp-1);
1405}
1406[slides-after-pop]:popover-open {
1407 gap: var(--rst-sp-1);
1408 padding: var(--rst-sp-2);
1409}
1410[slides-inspector] [estilo-seg-item] .icon {
1411 block-size: 16px;
1412 inline-size: 16px;
1413}
1414/* Position and size (the quieter editor §4.3): a closed group, its
1415 summary a quiet row (the name and a chevron that turns when it is
1416 open), and inside it the four numbers, two by two. A quiet row is
1417 also the phone layer's Reset to desktop: no outlined pill in the
1418 card (§3). */
1419[slides-card-row] {
1420 inline-size: 100%;
1421 box-sizing: border-box;
1422}
1423summary[slides-card-row] {
1424 list-style: none;
1425}
1426summary[slides-card-row]::-webkit-details-marker {
1427 display: none;
1428}
1429[slides-place][open] > summary .icon {
1430 transform: rotate(180deg);
1431}
1432[slides-box-fields] {
1433 border: 0;
1434 display: grid;
1435 gap: var(--rst-sp-2);
1436 grid-template-columns: 1fr 1fr;
1437 margin: var(--rst-sp-2) 0 0;
1438 min-inline-size: 0;
1439 padding: 0;
1440}
1441/* The numbers' unit, in sight: one quiet line over the four fields,
1442 which is also their group's name. */
1443[slides-box-fields] > legend {
1444 font-weight: 400;
1445 line-height: 1.35;
1446 margin-block-end: var(--rst-sp-2);
1447 padding: 0;
1448}
1449[slides-phone-badge] > [slides-card-row] {
1450 inline-size: auto;
1451}
1452/* A scene block's options (scenes and clips spec §5; scene-card.mjs):
1453 a column of rows a step apart. Its words are a plain fieldset of
1454 fields; its two panels sit under the segments that choose them. The
1455 data's table scrolls sideways inside the card rather than widening
1456 it, each cell a short field; the JSON and the code are plain text
1457 fields in the system's monospace, the card's smallest type, taller
1458 on asking. */
1459[slides-scene-body],
1460[slides-scene-data],
1461[slides-scene-code],
1462[slides-scene-table],
1463[slides-scene-stale],
1464[slides-scene-words] {
1465 display: grid;
1466 gap: var(--rst-sp-2);
1467 min-inline-size: 0;
1468}
1469[slides-scene-words] {
1470 border: 0;
1471 margin: 0;
1472 padding: 0;
1473}
1474[slides-scene-name] {
1475 font-weight: 600;
1476 overflow-wrap: anywhere;
1477}
1478[slides-scene-table-scroll] {
1479 overflow-x: auto;
1480}
1481[slides-scene-table] table {
1482 border-collapse: collapse;
1483 inline-size: 100%;
1484}
1485[slides-scene-table] th {
1486 color: var(--rst-text-muted);
1487 font-size: var(--rst-fs-xs);
1488 font-weight: 500;
1489 padding: 0 var(--rst-sp-1) var(--rst-sp-1) 0;
1490 text-align: start;
1491 white-space: nowrap;
1492}
1493[slides-scene-table] td {
1494 padding: 0 var(--rst-sp-1) var(--rst-sp-1) 0;
1495}
1496[slides-scene-table] td [rst-input] {
1497 box-sizing: border-box;
1498 font-size: var(--rst-fs-xs);
1499 inline-size: 100%;
1500 min-inline-size: var(--slides-scene-cell-min);
1501}
1502[slides-scene-remove] {
1503 align-items: center;
1504 background: none;
1505 border: 0;
1506 border-radius: var(--rst-radius-sm);
1507 color: var(--rst-text-muted);
1508 cursor: pointer;
1509 display: inline-flex;
1510 justify-content: center;
1511 min-block-size: var(--slides-scene-remove-size);
1512 min-inline-size: var(--slides-scene-remove-size);
1513 padding: 0;
1514}
1515[slides-scene-remove]:is(:hover, :focus-visible) {
1516 background: var(--rst-surface-2);
1517 color: var(--rst-text);
1518}
1519[slides-scene-remove]:focus-visible {
1520 outline: 2px solid var(--rst-accent);
1521 outline-offset: -2px;
1522}
1523[slides-scene-remove] .icon {
1524 block-size: var(--slides-scene-remove-icon);
1525 inline-size: var(--slides-scene-remove-icon);
1526}
1527[slides-scene-json] textarea,
1528[slides-scene-code] textarea {
1529 box-sizing: border-box;
1530 font-family: ui-monospace, monospace;
1531 font-size: var(--rst-fs-xs);
1532 inline-size: 100%;
1533 resize: vertical;
1534}
1535[slides-scene-invalid],
1536[slides-scene-data-big] {
1537 color: var(--rst-tone-negative-fg);
1538 font-size: var(--rst-fs-xs);
1539}
1540/* Fill and stroke: a round swatch of the colour, which opens the
1541 browser's picker (spec §3.2), not a bar. */
1542[slides-inspector-form] [rst-input][slides-swatch] {
1543 block-size: 28px;
1544 border: 1px solid var(--rst-line);
1545 border-radius: var(--slides-radius-circle);
1546 cursor: pointer;
1547 inline-size: 28px;
1548 overflow: hidden;
1549 padding: 0;
1550}
1551[slides-swatch]::-webkit-color-swatch-wrapper {
1552 padding: 0;
1553}
1554[slides-swatch]::-webkit-color-swatch {
1555 border: 0;
1556 border-radius: var(--slides-radius-circle);
1557}
1558[slides-swatch]::-moz-color-swatch {
1559 border: 0;
1560 border-radius: var(--slides-radius-circle);
1561}
1562[slides-swatch]:focus-visible {
1563 outline: 2px solid var(--rst-accent);
1564 outline-offset: 2px;
1565}
1566/* No fill (inspector-block.mjs): the card's ground struck through, as a
1567 picker shows "none", not the black a colour input shows for no value.
1568 A line, not a colour, says it. */
1569[slides-inspector-form] [rst-input][slides-swatch][data-none] {
1570 background: linear-gradient(to top right, transparent calc(50% - 1px), var(--rst-text-muted) calc(50% - 1px), var(--rst-text-muted) calc(50% + 1px), transparent calc(50% + 1px)), var(--rst-surface);
1571}
1572[slides-swatch][data-none]::-webkit-color-swatch {
1573 visibility: hidden;
1574}
1575[slides-swatch][data-none]::-moz-color-swatch {
1576 visibility: hidden;
1577}
1578/* Fill and Stroke are a swatch each, as wide as their words; Stroke
1579 width has the rest of the row, so its label stays on one line. */
1580[slides-inspector-form] [rst-field-row] > [rst-field]:has(> [slides-swatch]) {
1581 flex: 0 0 auto;
1582}
1583[slides-inspector-actions] {
1584 display: flex;
1585 flex-wrap: wrap;
1586 gap: var(--rst-sp-2);
1587}
1588[slides-inspector] [rst-btn="sm"],
1589[slides-deck-dialog] [rst-btn="sm"] {
1590 border-radius: var(--rst-radius-pill);
1591}
1592[slides-inspector-form] [rst-callout] {
1593 margin: 0;
1594}
1595/* A question in the card: its buttons clear of its words. The
1596 leave-free question's two do not fit side by side in the card's
1597 measure, so they stack, each the callout's width. */
1598[slides-inspector-form] [rst-callout-body] > [slides-inspector-actions] {
1599 gap: var(--rst-sp-2);
1600 margin-block-start: var(--rst-sp-3);
1601}
1602[slides-confirm-layout] [slides-inspector-actions] {
1603 flex-direction: column;
1604}
1605[slides-accent] {
1606 align-items: end;
1607}
1608[slides-accent] > [rst-btn] {
1609 flex: 0 0 auto;
1610}
1611[slides-phone-badge] {
1612 align-items: center;
1613 display: flex;
1614 flex-wrap: wrap;
1615 gap: var(--rst-sp-2);
1616}
1617/* Images: the block's upload status, and Deck settings' list of
1618 the ones no slide uses. The status line is text and only text —
1619 "error" is a colour ON a sentence that already says what happened,
1620 never the sentence itself (§8, WCAG 1.4.1). */
1621[slides-asset-hint] {
1622 font-size: var(--rst-fs-xs);
1623 line-height: 1.35;
1624 margin: 0;
1625}
1626[slides-asset-status]:empty {
1627 display: none;
1628}
1629[slides-asset-status] {
1630 font-size: var(--rst-fs-sm);
1631 margin: var(--rst-sp-1) 0 0;
1632}
1633[slides-asset-status][data-state="error"] {
1634 color: var(--rst-tone-negative-fg);
1635}
1636[slides-unused-assets],
1637[slides-scene-stills] {
1638 border: 0;
1639 margin: 0;
1640 padding: 0;
1641}
1642[slides-unused-assets] > legend,
1643[slides-scene-stills] > legend {
1644 margin: 0 0 var(--rst-sp-1);
1645 padding: 0;
1646}
1647/* Deck settings' scenes missing pictures (scene-card.mjs): a quiet list,
1648 each scene's name and its card's lines. */
1649[slides-scene-stills-list] {
1650 display: grid;
1651 font-size: var(--rst-fs-sm);
1652 gap: var(--rst-sp-1);
1653 list-style: none;
1654 margin: 0;
1655 padding: 0;
1656}
1657[slides-unused-none] {
1658 font-size: var(--rst-fs-sm);
1659}
1660[slides-unused-list] {
1661 display: grid;
1662 gap: var(--rst-sp-1);
1663 list-style: none;
1664 margin: 0;
1665 padding: 0;
1666}
1667[slides-unused-list] > li {
1668 align-items: center;
1669 display: flex;
1670 gap: var(--rst-sp-2);
1671 justify-content: space-between;
1672}
1673[slides-asset-name] {
1674 font-size: var(--rst-fs-sm);
1675 overflow: hidden;
1676 text-overflow: ellipsis;
1677 white-space: nowrap;
1678}
1679
1680/* View → Outline (outline.mjs): estilo's menu panel and rows, opened as
1681 a popover under the View menu's title, where outline.mjs puts it.
1682 The selected box's row has estilo's check and aria-pressed. A long
1683 label is cut rather than wrapped, so a row stays one line. */
1684[slides-outline] {
1685 inset: auto;
1686 margin: 0;
1687 position: fixed;
1688}
1689[slides-outline] [estilo-menu-label] {
1690 overflow: hidden;
1691 text-overflow: ellipsis;
1692 white-space: nowrap;
1693}
1694[slides-outline-none] {
1695 color: var(--rst-text-muted);
1696 margin: 0;
1697 padding: var(--estilo-item-padding-block) var(--estilo-item-padding-inline); /* spacing-allow: estilo's menu row padding (menu.css), so the line sits where a row's words would */
1698}
1699
1700/* The menu on a box (box-menu.mjs, the quieter editor §4): estilo's
1701 panel and rows, a manual popover placed where box-menu.mjs puts it
1702 (under the round button, or at the pointer, always inside the
1703 window). A region row is a radio row: estilo's check says which
1704 region the box is in. */
1705[slides-box-menu] {
1706 inset: auto;
1707 margin: 0;
1708 position: fixed;
1709}
1710[slides-box-menu] [estilo-menu-item][aria-checked="true"] [estilo-menu-check] {
1711 visibility: visible;
1712}
1713/* Seeing a slide's steps (play-through.mjs): "3 presses" just under the
1714 slide's bottom end corner, never over the slide, placed by the bundle
1715 in the pane's pixels; quiet, estilo's surface and line, muted words,
1716 a 24px pill (the target) that fits the stage's padding and the pane's
1717 gap. While it plays it says which press, in the same place, no wider
1718 than the slide (play-through.mjs), its words wrapping inside it.
1719 Unseen until placed, so the server's copy never shows at the pane's
1720 corner first. */
1721[slides-presses] {
1722 background: var(--rst-surface);
1723 border: 1px solid var(--rst-line);
1724 border-radius: var(--rst-radius-pill);
1725 box-sizing: border-box;
1726 color: var(--rst-text-muted);
1727 cursor: pointer;
1728 font: inherit;
1729 font-size: var(--rst-fs-xs);
1730 font-variant-numeric: tabular-nums;
1731 line-height: 1.3;
1732 max-inline-size: 18rem;
1733 min-block-size: 24px;
1734 padding: 0 var(--rst-sp-3);
1735 position: absolute;
1736 text-align: end;
1737 z-index: 5;
1738}
1739[slides-presses]:not([data-placed]) {
1740 visibility: hidden;
1741}
1742/* Below 1100px the stage is as tall as the slide, and a narrow slide
1743 wraps the playing words to two lines: the stage keeps room under the
1744 slide for them while the slide has presses, from the first paint
1745 (the server draws the control), so neither the words nor the notes
1746 card move when they change. */
1747@media (max-width: 1099px) {
1748 [slides-stage-pane]:not([data-view="phone"]):has(> [slides-presses]:not([hidden])) [slides-stage] {
1749 padding-block-end: calc(var(--slides-stage-inset) + 1.5rem); /* spacing-allow: the stage's own inset and the room for the playing words' second line, under the slide */
1750 }
1751}
1752[slides-presses]:hover {
1753 background: var(--rst-surface-2);
1754 color: var(--rst-text);
1755}
1756[slides-presses]:focus-visible {
1757 outline: 2px solid var(--rst-accent);
1758 outline-offset: 2px;
1759}
1760/* The round button on the selected box's outline: placed in the stage
1761 pane by box-menu.mjs, clear of the handles; 28px, over the 24px
1762 target, with estilo's surface and line so it reads on any slide. */
1763[slides-box-more] {
1764 align-items: center;
1765 background: var(--rst-surface);
1766 block-size: 28px;
1767 border: 1px solid var(--rst-line);
1768 border-radius: var(--slides-radius-circle);
1769 box-shadow: 0 1px 2px rgb(23 32 60 / 0.12), 0 4px 10px -4px rgb(23 32 60 / 0.25);
1770 box-sizing: border-box;
1771 color: var(--rst-text);
1772 cursor: pointer;
1773 display: inline-flex;
1774 inline-size: 28px;
1775 justify-content: center;
1776 padding: 0;
1777 position: absolute;
1778 z-index: 6;
1779}
1780[slides-box-more] .icon {
1781 block-size: 16px;
1782 inline-size: 16px;
1783}
1784[slides-box-more]:hover,
1785[slides-box-more][aria-expanded="true"] {
1786 background: var(--rst-surface-2);
1787}
1788[slides-box-more]:focus-visible {
1789 outline: 2px solid var(--rst-accent);
1790 outline-offset: 2px;
1791}
1792
1793/* ── The stage bar: the view switch ────────────────────────────── */
1794
1795[slides-stage-bar] {
1796 align-items: center;
1797 color: var(--rst-text-muted);
1798 display: grid;
1799 font-size: var(--rst-fs-sm);
1800 gap: var(--rst-sp-2) var(--rst-sp-4);
1801 /* The switch is the middle column, so it stays centred over the
1802 slide whether or not the phone line (the third) is drawn. */
1803 grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
1804}
1805[slides-stage-bar] > [slides-switcher] { grid-column: 2; }
1806[slides-stage-bar] > [slides-phone-status] {
1807 grid-column: 3;
1808 justify-self: start;
1809 min-inline-size: 0;
1810}
1811/* Narrow, the third column is too slim for the phone line (at 320px it
1812 wrapped onto four lines): in Phone view, the one view that draws it,
1813 it takes a row of its own under the switch. */
1814@media (max-width: 559px) {
1815 [slides-editor][data-view="phone"] [slides-stage-bar] > [slides-phone-status] {
1816 grid-column: 1 / -1;
1817 justify-self: center;
1818 }
1819}
1820
1821/* On a phone (spec §3.4): the slide's phone field and the box's On a
1822 phone group (the whole group, so no label is left showing) are drawn
1823 in Phone and Both view alone; the line saying the phone layout is
1824 being edited in Phone view alone (ruling R18: in Both the stage is
1825 the desktop's, and placing a box there edits the desktop layout).
1826 The server paints Desktop and the view is applied after the editor
1827 mounts, so nothing is drawn at the first paint and nothing moves at
1828 mount. */
1829[slides-editor]:not(:is([data-view="phone"], [data-view="both"])) :is([data-group="phone"], [data-phone-only]) {
1830 display: none;
1831}
1832[slides-editor]:not([data-view="phone"]) [slides-phone-editing] {
1833 display: none;
1834}
1835/* Three radios drawn as estilo's segmented control ([estilo-seg]): it
1836 styles the segments, hides each radio over its label (still focusable
1837 and arrow-key operable) and draws the checked and focused ones. What
1838 is left is the fieldset's own box (its <legend> is read, not seen;
1839 estilo rounds the first and last segment after it all the same) and
1840 the icon's size, set small enough to keep the pill compact. */
1841[slides-switcher] {
1842 flex: 0 0 auto;
1843 margin: 0;
1844 min-inline-size: 0;
1845 padding: 0;
1846 border: 0;
1847}
1848[slides-switcher] > label { min-inline-size: 36px; }
1849[slides-switcher] svg { inline-size: 16px; block-size: 16px; }
1850
1851/* ── The stages: one, or two side by side ─────────────────────────── */
1852
1853[slides-stages] {
1854 display: grid;
1855 gap: var(--rst-sp-3);
1856 min-width: 0;
1857}
1858/* Room around the slide for the selection outline and the resize
1859 handles, which sit half outside the block's edge. */
1860[slides-stage] {
1861 padding: var(--slides-stage-inset); /* spacing-allow: the stage's room round the slide, for the selection's handles and the presses control (canvas geometry) */
1862 position: relative;
1863}
1864[slides-stage-pane][data-view="both"] [slides-stages] {
1865 grid-template-columns: minmax(0, 1fr) auto;
1866}
1867@media (max-width: 899px) {
1868 [slides-stage-pane][data-view="both"] [slides-stages] {
1869 grid-template-columns: minmax(0, 1fr);
1870 }
1871}
1872
1873/* ── The phone frame (spec §6.1) ─────────────────────────────────────
1874
1875 In phone view the editable stage, and in Both the read-only preview,
1876 is a phone: a 390×844 screen, scaled as a whole by
1877 --slides-phone-scale (fixtures/phone-frame.mjs: the stages' width
1878 over 390 and, where the page does not scroll, their height over 844;
1879 never above 1) so it fits the stages both ways. zoom rather than a transform: the frame's layout box is the
1880 scaled size, so Both sits side by side, and the canvas overlay's
1881 maths (screen pixels written as CSS pixels) holds once the overlay
1882 is zoomed back to 1 (below).
1883
1884 From 1100px the desk is the window and the page never scrolls: the
1885 stages ask for the phone's own height and get what the pane can
1886 spare, and --slides-phone-room tells phone-frame.mjs that height is
1887 the phone's room. Narrower, the page scrolls and the stages are as
1888 tall as what is in them (the desktop stage over the phone, in Both):
1889 only their width bounds the phone. */
1890@media (min-width: 1100px) {
1891 [slides-stage-pane]:is([data-view="phone"], [data-view="both"]) [slides-stages] {
1892 --slides-phone-room: block;
1893 block-size: 844px;
1894 max-block-size: 100%;
1895 }
1896}
1897/* The stage's frame is nothing outside the phone view: the stage is
1898 the stages' own child as far as layout knows. */
1899[slides-stage-frame] {
1900 display: contents;
1901}
1902[slides-stage-pane][data-view="phone"] [slides-stage-frame],
1903[slides-stage-phone] {
1904 align-self: start;
1905 background: var(--slides-desk);
1906 block-size: 844px;
1907 border-radius: var(--slides-radius-phone);
1908 box-shadow: var(--slides-paper-shadow);
1909 box-sizing: border-box;
1910 inline-size: 390px;
1911 justify-self: center;
1912 zoom: var(--slides-phone-scale, 1);
1913}
1914[slides-stage-pane][data-view="phone"] [slides-stage-frame] {
1915 display: block;
1916}
1917/* The screen: the viewer's page ground, the slide placed where the
1918 viewer places it on a 390×844 phone — under the bar, the page's top
1919 padding, the viewer's row of pills and its stage's margin, with the
1920 page's own inline padding — and scrolling inside itself. The bar and
1921 the pills are desk.css's, the lengths the viewer itself reads. The
1922 editable stage's frame is its own screen; the preview's frame clips
1923 its screen to the corners. */
1924[slides-stage-pane] {
1925 --slides-phone-page-top: calc(var(--slides-page-bar-block-size) + var(--rst-sp-5) + var(--slides-pill-block-size) + var(--rst-sp-3));
1926}
1927[slides-stage-pane][data-view="phone"] [slides-stage-frame],
1928[slides-phone-screen] {
1929 overflow-x: hidden;
1930 overflow-y: auto;
1931 padding: var(--slides-phone-page-top) var(--rst-sp-4) var(--rst-sp-6); /* spacing-allow: the viewer's own top on a phone, its bar, padding and row of pills, so the slide sits where the viewer puts it */
1932 scrollbar-width: thin;
1933}
1934[slides-stage-phone] {
1935 overflow: hidden;
1936}
1937[slides-phone-screen] {
1938 background: var(--slides-desk);
1939 block-size: 844px;
1940 box-sizing: border-box;
1941 inline-size: 390px;
1942}
1943[slides-phone-screen] > [slides-slide] {
1944 border-radius: var(--slides-radius-paper);
1945 box-shadow: var(--slides-paper-shadow);
1946}
1947/* The screen is the slide's room: the stage in it is as tall as the
1948 slide, with no padding of its own (the screen's is the viewer's). */
1949[slides-stage-pane][data-view="phone"] [slides-stage] {
1950 overflow: visible;
1951 padding: 0;
1952}
1953/* The overlay and the presence marks are placed in screen pixels
1954 (canvas.mjs, presence-view.mjs). Inside the zoomed screen a CSS pixel
1955 is --slides-phone-scale screen pixels, so they are zoomed back to 1:
1956 their pixels are the screen's again, and the handles keep their
1957 24px. */
1958[slides-stage-pane][data-view="phone"] :is([slides-canvas-overlay], [slides-presence-marks], [slides-step-marks]) {
1959 zoom: calc(1 / var(--slides-phone-scale, 1));
1960}
1961[slides-stage-empty] {
1962 margin: 0;
1963}
1964
1965/* Selection: an outline on the block, and aria-selected for the
1966 reader. On a canvas slide the overlay draws over it. */
1967[slides-stage] [slides-block][data-selected] {
1968 outline: 2px solid var(--rst-accent);
1969 outline-offset: 3px;
1970}
1971/* A box with no text is a tab stop of its own (stage-focus.mjs): with
1972 focus from the keyboard it has the overlay's ring, outside the
1973 selection's. */
1974[slides-stage] [slides-block][slides-box-stop]:focus-visible {
1975 outline: 3px solid var(--rst-accent);
1976 outline-offset: 5px;
1977}
1978[slides-stage] [slides-slide]:focus {
1979 outline: none;
1980}
1981
1982/* ── The canvas overlay ──────────────────────────────────────────── */
1983
1984/* The overlay is placed over the selected block. It takes no pointer
1985 itself — the block's text underneath stays reachable — only its
1986 drag surfaces and handles do. A text block drags by its edges (four
1987 10px strips inside the border); any other block by its whole body. */
1988[slides-canvas-overlay] {
1989 box-sizing: border-box;
1990 pointer-events: none;
1991 position: absolute;
1992 z-index: 5;
1993}
1994[slides-canvas-overlay]:focus-visible {
1995 outline: 3px solid var(--rst-accent);
1996 outline-offset: 5px;
1997}
1998[slides-canvas-overlay] [slides-drag] {
1999 pointer-events: auto;
2000 position: absolute;
2001 touch-action: none;
2002}
2003[slides-canvas-overlay] [slides-drag][data-surface="body"] {
2004 cursor: move;
2005 inset: 0;
2006}
2007[slides-canvas-overlay][data-text="true"] [slides-drag][data-surface="body"] {
2008 display: none;
2009}
2010[slides-canvas-overlay]:not([data-text="true"]) [slides-drag][data-surface="edge"] {
2011 display: none;
2012}
2013[slides-canvas-overlay] [slides-drag][data-surface="edge"] {
2014 cursor: move;
2015}
2016[slides-canvas-overlay] [slides-drag][data-side="n"] { inset: 0 0 auto 0; height: 10px; }
2017[slides-canvas-overlay] [slides-drag][data-side="s"] { inset: auto 0 0 0; height: 10px; }
2018[slides-canvas-overlay] [slides-drag][data-side="w"] { inset: 0 auto 0 0; width: 10px; }
2019[slides-canvas-overlay] [slides-drag][data-side="e"] { inset: 0 0 0 auto; width: 10px; }
2020/* Eight handles, 24px square (the target minimum), a 12px visible
2021 square in the middle so the block underneath stays readable. */
2022[slides-handle] {
2023 background: none;
2024 height: 24px;
2025 pointer-events: auto;
2026 position: absolute;
2027 touch-action: none;
2028 width: 24px;
2029}
2030[slides-handle]::after {
2031 background: var(--rst-surface);
2032 border: 2px solid var(--rst-accent);
2033 border-radius: var(--slides-radius-glyph);
2034 content: "";
2035 height: 8px;
2036 left: 6px;
2037 position: absolute;
2038 top: 6px;
2039 width: 8px;
2040}
2041[slides-handle][data-handle="nw"] { left: -12px; top: -12px; cursor: nwse-resize; }
2042[slides-handle][data-handle="n"] { left: calc(50% - 12px); top: -12px; cursor: ns-resize; }
2043[slides-handle][data-handle="ne"] { right: -12px; top: -12px; cursor: nesw-resize; }
2044[slides-handle][data-handle="e"] { right: -12px; top: calc(50% - 12px); cursor: ew-resize; }
2045[slides-handle][data-handle="se"] { right: -12px; bottom: -12px; cursor: nwse-resize; }
2046[slides-handle][data-handle="s"] { left: calc(50% - 12px); bottom: -12px; cursor: ns-resize; }
2047[slides-handle][data-handle="sw"] { left: -12px; bottom: -12px; cursor: nesw-resize; }
2048[slides-handle][data-handle="w"] { left: -12px; top: calc(50% - 12px); cursor: ew-resize; }
2049
2050/* ── The strip's menu, and reordering ────────────────────────────── */
2051
2052/* The item menu sits inside the thumbnail's top-right corner, above
2053 the link's stretched box so it is pressable. A compact icon button —
2054 24px, the target minimum, with no outline — on a translucent ground,
2055 shown on the current item, on hover, while the item holds focus and
2056 while the menu is open; hidden with opacity, not display, so it stays in
2057 the tab order and focus is what reveals it. A device with no hover
2058 shows it always. A right-click on the item opens it too (strip.mjs). */
2059[slides-strip-menu] {
2060 position: absolute;
2061 right: calc(var(--rst-sp-2) + 4px);
2062 top: calc(var(--rst-sp-2) + 2px);
2063 z-index: 2;
2064}
2065[slides-strip-menu] > summary {
2066 background: var(--slides-strip-menu-ground);
2067 block-size: 24px;
2068 border-color: transparent;
2069 border-radius: var(--slides-radius-bar-item);
2070 box-shadow: none;
2071 box-sizing: border-box;
2072 color: var(--rst-text-muted);
2073 inline-size: 24px;
2074 justify-content: center;
2075 min-block-size: 0;
2076 min-inline-size: 0;
2077 opacity: 0;
2078 padding: 0;
2079}
2080[slides-strip-menu] > summary:hover,
2081[slides-strip-menu][open] > summary {
2082 background: var(--rst-surface);
2083 border-color: transparent;
2084 color: var(--rst-text);
2085}
2086[slides-strip-item][data-current="true"] [slides-strip-menu] > summary,
2087[slides-strip-item]:hover [slides-strip-menu] > summary,
2088[slides-strip-item]:focus-within [slides-strip-menu] > summary,
2089[slides-strip-menu][open] > summary {
2090 opacity: 1;
2091}
2092@media (hover: none) {
2093 [slides-strip-menu] > summary {
2094 opacity: 1;
2095 }
2096}
2097[slides-strip-item][draggable] {
2098 cursor: grab;
2099}
2100/* The item menu's two talk rows are toggle buttons (aria-pressed, as
2101 the dropdown's rows are buttons): the check after the words, so every
2102 row's words start in one line. */
2103[slides-strip-menu] [aria-pressed] {
2104 align-items: center;
2105 display: flex;
2106 gap: var(--rst-sp-2);
2107 justify-content: space-between;
2108}
2109[slides-strip-check] {
2110 block-size: 14px;
2111 flex: none;
2112 inline-size: 14px;
2113 order: 1;
2114 visibility: hidden;
2115}
2116[slides-strip-check] svg {
2117 block-size: 100%;
2118 display: block;
2119 inline-size: 100%;
2120}
2121[slides-strip-menu] [aria-pressed="true"] [slides-strip-check] {
2122 visibility: visible;
2123}
2124/* Where rastrillo makes every control a 44px touch target (tokens.css),
2125 the ⋮ keeps that target but is drawn as the 28px button it is
2126 elsewhere, in the same place: the 44px box is the summary, see-through,
2127 and the button is drawn under its icon. A 44px box covered the
2128 thumbnail's title at 320px. */
2129@media (pointer: coarse), (max-width: 40rem) {
2130 [slides-strip-menu] {
2131 right: calc(var(--rst-sp-2) - 4px);
2132 top: calc(var(--rst-sp-2) - 6px);
2133 }
2134 [slides-strip-menu] > summary,
2135 [slides-strip-menu] > summary:hover {
2136 background: none;
2137 block-size: 44px;
2138 border-color: transparent;
2139 inline-size: 44px;
2140 isolation: isolate;
2141 position: relative;
2142 }
2143 [slides-strip-menu] > summary::before {
2144 background: var(--slides-strip-menu-ground);
2145 border-radius: var(--slides-radius-bar-item);
2146 box-sizing: border-box;
2147 content: '';
2148 inset: 10px;
2149 position: absolute;
2150 z-index: -1;
2151 }
2152 [slides-strip-menu] > summary:hover::before {
2153 background: var(--rst-surface);
2154 }
2155}
2156[slides-strip-item][data-dragging] {
2157 opacity: 0.5;
2158}
2159/* The drop line: before or after the item under the pointer, on the
2160 side the strip runs — a row below 1100px, a column above it. */
2161[slides-strip-item][data-drop="before"] {
2162 box-shadow: -4px 0 0 0 var(--rst-accent);
2163}
2164[slides-strip-item][data-drop="after"] {
2165 box-shadow: 4px 0 0 0 var(--rst-accent);
2166}
2167
2168/* ── Presence (spec §3.3): who else has this deck open ──────────────
2169 Never colour alone (WCAG 2.2 1.4.1): every avatar and every mark
2170 carries the name too, in `title` and its accessible label — the
2171 colour on screen is decoration on top of that, not the message. */
2172
2173/* Up to three faces inside the thumbnail of the slide each person is
2174 on (presence-view.mjs appends them to [slides-thumb], which is
2175 positioned), at its bottom-left corner: free of the item menu at
2176 the top-right. */
2177[slides-presence-avatars] {
2178 bottom: var(--rst-sp-1);
2179 display: flex;
2180 gap: var(--rst-sp-1);
2181 left: var(--rst-sp-1);
2182 position: absolute;
2183}
2184[slides-presence-avatar],
2185[slides-presence-more] {
2186 align-items: center;
2187 background: var(--slides-presence-colour, var(--rst-text-muted));
2188 border: 2px solid var(--rst-surface);
2189 border-radius: var(--rst-radius-pill);
2190 box-sizing: border-box;
2191 color: #fff;
2192 display: flex;
2193 font-size: var(--slides-fs-avatar);
2194 font-weight: 700;
2195 height: 22px;
2196 justify-content: center;
2197 line-height: 1;
2198 width: 22px;
2199}
2200[slides-presence-more] {
2201 background: var(--rst-text-muted);
2202 font-size: var(--slides-fs-avatar-more);
2203}
2204
2205/* The outline on a block a colleague has selected, and their name in
2206 a chip above it — an overlay over the stage, positioned in JS from
2207 the block's own rectangle the way the canvas overlay is (above).
2208 Below the canvas overlay's z-index: this tab's own drag handles, if
2209 any are showing, stay reachable over another person's mark. */
2210[slides-presence-marks] {
2211 inset: 0;
2212 pointer-events: none;
2213 position: absolute;
2214 z-index: 4;
2215}
2216/* Not drawn while nobody else is on the slide. An empty overlay over
2217 the stage still changes how the browser antialiases the slide's text
2218 under it, so an editor mounting late over a slide already shown
2219 repainted every glyph a shade differently (TestFontALateEditorMovesNothing). */
2220[slides-presence-marks]:empty {
2221 display: none;
2222}
2223/* The order of a slide's presses (steps and presenter spec §4,
2224 fixtures/step-marks.mjs): a small muted number in each box's margin,
2225 its end edge a little before the box's start edge, level with the
2226 box's top (or its item's), drawn only while a box on a slide with
2227 presses is selected. On the paper's own colour, so it reads over
2228 any slide. Empty, not drawn, as the presence marks are not. */
2229[slides-step-marks] {
2230 inset: 0;
2231 pointer-events: none;
2232 position: absolute;
2233 z-index: 4;
2234}
2235[slides-step-marks]:empty {
2236 display: none;
2237}
2238[slides-step-mark] {
2239 background: var(--rst-surface);
2240 border-radius: var(--rst-radius-sm);
2241 color: var(--rst-text-muted);
2242 font-size: var(--slides-fs-step-mark);
2243 font-variant-numeric: tabular-nums;
2244 line-height: 1;
2245 padding: 2px 4px; /* spacing-allow: a press number in a box's margin on the stage, beside the box it numbers (canvas overlay) */
2246 position: absolute;
2247 transform: translateX(calc(-100% - 4px));
2248}
2249[slides-step-mark][data-rtl] {
2250 transform: translateX(4px);
2251}
2252[slides-presence-mark] {
2253 border: 2px solid var(--slides-presence-colour, var(--rst-accent));
2254 border-radius: var(--rst-radius-sm);
2255 box-sizing: border-box;
2256 position: absolute;
2257}
2258[slides-presence-chip] {
2259 background: var(--slides-presence-colour, var(--rst-accent));
2260 border-radius: var(--rst-radius-sm);
2261 color: #fff;
2262 font-size: var(--rst-fs-xs);
2263 font-weight: 600;
2264 left: -2px;
2265 max-width: calc(100% + 4px);
2266 overflow: hidden;
2267 padding: 1px 6px; /* spacing-allow: the name chip sits on the box's outline, 22px above it (canvas overlay) */
2268 pointer-events: auto;
2269 position: absolute;
2270 text-overflow: ellipsis;
2271 top: -22px;
2272 white-space: nowrap;
2273}
2274
2275/* ── The link dialog ─────────────────────────────────────────────── */
2276
2277[slides-link-dialog] {
2278 background: var(--rst-bg);
2279 border: 1px solid var(--rst-line);
2280 border-radius: var(--rst-radius);
2281 box-shadow: var(--rst-shadow-pop);
2282 color: var(--rst-text);
2283 max-width: min(28rem, calc(100vw - 2rem));
2284 padding: var(--rst-sp-4);
2285}
2286[slides-link-dialog]::backdrop {
2287 background: rgba(0, 0, 0, 0.35);
2288}
2289[slides-link-dialog] h2 {
2290 font-size: var(--rst-fs-lg);
2291 margin: 0 0 var(--rst-sp-3);
2292}
2293[slides-link-dialog] [rst-form-actions] {
2294 display: flex;
2295 flex-wrap: wrap;
2296 gap: var(--rst-sp-2);
2297 margin-top: var(--rst-sp-3);
2298}
2299
2300/* ── Three panes side by side ────────────────────────────────────── */
2301
2302/* From 1100px the page never scrolls (the editor tidied, spec §2): the
2303 editor is exactly the window, the desk takes what the bar and the
2304 font line leave, and every pane is held to the desk's height and
2305 scrolls inside itself — the strip's list, the stage when a frame does
2306 not fit, the notes, the inspector. Below 1100px the panes stack and
2307 the page scrolls, as it always has. */
2308@media (min-width: 1100px) {
2309 /* No gutter kept for a scrollbar the page will never have (as
2310 estilo's own fill shell does): it was an empty band down the
2311 window's end edge. */
2312 :root:has([slides-editor]) {
2313 scrollbar-gutter: auto;
2314 }
2315 [slides-editor] {
2316 block-size: 100dvh;
2317 grid-template-rows: auto minmax(0, 1fr);
2318 overflow: hidden;
2319 }
2320 @media (scripting: none) {
2321 [slides-editor] {
2322 grid-template-rows: auto auto minmax(0, 1fr);
2323 }
2324 }
2325 /* The strip runs the desk's full height against the start edge, from
2326 the bar down, so the desk's padding is on the end and the foot
2327 only and the strip reaches back over the foot's. Over the stage,
2328 the font status's row takes the place of the top padding: it is
2329 the room between the bar and the stage pane, kept whether or not
2330 it says anything. While the inspector card shows, the status keeps
2331 clear of it as the stage pane does. */
2332 [slides-desk] {
2333 align-items: stretch;
2334 column-gap: var(--rst-sp-4);
2335 grid-template-areas:
2336 "strip fonts"
2337 "strip stage";
2338 grid-template-columns: 212px minmax(0, 1fr);
2339 grid-template-rows: auto minmax(0, 1fr);
2340 min-block-size: 0;
2341 padding: 0 var(--rst-sp-4) var(--rst-sp-4) 0;
2342 position: relative;
2343 row-gap: 0;
2344 }
2345 [slides-desk] > [slides-fonts-status] {
2346 min-block-size: max(var(--rst-sp-4), 24px, calc(1.4em + 4px));
2347 }
2348 [slides-editor]:has([slides-inspector][data-state="open"]) [slides-desk] > [slides-fonts-status] {
2349 /* spacing-allow: clear of the floating inspector, estilo's width and inset, and a step */
2350 padding-inline-end: calc(var(--estilo-inspector-inline-size, 248px) + var(--estilo-inspector-inset, 12px) + var(--rst-sp-4));
2351 }
2352 /* The strip: a surface of its own, the bar's, with a hairline on its
2353 desk edge. The list scrolls, New slide's row at its end with it. */
2354 [slides-strip-nav] {
2355 background: var(--rst-surface);
2356 border-inline-end: 1px solid var(--rst-line);
2357 display: grid;
2358 grid-template-rows: minmax(0, 1fr);
2359 margin-block-end: calc(-1 * var(--rst-sp-4));
2360 min-block-size: 0;
2361 }
2362 [slides-strip] {
2363 align-content: start;
2364 flex-direction: column;
2365 min-block-size: 0;
2366 overflow: hidden auto;
2367 padding: var(--rst-sp-3) var(--rst-sp-2) var(--rst-sp-2);
2368 scrollbar-width: thin;
2369 }
2370 [slides-strip-item] {
2371 width: 100%;
2372 }
2373 [slides-strip-new] {
2374 align-self: stretch;
2375 padding-inline-start: calc(var(--slides-strip-gutter) + var(--rst-sp-2)); /* spacing-allow: starts where the pictures do, past the number's gutter and the item's column gap */
2376 }
2377 [slides-strip-item][data-drop="before"] {
2378 box-shadow: 0 -4px 0 0 var(--rst-accent);
2379 }
2380 [slides-strip-item][data-drop="after"] {
2381 box-shadow: 0 4px 0 0 var(--rst-accent);
2382 }
2383 /* The stage pane: its bar, the stages, and the notes card at the
2384 foot, as tall as its own height says (notes-card.mjs keeps that to
2385 half the desk at most); the stages have what is left, so a frame
2386 is never under the card. With the card closed or hidden, the
2387 stages have it all, less the strip the icon sits in. */
2388 [slides-stage-pane] {
2389 grid-template-rows: auto minmax(0, 1fr) auto;
2390 min-block-size: 0;
2391 }
2392 [slides-stage-pane]:has(> [slides-notes-pane]:is([hidden], [data-state="closed"])) {
2393 grid-template-rows: auto minmax(0, 1fr);
2394 }
2395 /* The pane is a size container (its size is the grid's, as the
2396 stage's is), so the notes card can read the room the stage has;
2397 in Desktop view the bar's row is its named height, which that
2398 room is counted from. */
2399 [slides-stage-pane] {
2400 container-type: size;
2401 }
2402 [slides-stage-pane][data-view="desktop"] {
2403 grid-template-rows: var(--slides-stage-bar-block-size) minmax(0, 1fr) auto;
2404 }
2405 [slides-stage-pane][data-view="desktop"]:has(> [slides-notes-pane]:is([hidden], [data-state="closed"])) {
2406 grid-template-rows: var(--slides-stage-bar-block-size) minmax(0, 1fr);
2407 }
2408 [slides-stages] {
2409 grid-template-rows: minmax(0, 1fr);
2410 min-block-size: 0;
2411 }
2412 [slides-stage-phone] {
2413 min-block-size: 0;
2414 }
2415 /* The desktop slide, in desktop view and in Both, fits the stage
2416 both ways: as wide as the stage where that leaves it short enough,
2417 otherwise as tall as the stage, at 16:9 either way, and centred in
2418 the room it has. Without this it took the stage's width and grew
2419 down under the notes card. The stage is a size container (its size
2420 is the grid's, never its content's, from 1100px), so the slide's
2421 width reads both its sides; inside the slide every cqw is still
2422 the slide's own, as the viewer's are. The editor's only: slides.css,
2423 the viewer and the presenter are as they were. The canvas overlay
2424 and the presence marks are placed from rects and re-placed when
2425 the stage changes size (canvas.mjs, presence-view.mjs). */
2426 [slides-stage-pane]:not([data-view="phone"]) [slides-stage]:has(> [slides-slide]) {
2427 container-type: size;
2428 display: grid;
2429 place-content: center;
2430 }
2431 [slides-stage-pane]:not([data-view="phone"]) [slides-stage] > [slides-slide] {
2432 --slides-room-inline: 100cqi;
2433 --slides-room-block: 100cqb;
2434 }
2435 /* The notes card in Desktop view is the slide's width, centred as
2436 the slide is, so its edges are the slide's (the quieter editor,
2437 spec §6.2). Its room is the stage's content box, counted from the
2438 pane's: the pane's width less the stage's padding, and its height
2439 less the bar's row, the two gaps, the card itself and its foot
2440 margin, and the stage's padding. Both then take their width from
2441 the one expression below, and cannot drift apart. In Both view
2442 the slide shares the row with the phone, and the card keeps the
2443 pane's width. */
2444 [slides-stage-pane][data-view="desktop"] > [slides-notes-pane] {
2445 --slides-room-inline: calc(100cqi - 2 * var(--slides-stage-inset));
2446 --slides-room-block: calc(100cqb - var(--slides-stage-bar-block-size) - 2 * var(--slides-stage-pane-gap) - var(--slides-notes-block-size, 144px) - var(--estilo-inspector-inset, 12px) - 2 * var(--slides-stage-inset));
2447 justify-self: center;
2448 margin-inline: 0;
2449 }
2450 [slides-stage-pane]:not([data-view="phone"]) [slides-stage] > [slides-slide],
2451 [slides-stage-pane][data-view="desktop"] > [slides-notes-pane] {
2452 inline-size: min(var(--slides-room-inline), var(--slides-room-block) * 16 / 9);
2453 }
2454 /* The inspector card floats over the desk's top end corner, Docs'
2455 inset from its edges and Docs' width; it is as tall as what it
2456 holds and stops the inset short of the desk's foot, past which it
2457 scrolls inside itself. While it shows, the stage pane keeps clear
2458 of it: the stages (so a frame is never under it, and a frame
2459 re-centres in the whole desk when it hides) and the notes card
2460 alike. phone-frame.mjs's observer on the stages hears the change.
2461 The card is a compositing layer of its own from the first paint
2462 (will-change): without it, a late editor's mount changed how
2463 Chromium layered the card, and the slide's corner nearest it was
2464 antialiased afresh, a pixel off (TestFontALateEditorMovesNothing;
2465 the card that scrolled before the Deck settings left it was a
2466 layer from the start). A transform, not opacity or a filter:
2467 those would make the card a backdrop root, and its blur would see
2468 nothing behind it. */
2469 [slides-inspector] {
2470 inline-size: var(--estilo-inspector-inline-size, 248px);
2471 inset-block-start: var(--estilo-inspector-inset, 12px);
2472 inset-inline-end: var(--estilo-inspector-inset, 12px);
2473 max-block-size: calc(100% - 2 * var(--estilo-inspector-inset, 12px));
2474 overflow-y: auto;
2475 position: absolute;
2476 will-change: transform;
2477 z-index: 3;
2478 }
2479 [slides-editor]:has([slides-inspector][data-state="open"]) [slides-stage-pane] {
2480 /* spacing-allow: clear of the floating inspector, estilo's width and inset, and a step */
2481 padding-inline-end: calc(var(--estilo-inspector-inline-size, 248px) + var(--estilo-inspector-inset, 12px) + var(--rst-sp-4));
2482 }
2483}
2484
2485/* ── Placeholders ────────────────────────────────────────────────────
2486 An empty text block on the stage says what goes in it (the catalog's
2487 slides.editor.placeholder.*, written by the renderer as the block's
2488 data-placeholder on the editor's stage only). A new slide's blocks
2489 start empty, and without this a fresh slide was a blank rectangle
2490 with nowhere to click.
2491
2492 "Empty" is read from the DOM the server and ProseMirror both draw
2493 (render/editing.go): one paragraph holding nothing but the trailing
2494 break. Pure CSS on markup the two share, so the placeholder is on
2495 screen before the editor binds and stays after, and binding moves
2496 nothing. Absolutely placed and never hit-tested: it takes no room,
2497 and a click lands on the empty line under it. Never on the phone
2498 preview, the viewer, a thumbnail or the projector, which are not
2499 served data-placeholder at all. */
2500[slides-stage] [slides-block][data-placeholder]:not([data-z]),
2501[slides-notes][data-placeholder] {
2502 position: relative;
2503}
2504[slides-stage] [slides-block][data-placeholder]:has(:only-child > br.ProseMirror-trailingBreak:only-child)::before,
2505[slides-notes][data-placeholder]:has(> :only-child > br.ProseMirror-trailingBreak:only-child)::before,
2506[slides-notes][data-placeholder]:empty::before {
2507 color: currentColor;
2508 content: attr(data-placeholder);
2509 inset: 0;
2510 /* Faint enough to read as a prompt, dark enough to read (4.5:1 on
2511 every theme's paper, WCAG 1.4.3). */
2512 opacity: 0.62;
2513 overflow: hidden;
2514 pointer-events: none;
2515 position: absolute;
2516 white-space: nowrap;
2517 text-overflow: ellipsis;
2518}
2519/* An empty block has the width of a line break: where a template sizes
2520 blocks to their content (title and quote centre them), it, and the
2521 placeholder over it, would be nothing to see or click. So an empty
2522 one keeps a placeholder's width on the stage. The server's markup and
2523 ProseMirror's are the same shape, so binding still moves nothing. */
2524[slides-stage] [slides-block][data-placeholder]:has(:only-child > br.ProseMirror-trailingBreak:only-child) {
2525 min-inline-size: min(10em, 60cqi);
2526}
2527/* A heading's placeholder sits on its first line, wherever the
2528 template aligns it; a list's sits after its marker. */
2529[slides-stage] [slides-block][data-block="list"][data-placeholder]::before {
2530 padding-inline-start: inherit;
2531}
2532[slides-stage] [slides-block][data-block="list"][data-placeholder]:has(:only-child > br.ProseMirror-trailingBreak:only-child) > li::marker {
2533 color: color-mix(in srgb, currentColor 62%, transparent);
2534}
2535
2536/* An image block with no picture yet, a clip with no video, and a
2537 follow-along code with no link yet: a dashed frame that says where
2538 one goes, on the stage only (a reader is sent no code at all,
2539 render.go's qrBlock). */
2540[slides-stage] [slides-block][data-block="image"][data-missing-asset],
2541[slides-stage] [slides-block][data-block="clip"][data-missing-asset],
2542[slides-stage] [slides-block][data-block="qr"][data-missing-qr] {
2543 min-block-size: 6em;
2544 outline: 2px dashed color-mix(in srgb, currentColor 30%, transparent);
2545 outline-offset: -2px;
2546}
2547/* A code's frame on a canvas slide is its box, and no taller. */
2548[slides-stage] [slides-slide][data-layout="canvas"] > [slides-block][data-block="qr"][data-missing-qr] {
2549 min-block-size: 0;
2550}
2551
2552/* The assistant (fixtures/assist-panel.mjs, only with SLIDES_AI=on): a
2553 manual popover hung under the header's end, so the slide it changes
2554 stays in view beside it; a sheet from the bottom on a phone. The
2555 outcome region is always rendered (it is a live region, and one that
2556 was not rendered is not heard when it changes): its lines take room
2557 only once they say something. */
2558[slides-assist] {
2559 background: var(--rst-surface);
2560 border: 0;
2561 border-radius: var(--slides-radius-assist);
2562 box-shadow:
2563 0 0 0 1px light-dark(rgb(40 28 12 / 0.1), rgb(255 255 255 / 0.1)),
2564 0 10px 20px -8px rgb(40 28 12 / 0.2),
2565 0 28px 56px -20px rgb(40 28 12 / 0.35);
2566 box-sizing: border-box;
2567 color: var(--rst-text);
2568 inline-size: min(27rem, calc(100vw - 24px));
2569 inset: 68px 16px auto auto;
2570 margin: 0;
2571 max-block-size: calc(100dvh - 84px);
2572 overflow: auto;
2573 padding: var(--rst-sp-3) var(--rst-sp-4) var(--rst-sp-4);
2574 position: fixed;
2575}
2576[slides-assist]:popover-open {
2577 display: grid;
2578 gap: var(--rst-sp-3);
2579}
2580[slides-assist-head] {
2581 align-items: center;
2582 display: flex;
2583 justify-content: space-between;
2584}
2585[slides-assist-head] h2 {
2586 align-items: center;
2587 display: flex;
2588 font-size: var(--rst-fs-lg);
2589 gap: var(--rst-sp-2);
2590 margin: 0;
2591}
2592[slides-assist-head] h2 .icon {
2593 block-size: 18px;
2594 color: var(--rst-accent);
2595 inline-size: 18px;
2596}
2597[slides-assist-close] {
2598 align-items: center;
2599 background: none;
2600 block-size: 32px;
2601 border: 0;
2602 border-radius: var(--rst-radius-pill);
2603 color: var(--rst-text-muted);
2604 cursor: pointer;
2605 display: inline-flex;
2606 inline-size: 32px;
2607 justify-content: center;
2608 margin-inline-end: calc(-1 * var(--rst-sp-2));
2609 padding: 0;
2610}
2611[slides-assist-close]:hover {
2612 background: var(--rst-surface-2);
2613 color: var(--rst-text);
2614}
2615[slides-assist-close]:focus-visible {
2616 outline: 2px solid var(--rst-accent);
2617 outline-offset: 2px;
2618}
2619[slides-assist-form] {
2620 display: grid;
2621 gap: var(--rst-sp-3);
2622 margin: 0;
2623}
2624[slides-assist-form] [rst-field] {
2625 margin: 0;
2626}
2627[slides-assist-form] textarea {
2628 min-block-size: 6.5em;
2629 resize: vertical;
2630}
2631[slides-assist-choices] {
2632 display: grid;
2633 gap: var(--rst-sp-3);
2634 grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
2635}
2636[slides-assist-choices] select {
2637 inline-size: 100%;
2638}
2639[slides-assist-privacy] {
2640 color: var(--rst-text-muted);
2641 font-size: var(--rst-fs-xs);
2642 line-height: 1.45;
2643 margin: 0;
2644}
2645[slides-assist-actions] {
2646 display: flex;
2647 justify-content: flex-end;
2648}
2649[slides-assist-ask] {
2650 gap: var(--rst-sp-2);
2651 min-block-size: 36px;
2652}
2653[slides-assist-outcome] {
2654 display: grid;
2655 gap: var(--rst-sp-1);
2656}
2657[slides-assist-outcome] > p {
2658 margin: 0;
2659}
2660[slides-assist-outcome] > p:empty {
2661 display: none;
2662}
2663[slides-assist-summary] {
2664 background: var(--rst-surface-2);
2665 border-radius: var(--estilo-float-radius);
2666 padding: var(--rst-sp-2) var(--rst-sp-3);
2667}
2668[slides-assist-note] {
2669 color: var(--rst-text-muted);
2670 font-size: var(--rst-fs-sm);
2671}
2672/* An error is said in words that say so; the colour is the second
2673 carrier, never the only one. */
2674[slides-assist-outcome][data-tone="error"] [slides-assist-note] {
2675 background: var(--rst-tone-negative-bg);
2676 border-radius: var(--estilo-float-radius);
2677 color: var(--rst-tone-negative-fg);
2678 font-weight: 600;
2679 padding: var(--rst-sp-2) var(--rst-sp-3);
2680}
2681[slides-assist-undo] {
2682 gap: var(--rst-sp-2);
2683 justify-self: start;
2684 min-block-size: 36px;
2685}
2686[slides-assist-undo][hidden] {
2687 display: none;
2688}
2689@media (max-width: 599px) {
2690 [slides-assist] {
2691 border-radius: var(--slides-radius-sheet) var(--slides-radius-sheet) 0 0;
2692 inline-size: 100vw;
2693 inset: auto 0 0 0;
2694 max-block-size: 88dvh;
2695 padding-block-end: max(var(--rst-sp-4), env(safe-area-inset-bottom));
2696 }
2697 [slides-assist-choices] {
2698 grid-template-columns: minmax(0, 1fr);
2699 }
2700}
2701