@apliteni/apliteni-ui 0.189.0 → 0.193.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.
@@ -432,7 +432,16 @@
432
432
  .ui-app__main .ui-app__title-row > h1 { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
433
433
  /* The tools wrap at the narrowest phone, so a period picker and a view action stay in the column. #832 */
434
434
  .ui-app__tools { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: var(--space-3); max-width: 100%; }
435
- .ui-app__body { display: flex; flex-direction: column; gap: var(--space-5); }
435
+ /* --ui-block-gap is the gap between two blocks. A control row above a block reads it, so
436
+ its margin holds in each theme. */
437
+ .ui-app__body { --ui-block-gap: var(--space-5); display: flex; flex-direction: column; gap: var(--ui-block-gap); }
438
+ /* #850: on the light page a card draws no box, so the body opens to the page's group gap.
439
+ why: docs/foundations.md#spacing-and-rhythm */
440
+ :root[data-theme="light"] .ui-app__body { --ui-block-gap: var(--space-10); gap: var(--ui-block-gap); }
441
+ /* A stat band closes one section, so the block after it keeps the group gap on
442
+ top of the body's: the air the old soft line used to give, now as space alone.
443
+ why: guidelines/dashboards-and-reports.md, #850 */
444
+ .ui-app__body > .ui-stats + * { margin-top: var(--space-8); }
436
445
  /* A flex child's min-width is its content by default, so one wide block — a
437
446
  ledger, a code sample — pushes the whole page sideways instead of scrolling
438
447
  inside itself. This is what keeps the shell narrower than the window. */
@@ -456,8 +465,14 @@
456
465
  on the page meets its table card at the same distance. Not on the last row:
457
466
  there the gap is the page's bottom and nothing is being narrowed. tap-zone.css
458
467
  widens it on a touch phone. why: docs/foundations.md#spacing-and-rhythm */
459
- :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--space-2) - var(--space-5)); }
468
+ :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--space-2) - var(--ui-block-gap)); }
460
469
  .ui-stack > .ui-toolbar + * { margin-top: var(--space-2); }
470
+ /* An open figure has no surface and no padding, so the row keeps 24px to its label: a
471
+ recorded exception to the inner gap, also on a touch phone. why: docs/components.md#stat-bands, #849 */
472
+ :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:has(+ .ui-stats--open) { margin-bottom: calc(var(--space-6) - var(--ui-block-gap)); }
473
+ /* A filter bar inside its table's card sits one inner gap above the table, the
474
+ same step the card title keeps above the bar. why: guidelines/dense-tables.md */
475
+ .ui-card > .ui-toolbar:not(:last-child) { margin-bottom: var(--space-2); }
461
476
  .ui-toolbar > .ui-input,
462
477
  .ui-toolbar > .ui-input-group { flex: 1 1 6rem; min-width: 0; }
463
478
  /* A row that offers the block two unrelated things — what to narrow it by, and
@@ -499,6 +514,28 @@
499
514
  .ui-toolbar--split > :last-child { margin-inline-start: 0; align-self: start; }
500
515
  }
501
516
 
517
+ /* A floating bar: a slim control row that docks at the bottom of its scroll region and
518
+ floats over the content above it — a viewer's page steps, a sheet's primary actions.
519
+ It stays visible while the content scrolls, and reads as the elevated surface the
520
+ kit's menus take. why: docs/foundations.md#elevation, #850 */
521
+ .ui-float-bar {
522
+ position: sticky;
523
+ bottom: var(--space-4);
524
+ z-index: var(--z-sticky);
525
+ display: flex;
526
+ align-items: center;
527
+ gap: var(--space-2);
528
+ width: max-content;
529
+ max-width: 100%;
530
+ margin-inline: auto;
531
+ margin-bottom: var(--space-4);
532
+ padding: var(--space-1) var(--space-2);
533
+ border-radius: var(--radius-pill);
534
+ background: var(--bg-elevated);
535
+ border: 1px solid var(--float-edge);
536
+ box-shadow: inset 0 0 0 1px var(--elev-edge, var(--float-edge-inner)), var(--elev-drop);
537
+ }
538
+
502
539
  /* -- The phone shell ------------------------------------------------------ */
