/* Stylist: Chat · Build · Canvas · History (screens/stylist.js), sized from
   the app's StylistView, ChatOutfitCards, OutfitSliderBuilderView and
   OutfitCanvasView at 402 pt. Values the shell's tokens lack are defined here,
   dark first, light under prefers-color-scheme. */
[data-screen="stylist"], [data-screen="stylistpick"] {
  --sy-bar: #121313;                          /* .bar material over the black page, measured in the app's picture */
  --sy-field: rgba(235, 235, 245, 0.06);      /* secondary at 10% (the composer capsule) */
  --sy-sug: rgba(235, 235, 245, 0.072);       /* secondary at 12% (a suggestion) */
  --sy-x-bg: rgba(0, 0, 0, 0.82);
  --sy-ph: #424242;                           /* the try-on placeholder */
}
@media (prefers-color-scheme: light) {
  [data-screen="stylist"], [data-screen="stylistpick"] {
    --sy-bar: #f7f8f7;
    --sy-field: rgba(60, 60, 67, 0.06);
    --sy-sug: rgba(60, 60, 67, 0.072);
    --sy-x-bg: rgba(60, 60, 67, 0.55);
    --sy-ph: #9e9e9e;
  }
}

/* ---------- The page: a fixed column (segmented control, a scroller, a dock) ---------- */
[data-screen="stylist"] .page-scroll { overflow: hidden; }
[data-screen="stylist"] .page-body { height: 100%; min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; }
.sy { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sy > .seg { flex: none; margin-bottom: var(--s-s); }
.sy-main { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--s-l)); padding: 0 var(--s-l) calc(var(--tabbar-h) + var(--tabbar-gap) + var(--s-l)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sy-main::-webkit-scrollbar { display: none; }
.sy .i { flex: none; }
.sy-acted-pic img, .sy-mini-t img, .sy-chip-pic img, .sy-pick .tile-pic img { position: absolute; left: 50%; top: 50%; width: calc(89% * var(--x, 0.86)); height: calc(89% * var(--x, 0.86)); transform: translate(-50%, -50%); object-fit: contain; }
.sy-acted-pic img:is([data-halo], [data-halo-l]), .sy-chip-pic img:is([data-halo], [data-halo-l]) { filter: drop-shadow(0 0 4px rgba(var(--halo-rgb), var(--halo))); }

/* ---------- Chat: the transcript ---------- */
.sy-main.sy-chat { padding-bottom: 0; }
.sy-thread { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-m); padding: var(--s-l) 0; }
.sy-row { position: relative; display: flex; }
.sy-row.me { justify-content: flex-end; }
.sy-bub { max-width: calc(100% - 40px); padding: 10px; border-radius: var(--r-panel); font-size: var(--t-body); line-height: 22px; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.sy-bub.me { background: var(--acc); color: var(--on-acc); }
.sy-bub.them { background: var(--fill); }
.sy-reply, .sy-tryon { display: flex; flex-direction: column; gap: var(--s-s); }

/* The outfit cards block (ChatOutfitCards): 330 wide at 402, pad 12, secondary at 15%, radius 14. */
.sy-cards { width: calc(100% - 40px); padding: var(--s-m); border-radius: var(--r-panel); background: var(--fill); display: flex; flex-direction: column; gap: var(--s-m); }
.sy-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-m) var(--s-s); }
.sy-card { min-width: 0; }
.app .sy-lay { position: relative; display: block; height: 150px; border-radius: var(--r-thumb); transition: transform var(--press); }
.sy-card.top .sy-lay { height: 200px; }
.app .sy-lay.is-pressed { transform: scale(0.97); opacity: 1; }
.sy-acts { display: flex; align-items: center; gap: var(--s-s); margin-top: var(--s-s); }
.sy-acts.two { flex-direction: column; align-items: stretch; gap: var(--s-m); }
.sy-acts.center { justify-content: center; margin-top: 0; }
.sy-acts.center .sy-lead { flex: none; }
.sy-lead { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s-s); }
/* A look card's action (.wardroSecondaryChip): drawn 32 tall, tapped 44; caption 12 medium. */
.app .sy-cap { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 44px; height: 32px; padding: 0 var(--s-s); border-radius: 16px; background: var(--fill); color: var(--ink); font: 500 var(--t-cap)/1 var(--text); letter-spacing: 0; white-space: nowrap; transition: opacity var(--press), transform var(--press); }
.sy-cap::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.sy-cap .i { width: 13px; height: 13px; stroke-width: 2.1; }
.sy-cap .sy-chev { width: 9px; height: 9px; stroke-width: 2.8; margin-left: 1px; }
.app .sy-cap:disabled { opacity: 0.4; cursor: default; }
.app .sy-cap.is-pressed { opacity: 0.7; }
.sy-working { font-size: var(--t-cap2); color: var(--sub); white-space: nowrap; letter-spacing: 0; }

