@birdycom/omniaui 0.16.1 → 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 (85) hide show
  1. package/bin/lib/copy-js.mjs +8 -0
  2. package/bin/lib/webicons-builtin.json +1 -0
  3. package/bin/lib/webicons.mjs +4 -0
  4. package/dist/back-link.d.ts +6 -0
  5. package/dist/back-link.js +54 -0
  6. package/dist/barcode.d.ts +5 -1
  7. package/dist/barcode.js +29 -8
  8. package/dist/calendar.d.ts +17 -0
  9. package/dist/calendar.js +190 -0
  10. package/dist/code-block.css +3 -0
  11. package/dist/combobox.d.ts +27 -4
  12. package/dist/combobox.js +231 -33
  13. package/dist/components-extra.css +33 -2
  14. package/dist/components.css +2112 -166
  15. package/dist/components.min.css +1 -1
  16. package/dist/countdown.d.ts +11 -0
  17. package/dist/countdown.js +76 -0
  18. package/dist/data-table.d.ts +28 -0
  19. package/dist/data-table.js +186 -18
  20. package/dist/docs-ui.css +11 -1
  21. package/dist/glass-lens.d.ts +41 -0
  22. package/dist/glass-lens.js +307 -0
  23. package/dist/input-mask.d.ts +31 -0
  24. package/dist/input-mask.js +228 -0
  25. package/dist/nav-overflow.d.ts +11 -0
  26. package/dist/nav-overflow.js +151 -0
  27. package/dist/oc-theme.css +1 -1
  28. package/dist/parts/app-0160-apps.css +6 -0
  29. package/dist/parts/app-compound-overlays.css +68 -0
  30. package/dist/parts/app-countdown.css +66 -0
  31. package/dist/parts/app-data-table-footer.css +6 -3
  32. package/dist/parts/app-data-table-server.css +47 -0
  33. package/dist/parts/app-data-table.css +27 -1
  34. package/dist/parts/app-header-settings.css +9 -0
  35. package/dist/parts/app-mode-badge.css +12 -0
  36. package/dist/parts/app-module-color.css +152 -0
  37. package/dist/parts/app-name-card.css +5 -0
  38. package/dist/parts/app-page-header.css +1 -1
  39. package/dist/parts/app-recovery-codes-extras.css +13 -0
  40. package/dist/parts/app-sidebar-meta.css +14 -3
  41. package/dist/parts/app-sidebar-provider.css +98 -0
  42. package/dist/parts/app-table-actions.css +16 -0
  43. package/dist/parts/app-top-progress.css +3 -0
  44. package/dist/parts/app-tree.css +6 -0
  45. package/dist/parts/app-type-picker.css +272 -0
  46. package/dist/parts/data-dl-numbered.css +17 -0
  47. package/dist/parts/data-graph.css +12 -4
  48. package/dist/parts/forms-combobox-catalog.css +142 -0
  49. package/dist/parts/forms-combobox-icons.css +40 -2
  50. package/dist/parts/forms-copy-field-extras.css +47 -0
  51. package/dist/parts/forms-field-extras.css +55 -0
  52. package/dist/parts/forms-form-section.css +39 -1
  53. package/dist/parts/forms-ledger.css +98 -0
  54. package/dist/parts/media-aspect-flush.css +6 -0
  55. package/dist/parts/media-barcode.css +25 -4
  56. package/dist/parts/media-doc-viewer.css +2 -0
  57. package/dist/parts/media-entity-card.css +5 -0
  58. package/dist/parts/media-glass-liquid.css +10 -5
  59. package/dist/parts/media-glass-options.css +37 -5
  60. package/dist/parts/media-glass.css +85 -35
  61. package/dist/parts/media-scrim.css +51 -0
  62. package/dist/parts/nav-topbar-variants.css +12 -4
  63. package/dist/parts/site-header-variants.css +40 -4
  64. package/dist/parts/site-hero-media.css +88 -0
  65. package/dist/parts/site-price-card.css +3 -1
  66. package/dist/parts/site-split-reverse.css +11 -0
  67. package/dist/parts/site-tint-card.css +5 -4
  68. package/dist/parts/utility-hover.css +6 -3
  69. package/dist/showcase.css +73 -31
  70. package/dist/sidebar.d.ts +22 -0
  71. package/dist/sidebar.js +161 -0
  72. package/dist/tabs.d.ts +9 -0
  73. package/dist/tabs.js +104 -0
  74. package/dist/theme.js +20 -4
  75. package/manifest.json +24 -0
  76. package/package.json +10 -2
  77. package/snippets/accordion-accent.html +1 -1
  78. package/snippets/copy-field.html +44 -6
  79. package/snippets/countdown.html +12 -0
  80. package/snippets/dropdown-menu.html +2 -0
  81. package/snippets/glass.html +3 -3
  82. package/snippets/hero-media.html +20 -0
  83. package/snippets/page-header.html +1 -1
  84. package/snippets/recovery-codes.html +55 -6
  85. 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.1. 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;
@@ -1568,15 +1622,25 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1568
1622
  /* Rich content only: no empty ::after bubble. */
1569
1623
  .oc-tooltip:not([data-tooltip])::after { content: none; }
1570
1624
 
1571
- /* Also on keyboard focus of the element inside (Tab), not only on mouse hover. */
1625
+ /* Also on keyboard focus of the element inside (Tab), not only on mouse hover. :focus-visible, not :focus-within:
1626
+ after a mouse click the button keeps focus, and the tooltip must not stay on once the pointer has left. */
1572
1627
  .oc-tooltip:hover::after,
1573
- .oc-tooltip:focus-within::after,
1628
+ .oc-tooltip:focus-visible::after,
1629
+ .oc-tooltip:has(:focus-visible)::after,
1574
1630
  .oc-tooltip:hover > .oc-tooltip__content,
