@coolms/ui-react 0.1.0-alpha.1 → 0.1.0-alpha.10

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/kit.contract.json CHANGED
@@ -10,6 +10,7 @@
10
10
  "toast": { "implementedBy": "Toast", "states": ["success", "error", "info", "with-action"] },
11
11
  "loading": { "implementedBy": "Loading", "states": ["inline", "block"] },
12
12
  "empty-state": { "implementedBy": "EmptyState", "states": ["default", "with-action"] },
13
+ "state": { "implementedBy": "State", "states": ["loading", "empty", "error", "denied", "page", "block", "inline", "with-action", "delayed"] },
13
14
  "error-banner": { "implementedBy": "ErrorBanner", "states": ["default", "with-retry"] },
14
15
  "page-header": { "implementedBy": "PageHeader", "states": ["default", "with-actions", "with-back-link"] },
15
16
  "tab-strip": { "implementedBy": "TabStrip", "states": ["default", "active", "with-count"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.10",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,12 +22,14 @@
22
22
  "import": "./dist/index.js"
23
23
  },
24
24
  "./kit.css": "./src/kit.css",
25
- "./tokens.css": "./src/tokens/coolms-tokens.css"
25
+ "./tokens.css": "./src/tokens/coolms-tokens.css",
26
+ "./fonts.css": "./src/fonts/inter.css"
26
27
  },
27
28
  "files": [
28
29
  "dist",
29
30
  "src/kit.css",
30
31
  "src/tokens",
32
+ "src/fonts",
31
33
  "kit.contract.json",
32
34
  "design-tokens.lock.json",
33
35
  "CHANGELOG.md"
@@ -36,10 +38,11 @@
36
38
  "typecheck": "tsc --noEmit -p tsconfig.json",
37
39
  "test": "vitest run",
38
40
  "check": "node tools/check-kit.mjs kit.contract.json && node tools/check-kit-sources.mjs kit.contract.json",
39
- "tokens:check": "node tools/tokens-lock.mjs && node tools/check-css-tokens.mjs",
41
+ "tokens:check": "node tools/tokens-lock.mjs && node tools/check-css.mjs src/tokens/coolms-tokens.css && node tools/check-css-teeth.mjs && node tools/check-css-tokens.mjs && node tools/check-breakpoints.mjs",
40
42
  "demo": "vite --config demo/vite.config.ts",
41
43
  "demo:build": "vite build --config demo/vite.config.ts",
42
- "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run demo:build",
44
+ "check:layout": "node tools/check-layout.mjs",
45
+ "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run demo:build && npm run check:layout",
43
46
  "build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json",
44
47
  "check:built": "node tools/check-built.mjs",
45
48
  "prepack": "npm run build"
@@ -59,7 +62,7 @@
59
62
  "react": "19.2.3",
60
63
  "react-dom": "19.2.3",
61
64
  "typescript": "6.0.3",
62
- "vite": "6.4.4",
63
- "vitest": "3.2.7"
65
+ "vite": "6.4.5",
66
+ "vitest": "5.1.0"
64
67
  }
65
68
  }
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
Binary file
@@ -0,0 +1,27 @@
1
+ /* Inter (https://github.com/rsms/inter), SIL Open Font License 1.1: fonts/OFL.txt. One variable file per subset,
2
+ weights 400 to 700; a browser fetches only the subsets a page uses, by unicode-range. Subsets: Latin, Latin
3
+ Extended (Polish among others) and Cyrillic (Russian and Belarusian among others). */
4
+ @font-face {
5
+ font-family: 'Inter';
6
+ font-style: normal;
7
+ font-weight: 400 700;
8
+ font-display: swap;
9
+ src: url('./inter-latin.woff2') format('woff2');
10
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
11
+ }
12
+ @font-face {
13
+ font-family: 'Inter';
14
+ font-style: normal;
15
+ font-weight: 400 700;
16
+ font-display: swap;
17
+ src: url('./inter-latin-ext.woff2') format('woff2');
18
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
19
+ }
20
+ @font-face {
21
+ font-family: 'Inter';
22
+ font-style: normal;
23
+ font-weight: 400 700;
24
+ font-display: swap;
25
+ src: url('./inter-cyrillic.woff2') format('woff2');
26
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
27
+ }
package/src/kit.css CHANGED
@@ -172,6 +172,27 @@
172
172
  .cms-empty__title { margin: 0 0 4px; color: var(--cms-text); font-weight: 600; }
173
173
  .cms-empty__hint { margin: 0; }
174
174
  .cms-empty__action { margin-top: 12px; }
