@font-face { font-family: 'chartr UI'; src: url('/assets/fonts/Geist-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'chartr UI'; src: url('/assets/fonts/Geist-Bold.ttf') format('truetype'); font-style: normal; font-weight: 600 700; font-display: swap; }

/* Native product tokens; independent of the Warp marketing palette.
   Native logical pixels, measured against the owner's 2× Retina captures. */
.native-demo {
  --demo-claude: #ca7c5e;
  --demo-traffic-red: #ec6765;
  --demo-traffic-yellow: #f2ca44;
  --demo-traffic-green: #65c466;
  position: relative; width: min(100%,904px); aspect-ratio: 904 / 677; margin-inline: 0; isolation: isolate;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  font: 400 12px/1.5 'chartr UI',sans-serif; letter-spacing: normal; color: var(--demo-text); text-align: left; -webkit-font-smoothing: auto;
}
/* Preserve the capture-backed fixed mascot and native traffic lights.
   Theme colors are sRGB values from Rust, defined in native-themes.css. */
@media (color-gamut: p3) {
  .native-demo {
    --demo-claude: color(display-p3 .792157 .486275 .368627);
    --demo-traffic-red: color(display-p3 .925490 .403922 .396078);
    --demo-traffic-yellow: color(display-p3 .949020 .792157 .266667);
    --demo-traffic-green: color(display-p3 .396078 .768627 .4);
  }
}
.native-demo * { box-sizing: border-box; }
.native-demo-screen { position: absolute; inset: 0; width: 904px; height: 677px; transform: scale(var(--demo-scale,1)); transform-origin: 0 0; }
.demo-window { position: relative; width: 904px; height: 677px; overflow: hidden; border-radius: 16px; background: var(--demo-bg); box-shadow: 0 2px 6px var(--line-soft), 0 8px 24px var(--line-soft); }
.demo-window::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--demo-window-border); border-radius: inherit; pointer-events: none; z-index: 5; }
.native-demo button { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: normal; border: 0; border-radius: 0; background: transparent; transition: none; }
.native-demo button:focus-visible { z-index: 2; outline: 1px solid var(--demo-focus); outline-offset: -2px; }
.native-demo svg { display: block; flex: none; pointer-events: none; }
.demo-icon { display: inline-flex; flex: 0 0 12px; width: 12px; height: 12px; align-items: center; justify-content: center; color: var(--demo-muted); }
.demo-icon svg { width: 100%; height: 100%; }
.demo-titlebar { height: 34px; display: flex; align-items: center; padding: 0 7px 0 78px; gap: 7px; }
.demo-traffic { position: absolute; top: 9px; left: 9px; display: flex; gap: 8px; }
.demo-traffic i { width: 14px; height: 14px; border-radius: 50%; background: var(--demo-traffic-red); }
.demo-traffic i:nth-child(2) { background: var(--demo-traffic-yellow); }
.demo-traffic i:nth-child(3) { background: var(--demo-traffic-green); }
.demo-brand { display: block; width: 52px; height: 15px; margin-top: -1px; }
.demo-brand > svg { width: 52px; height: 15px; }
.demo-project { display: none; align-items: center; gap: 5px; margin-left: 1px; font-weight: 500; }
.demo-project svg { width: 10px; height: 14px; fill: none; stroke: var(--demo-muted); stroke-width: 1; }
.demo-view-picker { display: flex; gap: 2px; padding: 2px; height: 21px; margin-left: auto; margin-top: -1px; border: 1px solid var(--demo-border-muted); border-radius: 5px; }
.demo-view-picker button { padding: 0 8px; border-radius: 4px; font-size: 10.5px; line-height: 15px; color: var(--demo-muted); }
.demo-view-picker button[aria-selected='true'] { background: var(--demo-pill); color: var(--demo-text); }
.demo-settings { width: 14px; height: 14px; margin-top: -1px; }
.demo-settings svg { width: 14px; height: 14px; }
.demo-body { display: flex; height: 643px; overflow: clip; }
.demo-sidebar { flex: 0 0 192.5px; min-width: 0; border-right: 1px solid var(--demo-border); }
.demo-sidebar-heading { display: flex; justify-content: space-between; align-items: center; height: 22px; padding: 0 12px 3px 7px; color: var(--demo-muted); font-size: 10px; }
.demo-sidebar-heading > .demo-icon { width: 14px; height: 14px; }
.demo-space-heading { display: flex; align-items: center; height: 28px; padding: 0 13px 0 9px; gap: 5px; font-weight: 500; }
.demo-space-heading > .demo-icon { flex-basis: 10px; width: 10px; }
.demo-space-tools { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.demo-space-child { display: flex; align-items: center; height: 28px; margin: 0 7px 0 13px; padding: 0 7px; gap: 6px; border-left: 1px solid var(--demo-border-muted); }
.demo-group-selected { display: flex; gap: 6px; align-items: center; height: 27px; margin: 0 5px 0; padding: 0 14px; border: 1px solid var(--demo-focus); border-radius: 3px; background: var(--demo-selected); font-weight: 500; }
.demo-session-tree { position: relative; display: flex; flex-direction: column; gap: 1px; margin: 0 5px 1px; }
.demo-session-tree::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--demo-border-muted); }
.native-demo .demo-session-row { justify-content: flex-start; width: 100%; height: 27px; gap: 6px; padding: 0 14px; border: 1px solid transparent; border-radius: 3px; font-weight: 500; }
.native-demo .demo-session-row:hover { background: var(--demo-session-hover); }
.native-demo .demo-session-row[aria-selected='true'] { border-color: var(--demo-focus); background: var(--demo-selected); }
.demo-session-content { display: flex; flex: 1; min-width: 0; height: 100%; }
.demo-single-terminal { flex: 1; min-width: 0; overflow: clip; border-top: 1px solid var(--demo-border); }
.demo-panes { display: grid; grid-template-columns: 348px minmax(0,1fr); flex: 1; min-width: 0; }
.demo-pane { min-width: 0; display: flex; flex-direction: column; overflow: clip; }
.demo-pane-left { border-right: 1px solid var(--demo-border); }
/* Continue the bottom rule through unused tab-bar space; the selected tab covers its segment. */
.demo-pane-header { display: flex; flex: 0 0 29px; height: 29px; border-top: 1px solid var(--demo-border); box-shadow: inset 0 -1px var(--demo-border); }
.demo-pane-header [role='tablist'] { display: flex; flex: 1; max-width: 400px; min-width: 0; }
.demo-pane-header button { background: var(--demo-tab-inactive); flex: 1; min-width: 0; height: 28px; justify-content: flex-start; gap: 4.5px; padding: 0 6px; border-right: 1px solid var(--demo-border); border-bottom: 1px solid var(--demo-border); font-weight: 500; }
.demo-pane-header button[aria-selected='true'] { background: var(--demo-tab-active); border-bottom-color: var(--demo-tab-active); }
.demo-pane-tools { display: flex; flex: 0 0 46px; height: 28px; align-items: center; justify-content: space-evenly; border-bottom: 1px solid var(--demo-border); }
.demo-pane-tools .demo-icon { width: 14px; height: 14px; }
.demo-pane-tools .demo-icon:first-child { color: var(--demo-text); }
.demo-pane-content { flex: 1; min-height: 0; position: relative; overflow: clip; }
.demo-outer-tabs { display: none; height: 32px; padding: 2px 3.5px; align-items: center; gap: 9.5px; }
.demo-outer-selected { width: 200px; height: 26px; padding: 0 5.25px; display: flex; align-items: center; gap: 3.5px; border: 1px solid var(--demo-focus); border-radius: 999px; background: var(--demo-pill); }
.demo-outer-tabs .demo-pane-tools { border: 0; flex-basis: 34px; justify-content: space-between; }
.demo-session-list { display: flex; gap: 3.5px; }
.native-demo .demo-session-tab { flex: 0 0 200px; width: 200px; height: 26px; padding: 0 5.25px; justify-content: flex-start; gap: 3.5px; border: 1px solid transparent; border-radius: 999px; color: var(--demo-muted); }
.native-demo .demo-session-tab:hover { border-color: var(--demo-border-muted); background: var(--demo-hover); }
.native-demo .demo-session-tab[aria-selected='true'] { border-color: var(--demo-focus); background: var(--demo-pill); color: var(--demo-text); }
/* Native outer-tab separators are hidden beside selected or hovered tabs. */
.demo-session-tab:last-child:not(:first-child)[aria-selected='false']:not(:hover)::after { content: ''; position: absolute; right: -2px; width: 1px; height: 12px; background: var(--demo-border-muted); }
/* Native macOS title bar: 34px with a -4px margin; outer strip: 32px.
   Preserve one divider at y=62px, owned by the pane headers. */
