@coolms/ui-react 0.1.0-alpha.4 → 0.1.0-alpha.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/kit.css CHANGED
@@ -28,10 +28,11 @@
28
28
  display: inline-flex;
29
29
  align-items: center;
30
30
  gap: 6px;
31
- min-height: var(--cms-row-height);
31
+ /* The contract's button height: 40px with a mouse, 44px on a touch screen (the token's coarse-pointer value). */
32
+ min-height: var(--cms-control-height-md);
32
33
  padding: 0 12px;
33
34
  border: 1px solid var(--cms-btn-border);
34
- border-radius: var(--cms-radius);
35
+ border-radius: var(--cms-radius-control);
35
36
  background: var(--cms-btn-bg);
36
37
  color: var(--cms-btn-text);
37
38
  font: inherit;
@@ -42,6 +43,8 @@
42
43
  .cms-button--primary:hover:not(:disabled) { background: var(--cms-accent-hover); border-color: var(--cms-accent-hover); }
43
44
  .cms-button--danger { background: var(--cms-danger); border-color: var(--cms-danger); color: var(--cms-text-inverse); }
44
45
  .cms-button--danger:hover:not(:disabled) { background: var(--cms-danger-text); border-color: var(--cms-danger-text); }
46
+ .cms-button--quiet { background: transparent; border-color: transparent; }
47
+ .cms-button--quiet:hover:not(:disabled) { background: var(--cms-btn-hover-bg); border-color: transparent; }
45
48
  .cms-button:disabled { opacity: 0.55; cursor: not-allowed; }
46
49
  .cms-button.is-busy { opacity: 0.8; cursor: progress; }
47
50
  .cms-button.is-locked { border-style: dashed; }
@@ -53,18 +56,18 @@
53
56
  width: var(--cms-row-height-sm);
54
57
  height: var(--cms-row-height-sm);
55
58
  border: 0;
56
- border-radius: var(--cms-radius-sm);
59
+ border-radius: var(--cms-radius-control);
57
60
  background: transparent;
58
61
  color: var(--cms-text-muted);
59
62
  cursor: pointer;
60
63
  }
61
- .cms-icon-button:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
62
64
 
63
65
  /* Fields */
64
66
  .cms-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
65
67
  .cms-field__label { color: var(--cms-text); font-weight: 600; }
66
68
  .cms-input {
67
- min-height: var(--cms-row-height);
69
+ /* A text field's and a select's height, as a button's. */
70
+ min-height: var(--cms-control-height-md);
68
71
  padding: 0 10px;
69
72
  border: 1px solid var(--cms-border-control);
70
73
  border-radius: var(--cms-radius);
@@ -73,6 +76,8 @@
73
76
  font: inherit;
74
77
  }
75
78
  .cms-input:focus { border-color: var(--cms-accent); }
79
+ .cms-textarea { padding: 8px 10px; line-height: 1.5; resize: vertical; }
80
+ .cms-input[type="date"], .cms-input[type="time"], .cms-input[type="datetime-local"] { color-scheme: inherit; }
76
81
  .cms-input:disabled { background: var(--cms-bg-muted); color: var(--cms-text-muted); cursor: not-allowed; }
77
82
  .cms-input:read-only:not(select) { background: var(--cms-surface-muted); }
78
83
  .cms-field.is-invalid .cms-input { border-color: var(--cms-danger); }
@@ -172,6 +177,28 @@
172
177
  .cms-empty__title { margin: 0 0 4px; color: var(--cms-text); font-weight: 600; }
173
178
  .cms-empty__hint { margin: 0; }
174
179
  .cms-empty__action { margin-top: 12px; }
