/* Colour tokens live in tokens.css (dark default, light under * [data-theme='light']). */ * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; padding: 0; overflow: hidden; background: var(--bg-0); color: var(--text-0); font-family: 'Inter', system-ui, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; user-select: none; } .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; } input, textarea { font: inherit; color: inherit; background: none; border: 0; outline: none; } /* ===== Desktop ===== */ .desktop { position: fixed; inset: 0; background: radial-gradient(1200px 800px at 20% 10%, var(--glow-1), transparent 60%), radial-gradient(1000px 700px at 85% 90%, var(--glow-2), transparent 60%), linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%); /* `clip`, not `hidden`: hidden still makes this a scroll container, * and any scrollIntoView()/focus() inside a window that hangs off * the edge (chat autoscroll on every new message!) scrolled the * WHOLE desktop sideways — every window shifted, none of them * "moved" in state, and the layout looked broken until a reload. * Measured 2026-08-31: a drag to x=2300 landed at 2057 and the two * untouched windows moved by the same 243px. clip forbids scrolling * entirely. */ overflow: clip; } .desktop::before { content: ""; position: absolute; inset: -2px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), rgba(0,0,0,0.3)); } .desktop::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px); background-size: 240px 240px; pointer-events: none; mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), rgba(0,0,0,0.2)); } /* A custom theme (web/src/lib/theme.ts, docs/web.md "Themes"): its * wallpaper takes the place of the gradient under the glows, and * "grid": false hides both grids. */ :root[data-wallpaper] .desktop { background: radial-gradient(1200px 800px at 20% 10%, var(--glow-1), transparent 60%), radial-gradient(1000px 700px at 85% 90%, var(--glow-2), transparent 60%), var(--desktop-wallpaper) center / cover no-repeat, var(--bg-0); } /* On a wallpaper the labels under the icons are white with a shadow, * as on a desktop OS: the theme's grey text can sit at the same * brightness as the picture, white with a shadow reads on any part of * it. (The app label's colour is set inline, hence !important.) */ :root[data-wallpaper] .app-icon-label, :root[data-wallpaper] .agent-icon-label { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,0.8); } :root[data-wallpaper] .agent-icon-sub { color: rgba(255,255,255,0.75); text-shadow: 0 1px 3px rgba(0,0,0,0.8); } :root[data-grid='off'] .desktop::before, :root[data-grid='off'] .desktop::after { display: none; } .desktop-area { position: absolute; inset: 0 0 56px 0; /* Own stacking context: every window's z-index (10, 11, … as they * get focused) competes only with its siblings in here. The taskbar * below is a sibling of THIS layer with z-index 2, so no window can * ever paint over it — before 2026-08-31 a focused window that had * slid under the taskbar covered the Arrange button that would have * fixed the layout. */ z-index: 1; /* Never a scroll container either — see .desktop. */ overflow: clip; } /* ===== Desktop icons (agents + apps) ===== * Icons sit on a grid spanning the whole desktop surface, not a fixed * left column — any cell is a valid home, left edge to right edge. * Cell metrics are mirrored in hooks/useDesktopIcons.ts * (CELL_W / CELL_H / GRID_PAD); change them together. * * The default layout fills the leftmost column top-to-bottom, so an * untouched desktop looks exactly like the original dock. * * `overflow: auto` only ever engages in the pathological case of more * icons than visible cells; it is what guarantees an icon stays * reachable on a very small viewport instead of being clipped away. */ .desktop-icons { position: absolute; inset: 0; z-index: 5; overflow: auto; } .desktop-icon { position: absolute; display: flex; justify-content: center; align-items: flex-start; /* Without this a touch drag scrolls the desktop instead of moving * the icon, because the browser claims the gesture first. */ touch-action: none; /* Icons glide to their new cell after a swap. */ transition: left 0.16s ease, top 0.16s ease; } /* The grabbed icon — lifted out of the grid and riding the cursor. * Rendered via portal on , so this z-index competes with the * windows (10+) and the taskbar, not with the z:5 icon layer. * Transition off: it has to track the pointer 1:1, not lag behind it. */ .desktop-icon.in-hand { z-index: 5000; transition: none; pointer-events: none; transform: scale(1.1); filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55)); cursor: grabbing; } /* The icon that a drop would trade places with — dimmed so the swap is * obvious before releasing. */ .desktop-icon.swap-partner { opacity: 0.45; } .desktop-icons.dragging { cursor: grabbing; /* Stop the drag from smearing a text selection across icon labels. */ user-select: none; } /* Outline of the cell the icon would land in. */ .desktop-drop-target { position: absolute; border-radius: 12px; border: 1px dashed var(--accent-dim); background: var(--accent-glow); pointer-events: none; } /* Occupied cell: the drop swaps the two icons instead of just parking * this one, so it reads differently. */ .desktop-drop-target.swap { border-style: solid; border-color: var(--warn); background: rgba(245, 185, 66, 0.12); } .desktop-icons-status { position: absolute; padding: 8px; font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--text-3); } .desktop-icons-status.error { color: var(--danger); } .agent-icon { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: background 0.15s, transform 0.15s; text-align: center; } .agent-icon:hover { background: rgba(var(--accent-rgb), 0.06); } .agent-icon.active { background: rgba(var(--accent-rgb), 0.10); } .agent-icon-glyph { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; position: relative; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 1px 0 rgba(var(--tint-rgb), 0.04); } .agent-icon-glyph .status-dot { position: absolute; bottom: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg-0); background: var(--text-3); } .agent-icon-glyph .status-dot.online { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); } .agent-icon-glyph .status-dot.busy { background: var(--warn); } .agent-icon-label { font-size: 11px; color: var(--text-1); font-weight: 500; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,0.6); } .agent-icon-sub { font-size: 9px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; } /* ===== Window ===== */ .window { position: absolute; background: rgba(var(--bg-1-rgb), 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-window); display: flex; flex-direction: column; min-width: 320px; min-height: 200px; overflow: hidden; transition: box-shadow 0.15s, border-color 0.15s; } .window.focused { border-color: var(--line-2); box-shadow: var(--shadow-window), 0 0 0 1px rgba(var(--accent-rgb), 0.12), 0 0 40px -10px var(--accent-glow); } .window.minimized { display: none; } .window.maximized { border-radius: 0; border-color: transparent; } .window-titlebar { height: 36px; display: flex; align-items: center; padding: 0 10px; gap: 8px; background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.02), transparent); border-bottom: 1px solid var(--line); cursor: grab; flex-shrink: 0; } .window-titlebar:active { cursor: grabbing; } .window-controls { display: flex; gap: 6px; align-items: center; } .window-btn { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.3); cursor: pointer; transition: filter 0.15s; } .window-btn:hover { filter: brightness(1.3); } .window-btn.close { background: #ff5f57; } .window-btn.min { background: #febc2e; } .window-btn.max { background: #28c840; } .window-title { flex: 1; text-align: center; font-size: 12px; color: var(--text-1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; gap: 8px; } .window-title-icon { width: 16px; height: 16px; display: grid; place-items: center; color: var(--accent); } .window-title-meta { color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: 11px; } .window-spacer { width: 52px; } .window-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; position: relative; } .window-resize { position: absolute; width: 14px; height: 14px; right: 0; bottom: 0; cursor: nwse-resize; z-index: 2; } .window-resize::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); border-bottom-right-radius: 2px; } /* ===== Taskbar ===== */ .taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; /* Always above the window layer (.desktop-area, z-index 1). */ z-index: 2; background: rgba(var(--bg-0-rgb), 0.85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 12px; z-index: 100; } .taskbar-logo { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; border: 0; border-right: 1px solid var(--line); height: 36px; margin-right: 4px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 6px 0 0 6px; } .taskbar-logo:hover, .taskbar-logo.open { background: rgba(var(--tint-rgb), 0.06); } .taskbar-logo:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; } /* "Show desktop" — at the right end, after the clock. */ .taskbar-show-desktop { margin-left: 6px; padding: 0 9px; } .taskbar-show-desktop.shown { color: var(--accent); background: rgba(var(--accent-rgb), 0.12); } /* ===== Start menu (koala) ===== */ .start-menu { position: fixed; left: 8px; bottom: 62px; z-index: 9000; width: 540px; max-width: calc(100vw - 16px); max-height: min(600px, calc(100vh - 80px)); display: flex; flex-direction: column; border-radius: 10px; background: var(--bg-1, #1c1d22); border: 1px solid rgba(var(--tint-rgb), 0.1); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45); color: var(--text-0); font-size: 12px; overflow: hidden; } .start-search { display: flex; align-items: center; gap: 8px; margin: 10px 10px 6px; padding: 0 10px; height: 32px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-3); } .start-search:focus-within { border-color: var(--accent-dim); } .start-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-0); font: inherit; font-size: 13px; } .start-columns { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; flex: 1; } .start-column { overflow-y: auto; padding: 4px 6px 8px; min-height: 0; } .start-column + .start-column { border-left: 1px solid var(--line); } .start-title { padding: 6px 8px 4px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); } .start-empty { padding: 6px 8px; color: var(--text-3); } .start-row { display: flex; align-items: stretch; border-radius: 6px; } .start-row:hover, .start-row.selected { background: rgba(var(--tint-rgb), 0.06); } .start-row.selected { box-shadow: inset 2px 0 0 var(--accent); } .start-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; } .start-row-icon { width: 18px; display: inline-grid; place-items: center; font-size: 14px; color: var(--text-1); flex: none; } .start-row-name { white-space: nowrap; } .start-row-extra { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11px; } .start-row-off { color: var(--text-3); display: inline-flex; } .start-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; } .start-dot.working { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); } .start-dot.unread { background: var(--warn); } .start-dot.open { background: var(--text-3); margin-left: auto; } .start-badge { min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--warn); color: #000; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; } .start-row-side { flex: none; width: 28px; display: grid; place-items: center; border: 0; border-radius: 0 6px 6px 0; background: transparent; color: var(--text-3); cursor: pointer; } .start-row-side:hover { color: var(--text-0); background: rgba(var(--tint-rgb), 0.08); } .start-pin.on { color: var(--accent); } .start-footer { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.02); } .start-footer-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-1); font: inherit; cursor: pointer; } .start-footer-item:hover { background: rgba(var(--tint-rgb), 0.06); color: var(--text-0); } .taskbar-logo-mark { /* the koala of somora.ai on its own — no tile behind it */ width: 34px; height: 28px; display: grid; place-items: center; } .taskbar-logo-text { font-weight: 600; font-size: 13px; letter-spacing: 0.02em; } .taskbar-logo-sub { font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; } .taskbar-windows { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; } .taskbar-windows::-webkit-scrollbar { display: none; } .taskbar-window { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.02); color: var(--text-1); font-size: 12px; white-space: nowrap; cursor: pointer; transition: all 0.15s; max-width: 220px; } .taskbar-window:hover { background: rgba(var(--accent-rgb), 0.05); color: var(--text-0); } .taskbar-window.focused { border-color: var(--accent-dim); background: rgba(var(--accent-rgb), 0.08); color: var(--text-0); } .taskbar-window.minimized { opacity: 0.55; } .taskbar-window-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; } .taskbar-window.focused .taskbar-window-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); } .taskbar-window-title { overflow: hidden; text-overflow: ellipsis; } .taskbar-tools { display: flex; align-items: center; gap: 2px; height: 36px; padding-right: 10px; border-right: 1px solid var(--line); } /* icon-only buttons in the tools group */ .taskbar-tools .taskbar-tool { padding: 0 9px; position: relative; } .taskbar-tool { height: 36px; padding: 0 10px; border-radius: 7px; display: flex; align-items: center; gap: 6px; color: var(--text-1); font-size: 11px; transition: background 0.15s; } .taskbar-tool:hover { background: rgba(var(--tint-rgb), 0.04); color: var(--text-0); } .taskbar-gear { position: relative; display: flex; align-items: center; } .taskbar-menu { position: absolute; bottom: 42px; left: 0; min-width: 220px; padding: 6px; border-radius: 9px; background: var(--bg-1, #1c1d22); border: 1px solid rgba(var(--tint-rgb), 0.08); box-shadow: 0 8px 28px rgba(0,0,0,0.45); display: flex; flex-direction: column; gap: 2px; z-index: 10; } .taskbar-menu-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; color: var(--text-0); font-size: 12px; text-align: left; background: transparent; border: 0; cursor: pointer; } .taskbar-menu-item:hover:not(:disabled) { background: rgba(var(--tint-rgb), 0.06); } .taskbar-menu-item:disabled { opacity: 0.45; cursor: default; } .taskbar-menu-hint { font-style: normal; color: var(--warn, #e0a94a); } .taskbar-gear-alert { position: absolute; top: 2px; right: 1px; min-width: 12px; height: 12px; border-radius: 6px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; line-height: 12px; text-align: center; } .taskbar-menu-problem { display: flex; flex-direction: column; gap: 3px; max-width: 420px; padding: 8px 9px; margin-bottom: 4px; border-radius: 6px; background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); color: var(--text-0); font-size: 12px; } .taskbar-menu-problem strong { color: var(--danger); } .taskbar-menu-problem span { color: var(--text-1); font-size: 11px; } .taskbar-menu-problem pre { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-1); } .taskbar-menu-meta { padding: 5px 9px 2px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-2); border-top: 1px solid rgba(var(--tint-rgb), 0.06); margin-top: 3px; } .taskbar-toast { max-width: 46vw; padding: 0 10px; height: 28px; display: flex; align-items: center; border-radius: 7px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(var(--tint-rgb), 0.05); color: var(--text-0); } .taskbar-toast-warn { color: var(--warn, #e0a94a); } .taskbar-toast-error { color: var(--danger, #e05a5a); } .taskbar-stat { display: flex; flex-direction: column; justify-content: center; height: 36px; padding-left: 12px; border-left: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.2; color: var(--text-2); text-align: right; } .taskbar-stat b { color: var(--text-0); font-weight: 500; display: inline-block; min-width: 4ch; /* reserves room for "100%" so 1/2/3-digit values don't reflow the row */ text-align: right; font-variant-numeric: tabular-nums; } .taskbar-clock { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-0); padding: 0 4px 0 12px; border-left: 1px solid var(--line); margin-left: 4px; height: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; } .taskbar-clock small { font-size: 10px; color: var(--text-3); } /* ===== Context menu ===== */ .ctx-menu { position: fixed; background: rgba(17,23,34,0.97); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; min-width: 220px; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.08); z-index: 1000; font-size: 12px; } .ctx-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 5px; color: var(--text-1); cursor: pointer; transition: background 0.1s; } .ctx-item:hover { background: rgba(var(--accent-rgb), 0.10); color: var(--text-0); } .ctx-item.disabled { opacity: 0.4; pointer-events: none; } .ctx-item-key { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-3); } .ctx-sep { height: 1px; background: var(--line); margin: 4px 6px; } .ctx-header { padding: 6px 10px 4px; font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; } .ctx-item-meta { color: var(--text-3); font-size: 10px; font-family: 'JetBrains Mono', monospace; } /* ===== Login ===== */ .login { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(800px 600px at 50% 40%, rgba(var(--accent-rgb), 0.07), transparent 60%), linear-gradient(180deg, var(--bg-0), var(--bg-1)); } .login::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), rgba(0,0,0,0.1)); } .login-card { position: relative; width: 380px; background: rgba(var(--bg-1-rgb), 0.92); border: 1px solid var(--line); border-radius: 14px; padding: 36px 32px 28px; text-align: center; box-shadow: var(--shadow-window), 0 0 60px -10px var(--accent-glow); } .login-mark { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--accent), var(--accent-dim)); display: grid; place-items: center; color: var(--bg-0); box-shadow: 0 0 30px var(--accent-glow); } .login-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; } .login-sub { color: var(--text-2); font-size: 12px; margin-bottom: 24px; font-family: 'JetBrains Mono', monospace; } .login-field { display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: rgba(var(--tint-rgb), 0.02); text-align: left; gap: 10px; transition: border-color 0.15s; } .login-field:focus-within { border-color: var(--accent-dim); } .login-field input { flex: 1; } .login-field input::placeholder { color: var(--text-3); } .login-btn { width: 100%; height: 40px; border-radius: 8px; background: var(--accent); color: var(--bg-0); font-weight: 600; margin-top: 8px; transition: filter 0.15s; } .login-btn:hover { filter: brightness(1.1); } .login-foot { margin-top: 18px; display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; } .login-foot .ok { color: var(--ok); } /* ===== Chat window ===== */ .chat { display: flex; flex-direction: column; height: 100%; font-size: 13px; position: relative; } .chat::before { /* agent-color tinted top wash + left rail */ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--agent-tint, transparent) 0%, transparent 140px), linear-gradient(90deg, var(--agent-tint, transparent) 0%, transparent 6px); } .chat.window-tinted { /* nothing extra — handled by ::before */ } .window.agent-tinted.focused { box-shadow: var(--shadow-window), 0 0 0 1px var(--agent-color, var(--accent-dim)), 0 0 50px -10px var(--agent-glow); } .window.agent-tinted .window-titlebar { background: linear-gradient(180deg, var(--agent-tint-strong, rgba(var(--tint-rgb), 0.02)), transparent); border-bottom-color: var(--agent-line, var(--line)); } .chat-header { padding: 12px 16px; border-bottom: 1px solid var(--agent-line, var(--line)); display: flex; align-items: center; gap: 12px; flex-shrink: 0; position: relative; } .chat-avatar { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.3); } .chat-avatar.agent-bg { background: var(--agent-accent, linear-gradient(180deg, var(--bg-3), var(--bg-2))); border-color: rgba(var(--tint-rgb), 0.08); } .chat-header-info { flex: 1; min-width: 0; } .chat-header-name { font-weight: 600; font-size: 13px; } .chat-header-meta { font-size: 11px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; } .chat-header-actions { display: flex; gap: 4px; } .chat-icon-btn { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); transition: background 0.15s, color 0.15s; } .chat-icon-btn:hover { background: rgba(var(--tint-rgb), 0.05); color: var(--text-0); } .chat-icon-btn:disabled { opacity: 0.35; cursor: default; } .chat-icon-btn:disabled:hover { background: none; color: var(--text-2); } /* Per-agent chat text size. The two magnifiers bracket a percentage * readout that only appears off-default and doubles as the reset. */ .chat-zoom { display: flex; align-items: center; gap: 2px; } /* Assistant bubble: answered by the persona's fallback model. */ .fallback-chip { display: inline-block; margin-top: 6px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--warn); color: var(--warn); font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 16px; cursor: help; } .chat-zoom-level { min-width: 34px; height: 28px; padding: 0 4px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-2); transition: background 0.15s, color 0.15s; } .chat-zoom-level:hover { background: rgba(var(--tint-rgb), 0.05); color: var(--text-0); } .chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; user-select: text; } .chat-msg { display: flex; gap: 10px; } .chat-msg.user { flex-direction: row-reverse; } .chat-msg-avatar { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; background: var(--bg-3); border: 1px solid var(--line); } .chat-msg-bubble { max-width: 75%; /* `min-width: 0` lets the bubble shrink below its content's intrinsic * width so wrap-rules below can actually break long URLs/paths. * Without it `max-width: 75%` resolves against an oversized intrinsic * width and a single long URL pushes the bubble out of the chat * column. */ min-width: 0; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); line-height: 1.5; font-size: 13px; /* Long URLs, filesystem paths, and inline code can be > 100 chars * with no whitespace — `anywhere` breaks them inside the bubble * instead of forcing horizontal overflow. Ada 2026-05-13 polish * report; the 2026-05-13 link visibility report. */ overflow-wrap: anywhere; word-break: break-word; /* Explicit re-assert of `user-select: text` so descendants always * pick up the selectable behavior. The global `html, body, #root` * rule sets it to `none` (chrome stays unselectable so window-frame * drags don't accidentally mark text), and the `.chat-body` rule * re-enables it for the message area. Setting it again here is * belt-and-suspenders: some browsers don't propagate the cascade * reliably through deeply nested react-markdown children, and we've * seen "Geduldsspiel"-style sporadic failures pre-fix. Report: * 2026-05-15_web-client-text-selection-broken.md */ -webkit-user-select: text; user-select: text; } .chat-msg-bubble * { -webkit-user-select: inherit; user-select: inherit; } .chat-msg.agent .chat-msg-bubble { background: var(--agent-tint-strong, var(--bg-2)); border-color: var(--agent-line, var(--line)); } .chat-msg.user .chat-msg-bubble { background: rgba(var(--tint-rgb), 0.04); border-color: var(--line-2); color: var(--text-0); } /* New per-message wrapper (.chat-msg-row) introduced with the A2A * pass: column-layout container that holds the avatar+bubble row, * the hover-only action cluster ABOVE the bubble, and the always-on * timestamp BELOW. The bubble's own max-width: 75% moves up to the * meta-col so the timestamp/actions naturally align to the bubble's * right edge regardless of left/right alignment. */ .chat-msg-row { display: block; } .chat-msg-row .chat-msg { display: flex; gap: 10px; align-items: flex-start; } .chat-msg-row.user .chat-msg, .chat-msg-row.peer-agent .chat-msg { flex-direction: row-reverse; } .chat-msg-meta-col { display: flex; flex-direction: column; max-width: 75%; min-width: 0; align-items: stretch; } /* Inside the new column the bubble doesn't enforce its own 75% cap * anymore — the column does. Without this the bubble's own 75% rule * compounds with the col's 75% and yields ~56% effective max. */ .chat-msg-meta-col > .chat-msg-bubble { max-width: 100%; } /* Variant tints that used to live on .chat-msg.{variant} — the * variant class moved up to .chat-msg-row, so re-scope. */ .chat-msg-row.agent .chat-msg-bubble { background: var(--agent-tint-strong, var(--bg-2)); border-color: var(--agent-line, var(--line)); } .chat-msg-row.user .chat-msg-bubble { background: rgba(var(--tint-rgb), 0.04); border-color: var(--line-2); color: var(--text-0); } /* Peer-agent (A2A inbound) bubble: base neutral; inline style on * the element overrides with the SENDER agent's color tint — * `${color}1f` background, `${color}30` border. Visual goal: looks * like an assistant bubble (it IS an agent talking), but positioned * on the right because it's INCOMING to this session. */ .chat-msg-row.peer-agent .chat-msg-bubble { background: var(--bg-2); border-color: var(--line); color: var(--text-0); } /* Always-on timestamp below the bubble, right-aligned at the * bubble's right edge (= col's right edge). */ .chat-msg-time { align-self: flex-end; font-size: 10px; color: var(--text-3); margin-top: 3px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; } /* A2A origin caption ("nova · craftbox") — left of the time on a * peer bubble whose sender wrote from a non-main session. */ .chat-msg-origin { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: normal; letter-spacing: 0; } /* Queued marker — sits LEFT of the time, same line, dimmed. Only * present on optimistic user bubbles whose turnId received a * turn_queued SSE event before the matching user_message event. * Inline Hourglass icon (lucide, line-art) keeps the same visual * language as the Sentinel Bell in .sentinel-divider above. */ .chat-msg-queued { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-style: italic; } .chat-msg-queued > svg { opacity: 0.7; } .chat-msg-queued-sep { color: var(--line-2); font-style: normal; } /* Steering marker — same dim family as "queued"; the bolt says the * message went into the running turn instead of waiting behind it. */ .chat-msg-steer > svg { opacity: 0.85; } /* Composer toggle while a turn runs: steer the next message into it * (pressed) or queue it (unpressed). */ /* Steer / queue toggle next to Send while a turn runs. A labelled pill, * not a bare icon: "queue" (off — the message waits its turn) or * "steer" (on — it goes into the running turn). The on state used to * paint the bolt in the accent colour ON the accent background, so the * button read as a blank green square (2026-09-23). */ .chat-send.chat-send-steer { width: auto; padding: 0 10px; gap: 5px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); cursor: pointer; } .chat-send.chat-send-steer:hover { color: var(--text-1); border-color: var(--text-2); } .chat-send.chat-send-steer[aria-pressed='true'] { background: var(--accent); color: var(--bg-0); border-color: var(--accent); } /* "edit" next to the queued marker — takes the message back into the * composer while it is still waiting in line. Same dim italic family * as the marker; underline on hover so it reads as an action. */ .chat-msg-recall { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding: 0 2px; border: 0; background: none; color: var(--accent, var(--text-2)); font: inherit; font-style: italic; cursor: pointer; } .chat-msg-recall:hover { text-decoration: underline; } /* A turn that ended in an error — rendered inside the turn, not as a * status line nobody sees. Danger-tinted, compact, pre-wrapped so * multi-line engine messages stay readable. */ .chat-msg-row.error .chat-msg-avatar-error { display: inline-flex; align-items: center; justify-content: center; background: rgba(220, 53, 69, 0.18); color: #dc3545; } .chat-msg-bubble.error-bubble { background: rgba(220, 53, 69, 0.08); border-color: rgba(220, 53, 69, 0.3); color: var(--text-1); } .chat-msg-error-label { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: #dc3545; margin-bottom: 2px; } .chat-msg-error-text { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; color: var(--text-2); } /* Agent context menu (right-click on an agent tile). Hover/focus * feedback only — layout and colors are inline in the component, * mirroring ChatMenuPopover. */ .agent-context-menu-item:hover, .agent-context-menu-item:focus-visible { background: var(--bg-3); outline: none; } /* Stop button on the streaming assistant bubble. The base * `.bubble-actions` rules below fade pin/copy in on hover only; * `.bubble-stop` overrides that to keep the button permanently * visible while the turn is in flight. Color leans danger-ish so * it reads as "interrupt", not as another optional action. Lives * ALONGSIDE the composer Stop (chat-send-stop) — both abort. */ .bubble-actions.bubble-stop { opacity: 1; pointer-events: auto; } .bubble-stop-btn { color: var(--danger, #ef4444); } .bubble-stop-btn:hover { color: var(--danger, #ef4444); background: rgba(239, 68, 68, 0.12); } /* Sentinel system-trigger divider — centered horizontal rule with * the Bell icon (same lucide glyph as AppDock's Sentinel app) so * users recognize a sentinel-fired turn at a glance. Not a bubble: * the inbound was synthesized by the trigger runtime, not typed by * a person or sent by a peer agent. */ .sentinel-divider { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 11px; margin: 6px 0; user-select: text; } .sentinel-divider-rule { flex: 1; min-width: 12px; height: 1px; background: var(--line-2); } /* One line that always fits the window: only the subtitle gives way * and ends in "…"; icon, label, time and chevron stay whole. The full * text opens on a click (2026-10-13: a video path pushed it 1300 px * past a phone's width). */ .sentinel-divider-body { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 4px; min-width: 0; overflow: hidden; } .sentinel-divider-body > * { flex-shrink: 0; } .sentinel-divider-body > .sentinel-divider-name { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* The id gives way before the name. */ .sentinel-divider-body > .sentinel-divider-detail { flex-shrink: 4; min-width: 0; } .sentinel-divider-label { font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; } .sentinel-divider-name { color: var(--text-2); } .sentinel-divider-time { color: var(--text-3); } .sentinel-divider-sep { color: var(--line-2); } /* Secondary id (a call id, a trigger id) — quieter than the name. */ .sentinel-divider-detail { color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; } /* The divider shows one line; a click opens the full wake text * underneath (same idiom as the memory-inject line). */ .sentinel-divider-wrap { display: flex; flex-direction: column; } .sentinel-divider.expandable { cursor: pointer; } .sentinel-divider.expandable:hover .sentinel-divider-label { color: var(--text-1); } .sentinel-divider-chevron { display: inline-flex; color: var(--text-3); } .sentinel-divider-full { margin: 0 12px 6px; max-height: 220px; overflow: auto; background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-1); } /* The base reset (reset.css, Tailwind's former preflight) strips browser * anchor styling (`a { color: inherit; text-decoration: inherit }`), * so without an explicit rule a Markdown link inside an assistant * bubble reads as plain text — same color, no underline. A report of * 2026-05-13: "link nicht klickbar" was actually "link nicht * erkennbar". Restore visible link affordance, scoped to the bubble * so we don't accidentally re-style unrelated anchors. */ .chat-msg-bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; } .chat-msg-bubble a:hover { color: var(--accent-glow, var(--accent)); text-decoration-thickness: 2px; } /* Markdown lists inside assistant bubbles. Without these rules the * base reset's `ul,ol { list-style: none; padding: 0 }` (reset.css) * leaves bullet/number markers invisible and items glued to the bubble * edge — hard-to-scan for longer answers. Ada 2026-05-13 polish. */ .chat-msg-bubble ul, .chat-msg-bubble ol { margin: 6px 0; padding-left: 1.4em; } .chat-msg-bubble ul { list-style: disc; } .chat-msg-bubble ol { list-style: decimal; } .chat-msg-bubble li { margin: 2px 0; } .chat-msg-bubble li > p:first-child { margin-top: 0; } .chat-msg-bubble li > p:last-child { margin-bottom: 0; } .chat-msg-bubble p { margin: 6px 0; } .chat-msg-bubble p:first-child { margin-top: 0; } .chat-msg-bubble p:last-child { margin-bottom: 0; } /* Code blocks: scroll/wrap rules live in globals.css (single source of * truth as of 2026-05-16 — two-file rules conflicted on word-break + * white-space, leading to inline code overflowing the bubble per Leo * 2026-05-16 report). Only the margin stays here as a desktop-chrome * detail. */ .chat-msg-bubble pre { margin: 6px 0; } /* The content a question card asks about (QuestionCard.tsx): markdown * like a reply, in its own scroll box. Capped in px as well as vh: the * vh is the browser's, and a chat window at its default size (520x460) * lost the options and the input below its edge at 40vh. The reset * strips list markers, link colour and spacing, so the bubble's rules * are repeated here, plus a blockquote (drafts are quoted). */ .question-card-details { max-height: min(30vh, 220px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-1); line-height: 1.5; user-select: text; overflow-wrap: anywhere; } .question-card-details p { margin: 6px 0; } .question-card-details p:first-child { margin-top: 0; } .question-card-details p:last-child { margin-bottom: 0; } .question-card-details ul, .question-card-details ol { margin: 6px 0; padding-left: 1.4em; } .question-card-details ul { list-style: disc; } .question-card-details ol { list-style: decimal; } .question-card-details li { margin: 2px 0; } .question-card-details a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } .question-card-details blockquote { margin: 6px 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--line-2); color: var(--text-1); } .question-card-details pre { margin: 6px 0; padding: 6px 8px; border-radius: 4px; background: var(--bg-0); max-width: 100%; overflow-x: auto; white-space: pre; } .question-card-details :not(pre) > code { padding: 0 3px; border-radius: 3px; background: var(--bg-0); white-space: pre-wrap; } .chat-msg-name { font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--agent-color, var(--text-2)); letter-spacing: 0.05em; margin-bottom: 3px; text-transform: lowercase; } .chat-msg-tool { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--bg-1); border: 1px dashed var(--line-2); color: var(--text-2); padding: 6px 10px; border-radius: 6px; max-width: 80%; } .chat-msg-tool b { color: var(--agent-color, var(--accent)); font-weight: 500; } .chat-textarea-focus-tinted:focus { border-color: var(--agent-color, var(--accent-dim)); } .chat-send-tinted { background: var(--agent-color, var(--accent)) !important; } /* ===== Tmux owner color rail ===== */ .tmux-row { position: relative; } .tmux-row::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--row-color, transparent); box-shadow: 0 0 6px var(--row-color, transparent); opacity: 0.7; } .tmux-row-owner-tinted { color: var(--row-color, var(--accent)) !important; background: var(--row-color-tint, rgba(var(--accent-rgb), 0.08)) !important; } .tmux-row-dot { background: var(--row-color, var(--accent)) !important; box-shadow: 0 0 6px var(--row-color, var(--accent-glow)); } .tmux-row-dot.idle { background: var(--text-3) !important; box-shadow: none !important; opacity: 0.6; } .chat-input { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; } .chat-textarea { flex: 1; min-height: 36px; max-height: 120px; resize: none; padding: 9px 12px; border-radius: 8px; background: rgba(var(--tint-rgb), 0.02); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; } .chat-textarea:focus { border-color: var(--accent-dim); } .chat-send { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--bg-0); display: grid; place-items: center; } /* Composer primary button while streaming: same slot as Send, danger * styled so Stop reads as interrupt (not a muted gray icon). */ .chat-send.chat-send-stop { background: var(--danger, #ef4444); color: #fff; border: none; cursor: pointer; } .chat-send.chat-send-stop:hover { background: color-mix(in srgb, var(--danger, #ef4444) 85%, #000); } /* ===== Tmux tool ===== */ .tmux { display: flex; flex-direction: column; height: 100%; font-family: 'JetBrains Mono', monospace; font-size: 12px; } .tmux-header { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .tmux-title { color: var(--text-0); font-size: 12px; letter-spacing: 0.04em; } .tmux-count { color: var(--text-3); font-size: 11px; } .tmux-list { flex: 1; overflow-y: auto; padding: 4px; } .tmux-row { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 6px; cursor: pointer; transition: background 0.15s; } .tmux-row:hover { background: rgba(var(--accent-rgb), 0.06); } .tmux-row-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); } .tmux-row-dot.idle { background: var(--text-3); box-shadow: none; } .tmux-row-name { color: var(--text-0); font-size: 12px; } .tmux-row-cmd { color: var(--text-2); font-size: 11px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tmux-row-meta { color: var(--text-3); font-size: 10px; } .tmux-row-owner { font-size: 10px; color: var(--accent); background: rgba(var(--accent-rgb), 0.08); padding: 2px 6px; border-radius: 4px; } .tmux-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; font-size: 10px; color: var(--text-3); flex-shrink: 0; } .tmux-foot kbd { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; color: var(--text-1); } /* ===== Xterm window ===== */ .xterm { height: 100%; background: #06080c; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5; color: #c8d3e0; padding: 12px 14px; overflow-y: auto; user-select: text; } .xterm .prompt { color: var(--accent); } .xterm .path { color: #8aa9d6; } .xterm .dim { color: var(--text-3); } .xterm .ok { color: var(--accent); } .xterm .warn { color: var(--warn); } .xterm .err { color: var(--danger); } .xterm .cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(2) infinite; margin-left: 2px; } @keyframes blink { 50% { opacity: 0; } } /* Mic transcribing spinner. lucide-react's Loader2 is a static spiral — we rotate it. Kept generic (somora-spin) so other rotating icons can reuse it without duplicating the keyframes. */ .somora-spin { animation: somora-spin 0.9s linear infinite; } @keyframes somora-spin { to { transform: rotate(360deg); } } /* Mic in recording state — same glyph, but pulsing red so the active state is unmistakable without swapping to a different shape. */ .somora-mic-active { color: var(--danger); animation: somora-mic-pulse 1.2s ease-in-out infinite; } @keyframes somora-mic-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } } /* ===== Selection ring (when context menu opens an icon) ===== */ .agent-icon.menu-open { background: rgba(var(--accent-rgb), 0.15); outline: 1px solid var(--accent-dim); } /* Scrollbars */ *::-webkit-scrollbar { width: 8px; height: 8px; } *::-webkit-scrollbar-track { background: transparent; } *::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; } *::-webkit-scrollbar-thumb:hover { background: var(--text-3); } /* ===== Kanban board ===== */ .kanban { display: flex; flex-direction: column; height: 100%; font-size: 12px; } .kanban-header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .kanban-title { color: var(--text-0); font-weight: 600; font-size: 13px; } .kanban-meta { color: var(--text-3); font-size: 11px; font-family: 'JetBrains Mono', monospace; } .kanban-board { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 10px; padding: 12px; overflow-x: auto; overflow-y: hidden; } .kanban-col { background: rgba(var(--tint-rgb), 0.02); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; min-width: 180px; } .kanban-col-head { padding: 10px 12px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-1); border-bottom: 1px solid var(--line); font-weight: 600; } .kanban-col-count { color: var(--text-3); font-family: 'JetBrains Mono', monospace; font-size: 10px; background: var(--bg-2); padding: 2px 6px; border-radius: 3px; } .kanban-col-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; } .kanban-card { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 9px 10px; cursor: grab; transition: transform 0.1s, box-shadow 0.15s; } .kanban-card:hover { background: var(--bg-3); box-shadow: 0 4px 14px rgba(0,0,0,0.3); } .kanban-card:active { cursor: grabbing; } .kanban-card-id { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-3); letter-spacing: 0.06em; margin-bottom: 4px; } .kanban-card-title { font-size: 12px; line-height: 1.4; color: var(--text-0); margin-bottom: 8px; } .kanban-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .kanban-card-assignee { font-size: 10px; font-family: 'JetBrains Mono', monospace; padding: 2px 6px; border-radius: 3px; border: 1px solid; display: inline-flex; align-items: center; } .kanban-card-tags { display: flex; gap: 4px; } .kanban-tag { font-size: 9px; font-family: 'JetBrains Mono', monospace; color: var(--text-3); } .kanban-card-due { margin-left: auto; font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; } .kanban-empty { text-align: center; font-size: 10px; color: var(--text-3); padding: 12px; font-family: 'JetBrains Mono', monospace; } .kanban-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; font-size: 10px; color: var(--text-3); flex-shrink: 0; } .kanban-foot kbd { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; color: var(--text-1); } /* ── Wiki Explorer ────────────────────────────────────────────────── * Three columns: tree, reader, graph. The reader is the flexible one; * tree and graph keep fixed widths so the page text doesn't reflow * every time the window is nudged. */ .wiki-root { display: flex; /* .window-body is a column flex container, so fill it as a flex item * rather than relying on height:100% resolving against it. */ flex: 1 1 auto; height: 100%; min-height: 0; background: var(--bg-1); font-size: 13px; } .wiki-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; } .wiki-col-tree { width: 240px; flex: 0 0 240px; border-right: 1px solid var(--line); background: var(--bg-0); } .wiki-col-reader { flex: 1 1 auto; min-width: 0; } .wiki-col-graph { width: 320px; flex: 0 0 320px; border-left: 1px solid var(--line); background: var(--bg-0); } .wiki-tree-head { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); } .wiki-filter { flex: 1 1 auto; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; color: var(--text-0); padding: 3px 6px; font-size: 12px; } .wiki-filter:focus { outline: none; border-color: var(--accent-dim); } .wiki-icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--text-2); cursor: pointer; padding: 3px 5px; display: flex; align-items: center; } .wiki-icon-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-dim); } .wiki-icon-btn:disabled { opacity: 0.5; cursor: default; } @keyframes wiki-spin { to { transform: rotate(360deg); } } .wiki-spin { animation: wiki-spin 1s linear infinite; } .wiki-tree { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 4px 0; } .wiki-tree-foot { border-top: 1px solid var(--line); padding: 4px 8px; color: var(--text-3); font-size: 11px; } .wiki-node { display: flex; align-items: center; gap: 5px; padding-top: 2px; padding-bottom: 2px; padding-right: 6px; cursor: pointer; color: var(--text-1); user-select: none; } .wiki-node:hover { background: var(--bg-2); color: var(--text-0); } .wiki-node.active { background: var(--bg-3); color: var(--accent); } .wiki-node svg { flex: 0 0 auto; opacity: 0.7; } .wiki-node-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wiki-dir { color: var(--text-2); } .wiki-page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 11px; } .wiki-page-slug { font-family: ui-monospace, monospace; } .wiki-page-body { flex: 1 1 auto; overflow-y: auto; padding: 10px 18px 40px; color: var(--text-1); line-height: 1.6; } .wiki-page-body h1 { font-size: 20px; color: var(--text-0); margin: 12px 0 8px; } .wiki-page-body h2 { font-size: 16px; color: var(--text-0); margin: 18px 0 6px; } .wiki-page-body h3 { font-size: 14px; color: var(--text-1); margin: 14px 0 4px; } .wiki-page-body p { margin: 8px 0; } .wiki-page-body ul, .wiki-page-body ol { margin: 8px 0; padding-left: 22px; } .wiki-page-body li { margin: 3px 0; } .wiki-page-body code { background: var(--bg-2); border-radius: 3px; padding: 1px 4px; font-size: 12px; } .wiki-page-body pre { background: var(--bg-0); border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; } .wiki-page-body table { border-collapse: collapse; font-size: 12px; } .wiki-page-body th, .wiki-page-body td { border: 1px solid var(--line); padding: 3px 7px; text-align: left; } .wiki-page-body blockquote { border-left: 2px solid var(--line-2); margin: 8px 0; padding-left: 10px; color: var(--text-2); } .wiki-link { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent-dim); cursor: pointer; } .wiki-link:hover { border-bottom-style: solid; } /* A link to a page that does not exist. Visible, but not clickable — * pretending it works is worse than showing that the wiki has a gap. */ .wiki-link-broken { color: var(--warn); border-bottom: 1px dashed var(--warn); opacity: 0.8; cursor: help; } .wiki-graph-head { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--text-2); } .wiki-tab { background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--text-2); cursor: pointer; font-size: 11px; padding: 2px 8px; } .wiki-tab:hover { color: var(--text-0); } .wiki-tab.active { color: var(--accent); border-color: var(--accent-dim); background: var(--bg-2); } .wiki-graph-wrap { flex: 0 0 auto; height: 300px; position: relative; border-bottom: 1px solid var(--line); } .wiki-graph { width: 100%; height: 100%; overflow: hidden; position: relative; } /* Expanded: the graph column overlays the whole wiki window so a dense * global graph gets the full canvas. The reader + tree stay mounted * underneath (state preserved), just covered. */ .wiki-col-graph.expanded { position: absolute; inset: 0; width: auto; flex: none; z-index: 5; border-left: none; background: var(--bg-1); } .wiki-col-graph.expanded .wiki-graph-wrap { flex: 1 1 auto; height: auto; border-bottom: none; } .wiki-graph-controls { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 4px; } .wiki-graph-ctl { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; color: var(--text-2); cursor: pointer; } .wiki-graph-ctl:hover { color: var(--accent); border-color: var(--accent-dim); } .wiki-graph-empty { padding: 14px; color: var(--text-3); font-size: 12px; } .wiki-graph-note { position: absolute; bottom: 4px; left: 8px; right: 8px; color: var(--text-3); font-size: 10px; } .wiki-links-panel { flex: 1 1 auto; overflow-y: auto; padding: 6px 8px 14px; } .wiki-link-group { margin-bottom: 10px; } .wiki-link-title { color: var(--text-3); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; } .wiki-link-row { color: var(--text-1); cursor: pointer; padding: 2px 4px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; } .wiki-link-row:hover { background: var(--bg-2); color: var(--accent); } .wiki-link-broken-row { color: var(--warn); opacity: 0.7; padding: 2px 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wiki-muted { color: var(--text-3); font-size: 12px; } .wiki-pad { padding: 14px; } .wiki-error { background: rgba(255, 107, 107, 0.1); border-bottom: 1px solid var(--danger); color: var(--danger); padding: 6px 14px; font-size: 12px; } .wiki-page-meta-right { display: flex; align-items: center; gap: 6px; } .wiki-chip { border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; color: var(--text-2); font-size: 10px; } /* ── shared browser window (docs/browser.md) ─────────────────────── */ .browser-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; background: #111; outline: none; } .browser-stage.controlling { cursor: default; box-shadow: inset 0 0 0 2px var(--accent, #58a6ff); } .browser-btn { all: unset; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; font: 11px "JetBrains Mono", monospace; color: var(--text-2); cursor: pointer; white-space: nowrap; } .browser-btn:hover:not(:disabled) { color: var(--text-1); border-color: var(--text-3); } .browser-btn:disabled { opacity: 0.45; cursor: default; } .browser-btn-primary { color: var(--accent, #58a6ff); border-color: var(--accent, #58a6ff); } .browser-tab { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-3); cursor: pointer; font-family: "JetBrains Mono", monospace; } .browser-tab.active { color: var(--text-1); border-color: var(--text-3); background: var(--bg-1); } .browser-notice { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); color: #fff; font: 12px "JetBrains Mono", monospace; pointer-events: none; } /* Pending browser requests remain visible without opening the browser list. */ .browser-handoff-notice { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(210,153,34,.09); color: var(--text-1); font-size: 12px; max-height: 180px; overflow: auto; flex-shrink: 0; } .browser-handoff-notice button, .browser-attention { border: 1px solid var(--warn, #d29922); border-radius: 5px; background: rgba(210,153,34,.12); color: var(--text-1); padding: 5px 9px; cursor: pointer; align-self: flex-start; } .browser-handoff-notice button:disabled { opacity: .5; cursor: default; } .browser-attention { align-self: center; white-space: nowrap; font-size: 11px; } /* Icons that sit inside a line of text. * * The base reset (reset.css) blockifies every graphic (`img,svg,video,… { * display: block }`), so a lucide icon written next to a word gets a * line of its own and the `vertical-align` nudge beside it does * nothing — vertical-align has no effect on a block box. Measured on * the live desktop 2026-09-10: in the abilities window the sparkles * icon sat 14px above the word "skills", one whole line up, and the * MCP heading did the same. The operator: "bei skills in den abilities ist das * icon verschoben". Icons that belong inside the line opt back in. */ .icon-inline { display: inline-block; vertical-align: -0.15em; } /* A question the voice channel asked, inside the chat it was asked in. * * It is neither a user bubble nor an agent bubble: it is the agent's * own voice asking the agent. Quiet, indented, and above all WRAPPING — * the first live call wrote 400 to 750 characters into a one-line * divider that ran off the window unreadably (the operator, 2026-09-11). */ .voice-note { margin: 8px 0 8px 12px; padding: 6px 10px; border-left: 2px solid var(--accent, #6cf); background: color-mix(in srgb, var(--accent, #6cf) 6%, transparent); border-radius: 0 6px 6px 0; max-width: 100%; } .voice-note-head { display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); margin-bottom: 3px; } .voice-note-label { color: var(--accent, #6cf); } .voice-note-time { margin-left: auto; letter-spacing: 0; text-transform: none; opacity: 0.7; } .voice-note-body { font-size: 12px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; } /* The running transcript in the voice window. * * It follows the conversation, so the top edge is where lines leave — * a hard cut there reads like a broken layout next to a soft, breathing * figure. The mask fades the first ~28px out instead (the operator, * 2026-09-11: "wäre es schöner wenn da so ein schleier wäre"). */ .voice-transcript { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 14px, #000 32px); mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.35) 14px, #000 32px); scrollbar-width: thin; } /* What the voice self said out loud. * * The agent's written answer is the record; this is how it was read to * the human. Worth keeping, not worth a block — it rendered as a * tool-call-looking bubble labelled `voice_spoken` until 2026-09-12. */ .voice-spoken { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 2px 34px; padding: 2px 0; color: var(--text-3, #777); font-size: 11px; font-style: italic; line-height: 1.4; } .voice-spoken svg { flex: 0 0 auto; opacity: 0.7; align-self: center; } .voice-spoken-text { overflow-wrap: anywhere; } .voice-spoken-time { margin-left: auto; opacity: 0.6; font-style: normal; } /* A call's record, folded until opened (docs/realtime-voice.md). */ .voice-record { margin: 2px 0 2px 34px; color: var(--text-3, #777); font-size: 11px; } .voice-record-head { all: unset; display: flex; align-items: center; gap: 6px; width: 100%; cursor: pointer; line-height: 1.4; } .voice-record-head svg { flex: 0 0 auto; opacity: 0.7; } .voice-record-title { overflow-wrap: anywhere; } .voice-record-lines { margin: 4px 0 2px 17px; padding-left: 8px; border-left: 2px solid var(--line, #333); display: flex; flex-direction: column; gap: 3px; } .voice-record-line { display: flex; gap: 8px; color: var(--text-1, #ccc); line-height: 1.45; } .voice-record-line.event { color: var(--text-3, #777); font-style: italic; } .voice-record-at { flex: 0 0 auto; font-variant-numeric: tabular-nums; opacity: 0.7; } .voice-record-who { flex: 0 0 3.2em; font-weight: 600; } .voice-record-text { overflow-wrap: anywhere; } /* ── Builder panel (docs/builder.md) ───────────────────────────────── * Docked to the right of a builder's chat window. The chat keeps its * flex-column layout untouched and only reserves room on the right; * the panel sits absolutely in that room (`.chat` is position: * relative). Collapsed — by the person or automatically when the * window is narrow — it shrinks to a 28px strip with a toggle. */ .chat.chat-with-panel { padding-right: 300px; } .chat.chat-with-panel.panel-collapsed { padding-right: 28px; } .builder-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; box-sizing: border-box; border-left: 1px solid var(--agent-line, var(--line)); background: var(--panel-2, var(--panel, transparent)); display: flex; flex-direction: column; gap: 12px; padding: 12px; overflow-y: auto; font-size: 12px; min-width: 0; } .builder-panel.is-collapsed { width: 28px; padding: 8px 0; gap: 0; align-items: center; overflow: hidden; } .builder-panel-toggle { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 2px; display: inline-flex; align-items: center; } .builder-panel-toggle:hover { color: var(--text); } .builder-panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .builder-panel-head { display: flex; flex-direction: column; gap: 8px; } .builder-panel-title { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; color: var(--text-2); } .builder-panel-progress { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; } .builder-panel-progress code { font-size: 10px; color: var(--text-1); } .builder-panel-progress-idle { color: var(--warn, #d9a400); } .builder-panel-progress-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #d9a400); animation: builder-pulse 1.4s ease-in-out infinite; } @keyframes builder-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } } .builder-panel-switches { display: flex; flex-wrap: wrap; gap: 6px; } .builder-switch, .builder-go, .builder-option { border: 1px solid var(--line-2, var(--line)); background: var(--panel, transparent); color: var(--text); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer; } .builder-switch.is-on, .builder-switch.is-build { border-color: var(--accent, #d9a400); color: var(--accent, #d9a400); } .builder-switch.is-plan { font-style: italic; } .builder-go { display: inline-flex; align-items: center; gap: 4px; background: var(--accent, #d9a400); border-color: var(--accent, #d9a400); color: var(--on-accent); font-weight: 600; } .builder-go:disabled, .builder-switch:disabled, .builder-option:disabled { opacity: 0.5; cursor: default; } .builder-panel-muted { color: var(--text-3); font-size: 11px; } .builder-panel-notice { color: var(--warn); font-size: 11px; } .builder-section-title { font-weight: 600; color: var(--text-2); margin-bottom: 4px; } .builder-todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .builder-todo { display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; } .builder-todo > svg { flex-shrink: 0; margin-top: 2px; color: var(--text-3); } .builder-todo.is-in_progress > svg { color: var(--accent, #d9a400); } .builder-todo.is-completed { color: var(--text-3); text-decoration: line-through; } .builder-todo.is-cancelled { color: var(--text-3); opacity: 0.6; } .builder-acceptance-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .builder-acceptance-item { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; } .builder-acceptance-row { display: flex; align-items: flex-start; gap: 6px; } .builder-acceptance-row > svg { flex-shrink: 0; margin-top: 2px; color: var(--text-3); } .builder-acceptance-item.is-passed .builder-acceptance-row > svg { color: var(--ok); } .builder-acceptance-item.is-failed .builder-acceptance-row > svg { color: var(--danger); } .builder-acceptance-meta, .builder-acceptance-review { display: flex; align-items: center; gap: 6px; padding-left: 18px; font-size: 11px; color: var(--text-3); min-width: 0; } .builder-acceptance-status { flex-shrink: 0; } .builder-acceptance-item.is-failed .builder-acceptance-status { color: var(--danger); } .builder-acceptance-item.is-passed .builder-acceptance-status { color: var(--ok); } .builder-acceptance-evidence { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .builder-acceptance-verdict.is-accepted { color: var(--ok); } .builder-acceptance-verdict.is-rejected { color: var(--danger); } .builder-acceptance-review .builder-acceptance-btn { padding: 1px 5px; line-height: 1; } .builder-acceptance-review > span:first-child { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .builder-question { border: 1px solid var(--accent, #d9a400); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; } .builder-question-text { white-space: pre-wrap; line-height: 1.4; } .builder-question-options { display: flex; flex-direction: column; gap: 5px; } .builder-option { text-align: left; display: flex; flex-direction: column; gap: 2px; } .builder-option small { color: var(--text-3); } .builder-option.is-chosen { border-color: var(--accent, #d9a400); color: var(--accent, #d9a400); } .builder-question-free { width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--panel, transparent); color: var(--text); padding: 6px; resize: vertical; } .builder-question-foot { display: flex; justify-content: space-between; align-items: center; } /* Builder tiles (agent.yaml kind: builder) — a grey frame around the * glyph so the kind is visible at a glance, before reading the label. */ .agent-icon.is-builder .agent-icon-glyph { outline: 2px solid rgba(160, 160, 170, 0.55); outline-offset: 3px; border-radius: 18px; } .agent-icon.is-builder .agent-icon-sub { color: rgba(170, 170, 180, 0.9); letter-spacing: 0.03em; } /* Inbox (InboxMenu): opens up from the taskbar, right-aligned. */ .inbox-menu { width: 380px; max-width: calc(100vw - 24px); max-height: 60vh; overflow-y: auto; gap: 6px; } .inbox-head { padding: 4px 6px 2px; font-size: 12px; font-weight: 600; color: var(--text-1); } .inbox-empty { padding: 8px 6px 10px; font-size: 12px; color: var(--text-2); } .inbox-badge.calm { background: var(--accent); color: var(--on-accent); } .inbox-entry { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border-radius: 7px; background: rgba(var(--tint-rgb), 0.03); border: 1px solid rgba(var(--tint-rgb), 0.06); font-size: 12px; color: var(--text-0); } .inbox-entry.unread { border-color: rgba(var(--accent-rgb), 0.35); } .inbox-entry.level-important { border-left: 3px solid var(--danger); } .inbox-entry.level-warning { border-left: 3px solid var(--warn, #e0a94a); } .inbox-entry.resolved { opacity: 0.55; } .inbox-title { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; } .inbox-when { flex: none; font-weight: 400; color: var(--text-3); font-size: 11px; } .inbox-text { color: var(--text-1); white-space: pre-wrap; word-break: break-word; line-height: 1.45; } .inbox-text code { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: rgba(var(--tint-rgb), 0.06); padding: 0 4px; border-radius: 4px; } .inbox-text a, .inbox-link { color: var(--accent, var(--accent)); word-break: break-all; } .inbox-link { font-size: 11px; } .inbox-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3); font-size: 11px; } .inbox-meta button, .inbox-muted-row button, .inbox-muted-toggle { margin-left: auto; background: transparent; border: 1px solid rgba(var(--tint-rgb), 0.12); border-radius: 5px; color: var(--text-2); font-size: 11px; padding: 2px 7px; cursor: pointer; } .inbox-muted { display: flex; flex-direction: column; gap: 4px; padding: 4px 2px 2px; } .inbox-muted-toggle { margin-left: 0; align-self: flex-start; border: 0; padding: 2px 4px; } .inbox-muted-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); padding: 0 4px; } /* Theme switch in the screen menu (Dark / Light / Auto). */ .theme-section { padding: 6px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; display: flex; flex-direction: column; gap: 4px; } .theme-switch { display: flex; gap: 4px; } .theme-switch-label { font-size: 11px; color: var(--text-2); padding: 0 0 2px; } .theme-picker { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(var(--tint-rgb), 0.03); color: var(--text-0); font-size: 12px; cursor: pointer; } .theme-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .theme-picker:hover { border-color: var(--accent-dim); } .theme-switch button { flex: 1; padding: 5px 0; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--text-1); font-size: 11px; cursor: pointer; } .theme-switch button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; } .theme-switch button[aria-disabled='true'] { opacity: 0.35; cursor: not-allowed; } .theme-switch-note { font-size: 11px; color: var(--text-2); padding: 0 2px; } .theme-list { display: flex; flex-direction: column; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-1); max-height: 220px; overflow-y: auto; } .theme-list button { display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; padding: 5px 8px; border-radius: 5px; border: none; background: transparent; color: var(--text-1); font-size: 12px; cursor: pointer; } .theme-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .theme-list button:hover:not([aria-disabled='true']) { background: rgba(var(--tint-rgb), 0.06); color: var(--text-0); } .theme-list button[aria-selected='true'] { color: var(--text-0); font-weight: 600; } .theme-list button[aria-selected='true'] svg { color: var(--accent); } .theme-list button.theme-invalid { color: var(--text-3); cursor: help; } /* Agent colours as text: as chosen on the dark theme, darkened to a * readable contrast on the light one (colors.ts inkOnLight). */ .agent-ink { color: var(--ink); } :root[data-theme='light'] .agent-ink { color: var(--ink-light, var(--ink)) !important; } :root[data-theme='light'] .chat-msg-tool b { color: var(--agent-ink-light, var(--accent)); } :root[data-theme='light'] .chat-msg-name { color: var(--agent-ink-light, var(--text-2)); } /* The tile gradient is laid out inside the border and repeated under * it, so its dark end showed as a dark line along the top and left — * invisible on dark, plain on light. Light only: dark stays as is. */ :root[data-theme='light'] .agent-icon-glyph { background-origin: border-box !important; } /* ── Settings window (components/SettingsWindow.tsx) ───────────────── * Sidebar of groups, a pane of boxes, one row per setting. Tokens only, * so dark, light and every theme follow. */ .settings-window { display: flex; height: 100%; min-height: 0; color: var(--text-0); font-size: 12.5px; } .settings-empty { padding: 24px; color: var(--text-2); } .settings-side { width: 220px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.02); overflow-y: auto; } .settings-search { display: flex; align-items: center; gap: 6px; padding: 5px 8px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-1); color: var(--text-2); } .settings-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text-0); font: inherit; } .settings-nav { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-1); font: inherit; text-align: left; cursor: pointer; } .settings-nav:hover { background: rgba(var(--tint-rgb), 0.05); color: var(--text-0); } .settings-nav.on { background: var(--accent-glow); color: var(--text-0); } .settings-nav.on svg { color: var(--accent); } .settings-nav-sep { height: 1px; margin: 6px 4px; background: var(--line); } .settings-nav-grow { flex: 1; min-height: 10px; } .settings-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--accent); } .settings-soon { margin-left: auto; display: inline-flex; color: var(--text-3); } .settings-nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .settings-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .settings-pane { flex: 1; overflow-y: auto; padding: 16px 20px 24px; } .settings-pane h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 600; } .settings-lead { margin: 0 0 14px; color: var(--text-1); line-height: 1.5; } .settings-banner { margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 7px; color: var(--text-1); background: rgba(var(--tint-rgb), 0.03); } .settings-banner.error { border-color: var(--danger); color: var(--danger); } .settings-box { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-1); overflow: hidden; } .settings-box-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-weight: 600; border-bottom: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.025); } .settings-box-help { margin: 0; padding: 6px 12px 0; color: var(--text-2); } .settings-badge { font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--text-2); } .settings-badge.restart { border-color: var(--warn); color: var(--warn); } .settings-row { padding: 9px 12px; border-top: 1px solid var(--line); } .settings-box-head + .settings-row, .settings-box-help + .settings-row { border-top: 0; } .settings-row.changed { background: var(--accent-glow); } .settings-row.hl { outline: 2px solid var(--accent); outline-offset: -2px; } .settings-row-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .settings-label { display: flex; align-items: center; gap: 6px; color: var(--text-0); } .settings-adv { font-size: 9.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 8px; padding: 0 5px; } .settings-control { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .settings-help { margin: 3px 0 0; color: var(--text-2); line-height: 1.45; } .settings-error { margin: 3px 0 0; color: var(--danger); } .settings-error.inline { margin: 0; font-size: 11px; } .settings-default { min-width: 36px; font-size: 10.5px; color: var(--text-3); text-align: right; } .settings-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; } .settings-more-text { margin-top: 4px; padding: 6px 8px; border-radius: 6px; background: rgba(var(--tint-rgb), 0.03); color: var(--text-1); line-height: 1.5; } .settings-more-text p { margin: 0 0 4px; } .settings-path { color: var(--text-3); font-size: 11px; } .settings-path a { color: var(--accent); } .settings-input { padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-0); color: var(--text-0); font: inherit; } .settings-input:focus { outline: 0; border-color: var(--accent); } .settings-input.wide { width: 260px; } .settings-input.num { width: 84px; text-align: right; } .settings-input.chip { width: 110px; padding: 2px 6px; } .settings-input.bad { border-color: var(--danger); } .settings-unit { color: var(--text-2); font-size: 11px; } .settings-number { display: inline-flex; align-items: center; gap: 6px; } .settings-number input[type='range'] { width: 110px; accent-color: var(--accent); } .settings-switch { position: relative; width: 34px; height: 20px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-3); cursor: pointer; } .settings-switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-1); transition: left 0.15s; } .settings-switch.on { background: var(--accent-dim); border-color: var(--accent); } .settings-switch.on span { left: 16px; background: var(--on-accent); } .settings-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; } .settings-seg button { padding: 3px 9px; border: 0; border-left: 1px solid var(--line-2); background: var(--bg-0); color: var(--text-1); font: inherit; cursor: pointer; } .settings-seg button:first-child { border-left: 0; } .settings-seg button.on { background: var(--accent-dim); color: var(--text-0); } .settings-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 380px; } .settings-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px 1px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); } .settings-chip button { border: 0; background: transparent; color: var(--text-2); cursor: pointer; font: inherit; } .settings-btn { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: var(--text-0); font: inherit; cursor: pointer; } .settings-btn:hover:not(:disabled) { border-color: var(--accent-dim); } .settings-btn:disabled { opacity: 0.45; cursor: default; } .settings-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; } .settings-icon-btn { min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text-2); cursor: pointer; font: inherit; } .settings-icon-btn:hover { color: var(--text-0); border-color: var(--line-2); } .settings-text-btn { height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text-1); cursor: pointer; font: inherit; font-size: 11px; } .settings-text-btn:hover { color: var(--text-0); border-color: var(--line-2); } .settings-locked { color: var(--text-2); } .settings-test { font-size: 11px; color: var(--text-2); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .settings-test.ok { color: var(--accent); } .settings-test.error { color: var(--danger, #e5484d); } .settings-input.unknown-ref { border-color: var(--warn, #d9a43a); } .settings-secret { display: inline-flex; align-items: center; gap: 6px; } .settings-secret-state { color: var(--text-2); } .settings-entries { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; margin-top: 6px; } .settings-entries > .settings-btn { align-self: flex-start; } .settings-entry { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; } .settings-entry.plain { flex-direction: row; align-items: center; gap: 8px; } .settings-entry.added { border-color: var(--accent); } .settings-entry.removed { opacity: 0.55; border-style: dashed; } .settings-entry-row { display: flex; align-items: center; gap: 4px; } .settings-entry-name { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text-0); } .settings-entry-group { display: flex; flex-direction: column; gap: 4px; } .settings-entry-nested { display: flex; flex-direction: column; gap: 5px; padding-left: 12px; border-left: 2px solid var(--line); } .settings-entry-head { flex: 1; display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--text-0); font: inherit; text-align: left; cursor: pointer; } .settings-entry-sub { color: var(--text-2); font-size: 11px; } .settings-entry-body { flex-basis: 100%; display: flex; flex-direction: column; gap: 5px; padding: 6px 2px 4px 16px; } .settings-entry-field { display: flex; align-items: center; gap: 8px; } .settings-entry-field > .settings-entry-label { flex: 1; min-width: 0; } .settings-entry-label { color: var(--text-1); } .settings-advanced { margin: 4px 0 0; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; } .settings-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; } .settings-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-1); color: var(--text-0); font: inherit; text-align: left; cursor: pointer; } .settings-tile:hover { border-color: var(--accent-dim); } .settings-tile-icon { grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-glow); color: var(--accent); } .settings-tile-title { font-weight: 600; } .settings-tile-sub { color: var(--text-2); font-size: 11px; } .settings-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text-0); font: inherit; text-align: left; cursor: pointer; } .settings-hit:first-child { border-top: 0; } .settings-hit:hover { background: rgba(var(--tint-rgb), 0.04); } .settings-hit-where { color: var(--text-3); font-size: 11px; } .settings-yaml-actions { margin-bottom: 8px; } .settings-yaml { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-0); color: var(--text-1); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; line-height: 1.45; white-space: pre; overflow: auto; max-height: calc(100% - 90px); } .settings-foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.02); } .settings-foot-grow { flex: 1; } .settings-count { color: var(--text-1); } .settings-result { max-width: 60%; line-height: 1.4; } .settings-result.ok { color: var(--ok); } .settings-result.warn { color: var(--warn); } .settings-result.error { color: var(--danger); }