.native-demo[data-view='tabs'] .demo-titlebar { margin-bottom: -4px; }
.native-demo[data-view='tabs'] .demo-project, .native-demo[data-view='tabs'] .demo-outer-tabs { display: flex; }
.native-demo[data-view='tabs'] .demo-body { height: 615px; }
.native-demo[data-view='tabs'] .demo-panes { grid-template-columns: 442.5px minmax(0,1fr); }

.demo-terminal { height: 100%; position: relative; overflow: clip; font: 400 13px/17px 'IBM Plex Mono',monospace; font-variant-ligatures: none; color: var(--demo-terminal-text); background: var(--demo-terminal-bg); }
.demo-terminal strong { font-weight: 400; }
.demo-claude-welcome { display: flex; gap: 15.6px; align-items: center; padding: 24px 11.5px 0; }
.demo-claude-mascot { width: 66px; height: 42px; fill: var(--demo-claude); transform: translateY(4.5px); }
.demo-mascot-eyes { fill: #080808; }
.demo-claude-version { color: var(--demo-terminal-dim); white-space: nowrap; }
.demo-claude-version strong { color: var(--demo-terminal-text); }
.demo-claude-plan-narrow { display: none; }
.demo-claude[data-terminal-view='spaces'] .demo-claude-plan-narrow { display: block; }
.demo-claude[data-terminal-view='spaces'] .demo-claude-plan { display: none; }
.demo-claude[data-terminal-view='tabs'] .demo-claude-mascot, .demo-claude[data-terminal-view='chats'] .demo-claude-mascot { transform: translateY(-4px); }
.demo-claude[data-terminal-view='tabs'] .demo-claude-welcome { padding-left: 12.5px; }
.demo-claude-bottom { position: absolute; bottom: 14.5px; left: 7.8px; right: 7.8px; }
.demo-terminal-prompt { display: flex; align-items: center; height: 34px; gap: 7.8px; border-top: 1px solid var(--demo-terminal-muted); border-bottom: 1px solid var(--demo-terminal-muted); }
.demo-terminal-prompt > span:first-child { font-weight: 500; }
.demo-cursor { display: inline-block; width: 7.8px; height: 17px; flex: none; vertical-align: text-bottom; background: var(--demo-blue); }
.demo-terminal-mode { padding-left: 15.6px; margin-top: 25px; height: 17px; white-space: nowrap; color: var(--demo-terminal-dim); }
.native-demo .demo-claude-standalone .demo-claude-plan { display: inline; }
.native-demo .demo-claude-standalone .demo-claude-plan-narrow { display: none; }
.native-demo .demo-claude-standalone .demo-claude-mascot { transform: translateY(-4px); }
.demo-cursor-hollow { background: transparent; box-shadow: inset 0 0 0 1px var(--demo-blue); }
.demo-auto-mode { color: var(--demo-orange); }
.demo-claude-note { margin: 24px 7.8px 0; padding-left: 15.6px; border-left: 2px solid var(--demo-terminal-muted); color: var(--demo-terminal-dim); white-space: nowrap; }
.demo-claude-effort { position: absolute; right: 15.6px; top: -25.5px; color: var(--demo-terminal-dim); }
.demo-zsh { padding: 8px 7.8px; white-space: nowrap; }
.demo-term-muted, .demo-codex-placeholder { color: var(--demo-terminal-muted); }
.demo-term-cyan { color: var(--demo-cyan); }
.demo-term-purple { color: var(--demo-purple); }
.demo-term-green { color: var(--demo-green); }
.demo-term-orange { color: var(--demo-orange); }
.demo-codex { padding: 17px 7.8px 0; }
.demo-codex-box { margin: 0 0 25.5px; padding: 7px 11px 8px; border: 1px solid var(--demo-terminal-muted); border-radius: 4px; white-space: nowrap; overflow: hidden; }
.demo-codex-properties { margin-top: 17px; }
.demo-codex-properties > div { display: flex; gap: 7.8px; }
.demo-codex-properties > div > span:first-child { flex: 0 0 12ch; }
.demo-codex-directory { overflow: hidden; text-overflow: ellipsis; }
.demo-codex[data-terminal-view='spaces'] .demo-model-more { display: none; }
.demo-codex-properties .demo-term-cyan { overflow: hidden; text-overflow: ellipsis; }
.demo-codex-model { white-space: nowrap; }
.demo-codex-tip { margin: 0 7.8px 25.5px; overflow-wrap: anywhere; }
.demo-codex-warning { display: flex; color: var(--demo-yellow); overflow-wrap: anywhere; }
.demo-codex-warning > span { flex: 0 0 15.6px; }
.demo-codex-warning > div { min-width: 0; }
.demo-codex-usage { margin-top: 17px; }
.demo-codex-bottom { position: absolute; left: 7.8px; right: 7.8px; bottom: 67px; }
.demo-codex-prompt { white-space: nowrap; }
.demo-cursor-letter { background: var(--demo-blue); color: var(--demo-bg); }
.demo-codex-status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 17px; padding-left: 15.6px; color: var(--demo-yellow); }

