/* Shared approved brand: auth, the optional first visit, and order receipt. */
:root{--brand-entry-ready:1}
:root{--brand-welcome-ready:1}
.brand-logo{display:inline-flex;align-items:center;gap:11px;color:var(--accent,#2563eb);font-size:31px;font-weight:750;letter-spacing:-1.2px;line-height:1}
.brand-logo>svg{width:32px;height:32px;fill:currentColor;stroke:none;flex:none}
.brand-mark{--brand-mark-size:42px;display:block;width:var(--brand-mark-size);height:var(--brand-mark-size);flex:none;object-fit:contain;border-radius:24%}
.header .logo .brand-mark,.welcome-brand .brand-mark,.brand-splash-logo .brand-mark{border-radius:24%}
.logo .brand-mark{--brand-mark-size:32px}
.auth-entry .auth-brand .brand-mark{--brand-mark-size:42px}
.brand-entry-splash{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:var(--bg,#f4f6fb);color:var(--accent,#2563eb);pointer-events:none;visibility:hidden;opacity:0;animation:brand-entry-lifetime 1400ms linear forwards}
.brand-splash-content{text-align:center;margin-top:-24px}
.brand-splash-logo{display:flex;flex-direction:column;align-items:center;gap:25px}
.brand-splash-logo .brand-mark{--brand-mark-size:94px}
.brand-splash-word{font-size:52px;letter-spacing:-2.4px;line-height:1;font-weight:750}
.brand-splash-caption{font-size:17px;line-height:1.5;color:var(--muted,#5f6b80);margin:22px 0 0}
.brand-splash-foot{position:absolute;left:20px;right:20px;bottom:calc(38px + var(--app-safe-bottom));margin:0;text-align:center;font-size:14px;line-height:1.4;color:var(--muted,#5f6b80)}
.brand-splash-logo .brand-mark{animation:brand-symbol-in 700ms both}
.brand-splash-word{animation:brand-word-in 770ms 350ms both}
.brand-splash-caption{animation:brand-word-in 600ms 650ms both}
@keyframes brand-symbol-in{from{opacity:0;scale:.75;translate:0 12px}to{opacity:1;scale:1;translate:0 0}}
@keyframes brand-word-in{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
/* CSS also expires the decorative screen if JavaScript cleanup is interrupted. */
@keyframes brand-entry-lifetime{0%,85%{visibility:visible;opacity:1}100%{visibility:hidden;opacity:0}}
@media(prefers-reduced-motion:reduce){.brand-entry-splash,.brand-entry-splash *{animation:none!important}.brand-entry-splash{visibility:hidden;opacity:0}}
dialog:has(.brand-order-created){inset:0;margin:auto;width:calc(100% - 40px);max-width:400px;height:fit-content;max-height:88dvh;padding:32px 24px 24px;border-radius:var(--ui-corner)}
dialog:has(.brand-order-created) .dialog-head{position:absolute;top:10px;right:10px;margin:0;display:block}
dialog:has(.brand-order-created) .dialog-head .iconbtn{position:static;width:44px;height:44px;background:transparent;border-color:transparent}
.brand-order-created{text-align:center}
.brand-order-created .brand-logo{font-size:27px;gap:9px;margin:0 auto 24px}
.brand-order-created .brand-mark{--brand-mark-size:32px}
.brand-order-created #dialog-title{font-size:18px;line-height:1.3;letter-spacing:0;font-weight:600;margin:0;color:var(--muted);overflow-wrap:anywhere}
.brand-order-created>p.brand-created-description{font-size:16px;line-height:1.5;margin:13px 0 23px;color:var(--muted)}
.brand-order-created .primary,.brand-order-created .secondary{font-size:16px;min-height:54px;border-radius:var(--ui-corner);line-height:1.35;padding:12px 14px;gap:10px}
.brand-order-created .secondary{margin-top:10px}
.brand-order-created>p.brand-created-note{font-size:13px;line-height:1.5;color:var(--muted);margin:16px 0 0}
.large-text .brand-order-created #dialog-title{font-size:20px}
.large-text .brand-order-created>p.brand-created-description,.large-text .brand-order-created .primary,.large-text .brand-order-created .secondary{font-size:18px}
.large-text .brand-order-created>p.brand-created-note{font-size:16px}
@media(max-width:360px){dialog:has(.brand-order-created){padding-inline:18px}}

/* A short, readable first visit. Motion introduces content; never times it out. */
dialog.welcome-dialog{position:fixed;inset:0;width:calc(100% - 32px);max-width:430px;max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - var(--app-safe-bottom));height:fit-content;min-height:0;margin:auto;padding:18px 22px 22px;border:1px solid var(--line,#e6eaf2);border-radius:var(--ui-corner,18px);background:var(--surface,#fff);color:var(--ink,#0f1b2d);box-shadow:0 18px 70px #102c4826;overflow:auto;overscroll-behavior:contain}
dialog.welcome-dialog::backdrop{background:rgb(13 30 44 / .38);backdrop-filter:none;-webkit-backdrop-filter:none}
dialog.welcome-dialog:focus{outline:none}
.welcome-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.welcome-language{min-width:0;max-width:calc(100% - 56px)}
.welcome-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:0;background:transparent;color:inherit;border-radius:var(--ui-corner,18px);cursor:pointer}
.welcome-close svg{width:24px;height:24px}
.welcome-slides{display:grid}
/* Экраны лежат в одной ячейке: окно сразу занимает высоту самого длинного и не прыгает при листании. */
.welcome-slide{grid-area:1/1;display:grid;gap:10px;align-content:start;text-align:center;animation:welcome-copy-in 320ms ease-out both}
.welcome-slide[hidden]{display:grid;visibility:hidden;pointer-events:none;animation:none}
.welcome-slide h1,.welcome-slide h2{font-size:24px;line-height:1.2;letter-spacing:-.4px;margin:8px 0 0;overflow-wrap:anywhere}
.welcome-slide>p{font-size:15px;line-height:1.45;color:var(--muted,#5f6b80);margin:0 auto;max-width:330px;overflow-wrap:anywhere}
.welcome-art{display:grid;gap:10px;align-content:center;justify-items:center;min-height:204px;padding:18px 16px;border-radius:var(--ui-corner,18px);background:var(--accent-soft,#eaf1ff);text-align:left}
.welcome-mic{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--cta,#ff7a1a);color:var(--cta-ink,#fff)}
.welcome-mic svg{width:32px;height:32px}
.welcome-quote{margin:0;padding:10px 14px;border-radius:14px;background:var(--surface,#fff);color:var(--ink,#0f1b2d);font-size:15px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.welcome-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.welcome-chips span{padding:5px 11px;border:1px solid var(--line,#e6eaf2);border-radius:999px;background:var(--surface,#fff);color:var(--ink,#0f1b2d);font-size:13px;font-weight:600}
.welcome-offer{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:14px;background:var(--surface,#fff);color:var(--ink,#0f1b2d)}
.welcome-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--accent,#2563eb);color:var(--on-accent,#fff);font-weight:700}
.welcome-offer-copy{display:grid;flex:1;min-width:0}
.welcome-offer-copy b{font-size:15px}
.welcome-offer-copy small{font-size:13px;color:var(--muted,#5f6b80)}
.welcome-offer strong{font-size:16px;white-space:nowrap}
.welcome-art-chat{justify-items:stretch}
.welcome-bubble{justify-self:start;max-width:85%;margin:0;padding:9px 13px;border-radius:14px 14px 14px 4px;background:var(--surface,#fff);color:var(--ink,#0f1b2d);font-size:15px;line-height:1.35}
.welcome-bubble-own{justify-self:end;border-radius:14px 14px 4px 14px;background:var(--accent,#2563eb);color:var(--on-accent,#fff)}
.welcome-done{display:flex;align-items:center;gap:8px;margin:4px 0 0;padding:9px 12px;border-radius:14px;background:var(--surface,#fff);color:var(--ink,#0f1b2d);font-size:14px;line-height:1.35}
.welcome-done svg{flex:0 0 20px;width:20px;height:20px;color:var(--ok,#1c8a4f)}
.welcome-choice-title{margin-top:12px}
.welcome-choices{display:grid;gap:12px;margin-top:10px}
.welcome-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:78px;padding:14px;border:1px solid var(--line,#e6eaf2);border-radius:var(--ui-corner,18px);background:var(--surface,#fff);color:inherit;text-align:left;cursor:pointer}
.welcome-choice:first-child{border-color:var(--accent,#2563eb);background:var(--accent-soft,#eaf1ff)}
.welcome-choice-copy{display:grid;gap:2px;flex:1;min-width:0}
.welcome-choice-copy strong{font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.welcome-choice-copy small{font-size:14px;line-height:1.35;color:var(--muted,#5f6b80);overflow-wrap:anywhere}
.welcome-choice>svg{flex:0 0 22px;width:22px;height:22px;color:var(--accent,#2563eb)}
.welcome-step-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:var(--ui-corner,14px);background:var(--surface,#fff);color:var(--accent,#2563eb)}
.welcome-choice:not(:first-child) .welcome-step-icon{background:var(--accent-soft,#eaf1ff)}
.welcome-step-icon svg{width:24px;height:24px}
.welcome-browse{justify-self:center;min-height:44px;margin-top:6px;padding:8px 12px;border:0;background:transparent;color:var(--accent,#2563eb);font-size:15px;font-weight:600;cursor:pointer}
.welcome-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;margin-top:18px}
.welcome-dots{display:flex;gap:2px}
.welcome-dot{display:grid;place-items:center;width:28px;height:44px;padding:0;border:0;background:transparent;cursor:pointer}
.welcome-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--line,#cfd6e4);transition:width .2s,background-color .2s}
.welcome-dot[aria-current="step"]::before{width:22px;border-radius:4px;background:var(--accent,#2563eb)}
.welcome-next{min-width:132px;min-height:48px;font-size:17px;line-height:1.3;border-radius:var(--ui-corner,18px)}
.welcome-next[hidden]{display:none}
.large-text .welcome-slide h1,.large-text .welcome-slide h2{font-size:26px}.large-text .welcome-slide>p,.large-text .welcome-quote,.large-text .welcome-bubble{font-size:17px}.large-text .welcome-choice-copy strong,.large-text .welcome-next{font-size:19px}.large-text .welcome-choice-copy small{font-size:16px}
@keyframes welcome-mark-in{from{opacity:0;transform:translateY(6px) scale(.88)}to{opacity:1;transform:none}}
@keyframes welcome-copy-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:360px){dialog.welcome-dialog{width:calc(100% - 24px);padding:12px 16px 18px}.welcome-slide h1,.welcome-slide h2{font-size:22px}.welcome-art{min-height:180px;padding:14px 12px}.welcome-next{min-width:112px}}
@media(prefers-reduced-motion:reduce){.welcome-dialog *{animation:none!important;transition:none!important}}

#dialog .dialog-body .brand-order-created>p.brand-created-waiting{font-size:27px;font-weight:700;line-height:1.2;color:var(--ink);letter-spacing:-.5px;margin:10px 0 22px;overflow-wrap:anywhere}
#dialog .dialog-body .brand-order-created .brand-created-reminder{font-size:16px;line-height:1.4;color:var(--muted);margin:0 0 12px}
.large-text #dialog .dialog-body .brand-order-created>p.brand-created-waiting{font-size:30px}
.large-text #dialog .dialog-body .brand-order-created .brand-created-reminder{font-size:18px}
@media(max-width:360px){#dialog .dialog-body .brand-order-created>p.brand-created-waiting{font-size:25px}.large-text #dialog .dialog-body .brand-order-created>p.brand-created-waiting{font-size:28px}}