1575
- .oc-tooltip:focus-within > .oc-tooltip__content {
1631
+ .oc-tooltip:focus-visible > .oc-tooltip__content,
1632
+ .oc-tooltip:has(:focus-visible) > .oc-tooltip__content {
1576
1633
  opacity: 1;
1577
1634
  scale: 1;
1578
1635
  }
1579
1636
 
1637
+ /* A menu, popover or dialog opened from inside the tooltip goes first: the bubble would cover it. */
1638
+ .oc-tooltip:has(:popover-open, [aria-expanded="true"], details[open], dialog[open])::after,
1639
+ .oc-tooltip:has(:popover-open, [aria-expanded="true"], details[open], dialog[open]) > .oc-tooltip__content {
1640
+ opacity: 0;
1641
+ scale: 0.96;
1642
+ }
1643
+
1580
1644
  @media (prefers-reduced-motion: reduce) {
1581
1645
  .oc-tooltip::after,
1582
1646
  .oc-tooltip > .oc-tooltip__content { transition: opacity var(--oc-transition-fast); scale: 1; }
@@ -1979,6 +2043,8 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1979
2043
  font-weight: 600;
1980
2044
  color: var(--oc-foreground);
1981
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; }
1982
2048
  .oc-table-wrap {
1983
2049
  /* position: containing block for visually hidden labels in cells, else they escape the scroll clip and widen the page */
1984
2050
  position: relative;
@@ -1994,6 +2060,21 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
1994
2060
  .oc-table-wrap > .oc-table > :first-child > tr:first-child > * { border-block-start: 0; }
1995
2061
  .oc-table-wrap > .oc-table > :last-child > tr:last-child > * { border-block-end: 0; }
1996
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
+
1997
2078
  /* ===================================================================
1998
2079
  Shared docs utility table styles (dark theme)
1999
2080
  Ensures ref-tables are always dark-themed in docs pages.
@@ -2026,8 +2107,10 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2026
2107
  .oc-expandable-table {
2027
2108
  margin-bottom: 2rem;
2028
2109
  }
2029
- .oc-expandable-table__row-dimmed {
2030
- 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);
2031
2114
  }
2032
2115
  .oc-expandable-table .oc-expandable-table__row-more {
2033
2116
  display: none;
@@ -2036,9 +2119,6 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2036
2119
  .oc-expandable-table:has(.oc-expandable-table__toggle:checked) .oc-expandable-table__row-more {
2037
2120
  display: table-row;
2038
2121
  }
2039
- .oc-expandable-table:has(.oc-expandable-table__toggle:checked) .oc-expandable-table__row-dimmed {
2040
- opacity: 1;
2041
- }
2042
2122
  /* The label is the containing block, so the hidden checkbox stays inside it and cannot stretch the page */
2043
2123
  .oc-expandable-table__trigger:has(.oc-expandable-table__toggle) {
2044
2124
  position: relative;
@@ -2064,13 +2144,6 @@ input.oc-radio:disabled { opacity: 0.5; cursor: not-allowed; }
2064
2144
  .oc-expandable-table.is-expanded .oc-expandable-table__row-more {
2065
2145
  display: table-row;
2066
2146
  }
2067
- .oc-expandable-table.is-expanded .oc-expandable-table__row-dimmed {
2068
- opacity: 1;
2069
- }
2070
- /* Nothing hidden below it: the row is simply the last one, so it is not dimmed */
2071
- .oc-expandable-table:not(:has(.oc-expandable-table__row-more)) .oc-expandable-table__row-dimmed {
2072
- opacity: 1;
2073
- }
2074
2147
  /* Hide trigger when there are no hidden rows */
2075
2148
  .oc-expandable-table:not(:has(.oc-expandable-table__row-more)) .oc-expandable-table__wrap {
2076
2149
  display: none;
@@ -2376,29 +2449,34 @@ button.oc-pagination-item:focus-visible {
2376
2449
  Usage: add class .oc-scrollbar to any overflow:auto element.
2377
2450
  =================================================================== */
2378
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
+
2379
2457
  /* Webkit (Chrome, Edge, Safari) */
2380
- .oc-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
2381
- .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; }
2382
2460
  .oc-scrollbar::-webkit-scrollbar-thumb {
2383
- 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)));
2384
2462
  border-radius: 4px;
2385
2463
  border: 2px solid transparent;
2386
2464
  background-clip: content-box;
2387
2465
  }
2388
2466
  .oc-scrollbar::-webkit-scrollbar-thumb:hover {
2389
- 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)));
2390
2468
  background-clip: content-box;
2391
2469
  }
2392
2470
 
2393
2471
  /* Thin variant */
2394
- .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); }
2395
2473
 
2396
2474
  /* Hidden — hides scrollbar but keeps scroll */
2397
2475
  .oc-scrollbar--hidden::-webkit-scrollbar { display: none; }
2398
2476
  .oc-scrollbar--hidden { -ms-overflow-style: none; scrollbar-width: none; }
2399
2477
 
2400
2478
  /* Firefox */
2401
- .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); }
2402
2480
  .oc-scrollbar--thin { scrollbar-width: thin; }
2403
2481
 
2404
2482
  /* ===================================================================
@@ -2579,7 +2657,8 @@ details.oc-accordion-item[open]::details-content {
2579
2657
  }
2580
2658
  .oc-tabset > .oc-tab-list--vertical { grid-row: 1 / span 6; }
2581
2659
  .oc-tabset .oc-tab-list--vertical .oc-tab-trigger { justify-content: flex-start; }
2582
- .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; }
2583
2662
  .oc-tabset .oc-tab-list--vertical .oc-tab-trigger:has(input:checked) {
2584
2663
  border-bottom-color: transparent;
2585
2664
  border-right-color: var(--oc-foreground);
@@ -2779,6 +2858,27 @@ details.oc-accordion-item[open]::details-content {
2779
2858
  .oc-empty-title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--oc-foreground); }
2780
2859
  .oc-empty-text { margin: 0; max-inline-size: 28rem; font-size: 0.875rem; }
2781
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
+ }
2782
2882
 
2783
2883
  /* ---- Badge: info ---- */
2784
2884
  .oc-badge--info {
@@ -2918,6 +3018,14 @@ details.oc-sidebar-collapsible[open] > summary::after { transform: rotate(225deg
2918
3018
 
2919
3019
  /* Icon-only mode */
2920
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
+ }
2921
3029
  .oc-sidebar--collapsed .oc-sidebar-menu-label,
2922
3030
  .oc-sidebar--collapsed .oc-sidebar-menu-badge,
2923
3031
  .oc-sidebar--collapsed .oc-sidebar-menu-sub,
@@ -2925,6 +3033,11 @@ details.oc-sidebar-collapsible[open] > summary::after { transform: rotate(225deg
2925
3033
  .oc-sidebar--collapsed .oc-user-text,
2926
3034
  .oc-sidebar--collapsed details.oc-sidebar-collapsible > summary::after { display: none; }
2927
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; }
2928
3041
  .oc-sidebar--collapsed .oc-sidebar-header,
2929
3042
  .oc-sidebar--collapsed .oc-sidebar-footer { align-items: center; padding-inline: 0.5rem; }
2930
3043
 
@@ -3309,6 +3422,8 @@ dialog.oc-sheet--bottom .oc-sheet-content { border-block-start: 1px solid var(--
3309
3422
  display: flex;
3310
3423
  flex-direction: column;
3311
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%;
3312
3427
  margin: 0;
3313
3428
  padding: 0;
3314
3429
  list-style: none;
@@ -3451,6 +3566,28 @@ details.oc-collapsible[open] > summary { border-end-start-radius: 0; border-end-
3451
3566
  .oc-collapsible-content { padding: 1.5rem; border-block-start: 1px solid var(--oc-border); }
3452
3567
  .oc-collapsible--dense > summary { padding: 0.75rem; }
3453
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); }
3454
3591
  details.oc-collapsible::details-content {
3455
3592
  block-size: 0;
3456
3593
  overflow: clip;
@@ -3580,19 +3717,36 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3580
3717
 
3581
3718
  /* ===================================================================
3582
3719
  OTP — one-time code: ONE real <input> drawn as separate cells (paste, autofill and password managers work).
3583
- 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.
3584
3729
  =================================================================== */
3585
3730
  .oc-otp {
3586
3731
  --oc-otp-length: 6;
3587
3732
  --oc-otp-cell: 2.75ch;
3733
+ --oc-otp-shift: calc((var(--oc-otp-cell) - 1ch) / 2);
3734
+ box-sizing: border-box;
3588
3735
  inline-size: calc(var(--oc-otp-length) * var(--oc-otp-cell));
3589
3736
  max-inline-size: 100%;
3590
- 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;
3591
3740
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
3592
- font-size: 1.5rem;
3741
+ font-size: var(--oc-otp-size, 1.5rem);
3742
+ line-height: 1.2;
3593
3743
  letter-spacing: calc(var(--oc-otp-cell) - 1ch);
3594
3744
  text-align: start;
3745
+ text-indent: 0;
3595
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);
3596
3750
  background-color: var(--oc-background);
3597
3751
  background-image: repeating-linear-gradient(
3598
3752
  90deg in srgb,
@@ -3609,6 +3763,43 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3609
3763
  .oc-otp:focus { box-shadow: 0 0 0 2px oklch(from var(--oc-ring) l c h / 0.35); }
3610
3764
  .oc-otp[aria-invalid="true"] { border-block-color: var(--oc-destructive); }
3611
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
+ }
3612
3803
 
3613
3804
  /* ===================================================================
3614
3805
  REVEAL — password field with a show/hide button. A script flips input.type (see snippet).
@@ -3679,6 +3870,35 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3679
3870
  /* Keyboard focus on the value (to select it by hand): ring around the whole field. */
3680
3871
  .oc-copy-field:has(.oc-copy-field-value:focus-visible) { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
3681
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
+
3682
3902
  /* ===================================================================
3683
3903
  COLOR FIELD — native <input type="color"> next to a text value
3684
3904
  =================================================================== */
@@ -3694,6 +3914,35 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
3694
3914
  }
3695
3915
  .oc-color-field > input[type="color"]:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
3696
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); }
3697
3946
 
3698
3947
  /* ===================================================================
3699
3948
  DROPZONE — file upload target. A <label> around a real <input type="file">; click and keyboard work natively.
@@ -4073,7 +4322,10 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4073
4322
  Your own ratio: set --oc-split-cols in a class (and to 1fr in a media query for small screens). */
4074
4323
  .oc-split--lead { --oc-split-cols: 1.25fr 1fr; }
4075
4324
  .oc-split--media { --oc-split-cols: 1fr 1.15fr; }
4076
- .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); }
4077
4329
  /* Columns aligned at the top (a fact list next to a long text). */
4078
4330
  .oc-split--top { align-items: start; }
4079
4331
  /* --oc-split-cols-wide: your own ratio that only applies above 960px, so the split still stacks on a phone. */
@@ -4146,7 +4398,10 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4146
4398
  .oc-browser-frame__bar > i { inline-size: 0.6rem; aspect-ratio: 1; border-radius: 50%; background: var(--oc-border-strong); }
4147
4399
  .oc-browser-frame__bar > i:first-child { background: var(--oc-accent-from); }
4148
4400
  .oc-browser-frame > img,
4149
- .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; }
4150
4405
 
