@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Fira+Code:wght@400;500&family=Rubik:ital,wght@0,300..900;1,300..900&family=Assistant:wght@200..800&family=David+Libre:wght@400;500;700&family=Frank+Ruhl+Libre:wght@300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:2rem!important;padding-left:2rem!important}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.\!container{max-width:1400px!important}.container{max-width:1400px}}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-50{z-index:50}.z-\[100\]{z-index:100}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-4{height:1rem}.h-8{height:2rem}.max-h-screen{max-height:100vh}.w-4{width:1rem}.w-full{width:100%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-md{border-radius:calc(var(--radius, 16px) - 2px)}.border{border-width:1px}.border-destructive{border-color:var(--color-destructive)}.bg-background{background-color:var(--color-background, var(--bg-color))}.bg-destructive{background-color:var(--color-destructive)}.bg-popover{background-color:var(--color-popover, var(--bg-color))}.bg-transparent{background-color:transparent}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.pr-8{padding-right:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-foreground{color:var(--color-foreground, var(--text-color))}.text-popover-foreground{color:var(--color-popover-foreground, var(--text-color))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color: var(--color-background, var(--bg-color))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}:root{--bg-color: #f8fafc;--text-color: #0f172a;--text-muted: #64748b;--accent-color: #3b82f6;--glass-bg: rgba(255, 255, 255, .7);--glass-border: rgba(255, 255, 255, .5);--glass-shadow: 0 4px 30px rgba(0, 0, 0, .05);--font-sans: "Rubik", "Assistant", "Inter", system-ui, sans-serif;--font-serif: "David Libre", "Frank Ruhl Libre", "Playfair Display", serif;--font-mono: "Fira Code", monospace;--font-primary: var(--font-sans);--editor-width: 800px;--editor-font-size: 1.125rem;--type-scale: 1.25}html.size-small{--editor-font-size: 15px}html.size-normal{--editor-font-size: 18px}html.size-large{--editor-font-size: 22px}html.size-huge{--editor-font-size: 28px}[data-brand=cosmic]{--bg-color: #1a0b2e;--text-color: #e2d9f3;--text-muted: #a78bfa;--accent-color: #8b5cf6;--glass-bg: rgba(26, 11, 46, .7);--glass-border: rgba(139, 92, 246, .2)}[data-brand=vintage]{--bg-color: #f4ecd8;--text-color: #433422;--text-muted: #78716c;--accent-color: #d97706;--glass-bg: rgba(244, 236, 216, .7);--glass-border: rgba(217, 119, 6, .2)}[data-brand=nordic]{--bg-color: #e2e8f0;--text-color: #134e4a;--text-muted: #0f766e;--accent-color: #0d9488;--glass-bg: rgba(226, 232, 240, .7);--glass-border: rgba(13, 148, 136, .2)}[data-brand=cyber]{--bg-color: #000000;--text-color: #22c55e;--text-muted: #16a34a;--accent-color: #4ade80;--glass-bg: rgba(0, 0, 0, .7);--glass-border: rgba(34, 197, 94, .5)}[data-layout=rounded]{--layout-radius: 16px;--layout-shadow: 0 4px 12px rgba(0,0,0,.1);--layout-border: 1px solid var(--glass-border);--layout-blur: blur(12px)}[data-layout=sharp]{--layout-radius: 2px;--layout-shadow: 2px 2px 0px rgba(0,0,0,.2);--layout-border: 1px solid var(--text-color);--layout-blur: blur(0px)}[data-layout=glass]{--layout-radius: 20px;--layout-shadow: 0 8px 32px rgba(0,0,0,.3);--layout-border: 1px solid var(--accent-color);--layout-blur: blur(24px)}html,body,#root{height:100%}[data-theme=dark]{--bg-color: #0f172a;--text-color: #f8fafc;--text-muted: #94a3b8;--accent-color: #60a5fa;--glass-bg: rgba(30, 41, 59, .7);--glass-border: rgba(255, 255, 255, .1);--glass-shadow: 0 4px 30px rgba(0, 0, 0, .3)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-primary);background-color:var(--bg-color);color:var(--text-color);line-height:1.6;transition:background-color .3s ease,color .3s ease;overflow-x:hidden;overscroll-behavior-y:none;min-height:100vh}.glass{background:var(--glass-bg);backdrop-filter:var(--layout-blur, blur(12px));-webkit-backdrop-filter:var(--layout-blur, blur(12px));border:var(--layout-border, 1px solid var(--glass-border));box-shadow:var(--layout-shadow, var(--glass-shadow));border-radius:var(--layout-radius, 16px)}.glass-panel{border-radius:var(--layout-radius, 16px);padding:1rem}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}select option{background-color:var(--bg-color);color:var(--text-color)}@keyframes fadeInOut{0%{opacity:0;transform:translate(5px)}20%{opacity:.6;transform:translate(0)}80%{opacity:.6}to{opacity:0}}.ghost-text{position:absolute;color:var(--text-muted);pointer-events:none;font-style:italic;white-space:pre-wrap;animation:fadeInOut 5s forwards;z-index:10;opacity:.5}.app-container{height:var(--app-height, 100dvh);overflow:hidden;display:flex;flex-direction:column}.editor-container{flex:1 1 auto;min-height:0;width:100%;max-width:var(--editor-width);margin:0 auto;display:flex;flex-direction:column;position:relative;padding:2rem 1rem 0}.editor-inner{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;position:relative;scroll-padding-bottom:4rem;scrollbar-width:none;-ms-overflow-style:none;padding-top:0;transition:padding-top .25s ease}.editor-inner::-webkit-scrollbar{display:none}html.agent-bubble-visible .editor-inner{padding-top:64px}.editor-input{flex:1 0 auto;padding-bottom:6rem;outline:none;font-size:var(--editor-font-size);line-height:1.7;direction:rtl;text-align:right}.font-bold{font-weight:700}.font-italic{font-style:italic}.font-underline{text-decoration:underline}.font-strikethrough{text-decoration:line-through}.font-underline.font-strikethrough{text-decoration:underline line-through}.editor-text-code{font-family:var(--font-mono);background:#80808026;padding:.1em .35em;border-radius:4px;font-size:.9em}.editor-h1{font-size:calc(var(--editor-font-size) * var(--type-scale) * var(--type-scale) * var(--type-scale));font-weight:700;line-height:1.3;margin:.6em 0 .3em}.editor-h2{font-size:calc(var(--editor-font-size) * var(--type-scale) * var(--type-scale));font-weight:600;line-height:1.3;margin:.6em 0 .3em}.editor-h3{font-size:calc(var(--editor-font-size) * var(--type-scale));font-weight:600;line-height:1.3;margin:.6em 0 .3em}.editor-quote{margin:.5em 0;padding-inline-start:1rem;border-inline-start:3px solid var(--accent-color);color:var(--text-muted);font-style:italic}.editor-ul,.editor-ol{margin:.4em 0;padding-inline-start:1.6rem}.editor-ul{list-style:disc}.editor-ol{list-style:decimal}.editor-li{margin:.15em 0}.editor-nested-li{list-style:circle}.editor-code{display:block;font-family:var(--font-mono);background:#8080801f;padding:.8em 1em;border-radius:8px;margin:.6em 0;white-space:pre-wrap;font-size:.95em;direction:ltr;text-align:left}.editor-link{color:var(--accent-color);text-decoration:underline}@keyframes fadeIn{0%{opacity:0}to{opacity:.55}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.agent-thinking-dots{display:inline-flex;gap:4px;align-items:center}.agent-thinking-dots span{width:5px;height:5px;border-radius:50%;background:var(--accent-color);animation:thinkingPulse 1.2s infinite ease-in-out}.agent-thinking-dots span:nth-child(2){animation-delay:.2s}.agent-thinking-dots span:nth-child(3){animation-delay:.4s}@keyframes thinkingPulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}.agent-bubble-dismiss-btn{width:24px;height:24px;opacity:.55;border-radius:50%;transition:opacity .15s ease,background .15s ease}.agent-bubble-dismiss-btn:hover{opacity:1;background:#80808026}.agent-bubble-force-btn{width:28px;height:28px}.editor-input p,.editor-input h1,.editor-input h2,.editor-input h3,.editor-input blockquote,.editor-input ul,.editor-input ol,.editor-input li{direction:rtl;text-align:right}.editor-input [dir=ltr]{direction:ltr;text-align:left}.editor-input [dir=rtl]{direction:rtl;text-align:right}.editor-placeholder{color:var(--text-muted);position:absolute;top:0;left:0;right:0;text-align:right;pointer-events:none;font-size:1.125rem}.floating-toolbar{position:fixed;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:.5rem;z-index:50;direction:ltr}.bottom-toolbar{position:static;transform:none;flex:0 0 auto;width:100%;max-width:600px;margin:.4rem auto max(.5rem,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:.3rem;padding:.45rem .5rem}.bottom-toolbar-scroll{flex:1;min-width:0;display:flex;gap:4px;align-items:center;overflow-x:auto!important;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.bottom-toolbar-scroll::-webkit-scrollbar{display:none}.ml-auto{margin-left:auto}.top-toolbar{position:absolute;top:max(1rem,calc(env(safe-area-inset-top) + .5rem))}.quick-replies-bar{position:static;transform:none;flex:0 0 auto;width:100%;max-width:600px;margin:0 auto;pointer-events:none}.quick-replies{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;width:100%;direction:rtl}.quick-reply-pill{pointer-events:auto;max-width:100%;padding:.4rem .9rem;font-size:.85rem;line-height:1.2;border-radius:999px;background:var(--glass-bg);backdrop-filter:var(--layout-blur, blur(12px));-webkit-backdrop-filter:var(--layout-blur, blur(12px));border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);color:var(--text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:transform .15s ease,background .2s ease;animation:quickReplyIn .18s ease}.quick-reply-pill:hover{transform:translateY(-1px);background:color-mix(in srgb,var(--accent-color) 10%,var(--glass-bg))}@keyframes quickReplyIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.icon-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;transition:all .2s ease;color:var(--text-color)}.icon-btn:hover{background:#8080801a}.icon-btn.active{color:var(--accent-color);background:#8080801a}.icon-btn.icon-btn-sm{width:36px;height:36px}.bottom-toolbar-format{display:flex;gap:2px;align-items:center;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-ms-overflow-style:none;max-width:0;opacity:0;transition:max-width .25s ease,opacity .2s ease,margin .25s ease;margin:0}.bottom-toolbar-format::-webkit-scrollbar{display:none}.bottom-toolbar-format.open{max-width:320px;opacity:1;margin-inline-end:2px}.bottom-toolbar-agents{display:flex;gap:12px;align-items:center;justify-content:center;flex:1;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-ms-overflow-style:none;padding-block:2px}.bottom-toolbar-agents::-webkit-scrollbar{display:none}.agent-btn{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-size:18px;line-height:1;background:#80808014;color:var(--text-color);transition:transform .15s ease,box-shadow .2s ease,background .2s ease,opacity .15s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}.agent-btn:hover{background:#80808029;transform:translateY(-1px)}.agent-btn.active{background:color-mix(in srgb,var(--accent-color) 18%,transparent);box-shadow:0 0 0 2px var(--accent-color)}.agent-status-dot{position:absolute;bottom:-1px;right:-1px;width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 2px var(--bg-color, #fff);pointer-events:none}.agent-status-dot.pulse{animation:agent-status-pulse 1s ease-in-out infinite}@keyframes agent-status-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.45);opacity:.55}}.agent-btn.dragging{opacity:.7;transform:scale(1.08) translateY(-1px);box-shadow:0 4px 12px #00000040;cursor:grabbing;z-index:1}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--text-muted);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-color)}.profile-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003;z-index:90;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.profile-menu-container{position:fixed;top:0;right:0;bottom:0;width:350px;max-width:90vw;background:var(--bg-color);border-left:1px solid var(--glass-border);box-shadow:-10px 0 30px #0000001a;z-index:100;padding:2rem;display:flex;flex-direction:column;gap:1.75rem;overflow-y:auto;direction:rtl}.profile-menu-input{padding:.5rem;border-radius:8px;border:1px solid var(--glass-border);background:transparent;color:inherit}.profile-menu-section-title{font-size:1rem;color:var(--text-muted)}.profile-popover-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:110;background:transparent}.profile-popover{position:fixed;bottom:calc(max(1rem,calc(var(--keyboard-offset, 0px) + .4rem)) + 56px);right:max(1rem,calc((100vw - 600px)/2 + .5rem));z-index:120;width:240px;max-width:calc(100vw - 2rem);padding:.4rem;display:flex;flex-direction:column;gap:2px;direction:rtl;background:var(--glass-bg);animation:popoverIn .15s ease}@keyframes popoverIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.profile-popover-item{display:flex;align-items:center;gap:.6rem;width:100%;padding:.6rem .7rem;border-radius:calc(var(--layout-radius, 12px) * .6);background:transparent;color:var(--text-color);font-size:.95rem;text-align:right;transition:background .15s ease}.profile-popover-item:hover:not(:disabled){background:#8080801f}.profile-popover-item:disabled{opacity:.5;cursor:not-allowed}.profile-popover-item svg{flex:0 0 auto;color:var(--text-muted)}.profile-popover-item .profile-popover-badge{margin-inline-start:auto;font-size:.7rem;color:var(--text-muted)}.profile-popover-divider{height:1px;background:var(--text-muted);opacity:.15;margin:.25rem .3rem}.profile-popover-theme{display:flex;align-items:center;gap:.4rem;padding:.4rem .7rem}.profile-popover-theme-label{font-size:.85rem;color:var(--text-muted)}.profile-popover-theme-buttons{display:flex;gap:4px;margin-inline-start:auto}.profile-popover-theme-btn{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid var(--glass-border);background:transparent;color:var(--text-color)}.profile-popover-theme-btn.active{border-color:var(--accent-color);background:color-mix(in srgb,var(--accent-color) 18%,transparent);color:var(--accent-color)}.centered-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.centered-modal{width:100%;max-width:520px;max-height:88vh;overflow-y:auto;padding:1.75rem;background:var(--bg-color);color:var(--text-color);direction:rtl;display:flex;flex-direction:column;gap:1.5rem}.centered-modal-header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1.75rem;margin:-1.75rem -1.75rem 0;padding:1.75rem 1.75rem .75rem;background:var(--bg-color);z-index:1}.agent-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1000;display:flex;align-items:center;justify-content:center;padding:max(.5rem,env(safe-area-inset-top)) .5rem max(.5rem,env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.agent-sheet{width:100%;max-width:560px;height:100dvh;max-height:calc(100dvh - max(1rem,env(safe-area-inset-top)) - max(1rem,env(safe-area-inset-bottom)));background:var(--bg-color);color:var(--text-color);direction:rtl;display:flex;flex-direction:column;overflow:hidden;border-radius:calc(var(--layout-radius, 16px) * 1.4);animation:agentSheetIn .22s ease}@keyframes agentSheetIn{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.agent-sheet-header{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--glass-border);background:var(--bg-color)}.agent-sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:1.25rem 1.5rem calc(1.5rem + var(--keyboard-offset, 0px));display:flex;flex-direction:column;gap:1.5rem}.agent-sheet-section{display:flex;flex-direction:column;gap:1rem}.agent-sheet-picker{display:flex;gap:.6rem;flex-wrap:wrap;padding:.75rem;border-radius:var(--layout-radius, 16px);background:#8080800f;border:1px solid var(--glass-border)}.agent-sheet-fields{gap:1.15rem}.agent-field{display:flex;flex-direction:column;gap:.45rem}.agent-field>label{font-size:.92rem;font-weight:500;color:var(--text-muted)}.agent-model-row{display:flex;align-items:center;gap:.5rem}.agent-model-spinner{flex:0 0 auto;color:var(--text-muted);animation:agentSpin .9s linear infinite}@keyframes agentSpin{to{transform:rotate(360deg)}}.agent-sheet-footer{flex:0 0 auto;display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;padding:.9rem 1.5rem calc(.9rem + env(safe-area-inset-bottom));border-top:1px solid var(--glass-border);background:var(--bg-color)}.agent-sheet-btn{padding:.6rem 1.1rem;border-radius:10px;font-weight:500;font-size:.95rem;transition:transform .12s ease,box-shadow .2s ease,background .2s ease}.agent-sheet-btn:hover{transform:translateY(-1px)}.agent-sheet-btn-primary{background:var(--accent-color);color:#fff}.agent-sheet-btn-ghost{border:1px solid var(--glass-border);color:inherit}.agent-sheet-btn-danger{border:1px solid #ef4444;color:#ef4444;margin-inline-start:auto}.settings-category-list{display:flex;flex-direction:column;gap:4px;direction:rtl}.settings-category-row{display:flex;align-items:center;gap:.75rem;width:100%;padding:.85rem .9rem;border-radius:calc(var(--layout-radius, 12px) * .6);border:1px solid var(--glass-border);background:transparent;color:var(--text-color);font-size:1rem;text-align:right;transition:background .15s ease}.settings-category-row:hover{background:#8080801f}.settings-category-row svg{flex:0 0 auto;color:var(--text-muted)}.settings-category-row .settings-category-chevron{margin-inline-start:auto;color:var(--text-muted)}.settings-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem .75rem;border-radius:calc(var(--layout-radius, 12px) * .5);border:1px solid var(--glass-border);background:transparent;color:var(--text-color);cursor:pointer;direction:rtl}.settings-toggle-row:hover{background:#80808014}.hover\:bg-secondary:hover{background-color:var(--color-secondary)}.hover\:text-foreground:hover{color:var(--color-foreground, var(--text-color))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: var(--color-ring, var(--accent-color))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.toaster .group-\[\.toaster\]\:border-border{border-color:var(--color-border, var(--glass-border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:var(--color-muted)}.group.toast .group-\[\.toast\]\:bg-primary{background-color:var(--color-primary, var(--accent-color))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:var(--color-background, var(--bg-color))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:var(--color-muted-foreground, var(--text-muted))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:var(--color-primary-foreground, #fff)}.group.toaster .group-\[\.toaster\]\:text-foreground{color:var(--color-foreground, var(--text-color))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:var(--color-destructive)}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:var(--color-destructive-foreground)}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: var(--color-destructive)}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:flex-col{flex-direction:column}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:max-w-\[420px\]{max-width:420px}}