/* The native WebKit plugin falls back to system-ui: GPUI's privately registered
   Geist faces aren't installed as system fonts available to that webview. */
.demo-wayfinder { position: relative; height: 100%; font: 400 12px/1.5 system-ui,sans-serif; background: var(--demo-bg); -webkit-font-smoothing: antialiased; }
.demo-map { position: relative; height: 298.5px; overflow: clip; }
.demo-map-art { position: absolute; inset: 0; }
.demo-map-art > svg { width: 100%; height: 100%; }
.demo-map-label { position: absolute; white-space: nowrap; transform: translateX(-50%); color: var(--demo-muted); font: 400 10.5px/14px system-ui,sans-serif; text-shadow: 0 0 2px var(--demo-surface); pointer-events: none; }
.demo-map-label.is-selected { color: var(--demo-text); }
.demo-map-toolbar { display: flex; position: absolute; top: 7px; left: 10.5px; right: 10.5px; height: 28px; align-items: center; gap: 7px; white-space: nowrap; }
.demo-map-back { display: flex; align-items: center; gap: 7px; flex: none; height: 24px; padding: 0 7px; border: 1px solid var(--demo-border); border-radius: 5.25px; background: var(--demo-bg); }
.demo-map-title { min-width: 0; padding: 3px 7px; border-radius: 5.25px; background: var(--demo-bg); overflow: hidden; text-overflow: ellipsis; }
.demo-map-fit { position: absolute; bottom: 10.5px; left: 10.5px; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--demo-border); border-radius: 5px; background: var(--demo-bg); }
.demo-map-fit .demo-icon { width: 14px; height: 14px; color: var(--demo-text); }
.demo-ticket { position: absolute; inset: 298.5px 0 0; border-top: 1px solid var(--demo-border); background: var(--demo-bg); }
.demo-ticket-header { padding: 7px 10.5px; border-bottom: 1px solid var(--demo-border); }
.demo-ticket-identity { display: grid; grid-template-columns: 19px minmax(0,1fr) 19px; gap: 7px; align-items: center; height: 22px; }
.demo-ticket-number { display: grid; place-items: center; height: 19px; border: 1px solid var(--demo-border); background: var(--demo-control); border-radius: 5.25px; color: var(--demo-muted); font: 400 10px/1 'IBM Plex Mono',monospace; }
.demo-ticket-identity > .demo-icon { justify-self: end; width: 14px; height: 14px; }
.demo-ticket-metadata { display: flex; align-items: center; gap: 7px; margin-top: 7px; height: 22px; color: var(--demo-muted); }
.demo-ticket-badge { display: inline-flex; align-items: center; gap: 3.5px; height: 19px; border: 1px solid var(--demo-border); border-radius: 5.25px; background: var(--demo-control); padding: 0 7px; font-size: 10px; color: var(--demo-success); }
.demo-ticket-badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.demo-ticket-open { display: flex; align-items: center; gap: 10.5px; margin-left: auto; }
.demo-ticket-reading { position: absolute; inset: 65.5px 0 0; padding: 10.5px; overflow: clip; }
.demo-prose { font: 400 12px/1.5 system-ui,sans-serif; overflow-wrap: anywhere; }
.native-demo .demo-prose h3 { font: 600 12px/1.5 system-ui,sans-serif; margin: 14px 0 7px; }
.native-demo .demo-prose > h3:first-child { margin-top: 0; }
.demo-prose p { margin: 7px 0; }
.demo-prose ul { padding-left: 17.5px; margin: 7px 0; }
.demo-prose li { margin: 3.5px 0; }
.demo-prose li::marker { color: var(--demo-muted); }
.demo-prose strong { font-weight: 600; }
.demo-prose code { font: 400 12px/1.5 'IBM Plex Mono',monospace; background: var(--demo-control); padding: 0 3.5px; border-radius: 3.5px; }
.demo-scrollbar { position: absolute; top: 3px; right: 3px; width: 10px; height: 34px; border-radius: 6px; background: var(--demo-scrollbar); }
.native-demo[data-view='tabs'] .demo-map { height: 270.5px; }
.native-demo[data-view='tabs'] .demo-ticket { top: 270.5px; }
.demo-inbox-filter { height: 27px; display: flex; margin: 0 5px 7px; padding: 2px; gap: 2px; border: 1px solid var(--demo-border-muted); border-radius: 5px; color: var(--demo-muted); }
.demo-inbox-filter span { display: flex; justify-content: center; align-items: center; flex: 1; }
.demo-inbox-filter .is-selected { background: var(--demo-pill); border-radius: 4px; color: var(--demo-text); }
.demo-chats .demo-sidebar-heading { height: 25.5px; padding-bottom: 0; }
.demo-chat-row { height: 27px; display: flex; align-items: center; gap: 6px; padding: 0 7px; margin: 0 5px 1px; border: 1px solid transparent; border-radius: 3px; white-space: nowrap; }
.demo-chat-row.is-selected { border-color: var(--demo-focus); background: var(--demo-selected); }
.demo-chat-row time { margin-left: auto; color: var(--demo-muted); font-size: 10px; }
.demo-chat-terminal { min-width: 0; flex: 1; border-top: 1px solid var(--demo-border); }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Persistent Workspace renderer. Motion values come from the native mode
   controller; the separate, inert pane story retains its existing layout. */
