oficina / meet Public

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

Plain git — no account needed to clone.

Download

Download this file

1/* calls.css: the room and the holding screen's scripted parts. Small on
2 purpose (spec §9's three hand-written scripts get their own styling
3 as they grow); the holding screen reads from rst-* tokens so it
4 follows the theme rather than fixing its own colours. The room is the
5 exception, and says why below: it is a window of video, and what is
6 over video is one dark system whatever the theme (0.3.5's "Over the
7 picture" on the Mac). */
8
9/* The hidden attribute is how the scripts show and hide whole regions,
10 and the UA's display: none for it loses to any author rule that sets
11 display on the same element. Rather than a blanket [hidden] override
12 with !important, which is the framework gallery's own precedent, each
13 element that is both hidden and given a display of its own restores
14 it with a line of its own, and says so. */
15.calls-pickers[hidden] {
16 display: none;
17}
18
19.calls-preview {
20 width: 100%;
21 max-width: 24rem;
22 aspect-ratio: 4 / 3;
23 background: var(--rst-surface-2);
24 border: 1px solid var(--rst-line);
25 border-radius: var(--rst-radius);
26 object-fit: cover;
27}
28
29.calls-pickers {
30 display: flex;
31 flex-wrap: wrap;
32 gap: var(--rst-sp-3);
33}
34
35/* Off screen, still in the accessibility tree and still announced. */
36.calls-sr-only {
37 position: absolute;
38 inline-size: 1px;
39 block-size: 1px;
40 margin: -1px; /* spacing-allow: the visually hidden pattern's 1px box, pulled off its own edge */
41 padding: 0;
42 overflow: hidden;
43 clip-path: inset(50%);
44 white-space: nowrap;
45 border: 0;
46}
47
48.calls-status {
49 color: var(--rst-text-muted);
50 min-height: 1.2em;
51}
52
53/* Studio audio takes a line of its own below the device selects: it
54 carries a sentence of explanation, and in the pickers' flex row that
55 sentence would otherwise read as a caption to whichever select it
56 happened to land beside. flex-basis and not display, so the hidden
57 attribute still hides the row — see the note at the top of this file. */
58.calls-raw-row {
59 flex-basis: 100%;
60}
61
62.calls-raw-help {
63 margin-block: var(--rst-sp-1) 0;
64 color: var(--rst-text-muted);
65 font-size: var(--rst-fs-sm);
66 max-inline-size: 42rem;
67}
68
69/* The holding screen's toggles keep one accessible name (aria-label)
70 and move only aria-pressed, so the state is carried three ways and
71 never by colour: the word in .calls-toggle-state, the attribute a
72 screen reader reads, and a ring around the control from estilo's
73 callui.css ([estilo-call-actions] [aria-pressed='true']). */
74.calls-controls {
75 display: flex;
76 flex-wrap: wrap;
77 gap: var(--rst-sp-2);
78 margin: 0;
79}
80.calls-controls button[aria-pressed='true'] {
81 font-weight: 700;
82}
83.calls-toggle-state { font-size: 0.8em; }
84.calls-toggle-state::before {
85 content: ' ';
86}
87
88.calls-status a {
89 margin-inline-start: var(--rst-sp-1);
90}
91
92/* The device panel's own live region (a camera that would not open, a
93 microphone another app is holding). Never colour alone: the sentence
94 is the whole signal and the weight is a second cue on top of it. No
95 display of its own, so the hidden attribute still hides it — see the
96 note at the top of this file. */
97.calls-device-note {
98 color: var(--rst-text);
99 font-weight: 600;
100 flex-basis: 100%;
101 margin-block: var(--rst-sp-2) 0;
102}
103
104/* The relay warning (spec §5.3 step 1) sits under the status line in a
105 live region of its own. Never colour alone: the sentence is the whole
106 signal and the weight is a second cue on top of it. No display of its
107 own, so the hidden attribute still hides it — see the note at the top
108 of this file. */
109.calls-ice-warning {
110 color: var(--rst-text);
111 font-weight: 600;
112 margin-block: var(--rst-sp-2);
113}
114
115.calls-device-layout { display: grid; gap: var(--rst-sp-4); align-items: start; }
116/* devices.js hides #preview when the browser cannot reach a camera at
117 all, and the wrap around it is a black panel with a border radius and
118 nothing inside. Left alone it holds 60% of the lobby open beside the
119 pickers. Hide the wrap and collapse the column with it, so a browser
120 with no media shows the device controls at full width rather than
121 beside a hole. */
122.calls-device-layout:has(> .calls-preview-wrap > #preview[hidden]) > .calls-preview-wrap {
123 display: none;
124}
125.calls-preview-wrap { border-radius: 20px; overflow: hidden; background: #000; }
126.calls-preview { display: block; max-width: none; aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
127.calls-preview[hidden] { display: none; }
128.calls-pickers > div { flex: 1 1 12rem; min-inline-size: 0; }
129.calls-pickers select { max-inline-size: 100%; }
130/* The rule above makes every picker a ~12rem flex item, which is right
131 for the three selects and wrong for the studio switch: it carries a
132 sentence of explanation, and squeezed into a select's column that
133 sentence sets in a ribbon. More specific than the line above rather
134 than ordered after it, so it survives the two being reordered. */
135.calls-pickers > .calls-raw-row { flex: 1 1 100%; }
136@media (min-width: 64rem) {
137 .calls-device-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
138 .calls-device-layout:has(> .calls-preview-wrap > #preview[hidden]) {
139 grid-template-columns: minmax(0, 1fr);
140 }
141}
142
143/* The holding screen's audio test (spec §15.20): a disclosure under the
144 device choices, one row per test — the button, its meter, and the
145 sentence that says what it found. The sentence is the result; the
146 meter only shows it happening. */
147.calls-audio-test[hidden] { display: none; }
148
149/* The holding screen keeps the speaker row's place while it is hidden:
150 devices.js reveals it only after the devices are enumerated, and it is
151 the last thing in the panel, so a row appearing there would still
152 push the page below the panel down (r3 audit F2: the controls dropped
153 ~180px, CLS 0.0116). A browser that cannot choose an output keeps a
154 row's worth of empty space at the panel's foot instead. Only on the
155 holding screen: the room's popover has no page below it to move. */
156#devices #speaker-row[hidden] { display: block; visibility: hidden; }
157.calls-audio-test summary {
158 cursor: pointer;
159 font-weight: 600;
160}
161/* The disclosure's body and each test are stacks (join.html): the
162 summary, then the body a step under it. */
163.calls-audio-body { margin-block-start: var(--rst-sp-3); }
164/* Closed, the body is not drawn; saying so lets a measure of the panel
165 (the rhythm audit) see what the browser does. */
166.calls-audio-test:not([open]) > .calls-audio-body { display: none; }
167.calls-audio-line {
168 display: flex;
169 flex-wrap: wrap;
170 align-items: center;
171 gap: var(--rst-sp-2) var(--rst-sp-3);
172}
173.calls-audio-line meter {
174 flex: 1 1 8rem;
175 max-inline-size: 16rem;
176 block-size: 0.75rem;
177}
178.calls-audio-result {
179 color: var(--rst-text);
180 font-weight: 600;
181}
182
183/* ─── The call window (2026-09-28) ────────────────────────────────────
184
185 The whole call is one rounded window, inset from the viewport by a
186 modest margin — 20px on a desktop, 12px in a narrow window, none on a
187 phone, where it goes edge to edge as the iPhone app does — on the
188 page's own quiet background, and the page never scrolls. Inside it
189 is the Mac's full-window call: the picture fills the window, and the
190 title, the notices, the bar, the panels and the popovers are over it.
191
192 Everything over the picture is the one glass of 0.3.7: black at 62 %
193 over a blurred, saturated backdrop, and no hairline edges. The black
194 does the work, so white on it is 6.2:1 even over a white wall and
195 where backdrop-filter is missing — there a near-opaque black stands in
196 for the blur (the @supports below). The window sets color-scheme:
197 dark, so every rst-* token inside it (the chat panel, the device
198 selects) takes its dark half: what is under it is always video. */
199html:has(> body > .calls-window),
200body:has(> .calls-window) {
201 overflow: hidden;
202 block-size: 100%;
203 /* tokens.css reserves a scrollbar's width on every page; a page that
204 cannot scroll has none, and the window would sit 15px off centre. */
205 scrollbar-gutter: auto;
206}
207body:has(> .calls-window) { background: var(--rst-bg); }
208.calls-window {
209 --calls-margin: 20px;
210 --calls-radius: 18px;
211 /* The bar with its margin under it: what the self view, the
212 filmstrip and a name at the bottom rise by while it shows (44 + 20
213 + 16, the Mac's barReserve). */
214 --calls-bar-reserve: 80px;
215 --calls-lift: 0px;
216 --calls-title-h: 52px;
217 --calls-glass: rgb(0 0 0 / 0.62);
218 /* Panels read rather than glanced at (the popovers, the title's menu,
219 chat): Calma's own surface, in its dark half, as the window is. */
220 --calls-panel: var(--rst-surface);
221 --calls-fade-out: 0.35s;
222 --calls-fade-in: 0.2s;
223 position: fixed;
224 inset: var(--calls-margin);
225 margin: 0;
226 /* clip, not hidden: a hidden box can still be scrolled, and focusing
227 something in a panel that is sliding in from off the edge would
228 scroll the whole call sideways. */
229 overflow: clip;
230 border-radius: var(--calls-radius);
231 background: #0b0b0c;
232 color: #fff;
233 color-scheme: dark;
234 box-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 16px 48px rgb(0 0 0 / 0.24);
235 isolation: isolate;
236 font-size: var(--rst-fs-base, 1rem);
237}
238@media (max-width: 900px) {
239 .calls-window { --calls-margin: 12px; --calls-radius: 16px; }
240}
241/* A phone, upright or on its side: edge to edge. */
242@media (max-width: 599px), (max-height: 499px) and (pointer: coarse) {
243 .calls-window { --calls-margin: 0px; --calls-radius: 0px; box-shadow: none; }
244}
245.calls-window[data-chrome='shown'] { --calls-lift: calc(var(--calls-bar-reserve) - 8px); }
246
247.calls-glass,
248.calls-window .calls-tile-name,
249.calls-window #controls,
250.calls-window .calls-notice,
251.calls-window .calls-status:not(:empty),
252.calls-window .calls-ice-warning,
253.calls-window .calls-share-notice-row,
254.calls-window .calls-sound-banner,
255.calls-window .calls-floor-notice,
256.calls-window .calls-queue {
257 background: var(--calls-glass);
258 color: #fff;
259 -webkit-backdrop-filter: blur(18px) saturate(1.6);
260 backdrop-filter: blur(18px) saturate(1.6);
261}
262@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
263 .calls-glass,
264 .calls-window .calls-tile-name,
265 .calls-window #controls,
266 .calls-window .calls-notice,
267 .calls-window .calls-status:not(:empty),
268 .calls-window .calls-ice-warning,
269 .calls-window .calls-share-notice-row,
270 .calls-window .calls-sound-banner,
271 .calls-window .calls-floor-notice,
272 .calls-window .calls-queue { background: rgb(18 18 18 / 0.92); }
273}
274/* The gate's fallback check turns the blur off to measure the black
275 alone, which is what a browser without backdrop-filter draws under
276 the @supports above. */
277.calls-window[data-no-glass] * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
278
279.calls-window :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
280.calls-window a { color: #fff; }
281
282/* What comes and goes with the controls: the title and the bar, and
283 the quiet status line. Opacity only, never a slide, eased out: 0.35s
284 going, 0.2s coming back (ControlsVisibility's fades). They keep their
285 place and their pointer while faded: a press on one that is not
286 showing shows it and does nothing else (call-window.js), and a screen
287 reader always has them. With reduced motion they never go at all. */
288.calls-fades {
289 transition: opacity var(--calls-fade-in) ease-out;
290}
291.calls-window[data-chrome='hidden'] .calls-fades {
292 opacity: 0;
293 transition-duration: var(--calls-fade-out);
294}
295.calls-window[data-chrome='hidden'][data-pointer-inside],
296.calls-window[data-chrome='hidden'][data-pointer-inside] * { cursor: none !important; }
297
298/* ── The title: a window title, only for a title someone chose ── */
299/* No pill (2026-10-02). A chosen title sits where a Mac window's title
300 would, centred in the strip across the top of the window, plain white
301 over a dark scrim that fades with it and the controls (the Mac's
302 topShade). A title Calls wrote is the page's heading for a screen
303 reader and nothing on screen, and the strip then takes no room, so
304 the notices sit at the top. noscript.css turns all of this back into
305 a plain block for a browser with no script. */
306.calls-top {
307 position: absolute;
308 z-index: 4;
309 inset-block-start: 0;
310 inset-inline: 0;
311 display: flex;
312 align-items: center;
313 justify-content: center;
314 block-size: 44px;
315 padding: 0 72px; /* spacing-allow: the call window's title strip keeps 72px clear each side for the window's corner controls, as the Mac title bar does */
316 pointer-events: none;
317}
318.calls-top-named::before {
319 content: '';
320 position: absolute;
321 z-index: -1;
322 inset: 0 0 auto;
323 block-size: 112px;
324 /* Dark enough through the strip itself for white text over a white
325 picture (4.5:1, the window scenario's contrast check), then fading. */
326 background: linear-gradient(rgb(0 0 0 / 0.72) 0, rgb(0 0 0 / 0.62) 44px, rgb(0 0 0 / 0));
327 pointer-events: none;
328}
329.calls-top h1 {
330 min-inline-size: 0;
331 max-inline-size: 100%;
332 margin: 0;
333 font-size: 0.875rem;
334 font-weight: 600;
335 line-height: 1.3;
336 letter-spacing: 0;
337 color: #fff;
338 text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
339 overflow: hidden;
340 text-overflow: ellipsis;
341 white-space: nowrap;
342}
343.calls-top:not(.calls-top-named) { block-size: 0; padding: 0; }
344.calls-top:not(.calls-top-named) h1 {
345 position: absolute;
346 inline-size: 1px;
347 block-size: 1px;
348 margin: -1px; /* spacing-allow: the visually hidden pattern's 1px box, pulled off its own edge */
349 overflow: hidden;
350 clip-path: inset(50%);
351}
352.calls-top-line {
353 margin: 1px 0 0; /* spacing-allow: the call title's second line, 1px under the first, the Mac window subtitle's */
354 font-size: 0.8125rem;
355 line-height: 1.35;
356 color: rgb(255 255 255 / 0.85);
357}
358
359/* The More menu's account part: the standing line, who is signed in,
360 the headings and separators of the account menu (estilo menu.css),
361 drawn for the dark panel: same order, same words. */
362.calls-menu a,
363.calls-menu form button {
364 display: flex;
365 align-items: center;
366 min-block-size: 40px;
367 padding: 0 var(--rst-sp-3);
368 border: 0;
369 border-radius: 9px;
370 background: none;
371 color: #fff;
372 font: inherit;
373 font-size: 0.9375rem;
374 text-align: start;
375 text-decoration: none;
376 cursor: pointer;
377 inline-size: 100%;
378}
379.calls-menu a:hover,
380.calls-menu form button:hover { background: rgb(255 255 255 / 0.1); }
381.calls-menu form { margin: 0; }
382.calls-menu-standing {
383 margin: 0;
384 padding: 6px var(--rst-sp-3) var(--rst-sp-2); /* spacing-allow: the More menu's rows are the Mac call menu's: 6px over the standing line */
385 max-inline-size: 18rem;
386 color: rgb(255 255 255 / 0.85);
387 font-size: 0.8125rem;
388 line-height: 1.4;
389}
390.calls-menu hr {
391 inline-size: 100%;
392 margin: var(--rst-sp-1) 0;
393 border: 0;
394 border-block-start: 1px solid rgb(255 255 255 / 0.12);
395}
396.calls-menu-heading {
397 display: block;
398 margin: 0;
399 padding: 6px var(--rst-sp-3) 2px; /* spacing-allow: the More menu's section heading, set 6px over and 2px under, the Mac call menu's */
400 color: rgb(255 255 255 / 0.6);
401 font-size: 0.75rem;
402 font-weight: 600;
403}
404.calls-menu-who { margin: 0; padding-block-end: 6px; /* spacing-allow: the More menu's row rhythm, the Mac call menu's 6px */ }
405.calls-menu-address {
406 display: block;
407 padding: 0 var(--rst-sp-3);
408 color: #fff;
409 font-size: 0.8125rem;
410 overflow-wrap: anywhere;
411}
412
413/* ── With no script: the page's sentence where the picture would be ── */
414.calls-scriptless {
415 position: absolute;
416 inset: 0;
417 display: flex;
418 flex-direction: column;
419 align-items: center;
420 justify-content: center;
421 gap: var(--rst-sp-3);
422 padding: calc(var(--calls-title-h) + var(--rst-sp-6)) var(--rst-sp-5) var(--rst-sp-5); /* spacing-allow: the call window's no-script sentence clears the title strip's own height, which is not a step */
423 text-align: center;
424}
425.calls-scriptless p { margin: 0; max-inline-size: 34rem; line-height: 1.5; }
426.calls-scriptless-links { display: flex; gap: var(--rst-sp-4); justify-content: center; }
427.calls-scriptless form { margin: 0; }
428
429/* ── The room: everything scripted, over the whole window ── */
430.calls-room {
431 position: absolute;
432 inset: 0;
433}
434.calls-room[hidden] { display: none; }
435
436/* ── Notices: under the title, and never faded ── */
437.calls-notices {
438 position: absolute;
439 z-index: 5;
440 inset-block-start: calc(12px + var(--calls-title-h) + 8px);
441 inset-inline: 12px;
442 display: flex;
443 flex-direction: column;
444 align-items: center;
445 gap: var(--rst-sp-2);
446 pointer-events: none;
447}
448.calls-notices > * { pointer-events: auto; max-inline-size: min(40rem, 100%); }
449.calls-window .calls-status {
450 margin: 0;
451 min-block-size: 0;
452 padding: var(--rst-sp-2) var(--rst-sp-4);
453 border-radius: 18px;
454 color: #fff;
455 font-size: 0.875rem;
456 font-weight: 600;
457 text-align: center;
458}
459.calls-window .calls-status:empty { display: none; }
460/* "You are the only one here" is how the call is going, not a problem:
461 it goes with the controls (a notice that is not important, on the
462 Mac, fades with them). */
463.calls-window .calls-status[data-quiet] { transition: opacity var(--calls-fade-in) ease-out; }
464.calls-window[data-chrome='hidden'] .calls-status[data-quiet] { opacity: 0; transition-duration: var(--calls-fade-out); }
465.calls-window .calls-status a { color: #fff; font-weight: 600; margin-inline-start: var(--rst-sp-2); }
466.calls-window .calls-ice-warning {
467 margin: 0;
468 padding: var(--rst-sp-2) var(--rst-sp-4);
469 border-radius: 18px;
470 font-size: 0.875rem;
471 text-align: center;
472}
473.calls-window .calls-device-note { color: #fff; }
474/* "Copy call diagnostics" at the foot of the Devices popover (§15.22). */
475.calls-copy-diagnostics { margin-block-start: var(--rst-sp-3); align-self: flex-start; }
476.calls-window .calls-copy-diagnostics { color: #fff; }
477
478/* The sharing notice (2026-09-28): a dark pill with its own Stop
479 sharing button, and the recovery line under it. */
480.calls-share-notice:not([hidden]) {
481 display: flex;
482 flex-direction: column;
483 align-items: center;
484 gap: var(--rst-sp-1);
485}
486.calls-share-notice-row {
487 display: inline-flex;
488 align-items: center;
489 gap: var(--rst-sp-2);
490 margin: 0;
491 padding: 6px 6px 6px 14px; /* spacing-allow: the sharing pill's 6px inset keeps its Stop button concentric with the pill's round ends */
492 border-radius: 999px;
493 color: #ffd99a;
494 font-size: 0.875rem;
495 font-weight: 600;
496}
497.calls-share-notice-row svg { inline-size: 1.15em; block-size: 1.15em; flex: none; }
498.calls-share-stop,
499.calls-sound-banner button,
500.calls-queue li button {
501 min-block-size: 28px;
502 padding: 2px var(--rst-sp-3); /* spacing-allow: the over-video pill buttons are 28px tall: 2px over the line, not a step */
503 border: 0;
504 border-radius: 999px;
505 background: #fff;
506 color: #111;
507 font: inherit;
508 font-size: 0.875rem;
509 font-weight: 600;
510 cursor: pointer;
511 box-shadow: none;
512}
513.calls-share-stop:hover,
514.calls-sound-banner button:hover,
515.calls-queue li button:hover { background: #e8e8e8; }
516.calls-share-recovery {
517 margin: 0;
518 padding: var(--rst-sp-1) var(--rst-sp-3);
519 border-radius: 999px;
520 background: var(--calls-glass);
521 font-size: 0.8125rem;
522}
523
524/* §5.5's relay notice, once a session, with its own Dismiss. */
525.calls-floor-notice:not([hidden]) {
526 display: flex;
527 align-items: center;
528 gap: var(--rst-sp-2);
529 padding: 6px 6px 6px var(--rst-sp-4); /* spacing-allow: the relay notice's pill: a 6px inset keeps Dismiss concentric with the 18px round ends */
530 border-radius: 18px;
531 font-size: 0.875rem;
532}
533.calls-floor-notice p { margin: 0; }
534.calls-floor-notice button {
535 display: grid;
536 place-items: center;
537 flex: none;
538 inline-size: 28px;
539 block-size: 28px;
540 border: 0;
541 border-radius: 999px;
542 background: rgb(255 255 255 / 0.14);
543 color: #fff;
544 cursor: pointer;
545}
546.calls-floor-notice button .icon { inline-size: 16px; block-size: 16px; }
547
548/* The page's own "Click anywhere to turn on sound". */
549.calls-sound-banner {
550 display: flex;
551 flex-wrap: wrap;
552 align-items: center;
553 justify-content: center;
554 gap: var(--rst-sp-2) var(--rst-sp-3);
555 padding: 6px 6px 6px var(--rst-sp-4); /* spacing-allow: the sound banner's pill: a 6px inset keeps its button concentric with the round ends */
556 border-radius: 999px;
557}
558.calls-sound-banner[hidden] { display: none; }
559.calls-sound-banner p { margin: 0; font-size: 0.875rem; font-weight: 600; }
560
561/* Each person waiting, with Admit. */
562.calls-queue {
563 padding: var(--rst-sp-2) var(--rst-sp-2) var(--rst-sp-2) var(--rst-sp-4);
564 border-radius: 18px;
565}
566.calls-queue h2 {
567 margin: 0 0 var(--rst-sp-1);
568 font-size: 0.75rem;
569 font-weight: 600;
570 color: rgb(255 255 255 / 0.85);
571 text-transform: none;
572}
573.calls-queue ul {
574 list-style: none;
575 margin: 0;
576 padding: 0;
577 display: flex;
578 flex-direction: column;
579 gap: 6px; /* spacing-allow: the admission queue's rows sit 6px apart over the picture, the Mac's queue */
580}
581.calls-queue li {
582 display: flex;
583 flex-wrap: wrap;
584 align-items: center;
585 justify-content: space-between;
586 gap: var(--rst-sp-2) var(--rst-sp-4);
587 font-size: 0.875rem;
588 overflow-wrap: anywhere;
589}
590.calls-queue li button { flex: none; }
591
592/* ── The stage ── */
593.calls-stage {
594 position: absolute;
595 inset: 0;
596 z-index: 0;
597 display: flex;
598 flex-direction: column;
599 justify-content: flex-end;
600 container-type: size;
601}
602.calls-grid { margin: 0; }
603
604.calls-tile {
605 position: relative;
606 margin: 0;
607 min-inline-size: 0;
608 overflow: hidden;
609 aspect-ratio: 16 / 9;
610 border: 0;
611 border-radius: 8px;
612 background: #212121;
613 container-type: inline-size;
614}
615.calls-tile video {
616 display: block;
617 width: 100%;
618 height: 100%;
619 object-fit: cover;
620 /* A crop takes more from the bottom than the top (35:65): a face is
621 above the middle of the picture, and a crop through the forehead
622 reads worse than one through the chest. The native apps' VideoFrame
623 has the same headroom. */
624 object-position: 50% 35%;
625}
626.calls-tile-self:not(.calls-tile-share) video,
627.calls-preview {
628 /* Mirror only our camera display, never remote video or shared screens. */
629 transform: scaleX(-1);
630}
631/* A shared screen (spec §5.4) is not a face: the part of it that matters
632 is usually at the edges, so the whole screen is fitted into the tile
633 rather than cropped to fill it. */
634.calls-tile-share video {
635 position: relative;
636 object-fit: contain;
637 object-position: 50% 50%;
638 background: #000;
639}
640/* On the stage, what is beside or above the fitted screen is the same
641 picture enlarged, soft and dimmed, rather than black bars, as the
642 native apps' ScreenBackdrop: room.js draws a frame into this 64 × 36
643 canvas twice a second, and the browser's upscaling and a blur do the
644 rest. It is under the video (which is positioned, and after it). */
645.calls-tile-backdrop { display: none; }
646.calls-window #tiles > [data-stage].calls-tile-share > .calls-tile-backdrop {
647 display: block;
648 position: absolute;
649 inset: -8%;
650 inline-size: 116%;
651 block-size: 116%;
652 filter: blur(18px);
653 opacity: 0.45;
654 pointer-events: none;
655}
656.calls-window #tiles > [data-stage].calls-tile-share video { background: transparent; }
657
658/* Portrait video (2026-10-21): a camera of another shape than its tile
659 or window — a phone held upright on a landscape stage, a laptop on an
660 upright phone — is shown whole and centred rather than cropped to a
661 slice, with its own picture soft and dimmed around it, as a screen on
662 the stage is. room.js's placeTile decides (data-fit, from videoFits:
663 a crop of 15% or less still fills) and paintBackdrops draws the
664 canvas, for at most eight tiles; past that a fitted tile has the dark
665 surface alone (data-backdrop="plain"). The tile keeps its shape, so
666 the grid and the filmstrip stay tidy. */
667.calls-tile[data-fit='1'] { background: #0b0b0c; }
668.calls-tile[data-fit='1'] video {
669 position: relative;
670 object-fit: contain;
671 object-position: 50% 50%;
672}
673.calls-tile[data-fit='1'] > .calls-tile-backdrop {
674 display: block;
675 position: absolute;
676 inset: -8%;
677 inline-size: 116%;
678 block-size: 116%;
679 filter: blur(10px);
680 opacity: 0.45;
681 pointer-events: none;
682}
683.calls-window #tiles > [data-stage][data-fit='1'] > .calls-tile-backdrop { filter: blur(18px); }
684.calls-tile[data-fit='1'][data-backdrop='plain'] > .calls-tile-backdrop { display: none; }
685/* A turn mid-call eases: the picture comes up from dim into its new
686 place, and its backdrop with it. Nothing moves under reduced motion. */
687@media (prefers-reduced-motion: no-preference) {
688 .calls-tile[data-refit] video { animation: calls-refit 0.3s ease-out; }
689 .calls-tile[data-refit='1'] > .calls-tile-backdrop { animation: calls-backdrop-in 0.4s ease-out; }
690}
691@keyframes calls-refit {
692 from { opacity: 0.4; }
693 to { opacity: 1; }
694}
695@keyframes calls-backdrop-in {
696 from { opacity: 0; }
697 to { opacity: 0.45; }
698}
699
700/* Speaker view (0.4.0): the stage fills the whole window, edge to edge,
701 as FaceTime's does, and the filmstrip floats over its bottom — tiles a
702 sixth of the window high, 72 to 120px, centred while they fit and
703 scrolling sideways once they do not — rising clear of the bar while
704 the controls show (2026-10-05: until then the stage stopped above the
705 filmstrip, leaving a black band behind it and the bar). The stage's
706 caption rides just above the filmstrip. The stage is placed
707 against .calls-stage rather than #tiles, so it neither scrolls with
708 the filmstrip nor is clipped by it; the tiles stay children of #tiles,
709 whose order is the reading order call-layout.js keeps. */
710.calls-window #tiles[data-layout='speaker'] {
711 --calls-strip-h: clamp(72px, calc(100cqh / 6), 120px);
712 --calls-band: calc(var(--calls-strip-h) + 16px);
713 display: flex;
714 flex-direction: row;
715 align-items: flex-end;
716 justify-content: safe center;
717 gap: var(--rst-sp-2);
718 min-block-size: 0;
719 padding: var(--rst-sp-2) var(--rst-sp-3);
720 margin-block-end: var(--calls-lift); /* spacing-allow: the speaker strip lifts clear of the call bar by the bar's measured reserve, not a step */
721 overflow-x: auto;
722 overflow-y: hidden;
723 scrollbar-width: thin;
724 transition: margin-block-end var(--calls-fade-in) ease-out;
725}
726.calls-window #tiles[data-layout='speaker']:not(:has(> figure:not([data-stage], .calls-tile-pip))) {
727 --calls-band: 0px;
728 padding: 0;
729}
730.calls-window #tiles[data-layout='speaker'] > figure {
731 flex: none;
732 block-size: var(--calls-strip-h);
733 inline-size: auto;
734 aspect-ratio: 16 / 9;
735}
736.calls-window #tiles[data-layout='speaker'] > figure:not([data-stage]) { cursor: pointer; z-index: 1; }
737.calls-window #tiles[data-layout='speaker'] > [data-stage] {
738 position: absolute;
739 inset: 0;
740 block-size: auto;
741 inline-size: auto;
742 aspect-ratio: auto;
743 border-radius: 0;
744 background: #0b0b0c;
745}
746/* The stage's caption: bottom left of the window, just above the
747 filmstrip (StageLabel in the native apps), and rising with it, clear
748 of the bar, while the controls show. In a call of two there is no
749 filmstrip (--calls-band is 0): the other person fills the window, you
750 float in a corner, and the caption clears the bar alone. */
751.calls-window #tiles[data-layout='speaker'] > [data-stage] .calls-tile-name {
752 inset-block-end: calc(12px + var(--calls-band));
753 inset-inline-start: 12px;
754}
755.calls-window[data-chrome='shown'] #tiles[data-layout='speaker'] > [data-stage] .calls-tile-name {
756 translate: 0 calc(-1 * var(--calls-lift));
757}
758/* What the stage's camera-off cover keeps clear of: that caption, lifted. */
759.calls-window #tiles[data-layout='speaker'] > [data-stage] > .calls-tile-off, .calls-window #tiles[data-layout='speaker'] > [data-stage] > .calls-tile-pause {
760 --calls-caption-clear: calc(12px + 2rem + var(--calls-band) + var(--calls-lift));
761}
762
763/* The self view, floating (Stage.selfFloats): about a fifth of the
764 window's width, 150 to 260px at 16:9, 16px in from the corner it was
765 put in (call-layout.js's data-corner), clear of the title in the top
766 left and of an open chat. In a bottom corner it stays put whether the
767 controls show or not, and the bar narrows to keep clear of it
768 (data-pip-clear="edge", call-layout.js's clearBar); only where the
769 bar could not fit beside it does it rise, 12px above the bar, while
770 the bar shows (2026-10-30, SelfViewBarLayout in the apps). Dragged, it
771 follows the pointer and settles in the corner it was headed for. */
772.calls-window[data-chrome='shown']:not([data-pip-clear='edge']) { --calls-pip-rise: calc(var(--calls-bar-reserve) - 4px); }
773.calls-window[data-pip-clear='edge'] #controls { inline-size: var(--calls-bar-w); }
774.calls-window #tiles > .calls-tile-pip {
775 --calls-pip-top: calc(16px + var(--calls-title-h) * var(--calls-title-on, 0));
776 position: absolute;
777 z-index: 2;
778 inline-size: clamp(150px, 20cqw, 260px);
779 block-size: auto;
780 aspect-ratio: 16 / 9;
781 border-radius: 10px;
782 box-shadow: 0 3px 16px rgb(0 0 0 / 0.35);
783 inset: auto 16px calc(16px + var(--calls-pip-rise, 0px)) auto;
784 cursor: grab;
785 transition: inset 0.2s ease-out, translate 0s;
786}
787.calls-window[data-chrome='shown'] #tiles > .calls-tile-pip { --calls-title-on: 1; }
788.calls-window #tiles[data-corner='top-left'] > .calls-tile-pip { inset: var(--calls-pip-top) auto auto 16px; }
789.calls-window #tiles[data-corner='top-right'] > .calls-tile-pip { inset: 16px 16px auto auto; }
790.calls-window #tiles[data-corner='bottom-left'] > .calls-tile-pip { inset: auto auto calc(16px + var(--calls-pip-rise, 0px)) 16px; }
791.calls-window:has(.calls-chat-overlay:not([hidden])) #tiles:not([data-corner='top-left'], [data-corner='bottom-left']) > .calls-tile-pip {
792 inset-inline-end: calc(12px + min(320px, 100cqw - 24px) + 16px);
793}
794/* An upright camera (a phone held upright, yours) floats upright: 9:16,
795 1.6 times as tall as a landscape self view (the filmstrip's height),
796 rather than cropped to a landscape sliver (2026-10-21; PiPLayout in
797 the apps). */
798.calls-window #tiles[data-layout] > .calls-tile-pip[data-shape='portrait'] {
799 block-size: calc(var(--calls-strip-h, 120px) * 1.6);
800 inline-size: auto;
801 aspect-ratio: 9 / 16;
802}
803.calls-window #tiles > .calls-tile-pip.calls-tile-dragging { transition: none; z-index: 4; cursor: grabbing; }
804.calls-window #tiles > .calls-tile-pip .calls-tile-name { inset-block-end: 6px; inset-inline-start: 6px; }
805
806/* Grid: every tile as large as it can be without scrolling (GridFit,
807 which call-layout.js runs and writes as --calls-cols and the tile's
808 size), until they would be under 200px wide, when it scrolls. The
809 last row's names rise clear of the bar while it shows, by as much of
810 the bar as reaches over them (--calls-grid-lift). */
811.calls-window #tiles[data-layout='grid'] {
812 flex: 1;
813 display: grid;
814 grid-template-columns: repeat(var(--calls-cols, 2), var(--calls-tile-w, 320px));
815 grid-auto-rows: var(--calls-tile-h, 180px);
816 gap: var(--rst-sp-1);
817 place-content: center;
818 padding: var(--rst-sp-1);
819 overflow: auto;
820 scrollbar-width: none;
821}
822.calls-window #tiles[data-layout='grid'] > figure {
823 inline-size: var(--calls-tile-w, 320px);
824 block-size: var(--calls-tile-h, 180px);
825 aspect-ratio: auto;
826 border-radius: 6px;
827}
828.calls-window[data-chrome='shown'] #tiles[data-layout='grid'] > [data-last-row] .calls-tile-name {
829 translate: 0 calc(-1 * var(--calls-grid-lift, 0px));
830}
831
832/* The tile caption: the name, and, when the pair has failed or the
833 browser refused to play the track, the sentence and the control
834 beside it — plus the removal link a member gets. A glass capsule of
835 its own, with the muted mark inside it (shape and word). */
836.calls-tile-name {
837 position: absolute;
838 inset-block-end: 8px;
839 inset-inline-start: 8px;
840 display: flex;
841 flex-wrap: wrap;
842 align-items: center;
843 gap: 6px; /* spacing-allow: the tile caption's pieces, 6px apart on a pill over video, the Mac caption's */
844 max-inline-size: calc(100% - 16px);
845 padding: 3px 10px; /* spacing-allow: the tile caption pill: 3px by 10px round the name, the Mac caption's */
846 border-radius: 999px;
847 color: #fff;
848 font-size: var(--rst-fs-sm);
849 line-height: 1.35;
850}
851.calls-tile-name:has(.calls-tile-hear:not([hidden]), .calls-tile-notice:not([hidden])) {
852 border-radius: 14px;
853}
854.calls-tile-name > span:first-child {
855 overflow: hidden;
856 text-overflow: ellipsis;
857 white-space: nowrap;
858}
859.calls-tile-name button,
860.calls-tile-name a {
861 min-block-size: 24px;
862 min-inline-size: 24px;
863 padding: 0 6px; /* spacing-allow: a caption's own button, 24px square with 6px either side of its glyph */
864 border: 0;
865 border-radius: 8px;
866 background: rgb(255 255 255 / 0.14);
867 color: #fff;
868 font: inherit;
869 cursor: pointer;
870}
871/* Never colour alone: a failed connection says so in words, and the
872 weight is only a second cue on top of the sentence. */
873.calls-tile-note { color: #fff; font-weight: 600; }
874.calls-tile-name [rst-badge] { color: #fff; border-color: rgb(255 255 255 / 0.5); }
875
876/* Spec §15.19: a muted peer's badge sits beside their name — the
877 slashed microphone and the vendored badge's word, so the state is a
878 shape and a word and never a colour. */
879.calls-tile-muted {
880 display: inline-flex;
881 align-items: center;
882 gap: var(--rst-sp-1);
883 flex: none;
884}
885.calls-tile-muted .icon { inline-size: 1em; block-size: 1em; }
886.calls-tile-muted[hidden],
887.calls-tile-off[hidden], .calls-tile-pause[hidden] { display: none; }
888
889/* A camera that is off sends black frames, or holds the last one. The
890 cover says what that is instead of leaving a frozen face or a black
891 rectangle to be read as a fault. It lies over the video rather than
892 hiding it: the element is also what plays the peer's audio.
893 Its symbol and words are centred in the whole tile, as FaceTime has
894 them, with the caption over the bottom edge (2026-10-05; from 0.4.1
895 they were centred in the space above the caption, which left them
896 high). Only on a tile so short that centred they would reach the
897 caption do they rise, and by no more than that: the two spacers share
898 the free space equally until the lower one would be shorter than the
899 caption's clearance (--calls-caption-clear), when flexbox holds it at
900 that and gives the rest to the upper one. The native apps'
901 PlaceholderPlacement is the same rule. */
902.calls-tile-off, .calls-tile-pause {
903 --calls-caption-clear: 2.75rem;
904 position: absolute;
905 inset: 0;
906 display: flex;
907 flex-direction: column;
908 align-items: center;
909 background: #212121;
910 color: rgb(255 255 255 / 0.8);
911 font-size: var(--rst-fs-sm);
912}
913.calls-tile-off::before, .calls-tile-pause::before,
914.calls-tile-off::after, .calls-tile-pause::after {
915 content: '';
916 flex: 1 1 0;
917}
918.calls-tile-off::after, .calls-tile-pause::after { min-block-size: var(--calls-caption-clear); }
919.calls-tile-off > *, .calls-tile-pause > * { flex: none; }
920.calls-tile-off > * + *, .calls-tile-pause > * + * { margin-block-start: var(--rst-sp-2); }
921.calls-tile-off .icon, .calls-tile-pause .icon { inline-size: 2rem; block-size: 2rem; }
922.calls-tile-camera-off .calls-tile-name { z-index: 1; }
923
924/* Spec §15.30: "Low bandwidth" beside the name while this browser asks
925 that person for less video — the vendored badge's word, quiet like
926 Muted — and, at Audio only, the camera-off cover's shape with its own
927 words, and a smaller line for an app too old to send less. */
928.calls-tile-low { display: inline-flex; align-items: center; flex: none; }
929.calls-tile-low[hidden] { display: none; }
930.calls-tile-video-paused .calls-tile-name { z-index: 1; }
931.calls-tile-paused-old { max-inline-size: 18rem; text-align: center; font-size: var(--rst-fs-xs); opacity: 0.8; }
932.calls-tile-paused-old[hidden] { display: none; }
933
934/* Our own preview, when the browser will not play it (room.js's
935 self-view watch, 2026-10-21): never a black box with nothing said.
936 The whole tile is the button, because the floating self view on a
937 phone is too small for a sentence and a control in its caption. */
938.calls-tile-paused {
939 position: absolute;
940 inset: 0;
941 z-index: 1;
942 display: flex;
943 flex-direction: column;
944 align-items: center;
945 justify-content: center;
946 gap: var(--rst-sp-1);
947 margin: 0;
948 padding: var(--rst-sp-2) var(--rst-sp-2) 2rem; /* spacing-allow: the paused self view's cover keeps 2rem clear of the caption pill under it */
949 border: 0;
950 border-radius: inherit;
951 background: #212121;
952 color: rgb(255 255 255 / 0.85);
953 font: inherit;
954 font-size: var(--rst-fs-sm);
955 line-height: 1.25;
956 text-align: center;
957 cursor: pointer;
958}
959.calls-tile-paused[hidden] { display: none; }
960.calls-tile-paused-show { font-weight: 600; color: #fff; text-decoration: underline; }
961.calls-tile-self:has(.calls-tile-paused:not([hidden])) .calls-tile-name { z-index: 2; }
962@container (max-width: 15rem) {
963 .calls-tile-paused { font-size: var(--rst-fs-xs); padding-block-end: 1.75rem; /* spacing-allow: the paused cover on a small tile keeps 1.75rem clear of the smaller caption */ }
964}
965
966/* What a tile says about its audio when the rim cannot: no sound,
967 sound blocked, a microphone picking nothing up. Words, with the
968 weight as a second cue, in the caption's own pill. The ⓘ is a native
969 disclosure, so it is a keyboard control with no script of its own,
970 and what it opens takes a line of the caption to itself. */
971.calls-tile-hear {
972 display: inline-flex;
973 flex-wrap: wrap;
974 align-items: center;
975 gap: var(--rst-sp-1);
976 font-weight: 600;
977}
978.calls-tile-hear[hidden],
979.calls-tile-notice[hidden] { display: none; }
980.calls-info summary {
981 cursor: pointer;
982 list-style: none;
983 min-inline-size: 24px;
984 min-block-size: 24px;
985 display: inline-grid;
986 place-items: center;
987 font-weight: 400;
988}
989.calls-info summary::-webkit-details-marker { display: none; }
990.calls-info[open] { flex-basis: 100%; }
991.calls-info p {
992 margin: var(--rst-sp-1) 0 0;
993 font-weight: 400;
994 max-inline-size: 30rem;
995}
996/* A peer's own report about hearing us: a line of its own in the
997 caption, because it is about the call and not about the name. */
998.calls-tile-notice {
999 flex-basis: 100%;
1000 font-weight: 600;
1001}
1002/* §15.24: "Samuel is connecting and can't hear you yet", the words
1003 steady and three dots after them that brighten in turn — waiting, not
1004 wrong. One steady ellipsis under reduced motion. The dots are
1005 aria-hidden: a screen reader hears the sentence once. */
1006.calls-ellipsis {
1007 display: inline-flex;
1008 letter-spacing: 0.04em;
1009}
1010@media (prefers-reduced-motion: no-preference) {
1011 .calls-ellipsis > span { animation: calls-ellipsis 1.4s ease-in-out infinite both; }
1012 .calls-ellipsis > span:nth-child(2) { animation-delay: 0.2s; }
1013 .calls-ellipsis > span:nth-child(3) { animation-delay: 0.4s; }
1014}
1015@keyframes calls-ellipsis {
1016 0%, 80%, 100% { opacity: 0.35; }
1017 40% { opacity: 1; }
1018}
1019
1020/* A filmstrip tile, or any small one (0.4.1). A tile too small for the
1021 camera-off words keeps the symbol alone, then a smaller one. The
1022 caption stays one line: the name gives up its end to an ellipsis, the
1023 muted mark keeps its slashed microphone and drops the word (still
1024 read out: it is only visually hidden), and there is room past the
1025 caption's end for the warm rim's breath. */
1026@container (max-width: 20rem) {
1027 .calls-tile-name {
1028 flex-wrap: nowrap;
1029 box-sizing: border-box;
1030 max-inline-size: calc(100% - 22px);
1031 inset-block-end: 6px;
1032 inset-inline-start: 6px;
1033 padding: 2px var(--rst-sp-2); /* spacing-allow: the filmstrip caption pill, 2px over the line, the Mac's small caption */
1034 font-size: var(--rst-fs-xs);
1035 }
1036 .calls-tile-name > span:first-child { flex: 0 1 auto; min-inline-size: 0; }
1037 .calls-tile-off, .calls-tile-pause { --calls-caption-clear: 2rem; }
1038 .calls-tile-name > :not(:first-child) { flex: none; }
1039 .calls-tile-low:not([hidden]) {
1040 position: absolute;
1041 inline-size: 1px;
1042 block-size: 1px;
1043 overflow: hidden;
1044 clip-path: inset(50%);
1045 white-space: nowrap;
1046 }
1047 .calls-tile-muted > :not(svg) {
1048 position: absolute;
1049 inline-size: 1px;
1050 block-size: 1px;
1051 overflow: hidden;
1052 clip-path: inset(50%);
1053 white-space: nowrap;
1054 }
1055}
1056@container (max-width: 15rem) {
1057 .calls-tile-off > :not(svg), .calls-tile-pause > :not(svg) {
1058 position: absolute;
1059 inline-size: 1px;
1060 block-size: 1px;
1061 overflow: hidden;
1062 clip-path: inset(50%);
1063 white-space: nowrap;
1064 }
1065}
1066@container (max-width: 9rem) {
1067 .calls-tile-off .icon, .calls-tile-pause .icon { inline-size: 1.25rem; block-size: 1.25rem; }
1068}
1069
1070/* The speaking light on the name, which replaced the ring round the
1071 tile and the meter beside the name (0.3.7), and since 0.4.3 is the
1072 warm rim ("T5, warm soft breath"), as the native apps draw it
1073 (WarmRim.swift). room.js sets --on (1 while lit), --lvl (0..1, how
1074 loudly they are speaking) and the transitions' durations: --lvl-t, quick
1075 rising and slower falling, so it breathes with the voice, and --on-t,
1076 so --on goes out as --lvl reaches nothing rather than at once. Over the
1077 label's glass, in its shape, three layers of warm white (hue 38°):
1078 a 1px rim inside the edge, light bleeding inwards from it, and a breath
1079 just outside it once the voice rises. A box-shadow, so nothing moves
1080 when it lights; the registered properties are what let the numbers
1081 themselves be transitioned, and a browser without @property steps five
1082 times a second instead. With reduced motion, room.js holds one steady
1083 level and nothing is transitioned. */
1084@property --lvl {
1085 syntax: '<number>';
1086 inherits: true;
1087 initial-value: 0;
1088}
1089@property --on {
1090 syntax: '<number>';
1091 inherits: true;
1092 initial-value: 0;
1093}
1094.calls-tile-name {
1095 --on: 0;
1096 --lvl: 0;
1097}
1098.calls-tile-name::after {
1099 content: '';
1100 position: absolute;
1101 inset: 0;
1102 border-radius: inherit;
1103 pointer-events: none;
1104 box-shadow:
1105 inset 0 0 0 1px hsl(38 80% 82% / calc(var(--on) * (0.1 + var(--lvl) * 0.45))),
1106 inset 0 0 calc(3px + var(--lvl) * 6px) hsl(38 80% 72% / calc(var(--on) * (0.06 + var(--lvl) * 0.3))),
1107 0 0 calc(1px + var(--lvl) * 7px) hsl(38 80% 66% / calc(var(--on) * var(--lvl) * 0.25));
1108}
1109@media (prefers-reduced-motion: no-preference) {
1110 .calls-tile-name {
1111 transition:
1112 --lvl var(--lvl-t, 300ms) ease-out,
1113 --on var(--on-t, 0ms) step-end;
1114 }
1115}
1116
1117
1118/* A tile's own buttons (2026-09-29): ⋯, which opens the tile's menu,
1119 and a Pinned badge while the tile is pinned (pressing it unpins). In
1120 the top corner, and only while the pointer or the keyboard is in the
1121 tile or its menu is open — and never with the controls gone, so the
1122 picture is clean. On a screen with no hover they come with the
1123 controls. The Pinned badge shows with the controls whatever the
1124 pointer does, so a pinned stage says so. */
1125.calls-tile-tools {
1126 position: absolute;
1127 inset-block-start: 8px;
1128 inset-inline-end: 8px;
1129 display: flex;
1130 gap: var(--rst-sp-1);
1131 z-index: 2;
1132}
1133.calls-tile-tools > .calls-tool {
1134 opacity: 0;
1135 transition: opacity var(--calls-fade-in, 0.2s) ease-out;
1136}
1137.calls-tile:hover > .calls-tile-tools > .calls-tool,
1138.calls-tile:focus-within > .calls-tile-tools > .calls-tool,
1139.calls-tile.calls-tile-menu-open > .calls-tile-tools > .calls-tool,
1140.calls-tile[data-pinned] > .calls-tile-tools > .calls-tool-pin { opacity: 1; }
1141@media (hover: none) {
1142 .calls-window[data-chrome='shown'] .calls-tile-tools > .calls-tool { opacity: 1; }
1143}
1144.calls-window[data-chrome='hidden'] .calls-tile:not(:focus-within, .calls-tile-menu-open) > .calls-tile-tools > .calls-tool {
1145 opacity: 0;
1146 transition-duration: var(--calls-fade-out, 0.35s);
1147}
1148.calls-tool[hidden] { display: none; }
1149.calls-window #tiles[data-layout='speaker'] > [data-stage] > .calls-tile-tools { inset-block-start: 12px; inset-inline-end: 12px; }
1150.calls-tool {
1151 display: inline-flex;
1152 align-items: center;
1153 justify-content: center;
1154 gap: var(--rst-sp-1);
1155 min-inline-size: 30px;
1156 min-block-size: 30px;
1157 padding: 2px var(--rst-sp-2); /* spacing-allow: a tile's ⋯ and pin buttons, 30px round targets on a 2px inset */
1158 border: 0;
1159 border-radius: 999px;
1160 background: var(--calls-glass, rgb(0 0 0 / 0.62));
1161 -webkit-backdrop-filter: blur(18px) saturate(1.6);
1162 backdrop-filter: blur(18px) saturate(1.6);
1163 color: #fff;
1164 font: inherit;
1165 font-size: var(--rst-fs-xs);
1166 cursor: pointer;
1167}
1168.calls-tool-more { padding: 2px; /* spacing-allow: the ⋯ glyph on a 2px inset inside its 30px round target */ }
1169.calls-tool .icon { inline-size: 16px; block-size: 16px; }
1170.calls-tool:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
1171.calls-tool-more[aria-expanded='true'] { background: #f0f0f0; color: #1a1a1a; }
1172.calls-tile[data-pinned] .calls-tool-pin { background: #fff; color: #000; }
1173
1174/* The tile menu: one panel for every tile, over the picture beside the
1175 ⋯ that opened it (call-layout.js sets its place). */
1176.calls-tile-menu {
1177 position: absolute;
1178 z-index: 8;
1179 inset-block-start: var(--calls-menu-y, 0);
1180 inset-inline-start: var(--calls-menu-x, 0);
1181 display: flex;
1182 flex-direction: column;
1183 min-inline-size: 13rem;
1184 padding: 6px; /* spacing-allow: the tile menu's 6px inset keeps its rows concentric with the 14px corners */
1185 border-radius: 14px;
1186 background: var(--calls-panel);
1187 color: #fff;
1188 box-shadow: 0 8px 28px rgb(0 0 0 / 0.4);
1189}
1190.calls-tile-menu[hidden],
1191.calls-tile-menu [hidden] { display: none; }
1192.calls-menu button {
1193 display: flex;
1194 align-items: center;
1195 min-block-size: 40px;
1196 padding: 0 var(--rst-sp-3);
1197 border: 0;
1198 border-radius: 9px;
1199 background: none;
1200 color: #fff;
1201 font: inherit;
1202 font-size: 0.9375rem;
1203 text-align: start;
1204 cursor: pointer;
1205 inline-size: 100%;
1206}
1207.calls-menu button:hover:not(:disabled) { background: rgb(255 255 255 / 0.1); }
1208.calls-menu button:disabled { opacity: 0.45; cursor: default; }
1209.calls-tile-menu .calls-tile-remove { margin-block-start: var(--rst-sp-1); border-block-start: 1px solid rgb(255 255 255 / 0.12); border-radius: 0 0 9px 9px; }
1210
1211/* The tile being dragged: lifted over the others, with the accent edge,
1212 following the pointer (its translate is set as it moves); the others
1213 make room as it passes over their places. Reduced motion: no growth
1214 and no easing back. */
1215.calls-tile-lifted {
1216 z-index: 3;
1217 box-shadow: 0 10px 30px #0009, 0 0 0 3px var(--rst-accent);
1218 cursor: grabbing;
1219}
1220@media (prefers-reduced-motion: no-preference) {
1221 .calls-tile-lifted { scale: 1.04; }
1222}
1223
1224/* ── The bar ──
1225
1226 One glass capsule along the bottom, at most 760px wide, the buttons
1227 borderless on it: a white glyph, a light wash under the pointer, and
1228 a filled capsule only for a state — microphone or camera off in amber
1229 with the slashed glyph, sharing or a panel open in near-white with a
1230 dark glyph, Leave in red (CallOverlay's colours: amber 5.7:1, red
1231 5.0:1 and the near-white 15:1 for their glyphs). The state is also
1232 the slashed glyph, the word in .calls-toggle-state and aria-pressed,
1233 so never colour alone. Each button is named for a screen reader and
1234 has a tooltip, above it, on hover and on keyboard focus. */
1235.calls-window #controls {
1236 position: absolute;
1237 z-index: 6;
1238 inset-block-end: 16px;
1239 inset-inline-start: 50%;
1240 translate: -50% 0;
1241 display: flex;
1242 flex-wrap: nowrap;
1243 align-items: center;
1244 gap: 10px; /* spacing-allow: the call bar's buttons sit 10px apart, the Mac bar's */
1245 inline-size: min(760px, calc(100% - 32px));
1246 box-sizing: border-box;
1247 padding: 10px; /* spacing-allow: the call bar's 10px inset keeps its round buttons concentric with the bar's ends */
1248 margin: 0;
1249 border-radius: 999px;
1250 box-shadow: 0 4px 24px rgb(0 0 0 / 0.25);
1251}
1252.calls-sheet { display: contents; }
1253.calls-bar-spacer { flex: 1 1 24px; min-inline-size: 24px; }
1254.calls-bar-phone,
1255.calls-window #controls .calls-bar-phone { display: none; }
1256.calls-window #controls form { margin: 0; display: flex; }
1257.calls-window #controls button {
1258 position: relative;
1259 display: inline-grid;
1260 place-items: center;
1261 flex: none;
1262 inline-size: 44px;
1263 block-size: 44px;
1264 min-inline-size: 44px;
1265 min-block-size: 44px;
1266 padding: 0;
1267 border: 0;
1268 border-radius: 999px;
1269 background: transparent;
1270 box-shadow: none;
1271 color: #fff;
1272 font: inherit;
1273 font-weight: 500;
1274 cursor: pointer;
1275}
1276.calls-window #controls button[hidden] { display: none; }
1277.calls-window #controls button .icon { inline-size: 20px; block-size: 20px; grid-area: 1 / 1; }
1278.calls-window #controls .calls-g { display: contents; }
1279.calls-window #controls [aria-pressed='true'] > .calls-g-rest,
1280.calls-window #controls :not([aria-pressed='true']) > .calls-g-pressed,
1281.calls-window #controls #layout-toggle[data-mode='grid'] > .calls-g-speaker,
1282.calls-window #controls #layout-toggle:not([data-mode='grid']) > .calls-g-grid { display: none; }
1283/* The words are for a screen reader on the bar, and shown in a phone's
1284 controls sheet. */
1285.calls-bar-label {
1286 position: absolute;
1287 inline-size: 1px;
1288 block-size: 1px;
1289 overflow: hidden;
1290 clip-path: inset(50%);
1291 white-space: nowrap;
1292}
1293.calls-window #controls button:hover { background: rgb(255 255 255 / 0.1); }
1294.calls-window #controls button:active { background: rgb(255 255 255 / 0.18); }
1295.calls-window #controls button:disabled { opacity: 0.45; cursor: default; background: transparent; }
1296.calls-window #controls #mute[aria-pressed='true'],
1297.calls-window #controls #camera[aria-pressed='true'] {
1298 background: #a64d05;
1299 color: #fff;
1300}
1301.calls-window #controls #share[aria-pressed='true'],
1302.calls-window #controls button[aria-expanded='true'] {
1303 background: #f0f0f0;
1304 color: #1a1a1a;
1305}
1306.calls-window #controls #leave {
1307 inline-size: 62px;
1308 background: #d62924;
1309 color: #fff;
1310}
1311.calls-window #controls #leave:hover { background: #c42420; }
1312.calls-window #controls #leave:active { background: #b3201c; }
1313.calls-window #controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
1314/* The unread count on Chat: Calls' accent (Calma's hue 220, in its dark
1315 half here) with its own on-accent text. */
1316.calls-badge:empty { display: none; }
1317.calls-badge {
1318 position: absolute;
1319 inset-block-start: -3px;
1320 inset-inline-end: -3px;
1321 min-inline-size: 18px;
1322 block-size: 18px;
1323 padding: 0 5px; /* spacing-allow: the unread count badge on Chat, 18px tall with 5px round a digit */
1324 box-sizing: border-box;
1325 border-radius: 999px;
1326 background: var(--rst-accent);
1327 color: var(--rst-on-accent);
1328 font-size: 11px;
1329 font-weight: 700;
1330 line-height: 18px;
1331 text-align: center;
1332}
1333
1334/* 0.4.1: the bar's glyphs sit on the bar's centre line by their ink,
1335 not by their boxes. A Lucide glyph is drawn to its 24-unit square,
1336 and where its weight falls inside it is its own. Each glyph that
1337 needs it gets one line here, measured by the browser gate's glyphs
1338 scenario, which holds every glyph to within half a pixel of the
1339 centre line — the same rule, the same table and the same test as the
1340 native CallGlyph. */
1341.calls-window #controls button .icon { translate: 0 var(--calls-glyph-dy, 0px); }
1342.calls-window #controls #mute > .calls-g-rest > .icon { --calls-glyph-dy: -0.9px; }
1343.calls-window #controls form button .icon { --calls-glyph-dy: -1.6px; }
1344.calls-window #controls #toggle-chat .icon { --calls-glyph-dy: 0.75px; }
1345.calls-window #controls #leave .icon { --calls-glyph-dy: 1.1px; }
1346
1347/* The tooltip: the button's own words, above it, after a moment under
1348 the pointer and at once for the keyboard. */
1349.calls-window #controls [data-tip]::after {
1350 content: attr(data-tip);
1351 position: absolute;
1352 inset-block-end: calc(100% + 14px);
1353 inset-inline-start: 50%;
1354 translate: -50% 0;
1355 padding: var(--rst-sp-1) 10px; /* spacing-allow: the bar's tooltip, 4px by 10px round its words, the Mac tooltip's */
1356 border-radius: 8px;
1357 background: rgb(20 20 20 / 0.94);
1358 color: #fff;
1359 font-size: 0.75rem;
1360 font-weight: 500;
1361 line-height: 1.4;
1362 white-space: nowrap;
1363 pointer-events: none;
1364 opacity: 0;
1365 transition: opacity 0.12s ease-out;
1366}
1367.calls-window #controls [data-tip-on][aria-pressed='true']::after { content: attr(data-tip-on); }
1368.calls-window #controls [data-tip]:hover::after { opacity: 1; transition-delay: 0.5s; }
1369.calls-window #controls [data-tip]:focus-visible::after { opacity: 1; transition-delay: 0s; }
1370.calls-window #controls [aria-expanded='true']::after,
1371.calls-window[data-chrome='hidden'] #controls [data-tip]::after { opacity: 0; transition-delay: 0s; }
1372
1373/* ── The popovers: layout, devices and More ──
1374
1375 Over the picture above the button that opened it (call-window.js
1376 sets --calls-pop-x), read rather than glanced at: opaque and dark,
1377 with the dark theme's full-contrast labels (the Mac's panelFill). A
1378 popover holds the controls up while it is open. */
1379.calls-popover {
1380 position: absolute;
1381 z-index: 7;
1382 inset-block-end: calc(var(--calls-bar-reserve) + 8px);
1383 inset-inline-start: var(--calls-pop-x, 16px);
1384 box-sizing: border-box;
1385 max-inline-size: calc(100% - 24px);
1386 max-block-size: calc(100% - var(--calls-bar-reserve) - 28px);
1387 overflow: auto;
1388 padding: var(--rst-sp-3) 14px; /* spacing-allow: the bar's popovers have a 14px side inset, the Mac popover's */
1389 border-radius: 16px;
1390 background: var(--calls-panel);
1391 color: #fff;
1392 box-shadow: 0 8px 28px rgb(0 0 0 / 0.4);
1393}
1394.calls-popover[hidden] { display: none; }
1395.calls-popover-title { margin: 0 0 var(--rst-sp-2); font-size: 0.9375rem; font-weight: 650; }
1396.calls-popover-help { margin: 10px 0 0; /* spacing-allow: the popover's help line sits 10px under its control, the Mac popover's */ max-inline-size: 16rem; font-size: 0.8125rem; color: rgb(255 255 255 / 0.8); }
1397.calls-popover [estilo-call-segmented] { background: rgb(255 255 255 / 0.08); border-color: transparent; }
1398.calls-popover [estilo-call-segmented] button { color: #fff; min-inline-size: 88px; }
1399.calls-popover [estilo-call-segmented] [aria-pressed='true'] { background: #f0f0f0; color: #1a1a1a; border-color: transparent; }
1400.calls-window .calls-devices {
1401 inline-size: 320px;
1402 flex-direction: column;
1403 flex-wrap: nowrap;
1404 gap: var(--rst-sp-3);
1405 margin: 0;
1406}
1407.calls-window .calls-devices:not([hidden]) { display: flex; }
1408.calls-window .calls-devices > div { flex: none; }
1409.calls-window .calls-devices .calls-popover-title { margin: 0; }
1410.calls-window .calls-devices .calls-raw-help { color: rgb(255 255 255 / 0.8); }
1411.calls-menu { padding: 6px; /* spacing-allow: the More menu's 6px inset keeps its rows concentric with the 14px corners */ min-inline-size: 14rem; }
1412.calls-menu a.calls-menu-danger { color: #ff9c96; font-weight: 600; }
1413
1414/* ── Chat: a sidebar sliding over the picture's right-hand side ── */
1415.calls-chat-overlay {
1416 position: absolute;
1417 z-index: 5;
1418 /* 12px clear of the bar, level with a self view risen beside it. */
1419 inset-block: 12px calc(var(--calls-bar-reserve) + 12px);
1420 inset-inline-end: 12px;
1421 inline-size: min(320px, calc(100% - 24px));
1422 display: flex;
1423 flex-direction: column;
1424 border-radius: 16px;
1425 background: var(--rst-surface);
1426 color: var(--rst-text);
1427 box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
1428 transition: translate 0.2s ease-out, opacity 0.2s ease-out, display 0.2s allow-discrete;
1429}
1430.calls-chat-overlay[hidden] { display: none; translate: calc(100% + 12px) 0; opacity: 0; }
1431@starting-style {
1432 .calls-chat-overlay:not([hidden]) { translate: calc(100% + 12px) 0; opacity: 0; }
1433}
1434.calls-chat-overlay .chat {
1435 flex: 1;
1436 min-block-size: 0;
1437 margin: 0;
1438 border: 0;
1439 border-radius: 16px;
1440 padding: 14px 14px var(--rst-sp-3); /* spacing-allow: the chat sidebar's 14px inset, the Mac chat panel's */
1441}
1442.calls-chat-overlay .chat-title { color: var(--rst-text); font-size: 0.9375rem; font-weight: 650; }
1443.calls-chat-overlay .chat-log { flex: 1; min-block-size: 4rem; max-block-size: none; }
1444.calls-chat-overlay .calls-chat-collapsed { display: none; }
1445.calls-chat-close {
1446 position: absolute;
1447 inset-block-start: 8px;
1448 inset-inline-end: 8px;
1449 display: grid;
1450 place-items: center;
1451 inline-size: 32px;
1452 block-size: 32px;
1453 border: 0;
1454 border-radius: 999px;
1455 background: transparent;
1456 color: var(--rst-text);
1457 cursor: pointer;
1458}
1459.calls-chat-close:hover { background: rgb(255 255 255 / 0.1); }
1460.calls-chat-close .icon { inline-size: 18px; block-size: 18px; }
1461
1462/* A name rising clear of the bar moves with the bar's fade; the warm
1463 rim's own two transitions are kept beside it, or this would replace
1464 them. */
1465@media (prefers-reduced-motion: no-preference) {
1466 .calls-window .calls-tile-name {
1467 transition:
1468 --lvl var(--lvl-t, 300ms) ease-out,
1469 --on var(--on-t, 0ms) step-end,
1470 translate var(--calls-fade-in) ease-out;
1471 }
1472}
1473@media (prefers-reduced-motion: reduce) {
1474 .calls-fades,
1475 .calls-window #tiles[data-layout='speaker'],
1476 .calls-window #tiles > .calls-tile-pip { transition: none; }
1477 /* Panels fade rather than slide. */
1478 .calls-chat-overlay { transition: opacity 0.1s linear, display 0.1s allow-discrete; }
1479 .calls-chat-overlay[hidden] { translate: none; }
1480 @starting-style {
1481 .calls-chat-overlay:not([hidden]) { translate: none; opacity: 0; }
1482 }
1483}
1484
1485/* ── A phone: More controls on the left, Leave on the right, and the
1486 rest in a sheet above them, as the iPhone app has it ── */
1487@media (max-width: 599px), (max-height: 499px) and (pointer: coarse) {
1488 .calls-window { --calls-bar-reserve: 84px; }
1489 .calls-window #controls {
1490 inset-inline: 16px;
1491 inset-block-end: 16px;
1492 translate: none;
1493 inline-size: auto;
1494 justify-content: space-between;
1495 padding: 0;
1496 background: none;
1497 -webkit-backdrop-filter: none;
1498 backdrop-filter: none;
1499 box-shadow: none;
1500 pointer-events: none;
1501 }
1502 .calls-window #controls > button {
1503 pointer-events: auto;
1504 inline-size: 56px;
1505 block-size: 56px;
1506 background: var(--calls-glass);
1507 -webkit-backdrop-filter: blur(18px) saturate(1.6);
1508 backdrop-filter: blur(18px) saturate(1.6);
1509 box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
1510 }
1511 .calls-window #controls > button .icon { inline-size: 24px; block-size: 24px; }
1512 .calls-window #controls > #leave { inline-size: 56px; background: #d62924; }
1513 .calls-window #controls .calls-bar-phone { display: inline-grid; }
1514 .calls-window #controls [data-tip]::after { display: none; }
1515 .calls-bar-spacer { display: none; }
1516 .calls-sheet {
1517 display: none;
1518 pointer-events: auto;
1519 }
1520 .calls-sheet[data-open] {
1521 position: absolute;
1522 inset-block-end: calc(100% + 12px);
1523 inset-inline: 0;
1524 display: grid;
1525 grid-template-columns: repeat(3, minmax(0, 1fr));
1526 gap: var(--rst-sp-2);
1527 padding: var(--rst-sp-3);
1528 border-radius: 22px;
1529 background: color-mix(in srgb, var(--rst-surface) 96%, transparent);
1530 box-shadow: 0 8px 28px rgb(0 0 0 / 0.4);
1531 }
1532 .calls-window #controls .calls-sheet[data-open] > button,
1533 .calls-window #controls .calls-sheet[data-open] > form > button {
1534 display: flex;
1535 flex-direction: column;
1536 justify-content: center;
1537 gap: 6px; /* spacing-allow: a phone sheet button's glyph and word, 6px apart, as iOS's */
1538 inline-size: 100%;
1539 block-size: auto;
1540 min-block-size: 76px;
1541 padding: var(--rst-sp-2) var(--rst-sp-1);
1542 border-radius: 16px;
1543 background: rgb(255 255 255 / 0.08);
1544 font-size: var(--rst-fs-xs);
1545 line-height: 1.25;
1546 text-align: center;
1547 }
1548 .calls-sheet[data-open] > form { display: flex; }
1549 .calls-window #controls .calls-sheet[data-open] > button[hidden] { display: none; }
1550 .calls-window #controls .calls-sheet[data-open] .icon { inline-size: 22px; block-size: 22px; flex: none; }
1551 .calls-sheet[data-open] .calls-bar-label {
1552 position: static;
1553 inline-size: auto;
1554 block-size: auto;
1555 overflow: visible;
1556 clip-path: none;
1557 white-space: normal;
1558 }
1559 .calls-sheet[data-open] .calls-badge { inset-block-start: 6px; inset-inline-end: 10px; }
1560 .calls-popover {
1561 inset-inline: 12px;
1562 inline-size: auto;
1563 max-inline-size: none;
1564 }
1565 .calls-window .calls-devices { inline-size: auto; }
1566 .calls-chat-overlay {
1567 inset-inline: 8px;
1568 inset-block-start: 8px;
1569 inline-size: auto;
1570 }
1571 .calls-top { padding-inline: var(--rst-sp-4); }
1572 .calls-window #tiles > .calls-tile-pip {
1573 inline-size: clamp(88px, 28cqw, 150px);
1574 aspect-ratio: 3 / 4;
1575 }
1576 .calls-window #tiles[data-layout='speaker'] > figure:not([data-stage]) { aspect-ratio: 3 / 4; }
1577}
1578@media (max-height: 499px) and (pointer: coarse) {
1579 .calls-window #tiles > .calls-tile-pip { inline-size: clamp(88px, 20cqw, 150px); aspect-ratio: 4 / 3; }
1580 .calls-window #tiles[data-layout='speaker'] > figure:not([data-stage]) { aspect-ratio: 4 / 3; }
1581 .calls-sheet[data-open] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
1582 .calls-window #controls .calls-sheet[data-open] > button,
1583 .calls-window #controls .calls-sheet[data-open] > form > button { min-block-size: 64px; }
1584}
1585
1586/* ── "Report a problem" (spec §15.26) ──
1587
1588 report.js's sheet: a modal <dialog> over the call or the holding
1589 screen, in the page's own theme, which inside the call window is the
1590 window's dark one (color-scheme: dark is inherited into the top
1591 layer). Centred by the browser, and never wider than the screen less
1592 a margin, so a phone gets the whole width. */
1593.calls-report {
1594 box-sizing: border-box;
1595 inline-size: min(28rem, calc(100vw - 32px));
1596 max-block-size: calc(100dvh - 32px);
1597 overflow: auto;
1598 padding: var(--rst-sp-4);
1599 border: 1px solid var(--rst-line);
1600 border-radius: 16px;
1601 background: var(--rst-surface);
1602 color: var(--rst-text);
1603 box-shadow: var(--rst-shadow-pop);
1604}
1605/* On the holding screen the sheet is a child of <main>, a stack, whose
1606 rule would take the modal's auto margins and pin it to the top. */
1607[rst-stack] > dialog.calls-report:modal { margin: auto; }
1608.calls-report::backdrop { background: rgb(0 0 0 / 0.55); }
1609.calls-report-form { margin: 0; }
1610.calls-report-title { margin: 0 0 var(--rst-sp-3); font-size: 1.0625rem; font-weight: 650; }
1611.calls-report textarea { box-sizing: border-box; inline-size: 100%; resize: vertical; }
1612.calls-report-disclosure { margin: var(--rst-sp-3) 0 0; color: var(--rst-text-muted); font-size: var(--rst-fs-sm); }
1613.calls-report-error { margin: var(--rst-sp-3) 0 0; color: var(--rst-tone-negative-fg); font-size: var(--rst-fs-sm); }
1614.calls-report-actions {
1615 display: flex;
1616 flex-wrap: wrap;
1617 justify-content: flex-end;
1618 gap: var(--rst-sp-2);
1619 margin-block-start: var(--rst-sp-4);
1620}
1621.calls-report-done { border-radius: var(--rst-radius-sm); outline-offset: 4px; }
1622.calls-report-done p { margin: 0 0 var(--rst-sp-2); }
1623.calls-report-thanks { font-weight: 600; }
1624/* One click selects the whole reference, for copying by hand. */
1625.calls-report-ref {
1626 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1627 letter-spacing: 0.06em;
1628 -webkit-user-select: all;
1629 user-select: all;
1630}
1631.calls-report-copied { margin: 0; min-block-size: 1.2em; color: var(--rst-text-muted); font-size: var(--rst-fs-sm); }
1632/* Beside the way out of a call that is over, read like its links. */
1633.calls-report-after {
1634 padding: 0;
1635 border: 0;
1636 background: none;
1637 color: inherit;
1638 font: inherit;
1639 text-decoration: underline;
1640 cursor: pointer;
1641}
1642.calls-window .calls-status .calls-report-after { margin-inline-start: var(--rst-sp-2); color: #fff; font-weight: 600; }
1643.calls-quality-row .calls-raw-help { margin-block-start: var(--rst-sp-1); }
1644