180
+ /* The state component: one look for every state instead of content. Each token carries its own value as a fallback
181
+ until the kit pins the design tokens that define it. */
182
+ .cms-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--cms-space-3, 12px); color: var(--cms-text-muted); text-align: center; transition: opacity 120ms; }
183
+ .cms-state--page { flex: 1; min-height: 50vh; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
184
+ .cms-state--block { flex: 1; box-sizing: border-box; min-height: 100%; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
185
+ .cms-state--inline { display: inline-flex; flex-direction: row; gap: var(--cms-space-2, 8px); text-align: start; }
186
+ .cms-state__icon { display: inline-flex; color: var(--cms-text-muted); }
187
+ .cms-state.is-waiting > :not(.cms-state__text) { visibility: hidden; }
188
+ .cms-state.is-waiting > .cms-state__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
189
+ .cms-state__text { display: flex; flex-direction: column; gap: var(--cms-space-1, 4px); }
190
+ .cms-state--inline .cms-state__text { flex-direction: row; gap: var(--cms-space-2, 8px); }
191
+ .cms-state__title { color: var(--cms-text); font-weight: 600; }
192
+ .cms-state--inline .cms-state__title { font-weight: inherit; }
193
+ .cms-state__description { max-width: 48ch; }
194
+ .cms-state--error > svg { color: var(--cms-danger-text); }
195
+ .cms-state__spinner { width: var(--cms-spinner-size-block, 24px); height: var(--cms-spinner-size-block, 24px); animation: cms-spin var(--cms-spinner-duration, 800ms) linear infinite; }
196
+ .cms-state--page .cms-state__spinner { width: var(--cms-spinner-size-page, 32px); height: var(--cms-spinner-size-page, 32px); }
197
+ .cms-state--inline .cms-state__spinner { width: var(--cms-spinner-size-inline, 16px); height: var(--cms-spinner-size-inline, 16px); }
198
+ .cms-state__track { stroke: var(--cms-spinner-track, var(--cms-border)); stroke-width: var(--cms-spinner-stroke, 2px); vector-effect: non-scaling-stroke; }
199
+ .cms-state__arc { stroke: var(--cms-spinner-color, var(--cms-accent-text)); stroke-width: var(--cms-spinner-stroke, 2px); stroke-linecap: round; vector-effect: non-scaling-stroke; }
200
+ @keyframes cms-state-pulse { 50% { opacity: 0.35; } }
201
+ @media (prefers-reduced-motion: reduce) { .cms-state__spinner { animation: cms-state-pulse calc(2 * var(--cms-spinner-duration, 800ms)) ease-in-out infinite; } }
175
202
  .cms-error-banner {
176
203
  display: flex;
177
204
  align-items: center;
@@ -186,6 +213,45 @@
186
213
 
187
214
  /* Page header */
188
215
  .cms-page-header { padding: 16px 0 12px; border-bottom: 1px solid var(--cms-border-light); margin-bottom: 16px; }
216
+ /* section-header: row 1 the title, the primary and More; row 2 the context; no divider lines. */
217
+ .cms-section-header { display: flex; flex-direction: column; background: var(--cms-surface); }
218
+ .cms-section-header--full { padding-inline: var(--cms-space-5); }
219
+ .cms-section-header__row { display: flex; align-items: center; gap: var(--cms-space-2); height: var(--cms-pane-toolbar-height); min-width: 0; white-space: nowrap; }
220
+ .cms-section-header__row > .cms-icon { flex: none; color: var(--cms-text-secondary); }
221
+ .cms-section-header__row { position: relative; }
222
+ .cms-section-header__title { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--cms-font-size-title-md); font-weight: 600; color: var(--cms-text); }
223
+ .cms-section-header__description { flex: none; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
224
+ .cms-section-header__meta { display: inline-flex; flex: none; align-items: center; min-width: 0; }
225
+ /* The last step: the chips that are the only place their fact appears are cut, the last first, each its whole text kept. */
226
+ .cms-section-header__row--chips-cut .cms-section-header__meta { overflow: hidden; text-overflow: ellipsis; }
227
+ .cms-section-header__actions { display: flex; align-items: center; gap: var(--cms-space-1); flex: none; margin-inline-start: auto; }
228
+ .cms-section-header__secondary { gap: var(--cms-space-1); }
229
+ .cms-section-header__secondary--bare, .cms-section-header__primary--bare { padding-inline: var(--cms-space-2); }
230
+ /* Its contents fade, not the button: the reason drawn inside it keeps its full contrast. */
231
+ .cms-section-header__secondary[aria-disabled="true"] { cursor: not-allowed; }
232
+ .cms-section-header__secondary[aria-disabled="true"] > :not(.cms-section-header__tip) { opacity: .55; }
233
+ /* The parts measured out of sight, in a box of no size: each keeps its own width, and the page none of it. */
234
+ .cms-section-header__measure { position: absolute; top: 0; left: 0; display: flex; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
235
+ .cms-section-header__measure > span { flex: none; display: inline-flex; }
236
+ /* On a touch screen (a coarse pointer) an action shown as its icon is at least a touch target; a desktop browser in a
237
+ narrow window keeps desktop-size buttons. */
238
+ @media (pointer: coarse) {
239
+ .cms-section-header__secondary--bare, .cms-section-header__primary--bare, .cms-section-header__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
240
+ }
241
+ .cms-section-header__primary { display: inline-flex; align-items: center; }
242
+ /* A refused action's reason, drawn under the row at its end (the row is its box, so it never leaves the column, however
243
+ narrow): shown on hover, on keyboard focus and after a press. */
244
+ .cms-section-header__tip { position: absolute; top: calc(100% + var(--cms-space-1)); inset-inline-end: 0; z-index: 20; display: none; width: max-content; max-width: min(18rem, 100%); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); font-weight: 400; line-height: 1.4; text-align: start; white-space: normal; pointer-events: none; }
245
+ /* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
246
+ .cms-section-header__secondary:not([data-tip-dismissed]):focus-visible > .cms-section-header__tip, .cms-section-header__secondary:not([data-tip-dismissed])[data-reason-shown] > .cms-section-header__tip,
247
+ .cms-section-header__primary > .cms-button:not([data-tip-dismissed]):focus-visible ~ .cms-section-header__tip, .cms-section-header__primary > .cms-button:not([data-tip-dismissed])[data-reason-shown] ~ .cms-section-header__tip { display: block; }
248
+ .cms-section-header__primary .cms-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
249
+ .cms-section-header__primary--split > .cms-button:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
250
+ .cms-section-header__split { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 1px; padding-inline: var(--cms-space-2); }
251
+ .cms-section-header__more { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
252
+ .cms-section-header__more:hover { background: var(--cms-btn-hover-bg); }
253
+ .cms-section-header__more:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
254
+ .cms-section-header__context { display: flex; align-items: center; min-width: 0; height: var(--cms-pane-header-height); }
189
255
  .cms-page-header__back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--cms-accent-text); text-decoration: none; }
190
256
  .cms-page-header__back:hover { text-decoration: underline; }
191
257
  .cms-page-header__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
@@ -213,24 +279,75 @@
213
279
  .cms-tab__count { padding: 0 6px; border-radius: 8px; background: var(--cms-bg-muted); color: var(--cms-text-muted); font-size: 0.8125em; }
214
280
 
215
281
  /* List */
216
- .cms-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--cms-border); border-radius: var(--cms-radius); background: var(--cms-surface); }
282
+ .cms-list { margin: 0; padding: 0; list-style: none; background: var(--cms-surface); }
217
283
  .cms-list__row {
218
284
  display: flex;
219
285
  align-items: center;
220
- gap: 10px;
286
+ gap: var(--cms-space-3);
221
287
  min-height: var(--cms-row-height-lg);
222
- padding: 4px 12px;
288
+ padding: var(--cms-space-3) var(--cms-space-4);
223
289
  border-bottom: 1px solid var(--cms-border-light);
224
290
  color: var(--cms-text);
225
291
  cursor: pointer;
226
292
  }
227
293
  .cms-list__row:last-child { border-bottom: 0; }
228
- .cms-list__row:hover { background: var(--cms-surface-hover); }
229
294
  .cms-list__row.is-selected { background: var(--cms-selected-light); box-shadow: inset 3px 0 0 var(--cms-selected); }
230
295
  .cms-list__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
231
296
  .cms-list__primary, .cms-list__secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
232
297
  .cms-list__secondary { color: var(--cms-text-muted); font-size: 0.875em; }
233
298
  .cms-list__meta { flex: none; color: var(--cms-meta-text); font-size: 0.8125em; }
299
+ /* One anatomy for every row (contract list, row): the title semibold while unread; the meta with a count under it. */
300
+ .cms-list__primary.is-unread { font-weight: var(--cms-font-weight-semibold); }
301
+ .cms-list__end { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: var(--cms-space-1); }
302
+ .cms-list__count { min-width: 18px; height: 18px; font-size: var(--cms-font-size-label-sm); }
303
+ .cms-list__pull { display: flex; align-items: center; justify-content: center; gap: var(--cms-space-2); min-height: var(--cms-control-height-sm); overflow: hidden; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
304
+
305
+ /* The screen shell (contract screen-shell): one bar, the content scrolling on its own, the primary floating
306
+ at the bottom right above the section bar. */
307
+ .cms-screen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--cms-surface); }
308
+ .cms-screen__bar { display: flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-topbar-height); padding: 0 var(--cms-space-2); border-bottom: 1px solid var(--cms-border-light); }
309
+ /* Back gives way before the title: it takes all of the missing width, down to its icon, and only then is the title cut.
310
+ The weight is large enough that the title's own share rounds to nothing: a share of a hundredth of a pixel would cut it. */
311
+ .cms-screen__leading { display: flex; flex: 0 1000000 auto; align-items: center; max-width: 40%; min-width: var(--cms-touch-target-min); }
312
+ .cms-screen__leading:empty { display: none; }
313
+ /* Back is one row: the strut makes it the full height, so a name with no room for a readable piece wraps under it and is
314
+ not drawn. The name stays in the text, so Back is still named by it. Clipped, not scrolled: a find in the page moves nothing. */
315
+ .cms-screen__back { display: inline-flex; flex-wrap: wrap; align-content: flex-start; align-items: center; overflow: hidden; overflow: clip; gap: var(--cms-space-1); min-width: 0; height: var(--cms-control-height-md); padding: 0 var(--cms-space-2); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); font: inherit; text-decoration: none; cursor: pointer; }
316
+ .cms-screen__back::before { content: ""; width: 0; height: 100%; margin-inline-end: calc(-1 * var(--cms-space-1)); }
317
+ .cms-screen__back-name { flex: 1 1 24px; min-width: 24px; max-width: max-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
318
+ .cms-screen__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
319
+ /* The title with the filter's choice: the place's name gives way first, down to 24px of it; with less it is not drawn,
320
+ nor its dot, and the choice has the whole title, cut last. The title is one line: the place and its dot wrap under it
321
+ and are clipped there, so they stay in the text. Their share of the line is theirs up to what they need. */
322
+ .cms-screen__title--filtered { display: flex; flex-wrap: wrap-reverse; align-content: flex-end; height: 1lh; overflow: hidden; overflow: clip; }
323
+ .cms-screen__title-place { display: flex; flex: 1 1 40px; min-width: 0; max-width: max-content; }
324
+ .cms-screen__title-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
325
+ .cms-screen__title-dot { flex: none; white-space: pre; }
326
+ .cms-screen__title-choice { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
327
+ /* The place's name and the choice's whole, measured and not drawn: it takes no room and reaches past nothing. */
328
+ .cms-screen__ruler { position: absolute; width: 0; height: 0; overflow: hidden; font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-semibold); visibility: hidden; }
329
+ .cms-screen__ruler > span { display: inline-block; white-space: pre; }
330
+ .cms-screen__trailing { display: flex; flex: none; align-items: center; gap: var(--cms-space-1); }
331
+ .cms-screen__search { display: flex; flex: 1 1 auto; min-width: 0; }
332
+ .cms-screen__search > * { flex: 1 1 auto; min-width: 0; }
333
+ .cms-screen__icon { width: var(--cms-control-height-md); height: var(--cms-control-height-md); }
334
+ /* More while the filter in it is not the default one; its hover keeps the accent. */
335
+ .cms-icon-button.cms-screen__icon.cms-screen__icon--active { background: var(--cms-accent-light); color: var(--cms-accent-text); }
336
+ .cms-screen__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
337
+ .cms-screen__primary { position: absolute; right: var(--cms-space-4); bottom: var(--cms-space-4); z-index: 2; width: calc(var(--cms-control-height-lg) + var(--cms-space-3)); height: calc(var(--cms-control-height-lg) + var(--cms-space-3)); min-height: 0; padding: 0; border-radius: 50%; justify-content: center; box-shadow: var(--cms-shadow-md); }
338
+ /* A refused primary stays, greyed as a whole, as the header's does: a wash of the surface over the button and its icon,
339
+ under the reason drawn above it, which keeps its full contrast (an opacity on the button would fade the reason too). */
340
+ .cms-screen__primary[aria-disabled="true"] { cursor: not-allowed; }
341
+ .cms-screen__primary[aria-disabled="true"]::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--cms-surface); opacity: .45; pointer-events: none; }
342
+ /* Its reason, above the button at its end, never wider than the screen: shown on keyboard focus and after a press (on
343
+ hover too, below), until Escape. */
344
+ .cms-screen__tip { position: absolute; bottom: calc(100% + var(--cms-space-2)); inset-inline-end: 0; z-index: 20; display: none; width: max-content; max-width: min(18rem, calc(100vw - 2 * var(--cms-space-4))); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); font-weight: 400; line-height: 1.4; text-align: start; white-space: normal; pointer-events: none; }
345
+ .cms-screen__primary:not([data-tip-dismissed]):focus-visible > .cms-screen__tip, .cms-screen__primary:not([data-tip-dismissed])[data-reason-shown] > .cms-screen__tip { display: block; }
346
+ /* bar-hidden: the bar steps out of view, collapsed rather than removed, so focus can still reach it
347
+ (and brings it back). */
348
+ .cms-screen[data-bar-hidden] > .cms-screen__bar { height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; overflow: hidden; }
349
+ @media (prefers-reduced-motion: reduce) { .cms-screen__bar { transition: none; animation: none; } }
350
+ .cms-screen--with-primary .cms-screen__content { padding-bottom: calc(var(--cms-control-height-lg) + var(--cms-space-3) + 2 * var(--cms-space-4)); }
234
351
 