.native-demo[data-workspace-demo] {
  --demo-sidebar-width: 192.5px; --demo-sidebar-offset: 0px;
  --demo-spaces-offset: 0px; --demo-chats-offset: 224.5px;
  --demo-tab-top: 34px; --demo-tab-height: 0px; --demo-tab-offset: -32px;
  --demo-tab-opacity: 0; --demo-tabs-reveal: 0; --demo-body-top: 34px;
  --demo-left-width: 348px; --demo-map-height: 298.5px; --demo-divider-opacity: 1;
}
.native-demo[data-workspace-demo] [hidden] { display: none !important; }
.native-demo[data-workspace-demo] [inert] { pointer-events: none; }
.native-demo[data-workspace-demo] .demo-titlebar { position: absolute; inset: 0 0 auto; z-index: 3; margin-bottom: 0; isolation: isolate; }
.native-demo[data-workspace-demo][data-geometry-motion='true'] .demo-titlebar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--demo-bg), transparent); pointer-events: none; }
.native-demo[data-workspace-demo] .demo-project { display: flex; opacity: var(--demo-tabs-reveal,0); }
.native-demo[data-workspace-demo] .demo-view-picker { position: relative; overflow: clip; }
.demo-view-pill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 4px; background: var(--demo-pill); pointer-events: none; }
.native-demo[data-workspace-demo] .demo-view-picker button[aria-selected='true'] { background: transparent; }
.demo-tab-slot { position: absolute; left: 0; right: 0; top: var(--demo-tab-top,34px); height: var(--demo-tab-height,0px); z-index: 2; }
.native-demo[data-workspace-demo] .demo-outer-tabs { display: flex; position: absolute; inset: 0 0 auto; transform: translateY(var(--demo-tab-offset,-32px)); opacity: var(--demo-tab-opacity,0); }
.native-demo[data-workspace-demo] .demo-body { position: absolute; inset: var(--demo-body-top,34px) 0 0; height: auto; }
.demo-sidebar-slot { position: relative; flex: 0 0 var(--demo-sidebar-width,192.5px); height: 100%; overflow: clip; }
.demo-sidebar-slot::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--demo-border); opacity: var(--demo-divider-opacity,1); pointer-events: none; }
.demo-sidebar-pages { position: absolute; inset: 0 auto 0 0; width: 192.5px; overflow: clip; transform: translateX(var(--demo-sidebar-offset,0px)); }
.native-demo[data-workspace-demo] .demo-sidebar { position: absolute; inset: 0 auto 0 0; width: 192.5px; padding-right: 1px; border-right: 0; }
.demo-spaces { transform: translateX(var(--demo-spaces-offset,0px)); }
.demo-chats { transform: translateX(var(--demo-chats-offset,224.5px)); }
.native-demo[data-workspace-demo] .demo-panes { grid-template-columns: var(--demo-left-width,348px) minmax(0,1fr); }
.demo-item { width: 100%; height: 100%; overflow: clip; }
.native-demo[data-workspace-demo] .demo-single-terminal { position: relative; }
.native-demo[data-workspace-demo] .demo-map { height: var(--demo-map-height,298.5px); }
.native-demo[data-workspace-demo] .demo-ticket { top: var(--demo-map-height,298.5px); }
.native-demo[data-workspace-demo][data-view='chats'] .demo-panes { grid-template-columns: minmax(0,1fr); border-top: 1px solid var(--demo-border); }
.native-demo[data-workspace-demo][data-view='chats'] .demo-pane-left { border-right: 0; }