4151
4406
  /* Icon tile: rounded square with an accent gradient (product logo, feature icon) */
4152
4407
  .oc-icon-tile {
@@ -4172,7 +4427,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4172
4427
  .oc-icon-tile--float { animation: oc-float 6s ease-in-out infinite; }
4173
4428
  @keyframes oc-float { 50% { translate: 0 -12px; } }
4174
4429
 
4175
- /* Product / feature card with hover lift and accent glow */
4430
+ /* Product / feature card with a soft hover lift and an accent border (no glow) */
4176
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); }
4177
4432
  /* Wide cards (projects, case studies): from 32rem, three in a row on a wide screen. */
4178
4433
  .oc-card-grid--wide { --oc-card-min: 32rem; --oc-card-gap: 1.5rem; }
@@ -4187,30 +4442,24 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4187
4442
  padding: 1.6rem;
4188
4443
  border: 1px solid var(--oc-border);
4189
4444
  border-radius: var(--oc-radius-lg);
4190
- background:
4191
- radial-gradient(22rem circle at 50% 0%, oklch(from var(--oc-accent-from) l c h / var(--oc-glow, 0)), transparent 60%),
4192
- var(--oc-surface);
4445
+ background: var(--oc-surface);
4193
4446
  color: var(--oc-foreground);
4194
4447
  text-decoration: none;
4195
- transition: translate 0.35s var(--oc-ease-out), border-color 0.35s, --oc-glow 0.35s;
4196
- }
4197
- @property --oc-glow {
4198
- syntax: "<number>";
4199
- inherits: false;
4200
- 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;
4201
4450
  }
4202
4451
  .oc-product-card:hover {
4203
- --oc-glow: 0.22;
4204
4452
  /* The lift uses translate; a fly-in (.oc-reveal--fly) animates the transform, so both keep working. */
4205
4453
  translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
4206
- 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);
4207
4455
  }
4208
4456
  .oc-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-block-end: 0.75rem; }
4209
4457
  .oc-product-card__name { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
4210
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; }
4211
4459
  .oc-product-card__summary { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; flex-grow: 1; }
4212
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; }
4213
- .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; } }
4214
4463
  .oc-product-card:hover .oc-product-card__more::after { translate: 5px 0; }
4215
4464
 
4216
4465
  /* Pill badge (neutral) and accent pill + pulsing status dot */
@@ -4268,11 +4517,13 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4268
4517
  .oc-stat-strip {
4269
4518
  display: grid;
4270
4519
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
4520
+ overflow: hidden;
4271
4521
  border-block: 1px solid var(--oc-border);
4272
4522
  background: var(--oc-surface);
4273
4523
  }
4274
- .oc-stat-strip__item { padding: 2rem 1.5rem; border-inline-start: 1px solid var(--oc-border); }
4275
- .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); }
4276
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; }
4277
4528
  .oc-stat-strip__suffix { color: var(--oc-brand-1); }
4278
4529
  .oc-stat-strip__label { display: block; color: var(--oc-muted-foreground); font-size: 0.92rem; }
@@ -4281,8 +4532,6 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4281
4532
  /* Four figures on a narrower screen: two rows of two instead of three and one. */
4282
4533
  @media (max-width: 960px) {
4283
4534
  .oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
4284
- .oc-stat-strip:has(> .oc-stat-strip__item:nth-child(4):last-child) > .oc-stat-strip__item:nth-child(3) { border-inline-start: 0; }
4285
- .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); }
4286
4535
  }
4287
4536
 
4288
4537
  /* Spotlight: large highlighted panel with copy + module list */
@@ -4315,7 +4564,7 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4315
4564
  .oc-steps > li { position: relative; padding: 1.75rem 1.5rem; border-block-start: 2px solid var(--oc-border-strong); counter-increment: oc-step; }
4316
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); }
4317
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; }
4318
- .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); }
4319
4568
  .oc-steps p { margin: 0; color: var(--oc-muted-foreground); font-size: 0.95rem; }
4320
4569
 
4321
4570
  /* Marquee: endless scrolling row (repeat the items once; pauses on hover) */
@@ -4393,15 +4642,17 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4393
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; }
4394
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). */
4395
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. */
4396
4647
  @media (min-width: 861px) {
4397
4648
  /* Desktop: the popover nav is always visible in the header bar. */
4398
- .oc-site-header__nav[popover] { display: flex; }
4649
+ .oc-site-header__nav[popover]:where(:not(.oc-site-header--container *)) { display: flex; }
4399
4650
  }
4400
4651
  @media (max-width: 860px) {
4401
- .oc-site-header__toggle { display: block; }
4652
+ .oc-site-header__toggle:where(:not(.oc-site-header--container *)) { display: block; }
4402
4653
  /* The author rule display:flex above beats the UA rule that hides a closed popover. */
4403
- .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
4404
- .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 *)) {
4405
4656
  position: fixed;
4406
4657
  inset: 4.5rem 0 auto;
4407
4658
  /* The UA popover style sizes to fit-content; let inset span the full width. */
@@ -4417,16 +4668,16 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4417
4668
  backdrop-filter: blur(16px);
4418
4669
  }
4419
4670
  /* Not the items of a dropdown in the menu (language select): they keep their own size. */
4420
- .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; }
4421
4672
  /* The call to action (.oc-site-header__cta, a button) gets room above it in the open menu. */
4422
- .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; }
4423
4674
  }
4424
4675
  /* --collapse-lg: the menu becomes a popover below 1180px instead of 860px, for a bar with many or long items
4425
4676
  (theme switch, language select, long words). A media query cannot read a variable, so it is a modifier. */