/* The thinking line: no bubble, the phrase at the reply's inset, the sparkle hung in the margin before it. */
.sy-think { position: relative; margin-right: 40px; padding: 10px; font-size: var(--t-body); line-height: 22px; }
.sy-spark { position: absolute; left: -9px; top: 14px; width: 14px; height: 14px; color: var(--acc-ink); }
.sy-spark > span { display: block; width: 14px; height: 14px; }
.sy-spark .i { width: 14px; height: 14px; display: block; }
.sy-phrase { display: inline-block; transition: opacity 0.3s ease-out, filter 0.3s ease-out, transform 0.3s ease-out; }
.sy-phrase .w, .revealing .sy-bub .w { display: inline-block; white-space: nowrap; }
.sy-phrase .ch, .revealing .sy-bub .ch { display: inline-block; }
.sy-phrase .ink { display: inline-block; opacity: 0.55; }
.sy-phrase.leaving { opacity: 0; filter: blur(4px); transform: translateY(-6px); }
.sy-ghost { position: absolute; left: 0; top: 0; padding: 10px; font-size: var(--t-body); line-height: 22px; pointer-events: none; white-space: nowrap; }
.sy-ghost .sy-phrase .ink { opacity: 0.55; animation: none; }
.sy-ghost .sy-phrase .ch { animation: none; }

/* The try-on in the chat: the placeholder, then the picture with its trash beside it. */
.sy-tryon-wait { position: relative; height: var(--sy-tryon-h, 360px); border-radius: var(--r-panel); background: var(--sy-ph); overflow: hidden; }
.sy-dots { position: absolute; left: 50%; top: 50%; display: flex; gap: 6px; transform: translate(-50%, -50%); }
.sy-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.sy-sweep { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%); transform: translateX(-100%); }
.sy-tryon-row { display: flex; align-items: center; justify-content: center; gap: var(--s-l); }
.sy-trash-gutter { flex: none; width: 44px; }
.app .sy-tryon-pic { display: block; height: var(--sy-tryon-h, 360px); aspect-ratio: 3 / 4; border-radius: var(--r-panel); overflow: hidden; transition: transform var(--press); }
.sy-tryon-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app .sy-tryon-pic.is-pressed { transform: scale(0.98); opacity: 1; }
.app .sy-trash { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--red); }
.sy-trash .i { width: 22px; height: 22px; }

/* The empty chat (OpeningSuggestions) and the demo's own lines. */
.sy-open { display: flex; flex-direction: column; gap: var(--s-m); padding-top: var(--s-xl); }
.sy-hint { font-size: var(--t-sub); line-height: 20px; color: var(--sub); letter-spacing: -0.01em; }
.sy-hint .i { width: 18px; height: 18px; vertical-align: -3px; }
.sy-sugs { display: flex; flex-direction: column; gap: var(--s-s); }
.app .sy-sug { display: flex; align-items: flex-start; gap: var(--s-s); width: 100%; padding: var(--s-s) var(--s-m); border-radius: var(--r-panel); background: var(--sy-sug); text-align: left; transition: opacity var(--press); }
.sy-sug .i { width: 13px; height: 13px; margin-top: 4px; color: var(--sub); stroke-width: 1.9; }
.sy-sug b { display: block; font-weight: 400; font-size: var(--t-sub); line-height: 20px; letter-spacing: -0.01em; }
.sy-sug small { display: block; margin-top: 1px; font-size: var(--t-cap2); line-height: 13px; color: var(--sub); letter-spacing: 0.01em; }
.sy-others { display: flex; justify-content: flex-end; }
.app .sy-others button { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; color: var(--acc-ink); font-size: var(--t-cap); letter-spacing: 0; }
.sy-others .i { width: 15px; height: 15px; }
.sy-demo { font-size: var(--t-cap); line-height: 16px; color: var(--sub); letter-spacing: 0; }
.app .sy-demo button { color: var(--acc-ink); font-size: inherit; text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 2px; }
.sy-honest { display: flex; flex-direction: column; gap: var(--s-s); margin-right: 40px; }
.sy-honest > p { padding: 10px; color: var(--sub); line-height: 22px; }

