@birdycom/omniaui 0.16.2 → 0.17.0

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.
Files changed (83) hide show
  1. package/bin/lib/copy-js.mjs +8 -0
  2. package/bin/lib/webicons-builtin.json +1 -1
  3. package/dist/back-link.d.ts +6 -0
  4. package/dist/back-link.js +54 -0
  5. package/dist/barcode.d.ts +5 -1
  6. package/dist/barcode.js +29 -8
  7. package/dist/calendar.d.ts +17 -0
  8. package/dist/calendar.js +190 -0
  9. package/dist/code-block.css +3 -0
  10. package/dist/combobox.d.ts +27 -4
  11. package/dist/combobox.js +231 -33
  12. package/dist/components-extra.css +33 -2
  13. package/dist/components.css +2096 -163
  14. package/dist/components.min.css +1 -1
  15. package/dist/countdown.d.ts +11 -0
  16. package/dist/countdown.js +76 -0
  17. package/dist/data-table.d.ts +28 -0
  18. package/dist/data-table.js +186 -18
  19. package/dist/docs-ui.css +11 -1
  20. package/dist/glass-lens.d.ts +41 -0
  21. package/dist/glass-lens.js +307 -0
  22. package/dist/input-mask.d.ts +31 -0
  23. package/dist/input-mask.js +228 -0
  24. package/dist/nav-overflow.d.ts +11 -0
  25. package/dist/nav-overflow.js +151 -0
  26. package/dist/oc-theme.css +1 -1
  27. package/dist/parts/app-0160-apps.css +6 -0
  28. package/dist/parts/app-compound-overlays.css +68 -0
  29. package/dist/parts/app-countdown.css +66 -0
  30. package/dist/parts/app-data-table-footer.css +6 -3
  31. package/dist/parts/app-data-table-server.css +47 -0
  32. package/dist/parts/app-data-table.css +27 -1
  33. package/dist/parts/app-header-settings.css +9 -0
  34. package/dist/parts/app-mode-badge.css +12 -0
  35. package/dist/parts/app-module-color.css +152 -0
  36. package/dist/parts/app-name-card.css +5 -0
  37. package/dist/parts/app-page-header.css +1 -1
  38. package/dist/parts/app-recovery-codes-extras.css +13 -0
  39. package/dist/parts/app-sidebar-meta.css +14 -3
  40. package/dist/parts/app-sidebar-provider.css +98 -0
  41. package/dist/parts/app-table-actions.css +16 -0
  42. package/dist/parts/app-tree.css +6 -0
  43. package/dist/parts/app-type-picker.css +272 -0
  44. package/dist/parts/data-dl-numbered.css +17 -0
  45. package/dist/parts/data-graph.css +12 -4
  46. package/dist/parts/forms-combobox-catalog.css +142 -0
  47. package/dist/parts/forms-combobox-icons.css +40 -2
  48. package/dist/parts/forms-copy-field-extras.css +47 -0
  49. package/dist/parts/forms-field-extras.css +55 -0
  50. package/dist/parts/forms-form-section.css +39 -1
  51. package/dist/parts/forms-ledger.css +98 -0
  52. package/dist/parts/media-aspect-flush.css +6 -0
  53. package/dist/parts/media-barcode.css +25 -4
  54. package/dist/parts/media-doc-viewer.css +2 -0
  55. package/dist/parts/media-entity-card.css +5 -0
  56. package/dist/parts/media-glass-liquid.css +10 -5
  57. package/dist/parts/media-glass-options.css +37 -5
  58. package/dist/parts/media-glass.css +85 -35
  59. package/dist/parts/media-scrim.css +51 -0
  60. package/dist/parts/nav-topbar-variants.css +12 -4
  61. package/dist/parts/site-header-variants.css +40 -4
  62. package/dist/parts/site-hero-media.css +88 -0
  63. package/dist/parts/site-price-card.css +3 -1
  64. package/dist/parts/site-split-reverse.css +11 -0
  65. package/dist/parts/site-tint-card.css +5 -4
  66. package/dist/parts/utility-hover.css +6 -3
  67. package/dist/showcase.css +73 -31
  68. package/dist/sidebar.d.ts +22 -0
  69. package/dist/sidebar.js +161 -0
  70. package/dist/tabs.d.ts +9 -0
  71. package/dist/tabs.js +104 -0
  72. package/dist/theme.js +20 -4
  73. package/manifest.json +24 -0
  74. package/package.json +10 -2
  75. package/snippets/accordion-accent.html +1 -1
  76. package/snippets/copy-field.html +44 -6
  77. package/snippets/countdown.html +12 -0
  78. package/snippets/dropdown-menu.html +2 -0
  79. package/snippets/glass.html +3 -3
  80. package/snippets/hero-media.html +20 -0
  81. package/snippets/page-header.html +1 -1
  82. package/snippets/recovery-codes.html +55 -6
  83. package/snippets/scrim.html +19 -0
@@ -1,4 +1,4 @@
1
- /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.16.2. Do not edit. */
1
+ /* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.17.0. Do not edit. */
2
2
  /* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
3
3
  /* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
4
4
  :root {
@@ -247,6 +247,9 @@
247
247
  :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *)) { color-scheme: dark; }
248
248
  .oc-theme-scope:has(.oc-theme-switch input[value="light"]:checked) { color-scheme: light; }
249
249
  .oc-theme-scope:has(.oc-theme-switch input[value="dark"]:checked) { color-scheme: dark; }
250
+ /* A scope with a theme of its own (data-theme from a toggle button, or a light / dark switch inside it) takes the text
251
+ color of that theme: the color of the page was resolved for the page's theme and would be inherited as it is. */
252
+ .oc-theme-scope:is([data-theme="light"], [data-theme="dark"], :has(.oc-theme-switch input:is([value="light"], [value="dark"]):checked)) { color: var(--oc-foreground); }
250
253
 
251
254
  /* Base surface; :where() keeps specificity at zero so any project body style wins. */
252
255
  :where(body) {
@@ -1045,6 +1048,10 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1045
1048
  color: var(--oc-destructive-foreground);
1046
1049
  }
1047
1050
 
1051
+ /* Badge with a webicon (0.17.0): the icon sits before the text, 1em, never squeezed. */
1052
+ .oc-badge > :is(svg, iconify-icon) { flex-shrink: 0; inline-size: 1em; block-size: 1em; }
1053
+ .oc-badge:has(> :is(svg, iconify-icon)) { gap: 0.25rem; }
1054
+
1048
1055
  /* Badge pill (source file) */
1049
1056
  .oc-badge-source {
1050
1057
  display: inline-block;
@@ -1135,15 +1142,13 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1135
1142
  =================================================================== */
1136
1143
 
1137
1144
  .oc-section-header {
1138
- display: grid;
1139
- grid-template-columns: auto auto auto auto 1fr auto;
1140
- grid-template-rows: auto auto;
1141
- grid-template-areas:
1142
- "title source scss file . version"
1143
- "desc desc desc desc desc desc";
1145
+ /* Flex with wrap (not a fixed grid): the badges sit next to the title when there is room and wrap below it
1146
+ otherwise, so they never overlap a title that breaks over two lines in a narrow column. */
1147
+ display: flex;
1148
+ flex-wrap: wrap;
1144
1149
  align-items: center;
1145
1150
  padding: 1rem;
1146
- gap: 0 8px;
1151
+ gap: 0.375rem 0.5rem;
1147
1152
  border-bottom: 1px solid var(--oc-border);
1148
1153
  }
1149
1154
  /* A header without content below it closes the card: no second line on top of the card border. */
@@ -1151,43 +1156,37 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1151
1156
 
1152
1157
  /* Section header */
1153
1158
  .oc-section-header__title {
1154
- grid-area: title;
1159
+ flex: 0 1 auto;
1155
1160
  min-inline-size: 0;
1161
+ max-inline-size: 100%;
1162
+ overflow-wrap: anywhere;
1156
1163
  margin: var(--oc-section-header-title-margin);
1164
+ margin-inline-end: 0.25rem;
1157
1165
  font-size: var(--oc-section-header-title-font-size);
1158
1166
  }
1159
1167
 
1160
- .oc-section-header__badge-source {
1161
- grid-area: source;
1162
- margin-left: 0;
1163
- }
1164
-
1165
- .oc-section-header__badge-scss {
1166
- grid-area: scss;
1167
- margin-left: 0;
1168
- }
1169
-
1168
+ .oc-section-header__badge-source,
1169
+ .oc-section-header__badge-scss,
1170
1170
  .oc-section-header__badge-file {
1171
- grid-area: file;
1171
+ flex: none;
1172
1172
  margin-left: 0;
1173
1173
  }
1174
1174
 
1175
+ /* The version badge sits at the far right of its row. */
1175
1176
  .oc-section-header__badge-version {
1176
- grid-area: version;
1177
+ flex: none;
1178
+ margin-inline-start: auto;
1177
1179
  }
1178
1180
 
1179
1181
  .oc-section-header__desc {
1180
- grid-area: desc;
1182
+ flex: 1 0 100%;
1181
1183
  margin: var(--oc-section-header-desc-margin);
1182
1184
  font-size: var(--oc-section-header-desc-font-size);
1183
1185
  }
1184
1186
 
1185
- /* Phone: the title and the badges no longer fit on one row, so the row wraps (title first, badges below it in
1186
- source order, description last) instead of pushing the card wider than the screen. */
1187
+ /* Phone: title on its own row, the badges below it in source order, description last. */
1187
1188
  @media (max-width: 40rem) {
1188
- .oc-section-header { display: flex; flex-wrap: wrap; gap: 0.375rem 0.5rem; }
1189
1189
  .oc-section-header__title { flex: 1 0 100%; }
1190
- .oc-section-header__desc { flex: 1 0 100%; }
1191
1190
  }
1192
1191
 
1193
1192
  /* Section content */
@@ -1206,6 +1205,12 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1206
1205
  background: var(--oc-section-content-background);
1207
1206
  border-radius: var(--oc-section-content-border-radius);
1208
1207
  }
1208
+ /* The last part of a section card follows the card's rounded bottom corners, so its own background never covers the
1209
+ card border there (a smaller radius left the corners square and the bottom edge looked cut off). */
1210
+ :is(.oc-section, .oc-docs-section) > :last-child:is(.oc-section-content, .oc-section-footer) {
1211
+ border-end-start-radius: calc(var(--oc-section-border-radius) - 1px);
1212
+ border-end-end-radius: calc(var(--oc-section-border-radius) - 1px);
1213
+ }
1209
1214
 
1210
1215
  /* Section footer */
1211
1216
  .oc-section-footer {
@@ -1267,6 +1272,55 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1267
1272
  background: color-mix(in srgb, var(--oc-destructive) 5%, var(--oc-background));
1268
1273
  }
1269
1274
 
1275
+ /* Icon and actions (0.17.0): .oc-alert-icon on the left, the text in .oc-alert-body, buttons in .oc-alert-actions on the
1276
+ right (under the text when there is no room). */
1277
+ .oc-alert:has(> .oc-alert-body) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
1278
+ .oc-alert-body { flex: 1 1 14rem; min-inline-size: 0; }
1279
+ .oc-alert-icon {
1280
+ display: inline-grid;
1281
+ place-items: center;
1282
+ flex: none;
1283
+ inline-size: 2.25rem;
1284
+ block-size: 2.25rem;
1285
+ font-size: 1.25rem;
1286
+ color: var(--oc-alert-tone, var(--oc-primary));
1287
+ background: color-mix(in oklch, var(--oc-alert-tone, var(--oc-primary)) 14%, transparent);
1288
+ border-radius: 50%;
1289
+ }
1290
+ .oc-alert-icon > :is(svg, iconify-icon) { inline-size: 1.25rem; block-size: 1.25rem; font-size: 1.25rem; }
1291
+ .oc-alert-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-inline-start: auto; }
1292
+ .oc-alert--success { --oc-alert-tone: var(--oc-success); }
1293
+ .oc-alert--warning { --oc-alert-tone: var(--oc-warning); }
1294
+ .oc-alert--danger { --oc-alert-tone: var(--oc-destructive); }
1295
+
1296
+ /* Alarm (0.17.0): an urgent message that must be seen (a help request, a failed payment). data-state="new": a thick edge
1297
+ in the tone and a slow pulse until someone acknowledges it (the app then sets data-state="seen"); seen: calm, until
1298
+ it is closed. Use role="alert" for a new one, and a tone (--danger, --warning). With reduced motion: no pulse, a ring. */
1299
+ .oc-alert--alarm[data-state="new"] {
1300
+ position: relative;
1301
+ border: 2px solid var(--oc-alert-tone);
1302
+ background: color-mix(in oklch, var(--oc-alert-tone) 9%, var(--oc-background));
1303
+ }
1304
+ /* The pulse is a ring around the alert that fades in and out (opacity only, so the GPU draws it). */
1305
+ .oc-alert--alarm[data-state="new"]::before {
1306
+ content: "";
1307
+ position: absolute;
1308
+ inset: -2px;
1309
+ border-radius: inherit;
1310
+ box-shadow: 0 0 0 5px oklch(from var(--oc-alert-tone) l c h / 0.35);
1311
+ opacity: 0;
1312
+ pointer-events: none;
1313
+ animation: oc-alarm-pulse 1.6s ease-in-out infinite;
1314
+ }
1315
+ .oc-alert--alarm[data-state="new"] .oc-alert-title { color: var(--oc-foreground); }
1316
+ @keyframes oc-alarm-pulse {
1317
+ 0%, 100% { opacity: 0; }
1318
+ 50% { opacity: 1; }
1319
+ }
1320
+ @media (prefers-reduced-motion: reduce) {
1321
+ .oc-alert--alarm[data-state="new"]::before { animation: none; opacity: 1; }
1322
+ }
1323
+
1270
1324
  /* Inline: a short message right under a field or a form (an error, a hint), tinted, without the box spacing. */
1271
1325
  .oc-alert--inline {
1272
1326
  padding: 8px 12px;
@@ -1989,6 +2043,8 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1989
2043
  font-weight: 600;
1990
2044
  color: var(--oc-foreground);
1991
2045
  }
