@alis-build/design-system 0.47.0 → 0.49.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.
package/alisx.css CHANGED
@@ -181,10 +181,43 @@
181
181
  --state-pressed: 0.12;
182
182
  --state-statement: 0.04;
183
183
  --state-dragged: 0.08;
184
+ --spring-fast-spatial: 359ms linear(0, 0.023, 0.084, 0.172, 0.275, 0.386, 0.498, 0.606, 0.705, 0.794, 0.872, 0.936, 0.988, 1.028, 1.058, 1.078, 1.089, 1.094, 1.094, 1.089, 1.082, 1.073, 1.062, 1.052, 1.041, 1.032, 1.023, 1.015, 1.008, 1.003, 0.999, 0.996, 0.993, 0.992, 0.991, 0.991, 0.991, 0.992, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 1);
185
+ --spring-fast-spatial-duration: 359ms;
186
+ --spring-fast-spatial-easing: linear(0, 0.023, 0.084, 0.172, 0.275, 0.386, 0.498, 0.606, 0.705, 0.794, 0.872, 0.936, 0.988, 1.028, 1.058, 1.078, 1.089, 1.094, 1.094, 1.089, 1.082, 1.073, 1.062, 1.052, 1.041, 1.032, 1.023, 1.015, 1.008, 1.003, 0.999, 0.996, 0.993, 0.992, 0.991, 0.991, 0.991, 0.992, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 1);
187
+ --spring-default-spatial: 435ms linear(0, 0.011, 0.04, 0.083, 0.136, 0.196, 0.259, 0.324, 0.389, 0.453, 0.514, 0.572, 0.626, 0.677, 0.723, 0.765, 0.802, 0.836, 0.866, 0.892, 0.914, 0.934, 0.95, 0.964, 0.976, 0.986, 0.994, 1, 1.005, 1.008, 1.011, 1.013, 1.014, 1.015, 1.015, 1.015, 1.015, 1.014, 1.013, 1.012, 1.011, 1.01, 1.009, 1.008, 1.007, 1.006, 1.006, 1.005, 1.004, 1.004, 1.003, 1.002, 1.002, 1.002, 1.001, 1);
188
+ --spring-default-spatial-duration: 435ms;
189
+ --spring-default-spatial-easing: linear(0, 0.011, 0.04, 0.083, 0.136, 0.196, 0.259, 0.324, 0.389, 0.453, 0.514, 0.572, 0.626, 0.677, 0.723, 0.765, 0.802, 0.836, 0.866, 0.892, 0.914, 0.934, 0.95, 0.964, 0.976, 0.986, 0.994, 1, 1.005, 1.008, 1.011, 1.013, 1.014, 1.015, 1.015, 1.015, 1.015, 1.014, 1.013, 1.012, 1.011, 1.01, 1.009, 1.008, 1.007, 1.006, 1.006, 1.005, 1.004, 1.004, 1.003, 1.002, 1.002, 1.002, 1.001, 1);
190
+ --spring-slow-spatial: 484ms linear(0, 0.009, 0.032, 0.066, 0.109, 0.157, 0.208, 0.262, 0.316, 0.369, 0.422, 0.472, 0.521, 0.566, 0.609, 0.649, 0.686, 0.721, 0.752, 0.781, 0.807, 0.83, 0.852, 0.871, 0.888, 0.903, 0.916, 0.928, 0.939, 0.948, 0.956, 0.963, 0.969, 0.974, 0.979, 0.983, 0.986, 0.989, 0.992, 0.994, 0.995, 0.997, 0.998, 0.999, 0.999, 1, 1, 1.001, 1.001, 1.001, 1.001, 1.001, 1.002, 1.002, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1);
191
+ --spring-slow-spatial-duration: 484ms;
192
+ --spring-slow-spatial-easing: linear(0, 0.009, 0.032, 0.066, 0.109, 0.157, 0.208, 0.262, 0.316, 0.369, 0.422, 0.472, 0.521, 0.566, 0.609, 0.649, 0.686, 0.721, 0.752, 0.781, 0.807, 0.83, 0.852, 0.871, 0.888, 0.903, 0.916, 0.928, 0.939, 0.948, 0.956, 0.963, 0.969, 0.974, 0.979, 0.983, 0.986, 0.989, 0.992, 0.994, 0.995, 0.997, 0.998, 0.999, 0.999, 1, 1, 1.001, 1.001, 1.001, 1.001, 1.001, 1.002, 1.002, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1.001, 1);
193
+ --spring-fast-effects: 150ms linear(0, 0.086, 0.253, 0.427, 0.578, 0.697, 0.787, 0.853, 0.899, 0.932, 0.954, 0.969, 0.98, 0.987, 0.991, 0.994, 0.996, 0.998, 0.998, 1);
194
+ --spring-fast-effects-duration: 150ms;
195
+ --spring-fast-effects-easing: linear(0, 0.086, 0.253, 0.427, 0.578, 0.697, 0.787, 0.853, 0.899, 0.932, 0.954, 0.969, 0.98, 0.987, 0.991, 0.994, 0.996, 0.998, 0.998, 1);
196
+ --spring-default-effects: 231ms linear(0, 0.041, 0.134, 0.247, 0.363, 0.472, 0.568, 0.652, 0.722, 0.779, 0.826, 0.864, 0.894, 0.918, 0.936, 0.951, 0.962, 0.971, 0.978, 0.983, 0.987, 0.99, 0.993, 0.994, 0.996, 0.997, 0.998, 0.998, 0.999, 1);
197
+ --spring-default-effects-duration: 231ms;
198
+ --spring-default-effects-easing: linear(0, 0.041, 0.134, 0.247, 0.363, 0.472, 0.568, 0.652, 0.722, 0.779, 0.826, 0.864, 0.894, 0.918, 0.936, 0.951, 0.962, 0.971, 0.978, 0.983, 0.987, 0.99, 0.993, 0.994, 0.996, 0.997, 0.998, 0.998, 0.999, 1);
199
+ --spring-slow-effects: 326ms linear(0, 0.022, 0.075, 0.147, 0.227, 0.31, 0.391, 0.467, 0.537, 0.6, 0.657, 0.707, 0.751, 0.789, 0.822, 0.85, 0.874, 0.895, 0.912, 0.926, 0.939, 0.949, 0.958, 0.965, 0.971, 0.976, 0.98, 0.984, 0.987, 0.989, 0.991, 0.993, 0.994, 0.995, 0.996, 0.997, 0.997, 0.998, 0.998, 0.998, 0.999, 1);
200
+ --spring-slow-effects-duration: 326ms;
201
+ --spring-slow-effects-easing: linear(0, 0.022, 0.075, 0.147, 0.227, 0.31, 0.391, 0.467, 0.537, 0.6, 0.657, 0.707, 0.751, 0.789, 0.822, 0.85, 0.874, 0.895, 0.912, 0.926, 0.939, 0.949, 0.958, 0.965, 0.971, 0.976, 0.98, 0.984, 0.987, 0.989, 0.991, 0.993, 0.994, 0.995, 0.996, 0.997, 0.997, 0.998, 0.998, 0.998, 0.999, 1);
184
202
  --font-sans: "Nunito Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
185
203
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
186
204
  }
187
205
 
