/* TimesAI conversation studio */
.brand-logo{width:40px;height:40px}.account-logo,.contact-logo{width:64px;height:64px}
body.chat-route{background:#f3f6fb;padding-bottom:0}body.chat-route>.mobile-bottom-nav,body.chat-route>footer{display:none}
.chat-page-luxe{padding:20px 0 24px;width:min(1440px,calc(100% - 48px))}
.chat-luxe{position:relative;display:grid;grid-template-columns:272px minmax(0,1fr);gap:0;height:calc(100dvh - 126px);min-height:0;margin:0;border:1px solid #dce5f2;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 15px 55px #142a4c0a}
.chat-luxe .chat-history{display:flex;flex-direction:column;order:0;min-width:0;overflow:auto;margin:0;padding:25px 18px 16px;border:0;border-radius:0;background:linear-gradient(160deg,#14233c,#0d1729);color:#fff}
.chat-sidebar-brand{display:flex;align-items:center;gap:9px;padding:0 5px 24px}.chat-sidebar-brand>img{width:43px;height:43px}.chat-sidebar-brand b{display:block;font:800 24px/1.4 Arial,sans-serif;letter-spacing:-.8px;color:#fff}.chat-sidebar-brand span{font-size:10px;color:#91a4c3;display:block;margin-top:3px}
.chat-luxe .chat-new-button{display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 14px;border:1px solid #456286;background:#243c60;color:#fff;border-radius:10px;min-height:44px;font-size:13px;box-shadow:none}.chat-new-button .ui-icon{width:18px;height:18px}.chat-luxe .chat-new-button:hover{background:#304e78;border-color:#6985aa}.chat-luxe button:disabled{cursor:not-allowed;opacity:.5}
.chat-history-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 6px 11px;font-size:11px;color:#a8b6ce}.chat-history-heading>b{font-weight:500}.chat-history-heading>span{font-size:10px;border-radius:5px;background:#ffffff0b;padding:0 6px;color:#a8b6ce}
.chat-history-search{display:flex;align-items:center;gap:8px;background:#ffffff06;border:1px solid #ffffff10;border-radius:9px;margin:0 0 12px;padding:0 10px}.chat-history-search>.ui-icon{width:15px;height:15px;color:#7b91b4}.chat-history-search input{font-size:11px;border:0;background:transparent;padding:8px 0;color:#dfe9fc;width:100%;margin:0;min-width:0;outline:0}.chat-history-search input::placeholder{color:#7b8eae}.chat-history-search:focus-within{border-color:#7598ce}.chat-history-search input:focus{box-shadow:none;outline:0}
.chat-luxe .history-list{flex:1;min-height:75px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff20 transparent}.chat-luxe .history-row{border:1px solid transparent;margin-bottom:5px;border-radius:10px;gap:0}.chat-luxe .history-row.selected{background:#ffffff0c;border-color:#ffffff16}.chat-luxe .history-row[hidden],#chat-history-no-results[hidden]{display:none!important}
.chat-luxe .history-item{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 8px;border:0;color:#a4b5d0;min-width:0;background:transparent;line-height:1.6}.chat-luxe .history-item>span{display:block;min-width:0;flex:1}.chat-luxe .history-item>.ui-icon{width:16px;height:16px;margin-top:2px;color:#879fc1}.chat-luxe .history-item b{font-size:11px;font-weight:500;color:inherit}.chat-luxe .history-item small{font-size:9px;color:#748ba9;margin-top:4px}.chat-luxe .history-item:hover{background:#ffffff08}.chat-luxe .history-row.selected .history-item{color:#eff5ff}.chat-luxe .history-actions{display:flex;flex-direction:column;gap:3px;padding:4px 3px;opacity:0}.chat-luxe .history-actions button{width:23px;height:23px;border:0;padding:3px;background:transparent;color:#879fbe;border-radius:5px}.chat-luxe .history-actions .ui-icon{width:14px;height:14px}.chat-luxe .history-actions button:hover{background:#ffffff16;color:#fff}.chat-luxe .history-actions button.danger:hover{color:#ffadb6}.chat-history-empty,#chat-history-no-results{font-size:11px;text-align:center;color:#8195b6;padding:20px 10px;line-height:2}
.chat-sidebar-bottom{margin-top:20px}.chat-plan-card{padding:13px;border:1px solid #ffffff13;background:#ffffff04;border-radius:12px}.chat-plan-heading{display:flex;align-items:center;gap:7px;font-size:11px;color:#c5d4ed}.chat-plan-heading>.ui-icon{width:15px;height:15px;color:#c4a96b}.chat-luxe .chat-status-bar{display:grid;gap:5px;margin:11px 0}.chat-luxe .chat-balance-chip{display:block;background:transparent;color:#94a9c7;font-size:10px;border:0;border-radius:0;padding:0}.chat-luxe .chat-balance-chip.warning{color:#b7a887}.chat-plan-card>a{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff0c;padding-top:9px;margin-top:9px;font-size:10px;color:#a9c9ff}.chat-plan-card>a>.ui-icon{width:14px;height:14px}
.chat-luxe .local-files-manager{padding:0;margin:13px 0;border:0;background:none;color:#899ebd}.chat-luxe .local-files-manager summary{font-size:10px;padding:4px 2px;color:#8ea3c1}.chat-luxe .local-files-manager .fine{font-size:10px;color:#8197b8}.chat-luxe .local-files-stats span{background:#ffffff09;border-color:#ffffff13;color:#a9bbd5}.chat-luxe .local-files-stats b{color:#fff}.chat-luxe .local-files-actions .button{font-size:9px;padding:5px 7px;border-color:#455a77;color:#b7c9e6;background:transparent}
.chat-account-card{display:flex;align-items:center;gap:9px;border-top:1px solid #ffffff10;padding:15px 3px 0;margin-top:15px}.chat-account-avatar{display:grid;place-items:center;width:33px;height:33px;flex:0 0 auto;background:#273d5b;color:#d9e7ff;border-radius:10px;font-size:13px}.chat-account-card>span:nth-child(2){min-width:0;flex:1}.chat-account-card b{display:block;font-size:11px;color:#e4edfc;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-account-card small{display:block;font-size:9px;color:#8298b8}.chat-account-card>.ui-icon{width:14px;height:14px;color:#8096b6}
.chat-luxe .chat-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:linear-gradient(180deg,#fff,#fcfdff)}
.chat-luxe .chat-workspace-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:84px;padding:18px 30px;border-bottom:1px solid #edf1f7;box-shadow:none;background:#fff;backdrop-filter:none;z-index:2;flex-shrink:0}.chat-header-title{display:flex;align-items:center;gap:11px;min-width:0}.chat-header-title>div{min-width:0}.chat-header-title h2{margin:0;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#243750}.chat-header-logo{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e4ebf8;border-radius:10px;background:#f7faff;flex:0 0 auto}.chat-header-logo>img{width:27px;height:27px}.chat-connection-status{display:flex;align-items:center;gap:5px;color:#8b9ab0;font-size:10px;line-height:1.8;margin-top:3px}.chat-connection-status i{width:5px;height:5px;background:#b1bdcf;border-radius:50%}.chat-connection-status.is-online i{background:#38997c}.chat-header-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}.chat-model-pill{display:flex;align-items:center;gap:6px;border:1px solid #e6edf9;background:#f7faff;border-radius:8px;padding:5px 9px;font:600 11px/1.8 Arial,sans-serif;color:#45679e}.chat-model-pill>.ui-icon{width:14px;height:14px}
.chat-icon-button{display:grid;place-items:center;width:33px;height:33px;padding:7px;border:1px solid transparent;background:transparent;color:#768ba9;border-radius:8px;flex:0 0 auto}.chat-icon-button>.ui-icon{width:18px;height:18px}.chat-icon-button:hover{background:#f0f5ff;color:#1565f9}#chat-history-toggle,#close-chat-history{display:none}
.chat-luxe .chat-workspace #messages{height:auto;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:28px clamp(24px,6vw,94px);scrollbar-width:thin;scrollbar-color:#d6e1f2 transparent;direction:rtl}.chat-luxe #messages.is-empty{display:grid;align-items:center;padding-block:22px}
.chat-welcome{width:min(590px,100%);margin:0 auto;text-align:center}.chat-welcome-mark{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 14px;border:1px solid #e0e9fa;border-radius:22px;background:linear-gradient(135deg,#fff,#edf4ff);box-shadow:0 8px 25px #31589308}.chat-welcome-mark>img{width:46px;height:46px}.chat-welcome-kicker{font:600 9px/1.8 Arial,sans-serif;letter-spacing:2.2px;color:#9aa9bf;margin-bottom:8px}.chat-welcome h1{font-size:27px;letter-spacing:-.8px;margin:0 0 7px;color:#203451}.chat-welcome>p{font-size:12px;line-height:1.9;margin:0;color:#8b9bb1}.chat-welcome>.button{margin-top:16px;font-size:12px}.chat-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:27px}.chat-prompt{position:relative;border:1px solid #e2eaf7;border-radius:12px;padding:16px 17px;background:#fff;text-align:right;color:#334967;box-shadow:0 4px 16px #26487903}.chat-prompt>.ui-icon:first-child{display:block;width:19px;height:19px;margin-bottom:9px;color:#5b81bc}.chat-prompt>b{display:block;font-size:12px;font-weight:600;line-height:1.8}.chat-prompt>small{display:block;font-size:10px;color:#97a5b8;margin-top:3px}.chat-prompt>.ui-icon:last-child{position:absolute;left:14px;top:18px;width:13px;height:13px;color:#b7c5db}.chat-prompt:hover{border-color:#96b7ed;background:#f8fbff}
.chat-luxe .message{display:flex;gap:12px;max-width:100%;margin:0 auto 28px;padding:0;background:transparent;border:0;border-radius:0;white-space:normal;box-shadow:none;color:#33435b;line-height:2}.message-avatar{display:grid;place-items:center;flex:0 0 auto;width:31px;height:31px;border-radius:10px;background:#f1f6ff;border:1px solid #e2eaf8;color:#557399;font-size:12px}.message-avatar>img{width:24px;height:24px}.message-content{min-width:0;flex:1}.message-heading{display:flex;align-items:baseline;gap:8px;line-height:1.8;margin:2px 0 8px}.message-heading>b{color:#253a56;font-size:12px}.message-heading>span{font-size:9px;color:#a0adc1}.message-body{font-size:13px;line-height:2.1;white-space:pre-wrap;overflow-wrap:anywhere}.chat-luxe .message.user .message-body{display:inline-block;max-width:100%;padding:10px 15px;background:#eef4ff;color:#354d74;border:1px solid #e3ecfc;border-radius:4px 12px 12px 12px}.message-actions{margin-top:8px}.chat-copy-message{display:inline-flex;align-items:center;gap:5px;padding:2px 0;background:transparent;border:0;color:#9aaac0;font-size:9px}.chat-copy-message>.ui-icon{width:13px;height:13px}.chat-copy-message:hover{color:#1565f9}.chat-luxe .message-meta{font-size:10px;color:#97a9c2;display:block;margin-top:9px}.chat-code{margin:14px 0;border:1px solid #dfe7f3;border-radius:10px;overflow:hidden;white-space:normal;background:#f8faff}.chat-code>span{display:block;border-bottom:1px solid #e2eaf6;padding:5px 12px;text-align:left;font:11px/1.8 Arial,sans-serif;color:#7a8fae}.chat-code pre{margin:0;padding:13px 16px;overflow:auto;color:#324b72;font:12px/1.9 ui-monospace,Consolas,monospace;white-space:pre;max-width:100%}.chat-inline-code{background:#edf2fa;border:1px solid #e1e7f2;border-radius:4px;padding:1px 4px;font:12px/1.9 ui-monospace,Consolas,monospace}
.chat-composer-area{flex-shrink:0;padding:12px clamp(24px,6vw,94px) 15px;background:linear-gradient(180deg,#ffffff00,#fff 20%)}.chat-luxe .chat-workspace form.chat-composer{display:block;margin:0;padding:13px 15px 11px;border:1px solid #dce6f6;border-radius:16px;background:#fff;box-shadow:0 6px 24px #223f7008}.chat-composer:focus-within{border-color:#88abdf!important;box-shadow:0 0 0 3px #1565f90a!important}.chat-luxe .chat-composer textarea{display:block;width:100%;height:49px;max-height:min(180px,22dvh);min-height:49px;resize:none;border:0;padding:8px 3px;margin:0;background:transparent;color:#304666;font-size:13px;line-height:1.9;border-radius:0;box-shadow:none;outline:0}.chat-luxe .chat-composer textarea:focus{box-shadow:none;outline:0}.chat-composer textarea::placeholder{color:#97a5b9}.chat-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px}.chat-luxe .chat-controlbar{display:flex;align-items:center;gap:6px;margin:0;padding:0;border:0;min-width:0;flex-wrap:wrap}.chat-luxe .tool-toggle,.chat-luxe .tool-upload{margin:0}.chat-luxe .tool-toggle span,.chat-luxe .tool-upload span{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:7px;padding:5px 7px;background:#f5f8fd;color:#6d83a3;font-size:10px;line-height:1.8}.chat-luxe .tool-toggle b,.chat-luxe .tool-upload b{font-size:10px;font-weight:500}.chat-luxe .tool-toggle .ui-icon,.chat-luxe .tool-upload .ui-icon{width:14px;height:14px}.chat-luxe .tool-toggle input:checked+span{background:#eaf2ff;border-color:#c4d8fa;color:#1565f9}.chat-luxe .tool-toggle input:focus-visible+span,.chat-luxe .tool-upload input:focus-visible+span{outline:2px solid #1565f9;outline-offset:2px}.chat-send-button{display:grid;place-items:center;flex:0 0 auto;width:35px;height:35px;padding:8px;background:#1565f9;color:#fff;border:1px solid #1565f9;border-radius:10px;box-shadow:0 3px 7px #1565f91a}.chat-send-button>.ui-icon{width:18px;height:18px}.chat-send-button:hover{background:#064acb}.chat-send-button.is-busy>.ui-icon{animation:chat-spin 1s linear infinite}.chat-composer-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;line-height:1.8;margin:9px 4px 0;color:#a0adc2}.chat-keyboard-hint{font-size:8px}.chat-information{margin:6px 4px 0;border:0;font-size:9px;color:#8c9cb5}.chat-information summary{display:flex;align-items:center;gap:5px;width:max-content;cursor:pointer;font-size:9px}.chat-information summary>.ui-icon{width:11px;height:11px}.chat-information p{font-size:10px;line-height:2;color:#8293ad;margin:7px 0 0}.chat-information a{color:#1565f9}.chat-luxe .file-preview{padding:0 0 10px;gap:5px}.chat-luxe .file-preview span{background:#f2f6fc;color:#6480a6;padding:4px 8px;border:1px solid #e1eaf7;border-radius:6px;font-size:10px;overflow-wrap:anywhere}.chat-sidebar-backdrop{display:none}
@keyframes chat-spin{to{transform:rotate(360deg)}}
.chat-luxe .history-list{display:block}
.chat-luxe .chat-controlbar>label:first-child{width:auto;justify-content:initial}
.chat-luxe .file-preview[hidden]{display:none!important}
/* Chat polish v3 — vivid accents, light themes, Free AI + Get Pro */
.chat-get-pro-pill{text-decoration:none;font-weight:800;color:#fff!important;background:linear-gradient(135deg,var(--chat-accent),color-mix(in srgb,var(--chat-accent) 72%,#765cff 28%))!important;border-color:color-mix(in srgb,var(--chat-accent) 72%,white 28%)!important;box-shadow:0 5px 16px color-mix(in srgb,var(--chat-accent) 22%,transparent 78%);transition:transform .15s,box-shadow .15s}.chat-get-pro-pill:hover{transform:translateY(-1px);box-shadow:0 7px 20px color-mix(in srgb,var(--chat-accent) 30%,transparent 70%)}
.chat-luxe .chat-workspace-header{background:linear-gradient(180deg,#fff 0%,color-mix(in srgb,var(--chat-accent-soft) 20%,#fff 80%) 100%)}
.chat-luxe .chat-composer:focus-within{border-color:color-mix(in srgb,var(--chat-accent) 58%,#dce6f6 42%)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--chat-accent) 10%,transparent 90%),0 8px 30px color-mix(in srgb,var(--chat-accent) 8%,transparent 92%)!important}
.chat-luxe .chat-new-button{box-shadow:0 7px 18px #00000012}.chat-luxe .chat-sidebar-tool{transition:background .15s,border-color .15s,color .15s,transform .15s}.chat-luxe .chat-sidebar-tool:hover{transform:translateY(-1px)}
body.chat-theme-sky .chat-sidebar-tool,body.chat-theme-mint .chat-sidebar-tool{background:#ffffff78!important;border-color:var(--chat-sidebar-border)!important;color:var(--chat-sidebar-muted)!important}body.chat-theme-sky .chat-sidebar-tool:hover,body.chat-theme-sky .chat-sidebar-tool.is-active,body.chat-theme-mint .chat-sidebar-tool:hover,body.chat-theme-mint .chat-sidebar-tool.is-active{background:#ffffffd0!important;color:var(--chat-sidebar-text)!important;border-color:color-mix(in srgb,var(--chat-accent) 28%,transparent 72%)!important}
body.chat-theme-sky .chat-history-search,body.chat-theme-mint .chat-history-search{background:#ffffff9c;border-color:var(--chat-sidebar-border)}body.chat-theme-sky .chat-history-heading>span,body.chat-theme-mint .chat-history-heading>span{background:#ffffff8f;color:var(--chat-sidebar-muted)}
body.chat-theme-sky .chat-project-menu,body.chat-theme-sky .chat-account-menu,body.chat-theme-mint .chat-project-menu,body.chat-theme-mint .chat-account-menu{box-shadow:0 16px 38px #224c6d1f}body.chat-theme-sky .chat-project-menu button:hover,body.chat-theme-sky .chat-project-menu button.selected,body.chat-theme-sky .chat-account-menu a:hover,body.chat-theme-sky .chat-account-menu button:hover,body.chat-theme-mint .chat-project-menu button:hover,body.chat-theme-mint .chat-project-menu button.selected,body.chat-theme-mint .chat-account-menu a:hover,body.chat-theme-mint .chat-account-menu button:hover{background:color-mix(in srgb,var(--chat-accent) 10%,white 90%)!important;color:var(--chat-sidebar-text)!important}
body.chat-theme-sky .chat-luxe .chat-new-button,body.chat-theme-mint .chat-luxe .chat-new-button{color:var(--chat-sidebar-text);border-color:var(--chat-sidebar-border);background:#ffffffa6}body.chat-theme-sky .chat-luxe .chat-new-button:hover,body.chat-theme-mint .chat-luxe .chat-new-button:hover{background:#fff;border-color:color-mix(in srgb,var(--chat-accent) 28%,transparent 72%)}body.chat-theme-sky .chat-account-avatar,body.chat-theme-mint .chat-account-avatar{background:#ffffffb8;color:var(--chat-sidebar-text);box-shadow:inset 0 0 0 1px var(--chat-sidebar-border)}body.chat-theme-sky .chat-luxe .history-actions button:hover,body.chat-theme-mint .chat-luxe .history-actions button:hover{background:#ffffffaf;color:var(--chat-sidebar-text)}

@media(max-width:1100px){.chat-luxe{grid-template-columns:246px minmax(0,1fr)}.chat-luxe .chat-workspace #messages{padding-inline:30px}.chat-composer-area{padding-inline:30px}.chat-workspace-header{padding-inline:22px!important}.chat-header-actions{gap:8px}}
@media(max-width:900px){.chat-page-luxe{width:calc(100% - 28px);padding:14px 0 18px}.chat-luxe{display:block;height:calc(100dvh - 112px);min-height:0;border-radius:16px}.chat-luxe .chat-workspace{height:100%}.chat-luxe .chat-history{position:absolute;z-index:12;inset-block:0;inset-inline-start:0;width:min(290px,86%);transform:translateX(102%);transition:transform .2s;visibility:hidden}.chat-luxe.chat-sidebar-open .chat-history{transform:translateX(0);visibility:visible}.chat-sidebar-backdrop:not([hidden]){display:block;position:absolute;z-index:10;inset:0;width:100%;height:100%;border:0;background:#07112665;backdrop-filter:blur(3px)}#chat-history-toggle,#close-chat-history{display:grid}.chat-sidebar-brand #close-chat-history{margin-inline-start:auto;color:#afc0da}.chat-sidebar-brand #close-chat-history:hover{background:#ffffff12}.chat-prompt-grid{max-width:550px;margin-inline:auto}}
@media(max-width:760px){.brand-logo{width:34px;height:34px}.chat-page-luxe{width:calc(100% - 20px);padding:10px 0 12px}.chat-luxe{height:calc(100dvh - 87px);min-height:0;border-radius:13px}.chat-luxe .chat-workspace-header{min-height:69px;padding:12px 13px!important;gap:7px}.chat-header-logo{display:none}.chat-header-title{gap:6px}.chat-header-title h2{font-size:11px;max-width:170px}.chat-connection-status{font-size:8px}.chat-header-actions{gap:2px}.chat-model-pill{font-size:9px;padding:4px 6px;gap:4px}.chat-model-pill>.ui-icon{width:11px;height:11px}.chat-icon-button{width:28px;height:28px;padding:5px}.chat-icon-button>.ui-icon{width:16px;height:16px}.chat-luxe .chat-workspace #messages{padding:22px 17px}.chat-luxe #messages.is-empty{padding:18px 16px}.chat-welcome-mark{width:59px;height:59px;border-radius:17px;margin-bottom:12px}.chat-welcome-mark>img{width:37px;height:37px}.chat-welcome h1{font-size:22px;line-height:1.8;letter-spacing:-.6px}.chat-welcome-kicker{font-size:8px;letter-spacing:1.4px}.chat-welcome>p{font-size:10px}.chat-prompt-grid{gap:8px;margin-top:21px}.chat-prompt{padding:12px 11px;border-radius:10px}.chat-prompt>b{font-size:10px}.chat-prompt>small{font-size:8px}.chat-prompt>.ui-icon:first-child{width:16px;height:16px;margin-bottom:7px}.chat-prompt>.ui-icon:last-child{left:10px;top:12px;width:11px;height:11px}.chat-composer-area{padding:9px 12px 10px}.chat-luxe .chat-workspace form.chat-composer{padding:9px 10px 8px;border-radius:12px}.chat-luxe .chat-composer textarea{font-size:12px;min-height:45px;height:45px}.chat-luxe .chat-controlbar{gap:3px}.chat-luxe .tool-toggle span,.chat-luxe .tool-upload span{padding:5px;gap:4px}.chat-luxe .tool-toggle b,.chat-luxe .tool-upload b{font-size:8px}.chat-luxe .tool-toggle .ui-icon,.chat-luxe .tool-upload .ui-icon{width:13px;height:13px}.chat-send-button{width:31px;height:31px;border-radius:8px}.chat-composer-bottom{gap:5px}.chat-composer-caption{font-size:8px;margin-top:7px}.chat-keyboard-hint{display:none}.chat-information{margin-top:4px}.chat-information summary{font-size:8px}.chat-luxe .message{gap:8px;margin-bottom:23px}.message-avatar{width:26px;height:26px;border-radius:8px;font-size:10px}.message-avatar>img{width:20px;height:20px}.message-heading>b{font-size:10px}.message-heading>span{font-size:8px}.message-body{font-size:12px;line-height:2}.chat-luxe .message.user .message-body{padding:8px 11px}.chat-code pre{font-size:10px;padding:10px}.chat-copy-message{font-size:8px}.chat-copy-message>.ui-icon{width:11px;height:11px}}
@media(max-width:360px){.chat-header-title h2{max-width:132px}.chat-model-pill>.ui-icon{display:none}.chat-luxe .tool-upload b{display:none}.chat-welcome h1{font-size:19px}.chat-prompt>b{font-size:9px}.chat-prompt>small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.chat-luxe .chat-history{transition:none}.chat-send-button.is-busy>.ui-icon{animation:none}}

/* Approved TimesAI identity and upcoming video plan */
.brand-lockup{display:block;width:158px;height:auto;max-width:100%;object-fit:contain}.brand:has(.brand-tagline){flex-direction:column;align-items:flex-start;gap:10px}.brand-tagline{font-size:11px;font-weight:400;color:#7b8ca4}.chat-sidebar-identity{flex:1;min-width:0}.chat-sidebar-identity .chat-brand-lockup{display:block;width:174px;max-width:100%;height:auto;margin-bottom:8px}.chat-sidebar-identity>span{text-align:center}.video-coming-label{display:inline-flex;align-self:flex-start;padding:5px 12px;border-radius:30px;font-size:11px;font-weight:700;background:#e8f0ff;color:#245dc4}.video-price-pending{font-size:19px;font-weight:800;color:#234366;margin:20px 0 14px}.plan-coming-soon{background:linear-gradient(155deg,#fff,#f5f8ff);border-color:#cbddfc}.plan-coming-soon .button:disabled{opacity:.7;cursor:not-allowed}.plan-coming-soon .quota-toggle>p{font-size:12px;line-height:2;padding:10px 0;color:#6a7e9b}.admin-plan-grid>.notice{margin:0}.work-recommendation h3 span{line-height:2}
@media(max-width:760px){.brand-lockup{width:133px}.chat-sidebar-identity .chat-brand-lockup{width:166px}}

/* ChatGPT-inspired full-screen conversation workspace — 2026-10-01 */
body.chat-route,body.chat-route{overflow:hidden;background:#fff;padding:0!important}
body.chat-route>#site-header,body.chat-route>#site-header,
body.chat-route>.mobile-bottom-nav,body.chat-route>.mobile-bottom-nav,
body.chat-route>footer,body.chat-route>footer{display:none!important}
body.chat-route>#main,body.chat-route>#main{height:100dvh;min-height:100dvh;overflow:hidden}
body.chat-route .chat-page-luxe,body.chat-route .chat-page-luxe{width:100%;max-width:none;height:100%;padding:0;margin:0}
body.chat-route .chat-luxe,body.chat-route .chat-luxe{height:100dvh;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff}
.chat-luxe .chat-workspace{background:#fff}
.chat-luxe .chat-workspace-header{min-height:58px;padding:10px 18px;border-bottom:0;background:rgba(255,255,255,.92);backdrop-filter:blur(14px)}
.chat-header-logo{display:none}.chat-header-title h2{font-size:13px}.chat-connection-status{margin-top:1px}.chat-header-actions{gap:5px}.chat-model-pill{background:#fff;border-color:#e6e8eb;border-radius:10px;color:#3c4658;padding:5px 9px}.chat-home-link{text-decoration:none}
.chat-luxe .chat-workspace #messages{padding:24px max(22px,calc((100% - 820px)/2));scroll-padding-bottom:150px}
.chat-luxe #messages.is-empty{padding:24px max(22px,calc((100% - 820px)/2)) 110px}
.chat-luxe .message{width:100%;max-width:820px;margin-inline:auto;margin-bottom:26px}
.chat-welcome{width:min(680px,100%)}.chat-welcome-mark{width:64px;height:64px;border-radius:19px;box-shadow:none}.chat-welcome h1{font-size:30px}.chat-welcome>p{font-size:13px}
.chat-composer-area{position:relative;z-index:5;width:100%;padding:8px max(20px,calc((100% - 820px)/2)) 14px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 28%,#fff 100%)}
.chat-composer-area>.file-preview,.chat-composer-area>form,.chat-composer-area>.chat-composer-caption,.chat-composer-area>.chat-information{width:100%;max-width:820px;margin-inline:auto}
.chat-luxe .chat-workspace form.chat-composer{padding:10px 11px 9px;border:1px solid #d9dce1;border-radius:24px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06),0 0 0 1px rgba(0,0,0,.01)}
.chat-composer:focus-within{border-color:#b7bbc2!important;box-shadow:0 3px 16px rgba(0,0,0,.08)!important}
.chat-luxe .chat-composer textarea{min-height:42px;height:42px;padding:8px 8px 4px;font-size:14px;line-height:1.8;color:#202123}
.chat-composer-bottom{padding-top:5px}.chat-composer-tools{display:flex;align-items:center;gap:7px;min-width:0}.chat-plus-wrap{position:relative;flex:0 0 auto}
.chat-plus-button{display:grid;place-items:center;width:34px;height:34px;padding:7px;border:1px solid #e1e3e6;border-radius:50%;background:#fff;color:#4c5563;transition:.15s ease}.chat-plus-button:hover,.chat-plus-button.is-open{background:#f3f4f6;color:#111827}.chat-plus-button .ui-icon{width:18px;height:18px}.chat-plus-button:disabled{opacity:.45;cursor:not-allowed}
.chat-plus-menu{position:absolute;z-index:20;right:0;bottom:44px;width:min(300px,calc(100vw - 36px));padding:7px;border:1px solid #e0e2e6;border-radius:16px;background:#fff;box-shadow:0 12px 36px rgba(15,23,42,.16);direction:rtl}.chat-plus-menu[hidden]{display:none!important}
.chat-plus-item{display:block;margin:0!important;cursor:pointer}.chat-plus-item input{position:absolute;opacity:0;pointer-events:none}.chat-plus-item>span{display:grid!important;grid-template-columns:24px 1fr!important;column-gap:9px!important;row-gap:0!important;align-items:center!important;border:0!important;border-radius:11px!important;padding:9px 10px!important;background:transparent!important;color:#313946!important;font-size:12px!important}.chat-plus-item>span>.ui-icon{grid-row:1/3;width:19px!important;height:19px!important;color:#667085}.chat-plus-item b{font-size:12px!important;font-weight:600!important}.chat-plus-item small{font-size:9px;color:#8b93a1;line-height:1.7}.chat-plus-item:hover>span{background:#f5f6f7!important}.chat-plus-item input:checked+span{background:#eef5ff!important;color:#155eef!important}.chat-plus-item input:checked+span>.ui-icon{color:#155eef}
.chat-active-tools{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden}.chat-active-tools:empty{display:none}.chat-active-tools span{display:inline-flex;align-items:center;gap:4px;max-width:130px;padding:5px 8px;border:1px solid #d7e5ff;border-radius:999px;background:#f4f8ff;color:#3264aa;font-size:9px;white-space:nowrap}.chat-active-tools .ui-icon{width:12px;height:12px}
.chat-send-button{width:34px;height:34px;border-radius:50%;background:#111827;border-color:#111827;box-shadow:none}.chat-send-button:hover{background:#000;border-color:#000}.chat-send-button:disabled{background:#c9cdd3;border-color:#c9cdd3}
.chat-composer-caption{margin-top:7px;text-align:center;justify-content:center}.chat-composer-caption>span:first-child{font-size:8px}.chat-keyboard-hint{display:none}.chat-information{display:none}
.chat-luxe .file-preview{padding:0 2px 7px}.chat-luxe .file-preview span{display:inline-flex;margin:0 4px 4px 0;border-radius:10px;background:#f6f7f9;color:#4f5968;border-color:#e5e7eb}
@media(max-width:900px){body.chat-route .chat-luxe,body.chat-route .chat-luxe{height:100dvh;border-radius:0}.chat-page-luxe{width:100%!important;padding:0!important}.chat-luxe .chat-workspace-header{padding:9px 12px!important}.chat-luxe .chat-workspace #messages{padding-inline:18px}.chat-composer-area{padding-inline:12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}}
@media(max-width:760px){body.chat-route,body.chat-route{padding-bottom:0!important}.chat-luxe .chat-workspace-header{min-height:54px}.chat-header-title h2{font-size:11px;max-width:155px}.chat-model-pill{font-size:8px}.chat-home-link{display:grid}.chat-luxe .chat-workspace #messages{padding:16px 12px 20px}.chat-luxe #messages.is-empty{padding:18px 14px 96px}.chat-welcome-mark{width:56px;height:56px}.chat-welcome h1{font-size:23px}.chat-welcome>p{font-size:10px}.chat-prompt-grid{grid-template-columns:1fr 1fr;gap:7px}.chat-composer-area{padding:7px 8px max(8px,env(safe-area-inset-bottom))}.chat-luxe .chat-workspace form.chat-composer{padding:8px 8px 7px;border-radius:21px}.chat-luxe .chat-composer textarea{font-size:13px;padding-inline:7px}.chat-plus-button,.chat-send-button{width:32px;height:32px}.chat-plus-menu{right:-2px;bottom:40px}.chat-composer-caption{margin-top:5px}.chat-luxe .message{margin-bottom:22px}}

/* Chat workspace refinement — left sidebar, projects, pins, removable attachments, branded loading */
.chat-luxe{direction:ltr;grid-template-columns:272px minmax(0,1fr)}
.chat-luxe .chat-history,.chat-luxe .chat-workspace{direction:rtl}
.chat-luxe .chat-history{overflow:visible;padding:15px 13px 10px}
.chat-sidebar-brand{padding:0 2px 10px;min-height:38px}.chat-sidebar-identity .chat-brand-lockup{width:132px;margin:0}.chat-sidebar-identity>span{display:none}
.chat-luxe .chat-new-button{min-height:39px;padding:8px 11px;font-size:11px;border-radius:9px}
.chat-sidebar-toolbar{position:relative;display:flex;align-items:center;gap:6px;margin:9px 0 6px;direction:rtl}.chat-sidebar-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:34px;height:34px;padding:7px;border:1px solid #ffffff10;border-radius:8px;background:#ffffff05;color:#9fb2ce;font-size:10px}.chat-sidebar-tool:hover,.chat-sidebar-tool.is-active{background:#ffffff0d;color:#fff;border-color:#ffffff1d}.chat-sidebar-tool>.ui-icon{width:15px;height:15px}.chat-project-wrap{position:relative;flex:1;min-width:0}.chat-project-wrap>.chat-sidebar-tool{width:100%;justify-content:flex-start}.chat-project-wrap>.chat-sidebar-tool span{min-width:0;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-project-wrap>.chat-sidebar-tool .ui-icon:last-child{margin-inline-start:auto;width:12px;height:12px}
.chat-project-menu{position:absolute;z-index:30;inset-inline:0;top:40px;padding:6px;border:1px solid #30445f;border-radius:11px;background:#172740;box-shadow:0 16px 36px #06101e75}.chat-project-menu[hidden]{display:none!important}.chat-project-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#b5c5da;text-align:right;font-size:10px}.chat-project-menu button:hover,.chat-project-menu button.selected{background:#ffffff0d;color:#fff}.chat-project-menu button>.ui-icon{width:14px;height:14px}.chat-project-menu .project-create{margin-top:4px;border-top:1px solid #ffffff0e;border-radius:0;padding-top:10px;color:#92baff}
.chat-history-search{margin:4px 0 7px}.chat-history-search[hidden]{display:none!important}.chat-history-heading{margin:8px 5px 5px}.chat-luxe .history-list{flex:1;min-height:110px;overflow:auto;padding-inline-end:2px}.chat-luxe .history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-bottom:2px;border-radius:8px}.chat-luxe .history-item{padding:8px 7px}.chat-luxe .history-item b{font-size:10.5px}.chat-luxe .history-item small{font-size:8px;margin-top:1px}.chat-luxe .history-actions{flex-direction:row;align-items:center;padding:2px;opacity:0;transition:opacity .14s}.chat-luxe .history-row:hover .history-actions,.chat-luxe .history-row:focus-within .history-actions,.chat-luxe .history-row.is-pinned .history-actions{opacity:1}.chat-luxe .history-actions button{width:22px;height:22px}.chat-luxe .history-actions button.is-active{color:#8bb6ff;background:#ffffff0d}.chat-luxe .history-row.is-pinned .history-item>.ui-icon{color:#8bb6ff}
.chat-sidebar-bottom{position:relative;margin-top:5px;padding-top:7px;border-top:1px solid #ffffff0d}.chat-account-wrap{position:relative}.chat-account-card{width:100%;margin:0;padding:7px 5px;border:0;border-radius:9px;background:transparent;text-align:right;cursor:pointer}.chat-account-card:hover,.chat-account-card[aria-expanded="true"]{background:#ffffff09}.chat-account-card>.ui-icon{transition:transform .15s}.chat-account-card[aria-expanded="true"]>.ui-icon{transform:rotate(180deg)}.chat-account-menu{position:absolute;z-index:40;left:0;right:0;bottom:50px;padding:6px;border:1px solid #324760;border-radius:12px;background:#172740;box-shadow:0 18px 44px #06101ea0}.chat-account-menu[hidden]{display:none!important}.chat-account-menu a,.chat-account-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#bdcbe0;text-decoration:none;text-align:right;font-size:10px}.chat-account-menu a:hover,.chat-account-menu button:hover{background:#ffffff0d;color:#fff}.chat-account-menu .ui-icon{width:15px;height:15px;color:#8ca4c6}
.chat-hide-model-pill .chat-model-pill{display:none!important}.chat-compact-history .chat-luxe .history-item{padding-block:5px}.chat-compact-history .chat-luxe .history-item small{display:none}.chat-compact-history .chat-luxe .history-row{margin-bottom:0}

.chat-luxe .file-preview{display:flex;flex-wrap:wrap;gap:7px;padding:0 2px 8px}.chat-luxe .file-preview[hidden]{display:none!important}.chat-luxe .file-preview .file-preview-chip{display:grid;grid-template-columns:28px minmax(0,1fr) 22px;align-items:center;gap:7px;max-width:260px;margin:0;padding:7px 7px 7px 9px;border:1px solid #e1e6ee;border-radius:12px;background:#f8fafc;color:#374151}.file-preview-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eaf2ff;color:#3570c7}.file-preview-icon .ui-icon{width:15px;height:15px}.file-preview-name{min-width:0;display:block}.file-preview-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600}.file-preview-name small{display:block;margin-top:1px;color:#929baa;font-size:8px}.file-preview-chip>button{display:grid;place-items:center;width:22px;height:22px;padding:4px;border:0;border-radius:50%;background:transparent;color:#8e98a8}.file-preview-chip>button:hover{background:#e8ebef;color:#263242}.file-preview-chip>button .ui-icon{width:12px;height:12px}
.file-preview-chip.has-thumb{grid-template-columns:42px minmax(0,1fr) 22px}.file-preview-thumb{display:block;width:42px;height:42px;border-radius:10px;overflow:hidden;border:1px solid #e1e6ee;background:#eef3f8}.file-preview-thumb img{width:100%;height:100%;object-fit:cover;display:block}

@keyframes timesaiHourglassSpin{0%{transform:rotate(0deg)}45%{transform:rotate(180deg)}55%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}
.timesai-hourglass-loader{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 auto}.timesai-hourglass-loader img{display:block;width:20px;height:20px;animation:timesaiHourglassSpin 1.65s cubic-bezier(.55,.05,.45,.95) infinite;transform-origin:center}.chat-no-logo-animation .timesai-hourglass-loader img{animation:none}.chat-send-button .timesai-hourglass-loader{width:20px;height:20px}.chat-send-button .timesai-hourglass-loader img{width:19px;height:19px;filter:brightness(0) invert(1)}.chat-thinking{display:flex;align-items:center;gap:9px;width:100%;max-width:820px;margin:0 auto 24px;color:#6d7d92;font-size:11px}.chat-thinking .timesai-hourglass-loader{width:30px;height:30px;border:1px solid #e3ebf7;border-radius:10px;background:#f7faff}.chat-thinking .timesai-hourglass-loader img{width:22px;height:22px}

.chat-settings-form{display:grid;gap:4px;margin-top:12px}.chat-setting-row{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #edf0f4}.chat-setting-row>span{min-width:0}.chat-setting-row b{display:block;font-size:12px}.chat-setting-row small{display:block;margin-top:2px;color:#8994a5;font-size:9px}.chat-setting-row input{width:18px;height:18px;flex:0 0 auto}.chat-settings-projects,.chat-settings-storage{margin-top:22px;padding-top:17px;border-top:1px solid #e6eaf0}.chat-settings-projects h3,.chat-settings-storage h3{margin:0 0 5px;font-size:14px}.chat-settings-project-list{display:grid;gap:4px;margin-top:9px}.chat-settings-project-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border-radius:9px;background:#f7f9fc}.chat-settings-project-list>div>span{display:flex;align-items:center;gap:7px;min-width:0}.chat-settings-project-list .ui-icon{width:14px;height:14px;color:#6481aa}.chat-settings-project-list b{font-size:10px}.chat-settings-storage .local-files-stats{display:flex;gap:8px;margin:10px 0}.chat-settings-storage .local-files-stats span{flex:1;padding:8px;border:1px solid #e6eaf0;border-radius:9px;background:#fafbfc;font-size:9px}.chat-settings-storage .local-files-stats b{display:block;margin-top:3px;font-size:11px}.chat-settings-storage .local-files-actions,.modal-inline-actions{display:flex;gap:8px;flex-wrap:wrap}

@media(max-width:900px){.chat-luxe .chat-history{left:0!important;right:auto!important;inset-inline:auto!important;transform:translateX(-102%)!important}.chat-luxe.chat-sidebar-open .chat-history{transform:translateX(0)!important}.chat-luxe{direction:ltr}.chat-luxe .chat-history,.chat-luxe .chat-workspace{direction:rtl}.chat-account-menu{bottom:48px}.chat-project-menu{top:39px}}
@media(max-width:520px){.chat-luxe{grid-template-columns:1fr}.chat-header-actions{gap:2px}.chat-header-actions .chat-icon-button{width:30px;height:30px}.chat-luxe .file-preview .file-preview-chip{max-width:100%;flex:1 1 100%}.chat-sidebar-identity .chat-brand-lockup{width:122px}}
@media(prefers-reduced-motion:reduce){.timesai-hourglass-loader img{animation:none!important}}
.chat-luxe .history-row{position:relative;display:block}.chat-luxe .history-actions{position:absolute;z-index:2;left:4px;top:50%;transform:translateY(-50%);background:linear-gradient(90deg,#122038 72%,rgba(18,32,56,0));padding-right:9px}.chat-luxe .history-row.selected .history-actions{background:linear-gradient(90deg,#21334d 72%,rgba(33,51,77,0))}.chat-luxe .history-item{padding-left:9px}.chat-luxe .history-row:hover .history-item,.chat-luxe .history-row:focus-within .history-item{padding-left:92px}.chat-send-button.is-busy{background:#edf5ff!important;border-color:#d5e6ff!important}.chat-send-button .timesai-hourglass-loader img{filter:none!important}

/* Chat polish v2 — professional sidebar themes, clearer history rows, five-file composer */
.chat-luxe{
  --chat-accent:#1677ff;
  --chat-accent-soft:#dcecff;
  --chat-sidebar-start:#0f4ea6;
  --chat-sidebar-end:#082b63;
  --chat-sidebar-surface:#175db9;
  --chat-sidebar-surface-2:#1d6bd1;
  --chat-sidebar-border:#ffffff18;
  --chat-sidebar-text:#f4f7fb;
  --chat-sidebar-muted:#a9bad1;
  --chat-sidebar-faint:#8196b2;
  --chat-sidebar-selected:#ffffff12;
  --chat-sidebar-hover:#ffffff0b;
  --chat-sidebar-active:#9fc4ff;
  grid-template-columns:296px minmax(0,1fr);
}
body.chat-theme-navy .chat-luxe{
  --chat-accent:#2f7cf6;--chat-accent-soft:#dceaff;
  --chat-sidebar-start:#101d32;--chat-sidebar-end:#0a1424;--chat-sidebar-surface:#172942;--chat-sidebar-surface-2:#1d3350;
  --chat-sidebar-text:#f4f7fb;--chat-sidebar-muted:#a9bad1;--chat-sidebar-faint:#8196b2;--chat-sidebar-active:#9fc4ff;
}
body.chat-theme-blue .chat-luxe{
  --chat-accent:#1677ff;--chat-accent-soft:#dcecff;
  --chat-sidebar-start:#0f4ea6;--chat-sidebar-end:#082b63;--chat-sidebar-surface:#175db9;--chat-sidebar-surface-2:#1d6bd1;
  --chat-sidebar-border:#ffffff2b;--chat-sidebar-selected:#ffffff1c;--chat-sidebar-hover:#ffffff13;
  --chat-sidebar-text:#ffffff;--chat-sidebar-muted:#d7e8ff;--chat-sidebar-faint:#aacaf3;--chat-sidebar-active:#dff0ff;
}
body.chat-theme-sky .chat-luxe{
  --chat-accent:#1687ff;--chat-accent-soft:#e6f4ff;
  --chat-sidebar-start:#dff2ff;--chat-sidebar-end:#b8ddff;--chat-sidebar-surface:#eef8ff;--chat-sidebar-surface-2:#c9e7ff;
  --chat-sidebar-border:#3b82f62b;--chat-sidebar-selected:#ffffffa8;--chat-sidebar-hover:#ffffff78;
  --chat-sidebar-text:#123b67;--chat-sidebar-muted:#315c88;--chat-sidebar-faint:#6587a9;--chat-sidebar-active:#0969da;
}
body.chat-theme-mint .chat-luxe{
  --chat-accent:#13a672;--chat-accent-soft:#ddfaef;
  --chat-sidebar-start:#dcf8eb;--chat-sidebar-end:#bcebd6;--chat-sidebar-surface:#effbf6;--chat-sidebar-surface-2:#c9efdf;
  --chat-sidebar-border:#16845d2b;--chat-sidebar-selected:#ffffffa8;--chat-sidebar-hover:#ffffff78;
  --chat-sidebar-text:#153f34;--chat-sidebar-muted:#356a5b;--chat-sidebar-faint:#668f83;--chat-sidebar-active:#087a54;
}
body.chat-theme-darkblue .chat-luxe{
  --chat-accent:#3b82f6;--chat-accent-soft:#dbeafe;
  --chat-sidebar-start:#0b326d;--chat-sidebar-end:#061a3a;--chat-sidebar-surface:#11417f;--chat-sidebar-surface-2:#1553a0;
  --chat-sidebar-border:#7db3ff30;--chat-sidebar-selected:#ffffff18;--chat-sidebar-hover:#ffffff10;
  --chat-sidebar-text:#f8fbff;--chat-sidebar-muted:#c7ddfb;--chat-sidebar-faint:#91b5e7;--chat-sidebar-active:#b9d8ff;
}
body.chat-theme-emerald .chat-luxe{
  --chat-accent:#138a72;--chat-accent-soft:#dff5ef;
  --chat-sidebar-start:#12332f;--chat-sidebar-end:#091f1d;--chat-sidebar-surface:#18453f;--chat-sidebar-surface-2:#1d544d;
  --chat-sidebar-text:#f3fbf8;--chat-sidebar-muted:#b8d2cb;--chat-sidebar-faint:#8fb2aa;--chat-sidebar-active:#b9ecdf;
}
.chat-luxe .chat-history{background:linear-gradient(165deg,var(--chat-sidebar-start),var(--chat-sidebar-end));color:var(--chat-sidebar-text)}
.chat-sidebar-brand,.chat-sidebar-identity,.chat-sidebar-bottom,.chat-history-heading,.chat-history-search,.chat-project-wrap,.chat-account-wrap{color:var(--chat-sidebar-text)}
.chat-history-heading{color:var(--chat-sidebar-muted)}.chat-history-heading>span{color:var(--chat-sidebar-muted);background:#ffffff0c}
.chat-history-search{background:#ffffff08;border-color:var(--chat-sidebar-border)}.chat-history-search>.ui-icon{color:var(--chat-sidebar-faint)}.chat-history-search input{color:var(--chat-sidebar-text)}.chat-history-search input::placeholder{color:var(--chat-sidebar-faint)}
.chat-sidebar-tool{background:#ffffff07!important;border-color:var(--chat-sidebar-border)!important;color:var(--chat-sidebar-muted)!important}.chat-sidebar-tool:hover,.chat-sidebar-tool.is-active{background:#ffffff10!important;color:var(--chat-sidebar-text)!important;border-color:#ffffff28!important}
.chat-project-menu,.chat-account-menu{background:var(--chat-sidebar-surface)!important;border-color:var(--chat-sidebar-border)!important}.chat-project-menu button,.chat-account-menu a,.chat-account-menu button{color:var(--chat-sidebar-muted)!important}.chat-project-menu button:hover,.chat-project-menu button.selected,.chat-account-menu a:hover,.chat-account-menu button:hover{background:#ffffff10!important;color:var(--chat-sidebar-text)!important}.chat-project-menu .project-create{color:var(--chat-sidebar-active)!important}
.chat-luxe .chat-new-button{background:var(--chat-sidebar-surface-2);border-color:#ffffff22;color:#fff}.chat-luxe .chat-new-button:hover{background:color-mix(in srgb,var(--chat-sidebar-surface-2) 80%,white 20%);border-color:#ffffff35}
.chat-account-card b{color:var(--chat-sidebar-text)}.chat-account-card small,.chat-account-card>.ui-icon{color:var(--chat-sidebar-faint)}.chat-account-avatar{background:var(--chat-sidebar-surface-2);color:var(--chat-sidebar-text)}
.chat-luxe .history-row{display:grid!important;grid-template-columns:minmax(0,1fr) 88px;align-items:center;min-height:51px;border-color:transparent;overflow:hidden}.chat-luxe .history-row.selected{background:var(--chat-sidebar-selected);border-color:var(--chat-sidebar-border)}
.chat-luxe .history-item{padding:9px 8px!important;color:var(--chat-sidebar-muted)!important;min-width:0;overflow:hidden}.chat-luxe .history-item:hover{background:var(--chat-sidebar-hover)}.chat-luxe .history-row.selected .history-item{color:var(--chat-sidebar-text)!important}.chat-luxe .history-item b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-luxe .history-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--chat-sidebar-faint)}
.chat-luxe .history-actions{position:static!important;transform:none!important;display:grid!important;grid-template-columns:repeat(2,25px);grid-template-rows:repeat(2,25px);justify-content:end;align-content:center;gap:2px;padding:0 5px!important;background:transparent!important;opacity:.38;transition:opacity .14s}.chat-luxe .history-row:hover .history-actions,.chat-luxe .history-row:focus-within .history-actions,.chat-luxe .history-row.is-pinned .history-actions{opacity:1}.chat-luxe .history-actions button{width:25px;height:25px;color:var(--chat-sidebar-faint)}.chat-luxe .history-actions button:hover{background:#ffffff13;color:var(--chat-sidebar-text)}.chat-luxe .history-actions button.is-active,.chat-luxe .history-row.is-pinned .history-item>.ui-icon{color:var(--chat-sidebar-active)}
.chat-history-empty,#chat-history-no-results{color:var(--chat-sidebar-faint)}
.chat-luxe .chat-workspace-header{border-bottom-color:color-mix(in srgb,var(--chat-accent) 10%,#edf1f7 90%)}.chat-header-logo{background:color-mix(in srgb,var(--chat-accent-soft) 58%,white 42%);border-color:color-mix(in srgb,var(--chat-accent) 16%,#e4ebf8 84%)}.chat-model-pill{color:color-mix(in srgb,var(--chat-accent) 74%,#334155 26%);background:color-mix(in srgb,var(--chat-accent-soft) 55%,white 45%);border-color:color-mix(in srgb,var(--chat-accent) 14%,#e6edf9 86%)}.chat-icon-button:hover,.chat-copy-message:hover{color:var(--chat-accent)}
.chat-send-button{background:var(--chat-accent);border-color:var(--chat-accent)}.chat-send-button:hover{background:color-mix(in srgb,var(--chat-accent) 84%,black 16%)}.chat-plus-button.is-open,.chat-plus-button:hover{color:var(--chat-accent);border-color:color-mix(in srgb,var(--chat-accent) 32%,#dbe3ee 68%);background:color-mix(in srgb,var(--chat-accent-soft) 55%,white 45%)}
.chat-luxe .file-preview{max-height:152px;overflow:auto;align-content:flex-start}.chat-luxe .file-preview .file-preview-chip{flex:1 1 220px;max-width:calc(50% - 4px)}.file-preview-icon{background:color-mix(in srgb,var(--chat-accent-soft) 78%,white 22%);color:var(--chat-accent)}

.chat-theme-setting{padding:4px 0 13px;border-bottom:1px solid #edf0f4}.chat-theme-setting>b{display:block;font-size:12px}.chat-theme-setting>small{display:block;margin:3px 0 10px;color:#8994a5;font-size:9px;line-height:1.9}.chat-theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.chat-theme-picker label{cursor:pointer}.chat-theme-picker input{position:absolute;opacity:0;pointer-events:none}.chat-theme-picker label>span{display:flex;align-items:center;gap:7px;padding:9px;border:1px solid #e2e7ee;border-radius:10px;background:#fafbfc;color:#526071}.chat-theme-picker label>span>i{display:block;width:18px;height:18px;border-radius:6px;border:1px solid #ffffff70;box-shadow:0 0 0 1px #00000010}.chat-theme-picker label b{font-size:9px;font-weight:600}.chat-theme-picker input:checked+span{border-color:#8fb4ea;box-shadow:0 0 0 2px #2f7cf614;background:#f7faff}.chat-theme-picker .theme-navy i{background:linear-gradient(145deg,#14253f,#0b1627)}.chat-theme-picker .theme-blue i{background:linear-gradient(145deg,#1677ff,#0b4fae)}.chat-theme-picker .theme-sky i{background:linear-gradient(145deg,#e6f5ff,#9ed3ff)}.chat-theme-picker .theme-mint i{background:linear-gradient(145deg,#e2fbf0,#94dfbf)}.chat-theme-picker .theme-darkblue i{background:linear-gradient(145deg,#1559a8,#061a3a)}.chat-theme-picker .theme-emerald i{background:linear-gradient(145deg,#1c5149,#0a2421)}

@media(max-width:1100px){.chat-luxe{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:900px){.chat-luxe .chat-history{width:min(304px,88%)}}
@media(max-width:620px){.chat-theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-luxe .file-preview .file-preview-chip{max-width:100%;flex-basis:100%}}

/* Chat polish v3 final cascade — brighter conversation surface */
body.chat-route .chat-luxe .chat-workspace-header,body.chat-route .chat-luxe .chat-workspace-header{background:linear-gradient(180deg,#fff 0%,color-mix(in srgb,var(--chat-accent-soft) 34%,#fff 66%) 100%);border-bottom:1px solid color-mix(in srgb,var(--chat-accent) 10%,#eef2f7 90%)}
.chat-luxe .chat-model-pill{color:color-mix(in srgb,var(--chat-accent) 82%,#23334b 18%);background:color-mix(in srgb,var(--chat-accent-soft) 62%,#fff 38%);border-color:color-mix(in srgb,var(--chat-accent) 18%,#e6e8eb 82%)}
.chat-luxe .chat-get-pro-pill{position:relative;overflow:hidden;isolation:isolate;gap:7px!important;padding:5px 11px!important;color:#fff!important;background:linear-gradient(135deg,color-mix(in srgb,var(--chat-accent) 92%,#0b5fff 8%) 0%,color-mix(in srgb,var(--chat-accent) 64%,#6c5cff 36%) 58%,#6658e8 100%)!important;border:1px solid #ffffff66!important;box-shadow:0 5px 15px color-mix(in srgb,var(--chat-accent) 24%,transparent 76%),inset 0 1px 0 #ffffff40!important;font-weight:800!important;letter-spacing:.1px;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.chat-luxe .chat-get-pro-pill::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(110deg,transparent 18%,#ffffff2e 42%,transparent 62%);transform:translateX(-135%);transition:transform .5s ease}.chat-luxe .chat-get-pro-pill:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 8px 20px color-mix(in srgb,var(--chat-accent) 30%,transparent 70%),inset 0 1px 0 #ffffff55!important}.chat-luxe .chat-get-pro-pill:hover::before{transform:translateX(135%)}.chat-luxe .chat-get-pro-pill>.ui-icon{width:13px;height:13px;filter:drop-shadow(0 1px 2px #0002)}.chat-luxe .chat-get-pro-pill .chat-pro-dot{width:4px;height:4px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #ffffff20;opacity:.9}
.chat-luxe .chat-welcome-mark{background:linear-gradient(145deg,#fff,color-mix(in srgb,var(--chat-accent-soft) 72%,#fff 28%));border-color:color-mix(in srgb,var(--chat-accent) 16%,#e0e9fa 84%)}
.chat-luxe .chat-prompt:hover{border-color:color-mix(in srgb,var(--chat-accent) 42%,#dce5f1 58%);background:color-mix(in srgb,var(--chat-accent-soft) 25%,#fff 75%);transform:translateY(-1px)}
.chat-luxe .chat-prompt>.ui-icon:first-child{color:var(--chat-accent)}
body.chat-route .chat-luxe .chat-workspace form.chat-composer:focus-within,body.chat-route .chat-luxe .chat-workspace form.chat-composer:focus-within{border-color:color-mix(in srgb,var(--chat-accent) 52%,#d9dce1 48%)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--chat-accent) 10%,transparent 90%),0 6px 24px color-mix(in srgb,var(--chat-accent) 10%,transparent 90%)!important}
.chat-luxe .chat-send-button{box-shadow:0 5px 14px color-mix(in srgb,var(--chat-accent) 22%,transparent 78%)}
.chat-luxe .chat-active-tool{border-color:color-mix(in srgb,var(--chat-accent) 18%,#dfe5ee 82%);background:color-mix(in srgb,var(--chat-accent-soft) 50%,#fff 50%);color:color-mix(in srgb,var(--chat-accent) 80%,#334155 20%)}

/* Chat URLs: always explicit and open in a new browser tab. */
.chat-external-link{color:#1677ff;text-decoration:none;font-weight:650;overflow-wrap:anywhere;border-bottom:1px solid color-mix(in srgb,currentColor 28%,transparent);transition:border-color .16s ease,opacity .16s ease}
.chat-external-link:hover{border-bottom-color:currentColor;opacity:.88}

/* Orchestrator v2 · local-first references, sources and recoverable tool flows */
.chat-reference-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--chat-accent) 18%,#e2e8f0 82%);border-radius:12px;background:color-mix(in srgb,var(--chat-accent-soft) 42%,#fff 58%);color:#40526d;font-size:10px}.chat-reference-bar[hidden]{display:none!important}.chat-reference-bar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-reference-bar b{color:#263c5c}.chat-reference-bar button{flex:0 0 auto;width:25px;height:25px;border:0;border-radius:8px;background:#fff;color:#7d8ba0;box-shadow:0 0 0 1px #dce4ef}.chat-reference-bar button:hover{color:#b42318;background:#fff7f6}
.message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.message-actions>button{display:inline-flex;align-items:center;gap:5px;padding:2px 0;border:0;background:transparent;color:#9aaac0;font-size:9px}.message-actions>button>.ui-icon{width:13px;height:13px}.message-actions>button:hover{color:var(--chat-accent)}
.message-plan-meta{display:inline-flex;align-items:center;margin-top:8px;padding:3px 7px;border:1px solid #e1e8f2;border-radius:999px;background:#f8fafc;color:#7a8ca4;font-size:8px;direction:rtl}.message-failed{color:#b42318!important}.chat-luxe .message.is-failed .message-body{outline:1px dashed #f0b7b0;outline-offset:4px}
.message-feedback{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:8px 10px;border:1px solid #e6ebf3;border-radius:12px;background:#fafcff;color:#6b7a90;font-size:10px}.message-feedback>span{font-weight:600;color:#556579}.feedback-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #dbe4f0;border-radius:999px;background:#fff;color:#607089;font-size:10px}.feedback-btn b{font-weight:600}.feedback-btn:hover,.feedback-btn.is-active{border-color:color-mix(in srgb,var(--chat-accent) 40%,#dbe4f0 60%);background:color-mix(in srgb,var(--chat-accent-soft) 40%,#fff 60%);color:var(--chat-accent)}
.chat-sources{margin-top:13px;padding:10px;border:1px solid #e2e9f3;border-radius:12px;background:#fbfcfe}.chat-sources>b{display:block;margin-bottom:7px;color:#60738f;font-size:9px}.chat-sources>div{display:grid;gap:5px}.chat-sources a{display:grid;grid-template-columns:23px minmax(0,1fr) 14px;align-items:center;gap:7px;padding:7px 8px;border:1px solid #e7edf5;border-radius:9px;background:#fff;color:#405a7c;text-decoration:none}.chat-sources a>span{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:color-mix(in srgb,var(--chat-accent-soft) 62%,#fff 38%);color:var(--chat-accent);font-size:8px}.chat-sources a>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:650}.chat-sources a>.ui-icon{width:12px;height:12px;color:#9aa8ba}.chat-sources a:hover{border-color:color-mix(in srgb,var(--chat-accent) 30%,#e2e8f0 70%);background:color-mix(in srgb,var(--chat-accent-soft) 24%,#fff 76%)}
.chat-local-asset-item{position:relative;margin-top:10px}.chat-asset-controls{display:flex;align-items:center;gap:5px;margin-top:5px}.chat-asset-controls button{padding:4px 8px;border:1px solid #dce5f0;border-radius:8px;background:#fff;color:#74869f;font-size:8px}.chat-asset-controls button:hover,.chat-asset-controls button.is-active{border-color:color-mix(in srgb,var(--chat-accent) 35%,#dce5f0 65%);background:color-mix(in srgb,var(--chat-accent-soft) 48%,#fff 52%);color:var(--chat-accent)}
.chat-reference-choice{display:grid;gap:7px;max-height:min(54vh,460px);overflow:auto;margin:14px 0;padding:2px}.chat-reference-choice button{display:block;width:100%;text-align:right;padding:10px 11px;border:1px solid #e1e7ef;border-radius:11px;background:#fff;color:#33465f}.chat-reference-choice button:hover{border-color:color-mix(in srgb,var(--chat-accent) 38%,#dfe6ef 62%);background:color-mix(in srgb,var(--chat-accent-soft) 28%,#fff 72%)}.chat-reference-choice b,.chat-reference-choice small{display:block}.chat-reference-choice b{font-size:10px}.chat-reference-choice small{margin-top:3px;color:#8795a8;font-size:8px;line-height:1.7}
@media(max-width:620px){.chat-reference-bar{align-items:flex-start}.chat-sources a{grid-template-columns:22px minmax(0,1fr) 12px}.message-actions{gap:8px}.chat-asset-controls{flex-wrap:wrap}}

/* Admin-only live execution trace: operational telemetry, never hidden reasoning. */
.admin-execution-trace{margin-top:12px;border:1px solid #d9e3ef;border-radius:12px;background:#f8fbff;overflow:hidden}.admin-execution-trace>summary{display:flex;align-items:center;gap:7px;padding:9px 10px;cursor:pointer;color:#40546f;font-size:9px;list-style:none}.admin-execution-trace>summary::-webkit-details-marker{display:none}.admin-execution-trace>summary>.ui-icon{width:13px;height:13px;color:var(--chat-accent)}.admin-execution-trace>summary>b{font-size:10px;color:#273d5b}.admin-execution-trace>summary>span{margin-inline-start:auto;color:#7e8da2;font-size:8px}.admin-trace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 10px 10px}.admin-trace-grid>div{min-width:0;padding:7px 8px;border:1px solid #e4eaf2;border-radius:9px;background:#fff}.admin-trace-grid span,.admin-trace-grid b{display:block}.admin-trace-grid span{color:#8a97a9;font-size:8px}.admin-trace-grid b{margin-top:2px;color:#344a68;font-size:9px;font-weight:650;overflow-wrap:anywhere}.admin-trace-steps{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:0 10px 10px}.admin-trace-steps>b{font-size:8px;color:#6f7d90}.admin-trace-step{display:inline-flex;padding:4px 7px;border:1px solid #dce6f2;border-radius:999px;background:#fff;color:#4e6380;font-size:8px;direction:ltr}.admin-trace-errors{margin:0 10px 10px;padding:7px 8px;border:1px solid #f1d3cf;border-radius:9px;background:#fff8f7}.admin-trace-errors summary{cursor:pointer;color:#a43d32;font-size:9px}.admin-trace-errors p{margin:7px 0 0}.admin-trace-errors p b,.admin-trace-errors p span{display:block;font-size:8px;overflow-wrap:anywhere}.admin-trace-errors p b{color:#64748b}.admin-trace-errors p span{margin-top:2px;color:#9f3c31}
@media(max-width:620px){.admin-trace-grid{grid-template-columns:1fr}.admin-execution-trace>summary{align-items:flex-start;flex-wrap:wrap}.admin-execution-trace>summary>span{margin-inline-start:0;width:100%}}
.chat-setting-row.chat-setting-timezone input{width:min(220px,46vw);height:36px;flex:0 1 220px;padding:7px 10px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;color:#34445c;font:11px/1.5 ui-monospace,Consolas,monospace}

/* Responsive chat refinement · 2026-10-03 (scoped to the conversation workspace). */
body.chat-route #main,body.chat-route #main{height:var(--chat-viewport-height,100dvh);min-height:0}
body.chat-route .chat-luxe,body.chat-route .chat-luxe{height:var(--chat-viewport-height,100dvh)}
.chat-luxe .chat-workspace{position:relative}
.chat-luxe #chat-history-toggle{display:grid;width:44px;height:44px}
.chat-luxe.chat-sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}
.chat-luxe.chat-sidebar-collapsed .chat-history{visibility:hidden;pointer-events:none;padding:0;overflow:hidden}
.chat-luxe .chat-icon-button,.chat-luxe .chat-plus-button,.chat-luxe .chat-send-button{width:44px;height:44px;min-width:44px;min-height:44px}
.chat-luxe .chat-workspace-header{min-height:68px;padding:10px 20px!important}
.chat-luxe .chat-header-title{flex:1;overflow:hidden}
.chat-luxe .chat-header-title h2{font-size:15px;max-width:none}
.chat-luxe .chat-connection-status{font-size:12px}
.chat-luxe .message-body{font-size:16px;line-height:1.95;overflow-wrap:anywhere;white-space:normal}
.chat-luxe .message-body p{color:inherit;margin:0 0 14px}
.chat-luxe .message-body h1,.chat-luxe .message-body h2,.chat-luxe .message-body h3{font-size:1.2em;line-height:1.8;margin:22px 0 10px;letter-spacing:0}
.chat-luxe .message-body ul,.chat-luxe .message-body ol{padding-inline-start:24px;margin:12px 0}
.chat-luxe .message-body li{margin:5px 0}
.chat-luxe .message-body blockquote{margin:14px 0;padding:8px 14px;border-inline-start:3px solid var(--chat-accent);background:#f5f8fc}
.chat-luxe .message-heading b{font-size:13px}.chat-luxe .message-heading span{font-size:12px}
.chat-luxe .message-actions>button{min-height:44px;padding:7px 5px;font-size:12px;color:#62738c}
.chat-luxe .chat-composer textarea{font-size:16px!important;line-height:1.8;max-height:180px}
.chat-luxe .chat-composer-caption>span:first-child{font-size:11px;color:#69788d}
.chat-luxe .chat-active-tools{flex-wrap:wrap;overflow:visible;gap:6px}
.chat-luxe .chat-composer-tools{flex:1;align-items:flex-start}
.chat-luxe .chat-composer-bottom{align-items:flex-end;gap:8px}
.chat-luxe .chat-active-tool{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:6px 9px;border-radius:16px;font-size:12px;cursor:pointer}
.chat-luxe .chat-active-tool span{border:0;padding:0;background:none;font-size:12px;color:inherit;max-width:none}
.chat-luxe .chat-active-tool>.ui-icon{width:16px;height:16px;flex-shrink:0}
.chat-luxe .chat-plus-menu{max-height:min(420px,calc(var(--chat-viewport-height,100dvh) - 150px));overflow:auto;overscroll-behavior:contain}
.chat-luxe .chat-plus-item>span{min-height:54px}.chat-luxe .chat-plus-item small{font-size:12px}
.chat-luxe .chat-plus-item input:focus-visible+span{outline:2px solid var(--chat-accent);outline-offset:-2px}
.chat-luxe .chat-send-button.is-busy{color:#1b4b83;font-size:17px}.chat-luxe .chat-send-button:disabled{cursor:wait}
.chat-more-wrap{display:none;position:relative;flex-shrink:0}
#chat-more-menu{position:absolute;top:50px;inset-inline-end:0;z-index:30;min-width:215px;padding:7px;border:1px solid #dfe6ef;border-radius:14px;background:#fff;box-shadow:0 8px 24px #142a4c1c}
#chat-more-menu[hidden]{display:none!important}
#chat-more-menu a,#chat-more-menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:8px 10px;text-align:right;font-size:13px;background:transparent;border:0;border-radius:9px;color:#34445b}
#chat-more-menu a:hover,#chat-more-menu button:hover{background:#f0f5fc}
.chat-luxe .chat-model-pill{font-family:Vazir,Tahoma,sans-serif;font-size:12px}
.chat-hide-model-pill .chat-model-pill:not(.chat-get-pro-pill){display:none!important}
.chat-hide-model-pill .chat-get-pro-pill{display:flex!important}
.chat-luxe .history-row{position:relative;grid-template-columns:minmax(0,1fr) 44px!important;overflow:visible;border-radius:9px}
.chat-luxe .history-item b{font-size:13px}.chat-luxe .history-item small{font-size:11px}
.chat-luxe .history-more-button{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;border-radius:9px;color:var(--chat-sidebar-text);opacity:.8}
.chat-luxe .history-more-button .ui-icon{width:20px;height:20px}
.chat-luxe .history-actions{display:none!important;position:absolute!important;z-index:25;top:42px;left:0;transform:none!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;gap:3px;width:180px;padding:6px!important;border:1px solid var(--chat-sidebar-border);border-radius:12px;background:var(--chat-sidebar-surface)!important;opacity:1;box-shadow:0 8px 25px #0003}
.chat-luxe .history-menu-open .history-actions{display:grid!important}
.chat-luxe .history-actions button{display:flex;align-items:center;gap:9px;width:100%;height:44px;text-align:right;padding:8px 10px;font-size:12px;color:var(--chat-sidebar-text)}
.chat-luxe .history-actions button::after{content:attr(title)}
.chat-luxe .history-list{padding-bottom:165px}
.chat-luxe .chat-sidebar-tool{min-height:44px;font-size:12px}
.chat-luxe .chat-account-card{min-height:52px}.chat-luxe .chat-account-card b{font-size:13px}.chat-luxe .chat-account-card small{font-size:11px}
.chat-luxe .chat-usage-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;padding-top:6px;color:#60728b;font-size:11px}
.chat-luxe .chat-usage-strip .chat-balance-chip{font-size:11px;color:#60728b;border:0;background:none;padding:0}
.chat-luxe .chat-usage-strip a{color:var(--chat-accent);padding:4px}
.chat-luxe .chat-information{display:block;margin:5px auto 0}.chat-luxe .chat-information summary{font-size:11px;color:#66748a}.chat-luxe .chat-information p{max-height:90px;overflow:auto;font-size:12px}
.chat-request-note{padding:7px 10px;margin:0 0 8px;border-radius:9px;background:#f2f6fc;font-size:12px;color:#49617e}
.chat-request-note[hidden],.chat-latest[hidden]{display:none!important}
.chat-latest{position:absolute;z-index:8;bottom:200px;inset-inline-end:24px;padding:8px 14px;min-height:44px;border:1px solid #d9e3ef;border-radius:22px;background:#fff;color:#345477;font-size:12px;box-shadow:0 3px 14px #142a4c12}
#chat-stream-preview .message-body{white-space:pre-wrap}
.chat-luxe .chat-code{overflow:hidden;margin:14px 0;border:1px solid #dde5ee;border-radius:12px;background:#f7f9fc}
.chat-code-toolbar{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;background:#edf2f8;direction:ltr}
.chat-code-toolbar>span{position:static!important;background:none!important;padding:0!important;font-size:12px;color:#56687f}
.chat-code-toolbar button{min-height:40px;padding:5px 12px;border:1px solid #d9e3ee;border-radius:8px;background:#fff;color:#345477;font:12px Vazir,Tahoma,sans-serif;direction:rtl}
.chat-luxe .chat-code pre{white-space:pre;overflow:auto;max-width:100%;margin:0;padding:14px;font:13px/1.8 ui-monospace,Consolas,monospace;direction:ltr;text-align:left}
.chat-table-wrap{max-width:100%;overflow:auto;margin:15px 0;border:1px solid #dfe6ef;border-radius:10px;overscroll-behavior-x:contain}
.chat-table-wrap table{border-collapse:collapse;width:100%;font-size:14px}
.chat-table-wrap th,.chat-table-wrap td{padding:9px 12px;border-bottom:1px solid #e3e9f1;text-align:start;min-width:100px}
.chat-table-wrap th{background:#f1f5fb;font-weight:700}.chat-table-wrap tr:last-child td{border-bottom:0}
.chat-luxe .chat-sources a>b,.chat-luxe .chat-sources>b{font-size:12px}.chat-luxe .chat-sources a{min-height:44px}
.chat-luxe .file-preview-chip>button{width:44px;height:44px}.chat-luxe .file-preview .file-preview-chip{grid-template-columns:28px minmax(0,1fr) 44px}.chat-luxe .file-preview .file-preview-chip.has-thumb{grid-template-columns:42px minmax(0,1fr) 44px}
.chat-luxe .file-preview-name b{font-size:12px}.chat-luxe .file-preview-name small{font-size:11px}
.chat-luxe .chat-prompt>b{font-size:14px}.chat-luxe .chat-prompt>small{font-size:12px;color:#65758c}.chat-luxe .chat-welcome>p{font-size:14px}
.chat-luxe .chat-welcome-kicker{display:none}
.chat-luxe .chat-welcome-mark,.chat-luxe .chat-get-pro-pill,.chat-luxe .chat-send-button{box-shadow:none!important}
.chat-luxe .chat-get-pro-pill{background:var(--chat-accent)!important}
.chat-luxe .katex-display{direction:ltr;overflow:auto;max-width:100%;margin:12px 0}
@media(max-width:900px){
 .chat-luxe.chat-sidebar-collapsed .chat-history{visibility:hidden}
 .chat-luxe.chat-sidebar-open .chat-history{visibility:visible;pointer-events:auto;padding:15px 13px 10px}
 .chat-luxe .chat-workspace-header{padding:6px 10px!important;min-height:60px}
 .chat-luxe .chat-header-actions>.chat-model-pill,.chat-luxe .chat-header-actions>.chat-icon-button{display:none!important}
 .chat-luxe .chat-more-wrap{display:block}
 .chat-luxe .chat-header-title h2{max-width:none;font-size:14px}
 .chat-luxe .chat-connection-status{font-size:11px}
 .chat-luxe .chat-workspace #messages{padding:18px 14px 20px}
 .chat-luxe #messages.is-empty{padding:20px 14px 30px}
 .chat-luxe .chat-composer-area{padding:6px 10px max(8px,env(safe-area-inset-bottom))}
 .chat-luxe .message-body{font-size:16px}.chat-luxe .message{gap:8px}
 .chat-luxe .chat-prompt-grid{grid-template-columns:1fr 1fr;gap:8px}.chat-luxe .chat-prompt{padding:12px}
 .chat-luxe .chat-welcome h1{font-size:23px;letter-spacing:0}
 .chat-luxe .chat-latest{bottom:220px;inset-inline-end:15px}
 .chat-luxe .chat-information{display:none}.chat-luxe .chat-usage-strip{font-size:11px}
 body.chat-route #main{position:relative;top:var(--chat-viewport-top,0px)}
}
@media(max-width:360px){.chat-luxe .chat-prompt-grid{grid-template-columns:1fr}.chat-luxe .chat-welcome h1{font-size:21px}}
@media(max-height:520px) and (max-width:900px){.chat-luxe .chat-welcome-mark,.chat-luxe .chat-prompt-grid,.chat-luxe .chat-composer-caption{display:none}.chat-luxe .chat-workspace-header{min-height:48px;padding-block:2px!important}.chat-luxe .chat-composer textarea{max-height:85px}.chat-luxe .chat-latest{bottom:155px}.chat-luxe #messages.is-empty{padding-block:12px}}
@media(prefers-reduced-motion:reduce){.chat-luxe *, .chat-luxe *::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the composer visible when long transcripts determine intrinsic grid sizing. */
.chat-luxe{grid-template-rows:minmax(0,1fr)}
.chat-luxe .chat-workspace{height:100%;max-height:100%;overflow:hidden;min-height:0}
.chat-luxe .chat-history{height:100%;min-height:0}
.chat-luxe .chat-information{padding:0;border:0}.chat-luxe .chat-information summary{padding:4px 0}
.chat-settings-form .chat-setting-row small,.chat-theme-setting>small{font-size:12px}.chat-theme-picker label b{font-size:12px}.chat-settings-form .chat-setting-row{min-height:52px}.chat-settings-form .chat-theme-picker label>span{min-height:44px}
@media(max-height:520px) and (max-width:900px){.chat-luxe .file-preview{max-height:65px}.chat-luxe .chat-composer-area{max-height:calc(var(--chat-viewport-height,100dvh) - 75px);overflow-y:auto}.chat-luxe .chat-composer textarea{min-height:36px}}

/* Speech / TTS v26 */
.message-actions>.chat-speech-message.is-loading{color:var(--chat-accent);cursor:wait;opacity:.82}
.message-actions>.chat-speech-message.is-loading .ui-icon{animation:timesaiSpeechSpin .85s linear infinite}
.message-actions>.chat-speech-message.is-speaking{color:var(--chat-accent);font-weight:700}
@keyframes timesaiSpeechSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.message-actions>.chat-speech-message.is-loading .ui-icon{animation:none}}