235
352
  /* Avatar */
236
353
  .cms-avatar {
@@ -250,6 +367,10 @@
250
367
  .cms-avatar__presence.is-online { background: var(--cms-success); }
251
368
  .cms-avatar__presence.is-away { background: var(--cms-warning); }
252
369
  .cms-avatar__presence.is-offline { background: var(--cms-meta-subtle); }
370
+ .cms-avatar__presence.is-connected { background: var(--cms-success); }
371
+ .cms-avatar__presence.is-reconnecting { background: var(--cms-warning); }
372
+ .cms-avatar__presence.is-disconnected { background: var(--cms-text-muted); }
373
+ .cms-avatar--deleted { background: var(--cms-surface-muted); color: var(--cms-text-muted); }
253
374
  .cms-avatar--tint-1 { background: var(--cms-avatar-1-bg); color: var(--cms-avatar-1-fg); }
254
375
  .cms-avatar--tint-2 { background: var(--cms-avatar-2-bg); color: var(--cms-avatar-2-fg); }
255
376
  .cms-avatar--tint-3 { background: var(--cms-avatar-3-bg); color: var(--cms-avatar-3-fg); }
@@ -271,22 +392,49 @@
271
392
  }
272
393
  .cms-menu__item { display: flex; align-items: center; gap: 8px; min-height: var(--cms-row-height-sm); padding: 0 10px; border-radius: var(--cms-radius-sm); cursor: pointer; }
273
394
  .cms-menu__item:hover, .cms-menu__item:focus { background: var(--cms-hover-bg); outline: none; }
274
- .cms-menu__label { flex: 1; }
395
+ /* An item's icon and its words share one line, centred on each other. */
396
+ .cms-menu__label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
397
+ .cms-menu__label > svg { flex: none; }
398
+ /* A single choice's mark: its place is kept on every choice, so the labels line up. */
399
+ .cms-menu__check { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent-text); }
400
+ /* A group of choices among other items: a line before it, its name over it. */
401
+ .cms-menu__separator { height: 1px; margin: var(--cms-space-1) 0; background: var(--cms-border); }
402
+ .cms-menu__group { padding: var(--cms-space-1) 10px; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
275
403
  .cms-menu__item.is-danger { color: var(--cms-danger-text); }
276
404
  .cms-menu__item.is-refused { color: var(--cms-text-muted); cursor: not-allowed; }
277
405
  .cms-menu__refusal { font-size: 0.8125em; }
278
406
 
407
+ /* One notification: its row (the title, the time, the body in one line until expanded), the chevron beside it, and a
408
+ button action under the text. Unread: the title in weight and a dot. */
409
+ .cms-notification { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--cms-space-1); padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-md); }
410
+ .cms-notification__row { display: flex; align-items: flex-start; gap: var(--cms-space-3); min-width: 0; padding: var(--cms-space-2); border-radius: var(--cms-radius-md); color: var(--cms-text); cursor: pointer; }
411
+ .cms-notification__row:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
412
+ .cms-notification__leading { flex: none; display: inline-flex; }
413
+ .cms-notification__text { display: flex; flex: 1; flex-direction: column; gap: var(--cms-space-1); min-width: 0; }
414
+ .cms-notification__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--cms-space-2); }
415
+ .cms-notification__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
416
+ .cms-notification.is-unread .cms-notification__title { font-weight: var(--cms-font-weight-semibold); }
417
+ .cms-notification__time { flex: none; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
418
+ .cms-notification__body { overflow: hidden; color: var(--cms-text-muted); text-overflow: ellipsis; white-space: nowrap; }
419
+ .cms-notification.is-expanded .cms-notification__body { white-space: pre-wrap; overflow-wrap: break-word; }
420
+ .cms-notification__dot { flex: none; width: 8px; height: 8px; margin-top: var(--cms-space-2); border-radius: var(--cms-radius-pill); background: var(--cms-accent); }
421
+ .cms-notification__chevron { display: inline-flex; align-items: center; justify-content: center; width: var(--cms-control-height-md); height: var(--cms-control-height-md); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); cursor: pointer; }
422
+ .cms-notification__chevron:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
423
+ .cms-notification.is-expanded .cms-notification__chevron svg { transform: rotate(180deg); }
424
+ .cms-notification__action { grid-column: 1; justify-self: start; margin: 0 0 var(--cms-space-2) var(--cms-space-2); }
425
+
279
426
  /*
280
427
  * The Workspace: the shell, its lists, chat, the call and sign-in. Same rule as above: only --cms-* tokens. The chrome
281
428
  * (the rail, the incoming call, the sign-in brand side) stays navy in both themes.
282
429
  */
