/* Shop HQ's one-page sections (Your shop, System, …): the cards, save bars,
   fields, switches, segmented choices, readiness lists and the toast.
   Moved out of setup/shop.html (2026-11-03) so every section page shares one look. */
/* Motion (owner 2026-11-03: "smoother animations … take inspo from how clean
   the iphone dynamic island animation looks"). Apple's spring,
   x(t) = 1 − e^(−ζωt)(cos ω_d t + ζω/ω_d sin ω_d t), ω = 2π/d, ζ = 1 − bounce,
   sampled into linear(). Shapes (the capsule, a card making room): d = 0.45 s,
   bounce 0.15, 720 ms to rest, peak 1.006 — it lands, it does not wobble.
   Controls: d = 0.34 s, bounce 0.12, 544 ms, peak 1.003. Both retarget mid-flight. */
:root {
    --ys-spring: linear(0.0, 0.0274, 0.095, 0.1854, 0.286, 0.3881, 0.486, 0.5762, 0.6566, 0.7267, 0.7864, 0.8362, 0.8771, 0.9101, 0.9362, 0.9564, 0.9719, 0.9834, 0.9918, 0.9977, 1.0016, 1.0041, 1.0055, 1.0062, 1.0063, 1.006, 1.0055, 1.005, 1.0043, 1.0037, 1.0031, 1.0025, 1.002, 1.0016, 1.0013, 1.001, 1.0007, 1.0005, 1.0004, 1.0002, 1);
    --ys-spring-dur: 720ms;
    --ys-quick: linear(0.0, 0.0273, 0.0942, 0.1832, 0.2818, 0.3817, 0.4772, 0.5652, 0.6438, 0.7124, 0.771, 0.8204, 0.8612, 0.8944, 0.9212, 0.9424, 0.9589, 0.9716, 0.9812, 0.9884, 0.9935, 0.9972, 0.9997, 1.0013, 1.0023, 1.0028, 1.003, 1.0029, 1.0028, 1.0025, 1.0022, 1.0019, 1.0016, 1.0014, 1.0011, 1.0009, 1.0007, 1.0006, 1.0004, 1.0003, 1);
    --ys-quick-dur: 544ms;
    --ys-out: cubic-bezier(.3, 0, .8, .15);
}
@supports not (transition-timing-function: linear(0, 1)) {
    :root { --ys-spring: cubic-bezier(.2, .9, .25, 1); --ys-quick: cubic-bezier(.2, .9, .3, 1); }
}

/* ── The page: cards on one column, each saving where it is ─────── */
.ys { --ys-line: var(--hairline, color-mix(in srgb, var(--ink) 10%, transparent)); --ys-ease: cubic-bezier(.2, .8, .2, 1);
      max-width: 980px; display: flex; flex-direction: column; gap: 18px; padding-bottom: 40vh; }
html[data-embed="1"] .ys { margin: 0 auto; }
/* `hidden` hides inside these pages: a class's display (.ys-f, .ys-btn, .ys-actions…)
   would otherwise beat the attribute and leave a hidden control on screen. Scoped to
   .ys on purpose — there is no global [hidden] rule. */
.ys [hidden] { display: none !important; }

/* The console's form look (uppercase labels, boxed buttons) is not this page's. */
.ys label { display: revert; margin: 0; font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.ys label.ys-f { display: flex; }
.ys label.ys-btn { display: inline-flex; font: 600 13.5px var(--ff-ui); color: var(--ink); }
.ys label.ys-sw { display: inline-block; }

/* The readiness strip: where the shop stands, one glance */
.ys-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ys-line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.ys-top a { display: flex; flex-direction: column; gap: 5px; padding: 13px 16px; color: var(--ink); text-decoration: none; border-left: 1px solid var(--ys-line); transition: background .15s ease; min-width: 0; }
.ys-top a:first-child { border-left: 0; }
.ys-top a:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); text-decoration: none; }
.ys-top .k { font: 500 12px var(--ff-ui); color: var(--muted); }
.ys-top .v { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 650 15px var(--ff-ui); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ys-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.ys-dot.good { background: var(--ok); } .ys-dot.warn { background: var(--warn); } .ys-dot.crit { background: var(--no); }

/* A card */
.ys-card { position: relative; border: 1px solid var(--ys-line); border-radius: 14px; background: var(--paper); scroll-margin-top: 14px;
           box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
           opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px);
           transition: opacity .5s ease, transform var(--ys-spring-dur) var(--ys-spring), filter .45s ease, box-shadow .4s ease, border-color .4s ease, padding-bottom var(--ys-spring-dur) var(--ys-spring);
           transition-delay: calc(var(--i, 0) * 45ms); }
