@font-face{font-family:Golos Text Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/golos-text-cyrillic-ext-wght-normal-hICkpzq7.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Golos Text Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/golos-text-cyrillic-wght-normal-mKek_fSS.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Golos Text Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/golos-text-latin-ext-wght-normal-B-I5lbAQ.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Golos Text Variable;font-style:normal;font-display:swap;font-weight:400 900;src:url(/assets/golos-text-latin-wght-normal-BS5oQT7X.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color-scheme:light;--bg: #ffffff;--bg-sidebar: #f9f9f9;--surface: #ffffff;--surface-raised: #f4f4f4;--surface-hover: #efefef;--border: #e8e8e8;--border-strong: #d6d6d6;--text: #141414;--text-muted: #5e5e5e;--text-faint: #9b9b9b;--accent: #6655ff;--accent-hover: #5543f0;--accent-text: #141414;--accent-soft: #efedff;--on-accent: #fff;--focus-ring: 0 0 0 3px rgba(102, 85, 255, .16);--link: #2563eb;--code-bg: #fafafa;--danger: #d93025;--danger-bg: #fdecea;--success: #188038;--success-bg: #e6f4ea;--radius-sm: 8px;--radius: 12px;--radius-lg: 18px;--shadow: 0 8px 28px rgba(0, 0, 0, .12);--shadow-soft: 0 2px 12px rgba(0, 0, 0, .06);--sidebar-width: 260px;--rail-width: 64px;--thread-width: 760px;--page-gutter: 1.75rem}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;accent-color:var(--accent);background:var(--bg);color:var(--text);font-size:15px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}svg{flex-shrink:0}button{font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius-sm);padding:.55rem 1rem;transition:background .15s,border-color .15s,color .15s}button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--border-strong)}button:disabled{opacity:.5;cursor:not-allowed}button[type=submit],button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}button[type=submit]:hover:not(:disabled),button.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.icon-button{padding:.5rem}input,select,textarea{font:inherit;padding:.6rem .75rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text)}input::placeholder,textarea::placeholder{color:var(--text-faint)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--border-strong);box-shadow:var(--focus-ring)}textarea{resize:vertical;font-family:inherit}a{color:var(--accent-text)}.auth-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:1rem;background:var(--bg-sidebar)}.auth-form{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2.25rem;display:flex;flex-direction:column;gap:.85rem;box-shadow:var(--shadow-soft)}.auth-logo{display:flex;justify-content:center;margin-bottom:.25rem}.auth-form h1{margin:0;text-align:center;font-size:1.35rem;letter-spacing:-.01em}.auth-subtitle{margin:0 0 .5rem;text-align:center;color:var(--text-muted);font-size:.9rem}.auth-form label{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--text-muted)}.auth-form .invite-card__main,.auth-form button[type=submit]{justify-content:center;margin-top:.25rem;padding:.75rem 1rem;border-radius:var(--radius);background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}.auth-form .invite-card__main:hover:not(:disabled),.auth-form button[type=submit]:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.auth-switch{text-align:center;font-size:.85rem;color:var(--text-muted)}.app-shell{position:fixed;top:var(--app-top, 0px);left:0;right:0;height:100vh;height:var(--app-height, 100dvh);display:flex;overflow:hidden}html:has(.app-shell),body:has(.app-shell){height:100%;overflow:hidden;overscroll-behavior:none}.sidebar{width:calc(var(--sidebar-width) + var(--rail-width));flex-shrink:0;height:100%;position:sticky;top:0;background:var(--bg-sidebar);border-right:1px solid var(--border);display:flex}.sidebar-main{flex:1;min-width:0;display:flex;flex-direction:column;padding:.75rem .6rem;gap:.9rem}.app-shell.sidebar-collapsed .sidebar{display:none}.sidebar-header{display:flex;align-items:center;gap:.55rem;padding:.25rem .35rem}.sidebar-brand{font-weight:650;font-size:1rem;letter-spacing:-.01em}.sidebar-icon-btn{border:none;background:none;padding:.35rem;color:var(--text-muted);border-radius:var(--radius-sm)}.sidebar-icon-btn:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.sidebar-icon-btn svg{width:17px;height:17px}.sidebar-collapse{margin-left:auto}.sidebar-close{display:none;margin-left:auto}.sidebar-nav{display:flex;flex-direction:column;gap:.1rem}.sidebar-nav a{display:flex;align-items:center;gap:.65rem;padding:.45rem .6rem;border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-size:.9rem;transition:background .15s}.sidebar-nav a svg{width:17px;height:17px;color:var(--text-muted)}.sidebar-nav a:hover{background:var(--surface-hover)}.sidebar-nav a.active{background:var(--accent-soft)}.sidebar-history{flex:1;min-height:0;display:flex;flex-direction:column;gap:.35rem}.sidebar-history__head{display:flex;align-items:center;gap:.25rem}.sidebar-history__toggle{flex:1;min-width:0;justify-content:flex-start;gap:.65rem;border:none;background:none;padding:.45rem .6rem;font-size:.9rem;color:var(--text)}.sidebar-history__toggle:hover:not(:disabled){background:var(--surface-hover)}.sidebar-history__toggle>svg:first-child{width:17px;height:17px;color:var(--text-muted)}.sidebar-history__section{color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-history__chevron{width:14px;height:14px;margin-left:auto;color:var(--text-faint);transition:transform .15s}.sidebar-history__chevron.closed{transform:rotate(-90deg)}.sidebar-history__list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem;padding-left:.35rem}.sidebar-history__empty{font-size:.82rem;color:var(--text-faint);padding:.25rem .6rem}.sidebar-history__group{display:flex;flex-direction:column;gap:.05rem}.sidebar-history__group-label{font-size:.72rem;font-weight:600;color:var(--text-faint);padding:.2rem .6rem}.sidebar-chat-item{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.38rem .35rem .38rem .6rem;border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-size:.86rem;transition:background .15s}.sidebar-chat-item:hover{background:var(--surface-hover)}.sidebar-chat-item.active{background:var(--accent-soft)}.sidebar-chat-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-chat-item .chat-menu__trigger{flex-shrink:0;padding:.2rem;border:none;background:none;color:var(--text-muted);border-radius:6px;opacity:0;transition:opacity .15s}.sidebar-chat-item .chat-menu__trigger svg{width:16px;height:16px}.sidebar-chat-item:hover .chat-menu__trigger,.sidebar-chat-item.active .chat-menu__trigger,.sidebar-chat-item .chat-menu__trigger.open,.sidebar-chat-item .chat-menu__trigger:focus-visible{opacity:1}.sidebar-chat-item .chat-menu__trigger:hover:not(:disabled),.sidebar-chat-item .chat-menu__trigger.open{background:var(--border)}@media (hover: none){.sidebar-chat-item .chat-menu__trigger{opacity:1}}.sidebar-chat-item--renaming{padding:.2rem .3rem}.sidebar-chat-rename{width:100%;padding:.25rem .4rem;font-size:.86rem;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface)}.popover.chat-menu{z-index:300;min-width:0}.popover__item:disabled{color:var(--text-faint);cursor:default}.sidebar-footer{border-top:1px solid var(--border);padding-top:.6rem;display:flex;flex-direction:column;gap:.35rem}.sidebar-balance{display:flex;align-items:center;justify-content:space-between;padding:.45rem .6rem;border-radius:var(--radius-sm);text-decoration:none;color:var(--text);font-size:.88rem}.sidebar-balance:hover,.sidebar-balance.active{background:var(--surface-hover)}.sidebar-balance span{display:flex;align-items:center;gap:.65rem}.sidebar-balance span svg{width:17px;height:17px;color:var(--text-muted)}button.sidebar-account{display:flex;align-items:center;gap:.6rem;width:100%;margin-top:.15rem;padding:.4rem .45rem;border:none;border-radius:var(--radius-sm);background:none;color:var(--text);font-size:.84rem;text-align:left}button.sidebar-account:hover:not(:disabled),button.sidebar-account.open{background:var(--surface-hover)}.sidebar-account__phone,.sidebar-account__chevron,.sidebar-nav__more{display:none}.sidebar-avatar{position:relative;width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:600;flex-shrink:0}.sidebar-avatar__dot{position:absolute;right:-2px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:var(--text);border:2px solid var(--bg-sidebar)}.sidebar-account__text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}.sidebar-email,.sidebar-account__sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-account__sub{font-size:.74rem;color:var(--text-muted)}.sidebar-backdrop{display:none}.sidebar-expand{position:fixed;top:.75rem;left:.75rem;z-index:15;padding:.45rem;border:1px solid var(--border);background:var(--surface);color:var(--text-muted)}.sidebar-expand svg{width:17px;height:17px}.app-content-wrap{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow-y:auto;overflow-x:hidden}.app-content-wrap.with-settings-panel:has(.gen-settings-panel){padding-right:var(--sidebar-width)}.mobile-topbar{display:none}.app-content{flex:1;min-height:0;display:flex;flex-direction:column;padding:1.75rem;max-width:900px;width:100%;margin:0 auto}.page-loading{padding:2rem;text-align:center;color:var(--text-muted)}.price-badge{color:var(--text-muted);font-size:.85rem;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.3rem .75rem}.model-picker{color:var(--text-muted);font-size:.85rem;border-radius:999px;padding:.3rem 1.6rem .3rem .75rem;cursor:pointer}.form-error{background:var(--danger-bg);color:var(--danger);border-radius:var(--radius-sm);padding:.6rem .8rem;margin:.5rem 0;font-size:.9rem}.form-hint{background:var(--success-bg);color:var(--success);border-radius:var(--radius-sm);padding:.5rem .8rem;margin:.5rem 0;font-size:.85rem;display:inline-block}.popover-anchor{position:relative}.popover{position:absolute;z-index:50;min-width:230px;max-height:340px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:.35rem;display:flex;flex-direction:column;gap:.05rem}.popover--up{bottom:calc(100% + 8px);left:0}.popover--down{top:calc(100% + 8px);left:0}.popover--right{left:auto;right:0}.popover__title{font-size:.75rem;color:var(--text-faint);padding:.35rem .6rem .25rem}.popover__item{width:100%;justify-content:space-between;border:none;background:none;padding:.5rem .6rem;font-size:.88rem;text-align:left}.popover__item:hover:not(:disabled),.popover__item.selected{background:var(--surface-raised)}.popover__divider{height:1px;margin:.3rem .2rem;background:var(--border);flex-shrink:0}.popover__item-label{display:inline-flex;align-items:center;gap:.6rem}.popover__item svg{width:16px;height:16px;color:var(--text-muted)}.model-menu__emoji{width:1.1rem;text-align:center}.composer{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow-soft);padding:.75rem .7rem .55rem .95rem;display:flex;flex-direction:column;gap:.4rem;transition:border-color .15s}.composer:focus-within{border-color:var(--border-strong)}.composer__input{width:100%;border:none;background:none;resize:none;padding:.2rem .1rem;font-size:.95rem;line-height:1.5;max-height:240px}.composer__input:focus{outline:none;box-shadow:none;border:none}.composer__attachments{display:flex;gap:.5rem}.composer__thumb{position:relative;width:58px;height:58px}.composer__thumb img{width:100%;height:100%;object-fit:cover;border-radius:10px;border:1px solid var(--border)}.composer__thumb-loading{width:100%;height:100%;border-radius:10px;background:var(--surface-raised);position:relative}.composer__thumb-loading:after{content:"";position:absolute;inset:50% auto auto 50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2px solid var(--border-strong);border-top-color:var(--accent);animation:spin .8s linear infinite}.composer__thumb-remove{position:absolute;top:-6px;right:-6px;width:20px;height:20px;padding:0;justify-content:center;border-radius:50%;background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.composer__thumb-remove:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.composer__thumb-remove svg{width:12px;height:12px}.composer__bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.composer__bar-right{display:flex;align-items:center;gap:.35rem;min-width:0}.composer__icon-btn{width:32px;height:32px;padding:0;justify-content:center;border:none;background:none;border-radius:50%;color:var(--text-muted)}.composer__icon-btn:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.composer__price{font-size:.78rem;color:var(--text-faint);white-space:nowrap}.composer__improve-anchor{position:relative;flex-shrink:0}button.composer__improve{height:32px;padding:0 .7rem 0 .55rem;gap:.35rem;border:none;border-radius:999px;background:none;color:var(--accent);font-size:.84rem;font-weight:500;white-space:nowrap}button.composer__improve:hover:not(:disabled){background:var(--accent-soft)}button.composer__improve:disabled{background:none;color:var(--text-faint);opacity:1}.composer__improve svg{width:16px;height:16px}.composer__improve-anchor--intro button.composer__improve:not(:disabled){background:var(--accent-soft)}.composer__improve-tip{position:absolute;bottom:calc(100% + 10px);left:0;z-index:40;width:280px;padding:.6rem .75rem;border-radius:var(--radius);background:var(--text);color:var(--bg);font-size:.8rem;line-height:1.4;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none}@media (hover: hover){.composer__improve-anchor:hover .composer__improve-tip{opacity:1;visibility:visible;transform:none;transition-delay:.2s}}button.composer__improve:focus-visible+.composer__improve-tip{opacity:1;visibility:visible;transform:none}.composer__improve-anchor--intro .composer__improve-tip{display:none}.composer__improve-intro{position:absolute;bottom:calc(100% + 10px);left:0;z-index:40;width:min(380px,100%);display:flex;flex-direction:column;gap:.6rem;padding:.8rem .9rem;border:1px solid var(--accent);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);font-size:.84rem;line-height:1.45;color:var(--text)}.composer__improve-intro p{margin:0}.composer__improve-intro strong{display:flex;align-items:center;gap:.35rem;margin-bottom:.25rem;color:var(--accent)}.composer__improve-intro strong svg{width:16px;height:16px}button.composer__improve-intro-ok{align-self:flex-end;padding:.35rem .95rem;border-radius:999px;background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-size:.82rem}button.composer__improve-intro-ok:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.composer__input--improving{opacity:.55}.composer__improved{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .4rem;font-size:.8rem;color:var(--text-muted)}.composer__improved>svg{width:14px;height:14px;flex-shrink:0;color:var(--accent)}button.composer__improved-undo{padding:.1rem .4rem;gap:.25rem;border:none;border-radius:var(--radius-sm);background:none;color:var(--accent);font-size:.8rem;font-weight:500}button.composer__improved-undo:hover:not(:disabled){background:var(--accent-soft)}button.composer__improved-undo svg{width:13px;height:13px}.model-menu__trigger{border:none;background:none;padding:.35rem .55rem;font-size:.86rem;gap:.3rem;white-space:nowrap}.model-menu__trigger:hover:not(:disabled){background:var(--surface-hover)}.model-menu__trigger svg{width:14px;height:14px;color:var(--text-muted)}button.composer__send{width:34px;height:34px;padding:0;justify-content:center;border-radius:50%}button.composer__send:disabled{background:var(--border-strong);border-color:var(--border-strong);opacity:1}button.composer__send svg{width:17px;height:17px}.new-chat{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 0 6rem}.new-chat__title{margin:0 0 1.5rem;font-size:1.6rem;font-weight:600;letter-spacing:-.01em;text-align:center}.new-chat__composer{width:100%;max-width:720px}.mode-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem;margin-top:1rem}.mode-chips--docked{justify-content:flex-start;flex-wrap:nowrap;margin-top:.45rem;overflow-x:auto;scrollbar-width:none;container-type:inline-size}@container (max-width: 480px){.mode-chips--docked .mode-chip__more{display:none}}.mode-chips--docked::-webkit-scrollbar{display:none}.mode-chips--docked .mode-chip{flex-shrink:0;padding:.35rem .7rem;font-size:.82rem}.mode-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .8rem;border-radius:999px;color:var(--text);text-decoration:none;font-size:.88rem;border:1px solid var(--border);background:var(--surface);transition:background .15s}.mode-chip svg{width:16px;height:16px;color:var(--text-muted)}.mode-chip:hover{background:var(--surface-hover)}.chat-page{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:820px;margin:0 auto}.chat-header{display:flex;align-items:center;min-height:2rem;padding:0 0 .75rem}.chat-header__title{font-weight:600;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-window{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:1.4rem;padding:.25rem 0 1rem}.chat-empty{color:var(--text-muted);text-align:center;padding:3rem 1rem}.chat-message{max-width:100%}.chat-message-pair{display:flex;flex-direction:column;gap:.6rem}.chat-message__role{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin-bottom:.4rem}.chat-message__content{white-space:pre-wrap;word-break:break-word;line-height:1.65}.chat-message--user{align-self:flex-end;max-width:78%;margin-left:auto;display:flex;flex-direction:column;align-items:flex-end}.chat-message--user .chat-message__content{background:var(--surface-raised);border-radius:var(--radius-lg);padding:.55rem 1rem}.chat-message--assistant .chat-message__content{padding:0}.chat-message__image{display:block;max-width:220px;max-height:220px;width:100%;object-fit:cover;border-radius:var(--radius);border:1px solid var(--border);cursor:zoom-in;margin-bottom:.5rem}.chat-message__files{margin-top:.6rem;display:flex;gap:.4rem;flex-wrap:wrap}.chat-message__files button{font-size:.8rem;padding:.3rem .65rem}.chat-message__files button svg{width:14px;height:14px}.chat-composer-dock{padding:.25rem 0 1rem;background:var(--bg)}.typing-dots{display:flex;gap:.3rem;padding:.3rem 0}.typing-dots span{width:6px;height:6px;border-radius:50%;background:var(--text-faint);animation:typing-bounce 1.1s infinite ease-in-out}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}@keyframes typing-bounce{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.chat-input{display:flex;align-items:flex-end;gap:.5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);padding:.55rem .55rem .55rem 1.1rem;margin:.5rem 0 0}.chat-input:focus-within{border-color:var(--border-strong)}.chat-input textarea{flex:1;border:none;background:none;resize:none;padding:.35rem 0;max-height:200px}.chat-input textarea:focus{outline:none;box-shadow:none}.chat-input button[type=submit]{border-radius:999px;width:38px;height:38px;padding:0;justify-content:center;flex-shrink:0}.composer-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;margin:.5rem 0 1.25rem}.composer-attachment{display:inline-flex;align-items:center;gap:.5rem;align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.35rem .5rem .35rem .9rem;font-size:.85rem;color:var(--text-muted);margin-bottom:.5rem}.composer-attachment svg{width:15px;height:15px}.chat-input__attach{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--text-muted);cursor:pointer;flex-shrink:0;transition:background .15s,color .15s}.chat-input__attach:hover{background:var(--surface-hover);color:var(--text)}.chat-input__attach input{display:none}.gen-settings-panel{position:fixed;top:0;right:0;bottom:0;width:var(--sidebar-width);flex-shrink:0;background:var(--bg-sidebar);border-left:1px solid var(--border);padding:1rem;display:flex;flex-direction:column;gap:1.25rem;overflow-y:auto;z-index:5}.gen-settings-panel h2{margin:0;font-size:.72rem;color:var(--text-faint);font-weight:600;text-transform:uppercase;letter-spacing:.06em}.option-group{display:flex;flex-direction:column;gap:.55rem}.option-group__label{font-size:.85rem;color:var(--text-muted)}.option-group__buttons{display:flex;flex-wrap:wrap;gap:.4rem}.option-chip{padding:.4rem .75rem;border-radius:999px;font-size:.82rem;border:1px solid var(--border);background:var(--surface);color:var(--text-muted)}.option-chip:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.option-chip.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-text)}.job-status{margin-top:1.75rem}.job-status__pending{color:var(--text-muted);display:flex;align-items:center;gap:.6rem}.job-status__pending:before{content:"";width:16px;height:16px;border-radius:50%;border:2px solid var(--border-strong);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.job-status__price{margin-top:.6rem;color:var(--text-muted);font-size:.9rem}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.85rem}.image-gallery img{width:100%;border-radius:var(--radius);border:1px solid var(--border);display:block}.video-result{width:100%;border-radius:var(--radius);border:1px solid var(--border);display:block;background:#000}.media-item{position:relative;display:block}.media-item--video{max-width:520px}.media-download{position:absolute;top:.5rem;right:.5rem;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#0c0c0ea6;border:1px solid rgba(255,255,255,.15);color:#fff;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);transition:background .15s}.media-download:hover{background:#0c0c0ed9}.media-download svg{width:16px;height:16px}.media-item img,.media-item video{cursor:zoom-in}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#040406eb;display:flex;align-items:center;justify-content:center;padding:3rem}.lightbox-close{position:fixed;top:1.25rem;right:1.25rem;width:40px;height:40px;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;background:#ffffff14;border:1px solid rgba(255,255,255,.15);color:#fff}.lightbox-close:hover{background:#ffffff29}.lightbox__missing{max-width:360px;padding:1.25rem 1.4rem;border-radius:var(--radius-lg);background:#1f1f1f;color:#ececec;font-size:.95rem;line-height:1.5;text-align:center;display:flex;flex-direction:column;gap:.4rem}.lightbox__missing strong{font-size:1.05rem}.lightbox-image{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;-webkit-user-select:none;user-select:none;border-radius:var(--radius)}.lightbox-video{max-width:100%;max-height:100%;border-radius:var(--radius);background:#000}.balance-page__title{margin:0 0 .6rem;font-size:1.05rem;font-weight:600}.balance-amount{font-size:2.1rem;font-weight:700;margin-bottom:1.25rem;display:flex;align-items:center;gap:.6rem}.balance-amount svg{width:26px;height:26px;color:var(--accent-text)}.preset-amounts{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.custom-amount{display:flex;gap:.5rem}.pending-payment{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.1rem}.pending-payment p{margin-top:0;color:var(--text-muted);line-height:1.5}.chat-header{gap:.25rem}.chat-header__title{cursor:default}.chat-header__menu-btn{border:none;background:none;padding:.3rem;color:var(--text-muted)}.chat-header__menu-btn svg{width:17px;height:17px}.chat-header__rename input{font-weight:600;font-size:.95rem;padding:.25rem .5rem;width:min(420px,60vw)}.popover--down{top:calc(100% + 6px);left:0;min-width:190px}.popover__item--danger,.popover__item--danger svg{color:var(--danger)}.chat-day{align-self:center;font-size:.78rem;color:var(--text-faint);padding:.25rem 0}.msg-status{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--text-muted);margin-bottom:.45rem}.msg-status svg{width:15px;height:15px}.msg-status--working{color:var(--text-faint);margin-bottom:0}.spinner{width:14px;height:14px;border-radius:50%;border:2px solid var(--border-strong);border-top-color:var(--text-muted);animation:spin .8s linear infinite;flex-shrink:0}.msg-actions{display:flex;gap:.15rem;margin-top:.35rem}.msg-actions--hover{opacity:0;transition:opacity .15s}.chat-message--user:hover .msg-actions--hover,.msg-actions--hover:focus-within{opacity:1}.msg-action{border:none;background:none;padding:.3rem;color:var(--text-faint);border-radius:6px}.msg-action:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.msg-action svg{width:15px;height:15px}.msg-editor{width:min(560px,100%);background:var(--surface-raised);border-radius:var(--radius-lg);padding:.7rem .8rem .6rem;display:flex;flex-direction:column;gap:.5rem}.msg-editor textarea{width:100%;border:none;background:none;resize:none;padding:0;line-height:1.6}.msg-editor textarea:focus{box-shadow:none;border:none}.msg-editor__actions{display:flex;justify-content:flex-end;gap:.4rem}.msg-editor__actions button{padding:.35rem .85rem;font-size:.85rem;border-radius:999px}.chat-composer-dock{position:relative}.jump-bottom{position:absolute;top:-2.75rem;left:50%;transform:translate(-50%);width:34px;height:34px;padding:0;justify-content:center;border-radius:50%;box-shadow:var(--shadow-soft);z-index:5}.jump-bottom svg{width:16px;height:16px}.markdown{line-height:1.65;word-break:break-word}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown p{margin:0 0 .75rem}.markdown h1,.markdown h2,.markdown h3,.markdown h4{margin:1.2rem 0 .5rem;line-height:1.3;font-weight:650}.markdown h1{font-size:1.35rem}.markdown h2{font-size:1.2rem}.markdown h3{font-size:1.05rem}.markdown ul,.markdown ol{margin:0 0 .75rem;padding-left:1.4rem}.markdown li{margin:.2rem 0}.markdown li>p{margin:0}.markdown a{color:var(--link);text-decoration:underline;text-underline-offset:2px}.markdown blockquote{margin:0 0 .75rem;padding:.1rem 0 .1rem .9rem;border-left:3px solid var(--border-strong);color:var(--text-muted)}.markdown hr{border:none;border-top:1px solid var(--border);margin:1rem 0}.markdown code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;background:var(--surface-raised);border-radius:5px;padding:.12rem .35rem}.md-code{margin:0 0 .85rem;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--code-bg)}.md-code__head{display:flex;align-items:center;justify-content:space-between;padding:.3rem .4rem .3rem .85rem;font-size:.75rem;color:var(--text-muted);background:var(--surface-raised);border-bottom:1px solid var(--border)}.md-code__copy{border:none;background:none;padding:.25rem .45rem;font-size:.75rem;color:var(--text-muted);gap:.35rem}.md-code__copy svg{width:13px;height:13px}.md-code pre{margin:0;padding:.85rem 1rem;overflow-x:auto;font-size:.85rem;line-height:1.55}.md-code pre code{background:none;padding:0;border-radius:0;font-size:inherit}.md-table{overflow-x:auto;margin:0 0 .85rem}.md-table table{border-collapse:collapse;font-size:.9rem;min-width:50%}.md-table th,.md-table td{border:1px solid var(--border);padding:.4rem .7rem;text-align:left;vertical-align:top}.md-table th{background:var(--surface-raised);font-weight:600}.chat-message--streaming .markdown>:not(ul,ol):last-child:after,.chat-message--streaming .markdown>:is(ul,ol):last-child>li:last-child:after{content:"";display:inline-block;width:.5em;height:1em;margin-left:2px;vertical-align:-.12em;background:var(--text-muted);border-radius:1px;animation:caret-blink 1s steps(2,start) infinite}.chat-message--streaming .markdown>.md-code:last-child:after,.chat-message--streaming .markdown>.md-table:last-child:after{display:none}@keyframes caret-blink{to{visibility:hidden}}.chat-message--streaming .msg-status .spinner{width:12px;height:12px}button.composer__send--stop,button.composer__send--stop:disabled{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}button.composer__send--stop:disabled{opacity:.5}button.composer__send--stop svg{width:15px;height:15px}.app-content:has(>.chat-page){max-width:none;padding-left:0;padding-right:0}.chat-page{max-width:none}.chat-page>.chat-header,.chat-page>.chat-composer-dock{width:100%;max-width:calc(820px + 2 * var(--page-gutter));margin-left:auto;margin-right:auto;padding-left:var(--page-gutter);padding-right:var(--page-gutter)}.chat-window{padding-left:max(var(--page-gutter),calc((100% - 820px)/2));padding-right:max(var(--page-gutter),calc((100% - 820px)/2));scrollbar-width:none}.chat-window::-webkit-scrollbar{display:none}.chat-message__files{flex-direction:column;align-items:flex-start;gap:.5rem}.file-card{display:flex;align-items:center;width:100%;max-width:380px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden;transition:border-color .15s,box-shadow .15s}.file-card:hover{box-shadow:var(--shadow-soft)}.file-card.active{border-color:var(--text-faint)}.chat-message__files button.file-card__open{flex:1;min-width:0;display:flex;align-items:center;gap:.75rem;padding:.6rem .75rem;border:none;border-radius:0;background:none;text-align:left;font-size:.9rem}.file-card__icon{flex-shrink:0;width:38px;height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;background:#5b6472}.chat-message__files .file-card__icon svg{width:20px;height:20px}.file-card--docx .file-card__icon{background:#2b6cde}.file-card--pdf .file-card__icon{background:#d93f36}.file-card--table .file-card__icon{background:#1f8a4c}.file-card--markdown .file-card__icon{background:#7a5af5}.file-card__text{display:flex;flex-direction:column;min-width:0}.file-card__name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-card__meta{font-size:.78rem;color:var(--text-faint)}.chat-message__files button.file-card__download{flex-shrink:0;margin-right:.5rem;padding:.4rem;border:none;border-radius:6px;background:none;color:var(--text-faint)}.chat-message__files button.file-card__download:hover{background:var(--surface-hover);color:var(--text)}.chat-message__files .file-card__download svg{width:16px;height:16px}.app-content:has(>.file-preview){flex-direction:row;padding-top:0;padding-bottom:0}.app-content:has(>.file-preview)>.chat-page{padding-top:1.75rem;min-width:0}.file-preview{flex:0 0 min(50%,720px);min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--border);background:var(--bg)}.file-preview__head{display:flex;align-items:center;gap:.5rem;min-height:3.6rem;padding:.75rem .75rem .75rem 1.25rem;border-bottom:1px solid var(--border)}.file-preview__title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.file-preview__badge{flex-shrink:0;font-size:.68rem;font-weight:600;letter-spacing:.03em;padding:.15rem .4rem;border-radius:5px;background:var(--accent-soft);color:var(--text-muted)}.file-preview__actions{margin-left:auto;display:flex;gap:.15rem;flex-shrink:0}.file-preview__actions .msg-action svg{width:17px;height:17px}.file-preview__body{flex:1;min-height:0;overflow-y:auto;padding:1.25rem;background:var(--surface-raised)}.file-preview__status{display:flex;align-items:center;gap:.5rem;color:var(--text-muted);font-size:.9rem}.file-preview__doc,.file-preview__docx section.docx,.file-preview__pdf-page{background:#fff;border-radius:6px;box-shadow:0 1px 4px #00000014}.file-preview__doc{padding:1.75rem 2rem}.file-preview__docx .docx-wrapper{background:transparent;padding:0;display:block}.file-preview__docx .docx-wrapper>section.docx{width:auto!important;min-height:0!important;padding:2rem 2.25rem!important;margin:0 0 1rem;box-shadow:0 1px 4px #00000014;overflow-wrap:anywhere}.file-preview__pdf{display:flex;flex-direction:column;gap:1rem}.file-preview__pdf-page{display:block;width:100%;height:auto}.file-preview__code{margin:0;background:#fff}.file-preview__code pre{white-space:pre-wrap;overflow-wrap:anywhere}.file-preview__table{background:#fff;border-radius:6px;margin:0}.app-content>.file-preview.site-panel{flex-basis:min(56%,960px)}@media (max-width: 1199px){.app-content>.file-preview.site-panel{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;border-left:none}}.site-panel__icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent)}.site-panel__icon svg{width:16px;height:16px}.site-panel__live{display:inline-flex;align-items:center;gap:.35rem;letter-spacing:0}.site-panel__live .spinner{width:10px;height:10px}.file-preview__actions a.msg-action{display:inline-flex;align-items:center}.file-preview__actions .msg-action:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.site-panel__bar{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.5rem .75rem .5rem 1.25rem;border-bottom:1px solid var(--border)}.site-panel__switch{display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:var(--surface-raised)}.site-panel__switch button{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .65rem;border:none;border-radius:7px;background:none;color:var(--text-muted);font-size:.82rem}.site-panel__switch--icons button{padding:.3rem .5rem}.site-panel__switch button svg{width:15px;height:15px}.site-panel__switch button:hover{color:var(--text)}.site-panel__switch button.active{background:var(--bg);color:var(--text);box-shadow:var(--shadow-soft)}.site-panel__versions{margin-left:auto;display:inline-flex;align-items:center;gap:.1rem}.site-panel__versions .msg-action:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.site-panel__versions .msg-action:disabled{opacity:.35}.site-panel__version{padding:0 .25rem;font-size:.82rem;font-weight:600;white-space:nowrap}.site-panel__of{color:var(--text-faint);font-weight:400}.site-panel__step--back svg{transform:rotate(90deg)}.site-panel__step--next svg{transform:rotate(-90deg)}.site-panel__notice{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .75rem;padding:.55rem .75rem .55rem 1.25rem;border-bottom:1px solid var(--border);background:var(--accent-soft);font-size:.85rem}.site-panel__notice button{margin-left:auto;display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .8rem;border:none;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:.82rem;font-weight:600}.site-panel__notice button:hover:not(:disabled){background:var(--accent-hover)}.site-panel__notice button svg{width:14px;height:14px}.site-panel__error{margin:.5rem 1.25rem 0}.site-frame{position:relative;flex:1;min-height:0;overflow:hidden;display:flex;justify-content:center;align-items:flex-start;background:var(--surface-raised)}.site-frame__screen{position:relative;flex:none;overflow:hidden;background:#fff}.site-frame--phone .site-frame__screen{margin-top:16px;border-radius:28px;box-shadow:0 0 0 1px var(--border-strong),var(--shadow)}.site-frame__screen iframe{display:block;border:0;background:#fff;transform-origin:0 0}.site-frame__loading{position:absolute;top:.75rem;left:50%;transform:translate(-50%);display:inline-flex;align-items:center;gap:.5rem;padding:.35rem .8rem;border-radius:999px;background:var(--bg);box-shadow:var(--shadow-soft);color:var(--text-muted);font-size:.82rem;white-space:nowrap;pointer-events:none}.site-code{flex:1;min-height:0;display:flex;flex-direction:column}.site-code__files{display:flex;gap:.35rem;padding:.6rem 1.25rem;overflow-x:auto;border-bottom:1px solid var(--border);scrollbar-width:none}.site-code__files::-webkit-scrollbar{display:none}.site-code__files button{flex:none;padding:.3rem .7rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem}.site-code__files button:hover{color:var(--text)}.site-code__files button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}.site-card{display:flex;align-items:center;gap:.75rem;width:100%;max-width:440px;padding:.65rem .85rem .65rem .65rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);text-align:left}.site-card:hover{border-color:var(--border-strong)}.site-card.active{border-color:var(--accent);box-shadow:var(--focus-ring)}.site-card__icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent)}.site-card__icon svg{width:20px;height:20px}.site-card__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1rem}.site-card__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:600}.site-card__meta{color:var(--text-muted);font-size:.78rem}.site-card__open{flex-shrink:0;color:var(--accent);font-size:.82rem;font-weight:600}.chat-header__site{margin-left:auto;flex-shrink:0;display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .75rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-muted);font-size:.82rem}.chat-header__site:hover{color:var(--text)}.chat-header__site.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}.chat-header__site svg{width:15px;height:15px}.sheet-view{display:flex;flex-direction:column;gap:.6rem;min-height:0}.sheet-view__tabs{display:flex;gap:.25rem;overflow-x:auto;scrollbar-width:none}.sheet-view__tab{flex-shrink:0;border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:.3rem .7rem;font-size:.82rem;color:var(--text-muted)}.sheet-view__tab.active{color:var(--text);border-color:var(--border-strong);font-weight:600}.sheet-view__scroll{overflow:auto;max-height:calc(100vh - 12rem);max-height:calc(100dvh - 12rem);background:#fff;border:1px solid #dfe3eb;border-radius:6px}.sheet-view__grid{border-collapse:collapse;font-size:.8rem;color:#1f2937;font-variant-numeric:tabular-nums}.sheet-view__grid th,.sheet-view__grid td{border:1px solid #e3e7ee;padding:.3rem .55rem;white-space:nowrap;max-width:22rem;overflow:hidden;text-overflow:ellipsis;text-align:left}.sheet-view__grid thead th,.sheet-view__grid tbody th{background:#f3f5f8;color:#6b7280;font-weight:500;font-size:.72rem;text-align:center;position:sticky}.sheet-view__grid thead th{top:0;z-index:2}.sheet-view__grid tbody th{left:0;z-index:1;min-width:2.2rem}.sheet-view__grid .sheet-view__corner{left:0;z-index:3}.sheet-view__grid td.num{text-align:right}.sheet-view__grid td.bold{font-weight:600}.sheet-view__note{font-size:.78rem;color:var(--text-faint);text-align:center}.slides-view{display:flex;flex-direction:column;gap:1.1rem}.slides-view__item{margin:0;container-type:inline-size}.slide-card{aspect-ratio:16 / 9;overflow:hidden;background:#fff;color:#1f2937;border-radius:6px;box-shadow:0 1px 4px #0000001a;padding:4.5cqw 5.6cqw;display:flex;flex-direction:column;gap:2.2cqw;font-size:2.6cqw;line-height:1.35}.slide-card--dense{font-size:2cqw;gap:1.6cqw}.slide-card__title{font-size:3.9cqw;font-weight:700;line-height:1.2;border-left:.6cqw solid #4338ca;padding-left:1.6cqw}.slide-card--title{background:#1e1b4b;color:#c7d2fe;justify-content:center}.slide-card--title .slide-card__title{color:#fff;font-size:5.4cqw;border-left:none;padding-left:0;padding-bottom:2cqw;border-bottom:.6cqw solid #c7d2fe;align-self:flex-start}.slide-card__body{display:flex;flex-direction:column;gap:.9cqw}.slide-card__line{display:flex;gap:1.2cqw}.slide-card__line.bold{font-weight:700}.slide-card__marker{color:#4338ca;flex-shrink:0}.slide-card__table{border-collapse:collapse;width:100%;font-size:.8em}.slide-card__table th,.slide-card__table td{padding:.6cqw 1cqw;text-align:left}.slide-card__table th{background:#4338ca;color:#fff}.slide-card__table tr:nth-child(odd) td{background:#eef2ff}.slides-view__caption{display:flex;flex-direction:column;gap:.25rem;margin-top:.4rem;font-size:.78rem;color:var(--text-faint)}.slides-view__notes{color:var(--text-muted);white-space:pre-line}@media (max-width: 860px){.file-preview{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;border-left:none}.file-preview__body{padding:.75rem}.file-preview__docx .docx-wrapper>section.docx{padding:1.25rem!important}}.composer__bar-right{margin-left:auto}button.composer__send,.composer__icon-btn,.composer__bar>.popover-anchor{flex-shrink:0}.composer__bar-right>.popover-anchor,.model-menu__trigger{min-width:0;max-width:100%}.model-menu__name{overflow:hidden;text-overflow:ellipsis}.composer__mode{display:inline-flex;flex-shrink:0;align-items:center;gap:.35rem;min-width:0;padding:.25rem .3rem .25rem .6rem;border-radius:999px;background:var(--accent-soft);color:var(--text);font-size:.82rem;font-weight:500;white-space:nowrap}.composer__mode svg{width:15px;height:15px;flex-shrink:0}button.composer__mode-close{width:20px;height:20px;padding:0;justify-content:center;border:none;border-radius:50%;background:none;color:var(--text-muted)}button.composer__mode-close:hover{background:var(--border-strong);color:var(--text)}.composer__mode-close svg{width:12px;height:12px}.composer__mode-anchor{flex-shrink:0}button.composer__mode-pick{gap:.35rem;min-width:0;padding:0;border:none;background:none;color:inherit;font:inherit}.composer__mode-pick .composer__mode-label{max-width:150px;overflow:hidden;text-overflow:ellipsis}.composer__mode .composer__mode-chevron{width:12px;height:12px;color:var(--text-muted)}.composer__repos{width:300px;max-width:calc(100vw - 2rem)}.composer__repos-note{padding:.45rem .6rem;font-size:.82rem;color:var(--text-muted)}.composer__repo{min-width:0;gap:.5rem}.composer__repo-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__repo-private{flex-shrink:0;font-size:.72rem;color:var(--text-faint)}.composer__settings{width:300px;max-width:calc(100vw - 2rem);max-height:420px;padding:.9rem}.gen-settings-inline{display:flex;flex-direction:column;gap:1rem}.gen-settings-inline h2{margin:0;font-size:.72rem;color:var(--text-faint);font-weight:600;text-transform:uppercase;letter-spacing:.06em}button.mode-chip{background:var(--surface);cursor:pointer}.mode-chip.active,.mode-chip.active:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}.mode-chip.active svg{color:var(--on-accent)}.chat-message__mode{display:inline-flex;align-items:center;gap:.3rem;margin-bottom:.3rem;font-size:.75rem;color:var(--text-faint)}.chat-message__mode svg{width:13px;height:13px}.model-menu{width:360px;max-width:calc(100vw - 2rem);max-height:460px}.model-menu>*{flex-shrink:0}@media (max-width: 860px){.composer{position:relative}.composer .popover-anchor{position:static}.composer .popover{left:0;right:0;width:auto;max-width:none}}button.model-menu__item{align-items:flex-start;justify-content:flex-start;gap:.6rem;padding:.55rem .6rem}.model-menu__item .model-menu__emoji{flex-shrink:0;line-height:1.35}.model-menu__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}.model-menu__item-name{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;font-weight:500}.model-menu__price{flex-shrink:0;font-size:.75rem;font-weight:400;color:var(--text-faint);white-space:nowrap}.model-menu__desc{font-size:.78rem;line-height:1.3;color:var(--text-muted);white-space:normal}.model-menu__check{flex-shrink:0;width:16px;line-height:1.35}.model-menu__divider{height:1px;margin:.25rem .4rem;background:var(--border)}.msg-status__model{color:var(--text-faint)}.msg-status__pulse{animation:search-pulse 1.2s ease-in-out infinite}@keyframes search-pulse{50%{opacity:.35}}.msg-sources{margin:.25rem 0 .4rem}.msg-sources__title{display:flex;align-items:center;gap:.35rem;margin-bottom:.45rem;font-size:.8rem;color:var(--text-muted)}.msg-sources__title svg{width:14px;height:14px}.msg-sources__list{display:flex;flex-wrap:wrap;gap:.4rem}.msg-source{display:flex;align-items:center;gap:.5rem;max-width:240px;min-width:0;padding:.4rem .6rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);text-decoration:none;transition:background .15s,border-color .15s}.msg-source:hover{background:var(--surface-raised);border-color:var(--border-strong)}.msg-source__n{flex-shrink:0;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:600;background:var(--accent-soft);color:var(--text-muted)}.msg-source__text{display:flex;flex-direction:column;min-width:0}.msg-source__title,.msg-source__domain{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg-source__title{font-size:.8rem;font-weight:500}.msg-source__domain{font-size:.72rem;color:var(--text-faint)}.composer{position:relative}.composer--dragging{border-color:var(--text-muted);border-style:dashed}.composer__drop-hint{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:#ffffffe6;font-size:.9rem;color:var(--text-muted);pointer-events:none}.composer__attachments{flex-wrap:wrap;padding-top:.25rem}.composer__thumb{overflow:visible}.composer__thumb--uploading img{opacity:.55}button.composer__chip-remove{position:absolute;top:-6px;right:-6px;z-index:2;width:20px;height:20px;padding:0;justify-content:center;border-radius:50%;background:var(--accent);border-color:var(--accent);color:var(--on-accent)}button.composer__chip-remove:hover{background:var(--accent-hover)}.composer__chip-remove svg{width:12px;height:12px}.composer__chip-progress{position:absolute;left:4px;bottom:4px;height:3px;max-width:calc(100% - 8px);border-radius:2px;background:var(--accent);transition:width .15s}.composer__file{position:relative;display:flex;align-items:center;gap:.55rem;width:210px;height:58px;padding:0 .6rem;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.composer__file--error{border-color:var(--danger);background:var(--danger-bg)}.composer__file-icon{flex-shrink:0;width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;background:#5b6472}.composer__file-icon svg{width:18px;height:18px}.composer__file.file-card--docx .composer__file-icon{background:#2b6cde}.composer__file.file-card--pdf .composer__file-icon{background:#d93f36}.composer__file.file-card--table .composer__file-icon,.composer__file.file-card--sheet .composer__file-icon{background:#1f8a4c}.composer__file.file-card--slides .composer__file-icon{background:#d24726}.composer__file--error .composer__file-icon{background:var(--danger)}.composer__file-text{display:flex;flex-direction:column;min-width:0}.composer__file-name{font-size:.82rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__file-meta{font-size:.72rem;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer__file--error .composer__file-meta{color:var(--danger);white-space:normal;line-height:1.2}.file-card--sheet .file-card__icon{background:#1f8a4c}.file-card--slides .file-card__icon{background:#d24726}.msg-attachments{display:flex;flex-direction:column;align-items:flex-end;gap:.4rem;margin-bottom:.4rem;max-width:100%}.msg-attachments__images{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.msg-attachments__images .chat-message__image{margin:0}.msg-attachments__images:has(>:nth-child(2)) .chat-message__image{width:120px;height:120px}.msg-attachments__docs{align-items:flex-end;margin-top:0}.msg-attachments__docs .file-card{max-width:300px}@media (max-width: 860px){.composer__file{width:170px}}@media (max-width: 480px){.composer__mode-label{display:none}}@media (max-width: 860px){.app-content-wrap.with-settings-panel:has(.gen-settings-panel){padding-right:0}.sidebar{position:fixed;top:var(--app-top, 0px);left:0;height:var(--app-height, 100%);z-index:40;transform:translate(-100%);transition:transform .2s ease}.app-shell.sidebar-collapsed .sidebar{display:flex}.sidebar-collapse,.sidebar-expand{display:none}.sidebar.open{transform:translate(0);box-shadow:var(--shadow)}.sidebar-close{display:inline-flex}.sidebar-backdrop.visible{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0000004d;z-index:30}.mobile-topbar{flex:none;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:.25rem;min-height:56px;padding:env(safe-area-inset-top) .4rem 0;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:20}.mobile-topbar>button,a.mobile-topbar__new{width:44px;height:44px;padding:0;border:none;border-radius:var(--radius);background:none;color:var(--text);display:inline-flex;align-items:center;justify-content:center}.mobile-topbar>button:hover,a.mobile-topbar__new:hover{background:var(--surface-hover)}.mobile-topbar>button svg,.mobile-topbar__new svg{width:22px;height:22px}.mobile-topbar__title{min-width:0;display:flex;align-items:center;justify-content:center;gap:.5rem}.app-content:has(>.chat-page){padding-top:.5rem;padding-bottom:env(safe-area-inset-bottom)}.chat-composer-dock{padding-bottom:.6rem}:root{--page-gutter: 1rem}.app-content{padding:1rem}.chat-message--user{max-width:90%}.new-chat__title{font-size:1.35rem}.composer__price{display:none}.gen-settings-panel{position:static;width:100%;height:auto;border-left:none;border-top:1px solid var(--border);border-radius:var(--radius-lg);margin-top:1rem}.composer-toolbar{justify-content:flex-start}}.app-content:has(>.files-page){max-width:1180px}.app-content:has(>.files-page):has(>.file-preview){max-width:none;padding-right:0}.files-page{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;gap:.9rem}.app-content:has(>.file-preview)>.files-page{padding:1.75rem 1.5rem 1.75rem 0}.files-page~.file-preview{position:sticky;top:0;height:100vh;height:100dvh;align-self:flex-start}.files-page__head{display:flex;align-items:center;gap:1rem}.files-page__head h1{margin:0;flex:1}.files-page__hint{margin:-.4rem 0 0;color:var(--text-muted);font-size:.9rem}.files-page__search{display:flex;align-items:center;gap:.6rem;border:1px solid var(--border);border-radius:var(--radius);padding:0 .9rem;background:var(--surface)}.files-page__search:focus-within{border-color:var(--border-strong)}.files-page__search svg{width:17px;height:17px;color:var(--text-faint);flex-shrink:0}.files-page__search input{flex:1;border:none;background:none;padding:.7rem 0;outline:none;min-width:0}.files-page__filters{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.files-page__kinds{display:flex;gap:.35rem;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}.files-page__kinds::-webkit-scrollbar{display:none}.files-page__kinds .mode-chip{flex-shrink:0;padding:.35rem .8rem;font-size:.85rem}.files-page__source{width:auto;padding:.4rem .7rem;font-size:.85rem;border-radius:999px}.files-page__drop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:center;justify-content:center;border:2px dashed var(--border-strong);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--bg) 88%,transparent);font-weight:600;pointer-events:none}.files-page__uploads{display:flex;flex-direction:column;gap:.4rem}.files-upload{position:relative;overflow:hidden;display:flex;align-items:center;gap:.75rem;border:1px solid var(--border);border-radius:var(--radius-sm);padding:.5rem .75rem;font-size:.88rem}.files-upload__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.files-upload__meta{color:var(--text-muted);font-size:.82rem}.files-upload--error .files-upload__meta{color:var(--danger)}.files-upload__bar{position:absolute;left:0;bottom:0;height:3px;background:var(--accent);transition:width .2s}.files-page__empty{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:4rem 1rem;text-align:center;color:var(--text-muted)}.files-page__empty svg{width:40px;height:40px;color:var(--text-faint)}.files-page__empty p{margin:.4rem 0 0;font-weight:600;color:var(--text)}.files-page__empty span{max-width:420px;font-size:.9rem}.files-page__more{align-self:center}.files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1rem}.file-tile{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);transition:border-color .15s,box-shadow .15s}.file-tile:hover,.file-tile.active{border-color:var(--border-strong);box-shadow:var(--shadow-soft)}.file-tile__open{display:flex;flex-direction:column;align-items:stretch;gap:.2rem;border:none;background:none;padding:.5rem .5rem .35rem;text-align:left;border-radius:var(--radius) var(--radius) 0 0}.file-tile__open:hover:not(:disabled){background:none}.file-tile__thumb{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;border-radius:var(--radius-sm);background:var(--surface-raised);overflow:hidden;margin-bottom:.4rem}.file-tile__thumb img,.file-tile__thumb video{width:100%;height:100%;object-fit:cover}.file-tile__icon{display:flex;flex-direction:column;align-items:center;gap:.35rem;color:#fff;background:#5b6472;border-radius:12px;padding:.75rem .85rem .5rem}.file-tile__icon svg{width:28px;height:28px}.file-tile__ext{font-size:.68rem;font-weight:700;letter-spacing:.04em}.file-card--docx .file-tile__icon{background:#2b6cde}.file-card--pdf .file-tile__icon{background:#d93f36}.file-card--table .file-tile__icon,.file-card--sheet .file-tile__icon{background:#1f8a4c}.file-card--slides .file-tile__icon{background:#d24726}.file-card--markdown .file-tile__icon{background:#7a5af5}.file-tile__badge{position:absolute;top:.4rem;left:.4rem;font-size:.68rem;font-weight:600;padding:.1rem .45rem;border-radius:999px;background:#ffffffeb;color:#3a3a3a;box-shadow:0 1px 3px #0000001f}.file-tile__badge--generated{background:#141414;color:#fff}.file-tile__name{font-weight:600;font-size:.88rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;padding-right:1.6rem}.file-tile__meta{font-size:.76rem;color:var(--text-faint)}.file-tile__chat{display:flex;align-items:center;gap:.35rem;margin:0 .5rem .5rem;padding-top:.4rem;border-top:1px solid var(--border);font-size:.76rem;color:var(--text-muted);text-decoration:none;min-width:0}.file-tile__chat:hover{color:var(--text)}.file-tile__chat svg{width:13px;height:13px;flex-shrink:0}.file-tile__chat span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-tile__menu{position:absolute;right:.3rem;bottom:2.6rem}.file-tile:not(:has(.file-tile__chat)) .file-tile__menu{bottom:.35rem}a.popover__item{display:flex;align-items:center;color:var(--text);text-decoration:none;border-radius:var(--radius-sm)}@media (max-width: 860px){.app-content:has(>.file-preview)>.files-page{display:none}.files-page~.file-preview{position:fixed;top:0;right:0;bottom:0;left:0;height:auto}}@media (max-width: 520px){.files-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.files-page__upload{padding:.5rem .8rem}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000059}.modal{width:min(560px,100%);max-height:min(680px,calc(100vh - 2rem));max-height:min(680px,calc(100dvh - 2rem));display:flex;flex-direction:column;gap:.75rem;padding:1.1rem 1.1rem 1rem;border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}.modal__head{display:flex;align-items:center;justify-content:space-between}.modal__head h2{margin:0;font-size:1.1rem}.modal__actions{display:flex;justify-content:flex-end;gap:.5rem}.files-picker__list{flex:1;min-height:12rem;overflow-y:auto;display:flex;flex-direction:column;gap:.2rem;margin:0 -.3rem;padding:0 .3rem}.files-picker__empty{padding:2.5rem 1rem;text-align:center;color:var(--text-muted);font-size:.9rem}.files-picker__item{display:flex;align-items:center;gap:.75rem;border:1px solid transparent;background:none;padding:.45rem .55rem;text-align:left;border-radius:var(--radius-sm)}.files-picker__item.selected{border-color:var(--accent);background:var(--accent-soft)}.files-picker__thumb{flex-shrink:0;width:42px;height:42px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#5b6472;color:#fff}.files-picker__thumb img{width:100%;height:100%;object-fit:cover}.files-picker__thumb svg{width:20px;height:20px}.file-card--docx.files-picker__thumb{background:#2b6cde}.file-card--pdf.files-picker__thumb{background:#d93f36}.file-card--table.files-picker__thumb,.file-card--sheet.files-picker__thumb{background:#1f8a4c}.file-card--slides.files-picker__thumb{background:#d24726}.file-card--markdown.files-picker__thumb{background:#7a5af5}.files-picker__text{flex:1;min-width:0;display:flex;flex-direction:column}.files-picker__name{font-weight:500;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.files-picker__meta{font-size:.76rem;color:var(--text-faint)}.files-picker__check{flex-shrink:0;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--border-strong);display:flex;align-items:center;justify-content:center}.files-picker__item.selected .files-picker__check{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.files-picker__check svg{width:13px;height:13px}.msg-attachments__deleted{display:flex;align-items:center;justify-content:center;width:120px;height:90px;border-radius:var(--radius-sm);border:1px dashed var(--border-strong);color:var(--text-faint);font-size:.8rem}.file-card--missing{opacity:.6}.file-card--missing .file-card__open{cursor:default}.files-page__search input,.files-page__search input:focus{border:none;box-shadow:none;outline:none;border-radius:0}.file-tile__meta{padding-right:1.6rem}@media (max-width: 520px){.files-page__kinds{flex:1 1 100%}}.confirm-backdrop{z-index:400;background:#0000008c}.confirm-dialog{width:min(540px,100%);padding:1.6rem 1.5rem 1.4rem;border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow);text-align:center}.confirm-dialog h2{margin:0;font-size:1.15rem;line-height:1.35}.confirm-dialog p{margin:.55rem 0 0;color:var(--text-muted);font-size:.92rem}.confirm-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1.3rem}.confirm-dialog__actions button{justify-content:center;padding:.7rem 1rem;font-weight:600;border:none;border-radius:var(--radius-sm)}.confirm-dialog__cancel{background:var(--surface-hover)}.confirm-dialog__cancel:hover:not(:disabled){background:var(--border)}.confirm-dialog__confirm{background:var(--accent);color:var(--on-accent)}.confirm-dialog__confirm.danger{background:#e3141b;color:#fff}.confirm-dialog__confirm.danger:hover:not(:disabled){background:#c40f15}.sidebar-nav .sidebar-nav__search{display:flex;align-items:center;gap:.65rem;width:100%;padding:.45rem .6rem;border:none;border-radius:var(--radius-sm);background:none;color:var(--text);font-size:.9rem;text-align:left}.sidebar-nav .sidebar-nav__search:hover:not(:disabled){background:var(--surface-hover)}.sidebar-nav__search svg{width:17px;height:17px;color:var(--text-muted)}.sidebar-nav__kbd{margin-left:.1rem;font:inherit;font-size:.8rem;color:var(--text-faint)}.search-backdrop{align-items:flex-start;padding-top:min(12vh,110px);z-index:350}.search-dialog{width:min(640px,100%);max-height:min(560px,calc(100vh - 2rem));max-height:min(560px,calc(100dvh - 2rem));display:flex;flex-direction:column;border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.search-dialog__field{display:flex;align-items:center;gap:.7rem;padding:.55rem .6rem .55rem 1.1rem;border-bottom:1px solid var(--border)}.search-dialog__field>svg{width:19px;height:19px;color:var(--text-faint);flex-shrink:0}.search-dialog__field input,.search-dialog__field input:focus{flex:1;min-width:0;border:none;outline:none;box-shadow:none;background:none;padding:.6rem 0;font-size:1.02rem}.search-dialog__results{flex:1;min-height:7rem;overflow-y:auto;padding:.35rem}.search-dialog__heading{padding:.55rem .7rem .3rem;font-size:.72rem;font-weight:600;color:var(--text-faint)}.search-dialog__empty{padding:2.5rem 1rem;text-align:center;color:var(--text-muted);font-size:.92rem}.search-result{display:flex;align-items:flex-start;gap:.75rem;width:100%;border:none;background:none;padding:.55rem .7rem;border-radius:var(--radius-sm);text-align:left}.search-result:hover:not(:disabled),.search-result.selected{background:var(--surface-raised)}.search-result__icon{flex-shrink:0;display:flex;padding-top:.1rem;color:var(--text-muted)}.search-result__icon svg{width:17px;height:17px}.search-result__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}.search-result__title{display:flex;align-items:center;gap:.3rem;font-weight:500;font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result__title-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result__pin{width:13px;height:13px;flex-shrink:0;color:var(--text-faint)}.search-result__snippet{font-size:.82rem;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}.search-result mark{background:#ffe7a3;color:inherit;border-radius:2px;padding:0 1px}.search-result__meta{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:.15rem;font-size:.75rem;color:var(--text-faint);padding-top:.15rem}.search-result__count{font-size:.7rem}.search-dialog__footer{display:flex;gap:1.1rem;padding:.55rem 1rem;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-faint)}.search-dialog__footer kbd{font:inherit;font-size:.7rem;padding:.05rem .35rem;margin-right:.2rem;border:1px solid var(--border);border-radius:4px;background:var(--surface-raised)}@media (max-width: 600px){.search-backdrop{padding:0}.search-dialog{width:100%;max-height:none;height:100%;border-radius:0}.search-dialog__footer{display:none}}.chat-message--found{animation:found-flash 2.6s ease-out;border-radius:var(--radius)}@keyframes found-flash{0%,35%{box-shadow:0 0 0 6px #ffe7a3;background:#fff7dd}to{box-shadow:0 0 0 6px transparent}}a.button{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius-sm);padding:.55rem 1rem;text-decoration:none;transition:background .15s,border-color .15s}a.button:hover{background:var(--surface-hover);border-color:var(--border-strong)}a.button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}a.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.assistant-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:30%;line-height:1;-webkit-user-select:none;user-select:none;background:var(--avatar-bg, #efeafd)}.assistant-avatar--xs{width:20px;height:20px;font-size:.72rem;border-radius:6px}.assistant-avatar--sm{width:26px;height:26px;font-size:.9rem;border-radius:8px}.assistant-avatar--md{width:36px;height:36px;font-size:1.15rem}.assistant-avatar--lg{width:48px;height:48px;font-size:1.5rem}.assistant-avatar--xl{width:72px;height:72px;font-size:2.3rem;border-radius:22px}.assistant-avatar--violet{--avatar-bg: #ece7fd}.assistant-avatar--blue{--avatar-bg: #e2edfd}.assistant-avatar--teal{--avatar-bg: #dcf3f1}.assistant-avatar--green{--avatar-bg: #e1f4e4}.assistant-avatar--yellow{--avatar-bg: #fdf3cf}.assistant-avatar--orange{--avatar-bg: #fde8d6}.assistant-avatar--red{--avatar-bg: #fde2e0}.assistant-avatar--pink{--avatar-bg: #fce4f1}.assistant-avatar--gray{--avatar-bg: #ececec}.assistants-page{display:flex;flex-direction:column;gap:.9rem;padding-bottom:2rem}.assistants-page__create svg{width:16px;height:16px}.assistants-page .files-page__kinds{flex:none;flex-wrap:wrap}@media (max-width: 600px){.assistants-page .files-page__kinds{flex-wrap:nowrap}}.assistants-page__count{margin-left:.35rem;font-size:.75rem;opacity:.7}.assistants-page__group{display:flex;flex-direction:column;gap:.6rem;margin-top:.4rem}.assistants-page__group-title{margin:0;font-size:1rem;font-weight:600}.assistants-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.75rem}.assistant-card{position:relative;display:flex;align-items:flex-start;gap:.8rem;padding:.9rem 2.2rem .9rem .9rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);text-decoration:none;transition:border-color .15s,box-shadow .15s}.assistant-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-soft)}.assistant-card__text{display:flex;flex-direction:column;gap:.2rem;min-width:0}.assistant-card__name{font-weight:600;font-size:.95rem}.assistant-card__desc{color:var(--text-muted);font-size:.84rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chat-menu__trigger.assistant-card__menu{position:absolute;top:.55rem;right:.45rem;border:none;background:none;padding:.3rem;color:var(--text-faint);opacity:0;transition:opacity .15s}.assistant-card:hover .assistant-card__menu,.assistant-card__menu.open,.assistant-card__menu:focus-visible{opacity:1}@media (hover: none){.chat-menu__trigger.assistant-card__menu{opacity:1}}.assistant-page{flex:1;display:flex;flex-direction:column;min-height:0}.assistant-page__bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.assistant-page__actions{display:flex;align-items:center;gap:.25rem}.assistant-page__action{padding:.4rem .8rem;font-size:.85rem;white-space:nowrap}.assistant-page__action svg{width:15px;height:15px}.chat-menu__trigger.assistant-page__more{border:none;background:none;padding:.4rem;color:var(--text-muted)}.assistant-editor__back{display:inline-flex;align-items:center;gap:.35rem;color:var(--text-muted);text-decoration:none;font-size:.88rem}.assistant-editor__back:hover{color:var(--text)}.assistant-editor__back svg{width:16px;height:16px}.new-chat--hero{padding-top:1rem}.assistant-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.35rem;margin-bottom:1.4rem;max-width:560px}.assistant-hero__name{margin:.4rem 0 0;font-size:1.5rem;font-weight:600;letter-spacing:-.01em}.assistant-hero__desc{margin:0;color:var(--text-muted);line-height:1.45}.assistant-hero__meta{margin:.1rem 0 0;color:var(--text-faint);font-size:.8rem}.assistant-starters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%;max-width:720px;margin-top:1.1rem}.assistant-starter{justify-content:flex-start;text-align:left;padding:.7rem .85rem;border-radius:var(--radius);font-size:.87rem;line-height:1.35;color:var(--text-muted)}.assistant-starter:hover:not(:disabled){color:var(--text)}.assistant-chats{width:100%;max-width:720px;margin-top:1.75rem;display:flex;flex-direction:column;gap:.15rem}.assistant-chats h2{margin:0 0 .4rem;font-size:.8rem;font-weight:600;color:var(--text-faint)}.assistant-chats__item{display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-size:.9rem}.assistant-chats__item:hover{background:var(--surface-hover)}.assistant-chats__item svg{width:15px;height:15px;color:var(--text-faint)}.assistant-chats__title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant-chats__date{color:var(--text-faint);font-size:.8rem}.assistant-editor{width:100%;max-width:720px;margin:0 auto;padding-bottom:3rem}.assistant-editor h1{margin:.9rem 0 1.4rem;font-size:1.5rem}.assistant-editor__form{display:flex;flex-direction:column;gap:1.4rem}.assistant-editor__identity{display:flex;gap:1.25rem;align-items:flex-start}.assistant-editor__avatar{flex-direction:column;gap:.35rem;padding:0;border:none;background:none}.assistant-editor__avatar:hover:not(:disabled){background:none}.assistant-editor__avatar-edit{font-size:.78rem;color:var(--text-muted)}.assistant-editor__avatar:hover .assistant-editor__avatar-edit{color:var(--text);text-decoration:underline}.popover.assistant-editor__picker{top:calc(100% + 6px);left:0;width:300px;padding:.6rem}.assistant-editor__emojis{display:grid;grid-template-columns:repeat(8,1fr);gap:.15rem}.assistant-editor__emojis button{justify-content:center;padding:.25rem 0;border:1px solid transparent;background:none;font-size:1.15rem;border-radius:8px}.assistant-editor__emojis button.selected{border-color:var(--border-strong);background:var(--surface-raised)}.assistant-editor__colors{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem;padding-top:.6rem;border-top:1px solid var(--border)}.assistant-editor__colors button{width:24px;height:24px;padding:0;border-radius:50%;border:2px solid transparent;background:var(--avatar-bg);box-shadow:inset 0 0 0 1px #00000014}.assistant-editor__colors button:hover:not(:disabled){background:var(--avatar-bg)}.assistant-editor__colors button.selected{border-color:var(--accent)}.assistant-editor__names{flex:1;min-width:0;display:flex;flex-direction:column;gap:.9rem}.assistant-editor__field{display:flex;flex-direction:column;gap:.35rem;position:relative}.assistant-editor__field>span:first-child{font-weight:600;font-size:.9rem}.assistant-editor__field small{color:var(--text-muted);font-size:.82rem;line-height:1.4;margin-bottom:.2rem}.assistant-editor__field textarea{line-height:1.5;min-height:180px}.assistant-editor__counter{align-self:flex-end;font-size:.75rem;color:var(--text-faint)}.assistant-editor__starter{display:flex;align-items:center;gap:.3rem}.assistant-editor__starter input{flex:1;min-width:0}.assistant-editor__add{align-self:flex-start;border:none;background:none;padding:.3rem .1rem;color:var(--text-muted);font-size:.87rem}.assistant-editor__add:hover:not(:disabled){background:none;color:var(--text)}.assistant-editor__add svg{width:15px;height:15px}.assistant-editor__files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.assistant-editor__files li,.assistant-editor__upload{display:flex;align-items:center;gap:.55rem;padding:.4rem .4rem .4rem .7rem;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.87rem}.assistant-editor__files li svg:first-child{width:16px;height:16px;color:var(--text-faint)}.assistant-editor__files li.missing{color:var(--text-faint)}.assistant-editor__file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant-editor__file-meta{color:var(--text-faint);font-size:.8rem}.assistant-editor__upload{justify-content:space-between;color:var(--text-muted);padding:.55rem .7rem}.assistant-editor__upload.error{color:var(--danger);border-color:var(--danger-bg);background:var(--danger-bg);padding:.3rem .4rem .3rem .7rem}.assistant-editor__file-actions{display:flex;gap:.5rem;flex-wrap:wrap}.assistant-editor__file-actions button{padding:.45rem .85rem;font-size:.87rem}.assistant-editor__file-actions svg{width:16px;height:16px}.assistant-editor__actions{display:flex;justify-content:flex-end;gap:.6rem}.sidebar-chat-assistant{display:inline-flex;flex-shrink:0}.sidebar-chat-assistant+.sidebar-chat-title{flex:1;min-width:0}.chat-header__assistant{display:inline-flex;align-items:center;gap:.45rem;margin-right:.6rem;padding:.15rem .6rem .15rem .2rem;border-radius:999px;background:var(--surface-raised);color:var(--text);text-decoration:none;font-size:.84rem;font-weight:500;flex-shrink:0;max-width:45%}.chat-header__assistant span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header__assistant:hover{background:var(--surface-hover)}.model-menu__note{margin:0 .6rem .35rem;padding:.4rem .55rem;border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-muted);font-size:.78rem;line-height:1.35}@media (max-width: 600px){.assistant-starters,.assistants-grid{grid-template-columns:1fr}.assistant-editor__identity{flex-direction:column;align-items:center}.assistant-editor__names{width:100%}.popover.assistant-editor__picker{left:50%;transform:translate(-50%);width:min(300px,calc(100vw - 32px))}.assistant-hero__name{font-size:1.3rem}.assistant-page__action-more{display:none}}.research{margin:.15rem 0 .75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);font-size:.87rem;max-width:560px}.research--live{padding:.75rem .9rem .6rem}.research__head{display:flex;align-items:center;gap:.45rem;font-weight:600;margin-bottom:.5rem}.research__head svg,.research__toggle>svg:first-child{width:16px;height:16px}.research__phase{margin-left:auto;font-weight:400;font-size:.8rem;color:var(--text-muted)}.research__steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}.research:not(.research--live) .research__steps{padding:0 .9rem .7rem}.research__step{display:flex;align-items:center;gap:.55rem;min-width:0;color:var(--text-muted)}.research__step>svg,.research__step>.spinner,.research__step>.research__dot{width:14px;height:14px;flex-shrink:0}.research__step--done>svg{color:var(--success)}.research__step--failed>svg{color:var(--danger)}.research__step--running{color:var(--text)}.research__step--failed .research__query{text-decoration:line-through;color:var(--text-faint)}.research__dot{display:inline-block;border-radius:50%;border:2px solid var(--border-strong);box-sizing:border-box}.research__query{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.research__count{flex-shrink:0;font-size:.78rem;color:var(--text-faint)}.research__toggle{width:100%;border:none;background:none;padding:.55rem .9rem;color:var(--text-muted);font-size:.85rem;text-align:left}.research__toggle:hover:not(:disabled){background:none;color:var(--text)}.research__toggle span{flex:1;min-width:0}.research__chevron{width:15px;height:15px;transition:transform .15s}.research.open .research__chevron{transform:rotate(180deg)}.md-cite{display:inline-flex;align-items:center;justify-content:center;min-width:1.15rem;height:1.15rem;padding:0 .25rem;margin:0 .08rem;border-radius:999px;background:var(--surface-raised);border:1px solid var(--border);color:var(--text-muted)!important;font-size:.68rem;font-weight:600;line-height:1;text-decoration:none!important;vertical-align:.15em}.md-cite:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)!important}.popover.export-menu{min-width:200px;left:0}.chat-older{align-self:center;margin:.25rem auto 1rem;padding:.35rem .9rem;border-radius:999px;font-size:.82rem;color:var(--text-muted)}.sidebar-nav__badge{margin-left:auto;min-width:1.25rem;height:1.25rem;padding:0 .35rem;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:.72rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.sidebar-chat-automation{display:inline-flex;flex-shrink:0;color:var(--accent)}.sidebar-chat-automation svg{width:14px;height:14px}.sidebar-chat-automation+.sidebar-chat-title{flex:1;min-width:0}.sidebar-chat-item.unread .sidebar-chat-title{font-weight:600}.sidebar-chat-item.unread:after{content:"";flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--accent);order:2}.sidebar-chat-item.unread .chat-menu__trigger{order:3}.chat-header__automation svg{width:14px;height:14px;margin-left:.35rem;color:var(--accent)}.automations-page{display:flex;flex-direction:column;gap:.9rem;padding-bottom:2rem}.automations-page .files-page__head button svg{width:16px;height:16px}.automation-list{display:flex;flex-direction:column;gap:.6rem}.automation-card{display:flex;align-items:center;gap:.9rem;padding:.85rem .9rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.automation-card--off .automation-card__body{opacity:.6}.automation-card__icon{width:40px;height:40px;border-radius:12px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent)}.automation-card__icon svg{width:19px;height:19px}.automation-card__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}.automation-card__name{display:flex;align-items:center;gap:.5rem;font-weight:600}.automation-card__new{padding:.05rem .45rem;border-radius:999px;background:var(--accent);color:#fff;font-size:.7rem;font-weight:600}.automation-card__schedule{font-size:.86rem;color:var(--text-muted)}.automation-card__status{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;font-size:.8rem;color:var(--text-faint)}.automation-card__status .spinner{width:12px;height:12px}.automation-card__error{color:var(--danger)}.automation-card__actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.automation-card__open{padding:.35rem .75rem;font-size:.84rem}.chat-menu__trigger.automation-card__menu{border:none;background:none;padding:.35rem;color:var(--text-muted)}.switch{position:relative;display:inline-block;width:38px;height:22px;flex-shrink:0;cursor:pointer}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.switch span{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:999px;background:var(--border-strong);transition:background .15s;pointer-events:none}.switch span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .15s}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{transform:translate(16px)}.switch input:focus-visible+span{outline:2px solid var(--border-strong);outline-offset:2px}.automation-templates{display:flex;flex-direction:column;gap:.6rem;margin-top:.6rem}.automation-template{text-align:left;font:inherit;cursor:pointer;padding-right:.9rem}.automation-template:hover:not(:disabled){background:var(--surface)}.modal.automation-editor{width:min(600px,100%);max-height:min(760px,calc(100vh - 2rem));max-height:min(760px,calc(100dvh - 2rem))}.automation-editor__body{display:flex;flex-direction:column;gap:1.1rem;overflow-y:auto;padding:.1rem .15rem .3rem}.automation-editor__when{display:flex;gap:.5rem;flex-wrap:wrap}.automation-editor__when select{flex:1;min-width:140px}.automation-editor__days,.automation-editor__modes{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.2rem}.automation-editor__days .mode-chip,.automation-editor__modes .mode-chip{padding:.35rem .75rem;font-size:.85rem}.automation-editor__actions{align-items:center}.automation-editor__toggle{display:flex;align-items:center;gap:.6rem;font-size:.92rem;cursor:pointer}.automation-editor__toggle:has(input:disabled){color:var(--text-muted);cursor:not-allowed}.automation-editor__toggle .switch input:disabled{cursor:not-allowed}.integration-card__icon--telegram{background:#2aabee;color:#fff}.integration-card__icon--telegram svg{margin-left:-2px}.integration-card__icon--disk{background:#fc0;color:#141414}.integration-card__on{padding:.05rem .45rem;border-radius:999px;background:var(--success-bg);color:var(--success);font-size:.7rem;font-weight:600}.integration-card .automation-card__schedule a{color:inherit}.integration-card__connect.is-disabled{opacity:.5;cursor:not-allowed}.automation-editor__price{margin-right:auto;font-size:.82rem;color:var(--text-muted)}@media (max-width: 600px){.automation-card{flex-wrap:wrap}.automation-card__actions{width:100%;justify-content:flex-end}}@media (max-width: 600px){.files-page__head{gap:.6rem}.files-page__head h1{font-size:1.5rem;min-width:0}.files-page__head>button,.files-page__head>a{flex-shrink:0;padding:.5rem .8rem}}.composer__mic svg{width:18px;height:18px}.composer__voice{display:flex;align-items:center;gap:.5rem;font-size:.86rem;color:var(--text-muted)}.composer__voice-dot{width:9px;height:9px;border-radius:50%;background:var(--danger);animation:voice-pulse 1.2s ease-in-out infinite}@keyframes voice-pulse{50%{opacity:.35}}.composer__voice-time{min-width:2.4rem;font-variant-numeric:tabular-nums;color:var(--text)}.composer__voice-meter{display:inline-flex;align-items:center;gap:3px;height:20px}.composer__voice-meter span{width:3px;height:100%;border-radius:2px;background:var(--text-muted);transform-origin:center;transition:transform .08s linear}.composer__voice-done{width:34px;height:34px;padding:0;justify-content:center;border-radius:50%;border:none;background:var(--accent);color:var(--on-accent)}.composer__voice-done:hover:not(:disabled){background:var(--accent-hover)}.composer__voice-done svg{width:17px;height:17px}.composer__voice .spinner{width:13px;height:13px}@media (prefers-reduced-motion: reduce){.composer__voice-dot{animation:none}}.research-hero__icon{width:72px;height:72px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center;background:#e2edfd;color:#2563eb}.research-hero__icon svg{width:34px;height:34px}.sidebar-nav a{white-space:nowrap}.sidebar-history__error{margin:.2rem .6rem;font-size:.78rem;color:var(--danger)}.sidebar-folder{display:flex;align-items:center;gap:.2rem;border-radius:var(--radius-sm)}.sidebar-folder:hover{background:var(--surface-hover)}.sidebar-folder--editing{gap:.45rem;padding:.2rem .35rem .2rem .6rem;background:var(--accent-soft)}.sidebar-folder--editing>svg{width:15px;height:15px;flex-shrink:0;color:var(--text-muted)}.sidebar-folder--editing input{flex:1;min-width:0}.sidebar-folder__toggle{flex:1;min-width:0;display:flex;align-items:center;gap:.4rem;padding:.38rem .2rem .38rem .35rem;border:none;background:none;font-size:.86rem;font-weight:500;color:var(--text);text-align:left}.sidebar-folder__toggle:hover:not(:disabled){background:none}.sidebar-folder__toggle svg{width:15px;height:15px;flex-shrink:0;color:var(--text-muted)}.sidebar-folder__chevron{width:13px!important;height:13px!important;transition:transform .15s}.sidebar-folder__chevron.closed{transform:rotate(-90deg)}.sidebar-folder__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-folder__count{font-size:.75rem;font-weight:400;color:var(--text-faint)}.chat-menu__trigger.sidebar-folder__menu{border:none;background:none;padding:.25rem;color:var(--text-muted);opacity:0}.sidebar-folder:hover .sidebar-folder__menu,.sidebar-folder__menu.open,.sidebar-folder__menu:focus-visible{opacity:1}@media (hover: none){.chat-menu__trigger.sidebar-folder__menu{opacity:1}}.sidebar-folder__chats{margin-left:.85rem;padding-left:.35rem;border-left:1px solid var(--border)}.sidebar-folder__empty{padding:.3rem .5rem .45rem;font-size:.75rem;line-height:1.35;color:var(--text-faint)}.sidebar-folder-group,.sidebar-history__loose{border-radius:var(--radius-sm);transition:background .1s,box-shadow .1s}.drop-target{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--border-strong)}.sidebar-history__loose{min-height:1.5rem}.sidebar-chat-item[draggable=true]{-webkit-user-drag:element}.chat-menu__back{color:var(--text-muted);font-size:.84rem}.chat-menu__folders{display:flex;flex-direction:column;gap:.05rem;max-height:220px;overflow-y:auto}.chat-menu__folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.chat-menu__new-folder{display:flex;flex-direction:column;gap:.45rem;padding-bottom:.2rem}.chat-menu__new-folder input{margin:0 .35rem;padding:.45rem .6rem;font-size:.88rem}.chat-menu__new-folder button.primary{margin:0 .35rem;justify-content:center;padding:.45rem .6rem;font-size:.85rem}.share-dialog{width:min(500px,100%)}.share-dialog__loading{display:flex;align-items:center;gap:.5rem;padding:1.25rem 0;color:var(--text-muted)}.share-dialog__text,.share-dialog__note{margin:0;line-height:1.5}.share-dialog__note{font-size:.85rem;color:var(--text-muted)}.share-dialog .modal__actions svg,.share-dialog__link button svg,.share-dialog__actions svg,.share-dialog__newer button svg{width:16px;height:16px;vertical-align:-3px}.share-dialog__link{display:flex;gap:.5rem}.share-dialog__link input{flex:1;min-width:0;font-size:.9rem;color:var(--text-muted)}.share-dialog__link button{flex-shrink:0;white-space:nowrap}.share-dialog__meta{font-size:.82rem;color:var(--text-faint)}.share-dialog__newer{display:flex;align-items:center;gap:.75rem;padding:.65rem .8rem;border-radius:var(--radius);background:var(--surface-raised);font-size:.87rem;line-height:1.4}.share-dialog__newer span{flex:1}.share-dialog__newer button{flex-shrink:0;white-space:nowrap}.share-dialog__actions{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.25rem}.share-dialog__actions a.button{display:inline-flex;align-items:center;gap:.35rem}.share-dialog__remove{margin-left:auto;color:var(--danger)}.share-dialog__remove:hover:not(:disabled){background:var(--danger-bg)}.shared-page{display:flex;height:100vh;height:100dvh;background:var(--bg)}.shared-page__column{flex:1;min-width:0;display:flex;flex-direction:column;overflow-y:auto}.shared-page__bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem var(--page-gutter);background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}.shared-page__brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:650;color:var(--text);text-decoration:none}.shared-page__thread{flex:1;width:100%;max-width:calc(820px + 2 * var(--page-gutter));margin:0 auto;padding:1.5rem var(--page-gutter) 2rem;display:flex;flex-direction:column;gap:1.4rem}.shared-page__thread>.chat-message{content-visibility:auto;contain-intrinsic-size:auto 160px}.shared-page__head h1{margin:0 0 .3rem;font-size:1.6rem;line-height:1.25;overflow-wrap:anywhere}.shared-page__meta{font-size:.85rem;color:var(--text-muted)}.shared-page__missing{margin:4rem auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem}.shared-page__missing h1{margin:0;font-size:1.3rem}.shared-page__missing p{margin:0 0 .75rem;color:var(--text-muted)}.shared-page__cta{position:sticky;bottom:0;padding:.75rem var(--page-gutter) 1rem;background:linear-gradient(to bottom,transparent,var(--bg) 35%)}.shared-page__cta-inner{max-width:820px;margin:0 auto;display:flex;align-items:center;gap:1rem;padding:.75rem .75rem .75rem 1.1rem;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-soft);font-size:.92rem;line-height:1.4}.shared-page__cta-inner span{flex:1;color:var(--text-muted)}.shared-page__cta-inner .button,.shared-page__cta-inner button{flex-shrink:0;white-space:nowrap}.shared-page__cta .form-error{max-width:820px;margin:.5rem auto 0}@media (max-width: 600px){.shared-page__cta-inner{flex-direction:column;align-items:stretch;text-align:center}.shared-page__cta-inner .button,.shared-page__cta-inner button{justify-content:center}.share-dialog__link{flex-direction:column}.share-dialog__newer{flex-direction:column;align-items:stretch}.share-dialog__remove{margin-left:0}}.option-group__note{margin:0 0 14px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-muted);font-size:.85rem;line-height:1.45}.msg-usage{align-self:center;margin-left:.4rem;font-size:.78rem;color:var(--text-faint);white-space:nowrap}.msg-truncated{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:.6rem;padding:.6rem .8rem;border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-muted);font-size:.86rem}.msg-truncated span{flex:1;min-width:14rem}.msg-truncated button{padding:.35rem .8rem;font-size:.86rem}.drawn-images{margin-top:.6rem;display:flex;flex-wrap:wrap;gap:.85rem}.drawn-image{margin:0;max-width:min(520px,100%)}.drawn-image img{display:block;max-width:100%;max-height:420px;border-radius:var(--radius);border:1px solid var(--border);background:#fff}.drawn-image__placeholder{width:320px;max-width:100%;height:200px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-raised);color:var(--text-muted);font-size:.85rem}.drawn-image__placeholder--failed{color:var(--danger, #b42318)}.drawn-image__name{margin-top:.3rem;font-size:.78rem;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-error:has(.error-retry){display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.error-retry{display:inline-flex;align-items:center;gap:.35rem;flex-shrink:0;padding:.35rem .75rem;border-radius:999px;border:1px solid currentColor;background:var(--surface, #fff);color:inherit;font-size:.84rem;font-weight:500}.error-retry:hover:not(:disabled){background:var(--danger-bg)}.error-retry svg{width:14px;height:14px}.job-failed__problem{margin-top:.35rem;font-size:.82rem;color:var(--text-muted)}.email-banner{flex:none;display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;margin:.75rem 1rem 0;padding:.75rem .9rem;border-radius:var(--radius);background:#fff4ec;border:1px solid #ffd5bd;color:var(--text);font-size:.88rem}.email-banner>svg{width:22px;height:22px;color:#ff5b1f;flex:none}.email-banner__text{flex:1 1 260px;display:flex;flex-direction:column;gap:.15rem;min-width:0}.email-banner__text>span{color:var(--text-muted)}.email-banner__error{color:var(--danger)!important}.email-banner__note{color:#0f7a3d!important}.email-banner__form{display:flex;gap:.4rem}.email-banner__form input{width:8.5rem;padding:.45rem .6rem;font-size:.95rem;letter-spacing:.15em;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text)}.email-banner__form input::placeholder{letter-spacing:normal}.email-banner__form button{padding:.45rem .8rem;font-size:.86rem}.email-banner__close{border:none;background:none;padding:.25rem;color:var(--text-faint);display:flex}.email-banner__close svg{width:16px;height:16px}.email-banner__short,.email-banner__more{display:none}button.email-banner__more{flex:none;padding:.35rem .75rem;border-radius:999px;font-size:.82rem;font-weight:600}.link-button{border:none;background:none;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}.invite{margin-top:2rem;padding:1.25rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);scroll-margin-top:1rem}.invite__head{display:flex;gap:.9rem;align-items:flex-start}.invite__icon{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#fff4ec;color:#ff5b1f}.invite__icon svg{width:22px;height:22px}.invite h2{margin:0 0 .35rem;font-size:1.1rem}.invite p{margin:0;color:var(--text-muted);font-size:.9rem;line-height:1.5}.invite__link{display:flex;gap:.5rem;margin-top:1rem}.invite__link input{flex:1;min-width:0;padding:.55rem .7rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text);font-size:.9rem}.invite__link button{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}.invite__link button svg{width:15px;height:15px}.invite__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:1rem}.invite__stats div{display:flex;flex-direction:column;gap:.1rem;padding:.6rem .75rem;border-radius:var(--radius-sm);background:var(--surface-raised)}.invite__stats strong{font-size:1.15rem}.invite__stats span{font-size:.78rem;color:var(--text-muted)}@media (max-width: 640px){.invite__link{flex-direction:column}.email-banner__form{width:100%}.email-banner__form input{flex:1}}.option-group__hint{margin-top:.4rem;font-size:.8rem;color:var(--text-muted)}.audio-results{display:flex;flex-direction:column;gap:.6rem;max-width:560px}.audio-result{display:flex;align-items:center;gap:.75rem;padding:.6rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.audio-result__cover{flex:none;width:56px;height:56px;border-radius:10px;object-fit:cover}.audio-result__cover--empty{display:grid;place-items:center;background:var(--surface-raised);color:var(--text-muted)}.audio-result__cover--empty svg{width:24px;height:24px}.audio-result__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.35rem}.audio-result__title{display:flex;align-items:baseline;gap:.5rem;font-size:.9rem;font-weight:600}.audio-result__title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audio-result__title small{font-weight:400;color:var(--text-faint)}.audio-result audio{width:100%;height:36px}.audio-result .media-download{position:static;flex:none}.lightbox-audio{width:min(520px,90vw)}.welcome-backdrop{background:#0a0a0c73;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:welcome-fade .25s ease both}.welcome-dialog{position:relative;width:min(420px,100%);padding:2rem 1.75rem 1.6rem;border-radius:28px;background:var(--surface);box-shadow:0 30px 80px -20px #00000059;text-align:center;overflow:hidden;animation:welcome-pop .45s cubic-bezier(.2,.9,.3,1.25) both}.welcome-dialog:before{content:"";position:absolute;inset:0 0 auto;height:150px;background:radial-gradient(120% 100% at 50% 0%,#e9f9b8,#e9f9b800 70%);pointer-events:none}.welcome-dialog__art{position:relative;width:96px;height:96px;margin:0 auto 1.1rem}.welcome-dialog__gift{position:relative;display:grid;place-items:center;width:96px;height:96px;border-radius:30px;background:#c8f04c;color:#141414;box-shadow:0 14px 30px -10px #8cb414b3;animation:welcome-bob 3s ease-in-out .5s infinite}.welcome-dialog__gift svg{width:46px;height:46px;stroke-width:1.6}.welcome-dialog__spark{position:absolute;width:10px;height:10px;border-radius:3px;background:#141414;animation:welcome-spark 2.4s ease-in-out infinite}.welcome-dialog__spark.s1{top:-6px;left:-18px;transform:rotate(20deg)}.welcome-dialog__spark.s2{top:10px;right:-24px;width:8px;height:8px;border-radius:50%;background:#c8f04c;animation-delay:.4s}.welcome-dialog__spark.s3{bottom:4px;left:-26px;width:7px;height:7px;border-radius:50%;animation-delay:.8s}.welcome-dialog__spark.s4{bottom:-8px;right:-12px;background:#c8f04c;transform:rotate(-25deg);animation-delay:1.2s}.welcome-dialog__kicker{position:relative;margin:0;color:var(--text-muted);font-size:.85rem}.welcome-dialog h2{position:relative;margin:.35rem 0 0;font-size:1.35rem;line-height:1.25}.welcome-dialog__amount{display:block;margin-top:.2rem;font-size:2.6rem;font-weight:700;letter-spacing:-.03em}.welcome-dialog__text{margin:.75rem 0 0;color:var(--text-muted);font-size:.93rem;line-height:1.5}.welcome-dialog__start{justify-content:center;width:100%;margin-top:1.5rem;padding:.85rem 1rem;border:none;border-radius:14px;background:var(--accent);color:var(--on-accent);font-size:1rem;font-weight:600}.welcome-dialog__start:hover:not(:disabled){background:var(--accent-hover)}@keyframes welcome-fade{0%{opacity:0}}@keyframes welcome-pop{0%{opacity:0;transform:translateY(16px) scale(.94)}}@keyframes welcome-bob{50%{transform:translateY(-5px) rotate(-3deg)}}@keyframes welcome-spark{50%{opacity:.35;translate:0 -4px}}@media (prefers-reduced-motion: reduce){.welcome-backdrop,.welcome-dialog,.welcome-dialog__gift,.welcome-dialog__spark{animation:none}}.disk-picker__bar{display:flex;align-items:center;gap:.4rem;min-height:32px;color:var(--text-muted);font-size:.88rem}.disk-picker__path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.files-picker__thumb.disk-picker__dir{background:var(--accent-soft);color:var(--text)}.disk-picker__connect{display:flex;flex-direction:column;align-items:center;gap:.8rem}.disk-picker__connect p{margin:0}.disk-save{display:inline-flex;flex-shrink:0}.media-item .disk-save .media-download{right:calc(.5rem + 38px)}.disk-save__btn .spinner{width:14px;height:14px}.chat-message__files .disk-save+button.file-card__download{margin-left:-.35rem}.disk-save__toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%);z-index:1000;max-width:calc(100vw - 2rem);padding:.6rem 1rem;border-radius:var(--radius);background:var(--accent);color:var(--on-accent);font-size:.88rem;box-shadow:0 6px 24px #0003;overflow-wrap:anywhere}.disk-save__toast--error{background:var(--danger)}.integration-card__icon--github{background:var(--text);color:var(--bg)}.agent-action{margin:.75rem 0 .25rem;padding:.85rem .95rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);display:flex;flex-direction:column;gap:.45rem;max-width:720px}.agent-action__head{display:flex;align-items:center;gap:.5rem;min-width:0}.agent-action__head>svg{width:18px;height:18px;flex-shrink:0}.agent-action__title{flex:1;min-width:0;overflow-wrap:anywhere}.agent-action__status{flex-shrink:0;padding:.1rem .5rem;border-radius:999px;font-size:.72rem;font-weight:600;background:var(--accent-soft);color:var(--text)}.agent-action__status--done{background:var(--success-bg);color:var(--success)}.agent-action__status--failed{background:var(--danger-bg);color:var(--danger)}.agent-action__status--rejected{color:var(--text-muted)}.agent-action__where{font-size:.84rem;color:var(--text-muted);overflow-wrap:anywhere}.agent-action__message{font-size:.9rem;font-weight:500;overflow-wrap:anywhere}.agent-action__comment{max-height:320px;overflow-y:auto;padding:.55rem .75rem;border-radius:calc(var(--radius) - 4px);background:var(--surface-raised);font-size:.9rem;overflow-wrap:anywhere}.agent-action__where a{color:var(--accent)}.agent-action__labels{display:flex;flex-wrap:wrap;gap:.3rem}.agent-action__label{padding:.1rem .5rem;border-radius:999px;background:var(--accent-soft);color:var(--text);font-size:.75rem;font-weight:500}.agent-action__files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.agent-action__files li+li{border-top:1px solid var(--border)}.agent-action__file{width:100%;border:none;border-radius:0;background:none;padding:.45rem .6rem;gap:.45rem;font-size:.85rem;text-align:left}.agent-action__chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s}.agent-action__chevron.closed{transform:rotate(-90deg)}.agent-action__path{flex:1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;overflow-wrap:anywhere}.agent-action__change{flex-shrink:0;font-size:.72rem;color:var(--text-muted)}.agent-action__counts{flex-shrink:0;font-size:.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.agent-action__plus{color:#1a7f37}.agent-action__minus{color:#cf222e}.agent-diff{margin:0;max-height:360px;overflow:auto;padding:.4rem 0;border-top:1px solid var(--border);background:var(--bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.76rem;line-height:1.45}.agent-diff__line{display:block;padding:0 .7rem;white-space:pre}.agent-diff__add{background:#1a7f371f}.agent-diff__del{background:#cf222e1f}.agent-diff__hunk{color:var(--text-muted)}.agent-action__actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.15rem}.agent-action__actions .spinner{width:14px;height:14px}.agent-action__hint,.agent-action__note{display:flex;align-items:center;gap:.4rem;font-size:.82rem;color:var(--text-muted)}.agent-action__links{display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.86rem}.agent-action__links a{display:inline-flex;align-items:center;gap:.3rem;color:var(--text)}.agent-action__links svg{width:14px;height:14px}.popover.profile-menu{z-index:400;max-height:none;min-width:0;padding:.4rem;border-radius:16px}.profile-menu .popover__item{-webkit-tap-highlight-color:transparent;padding:.6rem .65rem;font-size:.92rem;gap:.75rem;border-radius:10px}a.popover__item{display:flex;align-items:center;color:var(--text);text-decoration:none}.profile-menu .popover__item-label{gap:.75rem;white-space:nowrap}.profile-menu .popover__item svg{width:18px;height:18px}.profile-menu__aside{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:.84rem}.profile-menu__aside--wrap{white-space:normal;overflow-wrap:anywhere;text-align:right}.profile-menu__badge{min-width:1.5rem;height:1.5rem;padding:0 .45rem;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:.78rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.profile-menu .profile-menu__chevron{width:16px;height:16px}.profile-menu .profile-menu__check{width:16px;height:16px;color:var(--text)}.settings-page{width:100%;max-width:720px;margin:0 auto;padding-bottom:2.5rem}.settings-page h1{margin:0 0 1rem}.settings-tabs{display:inline-flex;gap:.25rem;padding:.25rem;margin-bottom:1.5rem;border-radius:999px;background:var(--surface-raised);max-width:100%;overflow-x:auto}.settings-tabs a{padding:.45rem 1rem;border-radius:999px;color:var(--text-muted);text-decoration:none;font-size:.92rem;font-weight:500;white-space:nowrap}.settings-tabs a:hover{color:var(--text)}.settings-tabs a.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft)}.settings-section{display:flex;flex-direction:column;gap:1.25rem}.settings-section>.form-error,.settings-section>.form-hint{margin:0;align-self:flex-start}.settings-hero{display:flex;align-items:center;gap:1.1rem}.settings-avatar{width:76px;height:76px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:inline-flex;align-items:center;justify-content:center;font-size:2rem;font-weight:600;flex-shrink:0}.settings-hero__text{min-width:0;flex:1}.settings-hero__name{display:flex;align-items:center;gap:.35rem;font-size:1.35rem;font-weight:600;overflow-wrap:anywhere}.settings-hero__email{margin-top:.2rem;color:var(--text-muted);font-size:.9rem;overflow-wrap:anywhere}button.settings-icon-btn{padding:.3rem;border:none;background:none;color:var(--text-faint)}button.settings-icon-btn:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.settings-icon-btn svg{width:16px;height:16px}.settings-name-form{display:flex;flex-wrap:wrap;gap:.5rem}.settings-name-form input{flex:1 1 200px;min-width:0}.settings-rows{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem}.settings-row+.settings-row{border-top:1px solid var(--border)}.settings-row--column{flex-direction:column;align-items:stretch}.settings-row__top{display:flex;align-items:center;justify-content:space-between;gap:1rem}.settings-row__main{min-width:0}.settings-row__label{font-weight:600;font-size:.95rem}.settings-row__value{margin-top:.15rem;color:var(--text-muted);font-size:.9rem;overflow-wrap:anywhere}.settings-row__hint{margin:.2rem 0 0;color:var(--text-faint);font-size:.8rem}.settings-badge{display:inline-flex;align-items:center;gap:.3rem;flex-shrink:0;padding:.2rem .6rem;border-radius:999px;background:var(--surface-raised);color:var(--text-muted);font-size:.78rem;white-space:nowrap}.settings-badge--ok{background:var(--success-bg);color:var(--success)}.settings-badge svg{width:13px;height:13px}.settings-link,button.settings-link{flex-shrink:0;padding:0;border:none;background:none;color:var(--text);font-size:.9rem;font-weight:500;text-decoration:underline;text-underline-offset:3px}button.settings-link:hover:not(:disabled){background:none;color:var(--text-muted)}.settings-password{display:flex;flex-direction:column;gap:.55rem;margin-top:.9rem;max-width:360px}.settings-password .form-error{margin:0}.settings-password__actions{display:flex;gap:.5rem;margin-top:.2rem}.settings-danger{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.15rem;border:1px solid color-mix(in srgb,var(--danger) 35%,transparent);border-radius:var(--radius-lg)}.settings-danger__title{font-weight:600}.settings-danger__text{margin-top:.2rem;color:var(--text-muted);font-size:.88rem}button.settings-danger__button{flex-shrink:0;border-color:color-mix(in srgb,var(--danger) 45%,transparent);color:var(--danger);font-weight:500}button.settings-danger__button:hover:not(:disabled){background:var(--danger-bg);border-color:var(--danger)}.confirm-dialog__input{width:100%;margin-top:1rem}.confirm-dialog .form-error{margin:.6rem 0 0;text-align:left}.settings-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-top:-.6rem}button.settings-theme{flex-direction:column;align-items:stretch;gap:.6rem;padding:.6rem;border-radius:var(--radius);border:2px solid var(--border);text-align:left}button.settings-theme.selected,button.settings-theme.selected:hover:not(:disabled){border-color:var(--accent)}.settings-theme__label{display:flex;align-items:center;justify-content:space-between;gap:.4rem;font-size:.9rem;font-weight:500}.settings-theme__label svg{width:16px;height:16px}.theme-preview{display:flex;height:84px;border-radius:8px;overflow:hidden;border:1px solid var(--border)}.theme-preview__half{flex:1;display:flex;min-width:0}.theme-preview__half--light{--p-bg: #ffffff;--p-side: #f2f2f2;--p-line: #d9d9d9;--p-box: #ececec}.theme-preview__half--dark{--p-bg: #1f1f1f;--p-side: #181818;--p-line: #4a4a4a;--p-box: #303030}.theme-preview__side{width:26%;background:var(--p-side)}.theme-preview__main{flex:1;display:flex;flex-direction:column;gap:6px;padding:12px 10px;background:var(--p-bg)}.theme-preview__line{height:6px;border-radius:3px;background:var(--p-line)}.theme-preview__line.short{width:60%}.theme-preview__box{margin-top:auto;height:16px;border-radius:5px;background:var(--p-box)}@media (max-width: 560px){.settings-themes{grid-template-columns:1fr}.settings-danger{flex-direction:column;align-items:stretch}.settings-hero__name{font-size:1.2rem}.settings-avatar{width:60px;height:60px;font-size:1.6rem}}.whats-new{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:2.5rem;padding-bottom:3rem}.whats-new__title{display:flex;align-items:center;gap:.6rem;margin:0}.whats-new__title svg{width:26px;height:26px}.whats-new__subtitle{margin:.4rem 0 1.5rem;color:var(--text-muted)}.whats-new__entry{scroll-margin-top:1.5rem;color:var(--text-muted);line-height:1.65}.whats-new__entry p{margin:0 0 .85rem}.whats-new__entry ul{margin:0 0 .85rem;padding-left:1.3rem}.whats-new__date{margin:2.25rem 0 0;padding-top:1.75rem;border-top:1px solid var(--border);color:var(--text);font-size:1.5rem}.whats-new__entry:first-of-type .whats-new__date{margin-top:.5rem;padding-top:0;border-top:none}.whats-new__heading{margin:1.25rem 0 .6rem;color:var(--text);font-size:1.1rem}.whats-new__toc{position:sticky;top:1rem;align-self:start;display:flex;flex-direction:column;gap:.15rem;max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow-y:auto;padding-top:5.5rem}.whats-new__toc a{display:flex;flex-direction:column;gap:.2rem;padding:.35rem 0;color:var(--text-muted);text-decoration:none;font-size:.84rem;line-height:1.35}.whats-new__toc a:hover .whats-new__toc-title{color:var(--text)}.whats-new__toc-date{margin-top:.5rem;color:var(--text);font-size:.8rem;font-weight:600}@media (max-width: 900px){.whats-new{grid-template-columns:minmax(0,1fr)}.whats-new__toc{display:none}}.workspace-rail{width:var(--rail-width);flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:.75rem 0;border-right:1px solid var(--border);overflow-y:auto;scrollbar-width:none}button.workspace-rail__item{flex-direction:column;gap:.25rem;width:58px;padding:0;border:none;background:none;color:var(--text)}button.workspace-rail__item:hover:not(:disabled){background:none}.workspace-rail__tile{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:1rem;font-weight:600;transition:border-color .15s,background .15s}.workspace-rail__tile svg{width:18px;height:18px}button.workspace-rail__item:hover .workspace-rail__tile{border-color:var(--border-strong)}.workspace-rail__item.active .workspace-rail__tile{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.workspace-rail__label{max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:.66rem;line-height:1.2}.workspace-rail__item.active .workspace-rail__label{color:var(--text);font-weight:600}.workspace-rail__add .workspace-rail__tile{border-style:dashed;background:none;color:var(--text-muted)}.mobile-topbar__space{min-width:0;font-weight:650;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-dialog{text-align:left}.workspace-dialog h2,.workspace-dialog>p{text-align:center}.settings-avatar--square{border-radius:20px}.settings-avatar svg{width:30px;height:30px}.settings-hero__text .settings-badge{margin-top:.35rem}.settings-note{display:flex;gap:.9rem;padding:1.1rem 1.15rem;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-raised)}.settings-note>svg{width:22px;height:22px;margin-top:.1rem;color:var(--text-muted)}.settings-note p{margin:.35rem 0 .9rem;color:var(--text-muted);font-size:.9rem;line-height:1.5}.settings-note button svg{width:16px;height:16px}.settings-row__value--big{color:var(--text);font-size:1.25rem;font-weight:600}.settings-transfer{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.85rem}.settings-transfer input{width:120px}.settings-transfer .settings-row__hint{margin:0}.members-toolbar{display:flex;flex-wrap:wrap;gap:.6rem}.members-toolbar>button svg{width:16px;height:16px}.members-search{flex:1 1 260px;display:flex;align-items:center;gap:.5rem;padding:0 .85rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-muted)}.members-search svg{width:16px;height:16px}.members-search input{flex:1;min-width:0;border:none;padding:.6rem 0;background:none}.members-search input:focus{box-shadow:none}.settings-tabs--small{align-self:flex-start;margin-bottom:0}.settings-tabs button{padding:.4rem .95rem;border:none;border-radius:999px;background:none;color:var(--text-muted);font-size:.88rem;font-weight:500;white-space:nowrap}.settings-tabs button:hover:not(:disabled){background:none;color:var(--text)}.settings-tabs button.active,.settings-tabs button.active:hover:not(:disabled){background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft)}.members-table{display:flex;flex-direction:column}.members-table__head,.members-table__row{display:grid;grid-template-columns:minmax(0,1fr) 96px 150px 176px;align-items:center;gap:.75rem;padding:.65rem .25rem}.members-table__head{border-bottom:1px solid var(--border);color:var(--text-muted);font-size:.82rem;font-weight:600}.members-table__row+.members-table__row{border-top:1px solid var(--border)}.members-table__row--invite{grid-template-columns:minmax(0,1fr) auto}.members-table__user{display:flex;align-items:center;gap:.65rem;min-width:0}.members-table__avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-raised);font-size:.85rem;font-weight:600}.members-table__who{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere;font-size:.92rem}.members-table__email,.members-table__you{color:var(--text-muted);font-size:.8rem}.members-table__email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.members-table__spent{color:var(--text-muted);font-size:.9rem;white-space:nowrap}.members-table__limit{display:flex;align-items:center;gap:.2rem;min-width:0;font-size:.86rem}.members-table__muted{color:var(--text-faint)}.members-table__role{display:flex;align-items:center;justify-content:flex-end;gap:.35rem}.members-table__role select{padding:.35rem .5rem;font-size:.86rem}.members-table__role-text{color:var(--text-muted);font-size:.88rem}.members-table__actions{display:flex;align-items:center;gap:.75rem}.members-table__empty{padding:1.25rem .25rem;color:var(--text-muted);font-size:.9rem}button.invite-copy{padding:.4rem .75rem;font-size:.86rem;gap:.4rem}.invite-copy svg{width:15px;height:15px}.invite-form,.invite-link{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;text-align:left}.invite-form input{flex:1 1 220px;min-width:0}.invite-form .settings-row__hint{flex-basis:100%;margin:0}.invite-link input{flex:1 1 200px;min-width:0;font-size:.85rem}.invite-card .auth-subtitle{line-height:1.5}.invite-card__hint{margin:0;color:var(--text-muted);font-size:.9rem;text-align:center;overflow-wrap:anywhere}a.invite-card__button{justify-content:center;text-align:center}.balance-page__space{margin:-.25rem 0 0;color:var(--text-muted);font-size:.9rem}@media (max-width: 640px){.members-table__head{display:none}.members-table__row{grid-template-columns:minmax(0,1fr) auto;row-gap:.4rem}.members-table__user{grid-column:1 / -1}.members-table__spent,.members-table__limit{padding-left:2.65rem;font-size:.82rem}.members-table__spent{grid-column:1;grid-row:2}.members-table__role{grid-column:2;grid-row:2}.members-table__limit{grid-column:1 / -1;grid-row:3}.members-table__spent:before{content:"За месяц: ";color:var(--text-muted)}.members-table__limit:before{content:"Лимит: ";color:var(--text-muted);white-space:pre}.members-table__row--invite{grid-template-columns:minmax(0,1fr)}.settings-tabs{flex-wrap:wrap;border-radius:18px}.settings-tabs a{padding:.4rem .8rem}}.limits-form{display:flex;flex-direction:column;gap:.7rem;margin-top:1rem;text-align:left}.limits-form__row{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;column-gap:.75rem;row-gap:.15rem}.limits-form__label{font-weight:500;font-size:.92rem}.limits-form__input{display:flex;align-items:center;gap:.4rem;color:var(--text-muted)}.limits-form__input input{flex:1;min-width:0}.limits-form__spent{grid-column:2;color:var(--text-faint);font-size:.78rem}.limits-form .form-error,.limits-form .settings-row__hint{margin:0}.own-limits{display:flex;flex-direction:column;gap:.75rem;margin:.7rem 0 .45rem}.own-limits__top{display:flex;justify-content:space-between;gap:.75rem;font-size:.88rem;color:var(--text-muted)}.own-limits__top strong{color:var(--text)}.own-limits__bar{height:6px;margin-top:.35rem;border-radius:999px;background:var(--surface-raised);overflow:hidden}.own-limits__bar span{display:block;height:100%;border-radius:inherit;background:var(--accent)}:root[data-theme=dark]{color-scheme:dark;--bg: #1f1f1f;--bg-sidebar: #181818;--surface: #2a2a2a;--surface-raised: #303030;--surface-hover: #363636;--border: #353535;--border-strong: #4a4a4a;--text: #ececec;--text-muted: #a9a9a9;--text-faint: #767676;--accent: #6655ff;--accent-hover: #7b6dff;--accent-text: #ececec;--accent-soft: #2c2a4a;--on-accent: #fff;--focus-ring: 0 0 0 3px rgba(102, 85, 255, .3);--link: #8ab4ff;--code-bg: #262626;--danger: #ff6b61;--danger-bg: #3a1e1c;--success: #4cc274;--success-bg: #1b3324;--shadow: 0 8px 28px rgba(0, 0, 0, .55);--shadow-soft: 0 2px 12px rgba(0, 0, 0, .4)}:root[data-theme=dark] .logo-mark__bg{fill:#ececec}:root[data-theme=dark] .logo-mark__v{stroke:#141414}:root[data-theme=dark] .composer__drop-hint{background:#1f1f1feb}:root[data-theme=dark] .file-preview__doc,:root[data-theme=dark] .file-preview__docx .docx-wrapper>section.docx{--text: #141414;--text-muted: #5e5e5e;--text-faint: #9b9b9b;--border: #e8e8e8;--border-strong: #d6d6d6;--surface: #ffffff;--surface-raised: #f4f4f4;--link: #2563eb;--code-bg: #fafafa;color:var(--text)}:root[data-theme=dark] .file-preview__code,:root[data-theme=dark] .file-preview__table{background:var(--surface)}:root[data-theme=dark] .search-result mark{background:#ffd66647;color:inherit}:root[data-theme=dark] .chat-message--found{animation-name:found-flash-dark}@keyframes found-flash-dark{0%,35%{box-shadow:0 0 0 6px #ffd66638;background:#ffd6661a}to{box-shadow:0 0 0 6px transparent}}:root[data-theme=dark] .assistant-avatar{background:var(--avatar-bg, rgba(139, 92, 246, .24))}:root[data-theme=dark] .assistant-avatar--violet{--avatar-bg: rgba(139, 92, 246, .24)}:root[data-theme=dark] .assistant-avatar--blue{--avatar-bg: rgba(59, 130, 246, .24)}:root[data-theme=dark] .assistant-avatar--teal{--avatar-bg: rgba(20, 184, 166, .24)}:root[data-theme=dark] .assistant-avatar--green{--avatar-bg: rgba(34, 197, 94, .22)}:root[data-theme=dark] .assistant-avatar--yellow{--avatar-bg: rgba(234, 179, 8, .24)}:root[data-theme=dark] .assistant-avatar--orange{--avatar-bg: rgba(249, 115, 22, .24)}:root[data-theme=dark] .assistant-avatar--red{--avatar-bg: rgba(239, 68, 68, .24)}:root[data-theme=dark] .assistant-avatar--pink{--avatar-bg: rgba(236, 72, 153, .24)}:root[data-theme=dark] .assistant-avatar--gray{--avatar-bg: #383838}:root[data-theme=dark] .sidebar-chat-automation,:root[data-theme=dark] .chat-header__automation svg{color:#a99fff}:root[data-theme=dark] .automation-card__icon:not([class*=integration-card__icon--]){background:var(--accent-soft);color:#b3abff}:root[data-theme=dark] .research-hero__icon{background:#3b82f633;color:#8ab4ff}:root[data-theme=dark] .email-banner{background:#ff5b1f1a;border-color:#ff5b1f59}:root[data-theme=dark] .email-banner__note{color:#4cc274!important}:root[data-theme=dark] .invite__icon{background:#ff5b1f29}:root[data-theme=dark] .welcome-dialog:before{background:radial-gradient(120% 100% at 50% 0%,#c8f04c29,#c8f04c00 70%)}:root[data-theme=dark] .welcome-dialog__spark:not(.s2):not(.s4){background:var(--text)}:root[data-theme=dark] .agent-action__plus{color:#4cc274}:root[data-theme=dark] .agent-action__minus{color:#ff6b61}:root[data-theme=dark] .agent-diff__add{background:#4cc27424}:root[data-theme=dark] .agent-diff__del{background:#ff6b6124}@media (max-width: 860px),(pointer: coarse){.email-banner:not(.email-banner--open){flex-wrap:nowrap}.email-banner:not(.email-banner--open) .email-banner__text>:not(.email-banner__short),.email-banner:not(.email-banner--open) .email-banner__form{display:none}.email-banner:not(.email-banner--open) .email-banner__short{display:block;font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-banner:not(.email-banner--open) .email-banner__more{display:inline-flex}.email-banner{margin:.5rem .75rem 0;padding:.45rem .3rem .45rem .65rem;gap:.5rem}button.email-banner__more{padding:.3rem .65rem;font-size:.8rem}.email-banner>svg{width:18px;height:18px}}@media (max-width: 380px){.email-banner:not(.email-banner--open)>svg{display:none}}@media (pointer: coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{font-size:16px!important}}.sidebar-backdrop.visible,.modal-backdrop,.lightbox{top:var(--app-top, 0px);bottom:auto;height:var(--app-height, 100%)}.app-content-wrap,.chat-window,.sidebar-history__list,.workspace-rail,.popover,.gen-settings-panel,.file-preview__body,.site-code__files,.files-picker__list,.search-dialog__results,.automation-editor__body,.chat-menu__folders{overscroll-behavior:contain}.keyboard-open .email-banner:not(:focus-within){display:none}.keyboard-stand-in{position:fixed;top:var(--app-top, 0px);left:0;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}@media (max-width: 860px){body{font-family:Golos Text Variable,Golos Text,system-ui,-apple-system,Segoe UI,sans-serif}.mobile-topbar{grid-template-columns:minmax(44px,1fr) minmax(0,auto) minmax(44px,1fr);gap:8px;min-height:56px;padding:6px 10px;border-bottom:none}.app-content-wrap:has(.chat-page)>.mobile-topbar{border-bottom:1px solid var(--border)}.mobile-topbar__start{justify-self:start;display:flex;align-items:center}.mobile-topbar__start>.mobile-topbar__slot:not(:empty)+.mobile-topbar__menu{display:none}.mobile-topbar__center{min-width:0;display:flex;justify-content:center}.mobile-topbar__slot{display:flex;align-items:center;min-width:0}.mobile-topbar__slot:empty{display:none}.mobile-topbar__slot:not(:empty)+.mobile-topbar__title,.mobile-topbar__slot:not(:empty)+.mobile-topbar__new{display:none}.mobile-topbar__end{justify-self:end;display:flex;align-items:center;min-width:0}h1.mobile-topbar__page{display:block;margin:0;font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-topbar button.mobile-topbar__menu,.mobile-topbar a.mobile-topbar__new,.mobile-topbar button.mobile-topbar__btn{width:44px;height:44px;padding:0;border:none;border-radius:12px;background:none;color:var(--text);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.mobile-topbar button.mobile-topbar__menu svg{width:24px;height:24px}.mobile-topbar .mobile-topbar__new svg,.mobile-topbar .mobile-topbar__btn svg{width:22px;height:22px}button.model-pill{height:40px;max-width:100%;padding:0 12px 0 14px;border:none;border-radius:999px;background:var(--surface-raised);color:var(--text);font-size:15px;font-weight:600;gap:6px}button.model-pill:hover:not(:disabled){background:var(--surface-hover)}button.model-pill:disabled{opacity:.6}.model-pill svg{width:17px;height:17px}.model-pill__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-topbar__center>.mobile-topbar__slot>.popover-anchor{min-width:0;max-width:100%}a.topbar-balance{height:40px;padding:0 12px;border:1px solid var(--border);border-radius:999px;color:var(--text);text-decoration:none;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;white-space:nowrap}.topbar-balance svg{width:16px;height:16px}.app-content:has(>.new-chat--phone){padding:0}.new-chat.new-chat--phone{flex:1;min-height:0;align-items:stretch;justify-content:flex-start;padding:0}.new-chat__body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:22px;padding:12px 16px}.new-chat__body>*{width:100%;max-width:560px;align-self:center}.new-chat__body>:first-child{margin-top:auto}.new-chat__body>:last-child{margin-bottom:auto}.new-chat__intro{display:flex;flex-direction:column;align-items:center;gap:14px}.new-chat--phone .new-chat__title{margin:0;font-size:26px;line-height:1.15;font-weight:600;letter-spacing:-.02em}.new-chat__tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.new-chat__tiles>a,.new-chat__tiles>button{height:76px;padding:0;border:none;border-radius:16px;background:var(--surface-raised);color:var(--text);text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:500}.new-chat__tiles>button:hover:not(:disabled){background:var(--surface-hover)}.new-chat__tiles>.active,.new-chat__tiles>button.active:hover{background:var(--accent);color:var(--on-accent)}.new-chat__tiles svg{width:22px;height:22px}.new-chat__examples{display:flex;flex-direction:column;gap:8px}.new-chat__examples-label{padding-left:4px;font-size:13px;font-weight:500;color:var(--text-muted)}.new-chat__examples>button{min-height:52px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--bg);color:var(--text);font-size:15px;line-height:1.35;text-align:left;gap:12px}.new-chat__examples svg{width:20px;height:20px;color:var(--text-muted)}.new-chat--phone .new-chat__composer{flex:none;width:100%;max-width:744px;align-self:center;padding:6px 12px 10px}.new-chat--phone .new-chat__composer>.form-error{margin:0 4px 8px}.keyboard-open .new-chat__tiles,.keyboard-open .new-chat__examples{display:none}.app-content:has(>.chat-page){padding:0}.chat-page>.chat-header:not(.chat-header--editing){display:none}.chat-page>.chat-header.chat-header--editing{padding-top:8px}.mode-chips{display:none}.chat-page>.chat-composer-dock{padding:6px 12px 10px}.chat-window{gap:18px;padding-top:14px;padding-left:16px;padding-right:16px}.chat-message__content{font-size:16px;line-height:1.5}.chat-message--user{max-width:82%}.chat-message--user .chat-message__content{border-radius:20px 20px 6px;padding:10px 14px;line-height:1.45}.msg-actions{align-items:center;gap:0;margin-left:-12px}.msg-actions--hover{opacity:1;margin-left:0;margin-right:-10px}button.msg-action{width:44px;height:40px;padding:0;justify-content:center;color:var(--text-muted)}.msg-action svg{width:18px;height:18px}.msg-usage{margin-left:auto;font-size:12px}.composer{background:var(--bg);border:1px solid var(--border-strong);border-radius:26px;box-shadow:var(--shadow-soft);padding:14px 8px 8px 16px;gap:10px}.composer:focus-within{border-color:var(--border-strong)}.composer__input{padding:0;line-height:1.4}.composer__bar{gap:6px}.composer__bar-right{gap:2px}.composer__icon-btn{width:44px;height:44px;color:var(--text)}.composer__icon-btn svg{width:22px;height:22px}.composer__bar>.popover-anchor:first-child>.composer__icon-btn{margin-left:-8px}button.composer__send{width:44px;height:44px}button.composer__send svg{width:20px;height:20px}button.composer__send:disabled{background:var(--border);border-color:var(--border);color:var(--text-faint)}.composer__price{padding-right:2px;font-size:12px;color:var(--text-muted)}button.composer__chip{height:36px;flex-shrink:0;padding:0 12px;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg);color:var(--text);font-size:14px;font-weight:500;gap:6px;white-space:nowrap}button.composer__chip.active,button.composer__chip.active:hover:not(:disabled){background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.composer__chip svg{width:16px;height:16px}.composer__mode{height:36px;padding:0 6px 0 12px;font-size:14px}button.composer__improve{width:36px;height:36px;padding:0;justify-content:center;border:1px solid var(--border-strong);background:var(--bg)}.composer__improve svg{width:18px;height:18px}.composer__improve-tip{display:none}.composer__improve-intro{right:0;width:auto;font-size:14px}button.composer__improve-intro-ok{padding:8px 18px;font-size:14px}.composer__improved,button.composer__improved-undo{font-size:13px}.sidebar{width:min(320px,86vw);flex-direction:column;gap:12px;padding:12px 12px 14px;background:var(--bg-sidebar);border-right:none}.sidebar-main{min-height:0;padding:0;gap:12px}.sidebar-footer{flex:none}.sidebar-header{display:none}.workspace-rail{width:auto;flex:none;flex-direction:row;align-items:center;gap:6px;margin:0 -12px;padding:0 12px;border-right:none;overflow-x:auto;overflow-y:hidden}button.workspace-rail__item{flex:none;flex-direction:row;width:auto;height:40px;gap:8px;padding:0 14px 0 5px;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg)}button.workspace-rail__item:hover:not(:disabled){background:var(--bg)}button.workspace-rail__item.active,button.workspace-rail__item.active:hover:not(:disabled){border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.workspace-rail__tile{width:30px;height:30px;border:none;border-radius:9px;background:var(--accent);color:var(--on-accent);font-size:13px;font-weight:700}.workspace-rail__tile svg{width:16px;height:16px}.workspace-rail__item.active .workspace-rail__tile{border-radius:999px;background:#fff;color:#141414}.workspace-rail__label,.workspace-rail__item.active .workspace-rail__label{max-width:140px;color:inherit;font-size:14px;font-weight:500}.workspace-rail__item.active .workspace-rail__label{font-weight:600}button.workspace-rail__add{width:40px;padding:0;justify-content:center;border-style:dashed;border-color:var(--text-faint);background:transparent}.workspace-rail__add .workspace-rail__tile{border:none;background:none;color:var(--text)}.sidebar-nav__more{display:inline}.sidebar-nav{gap:0}button.sidebar-nav__search{order:-1;height:44px;margin-bottom:12px;padding:0 12px;gap:10px;border:none;border-radius:12px;background:var(--surface-hover);color:var(--text-muted);font-size:15px;justify-content:flex-start}.sidebar-nav__search .sidebar-nav__kbd{display:none}.sidebar-nav__search svg,.sidebar-nav a svg{width:20px;height:20px}.sidebar-nav a{min-height:44px;gap:12px;padding:0 10px;border-radius:12px;font-size:15px;font-weight:500}.sidebar-nav a svg{color:var(--text)}.sidebar-nav__badge{margin-left:auto}.sidebar-history__toggle{padding:0 10px;font-size:13px;font-weight:600;color:var(--text-muted)}.sidebar-history__toggle svg:first-child{display:none}button.sidebar-history__toggle,button.sidebar-history__toggle:hover:not(:disabled),button.sidebar-history__toggle:active,button.sidebar-history__toggle:focus{background:none;box-shadow:none;-webkit-tap-highlight-color:transparent}.sidebar-history__list{padding-left:0}.sidebar-chat-item{min-height:42px;padding:0 4px 0 10px;border-radius:12px;font-size:15px}.sidebar-chat-item.active{background:var(--surface-hover)}.sidebar-footer{border-top:none;padding-top:0}.sidebar-balance{display:none}button.sidebar-account{min-height:60px;margin-top:0;padding:8px 12px 8px 8px;gap:12px;border:1px solid var(--border);border-radius:16px;background:var(--bg)}button.sidebar-account:hover:not(:disabled),button.sidebar-account.open{background:var(--bg)}.sidebar-account .sidebar-avatar{width:40px;height:40px;background:var(--border);color:var(--text);font-size:16px;font-weight:700}.sidebar-account .sidebar-avatar__dot{top:0;right:0;bottom:auto;width:11px;height:11px;background:var(--accent);border-color:var(--bg)}.sidebar-account .sidebar-email{font-size:15px;font-weight:600}.sidebar-account .sidebar-account__sub{display:none}.sidebar-account__phone{display:block;font-size:13px;color:var(--text-muted)}.sidebar-account__chevron{display:block;width:18px;height:18px;margin-left:auto;color:var(--text-muted)}.app-content{padding:4px 16px 24px}.files-page__head,.balance-page>h1,.settings-page>h1{display:none}.mobile-topbar a.mobile-topbar__btn svg,.mobile-topbar button.mobile-topbar__btn svg{width:24px;height:24px}.files-page__hint,.balance-page__space{margin:0 0 14px;font-size:14px;line-height:1.45;color:var(--text-muted)}.files-page__search{height:44px;padding:0 14px;gap:10px;border:none;border-radius:12px;background:var(--surface-raised)}.files-page__search input,.files-page__search input:focus{height:100%;padding:0;border:none;background:transparent;box-shadow:none}.files-page__search svg{width:18px;height:18px;color:var(--text-muted)}.files-page__kinds{flex-wrap:nowrap;gap:8px;margin:12px -16px 0;padding:0 16px 2px;overflow-x:auto;scrollbar-width:none}.files-page__kinds::-webkit-scrollbar{display:none}.files-page__kinds .mode-chip{flex-shrink:0;height:36px;padding:0 14px;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg);color:var(--text);font-size:14px;font-weight:500}.files-page__kinds .mode-chip.active{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.files-page__kinds .mode-chip.active svg{color:var(--on-accent)}.assistants-page__group-title{margin:18px 0 4px;font-size:13px;font-weight:600;color:var(--text-muted)}.assistants-grid{grid-template-columns:minmax(0,1fr);gap:2px}.assistant-card{min-height:76px;align-items:center;gap:14px;padding:10px 40px 10px 0;border:none;border-radius:18px;background:transparent;box-shadow:none}.assistant-card:hover{background:var(--surface-raised);box-shadow:none}.chat-menu__trigger.assistant-card__menu{top:50%;right:0;transform:translateY(-50%)}.assistant-card .assistant-avatar{width:48px;height:48px;border-radius:14px}.assistant-card__name{font-size:16px;font-weight:600}.assistant-card__desc{font-size:13px;line-height:1.4;color:var(--text-muted)}.automation-list{gap:12px}.automation-card{padding:14px;gap:12px;border-radius:20px}.automation-card__name{font-size:16px;font-weight:600}.automation-card__schedule,.automation-card__status{font-size:13px;color:var(--text-muted)}.automation-card.integration-card{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:12px;padding:16px}.integration-card .automation-card__icon{width:48px;height:48px;border-radius:14px}.integration-card .automation-card__icon svg{width:22px;height:22px}.integration-card .automation-card__name{font-size:17px}.integration-card .automation-card__schedule{font-size:14px;line-height:1.45}.integration-card .automation-card__actions{grid-column:1 / -1;display:flex;gap:8px}.integration-card .automation-card__actions>button,.integration-card .automation-card__actions>a{flex:1;height:44px;justify-content:center;border-radius:12px;font-size:15px;font-weight:500}.integration-card__on{padding:2px 8px;border-radius:999px;background:var(--success-bg);color:var(--success);font-size:12px;font-weight:600}.files-grid{grid-template-columns:minmax(0,1fr);gap:0}.file-tile{flex-direction:row;align-items:center;min-height:64px;border:none;border-radius:14px;background:transparent}.file-tile:hover,.file-tile.active{background:var(--surface-raised);box-shadow:none}button.file-tile__open{flex:1;min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:1px;align-items:center;padding:10px 4px}.file-tile__thumb{grid-row:1 / span 2;width:44px;height:44px;aspect-ratio:auto;margin:0;border-radius:12px}.file-tile__icon{width:100%;height:100%;padding:0;gap:0;justify-content:center;border-radius:12px}.file-tile__icon:has(.file-tile__ext) svg,.file-tile__badge{display:none}.file-tile__icon svg{width:20px;height:20px;color:#fff}.file-tile__ext{font-size:10.5px;font-weight:700;letter-spacing:.02em}.file-tile__name,.file-tile__meta{display:block;min-width:0;padding-right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-tile__name{font-size:15px;font-weight:500;line-height:1.3}.file-tile__meta{font-size:13px;color:var(--text-muted)}.file-tile__chat{display:none}.file-tile__menu{position:static;flex-shrink:0}.balance-amount{margin-bottom:18px;padding:20px;border-radius:20px;background:var(--surface-raised);font-size:34px;letter-spacing:-.02em}.preset-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.preset-amounts>button{height:48px;padding:0;justify-content:center;border:1px solid var(--border-strong);border-radius:14px;background:var(--bg);font-size:15px;font-weight:600}.custom-amount{flex-direction:column;gap:10px}.custom-amount input{height:52px;padding:0 16px;border-color:var(--border-strong);border-radius:14px}.custom-amount button{height:52px;justify-content:center;border-radius:14px;font-size:16px;font-weight:600}.invite{margin-top:24px;padding:16px;border-radius:20px}.settings-tabs{display:flex;flex-wrap:nowrap;gap:8px;max-width:none;margin:0 -16px 18px;padding:2px 16px;border-radius:0;background:none;overflow-x:auto;scrollbar-width:none}.settings-tabs::-webkit-scrollbar{display:none}.settings-tabs a{flex-shrink:0;height:36px;padding:0 14px;display:inline-flex;align-items:center;border:1px solid var(--border-strong);border-radius:999px;background:var(--bg);color:var(--text);font-size:14px;font-weight:500}.settings-tabs a.active{border-color:var(--accent);background:var(--accent);color:var(--on-accent);box-shadow:none}.balance-page__title{margin:0 0 8px;font-size:15px;font-weight:600}.auth-page{align-items:flex-start;padding:0;background:var(--bg)}.auth-form{max-width:440px;margin:0 auto;padding:56px 20px 32px;gap:12px;border:none;border-radius:0;box-shadow:none;background:var(--bg)}.auth-form h1{font-size:18px;font-weight:700;letter-spacing:-.01em}.auth-subtitle{margin:12px 0 8px;font-size:20px;font-weight:600;color:var(--text);letter-spacing:-.01em}.auth-form input{height:52px;padding:0 16px;border-color:var(--border-strong);border-radius:14px}.auth-form button[type=submit],.auth-form .invite-card__main{height:52px;justify-content:center;border-radius:14px;font-size:16px;font-weight:600}.auth-switch{font-size:15px}.sheet-backdrop{position:fixed;left:0;right:0;top:var(--app-top, 0px);height:var(--app-height, 100%);background:#14141473;z-index:90;animation:sheet-fade .2s ease-out}.sheet{position:fixed;left:0;right:0;bottom:calc(100% - var(--app-top, 0px) - var(--app-height, 100%));z-index:91;width:min(100%,600px);max-height:calc(var(--app-height, 100dvh) - 48px);margin:0 auto;padding:10px 16px 16px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);color:var(--text);border-radius:28px 28px 0 0;box-shadow:0 -8px 28px #0000001f;text-align:left;animation:sheet-up .22s ease-out}.sheet:before{content:"";flex:none;align-self:center;width:40px;height:5px;margin-bottom:10px;border-radius:999px;background:var(--border-strong)}.sheet__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.sheet__head h2{margin:0;padding-left:4px;font-size:20px;font-weight:600;letter-spacing:-.01em}button.sheet__close{width:44px;height:44px;padding:0;justify-content:center;border:none;border-radius:999px;background:none;color:var(--text)}.sheet__close svg{width:22px;height:22px}.sheet__foot{margin-top:8px;padding:14px 4px 2px;border-top:1px solid var(--border);font-size:13px;line-height:1.4;color:var(--text-muted)}.segmented{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:8px;padding:4px;border-radius:14px;background:var(--surface-raised)}.segmented>button,.segmented>a{height:38px;padding:0;justify-content:center;border:none;border-radius:10px;background:transparent;color:var(--text-muted);font-size:13px;font-weight:500;text-decoration:none;display:flex;align-items:center}.segmented>button:hover:not(:disabled){background:transparent;color:var(--text)}.segmented>.active,.segmented>button.active:hover:not(:disabled){background:var(--bg);box-shadow:0 1px 4px #0000001a;color:var(--text);font-weight:600}.model-sheet__list{display:flex;flex-direction:column;gap:2px}.model-sheet .model-menu__note{padding:0 4px 8px}.model-sheet button.model-menu__item{width:100%;min-height:64px;padding:10px 12px;border:none;border-radius:16px;background:transparent;gap:12px;align-items:center}.model-sheet button.model-menu__item.selected,.model-sheet button.model-menu__item:hover:not(:disabled){background:var(--surface-raised)}.model-sheet .model-menu__emoji{display:none}.model-menu__auto{width:40px;height:40px;flex-shrink:0;border-radius:12px;background:var(--accent);color:var(--on-accent);display:flex;align-items:center;justify-content:center}.model-sheet .model-menu__auto svg{width:20px;height:20px;color:var(--on-accent)}.model-sheet .model-menu__item-name{display:flex;align-items:baseline;gap:8px;font-size:16px;font-weight:600}.model-sheet .model-menu__price{margin-left:auto;font-size:13px;font-weight:600;color:var(--text-muted);white-space:nowrap}.model-sheet .model-menu__desc{font-size:13px;line-height:1.35;color:var(--text-muted);white-space:normal}.model-sheet .model-menu__divider{display:none}.model-sheet .model-menu__check svg{color:var(--accent)}.profile-page{width:100%;max-width:560px;margin:0 auto;padding-top:8px;display:flex;flex-direction:column}.mobile-topbar__spacer{width:44px;height:44px}.profile-page__head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.profile-page__avatar{width:52px;height:52px;flex-shrink:0;border-radius:999px;background:var(--border);color:var(--text);font-size:20px;font-weight:700;display:flex;align-items:center;justify-content:center}.profile-page__who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.profile-page__name,.profile-page__sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-page__name{font-size:18px;font-weight:600}.profile-page__sub{font-size:14px;color:var(--text-muted)}.profile-page__balance{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:14px 14px 14px 16px;border-radius:18px;background:var(--surface-raised)}.profile-page__amount{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px;color:var(--text-muted)}.profile-page__amount strong{font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--text);white-space:nowrap}.profile-page__balance button.primary{height:44px;flex-shrink:0;padding:0 18px;border-radius:999px;font-size:15px;font-weight:600;gap:6px}.profile-page__balance svg{width:18px;height:18px}.profile-page__list{display:flex;flex-direction:column}button.profile-page__item,a.profile-page__item{width:100%;min-height:52px;padding:0 6px;border:none;border-radius:12px;background:transparent;color:var(--text);font-size:16px;text-align:left;text-decoration:none;display:flex;align-items:center;gap:14px}button.profile-page__item:hover:not(:disabled),a.profile-page__item:hover{background:var(--surface-raised)}.profile-page__item>svg{width:22px;height:22px}.profile-page__item>span:not(.profile-page__aside):not(.profile-menu__badge){flex:1}.profile-page__aside{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--text-muted)}.profile-page__item>svg.profile-page__aside{width:18px;height:18px}.profile-page__label{padding:14px 4px 6px;font-size:13px;font-weight:600;color:var(--text-muted)}button.profile-page__logout{margin-top:12px;border-top:1px solid var(--border);border-radius:0}.segmented--3{grid-template-columns:repeat(3,minmax(0,1fr))}.segmented--3>button{height:40px;gap:6px;font-size:14px}.segmented--3 svg{width:16px;height:16px}.site-panel{top:var(--app-top, 0px);bottom:auto;height:var(--app-height, 100dvh)}.site-panel .file-preview__head{min-height:56px;padding:6px 6px 6px 14px}.site-panel .file-preview__actions .msg-action{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px}.site-panel .file-preview__actions .msg-action svg{width:20px;height:20px}.site-panel__bar{padding:8px 10px 8px 14px}.site-panel__switch button{min-height:40px;font-size:14px}.site-panel__versions .msg-action{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center}.site-panel__versions .msg-action svg{width:20px;height:20px}.site-panel__notice{padding:8px 10px 8px 14px;font-size:14px}.site-panel__notice button{min-height:40px}.site-code__files{padding:8px 14px}.site-card{max-width:none;padding:10px 12px 10px 10px;border-radius:16px}.site-card__title{font-size:15px}.site-card__meta{font-size:13px}@keyframes sheet-up{0%{transform:translateY(100%)}}@keyframes sheet-fade{0%{opacity:0}}}@media (max-width: 860px) and (prefers-reduced-motion: reduce){.sheet,.sheet-backdrop{animation:none}}
