:root {
color-scheme: dark;
--bg: #151515;
--surface: #1d1d1d;
--surface-raised: #242424;
--surface-active: #29362f;
--surface-hover: #2b2b2b;
--border: #383838;
--border-strong: #4a4a4a;
--text: #ededed;
--text-soft: #c8c8c8;
--muted: #929292;
--faint: #686868;
--accent: #69b88d;
--accent-strong: #8aceaa;
--accent-ink: #0e2117;
--info: #6fb6c8;
--warning: #d8ae63;
--danger: #e27872;
--focus: #82c9a4;
--node-code: #6fb6c8;
--node-concept: #b19bd2;
--node-preset: #d8ae63;
--edge: #656565;
--font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
--header-height: 48px;
--toolbar-height: 42px;
--status-height: 24px;
--bottom-height: 220px;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: 14px;
}
button,
input,
textarea {
color: inherit;
font: inherit;
letter-spacing: 0;
}
button {
-webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
outline: 2px solid var(--focus);
outline-offset: -2px;
}
.hidden {
display: none !important;
}
.app-shell {
display: grid;
grid-template-rows: var(--header-height) var(--toolbar-height) minmax(0, 1fr) var(--bottom-height) var(--status-height);
width: 100%;
height: 100dvh;
min-width: 0;
}
.app-shell.bottom-collapsed {
grid-template-rows: var(--header-height) var(--toolbar-height) minmax(0, 1fr) 35px var(--status-height);
}
.app-header {
display: grid;
grid-template-columns: auto minmax(130px, 1fr) auto;
align-items: center;
gap: 18px;
min-width: 0;
padding: 0 14px;
background: #191919;
border-bottom: 1px solid var(--border);
}
.product-mark {
display: inline-flex;
align-items: baseline;
gap: 7px;
white-space: nowrap;
}
.product-name {
color: var(--text);
font-size: 15px;
font-weight: 700;
}
.product-area {
color: var(--accent);
font-size: 12px;
font-weight: 600;
}
.workspace-identity {
display: flex;
min-width: 0;
align-items: baseline;
gap: 8px;
overflow: hidden;
}
.workspace-identity strong,
.workspace-identity span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workspace-identity strong {
color: var(--text-soft);
font-size: 12px;
font-weight: 600;
}
.workspace-identity span {
color: var(--muted);
font-family: var(--font-mono);
font-size: 11px;
}
.context-control {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
min-width: 0;
background: var(--surface-2);
padding: 6px 12px;
border-radius: 8px;
border: 1px solid var(--border-subtle);
}
.context-picker-label {
display: flex;
align-items: center;
gap: 6px;
font-weight: 600;
font-size: 13px;
color: var(--accent-blue, #3b82f6);
}
.context-picker-label i {
width: 16px;
height: 16px;
}
.segmented {
display: grid;
grid-template-columns: repeat(3, max-content);
align-items: stretch;
height: 34px;
border: 1px solid var(--border-strong);
border-radius: 6px;
overflow: hidden;
}
.segmented button {
min-width: 60px;
padding: 0 12px;
border: 0;
border-right: 1px solid var(--border);
background: var(--surface);
color: var(--muted);
cursor: pointer;
font-size: 13px;
font-weight: 600;
}
.segmented button:last-child {
border-right: 0;
}
.segmented button:hover:not(:disabled) {
background: var(--surface-hover);
color: var(--text);
}
.segmented button[aria-checked="true"] {
background: var(--accent-blue, #3b82f6);
color: #ffffff;
font-weight: bold;
}
.segmented button .mode-size {
font-size: 0.72em;
opacity: 0.6;
font-weight: normal;
margin-left: 5px;
font-variant-numeric: tabular-nums;
}
.segmented button[aria-checked="true"] .mode-size {
opacity: 0.9;
}
.segmented button:disabled {
cursor: wait;
opacity: 0.55;
}
.context-budget {
display: flex;
flex-direction: column;
justify-content: center;
gap: 3px;
width: 160px;
min-width: 96px;
}
.context-budget[aria-hidden="true"] {
visibility: hidden;
}
.context-budget-fill {
width: 100%;
height: 4px;
border-radius: 2px;
background-color: var(--border);
background-image: linear-gradient(var(--accent), var(--accent));
background-repeat: no-repeat;
background-size: 0% 100%;
transition: background-size 0.2s ease;
}
.context-budget-fill.warn {
background-image: linear-gradient(var(--warning), var(--warning));
}
.context-budget-fill.over {
background-image: linear-gradient(var(--danger), var(--danger));
}
.context-budget-label {
color: var(--muted);
font-family: var(--font-mono);
font-size: 10px;
text-align: right;
white-space: nowrap;
}
.segmented.context-picker {
grid-template-columns: none;
grid-auto-flow: column;
}
.segmented.context-picker button {
white-space: nowrap;
padding: 0 8px;
}
.segmented.context-picker button .mode-size {
margin-left: 3px;
}
.context-picker-label {
white-space: nowrap;
}
.context-picker button.resolved {
position: relative;
}
.context-picker button.resolved::after {
content: '';
position: absolute;
left: 50%;
bottom: 3px;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--accent);
transform: translateX(-50%);
}
.context-metrics {
max-width: 430px;
overflow: hidden;
color: var(--muted);
font-family: var(--font-mono);
font-size: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}
.context-metrics .delta-positive {
color: var(--warning);
}
.context-metrics .delta-negative {
color: var(--accent);
}
.context-metrics .capacity-overflow {
color: var(--danger);
}
.context-metrics .partition-warning {
color: var(--warning);
}
.action-toolbar {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
padding: 4px 8px;
overflow-x: auto;
overflow-y: hidden;
background: var(--surface);
border-bottom: 1px solid var(--border);
scrollbar-width: thin;
}
.toolbar-group {
display: flex;
flex-direction: column;
gap: 3px;
}
.toolbar-group-label,
.inspector-group-label {
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.07em;
font-weight: 600;
color: var(--text-muted, #7a8290);
opacity: 0.8;
}
.toolbar-group-label {
padding-left: 3px;
}
.toolbar-group-buttons {
display: flex;
gap: 4px;
}
.inspector-group-label {
align-self: center;
padding: 0 3px 0 8px;
white-space: nowrap;
}
.inspector-group-label:first-child {
padding-left: 2px;
}
.tool-button,
.icon-button,
.command-button,
.view-tab,
.inspector-tab,
.bottom-tab,
.document-tab,
.tab-close,
.tree-row,
.tree-folder-label {
border: 0;
border-radius: 4px;
background: transparent;
}
.tool-button {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
gap: 6px;
height: 32px;
padding: 0 9px;
color: var(--text-soft);
cursor: pointer;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.tool-button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.command-button:hover:not(:disabled) {
background: var(--surface-hover);
color: var(--text);
}
.tool-button.primary:not(:disabled),
.command-button.primary:not(:disabled) {
background: var(--accent);
color: var(--accent-ink);
}
.tool-button.primary:hover:not(:disabled),
.command-button.primary:hover:not(:disabled) {
background: var(--accent-strong);
}
.tool-button:disabled,
.icon-button:disabled,
.command-button:disabled {
cursor: not-allowed;
opacity: 0.42;
}
.tool-button.busy svg,
.icon-button.busy svg,
.command-button.busy svg {
animation: spin 0.85s linear infinite;
}
.tool-button svg,
.icon-button svg,
.command-button svg,
.view-tab svg,
.branch-summary svg,
.center-state svg {
width: 15px;
height: 15px;
flex: 0 0 15px;
stroke-width: 1.8;
}
.toolbar-divider {
width: 1px;
height: 20px;
margin: 0 4px;
flex: 0 0 1px;
background: var(--border);
}
.toolbar-spacer {
flex: 1 1 auto;
}
.branch-summary {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 5px;
max-width: 210px;
padding: 0 6px;
color: var(--muted);
font-family: var(--font-mono);
font-size: 10px;
white-space: nowrap;
}
.branch-summary span {
overflow: hidden;
text-overflow: ellipsis;
}
.workbench {
display: grid;
grid-template-columns: 246px minmax(360px, 1fr) 294px;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.explorer-pane,
.workspace-pane,
.inspector-pane {
min-width: 0;
min-height: 0;
background: var(--surface);
}
.explorer-pane {
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
}
.workspace-pane {
display: flex;
flex-direction: column;
background: var(--bg);
}
.inspector-pane {
display: flex;
flex-direction: column;
border-left: 1px solid var(--border);
}
.pane-heading,
.selection-heading {
flex: 0 0 auto;
border-bottom: 1px solid var(--border);
color: var(--muted);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
.pane-heading {
display: flex;
height: 36px;
align-items: center;
justify-content: space-between;
padding: 0 8px 0 12px;
}
.selection-heading {
display: grid;
gap: 3px;
min-height: 64px;
padding: 9px 12px;
}
.selection-heading strong,
.selection-heading span:last-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-transform: none;
}
.selection-heading strong {
color: var(--text);
font-family: var(--font-mono);
font-size: 12px;
font-weight: 600;
}
.selection-heading span:last-child {
color: var(--muted);
font-family: var(--font-mono);
font-size: 10px;
font-weight: 400;
}
.icon-button {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 28px;
align-items: center;
justify-content: center;
padding: 0;
color: var(--muted);
cursor: pointer;
}
.pane-state {
padding: 10px 12px;
color: var(--muted);
font-size: 11px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.pane-state.error,
.error-state {
color: var(--danger);
}
.small-spinner,
.spinner {
display: inline-block;
border: 2px solid var(--border-strong);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.small-spinner {
width: 11px;
height: 11px;
margin-right: 6px;
vertical-align: -1px;
}
.spinner {
width: 24px;
height: 24px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.file-tree {
flex: 1 1 auto;
min-height: 0;
padding: 4px 0 16px;
overflow: auto;
scrollbar-width: thin;
}
.tree-children[hidden] {
display: none;
}
.tree-row,
.tree-folder-label {
display: grid;
grid-template-columns: 15px minmax(0, 1fr) auto;
width: 100%;
min-height: 26px;
align-items: center;
gap: 4px;
padding: 2px 7px 2px calc(7px + (var(--depth, 0) * 13px));
color: var(--text-soft);
cursor: pointer;
text-align: left;
}
.tree-folder-label {
grid-template-columns: 12px 15px minmax(0, 1fr);
}
.tree-row:hover,
.tree-folder-label:hover {
background: var(--surface-hover);
}
.tree-row.active {
background: var(--surface-active);
color: var(--accent-strong);
}
.tree-row svg,
.tree-folder-label svg {
width: 14px;
height: 14px;
color: var(--muted);
stroke-width: 1.7;
}
.tree-folder-label .folder-chevron {
width: 12px;
height: 12px;
transition: transform 0.12s ease;
}
.tree-folder-label[aria-expanded="true"] .folder-chevron {
transform: rotate(90deg);
}
.tree-label {
min-width: 0;
overflow: hidden;
font-family: var(--font-mono);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.tree-meta {
color: var(--faint);
font-family: var(--font-mono);
font-size: 9px;
}
.view-tabs {
display: flex;
flex: 0 0 36px;
align-items: end;
gap: 2px;
padding: 0 6px;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.view-tab {
display: inline-flex;
height: 35px;
align-items: center;
gap: 6px;
padding: 0 12px;
border-bottom: 2px solid transparent;
border-radius: 0;
color: var(--muted);
cursor: pointer;
font-size: 11px;
font-weight: 600;
}
.view-tab:hover,
.view-tab.active {
color: var(--text);
}
.view-tab.active {
border-bottom-color: var(--accent);
}
.work-view {
position: relative;
flex: 1 1 auto;
min-width: 0;
min-height: 0;
}
#editor-view {
display: flex;
flex-direction: column;
}
.document-tabs {
display: flex;
flex: 0 0 33px;
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
background: #191919;
border-bottom: 1px solid var(--border);
scrollbar-width: thin;
}
.document-tab {
display: grid;
grid-template-columns: 13px minmax(54px, auto) 18px;
flex: 0 0 auto;
height: 32px;
align-items: center;
gap: 5px;
max-width: 210px;
padding: 0 5px 0 9px;
border-right: 1px solid var(--border);
border-radius: 0;
color: var(--muted);
cursor: pointer;
font-family: var(--font-mono);
font-size: 10px;
}
.document-tab.active {
background: var(--bg);
color: var(--text);
box-shadow: inset 0 2px var(--accent);
}
.document-tab .tab-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dirty-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: transparent;
}
.document-tab.dirty .dirty-dot {
background: var(--warning);
}
.tab-close {
display: inline-flex;
width: 18px;
height: 18px;
align-items: center;
justify-content: center;
padding: 0;
border-radius: 3px;
color: var(--faint);
}
.tab-close:hover {
background: var(--surface-hover);
color: var(--text);
}
.tab-close svg {
width: 12px;
height: 12px;
}
.editor-stage {
position: relative;
flex: 1 1 auto;
min-height: 0;
background: var(--bg);
}
.code-editor,
.editor-fallback {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.editor-fallback {
resize: none;
padding: 14px 16px;
border: 0;
outline: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-mono);
font-size: 13px;
line-height: 1.55;
tab-size: 4;
}
.center-state {
position: absolute;
inset: 0;
z-index: 3;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 24px;
background: var(--bg);
color: var(--muted);
text-align: center;
}
.center-state strong {
color: var(--text-soft);
font-size: 12px;
font-weight: 600;
}
.graph-canvas {
position: absolute;
inset: 0;
overflow: hidden;
background: #181818;
}
.graph-canvas svg {
display: block;
width: 100%;
height: 100%;
}
.graph-node {
cursor: pointer;
stroke: #171717;
stroke-width: 1.5px;
}
.graph-node:hover,
.graph-node.selected {
stroke: var(--text);
stroke-width: 2.5px;
}
.graph-node.isolated {
stroke: var(--danger);
stroke-width: 2px;
stroke-dasharray: 3 2;
}
.graph-label {
fill: var(--text-soft);
font-family: var(--font-mono);
font-size: 10px;
paint-order: stroke;
pointer-events: none;
stroke: #181818;
stroke-linejoin: round;
stroke-width: 4px;
}
.graph-edge {
stroke: var(--edge);
stroke-opacity: 0.55;
stroke-width: 1px;
}
.graph-edge.edge-DuplicateOf {
stroke: var(--danger);
stroke-dasharray: 5 3;
}
.graph-edge.edge-SimilarTo {
stroke: var(--warning);
stroke-dasharray: 2 3;
}
.graph-legend,
.graph-controls,
.graph-tooltip {
position: absolute;
z-index: 5;
border: 1px solid var(--border-strong);
border-radius: 5px;
background: var(--surface-raised);
}
.graph-legend {
top: 10px;
left: 10px;
display: grid;
grid-template-columns: repeat(3, auto);
gap: 8px 12px;
padding: 7px 9px;
color: var(--muted);
font-size: 10px;
}
.legend-entry {
display: inline-flex;
align-items: center;
gap: 5px;
white-space: nowrap;
}
.legend-swatch {
width: 8px;
height: 8px;
border-radius: 50%;
}
.legend-swatch.edge {
width: 14px;
height: 2px;
border-radius: 0;
}
.legend-swatch.isolated {
background: transparent;
border: 2px dashed var(--danger);
}
.graph-controls {
right: 10px;
bottom: 10px;
display: flex;
gap: 1px;
padding: 2px;
}
#graph-search {
width: 180px;
height: 28px;
padding: 0 8px;
border: 0;
border-right: 1px solid var(--border);
border-radius: 3px 0 0 3px;
background: var(--bg);
color: var(--text);
font-family: var(--font-mono);
font-size: 10px;
}
.graph-node.search-muted,
.graph-label.search-muted {
opacity: 0.12;
}
.graph-node.search-match {
stroke: var(--accent-strong);
stroke-width: 3px;
}
.graph-tooltip {
max-width: min(320px, calc(100% - 20px));
padding: 9px 10px;
pointer-events: none;
color: var(--text-soft);
font-size: 10px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.tooltip-name {
margin-bottom: 3px;
color: var(--text);
font-family: var(--font-mono);
font-weight: 700;
}
.tooltip-row {
display: grid;
grid-template-columns: 64px 1fr;
gap: 8px;
}
.tooltip-row span:first-child {
color: var(--muted);
}
.inspector-tabs {
display: grid;
grid-template-columns: repeat(4, 1fr);
flex: 0 0 34px;
border-bottom: 1px solid var(--border);
}
.inspector-tab {
border-bottom: 2px solid transparent;
border-radius: 0;
color: var(--muted);
cursor: pointer;
font-size: 10px;
font-weight: 700;
}
.inspector-tab:hover,
.inspector-tab.active {
color: var(--text);
}
.inspector-tab.active {
border-bottom-color: var(--accent);
}
.inspector-view {
flex: 1 1 auto;
min-height: 0;
padding: 10px;
overflow: auto;
scrollbar-width: thin;
}
.ast-tree {
font-family: var(--font-mono);
font-size: 10px;
}
.ast-node {
min-width: 0;
}
.ast-row {
display: grid;
grid-template-columns: 12px minmax(0, 1fr) auto;
min-height: 23px;
align-items: center;
gap: 4px;
padding-left: calc(var(--ast-depth, 0) * 11px);
color: var(--text-soft);
}
.ast-row[data-line] {
cursor: pointer;
}
.ast-row[data-line]:hover {
background: var(--surface-hover);
}
.ast-row button {
width: 12px;
height: 18px;
padding: 0;
border: 0;
background: transparent;
color: var(--muted);
cursor: pointer;
}
.ast-row .ast-kind {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ast-range {
color: var(--faint);
font-size: 9px;
}
.field-label {
display: block;
margin: 0 0 6px;
color: var(--muted);
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
}
#review-question,
#branch-name,
#review-scope {
width: 100%;
border: 1px solid var(--border-strong);
border-radius: 4px;
background: var(--bg);
color: var(--text);
}
#review-question {
min-height: 82px;
resize: vertical;
padding: 8px;
font-size: 11px;
line-height: 1.45;
}
#review-scope {
height: 32px;
margin-bottom: 10px;
padding: 0 8px;
font-size: 11px;
}
#branch-name {
height: 34px;
padding: 0 9px;
font-family: var(--font-mono);
font-size: 12px;
}
.command-button {
display: inline-flex;
min-height: 30px;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 8px;
padding: 5px 10px;
background: var(--surface-raised);
border: 1px solid var(--border-strong);
color: var(--text-soft);
cursor: pointer;
font-size: 11px;
font-weight: 600;
}
.command-button.secondary {
background: transparent;
}
.command-button.danger {
border-color: color-mix(in srgb, var(--danger) 65%, var(--border));
color: var(--danger);
}
.node-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.node-task {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border, #2a2f3a);
}
.node-task-row {
display: flex;
gap: 6px;
align-items: stretch;
}
.node-task-row select {
flex: 1;
min-width: 0;
background: var(--panel, #161a22);
color: inherit;
border: 1px solid var(--border, #2a2f3a);
border-radius: 6px;
padding: 4px 6px;
font-size: 0.85em;
}
.node-task input {
width: 100%;
box-sizing: border-box;
background: var(--panel, #161a22);
color: inherit;
border: 1px solid var(--border, #2a2f3a);
border-radius: 6px;
padding: 6px 8px;
font-size: 0.85em;
font-variant-numeric: tabular-nums;
}
.node-actions .command-button {
min-width: 0;
margin: 0;
padding-inline: 7px;
}
.node-actions .command-button span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.inspector-result {
margin-top: 9px;
padding: 9px;
border-top: 1px solid var(--border);
white-space: pre-wrap;
}
.summary-content {
padding: 0;
overflow-y: auto;
text-align: left;
}
.summary-grounding {
padding: 8px 10px;
border-bottom: 1px solid var(--border);
color: var(--accent);
font-family: var(--font-mono);
font-size: 9px;
line-height: 1.45;
overflow-wrap: anywhere;
}
.summary-grounding.partial {
color: var(--warning);
}
.summary-code {
margin: 0;
padding: 10px;
border-bottom: 1px solid var(--border);
color: var(--text);
font-family: var(--font-mono);
font-size: 11px;
line-height: 1.45;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.summary-evidence {
display: grid;
}
.summary-evidence-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
min-height: 28px;
padding: 6px 10px;
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: transparent;
color: var(--text-soft);
cursor: pointer;
font-family: var(--font-mono);
font-size: 9px;
text-align: left;
}
.summary-evidence-row:hover {
background: var(--surface-hover);
color: var(--text);
}
.summary-evidence-row span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.summary-evidence-range {
color: var(--muted);
}
.result-heading {
margin: 9px 0 4px;
color: var(--text);
font-size: 11px;
font-weight: 700;
}
.result-row {
display: grid;
grid-template-columns: minmax(80px, 1fr) auto;
gap: 8px;
padding: 5px 0;
border-bottom: 1px solid #303030;
color: var(--text-soft);
font-size: 10px;
}
.result-status {
font-family: var(--font-mono);
}
.status-pass { color: var(--accent); }
.status-fail { color: var(--danger); }
.status-warn { color: var(--warning); }
.status-unknown { color: var(--muted); }
.bottom-panel {
display: flex;
min-height: 0;
flex-direction: column;
background: #191919;
border-top: 1px solid var(--border);
}
.bottom-tabs {
display: flex;
flex: 0 0 34px;
align-items: center;
gap: 2px;
padding: 0 7px;
border-bottom: 1px solid var(--border);
}
.bottom-tab {
height: 33px;
padding: 0 8px;
border-bottom: 2px solid transparent;
border-radius: 0;
color: var(--muted);
cursor: pointer;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
}
.bottom-tab:hover,
.bottom-tab.active {
color: var(--text);
}
.bottom-tab.active {
border-bottom-color: var(--accent);
}
.count-badge {
display: inline-flex;
min-width: 17px;
height: 17px;
align-items: center;
justify-content: center;
margin-left: 3px;
padding: 0 4px;
border: 1px solid var(--border-strong);
border-radius: 8px;
color: var(--text-soft);
font-family: var(--font-mono);
font-size: 9px;
}
.bottom-content {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
scrollbar-width: thin;
}
.app-shell.bottom-collapsed .bottom-content {
display: none;
}
.empty-row {
padding: 14px 12px;
color: var(--muted);
font-size: 11px;
}
.problem-row {
display: grid;
grid-template-columns: 16px minmax(160px, 1fr) minmax(100px, 220px) auto;
align-items: start;
gap: 8px;
min-height: 29px;
padding: 6px 10px;
border-bottom: 1px solid #2a2a2a;
color: var(--text-soft);
cursor: default;
font-size: 10px;
}
.problem-row[data-path] {
cursor: pointer;
}
.problem-row[data-path]:hover {
background: var(--surface-hover);
}
.problem-icon {
font-weight: 800;
text-align: center;
}
.problem-error .problem-icon { color: var(--danger); }
.problem-warning .problem-icon { color: var(--warning); }
.problem-info .problem-icon { color: var(--info); }
.problem-message,
.problem-source {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.problem-source,
.problem-location {
color: var(--muted);
font-family: var(--font-mono);
}
.output-log {
min-height: 100%;
margin: 0;
padding: 9px 12px 18px;
color: var(--text-soft);
font-family: var(--font-mono);
font-size: 10px;
line-height: 1.55;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.statusbar {
display: flex;
min-width: 0;
align-items: center;
gap: 14px;
padding: 0 9px;
overflow: hidden;
background: #202820;
border-top: 1px solid #344238;
color: #bfd0c4;
font-size: 10px;
}
.status-item {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.status-item:nth-child(2) {
font-family: var(--font-mono);
}
.status-end {
margin-left: auto;
flex: 0 0 auto;
}
.status-indicator {
width: 7px;
height: 7px;
flex: 0 0 7px;
border-radius: 50%;
background: var(--muted);
}
.status-working .status-indicator {
background: var(--warning);
animation: pulse 1s ease-in-out infinite;
}
.status-success .status-indicator { background: var(--accent); }
.status-warning .status-indicator { background: var(--warning); }
.status-error .status-indicator { background: var(--danger); }
@keyframes pulse {
50% { opacity: 0.45; }
}
.branch-dialog {
width: min(520px, calc(100vw - 24px));
max-height: calc(100dvh - 32px);
padding: 0;
overflow: auto;
border: 1px solid var(--border-strong);
border-radius: 6px;
background: var(--surface);
color: var(--text);
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.branch-dialog::backdrop {
background: rgba(0, 0, 0, 0.66);
}
.dialog-shell {
display: grid;
gap: 10px;
padding: 14px;
}
.dialog-heading {
display: flex;
align-items: start;
justify-content: space-between;
gap: 12px;
}
.dialog-heading h2 {
margin: 0;
font-size: 15px;
}
.dialog-heading p {
margin: 4px 0 0;
color: var(--muted);
font-family: var(--font-mono);
font-size: 10px;
overflow-wrap: anywhere;
}
.git-status-detail,
.branch-preview {
max-height: 140px;
margin: 0;
overflow: auto;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--bg);
font-family: var(--font-mono);
white-space: pre-wrap;
}
.confirm-row {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-soft);
font-size: 11px;
}
.confirm-row input {
accent-color: var(--accent);
}
.dialog-actions {
display: flex;
justify-content: flex-end;
gap: 6px;
}
.toast-region {
position: fixed;
right: 12px;
bottom: 36px;
z-index: 100;
display: grid;
width: min(390px, calc(100vw - 24px));
gap: 7px;
pointer-events: none;
}
.toast {
padding: 9px 11px;
border: 1px solid var(--border-strong);
border-left: 3px solid var(--info);
border-radius: 4px;
background: var(--surface-raised);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
color: var(--text-soft);
font-size: 11px;
line-height: 1.4;
overflow-wrap: anywhere;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--accent); }
.toast.warning { border-left-color: var(--warning); }
@media (max-width: 1120px) {
.workbench {
grid-template-columns: 210px minmax(340px, 1fr) 250px;
}
.context-metrics {
max-width: 170px;
}
.tool-button span {
display: none;
}
.tool-button {
width: 32px;
padding: 0;
}
}
@media (max-width: 820px) {
html {
height: auto;
min-height: 100%;
min-width: 0;
overflow-y: auto;
}
body {
height: auto;
min-height: 100dvh;
min-width: 0;
overflow: visible;
}
.app-shell,
.app-shell.bottom-collapsed {
grid-template-rows: auto auto auto auto var(--status-height);
height: auto;
min-height: 100dvh;
}
.app-header {
grid-template-columns: 1fr auto;
grid-template-rows: 42px auto;
gap: 0 10px;
padding: 0 9px 7px;
}
.workspace-identity {
justify-content: flex-end;
}
.context-control {
grid-column: 1 / -1;
justify-content: space-between;
}
.context-metrics {
max-width: calc(100vw - 230px);
}
.action-toolbar {
min-height: var(--toolbar-height);
}
.branch-summary,
.toolbar-divider {
display: none;
}
.workbench {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 210px minmax(520px, 72vh) 320px;
overflow: visible;
}
.explorer-pane {
border-right: 0;
border-bottom: 1px solid var(--border);
}
.inspector-pane {
border-top: 1px solid var(--border);
border-left: 0;
}
.bottom-panel {
min-height: 180px;
max-height: 300px;
}
.app-shell.bottom-collapsed .bottom-panel {
min-height: 35px;
max-height: 35px;
}
.statusbar {
position: static;
height: var(--status-height);
}
}
@media (max-width: 520px) {
.workspace-identity span,
.context-metrics {
display: none;
}
.segmented {
width: 100%;
grid-template-columns: repeat(3, 1fr);
}
.segmented.context-picker {
grid-auto-flow: row;
grid-template-columns: repeat(3, 1fr);
height: auto;
}
.segmented button {
min-width: 0;
padding: 0 5px;
}
.problem-row {
grid-template-columns: 14px minmax(0, 1fr) auto;
}
.problem-source {
display: none;
}
.graph-legend {
grid-template-columns: 1fr;
}
}
.graph-node.in-context {
stroke: var(--accent);
stroke-width: 3px;
}
.recommendations-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 10px;
}
.recommendation-card {
padding: 10px 12px;
border: 1px solid var(--border);
border-left: 3px solid var(--muted);
border-radius: 4px;
background: var(--surface-raised);
}
.recommendation-card.severity-error { border-left-color: var(--danger); }
.recommendation-card.severity-warning { border-left-color: var(--warning); }
.recommendation-card.severity-info { border-left-color: var(--info); }
.rec-card-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.rec-severity {
padding: 1px 7px;
border-radius: 3px;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
}
.rec-severity-error { background: color-mix(in srgb, var(--danger) 22%, transparent); color: var(--danger); }
.rec-severity-warning { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--warning); }
.rec-severity-info { background: color-mix(in srgb, var(--info) 22%, transparent); color: var(--info); }
.rec-id {
color: var(--faint);
font-family: var(--font-mono);
font-size: 9px;
}
.rec-title {
color: var(--text);
font-size: 12px;
font-weight: 600;
line-height: 1.4;
margin-bottom: 4px;
}
.rec-rationale {
color: var(--text-soft);
font-size: 11px;
line-height: 1.45;
margin-bottom: 8px;
overflow-wrap: anywhere;
}
.rec-section-label {
margin: 8px 0 4px;
color: var(--muted);
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
}
.rec-evidence-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
width: 100%;
padding: 5px 0;
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: transparent;
color: var(--text-soft);
cursor: pointer;
text-align: left;
font-size: 10px;
}
.rec-evidence-row:hover {
background: var(--surface-hover);
}
.rec-evidence-row span:first-child {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rec-evidence-path {
color: var(--muted);
font-family: var(--font-mono);
font-size: 9px;
white-space: nowrap;
flex-shrink: 0;
}
.rec-partial {
margin-top: 6px;
color: var(--warning);
font-size: 10px;
font-style: italic;
}
.rec-hop {
display: grid;
grid-template-columns: 22px 1fr;
gap: 6px;
padding: 6px 0;
border-bottom: 1px solid var(--border);
}
.rec-hop:last-child {
border-bottom: 0;
}
.rec-hop-number {
width: 20px;
height: 20px;
border: 1px solid var(--border-strong);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--accent);
font-size: 9px;
font-weight: 700;
}
.rec-hop-body {
min-width: 0;
}
.rec-hop-action {
color: var(--text);
font-size: 11px;
font-weight: 600;
}
.rec-hop-target {
color: var(--accent);
font-family: var(--font-mono);
font-size: 10px;
margin-top: 2px;
overflow-wrap: anywhere;
}
.rec-hop-verify {
color: var(--muted);
font-size: 10px;
margin-top: 2px;
line-height: 1.4;
overflow-wrap: anywhere;
}
.context-files-list {
list-style: none;
margin: 0;
padding: 0;
}
.context-files-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 7px 10px;
border-bottom: 1px solid var(--border);
cursor: pointer;
}
.context-files-list li:hover {
background: var(--surface-hover);
}
.context-files-list li span:first-child {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono);
font-size: 11px;
}
.classes-toolbar {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 10px;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.classes-toolbar #classes-search {
flex: 1;
max-width: 360px;
background: var(--panel, #161a22);
color: inherit;
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 9px;
font-size: 0.85em;
}
.classes-summary {
font-size: 0.72rem;
color: var(--text-muted, #7a8290);
font-variant-numeric: tabular-nums;
}
.classes-tree {
overflow: auto;
height: 100%;
padding: 6px 4px 40px;
font-size: 0.86rem;
}
.tree-group-body { display: none; padding-left: 14px; }
.tree-group.open > .tree-group-body { display: block; }
.tree-group-head,
.tree-leaf {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
text-align: left;
background: none;
border: none;
color: inherit;
padding: 3px 6px;
border-radius: 5px;
cursor: pointer;
font: inherit;
}
.tree-group-head:hover,
.tree-leaf:hover { background: var(--hover, rgba(255,255,255,0.05)); }
.tree-group-head { font-weight: 500; }
.tree-chevron { width: 13px; height: 13px; transition: transform 0.12s ease; opacity: 0.7; }
.tree-group.open > .tree-group-head .tree-chevron { transform: rotate(90deg); }
.tree-kind { width: 13px; height: 13px; opacity: 0.65; flex: 0 0 auto; }
.tree-leaf .leaf-name { flex: 1; color: var(--accent-blue, #7db3ff); }
.tree-leaf .leaf-meta { font-size: 0.7rem; color: var(--text-muted, #7a8290); font-variant-numeric: tabular-nums; }
.inspector-hint {
margin: 0 0 10px;
font-size: 11.5px;
line-height: 1.5;
color: var(--muted);
}
.orientation-controls {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.orientation-toggle {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--text-soft);
cursor: pointer;
}
.orientation-banner {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 8px;
padding: 8px 10px;
margin-bottom: 10px;
border: 1px solid var(--border, #2a2a2a);
border-left: 3px solid var(--accent);
border-radius: 6px;
background: rgba(105, 184, 141, 0.06);
font-size: 12px;
color: var(--text-soft);
}
.orientation-banner strong { color: var(--accent-strong); }
.orientation-fit {
flex-basis: 100%;
font-size: 11px;
color: var(--muted);
}
.orientation-taxonomy {
display: flex;
flex-direction: column;
gap: 6px;
}
.taxonomy-cluster {
display: flex;
flex-direction: column;
gap: 4px;
padding-bottom: 6px;
border-bottom: 1px solid var(--border, #242424);
}
.taxonomy-cluster-name {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--accent);
text-transform: uppercase;
}
.taxonomy-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.taxonomy-chip {
padding: 2px 8px;
border: 1px solid var(--border, #2c2c2c);
border-radius: 999px;
background: var(--surface-2, #1c1c1c);
color: var(--text-soft);
font-family: var(--font-mono);
font-size: 11px;
cursor: pointer;
transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.taxonomy-chip:hover {
background: rgba(105, 184, 141, 0.14);
border-color: var(--accent);
color: var(--accent-strong);
}
.orientation-map {
margin-top: 12px;
font-size: 12px;
}
.orientation-map > summary {
cursor: pointer;
color: var(--info);
padding: 4px 0;
}
.orientation-map-text {
max-height: 320px;
overflow: auto;
margin: 8px 0 0;
padding: 10px;
border: 1px solid var(--border, #262626);
border-radius: 6px;
background: var(--surface-2, #161616);
font-family: var(--font-mono);
font-size: 11px;
line-height: 1.45;
color: var(--text-soft);
white-space: pre-wrap;
}
.pairs-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.pairs-controls .command-button { margin-left: auto; }
.command-button.compact {
padding: 3px 9px;
font-size: 11px;
}
.pairs-list {
list-style: none;
margin: 10px 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.pair-item {
border: 1px solid var(--border, #2a2a2a);
border-radius: 7px;
padding: 8px 10px;
background: var(--surface-2, #171717);
}
.pair-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.pair-title {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.pair-sep { color: var(--muted); }
.pair-meta {
margin-top: 5px;
font-size: 10.5px;
color: var(--muted);
}
.pair-suggestions { margin-top: 8px; }
.pair-suggestions:empty { margin-top: 0; }
.pair-model-note {
font-size: 10.5px;
color: var(--faint);
margin-bottom: 6px;
}
.suggestion-card {
border-left: 2px solid var(--accent);
padding: 6px 0 6px 10px;
margin-bottom: 8px;
}
.suggestion-top {
display: flex;
align-items: baseline;
gap: 7px;
margin-bottom: 3px;
}
.suggestion-top strong { font-size: 12.5px; color: var(--text); }
.suggestion-kind {
font-family: var(--font-mono);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--accent-ink);
background: var(--accent);
border-radius: 4px;
padding: 1px 6px;
white-space: nowrap;
}
.suggestion-rationale {
margin: 2px 0 4px;
font-size: 11.5px;
line-height: 1.5;
color: var(--text-soft);
}
.suggestion-steps {
margin: 4px 0 4px 16px;
padding: 0;
font-size: 11.5px;
line-height: 1.5;
color: var(--text-soft);
}
.suggestion-tags {
display: flex;
gap: 6px;
margin-top: 4px;
}
.suggestion-tag {
font-size: 10px;
color: var(--muted);
border: 1px solid var(--border, #2c2c2c);
border-radius: 999px;
padding: 1px 7px;
}
.suggestion-tag.risk-high { color: var(--danger); border-color: var(--danger); }
.suggestion-tag.risk-medium { color: var(--warning); border-color: var(--warning); }
.suggestion-tag.risk-low { color: var(--accent); border-color: var(--accent); }
.graph-lens-label {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--muted);
}
.graph-lens-label select {
background: var(--surface-2, #1c1c1c);
color: var(--text-soft);
border: 1px solid var(--border, #2c2c2c);
border-radius: 5px;
font-size: 11px;
padding: 2px 6px;
}
.graph-node.selected {
stroke: var(--accent-strong, #8aceaa);
stroke-width: 3px;
paint-order: stroke;
}
.context-selection-panel {
padding: 10px;
border-bottom: 1px solid var(--border, #262626);
background: rgba(105, 184, 141, 0.05);
}
.context-selection-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.context-selection-head strong { font-size: 12px; color: var(--accent-strong); }
.context-selection-actions { display: flex; gap: 6px; }
.context-selection-bar {
height: 5px;
border-radius: 3px;
background: var(--surface-2, #1c1c1c);
overflow: hidden;
margin-bottom: 8px;
}
.context-selection-bar > span {
display: block;
height: 100%;
width: 0;
background: var(--accent);
transition: width 0.2s ease;
}
.context-selection-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.selection-chip {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-soft);
background: var(--surface-2, #1c1c1c);
border: 1px solid var(--border, #2c2c2c);
border-radius: 999px;
padding: 2px 8px;
cursor: pointer;
}
.selection-chip:hover { border-color: var(--danger); color: var(--danger); }
.command-button.compact.secondary { background: transparent; border-color: var(--border, #2c2c2c); }
.component-selection {
display: flex;
flex-direction: column;
gap: 6px;
padding: 10px 12px;
border-bottom: 1px solid var(--border, #262626);
}
.component-head {
display: flex;
align-items: center;
gap: 8px;
}
.component-head strong { font-size: 12px; color: var(--accent-strong); }
.component-badge {
padding: 1px 7px;
border-radius: 999px;
background: var(--surface-active);
color: var(--accent);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
white-space: nowrap;
}
.component-filter {
flex: 1;
min-width: 0;
height: 24px;
padding: 0 8px;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: 4px;
color: var(--text);
font-size: 12px;
}
.component-filter::placeholder { color: var(--faint); }
.component-totals {
color: var(--muted);
font-family: var(--font-mono);
font-size: 11px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.component-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--surface);
}
.component-row {
display: flex;
align-items: center;
gap: 8px;
height: 26px;
padding: 0 8px;
border-bottom: 1px solid var(--border);
cursor: pointer;
font-size: 12px;
}
.component-row:last-child { border-bottom: 0; }
.component-row:hover { background: var(--surface-hover); }
.component-row input[type="checkbox"] {
flex: 0 0 auto;
margin: 0;
accent-color: var(--accent);
}
.component-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono);
font-size: 11px;
}
.component-tokens {
flex: 0 0 auto;
color: var(--muted);
font-family: var(--font-mono);
font-size: 10px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.component-actions {
display: flex;
gap: 6px;
}
.component-actions .command-button { margin-top: 0; }
.capability-card { padding: 4px 0; }
.capability-purpose {
margin: 0 0 10px;
font-size: 12.5px;
line-height: 1.55;
color: var(--text);
}
.capability-invariants-head {
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--warning);
margin-bottom: 5px;
}
.capability-invariants {
margin: 0 0 10px;
padding-left: 16px;
font-size: 11.5px;
line-height: 1.5;
color: var(--text-soft);
}
.capability-invariants li { margin-bottom: 4px; }
.capability-modules {
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
border-top: 1px solid var(--border, #262626);
padding-top: 7px;
}