2046
+ /* Inside the framed scroll box the caption sits inside the border, so it gets the cell padding. */
2047
+ .oc-table-wrap:has(> .oc-table) > .oc-table > caption { padding: 0.75rem 0.75rem 0.5rem; }
1992
2048
  .oc-table-wrap {
1993
2049
  /* position: containing block for visually hidden labels in cells, else they escape the scroll clip and widen the page */
1994
2050
  position: relative;
@@ -2004,6 +2060,21 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2004
2060
  .oc-table-wrap > .oc-table > :first-child > tr:first-child > * { border-block-start: 0; }
2005
2061
  .oc-table-wrap > .oc-table > :last-child > tr:last-child > * { border-block-end: 0; }
2006
2062
 
2063
+ /* 0.17.0: .oc-table--auto sizes the columns by their content (the action column stays narrow, a name gets the room).
2064
+ data-hide-below="sm | md | lg" on a th and its tds hides that column when the table area is narrower than 24, 32 or
2065
+ 48rem; the wrap becomes the size reference only when a table uses it (so a table in a flex row keeps its width), and
2066
+ such a table drops the 32rem minimum width of the wrap: it gets narrower instead of scrolling.
2067
+ .oc-table-action-label: the text next to an action icon, hidden (still read out) in a narrow table or in
2068
+ .oc-table-actions--compact; the button keeps its title as tooltip. */
2069
+ .oc-table.oc-table--auto { table-layout: auto; }
2070
+ .oc-table-wrap:has([data-hide-below], .oc-table-action-label) { container: oc-table / inline-size; }
2071
+ .oc-table-wrap:has([data-hide-below]) > .oc-table { min-inline-size: 0; }
2072
+ /* The same switch in the data table component (hideBelow on a column): its scroll box is the size reference. */
2073
+ .oc-data-table-scroll:has([data-hide-below]) { container: oc-table / inline-size; }
2074
+ @container oc-table (max-width: 48rem) { .oc-table :is(th, td)[data-hide-below~="lg"] { display: none; } }
2075
+ @container oc-table (max-width: 32rem) { .oc-table :is(th, td)[data-hide-below~="md"] { display: none; } }
2076
+ @container oc-table (max-width: 24rem) { .oc-table :is(th, td)[data-hide-below~="sm"] { display: none; } }
2077
+
2007
2078
  /* ===================================================================
2008
2079
  Shared docs utility table styles (dark theme)
2009
2080
  Ensures ref-tables are always dark-themed in docs pages.
@@ -2036,8 +2107,10 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2036
2107
  .oc-expandable-table {
2037
2108
  margin-bottom: 2rem;
2038
2109
  }
2039
- .oc-expandable-table__row-dimmed {
2040
- opacity: 0.6;
2110
+ /* The last visible row is a hint that more rows follow. It is dimmed with the muted text color (code included),
2111
+ not with opacity: that kept the text below the AA contrast of 4.5:1 in light and dark. */
2112
+ .oc-expandable-table:not(.is-expanded):not(:has(.oc-expandable-table__toggle:checked)):has(.oc-expandable-table__row-more) .oc-expandable-table__row-dimmed :is(td, th, code) {
2113
+ color: var(--oc-muted-foreground);
2041
2114
  }
2042
2115
  .oc-expandable-table .oc-expandable-table__row-more {
2043
2116
  display: none;
@@ -2046,9 +2119,6 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2046
2119
  .oc-expandable-table:has(.oc-expandable-table__toggle:checked) .oc-expandable-table__row-more {
2047
2120
  display: table-row;
2048
2121
  }
2049
- .oc-expandable-table:has(.oc-expandable-table__toggle:checked) .oc-expandable-table__row-dimmed {
2050
- opacity: 1;
2051
- }
2052
2122
  /* The label is the containing block, so the hidden checkbox stays inside it and cannot stretch the page */
2053
2123
  .oc-expandable-table__trigger:has(.oc-expandable-table__toggle) {
2054
2124
  position: relative;
@@ -2074,13 +2144,6 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2074
2144
  .oc-expandable-table.is-expanded .oc-expandable-table__row-more {
2075
2145
  display: table-row;
2076
2146
  }
2077
- .oc-expandable-table.is-expanded .oc-expandable-table__row-dimmed {
2078
- opacity: 1;
2079
- }
2080
- /* Nothing hidden below it: the row is simply the last one, so it is not dimmed */
2081
- .oc-expandable-table:not(:has(.oc-expandable-table__row-more)) .oc-expandable-table__row-dimmed {
2082
- opacity: 1;
2083
- }
2084
2147
  /* Hide trigger when there are no hidden rows */
2085
2148
  .oc-expandable-table:not(:has(.oc-expandable-table__row-more)) .oc-expandable-table__wrap {
2086
2149
  display: none;
@@ -2386,29 +2449,34 @@ button.oc-pagination-item:focus-visible {
2386
2449
  Usage: add class .oc-scrollbar to any overflow:auto element.
2387
2450
  =================================================================== */
2388
2451
 
2452
+ /* Tokens (0.17.0): set them on the element, a parent or :root to restyle the bar; without them it keeps the look it
2453
+ always had. --oc-scrollbar-thumb(-hover) default to --oc-muted(-foreground), which already follow light and dark
2454
+ mode. --oc-scrollbar-size is the WebKit width (Firefox only knows thin, see scrollbar-width below).
2455
+ --oc-scrollbar-size: 8px (thin 5px), --oc-scrollbar-thumb, --oc-scrollbar-thumb-hover, --oc-scrollbar-track: transparent */
2456
+
2389
2457
  /* Webkit (Chrome, Edge, Safari) */
2390
- .oc-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
2391
- .oc-scrollbar::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
2458
+ .oc-scrollbar::-webkit-scrollbar { width: var(--oc-scrollbar-size, 8px); height: var(--oc-scrollbar-size, 8px); }
2459
+ .oc-scrollbar::-webkit-scrollbar-track { background: var(--oc-scrollbar-track, transparent); border-radius: 4px; }
2392
2460
  .oc-scrollbar::-webkit-scrollbar-thumb {
2393
- background: var(--oc-muted, oklch(from var(--color-gray-30) l c h / 0.3));
2461
+ background: var(--oc-scrollbar-thumb, var(--oc-muted, oklch(from var(--color-gray-30) l c h / 0.3)));
2394
2462
  border-radius: 4px;
2395
2463
  border: 2px solid transparent;
2396
2464
  background-clip: content-box;
2397
2465
  }
2398
2466
  .oc-scrollbar::-webkit-scrollbar-thumb:hover {
2399
- background: var(--oc-muted-foreground, oklch(from var(--color-gray-30) l c h / 0.5));
2467
+ background: var(--oc-scrollbar-thumb-hover, var(--oc-muted-foreground, oklch(from var(--color-gray-30) l c h / 0.5)));
2400
2468
  background-clip: content-box;
2401
2469
  }
2402
2470
 
2403
2471
  /* Thin variant */
2404
- .oc-scrollbar--thin::-webkit-scrollbar { width: 5px; height: 5px; }
2472
+ .oc-scrollbar--thin::-webkit-scrollbar { width: var(--oc-scrollbar-size, 5px); height: var(--oc-scrollbar-size, 5px); }
2405
2473
 
2406
2474
  /* Hidden — hides scrollbar but keeps scroll */
2407
2475
  .oc-scrollbar--hidden::-webkit-scrollbar { display: none; }
2408
2476
  .oc-scrollbar--hidden { -ms-overflow-style: none; scrollbar-width: none; }
2409
2477
 
2410
2478
  /* Firefox */
2411
- .oc-scrollbar { scrollbar-width: thin; scrollbar-color: var(--oc-muted, oklch(from var(--color-gray-30) l c h / 0.3)) transparent; }
2479
+ .oc-scrollbar { scrollbar-width: thin; scrollbar-color: var(--oc-scrollbar-thumb, var(--oc-muted, oklch(from var(--color-gray-30) l c h / 0.3))) var(--oc-scrollbar-track, transparent); }
2412
2480
  .oc-scrollbar--thin { scrollbar-width: thin; }
2413
2481
 
2414
2482
  /* ===================================================================
@@ -2589,7 +2657,8 @@ details.oc-accordion-item[open]::details-content {
2589
2657
  }
2590
2658
  .oc-tabset > .oc-tab-list--vertical { grid-row: 1 / span 6; }
2591
2659
  .oc-tabset .oc-tab-list--vertical .oc-tab-trigger { justify-content: flex-start; }
2592
- .oc-tabset:has(> .oc-tab-list--vertical) > .oc-tab-panel { grid-column: 2; grid-row: 1; padding-block: 0.25rem; }
2660
+ /* The panel's first line sits level with the label of the first tab (same top padding as a tab trigger). */
2661
+ .oc-tabset:has(> .oc-tab-list--vertical) > .oc-tab-panel { grid-column: 2; grid-row: 1; padding-block: 0.5rem 0.25rem; }
2593
2662
  .oc-tabset .oc-tab-list--vertical .oc-tab-trigger:has(input:checked) {
2594
2663
  border-bottom-color: transparent;
2595
2664
  border-right-color: var(--oc-foreground);
@@ -2789,6 +2858,27 @@ details.oc-accordion-item[open]::details-content {
2789
2858
  .oc-empty-title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--oc-foreground); }
2790
2859
  .oc-empty-text { margin: 0; max-inline-size: 28rem; font-size: 0.875rem; }
2791
2860
  .oc-empty-actions { display: flex; gap: 0.5rem; margin-block-start: 0.5rem; }
2861
+ /* Locked (0.17.0): content that opens later (in a zone, after scanning a code, at a time). A dashed frame, the lock in the
2862
+ brand color, and .oc-empty-meta for what is left ("120 m to go", "opens at 14:00"). */
2863
+ .oc-empty--locked {
2864
+ border: 1px dashed var(--oc-border-strong);
2865
+ border-radius: calc(var(--oc-radius) + 4px);
2866
+ background: var(--oc-surface);
2867
+ }
2868
+ .oc-empty--locked .oc-empty-icon {
2869
+ color: var(--oc-primary);
2870
+ background: color-mix(in oklch, var(--oc-primary) 12%, transparent);
2871
+ }
2872
+ .oc-empty-icon > :is(svg, iconify-icon) { inline-size: 1.25rem; block-size: 1.25rem; font-size: 1.25rem; }
2873
+ .oc-empty-meta {
2874
+ padding: 0.15rem 0.65rem;
2875
+ font-size: 0.8125rem;
2876
+ font-weight: 600;
2877
+ font-variant-numeric: tabular-nums;
2878
+ color: var(--oc-foreground);
2879
+ background: var(--oc-muted);
2880
+ border-radius: 999px;
2881
+ }
2792
2882
 
2793
2883
  /* ---- Badge: info ---- */
2794
2884
  .oc-badge--info {
@@ -2928,6 +3018,14 @@ details.oc-sidebar-collapsible[open] > summary::after { transform: rotate(225deg
2928
3018
 
2929
3019
  /* Icon-only mode */
2930
3020
  .oc-sidebar--collapsed { inline-size: var(--oc-sidebar-width-icon); }
3021
+ /* Overlay (0.17.0): for a tablet. The layout keeps only the rail width (a negative margin), so opening the sidebar does
3022
+ not push the page: it lies over the content, which darkens (a wide shadow of the sidebar itself). A click outside it
3023
+ and Escape close it; the components do that. Collapsed it is the normal rail. */
3024
+ .oc-sidebar.oc-sidebar--overlay { position: relative; z-index: 60; }
3025
+ .oc-sidebar.oc-sidebar--overlay:not(.oc-sidebar--collapsed) {
3026
+ margin-inline-end: calc(var(--oc-sidebar-width-icon) - var(--oc-sidebar-width));
3027
+ box-shadow: 0 0 0 100vmax oklch(from var(--color-black-60) l c h / 0.32), 0 0 40px -12px oklch(from var(--color-black-60) l c h / 0.45);
3028
+ }
2931
3029
  .oc-sidebar--collapsed .oc-sidebar-menu-label,
2932
3030
  .oc-sidebar--collapsed .oc-sidebar-menu-badge,
2933
3031
  .oc-sidebar--collapsed .oc-sidebar-menu-sub,
@@ -2935,6 +3033,11 @@ details.oc-sidebar-collapsible[open] > summary::after { transform: rotate(225deg
2935
3033
  .oc-sidebar--collapsed .oc-user-text,
2936
3034
  .oc-sidebar--collapsed details.oc-sidebar-collapsible > summary::after { display: none; }
2937
3035
  .oc-sidebar--collapsed .oc-sidebar-menu-button { justify-content: center; padding-inline: 0; }
3036
+ /* Collapsed (0.17.0): a menu button with .oc-tooltip.oc-tooltip--right and data-tooltip shows its label as a tooltip on
3037
+ hover and keyboard focus, anchored to the button and fixed, so the scrolling menu does not clip it. In the open
3038
+ sidebar the label is visible: no tooltip. The components add it for you. */
3039
+ .oc-sidebar-menu-button.oc-tooltip { cursor: pointer; }
3040
+ .oc-sidebar:not(.oc-sidebar--collapsed) .oc-sidebar-menu-button.oc-tooltip::after { content: none; }
2938
3041
  .oc-sidebar--collapsed .oc-sidebar-header,
2939
3042
  .oc-sidebar--collapsed .oc-sidebar-footer { align-items: center; padding-inline: 0.5rem; }
2940
3043
 
@@ -3319,6 +3422,8 @@ dialog.oc-sheet--bottom .oc-sheet-content { border-block-start: 1px solid var(--
3319
3422
  display: flex;
3320
3423
  flex-direction: column;
3321
3424
  gap: 0.5rem;
3425
+ /* Full width of its column, also as a flex or grid item (it does not shrink to the longest label). */
3426
+ inline-size: 100%;
3322
3427
  margin: 0;
3323
3428
  padding: 0;
3324
3429
  list-style: none;
@@ -3461,6 +3566,28 @@ details.oc-collapsible[open] > summary { border-end-start-radius: 0; border-end-
3461
3566
  .oc-collapsible-content { padding: 1.5rem; border-block-start: 1px solid var(--oc-border); }
3462
3567
  .oc-collapsible--dense > summary { padding: 0.75rem; }
3463
3568
  .oc-collapsible--dense .oc-collapsible-content { padding: 1rem; }
3569
+ /* Meta in the header (0.17.0): a pill before the chevron (a count, "−5 points"). */
3570
+ .oc-collapsible-meta {
3571
+ margin-inline-start: auto;
3572
+ padding: 0.1rem 0.6rem;
3573
+ font-size: 0.75rem;
3574
+ font-weight: 600;
3575
+ font-variant-numeric: tabular-nums;
3576
+ color: var(--oc-foreground);
3577
+ background: var(--oc-muted);
3578
+ border-radius: 999px;
3579
+ }
3580
+ details.oc-collapsible > summary:has(> .oc-collapsible-meta)::after { margin-inline-start: 0.75rem; }
3581
+ /* Hint (0.17.0): a tip the player opens on purpose, maybe at a cost. A dashed frame in the warning tone until it is
3582
+ opened; the cost sits in .oc-collapsible-meta. With "once" the components keep it open: a seen hint stays seen. */
3583
+ details.oc-collapsible.oc-collapsible--hint {
3584
+ border-style: dashed;
3585
+ border-color: oklch(from var(--oc-warning) l c h / 0.6);
3586
+ background: color-mix(in oklch, var(--oc-warning) 6%, var(--oc-card, var(--oc-background)));
3587
+ }
3588
+ details.oc-collapsible.oc-collapsible--hint[open] { border-style: solid; }
3589
+ .oc-collapsible--hint .oc-collapsible-icon { color: light-dark(oklch(from var(--oc-warning) min(l, 0.55) c h), var(--oc-warning)); }
3590
+ .oc-collapsible--hint .oc-collapsible-meta { background: color-mix(in oklch, var(--oc-warning) 22%, transparent); }
3464
3591
  details.oc-collapsible::details-content {
3465
3592
  block-size: 0;
3466
3593
  overflow: clip;
@@ -3590,19 +3717,36 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3590
3717
 
3591
3718
  /* ===================================================================
3592
3719
  OTP — one-time code: ONE real <input> drawn as separate cells (paste, autofill and password managers work).
3593
- Cells: set --oc-otp-length (default 6) to the input's maxlength.
3720
+ Cells: set --oc-otp-length (default 6) to the input's maxlength. --fit: cells shrink with the parent; --group: a
3721
+ divider after every --oc-otp-group cells (0.17.0). --oc-otp-size sets the digit size (default 1.5rem).
3722
+ Each character advances one cell (1ch + letter-spacing), but letter-spacing sits AFTER every character, also after
3723
+ the last one. Centring the digits with a start padding therefore made a full code half a cell wider than the field:
3724
+ with focus the caret at the end scrolled the text ~11px to the left (first digit cut off). Since 0.17.0 the text
3725
+ starts at the left edge of each cell (so a full code fits exactly and the caret never scrolls) and the visible
3726
+ digits are a text-shadow moved half a cell gap to the right; the real glyphs are transparent. Selection, caret,
3727
+ paste and autofill still work on the real text. The field also sets its own block-size and font-size, so a global
3728
+ app rule like input { height: 2rem } does not squash the cells.
3594
3729
  =================================================================== */
3595
3730
  .oc-otp {
3596
3731
  --oc-otp-length: 6;
3597
3732
  --oc-otp-cell: 2.75ch;
3733
+ --oc-otp-shift: calc((var(--oc-otp-cell) - 1ch) / 2);
3734
+ box-sizing: border-box;
3598
3735
  inline-size: calc(var(--oc-otp-length) * var(--oc-otp-cell));
3599
3736
  max-inline-size: 100%;
3600
- padding: 0.6rem 0 0.6rem calc((var(--oc-otp-cell) - 1ch) / 2);
3737
+ block-size: calc(1lh + 1.2rem + 2px);
3738
+ min-block-size: 0;
3739
+ padding: 0.6rem 0;
3601
3740
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
3602
- font-size: 1.5rem;
3741
+ font-size: var(--oc-otp-size, 1.5rem);
3742
+ line-height: 1.2;
3603
3743
  letter-spacing: calc(var(--oc-otp-cell) - 1ch);
3604
3744
  text-align: start;
3745
+ text-indent: 0;
3605
3746
  color: var(--oc-foreground);
3747
+ -webkit-text-fill-color: transparent;
3748
+ text-shadow: var(--oc-otp-shift) 0 0 var(--oc-foreground);
3749
+ caret-color: var(--oc-foreground);
3606
3750
  background-color: var(--oc-background);
3607
3751
  background-image: repeating-linear-gradient(
3608
3752
  90deg in srgb,
@@ -3619,6 +3763,43 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3619
3763
  .oc-otp:focus { box-shadow: 0 0 0 2px oklch(from var(--oc-ring) l c h / 0.35); }
3620
3764
  .oc-otp[aria-invalid="true"] { border-block-color: var(--oc-destructive); }
3621
3765
  .oc-otp:disabled { opacity: 0.5; cursor: not-allowed; }
3766
+ .oc-otp::placeholder { -webkit-text-fill-color: transparent; text-shadow: var(--oc-otp-shift) 0 0 var(--oc-muted-foreground); opacity: 1; }
3767
+ /* the selection covers the real (transparent) glyph boxes = exactly the cells; the shadow keeps the digit visible */
3768
+ .oc-otp::selection {
3769
+ color: transparent;
3770
+ -webkit-text-fill-color: transparent;
3771
+ background-color: oklch(from var(--oc-ring) l c h / 0.25);
3772
+ text-shadow: var(--oc-otp-shift) 0 0 var(--oc-foreground);
3773
+ }
3774
+ /* forced colours drop text-shadow: show the real glyphs again (start of each cell) */
3775
+ @media (forced-colors: active) {
3776
+ .oc-otp, .oc-otp::placeholder { -webkit-text-fill-color: currentColor; text-shadow: none; }
3777
+ }
3778
+
3779
+ /* --fit (0.17.0): the cells shrink with the room the parent gives (a phone with an 8-character code). The parent
3780
+ becomes the size reference (container-type: inline-size), at most the normal 1.5rem. */
3781
+ :where(*:has(> .oc-otp--fit)) { container-type: inline-size; }
3782
+ .oc-otp.oc-otp--fit { font-size: min(1.5rem, calc(100cqi / (var(--oc-otp-length) * 1.75))); }
3783
+ /* --group (0.17.0): a darker divider after every --oc-otp-group cells (default 4: "ABCD EFGH"), so a long code reads
3784
+ in parts. Still one input: paste, autofill and the caret work as before. */
3785
+ .oc-otp.oc-otp--group {
3786
+ --oc-otp-group: 4;
3787
+ background-image:
3788
+ repeating-linear-gradient(
3789
+ 90deg in srgb,
3790
+ transparent 0 calc(var(--oc-otp-group) * var(--oc-otp-cell) - 2px),
3791
+ var(--oc-muted-foreground) calc(var(--oc-otp-group) * var(--oc-otp-cell) - 2px) calc(var(--oc-otp-group) * var(--oc-otp-cell))
3792
+ ),
3793
+ repeating-linear-gradient(
3794
+ 90deg in srgb,
3795
+ var(--oc-input) 0 1px,
3796
+ transparent 1px calc(var(--oc-otp-cell) - 1px),
3797
+ var(--oc-input) calc(var(--oc-otp-cell) - 1px) var(--oc-otp-cell)
3798
+ );
3799
+ /* the divider layer stops half a cell before the end: no heavy line on the right edge */
3800
+ background-size: calc((var(--oc-otp-length) - 0.5) * var(--oc-otp-cell)) 100%, auto;
3801
+ background-repeat: no-repeat, repeat;
3802
+ }
3622
3803
 
3623
3804
  /* ===================================================================
3624
3805
  REVEAL — password field with a show/hide button. A script flips input.type (see snippet).
@@ -3689,6 +3870,35 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3689
3870
  /* Keyboard focus on the value (to select it by hand): ring around the whole field. */
3690
3871
  .oc-copy-field:has(.oc-copy-field-value:focus-visible) { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
3691
3872
 
3873
+ /* --display (0.17.0): a code people read and type over (a join code under a QR, a voucher): large, centred, spaced
3874
+ monospace. Show it in groups ("K7QM 2XPA") and put the raw code in data-copy on the button: that is what gets copied.
3875
+ .oc-copy-field-caption is a short explanation in the frame under the code (also on paper; the button is not printed).
3876
+ --lg for a code that is read from a distance. The size shrinks to fit a narrow field: set --oc-copy-chars to the
3877
+ number of characters shown (the components do). */
3878
+ .oc-copy-field--display { container-type: inline-size; flex-wrap: wrap; background: var(--oc-card); }
3879
+ .oc-copy-field--display .oc-copy-field-value {
3880
+ padding: 0.75rem 1rem;
3881
+ font-size: min(1.5rem, calc((100cqi - 6rem) / (var(--oc-copy-chars, 9) * 0.75)));
3882
+ font-weight: 600;
3883
+ letter-spacing: 0.12em;
3884
+ text-align: center;
3885
+ text-overflow: clip;
3886
+ }
3887
+ .oc-copy-field--display.oc-copy-field--lg .oc-copy-field-value { padding-block: 1rem; font-size: min(2.25rem, calc((100cqi - 6rem) / (var(--oc-copy-chars, 9) * 0.75))); }
3888
+ .oc-copy-field--display .oc-copy-field-button { padding-inline: 1rem; font-size: 0.8125rem; }
3889
+ .oc-copy-field-caption {
3890
+ flex-basis: 100%;
3891
+ margin: 0;
3892
+ padding: 0.5rem 0.75rem;
3893
+ font-size: 0.8125rem;
3894
+ text-align: center;
3895
+ color: var(--oc-muted-foreground);
3896
+ border-block-start: 1px solid var(--oc-border);
3897
+ }
3898
+ @media print {
3899
+ .oc-copy-field--display .oc-copy-field-button { display: none; }
3900
+ }
3901
+
3692
3902
  /* ===================================================================
3693
3903
  COLOR FIELD — native <input type="color"> next to a text value
3694
3904
  =================================================================== */
@@ -3704,6 +3914,35 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3704
3914
  }
3705
3915
  .oc-color-field > input[type="color"]:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
3706
3916
  .oc-color-field > .oc-input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
3917
+ /* Contrast report under the field (0.17.0): text on the picked color (light or dark text, whichever reads best; 4.5:1)
3918
+ and the color against the page backgrounds you pass (3:1, so a button or a link stands out). A word says the result,
3919
+ the color only repeats it. */
3920
+ .oc-color-field:has(> .oc-color-field-report) { flex-wrap: wrap; }
3921
+ .oc-color-field-report {
3922
+ display: grid;
3923
+ flex-basis: 100%;
3924
+ gap: 0.35rem;
3925
+ margin: 0.15rem 0 0;
3926
+ padding: 0;
3927
+ list-style: none;
3928
+ font-size: 0.8125rem;
3929
+ }
3930
+ .oc-color-field-check { display: flex; align-items: center; gap: 0.5rem; }
3931
+ .oc-color-field-sample {
3932
+ display: inline-grid;
3933
+ place-items: center;
3934
+ flex: none;
3935
+ inline-size: 2.25rem;
3936
+ block-size: 1.5rem;
3937
+ font-size: 0.75rem;
3938
+ font-weight: 700;
3939
+ border: 1px solid var(--oc-border);
3940
+ border-radius: calc(var(--oc-radius) - 2px);
3941
+ }
3942
+ .oc-color-field-sample > i { inline-size: 0.8rem; block-size: 0.8rem; border-radius: 50%; }
3943
+ .oc-color-field-ratio { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
3944
+ .oc-color-field-check[data-ok="true"] .oc-color-field-ratio { color: var(--oc-success); }
3945
+ .oc-color-field-check[data-ok="false"] .oc-color-field-ratio { color: var(--oc-destructive); }
3707
3946
 
3708
3947
  /* ===================================================================
3709
3948
  DROPZONE — file upload target. A <label> around a real <input type="file">; click and keyboard work natively.
@@ -4083,7 +4322,10 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4083
4322
  Your own ratio: set --oc-split-cols in a class (and to 1fr in a media query for small screens). */
4084
4323
  .oc-split--lead { --oc-split-cols: 1.25fr 1fr; }
4085
4324
  .oc-split--media { --oc-split-cols: 1fr 1.15fr; }
4086
- .oc-split__media { display: grid; place-items: center; }
4325
+ .oc-split__media { display: grid; place-items: center; container-type: inline-size; }
4326
+ /* A large product mark never grows wider than its column: in a narrow box (a card, a docs preview) the text keeps its
4327
+ share of the split instead of being squeezed to a few words per line. */
4328
+ .oc-split__media .oc-icon-tile--xl { --oc-tile-size: min(clamp(7rem, 22vw, 15rem), 100cqi); }
4087
4329
  /* Columns aligned at the top (a fact list next to a long text). */
4088
4330
  .oc-split--top { align-items: start; }
4089
4331
  /* --oc-split-cols-wide: your own ratio that only applies above 960px, so the split still stacks on a phone. */
@@ -4156,7 +4398,10 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4156
4398
  .oc-browser-frame__bar > i { inline-size: 0.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--oc-border-strong); }
4157
4399
  .oc-browser-frame__bar > i:first-child { background: var(--oc-accent-from); }
4158
4400
  .oc-browser-frame > img,
4159
- .oc-browser-frame__body { display: block; inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
4401
+ .oc-browser-frame__body { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
4402
+ /* block-size: auto above: an <img> with width/height attributes keeps the 16 / 10 box instead of its attribute height
4403
+ (which cropped the sides). An <img> inside the body (the React, Vue and Blade showcase render it so) fills that box too. */
4404
+ .oc-browser-frame__body > img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; }
4160
4405
 
4161
4406
  /* Icon tile: rounded square with an accent gradient (product logo, feature icon) */
4162
4407
  .oc-icon-tile {
@@ -4182,7 +4427,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4182
4427
  .oc-icon-tile--float { animation: oc-float 6s ease-in-out infinite; }
4183
4428
  @keyframes oc-float { 50% { translate: 0 -12px; } }
4184
4429
 
4185
- /* Product / feature card with hover lift and accent glow */
4430
+ /* Product / feature card with a soft hover lift and an accent border (no glow) */
4186
4431
  .oc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--oc-card-min, 17rem)), 1fr)); gap: var(--oc-card-gap, 1.25rem); }
4187
4432
  /* Wide cards (projects, case studies): from 32rem, three in a row on a wide screen. */
4188
4433
  .oc-card-grid--wide { --oc-card-min: 32rem; --oc-card-gap: 1.5rem; }
@@ -4197,30 +4442,24 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4197
4442
  padding: 1.6rem;
4198
4443
  border: 1px solid var(--oc-border);
4199
4444
  border-radius: var(--oc-radius-lg);
4200
- background:
4201
- radial-gradient(22rem circle at 50% 0%, oklch(from var(--oc-accent-from) l c h / var(--oc-glow, 0)), transparent 60%),
4202
- var(--oc-surface);
4445
+ background: var(--oc-surface);
4203
4446
  color: var(--oc-foreground);
4204
4447
  text-decoration: none;
4205
- transition: translate 0.35s var(--oc-ease-out), border-color 0.35s, --oc-glow 0.35s;
4206
- }
4207
- @property --oc-glow {
4208
- syntax: "<number>";
4209
- inherits: false;
4210
- initial-value: 0;
4448
+ /* Timing lives in parts/utility-hover.css: 0.3s ease after a 0.08s delay, so the lift eases in instead of jumping. */
4449
+ transition: translate 0.3s ease 0.08s, border-color 0.3s ease 0.08s;
4211
4450
  }
4212
4451
  .oc-product-card:hover {
4213
- --oc-glow: 0.22;
4214
4452
  /* The lift uses translate; a fly-in (.oc-reveal--fly) animates the transform, so both keep working. */
4215
4453
  translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
4216
- border-color: oklch(from var(--oc-accent-from) l c h / 0.55);
4454
+ border-color: oklch(from var(--oc-accent-from) l c h / 0.45);
4217
4455
  }
4218
4456
  .oc-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 0.75rem; }
4219
4457
  .oc-product-card__name { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
4220
4458
  .oc-product-card__tagline { margin: 0; color: light-dark(oklch(from var(--oc-accent-from) min(l, 0.52) c h), oklch(from var(--oc-accent-from) max(l, 0.72) c h)); font-weight: 600; font-size: 0.95rem; }
4221
4459
  .oc-product-card__summary { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
4222
4460
  .oc-product-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-block-start: 0.75rem; font-weight: 600; font-size: 0.92rem; }
4223
- .oc-product-card__more::after { content: "\002192"; transition: translate 0.25s var(--oc-ease-out); }
4461
+ .oc-product-card__more::after { content: "\002192"; transition: translate 0.3s ease 0.08s; }
4462
+ @media (prefers-reduced-motion: reduce) { .oc-product-card__more::after { transition: none; } .oc-product-card:hover .oc-product-card__more::after { translate: none; } }
4224
4463
  .oc-product-card:hover .oc-product-card__more::after { translate: 5px 0; }
4225
4464
 
4226
4465
  /* Pill badge (neutral) and accent pill + pulsing status dot */
@@ -4278,11 +4517,13 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4278
4517
  .oc-stat-strip {
4279
4518
  display: grid;
4280
4519
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
4520
+ overflow: hidden;
4281
4521
  border-block: 1px solid var(--oc-border);
4282
4522
  background: var(--oc-surface);
4283
4523
  }
4284
- .oc-stat-strip__item { padding: 2rem 1.5rem; border-inline-start: 1px solid var(--oc-border); }
4285
- .oc-stat-strip__item:first-child { border-inline-start: 0; }
4524
+ /* Cell lines as a 1px shadow on the start and top side of every figure; the strip clips the ones on its outer edge.
4525
+ So the lines stay even for any number of columns (4, 2 + 2, 1 per row) and container width. */
4526
+ .oc-stat-strip__item { padding: 2rem 1.5rem; box-shadow: -1px 0 0 var(--oc-border), 0 -1px 0 var(--oc-border); }
4286
4527
  .oc-stat-strip__value { font-family: var(--oc-font-display, inherit); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
4287
4528
  .oc-stat-strip__suffix { color: var(--oc-brand-1); }
4288
4529
  .oc-stat-strip__label { display: block; color: var(--oc-muted-foreground); font-size: 0.92rem; }
@@ -4291,8 +4532,6 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4291
4532
  /* Four figures on a narrower screen: two rows of two instead of three and one. */
4292
4533
  @media (max-width: 960px) {
4293
4534
  .oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
4294
- .oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(3) { border-inline-start: 0; }
4295
- .oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(n + 3) { border-block-start: 1px solid var(--oc-border); }
4296
4535
  }
4297
4536
 
4298
4537
  /* Spotlight: large highlighted panel with copy + module list */
@@ -4325,7 +4564,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4325
4564
  .oc-steps > li { position: relative; padding: 1.75rem 1.5rem; border-block-start: 2px solid var(--oc-border-strong); counter-increment: oc-step; }
4326
4565
  .oc-steps > li::before { content: ""; position: absolute; inset-block-start: -2px; inset-inline-start: 0; inline-size: 3rem; block-size: 2px; background: var(--oc-gradient-brand); }
4327
4566
  .oc-steps > li::after { content: counter(oc-step, decimal-leading-zero); position: absolute; inset-block-start: 1.75rem; inset-inline-end: 1.5rem; color: var(--oc-brand-1); font-family: var(--oc-font-mono); font-size: 0.85rem; }
4328
- .oc-steps h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
4567
+ .oc-steps h3 { margin: 0 0 0.5rem; font-size: 1.3rem; color: var(--oc-foreground); }
4329
4568
  .oc-steps p { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; }
4330
4569
 
4331
4570
  /* Marquee: endless scrolling row (repeat the items once; pauses on hover) */
@@ -4403,15 +4642,17 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4403
4642
  .oc-site-header__toggle { display: none; padding: 0.5rem 0.7rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius-md); background: var(--oc-surface); color: var(--oc-foreground); cursor: pointer; }
4404
4643
  /* The icon in the menu button is a block, so the button is as tall as a line of text (no inline gap under it). */
4405
4644
  .oc-site-header__toggle :is(svg, img, iconify-icon, .oc-icon) { display: block; }
4645
+ /* The media queries below follow the window. A header with .oc-site-header--container follows its own width instead
4646
+ (container queries further down); :where() keeps it out of these rules without adding specificity. */
4406
4647
  @media (min-width: 861px) {
4407
4648
  /* Desktop: the popover nav is always visible in the header bar. */
4408
- .oc-site-header__nav[popover] { display: flex; }
4649
+ .oc-site-header__nav[popover]:where(:not(.oc-site-header--container *)) { display: flex; }
4409
4650
  }
4410
4651
  @media (max-width: 860px) {
4411
- .oc-site-header__toggle { display: block; }
4652
+ .oc-site-header__toggle:where(:not(.oc-site-header--container *)) { display: block; }
4412
4653
  /* The author rule display:flex above beats the UA rule that hides a closed popover. */
4413
- .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
4414
- .oc-site-header__nav[popover]:popover-open {
4654
+ .oc-site-header__nav[popover]:not(:popover-open):where(:not(.oc-site-header--container *)) { display: none; }
4655
+ .oc-site-header__nav[popover]:popover-open:where(:not(.oc-site-header--container *)) {
4415
4656
  position: fixed;
4416
4657
  inset: 4.5rem 0 auto;
4417
4658
  /* The UA popover style sizes to fit-content; let inset span the full width. */
@@ -4427,16 +4668,49 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4427
4668
  backdrop-filter: blur(16px);
4428
4669
  }
4429
4670
  /* Not the items of a dropdown in the menu (language select): they keep their own size. */
4430
- .oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
4671
+ .oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item):where(:not(.oc-site-header--container *)) { padding: 0.75rem 0; font-size: 1.1rem; }
4431
4672
  /* The call to action (.oc-site-header__cta, a button) gets room above it in the open menu. */
4432
- .oc-site-header__cta { margin-block-start: 0.75rem; }
4673
+ .oc-site-header__cta:where(:not(.oc-site-header--container *)) { margin-block-start: 0.75rem; }
4433
4674
  }
4434
4675
  /* --collapse-lg: the menu becomes a popover below 1180px instead of 860px, for a bar with many or long items
4435
4676
  (theme switch, language select, long words). A media query cannot read a variable, so it is a modifier. */
4436
4677
  @media (min-width: 861px) and (max-width: 1180px) {
4437
- .oc-site-header--collapse-lg .oc-site-header__toggle { display: block; }
4438
- .oc-site-header--collapse-lg .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
4439
- .oc-site-header--collapse-lg .oc-site-header__nav[popover]:popover-open {
4678
+ .oc-site-header--collapse-lg:where(:not(.oc-site-header--container)) .oc-site-header__toggle { display: block; }
4679
+ .oc-site-header--collapse-lg:where(:not(.oc-site-header--container)) .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
4680
+ .oc-site-header--collapse-lg:where(:not(.oc-site-header--container)) .oc-site-header__nav[popover]:popover-open {
4681
+ position: fixed;
4682
+ inset: 4.5rem 0 auto;
4683
+ inline-size: auto;
4684
+ block-size: auto;
4685
+ display: flex;
4686
+ flex-direction: column;
4687
+ align-items: stretch;
4688
+ gap: 0.25rem;
4689
+ padding: 1rem 1.25rem 1.5rem;
4690
+ border-block-end: 1px solid var(--oc-border);
4691
+ background: oklch(from var(--oc-background) l c h / 0.96);
4692
+ backdrop-filter: blur(16px);
4693
+ }
4694
+ .oc-site-header--collapse-lg:where(:not(.oc-site-header--container)) .oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
4695
+ .oc-site-header--collapse-lg:where(:not(.oc-site-header--container)) .oc-site-header__cta { margin-block-start: 0.75rem; }
4696
+ }
4697
+ /* --container (0.17.0): the menu folds into the menu button at the width of the header itself, not of the window.
4698
+ For a header in a narrow column, a card, a preview or a side panel. The open menu is anchored under the header and
4699
+ as wide as the header (anchor positioning); without anchor positioning it opens under the top of the window. */
4700
+ .oc-site-header--container { container: oc-site-header / inline-size; }
4701
+ /* Every header has its own anchor: the menu of one header never opens under another one. The Pro mega menu names the
4702
+ header --oc-mega-header; both names are kept (the doubled class wins over that single name). */
4703
+ .oc-site-header.oc-site-header--container {
4704
+ anchor-name: --oc-site-header, --oc-mega-header;
4705
+ anchor-scope: --oc-site-header, --oc-mega-header;
4706
+ }
4707
+ @container oc-site-header (min-width: 53.8125rem) {
4708
+ .oc-site-header--container .oc-site-header__nav[popover] { display: flex; }
4709
+ }
4710
+ @container oc-site-header (max-width: 53.75rem) {
4711
+ .oc-site-header--container .oc-site-header__toggle { display: block; }
4712
+ .oc-site-header--container .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
4713
+ .oc-site-header--container .oc-site-header__nav[popover]:popover-open {
4440
4714
  position: fixed;
4441
4715
  inset: 4.5rem 0 auto;
4442
4716
  inline-size: auto;
@@ -4450,8 +4724,15 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4450
4724
  background: oklch(from var(--oc-background) l c h / 0.96);
4451
4725
  backdrop-filter: blur(16px);
4452
4726
  }
4453
- .oc-site-header--collapse-lg .oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
4454
- .oc-site-header--collapse-lg .oc-site-header__cta { margin-block-start: 0.75rem; }
4727
+ @supports (anchor-name: --a) {
4728
+ .oc-site-header--container .oc-site-header__nav[popover]:popover-open {
4729
+ position-anchor: --oc-site-header;
4730
+ inset: anchor(bottom) anchor(right) auto anchor(left);
4731
+ border-inline: 1px solid var(--oc-border);
4732
+ }
4733
+ }
4734
+ .oc-site-header--container .oc-site-header__nav[popover] a:not(.oc-btn, .oc-dropdown-item) { padding: 0.75rem 0; font-size: 1.1rem; }
4735
+ .oc-site-header--container .oc-site-header__cta { margin-block-start: 0.75rem; }
4455
4736
  }
4456
4737
 
4457
4738
  /* Site footer: brand column + link columns + bottom bar */
@@ -4652,10 +4933,20 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4652
4933
  .oc-topbar-toggle:focus-visible + .oc-topbar-burger { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
4653
4934
  @media (max-width: 760px) {
4654
4935
  .oc-topbar { padding-block: 8px; }
4655
- .oc-topbar--collapsible .oc-topbar-burger { display: inline-flex; }
4936
+ .oc-topbar--collapsible .oc-topbar-burger { display: inline-flex; order: 2; }
4937
+ .oc-topbar--collapsible .oc-topbar-actions { margin-inline-start: auto; }
4656
4938
  .oc-topbar--collapsible .oc-topbar-nav { display: none; order: 3; inline-size: 100%; }
4657
4939
  .oc-topbar--collapsible:has(.oc-topbar-toggle:checked) .oc-topbar-nav { display: block; }
4658
4940
  }
4941
+ /* The collapsible header also folds when its own box is narrower than 47.5rem (a sidebar layout, a content column,
4942
+ a demo preview), not only on a narrow screen: brand, burger and actions then stay on one row. */
4943
+ .oc-topbar--collapsible { container: oc-topbar / inline-size; }
4944
+ @container oc-topbar (max-width: 47.5rem) {
4945
+ .oc-topbar--collapsible .oc-topbar-burger { display: inline-flex; order: 2; }
4946
+ .oc-topbar--collapsible .oc-topbar-actions { margin-inline-start: auto; }
4947
+ .oc-topbar--collapsible .oc-topbar-nav { display: none; order: 3; inline-size: 100%; grid-column: 1 / -1; }
4948
+ .oc-topbar--collapsible:has(.oc-topbar-toggle:checked) .oc-topbar-nav { display: block; }
4949
+ }
4659
4950
 
4660
4951
  /* ---- Site footer bar: .oc-footerbar ------------------------------------------------------------- */
4661
4952
  .oc-footerbar {
@@ -5006,6 +5297,8 @@ a.oc-item:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px
5006
5297
  .oc-item-title { margin: 0; font-weight: 500; line-height: 1.35; color: var(--oc-foreground); }
5007
5298
  .oc-item-description { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--oc-muted-foreground); text-wrap: balance; }
5008
5299
  .oc-item-actions { display: flex; flex: none; align-items: center; gap: 0.5rem; }
5300
+ /* Small rows (links with a chevron) keep media, text and the trailing icon on one line in a narrow column. */
5301
+ .oc-item--sm > .oc-item-content { flex-basis: 8rem; }
5009
5302
  .oc-item-header,
5010
5303
  .oc-item-footer { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
5011
5304
  .oc-item-group { display: flex; flex-direction: column; }
@@ -5614,7 +5907,8 @@ dialog.oc-drawer[open] .oc-drawer-content {
5614
5907
  .oc-calendar-day:hover { background: var(--oc-accent); }
5615
5908
  .oc-calendar-day:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
5616
5909
  .oc-calendar-day--today { background: var(--oc-muted); font-weight: 600; }
5617
- .oc-calendar-day--outside { color: var(--oc-muted-foreground); opacity: 0.55; }
5910
+ /* Days of the previous/next month: muted text only (no opacity), so the numbers still reach AA contrast. */
5911
+ .oc-calendar-day--outside { color: var(--oc-muted-foreground); }
5618
5912
  .oc-calendar-day:disabled { opacity: 0.35; pointer-events: none; }
5619
5913
  .oc-calendar-day[aria-selected="true"],
5620
5914
  .oc-calendar-day--range-start,
@@ -5725,6 +6019,33 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
5725
6019
  .oc-radio-item--card { padding: 0.75rem 1rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); }
5726
6020
  .oc-radio-item--card:has(:checked) { border-color: var(--oc-primary); background: color-mix(in oklab, var(--oc-primary) 8%, transparent); }
5727
6021
  .oc-radio-item--card:has(:focus-visible) { outline: 2px solid var(--oc-ring); outline-offset: 1px; }
6022
+ /* Answered (0.17.0): data-result="correct" | "wrong" on a card once the answer is checked: a green or red edge and a
6023
+ mark at the end; the cards nobody chose fade. Put the word in the card too for a screen reader
6024
+ (<span class="oc-visually-hidden">Correct</span>); the mark is only a picture. */
6025
+ .oc-radio-item--card[data-result] { position: relative; padding-inline-end: 2.75rem; }
6026
+ .oc-radio-item--card[data-result="correct"] { --oc-answer-tone: var(--oc-success); }
6027
+ .oc-radio-item--card[data-result="wrong"] { --oc-answer-tone: var(--oc-destructive); }
6028
+ .oc-radio-item--card[data-result],
6029
+ .oc-radio-item--card[data-result]:has(:checked) {
6030
+ border-color: var(--oc-answer-tone);
6031
+ background: color-mix(in oklab, var(--oc-answer-tone) 10%, transparent);
6032
+ }
6033
+ .oc-radio-item--card[data-result]::after {
6034
+ content: "";
6035
+ position: absolute;
6036
+ inset-block-start: 50%;
6037
+ inset-inline-end: 0.85rem;
6038
+ inline-size: 1.25rem;
6039
+ block-size: 1.25rem;
6040
+ translate: 0 -50%;
6041
+ background: var(--oc-answer-tone);
6042
+ }
6043
+ .oc-radio-item--card[data-result="correct"]::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z'/%3E%3C/svg%3E") center / contain no-repeat; }
6044
+ .oc-radio-item--card[data-result="wrong"]::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10s10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10s10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
6045
+ :is(fieldset, .oc-radio-group):has(> .oc-radio-item--card[data-result]) > .oc-radio-item--card:not([data-result]) { opacity: 0.55; }
6046
+ /* The radios lock once there is a result; the marked cards stay fully readable. */
6047
+ .oc-radio-item--card[data-result]:has(:disabled) { opacity: 1; cursor: default; }
6048
+ .oc-radio-item--card[data-result] input.oc-radio:disabled { opacity: 1; }
5728
6049
 
5729
6050
  .oc-scroll-area {
5730
6051
  max-block-size: 14rem;
@@ -5735,7 +6056,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
5735
6056
  border: 1px solid var(--oc-border);
5736
6057
  border-radius: var(--oc-radius);
5737
6058
  scrollbar-width: thin;
5738
- scrollbar-color: var(--oc-border-strong) transparent;
6059
+ /* The .oc-scrollbar tokens (0.17.0) restyle it too; the defaults are its own look. */
6060
+ scrollbar-color: var(--oc-scrollbar-thumb, var(--oc-border-strong)) var(--oc-scrollbar-track, transparent);
5739
6061
  }
5740
6062
  .oc-scroll-area:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
5741
6063
  .oc-scroll-area--x { max-block-size: none; overflow-y: hidden; white-space: nowrap; }
@@ -5836,6 +6158,12 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
5836
6158
  :is([data-theme="light"], :root:has(.oc-theme-switch input[value="light"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: none; }
5837
6159
  :is([data-theme="dark"], .dark, :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *))) .oc-theme-img--light { display: none; }
5838
6160
  :is([data-theme="dark"], .dark, :root:has(.oc-theme-switch input[value="dark"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: revert; }
6161
+ /* A .oc-theme-scope with its own theme (data-theme on the scope, or a switch inside it) wins over the page.
6162
+ The doubled class gives the same specificity as the rules above, so the order decides. */
6163
+ .oc-theme-scope.oc-theme-scope:is([data-theme="light"], :has(.oc-theme-switch input[value="light"]:checked)) .oc-theme-img--light { display: revert; }
6164
+ .oc-theme-scope.oc-theme-scope:is([data-theme="light"], :has(.oc-theme-switch input[value="light"]:checked)) .oc-theme-img--dark { display: none; }
6165
+ .oc-theme-scope.oc-theme-scope:is([data-theme="dark"], :has(.oc-theme-switch input[value="dark"]:checked)) .oc-theme-img--light { display: none; }
6166
+ .oc-theme-scope.oc-theme-scope:is([data-theme="dark"], :has(.oc-theme-switch input[value="dark"]:checked)) .oc-theme-img--dark { display: revert; }
5839
6167
 
5840
6168
  /* Card grid that scrolls sideways on a phone instead of stacking every card: one row with scroll snap.
5841
6169
  <div class="oc-card-grid oc-card-grid--scroll">. --oc-card-scroll-width is the width of a card (80%). */
@@ -6096,6 +6424,76 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6096
6424
  .oc-callout__text > :is(p, span):not(:first-child) { color: var(--oc-muted-foreground); }
6097
6425
  .oc-callout__action { flex-shrink: 0; display: flex; gap: 0.5rem; }
6098
6426
 
6427
+ /* parts/app-compound-overlays.css */
6428
+ /* File: packages/ui/src/parts/app-compound-overlays.css | Map: compound tabs root (vertical) -> scrolling dialog content -> popover side/align/offset -> tooltip provider, delay and controlled open */
6429
+ /* 0.17.0 compound API for Tabs, Dialog, Popover and Tooltip. Same classes as the props API; this part only adds what the
6430
+ compound parts need: a root for class-toggle tabs, a dialog whose body scrolls between a fixed header and footer, popover
6431
+ placement by data-side / data-align, and the tooltip delay and controlled state. */
6432
+
6433
+ /* ---- Tabs: compound root (.oc-tabs) ---- */
6434
+ /* Horizontal: the tab list on top, the panel below it over the full width (not in the flex row of the pill-tab .oc-tabs). */
6435
+ .oc-tabs:has(> .oc-tab-list) { display: block; inline-size: 100%; }
6436
+ .oc-tabs:has(> .oc-tab-list--vertical) {
6437
+ display: grid;
6438
+ grid-template-columns: max-content minmax(0, 1fr);
6439
+ gap: 0 1.5rem;
6440
+ align-items: start;
6441
+ }
6442
+ .oc-tabs > .oc-tab-list--vertical { grid-row: 1 / span 99; }
6443
+ .oc-tabs:has(> .oc-tab-list--vertical) > .oc-tab-panel { grid-column: 2; padding-block: 0.5rem 0.25rem; }
6444
+ .oc-tabs .oc-tab-list--vertical .oc-tab-trigger { justify-content: flex-start; }
6445
+ .oc-tabs > .oc-tab-panel:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; border-radius: var(--oc-radius); }
6446
+
6447
+ /* ---- Dialog: the Blade root wrapper takes no box; header and footer fixed, the body scrolls ---- */
6448
+ .oc-dialog { display: contents; }
6449
+ .oc-modal-content--scroll { overflow: hidden; }
6450
+ .oc-modal-content--scroll > .oc-modal-header,
6451
+ .oc-modal-content--scroll > .oc-modal-footer { flex-shrink: 0; }
6452
+ .oc-modal-content--scroll > .oc-modal-header { padding-block-end: 16px; border-block-end: 1px solid var(--oc-border); }
6453
+ .oc-modal-content--scroll > .oc-modal-body { min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; }
6454
+
6455
+ /* ---- Popover: side, align and offset (compound PopoverContent sets data-side / data-align) ---- */
6456
+ .oc-popover[popover][data-side] { margin: 0; }
6457
+ .oc-popover[popover][data-side="bottom"] { margin-block-start: var(--oc-popover-offset, 4px); position-area: block-end span-inline-end; position-try-fallbacks: flip-block, flip-inline; }
6458
+ .oc-popover[popover][data-side="bottom"][data-align="center"] { position-area: block-end; }
6459
+ .oc-popover[popover][data-side="bottom"][data-align="end"] { position-area: block-end span-inline-start; }
6460
+ .oc-popover[popover][data-side="top"] { margin-block-end: var(--oc-popover-offset, 4px); position-area: block-start span-inline-end; position-try-fallbacks: flip-block, flip-inline; }
6461
+ .oc-popover[popover][data-side="top"][data-align="center"] { position-area: block-start; }
6462
+ .oc-popover[popover][data-side="top"][data-align="end"] { position-area: block-start span-inline-start; }
6463
+ .oc-popover[popover][data-side="right"] { margin-inline-start: var(--oc-popover-offset, 4px); position-area: inline-end span-block-end; position-try-fallbacks: flip-inline, flip-block; }
6464
+ .oc-popover[popover][data-side="right"][data-align="center"] { position-area: inline-end; }
6465
+ .oc-popover[popover][data-side="right"][data-align="end"] { position-area: inline-end span-block-start; }
6466
+ .oc-popover[popover][data-side="left"] { margin-inline-end: var(--oc-popover-offset, 4px); position-area: inline-start span-block-end; position-try-fallbacks: flip-inline, flip-block; }
6467
+ .oc-popover[popover][data-side="left"][data-align="center"] { position-area: inline-start; }
6468
+ .oc-popover[popover][data-side="left"][data-align="end"] { position-area: inline-start span-block-start; }
6469
+
6470
+ /* ---- Tooltip: provider, delay, controlled open ---- */
6471
+ .oc-tooltip-provider { display: contents; }
6472
+
6473
+ /* The delay applies when the bubble appears, not when it goes away. */
6474
+ .oc-tooltip:hover::after,
6475
+ .oc-tooltip:focus-visible::after,
6476
+ .oc-tooltip:has(:focus-visible)::after,
6477
+ .oc-tooltip:hover > .oc-tooltip__content,
6478
+ .oc-tooltip:focus-visible > .oc-tooltip__content,
6479
+ .oc-tooltip:has(:focus-visible) > .oc-tooltip__content {
6480
+ transition-delay: var(--oc-tooltip-delay, 0ms);
6481
+ }
6482
+
6483
+ /* open=true: shown without hover. open=false: hidden, also on hover and focus. */
6484
+ .oc-tooltip.is-open::after,
6485
+ .oc-tooltip.is-open > .oc-tooltip__content {
6486
+ opacity: 1;
6487
+ scale: 1;
6488
+ }
6489
+ .oc-tooltip.is-closed::after,
6490
+ .oc-tooltip.is-closed > .oc-tooltip__content {
6491
+ opacity: 0;
6492
+ scale: 0.96;
6493
+ }
6494
+ /* Rich content may hold links: let the pointer reach it while it is shown. */
6495
+ .oc-tooltip.is-open > .oc-tooltip__content { pointer-events: auto; }
6496
+
6099
6497
  /* parts/app-confirm-dialog.css */
6100
6498
  /* File: packages/ui/src/parts/app-confirm-dialog.css | Map: confirm modifier (icon ring) -> close button -> typed confirm field -> confirm lock -> three-button footer -> narrow screens */
6101
6499
  /* Confirm dialog: a variant of the alert dialog (dialog.oc-modal + .oc-alert-dialog).
@@ -6219,15 +6617,86 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6219
6617
  }
6220
6618
  @media (prefers-reduced-motion: reduce) { .oc-cookie-consent { transition: none; } }
6221
6619
 
6620
+ /* parts/app-countdown.css */
6621
+ /* File: packages/ui/src/parts/app-countdown.css
6622
+ Map: countdown (label + time) -> --pill -> --display (large digits) -> --bar (shrinking bar) -> states (low, done)
6623
+ -> reduced motion
6624
+ Countdown (0.17.0): the time left for a task, a round or a reservation. role="timer" (a screen reader does not read
6625
+ every second; give it an aria-label). The script or the component writes the time and --oc-countdown-left (1 = full,
6626
+ 0 = empty) for the bar, and data-state="low" (little time left, warning tone) or "done" (time is up).
6627
+ <div class="oc-countdown oc-countdown--pill" role="timer" aria-label="Time left" data-state="low">
6628
+ <span class="oc-countdown-label">Time left</span> <b class="oc-countdown-time">0:45</b></div> */
6629
+
6630
+ .oc-countdown {
6631
+ --oc-countdown-tone: var(--oc-primary);
6632
+ --oc-countdown-left: 1;
6633
+ display: inline-flex;
6634
+ flex-wrap: wrap;
6635
+ align-items: baseline;
6636
+ gap: 0.25rem 0.5rem;
6637
+ color: var(--oc-foreground);
6638
+ }
6639
+ .oc-countdown-label { color: var(--oc-muted-foreground); font-size: 0.875rem; font-weight: 600; }
6640
+ .oc-countdown-time { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
6641
+ .oc-countdown[data-state="low"] { --oc-countdown-tone: var(--oc-warning); }
6642
+ .oc-countdown[data-state="done"] { --oc-countdown-tone: var(--oc-destructive); }
6643
+ .oc-countdown:is([data-state="low"], [data-state="done"]) .oc-countdown-time { color: light-dark(oklch(from var(--oc-countdown-tone) min(l, 0.5) c h), var(--oc-countdown-tone)); }
6644
+
6645
+ /* Pill: a small tinted label, for a header or a card. */
6646
+ .oc-countdown--pill {
6647
+ align-items: center;
6648
+ padding: 0.25rem 0.75rem;
6649
+ border: 1px solid color-mix(in oklch, var(--oc-countdown-tone) 40%, transparent);
6650
+ border-radius: 999px;
6651
+ background: color-mix(in oklch, var(--oc-countdown-tone) 10%, var(--oc-background));
6652
+ }
6653
+ .oc-countdown--pill .oc-countdown-label { font-size: 0.75rem; }
6654
+ .oc-countdown--pill .oc-countdown-time { font-size: 0.9375rem; }
6655
+
6656
+ /* Display: large digits in the middle, for a screen people look at from a distance. */
6657
+ .oc-countdown--display {
6658
+ display: inline-grid;
6659
+ justify-items: center;
6660
+ gap: 0.25rem;
6661
+ text-align: center;
6662
+ }
6663
+ .oc-countdown--display .oc-countdown-time { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
6664
+
6665
+ /* Bar: a line under the time that shrinks from full to empty (--oc-countdown-left). */
6666
+ .oc-countdown--bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
6667
+ .oc-countdown--bar.oc-countdown--display { grid-template-columns: minmax(0, 1fr); }
6668
+ .oc-countdown--bar::after {
6669
+ content: "";
6670
+ grid-column: 1 / -1;
6671
+ justify-self: stretch;
6672
+ block-size: 0.375rem;
6673
+ border-radius: 999px;
6674
+ background:
6675
+ linear-gradient(var(--oc-countdown-tone), var(--oc-countdown-tone)) no-repeat 0 0 / calc(var(--oc-countdown-left) * 100%) 100%,
6676
+ var(--oc-muted);
6677
+ transition: background-size 0.3s linear;
6678
+ }
6679
+ .oc-countdown--bar:dir(rtl)::after { background-position: 100% 0, 0 0; }
6680
+
6681
+ @media (prefers-reduced-motion: reduce) {
6682
+ .oc-countdown--bar::after { transition: none; }
6683
+ }
6684
+ @media (forced-colors: active) {
6685
+ .oc-countdown--bar::after { background: linear-gradient(CanvasText, CanvasText) no-repeat 0 0 / calc(var(--oc-countdown-left) * 100%) 100%; border: 1px solid CanvasText; }
6686
+ }
6687
+
6222
6688
  /* parts/app-data-table-footer.css */
6223
6689
  /* File: packages/ui/src/parts/app-data-table-footer.css | Map: footer grid (count, rows per page, pager) -> page buttons -> narrow screens */
6224
6690
  /* Footer of the list table (app-data-table.css): the count on the left, rows per page in the middle, the pager on the right. */
6225
6691
 
6226
6692
  /* Footer: count on the left, rows-per-page in the middle, pager on the right. */
6227
6693
  .oc-data-table-footer {
6228
- display: grid;
6229
- grid-template-columns: 1fr auto 1fr;
6694
+ /* Flex with wrap: the three parts share one row when they fit (the pager never breaks over two rows while there is
6695
+ room), otherwise the pager moves to its own row as a whole. */
6696
+ display: flex;
6697
+ flex-wrap: wrap;
6230
6698
  align-items: center;
6699
+ justify-content: space-between;
6231
6700
  gap: 0.75rem;
6232
6701
  }
6233
6702
  .oc-data-table-summary { margin: 0; font-size: 0.8125rem; color: var(--oc-muted-foreground); }
@@ -6255,7 +6724,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6255
6724
  .oc-data-table-ellipsis { padding-inline: 0.25rem; color: var(--oc-muted-foreground); }
6256
6725
 
6257
6726
  @media (max-width: 40rem) {
6258
- .oc-data-table-footer { grid-template-columns: 1fr; }
6727
+ .oc-data-table-footer { flex-direction: column; align-items: flex-start; }
6259
6728
  .oc-data-table-pager { justify-content: flex-start; }
6260
6729
  }
6261
6730
 
@@ -6422,6 +6891,55 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6422
6891
  }
6423
6892
  .oc-data-table--bordered .oc-data-table-filter > .oc-select { padding-inline-start: 2.75rem; }
6424
6893
 
6894
+ /* parts/app-data-table-server.css */
6895
+ /* File: packages/ui/src/parts/app-data-table-server.css | Map: loading (aria-busy) -> skeleton rows -> column chooser -> Livewire extras */
6896
+ /* Server-driven list table (0.17.0): the rows come from the app per page (data-oc-server="true"). While a page loads the
6897
+ root has aria-busy="true" and the body shows skeleton rows (tr.oc-data-table-skeleton) with the height of a real row,
6898
+ so the table does not jump. The column chooser is a plain dropdown with a checkbox per column (data-oc-visible-col). */
6899
+
6900
+ .oc-data-table[aria-busy="true"] .oc-data-table-pager,
6901
+ .oc-data-table[aria-busy="true"] .oc-data-table-summary { opacity: 0.6; }
6902
+ .oc-data-table[aria-busy="true"] .oc-data-table-empty { display: none; }
6903
+
6904
+ /* Skeleton rows: one bar per cell, not selectable, no hover tint. */
6905
+ .oc-data-table-skeleton > td { pointer-events: none; }
6906
+ .oc-data-table-skeleton:hover > td { background: transparent; }
6907
+ .oc-data-table-skeleton-bar {
6908
+ display: block;
6909
+ inline-size: 70%;
6910
+ max-inline-size: 12rem;
6911
+ block-size: 0.75rem;
6912
+ margin-block: 0.3rem;
6913
+ }
6914
+ .oc-data-table-skeleton > td:nth-child(3n + 2) .oc-data-table-skeleton-bar { inline-size: 45%; }
6915
+ .oc-data-table-skeleton > td:nth-child(3n) .oc-data-table-skeleton-bar { inline-size: 85%; }
6916
+ .oc-data-table-skeleton > td[data-numeric] .oc-data-table-skeleton-bar { margin-inline-start: auto; inline-size: 3.5rem; }
6917
+ .oc-data-table-skeleton-box { display: block; inline-size: 1rem; block-size: 1rem; border-radius: 4px; }
6918
+ @media (prefers-reduced-motion: reduce) {
6919
+ .oc-data-table-skeleton .oc-skeleton { animation: none; }
6920
+ }
6921
+
6922
+ /* Column chooser (free): a dropdown with a checkbox per column; the app renders only the checked columns. */
6923
+ .oc-data-table-colpick { min-inline-size: 12rem; }
6924
+ .oc-data-table-colpick-title {
6925
+ margin: 0;
6926
+ padding: 0.375rem 0.625rem 0.25rem;
6927
+ font-size: 0.75rem;
6928
+ font-weight: 600;
6929
+ color: var(--oc-muted-foreground);
6930
+ }
6931
+ .oc-data-table-colpick .oc-dropdown-item { cursor: pointer; }
6932
+ .oc-data-table-colpick .oc-dropdown-item:has(input:disabled) { cursor: default; opacity: 0.6; }
6933
+ .oc-data-table-colpick .oc-dropdown-item > input { margin: 0; accent-color: var(--oc-primary); }
6934
+
6935
+ /* Livewire table (.oc-block-datatable): the toolbar holds the trash pills and the column chooser next to the search. */
6936
+ .oc-block-datatable .oc-table-toolbar { flex-wrap: wrap; gap: 0.5rem; }
6937
+
6938
+ /* Livewire skeleton: a second tbody that only shows while wire:loading sets aria-busy on the section. */
6939
+ .oc-data-table-skeleton-body { display: none; }
6940
+ .oc-block-datatable[aria-busy="true"] .oc-data-table-skeleton-body { display: table-row-group; }
6941
+ .oc-block-datatable[aria-busy="true"] .oc-block-datatable-rows { display: none; }
6942
+
6425
6943
  /* parts/app-data-table.css */
6426
6944
  /* File: packages/ui/src/parts/app-data-table.css | Map: shell -> toolbar -> frame and scroll -> header label -> select and actions columns -> deleted row -> bulk bar -> card view -> compact density */
6427
6945
  /* List table for business apps. The frame, toolbar and footer are styling. Tabs, filter row, rich cells and
@@ -6514,9 +7032,23 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6514
7032
  inset-inline-end: 0;
6515
7033
  z-index: 2;
6516
7034
  background: var(--oc-card);
6517
- box-shadow: -1px 0 0 var(--oc-border);
7035
+ /* A line plus a short soft edge: columns that scroll under it read as "more to the side", not as cut-off text. */
7036
+ box-shadow: -1px 0 0 var(--oc-border), -10px 0 8px -8px oklch(from var(--oc-foreground) l c h / 0.14);
6518
7037
  }
6519
7038
  .oc-data-table .oc-table thead th[data-oc-col="actions"] { z-index: 3; background: var(--oc-card); }
7039
+ /* Scroll hint: where scroll-driven animations work, the soft edge is clearly visible only while columns are hidden
7040
+ under the actions column (a table that fits, or one scrolled to the end, keeps just the line). */
7041
+ @supports (animation-timeline: scroll()) {
7042
+ .oc-data-table .oc-table :is(th, td)[data-oc-col="actions"] {
7043
+ box-shadow: -1px 0 0 var(--oc-border);
7044
+ animation: oc-data-table-edge linear both;
7045
+ animation-timeline: scroll(nearest inline);
7046
+ }
7047
+ @keyframes oc-data-table-edge {
7048
+ 0%, 96% { box-shadow: -1px 0 0 var(--oc-border), -16px 0 14px -10px light-dark(oklch(from var(--oc-foreground) l c h / 0.3), oklch(0% 0 0deg / 0.7)); }
7049
+ 100% { box-shadow: -1px 0 0 var(--oc-border); }
7050
+ }
7051
+ }
6520
7052
  .oc-data-table .oc-table tbody tr:is(:nth-child(even of :not([hidden])), :hover) > td[data-oc-col="actions"] { background: inherit; }
6521
7053
 
6522
7054
  /* Trash and archive rows stay readable but quieter than active rows. */
@@ -6567,6 +7099,18 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6567
7099
  @media (prefers-reduced-motion: reduce) {
6568
7100
  .oc-data-table .oc-table tbody tr { transition: none; }
6569
7101
  }
7102
+
7103
+ /* Print (0.17.0): only the table. The toolbar, tabs, filters, selection bar, pager, checkbox, grip and action columns
7104
+ stay off the paper, the scroll area grows, and a row never breaks over two pages. Use pagination={false} (all rows)
7105
+ for a report. */
7106
+ @media print {
7107
+ .oc-data-table :is(.oc-data-table-toolbar, .oc-data-table-tabs, .oc-data-table-filters, .oc-data-table-bulk, .oc-data-table-per-page, .oc-data-table-pager, .oc-data-table-grid),
7108
+ .oc-data-table :is(th, td):is([data-oc-col="select"], [data-oc-col="order"], [data-oc-col="actions"]) { display: none !important; }
7109
+ .oc-data-table--grid .oc-data-table-scroll { display: block !important; }
7110
+ .oc-data-table-scroll { overflow: visible !important; max-block-size: none !important; }
7111
+ .oc-data-table .oc-table tr { break-inside: avoid; }
7112
+ .oc-data-table .oc-table thead { display: table-header-group; }
7113
+ }
6570
7114
 
6571
7115
  /* parts/app-greeting.css */
6572
7116
  /* File: packages/ui/src/parts/app-greeting.css | Map: header row -> icon tile -> text (eyebrow, title, date) -> actions -> time-of-day modifiers -> size modifier */
@@ -6655,6 +7199,17 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6655
7199
  .oc-group__aside[data-tone="error"] { --oc-group-tone: var(--oc-destructive); }
6656
7200
  .oc-group__meta { margin: 0 0 0.625rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
6657
7201
 
7202
+ /* parts/app-header-settings.css */
7203
+ /* File: packages/ui/src/parts/app-header-settings.css
7204
+ Map: group (language menu + theme button + more) -> sizes in the group
7205
+ Header settings (0.17.0): the language and the theme of an app header as one small group of round ghost buttons, each
7206
+ with its name in a tooltip under it (.oc-tooltip--bottom). Works in a glass header too: the buttons stay transparent.
7207
+ <div class="oc-header-settings" role="group" aria-label="Settings"> language-select--icon + theme toggle </div> */
7208
+
7209
+ .oc-header-settings { display: inline-flex; align-items: center; gap: 0.25rem; }
7210
+ .oc-header-settings > :is(.oc-btn--icon, .oc-language-select--icon) { inline-size: 2.25rem; block-size: 2.25rem; }
7211
+ .oc-header-settings > .oc-btn--icon > :is(svg, iconify-icon) { inline-size: 1.15rem; block-size: 1.15rem; font-size: 1.15rem; }
7212
+
6658
7213
  /* parts/app-list-toolbar.css */
6659
7214
  /* File: packages/ui/src/parts/app-list-toolbar.css | Map: toolbar row -> search -> count -> view toggle (radio icons) -> actions -> sticky modifier -> CSS-only view switch (scope) -> narrow screens */
6660
7215
  /* List toolbar: search field + result count + cards / table view toggle + actions, above a list.
@@ -6819,6 +7374,18 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6819
7374
  .oc-card--accent[data-active="false"] { border-style: dashed; }
6820
7375
  .oc-card--accent[data-active="false"] .oc-card-band { background: var(--oc-surface); }
6821
7376
 
7377
+ /* .oc-card-grid--bands (0.17.0): the cards in the grid share their rows (subgrid). The bands of cards side by side are
7378
+ as high as the highest band, with a longer translation or larger text too, so the content below starts on one line;
7379
+ no height to guess with --oc-card-band-min-h. Works for every card with a band, content and an optional footer. */
7380
+ .oc-card-grid--bands > .oc-card {
7381
+ display: grid;
7382
+ grid-row: span 2;
7383
+ grid-template-rows: subgrid;
7384
+ row-gap: 0; /* the gap of the grid stays between the cards, not between band and content */
7385
+ }
7386
+ .oc-card-grid--bands > .oc-card:has(> .oc-card-footer) { grid-row: span 3; }
7387
+ .oc-card-grid--bands > .oc-card > .oc-card-band { --oc-card-band-min-h: 0; }
7388
+
6822
7389
  /* Code plate: a QR code or barcode on its own white plate, always light (scans in any theme and on paper), with an
6823
7390
  optional caption ON the plate, so the label is on a photo or a print too. data-mode / data-tone colors the caption. */
6824
7391
  .oc-code-plate {
@@ -6870,6 +7437,160 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6870
7437
  .oc-mode-badge[data-mode="both"] > * { border: 1px solid CanvasText; }
6871
7438
  }
6872
7439
 
7440
+ /* parts/app-module-color.css */
7441
+ /* File: packages/ui/src/parts/app-module-color.css | Map: tokens (data-module names) -> scope (focus ring) -> button -> badge -> tabs
7442
+ -> launcher -> form section -> sidebar row -> floating button (.oc-btn--float) */
7443
+ /* Module colour (0.17.0): give a part of an app its own accent. data-module="<name>" on any ancestor sets
7444
+ --oc-module (solid accent), --oc-module-soft (tint for backgrounds) and --oc-module-fg (text on the solid accent).
7445
+ Ten generic names: blue, green, purple, gold, cyan, pink, red, orange, teal, slate. An unknown name sets no colour,
7446
+ so an app can set --oc-module itself (style="--oc-module: ..." on the same element). Every consumer reads
7447
+ var(--oc-module, var(--oc-primary)), so without a module everything keeps the primary colour.
7448
+ Light mode: dark accents with white text; dark mode: light accents with dark text (AA 4.5:1 both ways). */
7449
+
7450
+ [data-module] {
7451
+ --oc-module-soft: color-mix(in oklab, var(--oc-module, var(--oc-primary)) 12%, transparent);
7452
+ /* Focus rings of fields, buttons, tabs and rows inside the scope follow the module. */
7453
+ --oc-ring: var(--oc-module, var(--oc-primary));
7454
+ }
7455
+
7456
+ [data-module="blue"],
7457
+ [data-module="green"],
7458
+ [data-module="purple"],
7459
+ [data-module="gold"],
7460
+ [data-module="cyan"],
7461
+ [data-module="pink"],
7462
+ [data-module="red"],
7463
+ [data-module="orange"],
7464
+ [data-module="teal"],
7465
+ [data-module="slate"] {
7466
+ --oc-module-fg: light-dark(var(--color-white-50), var(--color-shallowblue-95));
7467
+ }
7468
+
7469
+ /* The blue palette lies far outside sRGB: its chroma is capped, so tints and borders mixed from it stay clean. */
7470
+ [data-module="blue"] { --oc-module: light-dark(oklch(from var(--color-blue-40) l min(c, 0.2) h), oklch(from var(--color-blue-2) l min(c, 0.12) h)); }
7471
+ [data-module="green"] { --oc-module: light-dark(var(--color-green-60), var(--color-green-10)); }
7472
+ [data-module="purple"] { --oc-module: light-dark(var(--color-indigo-20), var(--color-indigo-2)); }
7473
+ [data-module="gold"] { --oc-module: light-dark(color-mix(in oklab, var(--color-orange-95) 80%, var(--color-green-95)), var(--color-gold-70)); }
7474
+ [data-module="cyan"] { --oc-module: light-dark(var(--color-teal-70), var(--color-cyan-90)); }
7475
+ [data-module="pink"] { --oc-module: light-dark(color-mix(in oklab, var(--color-magenta-95), var(--color-pink-95)), color-mix(in oklab, var(--color-magenta-60), var(--color-pink-80))); }
7476
+ [data-module="red"] { --oc-module: light-dark(var(--color-red-90), var(--color-red-30)); }
7477
+ [data-module="orange"] { --oc-module: light-dark(color-mix(in oklab, var(--color-red-90) 35%, var(--color-orange-95)), color-mix(in oklab, var(--color-red-30) 35%, var(--color-orange-60))); }
7478
+ [data-module="teal"] { --oc-module: light-dark(color-mix(in oklab, var(--color-teal-70), var(--color-green-70)), color-mix(in oklab, var(--color-teal-10), var(--color-green-10))); }
7479
+ [data-module="slate"] { --oc-module: light-dark(var(--color-stormblue-30), var(--color-stormblue-2)); }
7480
+
7481
+ /* Primary (default) button: flat module colour. Variants (secondary, outline, ghost ...) keep their own look. */
7482
+ .oc-btn:where([data-module], [data-module] *):not(:where(
7483
+ .oc-btn--secondary, .oc-btn--outline, .oc-btn--ghost, .oc-btn--link, .oc-btn--destructive, .oc-btn--success,
7484
+ .oc-btn--gradient, .oc-btn--glass, .oc-btn--neon, .oc-btn--plain,
7485
+ .oc-btn--soft-primary, .oc-btn--soft-success, .oc-btn--soft-warning, .oc-btn--soft-destructive, .oc-btn--soft-info
7486
+ )) {
7487
+ background: var(--oc-module, var(--oc-primary));
7488
+ color: var(--oc-module-fg, var(--oc-primary-foreground));
7489
+ }
7490
+ .oc-btn--link:where([data-module], [data-module] *) { color: var(--oc-module, var(--oc-primary)); }
7491
+ .oc-btn--soft-primary:where([data-module], [data-module] *) { --oc-btn-tone: var(--oc-module, var(--oc-primary)); }
7492
+
7493
+ /* Badge: only a badge that carries data-module itself (solid) or variant="module" (soft tint, module text). */
7494
+ .oc-badge[data-module]:not(:where(
7495
+ .oc-badge--secondary, .oc-badge--outline, .oc-badge--success, .oc-badge--warning, .oc-badge--destructive, .oc-badge--info, .oc-badge--module
7496
+ )) {
7497
+ background: var(--oc-module, var(--oc-primary));
7498
+ color: var(--oc-module-fg, var(--oc-primary-foreground));
7499
+ }
7500
+ .oc-badge--module {
7501
+ background: var(--oc-module-soft, color-mix(in oklab, var(--oc-module, var(--oc-primary)) 12%, transparent));
7502
+ color: var(--oc-module, var(--oc-primary));
7503
+ border-color: color-mix(in oklab, var(--oc-module, var(--oc-primary)) 35%, transparent);
7504
+ }
7505
+
7506
+ /* Active tab: the line (or the pill text) in the module colour. */
7507
+ .oc-tab-trigger:where([data-module] *):is(.is-active, [aria-selected="true"]),
7508
+ .oc-tabset:where([data-module], [data-module] *) .oc-tab-trigger:has(input:checked) {
7509
+ border-bottom-color: var(--oc-module, var(--oc-primary));
7510
+ }
7511
+ .oc-tab-list--vertical .oc-tab-trigger:where([data-module] *):is(.is-active, [aria-selected="true"]),
7512
+ .oc-tabset:where([data-module], [data-module] *) .oc-tab-list--vertical .oc-tab-trigger:has(input:checked) {
7513
+ border-bottom-color: transparent;
7514
+ border-right-color: var(--oc-module, var(--oc-primary));
7515
+ }
7516
+ .oc-tab-list--pill .oc-tab-trigger:where([data-module] *):is(.is-active, [aria-selected="true"]),
7517
+ .oc-tabset:where([data-module], [data-module] *) .oc-tab-list--pill .oc-tab-trigger:has(input:checked) {
7518
+ color: var(--oc-module, var(--oc-primary));
7519
+ }
7520
+
7521
+ /* Launcher card: hover/current border, tint and icon tile. */
7522
+ .oc-launcher:where([data-module], [data-module] *):hover,
7523
+ .oc-launcher:where([data-module], [data-module] *):is([aria-current="true"], .is-active) {
7524
+ border-color: var(--oc-module, var(--oc-primary));
7525
+ }
7526
+ .oc-launcher:where([data-module], [data-module] *):is([aria-current="true"], .is-active) {
7527
+ background: color-mix(in oklab, var(--oc-module, var(--oc-primary)) 6%, var(--oc-card));
7528
+ }
7529
+ .oc-launcher:where([data-module], [data-module] *) .oc-launcher-icon {
7530
+ color: var(--oc-module, var(--oc-primary));
7531
+ background: var(--oc-module-soft);
7532
+ }
7533
+
7534
+ /* Form section: the icon tile (an invalid section keeps its red or orange tile). */
7535
+ .oc-form-section:where([data-module], [data-module] *) .oc-form-section__icon {
7536
+ color: var(--oc-module, var(--oc-primary));
7537
+ background: var(--oc-module-soft);
7538
+ }
7539
+
7540
+ /* Sidebar: the current row in a soft module tint (the dark sidebar keeps its own look). */
7541
+ .oc-sidebar-menu-button:where([data-module] *):is([aria-current="page"], .is-active) {
7542
+ background: var(--oc-module-soft);
7543
+ color: var(--oc-module, var(--oc-primary));
7544
+ }
7545
+
7546
+ /* Floating button (0.17.0): small icons (hearts by default) rise behind the label, fade out and drift a little.
7547
+ Markup: <button class="oc-btn oc-btn--float"><span class="oc-btn-float" aria-hidden="true"><i></i> x5</span>Donate</button>.
7548
+ Another webicon: data-float-icon="mdi:star" (built in) or --oc-btn-float-icon: url("data:image/svg+xml,...") (the wrappers
7549
+ set it for any registered webicon). Only transform and opacity animate; no animation with prefers-reduced-motion. */
7550
+ .oc-btn--float {
7551
+ --oc-btn-float-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E");
7552
+ position: relative;
7553
+ isolation: isolate;
7554
+ overflow: hidden;
7555
+ }
7556
+ .oc-btn--float[data-float-icon="mdi:star"] {
7557
+ --oc-btn-float-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21z'/%3E%3C/svg%3E");
7558
+ }
7559
+ .oc-btn-float {
7560
+ position: absolute;
7561
+ inset: 0;
7562
+ z-index: -1;
7563
+ pointer-events: none;
7564
+ }
7565
+ .oc-btn-float > i {
7566
+ position: absolute;
7567
+ inset-block-end: -0.75em;
7568
+ inset-inline-start: var(--oc-btn-float-x, 50%);
7569
+ inline-size: var(--oc-btn-float-size, 0.75em);
7570
+ block-size: var(--oc-btn-float-size, 0.75em);
7571
+ /* A lighter (or in dark mode darker) tint of the button: the label colour at low strength, so the text stays readable. */
7572
+ background: var(--oc-btn-float-color, color-mix(in oklab, currentColor 38%, transparent));
7573
+ -webkit-mask: var(--oc-btn-float-icon) center / contain no-repeat;
7574
+ mask: var(--oc-btn-float-icon) center / contain no-repeat;
7575
+ opacity: 0;
7576
+ animation: oc-btn-float-rise var(--oc-btn-float-duration, 3.2s) var(--oc-btn-float-delay, 0s) ease-out infinite;
7577
+ }
7578
+ .oc-btn-float > i:nth-child(1) { --oc-btn-float-x: 12%; --oc-btn-float-delay: 0s; --oc-btn-float-drift: 0.35em; }
7579
+ .oc-btn-float > i:nth-child(2) { --oc-btn-float-x: 32%; --oc-btn-float-delay: 1.3s; --oc-btn-float-drift: -0.3em; --oc-btn-float-size: 0.6em; }
7580
+ .oc-btn-float > i:nth-child(3) { --oc-btn-float-x: 52%; --oc-btn-float-delay: 0.6s; --oc-btn-float-drift: 0.25em; --oc-btn-float-size: 0.85em; }
7581
+ .oc-btn-float > i:nth-child(4) { --oc-btn-float-x: 72%; --oc-btn-float-delay: 2s; --oc-btn-float-drift: -0.4em; --oc-btn-float-size: 0.65em; }
7582
+ .oc-btn-float > i:nth-child(5) { --oc-btn-float-x: 88%; --oc-btn-float-delay: 2.6s; --oc-btn-float-drift: 0.3em; }
7583
+
7584
+ @keyframes oc-btn-float-rise {
7585
+ 0% { opacity: 0; transform: translate(-50%, 0) rotate(-10deg) scale(0.7); }
7586
+ 20% { opacity: 1; }
7587
+ 100% { opacity: 0; transform: translate(calc(-50% + var(--oc-btn-float-drift, 0.3em)), -3.25em) rotate(12deg) scale(1); }
7588
+ }
7589
+
7590
+ @media (prefers-reduced-motion: reduce) {
7591
+ .oc-btn-float > i { animation: none; opacity: 0; }
7592
+ }
7593
+
6873
7594
  /* parts/app-name-card.css */
6874
7595
  /* File: packages/ui/src/parts/app-name-card.css | Map: card (details) -> head (chevron, name, rename, amount, actions) -> rename input -> body -> nested cards */
6875
7596
  /* Name card: a collapsible card for one part of a quote or plan,
@@ -6942,7 +7663,12 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6942
7663
  .oc-name-card__title { flex: 1 1 0; } /* takes the free space and shrinks first (ellipsis), so nothing else wraps */
6943
7664
  .oc-name-card__body { padding-inline-start: 0.75rem; }
6944
7665
  }
6945
-
7666
+ /* Very narrow (a phone, nested cards): the amount moves to its own line under the name, so the name keeps room. */
7667
+ @container (max-width: 22rem) {
7668
+ .oc-name-card__amount { order: 8; flex-basis: 100%; padding-inline-start: 1.5rem; margin-block-start: -0.25rem; font-size: 0.875rem; }
7669
+ .oc-name-card__actions { margin-inline-start: 0; }
7670
+ }
7671
+
6946
7672
  @media (prefers-reduced-motion: reduce) {
6947
7673
  .oc-name-card__head::before { transition: none; }
6948
7674
  }
@@ -6963,7 +7689,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6963
7689
 
6964
7690
  /* Optional back link row (use .oc-back-link inside, or any link). */
6965
7691
  .oc-page-header-back { display: flex; }
6966
- .oc-page-header-back .oc-back-link { margin-inline-start: -0.75rem; }
7692
+ /* The back link is a framed chip: its edge lines up with the title (no negative margin, that was for a bare link). */
6967
7693
 
6968
7694
  /* Main row: text block + actions. Stacks by default. */
6969
7695
  .oc-page-header-main { display: flex; flex-direction: column; gap: 0.75rem; }
@@ -7003,6 +7729,21 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
7003
7729
  .oc-page-header--sm { padding-block: 0.5rem 0.75rem; }
7004
7730
  .oc-page-header--sm .oc-page-header-title { font-size: 1.125rem; }
7005
7731
 
7732
+ /* parts/app-recovery-codes-extras.css */
7733
+ /* File: packages/ui/src/parts/app-recovery-codes-extras.css
7734
+ Map: warning with icon -> button icons -> copied feedback (icon swap)
7735
+ Recovery codes additions (0.17.0). The base .oc-recovery-codes lives in components.css.
7736
+ The warning can start with an icon (mdi:alert-outline); the buttons carry icons (copy, download, print). After
7737
+ copying, the copy button shows the copied label (and mdi:check); .oc-recovery-codes-status announces it. */
7738
+
7739
+ .oc-recovery-codes-warning { display: flex; align-items: flex-start; gap: 0.375rem; }
7740
+ .oc-recovery-codes-warning > svg { flex: none; inline-size: 1.25em; block-size: 1.25em; margin-block-start: -0.05em; color: var(--oc-warning); }
7741
+ .oc-recovery-codes-actions .oc-btn { gap: 0.375rem; }
7742
+ .oc-recovery-codes-actions .oc-btn > svg { inline-size: 1.1em; block-size: 1.1em; flex: none; }
7743
+ .oc-recovery-codes-actions .oc-btn.is-copied { color: var(--oc-success); }
7744
+ .oc-recovery-codes-actions .oc-btn:not(.is-copied) > .oc-recovery-codes-icon-copied,
7745
+ .oc-recovery-codes-actions .oc-btn.is-copied > .oc-recovery-codes-icon-copy { display: none; }
7746
+
7006
7747
  /* parts/app-result.css */
7007
7748
  /* File: packages/ui/src/parts/app-result.css */
7008
7749
  /* Map: result -> icon tile -> title -> text -> actions */
@@ -7234,6 +7975,7 @@ details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem
7234
7975
  /* parts/app-sidebar-meta.css */
7235
7976
  /* File: packages/ui/src/parts/app-sidebar-meta.css
7236
7977
  Map: meta line (brand, version, copyright) -> collapsed sidebar (only the version, the full line as a tooltip)
7978
+ -> --wrap (copyright on its own line) -> --collapsed (the collapsed look outside .oc-sidebar)
7237
7979
  Sidebar meta: a ready-made small line at the foot of an app sidebar: "App 1 2.4.0 · (c) 2026 Company 1". The brand
7238
7980
  never shortens, the copyright part ends in an ellipsis when the sidebar is narrow. In a collapsed sidebar
7239
7981
  (.oc-sidebar--collapsed) only the version stays, and the whole line shows as a tooltip (data-tooltip) on hover and on
@@ -7260,11 +8002,14 @@ details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem
7260
8002
  .oc-sidebar-meta__copy::before { content: "\00b7"; margin-inline-end: 0.35rem; }
7261
8003
  .oc-sidebar-meta:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
7262
8004
  /* Open sidebar: the whole line is visible, so no tooltip. */
7263
- .oc-sidebar:not(.oc-sidebar--collapsed) .oc-sidebar-meta.oc-tooltip::after { content: none; }
8005
+ .oc-sidebar:not(.oc-sidebar--collapsed) .oc-sidebar-meta.oc-tooltip:not(.oc-sidebar-meta--collapsed)::after { content: none; }
7264
8006
 
7265
8007
  /* Collapsed: only the version, centred. */
7266
- .oc-sidebar--collapsed .oc-sidebar-meta { justify-content: center; padding-inline: 0; }
7267
- .oc-sidebar--collapsed .oc-sidebar-meta :is(.oc-sidebar-meta__brand, .oc-sidebar-meta__copy) {
8008
+ /* --collapsed (0.17.0): the same look for a rail that is not an .oc-sidebar (set it from your own state). */
8009
+ .oc-sidebar--collapsed .oc-sidebar-meta,
8010
+ .oc-sidebar-meta.oc-sidebar-meta--collapsed { justify-content: center; padding-inline: 0; }
8011
+ .oc-sidebar--collapsed .oc-sidebar-meta :is(.oc-sidebar-meta__brand, .oc-sidebar-meta__copy),
8012
+ .oc-sidebar-meta--collapsed :is(.oc-sidebar-meta__brand, .oc-sidebar-meta__copy) {
7268
8013
  position: absolute;
7269
8014
  inline-size: 1px;
7270
8015
  block-size: 1px;
@@ -7272,6 +8017,113 @@ details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem
7272
8017
  clip-path: inset(50%);
7273
8018
  white-space: nowrap;
7274
8019
  }
8020
+
8021
+ /* --wrap (0.17.0): for a narrow rail. Brand and version on the first line, the copyright on its own second line, whole
8022
+ (no dot, no ellipsis). Everything is visible, so no tooltip unless the line is collapsed. */
8023
+ .oc-sidebar-meta--wrap { flex-wrap: wrap; row-gap: 0; }
8024
+ .oc-sidebar-meta--wrap .oc-sidebar-meta__copy { flex-basis: 100%; overflow: visible; white-space: normal; }
8025
+ .oc-sidebar-meta--wrap .oc-sidebar-meta__copy::before { content: none; }
8026
+ .oc-sidebar-meta--wrap.oc-tooltip:not(.oc-sidebar-meta--collapsed, .oc-sidebar--collapsed *)::after { content: none; }
8027
+
8028
+ /* parts/app-sidebar-provider.css */
8029
+ /* File: packages/ui/src/parts/app-sidebar-provider.css | Map: provider layout -> inset -> trigger -> rail -> menu action -> module tint */
8030
+ /* Sidebar provider (0.17.0): div.oc-sidebar-provider holds the sidebar state (data-state="expanded|collapsed") for the
8031
+ sidebar, a trigger in the page header (button.oc-sidebar-trigger), a thin rail on the sidebar edge (button.oc-sidebar-rail)
8032
+ and the page next to it (main.oc-sidebar-inset). The components and sidebar.js set the classes; this is the layout. */
8033
+
8034
+ .oc-sidebar-provider {
8035
+ display: flex;
8036
+ align-items: stretch;
8037
+ inline-size: 100%;
8038
+ min-block-size: 0;
8039
+ block-size: 100%;
8040
+ }
8041
+ .oc-sidebar-provider > .oc-sidebar { flex-shrink: 0; }
8042
+
8043
+ /* The page: takes the remaining width and may shrink below its content (tables scroll inside it). */
8044
+ .oc-sidebar-inset {
8045
+ display: flex;
8046
+ flex: 1;
8047
+ flex-direction: column;
8048
+ min-inline-size: 0;
8049
+ min-block-size: 0;
8050
+ background: var(--oc-background);
8051
+ }
8052
+
8053
+ .oc-sidebar-trigger > svg { inline-size: 1.25rem; block-size: 1.25rem; }
8054
+
8055
+ /* Rail: an 8px hit area centred on the sidebar edge; a thin line shows on hover. It takes no width in the layout. */
8056
+ .oc-sidebar-rail {
8057
+ position: relative;
8058
+ z-index: 2;
8059
+ flex: none;
8060
+ align-self: stretch;
8061
+ inline-size: 8px;
8062
+ margin-inline: -4px;
8063
+ padding: 0;
8064
+ border: 0;
8065
+ background: transparent;
8066
+ cursor: w-resize;
8067
+ }
8068
+ .oc-sidebar-rail::after {
8069
+ content: "";
8070
+ position: absolute;
8071
+ inset-block: 0;
8072
+ inset-inline-start: 3px;
8073
+ inline-size: 2px;
8074
+ background: transparent;
8075
+ transition: background var(--oc-transition-fast);
8076
+ }
8077
+ .oc-sidebar-rail:hover::after,
8078
+ .oc-sidebar-rail:focus-visible::after { background: var(--oc-border); }
8079
+ .oc-sidebar-rail:focus-visible { outline: none; }
8080
+ [data-state="collapsed"] > .oc-sidebar-rail { cursor: e-resize; }
8081
+ .oc-sidebar--right + .oc-sidebar-rail,
8082
+ .oc-sidebar-rail:has(+ .oc-sidebar--right) { cursor: e-resize; }
8083
+
8084
+ /* Menu action: a small button on the right of a menu item (more, add). */
8085
+ .oc-sidebar-menu > li:has(> .oc-sidebar-menu-action),
8086
+ .oc-sidebar-menu-sub > li:has(> .oc-sidebar-menu-action) { position: relative; }
8087
+ li:has(> .oc-sidebar-menu-action) > .oc-sidebar-menu-button { padding-inline-end: 2.25rem; }
8088
+ .oc-sidebar-menu-action {
8089
+ position: absolute;
8090
+ inset-block-start: 50%;
8091
+ inset-inline-end: 0.25rem;
8092
+ display: inline-grid;
8093
+ place-items: center;
8094
+ inline-size: 1.5rem;
8095
+ block-size: 1.5rem;
8096
+ padding: 0;
8097
+ font: inherit;
8098
+ color: var(--oc-muted-foreground);
8099
+ background: none;
8100
+ border: 0;
8101
+ border-radius: calc(var(--oc-radius) - 4px);
8102
+ cursor: pointer;
8103
+ translate: 0 -50%;
8104
+ transition: background var(--oc-transition-fast), color var(--oc-transition-fast), opacity var(--oc-transition-fast);
8105
+ }
8106
+ .oc-sidebar-menu-action > svg { inline-size: 1rem; block-size: 1rem; }
8107
+ .oc-sidebar-menu-action:hover { background: var(--oc-muted); color: var(--oc-foreground); }
8108
+ .oc-sidebar-menu-action:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
8109
+ @media (hover: hover) {
8110
+ .oc-sidebar-menu-action--hover { opacity: 0; }
8111
+ li:hover > .oc-sidebar-menu-action--hover,
8112
+ li:focus-within > .oc-sidebar-menu-action--hover,
8113
+ .oc-sidebar-menu-action--hover[aria-expanded="true"] { opacity: 1; }
8114
+ }
8115
+ .oc-sidebar--collapsed .oc-sidebar-menu-action { display: none; }
8116
+ .oc-sidebar--collapsed li:has(> .oc-sidebar-menu-action) > .oc-sidebar-menu-button { padding-inline-end: 0; }
8117
+
8118
+ /* Module tint: a sidebar with data-module (or inside one) marks the active row with the module colour (soft fill, coloured
8119
+ icon); without a module colour it falls back to the primary colour. */
8120
+ .oc-sidebar[data-module] .oc-sidebar-menu-button[aria-current="page"],
8121
+ .oc-sidebar[data-module] .oc-sidebar-menu-button.is-active {
8122
+ background: var(--oc-module-soft, color-mix(in oklab, var(--oc-module, var(--oc-primary)) 12%, transparent));
8123
+ color: var(--oc-foreground);
8124
+ }
8125
+ .oc-sidebar[data-module] .oc-sidebar-menu-button[aria-current="page"] .oc-sidebar-menu-icon,
8126
+ .oc-sidebar[data-module] .oc-sidebar-menu-button.is-active .oc-sidebar-menu-icon { color: var(--oc-module, var(--oc-primary)); }
7275
8127
 
7276
8128
  /* parts/app-sortable-row.css */
7277
8129
  /* File: packages/ui/src/parts/app-sortable-row.css | Map: grip cell -> grip button (dots) -> row states (dragging, drop before / after) -> reduced motion */
@@ -7496,6 +8348,22 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
7496
8348
  .oc-table-actions-icon:disabled,
7497
8349
  .oc-table-actions-icon[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
7498
8350
 
8351
+
8352
+ /* An icon action with its text (0.17.0, showLabel): wide tables show both, narrow ones (or --compact) only the icon. */
8353
+ .oc-table-actions-icon:has(> .oc-table-action-label) {
8354
+ grid-auto-flow: column;
8355
+ gap: 0.35rem;
8356
+ inline-size: auto;
8357
+ padding-inline: 0.5rem;
8358
+ }
8359
+ .oc-table-action-label { font-size: 0.8125rem; }
8360
+ .oc-table-actions--compact .oc-table-action-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
8361
+ .oc-table-actions--compact .oc-table-actions-icon:has(> .oc-table-action-label) { inline-size: 1.75rem; padding-inline: 0; }
8362
+ @container oc-table (max-width: 32rem) {
8363
+ .oc-table-action-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
8364
+ .oc-table-actions-icon:has(> .oc-table-action-label) { inline-size: 1.75rem; padding-inline: 0; }
8365
+ }
8366
+
7499
8367
  /* Tone modifiers: the hover tint shows what the action does. */
7500
8368
  .oc-table-actions-icon--primary:hover { color: var(--oc-primary); background: oklch(from var(--oc-primary) l c h / 0.1); }
7501
8369
  .oc-table-actions-icon--success:hover { color: var(--oc-success); background: oklch(from var(--oc-success) l c h / 0.1); }
@@ -7863,6 +8731,12 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
7863
8731
  /* Hide actions until hover or focus (optional): .oc-tree--quiet */
7864
8732
  .oc-tree--quiet .oc-tree-actions { opacity: 0; }
7865
8733
  .oc-tree--quiet .oc-tree-row:is(:hover, :focus-within) > .oc-tree-actions { opacity: 1; }
8734
+ /* Long names end in an ellipsis instead of scrolling sideways (optional): .oc-tree--ellipsis. Put the full name in a
8735
+ title on the label (the components do this for you). */
8736
+ .oc-tree--ellipsis { overflow-x: hidden; }
8737
+ .oc-tree--ellipsis .oc-tree-list { min-inline-size: 0; }
8738
+ .oc-tree--ellipsis .oc-tree-label { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
8739
+ .oc-tree--ellipsis .oc-tree-actions { box-shadow: none; }
7866
8740
 
7867
8741
  /* Selected row: tinted with the primary token. */
7868
8742
  .oc-tree-row:is([aria-current="true"], .is-selected, :has(> .oc-tree-label[aria-current="true"])) { color: var(--oc-primary); font-weight: 500; background: oklch(from var(--oc-primary) l c h / 0.1); }
@@ -7878,6 +8752,280 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
7878
8752
  .oc-tree-row::before { transition: none; }
7879
8753
  }
7880
8754
 
8755
+ /* parts/app-type-picker.css */
8756
+ /* File: packages/ui/src/parts/app-type-picker.css (in the components CSS since 0.17.0, so an editor that does not load
8757
+ the blocks CSS can use it too)
8758
+ Map: frame -> head -> tools (search + category chips) -> grid of type cards (radio, preview, name, hint)
8759
+ -> action mode (buttons: a click adds, cards can be dragged, a reason on a card that is not available)
8760
+ -> mini previews (text, image, question, callout, link, countdown, tip, video, code) -> foot -> container sizes
8761
+ Type picker: a gallery of the content types a user can add (to a page, a step, a lesson, a form). Each card is a
8762
+ label around a radio, so picking works with a click, a tap or the arrow keys, without JavaScript. The small preview
8763
+ in each card is real markup at a small size, not a grey skeleton. Search and category chips filter with a few
8764
+ optional lines of script (or your framework's state). */
8765
+
8766
+ .oc-block-type-picker {
8767
+ container: oc-block-type-picker / inline-size;
8768
+ display: grid;
8769
+ grid-template-columns: minmax(0, 1fr);
8770
+ gap: 1rem;
8771
+ padding: 1.25rem;
8772
+ border: 1px solid var(--oc-border);
8773
+ border-radius: calc(var(--oc-radius) + 4px);
8774
+ background: var(--oc-card);
8775
+ color: var(--oc-foreground);
8776
+ }
8777
+
8778
+ .oc-block-type-picker-head { display: grid; gap: 0.25rem; }
8779
+ .oc-block-type-picker-title { margin: 0; font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
8780
+ .oc-block-type-picker-text { margin: 0; color: var(--oc-muted-foreground); font-size: 0.875rem; line-height: 1.5; }
8781
+
8782
+ /* Search left, category chips right; stacked in a narrow container. */
8783
+ .oc-block-type-picker-tools { display: grid; gap: 0.6rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
8784
+ .oc-block-type-picker-tools > .oc-input-group { min-inline-size: 0; }
8785
+ .oc-block-type-picker-tools .oc-chip-filter { margin: 0; }
8786
+
8787
+ /* The cards: equal width and equal height in every row (golden rule). */
8788
+ .oc-block-type-picker-grid {
8789
+ display: grid;
8790
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.25rem), 1fr));
8791
+ grid-auto-rows: 1fr;
8792
+ gap: 0.75rem;
8793
+ margin: 0;
8794
+ padding: 0;
8795
+ border: 0;
8796
+ }
8797
+ .oc-block-type-picker-group { display: contents; }
8798
+ .oc-block-type-picker-group-title {
8799
+ grid-column: 1 / -1;
8800
+ margin: 0.25rem 0 -0.25rem;
8801
+ color: var(--oc-muted-foreground);
8802
+ font-size: 0.75rem;
8803
+ font-weight: 600;
8804
+ letter-spacing: 0.04em;
8805
+ text-transform: uppercase;
8806
+ }
8807
+ .oc-block-type-picker-group-title:first-child { margin-block-start: 0; }
8808
+
8809
+ .oc-block-type-picker-item {
8810
+ position: relative;
8811
+ display: grid;
8812
+ grid-template-rows: auto auto 1fr;
8813
+ gap: 0.35rem;
8814
+ padding: 0.5rem 0.5rem 0.65rem;
8815
+ border: 1px solid var(--oc-border);
8816
+ border-radius: var(--oc-radius);
8817
+ background: var(--oc-card);
8818
+ cursor: pointer;
8819
+ transition: border-color var(--oc-transition-fast), background-color var(--oc-transition-fast);
8820
+ }
8821
+ .oc-block-type-picker-item[hidden] { display: none; }
8822
+ .oc-block-type-picker-item:hover { border-color: var(--oc-border-strong); background: var(--oc-hover, var(--oc-muted)); }
8823
+ /* The radio stays in the accessibility tree and takes the keyboard focus; the card shows the state. */
8824
+ .oc-block-type-picker-input {
8825
+ position: absolute;
8826
+ inset: 0;
8827
+ inline-size: 100%;
8828
+ block-size: 100%;
8829
+ margin: 0;
8830
+ opacity: 0;
8831
+ cursor: inherit;
8832
+ }
8833
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:checked) {
8834
+ border-color: var(--oc-primary);
8835
+ background: oklch(from var(--oc-primary) l c h / 0.07);
8836
+ box-shadow: inset 0 0 0 1px var(--oc-primary);
8837
+ }
8838
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:focus-visible) {
8839
+ outline: var(--oc-focus-width, 2px) solid var(--oc-ring);
8840
+ outline-offset: 2px;
8841
+ }
8842
+ /* Disabled: the preview fades and the name turns muted; the hint stays readable, it says why. */
8843
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:disabled) { cursor: not-allowed; border-style: dashed; }
8844
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:disabled) .oc-block-type-picker-preview { opacity: 0.45; }
8845
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:disabled) .oc-block-type-picker-name { color: var(--oc-muted-foreground); }
8846
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:disabled):hover { border-color: var(--oc-border); background: var(--oc-card); }
8847
+
8848
+ /* Check mark in the corner of the picked card (drawn in CSS). */
8849
+ .oc-block-type-picker-item::after {
8850
+ content: "";
8851
+ position: absolute;
8852
+ inset-block-start: 0.85rem;
8853
+ inset-inline-end: 0.85rem;
8854
+ inline-size: 1.15rem;
8855
+ block-size: 1.15rem;
8856
+ border-radius: 50%;
8857
+ background: var(--oc-primary) no-repeat center / 0.7rem;
8858
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke=%27white%27 stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5'/%3E%3C/svg%3E");
8859
+ scale: 0;
8860
+ transition: scale var(--oc-transition-fast);
8861
+ pointer-events: none;
8862
+ }
8863
+ .oc-block-type-picker-item:has(.oc-block-type-picker-input:checked)::after { scale: 1; }
8864
+
8865
+ .oc-block-type-picker-name { font-size: 0.875rem; font-weight: 600; line-height: 1.3; padding-inline: 0.15rem; }
8866
+ .oc-block-type-picker-hint { color: var(--oc-muted-foreground); font-size: 0.75rem; line-height: 1.4; padding-inline: 0.15rem; }
8867
+
8868
+ /* ---- Mini previews: real markup at a small size, never focusable (aria-hidden + inert in the markup). ---- */
8869
+ .oc-block-type-picker-preview {
8870
+ display: grid;
8871
+ align-content: center;
8872
+ gap: 0.3rem;
8873
+ aspect-ratio: 16 / 10;
8874
+ padding: 0.55rem 0.65rem;
8875
+ overflow: hidden;
8876
+ border: 1px solid var(--oc-border);
8877
+ border-radius: calc(var(--oc-radius) - 2px);
8878
+ background: var(--oc-background);
8879
+ color: var(--oc-foreground);
8880
+ font-size: 0.625rem;
8881
+ line-height: 1.35;
8882
+ pointer-events: none;
8883
+ user-select: none;
8884
+ }
8885
+ .oc-block-type-picker-preview > * { min-inline-size: 0; }
8886
+ .oc-block-type-picker-preview b { font-size: 0.75rem; font-weight: 650; }
8887
+ .oc-block-type-picker-preview p { margin: 0; color: var(--oc-muted-foreground); }
8888
+ .oc-block-type-picker-preview :is(iconify-icon, svg[data-icon]) { font-size: 0.9rem; }
8889
+ .oc-block-type-picker-art-video :is(iconify-icon, svg[data-icon]) { font-size: 2rem; }
8890
+
8891
+ /* Image: a small landscape in flat palette colors. */
8892
+ .oc-block-type-picker-art-img { display: block; inline-size: 100%; block-size: 100%; border-radius: 0.3rem; }
8893
+ .oc-block-type-picker-preview:has(.oc-block-type-picker-art-img) { padding: 0.35rem; }
8894
+
8895
+ /* Question: a line of text and three answer rows, one picked. */
8896
+ .oc-block-type-picker-art-option {
8897
+ display: flex;
8898
+ align-items: center;
8899
+ gap: 0.3rem;
8900
+ padding: 0.1rem 0.3rem;
8901
+ border: 1px solid var(--oc-border);
8902
+ border-radius: 0.25rem;
8903
+ }
8904
+ .oc-block-type-picker-art-option::before {
8905
+ content: "";
8906
+ inline-size: 0.45rem;
8907
+ block-size: 0.45rem;
8908
+ border: 1px solid var(--oc-border-strong);
8909
+ border-radius: 50%;
8910
+ flex: none;
8911
+ }
8912
+ .oc-block-type-picker-art-option--on { border-color: var(--oc-primary); }
8913
+ .oc-block-type-picker-art-option--on::before { border-color: var(--oc-primary); background: var(--oc-primary); box-shadow: inset 0 0 0 1.5px var(--oc-background); }
8914
+
8915
+ /* Callout: a tinted note with a bar on the left. */
8916
+ .oc-block-type-picker-art-note {
8917
+ padding: 0.3rem 0.45rem;
8918
+ border-inline-start: 3px solid var(--oc-warning);
8919
+ border-radius: 0.25rem;
8920
+ background: oklch(from var(--oc-warning) l c h / 0.14);
8921
+ }
8922
+
8923
+ /* Link: a small outline button. */
8924
+ .oc-block-type-picker-art-btn {
8925
+ justify-self: start;
8926
+ display: inline-flex;
8927
+ align-items: center;
8928
+ gap: 0.25rem;
8929
+ padding: 0.15rem 0.5rem;
8930
+ border: 1px solid var(--oc-border-strong);
8931
+ border-radius: 0.3rem;
8932
+ font-weight: 600;
8933
+ }
8934
+
8935
+ /* Countdown: the time and a bar that shrinks. */
8936
+ .oc-block-type-picker-art-time { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
8937
+ .oc-block-type-picker-art-bar { block-size: 0.25rem; border-radius: 1rem; background: var(--oc-muted); overflow: hidden; }
8938
+ .oc-block-type-picker-art-bar::before { content: ""; display: block; inline-size: 60%; block-size: 100%; background: var(--oc-primary); }
8939
+
8940
+ /* Tip: a closed row with a chevron. */
8941
+ .oc-block-type-picker-art-row { display: flex; align-items: center; justify-content: space-between; padding: 0.15rem 0.35rem; border: 1px solid var(--oc-border); border-radius: 0.25rem; font-weight: 600; }
8942
+
8943
+ /* Video: a dark frame with a play button. */
8944
+ .oc-block-type-picker-art-video {
8945
+ display: grid;
8946
+ place-items: center;
8947
+ block-size: 100%;
8948
+ border-radius: 0.3rem;
8949
+ background: oklch(from var(--oc-primary) 0.26 0.05 h);
8950
+ color: var(--color-white-50);
8951
+ }
8952
+ .oc-block-type-picker-preview:has(.oc-block-type-picker-art-video) { padding: 0.35rem; align-content: stretch; }
8953
+
8954
+ /* Code to scan: a QR-like pattern on a white plate (always dark on white, like a real code). */
8955
+ .oc-block-type-picker-art-code { justify-self: center; block-size: 100%; aspect-ratio: 1; padding: 0.2rem; border-radius: 0.2rem; background: var(--color-white-50); color: var(--color-black-50); }
8956
+ .oc-block-type-picker-preview:has(.oc-block-type-picker-art-code) { padding: 0.35rem; align-content: stretch; }
8957
+ .oc-block-type-picker-preview:has(.oc-block-type-picker-art-code) > svg { block-size: 100%; min-block-size: 0; }
8958
+
8959
+ .oc-block-type-picker-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding-block-start: 0.25rem; border-block-start: 1px solid var(--oc-border); padding-block-start: 1rem; }
8960
+
8961
+ .oc-block-type-picker-empty { grid-column: 1 / -1; margin: 0; padding: 1.5rem; color: var(--oc-muted-foreground); font-size: 0.875rem; text-align: center; }
8962
+ .oc-block-type-picker-empty[hidden] { display: none; }
8963
+
8964
+ @container oc-block-type-picker (min-width: 40rem) {
8965
+ .oc-block-type-picker { padding: 1.5rem; }
8966
+ .oc-block-type-picker-tools { grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); }
8967
+ .oc-block-type-picker-tools .oc-chip-filter { justify-content: flex-end; }
8968
+ .oc-block-type-picker-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
8969
+ }
8970
+
8971
+ /* Action mode (0.17.0): .oc-block-type-picker--action, every card a <button>: a click or Enter adds that type at once,
8972
+ nothing is "selected", the arrow keys only move the focus. A card that cannot be used now keeps the focus
8973
+ (aria-disabled="true", not disabled) and says why in .oc-block-type-picker-reason. [draggable="true"] shows a grab
8974
+ cursor. */
8975
+ button.oc-block-type-picker-item {
8976
+ inline-size: 100%;
8977
+ font: inherit;
8978
+ text-align: start;
8979
+ color: inherit;
8980
+ align-content: start;
8981
+ }
8982
+ .oc-block-type-picker--action .oc-block-type-picker-item::after { content: none; }
8983
+ .oc-block-type-picker--action .oc-block-type-picker-item:focus-visible {
8984
+ outline: var(--oc-focus-width, 2px) solid var(--oc-ring);
8985
+ outline-offset: 2px;
8986
+ }
8987
+ .oc-block-type-picker--action .oc-block-type-picker-item:active:not([aria-disabled="true"]) {
8988
+ border-color: var(--oc-primary);
8989
+ background: oklch(from var(--oc-primary) l c h / 0.07);
8990
+ }
8991
+ .oc-block-type-picker-item[draggable="true"]:not([aria-disabled="true"]) { cursor: grab; }
8992
+ .oc-block-type-picker-item[draggable="true"]:active { cursor: grabbing; }
8993
+ .oc-block-type-picker-item[aria-disabled="true"] { cursor: not-allowed; border-style: dashed; }
8994
+ .oc-block-type-picker-item[aria-disabled="true"] .oc-block-type-picker-preview { opacity: 0.45; }
8995
+ .oc-block-type-picker-item[aria-disabled="true"] .oc-block-type-picker-name { color: var(--oc-muted-foreground); }
8996
+ .oc-block-type-picker-item[aria-disabled="true"]:hover { border-color: var(--oc-border); background: var(--oc-card); }
8997
+ .oc-block-type-picker-reason {
8998
+ display: flex;
8999
+ align-items: flex-start;
9000
+ gap: 0.25rem;
9001
+ padding-inline: 0.15rem;
9002
+ font-size: 0.75rem;
9003
+ line-height: 1.4;
9004
+ color: var(--oc-foreground);
9005
+ }
9006
+ .oc-block-type-picker-reason::before {
9007
+ content: "";
9008
+ flex: none;
9009
+ inline-size: 0.8rem;
9010
+ block-size: 0.8rem;
9011
+ margin-block-start: 0.1rem;
9012
+ background: var(--oc-warning);
9013
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20a10 10 0 0 0 0-20m1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E") center / contain no-repeat;
9014
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20a10 10 0 0 0 0-20m1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E") center / contain no-repeat;
9015
+ }
9016
+
9017
+ @media (prefers-reduced-motion: reduce) {
9018
+ .oc-block-type-picker-item, .oc-block-type-picker-item::after { transition: none; }
9019
+ }
9020
+
9021
+ /* Sample picture colors, shared by the picker, route-steps and step-view demos (theme based, so light and dark both
9022
+ work). Use them on the shapes of an inline SVG placeholder; a real photo needs none of this. */
9023
+ .oc-block-art-sky { fill: light-dark(oklch(from var(--oc-primary) 0.88 0.06 h), oklch(from var(--oc-primary) 0.36 0.07 h)); }
9024
+ .oc-block-art-sun { fill: var(--oc-warning); }
9025
+ .oc-block-art-land { fill: light-dark(oklch(from var(--oc-success) 0.56 0.12 h), oklch(from var(--oc-success) 0.46 0.1 h)); }
9026
+ .oc-block-art-wall { fill: light-dark(oklch(from var(--oc-warning) 0.74 0.09 60), oklch(from var(--oc-warning) 0.56 0.08 60)); }
9027
+ .oc-block-art-roof { fill: light-dark(oklch(from var(--oc-destructive) 0.5 0.12 35), oklch(from var(--oc-destructive) 0.42 0.1 35)); }
9028
+
7881
9029
  /* parts/app-upgrade-banner.css */
7882
9030
  /* File: packages/ui/src/parts/app-upgrade-banner.css | Map: callout -> icon -> body (title + plan badge, text) -> usage meter -> actions + dismiss -> modifiers (premium, compact) */
7883
9031
  /* Upgrade banner: soft callout for a free plan with limits ("3 of 5 projects used - upgrade").
@@ -8265,6 +9413,25 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
8265
9413
  .oc-dl--flush { margin-block-start: 0; border-block-start: 0; }
8266
9414
  .oc-dl--flush > .oc-dl-row:first-child { padding-block-start: 0; }
8267
9415
 
9416
+ /* parts/data-dl-numbered.css */
9417
+ /* File: packages/ui/src/parts/data-dl-numbered.css */
9418
+ /* Map: dl numbered -> counter per row (01, 02, ...) above the term */
9419
+ /* .oc-dl--numbered puts a counter (01, 02, ... decimal-leading-zero) above each term, in the muted color with
9420
+ tabular figures. Works with --glossary and --flush. Start at another number: style="counter-reset: oc-dl 4". */
9421
+
9422
+ .oc-dl--numbered { counter-reset: oc-dl; }
9423
+ .oc-dl--numbered > .oc-dl-row { counter-increment: oc-dl; }
9424
+ .oc-dl--numbered .oc-dl-term::before {
9425
+ content: counter(oc-dl, decimal-leading-zero);
9426
+ display: block;
9427
+ margin-block-end: 0.25rem;
9428
+ color: var(--oc-muted-foreground);
9429
+ font-size: 0.875em;
9430
+ font-weight: 500;
9431
+ font-variant-numeric: tabular-nums;
9432
+ letter-spacing: 0.04em;
9433
+ }
9434
+
8268
9435
  /* parts/data-graph.css */
8269
9436
  /* File: packages/ui/src/parts/data-graph.css
8270
9437
  Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
@@ -8328,11 +9495,18 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
8328
9495
  dominant-baseline: central;
8329
9496
  pointer-events: none;
8330
9497
  }
9498
+ /* Labels in the foreground color, large enough to read at the usual size, with a halo in the background color
9499
+ (--oc-graph-bg) so a line passing under a label never cuts through its letters. */
8331
9500
  .oc-graph__label {
8332
- fill: var(--oc-muted-foreground);
9501
+ fill: var(--oc-foreground);
8333
9502
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
8334
- font-size: 8.5px;
9503
+ font-size: 10.5px;
9504
+ font-weight: 500;
8335
9505
  text-anchor: middle;
9506
+ paint-order: stroke;
9507
+ stroke: var(--oc-graph-bg, var(--oc-background));
9508
+ stroke-width: 3.5px;
9509
+ stroke-linejoin: round;
8336
9510
  pointer-events: none;
8337
9511
  }
8338
9512
  .oc-graph__node:focus-visible .oc-graph__dot { stroke: var(--oc-ring); stroke-width: 2.5; }
@@ -8366,8 +9540,9 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
8366
9540
  }
8367
9541
 
8368
9542
  /* Focus: .is-focused on the graph and .is-active on one node light that node and its edge; the rest dims. */
8369
- .oc-graph.is-focused .oc-graph__node:not(.is-active, .oc-graph__node--center) { opacity: 0.15; }
8370
- .oc-graph.is-focused .oc-graph__edge { stroke-opacity: 0.08; stroke-width: 1; }
9543
+ /* Dimmed, not gone: the other nodes stay readable as context (also on the dark background). --oc-graph-dim tunes it. */
9544
+ .oc-graph.is-focused .oc-graph__node:not(.is-active, .oc-graph__node--center) { opacity: var(--oc-graph-dim, 0.4); }
9545
+ .oc-graph.is-focused .oc-graph__edge { stroke-opacity: 0.22; stroke-width: 1; }
8371
9546
  .oc-graph.is-focused .oc-graph__edge.is-active { stroke-opacity: 0.8; stroke-width: 3; }
8372
9547
  .oc-graph__node.is-active .oc-graph__dot { fill-opacity: 1; scale: 1.55; }
8373
9548
  .oc-graph__node.is-active .oc-graph__halo { stroke-opacity: 0.6; stroke-width: 14; }
@@ -9160,6 +10335,150 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9160
10335
  /* Small swatches. */
9161
10336
  .oc-color-select--sm .oc-color-select-swatch { inline-size: 1.25rem; block-size: 1.25rem; }
9162
10337
 
10338
+ /* parts/forms-combobox-catalog.css */
10339
+ /* File: packages/ui/src/parts/forms-combobox-catalog.css
10340
+ Map: panel (list + footer) -> option text with a description -> image and emoji -> clear and custom rows -> loading row
10341
+ -> manage footer -> list in document.body (portal) -> forced colors
10342
+ Catalog mode of the combobox (0.17.0): long server-searched lists of customers, products or codes. A two-line option
10343
+ (label + muted description), an image or emoji in the icon column, a first row that clears the choice, a row that takes
10344
+ what was typed, a loading row, a footer with a manage link, and a list moved to document.body so a scrolling or clipping
10345
+ parent does not cut it off. Theme tokens only; flat, no gradient, no glow. */
10346
+
10347
+ /* Panel: with a footer the popup is a div (.oc-combobox-list--panel) around the listbox and the footer. */
10348
+ .oc-combobox-list.oc-combobox-list--panel {
10349
+ display: flex;
10350
+ flex-direction: column;
10351
+ padding: 0;
10352
+ overflow: hidden;
10353
+ }
10354
+ .oc-combobox-options {
10355
+ flex: 1 1 auto;
10356
+ min-block-size: 0;
10357
+ margin: 0;
10358
+ padding: 4px;
10359
+ overflow-y: auto;
10360
+ list-style: none;
10361
+ }
10362
+ /* Options without an icon in a list that has icons: same start as in .oc-combobox-list (forms-combobox-icons.css). */
10363
+ .oc-combobox-options:has(.oc-combobox-option-icon, .oc-combobox-option-image, .oc-combobox-option-emoji) > .oc-combobox-option:not(:has(> :is(.oc-combobox-option-icon, .oc-combobox-option-image, .oc-combobox-option-emoji)), .oc-combobox-clear, .oc-combobox-custom),
10364
+ .oc-combobox-list:has(.oc-combobox-option-image, .oc-combobox-option-emoji) > .oc-combobox-option:not(:has(> :is(.oc-combobox-option-icon, .oc-combobox-option-image, .oc-combobox-option-emoji)), .oc-combobox-clear, .oc-combobox-custom) {
10365
+ padding-inline-start: calc(0.625rem + var(--oc-combobox-icon) + 0.5rem);
10366
+ }
10367
+
10368
+ /* Two lines: label + muted description. */
10369
+ .oc-combobox-option-text {
10370
+ display: grid;
10371
+ flex: 1 1 auto;
10372
+ gap: 1px;
10373
+ min-inline-size: 0;
10374
+ }
10375
+ .oc-combobox-option-label {
10376
+ overflow: hidden;
10377
+ text-overflow: ellipsis;
10378
+ white-space: nowrap;
10379
+ }
10380
+ .oc-combobox-option-description {
10381
+ overflow: hidden;
10382
+ font-size: 0.75rem;
10383
+ line-height: 1.35;
10384
+ text-overflow: ellipsis;
10385
+ white-space: nowrap;
10386
+ color: var(--oc-muted-foreground);
10387
+ }
10388
+ .oc-combobox-option:is(:hover, :focus-visible, [data-active]) .oc-combobox-option-description { color: inherit; opacity: 0.8; }
10389
+ .oc-combobox-option:has(> .oc-combobox-option-text) { justify-content: flex-start; }
10390
+ .oc-combobox-option:has(> .oc-combobox-option-text)[aria-selected="true"]::after { flex: none; margin-inline-start: auto; }
10391
+
10392
+ /* Image and emoji take the icon column. */
10393
+ .oc-combobox-option-image,
10394
+ .oc-combobox-option-emoji {
10395
+ display: inline-flex;
10396
+ flex: none;
10397
+ align-items: center;
10398
+ justify-content: center;
10399
+ inline-size: var(--oc-combobox-icon, 1.125rem);
10400
+ block-size: var(--oc-combobox-icon, 1.125rem);
10401
+ line-height: 1;
10402
+ }
10403
+ img.oc-combobox-option-image {
10404
+ border-radius: calc(var(--oc-radius) - 4px);
10405
+ object-fit: cover;
10406
+ /* A wide logo (mark + name) shows its mark on the left instead of a cropped middle. */
10407
+ object-position: left center;
10408
+ }
10409
+ .oc-combobox-option-emoji { font-size: 1rem; }
10410
+ .oc-combobox-option:has(> :is(.oc-combobox-option-image, .oc-combobox-option-emoji)) { justify-content: flex-start; }
10411
+ .oc-combobox-option:has(> :is(.oc-combobox-option-image, .oc-combobox-option-emoji))[aria-selected="true"]::after { margin-inline-start: auto; }
10412
+ .oc-combobox-icon > .oc-combobox-option-image,
10413
+ .oc-combobox-icon > .oc-combobox-option-emoji { inline-size: 100%; block-size: 100%; }
10414
+ /* The selected logo in the field: the icon square, cropped from the left like in the list (not a tiny contained wordmark). */
10415
+ .oc-combobox-icon > img.oc-combobox-option-image { inline-size: var(--oc-combobox-icon, 1.125rem); block-size: var(--oc-combobox-icon, 1.125rem); object-fit: cover; object-position: left center; }
10416
+ .oc-combobox-icon > .oc-combobox-option-emoji { inline-size: auto; block-size: auto; }
10417
+ .oc-combobox-icon:has(> .oc-combobox-option-emoji) { color: inherit; }
10418
+
10419
+ /* Clear row: muted, separated from the options under it. */
10420
+ .oc-combobox-clear {
10421
+ color: var(--oc-muted-foreground);
10422
+ font-style: italic;
10423
+ border-block-end: 1px solid var(--oc-border);
10424
+ border-end-start-radius: 0;
10425
+ border-end-end-radius: 0;
10426
+ margin-block-end: 2px;
10427
+ }
10428
+ /* Custom row: "Use ..." at the end, in the primary colour. */
10429
+ .oc-combobox-custom {
10430
+ color: var(--oc-primary);
10431
+ font-weight: 500;
10432
+ }
10433
+ .oc-combobox-custom:is(:hover, :focus-visible, [data-active]) { color: var(--oc-accent-foreground); }
10434
+ .oc-combobox-custom[hidden],
10435
+ .oc-combobox-clear[hidden],
10436
+ .oc-combobox-loading[hidden] { display: none; }
10437
+
10438
+ /* Loading row (aria-busy on the listbox). */
10439
+ .oc-combobox-loading {
10440
+ padding: 0.75rem 1rem;
10441
+ text-align: center;
10442
+ color: var(--oc-muted-foreground);
10443
+ }
10444
+
10445
+ /* Footer with the manage link: outside the listbox, stays at the bottom while the options scroll. */
10446
+ .oc-combobox-footer {
10447
+ flex: none;
10448
+ padding: 4px;
10449
+ border-block-start: 1px solid var(--oc-border);
10450
+ background: var(--oc-popover);
10451
+ }
10452
+ .oc-combobox-footer > a {
10453
+ display: flex;
10454
+ align-items: center;
10455
+ gap: 0.5rem;
10456
+ padding: 0.4rem 0.625rem;
10457
+ border-radius: calc(var(--oc-radius) - 2px);
10458
+ color: var(--oc-primary);
10459
+ font-weight: 500;
10460
+ text-decoration: none;
10461
+ }
10462
+ .oc-combobox-footer > a:is(:hover, :focus-visible) { background: var(--oc-accent); color: var(--oc-accent-foreground); outline: none; }
10463
+
10464
+ /* Portal: the list lives in document.body, fixed under the field (top/left/width set by the script or wrapper). It is
10465
+ no longer inside .oc-combobox, so [data-open] on the list itself shows it. */
10466
+ .oc-combobox-list.oc-combobox-list--portal {
10467
+ position: fixed;
10468
+ inset: auto;
10469
+ z-index: 1000;
10470
+ max-inline-size: calc(100vw - 16px);
10471
+ }
10472
+ .oc-combobox-list--portal[data-open=""] { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
10473
+ .oc-combobox-list--portal[data-open="false"] { visibility: hidden; opacity: 0; }
10474
+
10475
+ @media (forced-colors: active) {
10476
+ .oc-combobox-clear,
10477
+ .oc-combobox-footer { border-color: CanvasText; }
10478
+ .oc-combobox-custom,
10479
+ .oc-combobox-footer > a { color: LinkText; }
10480
+ }
10481
+
9163
10482
  /* parts/forms-combobox-icons.css */
9164
10483
  /* File: packages/ui/src/parts/forms-combobox-icons.css
9165
10484
  Map: combobox option icon -> icon of the chosen value in the field -> same start for options without icon
@@ -9202,7 +10521,8 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9202
10521
  }
9203
10522
 
9204
10523
  /* The icon of the chosen value inside the field, at the same start as the option icons in the list (list border 1px +
9205
- padding 4px + option padding 0.625rem), and the text of the field at the start of the option labels. */
10524
+ padding 4px + option padding 0.625rem), and the text of the field at the start of the option labels. An icon slot that is
10525
+ still empty (nothing chosen yet, or a value without an icon) takes no room, so the placeholder starts at the edge. */
9206
10526
  .oc-combobox-icon {
9207
10527
  position: absolute;
9208
10528
  inset-block: 0;
@@ -9210,7 +10530,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9210
10530
  block-size: auto;
9211
10531
  pointer-events: none;
9212
10532
  }
9213
- .oc-combobox:has(> .oc-combobox-icon) > .oc-combobox-input {
10533
+ .oc-combobox:has(> .oc-combobox-icon:not(:empty)) > .oc-combobox-input {
9214
10534
  padding-inline-start: calc(4px + 0.625rem + var(--oc-combobox-icon) + 0.5rem);
9215
10535
  }
9216
10536
 
@@ -9234,12 +10554,98 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9234
10554
  padding-inline-start: calc(10px + 1rem + 8px);
9235
10555
  }
9236
10556
 
10557
+ /* Two-line item (0.17.0): the label with a muted description under it (.oc-dropdown-text > .oc-dropdown-desc), for a
10558
+ menu that explains each choice ("New stop": the kind and what it does). The description may wrap. */
10559
+ .oc-dropdown-text {
10560
+ display: grid;
10561
+ flex: 1 1 auto;
10562
+ gap: 1px;
10563
+ min-inline-size: 0;
10564
+ text-align: start;
10565
+ }
10566
+ .oc-dropdown-desc {
10567
+ font-size: 0.75rem;
10568
+ line-height: 1.35;
10569
+ color: var(--oc-muted-foreground);
10570
+ white-space: normal;
10571
+ }
10572
+ .oc-dropdown-menu:has(.oc-dropdown-desc) { max-inline-size: min(22rem, calc(100vw - 2rem)); }
10573
+ .oc-dropdown-item:has(> .oc-dropdown-text > .oc-dropdown-desc) { padding-block: 7px; }
10574
+ /* Icon in a soft tinted square (iconTone): one quiet color per kind of item, no gradient and no glow. */
10575
+ .oc-dropdown-icon:is(.oc-dropdown-icon--primary, .oc-dropdown-icon--success, .oc-dropdown-icon--warning, .oc-dropdown-icon--destructive, .oc-dropdown-icon--muted) {
10576
+ inline-size: 1.75rem;
10577
+ block-size: 1.75rem;
10578
+ padding: 0.375rem;
10579
+ border-radius: calc(var(--oc-radius) - 2px);
10580
+ background: color-mix(in oklch, var(--oc-dropdown-tone, var(--oc-muted-foreground)) 14%, transparent);
10581
+ color: var(--oc-dropdown-tone, var(--oc-muted-foreground));
10582
+ }
10583
+ .oc-dropdown-icon--primary { --oc-dropdown-tone: var(--oc-primary); }
10584
+ .oc-dropdown-icon--success { --oc-dropdown-tone: var(--oc-success); }
10585
+ .oc-dropdown-icon--warning { --oc-dropdown-tone: var(--oc-warning); }
10586
+ .oc-dropdown-icon--destructive { --oc-dropdown-tone: var(--oc-destructive); }
10587
+ .oc-dropdown-item:is(:hover, :focus-visible) > .oc-dropdown-icon:is(.oc-dropdown-icon--primary, .oc-dropdown-icon--success, .oc-dropdown-icon--warning, .oc-dropdown-icon--destructive, .oc-dropdown-icon--muted) { color: var(--oc-dropdown-tone, var(--oc-muted-foreground)); }
10588
+ /* Plain items in a menu with tinted icons: the label starts where the other labels start. */
10589
+ .oc-dropdown-menu:has(> .oc-dropdown-item > [class*="oc-dropdown-icon--"])
10590
+ > .oc-dropdown-item:not(:has(> .oc-dropdown-icon), :has(> .oc-dropdown-check), [role="menuitemcheckbox"], [role="menuitemradio"]) {
10591
+ padding-inline-start: calc(10px + 1.75rem + 8px);
10592
+ }
10593
+
9237
10594
  @media (forced-colors: active) {
9238
10595
  .oc-combobox-option-icon,
9239
10596
  .oc-combobox-icon,
9240
10597
  .oc-dropdown-icon { color: CanvasText; }
9241
10598
  }
9242
10599
 
10600
+ /* parts/forms-copy-field-extras.css */
10601
+ /* File: packages/ui/src/parts/forms-copy-field-extras.css
10602
+ Map: copy button with icon + label -> icon swap on .is-copied -> show/hide toggle (masked secret) -> --wrap
10603
+ Copy field additions (0.17.0). The base .oc-copy-field lives in components.css.
10604
+ - .oc-copy-field-button holds an icon (mdi:content-copy, mdi:check once copied) and .oc-copy-field-button-label;
10605
+ the label shows the copied feedback, .oc-copy-field-status (visually hidden, role="status") announces it.
10606
+ - .oc-copy-field-toggle: show/hide for a secret in input[type=password]; aria-pressed="true" = shown. The markup can
10607
+ carry both icons (.oc-copy-field-icon-show / -hide); the one that does not fit the state is hidden.
10608
+ - .oc-copy-field--wrap: long values (a token, a URL) break over lines instead of ending in an ellipsis; the value is
10609
+ an <output> (an <input> cannot wrap). */
10610
+
10611
+ .oc-copy-field-button,
10612
+ .oc-copy-field-toggle {
10613
+ display: inline-flex;
10614
+ align-items: center;
10615
+ justify-content: center;
10616
+ gap: 0.375rem;
10617
+ white-space: nowrap;
10618
+ }
10619
+ .oc-copy-field-button > svg,
10620
+ .oc-copy-field-toggle > svg { flex: none; inline-size: 1.125em; block-size: 1.125em; }
10621
+ .oc-copy-field-button:not(.is-copied) > .oc-copy-field-icon-copied,
10622
+ .oc-copy-field-button.is-copied > .oc-copy-field-icon-copy { display: none; }
10623
+
10624
+ .oc-copy-field-toggle {
10625
+ padding: 0 0.625rem;
10626
+ font: inherit;
10627
+ font-size: 0.875rem;
10628
+ color: var(--oc-muted-foreground);
10629
+ background: transparent;
10630
+ border: 0;
10631
+ border-inline-start: 1px solid var(--oc-border);
10632
+ cursor: pointer;
10633
+ }
10634
+ .oc-copy-field-toggle:hover { color: var(--oc-foreground); background: var(--oc-accent); }
10635
+ .oc-copy-field-toggle:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
10636
+ .oc-copy-field-toggle[aria-pressed="true"] { color: var(--oc-foreground); }
10637
+ .oc-copy-field-toggle[aria-pressed="true"] > .oc-copy-field-icon-show,
10638
+ .oc-copy-field-toggle:not([aria-pressed="true"]) > .oc-copy-field-icon-hide { display: none; }
10639
+
10640
+ .oc-copy-field--wrap .oc-copy-field-value {
10641
+ display: block;
10642
+ align-self: center;
10643
+ white-space: pre-wrap;
10644
+ overflow-wrap: anywhere;
10645
+ text-overflow: clip;
10646
+ line-height: 1.45;
10647
+ }
10648
+
9243
10649
  /* parts/forms-date-field.css */
9244
10650
  /* File: packages/ui/src/parts/forms-date-field.css | Map: field frame -> icon zone -> native date input -> ISO week label -> sizes and states */
9245
10651
  /* Date field: calendar icon | line | date, with the ISO week at the end when wanted.
@@ -9363,6 +10769,63 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9363
10769
  .oc-density-compact .oc-field { gap: 0.25rem; }
9364
10770
  .oc-density-compact .oc-field-label { font-size: 0.75rem; }
9365
10771
 
10772
+ /* parts/forms-field-extras.css */
10773
+ /* File: packages/ui/src/parts/forms-field-extras.css
10774
+ Map: label row (label + info icon + trailing content) -> required mark -> info icon button -> validation message
10775
+ -> forced colors
10776
+ Extras of .oc-field (0.17.0): a label row with a tooltip icon and content at its end (a link, a counter), a mark for a
10777
+ required field, and the message the input-mask script writes on blur. Theme tokens only; flat. */
10778
+
10779
+ .oc-field-label-row {
10780
+ display: flex;
10781
+ align-items: center;
10782
+ gap: 0.375rem;
10783
+ min-inline-size: 0;
10784
+ }
10785
+ .oc-field-label-row > .oc-field-label { min-inline-size: 0; }
10786
+ .oc-field-label-trailing {
10787
+ margin-inline-start: auto;
10788
+ font-size: 0.8rem;
10789
+ color: var(--oc-muted-foreground);
10790
+ }
10791
+ .oc-field-label-trailing a { color: var(--oc-primary); }
10792
+ .oc-field--horizontal > .oc-field-label-row { min-inline-size: 120px; }
10793
+
10794
+ /* Required: a small mark after the label text (aria-hidden; the control has required + aria-required). */
10795
+ .oc-field-required {
10796
+ margin-inline-start: 0.2em;
10797
+ color: light-dark(oklch(from var(--oc-destructive) min(l, 0.55) c h), oklch(from var(--oc-destructive) max(l, 0.78) c h));
10798
+ font-weight: 600;
10799
+ }
10800
+
10801
+ /* Info icon: a small round button in the muted colour; the tooltip is the existing .oc-tooltip. */
10802
+ .oc-field-tooltip-wrap { display: inline-flex; }
10803
+ .oc-field-tooltip {
10804
+ display: inline-flex;
10805
+ align-items: center;
10806
+ justify-content: center;
10807
+ inline-size: 1.125rem;
10808
+ block-size: 1.125rem;
10809
+ padding: 0;
10810
+ border: 0;
10811
+ border-radius: 50%;
10812
+ background: transparent;
10813
+ color: var(--oc-muted-foreground);
10814
+ cursor: help;
10815
+ }
10816
+ .oc-field-tooltip > :is(svg, iconify-icon) { inline-size: 1rem; block-size: 1rem; font-size: 1rem; }
10817
+ .oc-field-tooltip:hover { color: var(--oc-foreground); }
10818
+ .oc-field-tooltip:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px; }
10819
+
10820
+ /* Ledger field: a smaller info icon. */
10821
+ .oc-field--ledger .oc-field-tooltip { inline-size: 1rem; block-size: 1rem; }
10822
+ .oc-field--ledger .oc-field-tooltip > :is(svg, iconify-icon) { inline-size: 0.875rem; block-size: 0.875rem; font-size: 0.875rem; }
10823
+
10824
+ @media (forced-colors: active) {
10825
+ .oc-field-tooltip { color: ButtonText; }
10826
+ .oc-field-required { color: CanvasText; }
10827
+ }
10828
+
9366
10829
  /* parts/forms-filter-counts.css */
9367
10830
  /* File: packages/ui/src/parts/forms-filter-counts.css
9368
10831
  Map: group (grid of tiles) -> tile (label + hidden radio) -> value / label / hint -> tones -> states -> --compact
@@ -9460,7 +10923,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9460
10923
  .oc-filter-counts--compact .oc-filter-counts-hint { display: none; }
9461
10924
 
9462
10925
  /* parts/forms-form-section.css */
9463
- /* File: packages/ui/src/parts/forms-form-section.css | Map: section (details) -> summary (icon, title, hint, status, chevron) -> body grid -> invalid state */
10926
+ /* File: packages/ui/src/parts/forms-form-section.css | Map: section (details) -> summary (icon, title, hint, status, chevron) -> body grid -> invalid state -> dense */
9464
10927
  /* Collapsible form section: a long form in named parts that open and close.
9465
10928
  Native <details>; sections with the same name="" keep one open at a time. */
9466
10929
 
@@ -9521,6 +10984,44 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9521
10984
  background: oklch(from var(--oc-destructive) l c h / 0.1);
9522
10985
  }
9523
10986
 
10987
+ /* Set by the app (0.17.0): data-issue="error" | "warning" marks the section (also while closed) when your own checks
10988
+ found something, not only the browser's validity. .oc-form-section__count is the number in the header. The same
10989
+ data-issue edge works on .oc-card. */
10990
+ .oc-form-section[data-issue="error"],
10991
+ .oc-card[data-issue="error"] { border-color: var(--oc-destructive); }
10992
+ .oc-form-section[data-issue="warning"],
10993
+ .oc-card[data-issue="warning"] { border-color: var(--oc-warning); }
10994
+ .oc-form-section[data-issue] .oc-form-section__icon {
10995
+ color: var(--oc-form-section-issue);
10996
+ background: oklch(from var(--oc-form-section-issue) l c h / 0.1);
10997
+ }
10998
+ .oc-form-section[data-issue="error"] { --oc-form-section-issue: var(--oc-destructive); }
10999
+ .oc-form-section[data-issue="warning"] { --oc-form-section-issue: var(--oc-warning); }
11000
+ .oc-form-section__status:has(> .oc-form-section__count) { display: inline-flex; align-items: center; gap: 0.5rem; }
11001
+ .oc-form-section__count {
11002
+ display: inline-grid;
11003
+ place-items: center;
11004
+ min-inline-size: 1.25rem;
11005
+ block-size: 1.25rem;
11006
+ padding-inline: 0.375rem;
11007
+ font-size: 0.6875rem;
11008
+ font-weight: 700;
11009
+ font-variant-numeric: tabular-nums;
11010
+ line-height: 1;
11011
+ color: var(--oc-destructive-foreground);
11012
+ background: var(--oc-form-section-issue, var(--oc-destructive));
11013
+ border-radius: 999px;
11014
+ }
11015
+ .oc-form-section[data-issue="warning"] .oc-form-section__count { color: var(--oc-warning-foreground); }
11016
+
11017
+ /* Dense (0.17.0): a smaller header, icon and body for long forms in a panel or a side sheet. */
11018
+ .oc-form-section--dense + .oc-form-section--dense { margin-block-start: 0.5rem; }
11019
+ .oc-form-section--dense > .oc-form-section__summary { gap: 0.125rem 0.625rem; padding: 0.5rem 0.75rem; }
11020
+ .oc-form-section--dense .oc-form-section__icon { inline-size: 1.75rem; block-size: 1.75rem; font-size: 1rem; }
11021
+ .oc-form-section--dense .oc-form-section__title { font-size: 0.875rem; }
11022
+ .oc-form-section--dense .oc-form-section__hint { font-size: 0.75rem; }
11023
+ .oc-form-section--dense > .oc-form-section__body { gap: 0.75rem; padding: 0.75rem; }
11024
+
9524
11025
  @media (prefers-reduced-motion: reduce) {
9525
11026
  .oc-form-section__summary::after { transition: none; }
9526
11027
  }
@@ -9866,6 +11367,106 @@ button.oc-language-select:hover { background: var(--oc-surface); }
9866
11367
  .oc-language-select--code .oc-language-select-control::picker(select) { position-area: block-end span-inline-start; }
9867
11368
  }
9868
11369
 
11370
+ /* parts/forms-ledger.css */
11371
+ /* File: packages/ui/src/parts/forms-ledger.css
11372
+ Map: ledger tokens on the controls -> input / select / textarea / combobox / input group -> ledger field (label + control)
11373
+ -> focus in the module colour -> forced colors
11374
+ Ledger look (variant="ledger"): compact, flat bookkeeping fields for dense forms and line items. About 2rem high,
11375
+ 0.8125rem tabular figures, a lightly tinted background, a 1px border and a small radius; the focus border and ring use
11376
+ the module colour (--oc-module, set by the app or by [data-module]) and fall back to the theme ring. It only sets the
11377
+ existing field tokens (--oc-input-*), so the base .oc-input / .oc-select rules keep doing the drawing. No gradient, no glow. */
11378
+
11379
+ .oc-input--ledger,
11380
+ .oc-select--ledger,
11381
+ .oc-textarea--ledger,
11382
+ .oc-combobox--ledger,
11383
+ .oc-input-group--ledger,
11384
+ .oc-field--ledger {
11385
+ --oc-input-size: 0.8125rem;
11386
+ --oc-input-padding: 0 0.5rem;
11387
+ --oc-input-radius: calc(var(--oc-radius) - 2px);
11388
+ --oc-input-border: var(--oc-border);
11389
+ --oc-input-bg: color-mix(in oklab, var(--oc-muted) 45%, transparent);
11390
+ --oc-ring-width: 2px;
11391
+ --oc-ring-alpha: 20%;
11392
+ --oc-ledger-height: 2rem;
11393
+ --oc-ledger-focus: var(--oc-module, var(--oc-ring));
11394
+ }
11395
+
11396
+ /* Controls: fixed height, tabular figures. */
11397
+ .oc-input.oc-input--ledger,
11398
+ .oc-select.oc-select--ledger,
11399
+ .oc-field--ledger :is(.oc-input:not(textarea), .oc-select) {
11400
+ block-size: var(--oc-ledger-height);
11401
+ font-variant-numeric: tabular-nums;
11402
+ line-height: 1.25;
11403
+ }
11404
+ .oc-select.oc-select--ledger,
11405
+ .oc-field--ledger .oc-select {
11406
+ padding-inline-end: 1.75rem;
11407
+ background-position: right 8px center;
11408
+ background-size: 12px 12px;
11409
+ }
11410
+ textarea.oc-textarea--ledger,
11411
+ .oc-field--ledger textarea.oc-input {
11412
+ --oc-input-padding: 0.375rem 0.5rem;
11413
+ --oc-textarea-min: 4rem;
11414
+ font-variant-numeric: tabular-nums;
11415
+ line-height: 1.4;
11416
+ }
11417
+
11418
+ /* Combobox: the field is a ledger input; the chevron sits a little closer to the end. */
11419
+ .oc-combobox--ledger .oc-combobox-input { padding-inline-end: 1.75rem; }
11420
+ .oc-combobox--ledger::after {
11421
+ /* Whole pixels and a slightly thinner stroke: a small chevron that stays sharp and symmetric. */
11422
+ inset-block-start: calc(var(--oc-ledger-height) / 2 - 6px);
11423
+ inset-inline-end: 0.7rem;
11424
+ inline-size: 6px;
11425
+ block-size: 6px;
11426
+ border-inline-end-width: 1.5px;
11427
+ border-block-end-width: 1.5px;
11428
+ }
11429
+ .oc-combobox--ledger .oc-combobox-list { font-size: 0.8125rem; }
11430
+
11431
+ /* Input group: addons at the same height and size. */
11432
+ .oc-input-group--ledger .oc-input-addon,
11433
+ .oc-field--ledger .oc-input-addon {
11434
+ padding-inline: 0.5rem;
11435
+ font-size: 0.75rem;
11436
+ font-variant-numeric: tabular-nums;
11437
+ border-color: var(--oc-border);
11438
+ }
11439
+ .oc-input-group--ledger .oc-input:first-child,
11440
+ .oc-input-group--ledger .oc-input-addon:first-child { border-start-start-radius: var(--oc-input-radius); border-end-start-radius: var(--oc-input-radius); }
11441
+ .oc-input-group--ledger .oc-input:last-child,
11442
+ .oc-input-group--ledger .oc-input-addon:last-child { border-start-end-radius: var(--oc-input-radius); border-end-end-radius: var(--oc-input-radius); }
11443
+
11444
+ /* Field: small muted label, tight gap. */
11445
+ .oc-field--ledger { gap: 4px; margin-bottom: 10px; }
11446
+ .oc-field--ledger .oc-field-label {
11447
+ font-size: 0.75rem;
11448
+ font-weight: 500;
11449
+ color: var(--oc-muted-foreground);
11450
+ }
11451
+ .oc-field--ledger :is(.oc-field-description, .oc-field-error) { font-size: 0.75rem; }
11452
+
11453
+ /* Focus: module colour with the theme ring as fallback. */
11454
+ :is(.oc-input--ledger, .oc-select--ledger, .oc-textarea--ledger):focus,
11455
+ :is(.oc-combobox--ledger, .oc-input-group--ledger, .oc-field--ledger) :is(.oc-input, .oc-select):focus {
11456
+ border-color: var(--oc-ledger-focus);
11457
+ box-shadow: 0 0 0 var(--oc-ring-width) color-mix(in srgb, var(--oc-ledger-focus) var(--oc-ring-alpha), transparent);
11458
+ }
11459
+ /* An error keeps its own colour. */
11460
+ :is(.oc-input--ledger, .oc-textarea--ledger, .oc-field--ledger .oc-input):is([aria-invalid="true"], .oc-input--error) {
11461
+ border-color: var(--oc-destructive);
11462
+ }
11463
+
11464
+ @media (forced-colors: active) {
11465
+ :is(.oc-input--ledger, .oc-select--ledger, .oc-textarea--ledger, .oc-field--ledger .oc-input, .oc-field--ledger .oc-select) {
11466
+ border-color: CanvasText;
11467
+ }
11468
+ }
11469
+
9869
11470
  /* parts/forms-number-input.css */
9870
11471
  /* File: packages/ui/src/parts/forms-number-input.css
9871
11472
  Map: wrapper -> step buttons (- / +) -> number field (native spinners hidden) -> states -> sizes / block
@@ -10425,6 +12026,14 @@ a.oc-rating-summary__count:hover { color: var(--oc-foreground); }
10425
12026
  .oc-media-art--5 { --oc-media-art-from: var(--color-magenta-50); --oc-media-art-to: var(--color-indigo-50); }
10426
12027
  .oc-media-art--6 { --oc-media-art-from: var(--color-yellow-60); --oc-media-art-to: var(--color-peru-60); }
10427
12028
 
12029
+ /* parts/media-aspect-flush.css */
12030
+ /* File: packages/ui/src/parts/media-aspect-flush.css */
12031
+ /* Map: aspect flush -> no radius, no background */
12032
+ /* .oc-aspect--flush: the aspect box without its rounded corners and muted background, for a picture over the full
12033
+ width of the page (edge to edge) or inside a card that already clips its corners. */
12034
+
12035
+ .oc-aspect--flush { border-radius: 0; background: none; }
12036
+
10428
12037
  /* parts/media-attachment.css */
10429
12038
  /* File: packages/ui/src/parts/media-attachment.css | Map: list -> file chip (icon by type, name, size, open/remove) -> type tones
10430
12039
  -> uploading progress + error -> image preview (in a message) -> thumbnail chip (in a composer) -> reduced motion
@@ -10588,9 +12197,11 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10588
12197
  }
10589
12198
 
10590
12199
  /* parts/media-barcode.css */
10591
- /* File: packages/ui/src/parts/media-barcode.css | Map: barcode figure -> svg bars -> digits -> sizes (hero, compact) -> error */
12200
+ /* File: packages/ui/src/parts/media-barcode.css | Map: barcode figure -> svg bars -> digits (groups) -> sizes (hero, compact) -> bare -> error */
10592
12201
  /* Barcode display: EAN-13, EAN-8, UPC-A or Code 128, drawn as SVG by
10593
- packages/ui/src/barcode.js from data-value. Always black bars on white, in both themes, so scanners read it. */
12202
+ packages/ui/src/barcode.js from data-value. Black bars on a white plate, in both themes, so scanners read it.
12203
+ --bare (0.17.0): no plate, no border (inside a card); the bars take currentColor. The figure never gets wider than
12204
+ its container: the SVG then scales down in width. */
10594
12205
 
10595
12206
  .oc-barcode {
10596
12207
  display: inline-flex;
@@ -10603,14 +12214,33 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10603
12214
  background: var(--color-white-50);
10604
12215
  border: 1px solid var(--oc-border);
10605
12216
  border-radius: var(--oc-radius);
12217
+ box-sizing: border-box;
12218
+ max-inline-size: 100%;
12219
+ min-inline-size: 0;
10606
12220
  }
10607
- .oc-barcode svg { display: block; inline-size: auto; block-size: var(--oc-barcode-height, 4rem); max-inline-size: 100%; }
10608
- .oc-barcode__digits { font-family: var(--oc-font-mono); font-size: 0.8125rem; letter-spacing: 0.18em; color: inherit; }
12221
+ .oc-barcode svg { display: block; inline-size: auto; block-size: var(--oc-barcode-height, 4rem); max-inline-size: 100%; min-inline-size: 0; }
12222
+ .oc-barcode__digits {
12223
+ display: flex;
12224
+ flex-wrap: wrap;
12225
+ justify-content: center;
12226
+ column-gap: 0.6em;
12227
+ max-inline-size: 100%;
12228
+ font-family: var(--oc-font-mono);
12229
+ font-size: 0.8125rem;
12230
+ letter-spacing: 0.18em;
12231
+ color: inherit;
12232
+ }
12233
+ /* each group drops the trailing letter-spacing so the gaps between groups look equal */
12234
+ .oc-barcode__group { margin-inline-end: -0.18em; }
10609
12235
  .oc-barcode--hero { padding: 1.25rem 1.5rem; --oc-barcode-height: 6rem; }
10610
12236
  .oc-barcode--hero .oc-barcode__digits { font-size: 1rem; }
10611
12237
  .oc-barcode--compact { padding: 0.375rem 0.5rem; --oc-barcode-height: 2.25rem; }
10612
12238
  .oc-barcode--compact .oc-barcode__digits { font-size: 0.6875rem; letter-spacing: 0.1em; }
12239
+ .oc-barcode--compact .oc-barcode__group { margin-inline-end: -0.1em; }
10613
12240
  .oc-barcode[data-error] .oc-barcode__digits { color: var(--color-red-70); letter-spacing: 0; }
12241
+ /* --bare (0.17.0): no own white plate and border, so a barcode in a card has no double frame. The bars and digits take
12242
+ currentColor (light on dark in dark mode: most phone scanners read that; keep the default plate for print/labels). */
12243
+ .oc-barcode.oc-barcode--bare { padding: 0; color: inherit; background: none; border: 0; border-radius: 0; }
10614
12244
 
10615
12245
  /* parts/media-browser-frame.css */
10616
12246
  /* File: packages/ui/src/parts/media-browser-frame.css | Map: frame -> chrome bar (dots, address pill, actions)
@@ -10895,6 +12525,8 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10895
12525
  justify-content: space-between;
10896
12526
  gap: 0.5rem;
10897
12527
  min-inline-size: 0;
12528
+ /* As tall as the expand button, with or without one: frames side by side start at the same height. */
12529
+ min-block-size: 2rem;
10898
12530
  }
10899
12531
  .oc-doc-viewer__label {
10900
12532
  flex: 1 1 auto;
@@ -11165,6 +12797,11 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11165
12797
  @container (max-width: 22rem) {
11166
12798
  .oc-entity-card__grid { grid-template-columns: minmax(0, 1fr); }
11167
12799
  }
12800
+ /* A small card in a very narrow column: a smaller frame, so the title keeps its room. */
12801
+ @container (max-width: 16rem) {
12802
+ .oc-entity-card--sm .oc-entity-card__grid { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem; }
12803
+ .oc-entity-card--sm .oc-entity-card__glyph { font-size: 1.75rem; }
12804
+ }
11168
12805
 
11169
12806
  /* parts/media-flip-card.css */
11170
12807
  /* File: packages/ui/src/parts/media-flip-card.css | Map: card (perspective) -> hidden checkbox -> inner (3D) -> faces
@@ -11308,7 +12945,8 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11308
12945
  Map: liquid sheet (.oc-glass--liquid: clear tint, strong blur + saturation, inner light, specular rim) -> menu bar
11309
12946
  (.oc-glass-bar: items with icon and label, the current one in a raised bubble) -> icon-only and round button -> fallbacks
11310
12947
  Liquid glass in the style of recent desktop and phone systems, in CSS only: the backdrop is blurred and brightened,
11311
- the edge catches light. Put it over a photo or colourful content; on a plain page it looks like a soft card. */
12948
+ the edge catches light. Put it over a photo or colourful content; on a plain page it looks like a soft card.
12949
+ With glass-lens.js in Chromium the liquid sheet and the bar get the lens too (see media-glass.css). */
11312
12950
 
11313
12951
  .oc-glass.oc-glass--liquid,
11314
12952
  .oc-glass--liquid,
@@ -11360,8 +12998,12 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11360
12998
  pointer-events: none;
11361
12999
  }
11362
13000
 
11363
- /* Menu bar: a pill of items, each an icon over a short label. */
13001
+ /* Menu bar: a pill of items, each an icon over a short label. Small labels need a calmer backdrop than a sheet with
13002
+ large text: in light mode the bar takes a denser white tint and a stronger blur, so icons and labels stay readable
13003
+ over a busy photo (the dark tint is unchanged: light text on a darkened photo already reads well). */
11364
13004
  .oc-glass-bar {
13005
+ --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.5), oklch(100% 0 0deg / 0.05));
13006
+ --oc-liquid-blur: 10px;
11365
13007
  display: inline-flex;
11366
13008
  align-items: center;
11367
13009
  gap: 0.2rem;
@@ -11377,7 +13019,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11377
13019
  padding: 0.45rem 0.85rem;
11378
13020
  border: 0;
11379
13021
  border-radius: 999px;
11380
- color: light-dark(oklch(22% 0.02 260deg / 0.78), oklch(100% 0 0deg / 0.82));
13022
+ color: light-dark(oklch(22% 0.02 260deg / 0.9), oklch(100% 0 0deg / 0.9));
11381
13023
  background: none;
11382
13024
  font: inherit;
11383
13025
  font-size: 0.7rem;
@@ -11391,10 +13033,10 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11391
13033
  .oc-glass-bar__item:hover { background: light-dark(oklch(100% 0 0deg / 0.28), oklch(100% 0 0deg / 0.08)); }
11392
13034
  .oc-glass-bar__item:active { scale: 0.94; }
11393
13035
  .oc-glass-bar__item:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px; }
11394
- /* The current item sits in a raised, lighter bubble. */
13036
+ /* The current item sits in a raised, lighter bubble (dense enough in light, faint enough in dark, for 4.5:1 text). */
11395
13037
  .oc-glass-bar__item:is([aria-current="page"], [aria-pressed="true"], :has(> input:checked)) {
11396
13038
  color: light-dark(var(--oc-primary), var(--color-white-50));
11397
- background: light-dark(oklch(100% 0 0deg / 0.62), oklch(100% 0 0deg / 0.24));
13039
+ background: light-dark(oklch(100% 0 0deg / 0.75), oklch(100% 0 0deg / 0.1));
11398
13040
  box-shadow: inset 0 1px 1px oklch(100% 0 0deg / 0.85), 0 6px 14px -8px oklch(0% 0 0deg / 0.4);
11399
13041
  }
11400
13042
  .oc-glass-bar__item > input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
@@ -11434,25 +13076,47 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11434
13076
 
11435
13077
  /* parts/media-glass-options.css */
11436
13078
  /* File: packages/ui/src/parts/media-glass-options.css
11437
- Map: amount (--clear: more see-through, --frost: more frosted) -> light content on a colourful backdrop -> stage (moving colour blobs to show it off)
13079
+ Map: amount (--clear: more see-through, also with the lens; --frost: more frosted, the lens only bends the edge) -> drag (data-oc-glass-drag) -> light content on a colourful backdrop -> stage (moving colour blobs to show it off; --landscape: sky, sun, hills)
11438
13080
  Extras for .oc-glass, .oc-glass--liquid and .oc-glass-bar (media-glass.css, media-glass-liquid.css). The selectors
11439
13081
  carry two classes so they win over the base glass whatever order the parts load in. */
11440
13082
 
11441
13083
  /* Amount of glass: --clear lets more of the backdrop through, --frost hides more of it. */
11442
13084
  :is(.oc-glass, .oc-glass-bar).oc-glass--clear {
11443
- --oc-glass-sheet: light-dark(oklch(from var(--oc-background) l c h / 0.32), oklch(from var(--oc-background) l c h / 0.26));
11444
- --oc-glass-blur: 10px;
13085
+ --oc-glass-sheet: light-dark(oklch(100% 0 0deg / 0.06), oklch(from var(--oc-background) l c h / 0.08));
13086
+ --oc-glass-blur: 4px;
13087
+ --oc-glass-lens-blur: 0px;
11445
13088
  --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.05), oklch(100% 0 0deg / 0.03));
11446
13089
  --oc-liquid-blur: 2px;
11447
13090
  }
11448
13091
  :is(.oc-glass, .oc-glass-bar).oc-glass--frost {
11449
- --oc-glass-sheet: light-dark(oklch(from var(--oc-background) l c h / 0.86), oklch(from var(--oc-background) l c h / 0.8));
11450
- --oc-glass-blur: 40px;
13092
+ --oc-glass-sheet: light-dark(oklch(100% 0 0deg / 0.42), oklch(from var(--oc-background) l c h / 0.5));
13093
+ --oc-glass-blur: 24px;
13094
+ --oc-glass-lens-blur: 12px;
11451
13095
  --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.38), oklch(100% 0 0deg / 0.12));
