:root {
color-scheme: dark;
--ink-0: #03070d;
--ink-1: #08111c;
--ink-2: #0e1729;
--ink-3: #182742;
--stage-surface: #0e1729;
--plate: rgba(22, 34, 56, 0.88);
--line: rgba(122, 160, 230, 0.14);
--line-strong: rgba(122, 160, 230, 0.25);
--text: #f6f2e8;
--text-soft: #b6c0d4;
--text-dim: #93a0b8;
--action: #6aaef2;
--action-strong: #4f8fe8;
--action-wash: rgba(106, 174, 242, 0.12);
--human: #f6c453;
--human-wash: rgba(246, 196, 83, 0.11);
--live: #4fd1c5;
--live-wash: rgba(79, 209, 197, 0.12);
--warning: #ff7a59;
--danger: #ff86b2;
--ok: #9bd66f;
--rail: 208px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
min-width: 280px;
height: 100%;
margin: 0;
overflow: hidden;
background: var(--ink-0);
color: var(--text);
-webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
color: inherit;
font: inherit;
}
button {
cursor: pointer;
}
button:disabled,
textarea:disabled {
cursor: not-allowed;
opacity: 0.45;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
outline: 2px solid var(--action);
outline-offset: 2px;
}
.shell {
--visual-viewport-height: 100dvh;
--visual-viewport-offset-top: 0px;
display: grid;
grid-template-columns: var(--rail) minmax(0, 1fr);
width: 100%;
height: var(--visual-viewport-height);
min-height: 0;
background: var(--ink-0);
}
.rail {
position: relative;
z-index: 20;
display: grid;
grid-template-rows: 48px auto auto minmax(120px, 1fr) minmax(0, 34%) auto;
gap: 7px;
min-width: 0;
min-height: 0;
overflow: hidden;
padding: 8px 8px 9px;
border-right: 1px solid var(--line);
background: #060c18;
}
.rail-brand,
.session-heading,
.header-actions,
.composer-bar,
.composer-actions,
.rail-footer,
.fact-chip,
.thread-title-row,
.attention-actions,
.dialog-actions {
display: flex;
align-items: center;
}
.rail-brand {
min-width: 0;
gap: 9px;
padding: 0 7px;
}
.brand-mark {
display: block;
flex: 0 0 30px;
width: 30px;
height: 30px;
border-radius: 8px;
}
.eyebrow {
margin: 0;
color: var(--text-dim);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.11em;
line-height: 1.3;
text-transform: uppercase;
}
.brand-name {
margin: 0;
font-size: 15px;
font-weight: 650;
letter-spacing: -0.01em;
}
.brand-context {
margin: 1px 0 0;
color: var(--text-dim);
font-size: 10px;
}
.primary-button,
.quiet-button,
.send-button,
.icon-button {
min-height: 32px;
border: 1px solid var(--line);
border-radius: 7px;
background: var(--ink-2);
color: var(--text-soft);
font-size: 12px;
font-weight: 650;
}
.primary-button,
.send-button {
border-color: rgba(106, 174, 242, 0.46);
background: var(--action);
color: var(--ink-0);
}
.primary-button:hover,
.send-button:hover {
background: var(--action-strong);
}
.quiet-button {
padding: 0 11px;
}
.quiet-button:hover,
.icon-button:hover {
border-color: var(--line-strong);
background: var(--ink-3);
color: var(--text);
}
.quiet-button.danger:hover {
border-color: rgba(255, 134, 178, 0.42);
color: var(--danger);
}
.icon-button {
display: inline-grid;
width: 34px;
min-width: 34px;
padding: 0;
place-items: center;
}
.new-thread {
display: flex;
width: 100%;
max-width: 100%;
min-width: 0;
align-items: center;
justify-content: center;
justify-content: flex-start;
min-height: 36px;
padding: 0 10px;
border-color: transparent;
background: var(--action-wash);
color: var(--text);
font-size: 12px;
}
.new-thread:hover {
border-color: transparent;
background: rgba(106, 174, 242, 0.18);
color: var(--text);
}
.search-field {
display: flex;
min-width: 0;
height: 30px;
align-items: center;
gap: 8px;
padding: 0 9px;
border: 1px solid transparent;
border-radius: 7px;
background: rgba(3, 7, 13, 0.42);
color: var(--text-dim);
}
.search-field:focus-within {
border-color: rgba(106, 174, 242, 0.46);
}
.search-field input {
width: 100%;
min-width: 0;
border: 0;
outline: 0;
background: transparent;
color: var(--text);
font-size: 12px;
}
.search-field input::placeholder,
textarea::placeholder {
color: var(--text-dim);
}
.thread-list {
min-height: 0;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-color: var(--ink-3) transparent;
}
.thread-row {
display: block;
width: 100%;
min-height: 48px;
margin: 1px 0;
padding: 7px 9px;
overflow: hidden;
border: 1px solid transparent;
border-radius: 7px;
background: transparent;
color: var(--text-soft);
text-align: left;
}
.thread-row:hover {
background: rgba(106, 174, 242, 0.07);
color: var(--text);
}
.thread-row[aria-current="true"] {
border-color: transparent;
background: var(--action-wash);
color: var(--text);
box-shadow: inset 2px 0 0 var(--action);
}
.thread-title-row {
min-width: 0;
justify-content: space-between;
gap: 8px;
}
.thread-title {
overflow: hidden;
font-size: 12px;
font-weight: 560;
text-overflow: ellipsis;
white-space: nowrap;
}
.thread-preview {
display: -webkit-box;
margin-top: 3px;
overflow: hidden;
color: var(--text-dim);
font-size: 10px;
line-height: 1.35;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.thread-meta {
margin-top: 4px;
overflow: hidden;
color: var(--text-dim);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.status-pip {
flex: 0 0 6px;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-dim);
}
.status-pip.running {
background: var(--live);
box-shadow: 0 0 0 3px var(--live-wash);
}
.status-pip.failed {
background: var(--danger);
}
.session-peek {
min-height: 0;
overflow-y: auto;
padding: 14px 16px;
border-bottom: 1px solid var(--line);
}
.session-peek[hidden] {
display: none;
}
.peek-entry {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: baseline;
padding: 6px 0;
border-top: 1px solid var(--line);
}
.peek-kind {
min-width: 72px;
color: var(--text-dim);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.peek-text {
flex: 1 1 240px;
min-width: 0;
margin: 0;
overflow-wrap: anywhere;
}
.peek-flag,
.peek-omitted {
color: var(--text-dim);
font-size: 10px;
}
@media (max-width: 480px) {
.session-peek {
padding: 10px 12px;
max-height: 45vh;
}
.peek-entry {
flex-direction: column;
gap: 2px;
}
.peek-text {
flex-basis: auto;
}
.saved-sessions {
max-height: 30%;
}
}
.saved-sessions {
min-height: 0;
max-height: 100%;
display: flex;
flex-direction: column;
padding-top: 9px;
border-top: 1px solid var(--line);
}
.saved-sessions[hidden] {
display: none;
}
.rail-section-title {
margin: 0 0 6px;
color: var(--text-dim);
font-size: 10px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.rail-footer {
min-width: 0;
align-items: flex-start;
gap: 8px;
padding: 8px 7px 0;
border-top: 1px solid var(--line);
color: var(--text-dim);
font-size: 10px;
}
.connection-dot {
flex: 0 0 7px;
width: 7px;
height: 7px;
margin-top: 3px;
border-radius: 50%;
background: var(--action);
}
.connection-copy {
display: grid;
min-width: 0;
gap: 2px;
}
.runtime-provenance {
overflow: hidden;
color: rgba(147, 160, 184, 0.72);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.connection-dot.ready {
background: var(--ok);
}
.connection-dot.error {
background: var(--danger);
}
.session {
display: grid;
grid-template-areas:
"header"
"status"
"transcript"
"attention"
"composer";
grid-template-rows: 58px auto minmax(0, 1fr) auto auto;
min-width: 0;
min-height: 0;
background: var(--stage-surface);
}
.session-header {
display: grid;
grid-area: header;
grid-template-columns: minmax(180px, 1fr) minmax(0, auto) auto;
align-items: center;
gap: 12px;
min-width: 0;
overflow: hidden;
padding: 0 18px;
border-bottom: 1px solid var(--line);
background: rgba(14, 23, 41, 0.94);
backdrop-filter: blur(10px);
}
.session-heading {
min-width: 0;
gap: 10px;
}
.title-stack {
min-width: 0;
}
.session-header h1 {
margin: 1px 0 0;
overflow: hidden;
font-size: 16px;
font-weight: 680;
letter-spacing: -0.015em;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-actions {
align-self: center;
gap: 4px;
}
.session-facts {
display: flex;
flex-wrap: nowrap;
grid-column: auto;
min-width: 0;
gap: 0;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
}
.session-facts::-webkit-scrollbar {
display: none;
}
.fact-chip {
flex: 0 0 auto;
min-height: 22px;
gap: 4px;
padding: 0 7px;
border: 0;
border-left: 1px solid var(--line);
border-radius: 0;
color: var(--text-dim);
font-size: 9px;
white-space: nowrap;
}
.fact-chip strong {
color: var(--text-soft);
font-weight: 650;
}
.rail-open,
.rail-close,
.rail-scrim {
display: none;
}
.status-banner {
grid-area: status;
margin: 12px auto 0;
width: min(724px, calc(100% - 32px));
padding: 9px 12px;
border: 1px solid rgba(255, 122, 89, 0.34);
border-radius: 7px;
background: rgba(48, 25, 21, 0.48);
color: var(--warning);
font-size: 11px;
line-height: 1.45;
}
.transcript {
grid-area: transcript;
min-height: 0;
padding: 28px max(18px, calc((100% - 724px) / 2)) 44px;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scroll-behavior: smooth;
scrollbar-color: var(--ink-3) transparent;
background: var(--stage-surface);
}
.empty-state {
display: grid;
min-height: 100%;
place-content: center;
justify-items: center;
padding: 28px;
color: var(--text-dim);
text-align: center;
}
.empty-state h2 {
margin: 14px 0 7px;
color: var(--text);
font-size: 19px;
letter-spacing: -0.02em;
}
.empty-state p {
max-width: 430px;
margin: 0;
font-size: 12px;
line-height: 1.6;
}
.empty-mark {
display: block;
width: 44px;
height: 44px;
border-radius: 12px;
opacity: 0.9;
}
.message,
.receipt,
.reasoning {
width: 100%;
margin: 0 0 20px;
}
.message-label,
.receipt-label {
margin-bottom: 6px;
color: var(--text-dim);
font-size: 11px;
font-weight: 500;
letter-spacing: 0;
}
.message-body {
max-width: 100%;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: var(--text);
font-size: 14px;
line-height: 1.68;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.message.user .message-body {
width: fit-content;
max-width: 82%;
margin-left: auto;
padding: 10px 14px;
border-radius: 17px 17px 5px 17px;
background: var(--plate);
font-size: 13px;
}
.message.user .message-label { display: none; }
.message.in-progress .message-body::after {
content: "";
display: inline-block;
width: 5px;
height: 12px;
margin-left: 4px;
background: var(--live);
vertical-align: -1px;
animation: cursor-pulse 1s steps(2, end) infinite;
}
@keyframes cursor-pulse {
50% { opacity: 0; }
}
.receipt {
display: flex;
width: fit-content;
max-width: 100%;
align-items: flex-start;
gap: 8px;
margin-top: -8px;
color: var(--text-dim);
}
.receipt-dot {
flex: 0 0 6px;
width: 6px;
height: 6px;
margin-top: 5px;
border-radius: 50%;
background: var(--live);
}
.receipt.failed .receipt-dot {
background: var(--danger);
}
.receipt-copy {
display: flex;
min-width: 0;
flex-direction: column;
gap: 1px;
}
.receipt-copy strong {
color: var(--text-soft);
font-size: 11px;
font-weight: 500;
line-height: 1.45;
}
.receipt-summary {
color: var(--text-dim);
font-size: 10.5px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.receipt details,
.reasoning details {
margin-top: 7px;
}
.receipt summary,
.reasoning summary {
color: var(--text-dim);
cursor: pointer;
font-size: 10px;
}
.receipt pre,
.reasoning pre {
max-height: 280px;
margin: 8px 0 0;
padding: 10px;
overflow: auto;
border-radius: 7px;
background: var(--ink-0);
color: var(--text-soft);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
line-height: 1.55;
white-space: pre-wrap;
}
.reasoning {
padding-left: 12px;
border-left: 1px solid var(--line);
}
.attention {
grid-area: attention;
width: min(724px, calc(100% - 32px));
max-height: 42vh;
margin: 0 auto 10px;
overflow-y: auto;
}
.attention-card {
margin-top: 8px;
padding: 13px;
border: 1px solid rgba(246, 196, 83, 0.34);
border-radius: 11px;
background: rgba(42, 34, 24, 0.56);
}
.attention-card h2 {
margin: 4px 0 5px;
font-size: 13px;
}
.attention-card p {
margin: 0;
color: var(--text-soft);
font-size: 11px;
line-height: 1.55;
}
.attention-actions {
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.remember-field,
.answer-option {
display: flex;
align-items: flex-start;
gap: 8px;
color: var(--text-soft);
font-size: 10px;
}
.question-fieldset {
margin: 12px 0 0;
padding: 10px;
border: 1px solid var(--line);
border-radius: 9px;
}
.question-fieldset legend {
padding: 0 5px;
color: var(--text);
font-size: 11px;
font-weight: 650;
}
.answer-option {
margin: 7px 0;
}
.answer-option small {
display: block;
margin-top: 2px;
color: var(--text-dim);
line-height: 1.4;
}
.other-answer,
.rename-dialog input {
width: 100%;
min-height: 36px;
margin-top: 7px;
padding: 0 10px;
border: 1px solid var(--line);
border-radius: 8px;
outline: 0;
background: var(--ink-0);
}
.composer-wrap {
grid-area: composer;
padding: 0 max(18px, calc((100% - 724px) / 2)) 16px;
background: linear-gradient(transparent, var(--stage-surface) 24%);
}
.composer {
overflow: hidden;
border: 1px solid var(--line);
border-radius: 14px;
background: var(--plate);
box-shadow: none;
}
.composer:focus-within {
border-color: rgba(106, 174, 242, 0.46);
}
.composer textarea {
display: block;
width: 100%;
min-height: 58px;
max-height: 180px;
padding: 14px 15px 7px;
resize: none;
overflow-y: auto;
border: 0;
outline: 0;
background: transparent;
color: var(--text);
font-size: 13px;
line-height: 1.5;
}
.composer-bar {
justify-content: space-between;
gap: 12px;
padding: 5px 7px 7px 14px;
}
.composer-hint {
color: var(--text-dim);
font-size: 9px;
}
.composer-actions {
gap: 7px;
}
.send-button {
min-width: 68px;
padding: 0 13px;
}
.rename-dialog {
width: min(420px, calc(100% - 28px));
padding: 0;
border: 1px solid var(--line-strong);
border-radius: 14px;
background: var(--ink-2);
color: var(--text);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.rename-dialog::backdrop {
background: rgba(3, 7, 13, 0.74);
}
.rename-dialog form {
padding: 20px;
}
.rename-dialog h2 {
margin: 5px 0 15px;
font-size: 17px;
}
.dialog-actions {
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
.dialog-actions .primary-button {
padding: 0 13px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
[hidden] {
display: none !important;
}
noscript {
position: fixed;
inset: 0;
z-index: 100;
display: grid;
place-items: center;
padding: 24px;
background: var(--ink-0);
color: var(--text);
}
@media (max-width: 800px) {
.shell {
grid-template-columns: minmax(0, 1fr);
}
.rail {
position: fixed;
top: var(--visual-viewport-offset-top);
bottom: auto;
left: 0;
width: min(84vw, 292px);
height: var(--visual-viewport-height);
transform: translateX(-102%);
box-shadow: 24px 0 70px rgba(0, 0, 0, 0.45);
transition: transform 160ms ease-out;
}
.rail-open,
.rail-close {
display: inline-grid;
}
.rail-close {
margin-left: auto;
}
.rail-scrim {
position: fixed;
top: var(--visual-viewport-offset-top);
right: 0;
bottom: auto;
left: 0;
z-index: 15;
display: block;
visibility: hidden;
width: 100%;
height: var(--visual-viewport-height);
padding: 0;
border: 0;
opacity: 0;
background: rgba(3, 7, 13, 0.64);
transition: opacity 160ms ease-out, visibility 160ms step-end;
}
.rail-visible .rail {
transform: translateX(0);
}
.rail-visible .rail-scrim {
visibility: visible;
opacity: 1;
transition: opacity 160ms ease-out;
}
.session-header {
padding: 0 12px;
}
.session-header h1 {
font-size: 14px;
}
.header-actions {
gap: 4px;
}
.header-actions .quiet-button {
padding: 0 8px;
}
.transcript {
padding-top: 20px;
padding-bottom: 34px;
}
.composer-wrap {
padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.message.user .message-body {
margin-left: 20px;
}
}
@media (max-width: 430px) {
.session {
grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
.session-header {
grid-template-columns: minmax(0, 1fr) auto;
gap: 6px;
min-height: 82px;
padding-top: 6px;
padding-bottom: 5px;
}
.header-actions {
position: static;
}
.header-actions .quiet-button {
min-width: 0;
min-height: 28px;
padding: 0 7px;
font-size: 10px;
}
.session-heading {
padding-right: 0;
}
.session-facts {
display: flex;
grid-column: 1 / -1;
flex-wrap: nowrap;
overflow-x: auto;
padding-top: 2px;
scrollbar-width: none;
}
.session-facts .fact-chip[data-fact="workspace"],
.session-facts .fact-chip[data-fact="branch"] {
display: none;
}
.session-facts .fact-chip:first-child:not([data-fact="workspace"]):not([data-fact="branch"]),
.session-facts .fact-chip[data-fact="model"] {
border-left: 0;
}
.composer-hint {
display: none;
}
.composer-bar {
justify-content: flex-end;
}
}
@media (pointer: coarse) {
.primary-button,
.quiet-button,
.send-button,
.icon-button,
.new-thread,
.thread-row,
.search-field,
.other-answer,
.rename-dialog input,
.answer-option,
.remember-field,
.receipt summary,
.reasoning summary {
min-height: 44px;
}
.answer-option,
.remember-field,
.receipt summary,
.reasoning summary {
display: flex;
align-items: center;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}