/* Presentation adapted from QikDeck's Desktop shell, composer, and QikVoice. */
.plan-ready-popup { position: fixed; z-index: 50; overflow: auto; overscroll-behavior: contain; padding: 12px; display: grid; gap: 8px; border: 1px solid #66532b; border-radius: 9px; background: #252525; box-shadow: 0 16px 46px #0007; }
.plan-ready-popup header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plan-ready-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #999da6; }
.plan-ready-popup h3 { font-size: 13px; margin: 2px 0; }
.plan-ready-close { color: #999da6; font-size: 18px; width: 26px; height: 26px; }
.plan-choice { display: grid; gap: 3px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 7px; background: #343434; }
.plan-choice small { font-size: 10px; opacity: .8; }
.plan-choice.primary, .plan-alternative-row button { background: var(--gold); color: #18130a; }
.plan-choice.primary:hover, .plan-alternative-row button:hover { color: #000 !important; background: #ffc33a; }
.plan-ready-popup label { display: block; margin: 4px 0 7px; color: #999da6; font-size: 11px; }
.plan-alternative-row { display: flex; gap: 7px; }
.plan-alternative-row input { min-width: 0; flex: 1; padding: 10px; background: #343434; border: 1px solid transparent; border-radius: 6px; font-size: 11px; }
.plan-alternative-row button { padding: 8px 12px; border-radius: 6px; }
.plan-options { display: block; border: 1px solid #62502c; border-radius: 6px; color: var(--gold); padding: 6px 9px; margin-top: 10px; }
.plan-acknowledgment { border-left: 2px solid #725c28; padding-left: 9px; }
.planning-controls { display: flex; gap: 8px; margin: 0 0 6px; }
.planning-controls button { border: 1px solid #454545; border-radius: 8px; padding: 5px 9px; font-size: 11px; color: #b1b3ba; }
.plan-chip[aria-pressed="true"], .blueprint-trigger[aria-expanded="true"] { color: var(--gold); border-color: #80621f; background: #3a301b; }
.plan-ready { border: 1px solid #3a3a3a; border-radius: 9px; padding: 12px; background: #191919; }
.plan-ready strong { color: var(--gold); }
.plan-ready ol { padding-left: 18px; line-height: 1.7; }
.plan-ready > span { font-size: 10px; color: var(--muted); }
.blueprint-popup { position: fixed; width: min(360px, calc(100vw - 16px)); z-index: 50; overflow: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid #393939; border-radius: 14px; background: #242424; box-shadow: 0 16px 50px #0009; }
.blueprint-top { display: flex; align-items: center; justify-content: space-between; }
.blueprint-top h3 { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; color: #a9aab0; margin: 0; }
.blueprint-top button { width: 28px; height: 28px; font-size: 20px; }
.blueprint-popup p { color: #969aa4; font-size: 11px; line-height: 1.45; margin: 4px 0 14px; }
.blueprint-popup h4 { margin: 12px 0 5px; font-size: 11px; font-weight: 650; }
.blueprint-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.blueprint-row select { min-width: 0; width: 100%; background: #343434; border: 1px solid #3b3b3b; border-radius: 7px; padding: 9px 6px; font-size: 12px; }
.blueprint-check { display: flex; align-items: center; gap: 6px; margin-top: 15px; font-size: 12px; }
.blueprint-check input { accent-color: #eeb12a; }
.blueprint-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.blueprint-actions button { padding: 6px 12px; border: 1px solid #444; border-radius: 999px; }
.blueprint-actions .blueprint-primary { color: var(--gold); background: #39301c; border-color: #776020; }
.planning-slash { position: absolute; bottom: calc(100% + 10px); left: 0; right: 0; padding: 10px; background: #242424; border: 1px solid #383838; border-radius: 16px; z-index: 6; box-shadow: 0 8px 24px #0005; }
.planning-slash > div { color: #969aa4; text-transform: uppercase; letter-spacing: .8px; font-size: 10px; padding: 4px 6px; }
.planning-slash button { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 9px; border-radius: 8px; gap: 3px; }
.planning-slash button:hover, .planning-slash button:focus-visible { background: #333; }
.planning-slash strong { color: var(--gold); font-size: 12px; }
.planning-slash span { color: #969aa4; padding-left: 21px; font-size: 11px; }
:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 12px; color: #d8d9df; background: #101010; --gold: #f2ab1f; --muted: #90939b; --line: #303030; --mono: "SF Mono", Consolas, "Liberation Mono", monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
button:disabled { cursor: default; opacity: .45; }
button:hover:not(:disabled) { color: #fff; }
button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { display: block; width: 15px; height: 15px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.demo-app { height: 100%; display: grid; grid-template-rows: 36px minmax(0, 1fr) 36px; overflow: hidden; }
.window-titlebar { display: flex; align-items: center; border-bottom: 1px solid #282828; background: #0e0e0e; position: relative; z-index: 5; }
.window-brand { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; font-weight: 650; color: #ececec; }
.window-brand img { object-fit: contain; }
.window-drag-space { flex: 1; }
.icon-button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #979ba3; flex: none; }
.icon-button:hover { background: #303030; }
.window-controls { display: flex; color: #858992; align-self: stretch; align-items: center; }
.window-controls span { display: grid; place-items: center; width: 34px; font-size: 15px; }
.desktop-shell { --rail-track: 184px; --right-panel-width: 380px; min-height: 0; display: grid; grid-template-columns: var(--rail-track) minmax(var(--workbench-min, 0px), 1fr) minmax(0px, var(--right-panel-track, 0px)); position: relative; }
.desktop-rail { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; margin: 8px 0 8px 6px; padding: 12px 8px; border: 1px solid #2d2d2d; border-radius: 14px; background: #18181b; }
.rail-view { display: flex; align-items: center; gap: 8px; padding: 3px 4px 16px; font-weight: 600; white-space: nowrap; }
.rail-view svg { color: var(--gold); width: 14px; height: 14px; }
.rail-heading { padding: 7px 5px 10px; color: #727884; font: 9px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
#workspaces { overflow: auto; min-height: 0; scrollbar-width: thin; }
.workspace-group { margin-bottom: 16px; }
.workspace-button { display: flex; align-items: center; width: 100%; gap: 6px; padding: 9px 8px; border: 1px solid transparent; border-radius: 7px; text-align: left; color: #e0e1e5; font-weight: 600; }
.workspace-button:hover { background: #202020; }
.workspace-button[aria-current="true"] { background: #252525; border-color: #3a3a3a; }
.workspace-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-initials { display: none; }
.workspace-count { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #393939; color: #cfb974; font: 10px var(--mono); flex: none; }
.workspace-chevron { color: #868b93; }
.workspace-panes { margin: 4px 0 0 12px; display: grid; gap: 2px; }
.rail-pane { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 5px; width: 100%; text-align: left; color: #aab0bb; font-size: 11px; }
.rail-pane span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-pane svg { width: 13px; height: 13px; }
.rail-pane[aria-current="true"] { color: var(--gold); background: #252525; }
.rail-pane:hover { background: #242424; }
.rail-spacer { flex: 1; }
.rail-note, .rail-action { display: flex; align-items: center; gap: 8px; padding: 9px 6px; text-align: left; white-space: nowrap; }
.rail-note { color: #73767e; font-size: 10px; }
.rail-action { border-radius: 6px; }
.rail-action:hover { background: #272727; }
.desktop-workbench { min-width: 0; min-height: 0; display: flex; flex-direction: column; container: workbench / inline-size; }
.pane-grid { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 8px; }
.pane-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.pane-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.pane-grid[data-count="3"], .pane-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.pane-grid[data-mode="focus"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.empty-workspace { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.empty-workspace p { margin: 0; }
.empty-workspace button { padding: 10px 14px; border: 1px solid #484135; border-radius: 9px; background: #212121; color: #d6bc7e; }
.pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #2e2e2e; border-radius: 10px; background: #101010; overflow: hidden; }
.pane.selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px #f2ab1f55; }
.pane-head { display: flex; align-items: center; gap: 5px; min-height: 39px; padding: 4px 6px 4px 10px; background: #222; border-bottom: 1px solid #303030; flex: none; }
.pane-heading { flex: 1; min-width: 0; text-align: left; padding: 0; }
.pane-name { display: block; font-weight: 650; font-size: 12px; color: #e1e3e8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-path { display: block; font-size: 9px; line-height: 1.35; color: #858994; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-head .icon-button { width: 22px; height: 24px; }
.pane-head .icon-button svg { width: 13px; height: 13px; }
.close-pane:hover { color: #ffaaa3; background: #392626; }
.branch { display: inline-flex; gap: 4px; align-items: center; border: 1px solid #414141; border-radius: 20px; padding: 2px 5px; color: #b9b9bd; font: 8px var(--mono); }
.branch svg { width: 10px; height: 10px; }
.pane-connection { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 5px; border: 1px solid #404040; border-radius: 999px; color: #aab2bd; font-size: 9px; line-height: 1.3; white-space: nowrap; }
.pane-connection-dot { width: 5px; height: 5px; border-radius: 50%; background: #3fb950; }
.timeline { flex: 1; min-height: 0; padding: 13px 12px 18px; overflow: auto; scrollbar-width: thin; scrollbar-color: #383838 transparent; font-size: 11px; line-height: 1.55; }
.message { margin: 0 0 11px; overflow-wrap: anywhere; white-space: pre-wrap; }
.message.user { background: #202020; border: 1px solid #2a2a2a; border-radius: 9px; padding: 8px 10px; color: #e0e1e5; }
.message.assistant { color: #bfc1c9; }
.tool { margin: 5px 0; color: #9298a2; font-size: 10px; }
.tool summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: center; padding: 4px 0; }
.tool summary::-webkit-details-marker { display: none; }
.tool summary::after { content: "›"; margin-left: auto; color: #6d727a; }
.tool[open] summary::after { transform: rotate(90deg); }
.tool svg { width: 12px; height: 12px; color: #b6bbc5; }
.tool pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #191919; padding: 8px; border: 1px solid #2d2d2d; border-radius: 6px; font: 9px/1.6 var(--mono); margin: 3px 0 9px; color: #b1b6c1; }
.activity { display: flex; gap: 7px; align-items: center; color: #a9adb6; font-size: 10px; margin: 8px 0; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: breathe 1.4s ease-in-out infinite; flex: none; }
.change-card { margin: 10px 0 7px; border: 1px solid #363636; border-radius: 8px; overflow: hidden; background: #191919; }
.change-heading { display: flex; align-items: center; gap: 8px; padding: 9px; border-bottom: 1px solid #2b2b2b; }
.change-icon { background: #282828; border-radius: 5px; padding: 5px; }
.change-label { flex: 1; min-width: 0; font-size: 10px; line-height: 1.5; }
.change-label strong { display: block; color: #d2d5df; font-weight: 550; }
.change-stats { color: #8d939e; font-size: 9px; }
.added { color: #6ccb8b; }
.removed { color: #ec796f; }
.review-button { border-radius: 5px; background: #2c2c2c; color: #d4d7de; padding: 5px 7px; font-size: 10px; }
.review-button:hover { background: #373737; }
.changed-file { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; font-size: 9px; }
.changed-file > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.changed-file > span:last-child { flex: none; }
.turn-end { color: #747b87; font-size: 9px; margin-top: 12px; }
.composer { position: relative; margin: 12px 9px 9px; padding: 10px 9px 6px; border-radius: 23px; border: 1px solid #2b2b2b; background: #212121; flex: none; }
.context-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #795f22; border-radius: 20px; background: #493b1d; color: #e5b32b; font: 8px/1.4 var(--mono); padding: 1px 8px; }
.composer-input-row { display: flex; gap: 5px; align-items: center; }
.composer textarea { display: block; flex: 1; width: 100%; min-width: 0; height: 31px; min-height: 31px; max-height: 76px; padding: 6px 0 3px; resize: none; border: 0; background: transparent; outline-offset: 0; font-size: 11px; line-height: 1.4; scrollbar-width: thin; }
.composer textarea::placeholder { color: #999da6; }
.composer textarea:focus, .composer select:focus { outline: none; box-shadow: none; }
.composer:has(:focus-visible) { border-color: #484135; }
.send-button { display: grid; place-items: center; background: #624c1e; color: #e9b83c; border-radius: 50%; width: 26px; height: 26px; flex: none; }
.send-button:hover { background: #846222; }
.send-button svg { width: 15px; height: 15px; }
.composer-tools { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.composer-tools .icon-button { width: 21px; height: 21px; }
.search-toggle[aria-pressed="true"] { border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); }
.permission { display: flex; align-items: center; min-width: 0; gap: 3px; color: #9599a3; font-size: 8px; }
.permission svg { width: 11px; height: 11px; }
.permission select { width: 86px; }
.composer select { border: 0; outline-offset: 0; background: #212121; color: #aeb2bb; font-size: 9px; cursor: pointer; min-width: 0; padding: 3px 0; text-overflow: ellipsis; }
.model-select { margin-left: auto; max-width: 105px; width: 43%; }
.attachment { display: inline-flex; margin: 0 0 3px; background: #31302a; color: #cab779; border-radius: 4px; padding: 3px 5px; font-size: 9px; }
.welcome { display: grid; place-items: center; height: 100%; color: #9199a6; }
.welcome span { border: 1px solid #252525; border-radius: 24px; padding: 7px 12px; }
.terminal-content { flex: 1; min-height: 0; padding: 11px 9px; overflow: auto; scrollbar-width: thin; font: 10px/1.7 var(--mono); color: #bbc4d2; }
.terminal-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-line.success { color: #9bce77; }
.terminal-line.muted { color: #79818d; }
.terminal-line.command { color: #e0e2e6; margin-top: 5px; }
.terminal-prompt { color: #a3d65c; }
.terminal-path { color: #6aace3; }
.terminal-form { display: flex; align-items: start; gap: 5px; margin-top: 6px; }
.terminal-form label { flex: none; white-space: nowrap; color: #a3d65c; }
.terminal-input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 0; font: inherit; line-height: inherit; color: #e1c566; caret-color: var(--gold); outline-offset: 0; }
.terminal-help { font: 9px var(--mono); color: #747c88; padding: 9px; border-top: 1px solid #202020; margin-top: auto; }
.pane-tabs { display: flex; gap: 4px; padding: 7px 8px 0; overflow-x: auto; scrollbar-width: thin; flex: none; }
.pane-tab { border: 1px solid #333; border-radius: 7px 7px 0 0; padding: 7px 10px; font-size: 11px; white-space: nowrap; background: #181818; }
.pane-tab[aria-current="true"] { box-shadow: inset 0 -2px var(--gold); color: #f1d293; background: #242424; }
[data-mode="focus"] .timeline { padding: 22px clamp(16px, 5vw, 60px); font-size: 13px; }
[data-mode="focus"] .tool, [data-mode="focus"] .activity { font-size: 12px; }
[data-mode="focus"] .change-label { font-size: 12px; }
[data-mode="focus"] .changed-file { font-size: 11px; padding: 10px; }
[data-mode="focus"] .composer { width: calc(100% - 32px); max-width: 760px; align-self: center; margin: 12px 16px 16px; padding: 13px 12px 8px; }
[data-mode="focus"] .composer textarea { height: 44px; font-size: 13px; }
[data-mode="focus"] .model-select { max-width: 160px; font-size: 11px; }
[data-mode="focus"] .terminal-content { font-size: 12px; padding: 18px; }
.demo-footer { display: flex; gap: 14px; align-items: center; padding: 0 12px; color: #858b96; background: #151515; border-top: 1px solid #292929; font-size: 10px; }
.demo-label { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.ready-dot { display: inline-block; width: 5px; height: 5px; background: #a89460; border-radius: 50%; flex: none; }
.demo-hint { color: #717782; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playback-controls { display: flex; gap: 12px; margin-left: auto; white-space: nowrap; }
.playback-controls button { padding: 5px 0; font-size: 10px; }
.voice-toggle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin: 0 8px; }
.voice-toggle:hover { background: #26231b; }
.voice-orb { display: block; position: relative; width: 23px; height: 23px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 32% 23%, #ffedb4 0%, var(--gold) 24%, #714b17 62%, #211405 100%); box-shadow: inset -2px -3px 5px #160d06aa, inset 1px 1px 3px #fff3cb80, 0 0 7px #f2ab1f25; }
.voice-orb > span { position: absolute; inset: -25%; background: conic-gradient(from 40deg, transparent, #fff0b855, #ca851800, #fff0b899, transparent 75%); border-radius: 42% 58% 63% 37%; }
.voice-panel { position: absolute; z-index: 20; top: 46px; right: 12px; width: min(292px, calc(100% - 24px)); max-height: calc(100% - 96px); overflow: auto; padding: 16px; border-radius: 16px; border: 1px solid #655027; background: #191919; color: #e9e9e9; box-shadow: 0 12px 35px #0008; }
.voice-panel-heading { display: flex; justify-content: space-between; font-size: 12px; }
.voice-elapsed { color: #c6aa73; font-variant-numeric: tabular-nums; }
.voice-stage { display: flex; justify-content: center; padding: 24px 0 19px; }
.voice-stage .voice-orb { width: 66px; height: 66px; box-shadow: inset -5px -7px 16px #160d06aa, inset 2px 2px 7px #fff3cb80, 0 0 24px #f2ab1f33; }
[data-voice-phase="recording"] .voice-orb > span { animation: voice-flow 3.4s linear infinite; }
[data-voice-phase="transcribing"] .voice-orb > span { animation: voice-flow 1.5s linear infinite; }
[data-voice-phase="transcribing"] .voice-orb { filter: saturate(.55); }
.voice-status { font-size: 13px; line-height: 1.5; }
.voice-target, .voice-microphone { font-size: 11px; color: #aaa; margin-top: 6px; overflow-wrap: anywhere; }
.voice-actions { display: flex; gap: 8px; margin-top: 14px; }
.voice-actions button { padding: 7px 10px; border: 1px solid #414141; border-radius: 7px; color: #dedede; font-size: 12px; }
#voice-stop { border-color: #927128; color: var(--gold); }
dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100% - 40px); padding: 0; background: #181818; color: #d5d8df; border: 1px solid #494337; border-radius: 12px; box-shadow: 0 24px 100px #0009; }
dialog::backdrop { background: #0009; }
.diff-dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #333; position: sticky; top: 0; background: #202020; }
.diff-dialog-heading h2 { font-size: 13px; margin: 4px 0 0; }
.diff-dialog-actions { display: flex; align-items: center; gap: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1px; font: 9px var(--mono); color: #b39b64; }
.diff-file { margin: 16px; border: 1px solid #303030; border-radius: 7px; overflow: hidden; }
.diff-file h3 { margin: 0; padding: 10px; background: #222; font: 11px var(--mono); overflow-wrap: anywhere; }
.diff-code { margin: 0; padding: 8px 0; font: 11px/1.8 var(--mono); overflow-x: auto; }
.diff-line { display: block; padding: 0 12px; min-width: max-content; }
.diff-line.added { background: #203323; }
.diff-line.removed { background: #382324; }
.no-script { position: absolute; inset: 50% 10% auto; background: #222; padding: 20px; text-align: center; }
.desktop-shell.collapsed { --rail-track: 52px; }
.collapsed .desktop-rail { padding: 12px 3px; }
.collapsed .rail-view { justify-content: center; padding: 4px 0 15px; }
.collapsed .rail-view span, .collapsed .rail-heading, .collapsed .workspace-name, .collapsed .workspace-chevron, .collapsed .workspace-count, .collapsed .workspace-panes, .collapsed .rail-note, .collapsed .rail-action span { display: none; }
.collapsed .workspace-button { padding: 9px 0; justify-content: center; }
.collapsed .workspace-initials { display: inline; font: 11px var(--mono); }
.collapsed .rail-action { justify-content: center; }
.compact-open { display: none; }
@keyframes voice-flow { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .35; } }
.paused *, .offscreen * { animation-play-state: paused !important; }
@media (max-width: 1040px) and (min-width: 701px) {
  .desktop-shell { --rail-track: 158px; }
  .pane-grid:is([data-count="5"], [data-count="6"]):not([data-mode="focus"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .rail-view { font-size: 10px; }
  .workspace-button { font-size: 11px; }
  .composer { margin-top: 9px; }
  .permission { display: none; }
}
@media (max-width: 700px) {
  .window-controls { display: none; }
  .demo-footer { padding: 0 8px; font-size: 9px; gap: 6px; }
  .demo-hint { display: none; }
  .desktop-shell { --rail-track: 52px; }
  .desktop-shell:not(.collapsed) .desktop-rail { position: absolute; top: 0; bottom: 0; left: 0; width: 192px; z-index: 10; box-shadow: 8px 0 24px #0009; }
  .desktop-workbench { grid-column: 2; }
  .pane-grid { padding: 6px; gap: 6px; }
  .pane-grid:is([data-count="5"], [data-count="6"]):not([data-mode="focus"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .pane-grid[data-count="2"]:not([data-mode="focus"]) { grid-template-rows: minmax(0, 1fr); }
  .pane-grid:not([data-mode="focus"]) .pane-head { padding: 6px; min-height: 35px; }
  .pane-grid:not([data-mode="focus"]) .pane-name { font-size: 10px; }
  .pane-grid:not([data-mode="focus"]) .pane-path { font-size: 8px; }
  .pane-grid:not([data-mode="focus"]) .branch, .pane-grid:not([data-mode="focus"]) .reset-pane { display: none; }
  .pane-grid:not([data-mode="focus"]) .timeline { font-size: 9px; padding: 8px 6px; overflow: hidden; pointer-events: none; }
  .pane-grid:not([data-mode="focus"]) .message.user { padding: 6px; }
  .pane-grid:not([data-mode="focus"]) .tool { font-size: 8px; }
  .pane-grid:not([data-mode="focus"]) .composer, .pane-grid:not([data-mode="focus"]) .terminal-form, .pane-grid:not([data-mode="focus"]) .terminal-help { display: none; }
  .pane-grid:not([data-mode="focus"]) .terminal-content { font-size: 8px; padding: 8px 6px; overflow: hidden; }
  .pane-grid:not([data-mode="focus"]) .compact-open { display: block; flex: none; padding: 7px; border-top: 1px solid #303030; color: #bc9e58; background: #191919; font-size: 9px; }
  .pane-grid:not([data-mode="focus"]) .change-heading { padding: 5px; gap: 4px; }
  .pane-grid:not([data-mode="focus"]) .change-icon, .pane-grid:not([data-mode="focus"]) .change-stats, .pane-grid:not([data-mode="focus"]) .changed-file, .pane-grid:not([data-mode="focus"]) .open-panel-button { display: none; }
  .pane-grid:not([data-mode="focus"]) .change-label, .pane-grid:not([data-mode="focus"]) .review-button { font-size: 8px; }
  [data-mode="focus"] .timeline { font-size: 12px; padding: 12px; }
  [data-mode="focus"] .composer { width: calc(100% - 14px); margin: 12px 7px; padding: 12px 8px 7px; }
  [data-mode="focus"] .composer textarea { font-size: 16px; height: 44px; }
  [data-mode="focus"] .permission { display: none; }
  [data-mode="focus"] .terminal-content { font-size: 10px; padding: 10px; }
  .terminal-input { font-size: 16px; }
}
/* With the side panel docked the panes narrow: five or six stack two across, as in the app. */
@container workbench (max-width: 640px) {
  .pane-grid:is([data-count="5"], [data-count="6"]):not([data-mode="focus"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .permission { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