11452
13096
  --oc-liquid-blur: 18px;
11453
13097
  }
13098
+ /* Frosted glass has a fine grain (5 % grey noise) over the tint; clear glass has none. */
13099
+ .oc-glass.oc-glass--frost::after {
13100
+ background-image:
13101
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
13102
+ linear-gradient(to bottom, var(--oc-glass-sheen), transparent 60%);
13103
+ }
13104
+ @media (prefers-reduced-transparency: reduce) {
13105
+ .oc-glass.oc-glass--frost::after { background-image: none; }
13106
+ }
11454
13107
 
11455
13108
 
13109
+ /* Drag (glass-lens.js): data-oc-glass-drag moves the sheet over its backdrop with the mouse, a finger or the arrow keys.
13110
+ No page scroll while a finger drags it; keyboard moves glide unless reduced motion is asked for. */
13111
+ [data-oc-glass-drag] { touch-action: none; cursor: grab; transition: translate 0.15s ease-out; }
13112
+ [data-oc-glass-drag][data-oc-dragging] { cursor: grabbing; user-select: none; transition: none; }
13113
+ [data-oc-glass-drag]:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 3px; }
13114
+ /* Focus from a mouse or finger shows no ring (the script sets data-oc-pointer until a key is pressed). */
13115
+ [data-oc-glass-drag][data-oc-pointer]:focus-visible { outline: none; }
13116
+ @media (prefers-reduced-motion: reduce) {
13117
+ [data-oc-glass-drag] { transition: none; }
13118
+ }
13119
+
11456
13120
  /* Light content: white icons and labels for glass over a dark or very colourful backdrop. */
