/* BYTE: independent particle assistant, never captures page scroll while closed. */
.byte-assistant{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:min(410px,calc(100vw - 28px));height:min(540px,calc(100dvh - 28px));z-index:18;isolation:isolate;pointer-events:none;font-family:var(--brand-body,Arial,sans-serif);color:#e7f4fa}
html.intro .byte-assistant,html.byte-art-pending .byte-assistant{visibility:hidden}
.byte-assistant [hidden]{display:none!important}
.byte-assistant .byte-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.byte-assistant .byte-core{position:absolute;bottom:0;right:0;width:94px;height:98px;z-index:4;display:grid;align-content:end;justify-items:center;padding:0 0 4px;border:0;background:none;color:#d5f8ff;font:600 10px/1.2 var(--brand-mono,monospace);letter-spacing:.14em;cursor:pointer;pointer-events:auto;text-shadow:0 0 6px #08090c,0 0 10px #08090c}
.byte-assistant .byte-core:focus-visible,.byte-assistant button:focus-visible,.byte-assistant a:focus-visible{outline:2px solid #93e8fa;outline-offset:3px}
.byte-assistant.no-art .byte-core{border:1px solid #64b4c5;border-radius:50%;background:radial-gradient(circle,#295d6d,#0c1720 70%);align-content:center}
.byte-assistant .byte-panel{position:absolute;inset:0;display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;border:1px solid #59899b88;border-radius:25px;background:linear-gradient(145deg,#14232df5,#0b111bf7 55%,#0d1923f5);box-shadow:0 18px 65px #0009,inset 0 1px 0 #93e8fa18;opacity:0;visibility:hidden;overflow:hidden;clip-path:inset(calc(100% - 86px) 0 0 calc(100% - 86px) round 36px);transition:clip-path .72s cubic-bezier(.22,.76,.25,1),opacity .22s ease,visibility 0s .72s;pointer-events:none;z-index:2}
.byte-assistant.is-open .byte-panel{visibility:visible;opacity:1;clip-path:inset(0 0 0 0 round 25px);pointer-events:auto;transition-delay:0s}
.byte-assistant.is-open .byte-core{visibility:hidden;pointer-events:none}
.byte-assistant .byte-content{display:flex;flex-direction:column;flex:1;min-height:0;opacity:0;transition:opacity .16s}
.byte-assistant.is-open .byte-content{opacity:1;transition-delay:.42s;transition-duration:.3s}
.byte-assistant .byte-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #628b9e30}
.byte-assistant .byte-identity{display:grid;gap:4px;flex:1;min-width:0}
.byte-assistant .byte-identity strong{font:600 24px/1 var(--brand-display,Arial,sans-serif);letter-spacing:-.06em}
.byte-assistant .byte-identity small{font:11px/1.4 var(--brand-mono,monospace);color:#9ec0ce}
.byte-assistant .byte-close{width:42px;height:42px;border:1px solid #658c9e55;border-radius:50%;background:#0b1720;color:#e5faff;font:24px/1 Arial;cursor:pointer}
.byte-assistant .byte-thread{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin}
.byte-assistant .byte-message{font-size:14px;line-height:1.55;background:#172b37;border:1px solid #6290a333;border-radius:4px 16px 16px 16px;padding:13px;max-width:95%}
.byte-assistant .byte-message p{margin:0 0 8px}.byte-assistant .byte-message p:last-child{margin:0}
.byte-assistant .byte-links{display:grid;gap:8px}
.byte-assistant .byte-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:10px 12px;background:#101f2a;border:1px solid #567c8d77;border-radius:10px;font-size:13px;color:#d7eef4}
.byte-assistant .byte-links a:hover{border-color:#8ed9e8;background:#1b3b47}
.byte-assistant .byte-compose{padding:12px 16px 14px;border-top:1px solid #628b9e30}
.byte-assistant .byte-compose input{width:100%;min-height:44px;border:1px solid #506c7d;border-radius:12px;padding:10px 12px;background:#0a131b;color:#9eafbb;font:14px var(--brand-body,Arial,sans-serif)}
.byte-assistant .byte-note{font-size:11px;line-height:1.45;color:#a4b4c0;margin:8px 0 0}
.byte-assistant .byte-teaser{position:absolute;right:92px;bottom:70px;max-width:min(250px,calc(100vw - 134px));z-index:4;pointer-events:auto;border:1px solid #639eaf99;border-radius:16px 16px 3px 16px;background:#10232eee;box-shadow:0 8px 25px #0006;padding:12px 32px 12px 13px;opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s}
.byte-assistant .byte-teaser.is-visible{opacity:1;transform:none}
.byte-assistant .byte-teaser-open{background:none;border:0;padding:0;color:#e4f8fd;text-align:left;font:13px/1.45 var(--brand-body,Arial,sans-serif);cursor:pointer}
.byte-assistant .byte-teaser-close{position:absolute;right:5px;top:5px;width:27px;height:27px;border:0;background:none;color:#afcbd6;font:18px Arial;cursor:pointer}
@media(max-width:760px){.byte-assistant{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:min(410px,calc(100vw - 16px));height:min(540px,calc(100dvh - 16px))}.byte-assistant .byte-core{width:78px;height:84px}.byte-assistant .byte-teaser{right:78px;bottom:61px}.byte-assistant .byte-panel{border-radius:20px}.byte-assistant .byte-thread{padding:13px}.byte-assistant .byte-head{padding:12px 14px}}
@media(prefers-reduced-motion:reduce){.byte-assistant *, .byte-assistant .byte-panel{transition:none!important}}

/* ASCII-only fallback, including the no-canvas case. */
.byte-assistant.no-art .byte-core{white-space:pre;font:700 6px/1.05 monospace;letter-spacing:0;text-align:left;align-content:center;padding:0}

/* Smaller native launcher, with no separate caption. */
.byte-assistant .byte-core{width:74px;height:76px;padding:0;align-content:center}
.byte-assistant .byte-teaser{right:74px;bottom:56px}
.byte-assistant .byte-art{opacity:1}
@media(max-width:760px){.byte-assistant .byte-core{width:66px;height:68px}.byte-assistant .byte-teaser{right:66px;bottom:49px}}


/* BYTE is a living ASCII surface, not a card with an illuminated outline.
   The canvas is behind the actual interactive pills. */
.byte-assistant .byte-art{inset:-14px;width:calc(100% + 28px);height:calc(100% + 28px);max-width:none;max-height:none;z-index:1}
.byte-assistant::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:25px;background:radial-gradient(ellipse at 50% 48%,#0c0717ec 0%,#0c0717db 54%,#0c071796 83%,transparent 100%);opacity:0;clip-path:inset(calc(100% - 74px) 0 0 calc(100% - 74px) round 25px);transition:clip-path .72s cubic-bezier(.22,.76,.25,1),opacity .38s ease;mask-image:linear-gradient(to right,transparent,#000 14px,#000 calc(100% - 14px),transparent),linear-gradient(to bottom,transparent,#000 14px,#000 calc(100% - 14px),transparent);mask-composite:intersect}
.byte-assistant.is-open::before{opacity:1;clip-path:inset(0 round 25px)}
.byte-assistant .byte-panel{border:0;background:none;box-shadow:none;isolation:isolate}
.byte-assistant .byte-head,.byte-assistant .byte-compose{background:none;border:0}
.byte-assistant .byte-head{padding-top:18px;padding-bottom:9px}
.byte-assistant .byte-identity strong{color:#fff1fc;text-shadow:0 1px 4px #0c0515,0 0 12px #ac65d777}
.byte-assistant .byte-identity small{color:#f1d7ec;text-shadow:0 1px 3px #100718,0 0 7px #100718,0 0 10px #100718}
.byte-assistant .byte-message,.byte-assistant .byte-links a,.byte-assistant .byte-close,.byte-assistant .byte-compose input{border:1px solid #be89ca72;background:linear-gradient(160deg,#34233efc,#1b1328fc 50%,#160f20ff);box-shadow:inset 0 1px 0 #f6d6f319,0 3px 12px #0906126b;color:#fff0fb}
.byte-assistant .byte-message{border-radius:19px 19px 19px 6px}
.byte-assistant .byte-links a{border-radius:999px;padding-inline:15px;transition:background .2s,border-color .2s,box-shadow .2s}
.byte-assistant .byte-links a span{color:#e7b0d8}
.byte-assistant .byte-links a:hover,.byte-assistant .byte-close:hover{background:linear-gradient(160deg,#62314fff,#2b173dff);border-color:#e9a5d8;box-shadow:inset 0 1px 0 #ffe2fb33,0 0 14px #d078c22a}
.byte-assistant .byte-compose input{border-radius:999px;padding-inline:15px}
.byte-assistant .byte-compose input::placeholder{color:#e4cddd}
.byte-assistant .byte-thread{scrollbar-color:#c28bc14d transparent;scrollbar-width:thin}
.byte-assistant .byte-note{color:#ebd4e8;text-shadow:0 1px 4px #100818,0 0 7px #100818}
.byte-assistant.no-art .byte-panel{background:#1b1328fa;border:1px solid #b88ac264;box-shadow:0 12px 36px #0007}
.byte-assistant.no-art::before{display:none}
@media(max-width:760px){.byte-assistant.is-open .byte-panel,.byte-assistant.is-open::before{clip-path:inset(0 round 20px)}.byte-assistant::before{border-radius:20px}.byte-assistant .byte-head{padding-top:14px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.byte-assistant::before{transition:none}}

/* Elastic materialization: no invisible obstacle before its actual pill.
   Text and solid capsule are animated as one element. The field reads
   their current opacity and transformed geometry on every rendered frame. */
.byte-assistant .byte-panel,.byte-assistant.is-open .byte-panel{clip-path:none;transition:none}
.byte-assistant .byte-content,.byte-assistant.is-open .byte-content{opacity:1;transition:none}
.byte-assistant.is-open .byte-identity,.byte-assistant.is-open .byte-close,.byte-assistant.is-open .byte-message,.byte-assistant.is-open .byte-links a,.byte-assistant.is-open .byte-compose input,.byte-assistant.is-open .byte-note{animation:byte-elastic-arrive .34s cubic-bezier(.22,.76,.25,1) both;animation-delay:var(--byte-arrival,80ms);transform-origin:center}
.byte-assistant.is-open .byte-identity{transform-origin:left center;--byte-arrival:60ms}
.byte-assistant.is-open .byte-close{--byte-arrival:60ms}
.byte-assistant.is-open .byte-compose input,.byte-assistant.is-open .byte-note{--byte-arrival:110ms}
.byte-assistant.is-open .byte-message{--byte-arrival:160ms;transform-origin:left center}
.byte-assistant.is-open .byte-links a:nth-child(1){--byte-arrival:245ms}
.byte-assistant.is-open .byte-links a:nth-child(2){--byte-arrival:320ms}
.byte-assistant.is-open .byte-links a:nth-child(3){--byte-arrival:395ms}
.byte-assistant.is-open .byte-links a:nth-child(4){--byte-arrival:470ms}
@keyframes byte-elastic-arrive{
 0%{opacity:0;transform:translateY(7px) scale(.84)}
 34%{opacity:1}
 64%{opacity:1;transform:translateY(-1px) scale(1.035)}
 100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
 .byte-assistant.is-open .byte-identity,.byte-assistant.is-open .byte-close,.byte-assistant.is-open .byte-message,.byte-assistant.is-open .byte-links a,.byte-assistant.is-open .byte-compose input,.byte-assistant.is-open .byte-note{animation:none!important;opacity:1;transform:none}
}

/* Conversation UI: the original particles continue to wrap every new pill. */
.byte-assistant .byte-input-row{display:flex;gap:8px;align-items:center}
.byte-assistant .byte-compose input{flex:1;min-width:0;font-size:16px}
.byte-assistant .byte-send{flex:0 0 44px;width:44px;height:44px;border:1px solid #d9a2d8a0;border-radius:50%;background:linear-gradient(145deg,#713d70,#34213f);color:#fff;font:25px/1 Arial;cursor:pointer}
.byte-assistant .byte-send:disabled{opacity:.55;cursor:wait}
.byte-assistant .byte-note a{color:#f8d7f0;text-decoration:underline}
.byte-assistant .byte-conversation-message{flex:none;white-space:pre-wrap;overflow-wrap:anywhere;animation:byte-elastic-arrive .34s cubic-bezier(.22,.76,.25,1) both!important;animation-delay:0s!important}
.byte-assistant .byte-user-message{align-self:flex-end;background:linear-gradient(145deg,#653752,#322039);border-radius:19px 19px 6px 19px}
.byte-assistant.is-open .byte-send{animation:byte-elastic-arrive .34s cubic-bezier(.22,.76,.25,1) 110ms both}
@media(prefers-reduced-motion:reduce){.byte-assistant .byte-conversation-message,.byte-assistant.is-open .byte-send{animation:none!important}}


/* V158 — accessible ASCII activity, independent of WebGL, and safe response widgets. */
.byte-assistant .byte-widget{white-space:normal;width:95%;display:grid;gap:10px}
.byte-assistant .byte-widget-title{font-size:14px;color:#fff0fb}
.byte-assistant .byte-widget-list{display:grid;gap:7px}
.byte-assistant .byte-widget-option{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:10px 12px;border:1px solid #c58bd35c;border-radius:12px;background:#271a35;color:#fceafa;font:inherit;line-height:1.4;overflow-wrap:anywhere}
.byte-assistant button.byte-widget-option{cursor:pointer;min-height:44px}
.byte-assistant button.byte-widget-option[aria-pressed="true"]{background:#5c305f;border-color:#f5b9ec;box-shadow:0 0 12px #c87ed344}
.byte-assistant .byte-widget-option small{display:block;color:#dec1e3;font-size:12px;margin-top:3px}
.byte-assistant .byte-widget-confirm{min-height:44px;border:1px solid #e9b2df88;border-radius:999px;background:#6c3b70;color:#fff;font:inherit;cursor:pointer}
.byte-assistant .byte-widget-confirm:disabled,.byte-assistant button.byte-widget-option:disabled{opacity:.65;cursor:default}
.byte-assistant .byte-step-number{font:700 13px monospace;color:#d0a0f5}
.byte-assistant .byte-widget-step:not(:last-child){position:relative;margin-bottom:9px}
.byte-assistant .byte-widget-step:not(:last-child)::after{content:"↓";position:absolute;bottom:-17px;left:21px;color:#db9cfa;font:13px monospace}

/* V159 — organic ASCII membrane and live text materialization. */
.byte-assistant .byte-typing{animation:none!important;opacity:1;transform:none;min-height:44px}
.byte-assistant .byte-typing::after{content:"";display:inline-block;width:1px;height:1em;margin-left:3px;vertical-align:-.1em;background:#f7b7ed;box-shadow:0 0 7px #f7a5f2;animation:byte-caret .85s ease-in-out infinite}
@keyframes byte-caret{0%,100%{opacity:1}50%{opacity:.2}}
@media(prefers-reduced-motion:reduce){.byte-assistant .byte-typing::after{animation:none}}


/* V160 compact commercial discovery and clear handoff. */
.byte-assistant .byte-widget{padding:10px;gap:8px}
.byte-assistant .byte-widget-list{gap:5px}
.byte-assistant button.byte-widget-option{padding:7px 10px;min-height:44px;border-radius:11px;font-size:13px;line-height:1.3}
.byte-assistant .byte-choice-mark{width:17px;height:17px;border-radius:50%;border:1px solid #c794d8;flex:none;display:grid;place-items:center}
.byte-assistant button[aria-pressed="true"] .byte-choice-mark::after{content:"✓";font:700 12px/1 monospace;color:#fff}
.byte-assistant .byte-widget-confirm{font-size:13px;min-height:42px}
.byte-assistant .byte-widget-completed .byte-widget-list,.byte-assistant .byte-widget-completed .byte-widget-confirm{display:none}
.byte-assistant .byte-widget-completed{padding:8px 11px;opacity:.85}
.byte-assistant .byte-widget-completed .byte-widget-title{font-size:12px;font-weight:500}
.byte-assistant .byte-widget-completed::after{content:"✓";color:#eab6f5}
.byte-assistant .byte-actions{display:grid;gap:7px;width:95%;padding:9px}
.byte-assistant .byte-action-link{display:flex;justify-content:center;align-items:center;min-height:44px;text-align:center;padding:8px 12px;border:1px solid #e9b2df88;border-radius:999px;background:#6c3b70;color:#fff;font-size:14px;text-decoration:none}
.byte-assistant .byte-action-link+ .byte-action-link{background:#271a35}

/* V161 — three elastic solid typing dots. Their actual transformed rectangles
   are sampled by the native ASCII obstacle field, so glyphs yield to the moving circles. */
.byte-assistant .byte-thinking{align-self:flex-start;display:flex;align-items:center;justify-content:flex-start;flex:none;width:auto;max-width:95%;min-height:65px;padding:5px 14px 3px;background:transparent;border:0;box-shadow:none;animation:none!important;opacity:1;transform:none}
.byte-assistant .byte-thinking-dots{display:flex;align-items:center;gap:15px;height:56px;pointer-events:none}
.byte-assistant .byte-thinking-dot{display:block;flex:0 0 19px;width:19px;height:19px;border:1px solid #e7b6edb3;border-radius:50%;background:radial-gradient(circle at 34% 25%,#e4b4ec 0%,#aa6bab 24%,#704479 55%,#392044 100%);box-shadow:inset 0 1px 2px #ffe5fc55,0 2px 6px #14091d99;transform-origin:center;animation:byte-dot-bounce 1.32s infinite both;will-change:transform}
.byte-assistant .byte-thinking-dot:nth-child(2){animation-delay:-.18s}
.byte-assistant .byte-thinking-dot:nth-child(3){animation-delay:-.36s}
@keyframes byte-dot-bounce{
 0%,64%,100%{transform:translateY(6px) scale(1.08,.92)}
 12%{transform:translateY(5px) scale(1.15,.85);animation-timing-function:cubic-bezier(.19,.65,.34,1)}
 34%{transform:translateY(-17px) scale(.96,1.05);animation-timing-function:cubic-bezier(.5,0,.8,.44)}
 57%{transform:translateY(6px) scale(1.16,.84)}
}
@media(prefers-reduced-motion:reduce){.byte-assistant .byte-thinking-dot{animation:none!important;transform:none;will-change:auto}}

/* V163 inline booking/contact; independent from the chat composer. */
.byte-assistant .byte-action-link{font:inherit;cursor:pointer;width:100%}
.byte-assistant .byte-lead-card{width:95%;max-width:95%;padding:13px;display:grid;gap:10px;white-space:normal}
.byte-assistant .byte-lead-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.byte-assistant .byte-lead-close{border:1px solid #e9b2df66;border-radius:50%;width:32px;height:32px;flex:none;background:#2e1c3a;color:#fff;font-family:inherit;font-size:20px;line-height:1;cursor:pointer}
.byte-assistant .byte-lead-form,.byte-assistant .byte-lead-step{display:grid;gap:10px}
.byte-assistant .byte-lead-field{display:grid;gap:4px;color:#f2e3f7;font-size:12px;text-align:left}
.byte-assistant .byte-lead-field input,.byte-assistant .byte-lead-field select,.byte-assistant .byte-lead-field textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d9abe16b;border-radius:11px;background:#1f142b;color:#fff;padding:9px 10px;font-family:inherit;font-size:16px;line-height:1.3;color-scheme:dark}
.byte-assistant .byte-lead-field input,.byte-assistant .byte-lead-field select{min-height:43px}
.byte-assistant .byte-lead-field textarea{resize:vertical;min-height:95px}
.byte-assistant .byte-lead-field input:focus,.byte-assistant .byte-lead-field select:focus,.byte-assistant .byte-lead-field textarea:focus{outline:1px solid #ebb6f5}
.byte-assistant .byte-lead-hint,.byte-assistant .byte-lead-status{font-size:12px;color:#e0c6e8;margin:0;white-space:normal}
.byte-assistant .byte-lead-status:empty{display:none}
.byte-assistant .byte-lead-privacy{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:#eee0f2}
.byte-assistant .byte-lead-privacy input{width:17px;height:17px;flex:none;accent-color:#b77ac7}
.byte-assistant .byte-lead-privacy a{color:#f6ccff;text-decoration:underline}
.byte-assistant .byte-lead-controls{display:flex;gap:8px}
.byte-assistant .byte-lead-controls button{flex:1;min-height:44px;border:1px solid #e9b2df88;border-radius:999px;color:#fff;font:inherit;cursor:pointer}
.byte-assistant .byte-lead-submit{background:#6c3b70}
.byte-assistant .byte-lead-secondary{background:#271a35}
.byte-assistant .byte-lead-controls button:disabled{opacity:.6;cursor:wait}
.byte-assistant .byte-lead-card [hidden]{display:none!important}
.byte-assistant .byte-lead-card p{margin:0}

/* V165 independent visible conversations. */
.byte-assistant .byte-new-chat{width:42px;height:42px;flex:none;border:1px solid #be89ca72;border-radius:50%;background:linear-gradient(160deg,#34233e,#1b1328);color:#fff0fb;font:24px/1 Arial,sans-serif;cursor:pointer}.byte-assistant .byte-new-chat:disabled{opacity:.4;cursor:wait}.byte-assistant .byte-new-chat:focus-visible{outline:2px solid #e9b2df}