4426
4677
  @media (min-width: 861px) and (max-width: 1180px) {
4427
- .oc-site-header--collapse-lg .oc-site-header__toggle { display: block; }
4428
- .oc-site-header--collapse-lg .oc-site-header__nav[popover]:not(:popover-open) { display: none; }
4429
- .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 {
4430
4681
  position: fixed;
4431
4682
  inset: 4.5rem 0 auto;
4432
4683
  inline-size: auto;
@@ -4440,8 +4691,48 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4440
4691
  background: oklch(from var(--oc-background) l c h / 0.96);
4441
4692
  backdrop-filter: blur(16px);
4442
4693
  }
4443
- .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; }
4444
- .oc-site-header--collapse-lg .oc-site-header__cta { margin-block-start: 0.75rem; }
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 {
4714
+ position: fixed;
4715
+ inset: 4.5rem 0 auto;
4716
+ inline-size: auto;
4717
+ block-size: auto;
4718
+ display: flex;
4719
+ flex-direction: column;
4720
+ align-items: stretch;
4721
+ gap: 0.25rem;
4722
+ padding: 1rem 1.25rem 1.5rem;
4723
+ border-block-end: 1px solid var(--oc-border);
4724
+ background: oklch(from var(--oc-background) l c h / 0.96);
4725
+ backdrop-filter: blur(16px);
4726
+ }
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; }
4445
4736
  }
4446
4737
 
4447
4738
  /* Site footer: brand column + link columns + bottom bar */
@@ -4642,10 +4933,20 @@ details.oc-collapsible[open]::details-content { block-size: auto; }
4642
4933
  .oc-topbar-toggle:focus-visible + .oc-topbar-burger { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
4643
4934
  @media (max-width: 760px) {
4644
4935
  .oc-topbar { padding-block: 8px; }
4645
- .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; }
4646
4938
  .oc-topbar--collapsible .oc-topbar-nav { display: none; order: 3; inline-size: 100%; }
4647
4939
  .oc-topbar--collapsible:has(.oc-topbar-toggle:checked) .oc-topbar-nav { display: block; }
4648
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
+ }
4649
4950
 
4650
4951
  /* ---- Site footer bar: .oc-footerbar ------------------------------------------------------------- */
4651
4952
  .oc-footerbar {
@@ -4996,6 +5297,8 @@ a.oc-item:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px
4996
5297
  .oc-item-title { margin: 0; font-weight: 500; line-height: 1.35; color: var(--oc-foreground); }
4997
5298
  .oc-item-description { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--oc-muted-foreground); text-wrap: balance; }
4998
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; }
4999
5302
  .oc-item-header,
5000
5303
  .oc-item-footer { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
5001
5304
  .oc-item-group { display: flex; flex-direction: column; }
@@ -5604,7 +5907,8 @@ dialog.oc-drawer[open] .oc-drawer-content {
5604
5907
  .oc-calendar-day:hover { background: var(--oc-accent); }
5605
5908
  .oc-calendar-day:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: -2px; }
5606
5909
  .oc-calendar-day--today { background: var(--oc-muted); font-weight: 600; }
5607
- .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); }
5608
5912
  .oc-calendar-day:disabled { opacity: 0.35; pointer-events: none; }
5609
5913
  .oc-calendar-day[aria-selected="true"],
5610
5914
  .oc-calendar-day--range-start,
@@ -5715,6 +6019,33 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
5715
6019
  .oc-radio-item--card { padding: 0.75rem 1rem; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); }
5716
6020
  .oc-radio-item--card:has(:checked) { border-color: var(--oc-primary); background: color-mix(in oklab, var(--oc-primary) 8%, transparent); }
5717
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; }
5718
6049
 
5719
6050
  .oc-scroll-area {
5720
6051
  max-block-size: 14rem;
@@ -5725,7 +6056,8 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
5725
6056
  border: 1px solid var(--oc-border);
5726
6057
  border-radius: var(--oc-radius);
5727
6058
  scrollbar-width: thin;
5728
- 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);
5729
6061
  }
5730
6062
  .oc-scroll-area:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
5731
6063
  .oc-scroll-area--x { max-block-size: none; overflow-y: hidden; white-space: nowrap; }
@@ -5826,6 +6158,12 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
5826
6158
  :is([data-theme="light"], :root:has(.oc-theme-switch input[value="light"]:checked:not(.oc-theme-scope *))) .oc-theme-img--dark { display: none; }
5827
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; }
5828
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; }
5829
6167
 
5830
6168
  /* Card grid that scrolls sideways on a phone instead of stacking every card: one row with scroll snap.
5831
6169
  <div class="oc-card-grid oc-card-grid--scroll">. --oc-card-scroll-width is the width of a card (80%). */
@@ -6086,6 +6424,76 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6086
6424
  .oc-callout__text > :is(p, span):not(:first-child) { color: var(--oc-muted-foreground); }
6087
6425
  .oc-callout__action { flex-shrink: 0; display: flex; gap: 0.5rem; }
6088
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
+
6089
6497
  /* parts/app-confirm-dialog.css */
6090
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 */
6091
6499
  /* Confirm dialog: a variant of the alert dialog (dialog.oc-modal + .oc-alert-dialog).
@@ -6209,15 +6617,86 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6209
6617
  }
6210
6618
  @media (prefers-reduced-motion: reduce) { .oc-cookie-consent { transition: none; } }
6211
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
+
6212
6688
  /* parts/app-data-table-footer.css */
6213
6689
  /* File: packages/ui/src/parts/app-data-table-footer.css | Map: footer grid (count, rows per page, pager) -> page buttons -> narrow screens */
6214
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. */
6215
6691
 
6216
6692
  /* Footer: count on the left, rows-per-page in the middle, pager on the right. */
6217
6693
  .oc-data-table-footer {
6218
- display: grid;
6219
- 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;
6220
6698
  align-items: center;
6699
+ justify-content: space-between;
6221
6700
  gap: 0.75rem;
6222
6701
  }
6223
6702
  .oc-data-table-summary { margin: 0; font-size: 0.8125rem; color: var(--oc-muted-foreground); }
@@ -6245,7 +6724,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6245
6724
  .oc-data-table-ellipsis { padding-inline: 0.25rem; color: var(--oc-muted-foreground); }
6246
6725
 
6247
6726
  @media (max-width: 40rem) {
6248
- .oc-data-table-footer { grid-template-columns: 1fr; }
6727
+ .oc-data-table-footer { flex-direction: column; align-items: flex-start; }
6249
6728
  .oc-data-table-pager { justify-content: flex-start; }
6250
6729
  }
6251
6730
 
@@ -6412,6 +6891,55 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6412
6891
  }
6413
6892
  .oc-data-table--bordered .oc-data-table-filter > .oc-select { padding-inline-start: 2.75rem; }
6414
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
+
6415
6943
  /* parts/app-data-table.css */
6416
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 */
6417
6945
  /* List table for business apps. The frame, toolbar and footer are styling. Tabs, filter row, rich cells and
@@ -6504,9 +7032,23 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6504
7032
  inset-inline-end: 0;
6505
7033
  z-index: 2;
6506
7034
  background: var(--oc-card);
6507
- 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);
6508
7037
  }
6509
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
+ }
6510
7052
  .oc-data-table .oc-table tbody tr:is(:nth-child(even of :not([hidden])), :hover) > td[data-oc-col="actions"] { background: inherit; }
6511
7053
 
6512
7054
  /* Trash and archive rows stay readable but quieter than active rows. */
@@ -6557,6 +7099,18 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6557
7099
  @media (prefers-reduced-motion: reduce) {
6558
7100
  .oc-data-table .oc-table tbody tr { transition: none; }
6559
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
+ }
6560
7114
 
6561
7115
  /* parts/app-greeting.css */
6562
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 */
@@ -6645,6 +7199,17 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6645
7199
  .oc-group__aside[data-tone="error"] { --oc-group-tone: var(--oc-destructive); }