283
430
  .cms-icon { flex: none; }
284
- :where(.cms-shell__item, .cms-chip, .cms-mail-row, .cms-call-button, .cms-call-bar__icon, .cms-composer__send-round, .cms-signin-form__show):focus-visible {
431
+ .cms-icon--blank { display: inline-block; }
432
+ :where(.cms-shell__item, .cms-filter-menu, .cms-mail-row__open, .cms-mail-row__check, .cms-call-button, .cms-call-bar__icon, .cms-composer__send-round, .cms-signin-form__show):focus-visible {
285
433
  outline: 2px solid var(--cms-focus-ring);
286
434
  outline-offset: 2px;
287
435
  }
288
436
 
289
- .cms-button--chrome { background: var(--cms-button-chrome-bg); border-color: var(--cms-button-chrome-border); color: var(--cms-on-chrome); border-radius: var(--cms-radius-control); font-weight: var(--cms-font-weight-semibold); }
437
+ .cms-button--chrome { background: var(--cms-button-chrome-bg); border-color: var(--cms-button-chrome-border); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }
290
438
  .cms-button--chrome:hover:not(:disabled) { background: var(--cms-sidebar-hover); border-color: var(--cms-button-chrome-border); }
291
439
 
292
440
  /* Badge, pill */
@@ -346,7 +494,7 @@
346
494
  .cms-shell__main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
347
495
  .cms-shell__main > :only-child { flex: 1; min-height: 0; }
348
496
 
349
- .cms-server-switch { display: inline-flex; align-items: center; gap: var(--cms-space-2); height: 36px; padding: 0 var(--cms-space-3); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-pill); background: var(--cms-surface); color: var(--cms-text); font: inherit; cursor: pointer; }
497
+ .cms-server-switch { display: inline-flex; align-items: center; gap: var(--cms-space-2); height: 36px; padding: 0 var(--cms-space-3); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-control); background: var(--cms-surface); color: var(--cms-text); font: inherit; cursor: pointer; }
350
498
 
351
499
  /* Search */
352
500
  .cms-search { display: flex; align-items: center; gap: var(--cms-space-2); height: 40px; padding: 0 var(--cms-space-4); border-radius: var(--cms-radius-pill); background: var(--cms-surface-muted); color: var(--cms-text-muted); }
@@ -354,27 +502,59 @@
354
502
  .cms-search__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cms-text); font: inherit; outline: none; }
355
503
  .cms-search__input::placeholder { color: var(--cms-text-muted); }
356
504
 
