:root{--feedback-danger-text:#ffb5ba;--feedback-danger-muted:#e7b9bc;--feedback-danger-border:#7d3c41;--feedback-danger-background:#25191b;--feedback-warning-text:#f2d7a5;--feedback-warning-border:#8b672c;--feedback-warning-background:#241f18;--feedback-muted-text:#aeb4be;--feedback-muted-border:#596171;--feedback-muted-background:#181b20;--overlay-on-dark:#fff;--overlay-control-background:rgba(32,32,32,.8)}
html[data-theme="light"]{--feedback-danger-text:#b4232d;--feedback-danger-muted:#8c2f39;--feedback-danger-border:#d1242f;--feedback-danger-background:#fff1f2;--feedback-warning-text:#7a4b00;--feedback-warning-border:#d4a72c;--feedback-warning-background:#fff8c5;--feedback-muted-text:#57606a;--feedback-muted-border:#afb8c1;--feedback-muted-background:#f6f8fa}

.app-shell :is(.account-error,.account-login-rate-limit,.thread-state.error,.project-chat-error,.chat-transition-error,.danger-menuitem,.settings-error,.change-sheet-state.error,.usage-trend-empty.error,.notification-center-error,.activity-error,.send-error,.queued-action-error,.activity-result-error,.activity-exit-code,.workspace-attach-sheet .error){color:var(--feedback-danger-text)}
.connection-card .connection-error{color:var(--feedback-danger-text)}
html[data-theme="light"] .app-shell :is(.account-error,.account-login-rate-limit,.thread-state.error,.project-chat-error,.chat-transition-error,.danger-menuitem,.settings-error,.change-sheet-state.error,.usage-trend-empty.error,.notification-center-error,.activity-error,.send-error,.queued-action-error,.activity-result-error,.activity-exit-code,.workspace-attach-sheet .error){color:var(--feedback-danger-text)!important}
html[data-theme="light"] .connection-card .connection-error{color:var(--feedback-danger-text)!important}

.app-shell .conversation-open-error{border:1px solid var(--feedback-danger-border);background:var(--feedback-danger-background);color:var(--feedback-danger-text)}
.app-shell .conversation-open-error span{color:var(--feedback-danger-muted)}
html[data-theme="light"] .app-shell .conversation-open-error{border-color:var(--feedback-danger-border)!important;background:var(--feedback-danger-background)!important;background-color:var(--feedback-danger-background)!important;color:var(--feedback-danger-text)!important}
html[data-theme="light"] .app-shell .conversation-open-error span{color:var(--feedback-danger-muted)!important}

.app-shell .status-connection-error{border-color:var(--feedback-danger-border);background:var(--feedback-danger-background);color:var(--feedback-danger-text)}
.app-shell .approval-card{border-color:var(--feedback-warning-border);background:var(--feedback-warning-background);color:var(--feedback-warning-text)}
.app-shell .approval-card :is(span,p){color:var(--feedback-warning-text)}
html[data-theme="light"] .app-shell .approval-card{border-color:var(--feedback-warning-border)!important;background:var(--feedback-warning-background)!important;background-color:var(--feedback-warning-background)!important;color:var(--feedback-warning-text)!important}
html[data-theme="light"] .app-shell .approval-card :is(span,p){color:var(--feedback-warning-text)!important}
html[data-theme="light"] .app-shell .status-connection-error{border-color:var(--feedback-danger-border)!important;background:var(--feedback-danger-background)!important;background-color:var(--feedback-danger-background)!important;color:var(--feedback-danger-text)!important}

.app-shell .markdown-unavailable-image{border-color:var(--feedback-muted-border);background:var(--feedback-muted-background);color:var(--feedback-muted-text)}
.app-shell .markdown-unavailable-link{color:var(--feedback-muted-text)}
html[data-theme="light"] .app-shell .markdown-unavailable-image{border-color:var(--feedback-muted-border)!important;background:var(--feedback-muted-background)!important;background-color:var(--feedback-muted-background)!important;color:var(--feedback-muted-text)!important}
html[data-theme="light"] .app-shell .markdown-unavailable-link{color:var(--feedback-muted-text)!important}
html[data-theme="light"] .app-shell .usage-credit-expiry.warning{color:var(--feedback-warning-text)!important}

html[data-theme="light"] .app-shell :is(.chat-changes,.file-row){background:#fff!important;background-color:#fff!important}
html[data-theme="light"] .app-shell :is(.chat-changes>summary,.file-row small){color:#57606a!important}
html[data-theme="light"] .app-shell .project-create-popover{background:#fff!important;background-color:#fff!important}
html[data-theme="light"] .app-shell .settings-choice .settings-select-wrap{background:#eaeef2!important;background-color:#eaeef2!important}

html[data-theme="light"] .app-shell :is(.image-gallery-close,.image-gallery-nav,.activity-image-lightbox-close){border-color:#4a4f59!important;background:var(--overlay-control-background)!important;background-color:var(--overlay-control-background)!important;color:var(--overlay-on-dark)!important}
html[data-theme="light"] .app-shell :is(.image-gallery-count,.image-gallery-error){color:var(--overlay-on-dark)!important}