6646
7200
  .oc-group__meta { margin: 0 0 0.625rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
6647
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
+
6648
7213
  /* parts/app-list-toolbar.css */
6649
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 */
6650
7215
  /* List toolbar: search field + result count + cards / table view toggle + actions, above a list.
@@ -6809,6 +7374,18 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6809
7374
  .oc-card--accent[data-active="false"] { border-style: dashed; }
6810
7375
  .oc-card--accent[data-active="false"] .oc-card-band { background: var(--oc-surface); }
6811
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
+
6812
7389
  /* Code plate: a QR code or barcode on its own white plate, always light (scans in any theme and on paper), with an
6813
7390
  optional caption ON the plate, so the label is on a photo or a print too. data-mode / data-tone colors the caption. */
6814
7391
  .oc-code-plate {
@@ -6860,6 +7437,160 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6860
7437
  .oc-mode-badge[data-mode="both"] > * { border: 1px solid CanvasText; }
6861
7438
  }
6862
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
+
6863
7594
  /* parts/app-name-card.css */
6864
7595
  /* File: packages/ui/src/parts/app-name-card.css | Map: card (details) -> head (chevron, name, rename, amount, actions) -> rename input -> body -> nested cards */
6865
7596
  /* Name card: a collapsible card for one part of a quote or plan,
@@ -6932,7 +7663,12 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6932
7663
  .oc-name-card__title { flex: 1 1 0; } /* takes the free space and shrinks first (ellipsis), so nothing else wraps */
6933
7664
  .oc-name-card__body { padding-inline-start: 0.75rem; }
6934
7665
  }
6935
-
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
+
6936
7672
  @media (prefers-reduced-motion: reduce) {
6937
7673
  .oc-name-card__head::before { transition: none; }
6938
7674
  }
@@ -6953,7 +7689,7 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6953
7689
 
6954
7690
  /* Optional back link row (use .oc-back-link inside, or any link). */
6955
7691
  .oc-page-header-back { display: flex; }
6956
- .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). */
6957
7693
 
6958
7694
  /* Main row: text block + actions. Stacks by default. */
6959
7695
  .oc-page-header-main { display: flex; flex-direction: column; gap: 0.75rem; }
@@ -6993,6 +7729,21 @@ input.oc-input[type="month"] { inline-size: auto; min-inline-size: 11rem; }
6993
7729
  .oc-page-header--sm { padding-block: 0.5rem 0.75rem; }
6994
7730
  .oc-page-header--sm .oc-page-header-title { font-size: 1.125rem; }
6995
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
+
6996
7747
  /* parts/app-result.css */
6997
7748
  /* File: packages/ui/src/parts/app-result.css */
6998
7749
  /* Map: result -> icon tile -> title -> text -> actions */
@@ -7224,6 +7975,7 @@ details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem
7224
7975
  /* parts/app-sidebar-meta.css */
7225
7976
  /* File: packages/ui/src/parts/app-sidebar-meta.css
7226
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)
7227
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
7228
7980
  never shortens, the copyright part ends in an ellipsis when the sidebar is narrow. In a collapsed sidebar
7229
7981
  (.oc-sidebar--collapsed) only the version stays, and the whole line shows as a tooltip (data-tooltip) on hover and on
@@ -7250,11 +8002,14 @@ details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem
7250
8002
  .oc-sidebar-meta__copy::before { content: "\00b7"; margin-inline-end: 0.35rem; }
7251
8003
  .oc-sidebar-meta:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 2px; }
7252
8004
  /* Open sidebar: the whole line is visible, so no tooltip. */
7253
- .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; }
7254
8006
 
7255
8007
  /* Collapsed: only the version, centred. */
7256
- .oc-sidebar--collapsed .oc-sidebar-meta { justify-content: center; padding-inline: 0; }
7257
- .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) {
7258
8013
  position: absolute;
7259
8014
  inline-size: 1px;
7260
8015
  block-size: 1px;
@@ -7262,6 +8017,113 @@ details.oc-collapsible--plain .oc-collapsible-content { padding: 0.25rem 0.5rem
7262
8017
  clip-path: inset(50%);
7263
8018
  white-space: nowrap;
7264
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)); }
7265
8127
 
7266
8128
  /* parts/app-sortable-row.css */
7267
8129
  /* File: packages/ui/src/parts/app-sortable-row.css | Map: grip cell -> grip button (dots) -> row states (dragging, drop before / after) -> reduced motion */
@@ -7486,6 +8348,22 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
7486
8348
  .oc-table-actions-icon:disabled,
7487
8349
  .oc-table-actions-icon[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
7488
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
+
7489
8367
  /* Tone modifiers: the hover tint shows what the action does. */
7490
8368
  .oc-table-actions-icon--primary:hover { color: var(--oc-primary); background: oklch(from var(--oc-primary) l c h / 0.1); }
7491
8369
  .oc-table-actions-icon--success:hover { color: var(--oc-success); background: oklch(from var(--oc-success) l c h / 0.1); }
@@ -7709,6 +8587,9 @@ button.oc-stat-card:focus-visible { outline: 2px solid var(--oc-ring); outline-o
7709
8587
  padding: 0;
7710
8588
  border: 0;
7711
8589
  appearance: none;
8590
+ /* Firefox clips a progress element (overflow: clip in its own style sheet): the glow at the end of the bar would be
8591
+ cut off there. */
8592
+ overflow: visible;
7712
8593
  color: var(--oc-top-progress-color);
7713
8594
  background: transparent;
7714
8595
  pointer-events: none;
@@ -7850,6 +8731,12 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
7850
8731
  /* Hide actions until hover or focus (optional): .oc-tree--quiet */
7851
8732
  .oc-tree--quiet .oc-tree-actions { opacity: 0; }
7852
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; }
7853
8740
 
7854
8741
  /* Selected row: tinted with the primary token. */
7855
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); }
@@ -7865,6 +8752,280 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
7865
8752
  .oc-tree-row::before { transition: none; }
7866
8753
  }
7867
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
+
7868
9029
  /* parts/app-upgrade-banner.css */
7869
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) */
7870
9031
  /* Upgrade banner: soft callout for a free plan with limits ("3 of 5 projects used - upgrade").
@@ -8252,6 +9413,25 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
8252
9413
  .oc-dl--flush { margin-block-start: 0; border-block-start: 0; }
8253
9414
  .oc-dl--flush > .oc-dl-row:first-child { padding-block-start: 0; }
8254
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
+
8255
9435
  /* parts/data-graph.css */
8256
9436
  /* File: packages/ui/src/parts/data-graph.css
8257
9437
  Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
@@ -8315,11 +9495,18 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
8315
9495
  dominant-baseline: central;
8316
9496
  pointer-events: none;
8317
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. */
8318
9500
  .oc-graph__label {
8319
- fill: var(--oc-muted-foreground);
9501
+ fill: var(--oc-foreground);
8320
9502
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
8321
- font-size: 8.5px;
9503
+ font-size: 10.5px;
9504
+ font-weight: 500;
8322
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;
8323
9510
  pointer-events: none;
8324
9511
  }
8325
9512
  .oc-graph__node:focus-visible .oc-graph__dot { stroke: var(--oc-ring); stroke-width: 2.5; }
@@ -8353,8 +9540,9 @@ a.oc-tree-label:focus-visible { outline: 2px solid var(--oc-ring); outline-offse
8353
9540
  }
8354
9541
 
8355
9542
  /* Focus: .is-focused on the graph and .is-active on one node light that node and its edge; the rest dims. */
8356
- .oc-graph.is-focused .oc-graph__node:not(.is-active, .oc-graph__node--center) { opacity: 0.15; }
8357
- .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; }
8358
9546
  .oc-graph.is-focused .oc-graph__edge.is-active { stroke-opacity: 0.8; stroke-width: 3; }
8359
9547
  .oc-graph__node.is-active .oc-graph__dot { fill-opacity: 1; scale: 1.55; }
8360
9548
  .oc-graph__node.is-active .oc-graph__halo { stroke-opacity: 0.6; stroke-width: 14; }
@@ -9147,6 +10335,150 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9147
10335
  /* Small swatches. */
9148
10336
  .oc-color-select--sm .oc-color-select-swatch { inline-size: 1.25rem; block-size: 1.25rem; }
9149
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
+
9150
10482
  /* parts/forms-combobox-icons.css */