/* ---------- Chat: the dock (.bar material behind one hairline) ---------- */
.sy-dock { flex: none; position: relative; margin: 0 calc(-1 * var(--s-l)); padding-bottom: calc(var(--tabbar-h) + var(--tabbar-gap)); background: var(--sy-bar); box-shadow: inset 0 0.5px 0 var(--line); }
.sy-tray { padding: var(--s-s) var(--s-l) var(--s-s); }
.sy-tray[data-open="1"] .sy-tray-fold, .sy-tray[data-open="0"] .sy-tray-open { display: none; }
.app .sy-tray-fold { display: flex; align-items: center; gap: var(--s-s); width: 100%; min-height: 44px; text-align: left; }
.sy-tray-t { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.sy-tray-t.sy-inline { flex-direction: row; align-items: baseline; gap: 4px; }
.sy-tray-t b { font: 600 var(--t-cap)/16px var(--text); letter-spacing: 0; white-space: nowrap; }
.sy-tray-t small { font-size: var(--t-cap2); line-height: 13px; color: var(--sub); letter-spacing: 0; white-space: nowrap; }
.sy-tray .sy-chev, .sy-tray-chev .i { width: 13px; height: 13px; stroke-width: 2.6; color: var(--sub); }
.sy-mini { display: flex; padding-left: 6px; }
.sy-mini-t { position: relative; width: 28px; height: 28px; margin-left: -6px; border-radius: var(--r-badge); background: var(--bg); overflow: hidden; box-shadow: 0 0 0 1px var(--sy-bar); }
.sy-mini-more { margin-left: 4px; align-self: center; font-size: var(--t-cap2); color: var(--sub); }
.sy-tray-head { display: flex; align-items: center; gap: 4px; height: 44px; }
.app .sy-arrange { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--acc-ink); font-size: var(--t-cap2); letter-spacing: 0; }
.sy-arrange .i { width: 15px; height: 15px; }
.app .sy-tray-chev { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -12px; }
.sy-tray-open, .sy-tray-fold { animation: sy-receipt 0.2s cubic-bezier(0.2, 0.9, 0.3, 1) both; }

