/* ========================================================================== ChatPane — the per-tab chat layout (.chat column + inputbar wrapper). The chip/tool-row primitives it renders are shared with the migrated tabs and live in app.css. ========================================================================== */ .chat { flex: 1; min-height: 0; display: flex; flex-direction: column; } /* the input-area collapser — a slim always-visible strip between the messages and the input bar. It hides/shows the WHOLE lower part (composer, uploads, Generation Settings, tool row) so a long conversation can be read full-height; when collapsed the messages take the freed space (the .chat column flexes and MessageList fills it). */ .chat-collapser { flex: 0 0 auto; align-self: center; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 3px 14px; margin: 6px auto 4px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: border-color 0.12s ease, color 0.12s ease; } .chat-collapser:hover { border-color: var(--accent); color: var(--accent-ink); } .inputbar { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 14px 26px 16px; } .inputbar-inner { max-width: 860px; margin: 0 auto; } /* clear/save action buttons — ChatPane-only (the migrated tabs use .btn) */ .tool-btn { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: var(--radius-sm); padding: 5px 11px; font-size: 12.5px; transition: border-color 0.12s ease, color 0.12s ease; } .tool-btn:hover { border-color: var(--accent); color: var(--accent-ink); } /* ── Model download status notice bar ─────────────────────────────── Shows below the message list and above the input collapser. Displays whether the selected model is downloaded, needs downloading, or is a remote/cloud model. Also shows an animated indicator when a model is actively downloading during a WS run. ──────────────────────────────────────────────────────────────────── */ .model-notice-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 20px; margin: 0 20px 2px; border-radius: var(--radius-sm); background: var(--bg-elev); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); overflow: hidden; } .model-notice-bar.downloading { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-elev)); animation: notice-pulse 1.8s ease-in-out infinite; } .model-notice-icon { flex: 0 0 auto; font-size: 14px; line-height: 1; } .model-notice-icon.spin { animation: spin 1.2s linear infinite; } .model-notice-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .model-notice-progress-bar { flex: 0 0 80px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .model-notice-progress-fill { display: block; height: 100%; border-radius: 2px; background: var(--accent); animation: progress-indeterminate 1.5s ease-in-out infinite; } @keyframes notice-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes progress-indeterminate { 0% { width: 0%; margin-left: 0%; } 50% { width: 60%; margin-left: 20%; } 100% { width: 0%; margin-left: 100%; } } /* Large model warning (≥20GB) — prominent amber/orange banner */ .model-notice-bar.large-warning { border-color: #d97706; background: color-mix(in srgb, #d97706 10%, var(--bg-elev)); padding: 8px 20px; gap: 10px; align-items: flex-start; } .model-notice-bar.large-warning .model-notice-icon { font-size: 18px; margin-top: 1px; } .model-notice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .model-notice-title { font-weight: 700; font-size: 13px; color: #92400e; } .model-notice-bar.large-warning .model-notice-text { white-space: normal; font-size: 12.5px; } .model-notice-hint { font-size: 11.5px; color: var(--ink-soft); opacity: 0.85; } /* Dark mode: lighter amber tones */ :global(html.dark) .model-notice-bar.large-warning { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 8%, var(--bg-elev)); } :global(html.dark) .model-notice-title { color: #fbbf24; } /* ── Download Now button ───────────────────────────────────────────── */ .dl-btn { flex: 0 0 auto; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: var(--radius-sm); padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.15s ease; } .dl-btn:hover { opacity: 0.85; } .dl-btn.busy { background: var(--accent); border-color: var(--accent); cursor: default; animation: notice-pulse 1.8s ease-in-out infinite; } .dl-btn.done { background: #16a34a; border-color: #16a34a; cursor: default; } .dl-btn.error { background: #dc2626; border-color: #dc2626; cursor: default; max-width: 160px; overflow: hidden; text-overflow: ellipsis; } .dl-progress { flex: 0 0 auto; font-size: 11.5px; color: var(--accent-ink); font-weight: 500; white-space: nowrap; } /* large-warning layout: flex-row to align button right */ .model-notice-bar.large-warning { display: flex; align-items: flex-start; gap: 10px; } .model-notice-bar.large-warning .dl-btn { margin-top: 2px; } /* ── Disk-space status lines ───────────────────────────────────────── */ .disk-warn { display: block; font-size: 12px; font-weight: 600; color: #dc2626; margin-top: 2px; } .disk-ok { display: block; font-size: 11.5px; color: var(--ink-soft); opacity: 0.75; margin-top: 1px; } .dl-btn.disk-blocked { background: #9ca3af; border-color: #9ca3af; cursor: not-allowed; opacity: 0.6; } /* ── not_downloaded layout with body wrapper ─────────────────────── */ .model-notice-bar[role="status"] .model-notice-body { flex: 1; min-width: 0; } .model-notice-bar[role="status"] .model-notice-body .model-notice-text { white-space: normal; }