9151
10483
  /* File: packages/ui/src/parts/forms-combobox-icons.css
9152
10484
  Map: combobox option icon -> icon of the chosen value in the field -> same start for options without icon
@@ -9189,7 +10521,8 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9189
10521
  }
9190
10522
 
9191
10523
  /* The icon of the chosen value inside the field, at the same start as the option icons in the list (list border 1px +
9192
- 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. */
9193
10526
  .oc-combobox-icon {
9194
10527
  position: absolute;
9195
10528
  inset-block: 0;
@@ -9197,7 +10530,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9197
10530
  block-size: auto;
9198
10531
  pointer-events: none;
9199
10532
  }
9200
- .oc-combobox:has(> .oc-combobox-icon) > .oc-combobox-input {
10533
+ .oc-combobox:has(> .oc-combobox-icon:not(:empty)) > .oc-combobox-input {
9201
10534
  padding-inline-start: calc(4px + 0.625rem + var(--oc-combobox-icon) + 0.5rem);
9202
10535
  }
9203
10536
 
@@ -9221,12 +10554,98 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9221
10554
  padding-inline-start: calc(10px + 1rem + 8px);
9222
10555
  }
9223
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
+
9224
10594
  @media (forced-colors: active) {
9225
10595
  .oc-combobox-option-icon,
9226
10596
  .oc-combobox-icon,
9227
10597
  .oc-dropdown-icon { color: CanvasText; }
9228
10598
  }
9229
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
+
9230
10649
  /* parts/forms-date-field.css */
9231
10650
  /* File: packages/ui/src/parts/forms-date-field.css | Map: field frame -> icon zone -> native date input -> ISO week label -> sizes and states */
9232
10651
  /* Date field: calendar icon | line | date, with the ISO week at the end when wanted.
@@ -9350,6 +10769,63 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9350
10769
  .oc-density-compact .oc-field { gap: 0.25rem; }
9351
10770
  .oc-density-compact .oc-field-label { font-size: 0.75rem; }
9352
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
+
9353
10829
  /* parts/forms-filter-counts.css */
9354
10830
  /* File: packages/ui/src/parts/forms-filter-counts.css
9355
10831
  Map: group (grid of tiles) -> tile (label + hidden radio) -> value / label / hint -> tones -> states -> --compact
@@ -9447,7 +10923,7 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9447
10923
  .oc-filter-counts--compact .oc-filter-counts-hint { display: none; }
9448
10924
 
9449
10925
  /* parts/forms-form-section.css */
9450
- /* 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 */
9451
10927
  /* Collapsible form section: a long form in named parts that open and close.
9452
10928
  Native <details>; sections with the same name="" keep one open at a time. */
9453
10929
 
@@ -9508,6 +10984,44 @@ td[data-numeric] > .oc-price .oc-price__main, .oc-price--end .oc-price__main { j
9508
10984
  background: oklch(from var(--oc-destructive) l c h / 0.1);
9509
10985
  }
9510
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
+
9511
11025
  @media (prefers-reduced-motion: reduce) {
9512
11026
  .oc-form-section__summary::after { transition: none; }
9513
11027
  }
@@ -9853,6 +11367,106 @@ button.oc-language-select:hover { background: var(--oc-surface); }
9853
11367
  .oc-language-select--code .oc-language-select-control::picker(select) { position-area: block-end span-inline-start; }
9854
11368
  }
9855
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
+
9856
11470
  /* parts/forms-number-input.css */
9857
11471
  /* File: packages/ui/src/parts/forms-number-input.css
9858
11472
  Map: wrapper -> step buttons (- / +) -> number field (native spinners hidden) -> states -> sizes / block
@@ -10412,6 +12026,14 @@ a.oc-rating-summary__count:hover { color: var(--oc-foreground); }
10412
12026
  .oc-media-art--5 { --oc-media-art-from: var(--color-magenta-50); --oc-media-art-to: var(--color-indigo-50); }
10413
12027
  .oc-media-art--6 { --oc-media-art-from: var(--color-yellow-60); --oc-media-art-to: var(--color-peru-60); }
10414
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
+
10415
12037
  /* parts/media-attachment.css */
10416
12038
  /* File: packages/ui/src/parts/media-attachment.css | Map: list -> file chip (icon by type, name, size, open/remove) -> type tones
10417
12039
  -> uploading progress + error -> image preview (in a message) -> thumbnail chip (in a composer) -> reduced motion
@@ -10575,9 +12197,11 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10575
12197
  }
10576
12198
 
10577
12199
  /* parts/media-barcode.css */
10578
- /* 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 */
10579
12201
  /* Barcode display: EAN-13, EAN-8, UPC-A or Code 128, drawn as SVG by
10580
- 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. */
10581
12205
 
10582
12206
  .oc-barcode {
10583
12207
  display: inline-flex;
@@ -10590,14 +12214,33 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10590
12214
  background: var(--color-white-50);
10591
12215
  border: 1px solid var(--oc-border);
10592
12216
  border-radius: var(--oc-radius);
12217
+ box-sizing: border-box;
12218
+ max-inline-size: 100%;
12219
+ min-inline-size: 0;
10593
12220
  }
10594
- .oc-barcode svg { display: block; inline-size: auto; block-size: var(--oc-barcode-height, 4rem); max-inline-size: 100%; }
10595
- .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; }
10596
12235
  .oc-barcode--hero { padding: 1.25rem 1.5rem; --oc-barcode-height: 6rem; }
10597
12236
  .oc-barcode--hero .oc-barcode__digits { font-size: 1rem; }
10598
12237
  .oc-barcode--compact { padding: 0.375rem 0.5rem; --oc-barcode-height: 2.25rem; }
10599
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; }
10600
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; }
10601
12244
 
10602
12245
  /* parts/media-browser-frame.css */
10603
12246
  /* File: packages/ui/src/parts/media-browser-frame.css | Map: frame -> chrome bar (dots, address pill, actions)
@@ -10882,6 +12525,8 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
10882
12525
  justify-content: space-between;
10883
12526
  gap: 0.5rem;
10884
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;
10885
12530
  }
10886
12531
  .oc-doc-viewer__label {
10887
12532
  flex: 1 1 auto;
@@ -11152,6 +12797,11 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11152
12797
  @container (max-width: 22rem) {
11153
12798
  .oc-entity-card__grid { grid-template-columns: minmax(0, 1fr); }
11154
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
+ }
11155
12805
 
11156
12806
  /* parts/media-flip-card.css */
11157
12807
  /* File: packages/ui/src/parts/media-flip-card.css | Map: card (perspective) -> hidden checkbox -> inner (3D) -> faces
@@ -11295,7 +12945,8 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11295
12945
  Map: liquid sheet (.oc-glass--liquid: clear tint, strong blur + saturation, inner light, specular rim) -> menu bar
11296
12946
  (.oc-glass-bar: items with icon and label, the current one in a raised bubble) -> icon-only and round button -> fallbacks
11297
12947
  Liquid glass in the style of recent desktop and phone systems, in CSS only: the backdrop is blurred and brightened,
11298
- 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). */
11299
12950
 
11300
12951
  .oc-glass.oc-glass--liquid,
11301
12952
  .oc-glass--liquid,
@@ -11347,8 +12998,12 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11347
12998
  pointer-events: none;
11348
12999
  }
11349
13000
 
11350
- /* 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). */
11351
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;
11352
13007
  display: inline-flex;
11353
13008
  align-items: center;
11354
13009
  gap: 0.2rem;
@@ -11364,7 +13019,7 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11364
13019
  padding: 0.45rem 0.85rem;
11365
13020
  border: 0;
11366
13021
  border-radius: 999px;
11367
- 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));
11368
13023
  background: none;
11369
13024
  font: inherit;
11370
13025
  font-size: 0.7rem;
