/* =============================================================================
   widget-skin.css — a faithful copy of the real Advaicon widget + kiosk styles,
   fully SCOPED under `.aico-skin`, so the /products page can render pixel-accurate
   replicas without any rule leaking to the marketing page or the other mocks.

   Ported from voice/frontend/_shared/styles/{tokens,messages}.css,
   widget/src/frame/styles/widget.css, kiosk/src/index.css. Values are verbatim;
   the only change is that every selector is prefixed with `.aico-skin` (tokens on
   `.aico-skin` / `.aico-skin.aico-dark`), so the widget's own tokens
   (--brand/--ink/--ease/--radius-card …) can't collide with the marketing tokens.

   Wrapper contract: <div class="aico-skin aico-panel [aico-dark]"> … </div>
   ============================================================================= */

/* ============================ TOKENS ============================ */
.aico-skin {
  --brand: #E31837;
  --brand-hover: color-mix(in oklch, var(--brand) 88%, black 12%);
  --brand-ink: #ffffff;

  --bg-app: oklch(0.985 0.003 80);
  --bg-panel: #ffffff;
  --bg-msg: oklch(0.97 0.003 60);
  --bg-subtle: oklch(0.975 0.003 60);

  --line: oklch(0.93 0.003 60);
  --line-soft: oklch(0.955 0.003 60);

  --ink: oklch(0.2 0.008 60);
  --ink-2: oklch(0.38 0.008 60);
  --ink-3: oklch(0.58 0.008 60);
  --ink-4: oklch(0.72 0.006 60);

  --online: #22C55E;
  --font-sans: var(--font-inter), "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --radius-panel: 20px;
  --radius-msg: 16px;
  --radius-card: 12px;
  --radius-input: 14px;

  --shadow-panel: 0 2px 8px rgba(15,18,24,0.04), 0 8px 32px rgba(15,18,24,0.08);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);

  --kiosk-backdrop:            oklch(0.985 0.003 80);
  --kiosk-glass:               rgba(255, 255, 255, 0.55);
  --kiosk-glass-border:        rgba(0, 0, 0, 0.06);
  --kiosk-glass-border-bright: rgba(0, 0, 0, 0.18);
  --kiosk-glass-bright:        rgba(255, 255, 255, 0.75);
  --kiosk-text:                oklch(0.2 0.008 60);
  --kiosk-text-dim:            rgba(0, 0, 0, 0.55);
  --kiosk-text-label:          rgba(0, 0, 0, 0.4);
  --kiosk-glow:                color-mix(in oklch, var(--brand) 30%, transparent);
  --kiosk-glow-strong:         rgba(0, 0, 0, 0.18);
  --kiosk-avatar-shadow:       rgba(0, 0, 0, 0.18);
  --kiosk-col-avatar: 22%;
  --kiosk-col-products: 56%;
  --kiosk-col-chat: 22%;
  --kiosk-card-h: 250px;
  --kiosk-card-title-size: 18px;
  --kiosk-card-meta-size: 15px;
  --kiosk-card-desc-size: 15.5px;
  --kiosk-bubble-size: 15.5px;
  --kiosk-bubble-pad: 12px 16px;
}
.aico-skin.aico-dark {
  --bg-app: oklch(0.19 0.01 260);
  --bg-panel: oklch(0.178 0.012 260);
  --bg-msg: oklch(0.245 0.014 260);
  --bg-subtle: oklch(0.22 0.012 260);
  --line: oklch(0.3 0.014 260);
  --line-soft: oklch(0.26 0.012 260);
  --ink: oklch(0.97 0.008 260);
  --ink-2: oklch(0.82 0.01 260);
  --ink-3: oklch(0.64 0.012 260);
  --ink-4: oklch(0.52 0.012 260);
  --shadow-panel: 0 2px 8px rgba(0,0,0,0.3), 0 16px 40px rgba(0,0,0,0.4);
  --kiosk-backdrop: #0a0a0a;
  --kiosk-glass: rgba(255, 255, 255, 0.06);
  --kiosk-glass-border: rgba(255, 255, 255, 0.1);
  --kiosk-glass-border-bright: rgba(255, 255, 255, 0.25);
  --kiosk-text: #F5F7FA;
  --kiosk-glow: color-mix(in oklch, var(--brand) 40%, transparent);
  --kiosk-glow-strong: rgba(0, 0, 0, 0.4);
  --kiosk-avatar-shadow: rgba(0, 0, 0, 0.5);
}