11457
13121
  .oc-glass-bar.oc-glass-bar--light .oc-glass-bar__item {
11458
13122
  color: oklch(100% 0 0deg / 0.92);
@@ -11483,44 +13147,77 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11483
13147
  @media (prefers-reduced-motion: reduce) {
11484
13148
  .oc-glass-stage { animation: none; }
11485
13149
  }
13150
+ /* Landscape: sky, sun and two hills (night in dark mode), standing still. Clear shapes and edges, so the lens shows: the
13151
+ horizon and the sun bend at the edge of the glass. */
13152
+ .oc-glass-stage.oc-glass-stage--landscape {
13153
+ background:
13154
+ radial-gradient(circle at 74% 30%, light-dark(var(--color-gold-50), var(--color-lightyellow-70)) 0 2.75rem, transparent calc(2.75rem + 1px)),
13155
+ radial-gradient(70% 52% at 20% 106%, light-dark(var(--color-seagreen-40), var(--color-darkgreen-60)) 0 99%, transparent 100%),
13156
+ radial-gradient(80% 58% at 86% 114%, light-dark(var(--color-forestgreen-60), var(--color-darkgreen-80)) 0 99%, transparent 100%),
13157
+ linear-gradient(light-dark(var(--color-deepskyblue-60), var(--color-midnightblue-60)), light-dark(var(--color-lightskyblue-20), var(--color-darkslateblue-50)) 75%);
13158
+ animation: none;
13159
+ }
11486
13160
 
11487
13161
  /* parts/media-glass.css */
11488
13162
  /* File: packages/ui/src/parts/media-glass.css
11489
- Map: tokens (light-dark) -> sheet (.oc-glass: see-through, blurred, light top edge, soft shadow) -> panel (.oc-glass-panel:
11490
- a lighter layer inside) -> cards inside a sheet -> --flat (desktop window, the OS draws the blur) -> --strong -> reduced
11491
- transparency
11492
- Glass: see-through surfaces in the "liquid glass" style, over a photo, a gradient or the desktop (an Electron or Tauri
11493
- window with Windows acrylic or macOS vibrancy behind a transparent page). Re-tint with the --oc-glass-* tokens. */
13163
+ Map: tokens (light-dark) -> sheet (.oc-glass: see-through fill, thickness from inset light only, soft shadow) ->
13164
+ lens (glass-lens.js in Chromium: the edge bends the backdrop) -> panel (.oc-glass-panel: a layer inside, never denser
13165
+ than the sheet) -> cards inside a sheet -> --strong -> --flat (desktop window, the OS draws the blur) -> reduced
13166
+ transparency -> no backdrop-filter -> Firefox
13167
+ Glass: see-through surfaces over a photo, a gradient or the desktop (an Electron or Tauri window with Windows acrylic
13168
+ or macOS vibrancy behind a transparent page). Re-tint with the --oc-glass-* tokens. The recipe: a see-through fill,
13169
+ light along the inside of the edge (inset shadows only, that is the thickness), a displacement map the size of the
13170
+ sheet, one SVG filter, and a fallback. Without glass-lens.js, or outside Chromium, the sheet is frosted glass
13171
+ (blur 12px, saturate 160%); with the script in Chrome or Edge the backdrop stays sharp and bends at the edge. */
11494
13172
 
11495
13173
  :root {
11496
- --oc-glass-sheet: light-dark(oklch(from var(--oc-background) l c h / 0.72), oklch(from var(--oc-background) l c h / 0.62));
11497
- --oc-glass-panel: light-dark(oklch(100% 0 0deg / 0.5), oklch(100% 0 0deg / 0.055));
11498
- --oc-glass-panel-strong: light-dark(oklch(100% 0 0deg / 0.72), oklch(100% 0 0deg / 0.09));
11499
- --oc-glass-edge: light-dark(oklch(100% 0 0deg / 0.85), oklch(100% 0 0deg / 0.11));
11500
- --oc-glass-edge-hi: light-dark(oklch(100% 0 0deg / 1), oklch(100% 0 0deg / 0.16));
13174
+ --oc-glass-sheet: light-dark(oklch(100% 0 0deg / 0.12), oklch(from var(--oc-background) l c h / 0.2));
13175
+ /* Light falloff from top to bottom (only the frosted variant uses it). */
13176
+ --oc-glass-sheen: light-dark(oklch(100% 0 0deg / 0.12), oklch(100% 0 0deg / 0.04));
13177
+ /* Light caught inside the edge all round, as in a thick clear lens. */
13178
+ --oc-glass-glow: light-dark(oklch(100% 0 0deg / 0.18), oklch(100% 0 0deg / 0.08));
13179
+ --oc-glass-panel: light-dark(oklch(100% 0 0deg / 0.12), oklch(100% 0 0deg / 0.05));
13180
+ --oc-glass-panel-strong: light-dark(oklch(100% 0 0deg / 0.4), oklch(100% 0 0deg / 0.1));
13181
+ --oc-glass-edge: light-dark(oklch(100% 0 0deg / 0.35), oklch(100% 0 0deg / 0.2));
13182
+ /* The bright line just inside the top edge, and its weaker return along the bottom. */
13183
+ --oc-glass-edge-hi: light-dark(oklch(100% 0 0deg / 0.65), oklch(100% 0 0deg / 0.35));
13184
+ --oc-glass-edge-low: light-dark(oklch(100% 0 0deg / 0.2), oklch(100% 0 0deg / 0.1));
11501
13185
  --oc-glass-hairline: light-dark(oklch(from var(--oc-foreground) l c h / 0.1), oklch(100% 0 0deg / 0.08));
11502
- --oc-glass-shadow: 0 24px 60px -20px light-dark(oklch(25% 0.06 255deg / 0.35), oklch(0% 0 0deg / 0.7));
11503
- --oc-glass-panel-shadow: 0 8px 24px -16px light-dark(oklch(25% 0.06 255deg / 0.25), oklch(0% 0 0deg / 0.6));
11504
- --oc-glass-blur: 28px;
11505
- --oc-glass-radius: 18px;
11506
- --oc-glass-panel-radius: 14px;
13186
+ --oc-glass-shadow: 0 10px 30px -10px light-dark(oklch(20% 0.04 260deg / 0.35), oklch(0% 0 0deg / 0.55));
13187
+ --oc-glass-panel-shadow: 0 6px 14px -8px light-dark(oklch(20% 0.04 260deg / 0.3), oklch(0% 0 0deg / 0.5));
13188
+ /* Frosted glass (no lens): the blur. With the lens the backdrop only gets --oc-glass-lens-blur. */
13189
+ --oc-glass-blur: 12px;
13190
+ --oc-glass-lens-blur: 2px;
13191
+ --oc-glass-radius: 28px;
13192
+ --oc-glass-panel-radius: 16px;
13193
+ /* Text on glass. The backdrop shows through, so the page's muted grey is too light there: muted text on a sheet is
13194
+ closer to the foreground (4.5:1 over the light landscape and the photo in the demos, light and dark). */
13195
+ --oc-glass-fg: var(--oc-foreground);
13196
+ --oc-glass-fg-muted: light-dark(color-mix(in oklch, var(--oc-foreground) 70%, var(--oc-muted-foreground)), color-mix(in oklch, var(--oc-foreground) 55%, var(--oc-muted-foreground)));
11507
13197
  }
11508
13198
 
11509
13199
  /* Sheet: the outer glass surface (a widget, a floating panel, a dialog over a photo).
11510
- The blur and tint sit on a ::after layer behind the content, not on the sheet itself: an element with
11511
- backdrop-filter becomes the containing block of position: fixed children, so a tooltip inside would be trapped
11512
- on the sheet instead of next to its anchor. */
13200
+ The fill, the light and the filter sit on a ::after layer behind the content, not on the sheet itself: an element
13201
+ with backdrop-filter becomes the containing block of position: fixed children, so a tooltip inside would be trapped
13202
+ on the sheet. It also keeps the drop shadow off the filtered layer: in Chrome an outer shadow on the element with
13203
+ the lens shifts the displacement map and breaks the glass. So the sheet carries the shadow, the ::after the lens. */
11513
13204
  .oc-glass {
11514
13205
  position: relative;
11515
13206
  isolation: isolate;
11516
- color: var(--oc-foreground);
13207
+ color: var(--oc-glass-fg);
11517
13208
  border: 1px solid var(--oc-glass-edge);
11518
13209
  border-radius: var(--oc-glass-radius);
11519
13210
  box-shadow: var(--oc-glass-shadow);
11520
13211
  /* OmniaUI cards inside become glass panels too. */
11521
13212
  --oc-card-background: var(--oc-glass-panel);
11522
13213
  --oc-card-border: var(--oc-glass-edge);
13214
+ /* Muted text inside (meta, hints, a status line) takes the glass muted colour; --text-soft is the soft paragraph
13215
+ colour of the OmniaCSS docs shell. */
13216
+ --oc-muted-foreground: var(--oc-glass-fg-muted);
13217
+ --text-soft: var(--oc-glass-fg-muted);
11523
13218
  }
13219
+ /* The glass: a see-through fill and only inset light for the thickness (a bright line inside the top edge, a weaker
13220
+ one along the bottom, a soft glow all round). Frosted by default; the lens below replaces the blur in Chromium. */
11524
13221
  .oc-glass::after {
11525
13222
  content: "";
11526
13223
  position: absolute;
@@ -11528,50 +13225,77 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11528
13225
  z-index: -1;
11529
13226
  border-radius: inherit;
11530
13227
  background: var(--oc-glass-sheet);
11531
- box-shadow: inset 0 1px 0 var(--oc-glass-edge-hi);
11532
- backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5);
13228
+ box-shadow:
13229
+ inset 0 1.5px 0 var(--oc-glass-edge-hi),
13230
+ inset 0 -1px 0 var(--oc-glass-edge-low),
13231
+ inset 0 0 22px var(--oc-glass-glow);
13232
+ backdrop-filter: blur(var(--oc-glass-blur)) saturate(160%);
11533
13233
  pointer-events: none;
11534
13234
  }
