@font-face{font-family:"Plugix Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/plugix-inter-cyrillic-ext.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Plugix Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/plugix-inter-cyrillic.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:"Plugix Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/plugix-inter-latin.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Assistant workspace — existing composition, shared site styling (owner 04.10.2026).
   Loaded after app.css; only touches the widget (overlay/workspace/launcher), not the demo store page. */

@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/manrope-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/manrope-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}

:root{
  /* Owner reference: measured homepage ProductExplorer, shared with active /admin. */
  --product-font:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --product-bg:#f7f7f7;--product-surface:#fff;--product-ink:#1a1a1a;--product-muted:#666666;--product-border:#e8e8e8;--product-hover:#f0f0f0;
  --product-body-size:16px;--product-body-line:1.5;--product-body-weight:400;
  --product-heading-size:34px;--product-heading-line:1.2;--product-heading-weight:400;--product-heading-tracking:-.035em;
  --product-chat-heading-size:28px;
  --product-newchat-size:14px;--product-answer-gap:4px;--product-answer-target:44px;--product-answer-icon:18px;
  --product-image-thumb:72px;--product-image-max:260px;
  --product-section-size:22px;--product-section-line:1.3;
  --product-emphasis-weight:600;--product-preview-ratio:16/10;
  --product-label-size:14px;--product-caption-size:12px;
  --product-nav-size:18px;--product-nav-line:1.4;--product-nav-weight:500;--product-nav-height:64px;
  --product-icon-stroke:1.75;
  --product-nav-width:290px;--product-nav-padding:12px;--product-nav-gap:8px;--product-nav-icon:24px;--product-nav-inset:32px;
  --product-action-size:16px;--product-action-line:1.5;--product-action-weight:400;--product-action-height:48px;
  --product-action-padding:12px 20px;--product-action-radius:12px;--product-field-radius:16px;
  --product-phone-inset:8px;--product-phone-padding:20px;--product-phone-heading:28px;--product-line-width:1px;
  --product-panel-radius:28px;--product-panel-padding:32px;--product-page-inset:24px;--product-row-padding:16px;

  --ag-bg:#f7f7f7;--ag-surface:#fff;--ag-elev:#fafafa;--ag-hover:#f0f0f0;--ag-overlay:#f7f7f7;
  --ag-border:#e8e8e8;--ag-ink:#1a1a1a;--ag-ink2:#666666;--ag-ink3:#666666;--ag-ph:#666666;--ag-sel:#def0ff;
  --ag-font:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --ag-action-radius:12px;--ag-field-radius:16px;--ag-control-weight:500;--ag-heading-weight:500;--ag-display-weight:400;
  --ag-action-hover:#262626;--ag-on-action:#fff;--ag-surface-shadow:none;
  --ag-compare-label:96px;--ag-compare-product:160px;
  --ag-step-gap:12px;--ag-step-tight-gap:8px;--ag-step-title:20px;--ag-touch-target:44px;
}

/* ---------- shell ---------- */
.overlay{background:rgba(245,245,245,.55);backdrop-filter:blur(28px) saturate(1.4);-webkit-backdrop-filter:blur(28px) saturate(1.4);padding:12px;font-family:var(--ag-font);color:var(--ag-ink)}
.workspace,.workspace.full{background:transparent;box-shadow:none;border:0;border-radius:0;width:100%;height:100%;padding:0;display:grid;grid-template-columns:285px minmax(0,1fr);gap:12px}
/* Canvas open: rail collapses to icons, chat narrows, the content column takes most of the width. */
.workspace{transition:grid-template-columns .35s cubic-bezier(.2,.8,.2,1)}
.workspace.has-canvas{grid-template-columns:64px minmax(320px,.75fr) minmax(0,2fr)}
.rail-mini .rail{padding:8px 6px;overflow:visible}
.rail-mini .rail-top{justify-content:center;height:44px}
.rail-mini .rail-brand span,.rail-mini .rail-top>button,.rail-mini .rail-section,.rail-mini .rail-recent,.rail-mini .rail-foot{display:none}
.rail-mini .rail-nav button{justify-content:center;padding:10px 0;font-size:0;gap:0}
.rail-mini .rail-nav button .kicon,.rail-mini .rail-nav button .icon{width:20px;height:20px;margin:0}
.has-canvas .chat-messages{max-width:none}
.has-canvas .empty-state{justify-content:flex-start;padding-top:8px;gap:6px}
.has-canvas .empty-state .app-icon.hero{width:72px;height:74px;margin-bottom:10px}
.has-canvas .empty-state .glow-hero{width:100px;height:100px;margin-left:-50px;filter:blur(18px)}
.has-canvas .empty-state h1{font-size:24px;line-height:1.2}
.has-canvas .empty-state p{font-size:14px;line-height:1.4;font-weight:500}
.has-canvas .prompt-chips{margin-top:12px;gap:6px}
.has-canvas .prompt-chips button{padding:10px 12px}
.has-canvas .chat-suggestions button{padding:10px 12px}
.has-canvas .composer-shell{max-width:none}
@media(prefers-reduced-motion:reduce){.workspace{transition:none}}
.workspace *{font-family:inherit}
.workspace-controls{position:static;display:flex;gap:2px}
.workspace-controls button,.rail-top button{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:var(--ag-ink2);padding:8px}
.workspace-controls button:hover,.rail-top button:hover,.rail-nav button:hover{background:var(--ag-hover)}
.kicon{width:20px;height:20px;display:block;flex:none}
.kicon.sm{width:18px;height:18px}
.kicon.xs{width:14px;height:14px}

/* ---------- rail ---------- */
.rail{display:flex;flex-direction:column;gap:10px;padding:8px;min-height:0;overflow:auto}
.rail-top{display:flex;align-items:center;justify-content:space-between;height:52px}
.rail-brand{display:flex;align-items:center;gap:6px;font-size:17px;font-weight:600;min-width:0}
.rail-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-icon{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none}
.rail-nav{display:flex;flex-direction:column}
.rail-nav button,.rail-recent button{display:flex;align-items:center;gap:8px;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;font-size:14px;font-weight:500;color:var(--ag-ink2);text-align:left;line-height:normal}
.rail-nav button.is-current{background:var(--ag-surface);color:var(--ag-ink)}
.rail-nav .icon{width:20px;height:20px;color:var(--ag-ink2)}
.rail-section{font-size:12px;font-weight:500;color:var(--ag-ink3);padding:12px 7px 2px;line-height:17px}
.rail-recent button{font-weight:400;color:var(--ag-ink2);padding:8px 7px;border-radius:11px}
.rail-recent button.is-current{background:var(--ag-surface);color:var(--ag-ink)}
.rail-recent button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding:8px 4px 4px}
.rail-foot select{width:100%;height:40px;border:0;border-radius:50px;background:var(--ag-elev);padding:0 14px;font:inherit;font-size:14px;font-weight:500;color:var(--ag-ink)}
.rail-foot small{font-size:12px;color:var(--ag-ph)}
.rail-foot small b{color:var(--ag-ink3);font-weight:500}

/* ---------- main (chat) ---------- */
.chat-panel{background:var(--ag-surface);border:0;border-radius:24px;padding:12px 16px 16px;display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;overflow:hidden}
.chat-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 8px;min-height:52px}
.chat-top h2{margin:0;font-size:20px;font-weight:600;line-height:25px;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-top .chat-sub{font-size:12px;color:var(--ag-ink3);font-weight:500;line-height:17px}
.chat-messages{flex:1;overflow:auto;padding:8px 4px 12px;display:flex;flex-direction:column;gap:18px;width:100%;max-width:900px;margin:0 auto}
.today{display:none}
.message{display:block;margin:0}
.message.user{display:flex;justify-content:flex-end;padding:0}
.message.user .bubble{max-width:600px;padding:12px;border-radius:28px;background:var(--ag-elev);font-size:14px;font-weight:500;line-height:normal;color:var(--ag-ink);text-align:right;white-space:pre-wrap}
.message .avatar{display:none}
.message.assistant{display:flex;flex-direction:column;gap:8px}
.msg-head{display:flex;align-items:center;gap:8px;height:29px}
.msg-head .app-icon{width:27px;height:27px}
.msg-head span{font-size:12px;font-weight:500;color:#1a1a1a;line-height:17px}
.msg-body{display:flex;gap:8px}
.msg-body:before{content:'';width:27px;flex:none}
.msg-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.msg-status{display:flex;align-items:center;justify-content:space-between;gap:8px}
.msg-status .src{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--ag-ink3);line-height:16px}
.msg-status .chip{display:inline-flex;align-items:center;gap:3px;padding:5px 10px;border-radius:20px;background:var(--ag-elev);font-size:11px;font-weight:600;color:var(--ag-ink2);line-height:16px}
.message.assistant .bubble{padding:0;border-radius:0;background:transparent;font-size:14px;line-height:19px;color:var(--ag-ink);white-space:pre-wrap}
.message.assistant .bubble.lead{font-size:20px;font-weight:600;line-height:25px}
.msg-actions{display:flex;align-items:center;gap:12px;padding:8px 0}
.msg-actions button{width:18px;height:18px;padding:0;border:0;background:transparent;opacity:.8}
.msg-actions button:hover{opacity:1}
.engine-label{display:none}

/* prompt chips */
.chat-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 0 35px}
.chat-suggestions button{display:inline-flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-surface);color:var(--ag-ink2);font-size:11px;font-weight:600;line-height:16px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.chat-suggestions button .icon{width:19px;height:19px;color:var(--ag-ink2);order:-1}
.chat-suggestions button:hover{background:var(--ag-elev)}

/* composer: outer #f9f9f9 27px → inner white 24px */
.composer-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:8px}
.composer-shell{width:100%;max-width:700px;padding:0;border-radius:27px;background:transparent}
.composer{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:16px;border:1px solid var(--ag-border);border-radius:24px;background:var(--ag-surface)}
.composer textarea{width:100%;min-height:44px;max-height:160px;padding:2px 0;border:0;background:transparent;font-size:14px;line-height:normal;color:var(--ag-ink);resize:none;margin:0}
.composer textarea::placeholder{color:var(--ag-ph)}
.composer textarea:focus-visible{outline:0}
.composer-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px}
.composer-left{display:flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
.composer-right{display:flex;align-items:center;gap:4px}
.composer .pill{display:inline-flex;align-items:center;gap:5px;height:40px;padding:6px 15px;border-radius:50px;background:var(--ag-elev);font-size:14px;font-weight:500;color:var(--ag-ink);border:0}
.composer select.pill{appearance:none;-webkit-appearance:none;padding-right:15px;cursor:pointer}
.composer .iconbtn{width:40px;height:40px;border:0;border-radius:47px;background:transparent;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--ag-ink)}
.composer .iconbtn:hover{background:var(--ag-hover)}
.composer .iconbtn.send{background:var(--ag-ink)}
.composer .iconbtn.send:disabled{background:var(--ag-hover)}
.composer .iconbtn.send:disabled .kicon{filter:invert(.6)}
.workspace-controls{position:absolute;top:24px;right:32px;z-index:3}
.workspace.has-canvas .canvas-header{padding-right:84px}
@media(min-width:701px){.workspace:not(.has-canvas) .canvas{display:none}}
.composer .iconbtn.voice.on{background:var(--primary);color:#fff}
.composer .iconbtn.voice.on .kicon{filter:invert(1)}
/* voice mode (kit: Chat/Input Box · recording): blue wash, inner glow, waveform, timer */
.composer-voice{position:relative;overflow:hidden;min-height:190px;justify-content:space-between;box-shadow:inset 0 0 22px rgba(56,180,250,.5)}
.composer-voice .glow-voice{position:absolute;left:50%;top:-120px;width:368px;height:375px;margin-left:-184px;filter:blur(47px);opacity:.9;transform:none}
.composer-voice>*:not(.glow){position:relative;z-index:1}
.rec-center{display:flex;flex-direction:column;align-items:center;gap:22px;padding-top:4px}
.rec-label{font-size:14px;font-weight:500;color:var(--ag-ink3)}
.waveform{display:flex;align-items:center;gap:4px;height:32px}
.waveform i{display:block;width:2px;border-radius:1px;background:#9a9a9a;opacity:.66;transform-origin:center}
.is-listening .waveform i,.is-speaking .waveform i{animation:ag-wave 1.1s ease-in-out infinite;animation-delay:calc(var(--i) * -.09s)}
.is-speaking .waveform i{background:var(--primary);opacity:.8}
.is-paused .waveform i{opacity:.35}
@keyframes ag-wave{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1.6)}}
.rec-timer{display:inline-flex;align-items:center;gap:13px;padding:8px 16px;border-radius:40px;background:var(--ag-elev);font-size:14px;color:var(--ag-ink2);line-height:19px}
.rec-timer .kicon{width:10px;height:10px;overflow:visible}
.is-paused .rec-timer .kicon{opacity:.4}
.rec-timer b{font-weight:400;font-variant-numeric:tabular-nums}
.composer .rec-cancel{background:var(--ag-bg);color:var(--ag-ink);min-width:103px;justify-content:center}
.composer .rec-pause{background:var(--ag-bg)}
.composer .rec-done .icon{width:18px;height:18px;color:#fff}
@keyframes ag-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}
.disclaimer{font-size:14px;font-weight:500;color:var(--ag-ph);text-align:center;line-height:normal}

/* ---------- canvas: glass, entrance choreography, thinking state ---------- */
.canvas{position:relative;isolation:isolate;background:linear-gradient(180deg,rgba(255,255,255,.88) 0%,rgba(255,255,255,.72) 100%);box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 24px 70px rgba(13,13,13,.07)}
.canvas>*{position:relative;z-index:1}
.canvas .glow-canvas{position:absolute;z-index:0;right:-220px;bottom:-260px;width:560px;height:560px;opacity:.35;filter:blur(70px);transform:scaleX(-1);transition:opacity .6s}
.canvas.is-busy .glow-canvas{opacity:.6;animation:ag-breathe 2.2s ease-in-out infinite}
@keyframes ag-breathe{0%,100%{opacity:.35;transform:scaleX(-1) scale(1)}50%{opacity:.7;transform:scaleX(-1) scale(1.08)}}
/* entrance: the whole column focuses in, then its children rise one after another */
.canvas.is-entering{animation:ag-focus .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes ag-focus{from{opacity:0;transform:translateY(10px) scale(.985);filter:blur(2px)}to{opacity:1;transform:none;filter:none}}
.canvas.is-entering>*:not(.glow),.canvas.is-entering .product-grid>*,.canvas.is-entering .comparison tr,.canvas.is-entering .cart-line,.canvas.is-entering .shipping-option,.canvas.is-entering .preference-form>*,.canvas.is-entering .form-stack>*,.canvas.is-entering .order-card{animation:ag-rise .6s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms + 80ms)}
@keyframes ag-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.canvas.is-entering>*:nth-child(2){--i:0}.canvas.is-entering>*:nth-child(3){--i:1}.canvas.is-entering>*:nth-child(4){--i:2}.canvas.is-entering>*:nth-child(5){--i:3}.canvas.is-entering>*:nth-child(6){--i:4}.canvas.is-entering>*:nth-child(7){--i:5}.canvas.is-entering>*:nth-child(8){--i:6}.canvas.is-entering>*:nth-child(n+9){--i:7}
.canvas.is-entering .product-grid>*:nth-child(1),.canvas.is-entering .comparison tr:nth-child(1),.canvas.is-entering .cart-line:nth-child(1),.canvas.is-entering .shipping-option:nth-child(1),.canvas.is-entering .preference-form>*:nth-child(1),.canvas.is-entering .form-stack>*:nth-child(1){--i:1}
.canvas.is-entering .product-grid>*:nth-child(2),.canvas.is-entering .comparison tr:nth-child(2),.canvas.is-entering .cart-line:nth-child(2),.canvas.is-entering .shipping-option:nth-child(2),.canvas.is-entering .preference-form>*:nth-child(2),.canvas.is-entering .form-stack>*:nth-child(2){--i:2}
.canvas.is-entering .product-grid>*:nth-child(3),.canvas.is-entering .comparison tr:nth-child(3),.canvas.is-entering .cart-line:nth-child(3),.canvas.is-entering .shipping-option:nth-child(3),.canvas.is-entering .preference-form>*:nth-child(3),.canvas.is-entering .form-stack>*:nth-child(3){--i:3}
.canvas.is-entering .product-grid>*:nth-child(4),.canvas.is-entering .comparison tr:nth-child(4),.canvas.is-entering .preference-form>*:nth-child(4),.canvas.is-entering .form-stack>*:nth-child(4){--i:4}
.canvas.is-entering .product-grid>*:nth-child(5),.canvas.is-entering .comparison tr:nth-child(5),.canvas.is-entering .preference-form>*:nth-child(5),.canvas.is-entering .form-stack>*:nth-child(5){--i:5}
.canvas.is-entering .product-grid>*:nth-child(n+6),.canvas.is-entering .comparison tr:nth-child(n+6),.canvas.is-entering .preference-form>*:nth-child(n+6),.canvas.is-entering .form-stack>*:nth-child(n+6){--i:6}
/* the product photo settles a beat after its card */
.canvas.is-entering .product-photo{animation:ag-settle .8s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms + 220ms)}
@keyframes ag-settle{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}
/* stage strip: the active dot glides */
.stage-strip span{transition:background .35s,color .35s}
.stage-strip span:before{transition:background .35s,opacity .35s,transform .35s}
.stage-strip span.on:before{transform:scale(1.35)}
@media(prefers-reduced-motion:reduce){.canvas.is-entering,.canvas.is-entering *,.canvas.is-busy .glow-canvas{animation:none!important}}

