:root {
  --bg: #0f1115;
  --panel: #151823;
  --muted: #8a93a6;
  --text: #e6eaf2;
  --accent: #4f8cff;
  --border: #23283a;
  --tab: #1a1f31;
  --tabActive: #0f1324;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.topbar .left { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .2px; }

/* Session bar and pills */
.sessions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.session-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1d2233; border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.session-pill.active {
  background: var(--tabActive);
  border-color: #2b3554;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.session-pill .id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.session-pill .icons { display: inline-flex; gap: 6px; }
.iconbtn { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 0; line-height: 0; }
.iconbtn:hover { color: #fff; }
.secondary { background: #232b47; color: var(--text); border: 1px solid var(--border); border-radius: 8px; height: 32px; padding: 0 12px; cursor: pointer; }
.header-actions button + button { margin-left: 8px; }

/* Tabs bar */
.tabsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding: 8px 0 0; }
.tabs::-webkit-scrollbar { height: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--tab); border: 1px solid var(--border); border-bottom: none;
  border-top-left-radius: 10px; border-top-right-radius: 10px; cursor: pointer; user-select: none;
}
.tab.active { background: var(--tabActive); font-weight: 600; }
.tab .label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tab .actions { display: inline-flex; gap: 6px; }
.tab .btn-mini { background: transparent; border: 0; color: var(--muted); cursor: pointer; line-height: 0; padding: 0; }
.tab .btn-mini:hover { color: #fff; }
.tabs-actions { display: flex; align-items: center; gap: 8px; padding-top: 8px; }

/* Main connected panel */
.container.full { width: 100%; max-width: none; padding: 0; }
.panel.connected { background: var(--panel); border: 1px solid var(--border); border-top: none; border-radius: 0; }
textarea {
  width: 100%; min-height: 70vh; background: #0e1220; color: var(--text); border: 0; outline: none; padding: 16px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical;
}

/* Status footer */
.statusbar { display: flex; align-items: center; justify-content: flex-end; padding: 8px 16px 16px; }
.muted { color: var(--muted); }

/* Buttons general */
button { height: 32px; }
