Something went wrong. Try again.
forked niri
Something went wrong. Try again.
CSS
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903:root { color-scheme: dark; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: #000; color: #ededed; --bg: #000; --panel: #050505; --panel-soft: #0b0b0b; --line: #262626; --line-soft: #171717; --ink: #ededed; --muted: #8a8a8a; --quiet: #5f5f5f; --agent: #d787ff; --you: #6bd7cf; --tool: #e5c07b; --context: #777; --green: #7ee787; --cyan: #79c0ff; --pink: #ff7eb6; --violet: #b18cff; --amber: #e5c07b; --danger-bg: #160609; --danger-ink: #ff8f9a;}
* { box-sizing: border-box;}
html,body,#root { height: 100%; min-height: 100vh; background: #000; overflow: hidden;}
body { margin: 0; overflow: hidden;}
button,input,textarea { font: inherit;}
button { cursor: pointer; border: 1px solid #303030; border-radius: 6px; background: #0c0c0c; color: var(--ink); padding: 7px 10px;}
button:hover:not(:disabled) { border-color: #555; background: #151515;}
button:disabled { cursor: default; opacity: 0.46;}
h1,h2,p { margin: 0;}
h1 { font-size: 18px; font-weight: 700; letter-spacing: 0;}
h2 { font-size: 15px; font-weight: 700; letter-spacing: 0;}
.place { position: fixed; inset: 0; height: auto; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) var(--notes-width, 286px); background: #000; color: var(--ink); overflow: hidden;}
.connections,.notes,.thread { min-width: 0; min-height: 0; background: #000;}
.connections { border-right: 1px solid var(--line); overflow: auto;}
.notes { border-left: 1px solid var(--line); position: relative;}
.notes-resizer { position: absolute; z-index: 2; top: 0; bottom: 0; left: -5px; width: 10px; cursor: col-resize; touch-action: none;}
.notes-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent;}
.notes-resizer:hover::after,.notes-resizer:focus-visible::after,.is-resizing-notes .notes-resizer::after { background: var(--cyan);}
body.is-resizing-notes { cursor: col-resize; user-select: none;}
.connections header,.thread-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line);}
.connections header { padding: 0 16px;}
.connect-form { display: grid; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line);}
input,textarea { width: 100%; border: 1px solid #303030; border-radius: 6px; background: #020202; color: var(--ink); padding: 9px 10px; outline: none;}
input::placeholder,textarea::placeholder { color: #666;}
input:focus,textarea:focus { border-color: #6f6f6f; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);}
textarea { line-height: 1.55;}
.agent-list { padding: 12px 0;}
.agent-list section + section { margin-top: 16px;}
.panel-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 7px; color: var(--quiet); font-size: 12px;}
.panel-line button { border: 0; background: transparent; color: #b36f6f; padding: 0;}
.agent-button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; border: 0; border-radius: 0; border-left: 2px solid transparent; background: transparent; color: var(--ink); padding: 10px 16px 10px 14px; text-align: left;}
.agent-button.is-current { border-left-color: var(--agent); background: #090909;}
.agent-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.agent-button small,.quiet,.thread-head p,dt,.compactions small { color: var(--muted);}
.discord-history { display: grid; gap: 12px;}
.discord-channels,.discord-messages { display: grid; gap: 7px;}
.discord-channel { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border: 0; border-left: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ink); padding: 5px 6px; text-align: left;}
.discord-channel.is-current { border-left-color: var(--cyan); background: #090909;}
.discord-channel span,.discord-channel small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.discord-channel small { color: var(--quiet);}
.discord-messages { max-height: 360px; overflow: auto; border-top: 1px solid var(--line-soft); padding-top: 8px;}
.discord-messages article { border-left: 1px solid #315252; padding-left: 8px;}
.discord-messages article > div { display: flex; justify-content: space-between; gap: 8px; color: var(--you); font-size: 11px;}
.discord-messages time { color: var(--quiet);}
.discord-messages p { margin-top: 3px; color: #c8d8d6; font-family: inherit; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;}
.quiet { padding: 8px 16px; font-size: 12px; line-height: 1.45;}
.thread { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden;}
.thread-head { grid-row: 1; padding: 0 28px;}
.thread-head > div:first-child { min-width: 0;}
.thread-head p { margin-top: 4px; font-size: 12px;}
.readout { display: flex; gap: 16px; color: var(--quiet); font-size: 12px; white-space: nowrap;}
.error-line { grid-row: 2; padding: 10px 28px; border-bottom: 1px solid #351014; background: var(--danger-bg); color: var(--danger-ink); font-size: 13px;}
.chat-pane { grid-row: 3; min-height: 0; overflow: hidden;}
.messages { height: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 28px 34px; scroll-padding-bottom: 26px;}
.empty { max-width: 780px; color: var(--muted); font-size: 14px; line-height: 1.65;}
.terminal-message { width: 100%; margin: 0 0 15px;}
.terminal-message + .terminal-message-note,.terminal-message + .terminal-message-context { margin-top: 20px;}
.terminal-row { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: start; gap: 0 0.75ch;}
.terminal-prefix { line-height: 1.58; font-weight: 700; white-space: nowrap;}
.terminal-prefix-agent { color: var(--agent);}
.terminal-prefix-user { color: var(--you);}
.terminal-prefix-tool { color: var(--tool);}
.terminal-prefix-context,.terminal-prefix-note,.terminal-prefix-thinking { color: var(--context); font-weight: 600;}
.terminal-prefix-error { color: var(--danger-ink);}
.terminal-body { min-width: 0; color: #ececec;}
.terminal-message-user .terminal-body { color: #e9fff9;}
.terminal-message-context .terminal-body,.terminal-message-note .terminal-body,.terminal-message-thinking .terminal-body { color: #8b8b8b;}
.terminal-time { padding-top: 3px; margin-left: 18px; color: #484848; font-size: 11px; line-height: 1.4; white-space: nowrap;}
.terminal-summary-text { display: inline; color: inherit; line-height: 1.58;}
.terminal-command { display: inline-flex; max-width: 100%; align-items: baseline; gap: 12px; border: 0; border-radius: 0; background: transparent; color: var(--tool); padding: 0; text-align: left; line-height: 1.58;}
.terminal-command:hover:not(:disabled) { background: transparent; color: #f0d28f;}
.terminal-command span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.terminal-command small { flex: 0 0 auto; color: #777; font-size: 12px; font-weight: 400;}
.terminal-inline-action { margin-left: 10px; border: 0; border-radius: 0; background: transparent; color: #7eb6d9; padding: 0; line-height: 1.58; text-decoration: underline; text-decoration-color: #335266; text-underline-offset: 3px;}
.terminal-inline-action:hover:not(:disabled) { background: transparent; color: #a7d8f2;}
.terminal-block { margin: 8px 0 0; border-left: 1px solid #526a6a; padding-left: 12px;}
.terminal-block-tool { border-left-color: #655b36;}
.terminal-block-thinking { border-left-color: #3d3d5c;}
.terminal-message-thinking .terminal-command { color: #6b6b8d;}
.terminal-message-thinking .terminal-command:hover:not(:disabled) { background: transparent; color: #8b8baa;}
.markdown-body { max-width: none; color: inherit; font-size: 14px; line-height: 1.58;}
.terminal-message-agent .markdown-body { color: #ededed;}
.terminal-message-user .markdown-body { color: #e9fff9;}
.markdown-body > :first-child { margin-top: 0;}
.markdown-body > :last-child { margin-bottom: 0;}
.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body blockquote,.markdown-body pre,.markdown-body table { margin: 0 0 12px;}
.markdown-body ul,.markdown-body ol { padding-left: 22px;}
.markdown-body li + li { margin-top: 4px;}
.markdown-body a { color: #d7d7d7; text-decoration-color: #777; text-underline-offset: 3px;}
.markdown-body code:not(pre code) { border: 1px solid #2b2b2b; border-radius: 4px; background: #111; color: #f0f0f0; padding: 1px 5px; font: inherit; font-size: 0.94em;}
.markdown-body pre,.code-block { width: 100%; max-height: 520px; overflow: auto; border: 0; border-left: 1px solid #526a6a; border-radius: 0; background: #111; padding: 10px 12px; color: #ededed; font: inherit; font-size: 13px; line-height: 1.58;}
.code-block { margin: 0; white-space: pre;}
.markdown-body pre { margin-top: 6px;}
.terminal-block .code-block { border-left: 0; background: #0d0d0d;}
.markdown-body pre code,.code-block code { background: transparent; border: 0; padding: 0; color: inherit; font: inherit;}
.markdown-body blockquote { border-left: 1px solid #454545; color: #aaa; padding-left: 12px;}
.markdown-body table { width: 100%; border-collapse: collapse; font-size: 13px;}
.markdown-body th,.markdown-body td { border: 1px solid #252525; padding: 7px 9px;}
.markdown-body th { background: #0d0d0d;}
.hljs-keyword,.hljs-selector-tag,.hljs-subst { color: var(--pink);}
.hljs-string,.hljs-title,.hljs-section,.hljs-name,.hljs-attribute { color: var(--green);}
.hljs-number,.hljs-literal,.hljs-symbol,.hljs-bullet { color: var(--violet);}
.hljs-built_in,.hljs-type,.hljs-class .hljs-title,.hljs-variable,.hljs-template-variable { color: var(--cyan);}
.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta { color: #777;}
.hljs-addition { color: var(--green);}
.hljs-params,.hljs-attr { color: var(--amber);}
.composer { grid-row: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 28px 18px; border-top: 1px solid var(--line); background: #000;}
.composer input { height: 40px; background: #020202;}
.composer button { align-self: stretch; min-width: 88px; height: 40px; background: #ededed; border-color: #ededed; color: #000; font-weight: 700;}
.notes { padding: 0 16px 22px; overflow: auto;}
.notes section { padding: 20px 0; border-bottom: 1px solid var(--line);}
.notes h2 { margin-bottom: 13px; color: #dcdcdc;}
dl { margin: 0;}
dl div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 6px 0;}
dt { font-size: 12px;}
dd { margin: 0; color: #dedede;}
.compactions { display: grid; gap: 10px;}
.compactions article { border-top: 1px solid var(--line-soft); padding-top: 10px;}
.compactions button { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 3px 10px; border: 0; border-radius: 0; background: transparent; color: var(--ink); padding: 0; text-align: left;}
.compactions button:hover:not(:disabled) { background: transparent;}
.compactions strong,.compactions small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.compactions small { grid-column: 2;}
@media (max-width: 1120px) { .place { grid-template-columns: 230px minmax(0, 1fr); }
.notes { display: none; }
.notes-resizer { display: none; }}
@media (max-width: 760px) { body { overflow: auto; }
html, body, #root { height: auto; overflow: auto; }
.place { position: static; min-height: 100vh; height: auto; grid-template-columns: 1fr; overflow: visible; overflow-x: hidden; }
.connections { border-right: 0; border-bottom: 1px solid var(--line); }
.agent-list { max-height: 34vh; overflow: auto; }
.thread { min-height: 64vh; height: auto; overflow: visible; }
.connections header { min-height: 52px; padding: 0 14px; }
.connect-form { padding: 12px 14px; }
.thread-head, .composer { padding-left: 14px; padding-right: 14px; }
.messages { padding: 14px 14px 22px; }
.readout, .terminal-time { display: none; }
.terminal-row { grid-template-columns: max-content minmax(0, 1fr); }
.composer { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 10px; padding-bottom: 12px; }
.composer button { min-width: 70px; }}