13235
+ /* Lens (glass-lens.js, Chromium only): the script builds an SVG filter with a displacement map the exact size of the
13236
+ sheet and sets --oc-glass-lens: url(#oc-lens-WxH) and data-oc-lens. The middle of the map is neutral, so only the
13237
+ edge bends what is behind it; the backdrop stays almost sharp. Other browsers (html.oc-no-lens) keep frosted glass. */
13238
+ :is(.oc-glass, .oc-glass-bar)[data-oc-lens]::after {
13239
+ backdrop-filter: var(--oc-glass-lens) blur(var(--oc-glass-lens-blur)) saturate(160%);
13240
+ }
13241
+ .oc-no-lens :is(.oc-glass, .oc-glass-bar)[data-oc-lens]::after { backdrop-filter: blur(var(--oc-glass-blur)) saturate(160%); }
13242
+ .oc-lens-defs { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; pointer-events: none; }
11535
13243
 
11536
- /* Panel: a lighter layer inside a sheet (a group of settings, a meter, a list). */
13244
+ /* Panel: a layer inside a sheet (a group of settings, a meter, a list): a second, lighter pane of glass with its own
13245
+ light on the edge. Lighter than the sheet, never denser. */
11537
13246
  .oc-glass-panel {
11538
13247
  position: relative;
11539
13248
  background: var(--oc-glass-panel);
11540
13249
  border: 1px solid var(--oc-glass-edge);
11541
13250
  border-radius: var(--oc-glass-panel-radius);
11542
- box-shadow: var(--oc-glass-panel-shadow), inset 0 1px 0 var(--oc-glass-edge-hi);
13251
+ box-shadow: var(--oc-glass-panel-shadow), inset 0 1px 0 var(--oc-glass-edge-hi), inset 0 0 8px var(--oc-glass-glow);
11543
13252
  }