.ys-card.is-in { opacity: 1; transform: none; filter: none; }
.ys-card.is-hi { animation: ys-hi var(--ys-spring-dur) var(--ys-spring); }
@keyframes ys-hi { 0% { transform: translateY(6px) scale(.99); box-shadow: 0 0 0 0 transparent; } 45% { box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--accent) 45%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, var(--ys-line)); } 100% { transform: none; } }
.ys-h { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 0; }
.ys-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ys-ic svg { width: 19px; height: 19px; }
.ys-h > div { flex: 1 1 auto; min-width: 0; }
.ys-h h2 { margin: 1px 0 0; font: 650 17px/1.3 var(--ff-ui); letter-spacing: -.015em; color: var(--ink); }
.ys-h p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ys-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--ys-line); font: 600 12px var(--ff-ui); color: var(--muted); white-space: nowrap; transition: color .3s ease, border-color .3s ease, background .3s ease; overflow: hidden; }
.ys-chip.good { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--ys-line)); }
.ys-chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--ys-line)); background: color-mix(in srgb, var(--warn) 7%, transparent); }
.ys-chip.crit { color: var(--no); border-color: color-mix(in srgb, var(--no) 45%, var(--ys-line)); background: color-mix(in srgb, var(--no) 7%, transparent); }
.ys-b { padding: 16px 20px 20px; }
.ys-sub { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ys-line); }
.ys-sub > .t { display: block; font: 650 14px var(--ff-ui); color: var(--ink); }
.ys-sub > .d { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* A card with changes: its capsule carries Save (below); the card keeps an accent edge */
.ys-save { display: none; }
.ys-card.is-dirty { border-color: color-mix(in srgb, var(--accent) 40%, var(--ys-line)); }

/* Buttons */
.ys-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--ys-line); background: var(--paper); color: var(--ink); font: 600 13.5px var(--ff-ui); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease, transform .1s ease, opacity .15s ease; }
.ys-btn:hover { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); text-decoration: none; }
.ys-btn:active { transform: scale(.95); transition-duration: .08s; }
.ys-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ys-btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.ys-btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.ys-btn.quiet:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ys-btn.arm { background: var(--warn); border-color: var(--warn); color: #fff; }
.ys-btn[disabled] { opacity: .55; cursor: default; }
.ys-btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ys-spin .7s linear infinite; }
@keyframes ys-spin { to { transform: rotate(360deg); } }

/* Fields */
.ys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ys-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ys-f.wide { grid-column: 1 / -1; }
.ys-f > span { font: 600 12.5px var(--ff-ui); color: var(--ink); }
.ys-f > span small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.ys-f input, .ys-f textarea, .ys-f select, .ys-hol input, .ys-hol select { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid var(--faint); border-radius: 9px; background: var(--paper); color: var(--ink); font: 400 14px var(--ff-ui); transition: border-color .15s ease, box-shadow .15s ease; }
.ys-f textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.ys-f input:focus, .ys-f textarea:focus, .ys-f select:focus, .ys-hol input:focus, .ys-hol select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ys-f.need input { border-color: color-mix(in srgb, var(--warn) 60%, var(--faint)); }
.ys-f .why { font-size: 12px; color: var(--warn); }
@keyframes ys-fade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* A setting row: words on the left, the control on the right */
.ys-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--ys-line); }
.ys-row:first-child { border-top: 0; padding-top: 4px; }
.ys-row .w { flex: 1 1 auto; min-width: 0; }
.ys-row .w b { display: block; font: 600 14px var(--ff-ui); color: var(--ink); }
.ys-row .w small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ys-row .c { flex: none; }

/* A switch */
.ys-sw { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.ys-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ys-sw i { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: background .3s ease; }
.ys-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--ys-quick-dur) var(--ys-quick), width var(--ys-quick-dur) var(--ys-quick); }
.ys-sw input:checked + i { background: var(--accent); }
.ys-sw input:checked + i::after { transform: translateX(18px); }
.ys-sw input:active + i::after { width: 26px; }
.ys-sw input:checked:active + i::after { transform: translateX(12px); }
.ys-sw input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

