Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.
JavaScript ai-codingclaudeclaude-codeclaude-code-pluginclicoding-agentsdeveloper-toolsgitllmtypescript
:root {
color-scheme: dark;
--bg: #0f1115;
--panel: #171a21;
--line: #2a2f3a;
--text: #e6e8ee;
--muted: #9aa3b7;
--accent: #7aa2f7;
--warn: #e0af68;
/* Captured work (Story 14.1): its own colour, never the big-change warning. */
--capture: #73daca;
/* Branch lanes in the git graph (Story 8.2). */
--l0: #7aa2f7;
--l1: #9ece6a;
--l2: #e0af68;
--l3: #bb9af7;
--l4: #7dcfff;
--l5: #f7768e;
/* Surfaces (Story 9.2): named once so a light theme can repaint them. */
--raised: #1a1e27;
--raised-2: #151922;
--row-bg: #12151b;
--hover: #1d222c;
--active: #243040;
--chip-bg: #1c222e;
--chip-line: #323b4d;
--kind-bg: #242a36;
--kind-decision-bg: #2b2440;
--kind-decision-text: #c0a8ff;
--kind-question-bg: #3a2f1d;
--kind-message-bg: #23331d;
--kind-message-text: #9ece6a;
--missing: #a2abbf;
--search-hit-bg: #2b2724;
--search-active-bg: #373129;
/* Diff lines in the message details (Story 10.5). */
--diff-add-bg: #16301c;
--diff-add-text: #b7f0c0;
--diff-remove-bg: #3a1d23;
--diff-remove-text: #ffc4cc;
--on-lane: #0f1115;
--translucent-panel: rgba(20, 23, 30, 0.97);
--translucent-outline: rgba(17, 20, 26, 0.94);
--overlay: rgba(5, 7, 10, 0.62);
--shadow: rgba(0, 0, 0, 0.5);
}
/* The same map in a light browser (Story 9.2). Small text keeps WCAG AA in
both palettes; `layout.test.ts` computes the ratios. */
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {
color-scheme: light;
--bg: #fbfbfd;
--panel: #f2f4f8;
--line: #d5dae4;
--text: #1b2230;
--muted: #545e72;
--accent: #2957c8;
--warn: #8a5300;
--capture: #0f766e;
--l0: #2957c8;
--l1: #2f7d32;
--l2: #8a5300;
--l3: #6f42c1;
--l4: #0b6e99;
--l5: #b3261e;
--raised: #e9edf5;
--raised-2: #eef1f7;
--row-bg: #f4f6fa;
--hover: #e6ebf5;
--active: #d9e3f7;
--chip-bg: #e8edf5;
--chip-line: #c2cbdb;
--kind-bg: #e4e8f0;
--kind-decision-bg: #ece4ff;
--kind-decision-text: #5b3aa8;
--kind-question-bg: #fbf0dc;
--kind-message-bg: #e7f3e1;
--kind-message-text: #2a7430;
--missing: #4f586b;
--search-hit-bg: #e7e2dc;
--search-active-bg: #e1d9cd;
--diff-add-bg: #e2f5e4;
--diff-add-text: #145c22;
--diff-remove-bg: #fbe4e6;
--diff-remove-text: #8a1c26;
--on-lane: #ffffff;
--translucent-panel: rgba(255, 255, 255, 0.97);
--translucent-outline: rgba(246, 248, 251, 0.96);
--overlay: rgba(20, 26, 38, 0.35);
--shadow: rgba(20, 30, 50, 0.18);
}
}
/* The same palette when the theme switch picks Light on a dark system. */
:root[data-theme="light"] {
color-scheme: light;
--bg: #fbfbfd;
--panel: #f2f4f8;
--line: #d5dae4;
--text: #1b2230;
--muted: #545e72;
--accent: #2957c8;
--warn: #8a5300;
--capture: #0f766e;
--l0: #2957c8;
--l1: #2f7d32;
--l2: #8a5300;
--l3: #6f42c1;
--l4: #0b6e99;
--l5: #b3261e;
--raised: #e9edf5;
--raised-2: #eef1f7;
--row-bg: #f4f6fa;
--hover: #e6ebf5;
--active: #d9e3f7;
--chip-bg: #e8edf5;
--chip-line: #c2cbdb;
--kind-bg: #e4e8f0;
--kind-decision-bg: #ece4ff;
--kind-decision-text: #5b3aa8;
--kind-question-bg: #fbf0dc;
--kind-message-bg: #e7f3e1;
--kind-message-text: #2a7430;
--missing: #4f586b;
--search-hit-bg: #e7e2dc;
--search-active-bg: #e1d9cd;
--diff-add-bg: #e2f5e4;
--diff-add-text: #145c22;
--diff-remove-bg: #fbe4e6;
--diff-remove-text: #8a1c26;
--on-lane: #ffffff;
--translucent-panel: rgba(255, 255, 255, 0.97);
--translucent-outline: rgba(246, 248, 251, 0.96);
--overlay: rgba(20, 26, 38, 0.35);
--shadow: rgba(20, 30, 50, 0.18);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
}
/* One scroller (Story 9.2): on the map page the map is what moves, not the
document; the panel and report pages still scroll normally. */
body:has(.map-page) {
overflow: hidden;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font:
15px / 1.5 ui-sans-serif,
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
}
main {
padding: 32px 24px 64px;
}
/* The panel uses the same centred 8-of-12 column as the map. */
main.panel-page {
width: 66.667%;
margin-right: auto;
margin-left: auto;
padding-right: 0;
padding-left: 0;
}
.panel-page .page-bar {
margin-bottom: 20px;
}
/* The product name, first in the top bar of every page. */
.brand {
display: inline-flex;
flex: none;
flex-direction: column;
align-self: center;
color: var(--text);
font-size: 26px;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
text-decoration: none;
}
.brand-tagline {
color: var(--muted);
font-size: 13px;
font-style: italic;
font-weight: 400;
letter-spacing: 0;
}
a.brand:hover .brand-tagline {
color: var(--text);
}
/* "← All projects" above a project's name on its map. */
.back-link {
display: block;
width: fit-content;
margin-top: 8px;
color: var(--muted);
font-size: 13px;
text-decoration: none;
}
.back-link:hover {
color: var(--text);
text-decoration: underline;
}
/* The map page: head on top, map fills the rest of the window. */
main.map-page {
display: flex;
flex-direction: column;
height: 100%;
padding: 20px 0 16px;
}
/* An 8-of-12 content column, centred, with empty gutters on both sides. */
.map-page .page-head,
.map-page .lineage-map {
width: 66.667%;
margin-right: auto;
margin-left: auto;
}
.map-page .page-head {
flex: none;
}
/* With the side panel open the map column grows into the empty right gutter, so
the panel takes that room instead of the map's. The left edge stays put. */
@media (min-width: 1101px) {
.map-page .lineage-map:has(.drilldown) {
width: auto;
margin-right: 24px;
margin-left: 16.667%;
}
}
.map-page .lineage-map {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
margin-top: 8px;
padding: 0;
container-type: inline-size;
}
@media (max-width: 1100px) {
main.map-page {
padding-right: 16px;
padding-left: 16px;
}
.map-page .page-head,
.map-page .lineage-map {
width: 100%;
}
main.panel-page {
width: 100%;
padding-right: 16px;
padding-left: 16px;
}
}
/* The head spans the window like the map below it. */
.page-head {
margin: 0;
}
/* Settings button (Story 8.13) sits in the top bar of every page. */
.page-bar {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.page-bar-actions {
display: flex;
flex: none;
align-items: flex-start;
gap: 12px;
}
/* A map's top bar: cogit on the left, the project in the middle, the actions on the right. */
.page-bar-centered {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
}
.page-bar-centered .page-bar-actions {
justify-self: end;
align-items: center;
}
.page-title {
min-width: 0;
text-align: center;
}
.page-title h1 {
margin: 0;
font-size: 26px;
line-height: 1.2;
}
.page-title .muted {
margin: 2px 0 0;
font-size: 11px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The theme switch: one icon, its meaning in the tooltip. */
.theme-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
color: var(--text);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
cursor: pointer;
}
.theme-button:hover {
background: var(--hover);
}
/* Under the project's name and path: recent projects and Ctrl/Cmd+K. */
.project .switcher {
margin-top: 10px;
margin-bottom: 0;
}
/* Map search (Story 8.14): in the page head, beside the project switcher. */
.map-search {
flex: none;
width: 250px;
}
.map-search-row {
display: flex;
align-items: center;
gap: 6px;
}
.map-search-input {
flex: 1 1 auto;
min-width: 0;
padding: 5px 10px;
color: var(--text);
font: inherit;
font-size: 13px;
background: var(--raised);
border: 1px solid var(--line);
border-radius: 7px;
}
.map-search-input:focus {
outline: 1px solid var(--accent);
}
.map-search-count {
flex: none;
color: var(--muted);
font-size: 12px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.map-search-step {
flex: none;
width: 24px;
height: 26px;
padding: 0;
color: var(--muted);
font: inherit;
font-size: 12px;
background: var(--raised);
border: 1px solid var(--line);
border-radius: 6px;
cursor: pointer;
}
.map-search-step:hover:not(:disabled) {
color: var(--text);
border-color: var(--accent);
}
.map-search-step:disabled {
cursor: default;
opacity: 0.4;
}
.map-search-hint {
margin: 4px 0 0;
overflow: hidden;
color: var(--muted);
font-size: 11px;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
.page-actions {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.settings-button {
flex: none;
margin-left: auto;
padding: 6px 12px;
color: var(--muted);
font: inherit;
font-size: 13px;
background: var(--raised-2);
border: 1px solid var(--line);
border-radius: 8px;
cursor: pointer;
}
.settings-button:hover {
color: var(--text);
border-color: var(--accent);
}
h1,
h2,
h3 {
margin: 0 0 8px;
line-height: 1.25;
}
h1 {
font-size: 26px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 15px;
}
p {
margin: 4px 0;
}
ul {
margin: 6px 0;
padding-left: 20px;
}
/* Project switcher (Story 8.12): a tab strip of recent projects and a
Ctrl/Cmd+K search over every registered one. */
.switcher {
margin-bottom: 18px;
}
.switcher-tabs {
display: flex;
align-items: stretch;
gap: 6px;
overflow-x: auto;
padding-bottom: 2px;
}
.switcher-tab {
display: flex;
flex: none;
align-items: baseline;
gap: 8px;
max-width: 220px;
padding: 6px 12px;
color: var(--muted);
font-size: 13px;
text-decoration: none;
background: var(--raised-2);
border: 1px solid var(--line);
border-radius: 8px;
}
.switcher-tab:hover {
color: var(--text);
border-color: var(--chip-line);
}
.switcher-tab.is-current {
color: var(--text);
background: var(--active);
border-color: var(--accent);
}
.switcher-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.switcher-time {
flex: none;
color: var(--muted);
font-size: 11px;
white-space: nowrap;
}
.switcher-more {
flex: none;
padding: 5px 12px;
color: var(--muted);
font: inherit;
font-size: 13px;
background: transparent;
border: 1px dashed var(--line);
border-radius: 8px;
cursor: pointer;
}
.switcher-more:hover {
color: var(--text);
border-color: var(--accent);
}
.switcher-more kbd {
padding: 1px 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
border: 1px solid var(--line);
border-radius: 4px;
}
.switcher-overlay {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 12vh 16px 32px;
background: var(--overlay);
}
.switcher-dialog {
width: min(640px, 100%);
padding: 12px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: 0 20px 60px var(--shadow);
}
.switcher-input {
width: 100%;
padding: 9px 12px;
color: var(--text);
font: inherit;
background: var(--bg);
border: 1px solid var(--line);
border-radius: 8px;
}
.switcher-input:focus {
outline: 1px solid var(--accent);
}
.switcher-results {
max-height: 50vh;
margin: 8px 0 0;
padding: 0;
overflow-y: auto;
list-style: none;
}
.switcher-result {
padding: 8px 10px;
border: 1px solid transparent;
border-radius: 8px;
cursor: pointer;
}
.switcher-result.is-active {
background: var(--active);
border-color: var(--accent);
}
.switcher-result-head {
display: flex;
align-items: baseline;
gap: 8px;
}
.switcher-result-head .switcher-name {
font-size: 14px;
font-weight: 600;
}
.switcher-result-head .switcher-time {
margin-left: auto;
}
.switcher-leftoff {
display: -webkit-box;
margin-top: 2px;
overflow: hidden;
font-size: 13px;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.switcher-path {
display: block;
overflow: hidden;
color: var(--muted);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.switcher-hint {
margin: 8px 2px 0;
color: var(--muted);
font-size: 11px;
}
.switcher-none {
padding: 8px 10px;
}
/* Settings modal (Story 8.13): one place for every setting, on every page. */
.settings-overlay {
position: fixed;
inset: 0;
z-index: 250;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 10vh 16px 32px;
background: var(--overlay);
}
.settings-dialog {
width: min(640px, 100%);
max-height: 80vh;
padding: 18px 20px 22px;
overflow: auto;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: 0 20px 60px var(--shadow);
}
.settings-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.settings-close {
width: 28px;
height: 28px;
color: var(--muted);
font: inherit;
font-size: 18px;
line-height: 1;
background: transparent;
border: 1px solid var(--line);
border-radius: 8px;
cursor: pointer;
}
.settings-close:hover {
color: var(--text);
border-color: var(--accent);
}
.settings-section {
margin-top: 16px;
}
.settings-section h3 {
color: var(--muted);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.settings-field {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 10px 0;
border-bottom: 1px solid var(--line);
}
.settings-field:last-child {
border-bottom: 0;
}
.settings-field-text {
min-width: 0;
}
.settings-label {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 14px;
}
/* The "?" behind a setting's plain-language explanation (Story 12.1). */
.settings-why {
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 18px;
height: 18px;
padding: 0;
color: var(--muted);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 50%;
font: inherit;
font-size: 11px;
line-height: 1;
cursor: help;
}
.settings-why-wrap:hover .settings-why,
.settings-why:focus-visible {
color: var(--text);
border-color: var(--muted);
}
.settings-why-wrap {
position: relative;
display: inline-flex;
}
/* Floats below the "?" so opening it never pushes the rows around. */
.settings-details {
position: absolute;
top: calc(100% + 6px);
left: -8px;
z-index: 5;
width: max-content;
max-width: min(46ch, calc(100vw - 64px));
padding: 8px 10px;
color: var(--text);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 6px;
box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
font-size: 12px;
font-weight: normal;
line-height: 1.5;
white-space: normal;
}
.settings-help {
margin: 2px 0 0;
color: var(--muted);
font-size: 12px;
}
.settings-value {
flex: none;
max-width: 40%;
color: var(--muted);
font-size: 13px;
text-align: right;
}
.settings-field .setting-form {
flex: none;
flex-wrap: wrap;
justify-content: flex-end;
max-width: 50%;
}
.project {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
border-bottom: 1px solid var(--line);
padding-bottom: 16px;
}
.meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
font-size: 13px;
}
.muted {
color: var(--muted);
font-size: 13px;
font-weight: normal;
}
.needs-user {
color: var(--warn);
}
.badge {
margin-left: 6px;
padding: 1px 6px;
border: 1px solid var(--warn);
border-radius: 999px;
font-size: 11px;
white-space: nowrap;
}
.map-shell {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
}
.map-toolbar {
display: flex;
flex: none;
align-items: center;
justify-content: flex-end;
gap: 8px;
margin-top: 0;
}
.map-title {
min-width: 0;
margin-right: auto;
overflow: hidden;
color: var(--muted);
font-size: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}
body:has(.map-shell.is-expanded) {
overflow: hidden;
}
.map-shell.is-expanded {
position: fixed;
inset: 0;
z-index: 100;
display: flex;
flex-direction: column;
padding: 12px;
background: var(--bg);
}
.map-shell.is-expanded .map-toolbar {
margin-top: 0;
}
.map-shell.is-expanded .graph-wrap {
flex: 1;
height: auto;
}
/* Whose sessions (Everyone / You / a teammate): sits with the toolbar buttons. */
.person-filter {
padding: 4px 8px;
color: var(--muted);
background: var(--raised);
border: 1px solid var(--line);
border-radius: 7px;
font: inherit;
font-size: 13px;
}
/* Another person's sessions under the filter: in place, faded, so the lines stay whole. */
.session-row.is-dimmed,
.session-rows.is-dimmed {
opacity: 0.35;
}
.outline-button {
padding: 5px 12px;
color: var(--muted);
background: var(--raised);
border: 1px solid var(--line);
border-radius: 7px;
font: inherit;
font-size: 13px;
cursor: pointer;
}
.outline-button:hover,
.outline-button[aria-pressed="true"] {
color: var(--text);
border-color: var(--accent);
}
.graph-wrap {
position: relative;
display: flex;
flex: 1 1 auto;
min-height: 0;
margin-top: 8px;
background: var(--row-bg);
border: 1px solid var(--line);
border-radius: 12px;
overflow: hidden;
}
.graph-canvas {
position: relative;
flex: 1;
min-width: 0;
height: 100%;
}
.graph-status {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
margin: 0;
padding: 24px;
}
/* Experimental outline tree beside the graph. */
.outline {
display: flex;
flex: none;
flex-direction: column;
width: 270px;
height: 100%;
background: var(--translucent-outline);
border-right: 1px solid var(--line);
}
.outline-head {
display: flex;
flex: none;
align-items: center;
gap: 8px;
padding: 10px 10px 10px 14px;
border-bottom: 1px solid var(--line);
}
.outline-title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
.outline-badge {
padding: 1px 6px;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 999px;
font-size: 10px;
}
.outline-head .drilldown-close {
margin-left: auto;
}
.outline-scroll {
flex: 1;
padding: 6px 6px 12px;
overflow-y: auto;
}
.outline-list,
.outline-list ul {
margin: 0;
padding: 0;
list-style: none;
}
.outline-list ul {
padding-left: 14px;
}
.outline-row {
display: flex;
align-items: center;
gap: 2px;
min-width: 0;
}
.outline-toggle {
flex: none;
width: 18px;
height: 18px;
padding: 0;
color: var(--muted);
background: transparent;
border: 0;
font-size: 11px;
line-height: 1;
cursor: pointer;
}
.outline-toggle:hover {
color: var(--text);
}
.outline-toggle.is-empty {
display: inline-block;
cursor: default;
}
.outline-item {
display: flex;
flex: 1;
align-items: center;
gap: 6px;
min-width: 0;
padding: 4px 6px;
overflow: hidden;
color: var(--text);
background: transparent;
border: 0;
border-radius: 5px;
font: inherit;
font-size: 13px;
text-align: left;
cursor: pointer;
}
.outline-item:hover {
background: var(--hover);
}
.outline-item.is-active {
background: var(--active);
outline: 1px solid var(--accent);
}
.outline-item .label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.outline-count {
flex: none;
margin-left: auto;
color: var(--muted);
font-size: 11px;
}
/* Files view (Story 8.15): the conversations that changed a file. */
.files-view {
width: 330px;
}
.file-row .file-path {
font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 12px;
}
.file-hits {
margin: 0 0 4px;
padding: 0 0 0 20px;
list-style: none;
}
.file-hit {
display: flex;
flex-direction: column;
gap: 2px;
width: 100%;
padding: 5px 8px;
color: var(--text);
background: transparent;
border: 0;
border-radius: 5px;
font: inherit;
font-size: 12px;
text-align: left;
cursor: pointer;
}
.file-hit:hover {
background: var(--hover);
}
.file-hit.is-active {
background: var(--active);
outline: 1px solid var(--accent);
}
.file-hit-line {
display: flex;
align-items: baseline;
gap: 6px;
min-width: 0;
}
.file-hit-time {
flex: none;
color: var(--muted);
font-size: 11px;
font-variant-numeric: tabular-nums;
}
.file-hash,
.file-label {
flex: none;
color: var(--muted);
font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
font-size: 11px;
}
.file-hit-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.file-hit-meta {
display: flex;
gap: 6px;
overflow: hidden;
color: var(--muted);
font-size: 11px;
white-space: nowrap;
text-overflow: ellipsis;
}
/* The message's reason under its row, the way `cogit why` prints a decision. */
.file-hit-reason {
display: block;
overflow: hidden;
color: var(--text);
font-size: 11px;
font-style: italic;
white-space: nowrap;
text-overflow: ellipsis;
}
.file-hit-branch,
.file-hit-commit {
font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
/* Captured work (Story 15.1): a short list the user curates, not a plan. */
.capture-view {
width: 340px;
}
.outline-button.capture-button[aria-pressed="true"] {
border-color: var(--capture);
color: var(--capture);
}
.capture-head {
border-bottom-color: var(--capture);
}
.capture-title {
color: var(--capture);
}
.capture-badge {
color: var(--capture);
border-color: var(--capture);
}
.capture-note {
margin: 0;
padding: 4px 10px 6px;
color: var(--muted);
font-size: 11px;
}
/* A task marker, so the list reads as tasks, not as message rows. */
.capture-task-mark {
margin-right: 6px;
color: var(--muted);
}
.capture-list {
margin: 0;
padding: 0 4px;
list-style: none;
}
.capture-section {
padding: 2px 2px 4px;
}
.capture-heading {
margin: 6px 4px 2px;
color: var(--muted);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.capture-done > summary.capture-heading {
cursor: pointer;
}
/* The note after a section heading: same line, not a second uppercase label. */
.capture-hint {
text-transform: none;
font-weight: 400;
letter-spacing: 0;
}
.capture-row {
display: flex;
align-items: flex-start;
gap: 6px;
margin: 2px 0;
padding: 6px 8px;
border-left: 2px solid var(--capture);
border-radius: 0 5px 5px 0;
font-size: 12px;
}
.capture-row:hover {
background: var(--hover);
}
.capture-row.is-active {
background: var(--active);
outline: 1px solid var(--capture);
}
.capture-open {
display: flex;
flex: 1;
flex-direction: column;
gap: 3px;
min-width: 0;
padding: 0;
color: var(--text);
background: none;
border: 0;
font: inherit;
font-size: 12px;
text-align: left;
cursor: pointer;
}
.capture-actions {
display: flex;
flex: none;
gap: 4px;
}
.capture-action {
padding: 1px 6px;
color: var(--muted);
background: transparent;
border: 1px solid var(--line);
border-radius: 6px;
font: inherit;
font-size: 11px;
cursor: pointer;
}
.capture-action:hover {
color: var(--text);
border-color: var(--capture);
}
.capture-action.is-accept {
color: var(--capture);
border-color: var(--capture);
}
.capture-error {
margin: 0;
padding: 2px 10px 6px;
font-size: 11px;
}
.capture-text {
overflow-wrap: anywhere;
}
/* Story 15.3: the button on the session row that opens its Captured work. */
.capture-mark {
flex: none;
padding: 0 5px;
color: var(--capture);
background: none;
border: 1px solid var(--capture);
border-radius: 999px;
font: inherit;
font-size: 10px;
font-weight: 600;
line-height: 16px;
cursor: pointer;
}
.capture-mark:hover {
color: var(--bg);
background: var(--capture);
}
.capture-state {
display: inline-block;
padding: 0 5px;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 6px;
font-size: 10px;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.capture-state.is-open {
color: var(--capture);
border-color: var(--capture);
}
.capture-here-list li {
margin: 3px 0;
}
.capture-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
color: var(--muted);
font-size: 11px;
}
.capture-label {
font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
/* The map draws its own git graph; React Flow only pans, zooms and frames it. */
.map-node .git-graph {
margin: 0;
}
/* Session rows at the project level (Story 8.7). */
.session-row {
font-size: 13px;
}
.session-dot {
cursor: pointer;
}
.session-dot:hover {
filter: brightness(1.3);
}
.session-count {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Who recorded the session (Story 9.3); never squeezes the title out. */
.session-author {
flex: 0 1 auto;
min-width: 0;
max-width: 14ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.left-off {
display: inline-block;
margin-top: 4px;
padding: 1px 6px;
color: var(--warn);
border: 1px solid var(--warn);
border-radius: 999px;
font-size: 10px;
line-height: 14px;
}
/* A row built from the transcript before the record summarizes it. */
.unsummarized {
display: inline-block;
margin-top: 4px;
padding: 1px 6px;
color: var(--muted);
border: 1px dashed var(--muted);
border-radius: 999px;
font-size: 10px;
line-height: 14px;
}
.kind {
flex: none;
padding: 1px 6px;
border-radius: 4px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
background: var(--kind-bg);
color: var(--muted);
}
.kind.kind-decision {
background: var(--kind-decision-bg);
color: var(--kind-decision-text);
}
.kind.kind-question {
background: var(--kind-question-bg);
color: var(--warn);
}
.kind.kind-message {
background: var(--kind-message-bg);
color: var(--kind-message-text);
}
.empty,
.error {
color: var(--muted);
font-style: italic;
}
/* Drill-down panel: overlays the graph from the right, scrolls on its own. */
/* A column beside the map: the canvas narrows instead of rows going under it. */
.drilldown {
z-index: 10;
display: flex;
flex: none;
flex-direction: column;
width: 460px;
background: var(--translucent-panel);
border-left: 1px solid var(--line);
}
/* Too narrow for two columns: the panel floats over the map again. */
@media (max-width: 900px) {
.drilldown {
position: absolute;
top: 12px;
right: 12px;
bottom: 12px;
width: min(460px, calc(100% - 24px));
border: 1px solid var(--line);
border-radius: 10px;
box-shadow: 0 12px 32px var(--shadow);
}
}
.drilldown-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid var(--line);
}
.drilldown-head h2 {
margin: 6px 0 0;
font-size: 16px;
overflow-wrap: anywhere;
}
.drilldown-close {
flex: none;
width: 28px;
height: 28px;
padding: 0;
font-size: 18px;
line-height: 1;
color: var(--muted);
background: var(--hover);
border: 1px solid var(--line);
border-radius: 6px;
cursor: pointer;
}
.drilldown-close:hover {
color: var(--text);
border-color: var(--accent);
}
.drilldown-body {
flex: 1;
padding: 14px 16px;
overflow-y: auto;
}
.drilldown-body section {
margin-bottom: 14px;
}
.drilldown-body h3 {
margin-bottom: 4px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
.drilldown-body p {
overflow-wrap: anywhere;
}
/* Long text (the conversation, the branch context) sits folded at the end. */
.drilldown-body details.fold {
margin-bottom: 14px;
}
.drilldown-body details.fold > summary {
cursor: pointer;
margin-bottom: 4px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
.drilldown-body details.fold > summary:hover {
color: var(--text);
}
.drilldown-body .decided-by {
margin: -8px 0 14px;
font-size: 12px;
color: var(--muted);
}
.drilldown-list {
margin: 4px 0 0;
padding-left: 18px;
}
.drilldown-list li + li {
margin-top: 4px;
}
/* Commits and changed files of a message. */
h3 .count {
margin-left: 4px;
padding: 0 6px;
color: var(--muted);
font-size: 11px;
font-weight: 500;
background: var(--chip-bg);
border-radius: 8px;
}
.commit-list,
.file-list {
margin: 6px 0 0;
padding: 0;
list-style: none;
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
}
.commit-item,
.file-list li {
background: var(--row-bg);
}
.commit-row {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px;
width: 100%;
padding: 7px 10px;
color: inherit;
font: inherit;
font-size: 13px;
line-height: 18px;
text-align: left;
background: none;
border: 0;
}
button.commit-row {
cursor: pointer;
}
button.commit-row:hover {
background: var(--hover);
}
.commit-item + .commit-item,
.file-list li + li {
border-top: 1px solid var(--line);
}
.commit-hash {
flex: none;
padding: 0 5px;
color: var(--accent);
font-size: 11px;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 4px;
}
.commit-type {
flex: none;
padding: 0 6px;
color: var(--on-lane);
font-size: 10px;
font-weight: 700;
line-height: 16px;
text-transform: uppercase;
letter-spacing: 0.03em;
background: var(--muted);
border-radius: 4px;
}
.commit-scope {
flex: none;
color: var(--muted);
font-size: 12px;
}
.commit-scope::before {
content: "(";
}
.commit-scope::after {
content: ")";
}
.commit-subject {
flex: 1 1 180px;
min-width: 0;
}
/* A commit git no longer has stays listed, greyed (Story 8.8). */
.commit-item.is-missing .commit-hash {
color: var(--missing);
border-style: dashed;
}
.commit-item.is-missing .commit-subject {
color: var(--missing);
font-style: italic;
}
.file-row {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
width: 100%;
padding: 5px 10px;
color: inherit;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
text-align: left;
background: none;
border: 0;
}
button.file-row {
cursor: pointer;
}
button.file-row:hover {
background: var(--hover);
}
/* A changed file opens its history: every message that touched it, the map's
side of `cogit why <path>`. */
.file-item {
display: flex;
align-items: center;
}
.file-item .file-row {
flex: 1 1 auto;
min-width: 0;
}
.file-history {
flex: none;
margin-right: 8px;
padding: 1px 8px;
color: var(--muted);
font: inherit;
font-size: 11px;
background: none;
border: 1px solid var(--line);
border-radius: 999px;
cursor: pointer;
}
.file-history:hover {
color: var(--text);
background: var(--hover);
}
.file-name {
flex: none;
color: var(--text);
font-weight: 600;
}
.file-dir {
min-width: 0;
overflow: hidden;
color: var(--muted);
text-overflow: ellipsis;
white-space: nowrap;
}
/* A commit or file row that opens its patch (Story 10.5). */
.diff-caret {
flex: none;
margin-left: auto;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 13px;
}
.diff-view {
padding: 8px 10px 10px;
overflow-x: hidden;
background: var(--raised-2);
border-top: 1px solid var(--line);
}
.diff-toolbar {
display: flex;
justify-content: flex-end;
margin-bottom: 6px;
color: var(--muted);
font-size: 11px;
}
.diff-loading {
margin: 6px 0;
padding: 6px 10px;
font-size: 12px;
}
.diff-patch + .diff-patch {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--line);
}
.diff-file {
margin-bottom: 4px;
overflow-wrap: anywhere;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
font-weight: 600;
}
.diff-meta {
overflow-wrap: anywhere;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
}
.diff-hunk {
margin: 6px 0 2px;
padding: 2px 6px;
overflow-wrap: anywhere;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
background: var(--chip-bg);
border-radius: 4px;
}
.diff-row {
display: flex;
align-items: baseline;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11.5px;
line-height: 16px;
}
.diff-no {
flex: none;
width: 34px;
padding-right: 4px;
color: var(--muted);
text-align: right;
user-select: none;
}
.diff-mark {
flex: none;
width: 14px;
text-align: center;
}
.diff-text {
flex: 1;
min-width: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.diff-add {
color: var(--diff-add-text);
background: var(--diff-add-bg);
}
.diff-remove {
color: var(--diff-remove-text);
background: var(--diff-remove-bg);
}
.diff-context {
color: var(--text);
}
.diff-note {
color: var(--muted);
font-style: italic;
}
.diff-note-line {
display: block;
padding: 2px 6px;
overflow-wrap: anywhere;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
}
/* Side by side: two line-number columns, each cell keeps its own tint. */
.diff-side-row {
display: grid;
grid-template-columns: 34px minmax(0, 1fr) 34px minmax(0, 1fr);
}
.diff-side-row .diff-note-line {
grid-column: 1 / -1;
}
.diff-side-no {
width: auto;
padding: 0 4px;
}
.diff-cell {
min-width: 0;
padding: 0 4px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.diff-cell.is-empty {
background: var(--bg);
opacity: 0.55;
}
.drilldown-meta {
display: grid;
gap: 8px;
margin: 0 0 16px;
}
.drilldown-field {
display: grid;
grid-template-columns: 110px 1fr;
gap: 8px;
font-size: 13px;
}
.drilldown-field dt {
color: var(--muted);
}
.drilldown-field dd {
margin: 0;
overflow-wrap: anywhere;
}
.drilldown-field code {
font-size: 12px;
overflow-wrap: anywhere;
}
.resume {
padding-top: 12px;
border-top: 1px solid var(--line);
}
/* Two small, equal controls: they copy a command, they do not run anything. */
.resume-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.resume-button {
padding: 2px 10px;
color: var(--text);
background: var(--active);
border: 1px solid var(--line);
border-radius: 7px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.resume-button:hover:not(:disabled) {
border-color: var(--accent);
}
.resume-button:disabled {
color: var(--muted);
cursor: not-allowed;
opacity: 0.7;
}
.resume-note {
font-size: 12px;
}
.resume-command {
flex-basis: 100%;
margin: 0;
padding: 6px 8px;
overflow-x: auto;
background: var(--row-bg);
border: 1px solid var(--line);
border-radius: 6px;
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
time {
color: var(--muted);
font-size: 12px;
}
/* "Your turn" inbox (Story 11.1): the panel above its cards, the map head for
this project. Rows are ordered oldest first, so the longest wait is on top. */
.inbox {
margin: 20px 0 8px;
}
.inbox h2 {
font-size: 16px;
margin: 0;
}
.inbox-count {
font-size: 13px;
font-weight: 400;
}
.inbox-rows {
display: grid;
gap: 8px;
margin: 10px 0 0;
padding: 0;
list-style: none;
}
.inbox-row {
display: flex;
flex-direction: column;
gap: 6px;
padding: 10px 12px;
background: var(--panel);
border: 1px solid var(--line);
border-left: 3px solid var(--accent);
border-radius: 8px;
}
.inbox-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
}
.inbox-project {
font-weight: 600;
}
.inbox-session {
color: var(--muted);
font-size: 13px;
}
.inbox-age {
margin-left: auto;
padding: 1px 8px;
color: var(--accent);
font-size: 12px;
border: 1px solid var(--accent);
border-radius: 999px;
white-space: nowrap;
}
.inbox-age.is-record {
color: var(--muted);
border-color: var(--line);
}
.inbox-message {
display: -webkit-box;
overflow: hidden;
margin: 0;
font-size: 13px;
line-height: 1.45;
white-space: pre-wrap;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.inbox-signal,
.inbox-where {
margin: 0;
font-size: 12px;
}
.inbox-where {
color: var(--text);
}
.inbox-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.inbox-actions a {
color: var(--accent);
}
/* The close button in a row's top-right corner: hides the row until the agent
writes in that session again. */
.inbox-dismiss {
width: 24px;
height: 24px;
padding: 0;
color: var(--muted);
font-size: 18px;
line-height: 22px;
background: none;
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
}
.inbox-dismiss:hover {
color: var(--text);
border-color: var(--line);
background: var(--hover);
}
/* On a map the inbox is one line until opened. */
.inbox-toggle {
padding: 0;
color: inherit;
font: inherit;
background: none;
border: 0;
cursor: pointer;
}
.inbox-caret {
display: inline-block;
width: 1em;
color: var(--muted);
}
.inbox-error {
margin: 6px 0 0;
font-size: 12px;
}
/* Global panel: one card per registered project. */
.panel-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
margin: 24px 0 32px;
padding: 0;
list-style: none;
}
.card {
display: flex;
flex-direction: column;
gap: 8px;
padding: 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
}
.card.missing {
border-color: var(--warn);
}
.card-head {
display: flex;
align-items: center;
gap: 6px;
}
.card-head h2 {
font-size: 17px;
}
.card .path {
overflow-wrap: anywhere;
}
.card-facts,
.settings dl {
display: grid;
gap: 4px;
margin: 0;
}
.card-facts div,
.settings dl div {
display: flex;
justify-content: space-between;
gap: 12px;
}
.card-facts dt,
.settings dt {
color: var(--muted);
font-size: 13px;
}
.card-facts dd,
.settings dd {
margin: 0;
font-size: 13px;
}
.card a {
color: var(--accent);
}
/* The whole card opens the map: the link stretches over it. */
.card {
position: relative;
}
.card a.card-open::after {
position: absolute;
inset: 0;
border-radius: 10px;
content: "";
}
.card:has(a.card-open):hover {
border-color: var(--accent);
cursor: pointer;
}
.settings {
padding: 16px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
}
.settings h2 {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
}
.settings dl {
margin-top: 10px;
}
@media (max-width: 720px) {
.page-bar-centered {
grid-template-columns: 1fr auto;
}
.page-bar-centered .page-title {
grid-column: 1 / -1;
grid-row: 2;
text-align: left;
}
.project {
flex-direction: column;
align-items: flex-start;
}
.meta {
align-items: flex-start;
}
.page-actions {
align-items: flex-start;
}
.page-bar {
flex-wrap: wrap;
}
.settings-field {
flex-direction: column;
gap: 6px;
}
.settings-field .setting-form {
max-width: none;
justify-content: flex-start;
}
.settings-value {
max-width: none;
text-align: left;
}
.graph-wrap {
flex-direction: column;
}
.outline {
width: 100%;
height: 180px;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.graph-canvas {
flex: 1;
height: auto;
min-height: 0;
}
}
.message-nav {
display: flex;
justify-content: space-between;
gap: 8px;
margin-bottom: 14px;
}
.message-nav button,
.chat-more {
padding: 4px 10px;
font: inherit;
font-size: 12px;
color: var(--text);
background: var(--raised);
border: 1px solid var(--line);
border-radius: 6px;
cursor: pointer;
}
.message-nav button:hover:not(:disabled),
.chat-more:hover {
border-color: var(--accent);
}
.message-nav button:disabled {
opacity: 0.4;
cursor: default;
}
/* The message's stable hash, ready to paste to the agent (Story 8.10). */
.message-hash {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
font-size: 13px;
}
.message-hash code {
font-size: 12px;
}
.message-hash button {
padding: 3px 8px;
color: var(--text);
background: var(--active);
border: 1px solid var(--line);
border-radius: 6px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.message-hash button:hover {
border-color: var(--accent);
}
.chat-entry {
margin-top: 8px;
padding: 8px 10px;
border-radius: 8px;
border-left: 3px solid var(--line);
background: var(--raised);
}
.chat-user {
border-left-color: var(--l1);
}
.chat-agent {
border-left-color: var(--accent);
}
.chat-who {
margin-bottom: 4px;
font-size: 11px;
color: var(--muted);
}
.drilldown-body .chat-text {
white-space: pre-wrap;
font-size: 13px;
line-height: 1.5;
}
.chat-text + .chat-text {
margin-top: 8px;
}
.drilldown-body .chat-tools {
margin-top: 6px;
font-size: 12px;
color: var(--muted);
font-style: italic;
}
/* Git graph inside a session (Story 8.2): rows in time order, dots and lanes
drawn in an SVG to their left. */
.git-graph {
position: relative;
margin: 0 0 24px 24px;
}
.git-lanes {
position: absolute;
top: 0;
left: 0;
overflow: visible;
}
.git-rows {
position: absolute;
top: 0;
width: 520px;
}
.git-row {
position: absolute;
left: 0;
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 0 8px;
overflow: hidden;
color: var(--text);
font: inherit;
font-size: 12px;
text-align: left;
background: none;
border: 1px solid transparent;
border-radius: 5px;
cursor: pointer;
}
.git-row:hover {
background: var(--hover);
}
.git-row.is-selected {
background: var(--active);
outline: 1px solid var(--accent);
}
/* Search hits (Story 8.14): every match is marked, the active one more so. */
.git-row.is-search-hit {
background: var(--search-hit-bg);
box-shadow: inset 2px 0 0 var(--warn);
}
.git-row.is-search-active {
background: var(--search-active-bg);
outline: 1px solid var(--warn);
}
.git-more {
color: var(--muted);
font-style: italic;
}
.git-time {
flex: none;
width: 74px;
overflow: hidden;
color: var(--muted);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.git-id {
flex: none;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
opacity: 0.7;
}
/* The title wins over the chips around it (Story 9.2): it keeps its minimum
width and the chips truncate with an ellipsis instead of squeezing it into a
one-letter column. Keep `min-width` equal to `TITLE_MIN_WIDTH` in
`gitLayout.ts` (a row is laid out tall enough to wrap at that width). */
.git-title {
flex: 1 1 auto;
min-width: 180px;
line-height: 16px;
overflow-wrap: anywhere;
}
/* Commit tags on a message row (Story 8.8): a short hash, greyed when git no
longer knows the commit. Two hashes a line; more wrap below instead of being
cut off (`TAGS_PER_LINE` in `gitLayout.ts`). */
.git-tags {
display: flex;
flex: none;
flex-wrap: wrap;
justify-content: flex-end;
gap: 4px;
max-width: 112px;
}
.git-tag {
flex: none;
padding: 0 4px;
white-space: nowrap;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
line-height: 15px;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 3px;
cursor: pointer;
}
.git-tag:hover {
color: var(--text);
border-color: var(--accent);
}
.git-tag.is-missing {
color: var(--missing);
border-style: dashed;
}
/* "↑ m67": a jump to the earlier session's message; the tooltip names the session. */
.git-continues {
flex: 0 1 auto;
min-width: 0;
max-width: 220px;
overflow: hidden;
padding: 1px 6px;
color: var(--accent);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
border-radius: 4px;
}
.git-continues:hover {
background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.git-row .left-off,
.git-row .unsummarized {
flex: none;
margin: 0;
}
/* The branch summary a clicked row opens in the side panel. */
.branch-range {
color: var(--muted);
font-size: 12px;
}
/* Settings the panel can change when the local server serves it (Story 8.9). */
.setting-form {
display: flex;
align-items: center;
gap: 8px;
}
.setting-form input[type="text"],
.setting-form input[type="number"],
.setting-form select {
width: 150px;
padding: 3px 6px;
color: var(--text);
background: var(--bg);
border: 1px solid var(--line);
border-radius: 6px;
font: inherit;
font-size: 13px;
}
.setting-form input[type="checkbox"] {
margin: 0;
}
/* The one Save of the modal, pinned to its bottom edge while the list scrolls. */
.settings-foot {
position: sticky;
bottom: -22px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
margin: 8px -20px -22px;
padding: 12px 20px;
background: var(--panel);
border-top: 1px solid var(--line);
}
.settings-field.is-changed .settings-label::after {
content: "•";
color: var(--accent, var(--text));
}
.settings-foot button,
.setting-form button {
padding: 3px 10px;
color: var(--text);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 6px;
font: inherit;
font-size: 13px;
cursor: pointer;
}
.settings-foot button:disabled,
.setting-form button:disabled {
opacity: 0.45;
cursor: default;
}
.setting-status {
color: var(--muted);
font-size: 12px;
}
.setting-error {
color: var(--l5);
font-size: 12px;
}
/*
* React Flow turns pointer events off on nodes that are neither selectable nor
* draggable, so the rows and dots inside a map node must turn them back on;
* the rest of the node stays click-through and keeps panning the canvas.
*/
.map-node button,
.map-node .git-row,
.row-edge,
.session-dot,
.git-dot-hit {
pointer-events: all;
}
.git-dot-hit {
cursor: pointer;
}
/* An opened session's messages, accordion-style below its row (Story 8.7). */
.map-node {
position: relative;
}
.session-open {
position: absolute;
}
.session-rows {
position: relative;
}
/* The rows' right edge (RowEdge.tsx): a faint line that lights up to grab. */
.row-edge {
position: absolute;
top: 0;
cursor: col-resize;
touch-action: none;
}
.row-edge::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 1px;
background: var(--line);
}
.row-edge:hover::after,
.row-edge.is-dragging::after {
width: 3px;
margin-left: -1px;
background: var(--accent);
}
.session-toggle {
flex: none;
width: 14px;
padding: 0;
border: 0;
background: none;
color: var(--muted);
font: inherit;
font-size: 10px;
line-height: inherit;
cursor: pointer;
}
.session-toggle:hover,
.session-toggle:focus-visible {
color: var(--text);
}
.session-row.is-open {
background: color-mix(in srgb, var(--accent) 8%, transparent);
}
/* Story 10.3: how much code landed after a message. Facts from git only. */
.git-change {
flex: none;
padding: 0 4px;
white-space: nowrap;
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
line-height: 15px;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 3px;
}
/* A change above the threshold: a quiet mark, not an alarm. */
.git-row.is-big-change {
box-shadow: inset 2px 0 0 color-mix(in srgb, var(--warn) 55%, transparent);
}
.git-change.is-big {
color: var(--warn);
border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}
/* Intent, Shape and Code (Story 13.6) */
.shape-section {
margin: 14px 0;
}
.shape-preview {
max-height: 8.5em;
margin: 6px 0;
padding: 8px 10px;
overflow: hidden;
color: var(--text);
font:
12px / 1.5 ui-monospace,
SFMono-Regular,
Menlo,
monospace;
white-space: pre-wrap;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 6px;
}
.shape-preview-diagram {
height: 240px;
margin: 6px 0;
overflow: auto;
}
/* The preview shrinks a diagram to the box, but not below a legible size
(MermaidDiagram's fitPreview sets the size); a bigger one scrolls. */
.shape-preview-diagram svg {
max-width: none;
}
.shape-open {
padding: 4px 12px;
color: var(--text);
font: inherit;
font-size: 12px;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 4px;
cursor: pointer;
}
.shape-overlay {
position: fixed;
inset: 0;
z-index: 40;
display: flex;
align-items: center;
justify-content: center;
padding: 4vh 4vw;
background: color-mix(in srgb, var(--bg) 72%, transparent);
backdrop-filter: blur(2px);
}
.shape-modal {
display: flex;
flex-direction: column;
width: min(980px, 100%);
max-height: 92vh;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: 0 24px 64px var(--shadow);
outline: none;
}
.shape-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 18px 20px 10px;
border-bottom: 1px solid var(--line);
}
.shape-head h2 {
margin: 4px 0 0;
font-size: 17px;
font-weight: 600;
}
/* Passes the modal's height down, so the open layer scrolls inside it. */
.shape-layers {
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
}
.shape-tabs {
display: flex;
gap: 4px;
padding: 10px 20px 0;
}
.shape-tab {
padding: 7px 14px;
color: var(--muted);
font: inherit;
font-size: 13px;
background: transparent;
border: 1px solid transparent;
border-radius: 6px 6px 0 0;
cursor: pointer;
}
.shape-tab.is-active {
color: var(--text);
background: var(--chip-bg);
border-color: var(--chip-line);
border-bottom-color: transparent;
}
.shape-tab-no {
color: var(--muted);
font-size: 11px;
}
.shape-layer {
flex: 1;
min-height: 0;
padding: 16px 20px 22px;
overflow: auto;
border-top: 1px solid var(--chip-line);
}
.shape-intent h4,
.shape-code h4 {
margin: 12px 0 4px;
font-size: 12px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--muted);
}
.shape-intent ul {
margin: 4px 0;
padding-left: 18px;
}
/* The kinds a Shape uses, above its tools (Story 13.7). */
.shape-legend {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0 0 14px;
padding-bottom: 10px;
border-bottom: 1px solid var(--line);
color: var(--muted);
font-size: 12px;
}
.shape-kind {
display: inline-flex;
align-items: baseline;
gap: 5px;
padding: 2px 9px;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 999px;
}
.shape-kind-symbol {
font-size: 13px;
}
.shape-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
line-height: 1.5;
}
.shape-table th,
.shape-table td {
padding: 7px 10px;
text-align: left;
vertical-align: top;
border: 1px solid var(--chip-line);
}
.shape-table thead th {
color: var(--muted);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
background: var(--chip-bg);
}
.shape-table tbody th {
width: 26%;
font-weight: 600;
}
.shape-caption {
display: flex;
align-items: center;
gap: 6px;
}
.shape-reading {
display: block;
}
.shape-caption .settings-details {
font-size: 12.5px;
line-height: 1.5;
}
.shape-figure {
margin: 0 0 16px;
}
.shape-figure figcaption {
margin-top: 6px;
color: var(--muted);
font-size: 11px;
}
.shape-source {
margin: 0;
padding: 12px 14px;
overflow: auto;
color: var(--text);
font:
12px / 1.6 ui-monospace,
SFMono-Regular,
Menlo,
monospace;
white-space: pre-wrap;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 6px;
}
.shape-note {
margin: 6px 2px 0;
color: var(--muted);
font-size: 12px;
}
.shape-diagram {
padding: 10px;
overflow: auto;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 6px;
}
.shape-diagram svg {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
}
/* The Open window's diagram (Story 14.2): a fixed viewport it drags and zooms in. */
.shape-diagram-interactive {
position: relative;
overflow: hidden;
}
.shape-viewport {
position: relative;
height: min(60vh, 560px);
overflow: hidden;
cursor: grab;
touch-action: none;
overscroll-behavior: contain;
}
.shape-viewport:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.shape-viewport.is-dragging {
cursor: grabbing;
user-select: none;
}
.shape-pan-content {
position: absolute;
top: 0;
left: 0;
width: max-content;
transform-origin: 0 0;
}
.shape-diagram-interactive .shape-pan-content svg {
max-width: none;
margin: 0;
}
.shape-zoom-controls {
position: absolute;
top: 14px;
right: 14px;
display: flex;
gap: 4px;
}
.shape-zoom-controls button {
min-width: 28px;
padding: 2px 8px;
color: var(--text);
background: var(--panel);
border: 1px solid var(--chip-line);
border-radius: 5px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.shape-zoom-controls button:hover {
background: var(--hover);
}
.shape-by {
color: var(--muted);
font-size: 11px;
}
/* The Regenerate ask: a small button and where its answer goes. */
.shape-regenerate {
display: flex;
gap: 8px;
align-items: center;
margin-top: 14px;
padding-top: 10px;
border-top: 1px solid var(--line);
font-size: 12px;
}
.shape-regenerate-button {
padding: 4px 12px;
color: var(--text);
font: inherit;
font-size: 12px;
background: var(--chip-bg);
border: 1px solid var(--chip-line);
border-radius: 4px;
cursor: pointer;
}
.shape-regenerate-button:disabled {
cursor: progress;
opacity: 0.7;
}
.shape-regenerate-error {
color: var(--danger, #d9483b);
}
.shape-code section {
margin-bottom: 14px;
}
.shape-code h4 code {
font-size: 12px;
}