206
+ /* Reduced motion: nothing travels, and the fades stay, so nothing jump-cuts (rules/motion.md). */
207
+ @media (prefers-reduced-motion: reduce) {
208
+ :root {
209
+ --spring-fast-spatial: 0s linear;
210
+ --spring-fast-spatial-duration: 0ms;
211
+ --spring-fast-spatial-easing: linear;
212
+ --spring-default-spatial: 0s linear;
213
+ --spring-default-spatial-duration: 0ms;
214
+ --spring-default-spatial-easing: linear;
215
+ --spring-slow-spatial: 0s linear;
216
+ --spring-slow-spatial-duration: 0ms;
217
+ --spring-slow-spatial-easing: linear;
218
+ }
219
+ }
220
+
188
221
  /* Themes: light unless asked. data-theme works on any element (rules/themes.md). */
189
222
  [data-theme="light"] { color-scheme: light; }
190
223
  [data-theme="dark"] { color-scheme: dark; }
@@ -395,7 +428,7 @@ button, input, textarea, select { font: inherit; }
395
428
 
396
429
  /* ── State layer: hover / focus / pressed over any interactive element ── */
397
430
  .app-state{position:relative;isolation:isolate;cursor:pointer;-webkit-tap-highlight-color:transparent}
398
- .app-state::before{content:"";position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--dur-effects) var(--motion-effects)}
431
+ .app-state::before{content:"";position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--spring-fast-effects)}
399
432
  .app-state:hover::before{opacity:var(--state-hover)}
400
433
  .app-state:focus-visible::before{opacity:var(--state-focus)}
401
434
  .app-state:active::before{opacity:var(--state-pressed)}
@@ -412,7 +445,7 @@ button, input, textarea, select { font: inherit; }
412
445
  .app-btn .app-icon{font-size:16px;margin-left:calc(var(--space-8) * -1)}
413
446
  /* A trailing glyph (open_in_new, a menu's chevron) pulls into the end padding instead */
414
447
  .app-btn .app-icon--trailing{margin-left:0;margin-right:calc(var(--space-8) * -1)}
415
- .app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);font-weight:700;transition:border-radius var(--dur-spatial) var(--motion-spatial),transform var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
448
+ .app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);font-weight:700;transition:border-radius var(--spring-fast-spatial),transform var(--spring-fast-spatial),background-color var(--spring-fast-effects)}
416
449
  .app-btn--outlined{border:1px solid var(--outline-variant);background:var(--surface)}
417
450
  .app-btn--error{color:var(--error)}
418
451
  .app-btn--filled.app-btn--error{background:var(--error);color:var(--on-error)}
@@ -576,7 +609,7 @@ a.app-row,a.app-card{text-decoration:none}
576
609
  .app-titlebar__leading{margin-left:calc(var(--space-12) * -1)}
577
610
  .app-titlebar__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);margin-left:auto}
578
611
  .app-titlebar.is-scrolled,.app-file-pane__bar.is-scrolled{box-shadow:inset 0 -1px 0 var(--outline-variant)}
579
- @media (prefers-reduced-motion:no-preference){.app-titlebar,.app-file-pane__bar{transition:box-shadow var(--dur-effects) var(--motion-effects)}}
612
+ .app-titlebar,.app-file-pane__bar{transition:box-shadow var(--spring-fast-effects)}
580
613
  .app-search{display:flex;align-items:center;gap:var(--space-8);height:var(--control-height);padding:0 var(--space-16);border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px}
581
614
  .app-search__clear{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant)}
582
615
  .app-search:focus-within{outline:2px solid var(--primary);outline-offset:1px}
@@ -627,13 +660,13 @@ a.app-row,a.app-card{text-decoration:none}
627
660
  .app-skel__row--plain .app-skel__dot{display:none}
628
661
  .app-skel__dot{width:24px;height:24px;border-radius:var(--radius-pill);background:var(--surface-container-highest);flex:none}
629
662
  .app-skel__lines{display:flex;flex-direction:column;gap:var(--space-8);flex:1}
630
- @media (prefers-reduced-motion:no-preference){.app-skel__bar::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--shimmer),transparent);opacity:.6;animation:app-shimmer 1.4s var(--motion-effects) infinite}}
663
+ @media (prefers-reduced-motion:no-preference){.app-skel__bar::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--shimmer),transparent);opacity:.6;animation:app-shimmer 1.4s ease-in-out infinite}}
631
664
  @keyframes app-shimmer{to{transform:translateX(100%)}}
632
665
 
633
666
  /* ── Loader · the Alis mark, in signal ── */
634
667
  .app-loader{display:flex;flex-direction:column;align-items:center;gap:var(--space-16);color:var(--on-surface-variant)}
635
668
  .app-loader--line{display:inline-flex;flex-direction:row;gap:var(--space-8)}
636
- @media (prefers-reduced-motion:no-preference){.app-loader circle{animation:app-dot 1.2s var(--motion-effects) infinite both}}
669
+ @media (prefers-reduced-motion:no-preference){.app-loader circle{animation:app-dot 1.2s ease-in-out infinite both}}
637
670
  .app-loader circle:nth-child(1){animation-delay:0s}.app-loader circle:nth-child(2){animation-delay:.08s}.app-loader circle:nth-child(3){animation-delay:.16s}.app-loader circle:nth-child(4){animation-delay:.24s}.app-loader circle:nth-child(5){animation-delay:.32s}.app-loader circle:nth-child(6){animation-delay:.4s}.app-loader circle:nth-child(7){animation-delay:.48s}.app-loader circle:nth-child(8){animation-delay:.56s}.app-loader circle:nth-child(9){animation-delay:.64s}.app-loader circle:nth-child(10){animation-delay:.72s}.app-loader circle:nth-child(11){animation-delay:.8s}
638
671
  @keyframes app-dot{0%,100%{opacity:1}50%{opacity:.25}}
639
672
 
@@ -785,8 +818,8 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
785
818
  .app-switch-row{position:relative;display:flex;align-items:center;gap:var(--space-16);min-height:max(48px,var(--touch-target));color:var(--on-surface);cursor:pointer}
786
819
  .app-switch-row__text{display:flex;flex-direction:column;flex:1;min-width:0}
787
820
  .app-switch-row__text .text-supporting{color:var(--on-surface-variant)}
788
- .app-switch{position:relative;flex:none;width:52px;height:32px;margin:0;border:2px solid var(--outline);border-radius:var(--radius-pill);background:var(--surface-container-highest);appearance:none;-webkit-appearance:none;cursor:pointer;transition:background-color var(--dur-effects) var(--motion-effects),border-color var(--dur-effects) var(--motion-effects)}
789
- .app-switch::before{content:"";position:absolute;top:50%;left:6px;width:16px;height:16px;border-radius:var(--radius-pill);background:var(--outline);transform:translateY(-50%);transition:left var(--dur-spatial) var(--motion-spatial),width var(--dur-spatial) var(--motion-spatial),height var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
821
+ .app-switch{position:relative;flex:none;width:52px;height:32px;margin:0;border:2px solid var(--outline);border-radius:var(--radius-pill);background:var(--surface-container-highest);appearance:none;-webkit-appearance:none;cursor:pointer;transition:background-color var(--spring-fast-effects),border-color var(--spring-fast-effects)}
822
+ .app-switch::before{content:"";position:absolute;top:50%;left:6px;width:16px;height:16px;border-radius:var(--radius-pill);background:var(--outline);transform:translateY(-50%);transition:left var(--spring-fast-spatial),width var(--spring-fast-spatial),height var(--spring-fast-spatial),background-color var(--spring-fast-effects)}
790
823
  .app-switch:checked{border-color:var(--primary);background:var(--primary)}
791
824
  .app-switch:checked::before{left:22px;width:24px;height:24px;background:var(--on-primary)}
792
825
  .app-switch:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
@@ -801,7 +834,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
801
834
  .app-progress__head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-16)}
802
835
  .app-progress__value{color:var(--on-surface-variant);font-variant-numeric:tabular-nums}
