/* Small integration overrides; the restored UI's styles.css remains byte-identical. */
.brand-home small { font-weight: 400; color: var(--muted); }
.sidebar-footer { --sidebar-icon-column: 36px; --sidebar-label-gap: 8px; --sidebar-row-padding: 7px; }
.page-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace { grid-template-columns: minmax(0, 1fr); }
.topbar { min-width: 0; }
.topbar .icon-btn { flex-shrink: 0; }
.lite-connection { margin-left: auto; font-size: .75rem; color: var(--muted); }
.empty-state p { color: var(--muted); line-height: 1.7; font-size: .9rem; }
.quick-tasks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.quick-tasks button, .artifact-button, .attachment-chip, .dialog-actions button { border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; color: var(--ink); background: var(--panel); cursor: pointer; }
.quick-tasks button:hover, .artifact-button:hover { background: var(--accent-soft); }
/* Restore hit testing for controls outside .composer, whose parent disables it. */
.lite-controls { flex-wrap: wrap; gap: 8px; pointer-events: auto; }
.lite-controls select, .lite-controls input { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 7px; padding: 6px 8px; font-size: .75rem; max-width: 100%; }
.lite-controls input { width: 175px; min-width: 100px; }
.lite-caption { text-align: center; color: var(--muted); font-size: .7rem; margin: 8px 0 0; }
.composer-tools { gap: 8px; }
.composer-area { background: var(--panel); }
.composer-tools .reasoning-trigger { font-size: .75rem; max-width: 150px; overflow: hidden; }
.send-btn:disabled { opacity: .35; cursor: default; }
.artifact-list { padding: 12px 0; font-size: .8rem; color: var(--muted); }
.artifact-list summary { cursor: pointer; padding: 8px 0; }
.artifact-files { display: flex; flex-wrap: wrap; gap: 7px; }
.artifact-button { font-size: .75rem; text-align: left; overflow-wrap: anywhere; }
.attachment-chip { font-size: .75rem; padding: 5px 9px; }
.history-item.active { background: var(--accent-soft); }
.history { display: flex; flex-direction: column; }
.history-item { flex-shrink: 0; }
.history-row { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.history-row .history-item { flex: 1; }
.history-delete { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.history-delete svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.history-delete:hover { color: #bc3737; background: var(--accent-soft); }
.history-delete:disabled { opacity: .35; cursor: default; }
.settings-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--panel); color: var(--ink); }
.settings-dialog::backdrop { background: #15202b66; }
.settings-dialog h2 { margin: 0 0 12px; font-size: 1.25rem; }
.settings-dialog p { color: var(--muted); line-height: 1.6; font-size: .8rem; }
.settings-dialog label { display: block; font-size: .85rem; margin: 16px 0 6px; }
.settings-dialog input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 24px; }
.dialog-actions .primary-action { background: var(--accent); color: white; }
.dialog-actions .danger-action { background: #b83232; border-color: #b83232; color: white; }
.dialog-actions .danger-action:hover { background: #962727; }
.delete-dialog .delete-chat-name { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.manual-page { background: #f7f8f9; color: #263139; max-width: 1000px; padding: 40px 24px; margin: auto; font: 16px/1.7 'Segoe UI', sans-serif; overflow: auto; }
.manual-page pre { white-space: pre-wrap; overflow-wrap: anywhere; background: white; padding: 24px; border: 1px solid #dfe4e7; border-radius: 12px; font: 14px/1.8 Consolas, monospace; }
.manual-page input, .manual-page button { font: inherit; padding: 8px 12px; margin-right: 8px; }
.manual-page input { width: min(70%, 500px); }
@media (max-width: 760px) {
  .lite-connection { display: none; }
  .lite-controls { margin-bottom: 10px; }
  .lite-controls input { flex: 1 1 150px; }
  .composer-tools .reasoning-trigger { max-width: 100px; }
  .app-shell.mobile-open .sidebar { transform: translateX(0); visibility: visible; z-index: 10; }
}
