/* A quiet, responsive conversation workspace. All dimensions belong to this app. */
body.chat-app{--chat-bg:#fcfcfa;--chat-panel:#fff;--chat-sidebar:#f3f4f1;--chat-ink:#242936;--chat-muted:#75808b;--chat-line:#e4e6e3;--chat-accent:#3767bd;background:var(--chat-bg)}
html[data-theme=dark] body.chat-app{--chat-bg:#181c23;--chat-panel:#222730;--chat-sidebar:#14181e;--chat-ink:#eceef2;--chat-muted:#9ba4b1;--chat-line:#343a45;--chat-accent:#93b8ff}
.chat-shell{display:grid;grid-template-columns:252px minmax(0,1fr);background:var(--chat-bg);color:var(--chat-ink);height:calc(100dvh - 58px);min-height:500px;max-width:1800px;margin:0 auto;position:relative;isolation:isolate;overflow:hidden;font:inherit}
.chat-shell *{box-sizing:border-box}.chat-shell [hidden],#chatSetupDialog [hidden]{display:none!important}.chat-shell button,#chatSetupDialog button{font:inherit;cursor:pointer;border:0;background:transparent;color:inherit}.chat-shell svg{flex:none}.chat-shell button:focus-visible,.chat-shell a:focus-visible,#chatSetupDialog :focus-visible{outline:2px solid var(--chat-accent);outline-offset:3px}.chat-shell button:disabled{opacity:.5;cursor:wait}
.chat-sidebar{background:var(--chat-sidebar);padding:24px 15px 18px;display:flex;flex-direction:column;gap:18px;min-width:0;border-inline-end:1px solid var(--chat-line)}.chat-brand{display:flex;align-items:center;gap:9px;font:600 15px system-ui;white-space:nowrap}.chat-brand b{font-weight:400;color:var(--chat-muted)}.chat-logo{color:var(--chat-accent);display:grid;place-items:center;width:28px;height:28px}.chat-shell .chat-new{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--chat-line);border-radius:10px;background:var(--chat-panel);font-size:12px;font-weight:600}.chat-new:hover{box-shadow:0 3px 12px #00000008}.chat-search{display:flex;align-items:center;gap:8px;color:var(--chat-muted);padding:0 9px}.chat-shell .chat-search input{border:0!important;box-shadow:none!important;outline:0!important;border-radius:0;background:transparent!important;width:100%;min-width:0;padding:5px 0;font:inherit;font-size:11px;color:var(--chat-ink)}.chat-history-heading{font-size:10px;letter-spacing:.04em;color:var(--chat-muted);padding:4px 9px 0}#chatHistory{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}#chatHistory>div{display:flex;gap:2px;padding:3px;border-radius:8px}#chatHistory>div:has([aria-current=true]){background:var(--chat-panel)}#chatHistory>div:hover{background:var(--chat-panel)}#chatHistory button:first-child{min-width:0;flex:1;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px 7px;font-size:12px}#chatHistory button:last-child{font-size:18px;width:24px;color:var(--chat-muted);opacity:.5}#chatHistory button:last-child:hover{opacity:1;color:#c65050}.chat-shell .chat-setup{display:flex;align-items:center;gap:10px;padding:8px;font-size:12px;color:var(--chat-muted)}.chat-device-note{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--chat-muted);padding:0 8px;line-height:1.7}.chat-workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-top{display:flex;align-items:center;gap:12px;padding:18px 28px;min-height:66px}.chat-top strong{font:600 17px system-ui}.chat-top strong span{font-weight:400}.chat-free{font-size:10px;color:var(--chat-muted);border-inline-start:1px solid var(--chat-line);padding-inline-start:12px}.chat-shell #chatExport{margin-inline-start:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:var(--chat-muted)}#chatExport:hover{background:var(--chat-sidebar)}#chatMenu,#chatHistoryClose,.chat-sidebar-backdrop{display:none}
.chat-messages{flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:20px max(26px,calc((100% - 780px)/2));min-height:0}.chat-welcome{max-width:650px;text-align:center;margin:clamp(20px,10vh,100px) auto 20px}.chat-orbit{color:var(--chat-accent);margin-bottom:17px}.chat-welcome h1{font-size:clamp(27px,3.2vw,40px);font-weight:600;line-height:1.45;letter-spacing:-.03em;margin:12px 0}.chat-welcome p{color:var(--chat-muted);font-size:13px;line-height:1.9;margin:10px 0}.chat-prompts{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:28px}.chat-shell .chat-prompts button{display:flex;align-items:center;gap:8px;font-size:12px;border:1px solid var(--chat-line);border-radius:11px;padding:11px 13px;background:var(--chat-panel);transition:transform .15s,border-color .15s}.chat-prompts button:hover{border-color:var(--chat-accent);transform:translateY(-2px)}.chat-prompts svg{color:var(--chat-muted)}
.chat-message{margin:8px 0 30px;display:flex;flex-direction:column;gap:8px;align-items:start}.chat-message[data-role=user]{align-items:end}.chat-message-heading{font-size:10px;font-weight:700;color:var(--chat-muted)}.chat-message-body{line-height:1.9;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;min-width:0}.chat-message[data-role=user] .chat-message-body{padding:12px 18px;border-radius:16px;background:var(--chat-sidebar);max-width:90%}.chat-message-actions{display:flex;gap:14px;color:var(--chat-muted);font-size:11px}.chat-message-actions button{padding:4px}.chat-message-files{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;justify-content:end}.chat-message-files img{max-width:180px;max-height:180px;object-fit:contain;border-radius:10px}.chat-message-files .chat-file{width:auto;max-width:220px}
.chat-composer-wrap{padding:10px 26px 14px;max-width:830px;width:100%;margin:auto;flex:none}.chat-composer{position:relative;padding:13px 15px 10px;border:1px solid var(--chat-line);border-radius:20px;background:var(--chat-panel);box-shadow:0 3px 20px #17233c06}.chat-composer:focus-within{border-color:#9dadd0;box-shadow:0 2px 14px #17233c0b}.chat-shell .chat-composer textarea{font:inherit;font-size:14px;line-height:1.7;width:100%;max-height:150px;min-height:48px;resize:none;border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;color:var(--chat-ink);padding:4px 3px;margin:0}.chat-composer-actions{display:flex;align-items:center;gap:11px}.chat-attach{display:grid;place-items:center;width:32px;height:32px;color:var(--chat-muted);cursor:pointer;border-radius:8px}.chat-attach:hover{background:var(--chat-sidebar)}.chat-file-hint{color:var(--chat-muted);font-size:10px}.chat-shell #chatSend{margin-inline-start:auto;display:grid;place-items:center;width:34px;height:34px;background:var(--chat-ink);color:var(--chat-panel);border-radius:11px}.chat-shell #chatStop{margin-inline-start:auto;display:flex;align-items:center;gap:6px;background:var(--chat-sidebar);border:1px solid var(--chat-line);border-radius:9px;padding:7px 10px;font-size:11px}.chat-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px}#chatStatus{font-size:11px;line-height:1.6;color:var(--chat-muted);margin:6px 0}.chat-shell #chatRetry{font-size:11px;color:var(--chat-accent);white-space:nowrap}.chat-footnote{display:block;text-align:center;font-size:9px;line-height:1.6;color:var(--chat-muted)}.chat-drop-label{display:none;position:absolute;inset:0;z-index:3;align-items:center;justify-content:center;gap:12px;background:var(--chat-panel);border:2px dashed var(--chat-accent);border-radius:20px;font-size:15px;color:var(--chat-accent);pointer-events:none}.chat-composer.is-dragging .chat-drop-label{display:flex}
.chat-attachments{display:flex;gap:8px;overflow:auto;margin:0 0 10px;padding:2px;max-width:100%}.chat-file{position:relative;display:flex;align-items:center;gap:9px;border:1px solid var(--chat-line);background:var(--chat-bg);border-radius:10px;padding:8px;min-width:0;width:210px;flex:none}.chat-file img{width:38px;height:40px;object-fit:cover;border-radius:6px}.chat-file-symbol{display:grid;place-items:center;font:700 9px system-ui;width:33px;height:38px;border-radius:5px;background:var(--chat-sidebar);color:var(--chat-accent);flex:none}.chat-file-copy{display:grid;gap:3px;min-width:0;flex:1}.chat-file-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;direction:auto}.chat-file-copy small{font-size:9px;color:var(--chat-muted);line-height:1.5;max-height:29px;overflow:hidden}.chat-file button{font-size:17px!important;width:22px;height:26px;flex:none;color:var(--chat-muted)!important}
#chatSetupDialog{box-sizing:border-box;width:min(560px,calc(100% - 28px));max-height:85dvh;overflow:auto;border:1px solid var(--chat-line);border-radius:18px;padding:26px;background:var(--chat-panel);color:var(--chat-ink);font:inherit;line-height:1.8}#chatSetupDialog::backdrop{background:#141b2a70;backdrop-filter:blur(4px)}#chatSetupDialog header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}#chatSetupDialog header small{font:10px system-ui;letter-spacing:.15em;color:var(--chat-muted)}#chatSetupDialog h2{font-size:21px;margin:5px 0}#chatSetupClose{width:32px;height:32px;border-radius:8px;background:var(--chat-sidebar)!important;display:grid;place-items:center}#chatSetupDialog p{font-size:12px;color:var(--chat-muted)}.chat-settings-field{display:grid;gap:7px;font-size:12px;font-weight:600}.chat-settings-field select{width:100%;font:inherit;padding:11px;border:1px solid var(--chat-line);border-radius:9px;background:var(--chat-bg);color:var(--chat-ink)}#chatEngineStatus{display:flex;align-items:center;gap:8px}#chatEngineDot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1fb78b;flex:none}#chatSetupDialog details{font-size:12px;border-block:1px solid var(--chat-line);padding:12px 0;margin:18px 0}#chatSetupDialog summary{cursor:pointer}.chat-settings-refresh{display:flex;align-items:center;gap:9px;font-size:12px!important;padding:9px 12px!important;background:var(--chat-sidebar)!important;border-radius:8px}
.chat-message-body p{margin:0 0 12px;white-space:pre-wrap}.chat-message-body h3{font-size:17px;margin:16px 0 8px}.chat-message-body ul,.chat-message-body ol{padding-inline-start:24px;margin:8px 0 14px;white-space:normal}.chat-message-body code{background:#8092b51c;padding:1px 5px;border-radius:4px}.chat-code{border:1px solid var(--chat-line);border-radius:10px;overflow:hidden;margin:12px 0;background:var(--chat-panel);min-width:0;width:100%;white-space:normal}.chat-code>span{display:inline-block;font-size:11px;color:var(--chat-muted);padding:8px 12px}.chat-code>button{float:inline-end;padding:8px 12px;font-size:11px;color:var(--chat-accent)}.chat-code pre{font:12px/1.7 ui-monospace,Consolas,monospace;overflow:auto;padding:13px;margin:0;border-top:1px solid var(--chat-line);max-width:100%;white-space:pre}.chat-message-body a{color:var(--chat-accent);text-decoration:underline}
@media(max-width:760px){.chat-shell{display:block;height:calc(100dvh - 48px);min-height:420px}.chat-workspace{height:100%}.chat-sidebar{position:absolute;inset-block:0;inset-inline-start:0;width:min(285px,85%);z-index:22;display:none;box-shadow:0 0 40px #0003}.chat-history-open .chat-sidebar{display:flex}.chat-history-open .chat-sidebar-backdrop{display:block;position:absolute;inset:0;background:#0d162b66;z-index:21}#chatHistoryClose{display:grid;place-items:center;margin-inline-start:auto}#chatMenu{display:grid;place-items:center;width:30px;height:30px}.chat-top{padding:8px 12px;min-height:48px;gap:7px}.chat-top strong{font-size:14px}.chat-free{display:none}.chat-top #chatExport{width:29px;height:29px}.chat-messages{padding:16px}.chat-welcome{margin:clamp(12px,6vh,60px) auto 15px}.chat-welcome h1{font-size:28px}.chat-welcome p{font-size:12px}.chat-prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:23px}.chat-prompts button{justify-content:center;font-size:11px!important;padding:10px!important}.chat-composer-wrap{padding:6px 12px 10px}.chat-composer{padding:10px 11px 8px;border-radius:17px}.chat-message-body{font-size:14px}.chat-file-hint{font-size:9px}.chat-footnote{font-size:9px}.chat-message-files img{max-width:130px;max-height:130px}}
@media(prefers-reduced-motion:reduce){.chat-shell *{scroll-behavior:auto!important;transition:none!important}}
.chat-shell{font-family:Cairo,Tahoma,Arial,sans-serif;font-weight:500}.chat-welcome p{font-size:14px;color:var(--chat-muted)}.chat-shell #chatExport{background:transparent!important;color:var(--chat-muted)!important}.chat-shell #chatExport:hover{background:var(--chat-sidebar)!important}#chatHistory button:first-child,.chat-shell .chat-new,.chat-shell .chat-setup{font-size:13px}.chat-history-heading{font-size:11px}.chat-footnote,.chat-device-note{font-size:10px}
@media(max-width:760px) and (max-height:600px){.chat-shell{min-height:0}.chat-welcome{margin:12px auto}.chat-welcome p,.chat-prompts{display:none}.chat-welcome h1{font-size:23px}}
/* The conversation owns its scrolling and fits the visible mobile viewport. */
html:has(body.chat-app){overflow:hidden;overscroll-behavior:none}
body.chat-app{position:fixed;inset-inline:0;top:var(--chat-viewport-top,0px);height:var(--chat-viewport-height,100dvh);margin:0;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none}
body.chat-app>.wp-compact-bar{flex:none;min-width:0}
body.chat-app .demo-page-wrapper{padding-top:0!important;height:auto;flex:1;min-height:0!important;display:flex;flex-direction:column;overflow:hidden}
body.chat-app .demo-banner{position:relative!important;top:auto!important;flex:none;margin:0!important;z-index:25}
body.chat-app .demo-main.container.section{width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;flex:1;overflow:hidden}
body.chat-app .demo-stage{min-height:0!important;height:100%;margin:0!important;padding:0!important;border-radius:0!important}
body.chat-app .chat-shell{width:100%;min-height:0!important;margin:0;max-width:none;border-radius:0!important;border:0!important}
body.chat-app :is(.site-footer,.byb-footer,footer.footer,.demo-preview-banner){display:none!important}
.chat-shell .chat-top{flex:none;border-bottom:1px solid var(--chat-line)}
.chat-shell .chat-top strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-shell .chat-top>button{flex:none}
.chat-shell .chat-sidebar{overflow-y:auto;overscroll-behavior:contain}
.chat-shell .chat-save-history{border:1px solid var(--chat-line);border-radius:9px;justify-content:center}
.chat-shell .chat-messages{touch-action:pan-y;scroll-padding-bottom:16px;-webkit-overflow-scrolling:touch}
.chat-shell .chat-composer-wrap{margin:0 auto;padding-bottom:max(10px,env(safe-area-inset-bottom));background:var(--chat-bg)}
.chat-shell .chat-status-row:has(#chatStatus:empty):has(#chatRetry[hidden]){display:none}
.chat-shell .chat-footnote{font-size:10px;line-height:1.5;padding-top:6px}
@media(max-width:760px){
 body.chat-app .demo-banner{min-height:48px!important;padding:5px 8px!important;gap:6px!important}
 body.chat-app .demo-banner-copy{flex:1;min-width:0!important;overflow:hidden}
 body.chat-app .demo-banner-copy :is(strong,h1,span){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:12px}
 body.chat-app .demo-banner-actions{gap:4px!important;flex:none}
 .chat-shell .chat-top{min-height:45px;padding:5px 12px}
 .chat-shell .chat-composer textarea{font-size:16px;min-height:38px;max-height:100px;line-height:1.5}
 .chat-shell .chat-composer-wrap{padding-inline:10px}
 .chat-shell .chat-composer{padding:8px 10px;border-radius:18px}
 .chat-shell #chatSend,.chat-shell #chatStop,.chat-shell .chat-attach{min-height:40px;min-width:40px}
 .chat-shell .chat-message{margin-bottom:20px}
 body.chat-app>.wp-compact-bar{padding-inline:8px;gap:6px}
 body.chat-app .wp-top-controls{gap:4px}
}
@media(max-height:480px){.chat-shell .chat-footnote,.chat-shell .chat-file-hint{display:none}.chat-shell .chat-composer textarea{max-height:70px}.chat-shell .chat-top{min-height:38px}.chat-shell .chat-welcome{margin:6px auto}.chat-shell .chat-welcome p,.chat-shell .chat-prompts{display:none}}

/* Spark glass studio — the same conversation, with a distinct light and dark canvas. */
body.chat-app{--chat-bg:#f2f7ff;--chat-panel:#ffffffbd;--chat-sidebar:#f5f7ffb3;--chat-ink:#253557;--chat-muted:#778caa;--chat-line:#d9e5f2;--chat-accent:#188cca;--chat-bubble:#ffffffb3;--chat-user:#d9effbbf;--chat-glass-shadow:0 14px 42px #4682b514;background:var(--chat-bg)}
html[data-theme=dark] body.chat-app{--chat-bg:#030910;--chat-panel:#102336b5;--chat-sidebar:#05111ae3;--chat-ink:#f2f8ff;--chat-muted:#819aaf;--chat-line:#274451;--chat-accent:#36cfff;--chat-bubble:#122532b8;--chat-user:#14263dbd;--chat-glass-shadow:0 14px 42px #00000024}
body.chat-app .chat-shell{background:radial-gradient(ellipse at 90% -10%,#7bddf335,transparent 48%),radial-gradient(ellipse at 15% 90%,#9a9ff02a,transparent 52%),linear-gradient(130deg,#f7f5ff,#edf8ff 60%,#f1f8fc);color:var(--chat-ink)}
html[data-theme=dark] body.chat-app .chat-shell{background:radial-gradient(ellipse at 80% -12%,#006b9b66,transparent 42%),radial-gradient(ellipse at 20% 98%,#003e5a55,transparent 47%),radial-gradient(ellipse at 95% 72%,#172d7628,transparent 48%),#03080e}
body.chat-app>.wp-compact-bar,body.chat-app .demo-banner{background:var(--chat-bg)!important;color:var(--chat-ink)!important;border-color:var(--chat-line)!important;box-shadow:none!important}
.chat-shell .chat-sidebar{background:var(--chat-sidebar);backdrop-filter:blur(22px);padding:26px 18px 18px;border-color:var(--chat-line);gap:20px}
.chat-brand{font-size:16px;gap:10px}.chat-brand b{font-weight:650;color:var(--chat-accent)}
.chat-shell .chat-new{border-radius:15px;background:linear-gradient(120deg,#25a3e8,#36bed8);color:#fff;border:1px solid #ffffff59;box-shadow:inset 0 1px #ffffff66,0 7px 18px #138bb627;min-height:46px;padding-inline:15px}
html[data-theme=dark] .chat-shell .chat-new{background:linear-gradient(115deg,#0a91e9,#20c9ec);color:#001420;border-color:#68dfff55;box-shadow:inset 0 1px #a7eaff55,0 8px 24px #06a7e522}
.chat-search{padding:8px 10px;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-panel)}.chat-history-heading{font-size:9px!important;letter-spacing:.1em;padding-inline:5px}#chatHistory>div{border-radius:12px;margin-bottom:5px}#chatHistory>div:has([aria-current=true]){background:var(--chat-panel);box-shadow:inset 0 0 0 1px var(--chat-line)}#chatHistory button:first-child{font-size:12px;padding:12px 9px}
.chat-shell .chat-setup{font-size:11px;min-height:38px;border-radius:10px}.chat-shell .chat-setup:hover{background:var(--chat-panel)}.chat-device-note{font-size:9px;opacity:.8}
.chat-shell .chat-top{padding:14px 26px;min-height:64px;border-bottom:1px solid #789ec51c;background:transparent;gap:13px}.chat-top strong{font-size:16px;font-weight:650;letter-spacing:-.2px}.chat-top strong span{font-weight:650;color:var(--chat-accent)}.chat-free{font-size:10px;padding:0;border:0;display:flex;align-items:center;gap:6px}.chat-free:before{content:'';width:5px;height:5px;background:#51beac;border-radius:50%;box-shadow:0 0 10px #2ddcb133}
.chat-shell .chat-top>button{border:1px solid var(--chat-line)!important;border-radius:50%!important;background:var(--chat-panel)!important;width:36px!important;height:36px!important;color:var(--chat-muted)!important;box-shadow:inset 0 1px #ffffff35}
.chat-shell .chat-messages{padding:20px max(26px,calc((100% - 830px)/2));scrollbar-color:#7698bd55 transparent}
.chat-shell .chat-welcome{max-width:720px;margin:clamp(4px,2.2vh,24px) auto 16px;text-align:center;position:relative}
.chat-welcome-art{height:160px;position:relative;display:grid;place-items:center;margin:0 auto 15px;width:min(390px,90%);isolation:isolate}
.chat-welcome-art:before{content:'';position:absolute;inset:26px 15%;border-radius:50%;background:radial-gradient(ellipse,#95d6fa70,transparent 68%);filter:blur(17px);z-index:-1}
.chat-shell .chat-orbit{width:140px;height:140px;border-radius:46% 54% 51% 49% / 47% 45% 55% 53%;position:relative;margin:0;isolation:isolate;background:radial-gradient(circle at 27% 19%,#ffffffcf,transparent 35%),conic-gradient(from 30deg,#9fe9f8,#4c97f5,#a8a5ff,#f1c8f8,#83ddf1,#9fe9f8);box-shadow:inset 5px 3px 16px #ffffffcc,inset -8px -7px 18px #5062c733,0 12px 30px #5c90df22;transform:rotate(-14deg);border:1px solid #ffffffa8}
.chat-orbit:before{content:'';position:absolute;inset:15%;border-radius:48% 52% 62% 38%;background:conic-gradient(from 95deg,#6158faee,#95f3ed,#3978f1,#9480fa,#6158faee);filter:blur(12px);transform:rotate(30deg)}
.chat-orbit:after{content:'';position:absolute;inset:5px;border-radius:inherit;border:1px solid #ffffff80;box-shadow:inset 0 0 12px #fff8}
.chat-orbit>span{position:absolute;inset:13% 9% 11% 29%;border-radius:48%;border:5px solid #d5fbff91;border-inline-start-color:transparent;border-block-end-color:#bba5ffb0;filter:blur(4px);transform:rotate(25deg)}
.chat-orb-satellite{position:absolute;display:block;width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 25% 20%,#fff,#b7eef4 45%,#7fd8f4 68%,#b5b9ee);box-shadow:inset 2px 2px 8px #fff9,0 10px 24px #5e90be14;opacity:.75}.chat-orb-satellite-one{inset-inline-start:22px;top:30px;width:30px;height:30px;background:radial-gradient(circle at 25% 20%,#fff,#ffddc7 45%,#f0bfba 70%,#eddbed)}.chat-orb-satellite-two{inset-inline-end:12px;bottom:20px;width:46px;height:46px}
html[data-theme=dark] .chat-welcome-art:before{background:radial-gradient(ellipse,#018ce984,transparent 68%);filter:blur(22px)}
html[data-theme=dark] .chat-orbit{background:radial-gradient(circle at 29% 24%,#43e8faaa,transparent 30%),conic-gradient(from 25deg,#004ad2,#08dbef,#008cf2,#21328a,#5973ff,#004ad2);box-shadow:inset 4px 4px 16px #92bfff66,inset -8px -7px 16px #000a,0 0 28px #008cff33;border-color:#489cff88}
html[data-theme=dark] .chat-orbit:before{background:conic-gradient(from 75deg,#001667,#0c5bdf,#00d6f4,#2821ac,#001667);filter:blur(10px)}
html[data-theme=dark] .chat-orbit:after{border-color:#5a9dff66;box-shadow:inset 0 0 12px #02cfff77}html[data-theme=dark] .chat-orbit>span{border-color:#05eaff99;border-inline-start-color:transparent;border-block-end-color:#5351ff80;filter:blur(3px)}
html[data-theme=dark] .chat-orb-satellite{background:radial-gradient(circle at 30% 25%,#1966a8,#062c49 65%,#043652);box-shadow:inset 1px 1px 5px #35b5ef66;opacity:.6}html[data-theme=dark] .chat-orb-satellite-one{background:radial-gradient(circle at 30% 25%,#a67aef,#172049 65%,#182c5b)}
.chat-eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--chat-accent);display:block;margin-bottom:9px}.chat-shell .chat-welcome h1{font-size:clamp(27px,3vw,39px);font-weight:700;line-height:1.4;letter-spacing:-1.1px;margin:0 auto 9px;max-width:650px;color:var(--chat-ink)}.chat-shell .chat-welcome p{font-size:13px;line-height:1.8;max-width:460px;margin:0 auto;color:var(--chat-muted)}
.chat-shell .chat-prompts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:29px;text-align:start}.chat-shell .chat-prompts button{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:0;border:1px solid #ffffffd9;border-radius:21px;min-height:152px;padding:17px 15px!important;background:linear-gradient(145deg,#ffffffd9,#f2f8ff87);box-shadow:inset 0 1px #fff,0 10px 0 -4px #dce7f080,0 14px 28px #587da910;overflow:hidden;transition:transform .2s,box-shadow .2s}
.chat-shell .chat-prompts button:hover{transform:translateY(-4px);border-color:#83c8e4;box-shadow:inset 0 1px #fff,0 10px 0 -4px #cbe1ef80,0 18px 30px #587da923}
.chat-prompt-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:11px;background:#d9eafb;color:#468ac3;margin-bottom:12px;box-shadow:inset 0 1px #fff9}.chat-prompts button:nth-child(2) .chat-prompt-icon{background:#e6e1fa;color:#8b73c4}.chat-prompts button:nth-child(3) .chat-prompt-icon{background:#dcf3ef;color:#3c9a9b}.chat-prompts button:nth-child(4) .chat-prompt-icon{background:#ffece2;color:#d48f65}.chat-prompts .chat-prompt-icon svg{color:inherit;width:18px;height:18px}.chat-prompts strong{font-size:12px;font-weight:650;line-height:1.5;color:var(--chat-ink);display:block;margin-bottom:5px}.chat-prompts small{font-size:10px;font-weight:400;color:var(--chat-muted);line-height:1.7}.chat-prompt-arrow{position:absolute;inset-inline-end:13px;top:16px;opacity:.5}.chat-prompt-arrow svg{color:var(--chat-muted)}
html[data-theme=dark] .chat-shell .chat-prompts button{background:linear-gradient(135deg,#16384b66,#11213e77);border-color:#5d8da445;box-shadow:inset 0 1px #d0f5ff1c,0 12px 25px #0002}
html[data-theme=dark] .chat-shell .chat-prompts button:nth-child(2){background:linear-gradient(135deg,#18253988,#202d6066)}html[data-theme=dark] .chat-shell .chat-prompts button:nth-child(3){background:linear-gradient(135deg,#0e304077,#123d4266)}html[data-theme=dark] .chat-shell .chat-prompts button:nth-child(4){background:linear-gradient(135deg,#18253988,#2d225066)}
html[data-theme=dark] .chat-shell .chat-prompts button:hover{border-color:#5dd8ff88;box-shadow:inset 0 1px #d0f5ff1c,0 12px 30px #0085be17}html[data-theme=dark] .chat-prompt-icon{background:#33bfff18!important;color:#71d6f4!important;box-shadow:inset 0 1px #9ddfff22}
.chat-shell .chat-message{position:relative;align-items:flex-start;margin:12px 0 25px;padding-inline-start:45px;gap:7px}.chat-shell .chat-message[data-role=user]{align-items:flex-end;padding-inline-start:0;padding-inline-end:45px}
.chat-message-avatar{position:absolute;inset-inline-start:0;top:22px;display:grid;place-items:center;width:33px;height:33px;border:1px solid var(--chat-line);border-radius:50%;background:var(--chat-panel);box-shadow:0 4px 16px #21476a12;overflow:hidden}.chat-message[data-role=user] .chat-message-avatar{inset-inline-start:auto;inset-inline-end:0;background:linear-gradient(140deg,#9adfee,#96a7ed);border-color:#ffffff88;color:#fff;font:700 13px Cairo,system-ui}.chat-message-avatar img{width:100%;height:100%;object-fit:cover}.chat-mini-orb{display:block;width:24px;height:24px;border-radius:46% 54% 51% 49%;background:radial-gradient(circle at 20% 20%,#c4fcff,#3c93ea 35%,#584fca 60%,#60d4e8);box-shadow:inset 0 0 5px #d5faff;transform:rotate(-15deg)}
.chat-message-heading{font-size:9px;letter-spacing:.02em;padding-inline:3px;opacity:.9}.chat-shell .chat-message-body{padding:15px 19px;border-radius:5px 22px 22px 22px;background:var(--chat-bubble);border:1px solid var(--chat-line);box-shadow:var(--chat-glass-shadow),inset 0 1px #ffffff44;max-width:92%;font-size:14px;line-height:1.9;backdrop-filter:blur(12px)}
.chat-shell .chat-message[data-role=user] .chat-message-body{background:linear-gradient(130deg,var(--chat-user),#d9ddfa80);border-color:#c1d8ed;padding:12px 17px;border-radius:22px 5px 22px 22px;max-width:88%}
html[dir=rtl] .chat-shell .chat-message-body{border-radius:22px 5px 22px 22px}html[dir=rtl] .chat-shell .chat-message[data-role=user] .chat-message-body{border-radius:5px 22px 22px 22px}
html[data-theme=dark] .chat-shell .chat-message-body{box-shadow:inset 0 1px #b4dfff0a,0 10px 24px #0002;border-color:#547b8e66}
html[data-theme=dark] .chat-shell .chat-message[data-role=user] .chat-message-body{background:linear-gradient(130deg,#0e2735bb,#222c4c99);border-color:#59738b66}
.chat-message-body>:last-child{margin-bottom:0}.chat-message-actions{gap:6px;padding-inline:3px}.chat-message-actions button{font-size:9px;padding:4px 8px!important;border:1px solid var(--chat-line)!important;border-radius:6px;background:var(--chat-panel)!important;opacity:.8}.chat-message-actions button:hover{opacity:1}.chat-message-body.chat-thinking{display:flex;gap:5px;align-items:center;min-height:51px;padding-inline:20px}.chat-thinking>span{width:5px;height:5px;border-radius:50%;background:var(--chat-accent);animation:chat-pulse 1.2s infinite}.chat-thinking>span:nth-child(2){animation-delay:.15s}.chat-thinking>span:nth-child(3){animation-delay:.3s}@keyframes chat-pulse{0%,75%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.chat-shell .chat-composer-wrap{padding:11px 26px 16px;max-width:890px;margin:0 auto;width:100%;position:relative;background:transparent!important}
.chat-shell .chat-composer{padding:8px;border:1px solid #ffffffdd;border-radius:26px;background:linear-gradient(130deg,#ffffffeb,#f4fbffcf);box-shadow:0 12px 36px #6587ab1c,inset 0 1px #fff;backdrop-filter:blur(20px)}
html[data-theme=dark] .chat-shell .chat-composer{background:linear-gradient(120deg,#122b37c9,#101d2bd9);border-color:#42657988;box-shadow:inset 0 1px #c1f1ff17,0 12px 30px #0003}
.chat-shell .chat-composer:focus-within{border-color:#6dc2e4;box-shadow:0 0 0 3px #30a4e40a,0 12px 36px #2b8eb71a}
.chat-composer-row{display:flex;align-items:flex-end;gap:8px;min-width:0}.chat-shell .chat-composer textarea{min-width:0;flex:1;width:auto;min-height:42px;max-height:140px;font-size:14px;line-height:1.65;padding:10px 2px!important;resize:none;color:var(--chat-ink);margin:0}.chat-composer textarea::placeholder{color:var(--chat-muted);opacity:.9}.chat-composer-actions{gap:0;flex:none}.chat-shell .chat-attach{flex:none;align-self:flex-end;width:40px;height:42px;min-width:40px;min-height:42px;border-radius:50%;color:var(--chat-muted)}
.chat-shell #chatSend,.chat-shell #chatStop{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;margin:0;border:1px solid #fff8;border-radius:50%;background:linear-gradient(150deg,#4ac4ef,#3882ef);color:white;box-shadow:inset 0 2px 3px #b8edff99,0 4px 14px #1f9ada30}.chat-shell #chatStop{background:var(--chat-user);color:var(--chat-accent);border-color:var(--chat-line);box-shadow:none}
html[data-theme=dark] .chat-shell #chatSend{background:linear-gradient(145deg,#00a5f3,#0fd1e4);color:#001a25;border-color:#57e5ff88;box-shadow:inset 0 1px 3px #98f8ff77,0 3px 15px #00c8f322}
.chat-status-row{min-height:0;padding-inline:12px}#chatStatus:empty{display:none}#chatStatus{font-size:10px;margin:8px 0 2px;line-height:1.5}.chat-shell .chat-footnote{font-size:9px;margin-top:10px;line-height:1.5;opacity:.85}.chat-attachments{padding:4px;margin:0 0 6px}.chat-file{background:var(--chat-bg);border-radius:14px;border-color:var(--chat-line)}
#chatSetupDialog{background:var(--chat-bg);border-radius:24px;box-shadow:0 24px 80px #0003}#chatSetupDialog header small{color:var(--chat-accent)}
@media(min-width:1500px){.chat-shell .chat-welcome{margin-top:4vh}.chat-welcome-art{height:185px;margin-bottom:20px}.chat-shell .chat-orbit{width:160px;height:160px}}
@media(max-width:1050px) and (min-width:761px){.chat-shell{grid-template-columns:220px minmax(0,1fr)}.chat-shell .chat-prompts{grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px;margin-inline:auto}.chat-shell .chat-prompts button{min-height:125px}.chat-shell .chat-welcome-art{height:130px}.chat-shell .chat-orbit{width:110px;height:110px}.chat-shell .chat-welcome h1{font-size:29px}}
@media(max-width:760px){
 .chat-shell .chat-top{padding:8px 15px;min-height:54px;gap:9px}.chat-top strong{font-size:14px}.chat-shell .chat-top>button{width:32px!important;height:32px!important}.chat-shell .chat-top .chat-free{display:none}
 .chat-shell .chat-sidebar{background:var(--chat-bg);padding:20px 18px}.chat-shell .chat-messages{padding:14px 19px}.chat-shell .chat-welcome{margin:4px auto 16px}.chat-welcome-art{height:126px;width:280px;max-width:100%;margin-bottom:12px}.chat-shell .chat-orbit{width:110px;height:110px}.chat-orb-satellite-one{width:24px;height:24px;top:24px;inset-inline-start:20px}.chat-orb-satellite-two{width:35px;height:35px;bottom:12px;inset-inline-end:16px}
 .chat-shell .chat-eyebrow{font-size:9px;letter-spacing:.11em;margin-bottom:9px}.chat-shell .chat-welcome h1{font-size:27px;line-height:1.4;letter-spacing:-.75px;max-width:300px;margin-bottom:9px}.chat-shell .chat-welcome p{font-size:11px;line-height:1.8;max-width:290px}
 .chat-shell .chat-prompts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:23px}.chat-shell .chat-prompts button{justify-content:flex-start;min-height:121px;padding:14px 14px 13px!important;border-radius:18px}.chat-prompt-icon{width:28px;height:28px;border-radius:9px;margin-bottom:9px}.chat-prompts .chat-prompt-icon svg{width:16px;height:16px}.chat-prompts strong{font-size:11px;line-height:1.5;margin-bottom:4px}.chat-prompts small{font-size:9px;line-height:1.6}.chat-prompt-arrow{top:14px;inset-inline-end:13px}.chat-prompt-arrow svg{width:13px;height:13px}
 .chat-shell .chat-composer-wrap{padding:8px 13px max(12px,env(safe-area-inset-bottom))}.chat-shell .chat-composer{padding:7px;border-radius:26px}.chat-shell .chat-composer textarea{font-size:16px;min-height:42px;max-height:110px;padding:10px 0!important;line-height:1.45}.chat-composer textarea::placeholder{font-size:12px}.chat-composer-row{gap:3px}.chat-shell .chat-attach{width:35px;min-width:35px;height:42px}.chat-shell #chatSend,.chat-shell #chatStop{width:42px;min-width:42px;height:42px;min-height:42px}.chat-shell .chat-footnote{font-size:8px;margin-top:9px}
 .chat-shell .chat-message{padding-inline-start:37px;margin-bottom:22px}.chat-shell .chat-message[data-role=user]{padding-inline-end:37px;padding-inline-start:0}.chat-message-avatar{width:28px;height:28px;top:22px}.chat-mini-orb{width:20px;height:20px}.chat-shell .chat-message-body{padding:12px 14px;max-width:100%;font-size:13px;line-height:1.9}.chat-shell .chat-message[data-role=user] .chat-message-body{padding:11px 14px;max-width:96%}.chat-message-heading{font-size:8px}.chat-message-actions button{font-size:8px}.chat-message-actions{gap:5px}.chat-message-files .chat-file{max-width:220px}
}
@media(max-width:360px){.chat-shell .chat-messages{padding-inline:14px}.chat-shell .chat-welcome h1{font-size:25px}.chat-shell .chat-welcome-art{height:106px}.chat-shell .chat-orbit{width:94px;height:94px}.chat-shell .chat-prompts{gap:10px}.chat-shell .chat-prompts button{padding:12px!important;min-height:118px}.chat-prompts strong{font-size:10px}.chat-prompts small{font-size:8.5px}.chat-shell .chat-composer-wrap{padding-inline:10px}.chat-composer textarea::placeholder{font-size:11px}}
@media(max-height:700px){.chat-shell .chat-welcome-art{height:95px;margin-bottom:9px}.chat-shell .chat-orbit{width:82px;height:82px}.chat-shell .chat-welcome h1{font-size:25px}.chat-shell .chat-prompts{margin-top:18px}.chat-shell .chat-prompts button{min-height:106px}.chat-shell .chat-welcome{margin-top:0}.chat-shell .chat-prompts .chat-prompt-icon{margin-bottom:7px}}
@media(max-height:560px){.chat-shell.chat-is-empty .chat-welcome-art{height:80px}.chat-shell.chat-is-empty .chat-orbit{width:66px;height:66px}.chat-shell.chat-is-empty .chat-welcome p,.chat-shell.chat-is-empty .chat-prompts,.chat-shell.chat-is-empty .chat-eyebrow{display:none}.chat-shell .chat-composer-wrap{padding-block:5px}.chat-shell .chat-footnote{display:none}.chat-shell .chat-composer textarea{max-height:70px}}
@media(prefers-reduced-motion:reduce){.chat-shell *,.chat-shell *:before,.chat-shell *:after{animation:none!important;transition:none!important}}
body.chat-app .chat-shell{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:400}
html[lang=ar] body.chat-app .chat-shell{font-family:Cairo,Tahoma,Arial,sans-serif;font-weight:400}
.chat-shell .chat-welcome h1{font-weight:650}.chat-shell .chat-message-body{font-weight:400}
.chat-shell .chat-prompt-arrow svg{transform:rotate(-40deg)}html[dir=rtl] .chat-shell .chat-prompt-arrow svg{transform:rotate(-140deg)}
.chat-shell .chat-top #chatExport{color:var(--chat-muted)!important;border-color:var(--chat-line)!important}
.chat-shell .chat-message-actions button{min-height:30px;line-height:1.3;font-size:10px}
.chat-shell .chat-top .byb-icon{stroke:currentColor!important}