503
540
  /* Below this width there is no rail and no strip. A band at the top holds the menu
504
541
  control and the brand's mark, the control opens the same rail in the kit's left
@@ -637,6 +674,50 @@
637
674
  padding: 40px 20px;
638
675
  position: relative;
639
676
  overflow: hidden;
677
+ /* Brand C: the branded ground behind a dialog-only page. A product may override
678
+ --ui-auth-ground with its own colour or gradient. why: docs/foundations.md#elevation */
679
+ background: var(--ui-auth-ground, var(--bg));
680
+ }
681
+ /* The split auth page: the brand half wears the branded ground, and the task half is
682
+ the plain page with no card box. Below 860px the pair stacks, so the brand half
683
+ becomes a band at the top. why: docs/foundations.md#breakpoints */
684
+ .ui-auth--split {
685
+ grid-template-columns: repeat(2, minmax(0, 1fr));
686
+ place-items: stretch;
687
+ padding: 0;
688
+ background: var(--bg);
689
+ }
690
+ .ui-auth--split .ui-auth__brand-pane {
691
+ display: flex;
692
+ flex-direction: column;
693
+ justify-content: space-between;
694
+ align-items: flex-start;
695
+ padding: clamp(48px, 7vw, 120px);
696
+ background: var(--ui-auth-ground, var(--bg));
697
+ }
698
+ .ui-auth--split .ui-auth__tagline {
699
+ margin: 0;
700
+ /* display: brand — the slogan on the branded half is the brand's own voice, set like
701
+ the wordmark beside it and not as reading prose. */
702
+ font-family: var(--font-display);
703
+ font-size: var(--text-3xl);
704
+ line-height: 1.05;
705
+ letter-spacing: var(--tracking-tight);
706
+ font-weight: var(--weight-bold);
707
+ color: var(--strong);
708
+ }
709
+ .ui-auth--split .ui-auth__pane {
710
+ display: grid;
711
+ place-items: center;
712
+ place-content: center;
713
+ padding: 40px 20px;
714
+ background: var(--bg);
715
+ }
716
+ .ui-auth--split .ui-auth__pane > * { width: 100%; max-width: var(--panel-md); }
717
+ @media (max-width: 860px) {
718
+ .ui-auth--split { grid-template-columns: 1fr; place-items: start; }
719
+ .ui-auth--split .ui-auth__brand-pane { width: 100%; padding: 32px 20px; }
720
+ .ui-auth--split .ui-auth__pane { width: 100%; place-items: start; }
640
721
  }
641
722
  .ui-auth__card {
642
723
  position: relative;
@@ -654,17 +735,39 @@
654
735
  }
655
736
  .ui-auth__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
656
737
  .ui-auth__brand span { font-size: var(--text-md); font-weight: 600; color: var(--strong); }
657
- .ui-auth__title { color: var(--strong); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
738
+ /* Consent: the brand stands on the gradient above the card, and the card's title
739
+ and its text line under it are centred. why: docs/foundations.md#elevation */
740
+ .ui-auth--brand-above { grid-template-rows: auto 1fr; row-gap: var(--space-5); }
741
+ .ui-auth--brand-above > .ui-auth__brand { margin-bottom: 0; }
742
+ .ui-auth--brand-above .ui-auth__title { text-align: center; }
743
+ .ui-auth--brand-above .ui-auth__sub { text-align: center; }
744
+ .ui-auth__title {
745
+ color: var(--strong);
746
+ /* rank: page-title */
747
+ font-size: var(--text-2xl);
748
+ font-weight: var(--weight-bold);
749
+ line-height: 1.1;
750
+ letter-spacing: var(--tracking-tight);
751
+ margin-bottom: 7px;
752
+ }
658
753
  .ui-auth__sub { color: var(--text); font-size: var(--text-base); line-height: 1.55; margin-bottom: 26px; }
659
754
  .ui-auth__foot { margin-top: 24px; text-align: center; font-size: var(--text-sm); color: var(--text); }
660
755
  .ui-auth__foot a { color: var(--accent); }
661
- .ui-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text); font-size: var(--text-xs); }
756
+ /* #850: "or" keeps its two lines and stands centred at the label rank, with the group gap
757
+ above and below it. why: docs/foundations.md#spacing-and-rhythm */
758
+ .ui-divider { display: flex; align-items: center; gap: 14px; margin: var(--space-10) 0; color: var(--text); font-size: var(--text-sm); font-weight: var(--weight-medium); }
662
759
  .ui-divider::before, .ui-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