357
- /* Filter chips */
358
- .cms-chips { display: flex; flex-wrap: wrap; gap: var(--cms-space-2); }
359
- .cms-chip { display: inline-flex; align-items: center; gap: var(--cms-space-1); height: 32px; padding: 0 var(--cms-space-4); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-pill); background: var(--cms-surface); color: var(--cms-text-body); font: inherit; font-size: var(--cms-font-size-meta); cursor: pointer; }
360
- .cms-chip:hover { background: var(--cms-surface-muted); }
361
- .cms-chip.is-on { border-color: var(--cms-button-chrome-bg); background: var(--cms-button-chrome-bg); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }
505
+ /* The filter (contract filter-menu): on the default choice the funnel alone, on any other the choice's name in the
506
+ accent: whole, up to the button's most width, then cut with an ellipsis, so a very long one leaves the list's name room. */
507
+ .cms-filter-menu { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: var(--cms-space-1); box-sizing: border-box; width: var(--cms-control-height-md); height: var(--cms-control-height-md); padding: 0; border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); font: inherit; white-space: nowrap; cursor: pointer; }
508
+ .cms-filter-menu--active { background: var(--cms-accent-light); color: var(--cms-accent-text); }
509
+ .cms-filter-menu--named { width: auto; max-width: 176px; padding: 0 var(--cms-space-2) 0 var(--cms-space-3); }
510
+ .cms-filter-menu__choice { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
511
+
512
+ /* A list's second row: the name gives way, the filter keeps its place and its whole width. */
513
+ .cms-list-head { display: flex; align-items: center; gap: var(--cms-space-2); box-sizing: border-box; width: 100%; min-width: 0; height: var(--cms-pane-header-height); min-height: var(--cms-pane-header-height); }
514
+ .cms-list-head__leading { display: inline-flex; flex: none; align-items: center; }
515
+ .cms-list-head__name { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--cms-text); font-size: var(--cms-font-size-title-sm); font-weight: var(--cms-font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
362
516
 
363
517
  /* Panes */
364
518
  .cms-panes { display: grid; height: 100%; min-height: 0; }
365
519
  .cms-panes--two { grid-template-columns: 340px 1fr; }
366
520
  .cms-panes--three { grid-template-columns: 240px 380px 1fr; }
367
- .cms-panes__pane { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
521
+ .cms-panes__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
522
+ /* A column (contract split-panes, grid: each pane has exactly one scroll region): its head stays at the top and its body
523
+ scrolls on its own, filling the rest of the pane, the screen shell or any box of a definite height. */
524
+ .cms-column { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; min-width: 0; min-height: 0; }
525
+ .cms-column__head { flex: none; }
526
+ .cms-column__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
527
+ /* In a screen shell (a phone) the shell's bar is the head that stays and its content the one scroll region, which pull
528
+ to refresh reads: a column there grows with its list and does not scroll on its own. */
529
+ .cms-screen__content .cms-column { flex: none; height: auto; }
530
+ .cms-screen__content .cms-column__body { overflow-y: visible; }
531
+ .cms-panes--sized { position: relative; }
532
+ .cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
533
+ .cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
534
+ /* The splitter (contract `splitter`): an 8px strip between two columns that draws nothing at rest; on hover and while
535
+ dragged, the accent line down its middle; with keyboard focus, the same line in the focus ring's colour. */
536
+ .cms-splitter { position: relative; z-index: 2; flex: none; align-self: stretch; width: 8px; margin-inline: -4px; cursor: col-resize; touch-action: none; }
537
+ .cms-splitter:hover, .cms-splitter.is-dragging { background: linear-gradient(to right, transparent 3px, var(--cms-accent) 3px, var(--cms-accent) 5px, transparent 5px); }
538
+ /* Keyboard focus is the same one line, in the focus ring's colour: a ring around the 8px strip would draw two. */
539
+ .cms-splitter:focus-visible { outline: none; background: linear-gradient(to right, transparent 3px, var(--cms-focus-ring) 3px, var(--cms-focus-ring) 5px, transparent 5px); }
540
+ :root:has(.cms-splitter.is-dragging) { cursor: col-resize; user-select: none; }
541
+ .cms-panes__splitter { position: absolute; top: 0; bottom: 0; left: calc(var(--split-at) - 4px); margin: 0; }
542
+ .cms-panes.is-resizing { cursor: col-resize; user-select: none; }
368
543
  .cms-panes__pane:first-child { background: var(--cms-bg); }
369
544
  .cms-panes__pane:last-child { border-right: 0; }
370
- .cms-panes__back { display: none; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-3) var(--cms-space-4); border-bottom: 1px solid var(--cms-border); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
545
+ .cms-panes__back { display: none; flex: none; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-3) var(--cms-space-4); border-bottom: 1px solid var(--cms-border); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
371
546
 
372
547
  /* Mail row */
373
548
  .cms-mail-row {
374
549
  display: flex;
550
+ align-items: flex-start;
375
551
  gap: var(--cms-space-3);
552
+ box-sizing: border-box;
376
553
  width: 100%;
377
- padding: var(--cms-space-4) var(--cms-space-5);
554
+ /* Three lines at every width (the sender and the time; the subject; the preview), never shorter than the three-line
555
+ token and taller as the text grows. */
556
+ min-height: var(--cms-list-row-height-three-line);
557
+ padding: 10px var(--cms-space-4);
378
558
  border: 0;
379
559
  border-bottom: 1px solid var(--cms-border-light);
380
560
  background: var(--cms-surface);
@@ -383,15 +563,46 @@
383
563
  text-align: left;
384
564
  cursor: pointer;
385
565
  }
386
- .cms-mail-row:hover { background: var(--cms-surface-muted); }
566
+ .cms-mail-row__open { display: flex; align-items: flex-start; gap: var(--cms-space-3); flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
567
+ .cms-mail-row__lead { position: relative; flex: none; width: 40px; height: 40px; }
568
+ .cms-mail-row__check {
569
+ appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 50%; opacity: 0; cursor: pointer;
570
+ background: var(--cms-surface) center / 18px 18px no-repeat; box-shadow: inset 0 0 0 2px var(--cms-border);
571
+ }
572
+ .cms-mail-row__check:checked {
573
+ background-color: var(--cms-accent); box-shadow: none;
574
+ background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12 5 5 9-10%27/%3E%3C/svg%3E");
575
+ }
576
+ .cms-mail-row__check[aria-disabled="true"] { cursor: progress; }
577
+ /* The checkbox takes the avatar's place while something is selected, on keyboard focus, and under a fine pointer's
578
+ hover (below): a tap leaves neither, so with nothing selected a touch screen shows every avatar. */
579
+ .cms-mail-row:is(.is-selecting, .is-checked, :has(:focus-visible)) .cms-mail-row__check { opacity: 1; }
580
+ .cms-mail-row:is(.is-selecting, .is-checked, :has(:focus-visible)) .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
581
+ /* Hover, only where hover exists: a touch screen keeps a tapped control's hover after the tap (a row's tint, an
582
+ icon button's, a filter's, a toolbar action's tooltip). */
583
+ @media (hover: hover) and (pointer: fine) {
584
+ .cms-list__row:not(.is-selected):hover { background: var(--cms-surface-hover); }
585
+ .cms-notification__row:hover { background: var(--cms-hover-bg); }
586
+ .cms-mail-row:hover { background: var(--cms-surface-muted); }
587
+ .cms-mail-row:hover .cms-mail-row__check { opacity: 1; }
588
+ .cms-mail-row:hover .cms-mail-row__lead > .cms-avatar { visibility: hidden; }
589
+ .cms-icon-button:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
590
+ .cms-screen__back:hover { background: var(--cms-hover-bg); color: var(--cms-text); }
591
+ .cms-filter-menu:not(.cms-filter-menu--active):hover { background: var(--cms-hover-bg); color: var(--cms-text); }
592
+ .cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-btn-hover-bg); }
593
+ .cms-pane-toolbar__more:hover { background: var(--cms-btn-hover-bg); }
594
+ .cms-pane-toolbar__action:not([data-tip-dismissed]):hover > .cms-pane-toolbar__tip { display: block; }
595
+ .cms-screen__primary:not([data-tip-dismissed]):hover > .cms-screen__tip, .cms-section-header__secondary:not([data-tip-dismissed]):hover > .cms-section-header__tip, .cms-section-header__primary > .cms-button:not([data-tip-dismissed]):hover ~ .cms-section-header__tip { display: block; }
596
+ .cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip) { overflow: visible; }
597
+ }
387
598
  .cms-mail-row.is-selected { background: var(--cms-row-selected); }
388
- .cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
599
+ .cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
389
600
  .cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
390
- .cms-mail-row__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-body-lg); }
601
+ .cms-mail-row__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-body); }
391
602
  .cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
392
- .cms-mail-row__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
393
- .cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
394
- .cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
603
+ .cms-mail-row__subject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-meta); }
604
+ .cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
605
+ .cms-mail-row__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
395
606
  .cms-mail-row.is-unread .cms-mail-row__from, .cms-mail-row.is-unread .cms-mail-row__subject { font-weight: var(--cms-font-weight-semibold); }
396
607
  .cms-mail-row .cms-icon { color: var(--cms-text-muted); }
397
608
 
@@ -413,8 +624,9 @@
413
624
  .cms-composer--reply .cms-composer__title { flex-basis: 100%; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
414
625
  .cms-composer--reply .cms-composer__input { flex-basis: 100%; padding: var(--cms-space-2) var(--cms-space-3); border-color: transparent; }
415
626
  .cms-composer--reply .cms-composer__send { margin-left: auto; }
627
+ .cms-composer--reply .cms-composer__leading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); min-width: 0; }
416
628
  .cms-composer__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
417
- .cms-composer__send-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cms-accent); color: var(--cms-accent-fg); cursor: pointer; }
629
+ .cms-composer__send-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--cms-radius-control); background: var(--cms-accent); color: var(--cms-accent-fg); cursor: pointer; }
418
630
  .cms-composer__send-round:disabled, .cms-composer__send:disabled { opacity: 0.55; cursor: not-allowed; }
419
631
 
420
632
  /* Call */
@@ -423,7 +635,7 @@
423
635
  .cms-call-incoming__name { margin: var(--cms-space-4) 0 0; font-size: var(--cms-font-size-title-lg); font-weight: var(--cms-font-weight-bold); }
424
636
  .cms-call-incoming__what { margin: 0; color: var(--cms-sidebar-text); }
425
637
  .cms-call-incoming__actions { display: flex; gap: var(--cms-space-12); margin-top: var(--cms-space-6); }
426
- .cms-call-button { display: inline-flex; flex-direction: column; align-items: center; gap: var(--cms-space-2); border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
638
+ .cms-call-button { display: inline-flex; flex-direction: column; align-items: center; gap: var(--cms-space-2); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: inherit; font: inherit; cursor: pointer; }
427
639
  .cms-call-button__disc { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--cms-surface-muted); color: var(--cms-text); }
428
640
  .cms-call-button.is-pressed .cms-call-button__disc { background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
429
641
  .cms-call-button--accept .cms-call-button__disc { background: var(--cms-chrome-success); color: var(--cms-chrome-success-fg); }
@@ -447,7 +659,7 @@
447
659
  .cms-call-bar__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--cms-radius-control); background: var(--cms-sidebar-active); color: var(--cms-on-chrome); cursor: pointer; }
