/* ================================================================ SELVO 1.13.0 / Snick 4.1.0: liquid glass
   Max's pasted design, applied to every screen of both phone apps (2026-11-23):
   - a neutral ground (near-black / near-white), tinted very faintly by the colour of what is on screen
   - .liquid-glass surfaces (1 % white, luminosity blend, 4 px blur, an inset top light and a 1.4 px gradient
     border cut out with mask-composite) and .liquid-glass-selected for the chosen thing
   - a glass header pill, a small muted line above a 28 px normal-weight heading, 2-column numbered option cards
     (32 px radius, 100 px tall), a round 64 px voice button with a soft glow, slide to confirm
   - one font: Inter Tight (free, OFL, self-hosted), the closest free cut to the prompt's Helvetica Now
   - motion: a staggered fade-up only when a tab, screen or sheet opens (once); selection glides; reduced motion off.
   Loaded last, after every other stylesheet. Text sits on glass that is dense enough to read in both themes. */
@font-face { font-family: 'Inter Tight'; src: url(../fonts/InterTight-Variable.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
/* the older faces point at the same file, so every rule that named Satoshi or Clash Display now draws Inter Tight */
@font-face { font-family: 'Satoshi'; src: url(../fonts/InterTight-Variable.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url(../fonts/InterTight-Variable.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --lgf: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sys: var(--lgf);
  /* surfaces: content cards carry a little more white than the prompt's 1 % so long lists still group */
  --lg-card: rgba(255, 255, 255, .035); --lg-bare: rgba(255, 255, 255, .01);
  --lg-sel: rgba(255, 255, 255, .12); --lg-sel-t: #f5f5f7; --lg-sel-n: rgba(255, 255, 255, .5); --lg-lens: rgba(255, 255, 255, .12);
  --lg-in: inset 0 1px 1px rgba(255, 255, 255, .1); --lg-in-sel: inset 0 1px 2px rgba(255, 255, 255, .2);
  --lg-b1: rgba(255, 255, 255, .45); --lg-b2: rgba(255, 255, 255, .15);
  --lg-s1: rgba(255, 255, 255, .6); --lg-s2: rgba(255, 255, 255, .25);
  --lg-out: 0 0 0 transparent;
  --lg-blur: blur(4px); --lg-blur-sel: blur(8px); --lg-blur-bar: blur(18px) saturate(1.4);
  --lg-bar: rgba(10, 10, 12, .28); --lg-sheet: rgba(22, 22, 24, .7); --lg-as: rgba(34, 34, 36, .62);
  --lg-n: rgba(255, 255, 255, .5);
  --lg-glow: rgba(255, 255, 255, .34);
  --lg-thumb: #ffffff; --lg-thumb-ink: #0b0b0c;
  --mute: rgba(245, 245, 247, .68); --faint: rgba(245, 245, 247, .46);
  --p2: rgba(255, 255, 255, .08); --p3: rgba(255, 255, 255, .15); --fill: rgba(255, 255, 255, .07); --fill2: rgba(255, 255, 255, .13);
  --hl: rgba(255, 255, 255, .07); --sepc: rgba(255, 255, 255, .12);
  --seg-pill: rgba(255, 255, 255, .12); --seg-ink: #f5f5f7;
}
[data-theme="light"] {
  --lg-card: rgba(255, 255, 255, .56); --lg-bare: rgba(255, 255, 255, .34);
  /* selected glass on a pale photo: ink glass with white text, so the choice reads at a glance */
  --lg-sel: rgba(29, 29, 31, .84); --lg-sel-t: #ffffff; --lg-sel-n: rgba(255, 255, 255, .55); --lg-lens: rgba(255, 255, 255, .9);
  --lg-in: inset 0 1px 1px rgba(255, 255, 255, .9); --lg-in-sel: inset 0 1px 2px rgba(255, 255, 255, 1);
  --lg-b1: rgba(255, 255, 255, .95); --lg-b2: rgba(255, 255, 255, .5);
  --lg-s1: rgba(255, 255, 255, .38); --lg-s2: rgba(255, 255, 255, .12);
  /* on a pale photo a white edge alone disappears: one hairline and a soft drop keep the shape */
  --lg-out: 0 0 0 .5px rgba(0, 0, 0, .06), 0 2px 10px rgba(0, 0, 0, .05);
  --lg-bar: rgba(245, 245, 247, .42); --lg-sheet: rgba(246, 246, 248, .86); --lg-as: rgba(250, 250, 252, .8);
  --lg-n: rgba(29, 29, 31, .5);
  --lg-glow: rgba(29, 29, 31, .16);
  --lg-thumb: #1d1d1f; --lg-thumb-ink: #ffffff;
  --mute: rgba(29, 29, 31, .66); --faint: rgba(29, 29, 31, .44);
  --p2: rgba(29, 29, 31, .06); --p3: rgba(29, 29, 31, .11); --fill: rgba(29, 29, 31, .06); --fill2: rgba(29, 29, 31, .12);
  --seg-pill: rgba(255, 255, 255, .92); --seg-ink: #1d1d1f;
}
/* Settings > Appearance > Glass: Less = denser fills, Solid = no photo and no see-through */
[data-glass="less"] { --lg-card: rgba(40, 40, 44, .55); --lg-bare: rgba(40, 40, 44, .45); --lg-sheet: rgba(22, 22, 24, .9); }
[data-theme="light"][data-glass="less"] { --lg-card: rgba(255, 255, 255, .82); --lg-bare: rgba(255, 255, 255, .7); --lg-sheet: rgba(246, 246, 248, .94); }
[data-glass="solid"] { --lg-card: #161617; --lg-bare: #161617; --lg-sel: #2a2a2c; --lg-blur: none; --lg-blur-sel: none; --lg-blur-bar: none; --lg-bar: #000; --lg-sheet: #161617; --lg-as: #232325; }
[data-theme="light"][data-glass="solid"] { --lg-card: #fff; --lg-bare: #fff; --lg-sel: #1d1d1f; --lg-bar: #f5f5f7; --lg-sheet: #f5f5f7; --lg-as: #fff; }

body, input, textarea, select, button { font-family: var(--lgf); }
body { font-feature-settings: "ss01" 0; }

/* ---------------------------------------------------------------- the ground (1.13.1, Max: no bike photo)
   A near-black or near-white neutral with a barely visible soft gradient. When the screen shows its own content
   (a park photo, a clip, a thumbnail) lg.js samples its colour into --lg-wash, and a very faint blurred wash of
   it (about 8 to 15 %) sits at the top, like a window taking the colour of what is on it. --lg-wash is a
   registered colour, so a change cross-fades instead of jumping. */
/* 1.14.2: not inherited, and set only on the two grounds (lg.js writes one small rule): a colour change used to
   restyle the whole page on every frame of its 1.2 s fade */
@property --lg-wash { syntax: '<color>'; inherits: false; initial-value: rgba(0, 0, 0, 0); }
:root { --lg-g1: #18181a; --lg-g0: #0b0b0c; --lg-wash-k: 15%; }
[data-theme="light"] { --lg-g1: #ffffff; --lg-g0: #f1f1f4; --lg-wash-k: 10%; }
#app::before, .screen::before { transition: --lg-wash var(--m-wash) var(--m-ease); }
#app::before, .screen::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--lg-wash) var(--lg-wash-k), transparent), transparent 75%),
    radial-gradient(160% 90% at 50% -20%, var(--lg-g1), var(--lg-g0) 70%);
}
.screen { background: var(--lg-g0); isolation: isolate; }
.screen::before { position: absolute; z-index: -1; }
[data-glass="solid"] #app::before, [data-glass="solid"] .screen::before { background: var(--bg); }

/* ---------------------------------------------------------------- the glass */
.liquid-glass,
:is(.card, .ci, .st, .icb:not(.ghosted), .wg, .fx-tile, .sv, .goal, .idea, .cl, .btn.ghost, .chip, .rm-chip, .lg-opt, .lg-slide, .lg-voice, .lg-pill, .as-grp, .as-b.as-cancel, .seg:not(.tabbar):not(.strip):not(.fc-seg), .seg.strip, .tabbar, .lx-mic, .fc-presets > button, #lg-x) {
  position: relative; isolation: isolate;
  background-color: var(--lg-card);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-in), var(--lg-out);
}
:is(.lg-opt, .lg-slide, .lg-voice, .lg-pill, .fc-presets > button, #lg-x) { background-color: var(--lg-bare); }
.liquid-glass::before,
:is(.card, .ci, .st, .icb:not(.ghosted), .wg, .fx-tile, .sv, .goal, .idea, .cl, .btn.ghost, .chip, .rm-chip, .lg-opt, .lg-slide, .lg-voice, .lg-pill, .as-grp, .as-b.as-cancel, .seg:not(.tabbar):not(.strip):not(.fc-seg), .seg.strip, .lx-mic, .fc-presets > button, #lg-x)::before,
.seg.tabbar::after, .sheet::before, .lg-sel-edge::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, var(--lg-b1) 0%, var(--lg-b2) 20%, transparent 40%, transparent 60%, var(--lg-b2) 80%, var(--lg-b1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
}
/* the selected state: denser, sharper, a brighter edge */
.liquid-glass-selected,
:is(.ci.on, .chip.on, .rm-chip.on, .lg-opt.sel, .goal.on, #lg-x#lg-x) {
  background-color: var(--lg-sel);
  -webkit-backdrop-filter: var(--lg-blur-sel); backdrop-filter: var(--lg-blur-sel);
  box-shadow: var(--lg-in-sel), var(--lg-out);
}
.liquid-glass-selected::before,
:is(.ci.on, .chip.on, .rm-chip.on, .lg-opt.sel, .goal.on, #lg-x#lg-x)::before {
  background: linear-gradient(180deg, var(--lg-s1) 0%, var(--lg-s2) 20%, transparent 40%, transparent 60%, var(--lg-s2) 80%, var(--lg-s1) 100%);
}
/* fills that mean something stay: an accent card, a done goal, danger */
:is(.card.quiet, #lg-x) { background-color: color-mix(in srgb, var(--acc) 10%, var(--lg-card)); }
:is(.chip.on, .rm-chip.on, .ci.on, .lg-opt.sel, #lg-x#lg-x) { color: var(--lg-sel-t); }
:is(.ci.on, #lg-x#lg-x) .i { color: var(--lg-sel-t); }
.lg-opt.sel .lg-n { color: var(--lg-sel-n); }
[data-theme="light"] .card.list.in-sheet, [data-theme="light"] .card.list, [data-theme="light"] .ci, [data-theme="light"] .st, [data-theme="light"] .idea, [data-theme="light"] .seg:not(.tabbar) { background-color: var(--lg-card); }
.as-grp { background-color: var(--lg-as); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.as-b.as-cancel { background-color: var(--lg-as); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

/* segmented controls: the thumb is a selected glass lens that glides */
.seg:not(.tabbar):not(.strip):not(.fc-seg) > .ind, .seg.hseg:not(.tabbar):not(.strip):not(.fc-seg) > .ind, .seg.strip > .ind {
  background: var(--seg-pill); box-shadow: var(--lg-in-sel), 0 2px 8px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: var(--lg-blur-sel); backdrop-filter: var(--lg-blur-sel);
}
.seg:not(.tabbar):not(.strip):not(.fc-seg) > button.on, .seg:not(.tabbar):not(.strip):not(.fc-seg) > button.hot { color: var(--seg-ink); }
.sheet .seg:not(.tabbar):not(.strip):not(.fc-seg), [data-theme="light"] .sheet .seg:not(.tabbar):not(.strip):not(.fc-seg) { background-color: var(--fill); }

/* ---------------------------------------------------------------- bars and sheets */
.seg.tabbar {
  background-color: var(--lg-bar);
  -webkit-backdrop-filter: var(--lg-blur-bar); backdrop-filter: var(--lg-blur-bar);
  box-shadow: var(--lg-in), var(--lg-out), 0 10px 30px rgba(0, 0, 0, .18);
}
.seg.tabbar::after { z-index: -1; }
.seg.tabbar > .ind { background: var(--lg-lens); box-shadow: var(--lg-in-sel); }
.seg.tabbar > .ind::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, var(--lg-s1) 0%, var(--lg-s2) 20%, transparent 40%, transparent 60%, var(--lg-s2) 80%, var(--lg-s1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
}
.seg.tabbar > button { font-family: var(--lgf); font-weight: 500; }
.seg.tabbar > button.on { color: var(--fg); }
.tabwrap::before { background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 40%, transparent)); }
.mini, .screen.scrolled .sbar { background: var(--lg-bar); -webkit-backdrop-filter: var(--lg-blur-bar); backdrop-filter: var(--lg-blur-bar); box-shadow: 0 .5px 0 var(--sepc); }
.mini { font-weight: 500; }
.sheet, [data-theme="light"] .sheet-wrap.fs-sheet .sheet, .sheet-wrap.fs-sheet .sheet {
  background: var(--lg-sheet); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: var(--lg-in-sel), 0 -10px 40px rgba(0, 0, 0, .18);
}
.sheet::before { z-index: 2; }
.sheet-wrap.as .sheet::before { display: none; }
.fs-foot { background: linear-gradient(to bottom, transparent, var(--lg-sheet) 14px); }
.scrim { background: rgba(0, 0, 0, .42); }
[data-theme="light"] .scrim { background: rgba(0, 0, 0, .22); }
.grab { background: var(--fill2); }

/* ---------------------------------------------------------------- type: the prompt's heading */
.lt, .sp-t, .sh-t, .fs-t, .sbar-t { font-family: var(--lgf); }
.lt, .sp-t { font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: 0; min-height: 0; }
.sh-t { font-size: 24px; font-weight: 400; line-height: 1.15; }
.vh-sub, .sp-h .vh-sub { font-size: 14px; font-weight: 400; color: var(--mute); }
.vh-sub + .sp-t, .sp-h .vh-sub + .sp-t { margin-top: 4px; }
.lbl { font-weight: 500; }
.btn, .btn.sm { font-weight: 600; }
.txt b, .rowx b, .sw-row b { font-weight: 500; }
.calc-big, .calc-tp b, .st b { font-weight: 400; }

/* ---------------------------------------------------------------- the header pill: icon and name */
.lg-pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: 24px; color: var(--fg); }
.lg-pill > * { position: relative; z-index: 1; }
.lg-pill-i { width: 32px; height: 32px; border-radius: 10px; flex: none; display: block; }
.vh .lg-pill .wm { width: 124px; height: 36px; }
.vh-row:has(.lg-pill) { gap: 10px; }
.vh-row .vh-btns { flex: none; }

/* ---------------------------------------------------------------- numbered option cards */
.lg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 0 8px; }
.lg-opt {
  height: 100px; border-radius: 32px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start; text-align: left; color: var(--fg); min-width: 0;
  transition: background-color var(--m-glide) var(--m-ease), box-shadow var(--m-glide) var(--m-ease), color var(--m-glide) var(--m-ease);
}
.lg-opt::before { transition: opacity var(--m-glide) var(--m-ease); }
.lg-opt .lg-n { font-size: 13px; color: var(--lg-n); font-variant-numeric: tabular-nums; }
.lg-opt b { font-size: 17px; font-weight: 400; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lg-opt:active { opacity: .85; }
.gr.col .lg-opts { margin: 4px 0 2px; }

/* ---------------------------------------------------------------- the voice button */
.lg-voicew { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 10px; }
.lg-voice, .lx-mic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); isolation: isolate; }
.lg-voice .i, .lx-mic .i { width: 24px; height: 24px; position: relative; z-index: 1; }
.lg-voice::after, .lx-mic::after {
  content: ''; position: absolute; inset: -22px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--lg-glow), transparent); opacity: .8; transition: opacity var(--m-glide) var(--m-ease), transform var(--m-glide) var(--m-ease);
}
.lg-voice.on::after, .lx-mic.on::after { opacity: 1; transform: scale(1.18); }
.lg-voice.on, .lx-mic.on { background-color: var(--lg-sel); }
.lg-voicew small { font-size: 13px; color: var(--mute); text-align: center; }
html:not(.has-sr) .lg-voicew { display: none; }

/* ---------------------------------------------------------------- slide to confirm */
.lg-slide { height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; touch-action: none; -webkit-user-select: none; user-select: none; margin: 14px 0 4px; overflow: hidden; --x: 0px; --p: 0; }
.lg-thumb {
  position: absolute; z-index: 2; left: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lg-thumb); color: var(--lg-thumb-ink); display: grid; place-items: center; touch-action: none; cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22); transform: translate3d(var(--x), 0, 0); transition: transform var(--m-snap) var(--m-ease), background-color var(--m-done) var(--m-ease), color var(--m-done) var(--m-ease);
}
.lg-thumb .i { width: 20px; height: 20px; }
.lg-slide.drag .lg-thumb { transition: none; cursor: grabbing; }
.lg-slide.drag .lg-thumb:active, .lg-thumb:active { opacity: 1; }
.lg-sl { position: relative; z-index: 1; font-size: 15px; font-weight: 500; color: var(--fg); opacity: calc(1 - var(--p) * 1.6); padding: 0 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity var(--m-snap) var(--m-ease); }
.lg-slide.drag .lg-sl { transition: none; }
.lg-slide.danger .lg-sl { color: var(--danger); }
.lg-chev { position: absolute; z-index: 1; right: 18px; top: 0; bottom: 0; display: flex; align-items: center; gap: 0; color: var(--fg); opacity: calc(1 - var(--p) * 1.6); }
.lg-chev .i { width: 14px; height: 14px; margin-left: -4px; }
.lg-chev .i:nth-child(1) { opacity: .25; } .lg-chev .i:nth-child(2) { opacity: .5; } .lg-chev .i:nth-child(3) { opacity: .85; }
.lg-slide.done .lg-thumb { background: var(--fg); color: var(--bg); }
.lg-ask { padding: 6px 2px 2px; }
.lg-ask .sh-s { margin-bottom: 4px; }
.lg-ask .lg-cancel { display: block; margin: 12px auto 2px; padding: 10px 18px; color: var(--mute); font-weight: 500; font-size: 15px; }

/* ---------------------------------------------------------------- motion: once, when a tab, screen or sheet opens */
.enter, .lg-up { animation: lgUp var(--m-rise) var(--m-ease) both; animation-delay: calc(min(var(--i, 0), 6) * var(--m-step)); }
@keyframes lgUp { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .enter, .lg-up { animation: none; }
}

/* ---------------------------------------------------------------- Snick: ink and lime, its own backdrop */
html.snick { --lg-glow: rgba(205, 242, 58, .42); }
html.snick[data-theme="light"] { --lg-glow: rgba(17, 19, 14, .2); }
html.snick #v-create .vh .lt {
  position: relative; display: inline-flex; width: auto; padding: 0 18px 0 6px; height: 54px; margin-left: 0; border-radius: 27px;
  background-color: var(--lg-bare); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-in), var(--lg-out);
}
html.snick #v-create .vh .lt::before { width: 42px; height: 42px; }
html.snick #v-create .vh .lt::after { width: 82px; height: 27px; }

/* ---------------------------------------------------------------- Create / Snick presets: the numbered option cards, the lens glides */
.fc-presets { gap: 10px; }
.fc-presets > button { min-height: 100px; border-radius: 32px; padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; transition: background-color var(--m-glide) var(--m-ease), color var(--m-glide) var(--m-ease); }
.fc-presets > button .lg-n { font-size: 13px; color: var(--lg-n); font-variant-numeric: tabular-nums; }
.fc-presets > button b { margin-top: auto; font-weight: 500; font-size: 17px; }
:is(.fc-presets > button.on, #lg-x#lg-x) { background-color: var(--lg-sel); color: var(--lg-sel-t); }
.fc-presets > button.on b { color: var(--lg-sel-t); }
.fc-presets > button.on small, .fc-presets > button.on .lg-n { color: var(--lg-sel-n); }
/* the ring glides from card to card, the fill cross-fades under it */
.fc-presets > .ind { border-radius: 32px; background: transparent; box-shadow: none; }
.fc-presets > .ind::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, var(--lg-s1) 0%, var(--lg-s2) 20%, transparent 40%, transparent 60%, var(--lg-s2) 80%, var(--lg-s1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
}
/* Create's dock: one dense glass bar */
.fc-dock::before { background: var(--lg-sheet); }

/* ================================================================ motion tokens (1.13.2, Max: "the motion is too fast")
   Every duration of both phone apps lives here. Glides and selection 420 ms, tabs 500, screens 520 in / 460 out,
   sheets 500 in / 380 out, entrance 600 ms with 120 ms steps, slider snap-back 520, confirm 450, chevron pulse
   2.4 s, toggles 320, colour wash 1.2 s. One ease, no overshoot. Reduced motion: short fades, no entrance. */
:root {
  --m-ease: cubic-bezier(.22, 1, .36, 1);
  --m-glide: 420ms; --m-fade: 340ms; --m-tab: 500ms;
  --m-screen-in: 520ms; --m-screen-out: 460ms; --m-sheet-in: 500ms; --m-sheet-out: 380ms;
  --m-rise: 600ms; --m-step: 120ms;
  --m-snap: 520ms; --m-done: 450ms; --m-pulse: 2.4s;
  --m-toggle: 320ms; --m-wash: 1200ms;
}
@media (prefers-reduced-motion: reduce) {
  :root { --m-glide: 160ms; --m-fade: 160ms; --m-tab: 180ms; --m-screen-in: 200ms; --m-screen-out: 180ms; --m-sheet-in: 200ms; --m-sheet-out: 180ms; --m-snap: 200ms; --m-done: 160ms; --m-toggle: 140ms; --m-wash: 300ms; }
  .enter, .lg-up, .lg-chev .i { animation: none !important; }
}
/* tabs */
.view { transition: opacity calc(var(--m-tab) * .5) var(--m-ease), transform var(--m-tab) var(--m-ease), visibility 0s linear var(--m-tab); }
.view.on { transition: opacity var(--m-tab) var(--m-ease) 60ms, transform var(--m-tab) var(--m-ease) 60ms, visibility 0s; }
/* pushed screens and what slides under them */
.screen { transition: transform var(--m-screen-out) var(--m-ease); }
.screen.open { transition-duration: var(--m-screen-in); }
#main, .tabwrap { transition: transform var(--m-screen-in) var(--m-ease); }
#main::after { transition: opacity var(--m-screen-in) var(--m-ease); }
/* sheets: open slower than they close */
.sheet { transition: transform var(--m-sheet-out) var(--m-ease); }
.sheet-wrap.open .sheet { transition-duration: var(--m-sheet-in); }
.scrim { transition: opacity var(--m-sheet-out) var(--m-ease); }
.sheet-wrap.open .scrim { transition-duration: var(--m-sheet-in); }
.fc-layer { transition: transform var(--m-screen-in) var(--m-ease); }
.fc-sheets .scrim { transition: opacity var(--m-sheet-in) var(--m-ease); }
/* gliding indicators and selection */
.seg > .ind, .seg.tabbar > .ind, .fc-presets > .ind, .fc-seg > .ind { transition: transform var(--m-glide) var(--m-ease), width var(--m-glide) var(--m-ease), height var(--m-glide) var(--m-ease), background-color var(--m-fade) var(--m-ease), opacity var(--m-fade); }
.seg > button, .seg.tabbar > button, .seg:not(.tabbar):not(.strip):not(.fc-seg) > button, .fc-presets > button b { transition: color var(--m-fade) var(--m-ease); }
.chip, .rm-chip, .ci, .goal, .tchip, .card, .st, .lx-mic, .lg-voice { transition: background-color var(--m-fade) var(--m-ease), color var(--m-fade) var(--m-ease), opacity var(--m-fade) var(--m-ease), box-shadow var(--m-fade) var(--m-ease); }
.ios-sl { transition: --slp var(--m-glide) var(--m-ease); }
.ios-sl.drag, .lg-slide.drag .lg-thumb, .lg-slide.drag .lg-sl, .lg-slide.drag .lg-chev { transition: none; }
.mini, .sbar { transition: opacity var(--m-fade) var(--m-ease), background-color var(--m-fade) var(--m-ease); }
#toast { transition: opacity var(--m-fade) var(--m-ease), transform var(--m-glide) var(--m-ease); }
.ck path { transition: stroke-dashoffset var(--m-glide) var(--m-ease); }
.box { transition: background-color var(--m-fade) var(--m-ease); }
/* toggles */
.tg, .tog { transition: background-color var(--m-toggle) var(--m-ease); }
.tg::after, .tog::after { transition: transform var(--m-toggle) var(--m-ease); }
/* slide to confirm: 1:1 while dragging, soft snap-back, a calm finish, chevrons that breathe */
.lg-slide.done .lg-thumb { transition: transform var(--m-done) var(--m-ease), background-color var(--m-done) var(--m-ease), color var(--m-done) var(--m-ease); }
.lg-chev { transition: opacity var(--m-snap) var(--m-ease); }
.lg-chev .i { animation: lgPulse var(--m-pulse) ease-in-out infinite; }
.lg-chev .i:nth-child(2) { animation-delay: .25s; } .lg-chev .i:nth-child(3) { animation-delay: .5s; }
@keyframes lgPulse { 0%, 100% { opacity: .2; } 40% { opacity: .9; } }