663
760
 
761
+ /* The document page's bare full-bleed backdrop, behind the A4 sheet it carries.
762
+ why: docs/foundations.md#elevation */
763
+ .ui-document-ground { background: var(--ui-document-ground); /* code-bg: inherit — a backdrop behind the document sheet; nothing reads a ground from it. */ }
764
+
664
765
  /* App scope grant list (OAuth consent) */
665
766
  .ui-scopes { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; }
666
767
  .ui-scope { display: flex; gap: 13px; padding: 13px 4px; }
667
768
  .ui-scope + .ui-scope { border-top: 1px solid var(--border); }
769
+ /* #850: on the light page no hairline between scope rows; the rows separate by space. */
770
+ :root[data-theme="light"] .ui-scope + .ui-scope { border-top: 0; }
668
771
  .ui-scope__icon {
669
772
  width: 38px; height: 38px; flex: none;
670
773
  border-radius: 11px;
@@ -75,9 +75,9 @@
75
75
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
76
76
  }
77
77
  .ui-nav .ui-nav__item { color: var(--text); } /* (0,2,0): a host sheet's a:link is (0,1,1) — why: docs/components.md#page-shell */
78
- .ui-nav__item:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); /* code-bg: inherit — The wash keeps the containing ground. */ color: var(--strong); }
78
+ .ui-nav__item:hover { background: color-mix(in srgb, var(--nav-active-fill) 50%, transparent); /* code-bg: inherit — The wash keeps the containing ground. */ color: var(--strong); }
79
79
  .ui-nav__item.is-active {
80
- background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
80
+ background: var(--nav-active-fill); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
81
81
  color: var(--strong);
82
82
  font-weight: 500;
83
83
  }
@@ -276,7 +276,7 @@
276
276
  height: 100%;
277
277
  border-radius: 10px;
278
278
  transform: translateY(-50%); /* motion: still — a mark on the current row, whose own highlight already transitions; this centres it, it does not travel */
279
- background: var(--surface); /* code-bg: inherit — The plate contains no focus target. */
279
+ background: var(--nav-active-fill); /* code-bg: inherit — The plate contains no focus target. */
280
280
  z-index: -1;
281
281
  }
282
282
  /* Nothing switches the hover wash off here: since #588 a folded row is only as wide
@@ -7,6 +7,9 @@
7
7
  push the page's scrollWidth past the viewport, which drags every sibling with
8
8
  it. Wrapping keeps the focus band unclipped, which `overflow: auto` here
9
9
  would not. #435 */
10
+ /* #850: the light page is one white ground, so the track's white reads as nothing. It
11
+ draws the 1px control edge instead, as a button and a select do. why: docs/foundations.md#elevation */
12
+ :root[data-theme="light"] .ui-seg:not(.ui-seg--underline) { box-shadow: inset 0 0 0 1px var(--control-edge); }
10
13
  .ui-seg {
11
14
  display: inline-flex;
12
15
  /* `inline-flex` sizes the track to its pills, but a flex or grid parent stretches a
@@ -2,7 +2,7 @@
2
2
  * Stat band — .ui-stats (a row of key figures: label, value, change, trend)
3
3
  * .ui-stats--tiles one card per figure — the default
4
4
  * .ui-stats--band one card, figures divided by space
5
- * .ui-stats--open no surface; a rule over each figure
5
+ * .ui-stats--open no surface and no rule; space and a larger value divide
6
6
  * why: docs/components.md#stat-bands
7
7
  * ========================================================================== */
8
8
 
@@ -77,6 +77,17 @@ dd.ui-stat__caption { margin-top: var(--space-2); }
77
77
  line-height: var(--leading-snug);
78
78
  }
