/* ────────────────────────────────────────────────────────────── Agentux Web Console — single-file stylesheet Theme: emerald on near-black, with cyan and amber accents. Zero dependencies. ────────────────────────────────────────────────────────────── */ :root { --bg: #0a0d12; --bg-2: #11151c; --bg-3: #1a1f2b; --bg-elev: #202633; --border: #2a3140; --border-2: #343d4e; --text: #e6e9ef; --text-2: #a8b1bf; --muted: #6b7383; --emerald: #00ff88; --emerald-d: #00c46a; --cyan: #14d6ff; --amber: #ffb020; --red: #ff5d5d; --purple: #b06bff; --radius: 10px; --shadow: 0 8px 28px rgba(0,0,0,.45); --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } [data-theme="emerald"] { --accent: var(--emerald); --accent-d: var(--emerald-d); --accent-glow: rgba(0,255,136,.18); } [data-theme="amber"] { --accent: var(--amber); --accent-d: #e69514; --accent-glow: rgba(255,176,32,.18); } [data-theme="cyan"] { --accent: var(--cyan); --accent-d: #09a8d6; --accent-glow: rgba(20,214,255,.18); } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; } ::selection { background: var(--accent-glow); } .app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; overflow: hidden; } /* ── Sidebar ─────────────────────────────────────────────── */ .sidebar { background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; gap: 8px; } .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; } .brand-mark { font-size: 26px; line-height: 1; color: var(--accent); font-weight: 700; } .brand-text strong { font-size: 15px; letter-spacing: .14em; display: block; } .muted { color: var(--muted); } .muted.small { font-size: 11px; } .nav { display: flex; flex-direction: column; gap: 2px; } .nav-item { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; color: var(--text-2); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; transition: background .12s, color .12s, border-color .12s; } .nav-item:hover { background: var(--bg-3); color: var(--text); } .nav-item.active { background: var(--accent-glow); color: var(--accent); border-color: var(--border-2); } .nav-icon { font-size: 14px; width: 16px; text-align: center; } .sidebar-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; } /* ── Main ────────────────────────────────────────────────── */ .main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg-2); flex-shrink: 0; } .view-title h1 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; } .view-title .muted { font-size: 12px; } .btn { background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text); font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: background .12s, border-color .12s; } .btn:hover { background: var(--bg-elev); border-color: var(--border-2); } .btn-primary { background: var(--accent); color: #06281a; border-color: var(--accent); font-weight: 600; } .btn-primary:hover { filter: brightness(1.08); } .btn-primary:disabled { opacity: .45; cursor: not-allowed; } .btn-ghost { background: transparent; } .btn-sm { padding: 4px 8px; font-size: 11px; } .view { display: none; flex: 1; overflow: hidden; } .view.active { display: flex; flex-direction: column; min-height: 0; } /* ── Chat ────────────────────────────────────────────────── */ .chat-view { padding: 0; } .messages { flex: 1; overflow-y: auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 14px; } .msg { max-width: 820px; width: 100%; margin: 0; animation: fade .25s ease; } @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } } .msg .who { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); } .msg.user .who { color: var(--cyan); } .msg.assistant .who { color: var(--accent); } .msg.system .who { color: var(--amber); } .msg .body { white-space: pre-wrap; word-break: break-word; line-height: 1.55; font-size: 14px; } .msg .body p { margin: 0 0 8px; } .msg .body p:last-child { margin-bottom: 0; } .msg .body code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; } .msg .body pre { background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; margin: 8px 0; } .msg .body pre code { background: none; padding: 0; } /* Markdown-ish tables */ .msg .body table { border-collapse: collapse; margin: 8px 0; font-size: 13px; } .msg .body th, .msg .body td { border: 1px solid var(--border-2); padding: 5px 10px; text-align: left; } .msg .body th { background: var(--bg-3); } /* Tool card */ .tool-card { background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 8px; padding: 10px 12px; margin: 6px 0; font-size: 13px; } .tool-card .tool-head { display: flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 600; } .tool-card .tool-head .tool-name { font-family: var(--mono); font-size: 12px; } .tool-card .tool-args { color: var(--text-2); margin-top: 4px; font-family: var(--mono); font-size: 11.5px; white-space: pre-wrap; word-break: break-word; } .tool-card .tool-result { margin-top: 6px; color: var(--text-2); font-family: var(--mono); font-size: 11.5px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; } .tool-card .tool-tag { font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; } .tool-card.error { border-left-color: var(--red); } .tool-card.error .tool-head { color: var(--red); } .tool-card.running { border-left-color: var(--cyan); } .tool-card.running .tool-head { color: var(--cyan); } .cursor::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2, start) infinite; font-family: var(--mono); } @keyframes blink { 50% { opacity: 0; } } /* Composer */ .composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--border); background: var(--bg-2); flex-shrink: 0; } .composer textarea { flex: 1; resize: none; max-height: 200px; min-height: 44px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; color: var(--text); font: inherit; font-size: 14px; padding: 11px 14px; line-height: 1.5; outline: none; transition: border-color .12s, box-shadow .12s; } .composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } /* ── Files ───────────────────────────────────────────────── */ .file-browser { display: grid; grid-template-columns: 280px 1fr; height: 100%; overflow: hidden; } .file-tree { overflow-y: auto; padding: 12px; border-right: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; } .file-tree .tree-item { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-tree .tree-item:hover { background: var(--bg-3); } .file-tree .tree-item.active { background: var(--accent-glow); color: var(--accent); } .file-tree .tree-item .indent { width: 14px; display: inline-block; } .file-tree .tree-item .f-icon { width: 16px; text-align: center; color: var(--muted); } .file-viewer { display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .file-viewer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); font-family: var(--mono); font-size: 12px; flex-shrink: 0; } .file-content { flex: 1; margin: 0; padding: 14px; overflow: auto; background: var(--bg); color: var(--text-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre; tab-size: 4; } /* ── Tools ───────────────────────────────────────────────── */ .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px 20px; align-content: start; } .tool-chip { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: border-color .12s, transform .12s; } .tool-chip:hover { border-color: var(--border-2); transform: translateY(-1px); } .tool-chip .tool-chip-name { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; } .tool-chip .tool-chip-desc { color: var(--text-2); font-size: 12px; margin-top: 4px; line-height: 1.45; } /* ── Checkpoints / sessions ──────────────────────────────── */ .checkpoints, .sessions { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; } .cp-card, .sess-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .cp-card .cp-meta, .sess-card .sess-meta { display: flex; flex-direction: column; gap: 2px; } .cp-card .cp-id, .sess-card .sess-id { font-family: var(--mono); font-size: 12px; color: var(--accent); } .cp-card .cp-desc, .sess-card .sess-title { font-size: 13px; } .cp-card .cp-time, .sess-card .sess-time { font-size: 11px; color: var(--muted); } .cp-card .cp-files { font-size: 11px; color: var(--muted); } .empty { color: var(--muted); text-align: center; padding: 40px 20px; font-size: 13px; } /* Scrollbar */ ::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--border); } @media (max-width: 720px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } .file-browser { grid-template-columns: 1fr; } }