/* A segmented choice; the thumb glides to the pick */
.ys-seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ys-seg button { position: relative; z-index: 1; height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--ff-ui); cursor: pointer; white-space: nowrap; transition: color .2s ease; }
.ys-seg button[aria-checked="true"] { color: var(--ink); }
.ys-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ys-seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 16%, transparent); transition: transform var(--ys-quick-dur) var(--ys-quick), width var(--ys-quick-dur) var(--ys-quick), opacity .2s ease; opacity: 0; }
.ys-seg.has-pick .thumb { opacity: 1; }
.ys-seg-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; min-height: 1.45em; }


.ys-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.ys-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--accent); }
.ys-legend i.o { background: var(--accent); } .ys-legend i.c { border-style: dashed; } .ys-legend i.x { border-color: var(--faint); }
.hol-list { display: flex; flex-direction: column; margin-top: 14px; border: 1px solid var(--ys-line); border-radius: 12px; overflow: hidden; }
.hol-list:empty { display: none; }
@keyframes ys-row-in { from { opacity: 0; transform: translateY(-8px) scale(.985); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.hol-empty { margin-top: 14px; padding: 18px; border: 1px dashed var(--faint); border-radius: 12px; text-align: center; color: var(--muted); font-size: 13px; }

/* Inventory */
.ys-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ys-stat { padding: 14px 16px; border: 1px solid var(--ys-line); border-radius: 12px; background: var(--canvas); min-width: 0; }
.ys-stat .k { font: 500 12px var(--ff-ui); color: var(--muted); }
.ys-stat b { display: block; margin-top: 6px; font: 700 24px/1 var(--ff-ui); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ys-stat b small { font: 500 12.5px var(--ff-ui); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.ys-stat.warn b { color: var(--warn); }
.ys-bar { display: block; height: 4px; margin-top: 10px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 22%, transparent); overflow: hidden; }
.ys-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ok); transition: width .8s var(--ys-ease); }
.ys-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ys-actions .hint { font-size: 12.5px; color: var(--muted); }

/* Shop readiness */
.ys-sys { border: 1px solid var(--ys-line); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.ys-sys > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background .15s ease; }
.ys-sys > summary::-webkit-details-marker { display: none; }
.ys-sys > summary:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.ys-sys .nm { font: 650 14.5px var(--ff-ui); color: var(--ink); }
.ys-sys .meta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.ys-sys .chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--ys-quick-dur) var(--ys-quick); }
.ys-sys[open] .chev { transform: rotate(90deg); }
.ys-sys .gates { list-style: none; margin: 0; padding: 0 16px 8px; animation: ys-row-in var(--ys-quick-dur) var(--ys-quick); }
.ys-sys .gates li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--ys-line); font-size: 13.5px; color: var(--ink); }
.ys-sys .gates .ok, .ys-sys .gates .no { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.ys-sys .gates .ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ys-sys .gates .no { background: color-mix(in srgb, var(--no) 12%, transparent); color: var(--no); }
.ys-sys .gates svg { width: 12px; height: 12px; }
.ys-sys .gates .n { font: 500 12.5px var(--ff-mono); color: var(--muted); white-space: nowrap; }
.ys-sys .gates small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ys-fix { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ys-line); }
.ys-fix:first-of-type { border-top: 0; }
.ys-fix b { font: 600 14px var(--ff-ui); color: var(--ink); }
.ys-fix small { grid-column: 1; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ys-fix .ys-btn { grid-row: 1 / span 2; grid-column: 2; }
.ys-fix .res { grid-column: 1 / -1; font-size: 12.5px; color: var(--ok); }
.ys-fix .res.err { color: var(--no); }
.ys-confirm { display: none; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--ys-line)); background: color-mix(in srgb, var(--warn) 7%, var(--paper)); font-size: 13px; color: var(--ink); animation: ys-row-in var(--ys-quick-dur) var(--ys-quick); }
.ys-confirm.is-on { display: flex; }
.ys-confirm span { flex: 1 1 260px; }

/* The capsule. A card with changes makes room at its foot (the padding springs
   open) and a capsule rises into it: what changed · Undo · Save. While the card
   runs past the bottom of the screen the capsule rides the screen's edge, so
   Save is always under the hand. One shape carries every state — unsaved,
   saving, saved, refused — and morphs its width between them while the words
   blur across; when it is done it folds away and the card closes the gap.
   Messages that belong to no card use the same capsule at the page's foot. */