.rail-count{margin-left:auto;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ag-ink);color:#fff;font-size:11px;font-weight:600;font-style:normal;display:inline-flex;align-items:center;justify-content:center}
.rail-mini .rail-count{position:absolute;top:4px;right:4px;margin:0;min-width:16px;height:16px;font-size:10px}
.rail-mini .rail-nav button{position:relative}
/* ---------- canvas v2: sheets on glass ---------- */
.canvas{padding:24px 28px 28px;overflow-x:hidden}
.canvas .canvas-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 18px;padding-right:110px}
.canvas .canvas-header h2{font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.02em;margin:0}
.canvas .canvas-header p{margin:6px 0 0;font-size:13px;color:var(--ag-ink3);font-weight:500}
.canvas button.link{border:0;background:transparent;padding:0;font-size:13px;font-weight:600;color:var(--ag-ink2);text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9ccd1;display:inline-flex;align-items:center;gap:4px}
.canvas button.link .icon{width:14px;height:14px}
.canvas button.link:hover{color:var(--ag-ink)}
.sheet,.hero-card,.match-row,.compare-bar,.why-sheet,.pd-stage{background:var(--ag-surface);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--ag-border);box-shadow:var(--ag-surface-shadow);border-radius:20px}
.canvas .pill-dark,.canvas button.pill-dark{height:40px;padding:0 18px;border:0;border-radius:var(--ag-action-radius);background:var(--ag-ink);color:var(--ag-on-action);font-size:14px;font-weight:var(--ag-control-weight);display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.canvas .pill-dark:hover{background:#262626}
.canvas .pill-dark .icon{width:16px;height:16px}
.canvas .pill-ghost,.canvas button.pill-ghost{height:40px;padding:0 16px;border:1px solid var(--ag-border);border-radius:var(--ag-action-radius);background:var(--ag-surface);color:var(--ag-ink);font-size:14px;font-weight:var(--ag-control-weight);display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.canvas .pill-ghost:hover{background:#fff;border-color:var(--ag-ink)}
.canvas .pill-ghost.sm{height:34px;padding:0 12px;font-size:13px}
.canvas .section-title{font-size:13px;font-weight:600;color:var(--ag-ink3);margin:22px 0 10px;letter-spacing:0}
.canvas .canvas-foot{margin:18px 0 0;font-size:12px;color:var(--ag-ph);line-height:17px}
.stage-pill{display:inline-flex;align-items:center;gap:6px;margin-left:10px;padding:3px 9px;border-radius:20px;background:var(--ag-elev);color:var(--ag-ink2);font-size:11px;font-weight:600;vertical-align:middle}
.stage-pill i{width:6px;height:6px;border-radius:50%;background:var(--primary)}
/* hero (top pick) */
.hero-card{display:grid;grid-template-columns:minmax(200px,38%) minmax(0,1fr);gap:24px;padding:16px}
.hero-photo{position:relative;aspect-ratio:1;border-radius:16px;background:radial-gradient(120% 90% at 50% 100%,rgba(13,13,13,.06),transparent 60%),var(--ag-bg);display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero-photo img{width:auto;max-width:80%;height:78%;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(13,13,13,.14))}
.hero-info{display:flex;flex-direction:column;gap:10px;padding:6px 6px 6px 0;min-width:0}
.hero-tag{align-self:flex-start;padding:5px 10px;border-radius:20px;background:var(--primary);color:#fff;font-size:11px;font-weight:600;line-height:1}
.hero-info h2{margin:0;font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-.01em}
.hero-price{font-size:28px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}
.hero-why{margin:2px 0 0;font-size:15px;line-height:1.45;color:var(--ag-ink2);max-width:52ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}
/* also matching rows */
.match-list{display:flex;flex-direction:column;gap:10px}
.match-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px 14px 12px 12px;transition:transform .2s,box-shadow .2s}
.match-row:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(13,13,13,.09)}
.match-row>img{width:72px;height:72px;object-fit:contain;background:var(--ag-bg);border-radius:12px;padding:6px}
.match-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.match-info b{font-size:15px;font-weight:600;line-height:1.25}
.match-info small{font-size:12px;color:var(--ag-ink3);line-height:1.4;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.match-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.match-side>b{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.match-side .row{gap:6px}
.match-side .pc-add{width:34px;height:34px;flex:0 0 34px;padding:0;border:1px solid var(--ag-ink);border-radius:50%;background:var(--ag-surface);display:inline-flex;align-items:center;justify-content:center}
.compare-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 14px 14px 18px;margin-top:16px}
.compare-bar b{display:block;font-size:15px;font-weight:600}
.compare-bar span{font-size:12px;color:var(--ag-ink3)}
/* product detail */
.pd{display:grid;grid-template-columns:minmax(220px,42%) minmax(0,1fr);gap:24px;align-items:start}
.pd-stage{aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:radial-gradient(120% 80% at 50% 100%,rgba(13,13,13,.07),transparent 60%),rgba(255,255,255,.62);overflow:hidden}
.pd-stage img{width:auto;max-width:82%;height:80%;object-fit:contain;filter:drop-shadow(0 24px 30px rgba(13,13,13,.16))}
.pd-info{display:flex;flex-direction:column;gap:12px;min-width:0}
.pd-info h2{margin:0;font-size:24px;font-weight:600;line-height:1.15;letter-spacing:-.02em}
.pd-price-row{display:flex;align-items:center;gap:14px}
.pd-desc{margin:0;font-size:13px;line-height:1.5;color:var(--ag-ink2)}
.pd-options{display:grid;gap:8px}.pd-option{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.pd-option>span{font-size:12px;color:var(--ag-ink2);min-width:64px}.pd-option .on{border-color:var(--ag-ink);font-weight:600}.pd-option .muted{opacity:.55;text-decoration:line-through}
.pd-specs{margin:4px 0 0;display:flex;flex-direction:column;gap:0}
.pd-specs>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:9px 0;border-top:1px solid rgba(13,13,13,.07)}
.pd-specs>div:last-child{border-bottom:1px solid rgba(13,13,13,.07)}
.pd-specs dt{font-size:13px;color:var(--ag-ink2);font-weight:500}
.pd-specs dd{margin:0;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.pd-specs dd{overflow-wrap:break-word;text-align:right}
/* the top pick is a summary: two columns, the catalog badge lives on the product card; a narrow panel puts the badge under its row */
.hero-specs>div{grid-template-columns:minmax(0,1fr) auto}
.hero-specs .pd-src{display:none}
@container (max-width:560px){.pd-specs>div{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.pd-specs .pd-src{grid-column:1/-1;justify-self:start}} /* a catalog's own spec values can be long (a model list, a note) */
.pd-src{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--ag-ink3);padding:4px 8px;border-radius:20px;background:var(--ag-elev)}
.why-sheet{margin-top:16px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.why-sheet span{font-size:11px;font-weight:600;color:var(--ag-ink3)}
.why-sheet p{margin:0;font-size:16px;line-height:1.45;color:var(--ag-ink)}
.accessory-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:10px 12px;margin-bottom:8px;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.8);border-radius:16px}
.accessory-row img{width:56px;height:56px;object-fit:contain;background:var(--ag-bg);border-radius:10px;padding:4px}
.accessory-row .info h3{font-size:14px;font-weight:600;margin:0}
.accessory-row .info small{font-size:11px;color:var(--ag-ink3)}
.accessory-row>b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.accessory-row button.small{width:34px;height:34px;padding:0;border:1px solid var(--ag-ink);border-radius:50%;background:var(--ag-surface);display:inline-flex;align-items:center;justify-content:center}
.accessory-row button.small .icon{width:16px;height:16px}
.chip-row{display:flex;flex-wrap:wrap;gap:6px}
/* compare */
.cmp-sheet{padding:6px 10px 10px;overflow-x:auto}
.cmp{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.cmp th,.cmp td{padding:12px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid rgba(13,13,13,.06)}
.cmp thead th{vertical-align:bottom;padding-top:14px}
.cmp thead th img{width:84px;height:84px;object-fit:contain;display:block;margin-bottom:8px;filter:drop-shadow(0 10px 14px rgba(13,13,13,.12))}
.cmp thead th b{display:block;font-size:14px;font-weight:600;line-height:1.25;max-width:18ch}
.cmp thead th .hero-tag,.cmpt thead th .hero-tag{margin-top:6px;display:inline-block;border-radius:10px;line-height:1.25}
.cmp tbody td:first-child,.cmp thead th:first-child{color:var(--ag-ink3);font-weight:500;font-size:13px;position:sticky;left:0;background:rgba(255,255,255,.9);width:1%;white-space:nowrap}
.cmp td{font-weight:600;font-variant-numeric:tabular-nums}
.cmp td.hl,.cmp th.hl{background:rgba(13,13,13,.025)}
.cmp thead th.hl{border-radius:14px 14px 0 0}
.cmp td.best{color:var(--ag-ink)}
.cmp td.best::after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);margin-left:8px;vertical-align:middle}
.cmp tr.cta td{border-bottom:0;padding-top:14px}
.cmp tr.cta td.hl{border-radius:0 0 14px 14px}
/* cart / checkout two-column */
.co-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.cart-lines{display:flex;flex-direction:column;gap:10px}
.canvas .cart-line{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px;background:rgba(255,255,255,.62);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.8);border-radius:18px;box-shadow:0 10px 30px rgba(13,13,13,.05);margin:0}
.canvas .cart-line>img{width:80px;height:80px;object-fit:contain;background:var(--ag-bg);border-radius:12px;padding:6px}
.canvas .cart-line .info{display:flex;flex-direction:column;gap:6px;min-width:0}
.canvas .cart-line .info h3{margin:0;font-size:15px;font-weight:600}
.canvas .cart-line .cart-change{margin:0;font-size:13px;color:#b4232a}.canvas .cart-line .cart-change s{color:#6b6b6b;margin-right:4px}
.canvas .cart-line .info small{color:var(--ag-ink3);font-size:12px}
.canvas .cart-line .quantity{display:inline-flex;align-items:center;gap:0;margin-top:4px;border:1px solid rgba(13,13,13,.14);border-radius:9999px;padding:2px;width:max-content;background:#fff}
.canvas .cart-line .quantity button{width:28px;height:28px;border:0;background:transparent;border-radius:50%;font-size:16px;line-height:1;padding:0}
.canvas .cart-line .quantity button:hover{background:var(--ag-hover)}
.canvas .cart-line .quantity span{min-width:28px;text-align:center;font-weight:600;font-size:14px}
.cart-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.cart-side>b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.cart-side .icon-button{width:32px;height:32px;border:0;background:transparent;color:var(--ag-ink3);border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.cart-side .icon-button:hover{background:var(--ag-hover);color:var(--ag-ink)}
.summary-sheet{padding:18px;display:flex;flex-direction:column;gap:10px;font-size:14px;position:sticky;top:0}
.summary-sheet .row{gap:12px}
.summary-sheet .row>span:first-child{color:var(--ag-ink2);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.summary-sheet .row.muted span{color:var(--ag-ink3)}
.summary-sheet .row.grand{padding-top:10px;margin-top:4px;border-top:1px solid rgba(13,13,13,.08);font-size:16px}
.summary-sheet .row.grand span{color:var(--ag-ink);font-weight:600}
.summary-sheet .row.grand b{font-size:22px;letter-spacing:-.02em}
.summary-sheet p.muted{margin:0;font-size:12px;color:var(--ag-ink3)}
.canvas .pill-dark.wide{width:100%;justify-content:center;margin-top:6px}
.trust,.addr{display:flex;align-items:flex-start;gap:6px;font-size:11px;color:var(--ag-ink3);line-height:1.4}
.trust .icon,.addr .icon{width:14px;height:14px;flex:none;margin-top:1px}
.form-sheet{padding:18px}
.form-sheet .form-stack{gap:12px}
.form-sheet .field-grid{margin-bottom:12px}
.form-sheet .alert{margin:12px 0 0;border-radius:12px;font-size:13px}
.confirm-row{display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;font-size:13px;color:var(--ag-ink2);line-height:1.4;cursor:pointer}
.confirm-row input{margin:2px 0 0;accent-color:var(--ag-ink)}
.option-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.canvas .shipping-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.8);border-radius:16px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.canvas .shipping-option:has(input:checked){border-color:var(--ag-ink);box-shadow:0 10px 30px rgba(13,13,13,.06)}
.canvas .shipping-option input{accent-color:var(--ag-ink);margin:0}
.canvas .shipping-option .content{display:flex;flex-direction:column;gap:2px;min-width:0}
.canvas .shipping-option .content b{font-size:14px;font-weight:600}
.canvas .shipping-option .content small{font-size:12px;color:var(--ag-ink3)}
.canvas .shipping-option strong{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.cta-row{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.cta-row.wrap{flex-wrap:wrap;justify-content:flex-start}
.pay-demo{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.pay-demo .success-mark{margin:0}
/* order */
.order-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:8px 0 22px}
.order-hero .success-mark{width:64px;height:64px;border-radius:50%;background:var(--ag-elev);display:flex;align-items:center;justify-content:center;margin-bottom:6px;box-shadow:0 0 0 10px rgba(255,255,255,.5)}
.order-hero .success-mark.ok{background:var(--primary);color:#fff;box-shadow:0 0 0 10px color-mix(in srgb,var(--primary) 18%,transparent),0 14px 34px color-mix(in srgb,var(--primary) 35%,transparent)}
.order-hero .success-mark .icon{width:28px;height:28px}
.order-hero h2{margin:0;font-size:26px;font-weight:600;letter-spacing:-.02em}
.order-hero p{margin:0;font-size:14px;color:var(--ag-ink2)}
.canvas .sheet+.sheet{margin-top:12px}
.canvas .order-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:16px 16px 6px;margin:0}
.canvas .order-timeline span{background:transparent;border:0;display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;color:var(--ag-ph);padding:0;hyphens:auto;overflow-wrap:anywhere}
.canvas .order-timeline span i{display:block;height:4px;border-radius:4px;background:rgba(13,13,13,.08)}
.canvas .order-timeline span.done{color:var(--ag-ink2)}
.canvas .order-timeline span.done i{background:var(--primary)}
.canvas .order-timeline span.now{color:var(--ag-ink)}
/* one paragraph beside the icon: as flex items the label, the date and the place each squeezed into a column of their own */
.canvas .eta{position:relative;margin:0;padding:10px 16px 14px 40px;font-size:13px;line-height:1.45;color:var(--ag-ink2)}
.canvas .eta .icon{position:absolute;left:16px;top:11px;width:16px;height:16px}
.canvas .eta b{white-space:nowrap}
.canvas .eta a{color:var(--ag-ink);font-weight:600}
@media(max-width:1000px){.co-grid{grid-template-columns:minmax(0,1fr)}.summary-sheet{position:static}}
@media(max-width:1250px){.hero-card{grid-template-columns:minmax(160px,34%) minmax(0,1fr)}.pd{grid-template-columns:minmax(180px,38%) minmax(0,1fr)}}
@media(max-width:700px){.canvas{padding:16px}.hero-card,.pd{grid-template-columns:1fr}.hero-photo,.pd-stage{aspect-ratio:4/3}.canvas .canvas-header{padding-right:0}}

/* ---------- stage strip + streaming skeleton (CAN-02) ---------- */
.stage-strip{display:flex;align-items:center;gap:6px;margin:-4px 0 14px;font-size:11px;font-weight:600;color:var(--ag-ph);line-height:16px}
.stage-strip span{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:20px}
.stage-strip span:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.5}
.stage-strip span.done{color:var(--ag-ink3)}
.stage-strip span.on{color:var(--ag-ink);background:var(--ag-elev)}
.stage-strip span.on:before{background:var(--primary);opacity:1}
.skeleton .product-card{pointer-events:none}
.sk{position:relative;overflow:hidden;background:var(--ag-bg);border-radius:8px;color:transparent}
.sk:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:ag-shimmer 1.4s infinite}
.sk-media{aspect-ratio:4/3;border-radius:14px}
.sk-line{height:12px;margin:8px 4px 0}
.sk-line.w40{width:40%}.sk-line.w70{width:70%}.sk-line.h20{height:20px;width:35%}
@keyframes ag-shimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.sk:after{animation:none}}

/* ---------- canvas (products / compare / cart / checkout) ---------- */
.canvas{background:var(--ag-surface);border-radius:24px;padding:20px;overflow:auto;min-width:0;min-height:0}
.canvas-header{margin-bottom:16px}
.canvas-header h2{font-size:20px;font-weight:600;line-height:25px}
.canvas-header p{font-size:12px;color:var(--ag-ink3);font-weight:500}
.welcome-canvas{gap:8px}
.welcome-mark{display:none}
.welcome-canvas h1{font-size:34px;font-weight:700;line-height:1.15;color:var(--ag-ink);text-wrap:balance}
.welcome-canvas p{font-size:16px;font-weight:600;color:var(--ag-ink3)}
.welcome-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.welcome-actions button{display:inline-flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-surface);color:var(--ag-ink2);font-size:12px;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.welcome-actions button .icon{color:var(--ag-ink2)}
.welcome-canvas small{color:var(--ag-ph);font-size:12px}
.product-card{border:1px solid var(--ag-border);border-radius:16px;padding:12px;background:var(--ag-surface);box-shadow:none}
.product-photo{background:var(--ag-bg);border-radius:8px;padding:8px}
.best-badge{background:var(--ag-ink);border-radius:20px;font-weight:600}
.canvas-note{border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-elev)}
button.primary,.product-card .primary,.checkout-actions .primary{background:var(--ag-ink);color:#fff;border-radius:9999px;border:0}
.cart-line{border-color:var(--ag-border)}

/* ---------- launcher ---------- */
.launcher{border:0;background:var(--ag-ink);color:#fff;font-family:var(--ag-font);font-weight:600;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.launcher .mini-orb{display:none}
.launcher small{color:#cfcfcf}

/* ---------- responsive ---------- */
@media(max-width:1250px){.workspace,.workspace.full{grid-template-columns:240px minmax(0,1fr)}.workspace.has-canvas{grid-template-columns:64px minmax(300px,.75fr) minmax(0,2fr)}}
@media(max-width:1000px){.workspace,.workspace.full{grid-template-columns:minmax(0,1fr)}.workspace.has-canvas{grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr)}.rail{display:none}}
@media(max-width:700px){
  .overlay{padding:0;background:var(--ag-surface)}
  .workspace,.workspace.full,.workspace.has-canvas{display:block;padding:45px 0 0}
  .workspace-controls{position:absolute;top:9px;right:9px}
  .workspace-controls:before{font-family:var(--ag-font);font-weight:600}
  .chat-panel{position:absolute;inset:90px 0 0;border-radius:0;padding:12px}
  .chat-top{display:none}
  .composer-shell{padding:8px 6px 6px}
  .composer .pill{height:36px;padding:4px 12px;font-size:13px}
  .canvas{border-radius:0}
  .mobile-tabs{font-family:var(--ag-font)}
  .mobile-tabs button{font-weight:600;color:var(--ag-ink2)}
  .mobile-tabs .selected{color:var(--ag-ink);border-bottom:2px solid var(--ag-ink)}
}
@media(prefers-reduced-motion:reduce){.voice-strip .dot{animation:none}}

/* ======================================================================
   Full kit port: glass, glows, empty state, toolbar, and every control that
   renders inside the workspace (canvas views, forms, dialogs, toasts).
   ====================================================================== */

/* ---------- glass + glows (the kit's blurred app-icon washes) ---------- */
.glow{position:absolute;pointer-events:none;background:none;filter:blur(87px);z-index:0}
.glow-main{width:1129px;height:1150px;left:31px;top:650px;opacity:.5}
.glow-l{width:595px;height:607px;left:-254px;top:-367px;opacity:.55;transform:scaleY(-1)}
.glow-r{width:595px;height:607px;right:-254px;top:-367px;opacity:.55;transform:scaleY(-1)}
.glow-hero{width:147px;height:149px;left:50%;top:0;margin-left:-73px;filter:blur(22px);opacity:.9}
.chat-panel>*:not(.glow){position:relative;z-index:1}
.composer-shell{position:relative;overflow:visible;background:transparent}
.composer-shell .composer{position:relative;z-index:1;background:var(--ag-surface);box-shadow:0 4px 20px rgba(13,13,13,.04)}
.composer-shell .composer:focus-within{box-shadow:0 4px 20px rgba(13,13,13,.04)}
.chat-panel,.canvas{background:var(--ag-surface);backdrop-filter:blur(30px) saturate(1.3);-webkit-backdrop-filter:blur(30px) saturate(1.3);border:1px solid var(--ag-border);box-shadow:var(--ag-surface-shadow)}
.rail{background:var(--ag-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:24px;border:1px solid var(--ag-border)}
.chat-suggestions button,.prompt-chips button,.welcome-actions button,.product-card,.canvas-note,.summary,.order-card,.shipping-option,.comparison{background:var(--ag-surface);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.composer-shell{border:0}
.composer-shell>.glow-layer{display:none}
.rail-nav button.is-current,.rail-recent button.is-current{background:rgba(255,255,255,.85)}
@media(max-width:700px){.overlay{background:rgba(255,255,255,.85)}.chat-panel,.canvas{border:0;box-shadow:none}}
.chat-suggestions button,.welcome-actions button,.prompt-chips button{background:var(--ag-surface);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}

/* ---------- empty state (kit: hero icon, 48px display, prompt chips) ---------- */
.empty-state{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:20px 16px 40px}
.empty-state .app-icon.hero{position:relative;width:146px;height:149px;border-radius:0;object-fit:contain;margin-bottom:24px;filter:drop-shadow(0 20px 40px rgba(120,120,255,.25))}
.empty-state h1{margin:0;font-size:48px;font-weight:700;line-height:57px;letter-spacing:0;color:var(--ag-ink);max-width:510px;text-wrap:balance}
.empty-state p{margin:0;font-size:20px;font-weight:600;line-height:25px;color:var(--ag-ink3)}
.prompt-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;max-width:717px;margin-top:24px}
.prompt-chips button{display:inline-flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--ag-border);border-radius:16px;color:var(--ag-ink2);font-size:11px;font-weight:600;line-height:16px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.prompt-chips button .icon,.prompt-chips button .kicon{width:19px;height:19px;color:var(--ag-ink2)}
.prompt-chips button:hover{background:var(--ag-elev)}
@media(max-width:1250px){.empty-state h1{font-size:36px;line-height:1.15}.empty-state .app-icon.hero{width:110px;height:112px}}

/* ---------- message toolbar (kit: thumbs / copy / share / refresh) ---------- */
.msg-actions{margin-left:35px;padding:8px 0 0}
.msg-actions button{width:18px;height:18px;padding:0;border:0;background:transparent;opacity:.75;transition:opacity .15s}
.msg-actions button:hover{opacity:1}
.msg-actions .kicon{width:18px;height:18px}

/* ---------- controls inside the workspace ---------- */
.workspace button{font-family:var(--ag-font);transition:background .15s,transform .05s,opacity .15s}
.workspace button:active:not(:disabled){transform:scale(.98)}
.workspace button:focus-visible,.workspace input:focus-visible,.workspace select:focus-visible,.workspace textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.workspace .primary,.canvas .primary,.dialog .primary,.canvas button.primary{background:var(--ag-ink);color:var(--ag-on-action);border:0;border-radius:var(--ag-action-radius);padding:10px 18px;font-size:14px;font-weight:var(--ag-control-weight);line-height:20px}
.workspace .primary:hover{background:#262626}
.canvas .small,.canvas-header button{border:1px solid var(--ag-border);border-radius:var(--ag-action-radius);background:var(--ag-surface);color:var(--ag-ink);padding:8px 14px;font-size:13px;font-weight:var(--ag-control-weight)}
.canvas-header button .icon{width:16px;height:16px}
.canvas .empty{color:var(--ag-ink3);font-size:14px;font-weight:500}
.canvas h3{font-size:14px;font-weight:600;color:var(--ag-ink)}
.canvas p,.canvas small{color:var(--ag-ink2)}
.canvas small{font-size:12px}
.dialog label{font-size:12px;font-weight:500;color:var(--ag-ink2);display:block}
.workspace input:not([type=radio]):not([type=checkbox]),.workspace select:not(.pill),.workspace textarea:not(.composer textarea),.dialog input,.dialog select,.dialog textarea{display:block;width:100%;border:1px solid var(--ag-border);border-radius:var(--ag-field-radius);background:var(--ag-bg);color:var(--ag-ink);padding:11px 12px;margin-top:6px;font-size:14px;font-family:var(--ag-font)}
.workspace input::placeholder,.workspace textarea::placeholder{color:var(--ag-ph)}
.workspace label:not(.shipping-option){font-size:12px;font-weight:500;color:var(--ag-ink2);display:block}
.workspace label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ag-ink)}
.workspace input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--ag-ink)}
.shipping-option{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ag-ink)}
.shipping-option input{width:16px;height:16px;margin:0;accent-color:var(--ag-ink)}
.shipping-option .content{flex:1}
.shipping-option strong{font-weight:600;font-variant-numeric:tabular-nums}
.preference-form{gap:14px}
.preference-form .primary{justify-self:start;display:inline-flex;align-items:center;gap:8px}
.find-form{display:flex;gap:8px;align-items:center;max-width:640px}
.workspace .find-form input[name=message]{flex:1;min-width:0;margin:0}
.find-form .primary{display:inline-flex;align-items:center;gap:8px;flex:none}
.field-grid{gap:12px}
.badge{border-radius:20px;background:var(--ag-elev);color:var(--ag-ink2);font-weight:600;font-size:11px;padding:5px 10px}
.badge.green{background:#e8f7ee;color:#167d49}
.chip,.clarify-chips .chip{border:1px solid var(--ag-border);border-radius:20px;background:var(--ag-surface);color:var(--ag-ink2);font-size:12px;font-weight:600;padding:8px 14px}
.chip.selected,.chip[aria-pressed=true]{background:var(--ag-ink);color:#fff;border-color:var(--ag-ink)}
.workspace .chip.selected:hover:not(:disabled),.workspace .chip[aria-pressed=true]:hover:not(:disabled){background:var(--ag-ink);color:var(--ag-surface);border-color:var(--ag-ink)}

/* product cards */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.product-card{display:flex;flex-direction:column;gap:0;padding:10px;border:1px solid var(--ag-border);border-radius:20px;transition:transform .2s,box-shadow .2s,border-color .2s}
.product-card:hover{transform:translateY(-2px);box-shadow:0 14px 40px rgba(13,13,13,.10);border-color:#e6e6e6}
.product-card.best{border-color:var(--ag-ink)}
.pc-media{position:relative;aspect-ratio:4/3;border-radius:14px;background:var(--ag-bg);display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-photo{width:auto;max-width:82%;height:82%;object-fit:contain;margin:0;transition:transform .3s}
.product-card:hover .product-photo{transform:scale(1.04)}
.best-badge{position:absolute;top:10px;left:10px;z-index:1;background:var(--primary);color:#fff;border-radius:20px;font-size:11px;font-weight:600;padding:5px 10px;line-height:1}
.promo-badge{background:var(--ag-ink);top:auto;bottom:10px}
.pc-body{display:flex;flex-direction:column;gap:6px;padding:12px 4px 10px}
.pc-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.product-brand{font-size:12px;font-weight:500;color:var(--ag-ink3)}
.pc-stock{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#167d49}
.pc-stock i{width:6px;height:6px;border-radius:50%;background:currentColor}
.pc-stock.muted{color:var(--ag-ph)}
.product-card h3{font-size:14px;font-weight:600;line-height:19px;margin:0;color:var(--ag-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.pc-options{font-size:12px;color:var(--ag-ink3)}
.product-price{font-size:20px;font-weight:600;letter-spacing:-.01em;margin:2px 0 4px;color:var(--ag-ink);font-variant-numeric:tabular-nums}
.specs{display:flex;flex-wrap:wrap;gap:6px;margin:0;font-size:11px}
.specs span,.specs .row{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:8px;background:var(--ag-bg);color:var(--ag-ink2);font-weight:500;line-height:1}
.specs .row .icon{width:13px;height:13px;color:var(--ag-ink3)}
.why-line{font-size:12px;color:var(--ag-ink2);line-height:17px;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.freshness-line{font-size:11px;color:var(--ag-ink3)}
.product-card .product-bottom{margin-top:auto;display:flex;align-items:center;gap:8px;padding:0 2px 2px}
.product-card .product-bottom button.primary{flex:1 1 auto;width:auto;min-width:0;border-radius:var(--ag-action-radius);padding:11px 14px;font-size:13px;font-weight:var(--ag-control-weight);line-height:1;white-space:nowrap;margin:0}
.product-card .product-bottom button.pc-add{width:38px;height:38px;flex:0 0 38px;padding:0;margin:0;border:1px solid var(--ag-ink);border-radius:50%;background:var(--ag-surface);color:var(--ag-ink);display:inline-flex;align-items:center;justify-content:center}
.product-card .product-bottom button.pc-add:hover{background:var(--ag-hover)}
.product-card .product-bottom button.pc-add:disabled{opacity:.35;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.product-card,.product-photo{transition:none}.product-card:hover{transform:none}.product-card:hover .product-photo{transform:none}}
.accessory-row{border-color:var(--ag-border)}

/* comparison table */
.comparison{font-size:13px;border-radius:16px;overflow:hidden;border:1px solid var(--ag-border)}
.comparison th,.comparison td{border-right:0;border-bottom:1px solid var(--ag-border);padding:12px 10px;color:var(--ag-ink)}
.comparison th{font-weight:600}
.comparison td:first-child,.comparison th:first-child{text-align:left;color:var(--ag-ink3);font-weight:500;background:var(--ag-elev)}
.comparison tr:last-child td{border-bottom:0}
.comparison .best,.comparison td.best{background:var(--ag-sel)}
.canvas-note{background:var(--ag-elev);border:1px solid var(--ag-border);border-radius:16px;padding:14px 16px}
.canvas-note h3{font-size:14px}

/* cart / order / checkout */
.cart-line{padding:14px 0}
.cart-line img{border-radius:12px;background:var(--ag-bg)}
.quantity,.quantity button{border-radius:9999px}
.quantity button{width:28px;height:28px;border:1px solid var(--ag-border);background:var(--ag-surface)}
.summary,.order-card{border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-elev)}
.summary .grand,.summary .total{font-weight:600;font-size:16px}
.shipping-option{border:1px solid var(--ag-border);border-radius:16px;padding:12px 14px;background:var(--ag-surface)}
.shipping-option:has(input:checked){border-color:var(--ag-ink);background:var(--ag-elev)}
.success-mark{background:var(--ag-sel);color:var(--primary)}
.order-timeline{color:var(--ag-ink3)}
.alert,.info{border-radius:16px;border:1px solid var(--ag-border);background:var(--ag-elev);color:var(--ag-ink2);font-size:13px;padding:12px 14px}
.inline-error{border-radius:12px}
.tabs button{border-radius:9999px;font-weight:600;font-size:13px}
.tabs button.selected{background:var(--ag-ink);color:#fff}

/* in-panel payment (Stripe Payment Element) */
.stripe-box{padding:14px;border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-surface);margin:4px 0 12px;min-height:120px}
.canvas .primary.wide{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.canvas .primary.wide .icon{width:16px;height:16px}

/* dialogs & toast */
.dialog-backdrop{background:rgba(13,13,13,.35);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.dialog{font-family:var(--ag-font);border-radius:24px;padding:20px;background:rgba(255,255,255,.92);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:0 30px 80px rgba(13,13,13,.25)}
.dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.dialog h2{font-size:20px;font-weight:600}
.dialog .icon-button{width:36px;height:36px;border:0;border-radius:8px;background:transparent}
.dialog .icon-button:hover{background:var(--ag-hover)}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.dialog-actions button{border:1px solid var(--ag-border);border-radius:var(--ag-action-radius);background:var(--ag-surface);padding:10px 18px;font-size:14px;font-weight:var(--ag-control-weight);color:var(--ag-ink)}
.dialog-actions .primary{border:0}
#toast{font-family:var(--ag-font);background:var(--ag-ink);color:#fff;border-radius:12px;font-size:13px;font-weight:500;box-shadow:0 10px 30px rgba(0,0,0,.25)}

/* launcher (no kit equivalent: black pill with the kit app icon) */
.launcher{padding:8px 18px 8px 8px;gap:10px;border-radius:var(--ag-action-radius);box-shadow:var(--ag-surface-shadow)}
.launcher .mini-orb{display:block;width:34px;height:34px;background:url(/assets/agentra/app-icon.png) center/cover;box-shadow:none}
.launcher .mini-orb .wave{display:none}
.launcher b{font-size:14px}

@media(max-width:700px){.glow-main{display:none}.empty-state h1{font-size:30px;line-height:1.15}.empty-state p{font-size:16px}.empty-state .app-icon.hero{width:96px;height:98px}.prompt-chips{margin-top:16px}}

/* ---------- canvas v2.1: retained toolbar, matte neutral controls ---------- */
.glass,.canvas .pill-ghost,.canvas button.pill-ghost,.match-side .pc-add,.accessory-row button.small,.workspace-controls,.canvas .specs span,.pd-src,.msg-status .chip{background:var(--ag-surface);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--ag-border);box-shadow:var(--ag-surface-shadow)}
.canvas button{transition:background-color .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease,transform .15s ease}
.canvas .pill-ghost:hover,.match-side .pc-add:hover,.accessory-row button.small:hover{background:var(--ag-hover);border-color:var(--ag-border);color:var(--ag-ink)}
.canvas .pill-dark,.canvas button.pill-dark{background:var(--ag-ink);box-shadow:var(--ag-surface-shadow)}
.canvas .pill-dark:hover{background:var(--ag-action-hover);box-shadow:var(--ag-surface-shadow)}
.canvas button:active{transform:translateY(1px)}
.canvas .pill-ghost.sm{height:36px}
.canvas .pill-ghost .icon{width:16px;height:16px}
/* toolbar: header action sits beside the window controls, same height, same glass */
.workspace-controls{position:absolute;top:24px;right:28px;height:36px;padding:2px;border-radius:9999px;display:flex;gap:0;z-index:20}
.workspace-controls button{width:32px;height:32px;border-radius:50%;padding:7px;color:var(--ag-ink2)}
.workspace-controls button:hover{background:var(--ag-hover);color:var(--ag-ink)}
.canvas .canvas-header{padding-right:96px;min-height:36px}
.canvas .canvas-header>button{margin-top:0}
/* hero: wide photo, tidy rows */
.hero-card{grid-template-columns:minmax(240px,44%) minmax(0,1fr);gap:22px;padding:14px}
.hero-photo{aspect-ratio:4/3;background:radial-gradient(90% 70% at 50% 100%,rgba(13,13,13,.07),transparent 60%),linear-gradient(180deg,rgba(255,255,255,.7),rgba(245,245,245,.5));border:1px solid rgba(255,255,255,.9)}
.hero-photo img{height:86%;max-width:88%}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hero-info{gap:8px;padding:4px 4px 4px 0}
.hero-info .product-brand{font-size:12px;font-weight:600;color:var(--ag-ink3)}
.hero-info h2{font-size:24px}
.hero-price{margin-top:2px}
.hero-why{margin-top:4px}
.canvas .specs{display:flex;flex-wrap:wrap;gap:6px}
.canvas .specs span{padding:5px 10px;border-radius:20px;font-size:12px;font-weight:600;color:var(--ag-ink2)}
.pc-stock{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
@media(max-width:1250px){.hero-card{grid-template-columns:minmax(200px,40%) minmax(0,1fr)}}
@media(max-width:700px){.hero-card{grid-template-columns:1fr}/* the 36px pill sits in the 45px strip above the tabs (top:44px) */.workspace-controls{top:4px;right:9px}}
.hero-photo{width:100%;justify-self:stretch;height:auto;min-height:0}
.hero-photo img{position:absolute;inset:7%;width:86%;height:86%;max-width:none;object-fit:contain}
/* ---------- chat: same neutral controls as the canvas ---------- */
.chat-panel button,.rail button{transition:background-color .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease,transform .15s ease}
.chat-suggestions button,.prompt-chips button,.welcome-actions button,.composer .pill,.composer select.pill{background:var(--ag-surface);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--ag-border);box-shadow:var(--ag-surface-shadow)}
.chat-suggestions button:hover,.prompt-chips button:hover,.welcome-actions button:hover,.composer .pill:hover,.composer .iconbtn:hover,.rail-nav button:hover,.msg-actions button:hover,.rail-top button:hover{background:var(--ag-hover);border-color:var(--ag-border);color:var(--ag-ink)}
.chat-suggestions button:hover .icon,.prompt-chips button:hover .icon,.prompt-chips button:hover .kicon,.rail-nav button:hover .icon,.rail-nav button:hover .kicon{color:inherit}
.composer .iconbtn.send{background:var(--ag-ink);box-shadow:var(--ag-surface-shadow)}
.composer .iconbtn.send:hover:not(:disabled){background:var(--ag-action-hover);box-shadow:var(--ag-surface-shadow)}
.chat-panel button:active:not(:disabled),.rail button:active:not(:disabled){transform:translateY(1px)}
.composer textarea:focus,.composer textarea:focus-visible{outline:none;box-shadow:none;border-color:transparent}
.composer:focus-within{border-color:transparent;box-shadow:none}

/* ---------- scenes: generated glass illustrations that give each step a place ---------- */
.scene{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:260px;padding:16px;border-radius:20px;background:radial-gradient(70% 60% at 50% 45%,rgba(255,255,255,.75),rgba(255,255,255,.25)),linear-gradient(180deg,rgba(255,255,255,.35),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.7);overflow:hidden}
.scene::before{content:'';position:absolute;width:60%;aspect-ratio:1;border-radius:50%;background:color-mix(in srgb,var(--primary) 22%,transparent);filter:blur(48px);top:15%;opacity:.7}
.scene img{position:relative;width:min(100%,360px);height:auto;filter:drop-shadow(0 20px 30px rgba(13,13,13,.12))}
.scene-text{position:relative;text-align:center;margin-top:-8px}
.scene-text b{display:block;font-size:12px;font-weight:600;color:var(--ag-ink3)}
.scene-text p{margin:2px 0 0;font-size:16px;font-weight:600;color:var(--ag-ink);letter-spacing:-.01em}
.co-scene{grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr)}
.co-grid>div>.scene{margin-top:12px;min-height:200px}
.co-grid>div>.scene img{width:min(100%,280px)}
.canvas .shipping-option{grid-template-columns:auto auto minmax(0,1fr) auto}
.opt-ico{width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.9);color:var(--ag-ink2);flex:none}
.opt-ico .icon{width:20px;height:20px}
.canvas .shipping-option:has(input:checked) .opt-ico{background:color-mix(in srgb,var(--primary) 14%,#fff);color:color-mix(in srgb,var(--primary) 70%,#0d0d0d)}
.canvas .shipping-option input{position:absolute;opacity:0;pointer-events:none}
.canvas .shipping-option{position:relative;grid-template-columns:auto minmax(0,1fr) auto}
.canvas .shipping-option::after{content:'';width:18px;height:18px;border-radius:50%;border:2px solid rgba(13,13,13,.18);order:9;transition:all .2s}
.canvas .shipping-option:has(input:checked)::after{border-width:6px;border-color:var(--primary)}
.cta-row.center{justify-content:center}
.order-scene{width:min(60%,300px);height:auto;margin:-24px 0 -18px;filter:drop-shadow(0 20px 30px rgba(13,13,13,.12))}
.order-hero{padding-top:0}
@media(max-width:1000px){.co-scene{grid-template-columns:1fr}.co-scene .scene{min-height:180px}}

.canvas .shipping-option{grid-template-columns:auto minmax(0,1fr) auto auto}
.scene::before{opacity:.4}
.pay-demo{padding-top:26px}

/* ---------- payment: method tiles, panel, side column ---------- */
.pay-grid{grid-template-columns:minmax(0,1fr) 320px}
.pay-side{display:flex;flex-direction:column;gap:12px}
.pay-side .summary-sheet{position:static}
.pay-side .scene{min-height:0;padding:14px 16px 18px;flex-direction:row;gap:12px;text-align:left;justify-content:flex-start}
.pay-side .scene img{width:96px;flex:none;filter:drop-shadow(0 10px 16px rgba(13,13,13,.12))}
.pay-side .scene::before{width:40%;top:0;left:0}
.pay-side .scene-text{margin:0;text-align:left}
.pay-side .scene-text p{font-size:13px;font-weight:500;color:var(--ag-ink2);line-height:1.45}
.summary-sheet .row.line span:first-child{display:flex;align-items:center;gap:8px}
.summary-sheet .row.line img{width:32px;height:32px;object-fit:contain;background:var(--ag-bg);border-radius:8px;padding:2px;flex:none}
.pay-title{margin:0 0 12px;font-size:13px;font-weight:600;color:var(--ag-ink3)}
.pay-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.canvas .pay-tile{height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.9);color:var(--ag-ink2);font-size:12px;font-weight:600;padding:0}
.canvas .pay-tile .icon{width:22px;height:22px}
.canvas .pay-tile:hover{background:color-mix(in srgb,var(--primary) 10%,#fff)}
.canvas .pay-tile.is-on{background:#fff;border-color:var(--ag-ink);color:var(--ag-ink);box-shadow:0 6px 18px rgba(13,13,13,.08)}
.pay-panel{display:flex;flex-direction:column;gap:12px}
.card-mock{position:relative;aspect-ratio:1.586;max-width:340px;border-radius:16px;padding:18px 20px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 80%,#000),color-mix(in srgb,var(--primary) 55%,#fff));box-shadow:0 18px 36px color-mix(in srgb,var(--primary) 30%,transparent);overflow:hidden}
.card-mock::after{content:'';position:absolute;inset:auto -30% -50% auto;width:70%;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.18);filter:blur(20px)}
.cm-chip{width:34px;height:26px;border-radius:6px;background:linear-gradient(135deg,#f6e27a,#d6a93a);margin-bottom:auto}
.cm-num{font-size:17px;font-weight:600;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.cm-row{display:flex;justify-content:space-between;font-size:12px;font-weight:600;opacity:.9;text-transform:uppercase}
.pay-panel .field-grid{margin:0;max-width:340px}
.pay-panel .field input[readonly]{color:var(--ag-ink3)}
.wallet-box{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.wallet-box small{font-size:12px;color:var(--ag-ink3)}
.canvas .wallet{height:48px;min-width:240px;padding:0 22px;border-radius:9999px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:17px;font-weight:600;letter-spacing:-.01em}
.canvas .wallet .icon{width:22px;height:22px}
.canvas .wallet.apple{background:#000;color:#fff;border:0}
.canvas .wallet.apple:hover{background:#222}
.canvas .wallet.google{background:#fff;color:#3c4043;border:1px solid #dadce0}
.canvas .wallet.google:hover{background:#f8f9fa}
.demo-chip{display:inline-flex;margin-top:14px;padding:5px 10px;border-radius:20px;background:var(--ag-elev);font-size:11px;font-weight:600;color:var(--ag-ink3)}
@media(max-width:1000px){.pay-grid{grid-template-columns:1fr}}

.co-grid .pay-side .scene img{width:88px;max-width:88px}
.co-grid .pay-side .scene{align-items:center}
.co-grid .pay-side .scene-text{flex:1;min-width:0}
.canvas .wallet{width:100%;max-width:340px}
.co-grid .pay-side .scene{min-height:0;padding:14px 16px}
.co-grid .pay-side .scene img{width:96px;max-width:96px;height:96px;object-fit:cover;object-position:center;transform:scale(1.7);margin:0 8px}
/* payment sheet: everything on one centered axis */
.pay-sheet{display:flex;flex-direction:column;align-items:center}
.pay-sheet .pay-title{align-self:flex-start}
.pay-sheet .pay-tiles{width:100%;max-width:520px}
.pay-panel{width:100%;align-items:center}
.card-mock,.pay-panel .field-grid,.pay-panel .pill-dark.wide,.canvas .wallet,.pay-panel .stripe-box{width:100%;max-width:360px}
.wallet-box{width:100%;align-items:center}
.pay-sheet .demo-chip{align-self:center}
/* payment: right column stretches to the pay sheet; the trust scene fills the rest */
.pay-grid,.co-grid{align-items:stretch}
.co-grid .pay-side{display:flex;flex-direction:column;gap:12px}
.co-grid .pay-side .scene{flex:1;min-height:220px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:20px 18px;text-align:center}
.co-grid .pay-side .scene::before{width:70%;top:10%;left:15%}
.co-grid .pay-side .scene img{width:min(100%,220px);max-width:220px;height:auto;object-fit:contain;transform:none;margin:0}
.co-grid .pay-side .scene-text{text-align:center;margin-top:-6px}
.co-grid .pay-side .scene-text p{font-size:13px;color:var(--ag-ink2);max-width:26ch;margin:0 auto}

/* wallet state: the panel floats in the middle of the sheet instead of leaving a hole */
.pay-sheet .pay-panel{margin:auto 0}
.pay-sheet .demo-chip{margin-top:auto;padding-top:14px}
/* checkout form is a grid itself: summary + scene stack in the right column */
.co-grid .cart-lines{align-self:start}

/* canvas width follows content density: dense views (catalog, compare, product) take the room,
   light views (cart, forms, payment, order) give it back to the conversation */
.workspace.has-canvas.canvas-dense{grid-template-columns:64px minmax(300px,.65fr) minmax(0,2.35fr)}
.workspace.has-canvas.canvas-light{grid-template-columns:64px minmax(340px,1fr) minmax(0,1.45fr)}
@media(max-width:1250px){.workspace.has-canvas.canvas-light{grid-template-columns:64px minmax(300px,.9fr) minmax(0,1.5fr)}}
@media(max-width:1000px){.workspace.has-canvas.canvas-dense,.workspace.has-canvas.canvas-light{grid-template-columns:64px minmax(260px,.8fr) minmax(0,1.6fr)}}

/* sheets keep their natural height; scenes fill the side column instead */
.pay-grid,.co-grid,.co-3{align-items:start}
.co-3>.form-sheet{grid-row:auto}
.co-grid .pay-side .scene,.co-3>.scene{min-height:300px;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;padding:20px 18px}
.co-3>.scene img{width:min(100%,220px)}
.co-3>.scene .scene-text{text-align:center;margin-top:-6px}
.co-3>.scene .scene-text p,.co-grid .pay-side .scene-text p{font-size:13px;font-weight:500;color:var(--ag-ink2);max-width:26ch;margin:0 auto}

/* ---------- hero header: the page opens with its illustration ---------- */
.canvas .canvas-hero{align-items:center;gap:18px;margin:-6px 0 20px;padding:10px 100px 10px 0;min-height:132px}
.canvas .canvas-hero .hero-img{width:150px;height:120px;object-fit:contain;flex:none;margin:-14px 0 -14px -8px;filter:drop-shadow(0 16px 24px rgba(13,13,13,.14))}
.canvas .canvas-hero>div{flex:1;min-width:0}
.canvas .canvas-hero h2{font-size:26px}
.canvas .canvas-hero p{font-size:13px;max-width:60ch}
.canvas .canvas-hero p b{color:var(--ag-ink);font-weight:600}
.canvas .canvas-hero>button{align-self:flex-start;margin-top:8px}
.co-scene{grid-template-columns:minmax(0,1fr)}
.co-scene .form-sheet{max-width:640px}
.delivery-wrap .option-list{max-width:640px}
.empty-note{text-align:center;padding:24px 0 6px}
.empty-note b{display:block;font-size:18px;font-weight:600}
.empty-note p{margin:6px 0 0;font-size:14px;color:var(--ag-ink2)}
@media(max-width:700px){.canvas .canvas-hero{padding-right:0;flex-wrap:wrap}.canvas .canvas-hero .hero-img{width:110px;height:90px}}
.canvas .canvas-hero .hero-img{width:120px;height:100px;transform:scale(2.1);transform-origin:center;margin:0 48px 0 36px}
.canvas .canvas-hero{min-height:140px;margin-bottom:24px}
.empty-note{padding-top:12vh}
/* ---------- toolbar: one axis for the page action and the window controls ---------- */
.canvas .canvas-header>button,.canvas .canvas-hero>button{position:absolute;top:24px;right:112px;margin:0;height:36px}
.canvas .canvas-header{padding-right:260px}
.canvas .canvas-hero{padding-right:260px}
/* ---------- expand = focus mode: the canvas takes the whole stage, chat folds away ---------- */
.workspace.full.has-canvas{grid-template-columns:64px 0 minmax(0,1fr)}
.workspace.full.has-canvas .chat-panel{opacity:0;pointer-events:none;transition:opacity .25s}
.workspace.has-canvas .chat-panel{transition:opacity .25s .1s}
.workspace.full .workspace-controls [data-act="expand"]{background:color-mix(in srgb,var(--primary) 14%,#fff);color:color-mix(in srgb,var(--primary) 70%,#0d0d0d)}
@media(max-width:700px){.canvas .canvas-header>button,.canvas .canvas-hero>button{position:static;height:auto}.canvas .canvas-header,.canvas .canvas-hero{padding-right:0}}
/* toolbar, measured: controls sit at canvas-top+7px / canvas-right+22px */
.canvas .canvas-header,.canvas .canvas-hero{position:static}
.canvas .canvas-header>button,.canvas .canvas-hero>button{top:7px;right:100px}
.workspace.has-canvas .canvas-header,.workspace.has-canvas .canvas-hero{padding-right:250px}
/* compare: equal product columns, everything centred on the column axis, bigger photos */
.cmp{table-layout:fixed}
.cmp thead th:first-child,.cmp tbody td:first-child{width:130px}
.cmp thead th:not(:first-child){text-align:center;padding-top:18px}
.cmp thead th:not(:first-child) img{width:120px;height:120px;margin:0 auto 10px;filter:drop-shadow(0 14px 18px rgba(13,13,13,.14))}
.cmp thead th:not(:first-child) b{margin:0 auto;max-width:22ch}
.cmp tbody td:not(:first-child){text-align:center}
.cmp td.best::after{margin-left:6px}
.cmp tr.cta td:not(:first-child){text-align:center}
.cmp-sheet{max-width:1100px;margin:0 auto}
.why-sheet{max-width:1100px;margin-left:auto;margin-right:auto}

/* ---------- compare v2: product columns as glass cards over one shared spec ladder ---------- */
.cmp-grid{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:14px;max-width:1080px;margin:0 auto}
.cmp-card{display:flex;flex-direction:column;gap:10px;padding:16px 16px 14px;border-radius:20px;background:rgba(255,255,255,.62);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.85);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 10px 30px rgba(13,13,13,.05);animation:ag-rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*90ms)}
.cmp-card.hl{background:rgba(255,255,255,.8);border-color:rgba(13,13,13,.12);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 16px 40px rgba(13,13,13,.09)}
.cmp-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
.hero-tag.ghost{background:var(--ag-elev);color:var(--ag-ink3)}
.cmp-photo{aspect-ratio:1;border-radius:16px;background:radial-gradient(90% 70% at 50% 100%,rgba(13,13,13,.06),transparent 60%),var(--ag-bg);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.cmp-photo img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain;filter:drop-shadow(0 16px 22px rgba(13,13,13,.14))}
.cmp-name{font-size:15px;font-weight:600;line-height:1.25;min-height:2.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cmp-price{font-size:24px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}
.cmp-price.best{color:color-mix(in srgb,var(--primary) 75%,#0d0d0d)}
.cmp-delta{font-size:12px;color:var(--ag-ink3);font-weight:500;min-height:1.4em;font-variant-numeric:tabular-nums}
.cmp-specs{margin:4px 0 0;display:flex;flex-direction:column}
.cmp-specs>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;margin:0 -10px;border-radius:10px;border-top:1px solid rgba(13,13,13,.06)}
.cmp-specs>div:first-child{border-top:0}
.cmp-specs dt{font-size:12px;color:var(--ag-ink3);font-weight:500}
.cmp-specs dd{margin:0;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.cmp-specs>div.best{background:color-mix(in srgb,var(--primary) 9%,transparent)}
.cmp-specs>div.best dd{color:color-mix(in srgb,var(--primary) 75%,#0d0d0d)}
.cmp-actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:6px}
.cmp-actions>button:first-child{flex:1;justify-content:center}
.cmp-actions .pc-add{width:40px;height:40px;flex:0 0 40px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(13,13,13,.16)}
@media(max-width:1000px){.cmp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cmp-grid{grid-template-columns:1fr}}

/* ---------- rail toggle: the sidebar can be folded by hand, in any layout ---------- */
.workspace.rail-mini:not(.has-canvas){grid-template-columns:64px minmax(0,1fr)}
.workspace.has-canvas:not(.rail-mini){grid-template-columns:285px minmax(300px,.6fr) minmax(0,1.6fr)}
.workspace.has-canvas.canvas-dense:not(.rail-mini){grid-template-columns:285px minmax(280px,.55fr) minmax(0,2fr)}
.workspace.full.has-canvas{grid-template-columns:64px 0 minmax(0,1fr)}
.rail-top .rail-toggle{margin-left:auto}
.rail-mini .rail-top{flex-direction:column;height:auto;gap:6px;padding-top:2px}
.rail-mini .rail-top>button.rail-toggle{display:flex;margin:0;width:36px;height:36px}
.rail-toggle .kicon{width:20px;height:20px}
.workspace:not(.rail-mini) .rail-nav button{justify-content:flex-start;padding:8px;font-size:14px;gap:8px}
.workspace:not(.rail-mini) .rail-top{flex-direction:row;height:52px}

/* ---------- rail v2: narrower, left-aligned, grouped ---------- */
.workspace:not(.rail-mini):not(.has-canvas){grid-template-columns:232px minmax(0,1fr)}
.workspace.has-canvas:not(.rail-mini){grid-template-columns:232px minmax(300px,.6fr) minmax(0,1.6fr)}
.workspace.has-canvas.canvas-dense:not(.rail-mini){grid-template-columns:232px minmax(280px,.55fr) minmax(0,2fr)}
.rail{padding:10px 10px 12px}
.rail-top{height:44px;padding:0 4px}
.rail-brand{font-size:15px}
.rail-nav{gap:2px}
.rail-nav button{padding:9px 10px;border-radius:var(--ag-action-radius);font-size:14px;font-weight:500;justify-content:flex-start;text-align:left}
.rail-nav button .icon,.rail-nav button .kicon{width:18px;height:18px;flex:none;color:var(--ag-ink2)}
.rail-nav button.is-current{background:var(--ag-ink);color:var(--ag-on-action);box-shadow:var(--ag-surface-shadow)}
.rail-nav button.is-current .icon,.rail-nav button.is-current .kicon{color:var(--ag-on-action)}
.rail-nav button.is-current .kicon{filter:brightness(0) invert(1)}
.rail-nav button.is-current .rail-count{background:var(--ag-on-action);color:var(--ag-ink)}
.rail-nav button.is-current .profile-label strong,.rail-nav button.is-current .profile-label small{color:var(--ag-on-action)}
.rail-nav button.is-current .profile-avatar{background:var(--ag-action-hover)}
.rail-section{padding:14px 10px 4px}
.rail-recent button{padding:8px 10px;border-radius:var(--ag-action-radius);font-size:13px}
.rail-recent button.is-current{background:var(--ag-ink);color:var(--ag-on-action)}
.rail-foot{padding:8px 0 0;gap:6px}
.rail-foot small{padding:4px 10px}
.rail-mini .rail-foot{display:flex;padding:0}
.rail-mini .rail-foot small{display:none}
.rail-mini .rail-foot .rail-nav button{justify-content:center;padding:10px 0;font-size:0;gap:0}
.rail-mini .rail-foot .rail-nav button .icon{width:20px;height:20px;margin:0}
/* expand = the canvas alone: rail and chat both fold away */
.workspace.full.has-canvas{grid-template-columns:0 0 minmax(0,1fr)}
.workspace.full.has-canvas .rail{opacity:0;pointer-events:none;overflow:hidden;padding:0;transition:opacity .2s}
.workspace.full.has-canvas .canvas{border-radius:24px}

.order-list{display:flex;flex-direction:column;gap:10px;max-width:640px}
.canvas .order-card{padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.canvas .order-card h3{margin:0;font-size:15px;font-weight:600}
.canvas .order-card small{color:var(--ag-ink3)}
.canvas .preference-form{max-width:640px}
.workspace.full .canvas>*{max-width:1120px;margin-left:auto;margin-right:auto}
.workspace.full .canvas>.canvas-header,.workspace.full .canvas>.canvas-hero{max-width:none}
.empty-note{padding-top:6vh}
/* rail open/close: columns glide, labels fade in after the width settles */
.workspace{transition:grid-template-columns .5s cubic-bezier(.22,.9,.3,1)}
.rail{transition:padding .5s cubic-bezier(.22,.9,.3,1)}
.rail-nav button,.rail-recent button,.rail-top,.rail-brand{transition:padding .5s cubic-bezier(.22,.9,.3,1),background-color .25s,color .25s}
.rail-brand span,.rail-section,.rail-recent,.rail-foot small{transition:opacity .25s .2s;opacity:1}
.rail-mini .rail-brand span,.rail-mini .rail-section,.rail-mini .rail-recent,.rail-mini .rail-foot small{display:block;opacity:0;pointer-events:none;height:0;overflow:hidden;padding:0;margin:0;transition:opacity .12s}
.rail-mini .rail-recent{height:0}
.rail-nav button{white-space:nowrap;overflow:hidden}
@media(prefers-reduced-motion:reduce){.workspace,.rail,.rail-nav button,.rail-brand span{transition:none}}

/* ---------- needs discovery: the catalog narrows in front of the shopper ---------- */
.needs-stage{max-width:640px;display:flex;flex-direction:column;gap:18px;padding:8px 0}
.needs-count{display:flex;align-items:baseline;gap:14px}
.needs-num{font-size:88px;font-weight:600;line-height:.9;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--ag-ink);animation:ag-rise .45s cubic-bezier(.2,.8,.2,1) both}
.needs-count span{font-size:15px;color:var(--ag-ink2);font-weight:500;max-width:22ch}
.needs-bar{height:6px;border-radius:6px;background:rgba(13,13,13,.07);overflow:hidden}
.needs-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,color-mix(in srgb,var(--primary) 70%,#fff),var(--primary));transition:width .6s cubic-bezier(.2,.8,.2,1)}
.needs-answers{display:flex;flex-wrap:wrap;gap:6px}
.needs-answers .chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.9);font-size:13px;font-weight:600;color:var(--ag-ink2)}
.needs-answers .chip .icon{width:14px;height:14px;color:var(--primary)}
.needs-q{margin:4px 0 0;font-size:20px;font-weight:600;letter-spacing:-.01em}
.canvas .canvas-foot button.link{display:inline;font-size:12px}

/* ---------- needs v2: the shortlist narrows in front of the shopper ---------- */
.needs-steps{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.needs-steps li{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.5);border:1px solid rgba(255,255,255,.85);color:var(--ag-ink3);min-width:0}
.needs-steps li i{width:22px;height:22px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;font-style:normal;background:var(--ag-elev);color:var(--ag-ink3)}
.needs-steps li i .icon{width:12px;height:12px}
.needs-steps li small{display:block;font-size:12px;font-weight:500;line-height:1.3}
.needs-steps li b{display:block;font-size:13px;font-weight:600;color:var(--ag-ink);margin-top:2px}
.needs-steps li.now{background:rgba(255,255,255,.85);border-color:var(--ag-ink);color:var(--ag-ink);box-shadow:0 8px 22px rgba(13,13,13,.07)}
.needs-steps li.now i{background:var(--ag-ink);color:#fff}
.needs-steps li.done{color:var(--ag-ink2)}
.needs-steps li.done i{background:color-mix(in srgb,var(--primary) 16%,#fff);color:var(--primary)}
.needs-head{display:flex;align-items:baseline;gap:12px;margin:0 0 10px}
.needs-head b{font-size:18px;font-weight:600;letter-spacing:-.01em}
.needs-head span{font-size:13px;color:var(--ag-ink3)}
.needs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.needs-card{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:16px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.85);box-shadow:0 8px 24px rgba(13,13,13,.05);transition:opacity .45s,filter .45s,transform .45s;animation:ag-rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*60ms)}
.needs-card .nc-photo{aspect-ratio:1;border-radius:12px;background:var(--ag-bg);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.needs-card .nc-photo img{position:absolute;inset:12%;width:76%;height:76%;object-fit:contain}
.needs-card b{font-size:13px;font-weight:600;line-height:1.25;min-height:2.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nc-price{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.needs-card .specs span{font-size:11px;padding:3px 7px}
.nc-in,.nc-out{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;margin-top:auto;padding-top:4px}
.nc-in{color:#1a8f4e}.nc-in .icon,.nc-out .icon{width:12px;height:12px}
.nc-out{color:var(--ag-ink3)}
.needs-card.is-out{opacity:.5;filter:grayscale(1);transform:scale(.97)}
.needs-card.is-out .nc-photo{background:var(--ag-elev)}
@media(max-width:700px){.needs-steps{grid-template-columns:1fr}}
.needs-card.is-out{animation:none;opacity:.45;filter:grayscale(1) contrast(.9);transform:scale(.96)}
.needs-card.is-out .nc-out{color:#c0392b}

/* S-01/J-004: prepared answers remain beside the question in the conversation. */
.chat-suggestions.is-question>button,.chat-suggestions.is-question .clarify-chips>button{min-height:44px;font-size:16px;line-height:1.4;padding:11px 18px;white-space:normal;overflow-wrap:anywhere;border-radius:999px}
.chat-suggestions.is-question .clarify-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.chat-suggestions.is-question .needs-answer-skip{background:transparent;color:var(--ag-ink2);border-color:transparent}
.chat-suggestions.is-question .needs-answer-skip:hover{border-color:var(--ag-border,rgba(13,13,13,.12));background:var(--ag-elev)}
.chat-suggestions.is-question button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.chat-suggestions.is-question .question-answer-hint{width:100%;margin:12px 0 0;font-size:14px;line-height:1.5;color:var(--ag-ink2)}
@media(max-width:700px){.chat-suggestions.is-question>button,.chat-suggestions.is-question .clarify-chips>button{max-width:100%}}

/* needs discovery lives in the chat: a quiet progress line above the answer chips */
.needs-progress{width:100%;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--ag-ink3);font-weight:500;margin:0 0 6px}
.needs-progress i{display:inline-flex;gap:4px}
.needs-progress b{width:18px;height:4px;border-radius:4px;background:rgba(13,13,13,.1)}
.needs-progress b.done{background:var(--primary)}
.needs-progress b.now{background:color-mix(in srgb,var(--primary) 45%,#fff)}
.chat-suggestions{flex-wrap:wrap}

.verdict{display:flex;align-items:flex-start;gap:10px;max-width:1080px;margin:0 auto 14px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--primary) 8%,#fff);border:1px solid color-mix(in srgb,var(--primary) 22%,#fff)}
.verdict .icon{width:18px;height:18px;flex:none;color:var(--primary);margin-top:2px}
.verdict p{margin:0;font-size:15px;line-height:1.45;font-weight:500;color:var(--ag-ink)}

/* ---------- chat v2: who is talking is obvious ---------- */
.message.is-new{animation:ag-rise .35s cubic-bezier(.2,.8,.2,1) both}
.thinking{display:inline-flex;align-items:center;gap:10px;color:var(--ag-ink2)}
.thinking-dots{display:inline-flex;gap:4px}.thinking-dots b{width:6px;height:6px;border-radius:50%;background:var(--primary);opacity:.3;animation:think-dot 1.2s ease-in-out infinite}.thinking-dots b:nth-child(2){animation-delay:.15s}.thinking-dots b:nth-child(3){animation-delay:.3s}
@keyframes think-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.thinking-text{background:linear-gradient(90deg,var(--ag-ink2) 0%,var(--ag-ink2) 40%,color-mix(in srgb,var(--primary) 70%,#fff) 50%,var(--ag-ink2) 60%,var(--ag-ink2) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:think-shine 2.2s linear infinite}
.thinking-text.swap{animation:think-shine 2.2s linear infinite,think-in .3s ease-out}
@keyframes think-shine{from{background-position:100% 0}to{background-position:-150% 0}}@keyframes think-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.thinking-dots b,.thinking-text{animation:none!important;color:var(--ag-ink2)}}
.message.user{flex-direction:column;align-items:flex-end;gap:4px}
.msg-me{font-size:11px;font-weight:600;color:var(--ag-ink3);padding-right:14px}
.message.user .bubble{background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 16%,#fff),color-mix(in srgb,var(--primary) 8%,#fff));border:1px solid color-mix(in srgb,var(--primary) 22%,#fff);color:var(--ag-ink);border-radius:20px 20px 6px 20px;padding:12px 16px;box-shadow:0 6px 18px color-mix(in srgb,var(--primary) 10%,transparent);text-align:left}
.message.assistant .msg-content{padding:12px 16px;border-radius:6px 20px 20px 20px;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.9);box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 6px 18px rgba(13,13,13,.04)}
.message.assistant .bubble{line-height:1.5}
.msg-head .app-icon{box-shadow:0 0 0 3px rgba(255,255,255,.8),0 4px 12px rgba(13,13,13,.1)}
.chat-suggestions{padding-left:35px}
/* ---------- voice stage: the orb takes over the chat ---------- */
.chat-messages.is-voice{justify-content:center;align-items:center;gap:22px}
.voice-stage{display:flex;flex-direction:column;align-items:center;gap:22px;width:100%;padding:20px 0}
.orb-wrap{position:relative;width:310px;height:310px;display:flex;align-items:center;justify-content:center}
.orb{width:280px;height:280px;background:transparent;border-radius:50%;position:relative;z-index:2;box-shadow:0 22px 38px -14px rgba(92,81,87,.16);transition:transform .5s ease}
.orb-art{display:block;width:100%;height:100%;overflow:visible}
.orb-fluid{transform-origin:120px 120px;animation:orb-fluid-flow 12s ease-in-out infinite alternate}
.is-thinking .orb-fluid{animation-duration:7s}
.is-speaking .orb-fluid{animation-duration:5s}
.is-paused .orb-fluid{animation-play-state:paused}
@keyframes orb-fluid-flow{0%{transform:rotate(-12deg) translate(-3px,2px) scale(1.02)}50%{transform:rotate(7deg) translate(3px,-4px) scale(1.06)}100%{transform:rotate(20deg) translate(-2px,3px) scale(1.02)}}
.glow-orb{position:absolute;left:50%;top:50%;width:240px;height:240px;margin:-120px 0 0 -120px;filter:blur(30px);opacity:.55;z-index:0}
.orb-ring{position:absolute;inset:0;border-radius:50%;border:2px solid color-mix(in srgb,var(--primary) 45%,#fff);opacity:0;z-index:1}
.voice-label{font-size:15px;font-weight:600;color:var(--ag-ink2)}
.voice-transcript{max-width:520px;text-align:center;display:flex;flex-direction:column;gap:6px}
.voice-transcript p{margin:0;font-size:14px;line-height:1.45;color:var(--ag-ink3)}
.voice-transcript p.assistant{color:var(--ag-ink);font-size:16px;font-weight:500}
/* states */
.is-connecting .orb{animation:orb-breathe 2.4s ease-in-out infinite}
.is-thinking .orb{animation:orb-breathe 1.2s ease-in-out infinite}
.is-thinking .orb-ring{animation:orb-ping 1.2s ease-out infinite}
.is-listening .orb-ring{animation:orb-ping 1.8s ease-out infinite}
.is-listening .orb-ring.r2{animation-delay:.9s}
.is-listening .orb{animation:orb-breathe 3s ease-in-out infinite}
.is-speaking .orb{animation:orb-talk .55s ease-in-out infinite}
.is-speaking .glow-orb{animation:orb-glow .55s ease-in-out infinite;opacity:.9}
.is-speaking .orb-ring{animation:orb-ping 1.1s ease-out infinite}
.is-speaking .orb-ring.r2{animation-delay:.55s}
.is-paused .orb{filter:grayscale(.6) drop-shadow(0 20px 30px rgba(13,13,13,.1));transform:scale(.92)}
.is-paused .glow-orb{opacity:.2}
@keyframes orb-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@keyframes orb-talk{0%,100%{transform:scale(1) rotate(0)}30%{transform:scale(1.09) rotate(-2deg)}60%{transform:scale(1.03) rotate(2deg)}}
@keyframes orb-glow{0%,100%{transform:scale(1);opacity:.6}50%{transform:scale(1.25);opacity:1}}
@keyframes orb-ping{0%{transform:scale(.8);opacity:.7}100%{transform:scale(1.35);opacity:0}}
@media(prefers-reduced-motion:reduce){.orb,.orb-ring,.glow-orb,.message.is-new{animation:none!important}}
.chat-messages.is-voice .chat-suggestions{display:none}

.handoff-ctx{padding:14px 16px;margin-bottom:12px;max-width:640px}
.handoff-ctx span{display:block;font-size:11px;font-weight:600;color:var(--ag-ink3);margin-bottom:4px}
.handoff-ctx p{margin:0;font-size:14px;font-weight:500}

/* orb follows the real audio level (--amp 0..1 from the analyser) on top of the state animation */
.voice-stage{--amp:0}
.is-speaking .orb{animation:none;transform:scale(calc(1 + var(--amp) * .18))}
.is-speaking .glow-orb{animation:none;transform:scale(calc(1 + var(--amp) * .6));opacity:calc(.5 + var(--amp) * .5)}
.is-listening .orb{animation:none;transform:scale(calc(1 + var(--amp) * .08))}
.voice-transcript p.live-assistant{min-height:1.4em}

.ship-progress{padding:12px 14px;margin-top:4px;display:flex;flex-direction:column;gap:8px;font-size:13px}
.ship-progress b{font-weight:600;font-size:13px}
.ship-progress .icon{width:16px;height:16px;color:var(--ag-ink3)}
.suggest-list{max-width:none}

.policy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-bottom:16px}
.policy-card{padding:18px;display:flex;flex-direction:column;gap:10px}
.policy-card b{font-size:16px;font-weight:600}
.policy-card p{margin:0;font-size:14px;line-height:1.5;color:var(--ag-ink2)}
.policy-card small{font-size:11px;color:var(--ag-ph);margin-top:auto}
/* shipping option radio: invisible but a real click target over the whole card (Playwright/AT-friendly) */
.canvas .shipping-option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;pointer-events:auto;cursor:pointer;z-index:1}
/* decorative glows live in a clipped layer so they never widen the panel's scroll box */
.glow-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:inherit;display:block}
.glow-layer .glow{z-index:0}
.canvas .top-note{margin:-8px 0 14px}
/* .product-card is only a test/analytics alias on the new cards — the old card layout must not leak in */
.canvas .hero-card.product-card{display:grid;grid-template-columns:minmax(240px,44%) minmax(0,1fr);flex-direction:unset;aspect-ratio:auto;padding:14px;gap:22px;max-width:none}
.canvas .match-row.product-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;flex-direction:unset;aspect-ratio:auto;padding:12px 14px 12px 12px;max-width:none}
.canvas .hero-card.product-card>*,.canvas .match-row.product-card>*{transform:none}
.hero-photo{max-height:380px;aspect-ratio:4/3}
.hero-photo img{max-height:86%}
@media(min-width:1600px){.canvas .hero-card{max-width:1120px}}
.canvas .hero-card.product-card .hero-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}
.canvas .hero-card.product-card .hero-actions button{width:auto;flex:0 0 auto}
.canvas .match-row.product-card>img{width:72px;height:72px;flex:none}
.canvas .match-row.product-card .match-side .row{display:flex;gap:6px}
.canvas .match-row.product-card .match-side button{width:auto}
.canvas .match-row.product-card .match-side .pc-add{width:34px;height:34px}
.canvas .match-row.product-card{gap:16px;align-items:center}
.canvas .match-row.product-card>img{object-fit:contain;padding:6px;background:var(--ag-bg);border-radius:12px;aspect-ratio:auto;box-sizing:border-box}
@media(max-width:700px){.canvas .hero-card.product-card{grid-template-columns:1fr}.canvas .match-row.product-card{grid-template-columns:56px minmax(0,1fr)}.canvas .match-row.product-card .match-side{grid-column:2;align-items:flex-start}}
@media(max-width:1250px){.canvas .hero-card.product-card{grid-template-columns:minmax(200px,40%) minmax(0,1fr)}}
@media(max-width:700px){.canvas .canvas-header,.canvas .canvas-hero{flex-wrap:wrap;gap:10px}.canvas .canvas-header>button,.canvas .canvas-hero>button{position:static;margin:0}}
.glow-canvas{max-width:100%}
@media(max-width:700px){.workspace.has-canvas .canvas-header,.workspace.has-canvas .canvas-hero{padding-right:0}}
/* phone rules last so they win over the desktop/tablet overrides above */
@media(max-width:700px){
.canvas .hero-card.product-card{grid-template-columns:1fr;gap:12px}
.canvas .hero-card.product-card .hero-info{padding:0;min-width:0}
.canvas .hero-card.product-card .hero-actions button{max-width:100%}
.canvas .hero-top{flex-wrap:wrap}
.workspace.has-canvas .canvas-header,.workspace.has-canvas .canvas-hero{padding-right:0;flex-wrap:wrap;gap:10px}
.workspace.has-canvas .canvas-header>div,.workspace.has-canvas .canvas-hero>div{flex:1 1 100%;min-width:0}
.workspace.has-canvas .canvas-header>button,.workspace.has-canvas .canvas-hero>button{position:static;margin:0;max-width:100%}
.canvas .match-row.product-card{grid-template-columns:56px minmax(0,1fr)}
.canvas .match-row.product-card .match-side{grid-column:2;align-items:flex-start}
}
/* light canvas views (forms, cart, order) never need the lion's share: on wide screens the chat gets half,
   and the sheets stay at a readable width instead of stretching into empty glass */
.workspace.has-canvas.canvas-light:not(.full){grid-template-columns:64px minmax(340px,1fr) minmax(0,1.25fr)}
.workspace.has-canvas.canvas-light:not(.full):not(.rail-mini){grid-template-columns:232px minmax(340px,1fr) minmax(0,1.25fr)}
@media(min-width:1600px){
.workspace.has-canvas.canvas-light:not(.full){grid-template-columns:64px minmax(480px,1fr) minmax(0,1fr)}
.workspace.has-canvas.canvas-light:not(.full):not(.rail-mini){grid-template-columns:232px minmax(480px,1fr) minmax(0,1fr)}
.canvas-light .canvas>*:not(.canvas-header):not(.canvas-hero):not(.canvas-foot){max-width:920px}
.canvas-light .canvas .co-grid,.canvas-light .canvas .pay-grid{max-width:960px}
}

/* narrow canvas: forms and confirmations take only the width they need; the conversation keeps the rest */
.workspace.has-canvas.canvas-narrow:not(.full){grid-template-columns:64px minmax(360px,1fr) minmax(0,720px)}
.workspace.has-canvas.canvas-narrow:not(.full):not(.rail-mini){grid-template-columns:232px minmax(360px,1fr) minmax(0,720px)}
.canvas-narrow .canvas>*{max-width:none}
.canvas-narrow .canvas .co-grid,.canvas-narrow .canvas .pay-grid{grid-template-columns:minmax(0,1fr)}
.canvas-narrow .canvas .pay-side{position:static}
.canvas-narrow .canvas .form-sheet,.canvas-narrow .canvas .option-list{max-width:none}
.canvas-narrow .canvas .canvas-hero .hero-img{width:100px;height:84px;transform:scale(1.8);margin:0 36px 0 24px}
@media(max-width:1250px){.workspace.has-canvas.canvas-narrow:not(.full){grid-template-columns:64px minmax(320px,1fr) minmax(0,560px)}}
@media(max-width:1000px){.workspace.has-canvas.canvas-narrow:not(.full){grid-template-columns:64px minmax(260px,.9fr) minmax(0,1.1fr)}}
.canvas-narrow .canvas .canvas-hero .hero-img{width:88px;height:74px;transform:scale(1.7);margin:0 22px 0 14px}
.canvas-narrow .canvas .canvas-hero h2{font-size:23px}

/* cart keeps lines-left / summary-right, in a column just wide enough for that: 880px */
.workspace.has-canvas.canvas-cart:not(.full){grid-template-columns:64px minmax(360px,1fr) minmax(0,880px)}
.workspace.has-canvas.canvas-cart:not(.full):not(.rail-mini){grid-template-columns:232px minmax(360px,1fr) minmax(0,880px)}
.canvas-cart .canvas .co-grid{grid-template-columns:minmax(0,1fr) 280px}
@media(max-width:1250px){.workspace.has-canvas.canvas-cart:not(.full){grid-template-columns:64px minmax(300px,.8fr) minmax(0,1.2fr)}}

/* recommendations / product: a compact 960px column; the hero carries the product page's facts */
.workspace.has-canvas.canvas-recs:not(.full){grid-template-columns:64px minmax(360px,1fr) minmax(0,960px)}
.workspace.has-canvas.canvas-recs:not(.full):not(.rail-mini){grid-template-columns:232px minmax(360px,1fr) minmax(0,960px)}
@media(max-width:1250px){.workspace.has-canvas.canvas-recs:not(.full){grid-template-columns:64px minmax(300px,.65fr) minmax(0,1.35fr)}}
.canvas-recs .canvas .hero-card.product-card{grid-template-columns:minmax(220px,38%) minmax(0,1fr);gap:20px}
.canvas-recs .canvas .hero-photo{max-height:320px}
.canvas-recs .canvas .hero-info h2{font-size:21px}
.canvas-recs .canvas .hero-price{font-size:24px}
.canvas-recs .canvas .hero-why{font-size:14px}
.canvas-recs .canvas .pd-desc{font-size:13px;margin:0}
.hero-specs{margin:2px 0 4px}
.hero-specs>div{padding:7px 0}
.hero-specs dt{font-size:12px}
.hero-specs dd{font-size:13px}
.hero-specs .pd-src{font-size:10px;padding:3px 7px}
.canvas-recs .canvas .hero-actions{padding-top:4px}
@media(max-width:700px){.canvas-recs .canvas .hero-card.product-card{grid-template-columns:1fr}}

/* ---------- compare v3: one compact table in the 960px column ---------- */
.cmp-sheet{padding:6px 8px 10px;overflow-x:auto;max-width:none}
.cmp-scroll-hint{display:none}
.cmp-sheet:focus-visible{outline:2px solid var(--ag-ink);outline-offset:2px}
.cmpt{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px}
.cmpt th,.cmpt td{padding:9px 12px;text-align:center;vertical-align:middle;border-bottom:1px solid rgba(13,13,13,.06)}
.cmpt thead th{vertical-align:top;padding-top:12px;border-bottom:1px solid rgba(13,13,13,.1)}
.cmpt th:first-child,.cmpt td:first-child{width:112px;text-align:left;color:var(--ag-ink3);font-weight:500;font-size:12px}
.cmpt-photo{width:100%;aspect-ratio:1;max-height:150px;border-radius:12px;background:var(--ag-bg);position:relative;overflow:hidden;margin-bottom:8px}
.cmpt-photo img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(13,13,13,.14))}
.cmpt thead th b{display:block;font-size:13px;font-weight:600;line-height:1.25;margin-top:6px;min-height:2.5em}
.cmpt thead th small{display:block;font-size:11px;color:var(--ag-ink3);font-weight:500;margin-top:2px;font-variant-numeric:tabular-nums}
.cmpt tbody td{font-weight:600;font-variant-numeric:tabular-nums}
.cmpt td.hl,.cmpt th.hl{background:rgba(13,13,13,.025)}
.cmpt thead th.hl{border-radius:14px 14px 0 0}
.cmpt td.best{color:color-mix(in srgb,var(--primary) 75%,#0d0d0d)}
.cmpt td.best::after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);margin-left:6px;vertical-align:middle}
.cmpt tr.cta td{border-bottom:0;padding-top:12px}
.cmpt tr.cta td.hl{border-radius:0 0 14px 14px}
.cmpt tr.cta .row{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.cmpt tr.cta .pc-add{width:34px;height:34px;flex:0 0 34px;padding:0;border-radius:50%;border:1px solid rgba(13,13,13,.16);display:inline-flex;align-items:center;justify-content:center}
.cmpt tr.cta .pill-dark{height:34px;padding:0 14px;font-size:13px}
.canvas-recs .canvas .verdict{max-width:none}
/* product page: same compact composition as the hero */
.canvas-recs .canvas .pd{grid-template-columns:minmax(220px,38%) minmax(0,1fr);gap:20px}
.canvas-recs .canvas .pd-stage{max-height:320px}
.canvas-recs .canvas .pd-info h2{font-size:21px}
.canvas-recs .canvas .pd-info .hero-price{font-size:24px}
.canvas-recs .canvas .pd-specs>div{padding:7px 0}
.canvas-recs .canvas .pd-specs dt{font-size:12px}
.canvas-recs .canvas .pd-specs dd{font-size:13px}
.canvas-recs .canvas .pd-src{font-size:10px;padding:3px 7px}
.canvas-recs .canvas .why-sheet{margin-top:12px;padding:12px 16px}
.canvas-recs .canvas .why-sheet p{font-size:14px}
.canvas-recs .canvas .section-title{margin:16px 0 8px}
@media(max-width:700px){.cmpt{font-size:12px}.cmpt th:first-child,.cmpt td:first-child{width:84px}.cmpt th,.cmpt td{padding:7px 6px}.cmpt tr.cta .pill-dark,.cmpt tr.cta .pill-ghost{padding:0 10px;font-size:12px}}
@media(max-width:700px){.canvas-recs .canvas .pd{grid-template-columns:1fr}.canvas-recs .canvas .pd-stage{max-height:260px}.canvas-recs .canvas .pd-specs>div{grid-template-columns:minmax(0,1fr) auto;gap:8px}.canvas-recs .canvas .pd-src{grid-column:1/-1;justify-self:start}}

.chat-suggestions .clarify-chips{display:contents}

/* phone: the canvas is its own scroll box, like the chat tab — content below the fold must be reachable */
@media(max-width:700px){.workspace{height:100%;overflow:hidden}.canvas{position:absolute;inset:90px 0 0;overflow:auto;max-height:none;height:auto;padding-bottom:32px}.workspace[data-mobile=canvas] .chat-panel{display:none}}
.mobile-tabs [data-act=cart]{display:inline-flex;align-items:center;gap:4px}.mobile-tabs .rail-count{position:static;margin:0}
/* phone tab bar: four items must fit 320px — tabs shrink, icons stay */
@media(max-width:700px){.mobile-tabs{display:flex;align-items:center;gap:2px;overflow:hidden;min-width:0}.mobile-tabs button{flex:1 1 0;min-width:0;padding:8px 6px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:center}.mobile-tabs [data-act=cart],.mobile-tabs .voice-mobile{flex:0 0 auto;width:40px;padding:8px 0}.mobile-tabs .rail-count{min-width:14px;height:14px;font-size:10px;padding:0 4px}}
.notify-form{display:flex;gap:6px;align-items:center}.notify-form input{height:40px;border:1px solid rgba(13,13,13,.14);border-radius:9999px;padding:0 14px;font:inherit;min-width:200px}
.form-error{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fff3f0;color:#8a2b1a;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.form-error .chip-retry{height:32px;padding:0 12px;border-radius:9999px;border:1px solid rgba(138,43,26,.3);background:#fff;color:#8a2b1a;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.chat-suggestions .chip-retry{background:color-mix(in srgb,var(--primary) 14%,#fff);border-color:color-mix(in srgb,var(--primary) 45%,#fff)}

/* ARC-05: the agent's reply while it streams. */
.bubble.is-live::after{content:'';display:inline-block;width:.45em;height:1em;margin-left:.2em;vertical-align:-.15em;background:currentColor;opacity:.45;animation:plugix-caret 1s steps(2,start) infinite}
@keyframes plugix-caret{to{visibility:hidden}}
@media (prefers-reduced-motion:reduce){.bubble.is-live::after{animation:none}}
.solution-role{display:grid;gap:6px;padding:8px 0;border-bottom:1px solid var(--ag-border)}.solution-role.missing{border-left:3px solid var(--danger,#c0392b);padding-left:8px}
/* the cart and checkout in a narrow canvas (the assistant's side panel): one column, so product names get the width */
.canvas{container-type:inline-size}
@container (max-width:760px){.co-grid,.canvas-cart .canvas .co-grid{grid-template-columns:minmax(0,1fr)}.summary-sheet{position:static}.canvas-hero .hero-img{width:80px;height:68px;transform:scale(1.5);margin:0 18px 0 10px}.workspace.has-canvas .canvas .canvas-hero{padding:46px 0 0}/* a narrow panel: the buttons sit above the title, the title gets the width */}

/* the variant on screen reads as chosen */
.pd-options button.on{background:var(--ag-ink);color:#fff;border-color:var(--ag-ink)}
.pd-options button.muted{text-decoration:line-through;opacity:.55}

/* NP-01: Nova Poshta picker (mode tiles, branch/locker chips, city and branch comboboxes) and the COD choice */
.np-modes{grid-template-columns:repeat(2,1fr);max-width:520px}
.np-sheet{display:flex;flex-direction:column;gap:12px}
.np-types{display:flex;flex-wrap:wrap;gap:8px}
.np-types .chip{display:inline-flex;align-items:center;gap:6px}
.np-types .icon{width:16px;height:16px}
.np-list{list-style:none;margin:-6px 0 0;padding:4px;max-height:280px;overflow:auto;border:1px solid var(--ag-border);border-radius:12px;background:var(--ag-surface)}
.np-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;cursor:pointer;font-size:13px;color:var(--ag-ink)}
.np-list li:hover,.np-list li[aria-selected=true]{background:var(--ag-hover)}
.np-list li[aria-selected=true]{box-shadow:inset 0 0 0 1px var(--ag-ink)}
.np-list li span,.np-picked .content{display:flex;flex-direction:column;gap:2px;min-width:0}
.np-list b,.np-picked b{font-weight:600}
.np-list small,.np-picked small{font-size:12px;color:var(--ag-ink3)}
.np-list .opt-ico{width:32px;height:32px;border-radius:10px}
.np-list .opt-ico .icon{width:16px;height:16px}
.np-picked{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--ag-ink);border-radius:16px;background:var(--ag-surface)}
.np-picked b{font-size:14px}
.np-note{margin:0;font-size:12px;color:var(--ag-ink3)}
.np-sheet .confirm-row,.np-sheet .form-error{margin:0}
.np-checkout .form-sheet>.np-note{margin-bottom:12px}
.np-pay{margin:0 0 4px}
.np-checkout:has(input[name=payMethod][value=cod]:checked) .if-online,.np-checkout:not(:has(input[name=payMethod][value=cod]:checked)) .if-cod{display:none}
@media(max-width:700px){.np-picked{grid-template-columns:auto minmax(0,1fr)}.np-picked>button{grid-column:1/-1;justify-self:start}}

/* the cars a part fits, the shopper's own in bold */
.pd-fits{margin:0;font-size:13px;line-height:1.5;color:var(--ag-ink2)}.pd-fits span{color:var(--ag-ink3)}.pd-fits b{color:var(--ag-ink)}

/* phone: the "Plugix" label of the old header landed on the close buttons (fixed inside a backdrop-filter parent); the tabs name the widget */
@media(max-width:700px){.workspace-controls:before{content:none}}
/* a narrow panel (rail open, small laptop): the top pick stacks, the photo keeps a modest height, the title fits two lines */
@container (max-width:560px){.canvas .hero-card,.canvas .hero-card.product-card,.canvas-recs .canvas .hero-card.product-card{grid-template-columns:minmax(0,1fr);gap:12px}.canvas .hero-card img{max-height:190px;width:100%;object-fit:contain}.canvas .canvas-header h2{font-size:21px}}
/* 701–1000 px (tablets): the rail stays as icons — it is the only way to the cart, orders and a new chat here — and the wider variants (canvas-cart, canvas-light…) never apply */
@media(min-width:701px) and (max-width:1000px){.workspace.rail-mini .rail{display:flex}.workspace.rail-mini.has-canvas{grid-template-columns:64px minmax(260px,.8fr) minmax(0,1.6fr)!important}.workspace.rail-mini:not(.has-canvas){grid-template-columns:64px minmax(0,1fr)!important}.workspace:not(.rail-mini).has-canvas{grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr)!important}}
/* the review header names the payment the shopper picked: card → Stripe note, cash on delivery → paid at the branch */
.canvas .pn-cod{display:none}
.canvas:has(input[name=payMethod][value=cod]:checked) .pn-cod{display:inline}
.canvas:has(input[name=payMethod][value=cod]:checked) .pn-card{display:none}
.message.notice{align-self:center;font-size:12px;line-height:17px;color:var(--ag-ink3);text-align:center;padding:4px 12px}
.message.operator .msg-head span{color:var(--ag-ink)}

/* ---------- QA redesign (W03–W17, M02/M03) ---------- */
/* W03: a sold-out row says so and steps back */
.canvas .match-row.is-out img,.canvas .match-row.is-out .match-info,.canvas .match-row.is-out .match-side>b{opacity:.55}
.match-side .pc-stock{font-size:11px}
/* W04: the products or options the assistant asks about, as cards to pick */
.choice-list{display:flex;flex-direction:column;gap:10px}
.choice-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;padding:12px 16px;text-align:left;border:1px solid var(--ag-border);border-radius:18px;background:var(--ag-surface);font:inherit;color:var(--ag-ink);cursor:pointer}
.choice-card:hover:not(:disabled),.choice-card:focus-visible{border-color:color-mix(in srgb,var(--primary) 60%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}
.choice-card img{width:72px;height:72px;object-fit:contain;border-radius:12px;background:#fff}
.choice-card .choice-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.choice-card .choice-info b{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.choice-card .choice-price{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.choice-card .specs{display:flex;flex-wrap:wrap;gap:4px}.choice-card .specs span{font-size:12px;color:var(--ag-ink2)}
.choice-card:disabled{cursor:default;opacity:.6}
.choice-card.plain{display:block;font-weight:600}
@media(max-width:700px){.choice-card{grid-template-columns:56px minmax(0,1fr)}.choice-card img{width:56px;height:56px}.choice-card .pc-stock{grid-column:2}}
/* W05: the questionnaire's progress reads, the count stands out */
.needs-progress>span:first-child{color:var(--ag-ink);font-weight:600}
.needs-progress .needs-fit{margin-left:auto;color:color-mix(in srgb,var(--primary) 75%,#0d0d0d);font-weight:600}
/* W06: the only-differences switch */
.cmp-tools{display:flex;justify-content:flex-end;margin:0 0 10px}
.cmp-tools .chip[aria-pressed=true]{background:var(--ag-ink);color:#fff;border-color:var(--ag-ink)}
.cmpt tr.cta .row{flex-wrap:wrap;gap:6px}
/* W07: the notify form stays inside the panel */
.notify-form{flex-wrap:wrap;width:100%;max-width:420px}.notify-form input{flex:1 1 180px;min-width:0}.notify-form button{flex:0 0 auto;max-width:100%}
/* W10/W11: a labelled progress bar while the carrier answers */
.load-bar{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--primary) 7%,#fff);font-size:13px;color:var(--ag-ink2)}
.load-bar i{position:relative;display:block;height:4px;border-radius:4px;background:color-mix(in srgb,var(--primary) 14%,#fff);overflow:hidden}
.load-bar i::after{content:'';position:absolute;inset:0 auto 0 0;width:40%;border-radius:4px;background:var(--primary);animation:load-slide 1.3s ease-in-out infinite}
@keyframes load-slide{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
@media(prefers-reduced-motion:reduce){.load-bar i::after{animation:none;width:100%;opacity:.4}}
.form-stack .load-bar{margin-top:4px}
/* CART-07/13 */
.canvas .cart-line.is-out img,.canvas .cart-line.is-out h3{opacity:.55}
.stock-left{display:block;color:#b25e09;font-weight:600}
.canvas button:disabled.pill-dark{opacity:.45;cursor:not-allowed}
/* ORD-04: a receipt that is not ready says when it comes */
.btn-hint{display:inline-flex;flex-direction:column;gap:2px}.btn-hint small{font-size:11px;color:var(--ag-ink3)}
.return-status{margin:0 0 12px}
/* W17: the handoff — the ticket, what the team gets, the store's contacts */
.handoff-intro{margin:0 0 12px;color:var(--ag-ink2)}
.handoff-ticket{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;margin:0 0 12px;background:color-mix(in srgb,var(--primary) 8%,#fff)}
.handoff-ticket>div>b{font-size:17px;font-weight:600}.handoff-ticket p{margin:4px 0 0;color:var(--ag-ink2);font-size:13px}
.handoff-ticket .opt-ico{flex:0 0 auto;background:var(--primary);color:#fff}
.handoff-ctx,.handoff-contacts{padding:16px 18px;margin:0 0 12px}
.handoff-ctx h3,.handoff-contacts h3{margin:0 0 10px;font-size:15px;font-weight:600}
.hf-row{display:grid;gap:4px;padding:8px 0;border-top:1px solid var(--ag-border)}.hf-row:first-of-type{border-top:0}
.hf-row>span{font-size:12px;color:var(--ag-ink3)}.hf-row p{margin:0;overflow-wrap:anywhere}
.hf-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.hf-product{display:flex;gap:10px;align-items:center;padding:8px;border-radius:12px;background:rgba(255,255,255,.7);min-width:0}
.hf-product img{width:44px;height:44px;object-fit:contain;border-radius:8px;background:#fff;flex:0 0 auto}
.hf-product span{display:flex;flex-direction:column;min-width:0}.hf-product b{font-size:13px;font-weight:600;overflow-wrap:anywhere}.hf-product small{color:var(--ag-ink2)}
.handoff-contacts p{margin:4px 0}.handoff-contacts a{color:var(--ag-ink);font-weight:600}
/* M02/M03/MOB-04: a phone gets a bottom bar with what the rail holds; the panel tab marks a new answer */
.mobile-bar,.chat-suggestions .mobile-only{display:none}
.tab-dot{display:inline-block;width:7px;height:7px;margin-left:4px;border-radius:50%;background:var(--primary);vertical-align:top}
@media(max-width:700px){
.mobile-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:absolute;left:0;right:0;bottom:0;z-index:5;height:58px;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--ag-border);background:var(--ag-surface,#fff)}
.mobile-bar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:4px 2px;border:0;border-radius:10px;background:transparent;color:var(--ag-ink2);font:600 11px/1.2 var(--ag-font)}
.mobile-bar button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-bar .icon,.mobile-bar .kicon{width:20px;height:20px}
.workspace .chat-panel,.workspace .canvas{bottom:58px}
.chat-suggestions .mobile-only{display:inline-flex}
}
@media(max-width:700px){.canvas .needs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* W08: «Доставка — розрахуємо на наступному кроці» keeps its label whole; a product name before its price still shrinks (MOB-08, 320 px) */
.summary-sheet .row.between>span:first-child:has(+span){flex:0 0 auto}.summary-sheet .row.between>span+span{text-align:right}
@media(max-width:700px){
  .cmp-scroll-hint{display:block;margin:0 0 10px;font-size:13px;line-height:1.5;color:var(--ag-ink2)}
  .cmpt{min-width:calc(var(--ag-compare-label) + var(--n) * var(--ag-compare-product))}
  .cmpt th:first-child,.cmpt td:first-child{width:var(--ag-compare-label);position:sticky;left:0;z-index:1;background:var(--ag-elev)}
  .cmpt thead th:first-child{z-index:2}
  .cmpt thead b{display:block;font-size:13px;line-height:1.4;overflow-wrap:break-word;word-break:normal;hyphens:none}
}
.needs-progress{flex-wrap:wrap;row-gap:4px}
.hf-product b,.hf-product small{color:var(--ag-ink)}
/* BUG-033: no assistant for this shopper (rollout decision): the catalog, cart and orders only */
.no-assistant .chat-panel,.no-assistant .mobile-tabs [data-act="mobile-chat"],.no-assistant .voice-mobile,.no-assistant [data-act="choose"],.no-assistant [data-act="new-chat"],.no-assistant [data-act="handoff"]{display:none!important}
/* A platform conversation uses the same kit without shopping navigation. */
.engine-label.demo-engine { display:block; margin-top:4px; font-size:12px; line-height:1.4; color:var(--ag-ink2); }
.workspace[data-assistant-mode="platform"] .mobile-tabs,
.workspace[data-assistant-mode="platform"] .mobile-bar { display:none; }
@media(max-width:700px) {
  .workspace[data-assistant-mode="platform"][data-mobile="chat"] .chat-panel { display:flex; inset:45px 0 0; padding-bottom:12px; }
}

/* A sales-demo control shares the order sheet, never a merchant checkout. */
.demo-order-progress{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.demo-order-progress>div{flex:1 1 200px;min-width:0}
.demo-order-progress strong{font-size:15px}
.demo-order-progress p{margin:4px 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
.demo-order-progress button{min-height:44px;white-space:normal;text-align:center}

/* J-004: quiet composer and persistent shopper destinations. */
.profile-label{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.profile-label strong{font-size:14px;font-weight:600}.profile-label small{padding:0;color:var(--ag-ink3);font-size:12px}
.rail-mini .profile-label{display:none}
.shopper-profile{display:flex;flex-direction:column;gap:16px;padding:24px;max-width:620px}
.shopper-profile p{margin:0;line-height:1.5}.shopper-profile h3{margin:0;font-size:16px}
.profile-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--ag-bg)}
.profile-avatar .icon{width:24px;height:24px}
.profile-notice{color:var(--ag-ink3);font-size:14px;border-top:1px solid var(--ag-border);padding-top:16px}
.profile-destinations,.voice-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.profile-destinations{justify-content:flex-start}
.voice-hint{font-size:16px;line-height:1.5;max-width:440px;text-align:center;color:var(--ag-ink3);margin:0}
.voice-label{margin:0;font-size:24px;line-height:1.3;color:var(--ag-ink)}
.voice-actions button{min-height:44px}
.composer .voice .wave{display:flex;align-items:center;justify-content:center;gap:2px;height:20px}
.composer .voice .wave span{animation:none;background:var(--ag-ink);width:2px;height:12px;border-radius:2px}
.composer .voice .wave span:nth-child(2),.composer .voice .wave span:nth-child(4){height:18px}
.composer .voice .wave span:nth-child(3){height:24px}
.composer .iconbtn:focus-visible{outline:2px solid var(--ag-ink);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.orb-fluid{animation:none!important}.voice-stage .orb{transform:none!important}}

@media(max-width:600px){.orb-wrap{width:240px;height:240px}.orb{width:220px;height:220px}.voice-hint{font-size:15px}}

.voice-round-controls{gap:18px;justify-content:center}
.voice-control{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:1px solid var(--ag-border);background:var(--ag-surface);color:var(--ag-ink);cursor:pointer;transition:background .2s,transform .2s}
.voice-control:hover:not(:disabled){background:var(--ag-bg);transform:translateY(-2px)}
.voice-control:disabled{opacity:.4;cursor:default}
.voice-control:focus-visible{outline:2px solid var(--ag-ink);outline-offset:4px}
.voice-control.voice-end{background:var(--ag-ink);color:var(--ag-surface);border-color:var(--ag-ink)}
.voice-duration{font-size:12px;color:var(--ag-ink3);font-variant-numeric:tabular-nums}

/* F-065: the GPU shades the volume; no competing CSS pulse or rotating outline. */
.voice-stage{--orb-pearl:#f4f1f5;--orb-peach:#efbea8;--orb-lilac:#c9b6df;--orb-smoke:#777785;--orb-light:#ffffff}
.orb-canvas{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.has-orb-canvas .orb-art{visibility:hidden}
.voice-stage .orb{animation:none;transform:none;transition:filter .5s ease;box-shadow:none}
.voice-stage .orb-wrap::after{content:"";position:absolute;bottom:17px;left:25%;width:50%;height:13px;border-radius:50%;background:var(--orb-smoke);opacity:.10;filter:blur(12px);pointer-events:none}
.voice-stage .orb-fluid{animation:none}
.voice-stage.is-paused .orb{filter:grayscale(.35)}

.voice-stage{gap:clamp(12px,2.2vh,22px);padding:12px 0;flex-shrink:0}
.voice-stage .orb-wrap{width:clamp(180px,30vh,310px);height:clamp(180px,30vh,310px)}
.voice-stage .orb{width:90%;height:90%}
.chat-messages.is-voice{justify-content:safe center}

/* Quiet conversation typography: shared local Manrope and legible prose. */
.composer textarea{font-size:16px;line-height:1.5}
.message.user .bubble,.message.assistant .bubble{font-size:16px;font-weight:400;line-height:1.65}
.empty-state h1{font-size:clamp(26px,3vw,36px);font-weight:600;line-height:1.2;letter-spacing:-.035em;max-width:640px}
.empty-state p{font-size:16px;font-weight:400;line-height:1.5;max-width:560px}
.prompt-chips button,.chat-suggestions button{font-size:14px;font-weight:500;line-height:1.4}
.empty-state .demo-notice{font-size:12px;line-height:1.5;color:var(--ag-ink2);max-width:480px;margin:18px 0 0}
.composer textarea::placeholder{color:var(--ag-ph)}
@media(max-width:700px){.empty-state h1{font-size:26px}.message.user .bubble,.message.assistant .bubble{font-size:16px}.prompt-chips button{padding:12px}.empty-state{padding-block:20px}}

/* F-065 parity: the voice dock leaves the conversation and shopping panels visible. */
.chat-messages.is-voice{justify-content:flex-start}
.composer-wrap.is-voice{flex-shrink:0;gap:4px}
.composer-wrap.is-voice .composer-shell{width:100%}
.voice-stage.is-docked{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;justify-items:start;gap:4px 12px;padding:12px;margin:0;min-height:0;border-radius:24px;background:var(--ag-bg);text-align:left}
.voice-stage.is-docked .orb-wrap{grid-column:1;grid-row:1/4;width:56px;height:56px;margin:0}
.voice-stage.is-docked .orb{width:56px;height:56px}
.voice-stage.is-docked .voice-label{grid-column:2;font-size:16px;line-height:1.4;font-weight:500;text-align:left}
.voice-stage.is-docked .voice-hint{grid-column:2;font-size:12px;line-height:1.4;text-align:left;max-width:none}
.voice-stage.is-docked .voice-actions{grid-column:1/-1;justify-self:end;justify-content:flex-end;gap:8px;margin:4px 0 0;flex-wrap:nowrap}
.voice-stage.is-docked .voice-control{width:44px;height:44px;min-height:44px;flex:none}
.voice-stage.is-docked .voice-duration{grid-column:2;font-size:11px;text-align:left}
.voice-stage.is-docked .rec-timer{grid-column:1;grid-row:4}
.composer-wrap.is-voice .disclaimer{display:none}
.voice-live-message .bubble{min-height:1.65em}
@media(min-width:701px){
 .workspace.full.has-canvas:has(.composer-wrap.is-voice){grid-template-columns:64px minmax(300px,.75fr) minmax(0,2fr)}
 .workspace.full.has-canvas:has(.composer-wrap.is-voice) .chat-panel{opacity:1;pointer-events:auto}
}
@media(max-width:700px){
 .workspace[data-mobile="canvas"] .chat-panel:has(.composer-wrap.is-voice){display:contents!important;opacity:1;pointer-events:auto}
 .workspace[data-mobile="canvas"] .chat-panel:has(.composer-wrap.is-voice)>.chat-top,.workspace[data-mobile="canvas"] .chat-panel:has(.composer-wrap.is-voice)>.chat-messages{display:none}
 .workspace[data-mobile="canvas"] .composer-wrap.is-voice{position:absolute;left:0;right:0;bottom:58px;z-index:4;padding:6px 12px;background:rgba(255,255,255,.96)}
 .workspace[data-mobile="canvas"]:has(.composer-wrap.is-voice) .canvas{bottom:220px}
 .voice-stage.is-docked{padding:10px;gap:3px 10px}
 .composer-wrap.is-voice .composer-shell{padding:0}
}

/* J-005: phone cart and compact add actions use the same 44px target as voice controls. */
@media(max-width:700px){
 .canvas .cart-line{grid-template-columns:48px minmax(0,1fr) auto;gap:8px}
 .canvas .cart-line>img{width:48px;height:48px}
 .canvas .cart-line .quantity button,.canvas .cart-side .icon-button,
 .canvas .match-row.product-card .match-side .pc-add,
 .product-card .product-bottom button.pc-add,.cmp-actions .pc-add,.cmpt tr.cta .pc-add{
  width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px
 }
}

/* IMP-093: the phone delivery form gets space before decoration, retaining its actions. */
@media(max-width:700px){
.workspace[data-view="delivery"] .canvas .canvas-hero{min-height:0;padding:0;margin:0 0 var(--ag-step-gap);gap:var(--ag-step-gap)}
.workspace[data-view="delivery"] .canvas .canvas-hero .hero-img{display:none}
.workspace[data-view="delivery"] .canvas .canvas-hero>button{min-height:var(--ag-touch-target)}
.workspace[data-view="delivery"] .canvas .canvas-hero h2{font-size:var(--ag-step-title);line-height:1.25}
.workspace[data-view="delivery"] .canvas .form-sheet{padding:var(--ag-step-tight-gap) var(--ag-step-gap)}
.workspace[data-view="delivery"] .canvas .form-stack,.workspace[data-view="delivery"] .canvas .field-grid{gap:var(--ag-step-tight-gap)}
.workspace[data-view="delivery"] .canvas .field-grid{margin-bottom:0}
.workspace[data-view="delivery"] .canvas .form-stack>[type="submit"]{min-height:var(--ag-touch-target)}
}

/* IMP-089: review the total before confirmation, retaining the existing column layout. */
@media(max-width:700px){
.workspace[data-view="checkout"] .canvas .canvas-hero{min-height:0;padding:0;margin:0 0 var(--ag-step-gap);gap:var(--ag-step-gap)}
.workspace[data-view="checkout"] .canvas .canvas-hero .hero-img{display:none}
.workspace[data-view="checkout"] .canvas .canvas-hero h2{font-size:var(--ag-step-title);line-height:1.25}
.workspace[data-view="checkout"] .canvas .canvas-hero>button,.workspace[data-view="checkout"] form[data-form="checkout"] [type="submit"]{min-height:var(--ag-touch-target)}
}

/* A checkout review must expose the complete item name, including on narrow panels. */
.workspace:is([data-view="checkout"],[data-view="payment"],[data-view="order"]) .summary-sheet .row:not(.grand):not(.muted)>span:first-child{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;flex:1}
.workspace:is([data-view="checkout"],[data-view="payment"],[data-view="order"]) .summary-sheet .row>b{flex:none;white-space:nowrap}

/* F-061 shared site appearance (owner 2026-10-04). Keep established layouts, states and merchant --primary. */
.workspace{--ink:var(--ag-ink);--muted:var(--ag-ink2);--border:var(--ag-border);--soft:var(--ag-elev)}
.workspace .pd-stage,.workspace .hero-photo,.workspace .cmp-photo{background:var(--ag-bg)}
.workspace .scene{background:var(--ag-elev);border-color:var(--ag-border)}
.workspace .scene::before{background:var(--ag-border)}
.workspace .card-mock{background:var(--ag-ink);box-shadow:var(--ag-surface-shadow)}
.workspace .cmp-card,.workspace .needs-card{background:var(--ag-surface);border-color:var(--ag-border);box-shadow:var(--ag-surface-shadow)}
.workspace .cmp-card.hl{border-color:var(--ag-ink)}
.workspace .product-card:hover,.workspace .match-row:hover,.workspace .needs-steps li.now{box-shadow:var(--ag-surface-shadow)}
.workspace .canvas .shipping-option{background:var(--ag-surface);border-color:var(--ag-border)}
.workspace .canvas .shipping-option:has(input:checked){background:var(--ag-elev);border-color:var(--ag-ink);box-shadow:var(--ag-surface-shadow)}
.workspace .pay-tile{background:var(--ag-surface);border-color:var(--ag-border)}
.workspace .pay-tile:hover{background:var(--ag-hover)}
.workspace .pay-tile.is-on{border-color:var(--ag-ink);box-shadow:var(--ag-surface-shadow)}
.workspace .message.user .bubble{background:var(--ag-elev);border-color:var(--ag-border);box-shadow:var(--ag-surface-shadow)}
.workspace .message.assistant .msg-content{background:var(--ag-surface);border-color:var(--ag-border);box-shadow:var(--ag-surface-shadow)}
.workspace .msg-head .app-icon,.workspace .composer-voice{box-shadow:var(--ag-surface-shadow)}
.workspace .empty-state .app-icon.hero{filter:none}
.workspace .empty-state h1,.workspace .welcome-canvas h1{font-weight:var(--ag-display-weight)}
.workspace .chat-top h2,.workspace .canvas h2,.workspace .canvas h3,.workspace .needs-q,.workspace .needs-head b,.dialog h2{font-weight:var(--ag-heading-weight)}
.workspace .choice-card .choice-price{font-weight:600}
.workspace .prompt-chips button,.workspace .chat-suggestions button,.workspace .welcome-actions button,
.workspace .chat-suggestions.is-question>button,.workspace .chat-suggestions.is-question .clarify-chips>button,
.workspace .composer button.pill,.workspace button.chip,.workspace .tabs button,.workspace .pd-options button,
.workspace .canvas .wallet,.workspace .pay-tile,.workspace .form-error .chip-retry{
 border-radius:var(--ag-action-radius);font-weight:var(--ag-control-weight)
}
.workspace .rail-foot select,.workspace .composer select.pill,.workspace .notify-form input{border-radius:var(--ag-field-radius)}

/* Measured owner reference, 2026-10-04. Last layer covers every retained view family.
   Palette stays on --ag-* so merchant accents and dark embedding remain available. */
.workspace,.workspace.full{
 --ag-heading-weight:var(--product-heading-weight);--ag-control-weight:var(--product-action-weight);
 font-family:var(--product-font);font-size:var(--product-body-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight);
 background:var(--ag-bg);border-radius:var(--product-panel-radius);padding:var(--product-panel-padding);gap:var(--product-panel-padding);
}
.overlay{padding:var(--product-page-inset)}
.workspace .chat-panel,.workspace .canvas,.workspace.full.has-canvas .canvas{background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0}
.workspace .chat-top{min-height:var(--product-action-height);padding:0 0 var(--product-row-padding);gap:var(--product-nav-padding)}
.workspace .chat-top h2,.workspace .empty-state h1,.workspace .welcome-canvas h1,
.workspace .canvas .canvas-header h2,.workspace .canvas .canvas-hero h2,.workspace[data-view] .canvas .canvas-hero h2,.workspace .order-hero h2{
 font-size:var(--product-heading-size);line-height:var(--product-heading-line);font-weight:var(--product-heading-weight);letter-spacing:var(--product-heading-tracking);
}
.workspace .chat-top h2{font-size:var(--product-chat-heading-size);white-space:normal;overflow-wrap:anywhere}
.workspace .empty-state p,.workspace .welcome-canvas p,.workspace .canvas-header p,.workspace .canvas-hero p,
.workspace .message.user .bubble,.workspace .message.assistant .bubble,.workspace .composer textarea,
.workspace .pd-desc,.workspace .hero-why,.workspace .policy-card p,.workspace .verdict p,
.workspace .handoff-intro,.workspace .handoff-ticket p,.workspace .hf-row p,.workspace .voice-transcript p{
 font-size:var(--product-body-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight);
}
.workspace .message.assistant .bubble.lead,.workspace .canvas .hero-info h2,.workspace .canvas .pd-info h2,
.workspace .canvas h3,.workspace .canvas .section-title,.workspace .needs-q,.workspace .needs-head b,.workspace .policy-card b{
 font-size:var(--product-section-size);line-height:var(--product-section-line);font-weight:var(--product-heading-weight);letter-spacing:var(--product-heading-tracking);
}
.workspace .message.assistant .msg-content{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.workspace .message.user .bubble{background:var(--ag-surface);border-color:var(--ag-border);box-shadow:none}
.workspace .chat-messages{padding:var(--product-row-padding) 0;gap:var(--product-panel-padding)}
.workspace .empty-state{padding:var(--product-panel-padding) 0;gap:var(--product-nav-padding)}
.workspace .rail{background:transparent;border:0;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0 var(--product-nav-inset) 0 0;border-right:var(--product-line-width) solid var(--ag-border);gap:var(--product-nav-gap);overflow:auto}
.workspace .rail-nav{gap:var(--product-nav-gap)}
.workspace:not(.rail-mini) .rail-nav button{
 min-height:var(--product-nav-height);padding:var(--product-nav-padding);gap:var(--product-nav-padding);
 font-size:var(--product-body-size);line-height:var(--product-nav-line);font-weight:var(--product-nav-weight);
 border-radius:var(--product-action-radius);color:var(--ag-ink);white-space:normal;
}
.workspace .rail-nav button.is-current{background:var(--ag-ink);color:var(--ag-on-action)}
.workspace .rail-recent button.is-current{background:var(--ag-hover);color:var(--ag-ink)}
.workspace .rail-nav button .icon,.workspace .rail-nav button .kicon{width:var(--product-nav-icon);height:var(--product-nav-icon);color:inherit}
.workspace .rail-brand{font-size:var(--product-nav-size);line-height:var(--product-nav-line);font-weight:var(--product-nav-weight)}
.workspace .rail-section,.workspace .rail-foot small,.workspace .chat-sub,.workspace .msg-head span,
.workspace .small-text,.workspace .trust,.workspace .addr,.workspace .msg-me,.workspace .canvas-foot,
.workspace .profile-label small,.workspace .engine-label,.workspace .stage-pill{
 font-size:var(--product-caption-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight);
}
.workspace .rail-recent button,.workspace .profile-label strong{font-size:var(--product-label-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight)}
.workspace .rail-recent button{justify-content:flex-start}
.workspace .rail-powered{display:flex;align-items:center;gap:var(--product-nav-gap);min-height:var(--ag-touch-target);padding:var(--product-nav-gap) var(--product-nav-padding);border-radius:var(--product-action-radius);font-size:var(--product-caption-size);line-height:var(--product-body-line);color:var(--ag-ink2);text-decoration:none}
.workspace .rail-powered img{width:var(--product-label-size);height:var(--product-label-size);flex:none}
.workspace .rail-powered-arrow{margin-left:auto}
.workspace .rail-powered:hover{background:var(--ag-hover);color:var(--ag-ink)}
.workspace .rail-powered:focus-visible{outline:calc(2 * var(--product-line-width)) solid var(--ag-ink);outline-offset:var(--product-line-width)}
.workspace.rail-mini .rail .rail-powered{display:none}
.workspace .composer-shell .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--product-nav-gap);padding:var(--product-nav-padding);border:var(--product-line-width) solid var(--ag-border);border-radius:var(--product-panel-radius);background:var(--ag-surface);box-shadow:none}
.workspace .composer-shell .composer:focus-within{border-color:var(--ag-ink2)}
.workspace .composer-shell .composer.has-image-picker{grid-template-columns:auto minmax(0,1fr) auto}
.workspace .composer input[type=file][hidden]{display:none}
.workspace .composer .attach{color:var(--ag-ink2);background:transparent;box-shadow:none}
.workspace .composer .attach:hover:not(:disabled){color:var(--ag-ink);background:var(--ag-hover)}
.workspace .composer .attach .icon{width:var(--product-answer-icon);height:var(--product-answer-icon)}
.workspace .composer-image{grid-column:1/-1;display:flex;align-items:center;gap:var(--product-nav-padding);padding:var(--product-nav-gap);border:var(--product-line-width) solid var(--ag-border);border-radius:var(--product-field-radius);background:var(--ag-elev)}
.workspace .composer-image>img{width:var(--product-image-thumb);height:var(--product-image-thumb);object-fit:cover;border-radius:var(--product-action-radius);flex:none}
.workspace .composer-image>div{min-width:0;flex:1;font-size:var(--product-label-size);line-height:var(--product-body-line)}
.workspace .composer-image small{display:block;color:var(--ag-ink2);font-size:var(--product-caption-size)}
.workspace .composer-image>.iconbtn{flex:none;align-self:flex-start;background:transparent;color:var(--ag-ink2)}
.workspace .composer-image-status,.workspace .composer-image-error{grid-column:1/-1;font-size:var(--product-caption-size);line-height:var(--product-body-line);color:var(--ag-ink2);padding:0 var(--product-nav-gap)}
.workspace .message-image{margin-bottom:var(--product-nav-padding);max-width:var(--product-image-max);overflow:hidden;border:var(--product-line-width) solid var(--ag-border);border-radius:var(--product-field-radius);background:var(--ag-surface)}
.workspace .message-image img{display:block;width:100%;height:auto;max-height:var(--product-image-max);object-fit:contain}
.workspace .message-image-marker{display:flex;align-items:center;gap:var(--product-nav-gap);font-size:var(--product-caption-size);color:var(--ag-ink2);margin-bottom:var(--product-nav-gap)}
.workspace .message-image-marker .icon{width:var(--product-answer-icon);height:var(--product-answer-icon)}
.workspace .composer textarea{min-width:0;height:var(--ag-touch-target);min-height:var(--ag-touch-target);padding:calc((var(--ag-touch-target) - var(--product-body-size) * var(--product-body-line)) / 2) 0;overflow-y:auto}
.workspace .composer-foot{align-self:center;padding:0}
.workspace .composer-right{gap:var(--product-nav-gap)}
.workspace .composer .iconbtn{width:var(--ag-touch-target);height:var(--ag-touch-target)}
@media(min-width:701px) and (max-width:1000px){.workspace[data-assistant-mode=platform]:not(.rail-mini){grid-template-columns:minmax(0,1fr)}}
@supports(field-sizing:content){.workspace .composer textarea{field-sizing:content;height:auto}}
.workspace.rail-mini .rail{padding:0;border-right:var(--product-line-width) solid var(--ag-border)}
/* BUG-113: hidden brand text must not push the collapsed logo outside the Rail. */
.workspace.rail-mini .rail-brand span{display:none}
.workspace.rail-mini .rail-nav button,.workspace.rail-mini .rail-foot .rail-nav button{min-height:var(--product-action-height);padding:var(--product-nav-padding);font-size:0;gap:0;justify-content:center}
.workspace .primary,.workspace .canvas button.primary,.workspace .canvas .pill-dark,.workspace .canvas .pill-ghost,
.workspace .prompt-chips button,.workspace .chat-suggestions button,.workspace .welcome-actions button,
.workspace .chat-suggestions.is-question>button,.workspace .chat-suggestions.is-question .clarify-chips>button,
.workspace .canvas-header button,.workspace .canvas-hero>button,.workspace .composer button.pill,
.workspace button.chip,.workspace .tabs button,.workspace .pd-options button,.workspace .canvas .wallet,.workspace .form-error .chip-retry{
 height:auto;min-height:var(--product-action-height);padding:var(--product-action-padding);padding-block:calc(var(--product-nav-padding) - var(--product-line-width));border-radius:var(--product-action-radius);
 font-size:var(--product-action-size);line-height:var(--product-action-line);font-weight:var(--product-action-weight);box-shadow:none;white-space:normal;
}
.workspace .canvas .pill-dark .icon,.workspace .canvas-header button .icon,.workspace .prompt-chips button .icon,.workspace .prompt-chips button .kicon{width:var(--product-nav-icon);height:var(--product-nav-icon)}
.workspace input:not([type=radio]):not([type=checkbox]),.workspace select:not(.pill),.workspace textarea:not(.composer textarea){
 min-height:var(--product-action-height);padding:var(--product-nav-padding);border-radius:var(--product-field-radius);
 background:var(--ag-surface);font-size:var(--product-body-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight);
}
.workspace label:not(.shipping-option),.workspace .confirm-row,.workspace .shipping-option .content b,
.workspace .shipping-option .content small,.workspace .shipping-option strong,.workspace .pay-tile,
.workspace .summary-sheet,.workspace .cart-line .info small,.workspace .pd-fits,.workspace .load-bar,
.workspace .match-info b,.workspace .match-info small,.workspace .choice-card .choice-info b,.workspace .choice-card .specs span,
.workspace .hf-product b,.workspace .accessory-row .info h3,.workspace .accessory-row .info small,
.workspace .np-list li,.workspace .np-picked b,.workspace .np-note,.workspace .form-error,
.workspace .pd-specs dt,.workspace .pd-specs dd,.workspace .cmp-specs dt,.workspace .cmp-specs dd,
.workspace .cmpt,.workspace .cmpt thead b,.workspace .cmp,.workspace .cmp thead th b{
 font-size:var(--product-label-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight);
}
.workspace .pd-specs>div,.workspace .cmp-specs>div{padding-block:var(--product-row-padding);border-color:var(--ag-border)}
.workspace .cmpt th,.workspace .cmpt td,.workspace .cmp th,.workspace .cmp td{padding-block:var(--product-row-padding);font-weight:var(--product-body-weight)}
.workspace .sheet,.workspace .hero-card,.workspace .match-row,.workspace .compare-bar,.workspace .why-sheet,
.workspace .pd-stage,.workspace .cmp-card,.workspace .needs-card,.workspace .canvas .cart-line,.workspace .canvas .shipping-option,
.workspace .canvas .order-card,.workspace .policy-card,.workspace .canvas-note{
 background:var(--ag-surface);border-color:var(--ag-border);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
}
.workspace .match-row:hover,.workspace .product-card:hover{transform:none}
.workspace .sheet,.workspace .canvas .cart-line,.workspace .hero-card.product-card,.workspace .match-row.product-card,
.workspace .cmp-card,.workspace .policy-card{padding:var(--product-row-padding)}
.workspace .hero-price,.workspace .cmp-price,.workspace .match-side>b,.workspace .cart-side>b{font-weight:var(--product-heading-weight);line-height:var(--product-section-line)}
.workspace .form-stack,.workspace .field-grid{gap:var(--product-row-padding)}
.workspace .canvas .canvas-header,.workspace .canvas .canvas-hero{margin-bottom:var(--product-panel-padding)}
.workspace .quantity button,.workspace .cart-side .icon-button,.workspace .accessory-row button.small,
.workspace .match-side .pc-add,.workspace .product-bottom button.pc-add,.workspace .cmp-actions .pc-add{min-width:var(--ag-touch-target);min-height:var(--ag-touch-target)}
@media(min-width:1001px){
 .workspace:not(.rail-mini):not(.has-canvas){grid-template-columns:var(--product-nav-width) minmax(0,1fr)}
 .workspace.has-canvas:not(.rail-mini):not(.full){grid-template-columns:var(--product-nav-width) minmax(280px,.8fr) minmax(0,1.6fr)}
 .workspace.rail-mini:not(.has-canvas){grid-template-columns:64px minmax(0,1fr)}
}
@media(max-width:1250px) and (min-width:701px){.workspace{gap:var(--product-row-padding);padding:var(--product-row-padding)}}
@media(max-width:700px){
 .overlay{padding:var(--product-phone-inset);background:var(--ag-bg)}
 .workspace,.workspace.full,.workspace.has-canvas{padding:45px 0 0;border-radius:var(--product-panel-radius)}
 .workspace .chat-panel,.workspace .canvas{padding:var(--product-phone-padding);border-radius:0;background:var(--ag-bg)}
 .workspace .chat-top h2,.workspace .empty-state h1,.workspace .welcome-canvas h1,
 .workspace .canvas .canvas-header h2,.workspace .canvas .canvas-hero h2,.workspace[data-view] .canvas .canvas-hero h2,.workspace .order-hero h2{font-size:var(--product-phone-heading)}
 .workspace .mobile-tabs button{min-height:var(--ag-touch-target);font-size:var(--product-label-size);font-weight:var(--product-body-weight)}
 .workspace .empty-state{padding-block:var(--product-row-padding)}
 .workspace .canvas .cart-line{padding:var(--product-nav-padding)}
 .workspace .canvas .cart-line .info h3{font-size:var(--product-label-size);line-height:var(--product-body-line)}
 .workspace .canvas .cart-line .quantity button{width:var(--ag-touch-target);height:var(--ag-touch-target)}
}

.workspace .icon svg{stroke-width:var(--product-icon-stroke)}

/* Recommendation variants previously supplied their own smaller type scale. */
.workspace.canvas-recs .canvas .hero-why,.workspace.canvas-recs .canvas .pd-desc{font-size:var(--product-body-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight)}
.workspace.canvas-recs .canvas .pd-specs dt,.workspace.canvas-recs .canvas .pd-specs dd{font-size:var(--product-label-size);line-height:var(--product-body-line);font-weight:var(--product-body-weight)}
.workspace .hero-specs>div{padding-block:var(--product-row-padding)}

/* All desktop canvas variants keep the reference rail; only content columns adapt. */
@media(min-width:1001px){
 .workspace.has-canvas:not(.rail-mini):not(.full):is(.canvas-light,.canvas-narrow,.canvas-cart,.canvas-recs,.canvas-dense){
  grid-template-columns:var(--product-nav-width) minmax(280px,.8fr) minmax(0,1.6fr);
 }
}

/* Borderless primary actions retain the reference's full 12/20 padding. */
.workspace .primary,.workspace .canvas button.primary,.workspace .canvas .pill-dark,.workspace .canvas .wallet.apple{
 border-width:0;padding:var(--product-action-padding);
}
.workspace .canvas .pill-ghost,.workspace .prompt-chips button,.workspace .chat-suggestions button,
.workspace .welcome-actions button,.workspace .chat-suggestions.is-question>button,
.workspace .chat-suggestions.is-question .clarify-chips>button,.workspace .canvas-header button,
.workspace .composer button.pill,.workspace button.chip,.workspace .pd-options button,
.workspace .canvas .wallet.google,.workspace .form-error .chip-retry{border-width:var(--product-line-width)}

/* Short desktop welcome: decorative space yields to readable text and actions. */
@media(min-width:701px) and (max-height:800px){
 .workspace:not(.has-canvas) .empty-state{padding:0;gap:var(--product-nav-gap)}
 .workspace:not(.has-canvas) .empty-state .app-icon.hero{
  width:var(--product-nav-height);height:var(--product-nav-height);margin-bottom:0;
 }
 .workspace:not(.has-canvas) .empty-state .prompt-chips,
 .workspace:not(.has-canvas) .empty-state .demo-notice{margin-top:0}
}

/* BUG-108 / J-014: calm, readable platform explanations in the existing Chat component. */
.workspace .message.assistant .bubble.platform-answer{white-space:normal;overflow-wrap:anywhere}
.workspace .platform-answer p,.workspace .platform-answer ul,.workspace .platform-answer ol{margin:0 0 var(--product-row-padding)}
.workspace .platform-answer h3{margin:var(--product-row-padding) 0 var(--product-nav-padding);font-size:var(--product-section-size);line-height:var(--product-section-line);font-weight:var(--product-heading-weight);letter-spacing:var(--product-heading-tracking);color:var(--ag-ink)}
.workspace .platform-answer strong{font-weight:var(--product-emphasis-weight)}
.workspace .platform-answer ul,.workspace .platform-answer ol{padding-inline-start:var(--product-panel-padding)}
.workspace .platform-answer li+li{margin-top:var(--product-nav-padding)}
.workspace .platform-answer>:first-child{margin-top:0}
.workspace .platform-answer>:last-child{margin-bottom:0}
.workspace .platform-answer-preview{margin:var(--product-row-padding) 0;background:var(--ag-elev);border:var(--product-line-width) solid var(--ag-border);border-radius:var(--product-field-radius);overflow:hidden}
.workspace .platform-answer-preview img{display:block;width:100%;height:auto;aspect-ratio:var(--product-preview-ratio);object-fit:cover;object-position:top}
.workspace .platform-answer-preview figcaption{padding:var(--product-nav-padding) var(--product-row-padding);border-top:var(--product-line-width) solid var(--ag-border);font-size:var(--product-caption-size);line-height:var(--product-body-line);color:var(--ag-ink2)}

/* IMP-070 / AC-061-07: compact platform chrome; actions stay with their answer. */
.workspace[data-assistant-mode="platform"]:not(.rail-mini) .rail-nav [data-act="new-chat"]{font-size:var(--product-newchat-size);min-height:var(--product-answer-target);padding:var(--product-nav-gap) var(--product-nav-padding);background:var(--ag-hover);color:var(--ag-ink)}
.workspace[data-assistant-mode="platform"] .rail-nav [data-act="new-chat"] .icon,.workspace[data-assistant-mode="platform"] .rail-nav [data-act="new-chat"] .kicon{width:var(--product-answer-icon);height:var(--product-answer-icon);color:var(--ag-ink);filter:none}
.workspace[data-assistant-mode="platform"] .empty-state .app-icon.hero,.workspace[data-assistant-mode="platform"] .empty-state .glow-layer{display:none}
.workspace[data-assistant-mode="platform"] .chat-messages{padding-top:var(--product-answer-target)}
.workspace[data-assistant-mode="platform"] .msg-content{gap:var(--product-answer-gap)}
.workspace[data-assistant-mode="platform"] .msg-content .msg-actions{margin:0;padding:0;gap:var(--product-answer-gap)}
.workspace[data-assistant-mode="platform"] .msg-actions button{display:inline-flex;align-items:center;justify-content:center;width:var(--product-answer-target);height:var(--product-answer-target);min-width:var(--product-answer-target);min-height:var(--product-answer-target);padding:0;border:0;border-radius:var(--product-action-radius);color:var(--ag-ink2);opacity:1;flex:none}
.workspace[data-assistant-mode="platform"] .msg-actions button:hover,.workspace[data-assistant-mode="platform"] .msg-actions button[aria-pressed="true"]{background:var(--ag-hover);color:var(--ag-ink)}
.workspace[data-assistant-mode="platform"] .msg-actions .kicon,.workspace[data-assistant-mode="platform"] .msg-actions .icon{width:var(--product-answer-icon);height:var(--product-answer-icon)}

/* IMP-072 / J-014: compact edges for the platform assistant. */
@media(min-width:701px){
 .overlay:has(>.workspace[data-assistant-mode="platform"]){padding:var(--product-nav-padding)}
 .workspace[data-assistant-mode="platform"]{--product-nav-width:220px;padding:var(--product-row-padding);gap:var(--product-row-padding)}
 .workspace[data-assistant-mode="platform"]:not(.rail-mini) .rail{padding-inline-end:var(--product-row-padding)}
 .workspace[data-assistant-mode="platform"] .chat-messages{margin-inline:0}
 .workspace[data-assistant-mode="platform"] .workspace-controls{top:var(--product-row-padding);right:var(--product-row-padding)}
}
@media(max-width:700px){
 .workspace[data-assistant-mode="platform"] .chat-panel{padding:var(--product-nav-padding)}
}

/* IMP-073 / J-014: keep the platform workspace while its Rail glides. */
.workspace[data-assistant-mode="platform"]{transition:grid-template-columns 350ms cubic-bezier(.2,.8,.2,1)}
.workspace[data-assistant-mode="platform"] .rail{transition:padding 350ms cubic-bezier(.2,.8,.2,1)}
.workspace[data-assistant-mode="platform"] .composer-powered{justify-content:center;min-height:var(--ag-touch-target);padding-block:0}
.workspace[data-assistant-mode="platform"] .composer-powered .rail-powered-arrow{margin-left:0}
@media(prefers-reduced-motion:reduce){
 .workspace[data-assistant-mode="platform"],.workspace[data-assistant-mode="platform"] .rail,
 .workspace[data-assistant-mode="platform"] .rail-nav button,.workspace[data-assistant-mode="platform"] .rail-recent button,
 .workspace[data-assistant-mode="platform"] .rail-top,.workspace[data-assistant-mode="platform"] .rail-brand,
 .workspace[data-assistant-mode="platform"] .rail-brand span,.workspace[data-assistant-mode="platform"] .rail-section,
 .workspace[data-assistant-mode="platform"] .rail-recent,.workspace[data-assistant-mode="platform"] .rail-foot small{transition:none}
}

.workspace .platform-answer blockquote{margin:var(--product-row-padding) 0;padding:var(--product-nav-gap) var(--product-row-padding);border-left:3px solid var(--ag-border);color:var(--ag-ink2)}
.workspace .platform-answer a{color:var(--ag-ink);text-decoration:underline;text-underline-offset:3px;font-weight:var(--product-emphasis-weight)}
.workspace .platform-answer a:hover{color:var(--ag-ink2)}
.workspace .platform-answer code{font-family:inherit;background:var(--ag-hover);padding:2px 5px;border-radius:4px}

/* Profile is a compact panel over the conversation, rather than a split screen. */
.workspace .rail-nav [data-act="profile"] .icon{width:18px;height:18px;color:inherit}
.workspace.has-canvas:not(:has(.shopper-profile))>.canvas{border-left:1px solid var(--ag-border);padding-left:var(--product-row-padding)}
.workspace:has(.shopper-profile){grid-template-columns:var(--product-nav-width) minmax(0,1fr)!important}
.workspace.rail-mini:has(.shopper-profile){grid-template-columns:64px minmax(0,1fr)!important}
.workspace:has(.shopper-profile)>.canvas{position:absolute;z-index:8;top:76px;right:var(--product-row-padding);bottom:auto;left:auto;width:min(420px,calc(100% - 100px));max-height:calc(100% - 100px);padding:24px;background:var(--ag-surface);border:1px solid var(--ag-border);border-radius:16px;box-shadow:0 12px 36px #0000000d;overflow:auto}
.workspace:has(.shopper-profile) .canvas-header{padding:0 0 16px;min-height:0;align-items:center;gap:12px}
.workspace:has(.shopper-profile) .canvas-header h2{font-size:20px;line-height:1.4;letter-spacing:-.02em;font-weight:500}
.workspace:has(.shopper-profile) .canvas-header .iconbtn{width:32px;height:32px;min-height:32px;padding:6px;border-radius:8px}
.workspace .shopper-profile{max-width:none;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;gap:16px}
.workspace .shopper-profile .profile-avatar{display:none}
.workspace .shopper-profile p{font-size:14px;line-height:1.6}
.workspace .shopper-profile h3{font-size:16px;font-weight:500;letter-spacing:-.01em}
.workspace .shopper-profile .profile-destinations:empty{display:none}
.workspace .shopper-profile .profile-notice{padding-top:16px;border-top:1px solid var(--ag-border);font-size:13px}
@media(max-width:700px){
 .workspace:has(.shopper-profile),.workspace.rail-mini:has(.shopper-profile){grid-template-columns:minmax(0,1fr)!important}
 .workspace:has(.shopper-profile)>.canvas{top:64px;right:12px;width:calc(100% - 24px);padding:20px}
 .workspace:has(.shopper-profile) .chat-panel{display:flex!important}
}
.workspace:has(.shopper-profile) .chat-messages,.workspace:has(.shopper-profile) .composer-wrap{width:100%;max-width:700px;margin-inline:auto}
.workspace:has(.shopper-profile) .canvas-header>div{flex:1;min-width:0}
.workspace:has(.shopper-profile) .canvas-header .iconbtn{color:var(--ag-ink2);background:transparent;border:0}

.platform-signin.dialog-backdrop{z-index:1000;background:#00000026;backdrop-filter:blur(3px)}
.platform-signin .dialog{width:min(420px,calc(100vw - 32px));padding:24px;border-radius:20px;background:var(--ag-surface);color:var(--ag-ink);border:1px solid var(--ag-border);box-shadow:0 16px 64px #00000014;font-family:var(--product-font)}
.platform-signin .dialog h2{font-size:22px;line-height:1.3;font-weight:500;letter-spacing:-.02em}
.platform-signin .signin-hint{font-size:14px;line-height:1.65;color:var(--ag-ink2);margin:8px 0 20px}
.platform-signin .signin-console{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 16px;border-radius:12px;background:var(--ag-ink);color:var(--ag-surface);text-decoration:none;font-size:14px}
.platform-signin .signin-console .icon{width:18px;height:18px}
.platform-signin .dialog-actions{justify-content:center;margin-top:8px}
.platform-signin .dialog-actions button{background:transparent;border:0;color:var(--ag-ink2);font-size:14px;min-height:44px}
@media(max-width:700px){.platform-signin.dialog-backdrop{align-items:flex-end;padding:0}.platform-signin .dialog{width:100%;max-width:none;margin:0;border-radius:20px 20px 0 0;padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
/* Light glass actions throughout the assistant. */
.workspace .composer .iconbtn.send,.workspace .rail-nav button.is-current,.workspace .canvas .pill-dark,.platform-signin .signin-console{
 background:rgba(255,255,255,.65);color:var(--ag-ink);border:1px solid rgba(255,255,255,.9);
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
 box-shadow:inset 0 1px 0 #fff,0 2px 8px #00000008;transition:background .18s,border-color .18s;
}
.workspace .composer .iconbtn.send:hover:not(:disabled),.workspace .rail-nav button.is-current:hover,.workspace .canvas .pill-dark:hover,.platform-signin .signin-console:hover{background:var(--ag-hover);border-color:var(--ag-border);color:var(--ag-ink)}
.workspace .composer .iconbtn.send .kicon,.workspace .rail-nav button.is-current .kicon{filter:none}
.workspace .composer .iconbtn.send .icon,.workspace .rail-nav button.is-current .icon,.workspace .rail-nav button.is-current .profile-label strong,.workspace .rail-nav button.is-current .profile-label small{color:var(--ag-ink)}
@media(prefers-reduced-motion:reduce){.workspace .composer .iconbtn.send,.workspace .rail-nav button.is-current,.workspace .canvas .pill-dark,.platform-signin .signin-console{transition:none}}
.platform-signin .signin-console{background:rgba(240,240,240,.8);border:1px solid #d5d5d5;box-shadow:inset 0 1px 0 #fff,0 2px 6px #00000008;font-weight:500}
.platform-signin .signin-console:hover{background:#e4e4e4;border-color:#bfbfbf}
.platform-signin .signin-console:focus-visible{outline:2px solid var(--ag-ink2);outline-offset:3px}

/* Reference: outlined pill with a centered icon and label. */
.platform-signin .signin-console{justify-content:center;gap:12px;min-height:48px;border-radius:999px;background:rgba(255,255,255,.85);border:1px solid #d9d9d9;box-shadow:none;color:#606060;font-size:15px;font-weight:500;padding:12px 20px}
.platform-signin .signin-console:hover{background:#f0f0f0;border-color:#c8c8c8;color:var(--ag-ink)}
.platform-signin .signin-console .icon{width:18px;height:18px;flex:none;color:inherit}
.workspace .composer .iconbtn.send{background:rgba(240,240,240,.85);border:1px solid #d5d5d5;color:var(--ag-ink);opacity:1}
.workspace .composer .iconbtn.send .kicon{color:var(--ag-ink);filter:brightness(0);opacity:1;width:20px;height:20px}
.workspace .composer .iconbtn.send:hover:not(:disabled){background:#e4e4e4;border-color:#bfbfbf}
.workspace .composer .iconbtn.send:disabled .kicon{filter:brightness(0);opacity:.45}
/* Send action: black button with a white arrow. */
.workspace .composer .iconbtn.send{background:var(--ag-ink);border-color:var(--ag-ink);color:#fff}
.workspace .composer .iconbtn.send .kicon{filter:brightness(0) invert(1);color:#fff;opacity:1}
.workspace .composer .iconbtn.send:hover:not(:disabled){background:#333;border-color:#333;color:#fff}
.workspace .composer .iconbtn.send:disabled .kicon{filter:brightness(0) invert(1);opacity:.45}

.workspace .composer .iconbtn.send{background:#1a1a1a;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff}
.workspace .composer .iconbtn.send:hover:not(:disabled){background:#333;border:0;box-shadow:none}
.workspace .composer .iconbtn.send .send-arrow{display:block;width:22px;height:22px;flex:none;color:#fff;filter:none}
.workspace .composer .iconbtn.send:disabled .send-arrow{opacity:.45}
.workspace .composer,.workspace .composer:focus-within{border-color:#d5d5d5;box-shadow:none}

.workspace .msg-content .msg-actions{margin:0;padding:0;gap:4px}
.workspace .msg-actions button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:12px;color:var(--ag-ink2);opacity:1;flex:none;background:transparent}
.workspace .msg-actions button:hover,.workspace .msg-actions button[aria-pressed="true"]{background:var(--ag-hover);color:var(--ag-ink)}
.workspace .msg-actions .kicon,.workspace .msg-actions .icon{width:18px;height:18px}
/* Compact recommendations toolbar stays available while browsing products. */
.workspace.canvas-recs .canvas>.canvas-foot.top-note{display:none}
.workspace.canvas-recs .canvas>.canvas-header:not(.canvas-hero)>div>p{display:none}
.workspace.canvas-recs .canvas>.canvas-header:not(.canvas-hero){position:sticky;top:0;z-index:5;background:var(--ag-bg);padding:8px 90px 16px 0;min-height:60px;align-items:center;gap:16px;border-bottom:1px solid var(--ag-border);margin-bottom:16px}
.workspace.canvas-recs .canvas>.canvas-header:not(.canvas-hero) h2{font-size:22px;line-height:1.3;letter-spacing:-.02em}
.workspace.canvas-recs .canvas>.canvas-header:not(.canvas-hero)>button{flex:none;margin-left:auto}
@media(max-width:700px){.workspace.canvas-recs .canvas>.canvas-header:not(.canvas-hero){padding-right:0}.workspace.canvas-recs .canvas>.canvas-header:not(.canvas-hero) h2{font-size:20px}}

/* J-004: catalog navigation and equal product rows, with visible cart actions. */
.workspace .catalog-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:20px 0 28px}
.workspace .catalog-categories button{justify-content:flex-start;min-height:48px;text-align:left;border:1px solid var(--ag-border);background:var(--ag-card)}
.workspace .catalog-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px;color:var(--ag-ink2);font-size:14px}
.workspace .catalog-tools label{display:flex;align-items:center;gap:8px;margin-left:auto}
.workspace .catalog-tools select{min-height:44px;padding:8px 12px;border:1px solid var(--ag-border);border-radius:12px;color:var(--ag-ink);background:var(--ag-card);font:inherit}
.workspace .canvas .buyer-add{min-height:44px;border:1px solid #ccc;background:rgba(240,240,240,.8);color:var(--ag-ink);box-shadow:inset 0 1px 0 #fff;gap:8px;white-space:nowrap}
.workspace .canvas .buyer-add:hover{background:var(--ag-hover);border-color:#b5b5b5}
.workspace .buyer-compat,.workspace .buyer-unit{font-size:13px;line-height:1.5;color:var(--ag-ink2);margin:8px 0}
.workspace .match-row{grid-template-columns:80px minmax(0,1fr) auto;gap:16px}
.workspace .match-info{min-width:0}
.workspace .match-side .row{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){.workspace .match-row{grid-template-columns:64px minmax(0,1fr)}.workspace .match-side{grid-column:2;align-items:flex-start}.workspace .match-side .row{justify-content:flex-start}.workspace .catalog-tools label{margin-left:0}}

.workspace .catalog-intro .canvas-header h2{font-size:22px;line-height:1.3}

/* Buyer journeys: keep the task, purchase action and total easier to scan than decoration. */
.workspace:not([data-assistant-mode="platform"]) .canvas .canvas-hero{
 min-height:0;padding:0;margin:0 0 20px;gap:12px;align-items:center;
}
.workspace:not([data-assistant-mode="platform"]) .canvas .canvas-hero .hero-img,
.workspace:not([data-assistant-mode="platform"]) .order-scene{display:none}
.workspace:not([data-assistant-mode="platform"]) .canvas .canvas-header h2,
.workspace:not([data-assistant-mode="platform"]) .canvas .canvas-hero h2,
.workspace:not([data-assistant-mode="platform"]) .order-hero h2{
 font-size:22px;line-height:1.3;letter-spacing:-.02em;
}
.workspace:not([data-assistant-mode="platform"]) .canvas .pill-dark,
.workspace:not([data-assistant-mode="platform"]) .canvas button.primary{
 min-height:44px;background:rgba(240,240,240,.85);border:1px solid #c8c8c8;color:var(--ag-ink);
 box-shadow:inset 0 1px 0 #fff;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.workspace:not([data-assistant-mode="platform"]) .canvas .pill-dark:hover:not(:disabled),
.workspace:not([data-assistant-mode="platform"]) .canvas button.primary:hover:not(:disabled){
 background:var(--ag-hover);border-color:#b5b5b5;color:var(--ag-ink);
}
.workspace:not([data-assistant-mode="platform"]) .canvas .pill-dark :is(.icon,.kicon),
.workspace:not([data-assistant-mode="platform"]) .canvas button.primary :is(.icon,.kicon){color:inherit;filter:none}
.workspace .pending-order-card{
 display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:560px;width:100%;
 margin:24px auto 0;padding:14px 16px;border:1px solid var(--ag-border);border-radius:16px;
 background:rgba(255,255,255,.72);text-align:left;font-size:14px;line-height:1.5;
}
.workspace .pending-order-card :is(p,small){margin:0;color:var(--ag-ink2);font-size:13px}
.workspace .pending-order-card button{flex:none;min-height:44px}
.workspace .buyer-summary,.workspace .comparison-summary{
 padding:16px 18px;margin:0 0 18px;border:1px solid var(--ag-border);border-radius:16px;
 background:rgba(255,255,255,.78);color:var(--ag-ink);font-size:14px;line-height:1.6;
}
.workspace :is(.buyer-summary,.comparison-summary) :is(h3,p){margin:0}
.workspace :is(.buyer-summary,.comparison-summary) p+p{margin-top:8px}
.workspace .product-ask{min-height:44px;white-space:normal;text-align:left;gap:8px}
@media(max-width:700px){
 .workspace:not([data-assistant-mode="platform"]) .mobile-tabs [data-act="cart"]{display:none}
 .workspace:not([data-assistant-mode="platform"]) .pd-info>.hero-actions{
  position:sticky;top:0;z-index:4;display:flex;flex-wrap:wrap;gap:8px;
  padding:12px 0;margin:8px 0;background:var(--ag-bg);border-bottom:1px solid var(--ag-border);
 }
 .workspace:not([data-assistant-mode="platform"]) .pd-info>.hero-actions>button{flex:1 1 auto;min-height:44px}
 .workspace .pending-order-card{align-items:flex-start;flex-wrap:wrap;gap:8px;padding:12px;margin-top:16px}
 .workspace .pending-order-card button{width:100%}
 .workspace .buyer-summary,.workspace .comparison-summary{padding:14px}
}
/* J-004/J-007: selected destinations and operator state use the same quiet neutral surface. */
.workspace:not([data-assistant-mode="platform"]) .mobile-tabs button.selected{background:var(--ag-hover);color:var(--ag-ink);border-bottom-color:var(--ag-border)}
.workspace:not([data-assistant-mode="platform"]) .handoff-ticket{background:rgba(255,255,255,.78);border:1px solid var(--ag-border)}
.workspace:not([data-assistant-mode="platform"]) .handoff-ticket .opt-ico{background:var(--ag-hover);color:var(--ag-ink)}
/* J-005: payment navigation stays outside the scrollable canvas beside close/expand. */
.workspace-controls button.workspace-back{width:auto;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-right:1px solid var(--ag-border);border-radius:18px 0 0 18px;font-size:14px}
.workspace:has(>.workspace-controls .workspace-back) .canvas>.canvas-header{padding-top:52px}
@media(max-width:700px){.workspace:has(>.workspace-controls .workspace-back) .canvas>.canvas-header{padding-top:0}}

/* Widget decoration uses the same neutral line icons as its controls. */
.workspace .canvas-hero .hero-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ag-muted);width:var(--ag-touch-target);height:var(--ag-touch-target)}
.workspace .canvas-hero .hero-symbol .icon{width:24px;height:24px}

/* J-004: category navigation and one composer alongside phone results. */
.workspace .catalog-directory{display:grid;gap:var(--product-panel-padding);margin-top:var(--product-row-padding)}
.workspace .catalog-department h3{margin:0;font-size:var(--product-body-size);font-weight:var(--product-heading-weight)}
.workspace .catalog-categories{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:var(--product-nav-padding);margin:var(--product-nav-padding) 0}
.workspace .catalog-categories button{min-height:var(--ag-touch-target);justify-content:space-between;gap:var(--product-nav-padding);padding:var(--product-row-padding);border-radius:var(--product-action-radius)}
.workspace .catalog-categories button span{flex:1}
.workspace .catalog-categories button .icon{flex:none}
@media(max-width:700px){
 .workspace[data-mobile="canvas"]:not(.no-assistant):not([data-assistant-mode="platform"]) .chat-panel{display:contents!important;opacity:1;pointer-events:auto}
 .workspace[data-mobile="canvas"]:not(.no-assistant):not([data-assistant-mode="platform"]) .chat-panel>.chat-top,
 .workspace[data-mobile="canvas"]:not(.no-assistant):not([data-assistant-mode="platform"]) .chat-panel>.chat-messages{display:none}
 .workspace[data-mobile="canvas"]:not(.no-assistant):not([data-assistant-mode="platform"]) .composer-wrap:not(.is-voice){position:absolute;left:0;right:0;bottom:58px;z-index:4;background:var(--ag-bg);padding:var(--product-nav-padding) var(--product-phone-padding)}
 .workspace[data-mobile="canvas"] .composer-wrap:not(.is-voice) .disclaimer{display:none}
 .workspace[data-mobile="canvas"]:not(.no-assistant):not([data-assistant-mode="platform"]):has(.composer-wrap:not(.is-voice)) .canvas{bottom:180px}
 .workspace[data-mobile="canvas"] .composer textarea{max-height:var(--ag-touch-target)}
 .workspace .catalog-categories{grid-template-columns:1fr}
}

/* Answer choices stay with their question; desktop is compact, touch targets remain usable. */
.workspace .msg-content .inline-answers{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;margin:8px 0 4px;padding:0;max-width:none}
.workspace .msg-content .inline-answers .clarify-chips{display:contents}
.workspace .msg-content .chat-suggestions.inline-answers.is-question button{height:auto;min-height:34px;min-width:0;padding:6px 12px;font-size:14px;line-height:20px;border-radius:10px;white-space:normal;background:var(--ag-surface);color:var(--ag-ink);border:1px solid var(--ag-border);box-shadow:none}
.workspace .msg-content .chat-suggestions.inline-answers.is-question button:hover{background:var(--ag-hover)}
.workspace .inline-answers .needs-progress{flex-basis:100%;margin:0 0 2px}
@media(pointer:coarse),(max-width:700px){.workspace .msg-content .chat-suggestions.inline-answers.is-question button{min-height:var(--ag-touch-target)}}
/* Shopper flow: clear next actions, with the existing storefront surfaces. */
.workspace .sales-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}
.workspace .sales-actions button{min-height:44px}
.workspace .selection-criteria{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;font-size:13px;color:var(--ag-ink2)}
.workspace .selection-criteria span{padding:5px 10px;border-radius:8px;border:1px solid var(--ag-border);background:var(--ag-surface)}
.workspace .comparison-launch{display:flex;justify-content:flex-end;margin:0 0 16px}
.workspace .compare-select[aria-pressed="true"]{background:var(--ag-hover);border-color:#b5b5b5}
.workspace .cart-feedback{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px;padding:16px;border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-surface)}
.workspace .cart-feedback p{margin:4px 0;font-size:14px;line-height:1.5}
.workspace .cart-feedback small{color:var(--ag-ink2);font-size:13px}
.workspace .cart-feedback .row{flex-wrap:wrap;gap:8px}
.workspace .cart-feedback.is-error{border-color:#d3c5ad}
.workspace .choice-changes{margin-bottom:20px}
.workspace .choice-changes p{margin:6px 0;font-size:14px}

/* A shopper keeps selection, purchase and the store's terms in one product panel. */
.workspace .pd-unified .pd-info{min-width:0}
.workspace .canvas .match-row.product-card{grid-template-columns:72px minmax(0,1fr);align-items:start}
.workspace .canvas .match-row.product-card .match-info{min-width:0}
.workspace .canvas .match-row.product-card .match-side{grid-column:2;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-items:start;min-width:0}
.workspace .canvas .match-row.product-card .match-side>.pc-stock{justify-self:end}
.workspace .canvas .match-row.product-card .match-side>.row{grid-column:1/-1;flex-wrap:wrap;justify-content:flex-start;gap:8px;min-width:0}
.workspace .canvas .match-row.product-card .match-side button{min-height:44px}
.workspace .pd-options .pd-option>div{display:flex;flex-wrap:wrap;gap:8px}
.workspace .pd-options .pd-option>span{display:block;margin-bottom:8px;font-size:13px;color:var(--ag-ink2)}
.workspace .pd-options button{min-height:40px}
.workspace .pd-options button:disabled{cursor:not-allowed}
.workspace .pd-full-variants{padding-top:8px;border-top:1px solid var(--ag-border)}
.workspace .canvas .pd-unified label.pd-quantity{display:flex;flex-direction:row;align-items:center;gap:16px;margin:8px 0;font-size:14px}
.workspace .canvas .pd-unified #pd-quantity{width:84px;flex:0 0 84px;min-height:44px;margin:0;padding:8px 10px;border:1px solid var(--ag-border);border-radius:14px;background:var(--ag-surface);color:var(--ag-ink);font:inherit;text-align:center}
.workspace .pd-purchase-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 12px}
.workspace .pd-purchase-actions>button{width:100%;min-height:48px;justify-content:center}
.workspace .pd-purchase-actions>.product-watch:only-child{grid-column:1/-1}
.workspace .pd-secondary-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.workspace .choice-save[aria-pressed=true]{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 35%,var(--ag-border))}
.workspace .choice-save[aria-pressed=true] svg{fill:color-mix(in srgb,var(--primary) 14%,transparent)}
.workspace .choice-refine{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
.workspace .choice-link{width:auto;min-height:40px;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ag-ink2);font:500 13px/1.4 var(--ag-font);display:inline-flex;gap:6px;align-items:center;justify-content:flex-start;cursor:pointer;text-underline-offset:4px}
.workspace .choice-refine>.choice-link{flex:0 0 auto}
.workspace .choice-link:hover{text-decoration:underline;color:var(--ag-ink)}
.workspace .choice-reasons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;padding:12px;border:1px solid var(--ag-border);border-radius:16px;background:var(--ag-surface)}
.workspace .choice-reasons>span{width:100%;font-size:13px;color:var(--ag-ink2)}
.workspace .choice-reasons>button{min-height:40px}
.workspace .product-watch{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:10px 0}
.workspace .product-watch>span{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.workspace .product-watch small{flex-basis:100%;font-size:12px;line-height:1.5;color:var(--ag-ink2)}
.workspace .pd-disclosures{margin-top:24px;border-top:1px solid var(--ag-border)}
.workspace .pd-disclosure{border-bottom:1px solid var(--ag-border)}
.workspace .pd-disclosure summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 0;list-style:none;font-size:15px;font-weight:600;cursor:pointer}
.workspace .pd-disclosure summary::-webkit-details-marker{display:none}
.workspace .pd-disclosure summary>span{font-size:18px;font-weight:400;transition:transform .16s ease}
.workspace .pd-disclosure[open] summary>span{transform:rotate(180deg)}
.workspace .pd-disclosure>div{padding-bottom:18px;font-size:14px;line-height:1.65}
.workspace .pd-disclosure p{margin:0 0 10px;overflow-wrap:anywhere}
.workspace .pd-disclosure p:last-child{margin-bottom:0}
.workspace .published-term{white-space:pre-line}
.workspace .pd-terms-hint{color:var(--ag-ink2);font-size:13px}
.workspace .choice-updates{margin:12px 0 24px;padding:16px;border:1px solid var(--ag-border);border-radius:18px;background:var(--ag-surface)}
.workspace .choice-updates>p{margin:0 0 12px;font-size:13px;color:var(--ag-ink2)}
.workspace .choice-update{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--ag-border)}
.workspace .choice-update b,.workspace .choice-update span{display:block;font-size:14px;line-height:1.5}
.workspace .choice-update span{font-size:13px;color:var(--ag-ink2)}
.workspace .saved-missing{padding:18px;border:1px solid var(--ag-border);border-radius:16px}
.workspace .pd-disclosure summary:focus-visible,.workspace .choice-link:focus-visible,.workspace .pd-quantity input:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
@media(max-width:700px){.workspace .mobile-bar{grid-template-columns:repeat(5,minmax(0,1fr))}.workspace .pd-unified .pd-stage{height:220px}.workspace .choice-link,.workspace .choice-reasons>button,.workspace .pd-options button{min-height:44px}.workspace .pd-purchase-actions{grid-template-columns:1fr}.workspace .choice-save{min-height:44px}}
@media(prefers-reduced-motion:reduce){.workspace .pd-disclosure summary>span{transition:none}}
.workspace .receiving-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:620px}
.workspace .receiving-choice{min-height:100px!important;display:flex;flex-direction:column;justify-content:center;gap:12px;font-size:16px}
.workspace .receiving-choice .icon{width:24px;height:24px}
.workspace .merchant-status .cta-row{flex-wrap:wrap}
.workspace .panel-reply{display:none}
@media(max-width:700px){
 .workspace .panel-reply{display:grid;grid-template-columns:22px minmax(0,1fr) 18px;gap:10px;align-items:start;width:100%;min-height:44px;padding:0 0 12px;margin:0 0 12px;border:0;border-bottom:1px solid var(--ag-border);border-radius:0;background:transparent;color:var(--ag-ink2);text-align:left;cursor:pointer}
 .workspace .panel-reply img{width:22px;height:22px;margin-top:2px}
 .workspace .panel-reply>span:not(.icon){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
 .workspace .panel-reply>.icon{width:18px;height:18px;margin-top:2px}
 .workspace .panel-reply:focus-visible{outline:2px solid var(--ag-ink2);outline-offset:4px}
 .workspace .cart-feedback{padding:14px;gap:8px}
 .workspace .cart-feedback .row{width:100%}
 .workspace .cart-feedback .row button{flex:1;min-height:44px;white-space:normal}
 .workspace .comparison-launch{justify-content:stretch}
 .workspace .comparison-launch button{width:100%}
 .workspace .compare-select{min-height:44px}
 .workspace .sales-actions{gap:6px}
 .workspace .sales-actions button{font-size:14px;white-space:normal}
 .workspace .receiving-options{grid-template-columns:1fr}
 .workspace .receiving-choice{min-height:84px!important;flex-direction:row}
 .workspace[data-view="products"] .canvas>.canvas-header:has(+.selection-criteria){display:none}
 .workspace.canvas-recs[data-view="comparison"] .canvas>.canvas-header:not(.canvas-hero){min-height:0;padding:4px 0 8px;margin-bottom:8px}
 .workspace[data-view="comparison"] .panel-reply{display:none}
 .workspace[data-view="comparison"] .comparison-summary{padding:0;margin:0 0 8px;border:0;background:transparent}
 .workspace[data-view="comparison"] .comparison-summary button{min-height:44px;padding:10px 12px;font-size:13px}
 .workspace[data-view="comparison"] .verdict{padding:10px 12px;margin:0 0 8px;font-size:13px;line-height:1.4}
 .workspace[data-view="comparison"] .verdict p{font-size:13px;line-height:1.4}
 .workspace[data-view="comparison"] .cmp-tools{margin:0 0 8px}
 .workspace[data-view="comparison"] .cmp-scroll-hint{font-size:12px;line-height:1.35;margin-bottom:8px}
 .workspace[data-view="comparison"] .cmpt th,.workspace[data-view="comparison"] .cmpt td{padding-block:8px}
 .workspace[data-view="comparison"] .cmpt thead b{font-size:13px;line-height:1.4}
 .workspace[data-view="comparison"] .cmpt-photo{max-height:56px;aspect-ratio:2}
}
/* F-113: account forms use the existing neutral dialog and storefront tokens. */
.buyer-account .form-stack label{color:var(--ag-ink2)}
.buyer-account .form-stack input{background:var(--ag-surface);color:var(--ag-ink);border-color:var(--ag-border)}
.buyer-account .form-stack input:focus-visible{border-color:var(--ag-ink2);outline:calc(var(--product-line-width) * 2) solid var(--ag-ink2);outline-offset:var(--product-answer-gap)}
.buyer-account .dialog-actions{flex-wrap:wrap}
.buyer-account .dialog-actions .primary,.buyer-account .buyer-account-submit .primary{background:var(--ag-ink);border-color:var(--ag-ink);color:var(--ag-surface);border-radius:var(--ag-action-radius);min-height:var(--product-action-height)}
.buyer-account .dialog-actions .primary:hover:not(:disabled),.buyer-account .buyer-account-submit .primary:hover:not(:disabled){background:var(--ag-action-hover);border-color:var(--ag-action-hover)}
.buyer-account .buyer-account-link{color:var(--ag-ink2);background:transparent;border-color:transparent;min-height:var(--ag-touch-target);font-size:var(--product-label-size);padding:0 var(--ag-step-tight-gap)}
.buyer-account .buyer-account-link:hover:not(:disabled){background:var(--ag-hover);color:var(--ag-ink)}
.buyer-account .buyer-google{display:flex;align-items:center;justify-content:center;min-height:var(--ag-touch-target);max-width:100%;overflow:hidden}
.buyer-account .signin-console:disabled{cursor:default}
.buyer-account .dialog{max-height:calc(100dvh - var(--product-page-inset));overflow-y:auto}
.buyer-account-entry .dialog header{gap:var(--ag-step-gap)}
.buyer-account-entry .dialog header .icon-button{width:var(--ag-touch-target);height:var(--ag-touch-target);flex:none}
.buyer-account-entry .form-stack,.buyer-account-entry .buyer-email-fields{display:grid;gap:var(--ag-step-gap)}
.buyer-account-entry .signin-hint{margin:0 0 var(--ag-step-tight-gap)}
.buyer-account-entry .form-stack input{min-height:var(--product-action-height);font-size:var(--product-body-size)}
.buyer-account-entry .buyer-account-divider{display:flex;align-items:center;gap:var(--ag-step-gap);margin:0;color:var(--ag-ink2);font-size:var(--product-caption-size);line-height:var(--product-body-line)}
.buyer-account-entry .buyer-account-divider::before,.buyer-account-entry .buyer-account-divider::after{content:"";height:var(--product-line-width);background:var(--ag-border);flex:1}
.buyer-account-entry .buyer-account-submit{display:grid;gap:var(--ag-step-tight-gap)}
.buyer-account-entry .buyer-account-submit .primary{width:100%;font-size:var(--product-label-size)}
.buyer-account-entry .dialog-error:empty,.buyer-account-entry [data-buyer-status]:empty,.buyer-account-entry .dialog-actions:empty{display:none}
.buyer-account-entry .buyer-account-switch{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 var(--ag-step-tight-gap);margin:0;color:var(--ag-ink2);font-size:var(--product-label-size)}
.buyer-account-entry .buyer-account-switch .buyer-account-link{color:var(--ag-ink);font-weight:var(--product-emphasis-weight);padding-inline:0}
.buyer-account-entry .buyer-account-recovery{display:flex;justify-content:flex-end}
.buyer-account-entry .buyer-account-recovery .buyer-account-link{padding-inline:0}
.buyer-account-entry .buyer-signin-help{font-size:var(--product-caption-size);color:var(--ag-ink2)}
.buyer-account-entry .buyer-signin-help summary{min-height:var(--ag-touch-target);display:flex;align-items:center;justify-content:center;gap:var(--ag-step-tight-gap);cursor:pointer;list-style:none;font-size:var(--product-caption-size)}
.buyer-account-entry .buyer-signin-help summary::-webkit-details-marker{display:none}
.buyer-account-entry .buyer-signin-help summary::after{content:"+"}
.buyer-account-entry .buyer-signin-help[open] summary::after{content:"−"}
.buyer-account-entry .buyer-signin-help p{margin:0 0 var(--ag-step-tight-gap);line-height:var(--product-body-line)}
.buyer-account-entry .buyer-account-guest{display:grid;border-top:var(--product-line-width) solid var(--ag-border);padding-top:var(--ag-step-tight-gap)}
.buyer-account-entry .buyer-account-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--ag-step-tight-gap);align-items:start}
.buyer-account-entry .buyer-account-secondary:has(.buyer-signin-help[open]),.buyer-account-entry .buyer-account-secondary:not(:has(.buyer-signin-help)){grid-template-columns:minmax(0,1fr)}
.buyer-account-entry .buyer-account-guest button{width:100%;min-height:var(--ag-touch-target);padding:0 var(--ag-step-tight-gap);border:0;background:transparent;color:var(--ag-ink2);font-size:var(--product-label-size);font-weight:var(--ag-control-weight)}
.buyer-account-entry .buyer-account-secondary .buyer-account-link{font-size:var(--product-caption-size)}
.buyer-account-entry .buyer-account-guest button:hover:not(:disabled){background:var(--ag-hover);color:var(--ag-ink)}
.buyer-account-entry button:focus-visible,.buyer-account-entry summary:focus-visible{outline:calc(var(--product-line-width) * 2) solid var(--ag-ink2);outline-offset:var(--product-answer-gap)}