11544
13253
  .oc-glass .oc-card {
11545
13254
  border-radius: var(--oc-glass-panel-radius);
11546
- box-shadow: var(--oc-glass-panel-shadow), inset 0 1px 0 var(--oc-glass-edge-hi);
13255
+ box-shadow: var(--oc-glass-panel-shadow), inset 0 1px 0 var(--oc-glass-edge-hi), inset 0 0 8px var(--oc-glass-glow);
11547
13256
  }
11548
13257
 
11549
- /* Strong: more opaque, for text-heavy panels or a hovered row. */
11550
- .oc-glass--strong::after,
13258
+ /* Strong: more opaque, for text-heavy sheets and panels or a hovered row. */
13259
+ .oc-glass.oc-glass--strong { --oc-glass-sheet: light-dark(oklch(100% 0 0deg / 0.62), oklch(from var(--oc-background) l c h / 0.66)); }
11551
13260
  .oc-glass-panel--strong { background: var(--oc-glass-panel-strong); }
11552
13261
 
11553
- /* Flat: a frameless desktop window where the OS draws the blur (acrylic, vibrancy): no own blur, no drop shadow. */
13262
+ /* Flat: a frameless desktop window where the OS draws the blur (acrylic, vibrancy): no own blur, no lens, no drop shadow. */
11554
13263
  .oc-glass--flat { border-radius: 8px; box-shadow: none; }