.ys-card.has-cap { padding-bottom: 62px; }
.ys-card.is-settled { transition-delay: 0s; }
.ys-dock { position: sticky; bottom: 70px; height: 0; z-index: 6; pointer-events: none; }
.ys-dock .ys-cap { top: 10px; }
.ys-cap { position: absolute; left: 50%; translate: -50% 0; box-sizing: border-box; width: 40px; height: 42px; border-radius: 999px; overflow: hidden;
          background: var(--paper); color: var(--ink); border: 1px solid var(--ys-line);
          box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--ink) 40%, transparent), 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
          opacity: 0; scale: .9 .7; translate: -50% 8px; pointer-events: none;
          transition: width var(--ys-spring-dur) var(--ys-spring), scale var(--ys-spring-dur) var(--ys-spring), translate var(--ys-spring-dur) var(--ys-spring),
                      opacity .22s ease, background .3s ease, border-color .3s ease; }
.ys-cap.is-on { opacity: 1; scale: 1; translate: -50% 0; pointer-events: auto; }
.ys-cap.is-going { opacity: 0; scale: .92 .8; translate: -50% 6px; transition: width .3s var(--ys-out), scale .3s var(--ys-out), translate .3s var(--ys-out), opacity .22s ease; }
.ys-cap.err { border-color: color-mix(in srgb, var(--no) 45%, var(--ys-line)); background: color-mix(in srgb, var(--no) 5%, var(--paper)); }
.ys-cap.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--ys-line)); }
.ys-cap .il { position: absolute; left: 0; top: 0; height: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 5px 0 14px; white-space: nowrap; font: 500 13.5px var(--ff-ui); }
.ys-cap .il.solo { padding-right: 16px; }
.ys-cap .il.in { animation: ys-il-in .42s var(--ys-quick) both; }
.ys-cap .il.out { animation: ys-il-out .14s ease both; }
@keyframes ys-il-in { from { opacity: 0; filter: blur(5px); transform: translateY(3px); } }
@keyframes ys-il-out { to { opacity: 0; filter: blur(5px); transform: translateY(-3px); } }
.ys-cap .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.ys-cap .ic svg { width: 12px; height: 12px; }
.ys-cap .ic.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.ys-cap .ic.ok { background: var(--ok); color: #fff; animation: ys-pop .5s var(--ys-quick) both; }
.ys-cap .ic.no { background: var(--no); color: #fff; }
.ys-cap .ic.spin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 85%, transparent); border-right-color: transparent; animation: ys-spin .7s linear infinite; }
@keyframes ys-pop { from { transform: scale(.4); opacity: 0; } }
.ys-cap .tx { overflow: hidden; text-overflow: ellipsis; max-width: min(56vw, 440px); color: var(--ink); }
.ys-cap .tx small { color: var(--muted); font-size: 12.5px; }
.ys-cap.err .tx { color: var(--no); }
.ys-cap button { height: 32px; padding: 0 14px; border-radius: 999px; font: 600 13px var(--ff-ui); cursor: pointer; border: 1px solid transparent; transition: transform var(--ys-quick-dur) var(--ys-quick), background .15s ease; }
.ys-cap button:active { transform: scale(.93); transition-duration: .08s; }
.ys-cap button.q { background: transparent; color: var(--muted); }
.ys-cap button.q:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ys-cap button.p { background: var(--accent); color: #fff; }
.ys-cap button.p:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.ys-cap button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ys-note-dock { position: fixed; left: 0; right: 0; bottom: 64px; height: 0; z-index: 70; pointer-events: none; }
.ys-note-dock .ys-cap { top: 0; }

@media (max-width: 760px) {
    .ys-top, .ys-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ys-top a:nth-child(3) { border-left: 0; }
    .ys-top a:nth-child(n+3) { border-top: 1px solid var(--ys-line); }
    .ys-grid { grid-template-columns: 1fr; }
    .ys-row { flex-wrap: wrap; }
    .ys-row .c { width: 100%; }
    .ys-row:has(> .c > .ys-sw) { flex-wrap: nowrap; }
    .ys-row .c:has(> .ys-sw) { width: auto; }
}
@media (pointer: coarse) {
    .ys-btn { height: 44px; }
    .ys-seg button { height: 40px; }
    .ys-f input, .ys-f select { height: 46px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ys-card, .ys-seg .thumb, .ys-sw i::after, .ys-bar i, .ys-btn, .ys-chip { transition: none !important; animation: none !important; }
    .ys-card { opacity: 1; transform: none; filter: none; }
    .ys-cap, .ys-cap.is-going { transition: opacity .2s ease !important; scale: 1 !important; translate: -50% 0 !important; }
    .ys-cap .il.in, .ys-cap .il.out, .ys-cap .ic.ok { animation: none !important; }
}