/* The acted-on strip: tiles on the page colour, the remove badge in the corner, no names (names on the canvas). */
.strip.sy-acted { gap: var(--s-s); padding-top: 4px; padding-bottom: 2px; }
.strip.sy-acted > * { flex: 0 0 var(--sy-tile, 134px); }
.sy-acted-t { position: relative; display: flex; flex-direction: column; align-items: center; }
.app .sy-acted-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--r-card); background: var(--bg); transition: transform var(--press); }
.app .sy-acted-pic.is-pressed { transform: scale(0.96); opacity: 1; }
.sy-add { display: grid !important; place-items: center; background: var(--fill) !important; color: var(--acc-ink); }
.sy-add .i { width: 26px; height: 26px; }
.app .sy-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--sy-x-bg); color: #fff; }
.sy-x::before { content: ""; position: absolute; inset: -11px; }
.sy-x .i { width: 11px; height: 11px; stroke-width: 2.6; }
.sy-acted-name { margin-top: var(--s-xs); font-size: var(--t-cap); line-height: 15px; text-align: center; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sy-pair { display: flex; gap: var(--s-m); margin-top: var(--s-s); }
.app .sy-pair .btn-wide { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 var(--s-s); font-size: var(--t-body); white-space: nowrap; }
.app .sy-tonal { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: var(--s-s); min-height: 44px; padding: 0 var(--s-s); border-radius: var(--r-card); background: var(--fill); font: 600 var(--t-sub)/1.2 var(--text); white-space: nowrap; transition: opacity var(--press); }
.sy-tonal .i { width: 20px; height: 20px; }
.app .sy-tonal:disabled { opacity: 0.4; cursor: default; }
.sy-pair .btn-wide .i { width: 20px; height: 20px; }

/* The composer row (pad 16): the shirt, the camera, the capsule with its send disc. */
.sy-compose { display: flex; align-items: center; gap: 10px; padding: var(--s-l); }
.app .sy-glyph { flex: none; width: 30px; height: 44px; display: grid; place-items: center; color: var(--ink); transition: opacity var(--press); }
.sy-glyph .i { width: 25px; height: 25px; }
.sy-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s-s); padding: 4px 4px 4px var(--s-l); border-radius: 22px; background: var(--sy-field); }
.app .sy-field textarea { flex: 1 1 auto; min-width: 0; height: 26px; padding: 2px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: 400 var(--t-body)/22px var(--text); letter-spacing: -0.022em; scrollbar-width: none; }
.sy-field textarea::placeholder { color: var(--faint); opacity: 1; }
.sy-field textarea::-webkit-scrollbar { display: none; }
.app .sy-clear { flex: none; width: 24px; height: 28px; display: grid; place-items: center; color: var(--faint); }
.sy-clear[hidden] { display: none !important; }
.sy-clear .i { width: 19px; height: 19px; }
.app .sy-send { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); --knock: var(--sy-bar); transition: opacity var(--press); }
.sy-send .i { width: 29px; height: 29px; }
.app .sy-send:disabled { opacity: 0.35; cursor: default; }