/* ============================ PANEL ============================ */
.aico-skin.aico-panel {
  position: relative; background: var(--bg-panel); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; overflow: hidden;
  height: 100%; width: 100%; border-radius: 0; border: none; box-shadow: none;
}

/* ============================ HEADER ============================ */
.aico-skin .aico-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 13px 16px; z-index: 10;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.aico-skin.aico-dark .aico-header {
  background: rgba(28, 28, 30, 0.25);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.aico-skin .aico-header-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.aico-skin .aico-header-avatar { position: relative; }
.aico-skin .aico-header-online {
  position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
  background: linear-gradient(165deg, #4ade80, var(--online)); border-radius: 999px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px var(--bg-panel), 0 1px 3px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.aico-skin .aico-header-name { font: 600 15px/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.aico-skin .aico-header-actions { display: flex; gap: 4px; }
.aico-skin .aico-icon-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: transparent; border: none; color: var(--ink-3); cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.aico-skin .aico-icon-btn:hover { background: var(--bg-subtle); color: var(--ink); }

/* ============================ AVATAR ============================ */
.aico-skin .aico-avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 80%, white 20%), color-mix(in oklch, var(--brand) 65%, black 10%));
  color: var(--brand-ink); font: 600 13px/1 var(--font-sans); letter-spacing: -0.01em;
  border-top: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px color-mix(in oklch, var(--brand) 25%, transparent), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ============================ SCROLL ============================ */
.aico-skin .aico-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.aico-skin .aico-scroll::-webkit-scrollbar { display: none; }
.aico-skin .aico-scroll-inner {
  padding: 100px 16px 100px 16px; display: flex; flex-direction: column; gap: 0; min-height: 100%;
  transition: opacity 0.5s var(--ease);
}
.aico-skin .aico-scroll-inner.is-fading { opacity: 0; }

/* ============================ MESSAGES + TYPING ============================ */
.aico-skin .aico-row { display: flex; gap: 9px; align-items: flex-end; }
.aico-skin .aico-row-a { justify-content: flex-start; }
.aico-skin .aico-row-u { justify-content: flex-end; }
.aico-skin .aico-row + .aico-row { margin-top: 4px; }
.aico-skin .aico-row-a + .aico-row-u,
.aico-skin .aico-row-u + .aico-row-a { margin-top: 16px; }
/* CHG-1134 — the avatar shows the FACE on the brand fill, exactly as the live widget does. Same DOM and
   same rule as voice/frontend/widget widget.css: the circle keeps its brand gradient and the transparent
   face sits on it, so the fill shows around the head. The letter remains the fallback, in the component. */
.aico-skin .aico-avatar-photo { position: relative; overflow: hidden; padding: 0; }
.aico-skin .aico-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.aico-skin .aico-avatar-slot { width: 28px; flex: none; }
.aico-skin .aico-row-a-follow .aico-avatar-slot > * { display: none; }

.aico-skin .aico-bubble-a, .aico-skin .aico-bubble-u {
  padding: 12px 16px; border-radius: var(--radius-msg);
  font: 450 13.5px/1.52 var(--font-sans); letter-spacing: -0.005em; word-wrap: break-word; overflow: hidden;
}
.aico-skin .aico-bubble-a {
  max-width: 85%;
  background: linear-gradient(165deg, rgba(235, 235, 240, 0.85), rgba(225, 225, 232, 0.8));
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.6); border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(0, 0, 0, 0.03); border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--ink); border-bottom-left-radius: 6px;
}
.aico-skin .aico-row-a-follow .aico-bubble-a { border-top-left-radius: 6px; }
.aico-skin .aico-bubble-u {
  max-width: 78%;
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 85%, white 15%), var(--brand));
  border-top: 1px solid rgba(255, 255, 255, 0.35); border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none; border-bottom: none;
  box-shadow: 0 2px 12px color-mix(in oklch, var(--brand) 25%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--brand-ink); border-bottom-right-radius: 6px; font-weight: 500;
}
.aico-skin.aico-dark .aico-bubble-a {
  background: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.12); border-left-color: rgba(255, 255, 255, 0.08);
  border-right-color: rgba(255, 255, 255, 0.04); border-bottom-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.aico-skin .aico-bubble-a strong { font-weight: 600; }
.aico-skin .aico-system-msg { text-align: center; padding: 16px 14px; font: 450 12.5px/1.4 var(--font-sans); color: var(--ink-3); }