803
836
  .app-progress__track{position:relative;height:4px;border-radius:var(--radius-pill);background:var(--surface-container-highest);overflow:hidden}
804
- .app-progress__fill{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--on-surface);transition:width var(--dur-effects) var(--motion-effects)}
837
+ .app-progress__fill{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--on-surface);transition:width var(--spring-default-effects)}
805
838
  .app-progress.is-error .app-progress__fill{background:var(--error)}
806
839
 
807
840
  /* ── Steps · the stages of a long piece of work ── */
@@ -931,7 +964,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
931
964
 
932
965
  /* ── Composer · where you write to Alis, an agent or a person: tray, editor, row; one line below ── */
933
966
  .app-composer{position:relative;display:flex;flex-direction:column;gap:var(--space-8);width:100%;max-width:var(--measure-prose);margin-inline:auto}
934
- .app-composer__box{position:relative;z-index:1;display:flex;flex-direction:column;padding:var(--space-8);border-radius:var(--radius-xl);background:var(--surface-container-high);box-shadow:var(--elevation-2);transition:background-color var(--dur-effects) var(--motion-effects),box-shadow var(--dur-effects) var(--motion-effects)}
967
+ .app-composer__box{position:relative;z-index:1;display:flex;flex-direction:column;padding:var(--space-8);border-radius:var(--radius-xl);background:var(--surface-container-high);box-shadow:var(--elevation-2);transition:background-color var(--spring-fast-effects),box-shadow var(--spring-fast-effects)}
935
968
  /* Audience is a message property, kept above the draft even when its error line changes. */
936
969
  .app-composer__audience{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-12);padding:var(--space-8) var(--space-12) var(--space-12);border-bottom:1px solid var(--outline-variant)}
937
970
  .app-composer__audience .app-field{flex:1 1 24ch;min-width:0;max-width:100%}
@@ -950,7 +983,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
950
983
  /* A voice state carries its word: the only way into voice, and people meet it before they know the product. */
951
984
  .app-composer__go:has(>.app-composer__go-label){width:auto;gap:var(--space-8);padding:0 var(--space-16) 0 var(--space-12)}
952
985
  .app-composer__go-label{font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap}
953
- @media (prefers-reduced-motion:no-preference){.app-composer__go{transition:transform var(--dur-spatial) var(--motion-spatial)}.app-composer__go:not(:disabled):active{transform:scale(.94)}}
986
+ @media (prefers-reduced-motion:no-preference){.app-composer__go{transition:transform var(--spring-fast-spatial)}.app-composer__go:not(:disabled):active{transform:scale(.94)}}
954
987
  /* Recording: the level wears ai-you, the voice light's "you're speaking" */
955
988
  .app-composer__meter{flex:1;min-width:0;height:32px;display:flex;align-items:center;justify-content:center;gap:3px;overflow:hidden;color:var(--ai-you)}
956
989
  .app-composer__meter>i{display:block;flex:none;width:3px;height:4px;border-radius:2px;background:currentColor}
@@ -961,7 +994,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
961
994
  .app-field__voice>:last-child{margin-left:auto}
962
995
  .app-field__rec{display:inline-flex;align-items:center;gap:var(--space-8);color:var(--on-surface)}
963
996
  .app-composer__rec::before,.app-field__rec::before{content:"";width:8px;height:8px;border-radius:var(--radius-pill);background:var(--error)}
964
- @media (prefers-reduced-motion:no-preference){.app-composer__rec::before,.app-field__rec::before{animation:app-dot 1.2s var(--motion-effects) infinite both}}
997
+ @media (prefers-reduced-motion:no-preference){.app-composer__rec::before,.app-field__rec::before{animation:app-dot 1.2s ease-in-out infinite both}}
965
998
  .app-composer__timer{padding-inline:var(--space-8);font-variant-numeric:tabular-nums;color:var(--on-surface)}
966
999
  /* A capture beside the conversation (a screen recording): a band docked on top of the box the way an ask docks, 20 in, a hairline under it. The editor stays writable; Send stays the one filled button, so Stop is error ink, unfilled (rules/buttons.md § Colour) */
967
1000
  .app-composer__capture{display:flex;align-items:center;gap:var(--space-4);min-height:40px;padding:0 0 var(--space-4) var(--space-12);margin-bottom:var(--space-4);border-bottom:1px solid var(--outline-variant)}
@@ -1005,7 +1038,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
1005
1038
  .app-composer.is-locked .app-composer__editor{color:var(--on-surface-variant)}
1006
1039
  /* The voice light, behind the composer in a call: cool while you speak, warm while Alis does */
1007
1040
  .app-composer__light{position:absolute;z-index:0;inset:-40px -64px;pointer-events:none;filter:blur(28px)}
1008
- .app-composer__light::before,.app-composer__light::after,.app-voice__orb::before,.app-voice__orb::after{content:"";position:absolute;inset:0;border-radius:50%;transition:opacity var(--dur-panel) var(--ease-standard)}
1041
+ .app-composer__light::before,.app-composer__light::after,.app-voice__orb::before,.app-voice__orb::after{content:"";position:absolute;inset:0;border-radius:50%;transition:opacity var(--spring-slow-effects)}
1009
1042
  .app-composer__light::before{background:radial-gradient(closest-side,color-mix(in srgb,var(--ai-you) 34%,var(--ai-you-container)) 55%,transparent)}
1010
1043
  .app-composer__light::after{opacity:0;background:radial-gradient(closest-side,color-mix(in srgb,var(--ai-alis) 26%,var(--ai-alis-container)) 55%,transparent)}
1011
1044
  .is-alis>.app-composer__light::before,.is-alis .app-voice__orb::before{opacity:0}
@@ -1014,6 +1047,45 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
1014
1047
  @media (prefers-reduced-motion:no-preference){.app-composer__light,.app-voice__orb{animation:app-breathe 3.2s var(--ease-standard) infinite alternate}}
1015
1048
  @keyframes app-breathe{from{transform:scale(.96)}to{transform:scale(1.04)}}
1016
1049
 