79
79
  .ui-stat__delta svg { width: 14px; height: 14px; flex: none; stroke-width: 2.7; } /* 2.7 of a 24 box drawn at 14px = 1.58 CSS px. docs/foundations.md#icons-and-glyphs */
80
+ /* A change with a tooltip holds its arrow inside the focus target, set as the row sets it.
81
+ The focus ring's block padding is lent back, so focus moves no line. #849 */
82
+ .ui-stat__delta .ui-tip-host > .ui-focusable { display: inline-flex; align-items: center; gap: var(--space-1); vertical-align: top; }
83
+ .ui-stat__delta .ui-tip-host > .ui-focusable:focus-visible { margin-block: calc(-1 * var(--space-1)); }
84
+ /* On a touch phone the change is its own 44px target in the row, as an underline tab is.
85
+ The figure grows by the difference, and no layer reaches past the target into a
86
+ neighbour. The ring goes round the target's own box, so it lends no padding. #849 */
87
+ @media (max-width: 560px) and (pointer: coarse) {
88
+ .ui-stat__delta .ui-tip-host > .ui-focusable { min-inline-size: var(--tap-min, 44px); min-block-size: var(--tap-min, 44px); }
89
+ .ui-stat__delta .ui-tip-host > .ui-focusable:focus-visible { padding: 0; margin: 0; }
90
+ }
80
91
  .ui-stat__change { font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
81
92
  .ui-stat__basis { color: var(--text); font-weight: var(--weight-normal); }
82
93
 
@@ -117,10 +128,42 @@ dd.ui-stat__caption { contain: inline-size; }
117
128
  }
118
129
 
119
130
  .ui-stats--tiles .ui-stats__list { gap: var(--space-4); }
131
+ /* #850: a lone light card is a grouping of space with no line, but a row of
132
+ tiles is tightly placed, so each tile keeps its soft edge and its padding.
133
+ The edge is the card's own --card-edge in both themes. */
134
+ :root[data-theme="light"] .ui-stats--tiles .ui-stat.ui-card:not(.ui-card--pad-lg):not(.ui-card--accent):not(.ui-card--live) {
135
+ border: 1px solid var(--card-edge);
136
+ padding-block: var(--space-5);
137
+ margin-inline: 0;
138
+ }
120
139
 
121
- .ui-stats--open .ui-stat {
122
- border-top: 1px solid var(--border-strong);
123
- padding-top: var(--space-4);
140
+ /* #850 round 34: on one white ground the light open figures read as one band, so a
141
+ vertical soft line between figures in a row keeps the columns apart. The line
142
+ stops where a figure starts a new row: the odd fold stacks every figure, and the
143
+ pairs fold starts its second row at the third figure. The column gap halves so the
144
+ line sits centred between the two figures. */
145
+ :root[data-theme="light"] .ui-stats--open .ui-stats__list { column-gap: var(--space-6); }
146
+ :root[data-theme="light"] .ui-stats--open .ui-stat + .ui-stat {
147
+ border-inline-start: 1px solid var(--border);
148
+ padding-inline-start: var(--space-6);
149
+ }
150
+ @container (width <= 50rem) {
151
+ :root[data-theme="light"] .ui-stats--open .ui-stats__list:has(> .ui-stat:last-child:nth-child(odd)) > .ui-stat + .ui-stat {
152
+ border-inline-start: 0;
153
+ padding-inline-start: 0;
154
+ }
155
+ }
156
+ @container (width <= 32rem) {
157
+ :root[data-theme="light"] .ui-stats--open .ui-stat + .ui-stat {
158
+ border-inline-start: 0;
159
+ padding-inline-start: 0;
160
+ }
161
+ }
162
+ @container (32rem < width <= 66rem) {
163
+ :root[data-theme="light"] .ui-stats--open .ui-stats__list:has(> .ui-stat:nth-child(4):last-child) > .ui-stat:nth-child(3) {
164
+ border-inline-start: 0;
165
+ padding-inline-start: 0;
166
+ }
124
167
  }
125
168
  .ui-stats--open .ui-stat__value { font-size: var(--text-3xl); }
126
169
 
@@ -131,22 +131,6 @@
131
131
  color: var(--strong);
132
132
  text-decoration: underline;
133
133
  }