.aico-skin .aico-anim-in { animation: aico-in-a 320ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both; transform-origin: left bottom; }
.aico-skin .aico-anim-in-u { animation: aico-in-u 320ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both; transform-origin: right bottom; }
@keyframes aico-in-a { 0% { opacity: 0; transform: translate(-6px, 8px) scale(0.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes aico-in-u { 0% { opacity: 0; transform: translate(6px, 8px) scale(0.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: translate(0, 0) scale(1); } }

.aico-skin .aico-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 2px; }
.aico-skin .aico-typing span {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3); opacity: 0.6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1); animation: aico-type 1.2s ease-in-out infinite;
}
.aico-skin .aico-typing span:nth-child(2) { animation-delay: 0.16s; }
.aico-skin .aico-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes aico-type { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ============================ PRODUCT CARD (widget) ============================ */
.aico-skin .aico-bubble-a:has(.aico-pcard-list) { max-width: 82%; }
.aico-skin .aico-pcard-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; width: 100%; padding-right: 4px; }
.aico-skin .aico-pcard {
  display: flex; flex-direction: column; width: 100%; padding: 8px; background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06); border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card); cursor: pointer; text-align: left; font-family: inherit; color: inherit;
  transition: all 420ms cubic-bezier(0.32, 0.72, 0, 1); overflow: hidden; max-width: 100%;
}
.aico-skin .aico-pcard-header { display: flex; align-items: center; gap: 11px; }
.aico-skin .aico-pcard-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms cubic-bezier(0.32, 0.72, 0, 1); }
.aico-skin .aico-pcard-body-inner { overflow: hidden; }
.aico-skin .aico-pcard-open .aico-pcard-body { grid-template-rows: 1fr; }
.aico-skin .aico-pcard-open { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6); padding: 12px; }
.aico-skin .aico-pcard-open .aico-pcard-chev { transform: rotate(90deg); opacity: 0.4; }
.aico-skin.aico-dark .aico-pcard { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); }
.aico-skin .aico-pcard:hover { box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5); transform: translateY(-1px); }
.aico-skin .aico-pcard-text { flex: 1; min-width: 0; }
.aico-skin .aico-pcard-name {
  font: 600 13px/1.25 var(--font-sans); color: var(--brand); letter-spacing: -0.008em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aico-skin .aico-pcard-tag { margin-top: 2px; font: 450 12px/1.3 var(--font-sans); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aico-skin .aico-pcard-chev { color: var(--ink-4); flex: none; display: inline-flex; transition: color 160ms var(--ease), transform 160ms var(--ease); }
.aico-skin .aico-pcard:hover .aico-pcard-chev { color: var(--brand); transform: translateX(2px); }
.aico-skin .aico-pcard-exp-meta { margin-top: 3px; font: 500 12px/1.2 var(--font-sans); color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.aico-skin .aico-pcard-exp-meta .aico-dot-sep { opacity: 0.5; }
.aico-skin .aico-pcard-exp-desc { margin-top: 11px; font: 450 12.5px/1.5 var(--font-sans); color: var(--ink-2); }

.aico-skin .aico-pcard-variants { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.aico-skin .aico-pcard-variant-chip {
  font: 500 11px/1.2 var(--font-sans); padding: 5px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-subtle); color: var(--ink-3);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.aico-skin .aico-pcard-variant-chip-selected { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

.aico-skin .aico-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 14px;
  background: transparent; color: var(--ink-2); text-decoration: none; border-radius: 10px;
  font: 500 12px/1 var(--font-sans); letter-spacing: -0.005em; border: 1px solid var(--line); cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.aico-skin .aico-btn-primary:hover { color: var(--ink); border-color: var(--ink-3); }
.aico-skin .aico-pcard-cart { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.aico-skin .aico-pcard-cart-row { display: flex; gap: 8px; align-items: stretch; }
.aico-skin .aico-pcard-cart-row .aico-btn-primary { flex: 1 1 0; width: auto; }
.aico-skin .aico-pcard-cart-qty { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg-subtle); border-radius: 12px; overflow: hidden; flex: 1 1 0; }
.aico-skin .aico-pcard-cart-qty-btn { flex: 0 0 32px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--ink-3); font: 500 16px/1 var(--font-sans); }
.aico-skin .aico-pcard-cart-qty-val { flex: 1 1 auto; min-width: 24px; text-align: center; font: 600 13px/1.2 var(--font-sans); color: var(--brand); }
.aico-skin .aico-pcard-cart-btn {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px;
  border-radius: 12px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: 600 12px/1.2 var(--font-sans);
}
.aico-skin .aico-pcard-cart-btn-success { filter: saturate(0.85); }
.aico-skin .aico-pcard-cart-viewlink { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font: 500 11px/1.2 var(--font-sans); color: var(--brand); text-decoration: none; }

.aico-skin .aico-pimg { overflow: hidden; position: relative; flex-shrink: 0; user-select: none; }
.aico-skin .aico-pimg img, .aico-skin .aico-pimg span, .aico-skin .aico-pimg svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================ CHIPS ============================ */
.aico-skin .aico-quickies { margin-left: 37px; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.aico-skin .aico-chip {
  font: 500 12px/1 var(--font-sans); color: #1a1a2e;
  background: linear-gradient(165deg, rgba(238, 238, 242, 0.8), rgba(228, 228, 235, 0.75));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.5); border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 8px 12px; border-radius: 999px; transition: all 160ms var(--ease);
}
.aico-skin .aico-chip:hover {
  border-color: color-mix(in oklch, var(--brand) 20%, rgba(0, 0, 0, 0.06)); color: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================ COMPOSER + PTT ============================ */
.aico-skin .aico-composer {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0px 14px 10px 14px; z-index: 10;
  background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.aico-skin.aico-dark .aico-composer { background: rgba(28, 28, 30, 0.12); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.aico-skin .aico-composer-inner {
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06); border-top: 1px solid rgba(255, 255, 255, 0.6); border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-input);
  background: linear-gradient(165deg, rgba(240, 240, 244, 0.8), rgba(232, 232, 238, 0.75));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: all 200ms ease;
}
.aico-skin.aico-dark .aico-composer-inner { border: 1px solid rgba(255, 255, 255, 0.1); border-top: none; border-left: none; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(4px); box-shadow: none; }
.aico-skin .aico-input { flex: 1; border: none; background: transparent; outline: none; font: 450 13.5px/1.3 var(--font-sans); color: #1a1a2e; padding: 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aico-skin.aico-dark .aico-input { color: #ffffff; }
.aico-skin .aico-mic {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: linear-gradient(165deg, rgba(230, 230, 235, 0.6), rgba(220, 220, 228, 0.5));
  border: none; border-top: 1px solid rgba(255, 255, 255, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--ink-3); flex-shrink: 0; transition: all 140ms var(--ease);
}
.aico-skin.aico-dark .aico-mic { color: #ffffff; }
.aico-skin .aico-send {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 85%, white 15%), var(--brand));
  border: none; border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px color-mix(in oklch, var(--brand) 25%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--brand-ink); opacity: 0; transform: scale(0.7);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), background 160ms var(--ease);
}
.aico-skin .aico-send.aico-send-on { opacity: 1; transform: scale(1); }
.aico-skin .aico-composer-foot {
  padding: 6px 4px 2px 4px; font: 700 10px/1 var(--font-sans); color: var(--brand);
  letter-spacing: 0.3px; text-align: center; opacity: 0.7; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.aico-skin .aico-composer-foot a { color: inherit; text-decoration: none; }

.aico-skin .aico-mic-voice { width: auto; min-width: 32px; padding: 0 12px; font: 500 12.5px/1 var(--font-sans); white-space: nowrap; }
.aico-skin .aico-mic-ptt {
  position: relative; z-index: 2; user-select: none; touch-action: none; cursor: grab;
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 80%, white 20%), color-mix(in oklch, var(--brand) 65%, black 10%));
  color: var(--brand-ink); border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px color-mix(in oklch, var(--brand) 25%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.aico-skin .aico-mic-ptt-held {
  background: linear-gradient(165deg, var(--brand-hover), color-mix(in oklch, var(--brand) 40%, black 30%));
  color: var(--brand-ink); border-color: transparent; border-top: none; box-shadow: none; font-weight: 600;
}
.aico-skin .aico-mic-ptt-label { position: relative; z-index: 1; user-select: none; display: block; width: 100%; text-align: center; white-space: pre-line; line-height: 1.25; font-size: 16px; font-weight: 600; color: #fff; }
.aico-skin .aico-voice-tag { font: 600 11px/1 var(--font-sans); color: var(--brand); border: 1px solid color-mix(in oklch, var(--brand) 32%, transparent); border-radius: 999px; padding: 3px 8px; margin-left: 8px; }
.aico-skin .aico-mic-voice.is-live { background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 82%, white 18%), var(--brand)); color: var(--brand-ink); }
.aico-skin .aico-mic-ptt-ring {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, color-mix(in oklch, var(--brand) 35%, transparent) 0%, transparent 70%);
  pointer-events: none; transition: opacity 120ms var(--ease), transform 80ms linear; transform-origin: center;
}
.aico-skin .aico-composer-voice .aico-mic-ptt { flex: 1; min-height: 64px; }

/* ============================ VOICE WAVEFORM (mock: CSS bars) ============================ */
.aico-skin .aico-siri-waveform {
  position: absolute; bottom: -6px; left: 0; right: 0; height: 110px; pointer-events: none; opacity: 0;
  transition: opacity 400ms var(--ease); z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 24px 20px;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}
.aico-skin .aico-siri-waveform.aico-siri-active { opacity: 0.9; }
/* real siriwave canvas variant (voice mocks) — big + obvious */
.aico-skin .aico-siri-big { height: 120px; bottom: 40px; display: block; padding: 0; gap: 0; opacity: 0.45; mask-image: linear-gradient(to top, rgba(0,0,0,1) 42%, transparent 100%); -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 42%, transparent 100%); }
.aico-skin .aico-siri-big.aico-siri-active { opacity: 1; }
.aico-skin .aico-siri-canvas { width: 100%; height: 100%; display: block; }
.aico-skin .aico-siri-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
/* VAD: the wave sits in the composer where the placeholder text was, big amplitude so it
   reaches up and lightly overlaps the bubbles. */
/* small + contained: the wave sits in the composer row next to the mic, below the line */
.aico-skin .aico-vad-wave { flex: 1; position: relative; height: 36px; align-self: center; }
.aico-skin .aico-vad-canvas { position: absolute; left: 0; right: 0; bottom: 0; height: 42px; pointer-events: none; }
.aico-skin .aico-vad-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.aico-skin .aico-siri-waveform i {
  display: block; width: 3px; border-radius: 3px;
  background: linear-gradient(to top, color-mix(in oklch, var(--brand) 85%, white 15%), var(--brand));
  height: 8px; transform-origin: bottom; animation: aico-wavebar 900ms ease-in-out infinite;
}
@keyframes aico-wavebar { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }

/* ============================ KIOSK ============================ */
.aico-skin .kiosk-root { display: flex; height: 100%; width: 100%; overflow: hidden; background: var(--kiosk-backdrop); color: var(--kiosk-text); position: relative; user-select: none; }
.aico-skin.kiosk-root { display: flex; }
.aico-skin .kiosk-col { height: 100%; overflow: hidden; position: relative; }
.aico-skin .kiosk-col-avatar { flex: 0 0 var(--kiosk-col-avatar); }
.aico-skin .kiosk-col-products { flex: 0 0 var(--kiosk-col-products); padding: 16px 20px; }
.aico-skin .kiosk-col-chat { flex: 0 0 var(--kiosk-col-chat); }

.aico-skin .kiosk-avatar-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 100%; padding: 16px 20px; position: relative; }
.aico-skin .kiosk-avatar-disc {
  position: relative; width: 78%; max-width: 220px; aspect-ratio: 1; border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 78%, white 22%), color-mix(in oklch, var(--brand) 60%, black 14%));
  color: var(--brand-ink); font: 600 clamp(48px, 7vw, 88px)/1 var(--font-sans);
  box-shadow: 0 18px 48px var(--kiosk-avatar-shadow), inset 0 2px 0 rgba(255,255,255,0.28);
}
.aico-skin .kiosk-avatar-glow { position: absolute; inset: -18%; background: radial-gradient(circle, var(--kiosk-glow) 0%, transparent 70%); pointer-events: none; z-index: 0; }
/* real persona photo (Dimitris), small, on the left column — no drop shadow (reads cleaner),
   face centred in the disc via object-position */