@@ -11378,10 +13033,10 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11378
13033
  .oc-glass-bar__item:hover { background: light-dark(oklch(100% 0 0deg / 0.28), oklch(100% 0 0deg / 0.08)); }
11379
13034
  .oc-glass-bar__item:active { scale: 0.94; }
11380
13035
  .oc-glass-bar__item:focus-visible { outline: 2px solid var(--oc-ring); outline-offset: 1px; }
11381
- /* 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). */
11382
13037
  .oc-glass-bar__item:is([aria-current="page"], [aria-pressed="true"], :has(> input:checked)) {
11383
13038
  color: light-dark(var(--oc-primary), var(--color-white-50));
11384
- 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));
11385
13040
  box-shadow: inset 0 1px 1px oklch(100% 0 0deg / 0.85), 0 6px 14px -8px oklch(0% 0 0deg / 0.4);
11386
13041
  }
11387
13042
  .oc-glass-bar__item > input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
@@ -11421,25 +13076,47 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11421
13076
 
11422
13077
  /* parts/media-glass-options.css */
11423
13078
  /* File: packages/ui/src/parts/media-glass-options.css
11424
- 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)
11425
13080
  Extras for .oc-glass, .oc-glass--liquid and .oc-glass-bar (media-glass.css, media-glass-liquid.css). The selectors
11426
13081
  carry two classes so they win over the base glass whatever order the parts load in. */
11427
13082
 
11428
13083
  /* Amount of glass: --clear lets more of the backdrop through, --frost hides more of it. */
11429
13084
  :is(.oc-glass, .oc-glass-bar).oc-glass--clear {
11430
- --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));
11431
- --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;
11432
13088
  --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.05), oklch(100% 0 0deg / 0.03));
11433
13089
  --oc-liquid-blur: 2px;
11434
13090
  }
11435
13091
  :is(.oc-glass, .oc-glass-bar).oc-glass--frost {
11436
- --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));
11437
- --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;
11438
13095
  --oc-liquid-tint: light-dark(oklch(100% 0 0deg / 0.38), oklch(100% 0 0deg / 0.12));
11439
13096
  --oc-liquid-blur: 18px;
11440
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
+ }
11441
13107
 
11442
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
+
11443
13120
  /* Light content: white icons and labels for glass over a dark or very colourful backdrop. */
11444
13121
  .oc-glass-bar.oc-glass-bar--light .oc-glass-bar__item {
11445
13122
  color: oklch(100% 0 0deg / 0.92);
@@ -11470,44 +13147,77 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11470
13147
  @media (prefers-reduced-motion: reduce) {
11471
13148
  .oc-glass-stage { animation: none; }
11472
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
+ }
11473
13160
 
11474
13161
  /* parts/media-glass.css */
11475
13162
  /* File: packages/ui/src/parts/media-glass.css
11476
- Map: tokens (light-dark) -> sheet (.oc-glass: see-through, blurred, light top edge, soft shadow) -> panel (.oc-glass-panel:
11477
- a lighter layer inside) -> cards inside a sheet -> --flat (desktop window, the OS draws the blur) -> --strong -> reduced
11478
- transparency
11479
- Glass: see-through surfaces in the "liquid glass" style, over a photo, a gradient or the desktop (an Electron or Tauri
11480
- 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. */
11481
13172
 
11482
13173
  :root {
11483
- --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));
11484
- --oc-glass-panel: light-dark(oklch(100% 0 0deg / 0.5), oklch(100% 0 0deg / 0.055));
11485
- --oc-glass-panel-strong: light-dark(oklch(100% 0 0deg / 0.72), oklch(100% 0 0deg / 0.09));
11486
- --oc-glass-edge: light-dark(oklch(100% 0 0deg / 0.85), oklch(100% 0 0deg / 0.11));
11487
- --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));
11488
13185
  --oc-glass-hairline: light-dark(oklch(from var(--oc-foreground) l c h / 0.1), oklch(100% 0 0deg / 0.08));
11489
- --oc-glass-shadow: 0 24px 60px -20px light-dark(oklch(25% 0.06 255deg / 0.35), oklch(0% 0 0deg / 0.7));
11490
- --oc-glass-panel-shadow: 0 8px 24px -16px light-dark(oklch(25% 0.06 255deg / 0.25), oklch(0% 0 0deg / 0.6));
11491
- --oc-glass-blur: 28px;
11492
- --oc-glass-radius: 18px;
11493
- --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)));
11494
13197
  }
11495
13198
 
11496
13199
  /* Sheet: the outer glass surface (a widget, a floating panel, a dialog over a photo).
11497
- The blur and tint sit on a ::after layer behind the content, not on the sheet itself: an element with
11498
- backdrop-filter becomes the containing block of position: fixed children, so a tooltip inside would be trapped
11499
- 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. */
11500
13204
  .oc-glass {
11501
13205
  position: relative;
11502
13206
  isolation: isolate;
11503
- color: var(--oc-foreground);
13207
+ color: var(--oc-glass-fg);
11504
13208
  border: 1px solid var(--oc-glass-edge);
11505
13209
  border-radius: var(--oc-glass-radius);
11506
13210
  box-shadow: var(--oc-glass-shadow);
11507
13211
  /* OmniaUI cards inside become glass panels too. */
11508
13212
  --oc-card-background: var(--oc-glass-panel);
11509
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);
11510
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. */
11511
13221
  .oc-glass::after {
11512
13222
  content: "";
11513
13223
  position: absolute;
@@ -11515,50 +13225,77 @@ a.oc-attachment-image:hover > :is(img, .oc-media-art) { filter: brightness(1.05)
11515
13225
  z-index: -1;
11516
13226
  border-radius: inherit;
11517
13227
  background: var(--oc-glass-sheet);
11518
- box-shadow: inset 0 1px 0 var(--oc-glass-edge-hi);
11519
- 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%);
11520
13233
  pointer-events: none;
11521
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; }
11522
13243
 
11523
- /* 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. */
11524
13246
  .oc-glass-panel {
11525
13247
  position: relative;
11526
13248
  background: var(--oc-glass-panel);
11527
13249
  border: 1px solid var(--oc-glass-edge);
11528
13250
  border-radius: var(--oc-glass-panel-radius);
11529
- 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);
11530
13252
  }
11531
13253
  .oc-glass .oc-card {
11532
13254
  border-radius: var(--oc-glass-panel-radius);
11533
- 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);
11534
13256
  }
11535
13257
 
11536
- /* Strong: more opaque, for text-heavy panels or a hovered row. */
11537
- .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)); }
11538
13260
  .oc-glass-panel--strong { background: var(--oc-glass-panel-strong); }
11539
13261
 
11540
- /* 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. */
11541
13263
  .oc-glass--flat { border-radius: 8px; box-shadow: none; }
11542
- .oc-glass--flat::after { backdrop-filter: none; }
13264
+ .oc-glass.oc-glass--flat::after { backdrop-filter: none; }
11543
13265
 
11544
13266
  /* Hairline divider in glass (sections, header). */
11545
13267
  .oc-glass-divider { block-size: 1px; margin: 0; border: 0; background: var(--oc-glass-hairline); }
11546
13268
 
11547
- /* 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). */
11548
13270
  @media (prefers-reduced-transparency: reduce) {
11549
- :root {
13271
+ :root,
13272
+ .oc-glass.oc-glass--clear,
13273
+ .oc-glass.oc-glass--frost,
13274
+ .oc-glass.oc-glass--strong {
11550
13275
  --oc-glass-sheet: var(--oc-background);
11551
13276
  --oc-glass-panel: var(--oc-card);
11552
13277
  --oc-glass-panel-strong: var(--oc-muted);
11553
13278
  }
11554
- .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
+ }
11555
13291
  }
