Something went wrong. Try again.
A mental bridge between a hacker and their LLM(s) of choice.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435: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);}