134
- /* One exception, and it is the way through: a reference that opens another screen at
135
- this row. The rule above was written to keep a LEDGER's identifiers out of the accent
136
- — a whole column of them is an accent with no job (guidelines/density-and-accents.md,
137
- give-accents-a-job) — but a dashboard's exceptions are three rows, and there the link
138
- is how a reader reaches the row's own report. Left in the row's ink it was the plain
139
- cell beside it to the pixel, resolving only on hover, which a phone does not have.
140
- .ui-table__pair is the cell that carries a reference and its state, so the exception is
141
- as narrow as that cell. The ink is base.css's own `a { color: var(--accent) }`, at
142
- 7.34:1 in light and 5.53:1 in dark on the table's ground.
143
- why: Artur, round r34; guidelines/dashboards-and-reports.md#link-each-reference-to-its-row
144
- held by: src/styles/table.test.js */
145
- .ui-table :where(td, th) .ui-table__pair a:not(.ui-btn):not(.ui-identity) { color: var(--accent); }
146
- .ui-table :where(td, th) .ui-table__pair a:not(.ui-btn):not(.ui-identity):hover {
147
- color: var(--accent);
148
- text-decoration: underline;
149
- }
150
134
  /* A plain link — one carrying no class — is the link these rules are about. An inline-block
151
135
  box, so a title link that wraps paints one ring instead of one per line, and the kit's small
152
136
  corner for that ring to follow. Anchors the kit already styles (`.ui-btn`, `.ui-identity`,
@@ -252,12 +236,14 @@
252
236
  /* The empty state (.ui-empty) — shown when a table/list has no rows — now
253
237
  lives in styles/empty.css as a standalone component (illustration support). */
254
238
 
255
- /* Tables share their containing card’s reading surface, including pinned cells. The code
239
+ /* Tables share their containing card's reading surface, including pinned cells. The code
256
240
  chip's hand-off travels with it, so an identifier in a cell keeps the page rather than
257
- the card the cell is now painted with. why: src/tokens/tokens.css */
258
- .ui-card { --table-bg: var(--surface); --table-code-bg: var(--bg); }
241
+ the card the cell is now painted with. --table-bg is the surface in dark and the white
242
+ page in light (where --surface is white), and --table-code-bg is --code-chip-surface,
243
+ the page in dark and the quiet fill in light. why: src/tokens/tokens.css */
244
+ .ui-card { --table-bg: var(--surface); --table-code-bg: var(--code-chip-surface); }
259
245
  /* A drawer group is a reading surface in the same way, so its table takes the drawer's ground. */
260
- .ui-drawer .ui-drawer__section { --table-bg: var(--drawer-surface); --table-code-bg: var(--bg); }
246
+ .ui-drawer .ui-drawer__section { --table-bg: var(--drawer-surface); --table-code-bg: var(--code-chip-surface); }
261
247
 
262
248
  /* White in light, base canvas in dark; never a grey or tinted data surface. */
263
249
  .ui-table { background: var(--table-bg); }
@@ -625,6 +611,19 @@ a.ui-identity:hover { text-decoration: underline; }
625
611
  .ui-card--pad-sm > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):first-child { margin-top: calc(-1 * var(--space-5)); }
626
612
  .ui-card--pad-sm > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):last-child { margin-bottom: calc(-1 * var(--space-5)); }
627
613
  .ui-card--fit > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))) { width: auto; max-width: calc(100% + 2 * var(--space-6)); }