448
660
  .cms-call-bar__icon[aria-pressed='true'] { background: var(--cms-on-chrome); color: var(--cms-sidebar-bg); }
449
661
  .cms-call-bar__icon--hang-up { background: var(--cms-danger); color: var(--cms-text-inverse); }
450
- .cms-call-bar .cms-button--primary { border-radius: var(--cms-radius-control); font-weight: var(--cms-font-weight-semibold); }
662
+ .cms-call-bar .cms-button--primary { font-weight: var(--cms-font-weight-semibold); }
451
663
 
452
664
  /* Sign-in */
453
665
  .cms-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; font-family: var(--cms-font-sans); }
@@ -465,12 +677,12 @@
465
677
  .cms-signin-form__title { margin: 0; font-size: var(--cms-font-size-display-sm); font-weight: var(--cms-font-weight-bold); }
466
678
  .cms-signin-form__server { display: flex; align-items: center; gap: var(--cms-space-2); margin: 0 0 var(--cms-space-4); color: var(--cms-text-muted); }
467
679
  .cms-signin-form__label { margin-top: var(--cms-space-2); font-weight: var(--cms-font-weight-medium); }
468
- .cms-field { height: 44px; padding: 0 var(--cms-space-4); border: 1px solid var(--cms-border-input); border-radius: var(--cms-radius-field); background: var(--cms-input-bg); color: var(--cms-text); font: inherit; font-size: var(--cms-font-size-body-lg); }
469
- .cms-field:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
680
+ /* The sign-in form's own inputs: a field's frame (.cms-field) is a different thing, and none of this reaches it. */
681
+ .cms-signin-form__input { height: 44px; margin-bottom: 12px; padding: 0 var(--cms-space-4); border: 1px solid var(--cms-border-input); border-radius: var(--cms-radius-field); background: var(--cms-input-bg); color: var(--cms-text); font: inherit; font-size: var(--cms-font-size-body-lg); }
682
+ .cms-signin-form__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
470
683
  .cms-signin-form__password { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
471
- .cms-signin-form__password .cms-field { margin-bottom: 0; }
472
- .cms-signin-form__password .cms-field { flex: 1; padding-right: 64px; }
473
- .cms-signin-form__show { position: absolute; top: 50%; line-height: 1; right: var(--cms-space-3); transform: translateY(-50%); border: 0; background: transparent; color: var(--cms-text-body); font: inherit; cursor: pointer; }
684
+ .cms-signin-form__password .cms-signin-form__input { flex: 1; margin-bottom: 0; padding-right: 64px; }
685
+ .cms-signin-form__show { position: absolute; top: 50%; line-height: 1; right: var(--cms-space-3); transform: translateY(-50%); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-body); font: inherit; cursor: pointer; }
474
686
  .cms-signin-form__forgot { align-self: flex-end; color: var(--cms-text); }
475
687
  .cms-signin-form__error { margin: 0; color: var(--cms-danger-text); }
476
688
  .cms-signin-form__submit { justify-content: center; height: 48px; margin-top: var(--cms-space-4); font-size: var(--cms-font-size-body-lg); }
@@ -478,6 +690,59 @@
478
690
  .cms-signin-form__or::before, .cms-signin-form__or::after { content: ''; flex: 1; height: 1px; background: var(--cms-border); }