11555
- .oc-glass--flat::after { backdrop-filter: none; }
13264
+ .oc-glass.oc-glass--flat::after { backdrop-filter: none; }
11556
13265
 
11557
13266
  /* Hairline divider in glass (sections, header). */
11558
13267
  .oc-glass-divider { block-size: 1px; margin: 0; border: 0; background: var(--oc-glass-hairline); }
11559
13268
 
11560
- /* People who ask for less transparency get solid surfaces. */
13269
+ /* People who ask for less transparency get solid surfaces (also with --clear or --frost, and with the lens). */
11561
13270
  @media (prefers-reduced-transparency: reduce) {
11562
- :root {
13271
+ :root,
13272
+ .oc-glass.oc-glass--clear,
13273
+ .oc-glass.oc-glass--frost,
13274
+ .oc-glass.oc-glass--strong {
11563
13275
  --oc-glass-sheet: var(--oc-background);
11564
13276
  --oc-glass-panel: var(--oc-card);
11565
13277
  --oc-glass-panel-strong: var(--oc-muted);
11566
13278
  }
11567
- .oc-glass::after { backdrop-filter: none; }
13279
+ .oc-glass::after,
13280
+ :is(.oc-glass, .oc-glass-bar)[data-oc-lens]::after { backdrop-filter: none; background-image: none; }
13281
+ }
13282
+ /* No backdrop-filter (older browsers, some embedded web views): an unblurred see-through sheet is unreadable, so the
13283
+ tint turns nearly solid. */
13284
+ @supports not (backdrop-filter: blur(1px)) {
13285
+ :root,
13286
+ .oc-glass.oc-glass--clear,
13287
+ .oc-glass.oc-glass--frost,
13288
+ .oc-glass.oc-glass--strong {
13289
+ --oc-glass-sheet: light-dark(oklch(from var(--oc-background) l c h / 0.85), oklch(from var(--oc-background) l c h / 0.9));
13290
+ }
11568
13291
  }
11569
- /* Firefox has no "backdrop root" yet: the filter on the ::after lens only sees the inside of the isolated sheet, so
11570
- nothing would be blurred. There the filter sits on the sheet itself (a position: fixed child is then placed
11571
- relative to the sheet; popovers, dialogs and anchored tooltips in the top layer are not affected). */
13292
+ /* Firefox has no "backdrop root" yet: the filter on the ::after only sees the inside of the isolated sheet, so nothing
13293
+ would be blurred. There the (frosted) filter sits on the sheet itself (a position: fixed child is then placed
13294
+ relative to the sheet; popovers, dialogs and anchored tooltips in the top layer are not affected). No lens there. */
11572
13295
  @supports (-moz-appearance: none) {
11573
- .oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5); }
13296
+ .oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(160%); }
11574
13297
  .oc-glass::after { backdrop-filter: none; }
