html,body,#dc-root{margin:0;width:100%;height:100%;color-scheme:light}
.preview-shell{padding:0!important;gap:0!important;min-height:var(--preview-height,100dvh)!important;display:block!important;background:var(--white)}
.preview-device{width:100%!important;padding:0!important;border-radius:0!important;box-shadow:none!important;background:var(--white)!important}
.preview-screen{width:100%!important;height:var(--preview-height,100dvh)!important;border-radius:0!important;padding-top:env(safe-area-inset-top);box-sizing:border-box}
.preview-content{top:env(safe-area-inset-top)!important;left:env(safe-area-inset-left)!important;right:env(safe-area-inset-right)!important;bottom:0!important}
.preview-chrome{display:none!important}
.preview-panel{display:none!important}
html[data-panel] .preview-panel{display:flex!important;position:fixed;right:0;top:0;bottom:0;overflow:auto;z-index:200;width:min(340px,90vw);padding:12px;background:#E9E4DD;box-sizing:border-box}
.demo-banner{flex:none;box-sizing:border-box;min-height:38px;display:flex;align-items:center;justify-content:center;padding:2px 12px;background:var(--brand-50,#FFF6EE);color:var(--ink-900,#14161A);font-size:14px;line-height:17px;text-align:center;z-index:100}
.demo-amount{display:block;padding:8px 12px;border-radius:8px;background:var(--brand-50,#FFF6EE);color:var(--ink-900,#14161A);font-size:14px;line-height:1.4;font-weight:400;letter-spacing:normal}
.preview-screen picture{display:contents}

.preview-menu-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.preview-menu-list>button{flex:none}

.preview-content [style*='overflow-y:auto']{overflow-anchor:none}

/* Native document flow owns forms and browser keyboard scrolling. */
html{height:auto;min-height:100%;overflow-x:clip;overflow-y:auto}
body{position:static;inset:auto;height:auto;min-height:100%;overflow:visible;overscroll-behavior:auto}
#dc-root{height:auto;min-height:100%}
.preview-shell{position:relative;inset:auto;height:auto!important;min-height:100dvh!important;overflow:visible;transform:none!important}
.preview-device{height:auto!important;min-height:100dvh}
.preview-screen{height:auto!important;min-height:100dvh;overflow:visible!important;display:block!important;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.preview-content{position:relative!important;inset:auto!important;height:auto;min-height:100dvh;overflow:visible!important}
[data-site-scroll]{flex:none!important;height:auto!important;overflow:visible!important;scrollbar-width:auto!important}
.preview-content input,.preview-content textarea,.preview-content select{font-size:max(16px,var(--fs-body))!important;scroll-margin-top:24px;scroll-margin-bottom:calc(120px + env(safe-area-inset-bottom,0px))}
.preview-content [data-kb-main]{scroll-margin-block:24px calc(120px + env(safe-area-inset-bottom,0px))}
html[data-native-focus] input,html[data-native-focus] textarea,html[data-native-focus] select,html[data-native-focus] [data-kb-main]{scroll-margin-bottom:24px}
.preview-island,.preview-island-backdrop{position:fixed!important;transition:transform 225ms ease-out!important;will-change:transform}
html[data-island-focus-hidden] .preview-island,html[data-island-scroll-hidden] .preview-island,
html[data-island-focus-hidden] .preview-island-backdrop,html[data-island-scroll-hidden] .preview-island-backdrop{transform:translateY(calc(100% + env(safe-area-inset-bottom,0px) + 48px))!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){.preview-island,.preview-island-backdrop{transition:none!important}}
.preview-overlay{position:fixed!important}
button[aria-label="Написать нам"]{position:fixed!important}
/* Chats: header -> scrollable feed -> ordinary final composer, within one dvh column. */
html[data-native-chat-mode] .preview-content{height:-webkit-fill-available;height:100dvh;min-height:0;display:flex!important;flex-direction:column}
html[data-native-chat-mode] [data-site-scroll],html[data-native-chat-mode] .preview-site-header,html[data-native-chat-mode] .preview-island,html[data-native-chat-mode] .preview-island-backdrop{display:none!important}
html[data-native-chat-mode=support] .preview-content > :not(.demo-banner):not([data-native-chat=support]){display:none!important}
[data-native-chat]{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;flex:1!important;display:flex;flex-direction:column;border-radius:0!important;box-shadow:none!important}
[data-native-chat] > [data-native-feed]{flex:1;min-height:0;overflow:auto!important;overscroll-behavior:contain}
[data-native-chat] > :last-child{position:static!important;flex:none}
/* FA-FEED-TOP: DS v1.3 — the first message sits right under the chat header, not above the composer */
[data-native-feed]::before{content:none}
html[data-native-focus] [data-native-options]{display:none!important}
.launch-form [data-kb-main]{position:static!important;transform:none!important}
html{scroll-padding-bottom:var(--preview-island-reserve,118px)}
html[data-native-focus]{scroll-padding-bottom:24px}

/* R15-2: only the feed may shrink/scroll; footer never depends on :last-child. */
[data-native-chat=assistant]{flex:1 1 0%!important;min-height:0!important;overflow:hidden;box-sizing:border-box}
[data-native-chat=assistant]>[data-native-feed]{flex:1 1 0%!important;min-height:0!important;overflow-y:auto!important}
[data-chat-composer]{position:static!important;flex:0 0 auto!important;min-height:min-content;box-sizing:border-box}
[data-chat-counter]{flex:0 0 auto}
[data-chat-limit]{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.4}
[data-assistant-input]:disabled{opacity:1;color:var(--assist-muted);background:var(--assist-surface-2)}
[data-chat-composer]>[data-motion-chips]{max-height:140px;overflow:auto}

/* Opaque menu beats every page layer, including toasts. */
[data-site-menu-backdrop]{position:fixed;inset:0;z-index:1000;background:rgba(20,22,26,.45);border:0;animation:bdIn 200ms var(--ease-enter)}
.preview-overlay[data-site-menu-panel]{position:fixed!important;z-index:1001!important;background:var(--white,#fff)!important;opacity:1;backdrop-filter:none!important;isolation:isolate;overflow:hidden;animation:ds-up-in 200ms var(--ease-enter) both}
[data-site-menu-panel] .preview-menu-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html[data-menu-open],html[data-menu-open] body{overflow:hidden!important;overscroll-behavior:none}
html[data-menu-open] .preview-island,html[data-menu-open] .preview-island-backdrop,html[data-menu-open] [data-motion-toast],html[data-menu-open] button[aria-label="Написать нам"]{visibility:hidden!important;pointer-events:none!important}
html[data-menu-open] .preview-content>[data-site-scroll]{pointer-events:none}
@media(prefers-reduced-motion:reduce){[data-site-menu-panel],[data-site-menu-backdrop]{animation:ds-opacity-in 120ms linear both!important}}

/* FA-FONT: everything adapters attach to <body> (toast, offline bar, exit copy host) uses the DS font, never the UA serif */
body{font-family:'Golos Text','Golos Fallback',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* FA-OVERFLOW: the 24px slide-in of a deeper screen must not widen the layout viewport (mobile Chrome zoom-out, iOS sideways jiggle) */
.preview-content{overflow-x:clip!important;overflow-y:visible!important}
/* FA-INTRO-HEAD: the assistant intro overlay (absolute, inset 0) is anchored to the chat column, not to the page under the demo bar */
[data-native-chat=assistant]{position:relative!important}
/* FA-PICTURE: with picture{display:contents} a <source> must not become a grid cell («О нас» photo/text grid) */
.preview-screen picture>source{display:none!important}
[data-fa-cbar]{position:sticky!important;bottom:0;z-index:5}

/* FA-MENU (owner audit 19.10): header stays active (no dimming), one cross in the header, full-width rows, groups, active item */
[data-site-menu-backdrop]{display:none!important}
.preview-overlay[data-site-menu-panel]{padding-top:4px!important;gap:0!important}
[data-site-menu-panel] .preview-menu-list{gap:0!important}
[data-fa-menu-head]{display:block;padding:20px 0 4px;font-size:13px;line-height:1.3;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-500,#5B626E)}
[data-fa-menu-head]:first-child{padding-top:8px}
[data-fa-menu-item]{align-self:stretch;width:100%;box-sizing:border-box;min-height:var(--btn-h-m,48px);padding:0 12px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--border,#E7E2DB);background:transparent;font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:var(--fs-bodyL);font-weight:600;color:var(--ink-900,#14161A);text-align:left;cursor:pointer;transition:background-color var(--t-btn,120ms) var(--ease,ease)}
[data-fa-menu-item][data-active=true]{background:var(--brand-50,#FFF6EE);color:var(--brand-ink,#B3520A);box-shadow:inset 3px 0 0 var(--brand,#F5822B)}
[data-fa-menu-item][data-soon=true]{color:var(--ink-500,#5B626E);font-weight:500}
[data-fa-soon]{flex:none;font-size:13px;font-weight:600;line-height:1;padding:6px 10px;border-radius:999px;background:var(--canvas,#F2EEE9);color:var(--ink-500,#5B626E)}
[data-fa-bigrow]{align-self:stretch!important;width:100%!important;box-sizing:border-box;justify-content:space-between!important;gap:16px;padding:0 12px!important;margin-top:12px;border-top:0!important;min-height:56px!important;text-align:left}
[data-fa-switch=false]{background:var(--ink-500,#5B626E)!important}
[data-fa-switch]{flex:none}
[data-fa-menu-danger]{align-self:stretch;width:100%;box-sizing:border-box;margin-top:12px;padding:0 12px;min-height:44px;display:flex;align-items:center;border:0;border-top:1px solid var(--border,#E7E2DB);background:transparent;font:inherit;font-size:var(--fs-body);font-weight:500;color:var(--ink-500,#5B626E);text-align:left;cursor:pointer}
[data-fa-menu-danger][data-active=true]{color:var(--brand-ink,#B3520A)}
/* FA-BIGFONT: chats live outside the zoomed page wrapper — scale their type tokens (×1.2, same as the page zoom) */
html[data-fa-big] [data-native-chat]{--fs-cap:15.6px;--fs-ui:18px;--fs-body:19.2px;--fs-bodyL:22.8px;--fs-h3:24px}
/* FA-BIGFONT: large amounts may wrap instead of running into the card padding */
html[data-fa-big] span[style*="white-space:nowrap"][style*="--fs-h3"],html[data-fa-big] span[style*="white-space: nowrap"][style*="--fs-h3"]{white-space:normal!important}/* React serialises inline styles with a space */
/* FA-BIGFONT: the chat header keeps its size (otherwise «Семейный помощник» is cut with an ellipsis); the conversation grows */
html[data-fa-big] [data-native-chat] > div:has(> button[aria-label="О помощнике"]){--fs-cap:13px;--fs-ui:15px;--fs-body:16px;--fs-bodyL:19px;--fs-h3:20px}
html[data-fa-big] [data-site-menu-panel]{--fs-cap:15.6px;--fs-ui:18px;--fs-body:19.2px;--fs-bodyL:22.8px}
/* FA-COUNTER: the DS strip under the header shows the counter; the footer copy stays in the DOM only as a stable status node */
[data-chat-counter]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap}

/* FA-ASSIST (fa-3): the assistant screen is pinned to the visual viewport — no document scroll, header and counter stay,
   only the feed height changes when the keyboard opens; the composer sits 8px above the keyboard (no safe-area then). */
html[data-fa-vv],html[data-fa-vv] body{overflow:hidden!important;overscroll-behavior:none!important}
html[data-fa-vv] .preview-content{position:fixed!important;left:0!important;right:0!important;top:var(--fa-vv-top,0px)!important;bottom:auto!important;height:var(--fa-vv-h,100dvh)!important;min-height:0!important}
html[data-fa-kbd] [data-chat-composer]{padding-bottom:8px!important}
/* FA-VV-REST (fa-4): without the keyboard the chat fills the whole window (edges, not a measured height). iOS reports the final
   visualViewport height late after blur, and a stale measurement left an empty strip under the composer. The page background
   under Safari's floating bottom bar (iOS 26) is the chat's own colour. */
html[data-fa-vv]:not([data-fa-kbd]) .preview-content{top:0!important;bottom:0!important;height:auto!important}
/* owner 25.10 18:51: a sign-in field (mail / code) with the keyboard open — the screen fits the visible area, the panel sits above the keyboard */
html[data-fa-vv][data-fa-kbd-auth] .preview-content{top:var(--fa-vv-top,0px)!important;bottom:auto!important;height:var(--fa-vv-h,100dvh)!important}
html[data-fa-kbd-auth] [data-fa-auth]{scroll-margin-bottom:12px}
html[data-fa-vv],html[data-fa-vv] body{background:var(--assist-bg)!important}
[data-native-chat=assistant]>[data-native-feed]{overscroll-behavior-y:contain}
/* FA-FOLLOW (fa-5): under the last element 72px (gap 8 + 48 + the feed's own 16; room for the floating «Остановить»/jump button) plus the
   reserve that lets the last question reach the top (--fa-spacer, shrinks as the answer grows). Smoothness is our own rAF easing. */
[data-native-chat=assistant]>[data-native-feed]{scroll-behavior:auto!important}
/* the room lives in the content, not in the padding: a scrolling flex item cannot shrink below its padding, and in a landscape phone
   with the keyboard a tall padding pushed the field under the keyboard (device matrix, fa-5) */
[data-native-chat=assistant]>[data-native-feed]::after{content:'';flex:none;height:calc(48px + var(--fa-spacer,0px));pointer-events:none}
/* FA-JUMP: «К новому ответу» floats above the composer — showing/hiding it never moves the conversation */
[data-native-chat=assistant] [data-chat-composer]{position:relative!important}
[data-chat-jump]{position:absolute!important;left:16px;bottom:calc(100% + 8px);z-index:3;box-shadow:0 4px 16px rgba(22,35,61,.16);white-space:nowrap}
/* FA-STOP: «Остановить» over the composer, right side (jump button — left), never resizes the composer */
[data-fa-stop]{position:absolute!important;right:16px;bottom:calc(100% + 8px);z-index:3;box-shadow:0 4px 16px rgba(22,35,61,.16)}
/* FA-PLACEHOLDER: on phones ≤390px the hint wrapped to a second, clipped line in the one-line field — one line, ellipsis */
[data-native-chat=assistant] textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* FA-CARET: the typing caret is the right border of the streamed text itself — a moving pseudo-element counted as layout shift */
[data-motion-caret]::after{content:none!important;display:none!important}
[data-motion-caret] [data-stream-text]:not(:empty){border-right:2px solid currentColor;padding-right:2px;animation:fa-caret 1s steps(1) infinite}
@keyframes fa-caret{0%,49%{border-right-color:currentColor}50%,100%{border-right-color:transparent}}
@media(prefers-reduced-motion:reduce){[data-motion-caret] [data-stream-text]{border-right:0!important;animation:none!important}}
/* FA-PAINT (fa-3): in the assistant feed the 2px-blur shadows were repainted on every scroll/typing frame (WebKit: 14–35 frames >32ms
   per scroll gesture, 0 without blur). Same offset and colour, no blur — visually a hairline, raster-cheap. */
[data-native-chat=assistant] [data-native-feed] [style*="1px 2px"]{box-shadow:0 1px 0 rgba(22,35,61,.08)!important}
/* FA-LIMIT: one orange action in view (DS v1.2) — the chat message already carries «Получить разбор»; the footer keeps the explanation only */
[data-chat-limit] button{display:none!important}
/* FA-AUDIO-CTA: the audio card is a plain column inside the row (no subgrid tracks), CTA under the title, no bottom button/refund slot */
[data-price-card][data-fa-audio=true]{display:flex!important;flex-direction:column;gap:12px}
[data-price-card][data-fa-audio=true]>:last-child:not(:first-child){display:none!important}
[data-price-card][data-fa-audio=true]>div:empty{display:none!important}
[data-fa-audio-cta]{margin-top:8px;width:100%}
/* FA-NAV: no taps through a transition — page controls ignore the pointer for 300ms after a tap-initiated navigation (keyboard, system Back unaffected) */
html[data-fa-nav-lock] .preview-content{pointer-events:none!important}
/* FA-SHORT: landscape phone with the keyboard open — keep header, feed and field; fold the demo bar and the counter strip */
html[data-fa-short] .demo-banner,html[data-fa-short] [data-fa-strip],html[data-fa-short] [data-fa-demo-field]{display:none!important}

/* FA-WORKS (fa-5): card padding per the reference — 16 on phones and 768 (Kit Home has no own 768), 24 from 1024 (desktop scheme) */
[data-fa-works-card]{padding:16px}
@media (min-width:1024px){[data-fa-works-card]{padding:24px}}

/* FA-EXCHANGE (fa-6): the demo exchange fills the window under the site header; its own plaque replaces the site demo plaque there;
   the site island hides on inner exchange screens and while a field inside the exchange has focus */
[data-fa-exchange-slot]{display:block;width:100%}
iframe[data-fa-exchange]{display:block;width:100%;height:calc(100dvh - var(--fa-ex-top,98px));border:0;background:#EAF3F1}html[data-theme=dark] iframe[data-fa-exchange]{background:#14201E}/* fa-10.2: no light frame before the exchange draws in the dark theme */
html[data-fa-exch] .demo-banner{display:none!important}
html[data-fa-exch] body{overflow:hidden}
html[data-fa-ex-inner] .preview-island,html[data-fa-ex-focus] .preview-island{visibility:hidden!important;pointer-events:none!important}

/* FA-ALEN (fa-6): «Как отвечать?» popover above the composer (theme C); paragraphs of a full answer keep their breaks */
[data-native-chat=assistant] [data-stream-text]{white-space:pre-line}
[data-fa-alen-pop]{position:absolute;left:16px;bottom:calc(100% + 8px);z-index:6;width:min(320px,calc(100% - 32px));box-sizing:border-box;background:var(--white);border:1px solid var(--assist-border);border-radius:16px;box-shadow:0 8px 24px rgba(22,35,61,.16);padding:8px;display:flex;flex-direction:column;gap:4px;animation:ds-up-in 200ms cubic-bezier(0,0,.2,1)}
[data-fa-alen-title]{font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:var(--fs-ui);font-weight:700;padding:8px 8px 4px;color:var(--ink-900)}
[data-fa-alen-pop] button{display:grid;grid-template-columns:1fr 24px;align-items:center;column-gap:8px;min-height:52px;padding:8px;border-radius:12px;text-align:left;background:transparent;color:var(--ink-900)}
[data-fa-alen-pop] button[aria-checked=true]{background:var(--assist-surface-2)}
[data-fa-alen-l]{font-size:var(--fs-ui);font-weight:700}
[data-fa-alen-h]{grid-column:1;font-size:var(--fs-cap);line-height:1.35;color:var(--assist-muted)}
[data-fa-alen-m]{grid-column:2;grid-row:1/span 2;color:var(--assist-focus);font-weight:700;text-align:center}
@media (prefers-reduced-motion:reduce){[data-fa-alen-pop]{animation:none}}

/* FA-M4 (fa-6): ДС v1.4 panels sit over the page — the bell panel under the site header, the compact offer above the island */
[data-fa-m4-bell]{position:fixed!important;top:var(--fa-m4-head,98px)!important;z-index:150;max-height:calc(100dvh - var(--fa-m4-head,98px) - 16px);overflow-y:auto}
/* fa-6: an entered page keeps no transform after its enter animation (fill «both» left matrix(1,0,0,1,0,0), which made the page the
   containing block of its position:fixed panels — the compact offer rendered at the page bottom, not above the island) */
[data-motion-page][data-motion-animation$="-in"]{animation-fill-mode:backwards!important}
/* SITE-QA 27.10 (owner №6): the same for the route animations fa-route-up/page/fade — a filled «both» kept matrix(1,0,0,1,0,0) on
   the page, so every position:fixed card inside it (the assistant consent card at the start of the calculator) was placed against
   the scrolled page and went under the browser's address bar */
[data-motion-animation^="fa-route"]{animation-fill-mode:backwards!important}
[data-fa-m4-compact]{position:fixed!important;bottom:var(--fa-m4-isl,122px)!important;z-index:140}
/* FA-JANK (fa-7): the offer moves with the island by transform only; --fa-m4-isl comes from the island layout box, so it no longer changes while scrolling */
[data-fa-m4-compact]{transition:transform var(--t-move) var(--ease-enter)}
html[data-island-scroll-hidden] [data-fa-m4-compact]{transition-timing-function:var(--ease-exit)}
html[data-island-scroll-hidden] [data-fa-m4-compact]{transform:translateY(calc(var(--fa-m4-isl,122px) - 16px))}
@media (prefers-reduced-motion:reduce){[data-fa-m4-compact]{transition:none}}

/* FA-DEMO-NOTE (fa-6 №30): one demo plaque, its text depends on the screen; the assistant has a quiet line above the field */
.demo-banner [data-fa-note-input]{display:none}
html[data-fa-input-screen] .demo-banner [data-fa-note-std]{display:none}
html[data-fa-input-screen] .demo-banner [data-fa-note-input]{display:inline}
[data-fa-demo-field]{display:block;font-size:var(--fs-cap,13px);line-height:16px;color:var(--assist-muted,var(--ink-500,#5B626E));text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* FA-TOKENS (fa-7, ДС v1.5 A «Тёмная тема — передача фронтенду»): semantic tokens. In the light theme they equal the values the
   prototype writes literally — the light site does not change. The dark values are in FA-THEME below. */
:root{--page:#FFFFFF;--surface-1:#FBF8F5;--surface-2:#F2EEE9;--surface-3:#FFFFFF;--accent-ink:#16233D;--accent-fill:#16233D;--on-accent-fill:#FFFFFF;--panel-strong:#16233D;--on-panel:#FFFFFF;--on-panel-2:#C9D5F5;--divider:#F2EEE9;--on-brand:#FFFFFF;--brand-50:#FFF6EE;--link:#B3520A;--focus:#16233D;--focus-input:#F5822B;--hover:rgba(22,35,61,0.06);--pressed:rgba(22,35,61,0.10);--disabled-bg:#F2EEE9;--disabled-ink:#98A0AD;--status-no-bg:#F9E1DC;--status-no:#A23B2A;--status-none-bg:#FBF8F5;--status-none:#5B626E;--demo-bg:#FBF1DA;--demo-ink:#6B4A00;--skel:#F2EEE9;--overlay:rgba(20,22,26,0.40);--shadow-pop:0 16px 40px rgba(22,35,61,0.16);--assist-bot-bg:#FFFFFF}
/* FA-CONSENT (fa-7, ДС v1.7): consent screen, proxy card, «Получить результат», document sheet, «Документы» */
[data-fc-gate],[data-fc-proxy],[data-fc-res]{display:flex;flex-direction:column;gap:12px;max-width:640px;width:100%;margin:0 auto 8px;color:var(--ink-900)}
[data-fc-h]{font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:26px;line-height:1.2;letter-spacing:-0.02em;font-weight:700;margin:0;text-wrap:balance;color:var(--ink-900)}
@media (min-width:700px){[data-fc-h]{font-size:30px}}
@media (min-width:1200px){[data-fc-h]{font-size:32px}}
[data-fc-qh]{font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:var(--fs-h3,22px);line-height:1.25;font-weight:700;margin:0;color:var(--ink-900)}
[data-fc-sub]{margin:0;font-size:var(--fs-body);line-height:1.45;color:var(--ink-700)}
[data-fc-lines]{margin:0;padding:0 0 0 20px;display:flex;flex-direction:column;gap:6px;font-size:var(--fs-body);line-height:1.45;color:var(--ink-700)}
[data-fc-card]{border-radius:var(--radius-card,16px);padding:12px 14px 2px;display:flex;flex-direction:column;transition:border-color 120ms cubic-bezier(0.2,0,0,1),background-color 120ms cubic-bezier(0.2,0,0,1)}
[data-fc-check]{display:flex;gap:12px;align-items:flex-start;text-align:left;min-height:44px;padding:4px 0;font-size:var(--fs-body);line-height:1.4;font-weight:600;color:var(--ink-900);background:none;border:0;cursor:pointer}
[data-fc-box]{flex:none;width:24px;height:24px;box-sizing:border-box;border-radius:7px;border:2px solid var(--ink-500);display:flex;align-items:center;justify-content:center;color:var(--on-accent-fill);font-size:15px;font-weight:700;margin-top:1px;transition:background-color 120ms cubic-bezier(0.2,0,0,1),border-color 120ms cubic-bezier(0.2,0,0,1)}
[data-fc-links]{display:flex;flex-wrap:wrap;column-gap:16px;padding:0 0 6px 36px}
[data-fc-links] button,[data-fc-link]{min-height:44px;font-size:var(--fs-ui,15px);font-weight:600;color:var(--link);text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0;text-align:left;align-self:flex-start;cursor:pointer}
[data-fc-hint]{font-size:var(--fs-cap,14px);line-height:1.45;color:var(--ink-700);padding:0 0 10px 36px}
[data-fc-res] [data-fc-hint],[data-fc-proxy] [data-fc-hint]{padding-left:0}
[data-fc-card] [data-fc-hint]{padding-left:36px}
[data-fc-err]{font-size:var(--fs-cap,14px);line-height:1.45;color:var(--status-no);font-weight:600;padding:0 0 10px 36px}
[data-fc-res] [data-fc-err]{padding:0}
[data-fc-field]{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600;color:var(--ink-900)}
[data-fc-field] input{width:100%;box-sizing:border-box;height:56px;border-radius:var(--radius-input,12px);padding:0 16px;font-size:17px;font-weight:400;background:var(--page);color:var(--ink-900);outline:none}
[data-fc-field] input:focus{border:2px solid var(--focus-input)!important;padding:0 15px}
[data-fc-field] input[data-fc-code]{font-size:24px;letter-spacing:0.3em;font-variant-numeric:tabular-nums}
[data-fc-primary],[data-fc-ok]{min-height:56px;border-radius:var(--radius-btn,14px);background:var(--brand);color:var(--on-brand);font-size:17px;font-weight:700;border:0;padding:8px 20px;width:100%;cursor:pointer}
[data-fc-ok]{background:var(--accent-fill);color:var(--on-accent-fill)}
[data-fc-second]{min-height:52px;border-radius:var(--radius-btn,14px);background:transparent;color:var(--accent-ink);border:2px solid var(--accent-ink);font-size:16px;font-weight:700;padding:8px 20px;width:100%;cursor:pointer}
[data-fc-note]{margin:-4px 0 0;font-size:14px;line-height:20px;color:var(--ink-700)}
[data-fc-sent]{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;font-size:15px;line-height:22px;color:var(--ink-700)}
[data-fc-sent] button{min-height:44px;color:var(--link);font-weight:600;text-decoration:underline;background:none;border:0;padding:0;cursor:pointer}
[data-fc-timer]{font-size:15px;color:var(--ink-500)}
[data-fc-hints]{margin:0;padding:0 0 0 20px;font-size:15px;line-height:1.45;color:var(--ink-700);display:flex;flex-direction:column;gap:4px}
[data-fc-demo]{color:var(--ink-500)!important;font-weight:500!important}
[data-fc-ifs]{font-size:var(--fs-cap,14px);line-height:1.45;color:var(--ink-500)}
[data-fc-give]{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;font-size:var(--fs-cap,14px);line-height:1.45;color:var(--ink-700)}
[data-fc-give] button{min-height:44px;color:var(--link);font-weight:600;text-decoration:underline;background:none;border:0;padding:0;cursor:pointer}
/* the questionnaire bar is replaced by the step's own button on «Получить результат» */
html[data-fc-result] div:has(> button[data-kb-main]){display:none!important}
/* sheet: 86 % of the height on the phone, a 560 px dialog on wide screens; ДС v1.3 Движение: 250 ms in, scrim 200 ms */
[data-fc-sheet-wrap]{position:fixed;inset:0;z-index:400;display:flex;align-items:flex-end;justify-content:center}
[data-fc-scrim]{position:absolute;inset:0;background:var(--overlay);animation:fc-fade 200ms cubic-bezier(0.2,0,0,1)}
[data-fc-sheet]{position:relative;width:100%;max-height:86%;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;background:var(--surface-3);color:var(--ink-900);border-radius:24px 24px 0 0;padding:24px 20px calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px;animation:fc-up 250ms cubic-bezier(0.2,0,0,1)}
[data-fc-sheet] h2{margin:0;font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:22px;line-height:1.25;font-weight:700;outline:none}
[data-fc-meta]{font-size:14px;color:var(--ink-500);margin-top:-8px}
[data-fc-shl]{margin:0;padding:0 0 0 22px;display:flex;flex-direction:column;gap:10px;font-size:var(--fs-body);line-height:1.5;color:var(--ink-700)}
@media (min-width:700px){[data-fc-sheet-wrap]{align-items:center}[data-fc-sheet]{width:560px;max-height:calc(100% - 120px);border-radius:24px;padding:24px;margin-bottom:24px}}
@keyframes fc-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes fc-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){[data-fc-sheet],[data-fc-scrim]{animation:none}[data-fc-card],[data-fc-box]{transition:none}}
[data-fc-docs]{display:flex;flex-direction:column;gap:12px;max-width:720px;width:100%;box-sizing:border-box;margin:0 auto;padding:var(--sec-y,32px) var(--page-x,16px);color:var(--ink-900)}
[data-fc-crumb]{font-size:var(--fs-cap,14px);color:var(--ink-500)}
[data-fc-doclist]{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--border)}
[data-fc-doclist] li{border-bottom:1px solid var(--border)}
[data-fc-doclist] button{width:100%;min-height:72px;display:flex;align-items:center;gap:12px;background:none;border:0;padding:12px 4px;text-align:left;color:var(--ink-900);cursor:pointer}
@media (hover:hover){[data-fc-doclist] button:hover{background:var(--hover)}}
[data-fc-dn]{flex:1;display:flex;flex-direction:column;gap:4px;font-size:var(--fs-body);font-weight:600}
[data-fc-dv]{font-size:14px;font-weight:400;color:var(--ink-500)}
[data-fc-new]{flex:none;padding:2px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:13px;font-weight:700}
[data-fc-arr]{color:var(--brand-ink)}
[data-fc-doc]{font-size:17px;line-height:28px;color:var(--ink-700);max-width:680px}
[data-fc-doc] p{margin:0 0 12px}
[data-fc-docact]{display:flex;flex-direction:column;gap:4px;max-width:360px}
/* FA-ASSIST16 (fa-7, ДС v1.6 «Экран помощника»): no header, the feed under the status bar and the island, top/bottom fade, two floating
   glass buttons, one floating field. Scope: html[data-fa-a16] = the assistant chat (the panel before it keeps its own layout). */
:root{--on-assist-accent:#FFFFFF;--assist-bg-0:rgba(241,239,249,0);--assist-glass:rgba(255,255,255,0.8);--assist-glass-bd:rgba(22,35,61,0.12);--assist-shadow:rgba(22,35,61,0.08);--assist-blur:blur(20px) saturate(1.4);--assist-scrim:rgba(20,22,26,0.32)}
[data-a16-cnt]{display:none}
html[data-fa-a16] .demo-banner,html[data-fa-a16] [data-fa-strip]{display:none!important}
html[data-fa-a16] .preview-screen{padding-top:0!important}
html[data-fa-a16] [data-native-chat=assistant]{position:relative!important;background:var(--assist-bg)}
html[data-fa-a16] [data-native-chat=assistant]::before,html[data-fa-a16] [data-native-chat=assistant]::after{content:'';position:absolute;left:0;right:0;z-index:5;pointer-events:none}
html[data-fa-a16] [data-native-chat=assistant]::before{top:0;height:calc(env(safe-area-inset-top,0px) + 62px);background:linear-gradient(var(--assist-bg) env(safe-area-inset-top,0px),var(--assist-bg-0))}
/* Keep the fade box fixed while the composer is measured: only its painted background changes size. */
html[data-fa-a16] [data-native-chat=assistant]::after{bottom:0;height:100%;background:linear-gradient(var(--assist-bg-0),var(--assist-bg) 24px) bottom / 100% calc(max(8px,env(safe-area-inset-bottom,0px)) + var(--fa-cmp-h,112px) / 2 + 24px) no-repeat}
html[data-fa-a16][data-fa-kbd] [data-native-chat=assistant]::after{background-size:100% calc(8px + var(--fa-cmp-h,112px) / 2 + 24px)}
html[data-fa-a16] [data-native-chat=assistant]>[data-native-feed]{position:absolute!important;inset:0;box-sizing:border-box;padding:calc(env(safe-area-inset-top,0px) + 58px) max(20px,calc((100% - 680px) / 2),env(safe-area-inset-right,0px)) calc(max(8px,env(safe-area-inset-bottom,0px)) + var(--fa-cmp-h,112px) + 16px) max(20px,calc((100% - 680px) / 2),env(safe-area-inset-left,0px))!important;gap:20px!important}
html[data-fa-a16][data-fa-kbd] [data-native-chat=assistant]>[data-native-feed]{padding-bottom:calc(8px + var(--fa-cmp-h,112px) + 16px)!important}
html[data-fa-a16] [data-native-feed] [data-stream-text]{line-height:26px!important}
@media (min-width:1024px){html[data-fa-a16] [data-native-feed] [data-stream-text]{line-height:28px!important}}
/* top buttons: «Назад» (left) and the counter (right), glass 80 % + blur 20, 44 px */
html[data-fa-a16] [data-fa-ahead]{position:absolute!important;top:calc(env(safe-area-inset-top,0px) + 6px);left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));z-index:6;min-height:0!important;padding:0!important;border:0!important;background:none!important;display:flex!important;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}
@media (min-width:768px){html[data-fa-a16] [data-fa-ahead]{left:max(12px,calc((100% - 720px) / 2));right:max(12px,calc((100% - 720px) / 2))}}
html[data-fa-a16] [data-fa-ahead]>*{pointer-events:auto}
html[data-fa-a16] [data-fa-ahead]>div,html[data-fa-a16] [data-fa-ahead]>button[aria-label="О помощнике"],html[data-fa-a16] [data-fa-ahead]>span{display:none!important}
html[data-fa-a16] [data-fa-ahead]>button:not([data-a16-cnt]):not([aria-label="О помощнике"]),html[data-fa-a16] [data-a16-cnt]{height:44px;min-height:44px!important;box-sizing:border-box;background:var(--assist-glass);-webkit-backdrop-filter:var(--assist-blur);backdrop-filter:var(--assist-blur);border:1px solid var(--assist-glass-bd);box-shadow:0 2px 8px var(--assist-shadow);color:var(--ink-900)!important}
html[data-fa-a16] [data-fa-ahead]>button:not([data-a16-cnt]):not([aria-label="О помощнике"]){width:44px;min-width:44px!important;padding:0!important;border-radius:50%;font-size:0!important;gap:0!important;justify-content:center}
html[data-fa-a16] [data-fa-ahead]>button:not([data-a16-cnt]):not([aria-label="О помощнике"])>span{font-size:22px!important;line-height:1}
html[data-fa-a16] [data-a16-cnt]{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:0 16px;border-radius:22px;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}
[data-a16-dot]{display:none;width:8px;height:8px;border-radius:50%;background:var(--brand)}
html[data-fa-a16] [data-a16-cnt][data-tone=last]{background:var(--brand-soft);color:var(--brand-ink)!important;border-color:transparent}
html[data-fa-a16] [data-a16-cnt][data-tone=last] [data-a16-dot]{display:block}
html[data-fa-a16] [data-a16-cnt][data-tone=out]{background:var(--assist-accent);color:var(--on-assist-accent)!important;border-color:transparent}
/* the floating field: radius 24, glass; inside — the line, the textarea (1–5 lines), a 44 px row: the mode pill and «Отправить» */
html[data-fa-a16] [data-native-chat=assistant] [data-chat-composer]{position:absolute!important;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:max(8px,env(safe-area-inset-bottom,0px));max-width:720px;margin:0 auto;z-index:6;box-sizing:border-box;border-radius:24px;background:var(--assist-glass)!important;-webkit-backdrop-filter:var(--assist-blur);backdrop-filter:var(--assist-blur);border:1px solid var(--assist-glass-bd)!important;border-top:1px solid var(--assist-glass-bd)!important;box-shadow:0 2px 8px var(--assist-shadow);padding:8px 6px 4px 16px!important;gap:2px!important}
html[data-fa-a16][data-fa-kbd] [data-native-chat=assistant] [data-chat-composer]{bottom:8px}
html[data-fa-a16] [data-chat-composer]:focus-within{border-color:var(--assist-focus)!important}
html[data-fa-a16] [data-fa-demo-field]{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;font-size:13px!important;line-height:16px!important;color:var(--assist-muted)!important;padding:0 10px 2px 0!important;text-align:left!important;margin:0!important;background:none!important}
html[data-fa-a16] [data-fa-demo-field] b{font-weight:700}
html[data-fa-a16] [data-fa-crow]{display:grid!important;grid-template-columns:auto 1fr auto;grid-template-areas:"ta ta ta" "pill . send";gap:2px 8px!important;align-items:center!important}
html[data-fa-a16] [data-fa-crow]>textarea{grid-area:ta;border:0!important;outline:none!important;background:transparent!important;box-shadow:none!important;padding:4px 10px 4px 0!important;font-size:17px!important;line-height:24px!important;min-height:32px!important;color:var(--ink-900)!important;border-radius:0!important}
html[data-fa-a16] [data-fa-crow]>textarea::placeholder{color:var(--assist-muted)}
html[data-fa-a16] [data-fa-crow]>[data-fa-alen-btn]{grid-area:pill}
html[data-fa-a16] [data-fa-crow]>button[aria-label="Отправить вопрос"]{grid-area:send;width:44px!important;height:44px!important;min-height:44px!important;border-radius:50%!important;padding:0!important}
[data-fa-alen-btn]{position:relative;height:32px;padding:0 10px 0 12px;border-radius:16px;border:0;background:var(--assist-surface-2);color:var(--ink-900);font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;cursor:pointer}
[data-fa-alen-btn]::before{content:'';position:absolute;inset:-6px -2px}
[data-fa-alen-caret]{font-size:11px;color:var(--assist-muted)}
html[data-fa-a16-ask] [data-fa-alen-btn]{visibility:hidden}
html[data-fa-a16] [data-fa-alen-pop]{left:8px;bottom:calc(100% + 8px)}
/* «Остановить» lives inside the field in place of «Отправить» (ДС v1.6, отступление 2) */
html[data-fa-a16] [data-fa-stop]{right:6px!important;bottom:4px!important;width:44px;height:44px;min-height:44px!important;padding:0!important;border-radius:50%!important;font-size:0!important;box-shadow:none!important;background:var(--assist-accent)!important;color:var(--on-assist-accent)!important;display:flex!important;align-items:center;justify-content:center;border:0!important}
html[data-fa-a16] [data-fa-stop]::before{content:'';width:14px;height:14px;border-radius:3px;background:currentColor}
html[data-fa-a16] [data-chat-composer]:has([data-fa-stop]) [data-fa-crow]>button[aria-label="Отправить вопрос"]{visibility:hidden}
/* «↓ Дальше / К новому ответу» — one button centred over the field (ДС v1.6, отступление 3) */
html[data-fa-a16] [data-chat-jump]{left:50%!important;transform:translateX(-50%);bottom:calc(100% + 12px)!important;min-height:44px;border-radius:22px!important;background:var(--assist-glass)!important;-webkit-backdrop-filter:var(--assist-blur);backdrop-filter:var(--assist-blur);border:1px solid var(--assist-glass-bd)!important;color:var(--ink-900)!important;box-shadow:0 2px 8px var(--assist-shadow)!important}
/* hints only on the empty screen, over the field, up to two lines, no ellipsis (отступление 8) */
html[data-fa-a16] [data-chat-composer]>[data-motion-chips]{position:absolute!important;left:0;right:0;bottom:calc(100% + 12px);max-height:none!important;overflow:visible!important}
html[data-fa-a16] [data-motion-chips] button{white-space:normal!important;text-align:left;overflow:visible!important;text-overflow:clip!important;background:var(--assist-bot-bg)!important;border:1px solid var(--assist-chip-bd)!important;color:var(--ink-900)!important}
html[data-fa-a16] [data-motion-chips] button *{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
html[data-fa-a16][data-fa-kbd] [data-motion-chips],html[data-fa-a16-ask] [data-motion-chips]{display:none!important}
/* the question bubble: accent, no shadow; the answer: no bubble (отступление 5) */
html[data-fa-a16] [data-fa-msg] > div{box-shadow:none!important}
html[data-fa-a16] [data-fa-msg=b] > div{border:0!important}
/* landscape phone: one row — pill, field, send; the line folds into the hint */
@media (max-height:500px){html[data-fa-a16] [data-fa-crow]{grid-template-areas:"pill ta send";align-items:center!important}html[data-fa-a16] [data-native-chat=assistant] [data-chat-composer]{padding:6px 6px 6px 8px!important}html[data-fa-a16] [data-native-chat=assistant]>[data-native-feed]{padding-top:calc(env(safe-area-inset-top,0px) + 12px)!important;padding-left:max(76px,calc((100% - 680px) / 2))!important;padding-right:max(76px,calc((100% - 680px) / 2))!important}html[data-fa-a16] [data-fa-ahead]{top:8px}}
@media (prefers-reduced-transparency:reduce){html[data-fa-a16] [data-fa-ahead]>button:not([data-a16-cnt]):not([aria-label="О помощнике"]),html[data-fa-a16] [data-a16-cnt][data-tone=n],html[data-fa-a16] [data-native-chat=assistant] [data-chat-composer],html[data-fa-a16] [data-chat-jump]{background:var(--assist-bot-bg)!important;-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--assist-chip-bd)!important}}
/* the panel before the chat: only «Что умеет помощник» and «Начать» */
[data-fa-aintro]{max-width:560px;margin:0 auto;padding:32px var(--page-x,16px) 16px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;color:var(--ink-900)}
[data-fa-aintro]+div{display:none!important}
[data-fa-aintro-mark]{width:72px;height:72px;border-radius:20px;background:var(--brand);color:#FFFFFF;font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-weight:700;font-size:29px;letter-spacing:-0.04em;display:flex;align-items:center;justify-content:center;animation:breathe7 1.6s cubic-bezier(0.4,0,0.2,1) infinite}
@media (prefers-reduced-motion:reduce){[data-fa-aintro-mark]{animation:none}}
[data-fa-aintro] h1{margin:0;font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-0.02em}
[data-fa-aintro-cap]{font-size:var(--fs-body);font-weight:600;color:var(--ink-700)}
[data-fa-aintro] ol{margin:0;padding:0;list-style:none;counter-reset:a;display:flex;flex-direction:column;gap:12px;font-size:var(--fs-body);line-height:1.45}
[data-fa-aintro] li{counter-increment:a;display:flex;gap:12px;align-items:center}
[data-fa-aintro] li::before{content:counter(a);flex:none;width:32px;height:32px;border-radius:50%;background:var(--assist-accent);color:var(--on-assist-accent);font-weight:700;display:flex;align-items:center;justify-content:center}
/* the counter sheet */
[data-a16-head]{display:flex;align-items:center;justify-content:space-between;gap:12px}
[data-a16-head] button{width:44px;height:44px;border:0;background:none;font-size:20px;color:var(--ink-700);cursor:pointer}
[data-a16-left]{margin:0;font-size:var(--fs-body);line-height:1.45;color:var(--ink-700)}
[data-a16-left] b{color:var(--ink-900)}
[data-a16-cap]{font-size:14px;font-weight:600;color:var(--ink-500);margin-top:4px}
[data-a16-modes]{display:flex;flex-direction:column;gap:4px}
[data-a16-modes] button{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 12px;border-radius:12px;border:0;background:transparent;text-align:left;color:var(--ink-900);cursor:pointer}
[data-a16-modes] button[aria-checked=true]{background:var(--assist-surface-2)}
[data-a16-ml]{flex:1;display:flex;flex-direction:column;gap:2px;font-size:15px}
[data-a16-ml] span{font-size:13px;color:var(--assist-muted)}
[data-a16-mk]{color:var(--assist-focus);font-weight:700}
/* FA-ASSIST16: under the full-screen feed the empty ::after spacer is inside the visible clip and every resize of it was counted as layout
   shift (desktop CLS 0.29). The same room is a margin of the last turn — a margin is not a box and does not "shift". */
/* ETALON-V1: the same in the etalon chat (fa-assist16 is off there; html[data-fa-chat] — fa-etalon.js, the chat is on screen): Android CLS 0.256 */
html[data-fa-a16] [data-native-chat=assistant]>[data-native-feed]::after,html[data-fa-chat] [data-native-chat=assistant]>[data-native-feed]::after{content:none!important}
html[data-fa-a16] [data-native-chat=assistant]>[data-native-feed]>:last-child,html[data-fa-chat] [data-native-chat=assistant]>[data-native-feed]>:last-child{margin-bottom:calc(56px + var(--fa-spacer,0px))!important/* 8 (the gap the ::after had) + 48 */}
/* FA-THEME (fa-7, ДС v1.5 A «Тёмная тема — вариант A», утверждён владельцем 20.10): the dark values of every token. Depth by lightness
   (page < surface-1 < surface-2 < surface-3), no shadows; elements that were separated only by a shadow get a border. */
html[data-theme="dark"]{color-scheme:dark;--page:#121315;--surface-1:#1B1D20;--surface-2:#25272B;--surface-3:#303237;--canvas:#1B1D20;--white:#121315;
 --ink-900:#F1F2F4;--ink-700:#CDD0D6;--ink-500:#A3A8B1;--ink-300:#7A7F88;--navy-900:#C9D5F5;--accent-ink:#C9D5F5;--accent-fill:#C9D5F5;--on-accent-fill:#121315;--panel-strong:#22314F;--on-panel:#FFFFFF;--on-panel-2:#C9D5F5;
 --border:#34373C;--border-strong:#80858F;--divider:#2A2C30;--brand:#F5822B;--brand-hover:#DE6B14;--on-brand:#FFFFFF;--brand-soft:#3D2716;--brand-50:#2A1F17;--brand-ink:#FFAE70;--link:#FFAE70;--focus:#F1F2F4;--focus-input:#F5822B;
 --hover:rgba(255,255,255,0.06);--pressed:rgba(255,255,255,0.12);--disabled-bg:#25272B;--disabled-ink:#7A7F88;
 --status-ok-bg:#16291F;--status-ok:#7FD6A8;--status-info-bg:#232A38;--status-info:#C9D5F5;--status-teal-bg:#162926;--status-teal:#7FD1C3;--status-none-bg:#25272B;--status-none:#A3A8B1;--status-warn-bg:#2E2611;--status-warn:#F2CF7A;--status-no-bg:#351C19;--status-no:#FFA899;--teal:#7FD1C3;--status-teal-bd:#2A403C;--status-info-bd:#3A4458;
 --assist-bg:#1A1925;--assist-bg-0:rgba(26,25,37,0);--assist-surface-2:#262437;--assist-accent:#CFC8F5;--on-assist-accent:#1A1925;--assist-bot-bg:#23222F;--assist-bot-bd:#33314A;--assist-border:#35324D;--assist-chip-bd:#6E6899;--assist-muted:#B6B2CF;--assist-focus:#A99BFF;
 --assist-glass:rgba(35,34,47,0.8);--assist-glass-bd:rgba(255,255,255,0.12);--assist-shadow:rgba(0,0,0,0.32);--assist-scrim:rgba(0,0,0,0.5);
 --xch-bg:#14201E;--xch-surface-2:#1C2D2A;--xch-accent:#7FD1C3;--on-xch-accent:#0F1A18;--xch-border:#2A403C;--xch-muted:#A7BFBA;
 --demo-bg:#2E2611;--demo-ink:#F2CF7A;--skel:#2A2C30;--overlay:rgba(0,0,0,0.60);--shadow-pop:none}
html[data-theme="dark"] body{background:var(--page);color:var(--ink-900)}
html[data-theme-switching] *,html[data-theme-switching] *::before,html[data-theme-switching] *::after{transition:none!important}
/* no shadows in the dark theme — the island, the menu and the bell get a border instead */
html[data-theme="dark"] [style*="box-shadow"]{box-shadow:none!important}
html[data-theme="dark"] .preview-island,html[data-theme="dark"] [data-site-menu-panel]{box-shadow:none!important;border:1px solid var(--border)!important;background:var(--surface-3)!important}
html[data-theme="dark"] [data-fc-sheet],html[data-theme="dark"] [data-fa-alen-pop]{box-shadow:none!important;border:1px solid var(--border)}
/* SVG presentation attributes keep literal colours — override them with the tokens */
html[data-theme="dark"] [fill="#16233D" i]{fill:var(--navy-900)}html[data-theme="dark"] [stroke="#16233D" i]{stroke:var(--navy-900)}
html[data-theme="dark"] [stroke="#287068" i]{stroke:var(--teal)}html[data-theme="dark"] [stroke="#5B626E" i]{stroke:var(--ink-500)}html[data-theme="dark"] [fill="#5B626E" i]{fill:var(--ink-500)}
html[data-theme="dark"] [stroke="#B3520A" i]{stroke:var(--brand-ink)}html[data-theme="dark"] [fill="#B3520A" i]{fill:var(--brand-ink)}
/* review screenshots stay as they are (white), slightly dimmed and framed (ДС v1.5, изображения) */
html[data-theme="dark"] img[src*=".jpg"],html[data-theme="dark"] img[src*=".webp"],html[data-theme="dark"] picture img{filter:brightness(0.9)}
/* the theme switch in the menu: three radios, the chosen one framed (ДС v1.5, раздел 6) */
[data-fa-theme]{display:flex;flex-direction:column;gap:6px;width:100%;padding:8px 0}
[data-fa-theme-l]{font-size:var(--fs-cap,13px);font-weight:700;color:var(--ink-500);padding:0 2px}
[data-fa-theme] button{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 12px;border-radius:14px;border:1px solid var(--border);background:transparent;color:var(--ink-900);text-align:left;cursor:pointer;transition:border-color 120ms var(--ease),background-color 120ms var(--ease)}
[data-fa-theme] button[aria-checked=true]{border:2px solid var(--accent-ink);background:var(--surface-2);padding:5px 11px}
[data-fa-theme-dot]{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--ink-500);box-sizing:border-box}
[data-fa-theme] button[aria-checked=true] [data-fa-theme-dot]{border:6px solid var(--accent-ink)}
[data-fa-theme-t]{display:flex;flex-direction:column;gap:2px;font-size:var(--fs-body)}
[data-fa-theme-t] span{font-size:13px;color:var(--ink-500)}
/* print and PDF are always light */
@media print{html[data-theme="dark"]{color-scheme:light;--page:#FFFFFF;--surface-1:#FBF8F5;--surface-2:#F2EEE9;--surface-3:#FFFFFF;--canvas:#FBF8F5;--white:#FFFFFF;--ink-900:#14161A;--ink-700:#363B44;--ink-500:#5B626E;--ink-300:#98A0AD;--navy-900:#16233D;--accent-ink:#16233D;--accent-fill:#16233D;--on-accent-fill:#FFFFFF;--panel-strong:#16233D;--border:#E7E2DB;--border-strong:#C9C2B9;--divider:#F2EEE9;--brand-soft:#FDEBDA;--brand-50:#FFF6EE;--brand-ink:#B3520A;--link:#B3520A;--status-ok-bg:#E8F6EF;--status-ok:#14724E;--status-info-bg:#E9EDF4;--status-info:#16233D;--status-teal-bg:#D6EAE6;--status-teal:#205C55;--status-none-bg:#FBF8F5;--status-none:#5B626E;--status-warn-bg:#FBF1DA;--status-warn:#6B4A00;--status-no-bg:#F9E1DC;--status-no:#A23B2A;--teal:#287068;--assist-bg:#F1EFF9;--assist-surface-2:#E6E2F5;--assist-accent:#16233D;--on-assist-accent:#FFFFFF;--assist-bot-bg:#FFFFFF;--assist-muted:#55586E;--demo-bg:#FBF1DA;--demo-ink:#6B4A00}html[data-theme="dark"] body{background:#FFFFFF;color:#14161A}}
html[data-theme="dark"] [data-dark]{background:var(--panel-strong)!important;color:var(--on-panel)!important}
html[data-theme="dark"] [data-dark] [style*="color: var(--white)"]{color:var(--on-panel)!important}
html[data-theme="dark"] [data-dark] [style*="background: var(--navy-900)"]{background:rgba(255,255,255,0.12)!important}
/* FA-FORWHO-TILES (fa-7, owner): compact «Для кого» tiles — height by content, equal in a row (grid rows auto), tighter padding/icon */
[data-fa-ftile]{padding:12px 14px!important;gap:8px!important}
[data-fa-ftile]>span:first-child{width:32px!important;height:32px!important;border-radius:10px!important}
[data-fa-ftile]>span:first-child svg{width:20px;height:20px}
/* FA-STOP-CENTER (fa-7.1, owner on iPhone): the stop square was off-centre — the button still laid out its own icon span and the
   «Остановить» text (inline gap 8px) next to our ::before. The children are hidden and the one square is centred in the 44 px circle. */
html[data-fa-a16] [data-fa-stop]{position:absolute!important;gap:0!important;line-height:0!important;color:var(--on-assist-accent)!important}
html[data-fa-a16] [data-fa-stop]>*{display:none!important}
html[data-fa-a16] [data-fa-stop]::before{position:absolute;inset:0;margin:auto;width:14px;height:14px;border-radius:3px;background:var(--on-assist-accent)}
/* fa-7.1: the theme icon in the header — 44 px, ink by tokens; the moon is shown in the light theme (tap → dark), the sun in the dark */
[data-fa-theme-btn]{flex:none;width:44px;height:44px;border-radius:var(--radius-btn,14px);display:flex;align-items:center;justify-content:center;color:var(--accent-ink);background:transparent;border:0;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
@media (hover:hover){[data-fa-theme-btn]:hover{background:var(--hover)}}
[data-fa-theme-btn]:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
[data-fa-ic-sun]{display:none}
html[data-theme="dark"] [data-fa-ic-sun]{display:block}html[data-theme="dark"] [data-fa-ic-moon]{display:none}
[data-a16-sheet] [data-fa-theme]{padding:4px 0}
/* FA-AUTH (fa-8): the assistant entry on the site — «Ваши данные под защитой», mail and code steps (parts of ДС v1.7) */
html[data-fa-site] [data-fa-aintro-foot]{display:none!important}
[data-fa-safe]{width:100%;box-sizing:border-box;margin-top:8px;padding:16px;border-radius:var(--radius-card,20px);background:var(--assist-bot-bg,#FFFFFF);border:1px solid var(--assist-border);display:flex;flex-direction:column;gap:10px}
[data-fa-safe] h2{margin:0;font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:20px;line-height:1.25;font-weight:700;color:var(--ink-900)}
[data-fa-safe] p{margin:0;font-size:var(--fs-body);line-height:1.5;color:var(--ink-700)}
[data-fa-auth]{width:100%;display:flex;flex-direction:column;gap:12px;color:var(--ink-900)}
[data-fa-auth] h1{margin:0 0 4px;font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-size:26px;line-height:1.2;font-weight:700;letter-spacing:-0.02em}
[data-fa-auth] [data-fc-err]{padding:0}
[data-fa-auth] [data-fc-hint]{padding:0;color:var(--ink-500)}
[data-fa-auth] [data-fc-primary][aria-disabled=true]{background:var(--disabled-bg);color:var(--ink-500);cursor:default}
[data-fa-demo-code]{align-self:flex-start;padding:6px 12px;border-radius:10px;background:var(--demo-bg);color:var(--demo-ink);font-size:15px;font-weight:700}
[data-fa-auth-demo]{display:flex;flex-wrap:wrap;column-gap:16px}
[data-fa-logout]{min-height:44px;align-self:flex-start;background:none;border:0;padding:0;font-size:15px;font-weight:600;color:var(--status-no);cursor:pointer}
/* fa-8: on the desktop the «Назад» label is its own span (not affected by font-size:0) — only the arrow stays in the 44 px circle */
html[data-fa-a16] [data-fa-ahead]>button:not([data-a16-cnt]):not([aria-label="О помощнике"])>:not(:first-child){display:none!important}
/* fa-9.1: the limit footer keeps its orange offer unless the feed already shows it (one orange action in view, DS v1.2) */
html[data-fa-a16]:not([data-fa-offer-in-feed]) [data-chat-limit] button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:52px!important;margin-top:6px}
html[data-fa-a16] [data-chat-limit]{display:flex;flex-direction:column;gap:4px;font-size:15px;line-height:1.4;color:var(--ink-700);padding:2px 10px 2px 0}
html[data-fa-a16] [data-chat-composer]:has([data-chat-limit]) > [data-motion-chips],html[data-fa-a16] [data-chat-composer]:has([data-chat-limit]) [data-fa-alen-btn]{display:none!important}
/* fa-10.2 (owner, real iPhone web app): the code is ONE ordinary visible field — no cells over a hidden input; nothing transparent,
   no pointer-events tricks; 16px+ font so iOS does not zoom; large digits with spacing so the six are easy to read */
[data-fc-field] input[data-fc-code]{display:block;width:100%;max-width:300px;box-sizing:border-box;height:60px!important;font-size:28px!important;font-weight:600;letter-spacing:0.35em;font-variant-numeric:tabular-nums;color:var(--ink-900);-webkit-text-fill-color:var(--ink-900);opacity:1;pointer-events:auto}
[data-fc-field] input[data-fc-code]::placeholder{font-size:17px;font-weight:400;letter-spacing:0;color:var(--ink-500);-webkit-text-fill-color:var(--ink-500)}
/* LEGAL-DEMO v2 (master №4, 25.10): the lawyer's texts inside «Документы» and the consent sheets */
[data-fc-doc] p[data-fc-ph="true"]{font-family:'Onest','Onest Fallback',system-ui,sans-serif;font-weight:700;color:var(--ink-900);font-size:19px;line-height:1.35;margin:20px 0 8px}
[data-fc-doc] p{overflow-wrap:anywhere}
[data-fc-shdoc]{font-size:var(--fs-body);line-height:1.55;max-width:none}
[data-fc-shdoc] p[data-fc-ph="true"]{font-size:17px;margin:14px 0 4px}
[data-fc-shdoc] a[data-fc-link]{display:inline-flex;align-items:center;min-height:44px;color:var(--brand-ink);font-weight:600}
/* FA-API-FLOW ([MP 7.3]): no top-up sold (assistant_topup off) — the «+20 вопросов» buttons are not shown */
html[data-fa-no-topup] [data-fa-topup]{display:none!important}
/* «Ответы изменились — пересчитать» over the result (answers_changed from the server) */
[data-fa-recalc]{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;border-radius:var(--radius-btn,14px);background:var(--status-warn-bg);color:var(--ink-900);font-size:var(--fs-cap);line-height:1.45;margin-bottom:12px}
[data-fa-recalc] button{min-height:44px;padding:0 16px;border-radius:var(--radius-btn,14px);border:2px solid var(--ink-900);background:transparent;color:var(--ink-900);font-size:var(--fs-ui);font-weight:600;cursor:pointer}
/* ETALON-V1 №18 (owner 25.10, «выделить зону печати»): the input area reads as a field at once — a clear outline on the surface
   colour, a focus ring while typing; the answer-length pill «Подробно ▾» sits in the same line, level with the send arrow */
[data-etalon="a-field"]{background:var(--surface-1)!important;border:2px solid color-mix(in srgb,var(--focus-input) 60%,var(--border-strong))!important;transition:border-color var(--t-btn) var(--ease),box-shadow var(--t-btn) var(--ease)}
[data-etalon="a-field"]:focus-within{border-color:var(--focus-input)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--focus-input) 22%,transparent)!important}
[data-etalon="a-field"] textarea::placeholder{color:var(--ink-500);opacity:1}
[data-etalon="a-field"] [data-fa-alen-btn]{flex:none;align-self:flex-end;margin-bottom:6px;background:var(--assist-surface-2);box-shadow:inset 0 0 0 1px var(--border)}
[data-etalon="a-field"] [data-fa-alen-pop]{left:0;bottom:calc(100% + 8px);width:min(320px,100%)}
/* TZ-06 / A25: the gate card stands over the inactive field of the assistant (absolute, the feed does not move) — its line is the
   containing block; the generic «last child of a native chat is static» rule above would send the card to the top of the screen */
[data-native-chat] > [data-etalon="a-locked"]{position:relative!important}
[data-fa-gate-card]{animation:ds-up-in 200ms cubic-bezier(0,0,.2,1)}
@media (prefers-reduced-motion:reduce){[data-fa-gate-card]{animation:none}}
/* TZ-02 / A02: «Получить код» without the cross-border box looks inactive (the tap still answers: «Отметьте согласие…») */
[data-fa-auth-send][aria-disabled="true"]{background:var(--disabled-bg)!important;color:var(--disabled-ink)!important;box-shadow:none!important}
[data-fa-cross-card]{margin:4px 0 0}
/* TZ-03 / A20: the cookie window — at the bottom, above the island / a bottom bar (fa-cookies.js sets bottom), the page stays usable */
[data-fa-cookie-banner]{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;justify-content:center;padding:0 16px max(12px,env(safe-area-inset-bottom,0px));pointer-events:none;box-sizing:border-box}
[data-fa-cookie-banner][hidden]{display:none}
[data-fa-ck-card]{pointer-events:auto;width:100%;max-width:560px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--radius-card,20px);background:var(--surface-3);color:var(--ink-900);border:1px solid var(--border);box-shadow:var(--shadow-pop);animation:ds-up-in 200ms cubic-bezier(0,0,.2,1)}
[data-fa-ck-t]{margin:0;font-size:var(--fs-ui,15px);line-height:1.45}
[data-fa-ck-more]{display:inline;padding:0;margin:0;border:0;background:none;font:inherit;font-weight:600;color:var(--link,var(--brand-ink));text-decoration:underline;text-underline-offset:2px;cursor:pointer}
[data-fa-ck-btns]{display:grid;grid-template-columns:1fr 1fr;gap:8px}
[data-fa-ck]{display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;min-height:var(--btn-h-m,44px);padding:4px 10px;border-radius:var(--radius-btn,14px);font-size:var(--fs-ui,15px);font-weight:700;background:var(--surface-2);color:var(--ink-900);border:1px solid var(--border-strong);cursor:pointer}
@media (prefers-reduced-motion:reduce){[data-fa-ck-card]{animation:none}}
[aria-label="Превью страниц"]::-webkit-scrollbar{display:none}
/* UI-SWEEP (owner's iPhone test 27.10): no text runs off the screen — a long word / «50/75/100 %» / an address breaks inside the card.
   Lines that must not wrap (a sum, a counter) keep their own white-space:nowrap; this only allows a break where nothing else fits. */
.preview-content :where(span,p,h1,h2,h3,h4,h5,li,label,dd,dt,a,button){overflow-wrap:break-word}
.preview-content :where(div,span,p,li){min-width:0}
/* UI-SWEEP: narrow phones (iPhone SE 1st gen, 320 px; small Androids 360 px) — the island labels fit their slot, the header's last
   button stays on screen (at 320 px «Меню» ended 8 px past the edge; the install offer stays in its own banner) */
@media (max-width:374px){.preview-island button span[style*="nowrap"]{font-size:12px!important;letter-spacing:-0.03em!important}}
@media (max-width:339px){.preview-island button span[style*="nowrap"]{font-size:11px!important}button[aria-label="Установить приложение 7Я"]{display:none!important}}

/* DAY-27 S-01: existing design tokens; wrapping amounts and 44px touch targets. */
.fx-result,.fx-person,.fx-group{display:flex;flex-direction:column;gap:12px;min-width:0}
.fx-result{margin:16px 0}.fx-person{padding:16px 0;border-top:1px solid var(--border)}
.fx-result h2,.fx-person h3,.fx-group h4,.fx-card h5,.fx-result p{margin:0;overflow-wrap:anywhere}
.fx-person h3{font-size:var(--fs-bodyL)}.fx-group h4{font-size:var(--fs-body);color:var(--status-warn)}
.fx-group[data-fx-status="eligible"] h4{color:var(--status-ok)}
.fx-group[data-fx-status="not_eligible"] h4{color:var(--ink-500)}
.fx-card{padding:var(--pad-card);border:1px solid var(--border);border-radius:var(--radius-card);background:var(--white);display:flex;flex-direction:column;gap:8px;min-width:0}
.fx-card h5{font-size:var(--fs-body)}.fx-card p,.fx-question p{font-size:var(--fs-cap);line-height:1.5}
.fx-card .fx-amount{font-weight:600}.fx-amount:empty{display:none}
.fx-question,.fx-health{padding:12px;border-radius:var(--radius-card);background:var(--canvas);display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.fx-question button,.fx-health button{min-height:44px;padding:10px 16px;align-self:flex-start;color:var(--brand);font-size:var(--fs-body);text-align:left}
.fx-actions{display:flex;flex-wrap:wrap;gap:8px}.fx-actions button{min-height:44px;padding:10px 16px;border:1px solid var(--border);border-radius:var(--radius-btn);color:var(--brand-ink);font-size:var(--fs-body)}
.fx-how{white-space:pre-line}.fx-card summary{min-height:44px;display:flex;align-items:center;font-size:var(--fs-cap);color:var(--brand);cursor:pointer}

/* SITE-QA 27.10 (owner №9): the example in «Код расчёта» is a hint, not a value — regular weight, no spacing, the muted ink */
input[aria-label^="Код расчёта"]::placeholder{color:var(--ink-500);-webkit-text-fill-color:var(--ink-500);opacity:1;font-weight:400;letter-spacing:0}
/* SITE-QA 27.10 (№11): on phones narrower than 360 px a long word is hyphenated by syllables («ребён-ка», «Соглаше-ние») instead
   of the mid-word break of overflow-wrap (the home tiles read «Жду ребёнк/а», «Родилс/я») */
@media (max-width:359px){.preview-content button:not([data-nw]),.preview-content :where(span,p,h1,h2,h3,h4,label,a){-webkit-hyphens:auto!important;hyphens:auto!important}}
/* SITE-QA 27.10 (№11): the home situation tiles keep whole words — a tighter tile below 400 px, one column below 340 px */
@media (max-width:399px){[data-qa-tile]{padding:12px 10px!important;gap:6px!important}[data-qa-tile]>span:not([aria-hidden]){font-size:15px!important}[data-qa-tiles]{gap:8px!important}}
@media (max-width:339px){[data-qa-tiles]{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important}}
/* SITE-QA 27.10 (№11): «Ваш результат по людям» stood flush against the screen edges (no side padding on phones) and would stretch
   across a wide screen — the page gutter of the site (16px) and the reading width of the questionnaire */
.fx-result{box-sizing:border-box;width:100%;max-width:720px;margin-left:auto!important;margin-right:auto!important;padding-left:16px;padding-right:16px}

/* SITE 19: support reference stays at the foot of the result. */
.fx-result .fx-code{font-size:var(--fs-cap,12px);line-height:1.5;color:var(--ink-500);overflow-wrap:anywhere}

/* Large text keeps the full step label and both navigation buttons readable. */
[data-fa-calc-header]>span{flex-shrink:0;white-space:nowrap}

/* Free API result uses the same cards and status tokens as the approved demo. */
.ds-measure-status{align-self:flex-start;display:inline-flex;min-height:24px;align-items:center;padding:4px 12px;border-radius:var(--radius-pill);font-size:var(--fs-cap);font-weight:600;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.ds-measure-status[data-ds-status=ok]{color:var(--status-ok);background:var(--status-ok-bg)}
.ds-measure-status[data-ds-status=warn]{color:var(--status-warn);background:var(--status-warn-bg)}
.ds-measure-status[data-ds-status=info]{color:var(--status-info);background:var(--status-info-bg)}
.ds-measure-status[data-ds-status=teal]{color:var(--status-teal);background:var(--status-teal-bg)}
.ds-measure-status[data-ds-status=no]{color:var(--status-no);background:var(--status-no-bg)}
.ds-measure-amount{font-size:var(--fs-bodyL);font-weight:600;overflow-wrap:anywhere}
.ds-result-code{margin:16px var(--page-x) 24px;font-size:var(--fs-cap);line-height:1.5;color:var(--ink-500);overflow-wrap:anywhere}

/* 1612 эталон «Пример разбора»: карточка меры в платном разборе */
.fx-totals{font-size:var(--fs-bodyL);font-weight:700;color:var(--status-ok)}
.fx-group-h{font-size:var(--fs-body);margin:8px 0 0}
.fx-group[data-fx-status="eligible"] .fx-group-h{color:var(--status-ok)}
.fx-group[data-fx-status="amount_tbd"] .fx-group-h{color:var(--status-warn)}
.fx-etalon{gap:10px}.fx-etalon h4{margin:0;color:var(--ink-900);font-size:var(--fs-bodyL);line-height:1.3;overflow-wrap:anywhere}
.fx-etalon h5{margin:8px 0 0;font-size:var(--fs-body);font-weight:700}
.fx-head{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.fx-badge{display:inline-block;padding:4px 12px;border-radius:var(--radius-pill);font-size:var(--fs-cap);font-weight:700;background:var(--status-info-bg);color:var(--status-info)}
.fx-badge[data-tone="ok"]{background:var(--status-ok-bg);color:var(--status-ok)}
.fx-badge[data-tone="warn"]{background:var(--status-warn-bg);color:var(--status-warn)}
.fx-badge[data-tone="teal"]{background:var(--status-teal-bg);color:var(--status-teal)}
.fx-etalon .fx-amount{font-size:var(--fs-body);font-weight:700;color:var(--ink-900)}
.fx-meta,.fx-basis{color:var(--ink-500)}
.fx-why,.fx-list{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:var(--fs-cap);line-height:1.5}
.fx-why li::before{content:"✓ ";color:var(--status-ok);font-weight:700}
.fx-list li::before{content:"• ";color:var(--ink-500)}
.fx-need{color:var(--status-warn)}
.fx-refine{min-height:44px;padding:10px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-btn);color:var(--brand-ink);font-weight:600;background:var(--white)}
[data-extra-card="Семейный помощник"]{background:var(--assist-bg)!important;border-color:var(--assist-border)!important}

/* RELEASE-NOV1 F31/F32 (1140-RESULT-ORDER): разделы платного разбора и раскрывающаяся карточка меры — токены дизайна, цель нажатия 44px */
.fx-section-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.fx-section-h .fx-group-h{margin:0;padding:4px 12px;border-radius:var(--radius-pill);font-size:var(--fs-cap);font-weight:600;background:var(--status-ok-bg);color:var(--status-ok)}
.fx-section-h .fx-group-h[data-tone="teal"]{background:var(--status-teal-bg);color:var(--status-teal)}
.fx-section-n{font-size:var(--fs-cap);font-weight:600}
.fx-result .fx-section-d{font-size:var(--fs-cap);line-height:1.45;color:var(--ink-500)}
.fx-etalon h4{margin:0}
.fx-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0;text-align:left;color:inherit;font:inherit;background:none;border:0;cursor:pointer}
.fx-title{flex:1;min-width:0;overflow-wrap:anywhere}
.fx-sign{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--brand-ink);font-size:20px;line-height:1}
.fx-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.fx-marks{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:var(--fs-cap);line-height:1.5}
.fx-mk{font-weight:700;color:var(--brand-ink)}.fx-mk[data-tone="ok"]{color:var(--status-ok)}.fx-mk[data-tone="no"]{color:var(--status-no)}
.fx-list a{color:var(--brand-ink);text-decoration:underline;overflow-wrap:anywhere}
/* REVIEW-FINAL 29.10 V5 (ДС «Движение»): a breakdown card opens smoothly — the height grows over --t-expand instead of a jump */
.fx-reveal{display:grid;grid-template-rows:1fr;animation:fx-open var(--t-expand,280ms) var(--ease,cubic-bezier(.2,0,0,1)) both}
.fx-reveal>.fx-body{min-height:0;overflow:hidden}
@keyframes fx-open{from{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}
@media (prefers-reduced-motion: reduce){.fx-reveal{animation:none}}
/* REVIEW-FINAL 29.10 V6: the login link is checked behind a blank page, then the screen fades in (no flash of home) */
[data-site-scroll]{transition:opacity var(--t-move,200ms) var(--ease-enter,ease-out)}
html[data-fa-linkload] [data-site-scroll]{opacity:0}
@media (prefers-reduced-motion: reduce){[data-site-scroll]{transition:none}}
/* REVIEW-FINAL 29.10 V4 (эталон d05e457e, экран разбора): «Ваш разбор» — on the phone at the top (before the measures), on the
   computer a sticky right column; the actions are a 2-column grid; the assistant card sits in the panel */
.fx-panel{display:flex;flex-direction:column;gap:12px;margin:12px 0 20px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-card,16px);background:var(--white)}
.fx-panel-h{margin:0;font-size:var(--fs-bodyL);font-weight:700}
.fx-panel .fx-code{margin:0}
.fx-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fx-panel-grid button,.fx-assist button{min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-btn);color:var(--brand-ink);font-size:var(--fs-ui,15px);font-weight:600;background:var(--white)}
.fx-panel-grid button[data-fx-pdf]{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.fx-assist{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1px solid var(--border)}
.fx-assist-h{margin:0;font-weight:700}.fx-assist-d{margin:0;font-size:var(--fs-cap);line-height:1.5;color:var(--ink-500)}
@media (min-width:1024px){
 .fx-result{max-width:1080px;display:grid;grid-template-columns:minmax(0,1fr) 320px;column-gap:32px;align-items:start}
 .fx-result>*{grid-column:1}
 .fx-result>.fx-panel{grid-column:2;grid-row:1/span 50;position:sticky;top:16px;margin-top:0}
}
/* FX-014: «Скопировать» next to the calculation code */
.fa-copy{display:inline-flex;align-items:center;min-height:32px;margin-left:8px;padding:0 12px;border-radius:var(--radius-input,8px);border:1px solid var(--navy-900,#14213d);background:var(--white,#fff);color:var(--navy-900,#14213d);font:inherit;font-weight:600;cursor:pointer;vertical-align:middle}
.fa-copy-msg{display:block;margin-top:4px}
.fa-copy-msg:empty{display:none}

/* DS v1.3 motion tokens — no keyboard geometry. */
:root{--t-btn:120ms!important;--t-move:200ms!important;--t-expand:280ms!important;--t-sheet:280ms!important;--t-slow:360ms;--t-page:200ms!important;--ease:cubic-bezier(.2,0,0,1)!important;--ease-enter:cubic-bezier(0,0,.2,1);--ease-exit:cubic-bezier(.4,0,1,1);--ease-sheet:cubic-bezier(.32,.72,0,1)}
.preview-content button{transition:transform var(--t-btn) var(--ease),filter var(--t-btn) var(--ease),background-color var(--t-btn) var(--ease),border-color var(--t-btn) var(--ease),color var(--t-btn) var(--ease)}
.preview-content button:active{transform:scale(.98);filter:brightness(.94)}
.preview-content input,.preview-content textarea,.preview-content select{scroll-margin-block:96px!important;transition:border-color var(--t-btn) var(--ease);outline-offset:2px}
.preview-content input:focus,.preview-content textarea:focus,.preview-content select:focus{border-color:var(--navy-900,#16233D)!important}
[data-native-chat=assistant] textarea:focus{border-color:var(--assist-focus,#5B4FB0)!important}
.preview-island{box-sizing:border-box;left:12px!important;right:12px!important;width:calc(100% - 24px);max-width:480px;height:64px!important;bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important}
.preview-island-backdrop{height:calc(32px + max(8px,calc(env(safe-area-inset-bottom,0px) + 8px)))!important}
.preview-island,.preview-island-backdrop{transition:transform var(--t-move) var(--ease-enter)!important;opacity:1}
html[data-island-focus-hidden] .preview-island,html[data-island-scroll-hidden] .preview-island,html[data-island-base-hidden] .preview-island,
html[data-island-focus-hidden] .preview-island-backdrop,html[data-island-scroll-hidden] .preview-island-backdrop,html[data-island-base-hidden] .preview-island-backdrop{transform:translateY(calc(100% + max(8px,calc(env(safe-area-inset-bottom,0px) + 8px)) + 40px))!important;transition-timing-function:var(--ease-exit)!important;pointer-events:none!important}
.preview-island button>span{transition:background-color var(--t-move) var(--ease),color var(--t-btn) var(--ease)}
[data-motion-mark=idle]{animation:ds-breathe 1.6s cubic-bezier(.4,0,.2,1) infinite!important}
[data-motion-mark=invite]{animation:ds-invite 2.4s cubic-bezier(.4,0,.2,1) 3,ds-breathe 1.6s cubic-bezier(.4,0,.2,1) 7.2s infinite!important}
.preview-island button[aria-label="Семейный помощник"]:active{transform:scale(.94)}
[data-motion-dot]{width:10px!important;height:10px!important;border-radius:50%;animation:ds-dot-in var(--t-move) var(--ease-enter)}
[data-motion-dot-out]{animation:ds-opacity-out var(--t-btn) var(--ease-exit) forwards}
[data-motion-grid]{transition:grid-template-rows var(--t-expand) var(--ease)!important}
[data-motion-grid]>div{transition:opacity var(--t-move) var(--ease)}
[data-motion-arrow]{transition:transform var(--t-expand) var(--ease)!important}
[data-motion-error-reserve]{display:block;min-height:20px}
[data-motion-error]{animation:ds-opacity-in var(--t-btn) var(--ease-enter)}
[data-motion-toast]{position:fixed;left:16px;right:16px;max-width:560px;margin:0 auto;z-index:160;background:var(--navy-900,#16233D);color:white;border-radius:14px;padding:16px;box-sizing:border-box;animation:ds-up-in var(--t-move) var(--ease-enter);font-size:16px;line-height:1.4}
[data-motion-toast][data-out]{animation:ds-opacity-out var(--t-btn) var(--ease-exit) forwards}
[data-motion-offline]{position:fixed;left:0;right:0;z-index:110;background:var(--status-info-bg,#F2EEE9);padding:8px 16px;font-size:15px;box-sizing:border-box;animation:ds-opacity-in var(--t-move) var(--ease-enter)}
[data-motion-exit-clone]{position:fixed!important;pointer-events:none!important;z-index:115!important;margin:0!important;overflow:hidden!important;animation:ds-page-out var(--t-move) var(--ease-exit) forwards}
[data-motion-think-mark]{position:relative;animation:think7 1.2s ease-in-out infinite!important;z-index:0}
[data-motion-think-mark]::before{content:'';position:absolute;inset:0;border-radius:inherit;background:#5B4FB0;z-index:-1;animation:ring7 1.2s var(--ease-enter) infinite}
[data-motion-think-status][data-in]{animation:ds-opacity-in var(--t-move) var(--ease-enter)}
[data-motion-think-status][data-out]{animation:ds-status-out var(--t-btn) var(--ease-exit)}
[data-motion-caret]::after{content:'';display:inline-block;width:2px;height:1em;background:currentColor;margin-left:2px;vertical-align:-2px;animation:ds-caret 1s steps(1) infinite}
[data-motion-chips]{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows var(--t-move) var(--ease),opacity var(--t-btn) var(--ease)}
[data-motion-chips]>div{min-height:0;overflow:hidden}
html[data-native-focus] [data-motion-chips],html[data-motion-input-filled] [data-motion-chips]{grid-template-rows:0fr;opacity:0;pointer-events:none}
[data-motion-bubble=u]{animation:ds-user-in var(--t-btn) var(--ease-enter)}
[data-motion-bubble=b]{animation:ds-up-in var(--t-move) var(--ease-enter)}
[data-motion-greeting]{animation-delay:calc(var(--greeting-index,0)*600ms);animation-fill-mode:backwards}
@keyframes ds-breathe{0%,100%{transform:scale(.95);filter:brightness(1)}50%{transform:scale(1);filter:brightness(1.08)}}
@keyframes ds-invite{0%,100%{transform:scale(.96);filter:brightness(1);box-shadow:0 0 0 0 rgba(91,79,176,.22)}50%{transform:scale(1.02);filter:brightness(1.1);box-shadow:0 0 0 8px rgba(91,79,176,0)}}
@keyframes ds-dot-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes ds-user-in{from{transform:scale(.98);opacity:0}to{transform:none;opacity:1}}
@keyframes ds-up-in{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@keyframes ds-page-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
@keyframes ds-page-out{from{transform:none;opacity:1}to{transform:translateX(24px);opacity:0}}
@keyframes ds-opacity-in{from{opacity:0}to{opacity:1}}
@keyframes ds-opacity-out{from{opacity:1}to{opacity:0}}
@keyframes ds-status-out{from{transform:none;opacity:1}to{transform:translateY(-4px);opacity:0}}
@keyframes ds-caret{0%,49%{opacity:1}50%,100%{opacity:0}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1024px){[data-native-chat=support]{animation:ds-support-in var(--t-slow) var(--ease-enter)}html[data-native-chat-mode=support] .preview-content{height:auto;min-height:100dvh}html[data-native-chat-mode=support] .preview-content>:not(.demo-banner):not([data-native-chat=support]){display:revert!important}[data-native-chat=support]{position:fixed!important;right:0!important;left:auto!important;top:0!important;bottom:0!important;width:480px!important;max-width:100%;height:100dvh!important;z-index:125!important}}
@keyframes ds-support-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.preview-content button:active{transform:none;filter:none}[data-motion-mark],[data-motion-think-mark],[data-motion-think-mark]::before,[data-motion-caret]::after{animation:none!important;transform:none!important;filter:none!important;box-shadow:none!important}.preview-island,.preview-island-backdrop,[data-motion-grid],[data-motion-arrow],[data-motion-chips]{transition:none!important}[data-motion-dot],[data-motion-bubble],[data-motion-toast],[data-motion-offline],[data-native-chat=support]{animation:ds-opacity-in 120ms linear!important}[data-motion-dot-out],[data-motion-toast][data-out]{animation:ds-opacity-out 120ms linear forwards!important}[data-motion-caret]::after{display:none}}
[data-motion-dot]{position:absolute;top:-4px;right:0;background:var(--brand);border:2px solid var(--white);box-sizing:border-box}
[data-motion-dot-state=hidden]{display:none}
[data-motion-dot-state=visible]{animation:ds-dot-in 200ms var(--ease-enter)}
[data-motion-dot-state=out]{display:block;animation:ds-opacity-out 120ms var(--ease-exit) forwards}
.preview-island button[aria-label="Помощник"]:active{transform:scale(.94)}
[data-motion-more-arrow]{transition:transform 200ms var(--ease)!important}
[data-motion-grid]{transition:grid-template-rows 280ms var(--ease),opacity 200ms var(--ease),visibility 280ms var(--ease)!important}
[data-motion-grid][style*="0fr"]>div{opacity:0}
[data-motion-grid][style*="1fr"]>div{opacity:1}
[data-motion-page] [style*="skel"]{animation-duration:1.2s!important}
[data-motion-error]{animation:ds-opacity-in 120ms var(--ease-enter)}
[data-motion-think-status][data-in]{animation:ds-status-in 200ms var(--ease-enter)}
@keyframes ds-status-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){[data-motion-grid],[data-motion-more-arrow]{transition:none!important}[data-motion-dot-state=visible],[data-motion-bubble],[data-motion-think-status][data-in]{animation:ds-opacity-in 120ms linear!important}[data-motion-dot-state=out]{animation:ds-opacity-out 120ms linear forwards!important}[data-motion-page] [style*="skel"]{animation:none!important}}
.preview-overlay{background:rgba(20,22,26,.45)!important}
@media(min-width:768px){[data-motion-overlay=delAsk]{align-items:center!important;padding:24px;box-sizing:border-box}[data-motion-overlay=delAsk] [role=dialog]{border-radius:24px!important}}
@media(prefers-reduced-motion:reduce){[data-motion-animation]{animation-name:ds-opacity-in!important;animation-duration:120ms!important;animation-delay:0ms!important}}
@keyframes ds-support-out{from{transform:none;opacity:1}to{transform:translateX(24px);opacity:0}}
[data-rev]{scroll-margin-top:96px}
[data-motion-error-reserve] [data-motion-error]>span{animation:ds-opacity-in 120ms var(--ease-enter)}
[data-motion-offline][data-out]{animation:ds-opacity-out 200ms var(--ease-exit) forwards}
@media(prefers-reduced-motion:reduce){[data-motion-offline][data-out]{animation:ds-opacity-out 120ms linear forwards!important}}

/* FA: menu/desktop «Ещё» outro, DS v1.3 table: opacity + 8px, 200, exit. A transition, because the r15-2 menu panel pins opacity:1!important (animations cannot override it). */
html[data-nav-outro=menu] .preview-overlay[data-site-menu-panel],html[data-nav-outro=more] [data-motion-desktop-menu]{animation:ds-menu-out 200ms cubic-bezier(.4,0,1,1) forwards!important;pointer-events:none!important}
html[data-nav-outro=menu] [data-site-menu-backdrop]{animation:ds-opacity-out 200ms cubic-bezier(.4,0,1,1) forwards!important}
@keyframes ds-menu-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px)}}
[data-motion-exit-host]{position:fixed;inset:0;overflow:hidden;contain:paint;pointer-events:none;z-index:115}
/* FA-GESTURE: two frames without transitions/animations after a system swipe-back (no island re-slide, no sheet outro, no second page animation) */
html[data-nav-instant] *,html[data-nav-instant] *::before,html[data-nav-instant] *::after{transition:none!important;animation-duration:0s!important;animation-delay:0s!important}

/* fa-10.2: screen-to-screen entries never start transparent (no bare-background frame) */
@keyframes fa-route-page{from{transform:translateX(24px)}to{transform:none}}
@keyframes fa-route-up{from{transform:translateY(8px)}to{transform:none}}
@keyframes fa-route-fade{from{opacity:.8}to{opacity:1}}
/* REVIEW-FINAL 29.10 V7: the 299 bar rises with transform — not under reduced motion */
@media (prefers-reduced-motion: reduce){[data-etalon=paybar]{transition:opacity 120ms linear!important;transform:none!important}}

/* P1-полировка 30.10: фон страницы меняется плавно при входе в помощника и выходе из него (был мгновенный скачок бежевый ↔ сиреневый).
   Переключение темы остаётся мгновенным (html[data-theme-switching] снимает transition); при «уменьшить движение» — без анимации. */
body{transition:background-color .22s ease}
@media(prefers-reduced-motion:reduce){body{transition:none}}
