:root { --board-bg: #1e1f26; --card-bg: #2a2c37; --card-border: #4a4d5e; --card-text: #e8e8ec; --card-preview: #9a9cab; --card-selected: #7aa2f7; --card-missing-text: #6b6e7d; --connection-line: #6b6e7d; --connection-selected: #7aa2f7; --pin-mark: #f6b26b; --hint-text: #6f6f75; --panel-bg: #23242c; --panel-bg-translucent: rgba(35, 36, 44, 0.75); --panel-border: #3a3c48; --panel-text: #e8e8ec; --panel-muted: #9a9ca6; --error-bg: #4a2530; --error-text: #f2c9d1; --danger: #c0392b; --danger-hover: #a93226; --author-human: #7aa2f7; --author-agent: #f6b26b; --md-heading: #7aa2f7; --md-heading-2: #f6b26b; --md-link: #7dcfff; --md-code-bg: #2d2f3b; --md-code-text: #9ece6a; --md-quote-border: #4a4d5e; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: var(--board-bg); font-family: system-ui, sans-serif; } #app { width: 100%; height: 100%; } .app { position: relative; display: flex; flex-direction: row; width: 100%; height: 100%; color: var(--panel-text); } .welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; text-align: center; } .board { position: relative; flex: 1; min-width: 0; } svg { display: block; width: 100%; height: 100%; user-select: none; touch-action: none; } .board-hint { pointer-events: none; fill: var(--hint-text); } .toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 0.75em; } .folder-name { color: var(--panel-muted); font-size: 0.9em; } .folder-pane { position: absolute; top: 0; left: 0; bottom: 0; width: 240px; z-index: 5; display: flex; flex-direction: column; overflow-y: auto; background: var(--panel-bg-translucent); backdrop-filter: blur(6px); border-right: 1px solid var(--panel-border); } .folder-pane.busy { opacity: 0.6; } .folder-pane-header { display: flex; align-items: center; gap: 0.5em; padding: 0.5em 0.75em; border-bottom: 1px solid var(--panel-border); } .folder-pane-header .folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .folder-list { display: flex; flex-direction: column; padding: 0.25em 0; } .folder-row { width: 100%; text-align: left; background: transparent; border: none; color: var(--panel-text); padding: 0.4em 0.75em; cursor: pointer; } .folder-row:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); } .folder-row.folder-up { color: var(--panel-muted); } .folder-loading { color: var(--panel-muted); padding: 0.4em 0.75em; } .toasts { position: absolute; z-index: 20; bottom: 12px; left: 12px; display: flex; flex-direction: column; gap: 0.5em; } .toast { background: var(--error-bg); color: var(--error-text); padding: 0.5em 0.75em; border-radius: 6px; cursor: pointer; } .app.resizing { cursor: col-resize; user-select: none; } .panel-resizer { position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 10; background: transparent; touch-action: none; } .panel-resizer:hover, .app.resizing .panel-resizer { background: linear-gradient(to right, transparent 2px, var(--card-selected) 2px, var(--card-selected) 4px, transparent 4px); } .side-panel { position: relative; max-width: calc(100% - 240px); width: 420px; flex: none; background: var(--panel-bg); border-left: 1px solid var(--panel-border); display: flex; flex-direction: column; } .editor-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5em 0.75em; border-bottom: 1px solid var(--panel-border); } .editor-path { color: var(--panel-muted); font-size: 0.85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .editor-missing { padding: 0.75em; color: var(--panel-muted); } .editor-loading { padding: 0.75em; color: var(--panel-muted); } .markdown { flex: 1; min-height: 0; overflow-y: auto; padding: 0.75em; line-height: 1.5; overflow-wrap: anywhere; } .markdown h1, .markdown h2 { color: var(--md-heading); } .markdown h3, .markdown h4, .markdown h5, .markdown h6 { color: var(--md-heading-2); } .markdown a { color: var(--md-link); text-decoration: underline; } .markdown code, .markdown pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--md-code-bg); color: var(--md-code-text); } .markdown code { padding: 0.1em 0.3em; border-radius: 3px; } .markdown pre { padding: 0.5em 0.75em; border-radius: 4px; overflow-x: auto; } .markdown pre code { padding: 0; background: none; } .markdown blockquote { margin: 0.5em 0; padding-left: 0.75em; border-left: 3px solid var(--md-quote-border); color: var(--panel-muted); } .markdown table { border-collapse: collapse; } .markdown th, .markdown td { border: 1px solid var(--panel-border); padding: 0.25em 0.5em; } .md-fields { display: grid; grid-template-columns: max-content 1fr; gap: 0.15em 0.75em; margin: 0 0 0.75em; padding-bottom: 0.5em; border-bottom: 1px solid var(--panel-border); color: var(--panel-muted); font-size: 0.8em; } .md-fields dt { font-weight: bold; } .md-fields dd { margin: 0; } .md-task.done { color: var(--author-human); } .md-image { color: var(--panel-muted); } .viewer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; } .code-view { flex: 1; min-height: 0; margin: 0; padding: 0.75em; overflow: auto; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--md-code-bg); color: var(--md-code-text); } .card-kind { font-style: italic; fill: var(--card-preview); } .truncated-note { padding: 0.25em 0.75em; color: var(--panel-muted); font-size: 0.8em; } .connection-label { fill: var(--panel-muted); font-size: 0.85em; paint-order: stroke; stroke: var(--panel-bg); stroke-width: 4px; } .author-human { fill: var(--author-human); color: var(--author-human); } .author-agent { fill: var(--author-agent); color: var(--author-agent); } .connection-field { display: flex; flex-direction: column; gap: 0.25em; padding: 0.5em 0.75em; color: var(--panel-muted); font-size: 0.85em; } .connection-field input, .connection-field textarea { background: transparent; color: var(--panel-text); border: 1px solid var(--panel-border); border-radius: 4px; font: inherit; padding: 0.4em 0.5em; } #connection-note-human { min-height: 8em; resize: vertical; } .connection-note-agent { padding: 0.5em 0.75em; color: var(--panel-text); border-top: 1px solid var(--panel-border); } .connection-note-agent p { margin: 0.25em 0 0; white-space: pre-wrap; } .connection-delete { display: block; width: calc(100% - 1.5em); margin: auto 0.75em 0.75em; padding: 0.75em 1em; font-size: 1em; font-weight: 600; color: #fff; background: var(--danger); border: none; border-radius: 6px; cursor: pointer; } .connection-delete:hover { background: var(--danger-hover); } .connection-delete:focus-visible { outline: 2px solid var(--error-text); }