/* ---------- Build (OutfitSliderBuilderView) ---------- */
.sy-build-top { flex: none; }
.app .sy-prev { position: relative; display: block; height: 168px; border-radius: var(--r-hero); background: var(--bg); transition: transform var(--press); }
.sy-prev .lay { inset: 6px; }
.app .sy-prev.is-pressed { transform: scale(0.985); opacity: 1; }
.sy-prev.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-s); color: var(--sub); text-align: center; }
.sy-prev.is-empty .i { width: 30px; height: 30px; }
.sy-prev.is-empty p { padding: 0 var(--s-xl); font-size: var(--t-cap); }
.sy-wish { padding: var(--s-s) 0 4px; }
.sy-wish-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); min-height: 31px; }
.sy-wish-row b { font-weight: 600; font-size: var(--t-sub); letter-spacing: -0.01em; opacity: 0.45; }
.sy-switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-strong); opacity: 0.5; }
.sy-switch i { position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); }
.sy-wish small { display: block; margin-top: 2px; font-size: var(--t-cap2); color: var(--sub); letter-spacing: 0; }
.sy-main.sy-rows { padding-bottom: var(--s-s); margin-top: var(--s-s); box-shadow: inset 0 0.5px 0 var(--line); }
.sy-brow { position: relative; display: block; padding: 10px 0; }
.sy-brow::after { content: ""; position: absolute; left: 0; right: calc(-1 * var(--s-l)); bottom: 0; border-bottom: 0.5px solid var(--line); }
.sy-brow-head { display: flex; align-items: center; gap: var(--s-s); min-height: 24px; }
.sy-brow-head b { font-weight: 600; font-size: var(--t-sub); letter-spacing: -0.01em; white-space: nowrap; }
.app .sy-eye { flex: none; position: relative; width: 22px; height: 22px; display: grid; place-items: center; color: var(--sub); }
.sy-eye::before { content: ""; position: absolute; inset: -11px; }
.sy-eye.on { color: var(--acc-ink); }
.sy-eye .i { width: 22px; height: 22px; }
.sy-status { margin-left: auto; min-width: 0; font-size: var(--t-cap); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.sy-bnote { margin-top: 2px !important; padding-left: 30px; font-size: var(--t-cap2); color: var(--sub); letter-spacing: 0; }
.sy-bnote.shake { animation: sy-shake 0.27s linear; }
.strip.sy-chips { gap: var(--s-m); margin-top: 2px; padding-top: 6px; padding-bottom: 2px; transition: opacity var(--receipt); }
.strip.sy-chips > * { flex: 0 0 72px; }
.sy-brow.off .sy-chips { opacity: 0.4; }
.app .sy-chip { display: flex; flex-direction: column; align-items: center; width: 72px; }
.sy-chip-pic { position: relative; display: block; width: 72px; height: 72px; border-radius: var(--r-thumb); background: var(--bg); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow var(--receipt), transform var(--press); }
.sy-chip.on .sy-chip-pic { box-shadow: inset 0 0 0 2px var(--acc); }
.sy-chip.full .sy-chip-pic { opacity: 0.35; }
.app .sy-chip.is-pressed .sy-chip-pic { transform: scale(0.95); }
.app .sy-chip.is-pressed { opacity: 1; }
.sy-tick { position: absolute; top: -4px; right: -4px; z-index: 2; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: var(--on-acc); box-shadow: 0 0 0 1.5px var(--bg); }
.sy-tick .i { width: 9px; height: 9px; stroke-width: 3.2; }
.sy-chip-name { width: 72px; margin-top: 4px; font-size: var(--t-cap2); line-height: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; letter-spacing: 0; }
.sy-chip.on .sy-chip-name { color: var(--ink); }
.sy-foot { flex: none; display: flex; flex-direction: column; gap: 4px; padding: var(--s-s) 0 calc(var(--tabbar-h) + var(--tabbar-gap) + 2px); background: var(--bg); }
.sy-foot p { font-size: var(--t-cap2); color: var(--sub); text-align: center; letter-spacing: 0; }

/* ---------- Canvas (OutfitCanvasView) ---------- */
.sy-main.sy-cv { display: flex; flex-direction: column; }
.sy-cv-box { flex: 1 1 0; min-height: 210px; display: flex; align-items: center; justify-content: center; }
.sy-surface { position: relative; flex: none; border-radius: var(--r-hero); background: var(--bg); overflow: hidden; touch-action: none; }
.sy-pc { position: absolute; display: block; cursor: grab; touch-action: none; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.05); }
.sy-pc.dragging { transition: none; cursor: grabbing; }
.sy-pc-in { position: absolute; inset: 0; display: block; }
.sy-pc-in img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.sy-pc-in img:is([data-halo], [data-halo-l]) { filter: drop-shadow(0 0 5px rgba(var(--halo-rgb), var(--halo))); }
.sy-pc.sel::after { content: ""; position: absolute; inset: -4px; border: 2px dashed var(--acc); border-radius: 6px; pointer-events: none; }
.sy-sel { flex: none; }
.sy-cv-line { min-height: 15px; padding: var(--s-s) var(--s-l) 0; text-align: center; font-size: var(--t-cap2); line-height: 15px; color: var(--sub); letter-spacing: 0; }
.sy-cv-line b { font: 600 var(--t-cap)/15px var(--text); color: var(--ink); }
.sy-tools { display: flex; padding: 0 4px; }
.app .sy-tool { flex: 1 1 0; min-height: 44px; display: grid; place-items: center; color: var(--acc-ink); transition: opacity var(--press); }
.app .sy-tool.red { color: var(--red); }
.app .sy-tool:disabled { opacity: 0.35; cursor: default; }
.sy-tool .i { width: 23px; height: 23px; }
.sy-cv-strip { flex: none; }
.sy-strip-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.sy-strip-head b { font: 600 var(--t-cap)/1.2 var(--text); letter-spacing: 0; }
.app .sy-strip-head button { min-height: 28px; color: var(--acc-ink); font-size: var(--t-cap2); letter-spacing: 0; }
.sy-acted.named .sy-acted-pic { cursor: pointer; }
.sy-cv-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-m); padding: var(--s-xl) 0; text-align: center; color: var(--sub); }
.sy-cv-empty .i { width: 36px; height: 36px; }
.sy-cv-empty p { padding: 0 32px; font-size: var(--t-sub); }

