:root { color-scheme: dark; /* ink / slate design system */ --bg: #0d1017; --bg-veil: #11151d; --bg-raised: #161b26; --bg-hover: #1c2230; --bg-active: #202739; --border: #232a3a; --border-strong: #2e3750; --text: #e8ebf2; --text-dim: #9aa3b8; --text-faint: #6b7488; --accent: #6c8cff; --accent-strong: #8aa2ff; --accent-soft: rgba(108, 140, 255, 0.14); --accent-line: rgba(108, 140, 255, 0.35); --ok: #34d399; --warn: #fbbf24; --danger: #f87171; --danger-soft: rgba(248, 113, 113, 0.12); --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace; --radius: 10px; --radius-lg: 14px; --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35); --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.45); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; } button:disabled { cursor: not-allowed; opacity: 0.45; } input, textarea, select { font: inherit; color: var(--text); background: var(--bg-veil); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; transition: border-color 0.15s ease, box-shadow 0.15s ease; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } a { color: var(--text-dim); text-decoration: none; } a:hover { color: var(--text); } ::selection { background: var(--accent-soft); } *::-webkit-scrollbar { width: 10px; height: 10px; } *::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; border: 2px solid var(--bg); } *::-webkit-scrollbar-track { background: transparent; } /* ---------- app shell ---------- */ .app-shell { display: flex; height: 100%; overflow: hidden; } .sidebar { width: 272px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--bg-veil); border-right: 1px solid var(--border); } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; } .sidebar-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: 0.01em; } .sidebar-header .brand .logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent) 0%, #9d6cff 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; box-shadow: var(--shadow-1); } .conn-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; } .conn-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; } .conn-dot.open { background: var(--ok); box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); } .conn-dot.connecting { background: var(--warn); } .conn-dot.closed { background: var(--danger); } .new-chat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 24px); margin: 0 12px 10px; padding: 9px; border: 1px solid var(--accent-line); border-radius: var(--radius); text-align: center; color: var(--accent-strong); font-weight: 550; background: var(--accent-soft); transition: background 0.15s ease; } .new-chat-btn:hover { background: rgba(108, 140, 255, 0.22); } .new-chat-btn.active { background: rgba(108, 140, 255, 0.22); } .sidebar-sessions { flex: 1; overflow-y: auto; padding: 2px 12px 12px; } .sidebar-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 12px 6px 6px; } .session-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; } .session-link:hover { background: var(--bg-hover); color: var(--text); } .session-link.active { background: var(--bg-active); color: var(--text); border-color: var(--border); } .session-link.archived { opacity: 0.75; } .session-link .link-label { overflow: hidden; text-overflow: ellipsis; flex: 1; } .sidebar-empty { color: var(--text-faint); font-size: 12.5px; padding: 4px 8px; } .sidebar-footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; } .sidebar-footer .spacer { flex: 1; } .icon-btn { padding: 6px 10px; border-radius: 8px; color: var(--text-dim); font-size: 13px; transition: background 0.12s ease, color 0.12s ease; } .icon-btn:hover { background: var(--bg-hover); color: var(--text); } .icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); } .main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; } .conn-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; background: rgba(251, 191, 36, 0.09); border-bottom: 1px solid rgba(251, 191, 36, 0.25); color: var(--warn); font-size: 12.5px; } /* ---------- sessions view ---------- */ .page { flex: 1; overflow-y: auto; padding: 28px 24px 48px; max-width: 880px; margin: 0 auto; width: 100%; } .page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; } .page h1 { font-size: 19px; margin: 0; font-weight: 650; letter-spacing: -0.01em; } .page-head .count { color: var(--text-faint); font-size: 13px; } .page .empty { color: var(--text-faint); padding: 56px 0; text-align: center; } .session-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 10px; cursor: pointer; background: var(--bg-raised); box-shadow: var(--shadow-1); transition: border-color 0.15s ease, transform 0.1s ease; } .session-card:hover { border-color: var(--border-strong); transform: translateY(-1px); } .session-card .online-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--text-faint); } .session-card .online-dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.55); } .session-card .card-body { flex: 1; min-width: 0; } .session-card .card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; } .session-card .card-meta { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; } .badge { font-size: 10.5px; font-weight: 600; padding: 2.5px 8px; border-radius: 999px; border: 1px solid var(--accent-line); color: var(--accent-strong); background: var(--accent-soft); flex-shrink: 0; letter-spacing: 0.02em; } .badge.neutral { border-color: var(--border); color: var(--text-dim); background: transparent; } .badge.ok { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); background: rgba(52, 211, 153, 0.12); } .badge.warn { border-color: rgba(251, 191, 36, 0.4); color: var(--warn); background: rgba(251, 191, 36, 0.12); } .skeleton { border-radius: var(--radius-lg); background: linear-gradient( 100deg, var(--bg-raised) 40%, var(--bg-hover) 50%, var(--bg-raised) 60% ); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; height: 74px; margin-bottom: 10px; border: 1px solid var(--border); } @keyframes shimmer { to { background-position: -200% 0; } } /* ---------- chat view ---------- */ .chat-layout { flex: 1; display: flex; min-height: 0; } .chat-col { flex: 1; display: flex; flex-direction: column; min-width: 0; } .chat-header { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--bg-veil); min-height: 54px; } .chat-header .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; } .chat-header .sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; } .chat-header .spacer, .task-col .spacer { flex: 1; } .usage-chip { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); border: 1px solid var(--border); padding: 2.5px 8px; border-radius: 999px; white-space: nowrap; } /* model picker (header chip + popover) */ .model-picker { position: relative; } .model-chip { font-size: 12px; font-family: var(--mono); color: var(--text-faint); background: transparent; border: 1px solid var(--border); padding: 2.5px 8px; border-radius: 999px; white-space: nowrap; cursor: pointer; } .model-chip:hover { color: var(--accent-strong); border-color: var(--accent-line); } .model-popover { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 220px; max-height: 60vh; overflow-y: auto; background: var(--bg-veil); border: 1px solid var(--border); border-radius: 10px; padding: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); } .model-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 6px 6px 3px; } .model-option { display: block; width: 100%; text-align: left; font-size: 13px; background: transparent; border: none; border-radius: 7px; color: inherit; padding: 6px 8px; cursor: pointer; } .model-option:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-strong); } .model-option:disabled { opacity: 0.5; cursor: default; } .model-loading { font-size: 12px; color: var(--text-faint); padding: 6px; } /* inline session rename */ .rename-row { display: flex; align-items: center; gap: 4px; min-width: 0; } .rename-input { font-size: 14px; font-weight: 600; color: inherit; background: var(--bg-veil); border: 1px solid var(--accent-line); border-radius: 7px; padding: 3px 8px; min-width: 0; max-width: 260px; } /* daemon/plugin error notices in the stream */ .notice-line { font-size: 12px; color: var(--text-faint); background: rgba(255, 120, 120, 0.08); border: 1px solid rgba(255, 120, 120, 0.25); border-radius: 8px; padding: 6px 10px; margin: 4px 0; white-space: pre-wrap; word-break: break-word; } .chat-stream { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; } .chat-scroll { flex: 1; overflow-y: auto; padding: 22px 18px 30px; scroll-behavior: smooth; } .chat-inner { max-width: 780px; margin: 0 auto; } .load-older { display: flex; justify-content: center; padding: 0 0 14px; } .load-older .btn-secondary { padding: 5px 16px; font-size: 12.5px; } .bubble-row { display: flex; margin-bottom: 16px; position: relative; } .bubble-row.user { justify-content: flex-end; } .bubble { max-width: 86%; padding: 10px 14px; border-radius: var(--radius-lg); white-space: pre-wrap; word-break: break-word; } .bubble-row.user .bubble { background: var(--bg-active); border: 1px solid var(--border-strong); border-bottom-right-radius: 4px; } .bubble-row.assistant .bubble { background: transparent; padding: 0; max-width: 100%; } .bubble-row.system .bubble { color: var(--text-faint); font-size: 13px; font-style: italic; } .msg-copy { position: absolute; top: -6px; right: -4px; opacity: 0; font-size: 11px; color: var(--text-faint); border: 1px solid var(--border); background: var(--bg-raised); border-radius: 6px; padding: 2px 7px; transition: opacity 0.12s ease; } .bubble-row:hover .msg-copy { opacity: 1; } .bubble-row .msg-copy:focus-visible, .bubble-row:focus-within .msg-copy { opacity: 1; } .bubble-row.user .msg-copy { right: auto; left: -4px; } .msg-copy:hover { color: var(--text); border-color: var(--border-strong); } .bubble .tool-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); margin: 10px 0; overflow: hidden; } .bubble .tool-card summary { cursor: pointer; padding: 9px 13px; font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bubble .tool-card summary::-webkit-details-marker { display: none; } .bubble .tool-card summary .tool-name { font-family: var(--mono); font-size: 12px; color: var(--text); flex-shrink: 0; } .bubble .tool-card summary .tool-summary { flex: 1; min-width: 40px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); color: var(--text-dim); } .bubble .tool-card summary .tool-status { flex-shrink: 0; } .bubble .tool-card .tool-body { border-top: 1px solid var(--border); padding: 11px 13px; font-size: 12.5px; color: var(--text-dim); white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow-y: auto; font-family: var(--mono); background: var(--bg-veil); } .tool-status-ok { color: var(--ok); font-weight: 600; } .tool-status-err { color: var(--danger); font-weight: 600; } details.thinking { margin-bottom: 10px; } details.thinking summary { cursor: pointer; font-size: 12px; color: var(--text-faint); list-style: none; user-select: none; } details.thinking summary::-webkit-details-marker { display: none; } details.thinking summary::before { content: "◆ "; font-size: 10px; } details.thinking summary:hover { color: var(--text-dim); } details.thinking .thinking-body { font-size: 12.5px; color: var(--text-faint); border-left: 2px solid var(--border-strong); padding-left: 12px; margin-top: 8px; white-space: pre-wrap; max-height: 280px; overflow-y: auto; } /* ---------- mini-markdown + search highlights ---------- */ .bubble .md-code { white-space: pre; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; color: var(--text-dim); } .bubble code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-active); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; } mark.hit { background: rgba(251, 191, 36, 0.35); color: var(--text); border-radius: 3px; padding: 0 1px; } .msg-current mark.hit { background: var(--warn); color: #221a05; } /* ---------- search overlay ---------- */ .search-bar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 8px; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 7px 5px 14px; box-shadow: var(--shadow-2); } .search-bar input { border: none; background: transparent; padding: 2px 4px; width: 240px; max-width: 46vw; } .search-bar input:focus { border: none; box-shadow: none; } .search-count { font-size: 12px; color: var(--text-faint); font-family: var(--mono); white-space: nowrap; } /* ---------- scroll-to-bottom FAB ---------- */ .scroll-fab { position: absolute; right: 20px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; box-shadow: var(--shadow-2); transition: background 0.15s ease; } .scroll-fab:hover { background: var(--accent-strong); } /* ---------- timestamps ---------- */ .ts { position: absolute; bottom: -14px; font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); } .bubble-row.user .ts { right: 0; } .bubble-row:not(.user) .ts { left: 0; } /* ---------- header ⋯ menu ---------- */ .menu-anchor { position: relative; display: inline-flex; } .chat-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px; } .chat-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text-dim); font-size: 13px; } .chat-menu-item:hover { background: var(--bg-hover); color: var(--text); } .chat-menu-item.danger { color: var(--danger); } .chat-menu-item.danger:hover { background: var(--danger-soft); } .typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 0 4px; } .typing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: typing-bounce 1.2s infinite; } .typing .dot:nth-child(2) { animation-delay: 0.15s; } .typing .dot:nth-child(3) { animation-delay: 0.3s; } @keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } } .composer { border-top: 1px solid var(--border); padding: 14px 18px 16px; background: var(--bg-veil); } .composer-inner { max-width: 780px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; } .composer textarea { flex: 1; resize: none; max-height: 200px; min-height: 44px; border-radius: var(--radius-lg); background: var(--bg-raised); } .composer .send-btn { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 11px 16px; font-weight: 600; transition: background 0.15s ease; } .composer .send-btn:hover { background: var(--accent-strong); } .composer .send-btn:disabled { background: var(--bg-hover); color: var(--text-faint); } .composer .abort-btn { border: 1px solid rgba(248, 113, 113, 0.35); border-radius: var(--radius-lg); padding: 11px 16px; color: var(--danger); } .composer .abort-btn:hover { background: var(--danger-soft); } /* ---------- task panel ---------- */ .task-col { width: 312px; flex-shrink: 0; border-left: 1px solid var(--border); overflow-y: auto; padding: 16px; background: var(--bg-veil); } .task-col h2 { font-size: 11px; margin: 0 0 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; } .task-col .empty { color: var(--text-faint); font-size: 12.5px; padding: 8px 0; } .task-section { margin-bottom: 20px; } .task-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); padding: 10px 12px; } .task-card + .task-card { margin-top: 8px; } .todo-item { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 3.5px 0; } .todo-item .todo-icon { flex-shrink: 0; width: 14px; text-align: center; } .todo-item .todo-icon.pending { color: var(--text-faint); } .todo-item .todo-icon.in-progress { color: var(--warn); } .todo-item .todo-icon.completed { color: var(--ok); } .todo-item.done .todo-text { text-decoration: line-through; color: var(--text-faint); } .todo-item .todo-text { color: var(--text); } .subagent-item { font-size: 13px; padding: 6px 10px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised); margin-bottom: 6px; } .subagent-item .spinner { width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; } @keyframes spin { to { transform: rotate(360deg); } } .subagent-item .done-icon { color: var(--ok); flex-shrink: 0; } .subagent-item .err-icon { color: var(--danger); flex-shrink: 0; } .working-line { font-size: 12px; color: var(--text-faint); padding: 3px 0; display: flex; gap: 6px; align-items: center; font-family: var(--mono); } .task-toggle { display: none; } /* ---------- settings gate ---------- */ .gate { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient( 60% 50% at 50% 0%, rgba(108, 140, 255, 0.07) 0%, transparent 70% ), var(--bg); } .gate-card { width: 100%; max-width: 400px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--bg-raised); padding: 30px; box-shadow: var(--shadow-2); } .gate-card h1 { font-size: 19px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-weight: 650; } .gate-card h1 .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent) 0%, #9d6cff 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; } .gate-card .sub { color: var(--text-faint); font-size: 13px; margin-bottom: 22px; } .gate-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin: 14px 0 5px; } .gate-card input { width: 100%; } .gate-card .gate-error { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 18px; } .gate-card .gate-submit { width: 100%; margin-top: 22px; padding: 11px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; } .gate-card .gate-submit:hover { background: var(--accent-strong); } /* ---------- spawn view ---------- */ .spawn-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; background: var(--bg-raised); box-shadow: var(--shadow-1); } .spawn-card h2 { font-size: 14px; margin: 0 0 12px; font-weight: 650; } .spawn-card input[type="text"], .spawn-card input[type="password"], .spawn-card select { width: 100%; } .spawn-card .row { display: flex; gap: 10px; } .spawn-card .row > * { flex: 1; } .spawn-card .actions { display: flex; gap: 8px; margin-top: 14px; } .btn-primary { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 9px 18px; font-weight: 600; } .btn-primary:hover { background: var(--accent-strong); } .btn-primary:disabled { background: var(--bg-hover); color: var(--text-faint); } .btn-secondary { border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 18px; } .btn-secondary:hover { background: var(--bg-hover); } .error-text { color: var(--danger); font-size: 13px; margin-top: 10px; } .repo-list { max-height: 440px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; } .repo-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; } .repo-item:hover { background: var(--bg-hover); } .repo-item.selected { background: var(--accent-soft); border-color: var(--accent-line); } .repo-item .repo-path { font-weight: 600; font-size: 13.5px; } .repo-item .repo-meta { font-size: 12px; color: var(--text-faint); margin-top: 1px; } .repo-item .prepare-btn { flex-shrink: 0; margin-left: 8px; font-size: 12px; padding: 4px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-raised); color: var(--text-dim); cursor: pointer; } .repo-item .prepare-btn:hover { border-color: var(--accent-line); color: var(--text); } .spawn-job-line { font-size: 13px; color: var(--text-dim); padding: 4px 0; font-family: var(--mono); } .spawn-progress { display: flex; gap: 6px; margin: 10px 0 4px; } .spawn-progress .step { height: 4px; flex: 1; border-radius: 2px; background: var(--border); transition: background 0.3s ease; } .spawn-progress .step.done { background: var(--accent); } .spawn-progress .step.current { background: var(--accent); opacity: 0.45; animation: pulse-step 1.2s infinite; } @keyframes pulse-step { 50% { opacity: 0.2; } } /* ---------- error boundary ---------- */ .err-boundary { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--text-dim); padding: 40px; text-align: center; } .err-boundary h2 { color: var(--text); margin: 0; } .err-boundary pre { font-size: 12px; color: var(--text-faint); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; max-width: 560px; max-height: 200px; overflow: auto; text-align: left; } /* ---------- toasts ---------- */ .toasts { position: fixed; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(360px, calc(100vw - 28px)); } .toast { background: var(--bg-raised); border: 1px solid var(--border-strong); color: var(--text); padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow-2); font-size: 13.5px; animation: toast-in 0.18s ease; } @keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } } /* ---------- mobile ---------- */ @media (max-width: 860px) { .task-col { display: none; } .task-toggle { display: inline-flex; align-items: center; } .mobile-tasks { border-bottom: 1px solid var(--border); padding: 12px 16px; background: var(--bg-raised); } } @media (max-width: 700px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform 0.22s ease; width: 288px; box-shadow: var(--shadow-2); } .sidebar.open { transform: translateX(0); } .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; backdrop-filter: blur(2px); } .menu-btn { display: inline-flex !important; } .page { padding: 16px 14px 40px; } .chat-scroll { padding: 16px 12px 24px; } .bubble { max-width: 94%; } .usage-chip { display: none; } .toasts { top: auto; bottom: 14px; right: 14px; } } @media (max-width: 400px) { body { font-size: 14px; } .sidebar { width: 100%; } .gate-card { padding: 22px; } .session-card { padding: 12px; gap: 10px; } .composer textarea { font-size: 16px; } /* prevent iOS zoom */ .composer .send-btn { padding: 11px 13px; } } /* ---------- busy activity pip ---------- */ .busy-pip { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--accent); animation: busy-pulse 1.1s ease-in-out infinite; vertical-align: middle; } @keyframes busy-pulse { 0%, 100% { transform: scale(0.55); opacity: 0.45; box-shadow: 0 0 0 0 rgba(108, 140, 255, 0.5); } 50% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 5px rgba(108, 140, 255, 0); } } /* ---------- pretty tool args ---------- */ .tool-args { margin-bottom: 10px; } .tool-arg { margin-bottom: 6px; } .arg-k { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; } .arg-v { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12.5px; color: var(--text); } /* ---------- edit/write diff ---------- */ .tool-diffs { margin-bottom: 10px; } .diff { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; line-height: 1.5; background: var(--bg-veil); border: 1px solid var(--border); border-radius: 6px; padding: 6px 0; overflow-x: auto; white-space: pre; } .diff-line { display: block; padding: 0 10px; } .diff-del { color: var(--danger); background: var(--danger-soft); } .diff-add { color: var(--ok); background: rgba(52, 211, 153, 0.08); } .diff-ctx { color: var(--text-faint); }