.history-row{display:flex;align-items:center;gap:2px}.history-row .history-item{flex:1;min-width:0}.history-more{background:none;border:0;border-radius:6px;color:#6b8394;font-size:23px;width:32px;flex-shrink:0}.history-more:hover{background:#e3edf5;color:#005eac}.extra-message-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px}.extra-message-actions button{font-size:12px;color:#6e8493;padding:3px 0}.user .extra-message-actions{justify-content:flex-end}#manager-content>.secondary-button,#manager-content>.primary-button,#manager-content>.danger-button{margin:12px 8px 0 0}.feature-note{font-size:13px;line-height:1.6;margin:18px 0 10px;color:#6e8393}.share-result{margin-top:16px}.manager-input{max-width:100%;width:100%;box-sizing:border-box}.manager-row{gap:12px;flex-wrap:wrap}.manager-row>span{flex:1;min-width:100px}.legal-main .legal-sheet{min-width:0}
/* Dark surfaces stay neutral; blue is reserved for links and primary actions. */
html[data-theme=dark]{color-scheme:dark;--navy:#e9e7e3;--blue:#80b7df;--muted:#aaa8a4;--border:#333332;--sidebar:#171717;--dark-base:#1d1d1c;--dark-panel:#242423;--dark-hover:#30302f;--dark-text:#e9e7e3;--dark-muted:#aaa8a4;background:var(--dark-base);color:var(--dark-text);scrollbar-color:#50504e #20201f}
html[data-theme=dark] :is(body,.main,.settings-main){background:var(--dark-base);color:var(--dark-text)}
html[data-theme=dark] :is(.sidebar,.settings-sidebar){background:#171717;border-color:#2a2a29}
html[data-theme=dark] :is(.settings-dialog,.manager-dialog,.account-menu,.model-menu,.composer,.transit-card,.code-block,.legal-sheet,.legal-index){background:var(--dark-panel);color:var(--dark-text);border-color:var(--border);box-shadow:0 12px 36px #0002}
html[data-theme=dark] :is(.settings-dialog,.manager-dialog)::backdrop{background:#0007;backdrop-filter:blur(6px)}
html[data-theme=dark] :is(.brand,.brand-blue,.nav-button,.account-button,.history-item,.message,.settings-panel h2,.settings-panel h3,.setting-row,.manager-dialog h2,.transit-card h3,.model-trigger,.model-menu button,.welcome h1,.response-content,.response-content strong,.response-content h1,.response-content h2,.response-content h3,.response-content h4,.response-content .katex,.code-block code,.attachment-details strong,.user-file-details strong,.manager-empty strong,.font-preview p){color:var(--dark-text)}
html[data-theme=dark] :is(.history-label,.history-empty,.account-button small,.account-menu-heading span,.account-menu a>span,.model-menu-heading,.model-menu small,.model-menu p,.message-label,.muted-note,.section-copy,.feature-note,.composer-disclaimer,.workspace-note,.setting-row p,.settings-save span,.instruction-field p,.manager-dialog p,.manager-row small,.manager-label,.settings-sidebar-heading,.settings-brand,.settings-version,.font-preview>span,.billing-plan p,.billing-plan>div>span,.invoice-empty p,.invoice-empty strong,.id-copy code,.thread-title,.transit-duration,.transit-subtitle,.transit-eyebrow,.transit-leg,.transit-footer,.transit-route small,.attachment-details small,.user-file-details small,.thinking-time,.feedback-status,.estonian-label,.plan-link>span:first-child,.new-chat kbd){color:var(--dark-muted)}
html[data-theme=dark] :is(.settings-tabs button,.icon-button,.plan-link,.back-link,.response-action,.history-more,.account-menu a,.extra-message-actions button,.attachment-remove){color:#bcbab6}
html[data-theme=dark] :is(.new-chat,.history-item.active,.settings-tabs button[aria-selected=true],.model-menu>button[aria-checked=true],.account-button[aria-expanded=true],.model-trigger[aria-expanded=true]){background:#2b2b2a;color:var(--dark-text)}
html[data-theme=dark] :is(.icon-button,.nav-button,.history-item,.history-more,.account-button,.plan-link,.quick-actions button,.settings-tabs button,.secondary-button,.privacy-topics button,.manager-action,.account-menu a,.model-trigger,.model-menu>button,.response-action,.assistant-mark,.attachment-remove):hover,
html[data-theme=dark] :is(.account-menu a,.model-menu>button,.assistant-mark,.attachment-remove):focus-visible{background:var(--dark-hover);color:#f5f3ee;border-color:#484846}
html[data-theme=dark] :is(.quick-actions button,.secondary-button,.quiet-badge,.privacy-topics button,.manager-action,.font-preview,.billing-plan,.code-header,.response-content th,.response-content .katex-display,.attachment-card,.user-file-card,.user-attachment,.transit-walk,.transit-line,.compose-mode,.model-menu-heading>span){background:#272726;color:#cfcdc8;border-color:var(--border)}
html[data-theme=dark] :is(.quick-actions button[aria-pressed=true],.response-action[aria-pressed=true]){background:#30383d;color:#a9d3ef;border-color:#485963}
html[data-theme=dark] :is(.quick-actions svg,.history-item svg,.model-trigger svg,.invoice-empty svg){color:#a8a6a1}
html[data-theme=dark] :is(input:not(.toggle),textarea,select){background:#282827;color:var(--dark-text);border-color:#41413f}
html[data-theme=dark] :is(.setting-row input:not(.toggle),.instruction-field textarea):focus{background:#2b2b2a}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#95938e}
html[data-theme=dark] .composer textarea{background:transparent;color:var(--dark-text)}
html[data-theme=dark] .composer:focus-within{border-color:#60605b;box-shadow:0 0 0 1px #60605b30,0 10px 30px #0002}
html[data-theme=dark] :is(.setting-row,.sidebar-bottom,.account-button,.model-menu-heading,.model-menu p,.code-header,.transit-route,.transit-footer,.transit-leg,.manager-row,.invoice-empty,.table-scroll,.response-content th,.response-content td){border-color:var(--border)}
html[data-theme=dark] .close-settings{background:transparent}
html[data-theme=dark] .close-settings:hover{background:var(--dark-hover)}
html[data-theme=dark] .message.user{background:#2c2c2b;color:var(--dark-text)}
html[data-theme=dark] .user-message-copy{background:transparent;color:var(--dark-text)}
html[data-theme=dark] .message.user.has-attachments{background:transparent}
html[data-theme=dark] .has-attachments .user-message-copy{background:#2c2c2b}
html[data-theme=dark] :is(.avatar,.attachment-file-icon,.user-file-icon,.attachment-chip){background:#343432;color:#d6d3cd;border-color:#42423f}
html[data-theme=dark] :is(.attachment-file-icon>span,.user-file-icon>span){background:#464642;color:#eeece5}
html[data-theme=dark] .avatar-large{border-color:#454541}
html[data-theme=dark] .avatar-large:hover{box-shadow:0 0 0 4px #ffffff0a}
html[data-theme=dark] .user-attachment-grid.single .user-attachment img{background:#222221}
html[data-theme=dark] :is(.response-content :not(pre)>code,.rich-response pre){background:#2c2c2b;color:#e2ded5}
html[data-theme=dark] .response-content blockquote{color:#bcb9b2;border-color:#5b5b55}
html[data-theme=dark] .response-content li::marker{color:#aaa69d}
html[data-theme=dark] :is(.response-content a,.text-button,.transit-footer a,.model-check,.transit-route summary:after){color:var(--blue)}
html[data-theme=dark] .response-action.copied{background:#2b3830;color:#a5d2b1}
html[data-theme=dark] :is(.danger-button,.danger-row>div>strong){color:#e4a39d}
html[data-theme=dark] .danger-button{background:#332827;border-color:#60403c}
html[data-theme=dark] .danger-button:hover{background:#44302d}
html[data-theme=dark] .primary-button{background:#176698;border-color:#176698;color:#fff}
html[data-theme=dark] .primary-button:hover{background:#207aad}
html[data-theme=dark] .send-button{background:#dedbd4;color:#252522}
html[data-theme=dark] .send-button:not(:disabled):hover{background:#f3f0e8}
html[data-theme=dark] .send-button:disabled{background:#363634;color:#8e8c85}
html[data-theme=dark] .send-button.is-stop:after{background:#252522}
html[data-theme=dark] .toggle{background:#50504c}
html[data-theme=dark] .toggle:checked{background:#2475a8}
html[data-theme=dark] :is(.toast,.assistant-tooltip,.skip-link){background:#353532;color:#f0ede5;box-shadow:0 8px 28px #0004}
html[data-theme=dark] .composer::after{background:#242423f5;border-color:#808079;color:#e9e7df}
html[data-theme=dark] .composer.is-dragging{border-color:#85857b;box-shadow:0 0 0 3px #ffffff0c}
html[data-theme=dark] .thinking-word{background-image:linear-gradient(100deg,#99968e 25%,#dedbd3 45%,#99968e 65%)}
html[data-theme=dark] .workspace.mobile-open .sidebar-scrim{background:#0008}
html[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline-color:#82adcb}
html[data-theme=dark] :is(.hljs-keyword,.hljs-selector-tag,.hljs-literal){color:#c8a6d9}
html[data-theme=dark] :is(.hljs-string,.hljs-regexp,.hljs-addition){color:#a5c499}
html[data-theme=dark] :is(.hljs-title,.hljs-section){color:#91bedc}
html[data-theme=dark] :is(.hljs-number,.hljs-symbol,.hljs-attr){color:#d8b58a}
html[data-theme=dark] :is(.hljs-comment,.hljs-quote){color:#96958e}
html[data-theme=dark] :is(.hljs-variable,.hljs-template-variable){color:#d4a8ba}
html[data-theme=dark] :is(.hljs-built_in,.hljs-type){color:#99c4bd}
html[data-theme=dark] .hljs-deletion{color:#e0a09a}
@media(prefers-reduced-motion:reduce){html[data-theme=dark] .thinking-word{-webkit-text-fill-color:#aaa8a4}}
/* Compact messages, inline editing and anchored history actions. */
.thread-heading{display:flex;align-items:center;min-width:0;max-width:36%;gap:3px}
.thread-heading .thread-title{display:block;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.thread-menu-toggle{width:28px;height:28px;flex-shrink:0}.thread-menu-toggle svg{width:17px;height:17px}
.history-row{border-radius:8px}.history-row:hover{background:#edf2f6}
.history-row .history-item:hover{background:transparent}
.history-more{font-size:0;width:29px;height:29px;display:grid;place-items:center;opacity:0;margin-right:4px}
.history-more::before{content:'⋮';font:22px/1 "Segoe UI",sans-serif}
.history-row:hover .history-more,.history-row:focus-within .history-more,.history-more[aria-expanded=true]{opacity:1}
.history-popover{padding:6px;width:216px;border-radius:12px}
.history-menu-action{font-size:14px;padding:10px 11px;gap:12px}
.history-menu-action svg{width:19px;height:19px;stroke-width:1.6}
.history-menu-action.destructive{border-top:1px solid #dce3e8;border-radius:0 0 6px 6px;margin-top:5px;padding-top:13px}
.message-time{font:11px/1.5 "Segoe UI",sans-serif;color:#82909b;white-space:nowrap;cursor:default;opacity:0;transition:opacity 140ms;padding:0 6px}
.message:hover .message-time,.message:focus-within .message-time{opacity:1}
.user-message-actions{align-items:center;gap:2px;width:max-content;max-width:90vw}
.user-message-actions .message-time{order:-1}
.message.user{margin-bottom:22px}
.main.has-messages .compose-area{position:relative;left:auto;top:auto;margin-bottom:18px}
.main.has-messages .composer{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;align-items:end;gap:0 10px;padding:12px 14px;border-radius:17px}
.main.has-messages .composer textarea{grid-column:2;grid-row:1;min-height:28px;max-height:min(360px,42dvh);padding:0;line-height:28px;font-size:16px;overflow-y:auto;transition:height 180ms ease}
.main.has-messages .composer-toolbar{display:contents}
.main.has-messages .attach-button{grid-column:1;grid-row:1;align-self:end;height:28px;width:28px}
.main.has-messages .send-button{grid-column:3;grid-row:1;margin:0;align-self:end;height:30px;width:30px}
.main.has-messages .model-picker{position:absolute;right:0;bottom:0}
.main.has-messages .model-trigger{padding:0 5px;height:24px;font-size:12px}
.main.has-messages .composer-disclaimer{padding-right:165px;text-align:left;min-height:24px;line-height:24px;margin-top:8px;font-size:11px}
.main.has-messages .attachment-list{grid-column:1/-1;grid-row:1}
.main.has-messages .composer:has(.attachment-list:not([hidden])) textarea,.main.has-messages .composer:has(.attachment-list:not([hidden])) .attach-button,.main.has-messages .composer:has(.attachment-list:not([hidden])) .send-button{grid-row:2}
.main.has-messages .compose-mode{position:absolute;right:160px;bottom:0;max-width:100px}
.main.has-messages .composer.multiline textarea{grid-column:1/-1;padding:1px 4px 8px}
.main.has-messages .composer.multiline .attach-button,.main.has-messages .composer.multiline .send-button{grid-row:3}
.scroll-bottom{position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);display:grid;place-items:center;width:34px;height:34px;border:1px solid #d4dce2;border-radius:50%;background:white;color:#526777;box-shadow:0 3px 12px #0001;z-index:4}
.scroll-bottom:hover{background:#edf2f6}.scroll-bottom svg{width:18px;height:18px}
html[data-theme=dark] .history-row:hover{background:#292928}
html[data-theme=dark] .history-row .history-item:hover{background:transparent}
html[data-theme=dark] .history-menu-action.destructive{border-color:#40403c}
html[data-theme=dark] .message-time{color:#aaa69d}
html[data-theme=dark] .scroll-bottom{background:#30302e;border-color:#4a4a45;color:#ddd9d1}
html[data-theme=dark] .scroll-bottom:hover{background:#41413d}
@media(max-width:720px){.thread-heading{max-width:45%}.main.has-messages .chat-header .plan-link{font-size:10px}.main.has-messages .composer-disclaimer{padding-right:115px;line-height:16px;font-size:10px}.main.has-messages .model-trigger{max-width:115px;font-size:11px}.history-more{opacity:1}.message-time{font-size:10px}.main.has-messages .composer{padding:10px;gap:0 7px}}
@media(hover:none){.message-time,.history-more{opacity:1}}
@media(prefers-reduced-motion:reduce){.main.has-messages .composer textarea,.message-time{transition:none}}
.message.user{position:relative;display:flex;flex-direction:column;align-items:flex-end;padding:0;background:transparent;border-radius:0;white-space:normal;margin-bottom:16px}
.message.user .user-message-copy{padding:10px 16px;border-radius:17px;line-height:1.65;min-width:0}
.user-message-actions{position:absolute;right:0;top:100%;display:flex;padding-top:3px;opacity:0;transition:opacity 140ms ease;white-space:normal}
.message.user:hover .user-message-actions,.message.user:focus-within .user-message-actions{opacity:1}
.user-message-actions .response-action{padding:5px;min-width:26px;min-height:26px}
.response-actions{white-space:normal}
.inline-message-editor{width:100%;min-width:min(280px,65vw);white-space:normal}
.message.user.is-editing{width:min(620px,90%);max-width:100%}
.message-edit-input{display:block;width:100%;min-height:48px;max-height:320px;resize:vertical;padding:11px 15px;border:1px solid #6d9dbe;border-radius:15px;background:#f4f8fb;color:#254354;line-height:1.65;font:inherit;outline:none;box-shadow:0 0 0 2px #1677b712}
.message-edit-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:8px}
.message-edit-input:focus-visible,html[data-theme=dark] .message-edit-input:focus-visible{outline:1px solid #80a8c2;outline-offset:0}
.edit-cancel,.edit-save{border:0;border-radius:7px;padding:6px 11px;background:transparent;font-size:13px}
.edit-cancel:hover{background:#eaf0f4}.edit-save{background:#e3edf3;color:#254354}.edit-save:hover{background:#d4e5f0}
.edit-info{position:relative;cursor:help;color:#6c8597;font-size:16px;margin-right:2px;line-height:1}
.edit-info-tip{position:absolute;right:0;bottom:calc(100% + 12px);width:245px;padding:10px 12px;border-radius:8px;background:#243b4a;color:#fff;box-shadow:0 4px 18px #0002;font:12px/1.5 "Segoe UI",sans-serif;visibility:hidden;opacity:0;transition:opacity 140ms;z-index:3}
.edit-info:hover .edit-info-tip,.edit-info:focus .edit-info-tip{visibility:visible;opacity:1}
.history-popover{position:fixed;z-index:30;width:232px;max-width:calc(100vw - 16px);padding:5px;background:#fff;color:#304b5d;border:1px solid #dde5ea;border-radius:11px;box-shadow:0 8px 30px #142c4526;animation:history-menu-in 150ms ease-out;transform-origin:top right;white-space:normal}
.history-menu-action{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:6px;background:none;color:inherit;text-align:left;padding:10px;font-size:13px}
.history-menu-action svg{width:17px;height:17px}.history-menu-action:hover,.history-menu-action:focus-visible{background:#edf2f6}
.history-menu-action.destructive{color:#a44f48}
.popover-note{font-size:13px;line-height:1.6;padding:10px}
.popover-actions{display:flex;justify-content:flex-end;gap:6px;padding:6px}
.history-popover .share-result{margin:5px}.history-popover .share-result button{margin-top:8px}
.history-rename{width:100%;min-width:0;border:1px solid #6d9dbe;border-radius:6px;padding:8px 10px;font:14px "Segoe UI",sans-serif;background:#fff;color:#304b5d}
.assistant-mark,.assistant-mark:hover,.assistant-mark:focus-visible{cursor:default;background:transparent}
html[data-theme=dark] .message.user{background:transparent}
html[data-theme=dark] .message.user .user-message-copy{background:#2c2c2b}
html[data-theme=dark] .history-popover{background:#252524;color:#e9e7e3;border-color:#393937;box-shadow:0 10px 36px #0005}
html[data-theme=dark] .history-menu-action:hover,html[data-theme=dark] .history-menu-action:focus-visible{background:#353533}
html[data-theme=dark] .history-menu-action.destructive{color:#e4a39d}
html[data-theme=dark] .message-edit-input{background:#242423;border-color:#718c9e;box-shadow:0 0 0 2px #82adcb12}
html[data-theme=dark] .edit-save{background:#41413e;color:#eeeae1}
html[data-theme=dark] :is(.edit-save,.edit-cancel):hover{background:#50504b}
html[data-theme=dark] .edit-info{color:#b0b5b7}
html[data-theme=dark] .edit-info-tip{background:#353532;color:#f0ede5}
html[data-theme=dark] .assistant-mark:hover,html[data-theme=dark] .assistant-mark:focus-visible{background:transparent;cursor:default}
@keyframes history-menu-in{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}
@media(min-width:721px){
  .workspace{--sidebar-width:264px;grid-template-columns:var(--sidebar-width) minmax(0,1fr);transition:grid-template-columns 240ms cubic-bezier(.2,.7,.2,1)}
  .sidebar{width:var(--sidebar-width);overflow:hidden;transition:transform 240ms cubic-bezier(.2,.7,.2,1),opacity 180ms,visibility 0s}
  .workspace.sidebar-hidden .sidebar{padding:25px 13px 12px;transform:translateX(-100%);opacity:0;visibility:hidden;transition:transform 240ms cubic-bezier(.2,.7,.2,1),opacity 180ms,visibility 0s 240ms}
}
@media(min-width:1550px){.workspace{--sidebar-width:282px}.workspace.sidebar-hidden .sidebar{padding-top:29px}}
@media(min-width:721px) and (max-width:1050px){.workspace{--sidebar-width:232px}.workspace.sidebar-hidden .sidebar{padding-inline:10px}}
@media(max-width:720px){
  .sidebar{transition:transform 240ms ease,visibility 0s 240ms}
  .workspace.mobile-open .sidebar{transition:transform 240ms ease,visibility 0s}
}
@media(hover:none){.user-message-actions{opacity:1}}
@media(prefers-reduced-motion:reduce){.workspace,.sidebar,.workspace.sidebar-hidden .sidebar,.workspace.mobile-open .sidebar,.user-message-actions{transition:none}.history-popover{animation:none}}
html[lang=en] .composer::after{content:'Drop files here'}html[lang=ru] .composer::after{content:'Перетащите файлы сюда'}
@media(max-width:720px){.extra-message-actions{gap:13px}.history-more{width:36px}.manager-row button{font-size:12px}}

/* Consistent sidebar icon strokes and quiet, tactile feedback. */
.sidebar .nav-button{border-radius:9px;transition:background 180ms,color 180ms,transform 180ms}.sidebar .nav-button>svg{width:20px;height:20px;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;opacity:.8;transition:transform 220ms cubic-bezier(.2,.7,.2,1),opacity 180ms}.sidebar .nav-button:hover>svg,.sidebar .nav-button:focus-visible>svg{opacity:1;transform:translateY(-1px)}.sidebar .nav-button:active{transform:translateY(1px)}.sidebar .nav-button:hover,.sidebar .nav-button:focus-visible{background:#e8eef2;color:#203e52}.sidebar #new-chat:hover>svg{transform:rotate(90deg)}.sidebar #open-documents:hover>svg{transform:rotate(-5deg) translateY(-1px)}.sidebar .settings-entry:hover>svg{transform:rotate(6deg)}html[data-theme=dark] .sidebar .nav-button:hover,html[data-theme=dark] .sidebar .nav-button:focus-visible{background:#30302e;color:#eeeae2}.sidebar #open-documents[aria-expanded=true]{background:#e8eef2;color:#203e52}html[data-theme=dark] .sidebar #open-documents[aria-expanded=true]{background:#30302e;color:#eeeae2}@media(prefers-reduced-motion:reduce){.sidebar .nav-button,.sidebar .nav-button>svg{transition:none}.sidebar .nav-button:hover>svg{transform:none}}
.weather-card{font-family:var(--ui-font,"Segoe UI",sans-serif);border:1px solid var(--border,#dbe5ed);background:linear-gradient(145deg,#f0f8ff,#fff);border-radius:18px;padding:24px;margin:16px 0;width:min(100%,700px);color:var(--navy,#12394e)}.weather-card h3{font-family:inherit;margin:8px 0 0;font-size:23px}.weather-location{font-size:13px;color:var(--muted,#667f90);margin:2px 0 18px}.weather-current{display:flex;align-items:center;gap:18px}.weather-current strong{font-size:48px;font-weight:600;line-height:1.3}.weather-symbol{font-size:42px;color:var(--blue,#007ac2)}.weather-current>span:last-child{font-size:16px}.weather-meta{font-size:13px;color:var(--muted,#667f90)}.weather-days{display:grid;grid-template-columns:repeat(7,minmax(70px,1fr));gap:6px;overflow:auto;padding:18px 0;border-top:1px solid var(--border,#dbe5ed);margin-top:20px}.weather-day{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;text-align:center}.weather-day-icon{font-size:24px;color:var(--blue,#007ac2)}.weather-day strong{font-size:17px}.weather-low,.weather-rain{color:var(--muted,#667f90)}.weather-rain{font-size:10px;white-space:nowrap}.weather-footer{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted,#667f90);border-top:1px solid var(--border,#dbe5ed);padding-top:12px}.weather-footer a{color:var(--blue,#007ac2);white-space:nowrap}html[data-theme=dark] .weather-card{background:linear-gradient(145deg,#20303b,var(--dark-panel,#242423));color:var(--dark-text,#e9e7e3);border-color:var(--border,#333332)}@media(max-width:600px){.weather-card{padding:18px}.weather-current{gap:12px}.weather-current strong{font-size:38px}.weather-footer{flex-direction:column;gap:5px}}