11556
- /* Firefox has no "backdrop root" yet: the filter on the ::after lens only sees the inside of the isolated sheet, so
11557
- nothing would be blurred. There the filter sits on the sheet itself (a position: fixed child is then placed
11558
- 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. */
11559
13295
  @supports (-moz-appearance: none) {
11560
- .oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(1.5); }
13296
+ .oc-glass { backdrop-filter: blur(var(--oc-glass-blur)) saturate(160%); }
11561
13297
  .oc-glass::after { backdrop-filter: none; }
13298
+ .oc-glass--flat { backdrop-filter: none; }
11562
13299
  @media (prefers-reduced-transparency: reduce) { .oc-glass { backdrop-filter: none; } }
11563
13300
  }
11564
13301
 
@@ -12345,6 +14082,59 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12345
14082
  .oc-media-row-list--numbered > .oc-media-row { grid-template-columns: 1.25rem 6.5rem minmax(0, 1fr) auto; }
12346
14083
  }
12347
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
+
12348
14138
  /* parts/media-stack-card.css */
12349
14139
  /* File: packages/ui/src/parts/media-stack-card.css | Map: card -> deck (two layers behind via ::before / ::after)
12350
14140
  -> count badge -> panel modifier -> body (title link + meta) -> hover spread -> motion
@@ -12754,11 +14544,17 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12754
14544
  .oc-topbar-nav { min-inline-size: 0; }
12755
14545
  .oc-topbar-actions .oc-btn { white-space: nowrap; }
12756
14546
 
12757
- /* 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. */
12758
14551
  @media (min-width: 761px) {
12759
- .oc-topbar--center { display: grid; grid-template-columns: 1fr auto 1fr; }
12760
- .oc-topbar--center .oc-topbar-brand { justify-self: start; }
12761
- .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; }
12762
14558
  }
12763
14559
 
12764
14560
  /* Plain links: no pill frames, the current page underlined. */
@@ -12826,6 +14622,8 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
12826
14622
  .oc-footerbar-links a { color: var(--oc-muted-foreground); text-decoration: none; }
12827
14623
  .oc-footerbar-links a:hover { color: var(--oc-foreground); }
12828
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)); }
12829
14627
  .oc-footerbar--dark :is(a, .oc-footerbar-links a) { color: oklch(from var(--color-white-50) l c h / 0.85); }
12830
14628
  .oc-footerbar--dark .oc-footerbar-links a:hover { color: var(--color-white-50); }
12831
14629
 
@@ -13348,23 +15146,58 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
13348
15146
  .oc-site-header__brand { white-space: nowrap; flex: none; }
13349
15147
  .oc-site-header__nav > :is(a, button):not(.oc-btn) { white-space: nowrap; }
13350
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
+
13351
15175
  /* Centred menu: brand left, menu in the middle, actions right. */
13352
15176
  @media (min-width: 861px) {
13353
- .oc-site-header--center .oc-site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
13354
- .oc-site-header--center .oc-site-header__brand { justify-self: start; }
13355
- .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; }
13356
15186
  }
13357
15187
 
13358
- /* 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. */
13359
15189
  .oc-site-header--dark {
13360
15190
  --oc-header-glass: 0;
13361
15191
  animation: none;
13362
15192
  backdrop-filter: none;
13363
15193
  color: var(--color-white-50);
13364
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);
13365
15196
  }
13366
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); }
13367
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); }
13368
15201
 
13369
15202
  /* Floating: the bar as a rounded card with room around it. */
13370
15203
  /* No backdrop-filter on the bar itself: it would cut the backdrop of the glass inside it. */
@@ -13414,6 +15247,97 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
13414
15247
  .oc-site-footer__signup { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.25rem; max-inline-size: 24rem; }
13415
15248
  .oc-site-footer__signup .oc-input { flex: 1 1 12rem; min-inline-size: 0; }
13416
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
+
13417
15341
 
13418
15342
  /* parts/site-layout.css */
13419
15343
  /* File: packages/ui/src/parts/site-layout.css */
@@ -14031,7 +15955,9 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14031
15955
  .oc-price-card:has(.oc-price-card__toggle input:is([value="yearly"], [value="lifetime"]):checked) .oc-price-card__price--monthly,
14032
15956
  .oc-price-card:has(.oc-price-card__toggle input[value="lifetime"]:checked) .oc-price-card__price--yearly { display: none; }
14033
15957
 
14034
- .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; }
14035
15961
  .oc-price-card__period { color: var(--oc-muted-foreground); font-size: 0.9rem; }
14036
15962
  /* Old price, struck through. */
14037
15963
  .oc-price-card__was { color: var(--oc-muted-foreground); font-size: 0.95rem; }
@@ -14417,6 +16343,19 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14417
16343
  /* Ruled: a line under every h2, so the articles of a long document stand apart (with --legal or any prose). */
14418
16344
  .oc-prose--ruled :where(h2) { padding-block-end: 0.6rem; border-block-end: 1px solid var(--oc-border); }
14419
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
+
14420
16359
  /* parts/site-stack-list.css */
14421
16360
  /* File: packages/ui/src/parts/site-stack-list.css
14422
16361
  Map: list -> pill item -> optional icon -> neutral / small modifiers
@@ -14641,12 +16580,13 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14641
16580
  100% { translate: 0 0; opacity: 1; }
14642
16581
  }
14643
16582
 
14644
- /* 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).
14645
16585
  It drifts slowly (transform); hover tilts and grows it (rotate, scale), so the two never fight. */
14646
16586
  .oc-tint-card__art {
14647
16587
  position: absolute;
14648
- inset-block-end: -1rem;
14649
- inset-inline-end: -0.75rem;
16588
+ inset-block-end: -0.35rem;
16589
+ inset-inline-end: -0.25rem;
14650
16590
  z-index: -1;
14651
16591
  display: block;
14652
16592
  color: var(--oc-tint);
@@ -14700,7 +16640,7 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14700
16640
 
14701
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+). */
14702
16642
  @media (min-width: 40rem) {
14703
- .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; }
14704
16644
  @container (min-width: 16rem) {
14705
16645
  .oc-tint-card__art { font-size: 9rem; }
14706
16646
  }
@@ -14756,7 +16696,9 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14756
16696
  .oc-hover-grow grows a little in place (--oc-hover-scale, 1.02)
14757
16697
  .oc-hover-glow stays in place, with a glow in the accent color
14758
16698
  .oc-hover-none no movement (also turns off the default lift of a product or price card)
14759
- 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. */
14760
16702
 
14761
16703
  :is(.oc-hover-lift, .oc-hover-grow, .oc-hover-glow, .oc-product-card) {
14762
16704
  transition:
@@ -14765,9 +16707,10 @@ html.oc-fly-ready .oc-reveal--fly:not(.is-visible) {
14765
16707
  box-shadow var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
14766
16708
  /* The colors follow the same curve as the lift, so the glow and the border do not lag behind the movement. */
14767
16709
  border-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
14768
- background-color var(--oc-hover-duration, 0.45s) var(--oc-hover-ease, cubic-bezier(0.22, 1, 0.36, 1)),
14769
- --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);
14770
16712
  }
16713
+ :where(.oc-product-card) { --oc-hover-duration: 0.3s; --oc-hover-ease: ease; --oc-hover-delay: 0.08s; }
14771
16714
  .oc-product-card:hover { translate: 0 calc(-1 * var(--oc-hover-lift, 6px)); }
14772
16715
  .oc-hover-lift:hover {
14773
16716
  translate: 0 calc(-1 * var(--oc-hover-lift, 6px));
@@ -14897,6 +16840,9 @@ pre.code-preview {
14897
16840
  /* Code inhoud: spaties en newlines behouden, regels onder elkaar, monospace voor uitlijning */
14898
16841
  pre.code-preview code {
14899
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%;
14900
16846
  white-space: pre;
14901
16847
  font-family: inherit;
14902
16848
  font-size: inherit;