﻿:root {
  color-scheme: dark;
  --bg: #151719;
  --panel: #1d2023;
  --panel2: #22262a;
  --border: #363b40;
  --text: #d7dbdf;
  --muted: #8d969e;
  --accent: #4f8cff;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: var(--app-height, 100dvh);
  margin: 0;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
  touch-action: manipulation;
}
html.mobile-ime-safe,
html.mobile-ime-safe body {
  overflow: visible;
}
html.mobile-ime-safe body {
  position: static;
  min-height: var(--app-height, 100dvh);
  height: auto;
}
html.mobile-ime-safe #app {
  position: relative;
  inset: auto;
  min-height: var(--app-height, 100dvh);
  height: var(--app-height, 100dvh);
}
button, input, textarea {
  font: inherit;
}
button {
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
}
button:hover { border-color: #58616b; }
.tool-button {
  width: 26px;
  min-width: 26px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 4px;
  line-height: 1;
}
.tool-button:hover {
  background: var(--panel2);
  color: var(--text);
}
#app {
  width: 100%;
  height: var(--app-height, 100dvh);
  min-width: 0;
  max-width: 100vw;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--app-top, 0px);
  bottom: auto;
  overflow: hidden;
}
#sidebar-backdrop {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: none;
  background: transparent;
}
#sidebar.open + #workspace,
#sidebar.open ~ #workspace {
  pointer-events: auto;
}
#sidebar {
  position: fixed;
  z-index: 9;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  border-right: 1px solid var(--border);
  box-shadow: 14px 0 28px rgba(0, 0, 0, .28);
  background: var(--panel);
  padding: 10px;
  overflow: auto;
  transform: translateX(-100%);
  transition: transform .16s ease;
}
#sidebar.open { transform: translateX(0); }
#sidebar-backdrop.open { display: block; }
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.brand {
  font-size: 16px;
  font-weight: 650;
}
.machine {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
#new-session {
  width: 100%;
  margin-bottom: 10px;
}
#session-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.session-group {
  margin: 12px 2px 4px;
  width: calc(100% - 4px);
  height: 24px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  padding: 0 4px;
}
.session-group:hover {
  background: var(--panel2);
}
.group-arrow {
  color: var(--muted);
}
.group-count {
  color: var(--muted);
}
.session-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 6px;
  overflow: hidden;
}
.session-item:hover { background: var(--panel2); }
.session-item.running .session-name::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: #54d17a;
}
.session-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-meta {
  color: var(--muted);
  font-size: 11px;
}
#workspace {
  width: 100%;
  height: var(--app-height, 100dvh);
  min-width: 0;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
}
#toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
#pane-count {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.toolbar-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}
.view-picker {
  width: min(220px, 30vw);
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #111315;
  color: var(--muted);
  padding: 0 6px;
  outline: none;
}
.view-picker:focus {
  color: var(--text);
  border-color: #58616b;
}
.usage-summary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.usage-chip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 16px;
  max-width: none;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: clip;
  white-space: nowrap;
}
.usage-chip.loading {
  opacity: .7;
}
.usage-chip.ok {
  color: #cbd5e1;
}
.usage-chip.limited {
  color: #fbbf24;
}
.usage-chip.unavailable {
  opacity: .55;
}
.session-status-dots {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.unread-count {
  color: #ff6b6b;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.status-dot.claude { background: #f59e0b; }
.status-dot.codex { background: #8b5cf6; }
.status-dot.codex-ds { background: #22c55e; }
.status-dot.unread::after,
.pane.has-unread .provider-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ff3b30;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
#panes {
  position: absolute;
  inset: 34px 0 0 0;
  overflow: hidden;
  transform: translateY(0);
  transform-origin: 50% 100%;
}
.splitter {
  position: absolute;
  z-index: 7;
  background: transparent;
  touch-action: none;
}
.splitter::before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .12);
  transition: background-color .08s ease, box-shadow .08s ease;
}
.splitter.vertical {
  cursor: col-resize;
  transform: translateX(-4px);
}
.splitter.vertical::before {
  left: 3px;
  top: 0;
  width: 1px;
  height: 100%;
}
.splitter.horizontal {
  cursor: row-resize;
  transform: translateY(-4px);
}
.splitter.horizontal::before {
  left: 0;
  top: 3px;
  width: 100%;
  height: 1px;
}
.splitter:hover::before,
.splitter.dragging::before {
  background: #69727c;
  box-shadow: 0 0 0 1px rgba(105, 114, 124, .16);
}
body.resizing-splitter {
  user-select: none;
}
body.splitter-resizing-x,
body.splitter-resizing-x * {
  cursor: col-resize !important;
}
body.splitter-resizing-y,
body.splitter-resizing-y * {
  cursor: row-resize !important;
}
html.soft-keyboard-open.composer-focus #panes {
  transform: none;
}
html.soft-keyboard-open.composer-focus .pane.mobile-composer-focused {
  transform: none;
}
.session-dialog-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .42);
}
.session-dialog {
  width: min(340px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .36);
}
.session-dialog-title {
  font-size: 15px;
  font-weight: 650;
}
.provider-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.provider-picker label {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111315;
  color: var(--text);
  cursor: pointer;
}
.provider-picker label:has(input:checked) {
  border-color: #4f8cff;
  background: rgba(79, 140, 255, .16);
}
.provider-picker input {
  margin: 0;
}
.session-name-input {
  height: 36px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111315;
  color: var(--text);
  padding: 0 10px;
  outline: none;
}
.session-name-input:focus {
  border-color: #4f8cff;
}
.session-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.session-dialog-actions button {
  min-width: 70px;
}
.pane {
  position: absolute;
  border: 1px solid var(--border);
  background: #0c0c0c;
  overflow: hidden;
  --composer-base-height: 46px;
  --composer-extra-height: 0px;
}
.pane.mobile-composer-hidden {
  display: none;
}
.pane.active {
  border-color: #58616b;
}
.pane.reconnecting {
  border-color: #8a6b2d;
}
.pane.reconnecting header input {
  color: #fff;
}
.pane header {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.provider-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  margin: 0 2px 0 1px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.provider-dot.claude { background: #f59e0b; }
.provider-dot.codex { background: #8b5cf6; }
.provider-dot.codex-ds { background: #22c55e; }
.pane header input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  outline: none;
}
.pane header input:focus { color: #fff; }
.unread-dot {
  width: 0;
  height: 0;
  flex: 0 0 0;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, .16);
  opacity: 0;
  transform: scale(.6);
  overflow: hidden;
  transition: opacity .12s ease, transform .12s ease;
}
.pane.has-unread .unread-dot {
  opacity: 0;
  transform: scale(.6);
}
.pane-size-badge {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  color: #66707a;
  margin: 0 3px 0 2px;
  align-self: center;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.pane-model-badge {
  display: block;
  min-width: 0;
  max-width: calc(100% - 12px);
  height: 12px;
  margin: 0 8px 2px auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 12px;
  color: #56606a;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: right;
  cursor: default;
  pointer-events: auto;
  user-select: none;
}
.pane-model-badge:hover {
  color: #7b858f;
}
.context-editor-panel {
  position: absolute;
  right: 6px;
  bottom: calc(var(--composer-base-height, 55px) + 4px);
  z-index: 20;
  width: min(260px, calc(100% - 12px));
  padding: 8px;
  border: 1px solid #2d333b;
  border-radius: 6px;
  background: #111418;
  color: #d7dbdf;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .42);
  font-size: 12px;
}
.context-editor-title {
  color: #9aa4ae;
  font-size: 11px;
  line-height: 14px;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-editor-panel label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 0;
  color: #8f98a3;
}
.context-editor-panel input {
  width: 86px;
  height: 24px;
  border: 1px solid #2d333b;
  border-radius: 4px;
  background: #0c0c0c;
  color: #d7dbdf;
  padding: 0 6px;
  font: inherit;
}
.context-editor-panel input:focus {
  outline: none;
  border-color: #4b5663;
}
.context-editor-note {
  margin: 6px 0;
  color: #66707a;
  font-size: 10px;
  line-height: 13px;
}
.context-editor-panel.invalid {
  border-color: #8f4141;
}
.context-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.context-editor-actions button {
  height: 24px;
  border: 1px solid #2d333b;
  border-radius: 4px;
  background: #171b20;
  color: #c8d0d8;
  padding: 0 8px;
  font-size: 12px;
}
.context-editor-actions button:hover {
  background: #20262d;
}
.pane header button {
  border: 0;
  background: transparent;
  min-width: 22px;
  padding: 0 5px;
  color: var(--muted);
  transition: background-color .08s ease, color .08s ease, transform .08s ease;
}
.pane header button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
.pane header button:active,
.pane header button.touch-active {
  color: #ffffff;
  background: rgba(79, 140, 255, .28);
  transform: scale(.92);
}
.pane header button.icon-button {
  width: 22px;
  min-width: 22px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.pane header button.icon-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pane header button.icon-button.active {
  color: var(--text);
  background: rgba(79, 140, 255, .14);
}
.pane-header-menu {
  position: absolute;
  top: 30px;
  right: 28px;
  z-index: 18;
  min-width: 170px;
  padding: 4px;
  border: 1px solid #2d333b;
  border-radius: 6px;
  background: #111418;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .42);
}
.pane-header-menu[hidden] {
  display: none;
}
.pane-menu-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}
.pane-menu-replay-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pane-menu-item {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #aeb7c0;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  position: relative;
}
.pane-menu-item[data-replay-mode] {
  justify-content: flex-start;
  padding-left: 22px;
  text-align: left;
}
.pane-menu-item[data-replay-mode]::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  color: #eef2f6;
}
.pane-menu-item[data-replay-mode].active::before {
  content: "✓";
}
.pane-menu-wide-item {
  justify-content: flex-start;
  text-align: left;
}
.pane-header-menu .icon-button,
.pane-header-menu .mobile-key-button {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.pane-header-menu .icon-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pane-menu-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #eef2f6;
}
.pane-menu-item.active,
.pane-header-menu .icon-button.active,
.pane-header-menu .mobile-key-button.active {
  color: #eef2f6;
  background: rgba(79, 140, 255, .14);
}
.pane-header-menu .icon-button:hover,
.pane-header-menu .mobile-key-button:hover {
  color: #eef2f6;
  background: rgba(255, 255, 255, .06);
}
.pane-header-menu .icon-button:active,
.pane-header-menu .icon-button.touch-active,
.pane-header-menu .mobile-key-button:active,
.pane-header-menu .mobile-key-button.touch-active {
  color: #ffffff;
  background: rgba(79, 140, 255, .28);
  transform: scale(.92);
}
.mobile-key-button {
  display: none;
}
.term-host {
  position: absolute;
  inset: 28px 0 calc(var(--composer-base-height, 46px) + 2px) 0;
  padding: 6px 6px 0;
  overflow: hidden;
  max-width: 100%;
  background: #0c0c0c;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
}
.pane.composer-collapsed .term-host {
  bottom: calc(var(--composer-base-height, 46px) + 2px);
  transform: none;
}
.cli-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 55px;
  display: block;
  padding: 3px 3px max(2px, env(safe-area-inset-bottom));
  border-top: 0;
  background: transparent;
  z-index: 6;
}
.pane.composer-collapsed .cli-composer {
  display: block;
}
.cli-composer-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 0 4px 0 7px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #0c0c0c;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cli-composer-wrap:focus-within {
  border-color: var(--border);
  box-shadow: none;
}
.cli-composer-wrap.uploading {
  border-color: #d6a94d;
}
.cli-composer-wrap.slash-open {
  overflow: visible;
}
.cli-composer-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  min-height: 22px;
  max-height: 127px;
  position: relative;
  z-index: 1;
  display: block;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-size: 14px;
  line-height: 22px;
  overflow-y: hidden;
}
.cli-composer-input::-webkit-scrollbar {
  width: 4px;
}
.cli-composer-input::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.cli-composer-attach,
.cli-composer-send {
  width: 30px;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  transition: background-color .08s ease, color .08s ease, transform .08s ease;
}
.cli-composer-attach {
  width: 24px;
  min-width: 24px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  margin-right: 2px;
}
.cli-composer-send {
  background: transparent;
  color: #d7dbdf;
  margin: 0 -1px 0 0;
  position: relative;
  z-index: 2;
}
.cli-composer-attach:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
.cli-composer-send:hover {
  color: #fff;
  background: transparent;
  transform: scale(1.04);
}
.cli-composer-attach:active,
.cli-composer-attach.touch-active,
.cli-composer-send:active,
.cli-composer-send.touch-active {
  color: #ffffff;
  background: transparent;
  transform: scale(.98);
}
.cli-composer-attach svg,
.cli-composer-send svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slash-menu {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: calc(100% + 6px);
  background: #171a1d;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
  padding: 4px;
  z-index: 8;
}
.slash-menu[hidden] {
  display: none;
}
.slash-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}
.slash-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
}
.slash-item:hover,
.slash-item.active {
  background: rgba(255, 255, 255, .06);
}
.slash-command {
  font: inherit;
  color: #dfe4ea;
  white-space: nowrap;
}
.slash-desc {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.term-host.initializing .xterm {
  visibility: hidden;
}
.term-host.initializing::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(141, 150, 158, .35);
  border-top-color: rgba(215, 219, 223, .9);
  border-radius: 999px;
  animation: tmux-spin .7s linear infinite;
}
@keyframes tmux-spin {
  to { transform: rotate(360deg); }
}
.term-host .xterm {
  width: 100%;
  height: calc(100% + var(--composer-extra-height, 0px));
  max-width: 100%;
  overflow: hidden;
  background: #0c0c0c;
  transform: translateY(calc(-1 * var(--composer-extra-height, 0px)));
}
.term-host .xterm-viewport {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #0c0c0c !important;
}
.term-host .xterm-screen {
  max-width: 100%;
  overflow: hidden;
  background: #0c0c0c;
}
.term-host .composition-view {
  max-width: calc(100% - 12px);
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}
.term-host .xterm-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.term-scrollbar {
  position: absolute;
  z-index: 5;
  top: 6px;
  right: 2px;
  bottom: 6px;
  width: 12px;
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: auto;
  touch-action: none;
}
.term-scrollbar.visible,
.term-scrollbar:hover,
.term-scrollbar:active {
  opacity: 1;
}
.term-scrollbar.hidden {
  display: none;
}
.term-scrollbar-thumb {
  width: 8px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(122, 132, 143, .72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
  touch-action: none;
}
.term-scrollbar-thumb:hover,
.term-scrollbar-thumb:active {
  background: rgba(157, 166, 176, .9);
}
.login-body {
  display: grid;
  place-items: center;
  min-height: 100%;
}
.login-card {
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.login-card .brand { margin-bottom: 14px; }
.login-card form { display: grid; gap: 10px; }
.login-card input {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111315;
  color: var(--text);
  padding: 0 10px;
}
#error { min-height: 18px; color: #ff7b7b; }

@media (max-width: 760px) {
  #sidebar { width: min(300px, 86vw); }
  #toolbar {
    height: 30px;
    padding: 2px 6px;
  }
  #panes {
    inset: 30px 0 0 0;
  }
  .splitter {
    display: none;
  }
  .view-picker {
    width: min(150px, 34vw);
  }
  .pane header {
    height: 26px;
    padding: 1px 3px;
  }
  .pane header button {
    min-width: 20px;
    padding: 0 3px;
  }
  .pane header button.mobile-key-button {
    display: none;
    place-items: center;
    width: 20px;
    min-width: 20px;
    padding: 0;
    color: var(--text);
  }
  .pane header button.mobile-space-button {
    display: none;
    width: 26px;
    min-width: 26px;
  }
  .pane header button.composer-toggle-button {
    display: none;
  }
  .pane header button.icon-button {
    width: 20px;
    min-width: 20px;
  }
  .term-host {
    inset: 26px 0 calc(var(--composer-base-height, 41px) + 2px) 0;
    padding: 4px 4px 0;
  }
  .pane.composer-collapsed .term-host {
    bottom: calc(var(--composer-base-height, 41px) + 2px);
    transform: none;
  }
  .cli-composer {
    min-height: 53px;
    padding: 1px 3px max(2px, env(safe-area-inset-bottom));
  }
  .pane-model-badge {
    height: 12px;
    margin: 0 7px 2px auto;
    font-size: 9px;
    line-height: 12px;
  }
  .cli-composer-wrap {
    padding: 0 4px 0 5px;
  }
  .cli-composer-input {
    height: 22px;
    min-height: 22px;
    max-height: 127px;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  .cli-composer-attach {
    width: 24px;
    min-width: 24px;
    height: 36px;
  }
  .cli-composer-send {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }
  .term-scrollbar {
    top: 4px;
    bottom: 4px;
  }
}