1050
+ /* ── Dock · a composer docked at the foot of a screen as the way in to Alis. Sticky, the last child of the content that
1051
+ scrolls: its own height keeps the last line clear, so a page never adds space for it, and at the end it sits under
1052
+ the last line. While you read down it settles into Ask Alis at its own foot ── */
1053
+ .app-dock{--app-trace-width:120px;position:sticky;z-index:1;bottom:0;flex:none;margin-top:auto;padding:var(--space-32) 0 calc(var(--space-16) + env(safe-area-inset-bottom,0px));pointer-events:none}
1054
+ .app-shell__content:has(>.app-dock){padding-bottom:0}
1055
+ .app-dock::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent,var(--background) var(--space-32));transform-origin:bottom;transition:transform var(--spring-default-spatial)}
1056
+ @media (max-width:599px){.app-dock{padding:var(--space-24) 0 calc(var(--space-12) + env(safe-area-inset-bottom,0px))}}
1057
+ /* Above the keyboard the composer needs no safe-area inset */
1058
+ @media (max-width:599px) and (pointer:coarse){.app-dock:focus-within{padding-bottom:var(--space-12)}}
1059
+ .app-dock .app-composer__box,.app-dock .app-composer__line{pointer-events:auto}
1060
+ /* The box is clipped onto Ask Alis, so its edge closes over what it holds; nothing reflows and the textarea is the same
1061
+ node. The shadow is a drop-shadow on .app-composer__lift, which wraps the box alone, so it follows the clip. */
1062
+ .app-composer__lift{position:relative;z-index:1;filter:drop-shadow(0 1px 2px var(--shadow-key)) drop-shadow(0 4px 12px var(--shadow-ambient));transition:filter var(--spring-fast-effects)}
1063
+ .app-composer.is-locked .app-composer__lift{filter:none}
1064
+ .app-dock .app-composer__box{box-shadow:none;clip-path:inset(0 round var(--radius-xl));transition:clip-path var(--spring-default-spatial),background-color var(--spring-fast-effects)}
1065
+ .app-dock .app-composer__box>:not(.app-composer__trace){transition:opacity var(--spring-default-effects) var(--spring-fast-effects-duration),transform var(--spring-default-spatial) var(--spring-fast-effects-duration)}
1066
+ @media (max-width:599px){.app-dock .app-composer__row>*{transition:opacity var(--spring-default-effects) var(--spring-fast-effects-duration),transform var(--spring-fast-spatial)}}
1067
+ .app-composer__trace{position:absolute;z-index:1;left:50%;bottom:0;display:none;align-items:center;justify-content:center;gap:var(--space-8);width:var(--app-trace-width);height:40px;padding:0 var(--space-16) 0 var(--space-12);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;cursor:pointer;opacity:0;pointer-events:none;transform:translateX(-50%);transition:opacity var(--spring-fast-effects)}
1068
+ .app-dock .app-composer__trace{display:inline-flex}
1069
+ .app-composer__trace>svg,.app-selection-ask>svg{flex:none;width:12px;height:20px}
1070
+ /* Settled: the box closes onto its foot, the editor and the row fade and drop 6px, Ask Alis fades in near the end */
1071
+ .app-dock .app-composer.is-settled .app-composer__box{clip-path:inset(calc(100% - 40px) calc(50% - var(--app-trace-width) / 2) 0 round 20px)}
1072
+ .app-dock .app-composer.is-settled .app-composer__box>:not(.app-composer__trace){opacity:0;transform:translateY(6px);transition:opacity var(--spring-fast-effects),transform var(--spring-default-spatial)}
1073
+ @media (max-width:599px){.app-dock .app-composer.is-settled .app-composer__row>*{opacity:0;transition:opacity var(--spring-fast-effects)}.app-dock .app-composer.is-settled .app-composer__box>.app-composer__editor{transform:none}}
1074
+ .app-dock .app-composer.is-settled .app-composer__trace{opacity:1;pointer-events:auto;transition:opacity var(--spring-default-effects) var(--spring-fast-effects-duration)}
1075
+ .app-dock:has(.app-composer.is-settled)::before{transform:scaleY(.62)}
1076
+ /* A snackbar on a screen with a dock rises above the composer at rest */
1077
+ :root:has(.app-dock) .app-snackbar{bottom:calc(128px + env(safe-area-inset-bottom,0px))}
1078
+ @media (max-width:599px){:root:has(.app-dock) .app-snackbar{bottom:calc(96px + env(safe-area-inset-bottom,0px))}}
1079
+ /* A quote from the page, in the tray: what you selected and asked about, with the system's quote rule */
1080
+ .app-composer__quote{position:relative;display:flex;align-items:flex-start;gap:var(--space-8);max-width:100%;padding:var(--space-8) var(--space-8) var(--space-8) var(--space-24);border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface-variant);font-size:14px;line-height:20px}
1081
+ .app-composer__quote::before{content:"";position:absolute;inset-block:var(--space-8);inset-inline-start:var(--space-8);width:4px;border-radius:2px;background:var(--outline)}
1082
+ .app-composer__tray>.app-composer__quote{width:100%}
1083
+ .app-composer__quote-text{flex:1;min-width:0;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
1084
+ .app-composer__quote .app-icon-btn.app-state{flex:none;width:24px;height:24px}
1085
+ .app-composer__quote .app-icon-btn .app-icon{font-size:16px}
1086
+ /* Ask Alis over a selection on the page: the same pill as the settled dock, floating at elevation-2 */
1087
+ .app-selection-ask{position:fixed;z-index:3;display:inline-flex;align-items:center;gap:var(--space-8);height:40px;padding:0 var(--space-16) 0 var(--space-12);border:0;border-radius:var(--radius-pill);background:var(--surface-container-high);color:var(--on-surface);box-shadow:var(--elevation-2);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;cursor:pointer}
1088
+
1017
1089
  /* ── Attachment · a file, recording or queued message in the composer's tray, and in the sent message ── */
1018
1090
  .app-attachment{position:relative;display:flex;align-items:center;gap:var(--space-12);width:232px;max-width:100%;height:56px;padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface-container-low)}
1019
1091
  .app-attachment__glyph{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--surface);color:var(--on-surface-variant)}
@@ -1094,7 +1166,7 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1094
1166
  .app-turn__mark{display:inline-flex;flex:none}
1095
1167
  .app-turn__status{color:var(--on-surface-variant)}
1096
1168
  .app-turn__worked{align-self:flex-start;display:inline-flex;align-items:center;gap:var(--space-4);min-height:32px;margin-left:calc(var(--space-8) * -1);padding:0 var(--space-8);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:400}
1097
- .app-turn__worked .app-icon{transition:transform var(--dur-effects) var(--motion-effects)}
1169
+ .app-turn__worked .app-icon{transition:transform var(--spring-default-spatial)}
1098
1170
  .app-turn__worked[aria-expanded="true"] .app-icon{transform:rotate(180deg)}
1099
1171
  .app-turn__steps{display:flex;flex-direction:column;gap:var(--space-8);margin:0 0 var(--space-8);padding:var(--space-4) 0 var(--space-4) var(--space-16);border-left:1px solid var(--outline-variant);list-style:none;color:var(--on-surface-variant)}
1100
1172
  .app-turn__steps[hidden]{display:none}
@@ -1108,13 +1180,13 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1108
1180
  .app-turn--them .app-turn__row{justify-content:flex-start}
1109
1181
  .app-turn__bubble{min-width:0;max-width:80%;padding:var(--space-12) var(--space-16);border-radius:var(--radius-lg);background:var(--surface-container-low);color:var(--on-surface);font-family:var(--font-sans);font-size:16px;line-height:24px;font-weight:400;white-space:pre-line;overflow-wrap:anywhere}
1110
1182
  .app-turn__bubble--voice{width:400px;padding:var(--space-8) var(--space-16) var(--space-12) var(--space-8);white-space:normal}
1111
- .app-turn__tools{display:flex;opacity:0;transition:opacity var(--dur-effects) var(--motion-effects)}
1183
+ .app-turn__tools{display:flex;opacity:0;transition:opacity var(--spring-fast-effects)}
1112
1184
  .app-turn:hover .app-turn__tools,.app-turn:focus-within .app-turn__tools{opacity:1}
1113
1185
  .app-turn__files{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:var(--space-8);max-width:80%}
1114
1186
  .app-turn--them .app-turn__files{justify-content:flex-start}
1115
1187
  .app-turn__image{display:block;width:240px;max-width:100%;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface-container-low)}
1116
1188
  .app-turn__image img{display:block;width:100%;height:auto}
1117
- .app-turn__foot{display:flex;align-items:center;min-height:32px;margin-top:var(--space-4);transition:opacity var(--dur-effects) var(--motion-effects)}
1189
+ .app-turn__foot{display:flex;align-items:center;min-height:32px;margin-top:var(--space-4);transition:opacity var(--spring-fast-effects)}
1118
1190
  .app-turn__foot .app-icon-btn:first-child{margin-left:-6px}
1119
1191
  .app-turn--alis:not(.is-latest) .app-turn__foot{position:absolute;top:100%;left:0;margin:0;opacity:0}