.aico-skin .kiosk-avatar-photo { background: none; width: auto; max-width: 126px; box-shadow: none; }
/* CHG-1134 — 0%, not 22%. The disc is square and the source is a tall full-body portrait, so cover shows
   a band of 768/1376 = 56% of its height and object-position picks where that band starts: at 22% the
   band began 9.7% down the image and the head (which starts at 1.2%) was sliced off above it. */
.aico-skin .kiosk-avatar-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; border-radius: inherit; }
@keyframes aico-breathe { 0%,100%{transform:scale(1);} 50%{transform:scale(1.006);} }
@keyframes aico-speakAlive { 0%,100%{transform:scale(1);} 50%{transform:scale(1.012);} }
.aico-skin .avatar-idle { animation: aico-breathe 4s ease-in-out infinite; }
.aico-skin .avatar-speaking { animation: aico-speakAlive 1.8s ease-in-out infinite; }
/* real siriwave (ios9) under the kiosk avatar — same wave the widget voice mode uses */
.aico-skin .kiosk-siri { position: relative; width: 100%; max-width: 136px; height: 56px; margin: 0 auto; opacity: 0.5; transition: opacity 0.45s var(--ease); }
.aico-skin .kiosk-siri-active { opacity: 0.95; }
.aico-skin .kiosk-siri-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aico-skin .kiosk-siri-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.aico-skin .kiosk-start-btn {
  padding: 14px 22px; border-radius: var(--radius-card); border: 1px solid transparent;
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 80%, white 20%), color-mix(in oklch, var(--brand) 65%, black 10%));
  color: var(--brand-ink); border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px color-mix(in oklch, var(--brand) 25%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* overflow-y: hidden (not auto) so this decorative mock pane is not a keyboard scroll region
   (axe scrollable-region-focusable). It self-scrolls programmatically, which still works under hidden. */
.aico-skin .kiosk-centre-stack { display: flex; flex-direction: column; height: 100%; width: 100%; overflow-y: hidden; scrollbar-width: none; }
.aico-skin .kiosk-centre-stack::-webkit-scrollbar { display: none; }
.aico-skin .kiosk-centre-stack-inner { display: flex; flex-direction: column; gap: 12px; margin: auto; max-width: 1100px; width: 100%; }
.aico-skin .kiosk-card-anim[data-entering="true"] { animation: aico-kioskEnter 350ms var(--ease) both; }
@keyframes aico-kioskEnter { from{opacity:0; transform:translateY(-8px) scale(0.92);} to{opacity:1; transform:translateY(0) scale(1);} }

.aico-skin .kiosk-chat { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--kiosk-backdrop); }
.aico-skin .kiosk-chat-scroll { flex: 1; overflow-y: hidden; scrollbar-width: none; padding: 24px 20px 20px; }
.aico-skin .kiosk-chat-scroll::-webkit-scrollbar { display: none; }
.aico-skin .kiosk-chat-inner { display: flex; flex-direction: column; }
.aico-skin .kiosk-chat .aico-bubble-a, .aico-skin .kiosk-chat .aico-bubble-u { font-size: var(--kiosk-bubble-size); padding: var(--kiosk-bubble-pad); }

