/* Native window surfaces and geometry follow:
   internal/design/palette.go, internal/ui/sidebar.go, internal/ui/tabbar.go.
   The terminal transcript is illustrative, not a connected session. */
.native-viewport { overflow-x: auto; border-radius: 14px; box-shadow: var(--shadow-window); scrollbar-color: oklch(.55 .01 75) var(--surface-soft); scrollbar-width: thin; }
.native-viewport:focus-visible { outline-offset: 5px; }
.native-app {
  --n-shell: #2a2a2d;
  --n-content: #1e1e20;
  --n-text: #e1e1e2;
  --n-secondary: #b6b6b9;
  --n-tertiary: #a5a5ab;
  --n-border: #ffffff14;
  --n-inset: #ffffff0f;
  --n-selected: #ffffff1c;
  --n-green: #a8bca5;
  --n-yellow: #e3c984;
  --n-orange: #dfaa7d;
  --n-violet: #c2b0d4;
  --n-red: #d1a399;
  --n-focus: #a6bac8;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-width: 730px;
  height: 604px;
  padding: 6px 6px 6px 0;
  background: var(--n-shell);
  border-radius: 14px;
  color: var(--n-text);
  font: 11px/1.45 var(--font);
  text-align: start;
}
.native-app[data-theme="light"] {
  --n-shell: #ececef;
  --n-content: #ffffff;
  --n-text: #252525;
  --n-secondary: #56565b;
  --n-tertiary: #65656b;
  --n-border: #00000014;
  --n-inset: #0000000a;
  --n-selected: #00000014;
  --n-green: #486354;
  --n-yellow: #795923;
  --n-orange: #87522c;
  --n-violet: #655570;
  --n-red: #825048;
  --n-focus: #476276;
}
.native-app :focus-visible { outline-color: var(--n-focus); outline-offset: -2px; }
.native-app button { color: inherit; }
.native-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-inline: 9px; }
.native-sidebar-top { min-height: 30px; display: flex; align-items: center; justify-content: space-between; padding-inline: 5px; flex-shrink: 0; }
.native-sidebar-top > .icon { width: 13px; height: 13px; color: var(--n-secondary); }
.native-lights { display: flex; align-items: center; gap: 5px; }
.native-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 1px #00000012; }
.native-lights i:nth-child(2) { background: #febc2e; }
.native-lights i:nth-child(3) { background: #28c840; }
.native-search { display: flex; align-items: center; gap: 5px; border: 1px solid var(--n-border); background: var(--n-inset); border-radius: 20px; min-height: 26px; padding-inline: 8px; margin: 3px 1px 6px; flex-shrink: 0; }
.native-search > .icon { width: 12px; height: 12px; color: var(--n-tertiary); }
.native-search > input { width: 100%; min-width: 0; background: none; border: none; color: var(--n-text); font: 10px var(--font); min-height: 24px; padding: 0; }
.native-search > input::placeholder { color: var(--n-tertiary); }
.native-search:focus-within { outline: 2px solid var(--n-focus); }
.native-search > input:focus-visible { outline: none; }
.native-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-inline: 6px; min-height: 25px; font-size: 10px; color: var(--n-secondary); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.native-section-heading > span:first-child > span { color: var(--n-tertiary); margin-inline-start: 4px; }
.native-section-heading > span:last-child:not(:first-child) { color: var(--n-tertiary); }
.native-spaces { display: grid; gap: 2px; align-content: start; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--n-border) transparent; }
.native-space { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; padding: 4px 7px; background: none; border: none; border-radius: 5px; text-align: start; }
.native-space strong { display: block; font-size: 11px; font-weight: 550; line-height: 1.3; }
.native-space small { display: block; color: var(--n-secondary); font-size: 9px; line-height: 1.4; }
.native-space[aria-pressed="true"] { background: var(--n-selected); }
.native-space-meta { display: flex; align-items: center; gap: 3px; color: var(--n-secondary); font-size: 8px; white-space: nowrap; }
.native-dot { display: inline-block; width: 4px; height: 4px; background: var(--n-green); border-radius: 50%; flex-shrink: 0; }
.native-dot.idle { background: none; border: 1px solid var(--n-secondary); width: 5px; height: 5px; }
.native-agents-heading { margin-top: 15px; gap: 3px; }
.native-grouping { font-size: 8px; display: flex; gap: 9px; }
.native-agent-list { padding-top: 4px; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--n-border) transparent; }
.native-agent-group { display: block; color: var(--n-tertiary); font-size: 9px; padding: 5px 7px 2px; line-height: 1.3; }
.native-agent { display: flex; align-items: center; gap: 6px; padding: 6px 7px; min-height: 28px; border-radius: 5px; font-size: 10px; }
.native-agent img { width: 13px; height: 13px; }
.native-agent.selected { background: var(--n-selected); }
.native-agent-state { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; font-size: 8px; color: var(--n-secondary); }
.native-sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 10px 6px 3px; color: var(--n-secondary); font-size: 10px; flex-shrink: 0; }
.native-sidebar-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.native-sidebar-footer .icon { width: 12px; height: 12px; }
.native-content { min-width: 0; display: flex; flex-direction: column; background: var(--n-content); border: 1px solid var(--n-border); border-radius: 10px; overflow: hidden; }
.native-tabs { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 34px; padding-inline: 7px; border-bottom: 1px solid var(--n-border); color: var(--n-secondary); }
.native-tab-group { display: flex; align-items: center; gap: 3px; }
.native-tab { display: flex; align-items: center; gap: 6px; min-width: 37px; min-height: 25px; padding: 3px 7px; background: none; border: none; border-radius: 20px; font-size: 10px; }
.native-tab[aria-pressed="true"] { background: var(--n-selected); }
.native-tab > span:last-child { margin-inline-start: 2px; color: var(--n-tertiary); font-size: 11px; }
.native-tab-add { padding-inline: 6px; font-size: 15px; }
.native-toolbar { display: flex; align-items: center; gap: 12px; font-size: 10px; }
.native-toolbar > .icon { width: 12px; height: 12px; }
.native-pane-caption { display: flex; align-items: center; gap: 5px; }
.native-pane-caption img { filter: grayscale(1); }
.native-more { font-size: 14px; }
.native-theme-toggle { display: grid; place-items: center; position: relative; width: 28px; height: 28px; background: none; border: none; border-radius: 50%; margin-inline: -4px; }
.native-theme-toggle .icon { position: absolute; width: 13px; height: 13px; }
.native-theme-toggle .theme-sun { opacity: 0; transform: scale(.25); filter: blur(4px); }
.native-theme-toggle .theme-moon { opacity: 1; transform: scale(1); filter: none; }
.native-theme-toggle[aria-pressed="false"] .theme-sun { opacity: 1; transform: scale(1); filter: none; }
.native-theme-toggle[aria-pressed="false"] .theme-moon { opacity: 0; transform: scale(.25); filter: blur(4px); }
.native-panes { display: grid; grid-template-columns: 1fr; min-height: 0; flex: 1; }
.native-terminal { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.native-output { padding: 20px 20px 9px; font: 11px/1.65 var(--mono); overflow: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--n-border) transparent; }
.native-output p, .native-output pre { white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: initial; }
.native-output pre { font: inherit; margin: 6px 0 0; }
.native-cli-heading { padding-bottom: 4px; }
.native-cli-brand { font-weight: 700; color: var(--n-orange); }
.native-prompt-line { margin-top: 15px; margin-bottom: 9px; }
.native-prompt-line > span:first-child { margin-inline-end: 6px; }
.native-output-group { margin-top: 14px; }
.native-completion { margin-top: 18px; }
.native-dim { color: var(--n-secondary); }
.native-green { color: var(--n-green); }
.native-orange { color: var(--n-orange); }
.native-yellow { color: var(--n-yellow); }
.native-violet { color: var(--n-violet); }
.native-red { color: var(--n-red); }
.native-cli-footer { padding: 8px 15px 8px; font: 10px/1.6 var(--mono); flex-shrink: 0; }
.native-cli-mode, .native-cli-status { display: flex; justify-content: space-between; gap: 15px; }
.native-prompt-box { display: flex; align-items: center; gap: 6px; min-height: 26px; border: 1px solid var(--n-border); border-radius: 3px; padding: 3px 7px; margin-block: 4px; color: var(--n-tertiary); }
.native-cli-status { font-size: 9px; }
.native-caret { display: inline-block; width: 6px; height: 12px; vertical-align: middle; background: var(--n-secondary); }
.native-app[data-mode="split"] .native-panes { grid-template-columns: 1.25fr 1fr; }
.native-app[data-mode="split"] .native-primary { border-inline-end: 1px solid var(--n-border); }
.native-app[data-mode="split"] .native-output { font-size: 10px; padding-inline: 15px; }
.native-app[data-mode="split"] .native-cli-mode > span:last-child { display: none; }
.native-app[data-mode="diff"] .native-terminal { display: none; }
.native-diff { overflow: auto; min-width: 0; padding: 15px 20px; font: 11px/1.9 var(--mono); }
.native-diff-heading { display: flex; align-items: center; gap: 8px; font: 11px var(--font); padding-bottom: 15px; border-bottom: 1px solid var(--n-border); }
.native-diff-heading > span:last-child { margin-inline-start: auto; font-family: var(--mono); }
.native-diff pre { font: inherit; }
.native-diff-added, .native-diff-removed { display: inline-block; min-width: 100%; }
.native-diff-added { color: var(--n-green); background: #80a08012; }
.native-diff-removed { color: var(--n-red); background: #c0808012; }
.native-empty { color: var(--n-secondary); padding: 10px 7px; font-size: 10px; }
.demo-scroll-hint { display: none; }
@media (hover: hover) {
  .native-space:not([aria-pressed="true"]):hover, .native-tab:not([aria-pressed="true"]):hover, .native-theme-toggle:hover { background: var(--n-inset); }
}
@media (prefers-reduced-motion: no-preference) {
  .native-theme-toggle .icon { transition: opacity 150ms var(--ease), transform 150ms var(--ease), filter 150ms var(--ease); }
}
@media (max-width: 1100px) {
  .native-app { grid-template-columns: 156px minmax(0, 1fr); height: 570px; }
  .native-output { font-size: 10px; padding-inline: 17px; }
  .native-space { min-height: 34px; }
}
@media (max-width: 680px) {
  .native-viewport { border-radius: 12px; }
  .native-app { width: 740px; height: 525px; grid-template-columns: 150px minmax(0, 1fr); border-radius: 12px; }
  .native-spaces { gap: 1px; }
  .native-space { min-height: 30px; }
  .native-space strong { font-size: 10px; }
  .native-space small { font-size: 9px; }
  .native-search > input { font-size: 16px; }
  .native-search { min-height: 29px; }
  .native-agent { min-height: 25px; }
  .native-agent-group { padding-block-start: 3px; }
  .native-agents-heading { margin-top: 9px; }
  .native-output { font-size: 10px; line-height: 1.6; padding-block-start: 15px; }
  .native-output-group { margin-top: 10px; }
  .native-cli-footer { font-size: 9px; }
  .native-tab { min-height: 28px; }
  .native-theme-toggle { width: 32px; height: 32px; }
  .native-toolbar { gap: 13px; }
}
@media (max-width: 860px) {
  .demo-scroll-hint { display: block; text-align: center; color: var(--muted); font-size: 11px; padding: 0 5px 12px; }
}
@media (forced-colors: active) {
  .native-app { border: 1px solid CanvasText; }
  .native-space[aria-pressed="true"], .native-tab[aria-pressed="true"] { outline: 2px solid Highlight; }
  .native-app :focus-visible { outline-color: Highlight; }
}