1120
1192
  .app-turn--alis:not(.is-latest):hover .app-turn__foot,.app-turn--alis:not(.is-latest):focus-within .app-turn__foot{opacity:1}
@@ -1270,7 +1342,7 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1270
1342
  @media (pointer:coarse){.app-check-row{min-height:var(--touch-target-coarse);padding:var(--space-12) 0}}
1271
1343
  .app-check-row__text{display:flex;flex-direction:column;flex:1;min-width:0}
1272
1344
  .app-check-row__text .text-supporting{color:var(--on-surface-variant)}
1273
- .app-checkbox,.app-radio{position:relative;flex:none;width:18px;height:18px;margin:3px;border:2px solid var(--on-surface-variant);background:transparent;appearance:none;-webkit-appearance:none;cursor:pointer;transition:background-color var(--dur-effects) var(--motion-effects),border-color var(--dur-effects) var(--motion-effects),box-shadow var(--dur-effects) var(--motion-effects)}
1345
+ .app-checkbox,.app-radio{position:relative;flex:none;width:18px;height:18px;margin:3px;border:2px solid var(--on-surface-variant);background:transparent;appearance:none;-webkit-appearance:none;cursor:pointer;transition:background-color var(--spring-fast-effects),border-color var(--spring-fast-effects),box-shadow var(--spring-fast-effects)}
1274
1346
  .app-checkbox{border-radius:var(--radius-xs)}
1275
1347
  .app-radio{width:20px;height:20px;margin:2px;border-radius:var(--radius-pill)}
1276
1348
  .app-checkbox:checked,.app-checkbox:indeterminate,.app-checkbox.is-checked{border-color:var(--primary);background:var(--primary)}
@@ -1290,7 +1362,7 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1290
1362
  .app-combo{position:relative}
1291
1363
  .app-combo__trigger{width:100%;font-family:var(--font-sans);font-size:16px;line-height:24px;text-align:left;cursor:pointer;outline:none}