.aico-skin .kiosk-pcard {
  display: flex; flex-direction: row; align-items: stretch; gap: 11px; padding: 12px; background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06); border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-card); text-align: left; font-family: inherit; color: inherit;
  transition: all 420ms cubic-bezier(0.32, 0.72, 0, 1); overflow: hidden; max-width: 100%; min-height: var(--kiosk-card-h);
}
.aico-skin.aico-dark .kiosk-pcard { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
.aico-skin .kiosk-pcard-img {
  flex: 0 0 180px; height: var(--kiosk-card-h); align-self: center; display: flex; align-items: center; justify-content: center;
  position: relative; background: #ffffff; padding: 8px; border-radius: 10px; overflow: hidden;
}
.aico-skin .kiosk-pcard-img > img, .aico-skin .kiosk-pcard-img > span, .aico-skin .kiosk-pcard-img > svg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.aico-skin .kiosk-pcard-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.aico-skin .kiosk-pcard-name { font: 600 var(--kiosk-card-title-size)/1.25 var(--font-sans); color: var(--brand); letter-spacing: -0.008em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aico-skin .kiosk-pcard-meta { margin-top: 3px; font: 500 var(--kiosk-card-meta-size)/1.2 var(--font-sans); color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.aico-skin .kiosk-pcard-dot { opacity: 0.5; }
.aico-skin .kiosk-pcard-price { font-weight: 550; }
.aico-skin .kiosk-pcard-desc { margin-top: 11px; font: 450 var(--kiosk-card-desc-size)/1.5 var(--font-sans); color: var(--ink-2); }
.aico-skin .kiosk-pcard-variants { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; margin-top: auto; }
.aico-skin .kiosk-pcard-variant-chip { font: 500 11px/1.2 var(--font-sans); padding: 5px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-subtle); color: var(--ink-3); }
.aico-skin .kiosk-pcard-variant-chip-selected { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

/* ============================ KIOSK MINIATURE (/products channel mock) ============================
   The kiosk skin above is authored at real in-store scale (1080p landscape). Inside the
   /products channel card it renders in a ~720px frame, so re-proportion it into a faithful
   miniature: three readable columns (avatar + siri-wave | product stack | chat bubbles),
   smaller cards, and a chat column wide enough that bubbles wrap by word, not by letter. */
.skin-kiosk .kiosk-root {
  --kiosk-col-avatar: 26%;
  --kiosk-col-products: 46%;
  --kiosk-col-chat: 28%;
  --kiosk-card-h: 116px;
  --kiosk-card-title-size: 11px;
  --kiosk-card-meta-size: 9px;
  --kiosk-card-desc-size: 9.5px;
  --kiosk-bubble-size: 9.5px;
  --kiosk-bubble-pad: 6px 9px;
}
.skin-kiosk .kiosk-avatar-wrap { gap: 9px; padding: 12px 10px; }
.skin-kiosk .kiosk-avatar-photo { max-width: 92px; }
.skin-kiosk .kiosk-start-btn { padding: 7px 12px; }
.skin-kiosk .kiosk-col-products { padding: 12px; }
.skin-kiosk .kiosk-centre-stack-inner { gap: 8px; }
.skin-kiosk .kiosk-pcard { gap: 8px; padding: 8px; }
.skin-kiosk .kiosk-pcard-img { flex: 0 0 84px; padding: 5px; border-radius: 7px; }
.skin-kiosk .kiosk-pcard-desc { margin-top: 5px; }
.skin-kiosk .kiosk-pcard-variants { gap: 4px; padding-top: 5px; }
.skin-kiosk .kiosk-pcard-variant-chip { font-size: 8.5px; padding: 3px 7px; }
.skin-kiosk .kiosk-chat-scroll { padding: 12px 11px; }
/* the chat column carries its own cream backdrop, but the mock's root renders white — drop it
   so the three columns read as ONE uniform card instead of the chat looking "outside" it. */
.skin-kiosk .kiosk-chat { background: transparent; }

/* On a phone, the ~330px-wide monitor can't hold three side-by-side columns AND row-layout
   product cards without text collapsing to one word per line. Re-proportion: give the chat
   more room, shrink type, and STACK each product card (words above a full-width thumbnail)
   so names/descriptions read as normal wrapped lines instead of a letter tower. */
@media (max-width: 760px) {
  .skin-kiosk .kiosk-root {
    --kiosk-col-avatar: 21%;
    --kiosk-col-products: 41%;
    --kiosk-col-chat: 38%;
    --kiosk-card-title-size: 9px;
    --kiosk-card-meta-size: 7.5px;
    --kiosk-card-desc-size: 8px;
    --kiosk-bubble-size: 8px;
    --kiosk-bubble-pad: 4px 7px;
  }
  .skin-kiosk .kiosk-avatar-wrap { gap: 6px; padding: 8px 6px; }
  .skin-kiosk .kiosk-col-products { padding: 8px 7px; }
  .skin-kiosk .kiosk-centre-stack-inner { gap: 6px; }
  /* stack: body (words) on top, image below (DOM order is img → body, so column-reverse) */
  .skin-kiosk .kiosk-pcard { flex-direction: column-reverse; gap: 5px; padding: 7px; min-height: 0; }
  .skin-kiosk .kiosk-pcard-img { flex: 0 0 auto; width: 100%; height: 34px; padding: 3px; align-self: stretch; }
  .skin-kiosk .kiosk-pcard-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
  .skin-kiosk .kiosk-pcard-desc { margin-top: 4px; }
  .skin-kiosk .kiosk-chat-scroll { padding: 9px 8px; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  .aico-skin .aico-typing span,
  .aico-skin .aico-siri-waveform i,
  .aico-skin .avatar-idle,
  .aico-skin .avatar-speaking,
  .aico-skin .aico-anim-in,
  .aico-skin .aico-anim-in-u,
  .aico-skin .kiosk-card-anim[data-entering="true"] { animation: none; }
  .aico-skin .aico-typing span { opacity: 1; }
}