479
691
  .cms-signin-form__create { justify-content: center; height: 48px; border-color: var(--cms-border-input); border-radius: var(--cms-radius-control); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
480
692
 
693
+ /* The file viewer: dark whatever the scheme, covering the page. It never scrolls as a document; its content does. */
694
+ /* One column no wider than the screen: a bar wider than a phone scrolls in its place, it does not widen the viewer. */
695
+ .cms-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) auto auto; background: #0e1116; color: #f4f5f7; }
696
+ .cms-viewer:focus { outline: none; }
697
+ .cms-viewer__top { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; padding: 0 var(--cms-space-3); border-bottom: 1px solid #2a2f38; }
698
+ .cms-viewer__badge { flex: none; display: inline-flex; }
699
+ .cms-viewer__name { margin: 0; min-width: 0; font-size: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
700
+ .cms-viewer__position, .cms-viewer__status { flex: none; color: #a8afbb; white-space: nowrap; }
701
+ .cms-viewer__space { flex: 1 1 0; min-width: 0; }
702
+ .cms-viewer__actions { display: inline-flex; gap: var(--cms-space-1); flex: none; }
703
+ .cms-viewer__icon, .cms-viewer__button { display: inline-flex; align-items: center; justify-content: center; gap: var(--cms-space-2); height: 36px; border: 0; border-radius: var(--cms-radius-control); background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
704
+ .cms-viewer__icon { flex: none; width: 36px; }
705
+ .cms-viewer__button { flex: none; padding: 0 var(--cms-space-3); }
706
+ .cms-viewer__icon:hover, .cms-viewer__button:hover { background: #262b34; }
707
+ .cms-viewer :focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
708
+ .cms-viewer__button--edit, .cms-viewer__button--edit:hover { background: var(--cms-accent); color: #1a1a1a; font-weight: 600; }
709
+ .cms-viewer__more { display: none; position: relative; flex: none; }
710
+ .cms-viewer__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 3; display: flex; flex-direction: column; align-items: stretch; min-width: 200px; padding: var(--cms-space-1); border: 1px solid #2a2f38; border-radius: var(--cms-radius-md); background: #1a1e25; }
711
+ .cms-viewer__menu .cms-viewer__button { justify-content: flex-start; min-height: var(--cms-touch-target-min); }
712
+ .cms-viewer__body { display: flex; min-height: 0; }
713
+ .cms-viewer__thumbnails { flex: none; width: 124px; padding: var(--cms-space-3); overflow: auto; border-right: 1px solid #2a2f38; }
714
+ .cms-viewer__content { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; }
715
+ /* A state instead of the file, in the viewer's own dark colours whatever the page's scheme. */
716
+ .cms-viewer .cms-state { min-height: 100%; color: #a8afbb; }
717
+ .cms-viewer .cms-state__title { color: #f4f5f7; }
718
+ /* The file changed elsewhere while being edited: the question across the top of the content, above the editor. */
719
+ .cms-viewer__conflict { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); margin: 0; padding: var(--cms-space-2) var(--cms-space-3); border-bottom: 1px solid var(--cms-warning); background: #262b34; }
720
+ .cms-viewer__conflict-text { flex: 1 1 16rem; min-width: 0; margin: 0; }
721
+ /* The next arrow stands clear of the content's own vertical scrollbar (at most 20px), down the content's right edge. */
722
+ .cms-viewer__side { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: var(--cms-radius-control); background: #262b34; color: inherit; cursor: pointer; }
723
+ .cms-viewer__side--previous { left: var(--cms-space-3); }
724
+ .cms-viewer__side--next { right: calc(var(--cms-space-3) + 20px); }
725
+ .cms-viewer__side--next svg { transform: scaleX(-1); }
726
+ .cms-viewer__strip { display: flex; justify-content: center; gap: var(--cms-space-2); min-width: 0; padding: var(--cms-space-2) var(--cms-space-3); overflow-x: auto; border-top: 1px solid #2a2f38; }
727
+ .cms-viewer__dots { display: none; position: absolute; left: 0; right: 0; bottom: var(--cms-space-2); z-index: 2; justify-content: center; gap: 6px; }
728
+ .cms-viewer__dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c7482; }
729
+ .cms-viewer__dots i.is-current { background: #f4f5f7; }
730
+ .cms-viewer__bar { display: flex; align-items: center; justify-content: safe center; gap: var(--cms-space-1); min-height: 48px; padding: 0 var(--cms-space-2); overflow-x: auto; border-top: 1px solid #2a2f38; color: #d6dae1; white-space: nowrap; }
731
+ @media (max-width: 1199.98px) {
732
+ .cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
733
+ }
734
+ @media (max-width: 599.98px) {
735
+ .cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
736
+ .cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
737
+ .cms-viewer__position, .cms-viewer__actions, .cms-viewer__wide, .cms-viewer__thumbnails, .cms-viewer__side, .cms-viewer__strip { display: none; }
738
+ .cms-viewer__more { display: inline-flex; }
739
+ .cms-viewer__dots { display: flex; }
740
+ .cms-viewer__button--edit { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); padding: 0; }
741
+ .cms-viewer.is-editing .cms-viewer__button--edit { width: auto; padding: 0 var(--cms-space-3); }
742
+ .cms-viewer__status { max-width: 92px; white-space: normal; font-size: var(--cms-font-size-label); line-height: 1.15; }
743
+ }
744
+ @media (prefers-reduced-motion: reduce) { .cms-viewer * { transition: none; animation: none; } }
745
+
481
746
  /*
482
747
  * The layout's widths, from design-tokens: phone below breakpoint-tablet (600px), tablet from it, desktop from
483
748
  * breakpoint-desktop (1200px). A custom property cannot be read in a media query, so the numbers are written here and
@@ -487,24 +752,26 @@
487
752
  /* Tablet and phone, the touch widths: an icons-only rail, two panes, touch targets of at least 44px. */
488
753
  @media (max-width: 1199.98px) {
489
754
  .cms-shell { grid-template-columns: var(--cms-rail-width-compact) minmax(0, 1fr); }
755
+ /* The mail row's checkbox is a touch target: its place is 44px, the 40px avatar centred in it. */
756
+ .cms-mail-row__lead { display: grid; place-items: center; width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); margin: -2px; }
490
757
  .cms-shell__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
491
758
  .cms-shell__item { justify-content: center; min-height: var(--cms-touch-target-min); }
492
759
  .cms-shell__top { gap: var(--cms-space-3); padding: 0 var(--cms-space-4); }
493
760
  .cms-shell__search { min-width: 0; }
494
- .cms-button, .cms-chip, .cms-tab, .cms-menu__item, .cms-list__row, .cms-panes__back, .cms-server-switch { min-height: var(--cms-touch-target-min); }
495
- .cms-icon-button { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
761
+ .cms-tab, .cms-menu__item, .cms-list__row, .cms-panes__back, .cms-server-switch { min-height: var(--cms-touch-target-min); }
762
+ .cms-icon-button, .cms-filter-menu { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
496
763
  .cms-search { height: var(--cms-touch-target-min); }
497
764
  .cms-search__input { align-self: stretch; }
498
765
  .cms-signin-form__show { display: inline-flex; align-items: center; justify-content: center; min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); right: 0; }
499
766
  .cms-signin-form__forgot { display: inline-flex; align-items: center; min-height: var(--cms-touch-target-min); }
500
767
  .cms-call-bar { flex-wrap: wrap; }
501
768
  .cms-call-bar__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
502
- .cms-chip { height: auto; }
503
- .cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
769
+ .cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
770
+ .cms-splitter { display: none; }
504
771
  .cms-panes__pane { display: none; }
505
772
  .cms-panes__pane[data-offset='0'],
506
773
  .cms-panes__pane[data-offset='1'],
507
- .cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: block; }
774
+ .cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: flex; }
508
775
  .cms-panes--three[data-active='2'] .cms-panes__back { display: flex; }
509
776
  .cms-signin__brand { padding: var(--cms-space-8); }
510
777
  .cms-signin__features { grid-template-columns: minmax(0, 1fr); }
@@ -524,11 +791,104 @@
524
791
  .cms-shell__items > li { flex: 1; }
525
792
  .cms-shell__item { height: var(--cms-tabbar-height); }
526
793
  .cms-shell__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
527
- .cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 1fr); }
794
+ .cms-panes--two, .cms-panes--three, .cms-panes--sized.cms-panes--two, .cms-panes--sized.cms-panes--three { grid-template-columns: minmax(0, 1fr); }
528
795
  .cms-panes__pane[data-offset='1'],
529
796
  .cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: none; }
530
797
  .cms-panes:not([data-active='0']) .cms-panes__back { display: flex; }
531
798
  .cms-signin { grid-template-columns: minmax(0, 1fr); }
532
799
  .cms-signin__brand { display: none; }
533
800
  .cms-signin__form { padding: var(--cms-space-6) var(--cms-space-4); }
801
+ /* One header: while a screen shell is drawn, the shell's own top bar gives way to the screen's bar, which carries the
802
+ host's globals (the account, the search). */
803
+ .cms-shell:has(.cms-screen) { grid-template-rows: 0 minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px)); }
804
+ .cms-shell:has(.cms-screen) .cms-shell__top { overflow: hidden; border-bottom: 0; }
805
+ }
806
+
807
+ /* File picker: a dialog of fixed height whose list scrolls; on a phone the whole screen, its foot kept at the bottom. */
808
+ .cms-modal.cms-file-picker { width: min(640px, 100%); height: min(560px, calc(100vh - 32px)); }
809
+ .cms-file-picker .cms-modal__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--cms-space-2); min-height: 0; overflow: hidden; }
810
+ .cms-file-picker__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); }
811
+ .cms-file-picker__space { flex: none; }
812
+ .cms-file-picker__path { display: flex; flex: 1 1 auto; align-items: center; gap: var(--cms-space-1); min-width: 0; }
813
+ .cms-file-picker__path ol { display: flex; gap: var(--cms-space-1); min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
814
+ .cms-file-picker__path li { display: flex; gap: var(--cms-space-1); min-width: 0; }
815
+ .cms-file-picker__path li + li::before { content: '/'; color: var(--cms-text-muted); }
816
+ .cms-file-picker__crumb { min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--cms-radius-control); background: none; color: var(--cms-accent); font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
817
+ .cms-file-picker__crumb[aria-current='location'] { color: var(--cms-text); cursor: default; }
818
+ .cms-file-picker__chip { flex: none; padding: var(--cms-space-1) var(--cms-space-2); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-control); background: var(--cms-surface-muted); color: var(--cms-text); font: inherit; cursor: pointer; }
819
+ .cms-file-picker__chosen { display: flex; flex-direction: column; gap: var(--cms-space-2); max-height: 40%; padding: var(--cms-space-2); overflow: auto; border: 1px solid var(--cms-border-light); border-radius: var(--cms-radius-md); }
820
+ .cms-file-picker__chosen ul { margin: 0; padding: 0; list-style: none; }
821
+ .cms-file-picker__chosen li { display: flex; align-items: center; gap: var(--cms-space-2); }
822
+ .cms-file-picker__chosen .cms-button { align-self: flex-start; }
823
+ .cms-file-picker__list { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--cms-border-light); border-radius: var(--cms-radius-md); }
824
+ .cms-file-picker__entries:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
825
+ .cms-file-picker__entry { display: flex; align-items: center; gap: var(--cms-space-2); min-height: 40px; padding: 0 var(--cms-space-3); border-bottom: 1px solid var(--cms-border-light); cursor: pointer; }
826
+ .cms-file-picker__entry.is-active { background: var(--cms-surface-hover); }
827
+ .cms-file-picker__entry.is-ticked { box-shadow: inset 3px 0 0 var(--cms-accent); }
828
+ .cms-file-picker__entry.is-disabled { color: var(--cms-text-muted); cursor: not-allowed; }
829
+ .cms-file-picker__tick { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent); }
830
+ .cms-file-picker__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
831
+ .cms-file-picker__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: var(--cms-space-1) 0; }
832
+ .cms-file-picker__reason { color: var(--cms-text-muted); font-size: 0.875em; }
833
+ .cms-file-picker__size { flex: none; color: var(--cms-text-secondary); font-size: 0.875em; }
834
+ .cms-file-picker__paging { padding: var(--cms-space-2) var(--cms-space-3); }
835
+ .cms-file-picker__foot { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--cms-space-2); }
836
+ .cms-file-picker__summary { display: flex; flex-direction: column; color: var(--cms-text-secondary); font-size: 0.875em; }
837
+ .cms-file-picker__summary .is-over { color: var(--cms-danger); }
838
+ .cms-file-picker__actions { display: flex; gap: var(--cms-space-2); margin-left: auto; }
839
+ @media (max-width: 599.98px) {
840
+ .cms-modal-scrim:has(.cms-file-picker) { padding: 0; }
841
+ .cms-modal.cms-file-picker { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
842
+ .cms-file-picker__entry, .cms-file-picker__crumb, .cms-file-picker__chip, .cms-file-picker__space .cms-select { min-height: var(--cms-touch-target-min); }
843
+ .cms-file-picker__actions { width: 100%; }
844
+ .cms-file-picker__actions .cms-button { flex: 1 1 0; }
845
+ }
846
+
847
+ /* The row's height is pane-toolbar-height's definition, written out until the token file that defines it is released
848
+ (design-tokens, after both kits implement the entry); then it reads the token. */
849
+ /* The one row of actions at the top of a pane (contract `pane-toolbar`): one height in every pane so the rows line up,
850
+ one line that never wraps, the actions at the start and the status at the end. Labels hide all at once, then actions
851
+ go behind More; the row is fitted by the component to its own width. */
852
+ .cms-pane-toolbar { position: relative; display: flex; align-items: center; column-gap: var(--cms-space-1); height: calc(var(--cms-row-height) + 2 * var(--cms-space-2)); min-width: 0; overflow: hidden; white-space: nowrap; }
853
+ .cms-pane-toolbar__leading, .cms-pane-toolbar__group, .cms-pane-toolbar__group-wrap { display: flex; flex: none; align-items: center; column-gap: var(--cms-space-1); }
854
+ .cms-pane-toolbar__group[hidden] { display: none; }
855
+ .cms-pane-toolbar__separator { flex: none; width: 1px; height: calc(calc(var(--cms-row-height) + 2 * var(--cms-space-2)) - 2 * var(--cms-space-3)); margin: 0 var(--cms-space-1); background: var(--cms-border); }
856
+ .cms-pane-toolbar__action { position: relative; display: inline-flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-row-height, 36px); padding: 0 var(--cms-space-3); border: 1px solid transparent; border-radius: var(--cms-radius-control); background: none; color: var(--cms-text); font: inherit; cursor: pointer; }
857
+ .cms-pane-toolbar__action:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
858
+ .cms-pane-toolbar__action--bare { justify-content: center; width: var(--cms-row-height, 36px); padding: 0; }
859
+ .cms-pane-toolbar__action[hidden] { display: none; }
860
+ .cms-pane-toolbar__action[aria-disabled='true'] { color: var(--cms-text-muted); cursor: not-allowed; }
861
+ .cms-pane-toolbar__action.is-danger { color: var(--cms-danger-text); }
862
+ .cms-pane-toolbar__action--menu.cms-pane-toolbar__action--bare { width: auto; padding: 0 var(--cms-space-2); gap: 0; }
863
+ .cms-pane-toolbar__chevron { display: inline-flex; flex: none; margin-inline-start: calc(-1 * var(--cms-space-1)); }
864
+ .cms-pane-toolbar__action--bare .cms-pane-toolbar__chevron { margin-inline-start: 0; }
865
+ .cms-pane-toolbar__more { flex: none; }
866
+ .cms-pane-toolbar__status { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: end; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
867
+ /* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
868
+ .cms-pane-toolbar__tip { position: absolute; top: calc(100% + var(--cms-space-1)); left: 50%; z-index: 20; display: none; padding: var(--cms-space-1) var(--cms-space-2); border-radius: var(--cms-radius-sm); background: var(--cms-text); color: var(--cms-bg-surface); font-size: var(--cms-font-size-meta); transform: translateX(-50%); pointer-events: none; }
869
+ /* Escape hides it, whichever showed it, until the pointer and the focus have left (data-tip-dismissed). */
870
+ .cms-pane-toolbar__action:not([data-tip-dismissed]):focus-visible > .cms-pane-toolbar__tip, .cms-pane-toolbar__action:not([data-tip-dismissed])[data-reason-shown] > .cms-pane-toolbar__tip { display: block; }
871
+ /* The row's tooltips overflow the row: the row clips only its own line, so the tooltip is drawn by a row that lets it. */
872
+ .cms-pane-toolbar:has(.cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip), .cms-pane-toolbar:has(.cms-pane-toolbar__action[data-reason-shown] > .cms-pane-toolbar__tip) { overflow: visible; }
873
+ .cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
874
+ .cms-pane-toolbar__measure > span, .cms-pane-toolbar__measure > div { flex: none; }
875
+ /* On a touch screen (a coarse pointer) each action is at least a touch target, in the same row; a desktop browser in a
876
+ narrow window keeps desktop-size buttons. */
877
+ @media (pointer: coarse) {
878
+ .cms-pane-toolbar__action { min-height: var(--cms-touch-target-min, 44px); }
879
+ .cms-pane-toolbar__action--bare, .cms-pane-toolbar__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
880
+ }
881
+
882
+ /* A password field's show and hide button: an eye at the field's end, the field's text kept clear of it. */
883
+ .cms-input-reveal { position: relative; display: flex; align-items: center; }
884
+ /* The button is as wide as the field is high, and fills its height: the control height, which the tokens raise from 40px
885
+ to 44px under a coarse pointer, so on a touch screen it is a full touch target. */
886
+ .cms-input-reveal .cms-input { flex: 1; min-width: 0; padding-inline-end: calc(var(--cms-control-height-md) + 2px); }
887
+ .cms-input-reveal__button {
888
+ position: absolute; inset-block: 1px; inset-inline-end: 1px; width: var(--cms-control-height-md);
889
+ display: inline-flex; align-items: center; justify-content: center;
890
+ border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); cursor: pointer;
534
891
  }
892
+ .cms-input-reveal__button:hover:not(:disabled) { color: var(--cms-text); }
893
+ .cms-input-reveal__button:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
894
+ .cms-input-reveal__button:disabled { cursor: not-allowed; }