1292
1364
  .app-combo__trigger:focus-visible,.app-combo__trigger[aria-expanded="true"]{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
1293
- .app-combo__trigger>.app-icon{flex:none;transition:transform var(--dur-effects) var(--motion-effects)}
1365
+ .app-combo__trigger>.app-icon{flex:none;transition:transform var(--spring-default-spatial)}
1294
1366
  .app-combo__trigger[aria-expanded="true"]>.app-icon{transform:rotate(180deg)}
1295
1367
  .app-combo__value{display:flex;align-items:center;gap:var(--space-8);flex:1;min-width:0;color:var(--on-surface)}
1296
1368
  .app-combo__value.is-placeholder{color:var(--on-surface-variant)}
@@ -1311,7 +1383,7 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1311
1383
  .app-disclosure__summary::-webkit-details-marker{display:none}
1312
1384
  .app-disclosure__text{display:flex;flex-direction:column;flex:1;min-width:0}
1313
1385
  .app-disclosure__text .text-supporting{color:var(--on-surface-variant)}
1314
- .app-disclosure__summary>.app-icon:last-child{flex:none;color:var(--on-surface-variant);transition:transform var(--dur-effects) var(--motion-effects)}
1386
+ .app-disclosure__summary>.app-icon:last-child{flex:none;color:var(--on-surface-variant);transition:transform var(--spring-default-spatial)}
1315
1387
  .app-disclosure[open]>.app-disclosure__summary>.app-icon:last-child{transform:rotate(180deg)}
1316
1388
  .app-disclosure__body{padding:var(--space-4) 0 var(--space-16)}
1317
1389
  .app-disclosure-group{display:flex;flex-direction:column}
@@ -1322,3 +1394,137 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1322
1394
 
1323
1395
  /* ── Scrollbars · one treatment for the app ── */
1324
1396
  *{scrollbar-width:thin;scrollbar-color:var(--outline-variant) transparent}
1397
+
1398
+ /* ── Motion · every move is a spring (rules/motion.md). It hangs off the state each component already has: hidden, [open],
1399
+ aria-pressed, is-selected, the shell's classes; is-arriving marks what arrives while someone watches, so a page's first
1400
+ draw stays still. Fast and default spatial overshoot a little; slow spatial and effects never do. Leaving is a
1401
+ fast-effects fade. Under reduced motion the spatial springs are 0s: things appear in place and still fade (the block
1402
+ at the end keeps a fade where a move was all there was). Nothing keeps a clip at rest, so a popup inside is never cut. ── */
1403
+ :root{interpolate-size:allow-keywords}
1404
+ @keyframes app-fade-in{from{opacity:0}}
1405
+ @keyframes app-fade-out{to{opacity:0}}
1406
+ @keyframes app-from-end{from{translate:var(--space-24) 0}}
1407
+ @keyframes app-from-start{from{translate:calc(var(--space-24) * -1) 0}}
1408
+ /* Reveals: the clip opens along one axis, 40px outside the box so the deepest shadow shows, and is gone once it has played */
1409
+ @keyframes app-reveal-down{from{clip-path:inset(-40px -40px calc(100% + 40px) -40px)}to{clip-path:inset(-40px)}}
1410
+ @keyframes app-reveal-up{from{clip-path:inset(calc(100% + 40px) -40px -40px -40px)}to{clip-path:inset(-40px)}}
1411
+ @keyframes app-reveal-middle{from{clip-path:inset(30% -40px 30% -40px)}to{clip-path:inset(-40px)}}
1412
+
1413
+ /* Icons that change their meaning: two glyphs in one slot. The one leaving turns away and fades; then the other springs in */
1414
+ .app-icon-swap{display:inline-grid;place-items:center;flex:none}
1415
+ .app-icon-swap>.app-icon{grid-area:1/1;transition:opacity var(--spring-fast-effects),scale var(--spring-fast-spatial),rotate var(--spring-fast-spatial)}
1416
+ .app-icon-swap>.app-icon:last-child,.app-icon-swap.is-swapped>.app-icon:first-child{opacity:0;scale:.4;rotate:-60deg}
1417
+ .app-icon-swap:not(.is-swapped)>.app-icon:first-child,.app-icon-swap.is-swapped>.app-icon:last-child{opacity:1;scale:1;rotate:0deg;transition:opacity var(--spring-fast-effects) var(--spring-fast-effects-duration),scale var(--spring-fast-spatial) var(--spring-fast-effects-duration),rotate var(--spring-fast-spatial) var(--spring-fast-effects-duration)}
1418
+ .app-btn .app-icon-swap{margin-left:calc(var(--space-8) * -1)}
1419
+ .app-btn .app-icon-swap>.app-icon{margin:0}
1420
+ /* A toggle turning on: its glyph gives under the press and springs back filled */
1421
+ .app-icon-btn>.app-icon{transition:scale var(--spring-fast-spatial),font-variation-settings var(--spring-fast-effects)}
1422
+ @media (prefers-reduced-motion:no-preference){.app-icon-btn[aria-pressed="false"]:active>.app-icon{scale:.8}}
1423
+
1424
+ /* Selection that travels: the site sets --indicator-left and --indicator-width to the selected item's offsetLeft and
1425
+ offsetWidth, then adds the modifier, so the indicator is drawn where it belongs and moves only on a change */
1426
+ .app-tabs{--tab-inset:var(--space-32)}
1427
+ @media (max-width:599px){.app-tabs{--tab-inset:var(--space-16)}}
1428
+ .app-tabs--travel{position:relative}
1429
+ .app-tabs--travel>.app-tab.is-selected::after{content:none}
1430
+ .app-tabs--travel::after{content:"";position:absolute;bottom:0;left:0;width:calc(var(--indicator-width,0px) - 2 * var(--tab-inset));height:3px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:var(--on-surface);translate:calc(var(--indicator-left,0px) + var(--tab-inset)) 0;pointer-events:none;transition:translate var(--spring-default-spatial),width var(--spring-default-spatial)}
1431
+ .app-seg--travel{position:relative;isolation:isolate}
1432
+ .app-seg--travel::before{content:"";position:absolute;top:var(--space-4);bottom:var(--space-4);left:0;width:var(--indicator-width,0px);border:1px solid var(--outline-variant);border-radius:var(--radius-pill);background:var(--surface);translate:var(--indicator-left,0px) 0;pointer-events:none;transition:translate var(--spring-default-spatial),width var(--spring-default-spatial)}
1433
+ .app-seg--travel>.app-seg__item{position:relative;z-index:1}
1434
+ .app-seg--travel>.app-seg__item.is-selected{border-color:transparent;background:transparent}
1435
+
1436
+ /* Expand and collapse: the fold opens to its height, then its rows fade in. It clips only while it moves, so a field's
1437
+ panel inside an open one is never cut. Height animates where the browser has interpolate-size; elsewhere it opens at
1438
+ once and the rows still fade */
1439
+ .app-disclosure::details-content{block-size:0;overflow-y:clip;transition:block-size var(--spring-default-spatial),content-visibility var(--spring-default-spatial) allow-discrete,overflow-y 0s allow-discrete}
1440
+ .app-disclosure[open]::details-content{block-size:auto;overflow-y:visible;transition:block-size var(--spring-default-spatial),content-visibility var(--spring-default-spatial) allow-discrete,overflow-y 0s var(--spring-default-spatial-duration) allow-discrete}
1441
+ .app-disclosure>.app-disclosure__body{transition:opacity var(--spring-fast-effects)}
1442
+ .app-disclosure:not([open])>.app-disclosure__body{opacity:0}
1443
+ .app-disclosure[open]>.app-disclosure__body{transition:opacity var(--spring-default-effects) var(--spring-fast-effects-duration)}
1444
+ @starting-style{.app-disclosure[open]>.app-disclosure__body{opacity:0}}
1445
+ .app-turn__steps{min-block-size:0;overflow-y:clip;transition:block-size var(--spring-default-spatial),padding-block var(--spring-default-spatial),margin-bottom var(--spring-default-spatial),opacity var(--spring-default-effects) var(--spring-fast-effects-duration),display var(--spring-default-spatial) allow-discrete}
1446
+ .app-turn__steps[hidden]{block-size:0;padding-block:0;margin-bottom:0;opacity:0;transition:block-size var(--spring-default-spatial),padding-block var(--spring-default-spatial),margin-bottom var(--spring-default-spatial),opacity var(--spring-fast-effects),display var(--spring-default-spatial) allow-discrete}
1447
+ @starting-style{.app-turn__steps:not([hidden]){block-size:0;padding-block:0;margin-bottom:0;opacity:0}}
1448
+
1449
+ /* Enter and exit within the screen: grow out of where it lives along one axis (a reveal, never a scale) and fade in;
1450
+ leave as a fade. Toggle hidden and the exit runs; an element removed at once just goes */
1451
+ .app-menu{animation:app-reveal-down var(--spring-default-spatial),app-fade-in var(--spring-fast-effects);transition:opacity var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1452
+ .app-menu--above,.app-menu--suggest{animation-name:app-reveal-up,app-fade-in}
1453
+ .app-menu[hidden]{opacity:0}
1454
+ .app-tooltip{animation:app-fade-in var(--spring-fast-effects);transition:opacity var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1455
+ .app-tooltip[hidden]{opacity:0}
1456
+ .app-snackbar{animation:app-reveal-up var(--spring-default-spatial),app-fade-in var(--spring-fast-effects);transition:opacity var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1457
+ .app-snackbar[hidden]{display:none;opacity:0}
1458
+ .app-scrim{animation:app-fade-in var(--spring-default-effects);transition:background-color var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1459
+ .app-scrim[hidden]{display:none;background-color:transparent}
1460
+ .app-dialog{animation:app-reveal-middle var(--spring-default-spatial),app-fade-in var(--spring-fast-effects);transition:opacity var(--spring-fast-effects)}
1461
+ .app-scrim[hidden]>.app-dialog{opacity:0}
1462
+ /* Alis's ask, arriving while you watch, grows up out of the composer, then its words fade in */
1463
+ .app-ask{min-block-size:0}
1464
+ .app-ask.is-arriving{overflow:clip;transition:block-size var(--spring-default-spatial),padding-block var(--spring-default-spatial),opacity var(--spring-default-effects) var(--spring-fast-effects-duration)}
1465
+ @starting-style{.app-ask.is-arriving{block-size:0;padding-block:0;opacity:0}}
1466
+
1467
+ /* The conversation: a turn that arrives fades in, and yours rises out of the composer; each step's words fade in inside
1468
+ the status, which stays put as the live region; each run of a reply fades in as it lands */
1469
+ .app-turn.is-arriving{transition:opacity var(--spring-default-effects),translate var(--spring-default-spatial)}
1470
+ @starting-style{.app-turn.is-arriving{opacity:0}.app-turn--you.is-arriving{translate:0 var(--space-24)}}
1471
+ .app-turn__status>*{transition:opacity var(--spring-default-effects)}
1472
+ @starting-style{.app-turn__status>*{opacity:0}}
1473
+ .app-turn__chunk{animation:app-fade-in var(--spring-default-effects) both}
1474
+
1475
+ /* A list that changes under you: a row that arrives opens its space and is tinted for a moment; one that leaves folds away */
1476
+ .app-row.is-arriving{overflow:clip;transition:block-size var(--spring-default-spatial),min-block-size var(--spring-default-spatial),padding-block var(--spring-default-spatial),opacity var(--spring-default-effects),background-color var(--spring-slow-effects) var(--spring-default-spatial-duration)}
1477
+ @starting-style{.app-row.is-arriving{block-size:0;min-block-size:0;padding-block:0;opacity:0;background-color:var(--secondary-container)}}
1478
+ .app-row.is-leaving{block-size:0;min-block-size:0;padding-block:0;opacity:0;overflow:clip;pointer-events:none;transition:block-size var(--spring-default-spatial),min-block-size var(--spring-default-spatial),padding-block var(--spring-default-spatial),opacity var(--spring-fast-effects)}
1479
+
1480
+ /* Over the edge. The detail pane comes in from the right while the content narrows (they share a plane): from 840 its
1481
+ column grows from 0, and the pane, at least its full width, slides out from under the edge. Below 840 it slides over the
1482
+ content (is-arriving, so a page drawn with it open stays still), with a strip of its own ground beyond its edge for the
1483
+ overshoot; on a phone it fills the screen, so it moves on the slow spring. To close: drop app-shell--detail, then remove
1484
+ the pane once it has gone (rules/motion.md § Removing what has left). The file pane's own widths never animate */
1485
+ @media (min-width:840px){
1486
+ .app-shell{overflow-x:clip;transition:grid-template-columns var(--spring-default-spatial)}
1487
+ .app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded){grid-template-columns:var(--nav-width) minmax(0,1fr) 0px}
1488
+ .app-shell:not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail{min-width:var(--detail-width)}
1489
+ .app-shell--file,.app-shell--file-expanded{transition:none}
1490
+ }
1491
+ @media (max-width:839px){
1492
+ .app-shell__detail{transition:translate var(--spring-default-spatial),box-shadow var(--spring-default-effects),opacity var(--spring-fast-effects)}
1493
+ .app-shell:not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail{box-shadow:var(--space-24) 0 0 0 var(--surface-container-high),var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent)}
1494
+ .app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail{translate:100% 0;box-shadow:var(--space-24) 0 0 0 var(--surface-container-high),var(--elevation-3),0 0 0 100vmax transparent}
1495
+ @starting-style{.app-shell--detail:not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail.is-arriving{translate:100% 0;box-shadow:var(--space-24) 0 0 0 var(--surface-container-high),var(--elevation-3),0 0 0 100vmax transparent}}
1496
+ }
1497
+ @media (max-width:599px){
1498
+ .app-shell__detail{transition:translate var(--spring-slow-spatial),box-shadow var(--spring-default-effects),opacity var(--spring-fast-effects)}
1499
+ /* The navigation pane fills the screen too: in from the left on the slow spring, which never bounces */
1500
+ .app-shell__nav{translate:-100% 0;transition:translate var(--spring-slow-spatial),opacity var(--spring-fast-effects),display var(--spring-slow-spatial) allow-discrete}
1501
+ .app-shell--nav-open .app-shell__nav{translate:0 0}
1502
+ @starting-style{.app-shell--nav-open .app-shell__nav{translate:-100% 0}}
1503
+ }
1504
+
1505
+ /* Changing page, through the browser's view transitions (rules/motion.md § Changing page). The content fades out, then
1506
+ the new content fades in; forward it also comes 24px in from the end, back from the start. The shell and the title bar
1507
+ stay put. A shared view-transition-name on two elements (a tile and the file pane it opens) morphs one into the other */
1508
+ .app-shell__content{view-transition-name:app-content}
1509
+ .app-dock{view-transition-name:app-dock}
1510
+ ::view-transition-old(root),::view-transition-new(root){animation:none}
1511
+ ::view-transition-group(*){animation-duration:var(--spring-default-spatial-duration);animation-timing-function:var(--spring-default-spatial-easing)}
1512
+ ::view-transition-old(app-content){animation:app-fade-out var(--spring-fast-effects) both}
1513
+ ::view-transition-new(app-content){animation:app-fade-in var(--spring-default-effects) var(--spring-fast-effects-duration) both}
1514
+ :root:active-view-transition-type(forward)::view-transition-new(app-content){animation:app-fade-in var(--spring-default-effects) var(--spring-fast-effects-duration) both,app-from-end var(--spring-default-spatial) var(--spring-fast-effects-duration) both}
1515
+ :root:active-view-transition-type(back)::view-transition-new(app-content){animation:app-fade-in var(--spring-default-effects) var(--spring-fast-effects-duration) both,app-from-start var(--spring-default-spatial) var(--spring-fast-effects-duration) both}
1516
+
1517
+ /* Reduced motion: where a move was all there was, a fade takes its place, and what folds away waits for the fade */
1518
+ @media (prefers-reduced-motion:reduce){
1519
+ .app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail{opacity:0}
1520
+ @starting-style{.app-shell__detail.is-arriving{opacity:0}}
1521
+ .app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded){transition:grid-template-columns 0s var(--spring-fast-effects-duration)}
1522
+ .app-shell__detail{transition:opacity var(--spring-fast-effects)}
1523
+ .app-row.is-leaving,.app-turn__steps[hidden]{transition:block-size 0s var(--spring-fast-effects-duration),min-block-size 0s var(--spring-fast-effects-duration),padding-block 0s var(--spring-fast-effects-duration),margin-bottom 0s var(--spring-fast-effects-duration),opacity var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1524
+ .app-disclosure::details-content{transition:block-size 0s var(--spring-fast-effects-duration),content-visibility var(--spring-fast-effects) allow-discrete,overflow-y 0s allow-discrete}
1525
+ }
1526
+ @media (prefers-reduced-motion:reduce) and (max-width:599px){
1527
+ .app-shell__nav{opacity:0;transition:opacity var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1528
+ .app-shell--nav-open .app-shell__nav{opacity:1}
1529
+ @starting-style{.app-shell--nav-open .app-shell__nav{opacity:0}}
1530
+ }
package/classes.json CHANGED
@@ -124,15 +124,19 @@
124
124
  "app-composer__go-label",
125
125
  "app-composer__input",
126
126
  "app-composer__interim",
127
+ "app-composer__lift",
127
128
  "app-composer__light",
128
129
  "app-composer__line",
129
130
  "app-composer__line-action",
130
131
  "app-composer__meter",
132
+ "app-composer__quote",
133
+ "app-composer__quote-text",
131
134
  "app-composer__rec",
132
135
  "app-composer__row",
133
136
  "app-composer__spacer",
134
137
  "app-composer__status",
135
138
  "app-composer__timer",
139
+ "app-composer__trace",
136
140
  "app-composer__tray",
137
141
  "app-count",
138
142
  "app-dialog",
@@ -143,6 +147,7 @@
143
147
  "app-disclosure__body",
144
148
  "app-disclosure__summary",
145
149
  "app-disclosure__text",
150
+ "app-dock",
146
151
  "app-empty",
147
152
  "app-empty-field",
148
153
  "app-empty-line",
@@ -207,6 +212,7 @@
207
212
  "app-icon--trailing",
208
213
  "app-icon-btn",
209
214
  "app-icon-btn--small",
215
+ "app-icon-swap",
210
216
  "app-key",
211
217
  "app-keys",
212
218
  "app-keys--single",
@@ -220,6 +226,7 @@
220
226
  "app-loader--line",
221
227
  "app-machine",
222
228
  "app-menu",
229
+ "app-menu--above",
223
230
  "app-menu--suggest",
224
231
  "app-menu__avatar",
225
232
  "app-menu__divider",
@@ -260,7 +267,9 @@
260
267
  "app-search__clear",
261
268
  "app-search__input",
262
269
  "app-seg",
270
+ "app-seg--travel",
263
271
  "app-seg__item",
272
+ "app-selection-ask",
264
273
  "app-shell",
265
274
  "app-shell--detail",
266
275
  "app-shell--file",
@@ -317,6 +326,7 @@
317
326
  "app-table-wrap",
318
327
  "app-table__primary",
319
328
  "app-tabs",
329
+ "app-tabs--travel",
320
330
  "app-target",
321
331
  "app-target--none",
322
332
  "app-thread",
@@ -349,6 +359,7 @@
349
359
  "app-turn__bubble",
350
360
  "app-turn__bubble--voice",
351
361
  "app-turn__caret",
362
+ "app-turn__chunk",
352
363
  "app-turn__files",
353
364
  "app-turn__foot",
354
365
  "app-turn__head",
@@ -391,6 +402,7 @@
391
402
  "drop-target",
392
403
  "is-active",
393
404
  "is-alis",
405
+ "is-arriving",
394
406
  "is-checked",
395
407
  "is-current",
396
408
  "is-disabled",
@@ -404,6 +416,7 @@
404
416
  "is-interactive",
405
417
  "is-invalid",
406
418
  "is-latest",
419
+ "is-leaving",
407
420
  "is-loading",
408
421
  "is-locked",
409
422
  "is-muted",
@@ -414,6 +427,8 @@
414
427
  "is-played",
415
428
  "is-scrolled",
416
429
  "is-selected",
430
+ "is-settled",
431
+ "is-swapped",
417
432
  "mono",
418
433
  "mono-sm",
419
434
  "mono-xs",
@@ -453,6 +468,7 @@
453
468
  "--alis-red",
454
469
  "--amber-100",
455
470
  "--amber-700",
471
+ "--app-trace-width",
456
472
  "--background",
457
473
  "--band-bottom",
458
474
  "--band-fg",
@@ -625,6 +641,24 @@
625
641
  "--space-4",
626
642
  "--space-48",
627
643
  "--space-8",
644
+ "--spring-default-effects",
645
+ "--spring-default-effects-duration",
646
+ "--spring-default-effects-easing",
647
+ "--spring-default-spatial",
648
+ "--spring-default-spatial-duration",
649
+ "--spring-default-spatial-easing",
650
+ "--spring-fast-effects",
651
+ "--spring-fast-effects-duration",
652
+ "--spring-fast-effects-easing",
653
+ "--spring-fast-spatial",
654
+ "--spring-fast-spatial-duration",
655
+ "--spring-fast-spatial-easing",
656
+ "--spring-slow-effects",
657
+ "--spring-slow-effects-duration",
658
+ "--spring-slow-effects-easing",
659
+ "--spring-slow-spatial",
660
+ "--spring-slow-spatial-duration",
661
+ "--spring-slow-spatial-easing",
628
662
  "--stagger",
629
663
  "--state-dragged",
630
664
  "--state-focus",
@@ -643,6 +677,7 @@
643
677
  "--syntax-number",
644
678
  "--syntax-plain",
645
679
  "--syntax-string",
680
+ "--tab-inset",
646
681
  "--teal-200",
647
682
  "--teal-600",
648
683
  "--term-bg",
@@ -80,7 +80,7 @@ See [chips-alerts.md](../rules/chips-alerts.md).
80
80
  ## Behaviour you must supply
81
81
 
82
82
  - **Alert**: `role="alert"` for `error`, `role="status"` for the rest. No timeout, no dismiss on its own; remove it when the user acts again or leaves.
83
- - **Snackbar**: it closes itself. Remove it after 5 seconds, or 10 with an action. A new message replaces the current one and restarts the timer. Undo cancels the action and removes the snackbar.
83
+ - **Snackbar**: it closes itself. Remove it after 5 seconds, or 10 with an action: set `hidden` and take it out after `--spring-fast-effects-duration`, so it fades. It grows up from the foot when it arrives. A new message replaces the current one and restarts the timer. Undo cancels the action and removes the snackbar.
84
84
  - Screen readers announce a live region's *changes*: keep an empty `<div role="status">` on the page from the start and render the `.app-snackbar` inside it (dropping the snackbar's own `role`), rather than inserting the region and its text together.
85
85
 
86
86
  ## Classes
@@ -190,7 +190,7 @@ A band at the top of the composer's surface, above the editor, divided from it b
190
190
 
191
191
  ## Behaviour you must supply
192
192
 
193
- - **Open and close** the band with the ask. Alis's ask takes focus (its first option, or its filled action); a person's docks without moving it and is announced through a polite live region. Return focus to the editor when it closes.
193
+ - **Open and close** the band with the ask. Render it with `is-arriving` when it opens while someone is there, and it grows up out of the composer; not when a page loads with an ask already waiting. Alis's ask takes focus (its first option, or its filled action); a person's docks without moving it and is announced through a polite live region. Return focus to the editor when it closes.
194
194
  - **The lead**: `.app-composer__go--plain` on the composer's button while the editor is empty; when it has text, drop it (Send fills) and swap the ask's `app-btn--filled` for `app-btn--outlined`.
195
195
  - **Keyboard** ([shortcuts.md](../rules/shortcuts.md) § The same everywhere): while focus is in no field (the editor included), the number keys pick an option, A answers with the affirmative and X refuses (opening the reason field where there is one). On an ask that is hard to undo (deleting, reaching production), A moves focus to the affirmative and Enter confirms. They are single keys: the switch turns them off. Enter on a focused option answers it; Escape moves focus to the editor without answering. Enter in the editor sends your words: Alis's answer, or a reply to a person.
196
196
  - **Several questions**: answering moves to the next; previous and next page without answering; Skip answers "let Alis decide".
@@ -201,4 +201,4 @@ A band at the top of the composer's surface, above the editor, divided from it b
201
201
 
202
202
  ## Classes
203
203
 
204
- `.app-ask`, `.app-ask__head`, `.app-ask__title`, `.app-ask__page`, `.app-ask__body`, `.app-ask__grants`, `.app-ask__note`, `.app-ask__options`, `.app-ask__option`, `.is-selected`, `.app-ask__key`, `.app-ask__option-text`, `.app-ask__line`, `.is-error`, `.app-ask__actions`; `.app-composer__go--plain`; `.app-turn__record`; `.app-count`; with `.app-btn`, `.app-icon-btn` and `.app-state` on the buttons.
204
+ `.app-ask`, `.is-arriving`, `.app-ask__head`, `.app-ask__title`, `.app-ask__page`, `.app-ask__body`, `.app-ask__grants`, `.app-ask__note`, `.app-ask__options`, `.app-ask__option`, `.is-selected`, `.app-ask__key`, `.app-ask__option-text`, `.app-ask__line`, `.is-error`, `.app-ask__actions`; `.app-composer__go--plain`; `.app-turn__record`; `.app-count`; with `.app-btn`, `.app-icon-btn` and `.app-state` on the buttons.
@@ -56,9 +56,9 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
56
56
  <span class="app-btn__spinner" aria-hidden="true"></span>Deploying
57
57
  </button>
58
58
 
59
- <!-- Done: a result you can't see, for about two seconds -->
59
+ <!-- Done: a result you can't see, for about two seconds. The glyph swaps; the word changes with it -->
60
60
  <button type="button" class="app-btn app-state app-target">
61
- <span class="app-icon" aria-hidden="true">check</span><span aria-live="polite">Copied</span>
61
+ <span class="app-icon-swap is-swapped" aria-hidden="true"><span class="app-icon">content_copy</span><span class="app-icon">check</span></span><span aria-live="polite">Copied</span>
62
62
  </button>
63
63
 
64
64
  <!-- Disabled -->
@@ -88,9 +88,10 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
88
88
  ## Behaviour you must supply
89
89
 
90
90
  - Always `type="button"` unless it submits a form (`type="submit"`).
91
+ - **Done**: the leading glyph sits in `.app-icon-swap` with ✓ second; add `is-swapped` and change the word to what happened; after about two seconds remove `is-swapped` and put the word back ([AppIconButton](AppIconButton.md)).
91
92
  - **Loading**: add `is-loading`, `aria-disabled="true"` and `aria-busy="true"`, swap the leading icon for `<span class="app-btn__spinner">`, and ignore the click in your handler. `is-loading` sets `pointer-events: none`, but keyboard activation still fires, so guard the handler. Remove all three when it settles.
92
93
  - Don't use `disabled` for loading: a disabled button drops to 38% and loses focus.
93
94
 
94
95
  ## Classes
95
96
 
96
- `.app-btn`, `.app-btn--outlined`, `.app-btn--filled`, `.app-btn--error`, `.app-btn--quiet`, `.app-btn--small`, `.app-btn__spinner`, `.app-state`, `.app-target`, `.app-target--none`, `.is-loading`, `.app-btn-row`, `.app-btn-row--start`, `.app-btn-row__start`.
97
+ `.app-btn`, `.app-btn--outlined`, `.app-btn--filled`, `.app-btn--error`, `.app-btn--quiet`, `.app-btn--small`, `.app-btn__spinner`, `.app-icon-swap`, `.is-swapped`, `.app-state`, `.app-target`, `.app-target--none`, `.is-loading`, `.app-btn-row`, `.app-btn-row--start`, `.app-btn-row__start`.