13298
+ .oc-glass--flat { backdrop-filter: none; }
11575
13299
  @media (prefers-reduced-transparency: reduce) { .oc-glass { backdrop-filter: none; } }
11576
13300
  }
11577
13301
 
@@ -12358,6 +14082,59 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12358
14082
  .oc-media-row-list--numbered > .oc-media-row { grid-template-columns: 1.25rem 6.5rem minmax(0, 1fr) auto; }
12359
14083
  }
12360
14084
 
14085
+ /* parts/media-scrim.css */
14086
+ /* File: packages/ui/src/parts/media-scrim.css | Map: child layer (.oc-scrim) and host pseudo (.oc-has-scrim::after)
14087
+ -> sides (bottom default, top, start, end, full) -> dark -> content above the scrim -> rtl */
14088
+ /* Scrim (0.17.0): a calm fade over a picture, so text on top of it stays readable. From the scrim color at one edge to
14089
+ transparent. Two ways, same modifiers:
14090
+ - a child element: <span class="oc-scrim oc-scrim--bottom" aria-hidden="true"></span> inside a positioned element
14091
+ with an image (the element needs position: relative);
14092
+ - no extra element: .oc-has-scrim on that element draws the scrim as ::after.
14093
+ Text that sits on the scrim gets .oc-scrim-content (position: relative; z-index 2).
14094
+ Tokens (set them on the element, a parent or :root): --oc-scrim-color (default the page background,
14095
+ .oc-scrim--dark = near black), --oc-scrim-strength (opacity at the edge, 0 to 1, default 0.85), --oc-scrim-size (how
14096
+ far the fade reaches, default 60%). Hero media uses the same tokens for its own scrim. No glow, no color blend. */
14097
+
14098
+ .oc-scrim,
14099
+ .oc-has-scrim::after {
14100
+ --_oc-scrim-c: var(--oc-scrim-color, var(--oc-background));
14101
+ --_oc-scrim-s: var(--oc-scrim-strength, 0.85);
14102
+ --_oc-scrim-l: var(--oc-scrim-size, 60%);
14103
+ position: absolute;
14104
+ inset: 0;
14105
+ z-index: 1;
14106
+ pointer-events: none;
14107
+ border-radius: inherit;
14108
+ background: linear-gradient(
14109
+ var(--_oc-scrim-dir, to top),
14110
+ color-mix(in oklab, var(--_oc-scrim-c) calc(var(--_oc-scrim-s) * 100%), transparent) 0%,
14111
+ color-mix(in oklab, var(--_oc-scrim-c) calc(var(--_oc-scrim-s) * 55%), transparent) calc(var(--_oc-scrim-l) * 0.55),
14112
+ transparent var(--_oc-scrim-l)
14113
+ );
14114
+ }
14115
+ .oc-has-scrim { position: relative; isolation: isolate; }
14116
+ .oc-has-scrim::after { content: ""; }
14117
+
14118
+ /* Dark: a near-black scrim for light text, in light and dark mode. */
14119
+ .oc-scrim--dark { --oc-scrim-color: oklch(14% 0.01 260deg); }
14120
+
14121
+ /* Sides: where the scrim is strongest. Bottom is the default. */
14122
+ .oc-scrim--top { --_oc-scrim-dir: to bottom; }
14123
+ .oc-scrim--start { --_oc-scrim-dir: to right; }
14124
+ .oc-scrim--end { --_oc-scrim-dir: to left; }
14125
+ .oc-scrim--start:dir(rtl) { --_oc-scrim-dir: to left; }
14126
+ .oc-scrim--end:dir(rtl) { --_oc-scrim-dir: to right; }
14127
+
14128
+ /* Full: one even layer over the whole picture. */
14129
+ .oc-scrim.oc-scrim--full,
14130
+ .oc-has-scrim.oc-scrim--full::after {
14131
+ background: color-mix(in oklab, var(--_oc-scrim-c) calc(var(--_oc-scrim-s) * 75%), transparent);
14132
+ }
14133
+
14134
+ /* Text on top of the scrim. Position relative by default; a position utility (absolute) on the same element wins. */
14135
+ :where(.oc-scrim-content) { position: relative; }
14136
+ .oc-scrim-content { z-index: 2; }
14137
+
12361
14138
  /* parts/media-stack-card.css */
12362
14139
  /* File: packages/ui/src/parts/media-stack-card.css | Map: card -> deck (two layers behind via ::before / ::after)
12363
14140
  -> count badge -> panel modifier -> body (title link + meta) -> hover spread -> motion
@@ -12767,11 +14544,17 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12767
14544
  .oc-topbar-nav { min-inline-size: 0; }
12768
14545
  .oc-topbar-actions .oc-btn { white-space: nowrap; }
12769
14546
 
12770
- /* Centred menu: brand left, menu in the middle, actions right (from 761px; smaller screens keep the burger). */
14547
+ /* Centred menu: brand left, menu in the middle, actions right (from 761px; smaller screens keep the burger).
14548
+ Brand and actions share the free room equally (flex: 1 1 0), so the menu sits in the true middle. A --collapsible bar
14549
+ follows its own width (container oc-topbar, docs-ui.css) instead of the screen: in a narrow card or preview it folds
14550
+ into the burger like any other bar, with the button at the end. */
12771
14551
  @media (min-width: 761px) {
12772
- .oc-topbar--center { display: grid; grid-template-columns: 1fr auto 1fr; }
12773
- .oc-topbar--center .oc-topbar-brand { justify-self: start; }
12774
- .oc-topbar--center .oc-topbar-actions { justify-self: end; }
14552
+ .oc-topbar--center:not(.oc-topbar--collapsible) > :is(.oc-topbar-brand, .oc-topbar-actions) { flex: 1 1 0; }
14553
+ .oc-topbar--center:not(.oc-topbar--collapsible) > .oc-topbar-actions { justify-content: flex-end; }
14554
+ }
14555
+ @container oc-topbar (min-width: 47.5625rem) {
14556
+ .oc-topbar--center > :is(.oc-topbar-brand, .oc-topbar-actions) { flex: 1 1 0; }
14557
+ .oc-topbar--center > .oc-topbar-actions { justify-content: flex-end; }
12775
14558
  }
12776
14559
 
12777
14560
  /* Plain links: no pill frames, the current page underlined. */
@@ -12839,6 +14622,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12839
14622
  .oc-footerbar-links a { color: var(--oc-muted-foreground); text-decoration: none; }
12840
14623
  .oc-footerbar-links a:hover { color: var(--oc-foreground); }
12841
14624
  .oc-footerbar.oc-footerbar--dark { color: oklch(from var(--color-white-50) l c h / 0.7); background: var(--oc-dark-band, var(--color-duskblue-95)); border-block-start-color: transparent; }
14625
+ /* On a dark page the dark band is about as dark as the page: a light hairline on top marks where the footer starts. */
14626
+ .oc-footerbar.oc-footerbar--dark { border-block-start-color: light-dark(transparent, oklch(from var(--color-white-50) l c h / 0.16)); }
12842
14627
  .oc-footerbar--dark :is(a, .oc-footerbar-links a) { color: oklch(from var(--color-white-50) l c h / 0.85); }
12843
14628
  .oc-footerbar--dark .oc-footerbar-links a:hover { color: var(--color-white-50); }
12844
14629
 
@@ -13361,23 +15146,58 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
13361
15146
  .oc-site-header__brand { white-space: nowrap; flex: none; }
13362
15147
  .oc-site-header__nav > :is(a, button):not(.oc-btn) { white-space: nowrap; }
13363
15148
 
15149
+ /* Folded menu with an actions slot: the actions sit right, next to the menu button (button last), instead of the button
15150
+ in the middle and the actions pushed out of a pill. On a phone the bar gets tighter and the brand drops its tile,
15151
+ so a call to action such as "Get started" stays visible. */
15152
+ @media (max-width: 860px) {
15153
+ .oc-site-header:where(:not(.oc-site-header--container)) .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__actions { margin-inline-start: auto; }
15154
+ .oc-site-header:where(:not(.oc-site-header--container)) .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__toggle { order: 2; }
15155
+ }
15156
+ @container oc-site-header (max-width: 53.75rem) {
15157
+ .oc-site-header--container .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__actions { margin-inline-start: auto; }
15158
+ .oc-site-header--container .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__toggle { order: 2; }
15159
+ }
15160
+ @media (max-width: 28rem) {
15161
+ .oc-site-header:where(:not(.oc-site-header--container)) .oc-site-header__inner:has(> .oc-site-header__actions) { gap: 0.3rem; }
15162
+ .oc-site-header:where(:not(.oc-site-header--container)) .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__brand { gap: 0.45rem; font-size: 1.05rem; }
15163
+ .oc-site-header:where(:not(.oc-site-header--container)) .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__brand > .oc-icon-tile { display: none; }
15164
+ .oc-site-header:where(:not(.oc-site-header--container)) .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__toggle { padding: 0.4rem 0.55rem; }
15165
+ .oc-site-header--glass:not(.oc-site-header--container) .oc-site-header__inner { padding-inline: 0.9rem 0.45rem; }
15166
+ }
15167
+ @container oc-site-header (max-width: 26rem) {
15168
+ .oc-site-header--container .oc-site-header__inner:has(> .oc-site-header__actions) { gap: 0.3rem; }
15169
+ .oc-site-header--container .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__brand { gap: 0.45rem; font-size: 1.05rem; }
15170
+ .oc-site-header--container .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__brand > .oc-icon-tile { display: none; }
15171
+ .oc-site-header--container .oc-site-header__inner:has(> .oc-site-header__actions) > .oc-site-header__toggle { padding: 0.4rem 0.55rem; }
15172
+ .oc-site-header--glass.oc-site-header--container .oc-site-header__inner { padding-inline: 0.9rem 0.45rem; }
15173
+ }
15174
+
13364
15175
  /* Centred menu: brand left, menu in the middle, actions right. */
13365
15176
  @media (min-width: 861px) {
13366
- .oc-site-header--center .oc-site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
13367
- .oc-site-header--center .oc-site-header__brand { justify-self: start; }
13368
- .oc-site-header--center .oc-site-header__actions { justify-self: end; }
15177
+ .oc-site-header--center:where(:not(.oc-site-header--container)) .oc-site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
15178
+ .oc-site-header--center:where(:not(.oc-site-header--container)) .oc-site-header__brand { justify-self: start; }
15179
+ .oc-site-header--center:where(:not(.oc-site-header--container)) .oc-site-header__actions { justify-self: end; }
15180
+ }
15181
+ /* With .oc-site-header--container: at the width of the header itself (container query in showcase.css). */
15182
+ @container oc-site-header (min-width: 53.8125rem) {
15183
+ .oc-site-header--center.oc-site-header--container .oc-site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
15184
+ .oc-site-header--center.oc-site-header--container .oc-site-header__brand { justify-self: start; }
15185
+ .oc-site-header--center.oc-site-header--container .oc-site-header__actions { justify-self: end; }
13369
15186
  }
13370
15187
 
13371
- /* Dark: a solid dark bar with light text. */
15188
+ /* Dark: a solid dark bar with light text. The faint edge keeps the bar visible on a dark page. */
13372
15189
  .oc-site-header--dark {
13373
15190
  --oc-header-glass: 0;
13374
15191
  animation: none;
13375
15192
  backdrop-filter: none;
13376
15193
  color: var(--color-white-50);
13377
15194
  background: var(--oc-dark-band, var(--color-duskblue-95));
15195
+ border: 1px solid oklch(from var(--color-white-50) l c h / 0.12);
13378
15196
  }
13379
15197
  .oc-site-header--dark :is(.oc-site-header__brand, .oc-site-header__nav a[aria-current="page"], .oc-site-header__nav a:not(.oc-btn):hover) { color: var(--color-white-50); }
13380
15198
  .oc-site-header--dark .oc-site-header__nav a:not(.oc-btn) { color: oklch(from var(--color-white-50) l c h / 0.72); }
15199
+ /* The menu button is light on the dark bar (also in the light theme). */
15200
+ .oc-site-header--dark .oc-site-header__toggle { color: var(--color-white-50); background: oklch(from var(--color-white-50) l c h / 0.08); border-color: oklch(from var(--color-white-50) l c h / 0.24); }
13381
15201
 
13382
15202
  /* Floating: the bar as a rounded card with room around it. */
13383
15203
  /* No backdrop-filter on the bar itself: it would cut the backdrop of the glass inside it. */
@@ -13427,6 +15247,97 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
13427
15247
  .oc-site-footer__signup { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.25rem; max-inline-size: 24rem; }
13428
15248
  .oc-site-footer__signup .oc-input { flex: 1 1 12rem; min-inline-size: 0; }
13429
15249
  .oc-site-footer--dark .oc-site-footer__signup .oc-input { color: var(--color-white-50); background: oklch(from var(--color-white-50) l c h / 0.08); border-color: oklch(from var(--color-white-50) l c h / 0.2); }
15250
+ .oc-site-footer--dark .oc-site-footer__signup .oc-input::placeholder { color: oklch(from var(--color-white-50) l c h / 0.62); opacity: 1; }
15251
+
15252
+ /* parts/site-hero-media.css */
15253
+ /* File: packages/ui/src/parts/site-hero-media.css */
15254
+ /* Map: hero with background media -> media layer (video / img, object-fit cover) -> scrim (start / end / full, phone =
15255
+ full) -> content in the container (start / center / end) -> reduced motion */
15256
+ /* A hero over the full width with a video or a photo behind the text. The media fills the section (object-fit: cover)
15257
+ and the text sits in the page container on top of it. The section is dark (color-scheme: dark), so the text, the
15258
+ lead and the buttons take their dark-mode colors. A scrim keeps the text readable (WCAG AA): --scrim-start darkens
15259
+ the side where the text starts, --scrim-end the other side, --scrim the whole picture. Below 48rem the text covers
15260
+ the full width, so a start/end scrim becomes a full one. Tune: --oc-hero-media-scrim (the dark color),
15261
+ --oc-hero-media-min (height), --oc-hero-media-bg (color while the media loads), --oc-hero-media-measure (text width).
15262
+ Reduced motion: put the video source in <source media="(prefers-reduced-motion: no-preference)">; no source matches
15263
+ then and only the poster shows. The components do this for you. */
15264
+
15265
+ .oc-hero-media {
15266
+ /* Same strength and fade tokens as the scrim component (media-scrim.css): --oc-scrim-strength and --oc-scrim-size tune
15267
+ this scrim too. The color stays dark (the text on it is light): --oc-hero-media-scrim-color. */
15268
+ --oc-hero-media-scrim: color-mix(in oklab, var(--oc-hero-media-scrim-color, oklch(14% 0.01 260deg)) calc(var(--oc-scrim-strength, 0.82) * 100%), transparent);
15269
+ --oc-hero-media-scrim-soft: color-mix(in oklab, var(--oc-hero-media-scrim-color, oklch(14% 0.01 260deg)) calc(var(--oc-scrim-strength, 0.82) * 62%), transparent);
15270
+ /* Where the text column starts and how wide it is, measured on the gradient line (100% = the width of the hero).
15271
+ The start / end scrim stays solid under the text and only then fades out, also when the hero is narrow. */
15272
+ --_oc-hero-media-x: max(var(--oc-container-gutter, 1.25rem), (100% - var(--oc-container, 1200px)) / 2);
15273
+ --_oc-hero-media-w: min(var(--oc-hero-media-measure, 40rem), 100% - 2 * var(--oc-container-gutter, 1.25rem));
15274
+ position: relative;
15275
+ isolation: isolate;
15276
+ overflow: hidden;
15277
+ display: grid;
15278
+ align-items: center;
15279
+ min-block-size: var(--oc-hero-media-min, clamp(26rem, 72vh, 46rem));
15280
+ color-scheme: dark;
15281
+ background: var(--oc-hero-media-bg, oklch(22% 0.02 260deg));
15282
+ /* Secondary text (the lead) sits on a photo, not on a dark surface: the dark-mode muted tone (a soft lavender) drops
15283
+ under AA on a warm, mid-dark picture. A near-white grey keeps it at AA or better over the scrim. */
15284
+ --oc-muted-foreground: var(--oc-hero-media-muted, oklch(90% 0.01 260deg));
15285
+ color: var(--oc-foreground);
15286
+ }
15287
+ .oc-hero-media__media {
15288
+ position: absolute;
15289
+ inset: 0;
15290
+ z-index: 0;
15291
+ display: block;
15292
+ inline-size: 100%;
15293
+ block-size: 100%;
15294
+ object-fit: cover;
15295
+ object-position: var(--oc-hero-media-position, center);
15296
+ border: 0;
15297
+ }
15298
+ .oc-hero-media::before {
15299
+ content: "";
15300
+ position: absolute;
15301
+ inset: 0;
15302
+ z-index: 1;
15303
+ pointer-events: none;
15304
+ }
15305
+ .oc-hero-media--scrim::before { background: var(--oc-hero-media-scrim-full, color-mix(in oklab, var(--oc-hero-media-scrim-color, oklch(14% 0.01 260deg)) calc(var(--oc-scrim-strength, 0.82) * 78%), transparent)); }
15306
+ .oc-hero-media--scrim-start::before {
15307
+ background: linear-gradient(to right, var(--oc-hero-media-scrim) 0%, var(--oc-hero-media-scrim) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) * 0.85), var(--oc-hero-media-scrim-soft) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + 4rem), transparent calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + var(--oc-scrim-size, 14rem)));
15308
+ }
15309
+ .oc-hero-media--scrim-end::before {
15310
+ background: linear-gradient(to left, var(--oc-hero-media-scrim) 0%, var(--oc-hero-media-scrim) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) * 0.85), var(--oc-hero-media-scrim-soft) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + 4rem), transparent calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + var(--oc-scrim-size, 14rem)));
15311
+ }
15312
+ .oc-hero-media--scrim-start:dir(rtl)::before {
15313
+ background: linear-gradient(to left, var(--oc-hero-media-scrim) 0%, var(--oc-hero-media-scrim) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) * 0.85), var(--oc-hero-media-scrim-soft) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + 4rem), transparent calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + var(--oc-scrim-size, 14rem)));
15314
+ }
15315
+ .oc-hero-media--scrim-end:dir(rtl)::before {
15316
+ background: linear-gradient(to right, var(--oc-hero-media-scrim) 0%, var(--oc-hero-media-scrim) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) * 0.85), var(--oc-hero-media-scrim-soft) calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + 4rem), transparent calc(var(--_oc-hero-media-x) + var(--_oc-hero-media-w) + var(--oc-scrim-size, 14rem)));
15317
+ }
15318
+ .oc-hero-media__content {
15319
+ position: relative;
15320
+ z-index: 2;
15321
+ display: grid;
15322
+ justify-items: start;
15323
+ align-content: center;
15324
+ inline-size: min(100% - 2 * var(--oc-container-gutter, 1.25rem), var(--oc-container, 1200px));
15325
+ margin-inline: auto;
15326
+ padding-block: var(--oc-hero-media-pad, clamp(4rem, 10vw, 7rem));
15327
+ }
15328
+ .oc-hero-media__content > * { max-inline-size: var(--oc-hero-media-measure, 40rem); }
15329
+ .oc-hero-media--center .oc-hero-media__content { justify-items: center; text-align: center; }
15330
+ .oc-hero-media--center .oc-actions { justify-content: center; }
15331
+ .oc-hero-media--end .oc-hero-media__content { justify-items: end; }
15332
+
15333
+ /* Phone: the text spans the width, so the whole picture gets the scrim. */
15334
+ @media (max-width: 48rem) {
15335
+ .oc-hero-media:is(.oc-hero-media--scrim-start, .oc-hero-media--scrim-end)::before {
15336
+ background: var(--oc-hero-media-scrim-full, color-mix(in oklab, var(--oc-hero-media-scrim-color, oklch(14% 0.01 260deg)) calc(var(--oc-scrim-strength, 0.82) * 78%), transparent));
15337
+ }
15338
+ .oc-hero-media--end .oc-hero-media__content { justify-items: start; }
15339
+ }
15340
+
13430
15341
 
13431
15342
  /* parts/site-layout.css */
13432
15343
  /* File: packages/ui/src/parts/site-layout.css */
@@ -14044,7 +15955,9 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14044
15955
  .oc-price-card:has(.oc-price-card__toggle input:is([value="yearly"], [value="lifetime"]):checked) .oc-price-card__price--monthly,
14045
15956
  .oc-price-card:has(.oc-price-card__toggle input[value="lifetime"]:checked) .oc-price-card__price--yearly { display: none; }
14046
15957
 
14047
- .oc-price-card__amount { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
15958
+ /* The amount always in the foreground color: it is the main fact of the card (a muted paragraph color around it, from
15959
+ a docs or prose style, would make it the weakest text on the card). */
15960
+ .oc-price-card__amount { color: var(--oc-foreground); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
14048
15961
  .oc-price-card__period { color: var(--oc-muted-foreground); font-size: 0.9rem; }
14049
15962
  /* Old price, struck through. */
14050
15963
  .oc-price-card__was { color: var(--oc-muted-foreground); font-size: 0.95rem; }
@@ -14430,6 +16343,19 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14430
16343
  /* Ruled: a line under every h2, so the articles of a long document stand apart (with --legal or any prose). */
14431
16344
  .oc-prose--ruled :where(h2) { padding-block-end: 0.6rem; border-block-end: 1px solid var(--oc-border); }
14432
16345
 
16346
+ /* parts/site-split-reverse.css */
16347
+ /* File: packages/ui/src/parts/site-split-reverse.css */
16348
+ /* Map: split reverse -> columns swapped (rtl grid, ltr content) -> right-to-left pages */
16349
+ /* .oc-split--reverse swaps the columns of a split (the media on the other side) without changing the order in the
16350
+ HTML, so screen readers and keyboard users still meet the text first. The column ratio of --lead / --media follows
16351
+ its content. On one column (a phone) nothing changes. */
16352
+
16353
+ .oc-split--reverse { direction: rtl; }
16354
+ .oc-split--reverse > * { direction: ltr; }
16355
+ /* On a right-to-left page the reverse is the left-to-right grid. */
16356
+ .oc-split--reverse:dir(rtl) { direction: ltr; }
16357
+ .oc-split--reverse:dir(rtl) > * { direction: rtl; }
16358
+
14433
16359
  /* parts/site-stack-list.css */
14434
16360
  /* File: packages/ui/src/parts/site-stack-list.css
14435
16361
  Map: list -> pill item -> optional icon -> neutral / small modifiers
@@ -14654,12 +16580,13 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14654
16580
  100% { translate: 0 0; opacity: 1; }
14655
16581
  }
14656
16582
 
14657
- /* Corner art: a large outline webicon (mdi-light or material-symbols ...-outline), half outside the bottom corner.
16583
+ /* Corner art: a large outline webicon (mdi-light or material-symbols ...-outline) in the bottom corner, only its edge
16584
+ tucked under the card border (most of the shape stays readable).
14658
16585
  It drifts slowly (transform); hover tilts and grows it (rotate, scale), so the two never fight. */
14659
16586
  .oc-tint-card__art {
14660
16587
  position: absolute;
14661
- inset-block-end: -1rem;
14662
- inset-inline-end: -0.75rem;
16588
+ inset-block-end: -0.35rem;
16589
+ inset-inline-end: -0.25rem;
14663
16590
  z-index: -1;
14664
16591
  display: block;
14665
16592
  color: var(--oc-tint);
@@ -14713,7 +16640,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14713
16640
 
14714
16641
  /* On a phone the cards are low and wide: the icon stays small there and only grows from 40rem (in a card of 16rem+). */
14715
16642
  @media (min-width: 40rem) {
14716
- .oc-tint-card__art { inset-block-end: -1.5rem; inset-inline-end: -1.5rem; font-size: 7rem; }
16643
+ .oc-tint-card__art { inset-block-end: -0.75rem; inset-inline-end: -0.75rem; font-size: 7rem; }
14717
16644
  @container (min-width: 16rem) {
14718
16645
  .oc-tint-card__art { font-size: 9rem; }
14719
16646
  }
@@ -14769,7 +16696,9 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14769
16696
  .oc-hover-grow grows a little in place (--oc-hover-scale, 1.02)
14770
16697
  .oc-hover-glow stays in place, with a glow in the accent color
14771
16698
  .oc-hover-none no movement (also turns off the default lift of a product or price card)
14772
- They share one smooth curve: --oc-hover-duration (0.45s) and --oc-hover-ease. This file loads after the cards, so the class wins. */
16699
+ They share one smooth curve: --oc-hover-duration (0.45s), --oc-hover-ease and --oc-hover-delay (0s). A product card
16700
+ starts its lift a moment later and more gently (0.3s ease after 0.08s), so it never jumps up the instant the mouse
16701
+ passes. This file loads after the cards, so the class wins. */
14773
16702
 
14774
16703
  :is(.oc-hover-lift, .oc-hover-grow, .oc-hover-glow, .oc-product-card) {
14775
16704
  transition:
@@ -14778,9 +16707,10 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14778
16707
  box-shadow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
14779
16708
  /* The colors follow the same curve as the lift, so the glow and the border do not lag behind the movement. */
14780
16709
  border-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
14781
- background-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
14782
- --oc-glow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1));
16710
+ background-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1));
16711
+ transition-delay: var(--oc-hover-delay, 0s);
14783
16712
  }
16713
+ :where(.oc-product-card) { --oc-hover-duration: 0.3s; --oc-hover-ease: ease; --oc-hover-delay: 0.08s; }
14784
16714
  .oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
14785
16715
  .oc-hover-lift:hover {
14786
16716
  translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
@@ -14910,6 +16840,9 @@ pre.code-preview {
14910
16840
  /* Code inhoud: spaties en newlines behouden, regels onder elkaar, monospace voor uitlijning */
14911
16841
  pre.code-preview code {
14912
16842
  display: block;
16843
+ /* As wide as the longest line (at least the block): a long line scrolls inside the window and keeps the end padding. */
16844
+ inline-size: max-content;
16845
+ min-inline-size: 100%;
14913
16846
  white-space: pre;
14914
16847
  font-family: inherit;
14915
16848
  font-size: inherit;