614
+ /* #850: on the light page a table in a card sits on the column, so its rules and its end
615
+ cells end on the column edges. The frame keeps its side bands below.
616
+ why: docs/foundations.md#spacing-and-rhythm */
617
+ :root[data-theme="light"] .ui-card > :is(.ui-table, .ui-table-scroll) {
618
+ width: 100%;
619
+ max-width: 100%;
620
+ margin-inline: 0;
621
+ }
622
+ /* #850: the row table's vertical bleed hangs it out by the card's 24px padding, but the
623
+ light card removed that padding. The card clips its overflow, so the last row was cut and
624
+ faded at the bottom. Reset the two ends to 0. why: docs/foundations.md#spacing-and-rhythm */
625
+ :root[data-theme="light"] .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):first-child { margin-top: 0; }
626
+ :root[data-theme="light"] .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):last-child { margin-bottom: 0; }
628
627
  /* The frame keeps its side bands and takes a top band, because the sticky header covers a
629
628
  ring drawn anywhere else. The frame clips its cells to the inner curve of the bands, so
630
629
  the header follows the ring at the top corners. The header gives the top band back from
@@ -639,6 +638,18 @@ a.ui-identity:hover { text-decoration: underline; }
639
638
  .ui-card > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: var(--space-6); }
640
639
  /* In a frame, the side band holds space-1 of the card's text edge. */
641
640
  .ui-card > .ui-table-scroll > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: calc(var(--space-6) - var(--space-1)); }
641
+ /* #850: on the light page the table sits on the column, so its end cells are flush with the
642
+ column edges. The dense, zebra and compact end insets go, and the row table's --cell-edge
643
+ room is zeroed per cell rather than by redefining the token: the contrast walk reads
644
+ scoped custom properties flat, and a 0px winner would zero every row table it meets. */
645
+ :root[data-theme="light"] .ui-card .ui-table :is(th, td):first-child { padding-left: 0; }
646
+ :root[data-theme="light"] .ui-card .ui-table :is(th, td):last-child { padding-right: 0; }
647
+ :root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):first-child:not(:where(.ui-table--pinned) .ui-table__selection) { padding-left: 0; }
648
+ :root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):last-child { padding-right: 0; }
649
+ :root[data-theme="light"] .ui-card .ui-table td.ui-table__linked:first-child > :is(a:not([class]), a.ui-identity):only-child { padding-left: 0; }
650
+ :root[data-theme="light"] .ui-card .ui-table td.ui-table__linked:last-child > :is(a:not([class]), a.ui-identity):only-child { padding-right: 0; }
651
+ :root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:first-child > :is(a:not([class]), a.ui-identity):only-child { padding-left: 0; }
652
+ :root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:last-child > :is(a:not([class]), a.ui-identity):only-child { padding-right: 0; }
642
653
  /* In a drawer group the table hangs out by its end-cell inset, into the body's padding, so
643
654
  the first column starts on the edge of the group heading and the drawer title. */
644
655
  .ui-drawer .ui-drawer__section > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) {
@@ -124,8 +124,7 @@
124
124
  and declared SMALL on purpose: the pill rule above hands every strip
125
125
  --tap-gap, and this one has 4px of row to give, not 20. So a layer here can
126
126
  never reach past the gap it was promised, whatever a tab draws. A pill draws
127
- 31 tall and does want the full 20. #527, measured in
128
- stories/segmented-wrap.test.js. */
127
+ 31 tall and does want the full 20. #527 */
129
128
  .ui-seg--underline { row-gap: var(--space-1, 4px) !important; --tap-clear-y: var(--space-1, 4px); }
130
129
 
131
130
  /* Tabs are wide enough across; down, the panel under them has the room. */
@@ -148,8 +147,9 @@
148
147
  .ui-toolbar--split .ui-filter-bar { column-gap: calc(var(--tap-gap) + var(--space-1) + 1px) !important; }
149
148
  /* The table under a filter bar moves down with the chips: the bar's inner gap
150
149
  opens to --tap-gap too, so the last row's layers stop short of the table.
151
- In .ui-stack the bar's margin collapses with the block's 8px one. */
152
- :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--tap-gap) - var(--space-5, 20px)) !important; }
150
+ The stack's own gap is --ui-block-gap in each theme, so the margin takes it back.
151
+ In .ui-stack the bar's margin collapses with the block's 8px one. An open band keeps its 24px. */
152
+ :is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child, :has(+ .ui-stats--open)) { margin-bottom: calc(var(--tap-gap) - var(--ui-block-gap, 0px)) !important; }
153
153
  .ui-stack > .ui-toolbar:not(:last-child) { margin-bottom: var(--tap-gap) !important; --tap-clear-y: var(--tap-gap); }