175
+ /* The state component: one look for every state instead of content. Each token carries its own value as a fallback
176
+ until the kit pins the design tokens that define it. */
177
+ .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; }
178
+ .cms-state--page { flex: 1; min-height: 50vh; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
179
+ .cms-state--block { flex: 1; box-sizing: border-box; min-height: 100%; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
180
+ .cms-state--inline { display: inline-flex; flex-direction: row; gap: var(--cms-space-2, 8px); text-align: start; }
181
+ .cms-state.is-waiting > :not(.cms-state__text) { visibility: hidden; }
182
+ .cms-state.is-waiting > .cms-state__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
183
+ .cms-state__text { display: flex; flex-direction: column; gap: var(--cms-space-1, 4px); }
184
+ .cms-state--inline .cms-state__text { flex-direction: row; gap: var(--cms-space-2, 8px); }
185
+ .cms-state__title { color: var(--cms-text); font-weight: 600; }
186
+ .cms-state--inline .cms-state__title { font-weight: inherit; }
187
+ .cms-state__description { max-width: 48ch; }
188
+ .cms-state--error > svg { color: var(--cms-danger-text); }
189
+ .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; }
190
+ .cms-state--page .cms-state__spinner { width: var(--cms-spinner-size-page, 32px); height: var(--cms-spinner-size-page, 32px); }
191
+ .cms-state--inline .cms-state__spinner { width: var(--cms-spinner-size-inline, 16px); height: var(--cms-spinner-size-inline, 16px); }
192
+ .cms-state__track { stroke: var(--cms-spinner-track, var(--cms-border)); stroke-width: var(--cms-spinner-stroke, 2px); vector-effect: non-scaling-stroke; }
193
+ .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; }
194
+ @keyframes cms-state-pulse { 50% { opacity: 0.35; } }
195
+ @media (prefers-reduced-motion: reduce) { .cms-state__spinner { animation: cms-state-pulse calc(2 * var(--cms-spinner-duration, 800ms)) ease-in-out infinite; } }
175
196
  .cms-error-banner {
176
197
  display: flex;
177
198
  align-items: center;
@@ -250,6 +271,12 @@
250
271
  .cms-avatar__presence.is-online { background: var(--cms-success); }
251
272
  .cms-avatar__presence.is-away { background: var(--cms-warning); }
252
273
  .cms-avatar__presence.is-offline { background: var(--cms-meta-subtle); }
274
+ .cms-avatar--tint-1 { background: var(--cms-avatar-1-bg); color: var(--cms-avatar-1-fg); }
275
+ .cms-avatar--tint-2 { background: var(--cms-avatar-2-bg); color: var(--cms-avatar-2-fg); }
276
+ .cms-avatar--tint-3 { background: var(--cms-avatar-3-bg); color: var(--cms-avatar-3-fg); }
277
+ .cms-avatar--tint-4 { background: var(--cms-avatar-4-bg); color: var(--cms-avatar-4-fg); }
278
+ .cms-avatar--tint-5 { background: var(--cms-avatar-5-bg); color: var(--cms-avatar-5-fg); }
279
+ .cms-avatar--tint-6 { background: var(--cms-avatar-6-bg); color: var(--cms-avatar-6-fg); }
253
280
 
254
281
  /* Context menu */
255
282
  .cms-menu {
@@ -269,3 +296,378 @@
269
296
  .cms-menu__item.is-danger { color: var(--cms-danger-text); }
270
297
  .cms-menu__item.is-refused { color: var(--cms-text-muted); cursor: not-allowed; }
271
298
  .cms-menu__refusal { font-size: 0.8125em; }
299
+
300
+ /*
301
+ * The Workspace: the shell, its lists, chat, the call and sign-in. Same rule as above: only --cms-* tokens. The chrome
302
+ * (the rail, the incoming call, the sign-in brand side) stays navy in both themes.
303
+ */
304
+ .cms-icon { flex: none; }
305
+ :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 {
306
+ outline: 2px solid var(--cms-focus-ring);
307
+ outline-offset: 2px;
308
+ }
309
+
310
+ .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); }
311
+ .cms-button--chrome:hover:not(:disabled) { background: var(--cms-sidebar-hover); border-color: var(--cms-button-chrome-border); }
312
+
313
+ /* Badge, pill */
314
+ .cms-badge {
315
+ display: inline-flex;
316
+ align-items: center;
317
+ justify-content: center;
318
+ min-width: 20px;
319
+ height: 20px;
320
+ padding: 0 var(--cms-space-1);
321
+ border-radius: var(--cms-radius-pill);
322
+ background: var(--cms-accent);
323
+ color: var(--cms-accent-fg);
324
+ font-size: var(--cms-font-size-label);
325
+ font-weight: var(--cms-font-weight-semibold);
326
+ line-height: 1;
327
+ }
328
+ .cms-pill { display: inline-flex; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-1) var(--cms-space-3); border-radius: var(--cms-radius-pill); font-size: var(--cms-font-size-meta); font-weight: var(--cms-font-weight-medium); }
329
+ .cms-pill--success { background: var(--cms-success-light); color: var(--cms-success-strong); }
330
+ .cms-pill--warning { background: var(--cms-warning-light); color: var(--cms-warning-text); }
331
+
332
+ /* Shell */
333
+ .cms-shell {
334
+ display: grid;
335
+ grid-template-columns: var(--cms-rail-width) 1fr;
336
+ grid-template-rows: var(--cms-topbar-height) 1fr;
337
+ height: 100vh;
338
+ background: var(--cms-bg);
339
+ color: var(--cms-text);
340
+ font-family: var(--cms-font-sans);
341
+ font-size: var(--cms-font-size-body);
342
+ }
343
+ .cms-shell__rail { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: var(--cms-space-3); padding: var(--cms-space-3) 0; background: var(--cms-sidebar-bg); }
344
+ .cms-shell__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--cms-radius-control); background: var(--cms-accent); color: var(--cms-accent-fg); font-weight: var(--cms-font-weight-bold); font-size: var(--cms-font-size-title-md); }
345
+ .cms-shell__items { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--cms-space-1); width: 100%; margin: 0; padding: 0 var(--cms-space-2); list-style: none; }
346
+ .cms-shell__item {
347
+ display: flex;
348
+ flex-direction: column;
349
+ align-items: center;
350
+ gap: var(--cms-space-1);
351
+ padding: var(--cms-space-2) 0 var(--cms-space-2);
352
+ border-radius: var(--cms-radius-control);
353
+ color: var(--cms-sidebar-text);
354
+ font-size: var(--cms-font-size-label);
355
+ text-decoration: none;
356
+ }
357
+ .cms-shell__item:hover { background: var(--cms-sidebar-hover); color: var(--cms-on-chrome); }
358
+ .cms-shell__item.is-active { background: var(--cms-sidebar-active); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }
359
+ .cms-shell__item.is-active .cms-icon { color: var(--cms-accent); }
360
+ .cms-shell__icon { position: relative; display: inline-flex; }
361
+ .cms-shell__icon .cms-badge { position: absolute; top: calc(-1 * var(--cms-space-2)); right: calc(-1 * var(--cms-space-3)); min-width: 18px; height: 18px; font-size: var(--cms-font-size-label-sm); }
362
+ .cms-shell__top { display: flex; align-items: center; gap: var(--cms-space-4); padding: 0 var(--cms-space-6); border-bottom: 1px solid var(--cms-border); background: var(--cms-surface); }
363
+ .cms-shell__product { font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-bold); white-space: nowrap; }
364
+ .cms-shell__search { flex: 1; max-width: 640px; }
365
+ .cms-shell__account { display: flex; align-items: center; gap: var(--cms-space-4); margin-left: auto; }
366
+ /* The open section's area: a column, so a section given `flex: 1` fills the height under anything above it. */
367
+ .cms-shell__main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
368
+ .cms-shell__main > :only-child { flex: 1; min-height: 0; }
369
+
370
+ .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; }
371
+
372
+ /* Search */
373
+ .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); }
374
+ .cms-search:focus-within { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
375
+ .cms-search__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cms-text); font: inherit; outline: none; }
376
+ .cms-search__input::placeholder { color: var(--cms-text-muted); }
377
+
378
+ /* Filter chips */
379
+ .cms-chips { display: flex; flex-wrap: wrap; gap: var(--cms-space-2); }
380
+ .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; }
381
+ .cms-chip:hover { background: var(--cms-surface-muted); }
382
+ .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); }
383
+
384
+ /* Panes */
385
+ .cms-panes { display: grid; height: 100%; min-height: 0; }
386
+ .cms-panes--two { grid-template-columns: 340px 1fr; }
387
+ .cms-panes--three { grid-template-columns: 240px 380px 1fr; }
388
+ .cms-panes__pane { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
389
+ .cms-panes__pane:first-child { background: var(--cms-bg); }
390
+ .cms-panes__pane:last-child { border-right: 0; }
391
+ .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; }
392
+
393
+ /* Mail row */
394
+ .cms-mail-row {
395
+ display: flex;
396
+ gap: var(--cms-space-3);
397
+ width: 100%;
398
+ padding: var(--cms-space-4) var(--cms-space-5);
399
+ border: 0;
400
+ border-bottom: 1px solid var(--cms-border-light);
401
+ background: var(--cms-surface);
402
+ color: var(--cms-text-body);
403
+ font: inherit;
404
+ text-align: left;
405
+ cursor: pointer;
406
+ }
407
+ .cms-mail-row:hover { background: var(--cms-surface-muted); }
408
+ .cms-mail-row.is-selected { background: var(--cms-row-selected); }
409
+ .cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
410
+ .cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
411
+ .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); }
412
+ .cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
413
+ .cms-mail-row__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
414
+ .cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
415
+ .cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
416
+ .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); }
417
+ .cms-mail-row .cms-icon { color: var(--cms-text-muted); }
418
+
419
+ /* Chat */
420
+ .cms-bubble { display: flex; flex-direction: column; gap: var(--cms-space-1); max-width: 72%; }
421
+ .cms-bubble--in { align-self: flex-start; }
422
+ .cms-bubble--out { align-self: flex-end; align-items: flex-end; }
423
+ .cms-bubble__text { padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-bubble); font-size: var(--cms-font-size-body-lg); line-height: var(--cms-line-height-body); }
424
+ .cms-bubble--in .cms-bubble__text { border: 1px solid var(--cms-border); border-top-left-radius: var(--cms-radius-bubble-tail); background: var(--cms-surface); color: var(--cms-text); }
425
+ .cms-bubble--out .cms-bubble__text { border-top-right-radius: var(--cms-radius-bubble-tail); background: var(--cms-button-chrome-bg); color: var(--cms-on-chrome); }
426
+ .cms-bubble__meta { padding: 0 var(--cms-space-1); color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
427
+
428
+ /* Composer */
429
+ .cms-composer { display: flex; align-items: center; gap: var(--cms-space-3); }
430
+ .cms-composer__input { flex: 1; min-width: 0; resize: none; 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); }
431
+ .cms-composer--chat .cms-composer__input { padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-pill); }
432
+ .cms-composer--chat { padding: var(--cms-space-3) var(--cms-space-5); border-top: 1px solid var(--cms-border); background: var(--cms-surface); }
433
+ .cms-composer--reply { flex-wrap: wrap; padding: var(--cms-space-4); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-card); background: var(--cms-surface); }
434
+ .cms-composer--reply .cms-composer__title { flex-basis: 100%; color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); }
435
+ .cms-composer--reply .cms-composer__input { flex-basis: 100%; padding: var(--cms-space-2) var(--cms-space-3); border-color: transparent; }
436
+ .cms-composer--reply .cms-composer__send { margin-left: auto; }
437
+ .cms-composer--reply .cms-composer__leading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); min-width: 0; }
438
+ .cms-composer__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
439
+ .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; }
440
+ .cms-composer__send-round:disabled, .cms-composer__send:disabled { opacity: 0.55; cursor: not-allowed; }
441
+
442
+ /* Call */
443
+ .cms-call-incoming { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: var(--cms-space-2); width: 420px; max-width: 100%; padding: var(--cms-space-10) var(--cms-space-8); border-radius: var(--cms-radius-dialog); background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); box-shadow: var(--cms-shadow-lg); }
444
+ .cms-call-incoming__ring { padding: var(--cms-space-3); border: 2px solid var(--cms-accent); border-radius: 50%; box-shadow: 0 0 0 var(--cms-space-3) var(--cms-sidebar-bg), 0 0 0 calc(var(--cms-space-3) + 1px) var(--cms-accent-text); }
445
+ .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); }
446
+ .cms-call-incoming__what { margin: 0; color: var(--cms-sidebar-text); }
447
+ .cms-call-incoming__actions { display: flex; gap: var(--cms-space-12); margin-top: var(--cms-space-6); }
448
+ .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; }
449
+ .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); }
450
+ .cms-call-button.is-pressed .cms-call-button__disc { background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
451
+ .cms-call-button--accept .cms-call-button__disc { background: var(--cms-chrome-success); color: var(--cms-chrome-success-fg); }
452
+ .cms-call-button--hang-up .cms-call-button__disc { background: var(--cms-danger); color: var(--cms-text-inverse); }
453
+ .cms-call-button--hang-up .cms-call-button__label { color: var(--cms-danger); }
454
+ .cms-call-incoming .cms-call-button__label { color: var(--cms-on-chrome); }
455
+ .cms-call-button__label { font-size: var(--cms-font-size-meta); }
456
+ .cms-call-panel { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--cms-space-6); padding: var(--cms-space-6); border-radius: var(--cms-radius-dialog); background: var(--cms-surface); color: var(--cms-text); box-shadow: var(--cms-shadow-md); }
457
+ .cms-call-panel__head { display: flex; align-items: center; gap: var(--cms-space-4); }
458
+ .cms-call-panel__who { flex: 1; }
459
+ .cms-call-panel__name { margin: 0; font-size: var(--cms-font-size-title-lg); font-weight: var(--cms-font-weight-semibold); }
460
+ .cms-call-panel__time { margin: 0; color: var(--cms-text-muted); font-variant-numeric: tabular-nums; }
461
+ .cms-call-panel__you { display: flex; align-items: center; gap: var(--cms-space-3); padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-card); background: var(--cms-bg); }
462
+ .cms-call-panel__level { width: 24px; height: 14px; margin-left: auto; background: repeating-linear-gradient(90deg, var(--cms-accent) 0 3px, transparent 3px 6px); border-radius: var(--cms-radius-sm); }
463
+ .cms-call-panel__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cms-space-4) var(--cms-space-8); }
464
+ .cms-call-bar { display: flex; align-items: center; gap: var(--cms-space-4); padding: var(--cms-space-3) var(--cms-space-4) var(--cms-space-3) var(--cms-space-6); border-radius: var(--cms-radius-card); background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
465
+ .cms-call-bar__live { width: 10px; height: 10px; border-radius: 50%; background: var(--cms-success); }
466
+ .cms-call-bar__name { font-weight: var(--cms-font-weight-semibold); }
467
+ .cms-call-bar__time { color: var(--cms-sidebar-text); font-variant-numeric: tabular-nums; }
468
+ .cms-call-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-3); margin-left: auto; }
469
+ .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; }
470
+ .cms-call-bar__icon[aria-pressed='true'] { background: var(--cms-on-chrome); color: var(--cms-sidebar-bg); }
471
+ .cms-call-bar__icon--hang-up { background: var(--cms-danger); color: var(--cms-text-inverse); }
472
+ .cms-call-bar .cms-button--primary { border-radius: var(--cms-radius-control); font-weight: var(--cms-font-weight-semibold); }
473
+
474
+ /* Sign-in */
475
+ .cms-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; font-family: var(--cms-font-sans); }
476
+ .cms-signin__brand { display: flex; flex-direction: column; padding: var(--cms-space-12) var(--cms-space-12); background: var(--cms-sidebar-bg); color: var(--cms-on-chrome); }
477
+ .cms-signin__logo { display: flex; align-items: center; gap: var(--cms-space-3); margin: 0; font-size: var(--cms-font-size-title-lg); font-weight: var(--cms-font-weight-bold); }
478
+ .cms-signin__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--cms-radius-control); background: var(--cms-accent); color: var(--cms-accent-fg); }
479
+ .cms-signin__pitch { margin: auto 0; max-width: 520px; }
480
+ .cms-signin__headline { margin: 0 0 var(--cms-space-4); font-size: var(--cms-font-size-display-lg); font-weight: var(--cms-font-weight-bold); line-height: var(--cms-line-height-tight); }
481
+ .cms-signin__lead { margin: 0 0 var(--cms-space-8); color: var(--cms-sidebar-text); font-size: var(--cms-font-size-body-lg); line-height: var(--cms-line-height-body); }
482
+ .cms-signin__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cms-space-3); margin: 0; padding: 0; list-style: none; }
483
+ .cms-signin__features li { display: flex; align-items: center; gap: var(--cms-space-3); padding: var(--cms-space-3) var(--cms-space-4); border-radius: var(--cms-radius-control); background: var(--cms-sidebar-hover); font-weight: var(--cms-font-weight-medium); }
484
+ .cms-signin__features .cms-icon { color: var(--cms-accent); }
485
+ .cms-signin__form { display: flex; align-items: center; justify-content: center; padding: var(--cms-space-8); background: var(--cms-surface); color: var(--cms-text); }
486
+ .cms-signin-form { display: flex; flex-direction: column; gap: var(--cms-space-2); width: min(380px, 100%); }
487
+ .cms-signin-form__title { margin: 0; font-size: var(--cms-font-size-display-sm); font-weight: var(--cms-font-weight-bold); }
488
+ .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); }
489
+ .cms-signin-form__label { margin-top: var(--cms-space-2); font-weight: var(--cms-font-weight-medium); }
490
+ /* The sign-in form's own inputs: a field's frame (.cms-field) is a different thing, and none of this reaches it. */
491
+ .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); }
492
+ .cms-signin-form__input:focus { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
493
+ .cms-signin-form__password { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
494
+ .cms-signin-form__password .cms-signin-form__input { flex: 1; margin-bottom: 0; padding-right: 64px; }
495
+ .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; }
496
+ .cms-signin-form__forgot { align-self: flex-end; color: var(--cms-text); }
497
+ .cms-signin-form__error { margin: 0; color: var(--cms-danger-text); }
498
+ .cms-signin-form__submit { justify-content: center; height: 48px; margin-top: var(--cms-space-4); font-size: var(--cms-font-size-body-lg); }
499
+ .cms-signin-form__or { display: flex; align-items: center; gap: var(--cms-space-3); margin: var(--cms-space-3) 0 0; color: var(--cms-text-muted); }
500
+ .cms-signin-form__or::before, .cms-signin-form__or::after { content: ''; flex: 1; height: 1px; background: var(--cms-border); }
501
+ .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; }
502
+
503
+ /* The file viewer: dark whatever the scheme, covering the page. It never scrolls as a document; its content does. */
504
+ /* One column no wider than the screen: a bar wider than a phone scrolls in its place, it does not widen the viewer. */
505
+ .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; }
506
+ .cms-viewer:focus { outline: none; }
507
+ .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; }
508
+ .cms-viewer__badge { flex: none; display: inline-flex; }
509
+ .cms-viewer__name { margin: 0; min-width: 0; font-size: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
510
+ .cms-viewer__position, .cms-viewer__status { flex: none; color: #a8afbb; white-space: nowrap; }
511
+ .cms-viewer__space { flex: 1 1 0; min-width: 0; }
512
+ .cms-viewer__actions { display: inline-flex; gap: var(--cms-space-1); flex: none; }
513
+ .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-md); background: transparent; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
514
+ .cms-viewer__icon { flex: none; width: 36px; }
515
+ .cms-viewer__button { flex: none; padding: 0 var(--cms-space-3); }
516
+ .cms-viewer__icon:hover, .cms-viewer__button:hover { background: #262b34; }
517
+ .cms-viewer :focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
518
+ .cms-viewer__button--edit, .cms-viewer__button--edit:hover { background: var(--cms-accent); color: #1a1a1a; font-weight: 600; }
519
+ .cms-viewer__more { display: none; position: relative; flex: none; }
520
+ .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; }
521
+ .cms-viewer__menu .cms-viewer__button { justify-content: flex-start; min-height: var(--cms-touch-target-min); }
522
+ .cms-viewer__body { display: flex; min-height: 0; }
523
+ .cms-viewer__thumbnails { flex: none; width: 124px; padding: var(--cms-space-3); overflow: auto; border-right: 1px solid #2a2f38; }
524
+ .cms-viewer__content { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; }
525
+ .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: 50%; background: #262b34; color: inherit; cursor: pointer; }
526
+ .cms-viewer__side--previous { left: var(--cms-space-3); }
527
+ .cms-viewer__side--next { right: var(--cms-space-3); }
528
+ .cms-viewer__side--next svg { transform: scaleX(-1); }
529
+ .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; }
530
+ .cms-viewer__dots { display: none; position: absolute; left: 0; right: 0; bottom: var(--cms-space-2); z-index: 2; justify-content: center; gap: 6px; }
531
+ .cms-viewer__dots i { width: 7px; height: 7px; border-radius: 50%; background: #6c7482; }
532
+ .cms-viewer__dots i.is-current { background: #f4f5f7; }
533
+ .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; }
534
+ @media (max-width: 1199.98px) {
535
+ .cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
536
+ }
537
+ @media (max-width: 599.98px) {
538
+ .cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
539
+ .cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
540
+ .cms-viewer__position, .cms-viewer__actions, .cms-viewer__wide, .cms-viewer__thumbnails, .cms-viewer__side, .cms-viewer__strip { display: none; }
541
+ .cms-viewer__more { display: inline-flex; }
542
+ .cms-viewer__dots { display: flex; }
543
+ .cms-viewer__button--edit { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); padding: 0; }
544
+ .cms-viewer.is-editing .cms-viewer__button--edit { width: auto; padding: 0 var(--cms-space-3); }
545
+ .cms-viewer__status { max-width: 92px; white-space: normal; font-size: var(--cms-font-size-label); line-height: 1.15; }
546
+ }
547
+ @media (prefers-reduced-motion: reduce) { .cms-viewer * { transition: none; animation: none; } }
548
+
549
+ /*
550
+ * The layout's widths, from design-tokens: phone below breakpoint-tablet (600px), tablet from it, desktop from
551
+ * breakpoint-desktop (1200px). A custom property cannot be read in a media query, so the numbers are written here and
552
+ * tools/check-breakpoints.mjs compares them with the tokens.
553
+ */
554
+
555
+ /* Tablet and phone, the touch widths: an icons-only rail, two panes, touch targets of at least 44px. */
556
+ @media (max-width: 1199.98px) {
557
+ .cms-shell { grid-template-columns: var(--cms-rail-width-compact) minmax(0, 1fr); }
558
+ .cms-shell__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
559
+ .cms-shell__item { justify-content: center; min-height: var(--cms-touch-target-min); }
560
+ .cms-shell__top { gap: var(--cms-space-3); padding: 0 var(--cms-space-4); }
561
+ .cms-shell__search { min-width: 0; }
562
+ .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); }
563
+ .cms-icon-button { min-width: var(--cms-touch-target-min); min-height: var(--cms-touch-target-min); }
564
+ .cms-search { height: var(--cms-touch-target-min); }
565
+ .cms-search__input { align-self: stretch; }
566
+ .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; }
567
+ .cms-signin-form__forgot { display: inline-flex; align-items: center; min-height: var(--cms-touch-target-min); }
568
+ .cms-call-bar { flex-wrap: wrap; }
569
+ .cms-call-bar__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
570
+ .cms-chip { height: auto; }
571
+ .cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
572
+ .cms-panes__pane { display: none; }
573
+ .cms-panes__pane[data-offset='0'],
574
+ .cms-panes__pane[data-offset='1'],
575
+ .cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: block; }
576
+ .cms-panes--three[data-active='2'] .cms-panes__back { display: flex; }
577
+ .cms-signin__brand { padding: var(--cms-space-8); }
578
+ .cms-signin__features { grid-template-columns: minmax(0, 1fr); }
579
+ }
580
+
581
+ /* Phone: a bottom tab bar instead of the rail, one pane at a time with Back, sign-in alone. */
582
+ @media (max-width: 599.98px) {
583
+ .cms-shell {
584
+ grid-template-columns: minmax(0, 1fr);
585
+ grid-template-rows: var(--cms-topbar-height) minmax(0, 1fr) calc(var(--cms-tabbar-height) + env(safe-area-inset-bottom, 0px));
586
+ }
587
+ .cms-shell__top { grid-row: 1; grid-column: 1; }
588
+ .cms-shell__main { grid-row: 2; grid-column: 1; }
589
+ .cms-shell__rail { grid-row: 3; grid-column: 1; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom, 0px); }
590
+ .cms-shell__mark, .cms-shell__product, .cms-shell__search { display: none; }
591
+ .cms-shell__items { flex-direction: row; justify-content: space-around; padding: 0; }
592
+ .cms-shell__items > li { flex: 1; }
593
+ .cms-shell__item { height: var(--cms-tabbar-height); }
594
+ .cms-shell__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
595
+ .cms-panes--two, .cms-panes--three { grid-template-columns: minmax(0, 1fr); }
596
+ .cms-panes__pane[data-offset='1'],
597
+ .cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: none; }
598
+ .cms-panes:not([data-active='0']) .cms-panes__back { display: flex; }
599
+ .cms-signin { grid-template-columns: minmax(0, 1fr); }
600
+ .cms-signin__brand { display: none; }
601
+ .cms-signin__form { padding: var(--cms-space-6) var(--cms-space-4); }
602
+ }
603
+
604
+ /* File picker: a dialog of fixed height whose list scrolls; on a phone the whole screen, its foot kept at the bottom. */
605
+ .cms-modal.cms-file-picker { width: min(640px, 100%); height: min(560px, calc(100vh - 32px)); }
606
+ .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; }
607
+ .cms-file-picker__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cms-space-2); }
608
+ .cms-file-picker__space { flex: none; }
609
+ .cms-file-picker__path { display: flex; flex: 1 1 auto; align-items: center; gap: var(--cms-space-1); min-width: 0; }
610
+ .cms-file-picker__path ol { display: flex; gap: var(--cms-space-1); min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
611
+ .cms-file-picker__path li { display: flex; gap: var(--cms-space-1); min-width: 0; }
612
+ .cms-file-picker__path li + li::before { content: '/'; color: var(--cms-text-muted); }
613
+ .cms-file-picker__crumb { min-width: 0; padding: 0; overflow: hidden; border: 0; background: none; color: var(--cms-accent); font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
614
+ .cms-file-picker__crumb[aria-current='location'] { color: var(--cms-text); cursor: default; }
615
+ .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-md); background: var(--cms-surface-muted); color: var(--cms-text); font: inherit; cursor: pointer; }
616
+ .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); }
617
+ .cms-file-picker__chosen ul { margin: 0; padding: 0; list-style: none; }
618
+ .cms-file-picker__chosen li { display: flex; align-items: center; gap: var(--cms-space-2); }
619
+ .cms-file-picker__chosen .cms-button { align-self: flex-start; }
620
+ .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); }
621
+ .cms-file-picker__entries:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: -2px; }
622
+ .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; }
623
+ .cms-file-picker__entry.is-active { background: var(--cms-surface-hover); }
624
+ .cms-file-picker__entry.is-ticked { box-shadow: inset 3px 0 0 var(--cms-accent); }
625
+ .cms-file-picker__entry.is-disabled { color: var(--cms-text-muted); cursor: not-allowed; }
626
+ .cms-file-picker__tick { display: inline-flex; flex: none; width: 16px; color: var(--cms-accent); }
627
+ .cms-file-picker__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
628
+ .cms-file-picker__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: var(--cms-space-1) 0; }
629
+ .cms-file-picker__reason { color: var(--cms-text-muted); font-size: 0.875em; }
630
+ .cms-file-picker__size { flex: none; color: var(--cms-text-secondary); font-size: 0.875em; }
631
+ .cms-file-picker__paging { padding: var(--cms-space-2) var(--cms-space-3); }
632
+ .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); }
633
+ .cms-file-picker__summary { display: flex; flex-direction: column; color: var(--cms-text-secondary); font-size: 0.875em; }
634
+ .cms-file-picker__summary .is-over { color: var(--cms-danger); }
635
+ .cms-file-picker__actions { display: flex; gap: var(--cms-space-2); margin-left: auto; }
636
+ @media (max-width: 599.98px) {
637
+ .cms-modal-scrim:has(.cms-file-picker) { padding: 0; }
638
+ .cms-modal.cms-file-picker { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
639
+ .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); }
640
+ .cms-file-picker__actions { width: 100%; }
641
+ .cms-file-picker__actions .cms-button { flex: 1 1 0; }
642
+ }
643
+
644
+ /* The row's height is pane-toolbar-height's definition, written out until the token file that defines it is released
645
+ (design-tokens, after both kits implement the entry); then it reads the token. */
646
+ /* The one row of actions at the top of a pane (contract `pane-toolbar`): one height in every pane so the rows line up,
647
+ one line that never wraps, the actions at the start and the status at the end. Labels hide all at once, then actions
648
+ go behind More; the row is fitted by the component to its own width. */
649
+ .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; }
650
+ .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); }
651
+ .cms-pane-toolbar__group[hidden] { display: none; }
652
+ .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); }
653
+ .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; }
654
+ .cms-pane-toolbar__action:hover:not([aria-disabled='true']) { background: var(--cms-surface-hover); }
655
+ .cms-pane-toolbar__action:focus-visible { outline: 2px solid var(--cms-focus-ring); outline-offset: 1px; }
656
+ .cms-pane-toolbar__action--icon { justify-content: center; width: var(--cms-row-height, 36px); padding: 0; }
657
+ .cms-pane-toolbar__action[hidden] { display: none; }
658
+ .cms-pane-toolbar__action[aria-disabled='true'] { color: var(--cms-text-muted); cursor: not-allowed; }
659
+ .cms-pane-toolbar__action.is-danger { color: var(--cms-danger-text); }
660
+ .cms-pane-toolbar__more { flex: none; }
661
+ .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); }
662
+ /* A label hidden: its tooltip on hover and on keyboard focus, never the action's only name. */
663
+ .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; }
664
+ .cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip, .cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip { display: block; }
665
+ /* 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. */
666
+ .cms-pane-toolbar:has(.cms-pane-toolbar__action:hover > .cms-pane-toolbar__tip), .cms-pane-toolbar:has(.cms-pane-toolbar__action:focus-visible > .cms-pane-toolbar__tip) { overflow: visible; }
667
+ .cms-pane-toolbar__measure { position: absolute; top: 0; left: 0; display: flex; visibility: hidden; pointer-events: none; }
668
+ .cms-pane-toolbar__measure > span, .cms-pane-toolbar__measure > div { flex: none; }
669
+ /* At tablet and phone widths each action is at least a touch target, in the same row. */
670
+ @media (max-width: 1199.98px) {
671
+ .cms-pane-toolbar__action { min-height: var(--cms-touch-target-min, 44px); }
672
+ .cms-pane-toolbar__action--icon, .cms-pane-toolbar__more { min-width: var(--cms-touch-target-min, 44px); min-height: var(--cms-touch-target-min, 44px); }
673
+ }