:root{color-scheme:light dark;--bg:#f5f7fa;--surface:#fff;--surface-2:#edf1f6;--text:#0d1726;--muted:#5e6a79;--line:#d8dee8;--blue:#1769e0;--blue-2:#0d55bf;--focus:#005fcc;--shadow:0 14px 40px rgba(24,45,76,.10);--radius:22px;--pull-distance:0px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,system-ui,sans-serif}
:root[data-theme=dark]{--bg:#0b111b;--surface:#131c29;--surface-2:#1a2636;--text:#f5f7fb;--muted:#aab5c4;--line:#2b394c;--blue:#5b9cff;--blue-2:#83b3ff;--focus:#85b8ff;--shadow:0 16px 44px rgba(0,0,0,.32)}
@media(prefers-color-scheme:dark){:root[data-theme=system]{--bg:#0b111b;--surface:#131c29;--surface-2:#1a2636;--text:#f5f7fb;--muted:#aab5c4;--line:#2b394c;--blue:#5b9cff;--blue-2:#83b3ff;--focus:#85b8ff;--shadow:0 16px 44px rgba(0,0,0,.32)}}
*{box-sizing:border-box}html{background:var(--bg);scroll-padding:88px 0 104px}body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.58}
.app-shell{min-height:100dvh}.sidebar{position:fixed;z-index:20;bottom:0;left:0;right:0;padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:color-mix(in srgb,var(--surface) 88%,transparent);border-top:1px solid var(--line);backdrop-filter:blur(22px) saturate(150%)}.brand{display:none}.tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.tab{display:flex;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:2px;border-radius:14px;color:var(--muted);font-size:11px;font-weight:600;transition:color .18s,background .18s}.tab svg{width:23px;height:23px}.tab.active{color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,transparent)}
main{max-width:1080px;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom));transform:translateY(var(--pull-distance));transition:transform .18s ease}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.eyebrow{display:block;color:var(--blue);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.topbar h1{margin:2px 0 0;font-size:25px;line-height:1.15;letter-spacing:-.03em}.icon-button,.close-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);transition:background .18s,border .18s}.hero{display:flex;min-height:270px;align-items:flex-end;justify-content:space-between;gap:28px;padding:28px;border:1px solid var(--line);border-radius:28px;background:radial-gradient(circle at 92% 10%,color-mix(in srgb,var(--blue) 22%,transparent),transparent 40%),linear-gradient(145deg,var(--surface),var(--surface-2));box-shadow:var(--shadow);overflow:hidden}.hero h2{max-width:650px;margin:15px 0 10px;font-size:clamp(34px,8vw,64px);line-height:.98;letter-spacing:-.055em}.hero p{max-width:620px;margin:0;color:var(--muted);font-size:17px}.status-pill,.card-kicker{color:var(--blue);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.primary,.secondary{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:12px 20px;border-radius:14px;font-weight:650;white-space:nowrap;transition:background .18s,transform .18s}.primary{border:1px solid var(--blue);background:var(--blue);color:#fff}.primary:hover{background:var(--blue-2)}.secondary{border:1px solid var(--line);background:var(--surface);color:var(--text)}.wide{width:100%;margin-top:10px}.content-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:18px}.card{min-height:190px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);transition:box-shadow .2s,transform .2s}.card h3{margin:12px 0 8px;font-size:21px;letter-spacing:-.025em}.card p{margin:0;color:var(--muted)}.text-button{min-height:44px;margin:12px 0 -8px;padding:0;border:0;background:transparent;color:var(--blue);font-weight:650}.assistant-button{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(82px + env(safe-area-inset-bottom));z-index:19;display:grid;place-items:center;width:50px;height:50px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--blue);box-shadow:var(--shadow)}
.sheet-backdrop{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:12px;background:rgba(2,8,18,.52);opacity:0;transition:opacity .16s}.sheet-backdrop[hidden]{display:none}.sheet-backdrop.visible{opacity:1}.sheet{position:relative;width:min(100%,480px);padding:16px 24px calc(24px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:0 30px 70px rgba(0,0,0,.3);transform:translateY(28px);transition:transform .22s ease}.visible .sheet{transform:none}.sheet-handle{width:38px;height:5px;margin:0 auto 18px;border-radius:9px;background:var(--line)}.close-button{position:absolute;top:18px;right:18px}.auth-mark{display:block;border-radius:18px}.sheet h2{margin:18px 0 6px;font-size:28px;letter-spacing:-.04em}.sheet>p{color:var(--muted)}.auth-status{min-height:24px;margin:14px 0 0}.overlay-open{overflow:hidden}.pull-indicator{position:fixed;z-index:60;top:calc(8px + env(safe-area-inset-top));left:50%;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);opacity:0;transform:translate(-50%,-50px);transition:opacity .16s,transform .16s}.pull-indicator.visible{opacity:1;transform:translate(-50%,0)}.pull-indicator span{width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%}.pull-indicator.ready span,.pull-indicator.refreshing span{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:700px){.content-grid{grid-template-columns:repeat(3,1fr)}.hero{padding:42px}.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}}
@media(min-width:980px){.app-shell{display:grid;grid-template-columns:240px 1fr}.sidebar{position:sticky;top:0;bottom:auto;height:100dvh;padding:26px 18px;border-top:0;border-right:1px solid var(--line);background:var(--surface);backdrop-filter:none}.brand{display:flex;align-items:center;gap:12px;margin:0 8px 34px;font-size:18px;font-weight:700}.brand img{border-radius:14px}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500}.tabs{display:flex;flex-direction:column;gap:6px}.tab{min-height:48px;justify-content:flex-start;flex-direction:row;gap:12px;padding:0 14px;font-size:15px}.tab.active{background:color-mix(in srgb,var(--blue) 12%,transparent)}main{width:100%;padding:38px 38px 60px}.assistant-button{right:30px;bottom:30px}}
@media(max-width:560px){.hero{min-height:320px;align-items:flex-start;justify-content:flex-end;flex-direction:column;padding:24px}.hero h2{font-size:clamp(32px,9.5vw,38px);letter-spacing:-.04em;overflow-wrap:anywhere}.hero .primary{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.catalog-search{margin:20px 0}.catalog-search label{display:block;margin-bottom:7px;font-weight:650}.catalog-search>div{display:flex;gap:8px}.catalog-search input{min-width:0;flex:1;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font-size:16px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.product-card{display:block;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.product-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px}.product-card h3{margin:8px 0 4px}.product-card p{margin:0;font-weight:700}.product-card small,.sku-row small{display:block;margin-top:6px;color:var(--muted)}.product-detail{display:grid;grid-template-columns:minmax(220px,420px) 1fr;gap:24px;margin-top:20px}.product-image{width:100%;border-radius:var(--radius)}.sku-row{display:grid;gap:4px;padding:14px 0;border-bottom:1px solid var(--line)}@media(max-width:700px){.product-detail{grid-template-columns:1fr}}
.assistant-sheet{max-height:min(760px,92dvh)}.assistant-log{min-height:120px;max-height:280px;overflow-y:auto;display:grid;gap:8px;margin:16px 0}.assistant-message{margin:0;padding:10px 12px;border-radius:14px;background:var(--surface-2)}.assistant-message.user{margin-left:15%;background:color-mix(in srgb,var(--blue) 15%,var(--surface))}.assistant-form textarea{width:100%;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:max(16px,1rem)}.assistant-actions{display:flex;gap:10px;justify-content:space-between;margin-top:10px}.assistant-actions button{display:inline-flex;align-items:center;gap:6px}.assistant-actions svg{width:18px;height:18px}
.public-page{max-width:920px}.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px;color:var(--muted);font-size:14px}.breadcrumbs a{color:var(--blue)}.public-header{padding:30px 0;border-bottom:1px solid var(--line);margin-bottom:28px}.public-header h1{font-size:clamp(34px,7vw,62px);line-height:1;margin:10px 0;letter-spacing:-.05em}.public-header p{max-width:680px;color:var(--muted);font-size:18px}.article-body{max-width:720px}.article-body h2{margin-top:36px;font-size:28px}.article-body p,.article-body li{font-size:18px;line-height:1.7}.article-body footer{margin-top:42px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}.article-body footer p{font-size:14px}

/* ---- Этап 06: магазин, формы, кабинет ---- */
svg{stroke-linecap:round;stroke-linejoin:round}
.stack{display:grid;gap:14px}.grow{flex:1}.muted{color:var(--muted)}.notice{margin:0;min-height:0;color:var(--muted)}.notice:empty{display:none}
input,select,textarea{font:inherit;font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-height:48px;width:100%}
textarea{min-height:72px;resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.field{display:grid;gap:6px}.field label{font-weight:650}.field.inline{grid-template-columns:auto 1fr;align-items:center}
.preview-banner{margin:0 0 16px;padding:10px 14px;border:1px dashed var(--blue);border-radius:14px;color:var(--text);background:color-mix(in srgb,var(--blue) 8%,transparent);font-size:14px}
.tab{position:relative}.tab-badge{position:absolute;top:2px;right:calc(50% - 26px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--blue);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.tab-badge[hidden]{display:none}
@media(min-width:980px){.tab-badge{position:static;margin-left:auto}}
.icon-button.small{width:44px;height:44px}.topbar>.eyebrow{flex:1;text-align:center}
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:none}.chip{flex:none;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:600}
.state-pill{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:13px;font-weight:650}
.state-pill.pending{background:color-mix(in srgb,var(--blue) 14%,transparent);color:var(--blue)}.state-pill.attention{background:color-mix(in srgb,#d97706 18%,transparent);color:#a15c00}
.state-pill.ok{background:color-mix(in srgb,#16a34a 16%,transparent);color:#15803d}.state-pill.muted{opacity:.8}
:root[data-theme=dark] .state-pill.attention{color:#fbbf24}:root[data-theme=dark] .state-pill.ok{color:#4ade80}
@media(prefers-color-scheme:dark){:root[data-theme=system] .state-pill.attention{color:#fbbf24}:root[data-theme=system] .state-pill.ok{color:#4ade80}}
.card{min-height:0}.card.line{min-height:0}.line-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.line-head h3{margin:0 0 4px;font-size:18px}.line-head p{margin:0}
.line-controls{display:flex;align-items:center;gap:10px;margin-top:12px}.qty{min-width:64px;text-align:center;font-weight:700}
.order-card{display:block;width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}.order-card p{margin:4px 0 0}
.plain-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.plain-list .row{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.summary{display:grid;grid-template-columns:minmax(90px,auto) 1fr;gap:6px 14px;margin:0}.summary dt{color:var(--muted)}.summary dd{margin:0;overflow-wrap:anywhere}
.check{display:flex;gap:12px;align-items:flex-start}.check input{width:24px;height:24px;min-height:24px;flex:none;margin-top:2px}
.sticky-actions{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));padding:6px 0;background:linear-gradient(transparent,var(--bg) 40%);z-index:5}
@media(min-width:980px){.sticky-actions{bottom:16px}}
.danger{color:#b42318;border-color:color-mix(in srgb,#b42318 40%,var(--line))}:root[data-theme=dark] .danger{color:#ff8a80}
.code-list{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);font:600 17px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;white-space:pre-wrap;user-select:all}
.segmented{display:flex;gap:6px;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.segmented button{flex:1;min-height:44px;padding:8px 12px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:650;white-space:nowrap}
.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.12)}.segmented.scroll-x{overflow-x:auto;scrollbar-width:none}
.filters{display:grid;gap:12px;grid-template-columns:1fr}@media(min-width:700px){.filters{grid-template-columns:1fr 1fr}}
.sku-controls{display:grid;gap:10px;margin-top:10px;max-width:360px}.sku-controls .primary{width:100%}.text-link{color:var(--blue);font-weight:650;text-decoration:underline}
.store-info{display:grid;gap:14px;margin-top:18px}.card.success{border-color:color-mix(in srgb,#16a34a 45%,var(--line))}
.auth-form{display:grid;gap:10px;margin-top:8px}.auth-form label{font-weight:650}
.sheet.dyn-sheet{max-height:92dvh;overflow-y:auto}.sheet-body{display:grid;gap:14px}.sheet-body h3{margin:6px 0 0}
body[data-tab=owner] .assistant-button{display:none}
.public-page{margin:0 auto}.topbar .eyebrow{margin:0}
.text-button{display:inline-flex;align-items:center}
@media(max-width:560px){.hero{min-height:240px}}
.sheet{max-height:94dvh;overflow-y:auto;overscroll-behavior:contain}
[hidden]{display:none!important}
.primary,.secondary{gap:8px}.secondary svg,.primary svg{width:20px;height:20px;flex:none}
.stack>*,.product-detail>*,.content-grid>*,.catalog-grid>*{min-width:0}.card,.sku-row{overflow-wrap:anywhere}
.segmented button{white-space:normal;min-width:0;padding:8px 6px;line-height:1.2}.segmented.scroll-x button{white-space:nowrap;flex:none}
.public-header h1,.product-detail h2,.hero h2{overflow-wrap:anywhere;hyphens:auto}
.product-detail{grid-template-columns:minmax(0,420px) minmax(0,1fr)}
@media(max-width:700px){.product-detail{grid-template-columns:minmax(0,1fr)}.public-header h1{font-size:clamp(28px,8vw,44px)}}
.product-detail p,.product-detail div,.public-page p{overflow-wrap:anywhere}
.primary,.secondary{white-space:normal;text-align:center;line-height:1.25;max-width:100%}
.segmented button{overflow-wrap:normal;word-break:normal;hyphens:none}

/* Approved mobile redesign, 21 October 2026. */
:root{--radius:18px;--dock-glass:rgba(255,255,255,.78);--dock-active:rgba(23,105,224,.11)}
:root[data-theme=dark]{--dock-glass:rgba(18,26,39,.78);--dock-active:rgba(255,255,255,.14)}
@media(prefers-color-scheme:dark){:root[data-theme=system]{--dock-glass:rgba(18,26,39,.78);--dock-active:rgba(255,255,255,.14)}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
main{padding:calc(14px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom))}
.preview-banner{font-size:12px;line-height:1.45;padding:9px 12px;border:0;border-radius:10px;background:var(--surface-2);color:var(--muted);margin-bottom:18px}
.topbar{position:relative;margin-bottom:20px;gap:12px}.topbar h1{font-size:27px;line-height:1.15;margin:0}.topbar .icon-button{background:transparent;border-color:transparent}
.hero{min-height:0;display:grid;gap:22px;padding:24px 20px;border-radius:22px;background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--blue) 5%,var(--surface)));box-shadow:none}
.hero h2{font-size:clamp(28px,7.7vw,36px);line-height:1.08;margin:0 0 14px;letter-spacing:-.04em;overflow-wrap:normal;hyphens:none}
.hero p{font-size:15px;line-height:1.55}.hero .primary{width:100%}
.content-grid{gap:12px;margin-top:14px}.card{padding:18px;border-color:color-mix(in srgb,var(--line) 75%,var(--surface));box-shadow:none}.card h3{font-size:19px;line-height:1.3;margin:0 0 8px}.card p{font-size:15px;line-height:1.55}
.card>.primary{margin-top:18px}.card.stack>.primary{margin-top:0}.section-label{font-size:14px;line-height:1.4;font-weight:600;color:var(--muted)}
.primary,.secondary{min-height:46px;padding:11px 18px;border-radius:13px}.guest-hint{background:transparent;border:0;padding:6px 4px;display:flex;align-items:center;gap:14px}.guest-hint p{flex:1;font-size:13px}.guest-hint .text-button{flex:none;margin:0}
.catalog-search{margin:0 0 12px}.catalog-search>div{gap:8px}.catalog-search input{border-radius:13px;min-height:46px}.catalog-search button{width:46px;min-width:46px;padding:0}.catalog-search button svg{width:21px;height:21px}
.catalog-summary{font-size:12px;line-height:1.5;margin:10px 0 16px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{padding:10px;border-radius:16px;min-width:0;display:flex;flex-direction:column;gap:0}.product-card img{display:block;aspect-ratio:1;width:100%;height:auto;object-fit:contain;background:#fff;border-radius:10px}.product-card h3,.product-card h2{font-size:14px;line-height:1.4;margin:10px 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.8em;overflow-wrap:anywhere}.product-card p{font-size:13px;line-height:1.4;margin-top:auto}.chips{flex-wrap:wrap;overflow:visible;gap:6px}.chip{padding:9px 12px;font-size:13px;min-height:44px}.segmented.scroll-x{flex-wrap:wrap;overflow:visible}
.sidebar{position:fixed;left:50%;right:auto;bottom:calc(2px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(420px,calc(100% - 32px));height:56px;padding:5px;border:1px solid color-mix(in srgb,var(--line) 65%,transparent);border-radius:28px;background:var(--dock-glass);backdrop-filter:blur(20px) saturate(130%);-webkit-backdrop-filter:blur(20px) saturate(130%);box-shadow:0 8px 28px rgba(20,35,55,.15),inset 0 1px 0 rgba(255,255,255,.3);z-index:30}
.tabs{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;height:44px;isolation:isolate}.tab{z-index:1;min-height:44px;min-width:44px;padding:0;border-radius:23px;justify-content:center;flex-direction:row;color:var(--muted);background:transparent;transition:color .2s}.tab.active{color:var(--blue);background:transparent}.tab svg{width:24px;height:24px;overflow:visible}.tab>span{display:none}.nav-active-pill{position:absolute;top:0;left:0;height:44px;width:var(--pill-width,20%);transform:translateX(var(--pill-x,0px));background:var(--dock-active);border-radius:23px;z-index:0;pointer-events:none}.tab-badge{top:0;right:calc(50% - 26px)}
.assistant-button{width:44px;height:44px;right:max(16px,env(safe-area-inset-right));bottom:calc(74px + env(safe-area-inset-bottom));box-shadow:0 4px 16px rgba(20,35,55,.1);z-index:29}
@media(max-width:350px){.sidebar{width:calc(100% - 24px)}main{padding-left:12px;padding-right:12px}.catalog-grid{gap:10px}.product-card{padding:8px}}
@media(min-width:700px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{grid-template-columns:1fr auto;align-items:end;padding:30px}.hero .primary{width:auto}.hero h2{font-size:40px}.product-card h3{font-size:16px}.product-card p{font-size:15px}}
@media(min-width:980px){.app-shell{display:block;padding-left:240px}.sidebar{left:0;top:0;bottom:auto;transform:none;width:240px;height:100dvh;padding:26px 18px;border:0;border-right:1px solid var(--line);border-radius:0;background:var(--surface);box-shadow:none;backdrop-filter:none}.brand{display:flex}.tabs{display:flex;flex-direction:column;height:auto;gap:6px}.tab{min-height:48px;justify-content:flex-start;gap:12px;padding:0 14px;border-radius:14px}.tab>span{display:inline}.tab.active{background:var(--dock-active)}.nav-active-pill{display:none}.tab-badge{position:static}.assistant-button{right:30px;bottom:30px}main{padding:30px 32px 70px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.topbar>div:first-child{min-width:0;flex:1}.topbar .topbar-actions{display:flex;align-items:center;gap:4px;flex:none}.topbar-actions .assistant-button{position:static;width:44px;height:44px;flex:none;box-shadow:none;background:var(--surface);border:1px solid var(--line)}
/* Compact sheets: keep headings, transcript and composer in separate areas. */
.sheet-backdrop{top:var(--sheet-viewport-top,0px);bottom:auto;height:var(--sheet-viewport-height,100dvh);padding:10px}
.sheet{padding:16px 20px calc(18px + env(safe-area-inset-bottom,0px));border-radius:24px;max-height:calc(var(--sheet-viewport-height,100dvh) - 20px)}
.sheet-handle{width:34px;height:4px;margin:0 auto 18px}
.sheet .close-button{top:12px;right:12px;width:44px;height:44px;background:transparent;border:0}
.sheet h2{font-size:24px;line-height:1.2;letter-spacing:-.03em;margin:0 0 12px;padding-right:42px}
.sheet p{font-size:15px;line-height:1.5}.sheet .auth-mark{width:40px;height:40px;border-radius:12px;margin:0 0 14px}
#auth-main>p{color:var(--muted);margin:0 0 18px}#auth-main .wide{margin-top:0;width:100%;min-height:46px}
#auth-main .auth-method{font-size:12px;text-align:center;margin:8px 0 16px;color:var(--muted)}
#auth-show-recovery{display:flex;justify-content:center;width:100%;margin:10px 0 0;font-size:14px;min-height:44px}
.auth-status:empty{display:none}.auth-status{margin:10px 0 0;min-height:0}
.assistant-sheet{display:flex;flex-direction:column;max-height:calc(var(--sheet-viewport-height,100dvh) - 20px);overflow:hidden}
.assistant-sheet>.sheet-handle{flex:none}.assistant-sheet>h2{flex:none;margin-bottom:8px}.assistant-sheet>p{flex:none;margin:0 0 16px;color:var(--muted);font-size:14px}
.assistant-log{display:flex;flex-direction:column;gap:8px;min-height:0;max-height:280px;overflow-y:auto;overscroll-behavior:contain;margin:0 0 16px;flex:0 1 auto}
.assistant-welcome{margin:0;padding:12px 14px;border-radius:14px;background:var(--surface-2);color:var(--muted);font-size:14px}
.assistant-form{flex:none;min-width:0}.assistant-composer{display:flex;align-items:flex-end;gap:6px;padding:6px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.assistant-composer textarea{display:block;flex:1;min-width:0;width:auto;min-height:44px;max-height:120px;height:44px;resize:none;border:0;border-radius:10px;padding:11px 4px;line-height:22px;font-size:16px;background:transparent;overflow-y:auto}
.assistant-composer .icon-button,.assistant-composer .primary{flex:none;width:44px;height:44px;min-height:44px;border-radius:13px;padding:0}.assistant-composer .icon-button{border:0;background:transparent}
.assistant-composer textarea:focus-visible{outline-offset:0;outline-width:2px}
.assistant-availability{color:var(--muted);font-size:12px!important;margin:8px 0 0}.assistant-availability:empty{display:none}
#assistant-transfer{margin:6px 0 0;min-height:44px;font-size:14px}.assistant-message{flex:none;font-size:14px}
@media(max-height:500px){.assistant-sheet{padding-top:10px;padding-bottom:10px}.assistant-sheet .sheet-handle{margin-bottom:10px}.assistant-sheet>p{display:none}.assistant-log{margin-bottom:8px;max-height:100px}.assistant-sheet h2{font-size:21px}.assistant-composer textarea{max-height:76px}}
.assistant-composer:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 16%,transparent)}
.assistant-composer textarea:focus-visible{outline:none}
/* AgentChat composer, adapted to the catalog assistant. */
.assistant-sheet .assistant-composer{display:block;width:100%;min-width:0;padding:8px 10px 10px;border:1px solid var(--line);border-radius:26px;background:var(--surface)}
.assistant-sheet #assistant-text{display:block;width:100%;min-width:0;min-height:44px;max-height:180px;padding:8px 4px;resize:none;border:0;border-radius:0;background:transparent;color:var(--text);font-size:16px;line-height:1.45;overflow-y:auto;outline:none}
.assistant-toolbar{display:flex;align-items:center;width:100%;min-width:0;gap:8px}.assistant-toolbar .icon-button,.assistant-toolbar #assistant-send{position:relative;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:9px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text)}
.assistant-toolbar #assistant-send{background:var(--blue);color:#fff}.assistant-toolbar #assistant-send:disabled{opacity:.4}.assistant-mode{flex:1 1 auto;min-width:0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assistant-toolbar-right{display:flex;gap:8px;flex:0 0 auto;align-items:center}
.assistant-toolbar .mic-icon-stop,.assistant-toolbar .mic-ring{display:none}.assistant-toolbar .recording{background:#c62828;color:#fff}.assistant-toolbar .recording .mic-icon-mic{display:none}.assistant-toolbar .recording .mic-icon-stop{display:block}.assistant-toolbar .recording .mic-ring{display:block;position:absolute;inset:-4px;border:2px dotted #c62828;border-radius:50%;animation:spin 2s linear infinite}.assistant-toolbar .transcribing{opacity:.5}.assistant-toolbar .transcribing .mic-ring{display:block;position:absolute;inset:0;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}
.assistant-attachments{display:flex;flex-wrap:wrap;gap:8px;max-height:160px;overflow-y:auto;margin-bottom:8px}.assistant-attachments:empty{display:none}.assistant-file{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;padding:7px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.assistant-file img{width:42px;height:42px;object-fit:cover;border-radius:8px}.assistant-file>span{min-width:0;flex:1}.assistant-file strong{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}.assistant-file small{display:block;font-size:11px;color:var(--muted)}.assistant-file button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:7px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text)}
.assistant-file-help{font-size:11px;color:var(--muted);line-height:1.4;margin:8px 0}.assistant-message p{margin:0}.assistant-message a{display:block;overflow-wrap:anywhere;margin-top:6px;font-size:13px}.assistant-message img{display:block;width:min(180px,100%);max-height:160px;object-fit:contain;border-radius:10px;margin-bottom:4px}.assistant-sheet #assistant-status{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.assistant-sheet #assistant-status .text-button{font-size:12px;margin:0;min-height:32px}.assistant-sheet .assistant-file-help{margin:6px 0}
@media(max-height:500px){.assistant-sheet .assistant-form{flex:0 1 auto;min-height:0;overflow-y:auto}.assistant-sheet #assistant-text{max-height:76px}.assistant-sheet .assistant-file-help{display:none}.assistant-sheet #assistant-availability{font-size:11px}.assistant-sheet #assistant-transfer{min-height:30px;margin-top:4px}}

/* Shared app identity: exact Supervision brand typography and theme colours. */
.app-brand{text-align:center;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;font-size:11px;line-height:1.4;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#6e6e73;margin:-4px 0 6px;user-select:none}
:root[data-theme=dark] .app-brand{color:#86868b}
@media(prefers-color-scheme:dark){:root[data-theme=system] .app-brand{color:#86868b}}

/* Yandex primary sign-in, compact centered brand and progressive disclosure. */
#auth-sheet .auth-mark{width:88px;height:88px;object-fit:contain;border-radius:24px;margin:0 auto 14px}
#auth-sheet #auth-title{text-align:center;padding:0;margin:0 0 8px;font-size:25px}
#auth-main>p{text-align:center;margin:0 0 22px}
.auth-primary-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:10px}
.auth-primary-row>a,.auth-primary-row>button{min-height:54px;border-radius:16px;font-size:15px;font-weight:600}
.yandex-button{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;color:#fff;background:#202124;text-decoration:none}
.yandex-button:hover{background:#343536;color:#fff}.yandex-letter{font-size:25px;font-weight:500;line-height:1;color:#ff453a}
#auth-main .auth-method{font-size:12px;margin:12px 0 18px}
.auth-other{border-top:1px solid var(--line);padding-top:4px}.auth-other summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;list-style:none}
.auth-other summary::-webkit-details-marker{display:none}.auth-other summary::after{content:'+';margin-left:10px;font-size:19px}.auth-other[open] summary::after{content:'−'}
.auth-other[open] .wide{margin-top:8px!important}#auth-sheet .auth-status{text-align:center}
@media(max-width:350px){.auth-primary-row{grid-template-columns:1fr}.auth-primary-row>button{min-height:44px}}

#auth-sheet:focus{outline:none}#auth-login{padding:10px 8px;white-space:nowrap;font-size:14px}
/* Empty orders and the Face ID offer/result share a compact rhythm. */
.empty-state .empty-state-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-2);color:var(--muted);margin-bottom:14px}
.empty-state .empty-state-icon svg{width:24px;height:24px}.empty-state h3{margin:0 0 8px}.empty-state>.primary{margin-top:18px}
.passkey-offer .sheet-body{gap:16px}.passkey-offer .sheet-body>p{margin:0;color:var(--muted);font-size:15px;line-height:1.5}
.passkey-offer .wide{margin-top:0}.passkey-offer .text-button{margin:0;justify-content:center}
.passkey-offer h2{margin-bottom:12px}.passkey-success .sheet-body{gap:20px}
.topbar-actions .icon-button,.topbar-actions .assistant-button{width:44px;height:44px;border:1px solid var(--line);background:var(--surface);color:var(--muted);box-shadow:none}
.topbar-actions svg{width:22px;height:22px}.topbar .topbar-actions{gap:8px}

/* Compact product detail, 2026-10-21 */
body:has(.product-page) .topbar{margin-bottom:14px}
.catalog-back{display:inline-flex;gap:8px;width:auto;padding:0 10px;border:0;background:transparent;font-size:15px;white-space:nowrap}
.product-page .public-header{padding:0;margin:0 0 16px;border:0}
.product-page .public-header h1{font-size:clamp(24px,5.7vw,34px);line-height:1.16;letter-spacing:-.035em;margin:0}
.product-page .product-detail{margin-top:0;gap:18px;align-items:start}
.product-photo{display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;cursor:zoom-in}
.product-photo .product-image{display:block;width:100%;height:clamp(180px,32dvh,280px);object-fit:contain;border-radius:0}
.product-description{font-size:15px;line-height:1.5;margin:0 0 14px;color:var(--muted)}
.product-purchase .sku-row{padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);gap:6px;margin-bottom:12px}
.product-purchase .sku-row h2{margin:0 0 4px;font-size:19px;line-height:1.25}
.product-purchase .sku-row p{margin:0;font-size:16px;font-weight:600}
.product-purchase .sku-row small{margin:0;font-size:14px}
.product-purchase .sku-row small[hidden]{display:none}
.product-purchase .sku-controls{max-width:none;margin-top:10px;gap:12px}
.quantity-label{font-size:14px;font-weight:600}
.quantity-stepper{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:220px;padding:3px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.quantity-stepper .icon-button{border:0;border-radius:10px;background:var(--surface)}
.quantity-stepper output{font-size:16px;font-weight:650;text-align:center}
.product-purchase #sku-status:empty{display:none}
.product-photo-expanded{display:block;width:100%;max-height:65dvh;object-fit:contain;background:#fff;border-radius:14px}
.product-photo-sheet{max-height:90dvh;overflow-y:auto}
@media(min-width:701px){.product-photo .product-image{height:360px}}

/* Transparent glass crab below the shared wordmark in both themes. */
.app-brand{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:10px}
.app-brand-logo{display:block;width:88px;height:88px;object-fit:contain;letter-spacing:normal;filter:drop-shadow(0 3px 7px rgba(25,89,128,.12))}

/* Compact storefront: products before the ordering guide. */
body[data-tab=home] .topbar{margin-bottom:14px}
body[data-tab=home] .topbar h1{font-size:24px;font-weight:650}
body[data-tab=home] .hero{padding:20px;gap:16px;border-radius:20px;align-items:start}
body[data-tab=home] .hero h2{font-size:28px;line-height:1.15;letter-spacing:-.035em;font-weight:650;margin:0 0 10px;max-width:430px}
body[data-tab=home] .hero p{font-size:15px;line-height:1.5;max-width:480px}
body[data-tab=home] .hero .primary{min-height:48px;font-size:16px}
.home-products{margin-top:24px}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.home-section-heading h2,.how-to-order h2{font-size:19px;line-height:1.3;font-weight:650;letter-spacing:-.02em;margin:0}
.home-section-heading>a{display:flex;align-items:center;min-height:44px;color:var(--blue);font-size:14px}
.home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.how-to-order{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.how-to-order ol{list-style:none;counter-reset:order-step;margin:16px 0 0;padding:0;display:grid;gap:16px}
.how-to-order li{position:relative;counter-increment:order-step;padding-left:34px}
.how-to-order li::before{content:counter(order-step);position:absolute;left:0;top:1px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:600}
.how-to-order strong{display:block;font-size:15px;line-height:1.4;font-weight:600;margin-bottom:3px}
.how-to-order li span{display:block;font-size:14px;line-height:1.5;color:var(--muted)}
@media(max-width:979px){.sidebar{box-shadow:0 5px 18px rgba(20,35,55,.09),inset 0 1px 0 rgba(255,255,255,.3)}}
@media(min-width:700px){body[data-tab=home] .hero{align-items:end}.home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.how-to-order ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}

/* Combined logo shares the title row, without a separate vertical brand block. */
main{position:relative}
.app-brand{position:absolute;z-index:1;top:calc(10px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);margin:0;gap:0;pointer-events:none}
.app-brand-logo{width:88px;height:88px;filter:none}
.topbar{min-height:80px}
@media(max-width:370px){.topbar h1{font-size:24px}.topbar .topbar-actions{gap:4px}}
@media(min-width:980px){.app-brand{top:22px}}
@media(max-width:370px){.topbar h1,body[data-tab=home] .topbar h1{font-size:22px}}
@media(max-width:370px){body[data-tab=profile] .topbar h1{font-size:20px}}
@media(min-width:371px) and (max-width:979px){body[data-tab=profile] .topbar h1{font-size:25px}}


:root[data-theme=dark] .app-brand-logo{filter:invert(1)}
@media(prefers-color-scheme:dark){:root[data-theme=system] .app-brand-logo{filter:invert(1)}}
