/* GoBolt launch kit. product pictures. Needs tokens.css. Built by ui.js.
   Sizes are the real product's: the widget is 384 × 640, the merchant phone is 300 × 572.
   Scale a whole mock with --k-ui-scale on the [data-ui] element (listing images, video). */

.k-ui { display: block; width: 100%; min-width: 0; zoom: var(--k-ui-scale, 1); color: #23262b; text-align: left; }
.k-ui * { box-sizing: border-box; margin: 0; padding: 0; }
.k-ui img { display: block; }
.k-ui ol { list-style: none; }
.k-ic { display: inline-grid; place-items: center; flex: none; }
.k-ic svg { width: 100%; height: 100%; display: block; }
.k-grow { flex: 1; min-width: 0; }

/* steps: things arrive, they do not bounce */
.k-ui:not([data-fit]) [data-at]:not(.is-on), .k-ui[data-fit] [data-until]:not(.is-on) { display: none !important; }
.k-ui [data-at].is-on { animation: k-in 520ms var(--k-ease) backwards; }   /* backwards, so .is-cut can fade a row out later */
.k-ui[data-instant] [data-at].is-on { animation: none; }
.k-ui [data-scroll] > * { transition: opacity 320ms ease; }
.k-ui [data-scroll] > .is-cut { opacity: 0; }
.k-ui:not([data-instant]) [data-scroll] { scroll-behavior: smooth; }
.k-ui[data-instant] [data-scroll] > * { transition: none; }
@keyframes k-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes k-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── (a) storefront chat ─────────────────────────────────────────── */
.k-chat {
  width: min(384px, 100%); height: 640px; margin-inline: auto;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  background: #fff; border-radius: 16px;
  box-shadow: var(--k-shadow-sheet); border: 1px solid rgba(30, 29, 26, 0.06);
  font: 400 13.5px/1.5 var(--k-font-ui);
}
.k-chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid #f1efeb; }
.k-chat-head strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.k-chat-head small { white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; line-height: 1; color: #83878d; }
.k-chat-head small span { overflow: hidden; text-overflow: ellipsis; }
.k-chat-head small i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #2fa35b; }
.k-chat-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #23262b; color: #fff; display: grid; place-items: center; }
.k-chat-avatar .k-ic { width: 16px; height: 16px; }
.k-chat-mini { width: 26px; height: 26px; margin-top: 2px; }
.k-chat-mini .k-ic { width: 12px; height: 12px; }
.k-chat-hbtn { width: 32px; height: 32px; padding: 7px; color: #5a5e64; }
.k-chat-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.k-chat-msgs { flex: 1; overflow: hidden; padding: 4px 16px 12px; display: flex; flex-direction: column;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
/* The shell is the real product's 384 × 640, so a short thread would leave the bottom third
   empty. A real chat rests on its composer: push the thread down and let the spare room fall
   above it, where it reads as headroom. Once the thread overflows there is no spare room, the
   auto margin resolves to 0, and the scrolled long-thread behaviour is untouched. */
.k-chat-msgs > :first-child { margin-top: auto; }
/* except while the one-time code sheet is up: it covers the lower half of the panel, so the
   thread goes back to the top, where the conversation stays readable above the sheet */
.k-chat-body:has(> .k-chat-sheetwrap.is-on) .k-chat-msgs > :first-child { margin-top: 0; }
.k-chat-note { text-align: center; padding: 12px 0 6px; font-size: 11px; line-height: 1; color: #a9adb2; }
.k-chat-note--otp { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 0; color: #83878d; }
.k-chat-note--otp .k-ic { width: 12px; height: 12px; }
.k-chat-row { display: flex; padding: 5px 0; gap: 8px; }
.k-chat-row--me { justify-content: flex-end; }
.k-chat-row--card { padding-left: 34px; }
.k-chat-me { max-width: 78%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: #23262b; color: #fff; line-height: 1.45; }
.k-chat-ai { max-width: 82%; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: #f2f1ee; color: #2a2d31; }
.k-typing { display: flex; align-items: center; gap: 4px; min-height: 38px; padding-inline: 15px; }
.k-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8a8f96; animation: k-dot 1.2s ease-in-out infinite; }
.k-typing i:nth-child(2) { animation-delay: 0.15s; }
.k-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes k-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.k-chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 0 4px 34px; }
.k-chat-chips span { padding: 7px 13px; border-radius: 16px; border: 1px solid rgba(35, 38, 43, 0.22); color: #23262b; font-size: 12px; font-weight: 500; line-height: 1; }

.k-prod { display: flex; width: 100%; max-width: 300px; overflow: hidden; background: #fff; border: 1px solid #eae7e2; border-radius: 14px; }
.k-prod img { width: 112px; height: auto; aspect-ratio: 1; object-fit: cover; flex: none; background: #f2f0ec; align-self: stretch; }
.k-prod > div { flex: 1; min-width: 0; padding: 11px 12px; display: flex; flex-direction: column; }
.k-prod strong { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.k-prod small { font-size: 11px; color: #83878d; line-height: 1.4; }
.k-prod b { margin-top: 4px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.k-prod-add { margin-top: auto; height: 32px; border-radius: 9px; background: #23262b; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }

.k-chat-composer { flex: none; padding: 10px 14px 4px; }
.k-chat-composer > div { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 16px; border-radius: 24px; border: 1.5px solid #e7e4df; }
.k-chat-composer span:first-child { flex: 1; min-width: 0; color: #a9adb2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-chat-send { width: 32px; height: 32px; padding: 9px; border-radius: 50%; background: #edebe6; color: #b4b8bd; }
.k-chat-foot { flex: none; display: flex; justify-content: center; align-items: center; gap: 5px; padding: 8px 0 10px; font-size: 11px; font-weight: 500; line-height: 1; color: #a9adb2; }
.k-chat-foot .k-ic { width: 11px; height: 11px; color: #b4b8bd; }

/* one-time code sheet */
.k-chat-sheetwrap { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(35, 38, 43, 0.28); animation-name: k-fade !important; }
.k-chat-sheet { width: 100%; padding: 16px 16px 18px; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -14px 44px rgba(23, 25, 29, 0.16); animation: k-in 520ms var(--k-ease) both; }
.k-ui[data-instant] .k-chat-sheet { animation: none; }
.k-chat-sheet-head { display: flex; align-items: center; gap: 10px; }
.k-chat-sheet-head > div { flex: 1; min-width: 0; }
.k-chat-sheet-head strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.k-chat-sheet-head small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: #83878d; }
.k-chat-sheet-ic { width: 34px; height: 34px; padding: 9px; border-radius: 9px; background: #f2f1ee; color: #23262b; }
.k-chat-x { width: 28px; height: 28px; padding: 6px; color: #5a5e64; }
.k-otp { display: flex; justify-content: center; align-items: center; gap: 14px; height: 46px; margin-top: 12px; border-radius: 10px; border: 1.5px solid #23262b; box-shadow: 0 0 0 3px rgba(35, 38, 43, 0.1); }
.k-otp i { width: 7px; height: 7px; border-radius: 50%; background: #d8d5cf; transition: background 300ms ease; }
.k-ui[data-step="4"] .k-otp i { background: #23262b; }
.k-otp-resend { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* tracking card */
.k-track { width: 100%; max-width: 300px; background: #fff; border: 1px solid #eae7e2; border-radius: 14px; overflow: hidden; }
.k-track-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f1efeb; }
.k-track-head strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.k-track-head small { display: block; font-size: 11px; color: #83878d; line-height: 1.3; }
.k-track-ic { width: 32px; height: 32px; padding: 8px; border-radius: 9px; background: rgba(35, 38, 43, 0.08); }
.k-track-steps { padding: 13px 16px 12px; }
.k-track-steps li { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; color: #a9adb2; position: relative; padding-bottom: 14px; }
.k-track-steps li:last-child { padding-bottom: 0; }
.k-track-steps li.is-done { color: #23262b; }
.k-track-steps b { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #e4e1db; background: #fff; display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.k-track-steps .is-done b { background: #23262b; border-color: #23262b; color: #fff; }
.k-track-steps b .k-ic { width: 10px; height: 10px; }
.k-track-steps li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: #e9e6e1; }
.k-track-steps li.is-done:not(:last-child):has(+ .is-done)::after { background: #23262b; }

/* ── device frame (merchant phone, and the mobile variants) ──────── */
.k-device {
  width: min(300px, 100%); aspect-ratio: 9 / 19.5; margin-inline: auto; padding: 8px;
  background: #1e1d1a; border-radius: 46px;
  box-shadow: 0 0 0 1px #35322c inset, 0 2px 6px rgba(30, 29, 26, 0.08), 0 28px 60px rgba(30, 29, 26, 0.18);
}
.k-device-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 38px; background: #fff; font-family: var(--k-font-ui); }
.k-device-status { flex: none; position: relative; z-index: 3; height: 44px; padding: 6px 26px 0 30px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: #111; background: var(--k-status-bg, #fff); }
.k-device-status > i { position: absolute; left: 50%; top: 10px; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #111; }
.k-device-status .k-ic { width: 40px; height: 11px; }
.k-device-home { flex: none; height: 20px; display: grid; place-items: center; background: var(--k-home-bg, #fff); }
.k-device-home::after { content: ""; width: 104px; height: 4px; border-radius: 4px; background: #1e1d1a; }
/* the widget and the product page, full height on a phone */
.k-device--app .k-chat, .k-device--app .k-pp { flex: 1; min-height: 0; width: 100%; height: auto; border-radius: 0; box-shadow: none; border: 0; }

.k-device--app .k-chat-head { padding-top: 6px; gap: 8px; }
.k-device--app .k-chat-head small { font-size: 11px; letter-spacing: -0.01em; }
.k-device--app .k-chat-hbtn { width: 26px; height: 26px; padding: 5px; }
.k-device--app .k-chat-head { padding-left: 12px; padding-right: 8px; }
.k-device--app .k-chat-head small span { overflow: visible; }
.k-device--app .k-chat-msgs { padding-inline: 12px; }
.k-device--app .k-chat-row--card { padding-left: 0; }
.k-device--app .k-prod img { width: 96px; }
.k-device--app .k-chat-ai, .k-device--app .k-chat-me { max-width: 86%; }

/* ── (c) messaging thread ────────────────────────────────────────── */
.k-ui[data-ui="phone"] {
  --im-wall: #efeae2; --im-sent: #d9fdd3; --im-recv: #fff; --im-tick: #53bdeb; --im-time: rgba(17, 27, 33, 0.5);
  --im-bar: #f6f5f3; --im-accent: #1f7a5c; --im-r: 9px;
  --k-status-bg: var(--im-bar); --k-home-bg: var(--im-bar);
}
.k-ui[data-ui="phone"][data-skin="telegram"] {
  --im-wall: linear-gradient(165deg, #e3ebcb 0%, #cfe2c4 50%, #bfdad0 100%); --im-sent: #e3fdc9; --im-tick: #4fae4e; --im-time: rgba(40, 60, 40, 0.5);
  --im-bar: #f9f9f8; --im-accent: #3390ec; --im-r: 17px;
}
.k-im { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.32; color: #111b21; }
.k-im-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 4px 12px 9px 6px; background: var(--im-bar); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.k-im-back { width: 26px; height: 26px; padding: 2px; color: var(--im-accent); }
.k-im-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #1e1d1a; display: grid; place-items: center; }
.k-im-avatar .k-ic { width: 13px; height: 18px; }
.k-im-who strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.k-im-who small { display: block; font-size: 11.5px; line-height: 1.2; color: #667781; margin-top: 1px; }
[data-skin="telegram"] .k-im-head { padding-right: 12px; }
[data-skin="telegram"] .k-im-who { order: 1; flex: 1; text-align: center; padding-right: 0; }
[data-skin="telegram"] .k-im-avatar { order: 2; }
.k-im-thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 7px; padding: 10px 10px 12px; background: var(--im-wall); }
.k-im-thread > :first-child { margin-top: auto; }   /* rests on the composer, as .k-chat-msgs does */
.k-msg-day { align-self: center; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: #54656f; font-size: 11.5px; line-height: 1.2; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1); margin-bottom: 3px; }
[data-skin="telegram"] .k-msg-day { background: rgba(60, 90, 60, 0.28); color: #fff; font-weight: 500; border-radius: 12px; box-shadow: none; }

.k-msg { position: relative; max-width: 84%; padding: 6px 9px 7px; border-radius: var(--im-r); box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.k-msg--bolt { align-self: flex-start; background: var(--im-recv); border-top-left-radius: 0; }
.k-msg--me { align-self: flex-end; background: var(--im-sent); border-top-right-radius: 0; }
.k-msg::before { content: ""; position: absolute; top: 0; width: 9px; height: 12px; background: inherit; }
.k-msg--bolt::before { left: -8px; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.k-msg--me::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
[data-skin="telegram"] .k-msg--bolt { border-top-left-radius: var(--im-r); border-bottom-left-radius: 5px; }
[data-skin="telegram"] .k-msg--me { border-top-right-radius: var(--im-r); border-bottom-right-radius: 5px; }
[data-skin="telegram"] .k-msg::before { display: none; }
.k-msg-time { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px -2px -3px 10px; font-size: 10.5px; line-height: 1; color: var(--im-time); white-space: nowrap; }
.k-msg-time .k-ic { width: 15px; height: 10px; color: var(--im-tick); }
.k-msg strong { font-weight: 600; }

.k-msg--voice { width: 232px; max-width: 84%; padding: 8px 10px 6px; }
.k-voice { display: flex; align-items: center; gap: 10px; }
.k-voice-btn { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--im-accent); color: #fff; }
.k-voice-btn .k-ic { width: 16px; height: 16px; margin-left: 2px; }
.k-voice-meta { display: flex; justify-content: space-between; align-items: center; padding-left: 44px; margin-top: 1px; font-size: 10.5px; color: var(--im-time); }
.k-voice-meta .k-msg-time { float: none; margin: 0; }
.k-msg--photo { padding: 3px 3px 7px; width: 210px; }
.k-msg--photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: calc(var(--im-r) - 3px); border-top-left-radius: 0; margin-bottom: 5px; }
[data-skin="telegram"] .k-msg--photo img { border-radius: calc(var(--im-r) - 3px); }
.k-msg--photo > span:not(.k-msg-time) { display: block; padding: 0 6px; }
.k-msg--photo .k-msg-time { margin-top: 2px; }
.k-msg--photo .k-msg-time { margin-right: 4px; }

.k-im-composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px 5px; background: var(--im-bar); color: #54656f; }
.k-im-composer .k-ic { width: 24px; height: 24px; }
.k-im-composer > span:not(.k-ic) { flex: 1; height: 32px; padding: 0 13px; display: flex; align-items: center; border-radius: 16px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); color: #a0a7ab; font-size: 14px; }
.k-im-clip, [data-skin="telegram"] .k-im-plus { display: none; }
[data-skin="telegram"] .k-im-clip { display: inline-grid; }

/* Compact storefront chats retain their reserved rows while stepping. */
.k-ui[data-fit]:not([data-ui="phone"]) [data-at] { transition: opacity 420ms var(--k-ease), transform 560ms var(--k-ease), visibility 0s linear 0s; }
.k-ui[data-fit]:not([data-ui="phone"]) [data-at].is-on { animation: none; }
.k-ui[data-fit]:not([data-ui="phone"]) [data-at]:not(.is-on) { opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 0s linear 240ms; }
.k-ui[data-fit][data-instant] [data-at] { transition: none; }

/* One merchant phone frame, BRIEF-V2 §8. The screen flexes inside the fixed
   proportions; conversation length never changes the device. data-fit remains
   a compatibility attribute for existing markup, not a sizing variant. */
[data-ui="phone"] { --k-phone-w: 300; --k-phone-h: 572; --k-ui-scale: 1; }
.k-ui[data-ui="phone"] .k-device {
  position: relative; width: min(calc(var(--k-phone-w) * 1px), 100%);
  aspect-ratio: var(--k-phone-w) / var(--k-phone-h);
}
.k-ui[data-ui="phone"] .k-device-screen { position: absolute; inset: 8px; height: auto; }
.k-ui[data-ui="phone"] .k-im-thread { position: relative; scroll-behavior: auto; }
.k-ui[data-ui="phone"] .k-im-thread > * {
  flex-shrink: 0; translate: 0 var(--phone-drop, 0px);
  transition: opacity 420ms var(--k-ease), translate 640ms var(--k-ease);
}
.k-ui[data-ui="phone"] .k-im-thread > :first-child { margin-top: 0; }
.k-ui[data-ui="phone"] .k-im-thread > [data-at] { display: block !important; animation: none; }
.k-ui[data-ui="phone"] .k-im-thread > [data-at]:not(.is-on) { opacity: 0; visibility: hidden; }
.k-ui[data-ui="phone"][data-instant] .k-im-thread > * { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .k-ui[data-ui="phone"] .k-im-thread > * { transition: none; }
}

/* waveform, shared by the voice note and the audio highlight */
.k-wave { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 2px; }
.k-wave i { flex: 1; max-width: 3px; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px; background: currentColor; opacity: 0.28; transition: opacity 400ms ease; }
.k-wave i.is-played { opacity: 1; }
.k-voice .k-wave { color: #54656f; }

/* ── (b) product page ────────────────────────────────────────────── */
.k-browser { width: min(760px, 100%); margin-inline: auto; overflow: hidden; background: #fff; border-radius: 16px; border: 1px solid rgba(30, 29, 26, 0.06); box-shadow: var(--k-shadow-sheet); container-type: inline-size; }
.k-browser-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: var(--k-well); border-bottom: 1px solid var(--k-line-soft); }
.k-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--k-line); }
.k-browser-bar span { margin-inline: auto; transform: translateX(-21px); min-width: 46%; max-width: 70%; height: 24px; padding: 0 12px; display: grid; place-items: center; border-radius: 7px; background: var(--k-sunken); color: var(--k-ink-3); font: 400 11.5px/1 var(--k-font-ui); overflow: hidden; white-space: nowrap; }
.k-pp { font-family: var(--k-font-ui); color: #1e1d1a; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.k-pp-nav { flex: none; display: flex; align-items: center; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--k-line-soft); font-size: 12.5px; color: var(--k-ink-2); }
.k-pp-nav strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #1e1d1a; margin-right: auto; }
.k-pp-nav strong { white-space: nowrap; }
.k-pp-links { display: none; gap: 18px; }
.k-pp-nav .k-ic { width: 20px; height: 20px; color: #1e1d1a; }
.k-pp-main { display: grid; gap: 16px; padding: 0 0 18px; }
.k-pp-hero { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #efede8; }
.k-pp-thumbs { display: none; }
.k-pp-info { padding: 0 18px; display: flex; flex-direction: column; min-width: 0; }
.k-pp-type { font-size: 11.5px; color: var(--k-ink-3); line-height: 1.2; }
.k-pp-info h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 3px; }
.k-pp-price { font-size: 15px; margin-top: 4px; }
.k-pp-line { display: none; font-size: 13px; line-height: 1.5; color: var(--k-ink-2); margin-top: 12px; }
.k-pp-colour { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--k-ink-2); }
.k-pp-colour b { font-weight: 500; color: #1e1d1a; }
.k-pp-swatches { display: flex; gap: 7px; }
.k-pp-swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow 300ms ease; }
.k-pp-swatch.is-picked { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #1e1d1a; }
/* a stock count is information, not an alarm: it reads in the same ink as the rest of its row.
   The palette has no amber, and a scarcity cue would pull the eye off the audio player. */
.k-pp-stock { font-size: 11.5px; color: var(--k-ink-2); margin-left: auto; }
.k-audio-label { margin-top: 14px; font-size: 11.5px; color: var(--k-ink-3); line-height: 1.2; }
.k-audio { display: flex; align-items: center; gap: 12px; margin-top: 7px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--k-paper); border: 1px solid var(--k-line-soft); }
.k-audio-btn { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #1e1d1a; color: #fff; }
.k-audio-btn .k-ic { width: 17px; height: 17px; }
.k-audio-play { margin-left: 2px; }
.k-audio-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; line-height: 1.2; }
.k-audio-meta strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-audio-meta small { font-size: 11.5px; color: var(--k-ink-3); font-variant-numeric: tabular-nums; }
.k-audio .k-wave { height: 20px; margin-top: 5px; color: #1e1d1a; }
/* data-clip: the same slot as a real player (components.js .player), drawn at the mock's own size */
.k-ui .k-audio--live { max-width: none; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--k-paper); border: 1px solid var(--k-line-soft); box-shadow: none; font: 400 12.5px/1.2 var(--k-font-ui); color: #1e1d1a; }
.k-ui .k-audio--live .player-btn { width: 40px; height: 40px; background: #1e1d1a; color: #fff; cursor: pointer; border: 0; }
.k-ui .k-audio--live .player-btn svg { width: 17px; height: 17px; }
.k-ui .k-audio--live .player-btn .player-play { margin-left: 2px; }
.k-ui .k-audio--live .player-head { min-height: 16px; margin-bottom: 5px; gap: 8px; }
.k-ui .k-audio--live .player-title { font-weight: 600; color: #1e1d1a; }
.k-ui .k-audio--live .player-voices i { width: 6px; height: 6px; }
.k-ui .k-audio--live .player-wave { height: 20px; gap: 2px; color: #1e1d1a; }
.k-ui .k-audio--live .player-wave i { max-width: 3px; }
.k-ui .k-audio--live .player-time { margin-top: 4px; font-size: 11px; color: var(--k-ink-3); }
.k-ui .k-audio--live .player-btn:focus-visible { outline: 3px solid var(--k-green); outline-offset: 2px; }
.k-pp-add { margin-top: 12px; height: 44px; border-radius: 10px; background: #1e1d1a; color: #fff; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; }
.k-device--app .k-pp-nav { padding: 8px 18px 11px; }
.k-device--app .k-pp-links { display: none; }
.k-device--app .k-pp-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.k-device--app .k-pp-gallery { flex: 1; min-height: 0; }
.k-device--app .k-pp-hero { aspect-ratio: auto; height: 100%; object-position: 50% 22%; }

@container (min-width: 560px) {
  .k-pp-links { display: flex; }
  .k-pp-main { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; padding: 24px; align-items: start; }
  .k-pp-hero { border-radius: 10px; }
  .k-pp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
  .k-pp-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7px; opacity: 0.7; }
  .k-pp-thumbs img.is-picked { opacity: 1; box-shadow: 0 0 0 1.5px #1e1d1a; }
  .k-pp-info { padding: 6px 0 0; }
  .k-pp-info h3 { font-size: 28px; }
  .k-pp-price { font-size: 17px; margin-top: 6px; }
  .k-pp-line { display: block; }
  .k-pp-colour { margin-top: 18px; }
  .k-audio-label { margin-top: 20px; }
  .k-pp-add { margin-top: 16px; height: 46px; }
}

/* ── (d) app home tile ───────────────────────────────────────────── */
.k-home { width: min(560px, 100%); margin-inline: auto; padding: clamp(20px, 5cqw, 28px); background: #fff; border-radius: 16px; border: 1px solid rgba(30, 29, 26, 0.06); box-shadow: var(--k-shadow-sheet); font-family: var(--k-font); color: var(--k-ink); }
.k-home-head { display: flex; align-items: center; gap: 12px; }
.k-home-head > div { flex: 1; min-width: 0; }
.k-home-head strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.k-home-head small { display: block; font-size: 13px; color: var(--k-ink-3); line-height: 1.3; margin-top: 1px; }
.k-home-dot { display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--k-green-bright); box-shadow: 0 0 0 4px var(--k-green-tint); margin-right: 4px; }
.k-home-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--k-line-soft); }
.k-home-nums dd { font-size: clamp(26px, 7vw, 38px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.k-home-nums dt { margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--k-ink-2); }

@media (prefers-reduced-motion: reduce) {
  .k-ui [data-at].is-on, .k-chat-sheet, .k-typing i { animation: none !important; }
  .k-ui[data-fit] [data-at] { transition: none !important; }
  .k-ui [data-scroll] { scroll-behavior: auto !important; }
}