154
154
 
155
155
  /* Inside a chip there is nothing to open: parting the value from its remove
@@ -219,6 +219,11 @@
219
219
  --tap-clear-y: var(--tap-gap);
220
220
  }
221
221
 
222
+ /* Full-width buttons stacked one per row — a detail page's Revoke access and
223
+ Create a new key, a task's Open document. The stack's own gap is the room,
224
+ so the layer opens down into it rather than widening the column. */
225
+ .ui-card-stack { --tap-clear-y: var(--tap-gap); }
226
+
222
227
  /* `.ui-seg`'s shape at seven columns: cells packed across — that tight track
223
228
  IS the control — opening down, where the sheet has the room. The rows
224
229
  inherit both clearances. React-only, so the browser half below reports no
@@ -151,11 +151,19 @@
151
151
  hold over EVERY opaque ground, which is why this is a token and not a context rule.
152
152
  Measured in stories/code-chip.test.js. */
153
153
  --wash-code-bg: var(--bg);
154
+ --code-chip-page: var(--surface); /* a chip on the page takes the card */
155
+ --code-chip-surface: var(--bg); /* a chip in a painted container takes the page */
156
+ /* The auth page's branded ground, brand C: a 135-degree gradient a product may override. */
157
+ --ui-auth-ground: linear-gradient(135deg, color-mix(in srgb, var(--color-apliteni-violet-1) 32%, var(--bg)), color-mix(in srgb, var(--color-apliteni-blue-1) 24%, var(--bg)));
158
+ /* The document page's bare backdrop, behind the A4 sheet: the same sunken rung a
159
+ table takes inside a viewer, named once so a page reads it as its own ground. */
160
+ --ui-document-ground: var(--surface-2);
154
161
  --surface-2: #161520; /* non-text sunken marks and tracks */
155
162
  --surface: #211e2d; /* the card */
156
163
  --bg-elevated: #2a2639; /* FLOATING — menus, panels, drawer, modal, toasts */
157
164
  --surface-3: #2d293c; /* non-text quiet fills */
158
165
  --seg-active-bg: #383350; /* raised pill — clearly above the inset track in dark */
166
+ --nav-active-fill: var(--surface); /* one rung off the page the open rail stands on */
159
167
  /* The raised handle on a control track (switch knob). White in both themes and under
160
168
  every accent: it reads on the plain track AND on the accent fill of an on control. */
161
169
  --control-knob: #ffffff;
@@ -397,15 +405,23 @@
397
405
  ON, and separates the panel that floats over it by role — its two-step edge and
398
406
  its drop — rather than by a rung it has nothing left to pay for. See issue #448.
399
407
  why: docs/foundations.md#elevation */
400
- --bg: #f2f3f6;
401
- --table-bg: #ffffff;
402
- --table-code-bg: var(--bg);
403
- --wash-code-bg: var(--surface);
408
+ --bg: #ffffff; /* the page takes the card's white, #850: --surface is #ffffff here, written out because gates read --bg without var() substitution */
409
+ --table-bg: var(--bg); /* a table is flush with the page */
410
+ --table-code-bg: var(--surface-3); /* a chip in a table takes a quiet fill: page and card are one white now */
411
+ --wash-code-bg: var(--surface-3); /* a chip on a wash takes a quiet fill for the same reason */
412
+ --code-chip-page: var(--surface-3); /* #850: page and card are one white, so a chip takes the quiet fill */
413
+ --code-chip-surface: var(--surface-3);
414
+ /* The auth page's branded ground, brand C: a 135-degree gradient a product may override. */
415
+ --ui-auth-ground: linear-gradient(135deg, var(--color-apliteni-violet-7), var(--color-apliteni-blue-8));
416
+ /* The document page's bare backdrop, behind the A4 sheet: the same sunken rung a
417
+ table takes inside a viewer, named once so a page reads it as its own ground. */
418
+ --ui-document-ground: var(--surface-2);
404
419
  --surface-2: #e9ecf3; /* non-text sunken marks and tracks */