/* ---------- History (StyleHistoryView) ---------- */
.sy-main.sy-hist { display: flex; flex-direction: column; gap: var(--s-s); }
.sy-hist-empty { margin: auto 0 !important; padding-bottom: 60px; text-align: center; color: var(--sub); }
.sy-look { padding: var(--s-m); border-radius: var(--r-panel); background: var(--fill); }
.sy-look-date { font-size: var(--t-cap); color: var(--sub); letter-spacing: 0; }
.sy-look-q { margin: 2px 0 var(--s-s) !important; font-size: var(--t-sub); letter-spacing: -0.01em; }
.app .sy-run { display: flex; align-items: center; gap: var(--s-m); padding: 2px 0; }
.sy-run-pic { flex: none; position: relative; width: 56px; height: 56px; border-radius: var(--r-thumb); background: var(--fill); overflow: hidden; }
.sy-run-pic img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; }
.sy-run-words { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sy-run-words b { font-size: var(--t-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-run-words span { font-size: var(--t-sub); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-run-words small { font-size: var(--t-cap); color: var(--sub); }
.app .sy-hist-clear { align-self: center; min-height: 44px; padding: 0 var(--s-l); color: var(--red); }

/* ---------- Tag Garments ---------- */
.sy-pick .tile-pic { box-shadow: inset 0 0 0 2.5px transparent; transition: box-shadow var(--receipt), transform var(--press); }
.sy-pickt.on .tile-pic { box-shadow: inset 0 0 0 2.5px var(--acc); }
.sy-pickt .sy-tick { top: 6px; right: 6px; width: 22px; height: 22px; box-shadow: none; }
.sy-pickt .sy-tick .i { width: 12px; height: 12px; }

/* ---------- Motion (Motion.swift, ThinkingLine, ReplyReveal) ---------- */
@keyframes sy-receipt { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes sy-wave { from { opacity: 0; filter: blur(5px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes sy-ink { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes sy-breathe { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(0.98); opacity: 1; } }
@keyframes sy-sway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes sy-ghost { to { opacity: 0; filter: blur(6px); } }
@keyframes sy-fill { from { background-color: transparent; } }
@keyframes sy-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sy-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sy-dot { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes sy-sweep { 0% { transform: translateX(-100%); } 58%, 100% { transform: translateX(100%); } }
@keyframes sy-shake { 0% { transform: translateX(0); } 22% { transform: translateX(-5px); } 52% { transform: translateX(5px); } 78% { transform: translateX(-3px); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: no-preference) {
  .sy-phrase .ch { animation: sy-wave 0.165s cubic-bezier(0.33, 1, 0.68, 1) both; animation-delay: calc(var(--i) / var(--n) * 0.385s); }
  .sy-phrase .ink { animation: sy-ink 0.38s ease-in-out both; animation-delay: calc(0.45s + var(--i) / var(--n) * 0.87s); }
  .sy-spark > span { animation: sy-breathe 1.8s ease-in-out infinite alternate; }
  .sy-spark { animation: sy-sway 7.2s ease-in-out infinite; }
  .sy-ghost { animation: sy-ghost 0.15s ease-out both; }
  .revealing .sy-bub.them { animation: sy-fill 0.2s ease-out both; }
  .revealing .sy-bub.them .ch { animation: sy-wave calc(var(--dur) * 0.3) cubic-bezier(0.33, 1, 0.68, 1) both; animation-delay: calc(0.08s + var(--i) / var(--n) * var(--dur) * 0.7); }
  .revealing .sy-cards { animation: sy-rise 0.4s cubic-bezier(0.25, 1, 0.5, 1) both; animation-delay: var(--cards); }
  .sy-dots i { animation: sy-dot 1.2s ease-in-out infinite; }
  .sy-dots i:nth-child(2) { animation-delay: 0.24s; }
  .sy-dots i:nth-child(3) { animation-delay: 0.48s; }
  .sy-sweep { animation: sy-sweep 2.4s ease-in-out infinite; }
  .sy-tryon.arriving, .sy-honest { animation: sy-fade 0.3s cubic-bezier(0.42, 0, 0.58, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .revealing { animation: sy-fade 0.3s ease-in-out both; }
  .sy-ghost { display: none; }
  .sy-tray-open, .sy-tray-fold { animation: none; }
}
