/* 12 · Make it yours (round 4). Owner: agent B. Prefix yo-.
   A gallery that slides by itself (one card at a time, every few seconds; it
   pauses under the pointer or keyboard focus, and Reduce Motion keeps it still).
   Each card is a small piece of the real app rebuilt with the app.css kit and
   checked against frames captured from the live web build; only the current
   card plays its loop: a Home shortcut dragged, the Android widget opening New
   Sale, a tab held as the default, a product group made, the balance hidden,
   and the dark palette. Laid out on the 1440 x 900 frame. */
.ks.yo { --sky1: #2E3A66; --sky2: #22305A; --sx: 1; }
.ks.yo[dir="rtl"] { --sx: -1; }
.ks .yo-glow { position: absolute; left: -1800px; right: -1800px; top: -200px; bottom: -400px; pointer-events: none;
  background: radial-gradient(900px 500px at 50% 75%, rgba(11,186,216,.16), rgba(11,186,216,0)); }

/* ---------- header ---------- */
.ks .yo-head { position: absolute; inset-inline: 96px; top: 104px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.ks .yo-copy .eyebrow { margin-bottom: 14px; }
.ks .yo-h { font-size: 58px; line-height: 1.04; letter-spacing: 0; }
.ks[dir="rtl"] .yo-h { font-size: 56px; line-height: 1.28; }
.ks .yo-lead { margin-top: 14px; font-size: 19px; }

/* ---------- the gallery: an endless band that moves by itself (two copies of the cards, one set apart) ---------- */
.ks.yo { --cw: 360px; --gap: 24px; --set: calc(8 * (var(--cw) + var(--gap))); }
.ks .yo-view { position: absolute; inset-inline: 0; top: 282px; height: 600px; overflow: hidden; outline: none; }
.ks .yo-track { display: flex; gap: var(--gap); width: max-content; margin: 0; padding: 6px 0 20px; padding-inline-start: 96px; list-style: none;
  animation: yo-marq 96s linear infinite; will-change: transform; }
.ks .yo-view:hover .yo-track, .ks .yo-view:focus-within .yo-track { animation-play-state: paused; }
.ks .yo-view:focus-visible { box-shadow: inset 0 0 0 3px rgba(11,186,216,.7); border-radius: 12px; }
@keyframes yo-marq { from { transform: none; } to { transform: translateX(calc(var(--sx) * -1 * var(--set))); } }
@media (prefers-reduced-motion: reduce) { .ks .yo-track { animation: none !important; } }
.ks .yo-card { flex: 0 0 360px; height: 576px; display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: 28px;
  background: #fff; color: #0F1D22; box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); }
.ks .yo-card img { -webkit-user-drag: none; }
.ks .yo-card > h3 { margin: 20px 8px 0; font-size: 23px; font-weight: 800; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ks .yo-card > p { margin: 8px 8px 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: #2A3F4D; }
.ks .yo-only { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #E8F8F0; color: #1E8449; font-size: 12px; font-weight: 800; }
.ks .yo-vis { position: relative; width: 272px; height: 300px; zoom: 1.2206; border-radius: 16.4px; overflow: hidden; background: #EEF6F8; flex: none; }

/* ---------- the cards: small pieces of the real app (app.css kit, 390 px logical, scaled) ---------- */
.ks .yo-card { transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.ks .yo-vis { background: #F4FAFB; }
.ks .yo-app { position: absolute; inset-inline-start: 0; top: 0; width: 390px; height: 430px; zoom: .6974; overflow: hidden; }
.ks .yo-app .a-home { position: relative; height: 100%; background: var(--bg); }
.ks .yo-dot { position: absolute; z-index: 30; width: 40px; height: 40px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 2.5px rgba(15,29,34,.3), 0 6px 18px rgba(15,29,34,.25); }
.ks .yo-card.on .yo-dot, .ks .yo-card.on .yo-app *, .ks .yo-card.on .yo-wall * { animation-duration: var(--T, 8s); animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.45,0,.3,1); animation-fill-mode: both; }

/* 1 · Home shortcuts: Products is held, dragged past Accounts and Parties, then back */
.ks .c-short { --T: 8.4s; }
.ks .c-short .yo-dot { inset-inline-start: 36px; top: 223px; }
.ks .c-short.on .q-p { animation-name: yo-sp; position: relative; z-index: 5; }
.ks .c-short.on .q-a { animation-name: yo-sa; }
.ks .c-short.on .q-c { animation-name: yo-sc; }
.ks .c-short.on .d1 { animation-name: yo-sd; }
@keyframes yo-sp {
  0%, 9% { transform: none; filter: none; }
  14% { transform: translateY(-4px) scale(1.12); filter: drop-shadow(0 10px 12px rgba(10,25,41,.22)); }
  36% { transform: translateX(calc(var(--sx) * 185.3px)) translateY(-4px) scale(1.12); filter: drop-shadow(0 10px 12px rgba(10,25,41,.22)); }
  41%, 55% { transform: translateX(calc(var(--sx) * 185.3px)); filter: none; }
  60% { transform: translateX(calc(var(--sx) * 185.3px)) translateY(-4px) scale(1.12); filter: drop-shadow(0 10px 12px rgba(10,25,41,.22)); }
  82% { transform: translateY(-4px) scale(1.12); filter: drop-shadow(0 10px 12px rgba(10,25,41,.22)); }
  87%, 100% { transform: none; filter: none; }
}
@keyframes yo-sa { 0%, 21% { transform: none; } 28%, 74% { transform: translateX(calc(var(--sx) * -92.7px)); } 81%, 100% { transform: none; } }
@keyframes yo-sc { 0%, 29% { transform: none; } 36%, 64% { transform: translateX(calc(var(--sx) * -92.7px)); } 71%, 100% { transform: none; } }
@keyframes yo-sd {
  0%, 8% { opacity: 0; transform: scale(.6); }
  11% { opacity: 1; transform: none; }
  36%, 39% { opacity: 1; transform: translateX(calc(var(--sx) * 185.3px)); }
  43%, 56% { opacity: 0; transform: translateX(calc(var(--sx) * 185.3px)); }
  59% { opacity: 1; transform: translateX(calc(var(--sx) * 185.3px)); }
  82%, 84% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}

/* 2 · Home-screen widgets (Android and iPhone), drawn from the built widgets (canvas "Konto Home Widgets", 7a, and the repo's widget layouts) */
.ks .yo-wall { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 70% at 20% 0%, #4C6FAE, #22366B 55%, #182650); }
.ks .yo-apps { position: absolute; inset-inline: 22px; top: 16px; display: flex; justify-content: space-between; }
.ks .yo-apps.b { top: auto; bottom: 18px; }
.ks .yo-apps i { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ks .yo-apps i:nth-child(1) { background: linear-gradient(150deg, #7FD3A4, #3FA86F); }
.ks .yo-apps i:nth-child(2) { background: linear-gradient(150deg, #FFD37A, #F0A03C); }
.ks .yo-apps i:nth-child(3) { background: linear-gradient(150deg, #9CC3FF, #5B8DE8); }
.ks .yo-apps i:nth-child(4) { background: linear-gradient(150deg, #F7A3B6, #DE5E7C); }
.ks .yo-apps.b i { background: rgba(255,255,255,.16); }

/* the exchange calculator, 4 x 2: two rows with ▾ currency buttons and the swap between them */
.ks .c-calc { --T: 8s; }
.ks .yo-calc { position: absolute; inset-inline-start: 50%; top: 74px; width: 330px; height: 216px; zoom: .76; margin-inline-start: -165px; padding: 10px 12px 12px; border-radius: 26px; background: #fff; box-shadow: 0 10px 24px rgba(5,12,30,.35); }
.ks .yo-ch { margin: 2px 4px 8px; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: #4A6275; }
.ks .yo-ch img { width: 24px; height: 24px; }
.ks .yo-cr { position: relative; height: 72px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-radius: 22px; background: #EFF3F6; box-shadow: inset 0 0 0 1.5px #E1E8EE; }
.ks .yo-cp { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #E1E8EE; font-size: 16px; font-weight: 500; color: #0A1929; }
.ks .yo-cp b { color: #0BBAD8; font-weight: 500; }
.ks .yo-cp svg { width: 16px; height: 16px; color: #4A6275; }
.ks .yo-ca { position: relative; display: grid; justify-items: end; direction: ltr; }
.ks .yo-ca .v { grid-area: 1 / 1; font-size: 34px; font-weight: 400; color: #0A1929; opacity: 0; }
.ks .yo-ca .v1 { opacity: 1; }
.ks .yo-caret { position: absolute; inset-inline-end: -5px; top: 8px; width: 2px; height: 30px; background: #0BBAD8; opacity: 0; }
.ks .yo-swap { position: absolute; z-index: 3; inset-inline-start: 50%; top: 109px; width: 40px; height: 40px; margin-inline-start: -20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #E1E8EE; display: grid; place-items: center; }
.ks .yo-swap svg { width: 24px; height: 24px; }
.ks .c-calc .dc1 { inset-inline-start: auto; inset-inline-end: 40px; top: 58px; }
.ks .c-calc .dc2 { inset-inline-start: 145px; top: 108px; }
.ks .c-calc.on .r1 .v1, .ks .c-calc.on .r2 .v1 { animation-name: yo-c1; }
.ks .c-calc.on .r1 .v2, .ks .c-calc.on .r2 .v2 { animation-name: yo-c2; }
.ks .c-calc.on .r1 .v3, .ks .c-calc.on .r2 .v3 { animation-name: yo-c3; }
.ks .c-calc.on .r1 .v4 { animation-name: yo-c4; }
.ks .c-calc.on .r2 .v4 { animation-name: yo-c4b; }
.ks .c-calc.on .r2 .v5 { animation-name: yo-c5; }
.ks .c-calc.on .yo-caret { animation-name: yo-caret; }
.ks .c-calc.on .p-usd { animation-name: yo-pu; }
.ks .c-calc.on .p-iqd { animation-name: yo-pi; }
.ks .c-calc.on .yo-swap svg { animation-name: yo-sw; }
.ks .c-calc.on .yo-swap { animation-name: yo-press; }
.ks .c-calc.on .dc1 { animation-name: yo-dc1; }
.ks .c-calc.on .dc2 { animation-name: yo-dc2; }
@keyframes yo-c1 { 0%, 14% { opacity: 1; } 16%, 96% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes yo-c2 { 0%, 15% { opacity: 0; } 16%, 24% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes yo-c3 { 0%, 25% { opacity: 0; } 26%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes yo-c4 { 0%, 35% { opacity: 0; } 36%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes yo-c4b { 0%, 35% { opacity: 0; } 36%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes yo-c5 { 0%, 65% { opacity: 0; } 68%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes yo-caret { 0%, 12% { opacity: 0; } 13%, 18% { opacity: 1; } 21% { opacity: 0; } 24%, 29% { opacity: 1; } 32% { opacity: 0; } 34%, 44% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes yo-pu { 0%, 58% { transform: none; } 66%, 94% { transform: translateY(80px); } 99%, 100% { transform: none; } }
@keyframes yo-pi { 0%, 58% { transform: none; } 66%, 94% { transform: translateY(-80px); } 99%, 100% { transform: none; } }
@keyframes yo-sw { 0%, 58% { transform: none; } 66%, 94% { transform: rotate(180deg); } 99%, 100% { transform: rotate(360deg); } }
@keyframes yo-press { 0%, 56% { transform: none; } 59% { transform: scale(.88); } 62%, 100% { transform: none; } }
@keyframes yo-dc1 { 0%, 8% { opacity: 0; transform: scale(.6); } 10%, 13% { opacity: 1; transform: none; } 16%, 100% { opacity: 0; } }
@keyframes yo-dc2 { 0%, 52% { opacity: 0; transform: scale(.6); } 55%, 60% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; } }

/* today's rate card (2 x 2, a stack you swipe) beside apps, quick actions below; New Sale opens the flow */
.ks .c-widget { --T: 8s; }
.ks .yo-top { position: absolute; inset-inline: 16px; top: 16px; display: flex; gap: 16px; align-items: flex-start; }
.ks .yo-top .yo-apps { position: static; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; justify-items: center; padding-top: 6px; }
.ks .yo-rcs { position: relative; width: 120px; height: 124px; flex: none; }
.ks .yo-rcs > i { position: absolute; inset: 0; border-radius: 22px; }
.ks .yo-rcs > i.s2 { transform: translate(14px, -8px); background: #6E9FE6; }
.ks[dir="rtl"] .yo-rcs > i.s2 { transform: translate(-14px, -8px); }
.ks .yo-rcs > i.s1 { transform: translate(7px, -4px); background: #2A4466; }
.ks[dir="rtl"] .yo-rcs > i.s1 { transform: translate(-7px, -4px); }
.ks .yo-rc { position: absolute; inset: 0; overflow: hidden; padding: 10px 12px; border-radius: 22px; color: #fff; background: linear-gradient(160deg, #12C3DE, #0A8B9C 60%, #077786); box-shadow: 0 8px 18px rgba(5,12,30,.35); }
.ks .yo-rg { position: absolute; inset-inline-end: -14px; top: -10px; font-size: 120px; font-weight: 300; line-height: 1; color: rgba(255,255,255,.12); }
.ks .yo-rh { position: relative; margin: 0; display: flex; align-items: center; gap: 8px; }
.ks .yo-coin { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #0A7F8F; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.ks .yo-rh b { font-size: 14px; font-weight: 500; }
.ks .yo-rv { position: relative; margin: 6px 0 0; font-size: 28px; font-weight: 400; line-height: 1.05; }
.ks .yo-ru { position: relative; margin: 2px 0 0; font-size: 10.5px; font-weight: 500; opacity: .92; }
.ks .yo-rl { position: absolute; inset-inline: 8px; bottom: 12px; width: calc(100% - 16px); height: 12px; overflow: visible; }
.ks[dir="rtl"] .yo-rl { transform: scaleX(-1); }
.ks .yo-rl path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ks .yo-rl circle { fill: #fff; }
.ks .yo-qaw { position: absolute; inset-inline: 12px; top: 158px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 4px 6px; border-radius: 22px; background: #fff; box-shadow: 0 10px 24px rgba(5,12,30,.35); }
.ks .yo-qaw > span { display: grid; justify-items: center; align-content: start; gap: 3px; }
.ks .yo-qaw img { width: 44px; height: 44px; border-radius: 50%; }
.ks .yo-qaw em { font-style: normal; font-size: 10.5px; font-weight: 500; line-height: 1.2; text-align: center; color: #0A1929; min-height: 26px; padding: 0 1px; }
.ks .yo-ns { top: auto; bottom: 0; height: 300px; transform: translateY(102%); background: transparent; overflow: visible; }
.ks .yo-ns .a-sheet { position: absolute; inset: 0; transform: none; max-height: none; }
.ks .c-widget .yo-dot { inset-inline-start: 24px; top: 172px; }
.ks .c-widget.on .yo-rl path { animation-name: yo-rl; }
.ks .c-widget.on .yo-rl circle { animation-name: yo-rd; }
.ks .c-widget.on .yo-rc { animation-name: yo-rc; }
.ks .c-widget.on .yo-ns { animation-name: yo-ns; }
.ks .c-widget.on .w1 img { animation-name: yo-wp; }
.ks .c-widget.on .d2 { animation-name: yo-wd; }
@keyframes yo-rl { 0%, 4% { stroke-dashoffset: 100; } 26%, 100% { stroke-dashoffset: 0; } }
@keyframes yo-rd { 0%, 24% { opacity: 0; } 27%, 100% { opacity: 1; } }
@keyframes yo-rc { 0%, 2% { transform: none; } 6% { transform: translateY(-3px); } 10%, 100% { transform: none; } }
@keyframes yo-ns { 0%, 44% { transform: translateY(102%); } 52%, 84% { transform: none; } 92%, 100% { transform: translateY(102%); } }
@keyframes yo-wp { 0%, 38% { transform: none; } 41% { transform: scale(.88); } 45%, 100% { transform: none; } }
@keyframes yo-wd { 0%, 34% { opacity: 0; transform: scale(.6); } 37%, 42% { opacity: 1; transform: none; } 47%, 100% { opacity: 0; transform: none; } }

/* 5 · Reorder the fields of a drawer: hold Delivery's title, drag it below Payment Method, it settles; then back */
.ks .c-fields { --T: 9s; }
.ks .yo-fapp .a-sheet { position: absolute; inset: 0; transform: none; max-height: none; box-shadow: none; }
.ks .yo-fl { position: relative; }
.ks .yo-f { position: relative; padding: 14px; margin-bottom: 12px; background: #fff; }
.ks .yo-fh { margin: 0; }
.ks .f-cus .yo-fh, .ks .f-pay .yo-fh { margin-bottom: 10px; }
.ks .yo-fe { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--a500); }
.ks .f-ch .yo-fe { color: var(--text); font-size: 14px; }
.ks .yo-f .a-in .ph { color: var(--hint); }
.ks .yo-pm { display: flex; gap: 8px; }
.ks .yo-pm > span { flex: 1; height: 58px; border-radius: 14px; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--border); }
.ks .yo-pm > span.on { color: var(--text); box-shadow: inset 0 0 0 2px var(--a500); background: var(--p-surface); }
.ks .yo-pm img { width: 22px; height: 22px; }
.ks .c-fields .yo-dot { inset-inline-start: 50px; top: 202px; }
.ks .c-fields.on .f-del { animation-name: yo-fd; z-index: 4; }
.ks .c-fields.on .f-pay { animation-name: yo-fp; }
.ks .c-fields.on .d6 { animation-name: yo-fdot; }
@keyframes yo-fd {
  0%, 8% { transform: none; box-shadow: inset 0 0 0 1px var(--border); }
  13% { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--border), 0 16px 30px rgba(10,25,41,.2); }
  34% { transform: translateY(123px); box-shadow: inset 0 0 0 1px var(--border), 0 16px 30px rgba(10,25,41,.2); }
  40%, 56% { transform: translateY(126px); box-shadow: inset 0 0 0 1px var(--border); }
  61% { transform: translateY(123px); box-shadow: inset 0 0 0 1px var(--border), 0 16px 30px rgba(10,25,41,.2); }
  82% { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--border), 0 16px 30px rgba(10,25,41,.2); }
  88%, 100% { transform: none; box-shadow: inset 0 0 0 1px var(--border); }
}
@keyframes yo-fp { 0%, 20% { transform: none; } 30%, 70% { transform: translateY(-58px); } 80%, 100% { transform: none; } }
@keyframes yo-fdot {
  0%, 5% { opacity: 0; transform: scale(.6); }
  8% { opacity: 1; transform: none; }
  34%, 37% { opacity: 1; transform: translateY(123px); }
  41%, 56% { opacity: 0; transform: translateY(123px); }
  59% { opacity: 1; transform: translateY(123px); }
  82%, 85% { opacity: 1; transform: none; }
  89%, 100% { opacity: 0; transform: none; }
}

/* the New Sale switcher (shared by the widget and tab cards): Scan | Browse */
.ks .yo-sw { position: relative; display: flex; height: 51px; padding: 4px; border-radius: 26px; background: #EEF3F6; }
.ks .yo-sw > span { flex: 1 1 0; display: grid; place-items: center; font-size: 17px; font-weight: 500; color: #9AA9AE; }
.ks .yo-sw.s-static > span.on { border-radius: 22px; background: var(--a500); color: #fff; font-weight: 600; }
.ks .yo-scan { margin-top: 12px; height: 300px; border-radius: 24px; background: #0B1A2A; position: relative; }
.ks .yo-scan i { position: absolute; inset: 22px; border: 3px solid transparent; border-image: none;
  background:
    linear-gradient(#0BBAD8, #0BBAD8) 0 0 / 22px 3px no-repeat, linear-gradient(#0BBAD8, #0BBAD8) 0 0 / 3px 22px no-repeat,
    linear-gradient(#0BBAD8, #0BBAD8) 100% 0 / 22px 3px no-repeat, linear-gradient(#0BBAD8, #0BBAD8) 100% 0 / 3px 22px no-repeat; }

/* 4 · Default tab: hold Browse (a ring fills while held), it turns green and says so; then the same for Scan */
.ks .c-tab .yo-dot svg { position: absolute; inset: -6px; width: 52px; height: 52px; transform: rotate(-90deg); }
.ks .c-tab .yo-dot circle { fill: none; stroke: #0BBAD8; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ks .c-tab.on .yo-dot circle { animation: yo-ring 9s linear infinite both; }
@keyframes yo-ring { 0%, 14% { stroke-dashoffset: 100; } 20% { stroke-dashoffset: 0; } 24%, 59% { stroke-dashoffset: 0; opacity: 0; } 60% { stroke-dashoffset: 100; opacity: 1; } 66% { stroke-dashoffset: 0; } 70%, 100% { stroke-dashoffset: 0; } }
.ks .c-tab { --T: 9s; }
.ks .yo-tabapp .a-sheet { position: absolute; inset: 0; transform: none; max-height: none; box-shadow: none; }
.ks .yo-tabapp .a-sheet-s { position: relative; display: grid; }
.ks .yo-tabapp .a-sheet-s > span { grid-area: 1 / 1; }
.ks .yo-sub2 { opacity: 0; }
.ks .yo-pill { font-style: normal; position: absolute; z-index: 1; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 22px; background: var(--a500); display: grid; color: #fff; }
.ks .yo-pill > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.ks .yo-pill .p2, .ks .yo-pill .p3 { opacity: 0; }
.ks .yo-pill .p3 { font-size: 13.5px; font-weight: 700; }
.ks .yo-pill .p3 svg { width: 20px; height: 20px; flex: none; }
.ks .yo-under { position: relative; margin-top: 12px; }
.ks .yo-under .yo-scan { margin-top: 0; }
.ks .yo-browse { position: absolute; inset: 0; opacity: 0; display: grid; align-content: start; gap: 10px; }
.ks .yo-search { margin: 0; height: 48px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); display: flex; align-items: center; padding: 0 16px; font-size: 15px; color: var(--hint); }
.ks .yo-row { margin: 0; display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
.ks .yo-row i { width: 40px; height: 40px; border-radius: 12px; background: #E3F6FA; flex: none; position: relative; }
.ks .yo-row i::after { content: ""; position: absolute; inset: 9px; border-radius: 6px; background: #19B6D2; }
.ks .yo-row b { flex: 1; font-weight: 500; color: var(--text); }
.ks .yo-row span { font-size: 13px; font-weight: 700; color: var(--text); }
.ks .c-tab .yo-dot { inset-inline-start: 262px; top: 88px; }
.ks .c-tab.on .yo-pill { animation-name: yo-pill; }
.ks .c-tab.on .yo-pill .p1 { animation-name: yo-p1; }
.ks .c-tab.on .yo-pill .p2 { animation-name: yo-p2; }
.ks .c-tab.on .yo-pill .p3 { animation-name: yo-p3; }
.ks .c-tab.on .yo-scan { animation-name: yo-u1; }
.ks .c-tab.on .yo-browse { animation-name: yo-u2; }
.ks .c-tab.on .yo-sub1 { animation-name: yo-u1; }
.ks .c-tab.on .yo-sub2 { animation-name: yo-u2; }
.ks .c-tab.on .d3 { animation-name: yo-td; }
@keyframes yo-pill {
  0%, 16% { transform: none; background: #0BBAD8; }
  22% { transform: translateX(calc(var(--sx) * 100%)); background: #0BBAD8; }
  26%, 44% { transform: translateX(calc(var(--sx) * 100%)); background: #22A35A; }
  49%, 62% { transform: translateX(calc(var(--sx) * 100%)); background: #0BBAD8; }
  68% { transform: none; background: #0BBAD8; }
  72%, 90% { transform: none; background: #22A35A; }
  95%, 100% { transform: none; background: #0BBAD8; }
}
@keyframes yo-p1 { 0%, 17% { opacity: 1; } 19%, 66% { opacity: 0; } 68%, 70% { opacity: 1; } 72%, 93% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes yo-p2 { 0%, 17% { opacity: 0; } 20%, 24% { opacity: 1; } 26%, 47% { opacity: 0; } 49%, 65% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes yo-p3 { 0%, 24% { opacity: 0; } 26%, 46% { opacity: 1; } 48%, 70% { opacity: 0; } 72%, 92% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes yo-u1 { 0%, 18% { opacity: 1; } 22%, 64% { opacity: 0; } 68%, 100% { opacity: 1; } }
@keyframes yo-u2 { 0%, 18% { opacity: 0; } 22%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes yo-td {
  0%, 11% { opacity: 0; transform: scale(.6); }
  14%, 24% { opacity: 1; transform: none; }
  28%, 56% { opacity: 0; transform: none; }
  57% { opacity: 0; transform: translateX(calc(var(--sx) * -175px)) scale(.6); }
  60%, 70% { opacity: 1; transform: translateX(calc(var(--sx) * -175px)); }
  74%, 100% { opacity: 0; transform: translateX(calc(var(--sx) * -175px)); }
}

/* 6 · Product groups: hold Silk Scarf, collect Evening Clutch with a second finger, drop on the tray */
.ks .c-group { --T: 10s; }
.ks .yo-grpapp { background: var(--bg); }
.ks .yo-list { position: absolute; inset: 0; padding: 14px 16px 0; }
.ks .yo-pc { position: relative; display: flex; align-items: center; gap: 14px; height: 84px; margin-bottom: 12px; padding: 0 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--border); }
.ks .yo-pc.low { box-shadow: inset 0 0 0 1.5px #FAD7A0; }
.ks .yo-pt { width: 52px; height: 52px; border-radius: 14px; background: #EEF3F6; display: grid; place-items: center; flex: none; }
.ks .yo-pt i { position: relative; width: 32px; height: 32px; border-radius: 8px; background: #19B6D2; }
.ks .yo-pt i::before, .ks .yo-pt i::after { content: ""; position: absolute; inset-inline-end: 8px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.8); }
.ks .yo-pt i::before { top: 13px; width: 12px; } .ks .yo-pt i::after { top: 19px; width: 9px; }
.ks .yo-pb { flex: 1; min-width: 0; display: grid; }
.ks .yo-pb b { font-size: 17px; font-weight: 500; color: var(--text); line-height: 1.25; }
.ks .yo-pb small { font-size: 14px; color: var(--text-muted); }
.ks .yo-pb em { font-style: normal; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.ks .yo-ps { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 21px; font-weight: 800; }
.ks .yo-pc.ok .yo-ps { background: #E8F8F0; color: #1E8449; }
.ks .yo-pc.low .yo-ps { background: #FEF5E7; color: #D68910; }
.ks .yo-cnt { position: absolute; top: 4px; inset-inline-end: 8px; z-index: 6; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; background: #0BBAD8; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px #fff; opacity: 0; }
.ks .yo-tray { position: absolute; inset-inline: 12px; bottom: 12px; height: 70px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 30px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--border), 0 8px 20px rgba(10,25,41,.12); transform: translateY(130%); }
.ks .yo-ti { width: 28px; height: 28px; color: var(--text); flex: none; }
.ks .yo-ti svg { width: 28px; height: 28px; }
.ks .yo-tt { position: relative; flex: 1; display: grid; }
.ks .yo-tt > span { grid-area: 1 / 1; display: grid; }
.ks .yo-tt b { font-size: 16px; font-weight: 500; color: var(--text); }
.ks .yo-tt small { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.ks .yo-tt .t2 { opacity: 0; }
.ks .yo-group { position: absolute; inset: 0; padding: 12px 16px 0; opacity: 0; }
.ks .yo-gl { margin: 0 0 8px; padding-inline-start: 20px; position: relative; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--text-muted); }
.ks[dir="rtl"] .yo-gl { letter-spacing: 0; }
.ks .yo-gl::before { content: ""; position: absolute; inset-inline-start: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #9AA9AE; }
.ks .yo-gc { padding: 8px 10px 0; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--border); }
.ks .yo-gh { margin: 0 0 8px; display: flex; align-items: center; gap: 12px; height: 48px; }
.ks .yo-gt { position: relative; width: 44px; height: 44px; border-radius: 14px; background: #EEF3F6; flex: none; }
.ks .yo-gt i { position: absolute; width: 20px; height: 18px; border-radius: 5px; background: #19B6D2; }
.ks .yo-gt i:first-child { inset-inline-start: 7px; top: 8px; } .ks .yo-gt i:last-child { inset-inline-start: 17px; top: 20px; box-shadow: 0 0 0 2px #EEF3F6; }
.ks .yo-gh b { flex: 1; font-size: 18px; font-weight: 600; color: var(--text); }
.ks .yo-gn { font-size: 14px; font-weight: 600; color: var(--text-2); }
.ks .yo-gc .yo-pc { height: 76px; margin-bottom: 8px; }
.ks .c-group .d4a { inset-inline-start: 176px; top: 38px; }
.ks .c-group .d4b { inset-inline-start: 176px; top: 230px; }
.ks .c-group.on .g-a { animation-name: yo-ga; z-index: 5; }
.ks .c-group.on .g-c { animation-name: yo-gc; z-index: 4; }
.ks .c-group.on .g-b { animation-name: yo-gb; }
.ks .c-group.on .yo-cnt { animation-name: yo-cnt; }
.ks .c-group.on .yo-tray { animation-name: yo-tray; }
.ks .c-group.on .yo-tt .t1 { animation-name: yo-t1; }
.ks .c-group.on .yo-tt .t2 { animation-name: yo-t2; }
.ks .c-group.on .yo-group { animation-name: yo-grp; }
.ks .c-group.on .d4a { animation-name: yo-d4a; }
.ks .c-group.on .d4b { animation-name: yo-d4b; }
@keyframes yo-ga { 0%, 8% { transform: none; opacity: 1; box-shadow: inset 0 0 0 1.5px #E4ECF1; } 12%, 34% { transform: translateY(-3px) scale(1.04); opacity: 1; box-shadow: inset 0 0 0 1.5px #E4ECF1, 0 14px 26px rgba(10,25,41,.18); }
  44% { transform: translateY(286px) scale(.6); opacity: 1; } 48%, 92% { transform: translateY(286px) scale(.6); opacity: 0; } 97%, 100% { transform: none; opacity: 1; } }
@keyframes yo-gc { 0%, 22% { transform: none; opacity: 1; } 28%, 34% { transform: translate(calc(var(--sx) * 8px), -186px) scale(1.02); opacity: 1; }
  44% { transform: translate(calc(var(--sx) * 8px), 100px) scale(.6); opacity: 1; } 48%, 92% { transform: translate(calc(var(--sx) * 8px), 100px) scale(.6); opacity: 0; } 97%, 100% { transform: none; opacity: 1; } }
@keyframes yo-gb { 0%, 46% { transform: none; opacity: 1; } 52%, 90% { transform: translateY(212px); opacity: 1; } 94% { transform: translateY(212px); opacity: 0; } 97%, 100% { transform: none; opacity: 1; } }
@keyframes yo-cnt { 0%, 26% { opacity: 0; transform: scale(.4); } 29%, 35% { opacity: 1; transform: none; } 39%, 100% { opacity: 0; transform: translateY(80px); } }
@keyframes yo-tray { 0%, 9% { transform: translateY(130%); } 14%, 46% { transform: none; } 40%, 44% { box-shadow: inset 0 0 0 2.5px #0BBAD8, 0 8px 20px rgba(11,186,216,.3); } 52%, 100% { transform: translateY(130%); } }
@keyframes yo-t1 { 0%, 27% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes yo-t2 { 0%, 27% { opacity: 0; } 29%, 100% { opacity: 1; } }
@keyframes yo-grp { 0%, 46% { opacity: 0; transform: scale(.96); } 52%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes yo-d4a { 0%, 7% { opacity: 0; transform: scale(.6); } 10%, 34% { opacity: 1; transform: none; } 44% { opacity: 1; transform: translateY(286px); } 48%, 100% { opacity: 0; transform: translateY(286px); } }
@keyframes yo-d4b { 0%, 20% { opacity: 0; transform: scale(.6); } 23%, 26% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(-186px); } }

/* 7 · Hide the balance: the eye */
.ks .c-eye { --T: 7.4s; }
.ks .yo-amts { display: grid; }
.ks .yo-amts > span { grid-area: 1 / 1; }
.ks .yo-stars { letter-spacing: 3px; opacity: 0; }
.ks.yo .a-hh-eye { position: relative; }
.ks.yo .a-hh-eye svg { grid-area: 1 / 1; }
.ks.yo .a-hh-eye { display: grid; }
.ks .yo-eye-c { opacity: 0; }
.ks .c-eye .yo-dot { inset-inline-end: 16px; inset-inline-start: auto; top: 104px; }
.ks .c-eye.on .yo-real, .ks .c-eye.on .yo-eye-o { animation-name: yo-e1; }
.ks .c-eye.on .yo-stars, .ks .c-eye.on .yo-eye-c { animation-name: yo-e2; }
.ks .c-eye.on .d5 { animation-name: yo-ed; }
@keyframes yo-e1 { 0%, 26% { opacity: 1; } 29%, 72% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes yo-e2 { 0%, 26% { opacity: 0; } 29%, 72% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes yo-ed { 0%, 20% { opacity: 0; transform: scale(.6); } 23%, 28% { opacity: 1; transform: none; } 32%, 66% { opacity: 0; } 69%, 74% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; } }

/* 8 · Light or dark: the same Home, in the dark palette */
.ks .c-theme { --T: 8s; }
.ks .yo-themes { position: absolute; inset: 0; }
.ks .yo-themes .yo-app { position: absolute; }
.ks .yo-txs { position: absolute; inset-inline: 0; top: 352px; padding: 0 16px; }
.ks .yo-txs .a-txh { padding: 0 0 4px; }
.ks .yo-dark { opacity: 0; }
.ks .c-theme.on .yo-dark { animation: yo-dk 8s cubic-bezier(.45,0,.3,1) infinite both; }
.ks .c-theme.on .yo-light .a-hh, .ks .c-theme.on .yo-dark .a-hh { animation: none; }
@keyframes yo-dk { 0%, 24% { opacity: 0; } 40%, 70% { opacity: 1; } 86%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ks .yo-card * { animation: none !important; }
}

/* ---------- narrow screens: the same endless band, smaller cards ---------- */
html.kp-narrow .ks.yo .kframe { padding: 88px 0 40px; }
html.kp-narrow .ks .yo-head { position: relative; inset: auto; padding: 0 20px; flex-direction: column; align-items: stretch; gap: 20px; }
html.kp-narrow .ks .yo-h { font-size: 40px; }
html.kp-narrow .ks.yo { --cw: 300px; --gap: 16px; }
html.kp-narrow .ks .yo-view { position: relative; inset: auto; height: auto; margin-top: 24px; }
html.kp-narrow .ks .yo-track { padding-inline-start: 20px; animation-duration: 84s; }
html.kp-narrow .ks .yo-card { flex-basis: 300px; height: 520px; }
html.kp-narrow .ks .yo-vis { zoom: 1; }
html.kp-narrow .ks .yo-card > h3 { font-size: 21px; }
html.kp-narrow .ks .yo-card > p { font-size: 15px; }
