@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/jetbrains-mono.woff2') format('woff2');
font-weight: 100 800;
font-display: swap;
}
:root {
color-scheme: dark;
--ground: #08090d;
--surface: #101319;
--surface-raised: #171b23;
--border: #262b35;
--border-strong: #3b424e;
--text: #e6ebe0;
--dim: #9aa39a;
--user: #5dd9ff;
--agent: #e2b34d;
--thinking: #9aa39a;
--running: #e2b34d;
--done: #91df62;
--failed: #ff786f;
--plan: #d985ff;
--plan-proposal: #e9b3ff;
--system: #9aa39a;
--accent: #b9ff5a;
--focus: var(--user);
--radius: 4px;
--radius-large: 6px;
--touch: 44px;
--keyboard-inset: 0px;
font-family:
'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono',
monospace;
font-size: 16px;
line-height: 1.5;
background: var(--ground);
color: var(--text);
}
* {
min-width: 0;
}
body {
margin: 0 auto;
max-width: 760px;
padding: calc(8px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
overflow-x: hidden;
}
header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
}
h1 {
font-size: 34px;
letter-spacing: 0.08em;
margin: 18px 0 4px;
color: var(--accent);
}
h2 {
font-size: 18px;
margin: 0 0 10px;
}
h3 {
font-size: 16px;
margin: 0 0 8px;
}
.dim {
color: var(--dim);
}
.hidden {
display: none !important;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-large);
margin: 12px 0;
padding: 14px;
}
.row {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}
.scroll-x {
overflow-x: auto;
overscroll-behavior-x: contain;
max-width: 100%;
}
button,
input,
select,
textarea {
font: inherit;
font-size: 16px;
color: inherit;
background: var(--surface-raised);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
padding: 10px 12px;
min-height: var(--touch);
}
button {
background: var(--accent);
color: #10140b;
font-weight: 700;
min-width: var(--touch);
cursor: pointer;
}
button:disabled {
opacity: 0.45;
cursor: default;
}
.danger {
background: var(--failed);
color: #200b09;
}
.secondary {
background: var(--surface-raised);
color: var(--text);
}
:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 2px;
}
.pill {
font-size: 13px;
border: 1px solid var(--border-strong);
border-radius: 99px;
padding: 2px 10px;
color: var(--dim);
}
.pill.alert {
border-color: var(--failed);
color: var(--failed);
}
.session p {
margin: 6px 0;
}
.preview {
white-space: pre-wrap;
overflow-wrap: anywhere;
border-left: 2px solid var(--border-strong);
padding-left: 10px;
color: var(--dim);
}
.entry {
--role: var(--system);
border-left: 2px solid var(--role);
padding: 4px 0 4px 12px;
margin: 14px 0;
}
.entry.user {
--role: var(--user);
}
.entry.agent {
--role: var(--agent);
}
.entry.thought {
--role: var(--thinking);
color: var(--dim);
font-style: italic;
}
.entry.tool {
--role: var(--running);
}
.entry.plan {
--role: var(--plan);
}
.entry.plan-proposal {
--role: var(--plan-proposal);
}
.entry.system {
--role: var(--system);
color: var(--dim);
}
.entry > strong {
display: flex;
gap: 8px;
align-items: baseline;
margin-bottom: 6px;
color: var(--role);
}
.entry-glyph {
flex: 0 0 1.2em;
text-align: center;
}
.entry-body {
overflow-wrap: anywhere;
}
.entry-body > pre,
pre.entry-body {
font: inherit;
white-space: pre-wrap;
overflow-wrap: anywhere;
margin: 0;
}
.entry-body h1,
.entry-body h2,
.entry-body h3,
.entry-body h4,
.entry-body h5,
.entry-body h6 {
font-size: 1em;
margin: 12px 0 6px;
color: var(--text);
}
.entry-body p {
margin: 8px 0;
white-space: pre-wrap;
}
.entry-body ul,
.entry-body ol {
margin: 8px 0;
padding-left: 1.6em;
}
.entry-body li {
margin: 3px 0;
}
.entry-body blockquote {
margin: 8px 0;
padding-left: 10px;
border-left: 2px solid var(--border-strong);
color: var(--dim);
}
.entry-body hr {
border: 0;
border-top: 1px solid var(--border);
margin: 12px 0;
}
.entry-body code {
background: var(--surface-raised);
border-radius: var(--radius);
padding: 1px 5px;
}
.entry-body pre {
background: var(--surface-raised);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 10px;
margin: 8px 0;
overflow-x: auto;
overscroll-behavior-x: contain;
}
.entry-body pre code {
background: none;
padding: 0;
}
.entry-body table {
border-collapse: collapse;
font-size: 14px;
}
.entry-body th,
.entry-body td {
border: 1px solid var(--border);
padding: 4px 8px;
text-align: left;
}
.entry-body th {
background: var(--surface-raised);
}
.align-left {
text-align: left;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.entry-body a {
color: var(--user);
}
.diffstat {
list-style: none;
margin: 8px 0;
padding: 0;
}
.diffstat li {
display: flex;
gap: 8px;
align-items: baseline;
}
.diffstat-path {
overflow-wrap: anywhere;
}
.diffstat-added {
color: var(--done);
}
.diffstat-removed {
color: var(--failed);
}
.queue-item {
display: flex;
gap: 8px;
align-items: start;
justify-content: space-between;
border-top: 1px solid var(--border);
padding: 8px 0;
}
.queue-item span {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.elicitation {
border-color: var(--plan);
}
.elicitation-message {
font: inherit;
white-space: pre-wrap;
overflow-wrap: anywhere;
margin: 0 0 10px;
max-height: 30dvh;
overflow-y: auto;
overscroll-behavior: contain;
}
.turn-review {
border-color: var(--plan);
}
.turn-review-roles {
margin: 6px 0;
}
.turn-review-findings {
font: inherit;
white-space: pre-wrap;
overflow-wrap: anywhere;
margin: 0 0 10px;
max-height: 40dvh;
overflow-y: auto;
}
.elicitation-field {
display: flex;
flex-direction: column;
gap: 4px;
margin: 10px 0;
}
.elicitation-field select[multiple] {
min-height: 120px;
}
.elicitation-field input[type='checkbox'] {
align-self: start;
width: 24px;
height: 24px;
min-height: 24px;
}
#prompt-text {
display: block;
width: 100%;
box-sizing: border-box;
min-height: 76px;
max-height: 40vh;
overflow-y: auto;
overscroll-behavior: contain;
white-space: pre-wrap;
overflow-wrap: anywhere;
background: var(--surface-raised);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
padding: 10px;
}
#prompt-text:empty::before {
content: attr(data-placeholder);
color: var(--dim);
pointer-events: none;
}
#attachments {
margin-top: 8px;
}
.attachment {
display: flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border-strong);
border-radius: var(--radius);
padding: 6px 8px;
}
.attachment img {
width: 44px;
height: 44px;
object-fit: cover;
border-radius: var(--radius);
}
.attachment button {
padding: 2px 10px;
min-height: var(--touch);
}
#conversation-feed {
min-height: 30vh;
}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
pre.code-block,
pre.entry-text,
pre.command-line {
font: inherit;
background: var(--surface-raised);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 10px;
margin: 8px 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
overflow-x: auto;
overscroll-behavior-x: contain;
}
pre.code-block[data-lang]::before {
content: attr(data-lang);
display: block;
font-size: 12px;
color: var(--dim);
margin-bottom: 6px;
}
details.block-fold {
border: 1px solid var(--border);
border-radius: var(--radius);
margin: 8px 0;
background: var(--surface);
}
details.block-fold > summary {
cursor: pointer;
padding: 10px 12px;
min-height: var(--touch);
display: flex;
align-items: center;
color: var(--dim);
}
details.block-fold > summary::-webkit-details-marker {
display: none;
}
details.block-fold > summary::before {
content: '\25b8';
margin-right: 8px;
transition: transform 120ms ease;
}
details.block-fold[open] > summary::before {
transform: rotate(90deg);
}
details.block-fold > pre {
margin: 0 10px 10px;
}
.tok-cmt {
color: var(--dim);
font-style: italic;
}
.tok-str {
color: var(--done);
}
.tok-kw {
color: var(--plan);
}
.tok-mac {
color: var(--plan-proposal);
}
.tok-type {
color: var(--user);
}
.tok-fn {
color: var(--agent);
}
.tok-key {
color: var(--user);
}
.tok-num {
color: var(--agent);
}
.tok-add {
color: var(--done);
}
.tok-del {
color: var(--failed);
}
.cmd-prompt {
color: var(--dim);
}
.cmd-program {
color: var(--accent);
}
.cmd-subcommand {
color: var(--user);
}
.cmd-flag {
color: var(--agent);
}
.cmd-path {
color: var(--done);
}
.cmd-string {
color: var(--done);
}
.cmd-env {
color: var(--plan);
}
.cmd-op {
color: var(--dim);
}
@media (prefers-reduced-motion: reduce) {
details.block-fold > summary::before {
transition: none;
}
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
#shell-header {
position: relative;
display: flex;
align-items: center;
gap: 8px;
}
#shell-title {
flex: 1;
font-size: 22px;
letter-spacing: 0.08em;
margin: 12px 0;
color: var(--accent);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.icon-button {
background: var(--surface-raised);
color: var(--text);
font-weight: 400;
padding: 0;
width: var(--touch);
height: var(--touch);
flex: 0 0 var(--touch);
}
.menu {
position: absolute;
top: 100%;
right: 0;
z-index: 10;
display: flex;
flex-direction: column;
gap: 4px;
padding: 6px;
background: var(--surface-raised);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
min-width: 180px;
}
.menu button {
background: none;
color: var(--text);
font-weight: 400;
text-align: left;
border: 1px solid transparent;
}
.tabstrip {
display: flex;
gap: 6px;
padding: 4px 0 10px;
border-bottom: 1px solid var(--border);
}
.tab {
background: none;
color: var(--dim);
font-weight: 400;
border: 1px solid var(--border);
white-space: nowrap;
}
.tab[aria-current='page'] {
color: var(--text);
border-color: var(--focus);
}
.page:focus {
outline: none;
}
.page-actions {
margin: 12px 0;
}
.project-heading {
display: flex;
gap: 6px;
align-items: baseline;
font-size: 14px;
margin: 16px 0 4px;
color: var(--dim);
text-transform: uppercase;
letter-spacing: 0.06em;
}
.session-status {
display: flex;
gap: 6px;
flex-wrap: wrap;
align-items: center;
}
.state-glyph {
margin-right: 4px;
}
.pill.state-live {
color: var(--done);
border-color: var(--done);
}
.pill.state-starting,
.pill.state-stopping {
color: var(--running);
border-color: var(--running);
}
.pill.state-failed {
color: var(--failed);
border-color: var(--failed);
}
.session-operation {
color: var(--running);
}
.field {
display: flex;
flex-direction: column;
gap: 4px;
margin: 12px 0;
}
.field > span {
color: var(--dim);
font-size: 14px;
}
.review,
.readings {
display: grid;
grid-template-columns: minmax(0, auto) minmax(0, 1fr);
gap: 6px 14px;
margin: 8px 0;
}
.review dt,
.readings dt {
color: var(--dim);
}
.review dd,
.readings dd {
margin: 0;
overflow-wrap: anywhere;
}
.field-inline {
display: flex;
gap: 10px;
align-items: center;
margin: 12px 0;
min-height: var(--touch);
}
.field-inline input[type='checkbox'] {
width: 24px;
height: 24px;
min-height: 24px;
}
#new-progress {
margin: 0 0 8px;
}
.reading-low {
color: var(--failed);
border-color: var(--failed);
}
.reading-mid {
color: var(--running);
border-color: var(--running);
}
.reading-high {
color: var(--done);
border-color: var(--done);
}
.quota-window {
margin: 12px 0;
}
.quota-label {
display: flex;
justify-content: space-between;
gap: 12px;
}
.meter {
height: 6px;
margin: 6px 0;
background: var(--surface-raised);
border: 1px solid var(--border);
border-radius: 99px;
overflow: hidden;
}
.meter-fill {
height: 100%;
width: var(--fill, 0%);
background: currentColor;
}
article > h3 {
display: flex;
gap: 8px;
align-items: baseline;
justify-content: space-between;
}
.conversation {
display: flex;
flex-direction: column;
height: calc(100dvh - var(--keyboard-inset) - 90px);
min-height: 320px;
}
.conversation-header {
display: flex;
gap: 8px;
align-items: center;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
}
.conversation-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.conversation-scroll {
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
padding-right: 2px;
}
.jump-to-latest {
align-self: center;
margin: 6px 0;
}
#conversation-side {
margin: 8px 0;
}
#conversation-side > summary {
cursor: pointer;
min-height: var(--touch);
display: flex;
align-items: center;
color: var(--dim);
}
.composer {
position: relative;
padding-top: 8px;
border-top: 1px solid var(--border);
}
.entry-time {
margin-left: auto;
color: var(--dim);
font-size: 12px;
}
.entry.tone-user {
--role: var(--user);
}
.entry.tone-agent {
--role: var(--agent);
}
.entry.tone-thinking {
--role: var(--thinking);
color: var(--dim);
}
.entry.tone-running {
--role: var(--running);
}
.entry.tone-done {
--role: var(--done);
}
.entry.tone-failed {
--role: var(--failed);
}
.entry.tone-plan {
--role: var(--plan);
}
.entry.tone-plan-proposal {
--role: var(--plan-proposal);
}
.entry.tone-system {
--role: var(--system);
color: var(--dim);
}
.palette {
position: absolute;
bottom: 100%;
left: 0;
right: 0;
z-index: 5;
max-height: 40dvh;
overflow-y: auto;
overscroll-behavior: contain;
background: var(--surface-raised);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
}
.palette-row {
display: flex;
gap: 10px;
align-items: baseline;
width: 100%;
background: none;
color: var(--text);
font-weight: 400;
text-align: left;
border: 0;
border-bottom: 1px solid var(--border);
}
.palette-row[aria-selected='true'] {
background: var(--surface);
box-shadow: inset 2px 0 0 var(--focus);
}
.palette-name {
color: var(--accent);
white-space: nowrap;
}
.connection {
display: none;
margin: 0;
padding: 8px 12px;
background: var(--surface-raised);
border-bottom: 1px solid var(--running);
color: var(--running);
}
body[data-connection='offline'] .connection,
body[data-connection='reconnecting'] .connection {
display: block;
}
body[data-connection='reconnecting'] .connection::before {
content: 'Reconnecting…';
}
body[data-connection='reconnecting'] .connection {
font-size: 0;
}
body[data-connection='reconnecting'] .connection::before {
font-size: 16px;
}
@media (max-width: 430px) {
body {
padding-left: calc(10px + env(safe-area-inset-left));
padding-right: calc(10px + env(safe-area-inset-right));
}
.card {
padding: 10px;
}
#shell-title {
font-size: 18px;
}
.review,
.readings {
grid-template-columns: minmax(0, 1fr);
gap: 2px 0;
}
.review dt,
.readings dt {
margin-top: 6px;
}
}