405
420
  --surface: #ffffff; /* the card */
406
421
  --bg-elevated: #ffffff; /* FLOATING — menus, panels, drawer, modal, toasts */
407
422
  --surface-3: #eef0f5; /* non-text quiet fills */
408
423
  --seg-active-bg: #ffffff; /* white pill raised above the grey track in light */
424
+ --nav-active-fill: var(--surface-3); /* one rung off the white page, #850 */
409
425
  --control-knob: #ffffff;
410
426
  --border: #e4e7ee;
411
427
  --border-strong: #cdd2dc;
@@ -606,7 +622,7 @@
606
622
  * it is not using itself, and the chip keeps a step wherever it is written. The page hands
607
623
  * over the card below; every painted container hands over the page, in the recipe under it.
608
624
  * Held by stories/code-chip.test.js. why: docs/foundations.md#elevation */
609
- :root { --code-bg: var(--surface); }
625
+ :root { --code-bg: var(--code-chip-page); }
610
626
 
611
627
  /* Every painted container hands an inline code chip the page. One recipe keeps surface
612
628
  * propagation cheap and consistent. The ring is not in this list since #578: an outline
@@ -617,9 +633,6 @@
617
633
  .ui-app__rail,
618
634
  .ui-auth__card,
619
635
  .ui-callout,
620
- .ui-card,
621
- .ui-card--accent,
622
- .ui-card--live,
623
636
  .ui-card__page,
624
637
  .ui-cmdk__panel,
625
638
  .ui-confirm__panel,
@@ -628,6 +641,7 @@
628
641
  .ui-dropdown__panel,
629
642
  .ui-fbcomposer,
630
643
  .ui-filter-bar__chip,
644
+ .ui-float-bar,
631
645
  .ui-footer--app,
632
646
  .ui-seg,
633
647
  .ui-snippet--reveal,
@@ -642,7 +656,23 @@
642
656
  .ui-toast--outline,
643
657
  .ui-toast--solid,
644
658
  .vsw__menu {
645
- --code-bg: var(--bg);
659
+ --code-bg: var(--code-chip-surface);
660
+ }
661
+
662
+ /* #850: a card on the page draws no box, so a chip inside one sits on the page and takes
663
+ * the same surface a chip on the page takes. #850's review keeps the dark card's own
664
+ * paint, so a chip inside one takes the page, the rung below it — --code-chip-surface is
665
+ * the page's chip in dark and the page's chip in light, where the two agree. The split
666
+ * auth's plain half and its shell paint the page for the same reason, and a tinted card
667
+ * keeps the plain card as its step. */
668
+ .ui-card {
669
+ --code-bg: var(--code-chip-surface);
670
+ }
671
+ .ui-card--accent,
672
+ .ui-card--live,
673
+ .ui-auth--split,
674
+ .ui-auth--split .ui-auth__pane {
675
+ --code-bg: var(--code-chip-page);
646
676
  }
647
677
 
648
678
  /* The two painted grounds that are not a plain card, and what each has left to hand over.
@@ -672,10 +702,8 @@
672
702
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked):hover > :is(td, th) { --code-bg: var(--table-bg); }
673
703
  /* A hovered row in a drawer group takes --surface in dark, so a chip there keeps the page.
674
704
  The drawer adds no weight, so a checked row keeps the hand-off above. */
675
- :where(.ui-drawer .ui-drawer__section) .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--bg); }
705
+ :where(.ui-drawer .ui-drawer__section) .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--code-chip-surface); }
676
706
  :where(:root[data-theme="light"] .ui-drawer .ui-drawer__section) .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--surface); }
677
- .ui-card--accent,
678
- .ui-card--live,
679
707
  .ui-snippet--reveal { --code-bg: var(--surface); }
680
708
 
681
709
  /* A wash is not a rung: it is a layer the kit paints OVER one, and it paints behind a chip