ouroboros/web/style.css
Anton Razzhigaev 8cee0a17a3
fix: stabilize mobile UI and refresh reviewer defaults (#82)
Remove the v6.82 mobile swipe gestures, make drawer opening clear keyboard state, and keep deeply nested live cards usable in narrow consumers. Set fresh-install triad defaults to Luna, Gemini Flash, and Sonnet while preserving saved settings.

Co-authored-by: Ouroboros <ouroboros@local.mac>
2026-07-31 08:13:53 +03:00

5797 lines
132 KiB
CSS

:root {
--bg-primary: #0d0b0f;
--bg-secondary: #1a1520;
--bg-tertiary: #201828;
--bg-card: rgba(255, 255, 255, 0.06);
--bg-hover: rgba(255, 255, 255, 0.08);
--text-primary: #e2e8f0;
--text-secondary: rgba(255, 255, 255, 0.54);
--text-muted: rgba(255, 255, 255, 0.38);
--accent: #c93545;
--accent-light: #f07a86;
--accent-dim: rgba(201, 53, 69, 0.15);
--accent-glow: rgba(201, 53, 69, 0.08);
/* Accent alpha tokens; keep future tweaks off hardcoded rgba literals. */
--accent-04: rgba(201, 53, 69, 0.04);
--accent-05: rgba(201, 53, 69, 0.05);
--accent-08: rgba(201, 53, 69, 0.08);
--accent-10: rgba(201, 53, 69, 0.10);
--accent-12: rgba(201, 53, 69, 0.12);
--accent-18: rgba(201, 53, 69, 0.18);
--accent-22: rgba(201, 53, 69, 0.22);
--accent-25: rgba(201, 53, 69, 0.25);
--accent-55: rgba(201, 53, 69, 0.55);
/* Project identity (vivid fuchsia): a converted task card, its sidebar marker,
and the project panel header share this so "this is a project" reads as a
deliberate state — never the red task accent (looked like an error, P3) and
never the blue owner voice. The old calm-indigo sat next to the user-message
blue and the two blurred together; fuchsia is unmistakably its own role.
Base is legible-on-dark fuchsia-400; every tint shares the SAME hue (C7.3). */
--project: #e879f9;
--project-light: #f0abfc;
--project-dim: rgba(232, 121, 249, 0.15);
--project-08: rgba(232, 121, 249, 0.08);
--project-12: rgba(232, 121, 249, 0.12);
--project-18: rgba(232, 121, 249, 0.18);
--project-25: rgba(232, 121, 249, 0.25);
/* User / owner voice: the owner's chat bubble + sender accents. Tokenized so
the hue lives in one place and stays clear of the project fuchsia (C7.2). */
--user: #6e96d2;
--user-light: #9bb9f0;
--user-bubble-from: rgba(80, 120, 190, 0.14);
--user-bubble-to: rgba(55, 85, 155, 0.12);
--user-border: rgba(110, 150, 210, 0.18);
--user-glow: rgba(160, 190, 245, 0.04);
--user-sender: rgba(155, 185, 240, 0.95);
--user-text: rgba(215, 230, 255, 0.96);
/* System / owner-control voice: amber notices (system bubble + sender). Same
hue as the system role, tokenized so it tracks one source (C7.2). */
--system-bubble-bg: rgba(245, 158, 11, 0.12);
--system-border: rgba(245, 158, 11, 0.45);
--system-sender: rgba(245, 158, 11, 0.9);
--system-text: rgba(255, 240, 210, 0.78);
--blue: #3b82f6;
--blue-dim: rgba(30, 64, 175, 0.3);
--amber: #f59e0b;
--amber-dim: rgba(245, 158, 11, 0.15);
--green: #22c55e;
--green-dim: rgba(34, 197, 94, 0.15);
--red: #ef4444;
--red-dim: rgba(239, 68, 68, 0.15);
--divider: rgba(255, 255, 255, 0.06);
--surface-border: rgba(255, 255, 255, 0.08);
--surface-border-soft: rgba(255, 255, 255, 0.06);
--surface-card: rgba(255, 255, 255, 0.03);
--surface-card-soft: rgba(255, 255, 255, 0.025);
--surface-control: rgba(255, 255, 255, 0.04);
--ui-card-bg: var(--surface-card);
--ui-card-bg-soft: var(--surface-card-soft);
--ui-card-border: var(--surface-border);
--ui-modal-bg: rgba(18, 20, 26, 0.98);
--ui-tone-ok: #22c55e;
--ui-tone-warn: #f59e0b;
--ui-tone-danger: #ef4444;
/* Semantic role palette (SSOT, C7.2): name a color by the ROLE it signals, so
a component references the role rather than a raw hue. task = red accent (a
running task), system = amber (system / owner-control notices), user = blue
(the owner's voice), project = fuchsia (a project identity). Tones map ok /
warn / danger. Re-point a role here and every surface follows. */
--accent-task: var(--accent);
--accent-system: var(--amber);
--accent-user: var(--user);
--accent-project: var(--project);
--tone-ok: var(--green);
--tone-warn: var(--amber);
--tone-danger: var(--red);
--focus-accent-border: rgba(232, 93, 111, 0.4);
--focus-accent-ring: rgba(232, 93, 111, 0.10);
--radius-xs: 3px;
--radius-sm: 8px;
/* In-between radius used by chips, counters, and fade rules. */
--radius-md: 10px;
--radius: 12px;
--radius-lg: 16px;
--radius-xl: 20px;
--page-header-padding-y: 10px;
--page-header-padding-x: 20px;
--page-header-padding-bottom: 6px;
--pill-padding-y: 7px;
--pill-padding-x: 14px;
--pill-font-size: 13px;
--pill-radius: 999px;
--pill-strip-padding: 6px 0 8px;
--button-padding-y: 8px;
--button-padding-x: 16px;
--button-font-size: 13px;
--button-min-height: 34px;
/* App shell: persistent desktop sidebar + optional project detail pane. */
--sidebar-width: 280px;
--project-panel-width: clamp(340px, 36vw, 440px);
--nav-item-radius: 10px;
/* 8pt spacing scale (Apple HIG / common 8pt grid) — use these instead of
ad-hoc pixel values so spacing stays consistent across components. */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--vvh: 100dvh;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] {
display: none !important;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
height: var(--vvh);
overflow: hidden;
}
#app {
display: grid;
grid-template-columns: var(--sidebar-width) minmax(0, 1fr) auto;
height: var(--vvh);
position: relative;
}
#matrix-rain {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.12;
pointer-events: none;
z-index: 0;
}
/* App navigation shell: desktop persistent sidebar, mobile drawer below. */
.mobile-nav-toggle {
display: none;
}
.nav-drawer-backdrop {
display: none;
}
#primary-sidebar {
height: var(--vvh);
display: flex;
flex-direction: column;
min-width: 0;
padding: var(--space-4) var(--space-3) var(--space-3);
background:
linear-gradient(180deg, rgba(13, 11, 15, 0.62), rgba(13, 11, 15, 0.32)),
radial-gradient(circle at 8% 0%, rgba(201, 53, 69, 0.08), transparent 260px);
border-right: 1px solid var(--divider);
z-index: 10;
position: relative; /* positioning context for the resize handle */
}
/* Resizable side-section drag handles (v6.33.0). Thin edge strips that set
--sidebar-width / --project-panel-width; hidden under the mobile drawer. */
/* CW10 (v6.34.0): suppress text selection while dragging via a class, not a JS
inline style (DEVELOPMENT.md: no element.style.* property mutations in UI JS). */
body.resizing-panels { user-select: none; }
.resize-handle {
position: absolute;
top: 0;
bottom: 0;
width: 8px;
cursor: col-resize;
z-index: 20;
touch-action: none;
}
.resize-handle-right { right: -4px; }
.resize-handle-left { left: -4px; }
.resize-handle:hover { background: var(--accent-10); }
@media (max-width: 980px) {
.resize-handle { display: none; }
}
.sidebar-scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--space-1);
scrollbar-width: thin;
}
#nav-version {
display: block;
max-width: 100%;
text-align: left;
line-height: 1.15;
white-space: normal;
font-size: 8px;
color: var(--text-muted);
padding: var(--space-2) var(--space-2) 0;
opacity: 0.6;
}
.nav-row,
.nav-section-toggle {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: var(--space-3);
min-height: 44px;
padding: 0 var(--space-3);
width: 100%;
border: 1px solid transparent;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
border-radius: var(--nav-item-radius);
transition: background 0.15s ease, color 0.15s ease;
font-size: 13px;
font-family: inherit;
text-align: left;
position: relative;
}
.nav-row svg,
.nav-section-toggle svg {
flex: 0 0 auto;
width: 18px;
height: 18px;
}
.nav-row-icon {
flex: 0 0 18px;
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.nav-row-label {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nav-row-meta {
flex: 0 0 auto;
color: var(--text-muted);
font-size: 11px;
}
/* Clean left active indicator (Codex-style), not a heavy glowing tile. */
.nav-row.active::before,
.nav-section-toggle.active::before {
content: '';
position: absolute;
left: 3px;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 17px;
border-radius: 0 3px 3px 0;
background: var(--accent);
}
.unread-badge {
position: absolute;
top: 4px;
right: 8px;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: var(--radius-sm);
background: var(--red);
color: #fff;
font-size: 10px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
/* Per-project "new activity" indicator: a standard small red dot at the row's end. */
.nav-project-row { position: relative; }
.nav-unread-dot {
flex: 0 0 auto;
margin-left: auto;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--red);
box-shadow: 0 0 0 2px rgba(201, 53, 69, 0.18);
}
.nav-row:hover,
.nav-section-toggle:hover {
background: var(--accent-08);
border-color: transparent;
color: var(--text-primary);
}
.nav-row.active,
.nav-section-toggle.active {
background: var(--accent-12);
border-color: transparent;
color: var(--accent);
}
.nav-row:focus,
.nav-section-toggle:focus,
.app-tab:focus,
.chat-header-btn:focus,
.chat-header-more > summary:focus {
outline: none;
}
.nav-row:focus-visible,
.nav-section-toggle:focus-visible,
.app-tab:focus-visible,
.chat-header-btn:focus-visible,
.chat-header-more > summary:focus-visible {
box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.65);
}
.chat-live-actions {
display: flex;
justify-content: flex-end;
gap: var(--space-2);
padding: 0 var(--space-3) var(--space-2);
}
.chat-live-project-btn {
min-height: 30px;
padding: 0 var(--space-3);
border-radius: 999px;
border: 1px solid var(--accent-18);
background: var(--accent-04);
color: var(--text-secondary);
font: inherit;
font-size: 12px;
cursor: pointer;
}
.chat-live-project-btn:hover:not(:disabled) {
color: var(--accent);
background: var(--accent-10);
}
.chat-live-project-btn:disabled {
opacity: 0.6;
cursor: default;
}
/* P3 — a converted card becomes a calm "project identity" chip. The whole card
recolors from the red task accent to the project fuchsia over ~250ms; the live
timeline is gone (the project panel owns it now), so the main chat is freed. */
.chat-live-card.is-project {
border-color: var(--project-18);
background: var(--project-08);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(240, 171, 252, 0.05);
}
.chat-live-project-card-btn {
display: flex;
align-items: center;
gap: var(--space-2);
width: 100%;
padding: var(--space-3);
border: 0;
background: transparent;
color: var(--text-secondary);
font: inherit;
font-size: 13px;
text-align: left;
cursor: pointer;
border-radius: inherit;
}
.chat-live-project-card-btn:hover {
background: var(--project-12);
}
.chat-live-project-icon {
font-size: 15px;
line-height: 1;
}
.chat-live-project-name {
font-weight: 600;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chat-live-project-status {
margin-left: auto;
flex: 0 0 auto;
color: var(--project);
font-size: 12px;
}
/* F4 — a bound (project-chat) card keeps its live timeline above and gets the
project pointer as a calm fuchsia footer, so a divider sets it apart. */
.chat-live-bound-pointer {
border-top: 1px solid var(--project-18);
background: var(--project-08);
}
.nav-section {
display: flex;
flex-direction: column;
gap: var(--space-1);
margin-top: var(--space-2);
}
.nav-section-label {
padding: var(--space-3) var(--space-3) var(--space-1);
color: var(--text-muted);
font-size: 10px;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.nav-chevron {
flex: 0 0 auto;
color: var(--text-muted);
transition: transform 0.15s ease;
}
.nav-section-toggle[aria-expanded="false"] .nav-chevron {
transform: rotate(-90deg);
}
#divider {
display: none;
}
/* Main content in the shell grid. */
#content {
width: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
position: relative;
z-index: 1;
}
.page {
display: none;
flex-direction: column;
height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
position: relative;
}
.page.active { display: flex; }
.app-page-glass {
background:
linear-gradient(180deg, rgba(13, 11, 15, 0.76) 0%, rgba(13, 11, 15, 0.34) 170px, rgba(13, 11, 15, 0.08) 100%),
radial-gradient(circle at 18% 0%, rgba(232, 93, 111, 0.10), transparent 300px);
}
/* Containment for narrow screens and unbroken runtime text. */
#content,
#content .page,
#chat-messages,
.chat-messages,
#log-entries,
.log-entry,
.log-main,
.log-body,
.log-headline,
.log-task-summary,
.log-task-timeline,
.chat-bubble,
.chat-bubble .message,
.marketplace-shell,
.marketplace-card,
.skills-card,
.widgets-list,
.widgets-card {
min-width: 0;
}
.log-body,
.log-headline,
.log-pill,
.log-raw,
.chat-bubble .message,
.marketplace-card-body,
.marketplace-card-meta,
.skills-card,
.widgets-card {
overflow-wrap: anywhere;
}
.files-layout {
position: relative;
display: grid;
grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
grid-template-areas: "sidebar preview";
flex: 1;
height: auto;
min-height: 0;
overflow: hidden;
}
.files-sidebar {
grid-area: sidebar;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
border-right: 1px solid var(--divider);
background: rgba(255, 255, 255, 0.02);
}
.files-toolbar {
display: flex;
gap: 8px;
padding: 12px 16px 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
flex-shrink: 0;
}
.files-toolbar input {
flex: 1;
min-width: 0;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--divider);
color: var(--text-primary);
border-radius: var(--radius-md);
padding: 10px 12px;
}
.files-browser-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
flex-shrink: 0;
}
.files-breadcrumb {
display: flex;
flex-wrap: wrap;
gap: 6px;
flex: 1 1 280px;
min-width: 0;
overflow: hidden;
}
.files-browser-actions {
display: inline-flex;
gap: 8px;
flex-shrink: 0;
margin-left: auto;
}
.files-crumb {
border: none;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
font-size: 12px;
max-width: min(360px, 70vw);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.files-crumb:hover {
color: var(--text-primary);
}
.files-crumb-sep {
color: var(--text-muted);
font-size: 12px;
}
.files-list {
flex: 1;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
padding: 8px;
}
.files-entry {
width: 100%;
display: grid;
grid-template-columns: 20px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
border: none;
background: transparent;
color: var(--text-primary);
border-radius: var(--radius-md);
padding: 10px 12px;
cursor: pointer;
text-align: left;
}
.files-entry:hover {
background: rgba(255, 255, 255, 0.04);
}
.files-entry.parent-link {
opacity: 0.88;
}
.files-entry.selected {
background: var(--accent-10);
box-shadow: inset 0 0 0 1px var(--accent-22);
}
.files-entry-icon {
color: var(--accent);
font-size: 12px;
}
.files-entry-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.files-entry-meta {
color: var(--text-muted);
font-size: 11px;
}
.files-empty {
padding: 18px 12px;
color: var(--text-muted);
font-size: 13px;
}
.files-preview {
grid-area: preview;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
background:
linear-gradient(180deg, var(--accent-05), transparent 120px),
rgba(255, 255, 255, 0.015);
}
.files-preview-header {
padding: 16px 20px 12px;
border-bottom: 1px solid var(--divider);
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-shrink: 0;
}
.files-preview-actions {
display: inline-flex;
gap: 8px;
flex-shrink: 0;
}
.files-preview-path {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
word-break: break-all;
}
.files-preview-meta {
margin-top: 4px;
font-size: 12px;
color: var(--text-secondary);
}
.files-preview-content {
flex: 1;
min-height: 0;
overflow: auto;
overflow-wrap: anywhere;
overscroll-behavior: contain;
margin: 0;
padding: 20px;
color: #d9dee8;
font-size: 12px;
line-height: 1.55;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
white-space: pre-wrap;
word-break: break-word;
}
.files-editor-shell {
display: flex;
flex-direction: column;
min-height: 100%;
gap: 12px;
}
.files-editor-name {
width: 100%;
border: 1px solid var(--divider);
border-radius: var(--radius-md);
padding: 10px 12px;
background: rgba(255, 255, 255, 0.04);
color: var(--text-primary);
font: inherit;
}
.files-editor {
width: 100%;
flex: 1;
min-height: 320px;
border: 0;
outline: none;
resize: none;
margin: 0;
padding: 0;
background: transparent;
color: inherit;
font: inherit;
line-height: inherit;
white-space: pre;
tab-size: 4;
}
.files-preview-image {
display: block;
max-width: 100%;
max-height: 100%;
margin: 0 auto;
border-radius: var(--radius);
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.files-preview-frame {
width: 100%;
min-height: 70vh;
border: 1px solid var(--divider);
border-radius: var(--radius);
background: #111827;
}
.files-drop-overlay {
position: absolute;
inset: 0;
display: none;
align-items: center;
justify-content: center;
background: rgba(12, 14, 18, 0.72);
backdrop-filter: blur(3px);
z-index: 5;
pointer-events: none;
}
.files-layout.drag-active .files-drop-overlay {
display: flex;
}
.files-drop-card {
padding: 22px 28px;
border-radius: var(--radius-lg);
border: 1px dashed var(--accent-55);
background: var(--accent-10);
color: var(--text-primary);
font-size: 14px;
font-weight: 600;
letter-spacing: 0.01em;
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
.files-context-menu {
position: fixed;
min-width: 160px;
padding: 6px;
border-radius: var(--radius);
border: 1px solid var(--divider);
background: rgba(18, 20, 26, 0.96);
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
z-index: 20;
}
.files-context-item {
width: 100%;
border: none;
border-radius: var(--radius-sm);
padding: 10px 12px;
background: transparent;
color: var(--text-primary);
text-align: left;
cursor: pointer;
}
.files-context-item:hover {
background: rgba(255, 255, 255, 0.06);
}
.files-context-item-danger {
color: #fca5a5;
}
.files-context-item-danger:hover {
background: rgba(239, 68, 68, 0.12);
color: #fecaca;
}
.files-modal-input {
width: 100%;
margin-top: 14px;
border: 1px solid var(--divider);
border-radius: var(--radius-md);
padding: 11px 12px;
background: rgba(255, 255, 255, 0.04);
color: var(--text-primary);
font: inherit;
}
.page-header,
.app-page-header {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-areas:
"leading title toolbar"
"tabs tabs tabs";
align-items: start;
gap: var(--space-2) var(--space-3);
padding: var(--page-header-padding-y) var(--page-header-padding-x) var(--page-header-padding-bottom);
background: transparent;
backdrop-filter: none;
flex-shrink: 0;
border-bottom: none;
}
.app-page-leading {
grid-area: leading;
display: flex;
align-items: center;
align-self: start;
min-width: 0;
}
.app-page-title-block {
grid-area: title;
min-width: 0;
}
.app-page-title-row {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.app-page-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
color: var(--accent);
}
.app-page-icon svg {
display: block;
}
.page-header h2,
.app-page-title {
margin: 0;
font-size: 16px;
font-weight: 600;
}
.app-page-description {
margin: 2px 0 0;
color: var(--text-secondary);
font-size: 13px;
line-height: 1.35;
max-width: 760px;
}
.app-page-toolbar,
.app-page-actions,
.app-page-trailing {
grid-area: toolbar;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
min-width: 0;
justify-self: end;
align-self: start;
}
.app-page-toolbar {
max-width: 100%;
}
.app-page-trailing {
max-width: 100%;
}
.app-page-tabs {
grid-area: tabs;
min-width: 0;
}
.app-tab-strip {
display: flex;
flex-wrap: nowrap;
gap: 10px;
overflow-x: auto;
padding: var(--pill-strip-padding);
scrollbar-width: none;
}
.app-tab-strip::-webkit-scrollbar {
display: none;
}
.app-tab {
flex: 0 0 auto;
white-space: nowrap;
border: 1px solid var(--surface-border);
background: var(--surface-card);
color: var(--text-secondary);
border-radius: var(--pill-radius);
padding: var(--pill-padding-y) var(--pill-padding-x);
font: inherit;
font-size: var(--pill-font-size);
font-weight: 600;
cursor: pointer;
transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.app-tab:hover,
.app-tab.active,
.app-tab.is-active {
color: var(--text-primary);
border-color: var(--focus-accent-border);
background: rgba(232, 93, 111, 0.12);
}
.app-tab-pill {
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 6px;
padding: 0 6px;
min-width: 18px;
height: 18px;
border-radius: 9px;
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
font-size: 11px;
font-family: 'JetBrains Mono', monospace;
}
.scroll-fade-y {
--scroll-fade-edge: 32px;
-webkit-mask-image: linear-gradient(
180deg,
transparent 0,
black var(--scroll-fade-edge),
black calc(100% - var(--scroll-fade-edge)),
transparent 100%
);
mask-image: linear-gradient(
180deg,
transparent 0,
black var(--scroll-fade-edge),
black calc(100% - var(--scroll-fade-edge)),
transparent 100%
);
}
.page-header .spacer { flex: 1; }
.app-page-header-overlay {
align-items: center;
}
.chat-page-header {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 5;
row-gap: 10px;
pointer-events: none;
/* Fade to transparent so the transcript scrolls under without a hard edge. */
background: linear-gradient(
180deg,
rgba(13, 11, 15, 0.92) 0%,
rgba(13, 11, 15, 0.78) 45%,
rgba(13, 11, 15, 0.38) 80%,
rgba(13, 11, 15, 0.00) 100%
);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
/* Dropdowns/menus must not fade under a header mask; the background
gradient is enough to soften the transcript edge. */
-webkit-mask-image: none;
mask-image: none;
overflow: visible;
}
.chat-page-header > * {
pointer-events: auto;
}
.chat-header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
max-width: min(100%, 640px);
}
.chat-header-btn {
border: 1px solid rgba(255,255,255,0.12);
background: rgba(13, 11, 15, 0.55);
backdrop-filter: blur(8px);
color: var(--text-secondary);
border-radius: 999px;
padding: 7px 14px;
font-size: 12px;
line-height: 1.2;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chat-header-btn:hover {
border-color: rgba(255,255,255,0.16);
color: var(--text-primary);
}
.chat-header-btn.on {
border-color: rgba(201, 53, 69, 0.38);
background: rgba(201, 53, 69, 0.14);
color: var(--accent-light);
}
.chat-header-btn.danger {
border-color: rgba(239, 68, 68, 0.22);
color: rgba(248, 113, 113, 0.95);
}
.chat-header-btn.danger:hover {
border-color: rgba(239, 68, 68, 0.40);
background: rgba(239, 68, 68, 0.08);
}
.chat-header-more {
position: relative;
flex: 0 0 auto;
}
.chat-header-more > summary {
list-style: none;
}
.chat-header-more > summary::-webkit-details-marker {
display: none;
}
.chat-header-menu {
position: absolute;
top: calc(100% + var(--space-2));
right: 0;
z-index: 90;
min-width: 150px;
padding: var(--space-2);
border: 1px solid var(--surface-border);
border-radius: var(--radius-md);
background: rgba(13, 11, 15, 0.92);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.chat-header-menu-item {
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text-secondary);
font: inherit;
font-size: 13px;
text-align: left;
padding: var(--space-2) var(--space-3);
cursor: pointer;
}
.chat-header-menu-item:hover {
color: var(--text-primary);
background: var(--surface-control);
}
/* Evolve/Consciousness live in this menu now; show their on-state in place. */
.chat-header-menu-item.on {
color: var(--accent-light);
font-weight: 700;
}
.chat-header-menu-item.danger {
color: rgba(248, 113, 113, 0.95);
}
/* When a mode inside More is active, mark the collapsed More pill with a dot. */
.chat-header-more > summary.has-active {
position: relative;
border-color: rgba(201, 53, 69, 0.38);
background: rgba(201, 53, 69, 0.14);
color: var(--accent-light);
}
.chat-header-more > summary.has-active::after {
content: '';
position: absolute;
top: 5px;
right: 7px;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
}
.chat-budget-pill {
appearance: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
padding: 4px 12px;
border-radius: 999px;
border: 1px solid rgba(245, 158, 11, 0.18);
background: rgba(13, 11, 15, 0.55);
backdrop-filter: blur(8px);
cursor: pointer;
min-width: 100px;
font: inherit;
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chat-budget-pill:hover {
border-color: rgba(245, 158, 11, 0.34);
background: rgba(245, 158, 11, 0.08);
transform: scale(1.02);
}
.chat-budget-pill:active {
transform: scale(0.98);
}
.chat-budget-text {
font-size: 11px;
font-weight: 600;
color: var(--amber);
white-space: nowrap;
letter-spacing: 0.02em;
}
.chat-budget-bar {
width: 100%;
height: 2px;
border-radius: 1px;
background: rgba(245, 158, 11, 0.12);
overflow: hidden;
}
.chat-budget-bar-fill {
height: 100%;
border-radius: 1px;
background: var(--amber);
transition: width 0.4s ease;
width: 0;
}
.status-badge {
padding: 4px 10px;
font-size: 11px;
font-weight: 500;
background: rgba(26, 21, 32, 0.78);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.status-badge.online { color: var(--green); }
.status-badge.starting { color: var(--amber); }
.status-badge.error { color: var(--red); }
.status-badge.offline { color: var(--text-muted); }
.status-badge.thinking {
color: var(--accent);
animation: thinking-pulse 1.5s ease-in-out infinite;
}
@keyframes thinking-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.typing-bubble { opacity: 0.7; }
.typing-dots {
display: inline-flex;
gap: 4px;
align-items: center;
height: 20px;
}
.typing-dots span {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-secondary);
animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
30% { transform: translateY(-6px); opacity: 1; }
}
.onboarding-overlay {
position: fixed;
inset: 0;
z-index: 50;
display: flex;
align-items: stretch;
justify-content: center;
}
.onboarding-overlay-backdrop {
position: absolute;
inset: 0;
background: rgba(6, 7, 10, 0.78);
backdrop-filter: blur(10px);
}
.onboarding-frame {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
border: 0;
background: transparent;
}
.onboarding-restart-card {
position: relative;
z-index: 1;
align-self: center;
width: min(460px, calc(100vw - 32px));
padding: 24px;
border: 1px solid var(--divider);
border-radius: var(--radius-sm);
background: var(--bg-secondary);
color: var(--text-primary);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}
.onboarding-restart-card h2 {
margin: 0 0 10px;
font-size: 20px;
}
.onboarding-restart-card p {
margin: 0 0 18px;
color: var(--text-secondary);
line-height: 1.5;
}
@media (max-width: 980px) {
.files-layout {
grid-template-columns: 1fr;
grid-template-rows: minmax(220px, 320px) minmax(0, 1fr);
grid-template-areas:
"sidebar"
"preview";
}
.files-sidebar {
border-right: none;
border-bottom: 1px solid var(--divider);
max-height: none;
}
}
#chat-messages,
.chat-messages {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 20px;
padding-top: var(--chat-header-reserve, 56px);
padding-bottom: var(--chat-input-reserve, 108px);
display: flex;
flex-direction: column;
gap: 8px;
/* Container for the late live-card width override. A narrow project panel
must respond to this column's width, not to the outer viewport. */
container-type: inline-size;
container-name: chatcol;
}
/* The transcript is a scrolling column, so rows must keep their natural
height. Children with overflow:hidden (live cards, skill_review bubbles)
otherwise get an automatic flex min-height of 0 and are shrunk to a 1px
strip when the transcript overflows instead of letting the list scroll. */
#chat-messages > *,
.chat-messages > * {
flex-shrink: 0;
}
/* Round glass "jump to newest" button — floats directly above the Send button
(right edges aligned), shown only when the user has scrolled up away from the
bottom. Anchored inside .chat-send-group (its positioning context) so it glues
to Send on desktop and mobile alike, regardless of textarea growth. */
.chat-scroll-bottom-btn {
position: absolute;
right: 0;
bottom: calc(100% + 12px);
z-index: 6;
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--accent-light);
background: rgba(26, 21, 32, 0.72);
border: 1px solid rgba(201, 53, 69, 0.42);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
cursor: pointer;
opacity: 0;
transform: translateY(8px) scale(0.9);
pointer-events: none;
transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.chat-scroll-bottom-btn.visible {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.chat-scroll-bottom-btn:hover {
color: #fff;
background: rgba(201, 53, 69, 0.16);
border-color: rgba(232, 93, 111, 0.6);
transform: translateY(0) scale(1.05);
}
.chat-scroll-bottom-btn:focus-visible {
outline: none;
border-color: rgba(232, 93, 111, 0.6);
box-shadow: 0 0 0 3px rgba(201, 53, 69, 0.18);
}
.chat-scroll-bottom-btn svg { display: block; }
.chat-bubble {
padding: 10px 14px;
border-radius: var(--radius-lg);
max-width: 80%;
word-wrap: break-word;
overflow-wrap: anywhere;
min-width: 0;
}
.chat-bubble.user {
background: linear-gradient(135deg, var(--user-bubble-from), var(--user-bubble-to));
border: 1px solid var(--user-border);
box-shadow: inset 0 1px 0 var(--user-glow);
align-self: flex-end;
margin-left: 20%;
}
.chat-bubble.assistant {
background: linear-gradient(135deg, var(--accent-18), rgba(120, 24, 36, 0.18));
border: 1px solid rgba(240, 122, 134, 0.24);
box-shadow: inset 0 1px 0 rgba(255, 214, 220, 0.05);
align-self: flex-start;
margin-right: 20%;
}
.chat-bubble.system {
background: var(--system-bubble-bg);
border-left: 2px solid var(--system-border);
align-self: flex-start;
margin-right: 20%;
}
.chat-bubble .sender {
font-size: 11px;
font-weight: 600;
margin-bottom: 4px;
}
.chat-bubble.user .sender { color: var(--user-sender); }
.chat-bubble.assistant .sender { color: rgba(250, 125, 125, 0.95); }
.chat-bubble.system .sender { color: var(--system-sender); }
.chat-bubble .message {
font-size: 15.5px;
line-height: 1.5;
color: var(--text-primary);
white-space: pre-wrap;
}
.chat-photo {
max-width: 100%;
border-radius: var(--radius-sm);
cursor: pointer;
}
.chat-video {
max-width: 100%;
border-radius: var(--radius-sm);
}
.chat-file {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 100%;
padding: 8px 12px;
border-radius: var(--radius-sm);
background: rgba(201, 53, 69, 0.12);
border: 1px solid rgba(255, 255, 255, 0.08);
color: var(--text-primary);
font: inherit;
text-align: left;
text-decoration: none;
word-break: break-all;
cursor: pointer;
}
button.chat-file:hover,
.chat-file:hover {
border-color: rgba(232, 93, 111, 0.4);
}
.chat-file-empty {
opacity: 0.6;
cursor: default;
}
.chat-file-row {
display: inline-flex;
align-items: center;
gap: 8px;
max-width: 100%;
}
.chat-file-download {
flex: 0 0 auto;
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: var(--accent-light);
background: rgba(26, 21, 32, 0.72);
border: 1px solid rgba(201, 53, 69, 0.42);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
font-size: 15px;
line-height: 1;
cursor: pointer;
transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.chat-file-download:hover {
color: #fff;
background: rgba(201, 53, 69, 0.16);
border-color: rgba(232, 93, 111, 0.6);
transform: scale(1.05);
}
.chat-file-download:focus-visible {
outline: none;
border-color: rgba(232, 93, 111, 0.6);
box-shadow: 0 0 0 3px rgba(201, 53, 69, 0.18);
}
.chat-bubble.user .message { color: var(--user-text); }
.chat-bubble.assistant .message { color: rgba(255, 235, 238, 0.96); }
.chat-bubble.system .message { color: var(--system-text); }
/* Shared rich-content contract (v6.71.0): rendered markdown/lists inside
cards and review disclosures. NOT applied to chat-bubble .message. */
.ui-rich-content {
overflow-wrap: anywhere;
min-inline-size: 0;
}
.ui-rich-content ul,
.ui-rich-content ol {
padding-inline-start: var(--space-5, 24px);
margin-block: 6px;
}
.ui-rich-content li {
margin-block: 3px;
}
.chat-bubble.system[data-system-type="skill_review"] {
padding: 0;
overflow: hidden;
}
.chat-bubble.system[data-system-type="skill_review"] .sender,
.chat-bubble.system[data-system-type="skill_review"] .msg-time {
margin-left: 14px;
margin-right: 14px;
}
.chat-bubble.system[data-system-type="skill_review"] .sender {
margin-top: 10px;
}
.chat-bubble.system[data-system-type="skill_review"] .msg-time {
margin-bottom: 10px;
}
.chat-bubble.system[data-system-type="skill_review"] .message {
white-space: normal;
}
.skill-review-disclosure {
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.skill-review-summary-button {
width: 100%;
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
padding: 11px 14px;
display: flex;
flex-direction: column;
gap: 7px;
text-align: left;
}
.skill-review-summary-button:hover {
background: rgba(245, 158, 11, 0.08);
}
.skill-review-summary-main {
color: rgba(255, 244, 220, 0.96);
font-weight: 650;
}
.skill-review-summary-side {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: rgba(255, 240, 210, 0.66);
font-size: 12px;
}
.skill-review-meta {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.skill-review-toggle-label {
flex-shrink: 0;
color: rgba(245, 158, 11, 0.95);
font-weight: 650;
}
.skill-review-full {
padding: 0 14px 14px;
color: rgba(255, 240, 210, 0.82);
white-space: pre-wrap;
}
.chat-bubble.pending {
opacity: 0.78;
border-style: dashed;
}
.msg-pending {
margin-top: 6px;
font-size: 11px;
color: var(--text-muted);
}
.msg-routing-annotation {
margin-top: 6px;
color: rgba(255, 255, 255, 0.58);
font-size: 11px;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.msg-routing-annotation[data-annotation-status="pending"] {
color: rgba(255, 255, 255, 0.42);
}
.msg-routing-annotation[data-annotation-status="needs_manual_target"],
.msg-routing-annotation[data-annotation-status="project_unavailable"] {
color: rgba(248, 180, 188, 0.9);
}
.msg-time {
font-size: 0.65rem;
color: var(--text-secondary, #666);
opacity: 0.4;
margin-top: 6px;
text-align: right;
transition: opacity 0.3s ease;
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
user-select: none;
}
.chat-bubble:hover .msg-time {
opacity: 0.8;
}
.chat-bubble.user .msg-time {
text-align: right;
}
.chat-bubble.assistant .msg-time {
text-align: left;
}
.chat-bubble.system .msg-time {
text-align: left;
}
/* Subdued progress messages. */
.chat-bubble.progress {
border-left: 2px solid rgba(220, 38, 38, 0.2);
padding-left: 14px;
max-width: min(100%, 760px);
margin-right: 0;
opacity: 0.72;
}
.chat-bubble.progress .sender {
font-size: 10px;
color: rgba(248, 113, 113, 0.6);
}
.chat-bubble.progress .message {
font-size: 13px;
line-height: 1.45;
color: rgba(255, 228, 232, 0.55);
}
.chat-live-card {
align-self: flex-start;
width: min(100%, 760px);
max-width: calc(100% - 20%);
margin-inline-end: 20%;
padding: 0;
border-radius: var(--radius-lg);
border: 1px solid var(--accent-dim);
background: var(--accent-04);
backdrop-filter: blur(12px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 200, 210, 0.03);
overflow: hidden;
container-type: inline-size;
container-name: livecard;
/* So the convert-to-project recolor (.is-project) fades in calmly (P3). */
transition: border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.chat-live-card[data-finished="1"] {
border-color: var(--accent-08);
background: rgba(201, 53, 69, 0.02);
}
.chat-live-card[hidden] {
display: none;
}
.chat-live-summary-button {
width: 100%;
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
padding: 11px 14px;
display: flex;
flex-direction: column;
gap: 8px;
user-select: none;
text-align: left;
}
.chat-live-summary-button:hover {
background: rgba(201, 53, 69, 0.06);
}
.chat-live-summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.chat-live-summary-main {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1;
}
.chat-live-summary-side {
display: inline-flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.chat-live-phase,
.chat-live-line-phase {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.08);
background: rgba(255,255,255,0.04);
color: var(--text-secondary);
font-size: 11px;
font-weight: 600;
text-transform: none;
}
.chat-live-phase:is(.start, .calling, .context, .progress, .working, .thought, .thinking, .boot),
.chat-live-line-phase:is(.start, .calling, .context, .progress, .working, .thought, .thinking, .boot) {
color: rgba(248, 130, 140, 0.95);
border-color: rgba(201, 53, 69, 0.24);
background: var(--accent-10);
}
.chat-live-card:not([data-finished="1"]) .chat-live-phase:is(.working, .thinking, .progress, .calling, .context) {
animation: thinking-pulse 1.5s ease-in-out infinite;
}
.chat-live-phase:is(.done, .ready, .ok, .result, .usage, .metrics),
.chat-live-line-phase:is(.done, .ready, .ok, .result, .usage, .metrics),
.log-entry .log-phase:is(.done, .ready, .ok, .result, .usage, .metrics),
.evo-runtime-pill.online {
color: var(--green);
border-color: rgba(34, 197, 94, 0.22);
background: rgba(34, 197, 94, 0.10);
}
.chat-live-phase:is(.warn, .alive, .empty, .cancelled),
.chat-live-line-phase:is(.warn, .alive, .empty, .cancelled),
.log-entry .log-phase:is(.warn, .alive, .empty, .cancelled),
.evo-runtime-pill.starting {
color: var(--amber);
border-color: rgba(245, 158, 11, 0.25);
background: rgba(245, 158, 11, 0.10);
}
.chat-live-phase:is(.error, .timeout, .lifecycle_error),
.chat-live-line-phase:is(.error, .timeout, .lifecycle_error),
.log-entry .log-phase:is(.error, .timeout, .lifecycle_error),
.evo-runtime-pill.error {
color: var(--red);
border-color: rgba(239, 68, 68, 0.25);
background: rgba(239, 68, 68, 0.10);
}
/* Live-card typing dots. */
.chat-live-typing {
display: inline-flex;
gap: 3px;
align-items: center;
flex-shrink: 0;
}
.chat-live-typing span {
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--accent-55);
animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-live-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-live-typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-live-card[data-finished="1"] > .chat-live-summary-button .chat-live-typing {
display: none;
}
.chat-live-title {
font-size: 13px;
font-weight: 400;
color: rgba(226, 232, 240, 0.68);
flex: 1;
min-width: 0;
line-height: 1.45;
white-space: pre-wrap;
}
/* P1 (v6.82): collapsed activity line under the title row. Root cards render
it only when a coined name holds the title (JS leaves it empty otherwise);
subagent cards always feed it from their routed progress. Empty ⇒ hidden, so
it reserves no space. Anywhere-wrap at ALL widths keeps the narrow-container
layout (chatcol query below) safe for long URLs/paths. */
.chat-live-activity {
color: var(--text-muted);
font-size: 12px;
line-height: 1.4;
min-width: 0;
overflow-wrap: anywhere;
}
.chat-live-activity:empty {
display: none;
}
.chat-live-count {
color: var(--text-muted);
font-size: 11px;
white-space: nowrap;
}
.chat-live-toggle {
color: var(--text-secondary);
font-size: 12px;
white-space: nowrap;
}
.chat-live-chevron {
color: var(--text-muted);
transition: transform 0.18s ease;
}
.chat-live-card[data-expanded="1"] > .chat-live-summary-button .chat-live-chevron {
transform: rotate(180deg);
}
.chat-live-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.chat-live-meta-text {
display: inline-flex;
align-items: center;
color: var(--text-secondary);
font-size: 12px;
}
.chat-live-timeline {
padding: 0 14px 12px;
display: none;
flex-direction: column;
gap: 8px;
}
.chat-live-card[data-expanded="1"] > .chat-live-timeline {
display: flex;
border-top: 1px solid rgba(255,255,255,0.05);
max-height: 420px;
overflow-y: auto;
}
.chat-subagents {
display: flex;
flex-direction: column;
gap: 8px;
margin-block: 2px 12px;
margin-inline: 24px 14px;
padding-inline-start: 14px;
border-inline-start: 1px solid rgba(201, 53, 69, 0.28);
}
.chat-subagents:empty {
display: none;
}
/* The root card width is owned by the CHAT COLUMN and therefore stays late
enough to beat the base 80% rule above. Ordinary bubble gutters are separate. */
@container chatcol (max-width: 620px) {
.chat-bubble {
max-width: 100%;
}
.chat-bubble.user {
margin-inline-start: 0;
}
.chat-bubble.assistant,
.chat-bubble.system {
margin-inline-end: 0;
}
.chat-live-card {
width: 100%;
max-width: 100%;
margin-inline-end: 0;
}
}
/* Internal card geometry is owned by the CARD'S actual width. This catches a
deeply nested child even when the outer chat column is wide. The main row
takes a real 100% flex basis; flex-wrap alone leaves flex:1 at a zero basis
and recreates the one-letter-wide title. Nested indentation is paid once,
then flattened so depth cannot consume the text column. */
@container livecard (max-width: 620px) {
.chat-live-summary {
flex-wrap: wrap;
}
.chat-live-summary-main {
flex: 1 1 100%;
flex-wrap: wrap;
}
.chat-live-title {
flex: 1 1 100%;
overflow-wrap: anywhere;
}
.chat-live-summary-side {
margin-inline-start: auto;
max-width: 100%;
flex-wrap: wrap;
justify-content: flex-end;
}
.chat-live-line-toggle {
flex-wrap: wrap;
}
.chat-live-line-head {
flex: 1 1 100%;
}
.chat-live-line-title {
overflow-wrap: anywhere;
}
.chat-live-line-expand-label {
margin-inline-start: auto;
}
.chat-subagents {
margin-inline: 0;
padding-inline-start: 8px;
}
.chat-subagents .chat-subagents {
padding-inline-start: 0;
}
}
.chat-live-card.subagent {
width: 100%;
max-width: 100%;
margin-inline-end: 0;
border-color: rgba(201, 53, 69, 0.20);
background: rgba(255, 255, 255, 0.025);
box-shadow: inset 0 1px 0 rgba(255, 200, 210, 0.03);
}
.chat-live-card.subagent .chat-live-summary-button {
padding: 9px 12px;
}
.chat-live-line {
border-top: 1px solid rgba(255,255,255,0.05);
padding-top: 10px;
display: flex;
flex-direction: column;
gap: 6px;
}
.chat-live-line:first-child {
border-top: none;
padding-top: 0;
}
.chat-live-line.expandable {
/* The whole non-interactive row surface toggles the line (v6.71.0). */
cursor: pointer;
border-radius: var(--radius);
transition: background 0.18s ease;
}
.chat-live-line.expandable:hover {
background: rgba(255,255,255,0.02);
}
.chat-live-line.expandable[data-expanded="1"] {
background: rgba(59, 130, 246, 0.08);
}
.chat-live-line-toggle {
width: 100%;
padding: 0;
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
text-align: left;
}
.chat-live-line-head {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
flex: 1;
min-width: 0;
}
.chat-live-line-title {
color: rgba(226, 232, 240, 0.72);
font-size: 13px;
font-weight: 400;
line-height: 1.45;
white-space: pre-wrap;
}
.chat-live-line-repeat {
color: var(--text-muted);
font-size: 11px;
}
.chat-live-line-time {
margin-left: auto;
color: var(--text-muted);
font-size: 11px;
}
.chat-live-line-expand-label {
color: var(--text-secondary);
font-size: 12px;
white-space: nowrap;
flex-shrink: 0;
padding-top: 1px;
}
.chat-live-line-body {
color: rgba(226, 232, 240, 0.64);
white-space: pre-wrap;
word-break: break-word;
font-size: 13px;
line-height: 1.5;
}
/* P3: the genuinely-full fetched output is shown in a bounded, scrollable box so a
huge subagent/research result expands in place without growing the chat endlessly. */
.chat-live-line-body.chat-live-line-body-full {
max-height: 420px;
overflow-y: auto;
}
.chat-live-line-loading {
margin-top: 6px;
font-size: 12px;
font-style: italic;
color: rgba(148, 163, 184, 0.8);
}
.chat-live-line[data-expanded="1"] .chat-live-line-title {
color: rgba(239, 246, 255, 0.9);
}
.chat-live-line[data-expanded="1"] .chat-live-line-body {
color: rgba(239, 246, 255, 0.82);
}
.chat-live-line.error .chat-live-line-title,
.chat-live-line.timeout .chat-live-line-title {
color: #fda4af;
}
.chat-bubble .message pre {
background: rgba(0, 0, 0, 0.3);
border-radius: 6px;
padding: 8px 10px;
margin: 6px 0;
overflow-x: auto;
font-size: 13px;
line-height: 1.5;
}
.chat-bubble .message code {
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 13px;
}
.chat-bubble .message .inline-code {
background: rgba(255, 255, 255, 0.08);
padding: 1px 5px;
border-radius: 4px;
font-size: 14px;
}
.chat-bubble .message del {
opacity: 0.5;
text-decoration: line-through;
}
.chat-bubble .message .md-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
margin: 8px 0;
}
.chat-bubble .message .md-table th {
text-align: left;
font-weight: 600;
color: var(--text-primary);
padding: 4px 8px;
border-bottom: 1px solid rgba(255,255,255,0.15);
}
.chat-bubble .message .md-table td {
padding: 3px 8px;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Global markdown rendering classes. */
.md-h1 {
font-size: 16px;
color: var(--text-primary);
display: block;
margin: 12px 0 6px;
}
.md-h2 {
font-size: 14px;
color: var(--text-primary);
display: block;
margin: 10px 0 4px;
}
.md-h3 {
font-size: 13px;
color: var(--text-primary);
display: block;
margin: 8px 0 4px;
}
.md-li {
display: block;
padding-left: 12px;
}
.md-link {
color: var(--accent);
text-decoration: underline;
}
/* Prevent wide tables from breaking bubble layout. */
.md-table-wrap {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
max-width: 100%;
}
.nav-spacer {
flex: 1;
}
/* Early mobile overrides; late-defined selectors are handled at file end. */
@media (max-width: 640px) {
/* Prevent iOS zoom on input focus. */
textarea, input[type="text"], input[type="password"], input[type="email"], select {
font-size: 16px !important;
}
.chat-bubble {
max-width: 92%;
}
.chat-bubble.user {
margin-left: 8%;
}
.chat-bubble.assistant,
.chat-bubble.system {
margin-right: 8%;
}
.chat-bubble.progress {
max-width: 100%;
margin-right: 0;
}
#app {
grid-template-columns: minmax(0, 1fr);
}
.mobile-nav-toggle {
position: static;
flex: 0 0 44px;
width: 44px;
height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--surface-border);
border-radius: var(--radius-md);
background: rgba(13, 11, 15, 0.76);
color: var(--text-primary);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.nav-drawer-backdrop {
position: fixed;
inset: 0;
z-index: 68;
display: block;
background: rgba(0, 0, 0, 0.48);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
}
.nav-drawer-backdrop[hidden] {
display: none;
}
#primary-sidebar {
position: fixed;
inset: 0 auto 0 0;
z-index: 70;
width: min(86vw, 320px);
max-width: 320px;
transform: translateX(-105%);
transition: transform 0.18s ease;
box-shadow: 24px 0 60px rgba(0, 0, 0, 0.36);
padding-top: calc(64px + env(safe-area-inset-top, 0px));
background:
linear-gradient(180deg, rgba(13, 11, 15, 0.94), rgba(13, 11, 15, 0.86)),
radial-gradient(circle at 8% 0%, rgba(201, 53, 69, 0.10), transparent 260px);
}
#primary-sidebar.open {
transform: translateX(0);
}
.unread-badge {
top: 2px;
right: 4px;
min-width: 14px;
height: 14px;
font-size: 9px;
}
#nav-version,
.nav-spacer {
display: none;
}
#content {
padding-left: 0;
padding-bottom: env(safe-area-inset-bottom, 0px);
}
.chat-page-header {
/* Keep the desktop overlay header (position:absolute + fade-to-transparent
gradient + blur): the transcript scrolls under it. Only restack the grid
for narrow widths — never switch to position:static / a flat background,
which is what removed the gradient and made mobile look heavy. */
row-gap: 6px;
grid-template-columns: auto minmax(0, 1fr);
grid-template-areas:
"leading title"
"toolbar toolbar"
"tabs tabs";
}
body.project-panel-open .mobile-nav-toggle {
display: none;
}
/* Restart / Panic / More is a short control set — let it wrap instead of
trapping the absolutely-positioned More menu inside an overflow-clip
(overflow:auto/hidden here is what made the dropdown invisible on mobile). */
.chat-header-actions {
display: flex;
max-width: 100%;
flex-wrap: wrap;
}
.chat-page-header .app-page-actions {
width: 100%;
margin-left: 0;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.chat-page-header .chat-budget-pill,
.chat-page-header .status-badge {
order: 0;
}
.chat-budget-pill {
min-width: 0;
padding: 3px 10px;
}
.chat-budget-text {
font-size: 10px;
}
.page-header,
.app-page-header {
grid-template-columns: auto minmax(0, 1fr);
grid-template-areas:
"leading title"
"toolbar toolbar"
"tabs tabs";
padding: 10px 12px;
}
}
#chat-input-area,
.chat-input-area {
/* Bottom fade darkens transcript before the frosted input without trapping scroll. */
display: flex;
flex-direction: column;
gap: 4px;
padding: 32px 16px 16px;
align-items: stretch;
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 5;
pointer-events: none;
background: linear-gradient(
0deg,
rgba(13, 11, 15, 0.82) 0%,
rgba(13, 11, 15, 0.58) 48%,
rgba(13, 11, 15, 0.22) 78%,
rgba(13, 11, 15, 0.00) 100%
);
}
#chat-input-area > *,
.chat-input-area > * {
pointer-events: auto;
}
.chat-input-wrap {
--composer-control-height: 32px;
--composer-control-font-size: 12px;
--composer-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 22px rgba(0, 0, 0, 0.12);
flex: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
gap: var(--space-2);
min-width: 0;
}
.chat-text-row {
order: 2;
display: flex;
align-items: center;
gap: var(--space-2);
min-width: 0;
padding: var(--space-2);
/* Oval (pill) composer: the send/attach controls are vertically CENTERED so they
never bulge out of the rounded corners as the textarea grows multi-line (the
earlier flex-end + 999px pushed them past the curve; centering fixes that). */
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.10);
background: rgba(26, 21, 32, 0.68);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.chat-text-row:focus-within {
border-color: var(--focus-accent-border);
background: rgba(26, 21, 32, 0.86);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 3px var(--accent-10);
}
/* "Chat freed" cue (P3): a brief fuchsia brighten when a task moves out to a
project, signalling the main chat is free again. Self-clears after ~900ms. */
.chat-text-row.chat-freed {
border-color: var(--project);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 3px var(--project-12);
}
.chat-toolbar-row {
order: 1;
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: var(--space-2);
min-width: 0;
padding: 0 var(--space-2);
}
#chat-input-area.drag-active .chat-input-wrap,
.chat-input-area.drag-active .chat-input-wrap {
border-radius: 24px;
box-shadow: 0 0 0 1px rgba(232, 93, 111, 0.45), 0 0 0 4px var(--accent-10);
}
/* Attach button: a flow item at the left of the text row (no absolute float). */
.chat-attach-btn {
flex: 0 0 auto;
align-self: center;
width: 32px;
height: 32px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: rgba(226, 232, 240, 0.45);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: color 0.15s, background 0.15s;
padding: 0;
}
.chat-attach-btn:hover {
color: rgba(226, 232, 240, 0.85);
background: rgba(255, 255, 255, 0.06);
}
.chat-file-input-hidden {
display: none !important;
}
.chat-attach-btn.uploading {
opacity: 0.5;
pointer-events: none;
}
.chat-attachment-preview {
display: none;
padding: 4px 8px 2px;
max-height: 112px;
overflow-y: auto;
}
.chat-attachment-preview.visible {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.attach-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px 4px 6px;
background: rgba(26, 21, 32, 0.78);
border: 1px solid rgba(201, 53, 69, 0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: var(--radius-sm);
font-size: 12px;
color: rgba(226, 232, 240, 0.85);
max-width: 100%;
}
.attach-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: min(220px, 56vw);
}
.attach-remove {
flex-shrink: 0;
border: none;
background: none;
color: rgba(226, 232, 240, 0.5);
cursor: pointer;
font-size: 16px;
line-height: 1;
padding: 0 2px;
}
.attach-remove:hover {
color: rgba(226, 232, 240, 0.9);
}
#chat-input,
textarea.chat-input {
/* Bare text surface inside the .chat-input-wrap card (the card owns the
border / background / focus ring), so no fixed side paddings to reserve
room for floated controls — the row flexes at any width. */
flex: 1 1 auto;
width: 100%;
min-width: 0;
padding: 5px 4px;
border: none;
background: transparent;
box-shadow: none;
color: var(--text-primary);
font-size: 15px;
font-family: inherit;
outline: none;
resize: none;
min-height: 32px;
max-height: 140px;
line-height: 1.45;
}
#chat-input::placeholder,
textarea.chat-input::placeholder { color: var(--text-muted); }
/* Composer pills (Swarm + Low|Max), left of the absolute send button. */
.chat-composer-pills {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
}
/* One-shot Swarm arm pill: dim when idle, accent when armed. */
.chat-swarm {
height: var(--composer-control-height);
padding: 0 12px;
border: 1px solid rgba(226, 232, 240, 0.12);
border-radius: 999px;
background: rgba(26, 21, 32, 0.38);
color: rgba(226, 232, 240, 0.68);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: var(--composer-control-shadow);
font-size: var(--composer-control-font-size);
font-weight: 700;
letter-spacing: 0;
font-family: inherit;
cursor: pointer;
white-space: nowrap;
transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.chat-swarm:hover {
color: var(--accent);
border-color: rgba(232, 93, 111, 0.40);
background: rgba(38, 25, 34, 0.58);
}
.chat-swarm[data-armed="true"] {
color: var(--accent);
border-color: rgba(232, 93, 111, 0.44);
background: rgba(232, 93, 111, 0.14);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 3px var(--accent-10);
}
/* Low|Max segmented control: both options visible, the active one highlighted. */
.chat-context-mode {
display: inline-flex;
align-items: center;
height: var(--composer-control-height);
border: 1px solid rgba(226, 232, 240, 0.12);
border-radius: 999px;
overflow: hidden;
background: rgba(26, 21, 32, 0.38);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: var(--composer-control-shadow);
font-size: var(--composer-control-font-size);
font-weight: 700;
letter-spacing: 0;
}
.chat-context-mode[data-disabled="true"] {
opacity: 0.5;
pointer-events: none;
}
.chat-context-mode .chat-seg {
height: var(--composer-control-height);
padding: 0 12px;
border: none;
background: transparent;
color: rgba(226, 232, 240, 0.45);
font: inherit;
cursor: pointer;
transition: color 0.15s, background 0.15s;
}
.chat-context-mode .chat-seg:hover {
color: var(--text-primary);
}
/* Active segment: Max glows accent (full context); Low glows amber (reduced). */
.chat-context-mode[data-context-mode="max"] .chat-seg[data-mode="max"] {
background: rgba(232, 93, 111, 0.16);
color: var(--accent);
}
.chat-context-mode[data-context-mode="low"] .chat-seg[data-mode="low"] {
background: rgba(245, 158, 11, 0.16);
color: var(--amber);
}
.chat-send-group {
flex: 0 0 auto;
align-self: center;
display: flex;
align-items: center;
gap: 0;
height: var(--composer-control-height);
/* Positioning context for the round "jump to newest" button, which floats
directly above the Send button (right edges aligned). */
position: relative;
}
.chat-send-group[data-busy="1"] {
opacity: 0.72;
}
.chat-send-inline {
border: 1px solid rgba(232, 93, 111, 0.28);
background: rgba(232, 93, 111, 0.08);
color: var(--accent);
font-size: var(--composer-control-font-size);
font-weight: 700;
font-family: inherit;
letter-spacing: 0;
cursor: pointer;
padding: 0 13px;
height: 100%;
border-radius: 999px;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
box-shadow: var(--composer-control-shadow);
transition: color 0.18s, background 0.18s, border-color 0.18s, opacity 0.18s;
opacity: 0.88;
display: flex;
align-items: center;
}
.chat-send-inline:hover {
opacity: 1;
background: var(--accent-18);
border-color: rgba(232, 93, 111, 0.48);
}
.chat-send-inline:active {
background: var(--accent-18);
opacity: 1;
}
/* Shared UI components. */
.ui-card,
:where(.settings-shell .form-section, .settings-card, .settings-provider-card, .settings-extension-section, .mcp-server-card, .settings-model-card, .settings-effort-card, .settings-custom-secret-row, .skills-card, .marketplace-card, .widgets-card, .updates-card, .costs-budget-card) {
border: 1px solid var(--ui-card-border);
border-radius: var(--radius);
background: var(--ui-card-bg);
}
.ui-card-soft,
:where(.settings-model-card, .settings-effort-card, .settings-custom-secret-row, .skills-card, .marketplace-card, .widgets-card) {
background: var(--ui-card-bg-soft);
}
.ui-chip,
:where(.status-badge, .skills-status-chip, .mcp-server-status, .evo-runtime-pill, .evo-runtime-chip) {
display: inline-flex;
align-items: center;
gap: 6px;
border-radius: 999px;
white-space: nowrap;
}
.ui-status,
:where(.settings-inline-status, .marketplace-status, .wizard-runtime-status) {
color: var(--text-secondary);
font-size: 13px;
line-height: 1.45;
}
.ui-status[data-tone="ok"],
:where(.settings-inline-status[data-tone="ok"], .settings-test-result[data-tone="ok"], .marketplace-status[data-tone="ok"]) { color: var(--ui-tone-ok); }
.ui-status[data-tone="warn"],
:where(.settings-inline-status[data-tone="warn"], .settings-test-result[data-tone="warn"], .marketplace-status[data-tone="warn"]) { color: var(--ui-tone-warn); }
.ui-status[data-tone="danger"],
.ui-status[data-tone="error"],
:where(.settings-inline-status[data-tone="error"], .settings-test-result[data-tone="error"], .marketplace-status[data-tone="danger"]) { color: var(--ui-tone-danger); }
.ui-modal-backdrop,
:where(.marketplace-modal-backdrop) {
position: fixed;
inset: 0;
z-index: 90;
display: flex;
justify-content: center;
overflow-y: auto;
background: rgba(0, 0, 0, 0.55);
}
.ui-modal,
:where(.marketplace-modal) {
width: 100%;
display: flex;
flex-direction: column;
border: 1px solid var(--surface-border);
background: var(--ui-modal-bg);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.stat-card {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
border-radius: var(--radius);
padding: 16px 20px;
border: 1px solid var(--accent-08);
backdrop-filter: blur(14px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
transition: border-color 0.3s;
}
.stat-card:hover {
border-color: rgba(201, 53, 69, 0.2);
}
.stat-card .label {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 6px;
}
.stat-card .value {
font-size: 20px;
font-weight: 700;
}
.section-title {
font-size: 14px;
font-weight: 600;
color: var(--text-secondary);
margin: 16px 0 12px;
}
.btn {
padding: var(--button-padding-y) var(--button-padding-x);
border-radius: var(--radius-sm);
border: 1px solid transparent;
font-size: var(--button-font-size);
font-weight: 500;
font-family: inherit;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: var(--button-min-height);
text-align: center;
transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
transform: scale(1.02);
}
.btn:active {
transform: scale(0.98);
box-shadow: 0 0 0 3px var(--accent-08);
}
.btn:disabled {
cursor: not-allowed;
opacity: 0.55;
transform: none;
box-shadow: none;
}
.btn-primary {
background: var(--accent-dim);
color: var(--accent-light);
border-color: rgba(201, 53, 69, 0.20);
}
.btn-primary:hover {
background: var(--accent-25);
border-color: rgba(232, 93, 111, 0.35);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.04);
color: var(--text-secondary);
border-color: rgba(255, 255, 255, 0.10);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.07);
color: var(--text-primary);
border-color: rgba(232, 93, 111, 0.28);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border-color: rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover {
background: rgba(255, 255, 255, 0.04);
color: var(--text-primary);
}
.btn-danger {
background: rgba(220, 38, 38, 0.2);
color: #fca5a5;
border: 1px solid rgba(220, 38, 38, 0.3);
animation: panic-glow 2s ease-in-out infinite;
}
.btn-danger:hover { background: rgba(220, 38, 38, 0.35); }
@keyframes panic-glow {
0%, 100% { box-shadow: none; }
50% { box-shadow: 0 0 8px rgba(220, 38, 38, 0.3); }
}
.btn-save {
background: var(--green-dim);
color: var(--green);
border-color: rgba(34, 197, 94, 0.22);
}
.btn-save:hover { background: rgba(34, 197, 94, 0.25); }
.btn-default {
background: var(--bg-card);
color: var(--text-primary);
border-color: rgba(255, 255, 255, 0.08);
}
.btn-default:hover {
background: var(--bg-hover);
border-color: rgba(255, 255, 255, 0.14);
}
.form-section { margin-bottom: 24px; }
.form-section h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
.form-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 12px;
}
.form-field {
display: flex;
flex-direction: column;
gap: 4px;
}
.form-field label {
font-size: 12px;
color: var(--text-secondary);
}
.form-field input, .form-field select {
padding: 8px 12px;
border-radius: var(--radius-sm);
border: 1px solid var(--divider);
background: var(--bg-secondary);
color: var(--text-primary);
font-size: 14px;
font-family: inherit;
outline: none;
width: 320px;
max-width: 100%;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-dim);
}
.local-toggle {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
color: var(--text-secondary);
cursor: pointer;
padding-bottom: 8px;
white-space: nowrap;
}
.local-toggle input[type="checkbox"] {
accent-color: var(--accent);
width: 14px;
height: 14px;
cursor: pointer;
}
.local-toggle[title] {
transition: color 0.2s;
}
.form-field input[type="range"] {
-webkit-appearance: none;
height: 4px;
background: rgba(255, 255, 255, 0.12);
border-radius: 2px;
border: none;
padding: 0;
}
.logs-filters {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 8px 20px;
align-items: center;
}
.logs-inline-clear {
margin-left: auto;
}
.filter-chip {
padding: 4px 12px;
border-radius: var(--radius-lg);
border: 1px solid var(--divider);
background: transparent;
color: var(--text-secondary);
font-size: 12px;
font-family: inherit;
cursor: pointer;
transition: all 0.15s;
}
.filter-chip.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-dim);
}
#log-entries {
flex: 1;
overflow-y: auto;
padding: 12px;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 12px;
line-height: 1.55;
background: rgba(255, 255, 255, 0.02);
margin: 0 12px 12px;
border-radius: var(--radius-sm);
}
.log-entry {
padding: 10px 12px;
border-radius: var(--radius-sm);
display: flex;
flex-direction: column;
gap: 6px;
border: 1px solid rgba(255,255,255,0.04);
background: rgba(255,255,255,0.015);
margin-bottom: 8px;
}
.log-entry:hover {
background: rgba(255, 255, 255, 0.03);
border-color: rgba(255,255,255,0.08);
}
.log-main {
display: flex;
gap: 8px;
align-items: baseline;
flex-wrap: wrap;
}
.log-entry .log-ts {
color: var(--text-muted);
flex-shrink: 0;
}
.log-entry .log-type {
font-weight: 700;
flex-shrink: 0;
min-width: 78px;
text-transform: uppercase;
letter-spacing: 0.03em;
font-size: 11px;
}
.log-entry .log-phase {
padding: 1px 8px;
border-radius: 999px;
font-size: 11px;
border: 1px solid rgba(255,255,255,0.08);
color: var(--text-secondary);
background: rgba(255,255,255,0.04);
}
.log-entry .log-phase:is(.start, .calling, .context, .progress, .thought, .boot, .working, .thinking) {
color: rgba(248, 130, 140, 0.95);
border-color: var(--accent-25);
background: var(--accent-10);
}
.log-entry .log-headline {
color: var(--text-primary);
font-weight: 600;
word-break: break-word;
}
.log-entry .log-repeat {
margin-left: auto;
color: var(--text-muted);
font-size: 11px;
}
.log-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.log-pill {
display: inline-flex;
align-items: center;
padding: 1px 8px;
border-radius: 999px;
background: rgba(255,255,255,0.05);
color: var(--text-secondary);
border: 1px solid rgba(255,255,255,0.05);
font-size: 11px;
}
.log-body {
color: var(--text-secondary);
word-break: break-word;
white-space: pre-wrap;
}
.log-actions {
display: flex;
justify-content: flex-end;
}
.log-raw-toggle {
border: 1px solid rgba(255,255,255,0.08);
background: transparent;
color: var(--text-muted);
border-radius: 6px;
padding: 3px 8px;
font-size: 11px;
cursor: pointer;
}
.log-raw-toggle:hover {
color: var(--text-primary);
border-color: rgba(255,255,255,0.14);
}
.log-raw {
margin: 0;
padding: 10px;
border-radius: var(--radius-sm);
background: rgba(0, 0, 0, 0.25);
color: var(--text-secondary);
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
}
.log-type.tools { color: var(--blue); }
.log-type.llm { color: var(--accent); }
.log-type.errors { color: var(--red); }
.log-type.tasks { color: var(--amber); }
.log-type.system { color: var(--text-muted); }
.log-type.consciousness { color: #d68cff; }
.log-task-card {
border-color: var(--accent-12);
background:
linear-gradient(135deg, rgba(201, 53, 69, 0.07), rgba(255,255,255,0.01)),
rgba(255,255,255,0.015);
}
.log-task-summary {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.log-task-review {
margin-top: 8px;
padding: 8px 10px;
border: 1px solid rgba(255,255,255,0.06);
border-radius: var(--radius-sm);
background: rgba(0,0,0,0.14);
}
.log-task-details {
border-top: 1px solid rgba(255,255,255,0.05);
padding-top: 8px;
}
.log-task-details summary {
cursor: pointer;
color: var(--text-secondary);
font-size: 11px;
user-select: none;
}
.log-task-timeline {
margin-top: 8px;
display: flex;
flex-direction: column;
gap: 8px;
}
.log-task-event {
padding: 8px 10px;
border-radius: var(--radius-sm);
background: rgba(0, 0, 0, 0.16);
border: 1px solid rgba(255,255,255,0.04);
display: flex;
flex-direction: column;
gap: 6px;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 53, 69, 0.2); border-radius: var(--radius-xs); }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 53, 69, 0.35); }
#reconnect-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 12px;
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
}
#reconnect-overlay.visible { display: flex; }
#reconnect-overlay .spinner {
width: 32px;
height: 32px;
border: 3px solid var(--divider);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cost-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.cost-table th {
text-align: left;
font-weight: 500;
color: var(--text-muted);
font-size: 11px;
padding: 4px 8px;
border-bottom: 1px solid var(--divider);
}
.cost-table td {
padding: 5px 8px;
border-bottom: 1px solid rgba(255,255,255,0.04);
color: var(--text-secondary);
}
.cost-table tbody tr:hover td {
background: rgba(255,255,255,0.03);
}
/* Settings LAN reachability hint. */
.settings-lan-hint {
margin-top: 8px;
padding: 8px 12px;
border-radius: var(--radius-sm);
font-size: 0.84em;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
color: var(--text-secondary, rgba(255,255,255,0.65));
}
.settings-lan-hint[data-tone="ok"] { border-color: rgba(100,200,100,0.25); }
.settings-lan-hint[data-tone="warn"] { border-color: rgba(220,180,50,0.35); }
.settings-lan-hint[data-tone="info"] { border-color: rgba(100,150,220,0.25); }
.settings-lan-hint a { color: inherit; text-decoration: underline; opacity: 0.9; }
.btn-sm {
padding: calc(var(--button-padding-y) - 4px) calc(var(--button-padding-x) - 4px);
font-size: calc(var(--button-font-size) - 1px);
min-height: 28px;
}
.evo-refresh-btn {
min-width: 92px;
}
.evolution-container {
display: flex;
flex-direction: column;
gap: 20px;
padding: 0 4px;
height: calc(var(--vvh) - 120px);
overflow-y: auto;
}
.evo-runtime-card,
.evo-chart-wrap {
background:
linear-gradient(180deg, var(--accent-05), rgba(255, 255, 255, 0.02)),
rgba(255, 255, 255, 0.02);
border: 1px solid var(--accent-12);
border-radius: var(--radius-lg);
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
backdrop-filter: blur(14px);
}
.evo-runtime-card {
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.evo-runtime-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 14px;
flex-wrap: wrap;
}
.evo-runtime-detail {
color: var(--text-secondary);
line-height: 1.6;
max-width: 880px;
}
.evo-runtime-pills,
.evo-runtime-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
/* Runtime-card head hosts embedded Evolution controls. */
.evo-runtime-controls {
align-items: center;
}
.evo-runtime-pill,
.evo-runtime-chip {
padding: 6px 10px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.04);
color: var(--text-secondary);
font-size: 12px;
}
.evo-runtime-chip strong {
font-weight: 600;
color: var(--text-primary);
}
.evo-chart-wrap {
position: relative;
width: 100%;
min-height: 400px;
max-height: 50vh;
padding: 16px;
}
.evo-tags-list {
overflow-x: auto;
}
.evo-tags-list table {
width: 100%;
}
.evo-empty {
padding: 18px;
border-radius: 14px;
border: 1px dashed rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.03);
color: var(--text-secondary);
line-height: 1.6;
}
@media (max-width: 900px) {
.evo-runtime-head {
flex-direction: column;
}
.evo-chart-wrap {
min-height: 320px;
max-height: none;
}
}
.about-body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
gap: 24px;
padding: 40px 20px;
text-align: center;
}
.about-logo {
width: 96px;
height: 96px;
border-radius: var(--radius-xl);
object-fit: cover;
}
.about-title { font-size: 28px; font-weight: 700; margin: 0; }
.about-version { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; }
.about-desc { max-width: 480px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.about-credits { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.about-links { display: flex; gap: 16px; justify-content: center; margin-top: 4px; }
.about-links a { color: var(--accent); text-decoration: none; }
.costs-scroll { overflow-y: auto; flex: 1; padding: 16px 20px; }
.costs-budget-card {
backdrop-filter: blur(12px);
padding: 20px 24px;
margin-bottom: 20px;
}
.costs-budget-title { font-size: 15px; font-weight: 600; margin: 0; color: var(--text-primary); }
/* Budget card head row hosts title plus embedded Refresh. */
.costs-budget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.costs-budget-refresh { flex: 0 0 auto; }
.costs-budget-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; margin-bottom: 16px; }
.costs-budget-fields .form-field { min-width: 0; }
.costs-budget-fields input { width: 100%; min-width: 0; }
.costs-budget-save { margin-top: 4px; }
.costs-stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 24px;
}
.costs-tables-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.costs-table-label { font-size: 14px; color: var(--text-secondary); margin: 0 0 8px; }
.cost-cell-name { font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-cell-right { text-align: right; }
.cost-top-model { font-size: 12px; }
.cost-bar-cell { width: 60px; }
.cost-bar { width: 60px; height: 6px; border: 0; border-radius: var(--radius-xs); overflow: hidden; opacity: 0.7; }
.cost-bar::-webkit-progress-bar { background: rgba(255, 255, 255, 0.08); }
.cost-bar::-webkit-progress-value { background: var(--accent); }
.cost-bar::-moz-progress-bar { background: var(--accent); }
.cost-empty-cell { color: var(--text-muted); text-align: center; }
.updates-scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 16px 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.updates-card {
backdrop-filter: blur(12px);
padding: 18px;
}
.updates-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
}
.updates-card-head-main {
min-width: 0;
flex: 1 1 auto;
}
/* Updates actions cluster sits in the head row. */
.updates-head-actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.updates-summary {
color: var(--text-secondary);
line-height: 1.55;
overflow-wrap: break-word;
word-break: normal;
}
.updates-meta,
.updates-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
#page-dashboard {
min-height: 0;
}
.dashboard-shell {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
padding: 0 20px 18px;
overflow: hidden;
}
/* Dashboard tabs inherit shared .app-tab* styling. */
.dashboard-panels,
.dashboard-panel {
flex: 1;
min-height: 0;
overflow: hidden;
}
/* Dashboard panels own the scroll-chain for embedded sub-panels. */
.dashboard-panels {
display: flex;
flex-direction: column;
}
.dashboard-panel {
display: none;
}
.dashboard-panel.active {
display: flex;
flex-direction: column;
}
/* P4: Activity subtab — cron schedules, running/queued tasks, background status. */
.activity-scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 16px 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.activity-section {
margin-bottom: 18px;
}
.activity-h {
margin: 0 0 8px;
font-size: 13px;
font-weight: 600;
color: rgba(226, 232, 240, 0.78);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.activity-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 9px 12px;
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
margin-bottom: 6px;
background: rgba(255, 255, 255, 0.02);
}
.activity-row.off {
opacity: 0.55;
}
.activity-row-main {
display: flex;
flex-direction: column;
min-width: 0;
}
.activity-name {
font-size: 13px;
color: rgba(239, 246, 255, 0.9);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.activity-sub {
font-size: 12px;
color: rgba(148, 163, 184, 0.85);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.activity-row-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.activity-tag {
font-size: 11px;
color: rgba(148, 163, 184, 0.8);
font-style: italic;
}
.activity-empty,
.activity-loading {
font-size: 13px;
color: rgba(148, 163, 184, 0.75);
padding: 8px 2px;
}
/* P2: main-screen Update pill + staged choice dialog. */
.update-pill {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 6px 8px;
padding: 5px 11px;
border-radius: 999px;
border: 1px solid rgba(56, 189, 248, 0.5);
background: rgba(56, 189, 248, 0.14);
color: #bae6fd;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.update-pill:hover {
background: rgba(56, 189, 248, 0.22);
}
.update-pill.has-local {
border-color: rgba(251, 191, 36, 0.55);
background: rgba(251, 191, 36, 0.14);
color: #fde68a;
}
.update-dialog-overlay {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(2, 6, 23, 0.6);
}
.update-dialog {
width: min(560px, calc(100vw - 32px));
max-height: calc(100vh - 64px);
overflow-y: auto;
background: #0f172a;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 20px;
color: rgba(226, 232, 240, 0.92);
}
.update-dialog-title {
margin: 0 0 6px;
font-size: 16px;
}
.update-dialog-meta {
font-size: 13px;
color: rgba(148, 163, 184, 0.9);
margin-bottom: 10px;
}
.update-dialog-conflicts {
margin: 0 0 12px;
padding-left: 18px;
max-height: 180px;
overflow-y: auto;
font-size: 12px;
color: rgba(226, 232, 240, 0.78);
}
.update-dialog-note {
font-size: 12px;
color: rgba(148, 163, 184, 0.85);
margin-bottom: 14px;
line-height: 1.5;
}
.update-dialog-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.update-dialog-status {
margin-top: 12px;
font-size: 13px;
color: rgba(148, 163, 184, 0.95);
}
.settings-embedded-content {
display: flex;
flex: 1;
min-height: 0;
flex-direction: column;
overflow: hidden;
}
.evo-versions-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
}
.evo-versions-branch {
flex: 1;
font-size: 13px;
color: var(--text-secondary);
}
.evo-versions-cols {
display: flex;
gap: 24px;
flex: 1;
overflow: hidden;
}
.evo-versions-col {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.evo-versions-list {
flex: 1;
overflow-y: auto;
}
.evo-versions-row {
display: flex;
align-items: center;
gap: 8px;
}
.evo-versions-row-label {
min-width: 70px;
text-align: center;
}
.evo-versions-row-msg {
flex: 1;
}
.btn-xs {
padding: 2px 8px;
font-size: 11px;
min-height: 22px;
}
.evo-empty-error {
color: var(--red);
}
/* Skills page. */
#page-skills,
#page-widgets {
flex-direction: column;
min-height: 0;
overflow: hidden;
}
.skills-scroll,
.widgets-scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: var(--space-4) var(--space-5) var(--space-5);
}
.skills-search-chrome {
flex: 0 0 auto;
margin: 2px 0 12px;
padding: 0 var(--space-5);
}
.skills-search-chrome[hidden] {
display: none !important;
}
.skills-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.skills-card {
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.skills-card-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
}
.skills-card-title {
flex: 1 1 auto;
min-width: 0;
}
.skills-card-title h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
letter-spacing: -0.01em;
}
.skills-card-desc {
margin: 4px 0 0;
color: rgba(250, 250, 250, 0.65);
font-size: 13px;
line-height: 1.45;
}
.skills-card-installed {
margin-top: 5px;
font-size: 11.5px;
}
.skills-card-toggle {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
flex-wrap: wrap;
justify-content: flex-end;
min-width: 0;
}
.skills-status-chip {
padding: 4px 10px;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.01em;
border: 1px solid transparent;
}
.skills-status-chip.is-clickable,
.skills-lock-hint.is-clickable {
cursor: pointer;
}
.skills-status-chip.is-clickable:hover,
.skills-lock-hint.is-clickable:hover {
filter: brightness(1.12);
}
.skills-status-ok {
background: rgba(34, 197, 94, 0.12);
color: #4ade80;
border-color: rgba(34, 197, 94, 0.3);
}
.skills-status-warn {
background: rgba(245, 158, 11, 0.12);
color: #fbbf24;
border-color: rgba(245, 158, 11, 0.3);
}
.skills-status-danger {
background: rgba(239, 68, 68, 0.12);
color: #f87171;
border-color: rgba(239, 68, 68, 0.3);
}
.skills-status-muted {
background: rgba(250, 250, 250, 0.06);
color: rgba(250, 250, 250, 0.65);
border-color: rgba(250, 250, 250, 0.12);
}
.skills-switch {
position: relative;
display: inline-flex;
align-items: center;
cursor: pointer;
user-select: none;
padding: 11px 4px;
margin: -11px -4px;
}
.skills-switch input {
position: absolute;
opacity: 0;
inset: 0;
margin: 0;
cursor: pointer;
}
.skills-switch-track {
position: relative;
display: inline-block;
width: 40px;
height: 22px;
border-radius: 999px;
background: rgba(250, 250, 250, 0.12);
transition: background 120ms ease;
}
.skills-switch-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #f8fafc;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
transition: transform 140ms ease, background 120ms ease;
}
.skills-switch input:checked + .skills-switch-track {
background: #22c55e;
}
.skills-switch input:checked + .skills-switch-track .skills-switch-thumb {
transform: translateX(18px);
}
.skills-switch input:focus-visible + .skills-switch-track {
outline: 2px solid rgba(34, 197, 94, 0.6);
outline-offset: 2px;
}
.skills-switch.is-locked,
.skills-switch input:disabled {
cursor: not-allowed;
}
.skills-switch.is-locked .skills-switch-track,
.skills-switch input:disabled + .skills-switch-track {
background: rgba(245, 158, 11, 0.18);
opacity: 0.7;
}
.skills-switch.is-locked .skills-switch-thumb,
.skills-switch input:disabled + .skills-switch-track .skills-switch-thumb {
background: rgba(245, 158, 11, 0.85);
}
/* Inline hint for switches locked by review/grants. */
.skills-lock-hint {
font-size: 12px;
color: #fbbf24;
margin-left: 2px;
display: flex;
align-items: center;
gap: 6px;
}
.skills-lock-hint[role="button"] {
outline: none;
}
.skills-lock-hint[role="button"]:focus-visible,
.skills-status-chip[role="button"]:focus-visible {
box-shadow: 0 0 0 2px var(--accent-55);
}
.skills-lock-hint::before {
content: '\1F512';
font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
font-size: 11px;
}
.skills-review-progress {
display: inline-flex;
align-items: center;
gap: 8px;
align-self: flex-start;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(201, 53, 69, 0.24);
background: var(--accent-08);
color: rgba(255, 220, 226, 0.86);
font-size: 12px;
}
.skills-review-spinner {
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid rgba(255, 220, 226, 0.24);
border-top-color: rgba(255, 220, 226, 0.9);
animation: skills-review-spin 900ms linear infinite;
}
@keyframes skills-review-spin {
to { transform: rotate(360deg); }
}
#skills-refresh.is-loading::after,
#widgets-refresh.is-loading::after {
content: '';
display: inline-block;
width: 10px;
height: 10px;
margin-left: 8px;
border-radius: 50%;
border: 2px solid rgba(250, 250, 250, 0.25);
border-top-color: rgba(250, 250, 250, 0.9);
animation: skills-review-spin 900ms linear infinite;
vertical-align: -1px;
}
.skills-access {
border: 1px solid rgba(250, 250, 250, 0.1);
border-radius: var(--radius-md);
padding: 10px 12px;
background: rgba(255, 255, 255, 0.02);
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
}
.skills-access-warn {
border-color: rgba(245, 158, 11, 0.35);
background: rgba(245, 158, 11, 0.06);
}
.skills-access-ok {
border-color: rgba(34, 197, 94, 0.3);
background: rgba(34, 197, 94, 0.05);
}
.skills-access-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: baseline;
}
.skills-access-label {
color: rgba(250, 250, 250, 0.5);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-right: 4px;
}
.skills-access-status {
color: rgba(250, 250, 250, 0.85);
}
.skills-access-actions {
margin-top: 4px;
}
.skills-access code {
padding: 1px 6px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.06);
font-size: 11.5px;
}
.skills-details {
margin-top: 4px;
border-top: 1px solid rgba(250, 250, 250, 0.06);
padding-top: 10px;
}
.skills-details > summary {
cursor: pointer;
user-select: none;
color: rgba(250, 250, 250, 0.55);
font-size: 12px;
list-style: none;
display: inline-flex;
align-items: center;
gap: 4px;
}
.skills-details > summary::-webkit-details-marker {
display: none;
}
.skills-details > summary::before {
content: '\25B8';
display: inline-block;
transition: transform 120ms ease;
font-size: 10px;
}
.skills-details[open] > summary::before {
transform: rotate(90deg);
}
.skills-detail-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: baseline;
font-size: 12.5px;
color: rgba(250, 250, 250, 0.7);
padding: 4px 0;
}
.skills-detail-label {
color: rgba(250, 250, 250, 0.5);
font-size: 11.5px;
text-transform: uppercase;
letter-spacing: 0.05em;
min-width: 90px;
}
.skills-detail-row code {
padding: 1px 6px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.05);
font-size: 11.5px;
}
.skills-card-actions {
display: flex;
gap: 8px;
align-items: flex-start;
flex-wrap: wrap;
}
.skills-primary-action {
min-width: 130px;
}
.skills-card-actions .skills-details {
margin-top: 0;
border: none;
padding: 0;
margin-left: auto;
}
.skills-card-actions .skills-details > summary {
/* Match action-button height so closed summaries align. */
padding: 6px 4px;
}
.skills-card-menu {
position: relative;
display: inline-flex;
}
.skills-card-menu-trigger {
width: 32px;
min-height: 32px;
border-radius: var(--radius-sm);
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.04);
color: var(--text-secondary);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-weight: 700;
font-size: 18px;
line-height: 1;
font-family: inherit;
padding: 0;
}
.skills-card-menu-trigger:hover {
border-color: rgba(232, 93, 111, 0.30);
color: var(--text-primary);
}
.skills-card-menu-dialog {
/* Anchored non-modal popover aligned to the trigger's right edge. */
position: absolute;
top: calc(100% + 6px);
right: 0;
left: auto;
margin: 0;
min-width: 160px;
padding: 6px;
border-radius: var(--radius);
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(18, 20, 26, 0.96);
color: var(--text-primary);
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
z-index: 50;
}
.skills-menu-item {
width: 100%;
border: 0;
background: transparent;
color: var(--text-secondary);
border-radius: var(--radius-sm);
padding: 9px 10px;
text-align: left;
cursor: pointer;
font: inherit;
font-size: 12px;
}
.skills-menu-item:disabled,
.skills-menu-item.is-disabled {
opacity: 0.55;
cursor: not-allowed;
}
.skills-menu-item:disabled:hover,
.skills-menu-item.is-disabled:hover {
background: transparent;
color: var(--text-secondary);
}
.skills-menu-item:hover {
background: var(--accent-10);
color: var(--text-primary);
}
/* Source/provenance chip for non-built-in skills. */
.skills-source-chip {
display: inline-block;
margin-left: 6px;
padding: 1px 8px;
border-radius: 999px;
font-size: 10.5px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
vertical-align: middle;
border: 1px solid transparent;
}
.skills-source-warn {
background: rgba(245, 158, 11, 0.1);
color: #fbbf24;
border-color: rgba(245, 158, 11, 0.25);
}
.skills-source-muted {
background: rgba(250, 250, 250, 0.05);
color: rgba(250, 250, 250, 0.55);
border-color: rgba(250, 250, 250, 0.1);
}
.skills-load-error {
color: var(--red);
font-size: 12px;
margin-bottom: 8px;
}
.skills-badge {
padding: 2px 8px;
border-radius: var(--radius-xs);
font-size: 11px;
font-family: 'JetBrains Mono', monospace;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.skills-badge-ok { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.skills-badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.skills-badge-warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.skills-badge-muted { background: rgba(250, 250, 250, 0.06); color: rgba(250, 250, 250, 0.55); }
.toast-stack {
position: fixed;
right: 18px;
top: calc(76px + env(safe-area-inset-top));
z-index: 120;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
pointer-events: none;
}
.toast {
max-width: min(420px, calc(100vw - 112px));
padding: 11px 14px;
border-radius: var(--radius);
border: 1px solid rgba(255, 255, 255, 0.10);
background: rgba(18, 20, 26, 0.94);
color: var(--text-primary);
box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
font-size: 13px;
line-height: 1.45;
pointer-events: auto;
cursor: pointer;
animation: toast-in 160ms ease-out;
}
.toast.is-hiding {
animation: toast-out 160ms ease-in forwards;
}
.toast-ok { border-color: rgba(34, 197, 94, 0.28); color: #bbf7d0; }
.toast-danger { border-color: rgba(239, 68, 68, 0.35); color: #fecaca; }
.toast-warn { border-color: rgba(245, 158, 11, 0.35); color: #fde68a; }
.toast-muted,
.toast-info { color: rgba(250, 250, 250, 0.78); }
@keyframes toast-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
from { opacity: 1; transform: translateY(0); }
to { opacity: 0; transform: translateY(8px); }
}
.skills-tabs {
margin-bottom: 14px;
}
.skills-tab-panel {
margin-top: 4px;
}
.marketplace-shell {
display: flex;
flex-direction: column;
gap: 12px;
}
.marketplace-controls {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
}
.marketplace-search {
flex: 1 1 240px;
min-width: 200px;
height: 36px;
min-height: 36px;
padding: 6px 10px;
border: 1px solid rgba(250, 250, 250, 0.1);
background: rgba(255, 255, 255, 0.03);
color: inherit;
border-radius: 6px;
font: inherit;
font-size: 13px;
}
.marketplace-search:focus {
outline: none;
border-color: rgba(250, 250, 250, 0.3);
background: rgba(255, 255, 255, 0.05);
}
.marketplace-checkbox {
display: inline-flex;
align-items: center;
gap: 6px;
color: rgba(250, 250, 250, 0.7);
font-size: 13px;
}
.marketplace-status {
min-height: 18px;
font-size: 12px;
}
.marketplace-results {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 12px;
}
.marketplace-card {
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
}
.marketplace-card.is-working {
border-color: rgba(245, 158, 11, 0.35);
background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.02));
/* Pulse during long install/adapt/review/deps work. */
animation: marketplace-card-pulse 2.4s ease-in-out infinite;
}
@keyframes marketplace-card-pulse {
0% { background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.02)); }
50% { background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.04)); }
100% { background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.02)); }
}
/* Marketplace filter row; real input preserves keyboard/a11y. */
.marketplace-filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
padding: 6px 0 8px;
}
.marketplace-filter-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
color: var(--text-secondary);
font-size: 13px;
user-select: none;
}
.marketplace-filter-toggle input[type="checkbox"] {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
border: 0;
overflow: hidden;
clip: rect(0 0 0 0);
}
.marketplace-filter-track {
width: 36px;
height: 20px;
border-radius: var(--radius-md);
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.06);
position: relative;
flex-shrink: 0;
transition: background 0.18s ease;
}
.marketplace-filter-track::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.85);
transition: transform 0.18s ease;
}
.marketplace-filter-toggle input[type="checkbox"]:checked + .marketplace-filter-track {
background: rgba(232, 93, 111, 0.55);
border-color: rgba(232, 93, 111, 0.65);
}
.marketplace-filter-toggle input[type="checkbox"]:checked + .marketplace-filter-track::after {
transform: translateX(16px);
background: #fff;
}
.marketplace-filter-toggle input[type="checkbox"]:focus-visible + .marketplace-filter-track {
outline: 2px solid rgba(232, 93, 111, 0.45);
outline-offset: 2px;
}
.marketplace-card-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 10px;
}
.marketplace-card-title strong {
font-size: 14px;
margin-right: 8px;
display: block;
}
.marketplace-card-title .muted {
font-size: 12px;
color: rgba(250, 250, 250, 0.55);
word-break: break-all;
}
.marketplace-card-badges {
display: flex;
flex-wrap: wrap;
gap: 4px;
justify-content: flex-end;
align-items: flex-start;
min-width: 0;
max-width: 100%;
}
.marketplace-card-body {
color: rgba(250, 250, 250, 0.8);
font-size: 13px;
line-height: 1.45;
min-height: 38px;
}
.marketplace-card-state {
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: var(--radius);
padding: 10px 12px;
font-size: 12px;
background: rgba(255, 255, 255, 0.035);
}
.marketplace-card-state strong {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.marketplace-working-spinner {
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid rgba(245, 158, 11, 0.22);
border-top-color: rgba(245, 158, 11, 0.95);
animation: skills-review-spin 900ms linear infinite;
}
.marketplace-card-state-hint {
color: rgba(250, 250, 250, 0.68);
line-height: 1.45;
}
.marketplace-state-ok {
border-color: rgba(34, 197, 94, 0.25);
}
.marketplace-state-warn {
border-color: rgba(245, 158, 11, 0.30);
}
.marketplace-state-danger {
border-color: rgba(239, 68, 68, 0.30);
}
.marketplace-card-meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
font-size: 12px;
color: rgba(250, 250, 250, 0.55);
}
.marketplace-card-meta a {
color: rgba(250, 250, 250, 0.75);
}
.marketplace-card-actions {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: auto;
}
.marketplace-primary-action .btn {
width: 100%;
}
.marketplace-secondary-actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.marketplace-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-top: 8px;
font-size: 12px;
}
/* Detail modal. */
.marketplace-modal-backdrop {
align-items: flex-start;
padding: 4vh 16px;
}
.marketplace-modal {
border-radius: var(--radius-md);
padding: 16px;
max-width: 900px;
gap: 12px;
}
.confirm-dialog {
max-width: 520px;
}
.confirm-dialog .marketplace-modal-body p {
margin: 0;
white-space: pre-line;
}
.marketplace-modal-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.marketplace-modal-body {
display: flex;
flex-direction: column;
gap: 14px;
max-height: 70vh;
overflow-y: auto;
}
.marketplace-modal-body section h3 {
margin: 0 0 4px 0;
font-size: 16px;
}
.marketplace-modal-body section h4 {
margin: 0 0 4px 0;
font-size: 13px;
color: rgba(250, 250, 250, 0.75);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.marketplace-modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.marketplace-block-list h4 { color: #ef4444; }
.marketplace-block-list ul { margin: 4px 0 0 0; padding-left: 18px; color: #ef4444; font-size: 12px; }
.marketplace-warn-list h4 { color: #f59e0b; }
.marketplace-warn-list ul { margin: 4px 0 0 0; padding-left: 18px; color: #f59e0b; font-size: 12px; }
/* Installed-card provenance and adapter warnings. */
.skills-card-provenance {
display: flex;
flex-wrap: wrap;
gap: 8px 14px;
align-items: center;
margin-top: 4px;
font-size: 12px;
}
.skills-card-warnings {
margin-top: 4px;
font-size: 12px;
}
.skills-card-warnings summary {
cursor: pointer;
user-select: none;
}
.skills-card-warnings ul {
margin: 6px 0 4px 16px;
padding: 0;
}
/* Widgets page. */
.widgets-list {
position: relative;
margin-top: 16px;
}
.widgets-card {
position: absolute;
left: 0;
top: 0;
padding: 14px;
backdrop-filter: blur(12px);
}
.widgets-card.dragging {
opacity: 0.68;
}
.widgets-card.drag-over {
border-color: rgba(232, 93, 111, 0.48);
box-shadow: 0 0 0 3px var(--accent-10);
}
.widgets-card-span-2 {
grid-column: span 2;
}
@media (max-width: 760px) {
.widgets-card-span-2 {
grid-column: span 1;
}
}
.widgets-card-head {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
margin-bottom: 12px;
}
.widgets-card-title {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
min-width: 0;
}
.widgets-card-drag {
flex: 0 0 auto;
width: 28px;
height: 28px;
border-radius: var(--radius-xs);
border: 1px solid rgba(226, 232, 240, 0.14);
background: rgba(26, 21, 32, 0.48);
color: rgba(226, 232, 240, 0.54);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
cursor: grab;
font: inherit;
font-size: 14px;
line-height: 1;
}
.widgets-card-drag:hover {
border-color: rgba(232, 93, 111, 0.44);
color: var(--text-primary);
}
.widgets-card-drag:active {
cursor: grabbing;
}
.widgets-card-source {
color: rgba(250, 250, 250, 0.5);
font-size: 12px;
}
.widgets-card-body > :first-child {
margin-top: 0;
}
.widgets-frame {
width: 100%;
min-height: 320px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: var(--radius);
background: rgba(13, 11, 15, 0.88);
}
.widget-form,
.widget-group,
.widget-metric,
.widget-callout,
.widget-kv,
.widget-markdown,
.widget-json,
.widget-code,
.widget-chart,
.widget-tabs,
.widget-stream,
.widget-media,
.widget-gallery,
.widget-progress,
.widget-map,
.widget-calendar,
.widget-kanban,
.widget-subscription-render {
margin-top: 10px;
}
.widget-json {
min-width: 0;
max-width: 100%;
}
.widget-json pre {
max-width: 100%;
max-height: min(360px, 50vh);
overflow: auto;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.widget-form {
display: flex;
flex-direction: column;
gap: 10px;
}
.widget-form-fields {
display: grid;
gap: 10px;
min-width: 0;
}
.widget-form-fields.widget-grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.widget-form-fields.widget-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widget-form-fields.widget-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.widget-form-fields.widget-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.widget-field-span-2 { grid-column: span 2; }
.widget-field-span-3 { grid-column: span 3; }
.widget-field-span-4 { grid-column: span 4; }
.widget-field {
display: flex;
flex-direction: column;
gap: 5px;
color: rgba(250, 250, 250, 0.72);
font-size: 13px;
}
.widget-field-inline {
flex-direction: row;
align-items: center;
}
.widget-field input,
.widget-field textarea,
.widget-field select {
min-width: 0;
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: var(--radius-sm);
background: rgba(13, 11, 15, 0.74);
color: var(--text-primary);
padding: 8px 10px;
font: inherit;
}
.widget-field textarea { resize: vertical; }
.widget-field-help {
color: var(--text-secondary);
font-size: 11px;
line-height: 1.35;
}
.widget-group {
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: var(--radius-sm);
padding: 10px;
}
.widget-group > h4,
.widget-group > p { margin: 0 0 8px; }
.widget-group > p { color: var(--text-secondary); font-size: 12px; }
.widget-group-components { min-width: 0; }
.widget-group-components > * { margin-top: 0; }
.widget-group-stack > .widget-group-components { display: flex; flex-direction: column; gap: 10px; }
.widget-group-cluster > .widget-group-components { display: flex; flex-wrap: wrap; align-items: start; gap: 10px; }
.widget-group-grid > .widget-group-components { display: grid; gap: 10px; }
.widget-group-grid.widget-grid-cols-1 > .widget-group-components { grid-template-columns: minmax(0, 1fr); }
.widget-group-grid.widget-grid-cols-2 > .widget-group-components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widget-group-grid.widget-grid-cols-3 > .widget-group-components { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.widget-group-grid.widget-grid-cols-4 > .widget-group-components { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.widget-group-grid > .widget-group-components > :is(
.widget-group,
.widget-form,
.widget-table-wrap,
.widget-chart,
.widget-tabs,
.widget-kanban,
.widget-code,
.widget-json,
.widget-subscription-render
) {
grid-column: 1 / -1;
}
.widget-metric,
.widget-callout {
border: 1px solid rgba(255, 255, 255, 0.08);
border-left-width: 3px;
border-radius: var(--radius-sm);
padding: 9px 10px;
}
.widget-metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.widget-metric > span { color: var(--text-secondary); font-size: 12px; }
.widget-metric > strong { font-size: 18px; }
.widget-metric small { color: var(--text-secondary); font-size: 11px; font-weight: 500; }
.widget-callout { font-size: 13px; line-height: 1.45; background: rgba(96, 165, 250, 0.06); }
.widget-metric[data-tone="ok"], .widget-callout[data-tone="ok"] { border-left-color: #34d399; }
.widget-metric[data-tone="warn"], .widget-callout[data-tone="warn"] { border-left-color: #fbbf24; }
.widget-metric[data-tone="danger"], .widget-callout[data-tone="danger"] { border-left-color: #e85d6f; }
.widget-metric[data-tone="info"], .widget-callout[data-tone="info"] { border-left-color: #60a5fa; }
.widget-kv-row {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 6px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.widget-table-wrap {
overflow-x: auto;
}
.widget-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.widget-table th,
.widget-table td {
padding: 7px 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
text-align: left;
overflow-wrap: break-word;
word-break: normal;
}
.widget-table th,
.widget-table-status { white-space: nowrap; }
.widget-table a { color: #93c5fd; overflow-wrap: anywhere; }
.widget-table-status { font-weight: 600; }
.widget-table-status[data-tone="ok"] { color: #6ee7b7; }
.widget-table-status[data-tone="warn"] { color: #fcd34d; }
.widget-table-status[data-tone="danger"] { color: #fb7185; }
.widget-media img,
.widget-media video {
max-width: 100%;
border-radius: var(--radius);
}
.widget-media audio {
width: 100%;
}
.widget-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 10px;
}
/* Host-owned map/calendar/kanban defaults without extra dependencies. */
.widget-map {
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: var(--radius-sm);
padding: 10px;
background: rgba(255, 255, 255, 0.02);
}
.widget-map-list { margin: 0; padding-left: 18px; font-size: 13px; }
.widget-map-list li { padding: 2px 0; }
.widget-calendar { font-size: 13px; }
.widget-calendar-list { list-style: none; margin: 0; padding: 0; }
.widget-calendar-row {
display: flex;
gap: 8px;
align-items: baseline;
padding: 6px 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.widget-kanban {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
gap: 10px;
margin-top: 8px;
}
.widget-kanban-col {
align-self: start;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--radius-sm);
padding: 10px;
min-height: 120px;
}
.widget-kanban-col.is-empty { min-height: 72px; }
.widget-kanban-col-head { margin-bottom: 8px; font-size: 12px; color: var(--text-secondary); }
.widget-kanban-empty { color: var(--text-muted); font-size: 11px; }
.widget-kanban-card {
display: flex;
flex-direction: column;
gap: 7px;
background: rgba(232, 93, 111, 0.12);
border: 1px solid rgba(232, 93, 111, 0.25);
border-radius: 6px;
padding: 6px 8px;
margin: 4px 0;
cursor: grab;
font-size: 12px;
}
.widget-kanban-card:active { cursor: grabbing; }
.widget-kanban-move {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
color: var(--text-secondary);
font-size: 10px;
}
.widget-kanban-move select {
min-width: 0;
max-width: 112px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 5px;
background: rgba(13, 11, 15, 0.82);
color: var(--text-primary);
font: inherit;
padding: 3px 5px;
}
.widget-progress {
display: flex;
align-items: center;
gap: 10px;
}
.widget-code pre {
margin: 0;
padding: 10px;
border-radius: var(--radius-sm);
background: rgba(0, 0, 0, 0.24);
overflow-x: auto;
}
.widget-code-label {
color: rgba(250, 250, 250, 0.65);
font-size: 12px;
margin-bottom: 6px;
}
.widget-chart {
min-height: 240px;
}
/* Bounded canvas (v6.71.0): a fixed-height positioned box for Chart.js
responsive sizing — charts stop growing the card unbounded, and the data
table below stays reachable. */
.widget-chart-canvas { position: relative; height: clamp(260px, 32vh, 360px); }
.widget-chart-canvas canvas { display: block; width: 100%; }
.widget-chart-fallback { min-height: 0; }
.widget-chart-data { margin-top: 8px; }
.widget-chart-data > summary { color: var(--text-secondary); cursor: pointer; font-size: 12px; }
/* SWR refresh (v6.71.0): content stays; a thin pulsing indicator marks the
background refetch instead of a loading swap. */
.widget-status[data-state="refreshing"] {
position: relative;
}
.widget-status[data-state="refreshing"]::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -2px;
height: 2px;
border-radius: 1px;
background: var(--accent, #7c5cff);
opacity: 0.5;
animation: widget-refresh-pulse 1.2s ease-in-out infinite;
}
@keyframes widget-refresh-pulse {
0%, 100% { opacity: 0.2; }
50% { opacity: 0.7; }
}
.widget-tab-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 10px;
}
.widget-tab-btn {
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 999px;
background: rgba(255, 255, 255, 0.03);
color: var(--text-secondary);
cursor: pointer;
padding: 5px 10px;
}
.widget-tab-btn.active {
border-color: rgba(232, 93, 111, 0.4);
background: rgba(232, 93, 111, 0.12);
color: var(--text-primary);
}
.widget-tab-body > :first-child {
margin-top: 0;
}
/* Late mobile overrides; placed after base rules so they win without !important. */
@media (max-width: 640px) {
.widget-kanban-col.is-empty {
min-height: 0;
padding-block: 8px;
}
.widget-kanban-col.is-empty .widget-kanban-col-head {
margin-bottom: 3px;
}
.widget-form-fields.widget-grid-cols-1,
.widget-form-fields.widget-grid-cols-2,
.widget-form-fields.widget-grid-cols-3,
.widget-form-fields.widget-grid-cols-4,
.widget-group-grid.widget-grid-cols-1 > .widget-group-components,
.widget-group-grid.widget-grid-cols-2 > .widget-group-components,
.widget-group-grid.widget-grid-cols-3 > .widget-group-components,
.widget-group-grid.widget-grid-cols-4 > .widget-group-components {
grid-template-columns: minmax(0, 1fr);
}
.widget-field-span-2,
.widget-field-span-3,
.widget-field-span-4 { grid-column: span 1; }
.widget-table-wrap { overflow-x: visible; }
.widget-table,
.widget-table tbody,
.widget-table tr,
.widget-table td { display: block; width: 100%; }
.widget-table thead { display: none; }
.widget-table tr {
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: var(--radius-sm);
margin-bottom: 8px;
padding: 5px 8px;
}
.widget-table td {
display: grid;
grid-template-columns: minmax(72px, 38%) minmax(0, 1fr);
gap: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
padding: 6px 0;
}
.widget-table td::before {
content: attr(data-label);
color: var(--text-secondary);
font-size: 11px;
}
.widget-table th[scope="row"] { display: block; padding: 6px 0; }
/* iOS safe-area inset. */
#chat-input-area,
.chat-input-area {
padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.chat-input-wrap,
.chat-text-row,
.chat-toolbar-row,
#chat-input,
textarea.chat-input {
min-width: 0;
}
.chat-input-wrap {
--composer-control-height: 32px;
}
.chat-toolbar-row {
position: static;
right: auto;
bottom: auto;
z-index: auto;
justify-content: flex-start;
gap: 8px;
padding: 0 6px;
}
.chat-composer-pills {
flex: 1;
overflow-x: auto;
scrollbar-width: none;
}
.chat-composer-pills::-webkit-scrollbar {
display: none;
}
.chat-swarm,
.chat-context-mode .chat-seg {
padding-left: 10px;
padding-right: 10px;
}
.chat-send-inline {
padding-left: 11px;
padding-right: 11px;
}
/* Transcript clears taller mobile header and absolute composer. */
#chat-messages,
.chat-messages {
padding-top: var(--chat-header-reserve, 80px);
padding-bottom: calc(var(--chat-input-reserve, 108px) + env(safe-area-inset-bottom, 0px));
overflow-x: hidden;
}
/* Keyboard-open layout: only #chat-messages scrolls within visual viewport. */
html.keyboard-open,
body.keyboard-open {
position: fixed;
inset: 0;
width: 100%;
height: var(--vvh);
max-height: var(--vvh);
overflow: hidden;
overscroll-behavior: none;
}
body.keyboard-open #content {
position: fixed;
inset: 0;
height: var(--vvh);
max-height: var(--vvh);
padding-left: 0;
padding-bottom: 0;
overflow: hidden;
overscroll-behavior: none;
}
body.keyboard-open #page-chat.active {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--vvh);
max-height: var(--vvh);
display: flex;
flex-direction: column;
z-index: 20;
overflow: hidden;
overscroll-behavior: none;
}
body.keyboard-open #page-chat.active .chat-page-header {
flex-shrink: 0;
position: relative;
}
body.keyboard-open #page-chat.active #chat-messages,
body.keyboard-open .chat-instance-panel .chat-messages {
flex: 1;
min-height: 0;
position: relative;
height: auto;
max-height: none;
padding-top: 0;
padding-bottom: 0;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
body.keyboard-open #page-chat.active #chat-input-area,
body.keyboard-open .chat-instance-panel .chat-input-area {
flex-shrink: 0;
position: relative;
bottom: auto;
padding-top: 8px;
padding-bottom: 8px;
}
.logs-filters {
padding: 8px 12px;
}
#log-entries {
margin: 0 8px 8px;
min-width: 0;
overflow-x: hidden;
}
.evo-versions-cols {
flex-direction: column;
gap: 16px;
overflow: visible;
}
.evo-chart-wrap {
min-height: 260px;
max-height: none;
padding: 10px;
}
.costs-budget-fields,
.costs-stats-grid,
.costs-tables-grid,
.marketplace-results {
grid-template-columns: 1fr;
}
.costs-scroll {
padding: 12px 12px;
}
.updates-card-head,
.skills-card-head,
.marketplace-controls {
flex-direction: column;
align-items: stretch;
}
.updates-head-actions {
justify-content: flex-start;
flex-wrap: wrap;
}
.skills-card-title {
width: 100%;
}
.skills-card-title h3,
.skills-card-desc {
overflow-wrap: anywhere;
word-break: normal;
}
.skills-card-toggle {
justify-content: flex-start;
width: 100%;
}
.marketplace-search {
flex: 0 0 auto;
width: 100%;
}
}
/* ===========================================================================
Multi-project sidebar + right thread panel (v6.32.0)
=========================================================================== */
.nav-projects {
display: flex;
flex-direction: column;
gap: 1px;
width: 100%;
align-items: stretch;
margin: var(--space-1) 0 var(--space-2);
max-height: 38vh;
min-height: 0;
}
.nav-projects-list {
display: flex;
flex-direction: column;
gap: 1px;
width: 100%;
align-items: stretch;
overflow-y: auto;
min-height: 0;
}
.nav-projects-list[hidden] {
display: none;
}
/* Project rows read as a compact list nested under the "Projects" header (no
glyph/dot, label indented to align under the parent label, shorter rows and
no left active bar) — a dropdown list, not standalone tabs. */
.nav-project-item {
display: grid;
grid-template-columns: minmax(0, 1fr) 28px;
align-items: center;
width: 100%;
border-radius: var(--radius-sm);
}
.nav-project-row {
min-height: 30px;
font-size: 13px;
color: var(--text-muted);
padding-left: calc(var(--space-3) + 18px + var(--space-3));
padding-right: var(--space-1);
border-radius: var(--radius-sm);
}
.nav-project-row:hover {
color: var(--text-primary);
}
.nav-project-item.is-deleting .nav-project-row,
.nav-project-item.is-deleting .nav-project-row:disabled {
cursor: not-allowed;
color: var(--text-muted);
opacity: 0.62;
}
.nav-project-item.is-deleting {
grid-template-columns: minmax(0, 1fr) auto;
}
.nav-project-deleting-status {
justify-self: end;
padding-right: 3px;
color: var(--text-muted);
font-size: 10px;
white-space: nowrap;
}
.nav-project-row.active {
color: var(--project);
}
.nav-project-row.active::before {
display: none;
}
.nav-projects-more {
color: var(--text-muted);
font-size: 12px;
padding-left: calc(var(--space-3) + 18px + var(--space-3));
}
/* v6.59.0 — New Project "+" in the Projects header + per-row kebab actions. */
.nav-projects-header {
display: grid;
grid-template-columns: minmax(0, 1fr) 32px;
align-items: center;
width: 100%;
}
.nav-projects-header > .nav-section-toggle {
min-width: 0;
}
.nav-projects-header .nav-chevron {
width: 16px;
height: 16px;
transform: rotate(90deg);
}
.nav-projects-header .nav-section-toggle[aria-expanded="false"] .nav-chevron {
transform: rotate(0deg);
}
.nav-projects-header .nav-row-meta:not(:empty) {
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 9px;
background: var(--red);
color: #fff;
font-size: 10px;
font-weight: 700;
line-height: 18px;
text-align: center;
}
.nav-projects-add {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text-muted);
cursor: pointer;
}
.nav-projects-add:hover,
.nav-projects-add:focus-visible {
color: var(--text-primary);
background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.nav-projects-add:focus-visible {
outline: 2px solid var(--focus-accent-border);
outline-offset: -2px;
}
.nav-project-kebab {
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 0;
background: transparent;
color: var(--text-muted);
opacity: 0;
cursor: pointer;
border-radius: var(--radius-sm);
}
.nav-project-item:hover .nav-project-kebab,
.nav-project-item:focus-within .nav-project-kebab {
opacity: 1;
}
.nav-project-kebab:hover,
.nav-project-kebab:focus-visible {
color: var(--text-primary);
background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.project-row-menu {
position: fixed;
top: var(--prm-top, 0);
left: var(--prm-left, 0);
z-index: 120;
display: flex;
flex-direction: column;
min-width: 180px;
padding: 4px;
border: 1px solid var(--divider);
border-radius: var(--radius-md, 8px);
background: var(--surface-1, #16181d);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
max-width: min(260px, calc(100vw - 16px));
}
.project-row-menu button {
text-align: left;
padding: 7px 10px;
border: none;
background: transparent;
color: var(--text-primary);
font-size: 13px;
border-radius: var(--radius-sm);
cursor: pointer;
}
.project-row-menu button:hover {
background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.project-row-menu button.danger {
color: var(--danger, #e5534b);
}
/* New Project dialog */
.new-project-dialog {
max-width: 560px;
width: min(560px, 94vw);
}
.new-project-field {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: var(--space-3);
font-size: 13px;
}
.new-project-sources {
display: flex;
flex-direction: column;
gap: 6px;
margin: 0 0 var(--space-3);
padding: var(--space-2) var(--space-3);
border: 1px solid var(--divider);
border-radius: var(--radius-md, 8px);
font-size: 13px;
}
.new-project-sources legend {
padding: 0 6px;
color: var(--text-muted);
font-size: 12px;
}
.new-project-sources label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.new-project-source-detail {
margin-bottom: var(--space-3);
}
.new-project-browser {
border: 1px solid var(--divider);
border-radius: var(--radius-md, 8px);
margin-bottom: var(--space-2);
overflow: hidden;
}
.new-project-browser-path {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 10px;
border-bottom: 1px solid var(--divider);
font-size: 12px;
word-break: break-all;
}
.new-project-browser-list {
max-height: 220px;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.new-project-dir-row {
text-align: left;
padding: 6px 10px;
border: none;
background: transparent;
color: var(--text-primary);
font-size: 13px;
cursor: pointer;
}
.new-project-dir-row:hover {
background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.new-project-dir-up {
color: var(--text-muted);
}
.new-project-dir-empty {
padding: 8px 10px;
color: var(--text-muted);
font-size: 12px;
}
.new-project-trust-note {
padding: 8px 10px;
border: 1px solid var(--warning, #b58900);
border-radius: var(--radius-md, 8px);
color: var(--text-primary);
font-size: 12.5px;
margin: 0 0 var(--space-2);
}
.new-project-error {
color: var(--danger, #e5534b);
font-size: 12.5px;
margin: 0 0 var(--space-2);
white-space: pre-wrap;
}
.project-panel {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: var(--project-panel-width);
z-index: 58;
border-left: 1px solid var(--divider);
background:
linear-gradient(180deg, rgba(13, 11, 15, 0.74), rgba(13, 11, 15, 0.64)),
radial-gradient(circle at 15% 0%, var(--project-12), transparent 300px);
backdrop-filter: blur(22px) saturate(130%);
-webkit-backdrop-filter: blur(22px) saturate(130%);
box-shadow: -24px 0 64px rgba(0, 0, 0, 0.34);
transform: translateX(18px);
opacity: 0;
pointer-events: none;
transition: transform 180ms ease, opacity 180ms ease;
}
.project-panel.open {
transform: translateX(0);
opacity: 1;
pointer-events: auto;
}
.project-panel[hidden] {
display: none;
}
.project-panel-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 14px;
border-bottom: 1px solid var(--project-18);
}
.project-panel-title {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1 1 auto;
min-width: 0;
}
.project-panel-close {
flex: 0 0 auto;
}
.project-panel-close {
border: 1px solid var(--accent-08);
background: var(--accent-04);
color: var(--text-secondary);
border-radius: var(--radius-md, 8px);
width: 28px;
height: 28px;
font-size: 16px;
line-height: 1;
cursor: pointer;
}
.project-panel-close:hover {
color: var(--text-primary);
border-color: var(--accent);
}
.project-panel-body {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.project-panel-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: var(--sidebar-width);
z-index: 55;
cursor: default;
background: rgba(0, 0, 0, 0.18);
backdrop-filter: blur(1.5px);
-webkit-backdrop-filter: blur(1.5px);
opacity: 0;
pointer-events: none;
transition: opacity 180ms ease;
}
.project-panel-backdrop.open {
opacity: 1;
pointer-events: auto;
}
.project-panel-backdrop[hidden] {
display: none;
}
.chat-instance-panel {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
/* Own the (now flow) composer + any absolute children so they can never
escape into the surrounding panel/app the way the main chat's absolute
overlay header/composer assume a positioned `.page`. */
position: relative;
}
.chat-instance-panel[hidden] {
display: none;
}
/* Lean status-only header: the project title + close live in the
.project-panel-bar above, so the instance only needs its live status. */
.chat-panel-statusbar {
display: flex;
justify-content: flex-end;
align-items: center;
flex: 0 0 auto;
padding: 8px 14px 0;
}
.chat-instance-panel .chat-messages {
flex: 1;
overflow-y: auto;
min-height: 0;
/* No absolute overlay HEADER here: drop the main chat's phantom 56px
top reserve; the composer reserve matches the shared dock contract. */
padding: 8px 14px;
padding-bottom: var(--chat-input-reserve, 108px);
}
/* Shared dock contract (v6.71.0): the panel composer docks exactly like the
main chat one — the base .chat-input-area rule supplies position:absolute
(anchored to the position:relative panel), the SAME bottom fade gradient,
and the pointer-events pass-through; no second fade layer. */
.chat-instance-panel .chat-input-area {
padding: 24px 14px 12px;
padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
/* Project threads hide the GLOBAL controls (evolution/consciousness/restart/
panic/budget belong to the one agent, not to a project thread). */
.chat-instance-panel .chat-header-actions,
.chat-instance-panel .chat-budget-pill {
display: none;
}
@media (max-width: 900px) {
/* Mobile/narrow: the project thread overlays the content area. */
.project-panel {
position: fixed;
inset: 0;
width: 100%;
z-index: 60;
border-left: none;
transform: translateY(14px);
}
.project-panel-backdrop {
left: 0;
}
.project-panel.open {
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.project-panel,
.project-panel-backdrop {
transition: none;
}
}