/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
.sidebar-header-minimal {
  align-items: flex-start;
  gap: 12px;
}
.sidebar-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  max-width: 180px;
}
.session-item-icon-minimal {
  background: transparent;
  font-size: 16px;
}
.session-item-meta-minimal {
  gap: 8px;
}
.agent-header-minimal {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.agent-header-minimal .agent-header-accent {
  display: none;
}
.agent-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agent-header-subtitle {
  font-size: 12px;
  color: var(--text-2);
}
.compact-actions {
  gap: 8px;
}
.header-icon-btn.subtle {
  opacity: 0.82;
}
.header-icon-btn.subtle:hover {
  opacity: 1;
}
.agent-metrics-bar-minimal {
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.agent-metrics-bar-minimal .metric-item {
  min-width: 0;
  padding: 8px 10px;
}
.agent-metrics-bar-minimal .metric-icon {
  display: none;
}
.agent-metrics-bar-minimal .metric-value {
  font-size: 14px;
}
.agent-metrics-bar-minimal .metric-label {
  font-size: 10px;
  letter-spacing: 0.04em;
}
#session-list .session-item {
  border: 1px solid transparent;
}
#session-list .session-item.active {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.22);
}
#session-list .session-item:hover {
  background: rgba(255,255,255,0.03);
}
#session-list .session-item {
  padding-right: 12px;
}
#session-list .session-item-actions {
  position: relative;
  opacity: 1;
}
#session-list .session-more-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
#session-list .session-item:hover .session-more-btn, #session-list .session-item.active .session-more-btn, #session-list .session-item-actions.menu-open .session-more-btn {
  opacity: 1;
}
#session-list .session-more-btn:hover, #session-list .session-item-actions.menu-open .session-more-btn {
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
}
#session-list .session-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  display: none;
  z-index: 20;
}
#session-list .session-item-actions.menu-open .session-action-menu {
  display: block;
}
#session-list .session-delete-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fca5a5;
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
}
#session-list .session-delete-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.empty-state-session .empty-icon, .empty-state-loading .empty-icon {
  font-size: 44px;
}
.empty-state-session h2, .empty-state-loading h2 {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-1);
}
.empty-state-session p, .empty-state-loading p {
  max-width: 420px;
}
.nav-rail-minimal {
  justify-content: space-between;
}
.nav-rail-more-group {
  gap: 6px;
  padding-bottom: 8px;
}
.nav-rail-more-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.75;
  margin-bottom: 2px;
}
.nav-rail-btn-secondary {
  opacity: 0.72;
}
.nav-rail-btn-secondary:hover {
  opacity: 0.96;
}
.nav-rail-btn-secondary.active {
  opacity: 1;
}
:root {
  --bg-0: #fff8fc;
  --bg-1: #fff4fb;
  --bg-2: #fff0f8;
  --bg-3: #f6e7f4;
  --bg-input: #fffafc;
  --border: #ead7e9;
  --border-focus: #c79ad9;
  --text-1: #4f3b59;
  --text-2: #7d6588;
  --text-3: #a48eb0;
  --accent: #b88ad6;
  --accent-glow: rgba(184, 138, 214, .18);
  --green: #7bbf9a;
  --red: #d88aa0;
  --amber: #d8b16c;
  --blue: #8caed8;
  --purple: #b88ad6;
  --purple-light: #d6b7ea;
}
html, body {
  background: radial-gradient(circle at top left, rgba(255, 214, 236, .8), transparent 30%), radial-gradient(circle at top right, rgba(224, 215, 255, .75), transparent 32%), linear-gradient(180deg, #fffafc 0%, #fff5fb 100%);
}
.main-area, .session-sidebar, .overview, .top-bar, .metrics-strip, .input-area {
  background: rgba(255, 252, 255, 0.76);
  backdrop-filter: blur(14px);
}
.nav-rail {
  background: rgba(255, 247, 252, 0.82);
  border-right-color: rgba(190, 160, 205, 0.28);
}
.msg-user .bubble {
  background: linear-gradient(135deg, #d8b4f0, #f2b7d8);
  color: #4f3558;
}
.msg-agent .bubble, .card, .type-card, .skill-panel-card, .memory-core-card, .memory-item, .schedule-item, .file-item {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(205, 176, 218, 0.32);
  box-shadow: 0 6px 20px rgba(205, 176, 218, 0.08);
}
.send-btn, .btn-primary, .btn-new {
  background: linear-gradient(135deg, #d4a5ea, #f0b6cf);
  color: #4f3558;
}
.send-btn:hover, .btn-primary:hover, .btn-new:hover {
  opacity: 1;
  filter: brightness(1.03);
}
.chip, .tab, .icon-btn, .model-select, .model-select-wrapper, .input-field, .debug-log-clear, .confirm-btn.cancel, .btn-ghost {
  background: rgba(255, 255, 255, 0.65);
}
.empty-state h2, .top-bar-title, .sidebar-title, .memory-core-title, .debug-trace-title {
  color: #5b4266;
}
.nav-rail {
  justify-content: space-between;
}
.nav-rail-bottom {
  gap: 4px;
  padding-bottom: 12px;
}
.nav-rail-more-label {
  display: none;
}
.nav-rail-more-group {
  gap: 4px;
  padding-bottom: 12px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  flex-shrink: 0;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.top-bar-status.active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.top-bar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-3);
  font-size: 13px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.icon-btn:hover {
  color: var(--text-1);
  background: var(--bg-3);
  border-color: var(--border);
}
.metrics-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  flex-shrink: 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.metric-val {
  font-weight: 700;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
}
.metric-lbl {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}
.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.sidebar-subtitle {
  display: none;
}
.btn-new {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-new:hover {
  opacity: .85;
}
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}
.empty-state h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  background: none;
  -webkit-text-fill-color: initial;
}
.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text-1);
  background: rgba(99, 102, 241, .08);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 15px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover {
  color: var(--text-1);
  background: var(--bg-3);
}
.modal-body {
  padding: 20px;
}
.type-cards {
  display: flex;
  gap: 12px;
}
.type-card {
  flex: 1;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.type-card:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, .06);
}
.type-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.type-card-desc {
  font-size: 12px;
  color: var(--text-2);
}
.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--text-3);
  color: var(--text-1);
}
.btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: .9;
}
.tg-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tg-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.tg-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tg-step code {
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}
.debug-log {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.debug-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 4px;
}
.debug-log-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.debug-log-clear {
  font-size: 11px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.debug-log-clear:hover {
  color: var(--text-1);
  border-color: var(--text-3);
}
.debug-log-entries {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.debug-trace {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
}
.debug-trace-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}
.debug-trace-summary::-webkit-details-marker {
  display: none;
}
.debug-trace-title {
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.debug-trace-count {
  color: var(--text-3);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.debug-trace-events {
  padding: 0 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.debug-entry {
  border-radius: 4px;
}
.debug-entry[open] {
  background: rgba(255, 255, 255, .02);
}
.debug-entry-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 11px;
  list-style: none;
  border-radius: 4px;
  transition: background .1s;
}
.debug-entry-summary:hover {
  background: rgba(255, 255, 255, .03);
}
.debug-entry-summary::-webkit-details-marker {
  display: none;
}
.debug-entry-time {
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  flex-shrink: 0;
}
.debug-entry-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 80px;
}
.debug-entry-preview {
  color: var(--text-2);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.debug-entry-data {
  margin: 4px 8px 8px;
  padding: 8px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-x: auto;
  max-height: 300px;
  white-space: pre-wrap;
  word-break: break-word;
}
.session-item-icon, .session-item-icon-minimal {
  display: none;
}
.session-type-badge {
  display: none;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-0: #0a0a0f;
  --bg-1: #12121a;
  --bg-2: #1a1a25;
  --bg-3: #22222f;
  --bg-input: #16161f;
  --border: #2a2a3a;
  --border-focus: #6366f1;
  --text-1: #e8e8f0;
  --text-2: #8888a0;
  --text-3: #55556a;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, .15);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --purple-light: #c4b5fd;
  --r: 12px;
  --r-sm: 8px;
  --sidebar-w: 240px;
  --nav-rail-w: 60px;
  --overview-h: 35vh;
}
html,
body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--nav-rail-w) var(--sidebar-w) 1fr;
  height: 100vh;
  width: 100vw;
}
#melina-page-content {
  display: contents;
}
.agents-page {
  display: contents;
}
.page-container {
  grid-column: 2 / -1;
  padding: 40px 48px;
  overflow-y: auto;
  background: var(--bg-1);
}
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.page-subtitle code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}
.providers-grid {
  max-width: 900px;
}
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.provider-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.provider-card.active {
  border-color: rgba(34, 197, 94, .3);
}
.provider-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}
.provider-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.provider-icon {
  font-size: 24px;
}
.provider-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.provider-env-var {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
}
.provider-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.provider-status.connected {
  color: var(--green);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}
.provider-status.connected .status-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, .5);
}
.api-key-section {
  padding: 0 24px 16px;
}
.key-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.key-masked {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  flex: 1;
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.key-source {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.key-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.key-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.key-btn:hover {
  color: var(--text-1);
  border-color: var(--accent);
}
.key-btn.key-save {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.key-btn.key-save:hover {
  filter: brightness(1.1);
}
.key-btn.key-save.saving {
  opacity: 0.6;
  cursor: not-allowed;
}
.key-btn.key-remove:hover {
  color: var(--red);
  border-color: var(--red);
}
.key-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.key-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: border-color .15s;
}
.key-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.key-input::-moz-placeholder {
  color: var(--text-3);
}
.key-input::placeholder {
  color: var(--text-3);
}
.model-list {
  border-top: 1px solid var(--border);
}
.model-list.dimmed {
  opacity: 0.4;
  pointer-events: none;
}
.model-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(42, 42, 58, .5);
  transition: background .15s;
}
.model-row:last-child {
  border-bottom: none;
}
.model-row:hover {
  background: rgba(99, 102, 241, .04);
}
.model-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.model-name {
  font-size: 13px;
  font-weight: 600;
}
.model-desc {
  font-size: 11px;
  color: var(--text-3);
}
.model-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.model-tier {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tier-color);
  background: var(--tier-color);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--tier-color) 12%, transparent);
  }
  border: 1px solid var(--tier-color);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--tier-color) 25%, transparent);
  }
}
.model-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-0);
  padding: 2px 6px;
  border-radius: 4px;
}
.skills-content {
  max-width: 900px;
}
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.skill-card:hover {
  border-color: rgba(99, 102, 241, .3);
}
.skill-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background .15s;
}
.skill-header:hover {
  background: rgba(99, 102, 241, .04);
}
.skill-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.skill-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.skill-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.skill-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.skill-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.skill-cmds-count {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.skill-file-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.skill-expand-arrow {
  font-size: 10px;
  color: var(--text-3);
  transition: transform .2s;
  display: inline-block;
}
.skill-expand-arrow.open {
  transform: rotate(90deg);
}
.skill-commands {
  padding: 0 24px 20px;
}
.commands-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.skill-content-block {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-0);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(42, 42, 58, .5);
  margin: 0;
}
.command-row {
  padding: 12px 16px;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(42, 42, 58, .5);
}
.command-row:last-child {
  margin-bottom: 0;
}
.command-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.command-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 6px;
  border-radius: 4px;
}
.command-desc {
  font-size: 12px;
  color: var(--text-2);
}
.command-usage {
  margin-bottom: 4px;
}
.command-usage code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 3px;
}
.command-params {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(42, 42, 58, .5);
}
.param-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
}
.param-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  font-size: 10px;
  flex-shrink: 0;
}
.param-desc {
  color: var(--text-3);
}
.skills-footer {
  margin-top: 24px;
}
.skills-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, .06);
  border: 1px solid rgba(99, 102, 241, .15);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.hint-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.skills-hint code {
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}
.skills-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}
.skills-search-input {
  flex: 1;
  padding: 10px 14px;
  padding-right: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.skills-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.skills-search-input::-moz-placeholder {
  color: var(--text-3);
}
.skills-search-input::placeholder {
  color: var(--text-3);
}
.skills-search-clear {
  position: absolute;
  right: 60px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.skills-search-clear:hover {
  color: var(--text-1);
  background: var(--bg-3);
}
.skills-count {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.skills-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skills-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.skills-group-icon {
  font-size: 14px;
}
.skills-group-name {
  flex: 1;
}
.skills-group-count {
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
}
.skill-plugin-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--purple);
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .25);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.coming-soon {
  text-align: center;
  padding: 60px 40px;
  max-width: 500px;
  margin: 0 auto;
}
.coming-soon-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.coming-soon h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.coming-soon>p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.coming-soon-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-2);
}
.feature-icon {
  font-size: 18px;
}
.settings-modal-container {
  display: contents;
}
.nav-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-0);
  border-right: 1px solid var(--border);
  padding: 8px 0;
  width: var(--nav-rail-w);
  overflow: hidden;
  z-index: 10;
}
.nav-rail-top,
.nav-rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  width: 52px;
  transition: all .15s;
  position: relative;
}
.nav-rail-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nav-rail-btn span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
}
.nav-rail-btn:hover {
  color: var(--text-2);
  background: var(--bg-2);
}
.nav-rail-btn.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}
.nav-rail-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-new-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.sidebar-new-btn:hover {
  opacity: .9;
  transform: scale(1.01);
}
.sidebar-new-btn:active {
  transform: scale(.98);
}
.sidebar-new-icon {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.sidebar-agents {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-agents::-webkit-scrollbar {
  width: 3px;
}
.sidebar-agents::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-agents::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.sidebar-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s;
  text-align: left;
  width: 100%;
}
.sidebar-agent:hover {
  background: var(--bg-2);
  color: var(--text-1);
}
.sidebar-agent.active {
  background: var(--accent-glow);
  color: var(--accent);
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-dot.running {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.agent-dot.idle {
  background: var(--text-3);
}
.sidebar-agent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-agent-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-agent-model {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono, monospace);
  opacity: 0.6;
  line-height: 1;
}
.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.sidebar-bottom-icons {
  display: flex;
  gap: 8px;
}
.sidebar-icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .15s;
}
.sidebar-icon-btn:hover {
  border-color: var(--text-3);
  color: var(--text-2);
}
.main-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-0);
  grid-column: 2 / -1;
}
.agent-header {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  flex-shrink: 0;
  position: relative;
}
.agent-header-accent {
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 30%, #a78bfa 50%, #6366f1 70%, #4f46e5 100%);
  background-size: 200% 100%;
  animation: accentShimmer 8s ease infinite;
}
@keyframes accentShimmer {
  0%,
    100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.agent-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.agent-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.agent-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.agent-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.agent-status-dot.active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.agent-header-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.agent-header-name:hover {
  cursor: text;
}
.agent-rename-input {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  background: var(--bg-3);
  border: 1px solid var(--border-focus);
  border-radius: 4px;
  padding: 2px 6px;
  outline: none;
  font-family: inherit;
  width: 200px;
}
.chat-area.drag-over {
  border: 2px dashed var(--accent) !important;
  box-shadow: inset 0 0 30px rgba(99, 102, 241, .1);
}
.agent-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.agent-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}
.header-icon-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-3);
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.header-icon-btn:hover {
  color: var(--text-1);
  background: var(--bg-3);
  border-color: var(--border);
}
.model-select-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 2px 0 8px;
  transition: border-color .2s, box-shadow .2s;
}
.model-select-wrapper:hover {
  border-color: rgba(99, 102, 241, .4);
}
.model-select-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .12);
}
.model-select-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.model-select {
  background: transparent;
  border: none;
  color: var(--text-1);
  padding: 6px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  outline: none;
  cursor: pointer;
  max-width: 200px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
.model-select option,
.model-select optgroup {
  background: var(--bg-1);
  color: var(--text-1);
}
.model-select:focus {
  outline: none;
}
.skill-toggles {
  display: flex;
  gap: 4px;
}
.skill-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.skill-chip:hover {
  border-color: var(--text-3);
}
.skill-chip.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.skill-plugin-group {
  display: inline-flex;
}
.skill-chip.plugin-chip {
  display: flex;
  align-items: center;
  gap: 4px;
}
.skill-chip.plugin-chip.partial {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-2);
}
.skill-chip-icon {
  font-size: 11px;
  line-height: 1;
}
.skill-chip-count {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 4px;
  font-size: 9px;
  min-width: 14px;
  text-align: center;
  opacity: 0.6;
}
.skill-chip.active .skill-chip-count {
  background: rgba(139, 92, 246, 0.2);
  opacity: 1;
}
.composition-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  animation: compositionPulse 2s ease-in-out infinite;
  font-family: 'Inter', sans-serif;
}
@keyframes compositionPulse {
  0%,
    100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    box-shadow: 0 0 8px 1px rgba(251, 191, 36, 0.15);
  }
}
.composition-templates {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  flex-wrap: wrap;
}
.composition-label {
  font-size: 9px;
  color: #fbbf24;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.composition-template {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  white-space: nowrap;
}
.composition-template:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}
.skill-toggles {
  flex-wrap: wrap;
}
.agent-metrics-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.agent-metrics-bar::-webkit-scrollbar {
  display: none;
}
.metric-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}
.metric-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}
.metric-icon {
  font-size: 11px;
  line-height: 1;
}
.metric-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.3px;
}
.metric-label {
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}
.chat-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, .03) 0%, transparent 70%);
}
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-area::-webkit-scrollbar {
  width: 4px;
}
.chat-area::-webkit-scrollbar-track {
  background: transparent;
}
.chat-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.msg {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp .2s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.msg-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.msg-agent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.msg-user .bubble {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: var(--r) var(--r) 4px var(--r);
}
.msg-agent .bubble {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--r) var(--r) var(--r) 4px;
}
.bubble {
  padding: 10px 16px;
  max-width: 70%;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-time {
  font-size: 9px;
  color: var(--text-3);
  opacity: 0;
  margin-top: 2px;
  padding: 0 4px;
  transition: opacity .2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.msg:hover .msg-time,
.msg-user:hover .msg-time,
.msg-agent:hover .msg-time {
  opacity: 1;
}
.msg-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.msg-active-reactions {
  display: flex;
  gap: 3px;
  align-items: center;
}
.reaction-badge {
  font-size: 11px;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  cursor: default;
}
.reaction-badge.active {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.reaction-bar {
  display: flex;
  gap: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  margin-top: 2px;
  padding-left: 4px;
}
.msg-agent:hover .reaction-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.reaction-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 13px;
  width: 28px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}
.reaction-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.15);
}
.reaction-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp .2s ease;
}
.card-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.card-body {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.card-planning {
  border-color: var(--blue);
  background: rgba(59, 130, 246, .06);
}
.card-thinking {
  border-left: 3px solid var(--accent);
  cursor: pointer;
  transition: all .15s ease;
}
.card-thinking.collapsed .card-body {
  display: none;
}
.card-thinking.collapsed .card-preview {
  display: block;
}
.card-thinking:not(.collapsed) .card-preview {
  display: none;
}
.card-thinking:not(.collapsed) .thinking-arrow {
  transform: rotate(90deg);
}
.card-preview {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thinking-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.thinking-arrow {
  font-size: 8px;
  transition: transform .15s ease;
  color: var(--text-3);
}
.card-complete {
  border-color: var(--green);
  background: rgba(34, 197, 94, .06);
}
.card-error {
  border-color: var(--red);
  background: rgba(239, 68, 68, .06);
}
.card-cancelled {
  border-color: var(--amber);
  background: rgba(245, 158, 11, .06);
}
.secret-request-bubble {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(520px, 100%);
}
.secret-request-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}
.secret-request-description,
.secret-request-meta,
.secret-request-status {
  font-size: 12px;
  color: var(--text-2);
}
.secret-request-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.secret-request-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.secret-request-btn {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.secret-request-btn:hover {
  filter: brightness(1.06);
}
.confirmation-card {
  margin: 12px 0;
  padding: 16px 20px;
  background: rgba(124, 58, 237, .08);
  border: 1px solid rgba(124, 58, 237, .3);
  border-radius: 12px;
  animation: fadeSlideIn .3s ease;
}
.confirmation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 14px;
}
.confirmation-icon {
  font-size: 20px;
}
.confirmation-objectives {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(124, 58, 237, .05);
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, .1);
}
.confirmation-obj {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.confirmation-obj-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.confirmation-obj-body {
  flex: 1;
  min-width: 0;
}
.confirmation-obj-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}
.confirmation-obj-desc {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
  line-height: 1.4;
}
.confirmation-actions {
  display: flex;
  gap: 10px;
}
.confirm-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.confirm-btn.proceed {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.confirm-btn.proceed:hover {
  background: hsl(256, 70%, 60%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .3);
}
.confirm-btn.cancel {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.confirm-btn.cancel:hover {
  border-color: var(--red);
  color: var(--red);
}
.version-badge {
  position: fixed;
  bottom: 8px;
  right: 12px;
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-3);
  opacity: 0.5;
  z-index: 5;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.version-commit {
  color: var(--text-3);
  opacity: 0.7;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card-info {
  border-color: var(--accent);
  background: rgba(124, 58, 237, .06);
}
.card-tool {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.tool-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.tool-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 11px;
}
.tool-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
}
.tool-badge.running {
  background: rgba(99, 102, 241, .15);
  color: var(--accent);
}
.tool-badge.success {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
}
.tool-badge.failure {
  background: rgba(239, 68, 68, .15);
  color: var(--red);
}
.tool-params,
.tool-output {
  background: var(--bg-0);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 10px;
  color: var(--text-2);
  overflow-x: auto;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
}
.tool-primary-param {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--accent-light);
  background: rgba(99, 102, 241, .08);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
  word-break: break-all;
}
.tool-params-details,
.tool-output-details {
  margin-top: 4px;
}
.tool-params-summary,
.tool-output-summary {
  font-size: 10px;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: color .15s;
}
.tool-params-summary:hover,
.tool-output-summary:hover {
  color: var(--text-2);
}
.tool-active {
  border-left: 2px solid var(--accent);
  animation: tool-pulse 2s ease-in-out infinite;
}
@keyframes tool-pulse {
  0%, 100% {
    border-left-color: var(--accent);
  }
  50% {
    border-left-color: rgba(99, 102, 241, .3);
  }
}
.tool-command {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #e2e8f0;
  background: rgba(15, 23, 42, .7);
  border: 1px solid rgba(99, 102, 241, .12);
}
.tool-progress {
  height: 2px;
  background: var(--bg-3);
  border-radius: 1px;
  margin-top: 6px;
  overflow: hidden;
}
.tool-progress-bar {
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  animation: tool-progress-slide 1.5s ease-in-out infinite;
}
@keyframes tool-progress-slide {
  0% {
    transform: translateX(-100%);
    width: 40%;
  }
  50% {
    transform: translateX(100%);
    width: 60%;
  }
  100% {
    transform: translateX(250%);
    width: 40%;
  }
}
.tool-elapsed {
  font-size: 9px;
  color: var(--text-3);
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}
.tool-output-error {
  color: #fca5a5;
  border-left: 2px solid rgba(239, 68, 68, .3);
  padding-left: 8px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  width: 100%;
  margin: 2px auto;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.input-area {
  padding: 16px 20px 8px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(18, 18, 26, 0.95) 100%);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.input-row {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.input-footer {
  max-width: 720px;
  margin: 6px auto 0;
  text-align: center;
}
.input-hint {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.3px;
}
.input-field {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 11px 16px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  resize: none;
  min-height: 46px;
  max-height: 140px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.input-field::-moz-placeholder {
  color: var(--text-3);
}
.input-field::placeholder {
  color: var(--text-3);
}
.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1), 0 4px 20px rgba(0, 0, 0, .2);
}
.send-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, transform .1s;
  flex-shrink: 0;
}
.send-btn:hover {
  opacity: .9;
  transform: scale(1.02);
}
.send-btn:active {
  transform: scale(.98);
}
.send-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}
.send-btn.stop-mode {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse-stop 1.5s ease-in-out infinite;
}
.send-btn.stop-mode:hover {
  opacity: 1;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
@keyframes pulse-stop {
  0%,
    100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}
.send-btn svg {
  width: 18px;
  height: 18px;
}
.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-3);
  font-size: 12px;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp .2s ease;
}
.dots {
  display: flex;
  gap: 4px;
}
.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite ease-in-out;
}
.dots span:nth-child(2) {
  animation-delay: .2s;
}
.dots span:nth-child(3) {
  animation-delay: .4s;
}
@keyframes pulse {
  0%,
    80%,
    100% {
    opacity: .3;
    transform: scale(.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulse-dot {
  0%,
    100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-3);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
}
.empty-icon {
  font-size: 48px;
  opacity: .6;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, .3));
}
.empty-state h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  background: linear-gradient(135deg, #e8e8f0 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}
.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}
.example-chip {
  background: rgba(26, 26, 37, 0.8);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(8px);
}
.example-chip:hover {
  border-color: var(--accent);
  color: var(--text-1);
  background: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .15);
}
.overview {
  height: var(--overview-h);
  min-height: 120px;
  max-height: 60vh;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}
.overview-resize {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 6px;
  cursor: row-resize;
  z-index: 10;
}
.overview-resize:hover {
  background: var(--accent);
  opacity: .3;
}
.tab-bar {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
.tab {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.tab:hover {
  color: var(--text-2);
  background: rgba(99, 102, 241, .04);
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.tab-pane {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 12px 16px;
}
.tab-pane.active {
  display: block;
}
.tab-pane::-webkit-scrollbar {
  width: 3px;
}
.tab-pane::-webkit-scrollbar-track {
  background: transparent;
}
.tab-pane::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.overview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-3);
  font-size: 12px;
  font-style: italic;
  opacity: 0.7;
}
.tl-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 8px 12px 20px;
  position: relative;
}
.tl-timeline::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.tl-group {
  position: relative;
  padding-left: 24px;
  padding-bottom: 16px;
}
.tl-group:last-child {
  padding-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -2px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-1);
  z-index: 1;
  transition: all .2s;
}
.tl-active .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(124, 58, 237, .5);
}
.tl-complete .tl-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, .4);
}
.tl-partial .tl-dot {
  background: var(--yellow, #eab308);
}
.tl-past .tl-dot {
  background: var(--text-3);
}
.tl-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tl-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.tl-active .tl-label {
  color: var(--accent);
}
.tl-complete .tl-label {
  color: var(--green);
}
.tl-time {
  font-size: 9px;
  color: var(--text-3);
  opacity: .7;
}
.tl-objectives {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.obj-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: all .15s;
}
.obj-item.met {
  border-color: var(--green);
  background: rgba(34, 197, 94, .06);
}
.obj-item.unmet {
  border-color: var(--red);
  background: rgba(239, 68, 68, .04);
}
.obj-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.obj-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.obj-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
}
.obj-desc {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.4;
}
.obj-reason {
  font-size: 10px;
  color: var(--text-2);
  margin-top: 2px;
  font-style: italic;
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  overflow: hidden;
}
.file-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background .15s;
}
.file-item-row:hover {
  background: rgba(99, 102, 241, .06);
}
.file-expand-arrow {
  font-size: 10px;
  color: var(--text-3);
  margin-left: auto;
  flex-shrink: 0;
}
.file-expanded {
  border-color: rgba(99, 102, 241, .2);
}
.file-preview {
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  max-height: 300px;
  overflow-y: auto;
}
.file-preview-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.file-preview-lang {
  font-size: 9px;
  color: var(--accent);
  background: rgba(99, 102, 241, .1);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.file-preview-size {
  font-size: 9px;
  color: var(--text-3);
}
.file-preview-truncated {
  font-size: 9px;
  color: var(--amber, #f59e0b);
  background: rgba(245, 158, 11, .1);
  padding: 1px 6px;
  border-radius: 4px;
}
.file-preview-content {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
}
.file-preview-loading {
  font-size: 10px;
  color: var(--text-3);
  padding: 8px 0;
}
.file-icon {
  font-size: 12px;
  flex-shrink: 0;
}
.file-path {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-action {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 500;
  flex-shrink: 0;
}
.file-action.read {
  background: rgba(59, 130, 246, .15);
  color: var(--blue);
}
.file-action.write {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
}
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-0);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: border-color .15s;
}
.schedule-item:hover {
  border-color: var(--accent);
}
.schedule-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.schedule-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.schedule-info {
  flex: 1;
  min-width: 0;
}
.schedule-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}
.schedule-meta {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}
.schedule-script {
  font-size: 10px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.schedule-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.schedule-status.ok {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
}
.schedule-status.err {
  background: rgba(239, 68, 68, .15);
  color: var(--red);
}
.schedule-status.pending {
  background: rgba(245, 158, 11, .15);
  color: var(--amber);
}
.schedule-cancel {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.schedule-item:hover .schedule-cancel {
  opacity: 1;
}
.schedule-cancel:hover {
  background: rgba(239, 68, 68, .15);
  color: var(--red);
}
.schedule-progress {
  position: relative;
  height: 14px;
  background: var(--bg-1);
  border-radius: 7px;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid var(--border);
}
.schedule-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent), rgba(124, 58, 237, .7));
  border-radius: 7px;
  transition: width .4s ease;
  min-width: 2px;
}
.schedule-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  font-family: 'JetBrains Mono', monospace;
}
.schedule-status.running {
  background: rgba(124, 58, 237, .15);
  color: var(--accent);
  animation: pulse-schedule 1.5s ease-in-out infinite;
}
.schedule-status.cancelled {
  background: rgba(100, 100, 100, .15);
  color: var(--text-3);
}
@keyframes pulse-schedule {
  0%,
    100% {
    opacity: 1;
  }
  50% {
    opacity: .6;
  }
}
.schedule-error {
  font-size: 9px;
  color: var(--red);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.schedule-type {
  color: var(--accent);
  font-weight: 500;
}
.schedule-item.schedule-running {
  border-color: var(--accent);
  background: rgba(124, 58, 237, .04);
}
.schedule-item.schedule-completed {
  border-color: var(--green);
  background: rgba(34, 197, 94, .03);
  opacity: .7;
}
.schedule-item.schedule-cancelled {
  opacity: .5;
}
.schedule-script {
  font-size: 9px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}
.schedule-output {
  font-size: 9px;
  color: var(--green);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 6px;
  background: rgba(34, 197, 94, .06);
  border-radius: 4px;
  max-height: 60px;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-all;
}
.data-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.data-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  transition: border-color .2s;
}
.data-item:hover {
  border-color: rgba(255, 255, 255, .12);
}
.data-key {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  min-width: 100px;
  padding-top: 1px;
}
.data-value {
  flex: 1;
  font-size: 10px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 80px;
  overflow: hidden;
  line-height: 1.4;
}
.data-delete {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, color .15s;
  padding: 2px 4px;
}
.data-item:hover .data-delete {
  opacity: 1;
}
.data-delete:hover {
  color: var(--red);
}
.sidebar-agent {
  position: relative;
}
.sidebar-agent-delete {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all .15s;
}
.sidebar-agent:hover .sidebar-agent-delete {
  opacity: 1;
}
.sidebar-agent-delete:hover {
  color: var(--red);
  background: rgba(239, 68, 68, .15);
}
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.settings-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  width: 440px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: slideUp .2s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.settings-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.settings-close {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s;
}
.settings-close:hover {
  color: var(--text-1);
  background: var(--bg-3);
}
.settings-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
}
.settings-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: border-color .15s;
}
.settings-input:focus {
  border-color: var(--border-focus);
}
.settings-input:-moz-read-only {
  color: var(--text-3);
  cursor: default;
}
.settings-input:read-only {
  color: var(--text-3);
  cursor: default;
}
.settings-hint {
  font-size: 11px;
  color: var(--text-3);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-input);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-kbd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.kbd {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}
.msg.streaming .bubble {
  border: 1px solid rgba(139, 92, 246, .3);
  animation: streamPulse 2s ease-in-out infinite;
}
@keyframes streamPulse {
  0%,
    100% {
    border-color: rgba(139, 92, 246, .2);
  }
  50% {
    border-color: rgba(139, 92, 246, .5);
  }
}
.streaming-bubble {
  white-space: pre-wrap;
  word-break: break-word;
}
.stream-text {
  white-space: pre-wrap;
}
.stream-cursor {
  color: var(--purple);
  animation: blink 0.6s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.bubble .md-code-wrapper {
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.bubble .md-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.bubble .md-code-lang {
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bubble .md-copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
}
.bubble .md-copy-btn:hover {
  color: var(--text-1);
  border-color: var(--text-3);
  background: var(--bg-3);
}
.bubble .md-copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}
.bubble .md-code-wrapper .md-code-block {
  border: none;
  border-radius: 0;
  margin: 0;
}
.bubble .md-code-block {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-1);
}
.bubble .md-inline-code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: var(--amber);
}
.bubble strong {
  color: var(--text-1);
  font-weight: 600;
}
.bubble em {
  color: var(--text-2);
  font-style: italic;
}
.bubble a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bubble a:hover {
  color: var(--purple-light);
}
.bubble .md-heading {
  color: var(--text-1);
  font-weight: 600;
  margin: 12px 0 4px;
  line-height: 1.3;
}
.bubble h1.md-heading {
  font-size: 1.15em;
}
.bubble h2.md-heading {
  font-size: 1.05em;
}
.bubble h3.md-heading {
  font-size: 0.95em;
}
.bubble h4.md-heading {
  font-size: 0.9em;
  color: var(--text-2);
}
.bubble .md-list {
  margin: 6px 0;
  padding-left: 20px;
}
.bubble .md-list li {
  margin: 2px 0;
  line-height: 1.5;
}
.bubble .md-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
@media (max-width: 768px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .overview {
    height: 30vh;
  }
}
.skill-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.skill-chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255 255 255 / 0.08);
  background: rgba(255 255 255 / 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}
.skill-chip:hover {
  background: rgba(255 255 255 / 0.08);
  border-color: rgba(255 255 255 / 0.15);
}
.skill-chip.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}
.skills-panel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.skill-panel-card {
  background: rgba(255 255 255 / 0.03);
  border: 1px solid rgba(255 255 255 / 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.skill-panel-card:hover {
  border-color: rgba(255 255 255 / 0.12);
  background: rgba(255 255 255 / 0.04);
}
.skill-panel-card.active {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}
.skill-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 12px;
}
.skill-panel-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.skill-panel-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.skill-panel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.skill-panel-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.skill-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.skill-panel-count {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  opacity: 0.6;
}
.skill-toggle-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255 255 255 / 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.skill-toggle-btn.off {
  background: rgba(255 255 255 / 0.04);
  color: var(--text-muted);
}
.skill-toggle-btn.off:hover {
  background: rgba(255 255 255 / 0.08);
}
.skill-toggle-btn.on {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}
.skill-toggle-btn.on:hover {
  background: rgba(139, 92, 246, 0.35);
}
.skill-panel-content {
  border-top: 1px solid rgba(255 255 255 / 0.06);
  padding: 10px 14px 12px;
}
.skill-content-preview {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0 0 0 / 0.15);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255 255 255 / 0.04);
}
.skill-panel-preview {
  padding: 0 14px 10px;
}
.skill-panel-preview code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1.5;
}
.process-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
}
.process-summary {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 4px 6px;
  border-bottom: 1px solid rgba(255 255 255 / 0.04);
  margin-bottom: 2px;
}
.process-count {
  color: #34d399;
  font-weight: 600;
}
.process-count-dim {
  color: var(--text-muted);
  opacity: 0.6;
}
.process-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255 255 255 / 0.02);
  border: 1px solid rgba(255 255 255 / 0.04);
  transition: all 0.15s ease;
  gap: 10px;
}
.process-item:hover {
  background: rgba(255 255 255 / 0.05);
  border-color: rgba(255 255 255 / 0.08);
}
.process-item.process-stopped {
  opacity: 0.5;
}
.process-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.proc-dot {
  font-size: 8px;
  flex-shrink: 0;
}
.proc-dot.proc-running {
  color: #34d399;
  text-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}
.proc-dot.proc-stopped {
  color: #6b7280;
}
.proc-dot.proc-crashed {
  color: #ef4444;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
.process-info {
  flex: 1;
  min-width: 0;
}
.process-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.process-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.process-group-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.process-port-link {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #a78bfa;
  text-decoration: none;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.1);
  transition: all 0.15s;
  flex-shrink: 0;
}
.process-port-link:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}
.process-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.process-cmd {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.6;
}
.process-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.process-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255 255 255 / 0.08);
  border-radius: 6px;
  background: rgba(255 255 255 / 0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  transition: all 0.15s;
}
.process-btn.stop:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.process-btn.start:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}
.memory-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.memory-empty-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
}
.memory-empty-hint code {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}
.memory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}
.memory-core-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(99, 102, 241, 0.06);
  margin-bottom: 12px;
}
.memory-core-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.memory-core-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
}
.memory-core-subtitle {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}
.memory-capture-btn {
  background: rgba(99, 102, 241, 0.14);
  color: var(--text-1);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.memory-capture-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}
.memory-core-value {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-2);
  max-height: 260px;
  overflow: auto;
}
.memory-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.memory-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.memory-group-icon {
  font-size: 12px;
}
.memory-group-count {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  margin-left: auto;
}
.memory-item {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  transition: background 0.15s, border-color 0.15s;
}
.memory-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}
.memory-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.memory-key {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
}
.memory-value {
  font-size: 12px;
  color: #9ca3af;
  word-break: break-word;
  line-height: 1.5;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  white-space: pre-wrap;
}
.memory-value.json {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.08);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.memory-delete {
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.memory-item:hover .memory-delete {
  opacity: 1;
}
.memory-delete:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.plugin-install-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 24px;
  max-width: 700px;
}
.plugin-install-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-1);
}
.plugin-install-icon {
  font-size: 18px;
}
.plugin-install-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plugin-install-row {
  display: flex;
  gap: 8px;
}
.plugin-input {
  flex: 1;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-1);
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  outline: none;
  transition: border-color 0.2s;
}
.plugin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.plugin-input::-moz-placeholder {
  color: var(--text-3);
}
.plugin-input::placeholder {
  color: var(--text-3);
}
.plugin-install-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.plugin-install-btn:hover {
  opacity: 0.9;
}
.plugin-install-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.plugin-empty {
  text-align: center;
  padding: 48px 24px;
  max-width: 700px;
}
.plugin-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.plugin-empty h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.plugin-empty p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 32px;
}
.plugin-suggestions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.plugin-suggestion {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  transition: border-color 0.2s, background 0.2s;
}
.plugin-suggestion:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.04);
}
.plugin-suggestion-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.plugin-suggestion-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
}
.plugin-suggestion-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.plugin-suggestion-btn {
  margin-left: auto;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.plugin-suggestion-btn:hover {
  opacity: 0.85;
}
.plugin-suggestion-soon {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
  font-style: italic;
  white-space: nowrap;
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 900px;
}
.plugin-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.plugin-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
.plugin-running {
  border-color: rgba(34, 197, 94, 0.3);
}
.plugin-error {
  border-color: rgba(239, 68, 68, 0.3);
}
.plugin-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plugin-card-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.plugin-card-info {
  flex: 1;
  min-width: 0;
}
.plugin-card-name {
  font-weight: 600;
  font-size: 16px;
}
.plugin-card-pkg {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.plugin-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.badge-gray {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}
.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.plugin-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.plugin-card-port {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.plugin-card-error {
  font-size: 12px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
}
.plugin-card-config {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
}
.plugin-config-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.plugin-config-key {
  font-family: 'JetBrains Mono', monospace;
  color: #93c5fd;
  font-weight: 600;
}
.plugin-config-value {
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.plugin-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.plugin-action-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.plugin-action-btn:hover {
  color: var(--text-1);
  border-color: var(--accent);
}
.plugin-action-btn.start:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.plugin-action-btn.stop:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.plugin-action-btn.open:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}
.plugin-action-btn.remove:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.plugin-card-version {
  font-size: 10px;
  color: var(--text-3);
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.config-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .15s ease;
}
.config-modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(99, 102, 241, .08);
  animation: slideUp .2s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.config-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.config-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}
.config-modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.config-modal-close:hover {
  background: rgba(99, 102, 241, .1);
  color: var(--text-1);
}
.config-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.config-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.config-field-required {
  color: #ef4444;
  font-weight: bold;
}
.config-field-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}
.config-field-input {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-1);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.config-field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
.config-field-input::-moz-placeholder {
  color: var(--text-3);
  opacity: .6;
}
.config-field-input::placeholder {
  color: var(--text-3);
  opacity: .6;
}
.config-field-textarea {
  resize: vertical;
  min-height: 60px;
}
.config-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.config-modal-cancel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s;
}
.config-modal-cancel:hover {
  background: var(--bg-3);
}
.config-modal-save {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
}
.config-modal-save:hover {
  opacity: .9;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .3);
}
.config-modal-save:disabled {
  opacity: .5;
  cursor: not-allowed;
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
.sidebar-toggle {
  font-size: 16px !important;
  margin-right: 4px;
}
.agent-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: rgba(12, 12, 18, 0.98);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}
.agent-sidebar.open {
  transform: translateX(0);
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
}
.sidebar-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-close:hover {
  background: var(--bg-3);
  color: var(--text-1);
}
.sidebar-agents-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.sidebar-agent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.sidebar-agent-card:hover {
  background: var(--bg-3);
}
.sidebar-agent-card.active {
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.sidebar-agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.sidebar-agent-dot.active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.sidebar-agent-info {
  flex: 1;
  min-width: 0;
}
.sidebar-agent-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}
.sidebar-agent-model {
  font-size: 10px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}
.sidebar-agent-delete {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.sidebar-agent-card:hover .sidebar-agent-delete {
  opacity: 1;
}
.sidebar-agent-delete:hover {
  color: var(--red);
}
.sidebar-new-btn {
  margin: 8px 12px 16px;
  padding: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--r);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sidebar-new-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
}
.gateway-page {
  display: contents;
}
.gateway-page>.main-area {
  grid-column: 3 / -1;
}
.session-sidebar {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.session-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.session-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  gap: 10px;
}
.session-empty-icon {
  font-size: 40px;
  opacity: 0.5;
  margin-bottom: 8px;
}
.session-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.session-empty-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 220px;
}
.session-empty-cta {
  margin-top: 4px;
  border: 1px solid rgba(99, 102, 241, .22);
  background: rgba(99, 102, 241, .1);
  color: var(--text-1);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.session-empty-cta:hover {
  background: rgba(99, 102, 241, .16);
  border-color: rgba(99, 102, 241, .32);
}
.session-empty-cta:active {
  transform: translateY(1px);
}
.session-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  border-left: 3px solid transparent;
  position: relative;
}
.session-item:hover {
  background: rgba(99, 102, 241, .06);
}
.session-item.active {
  background: rgba(99, 102, 241, .1);
  border-left-color: var(--accent);
}
.session-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-3);
}
.session-item-info {
  flex: 1;
  min-width: 0;
}
.session-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.session-type-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.session-type-web {
  color: var(--blue);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .25);
}
.session-type-telegram_bot {
  color: #29b6f6;
  background: rgba(41, 182, 246, .12);
  border: 1px solid rgba(41, 182, 246, .25);
}
.session-item-msgs {
  font-size: 10px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.session-item-actions {
  opacity: 0;
  transition: opacity .15s;
}
.session-item:hover .session-item-actions {
  opacity: 1;
}
.session-delete-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.session-delete-btn:hover {
  color: var(--red);
  background: rgba(239, 68, 68, .1);
}
.empty-state-session .empty-icon,
.empty-state-loading .empty-icon {
  font-size: 44px;
}
.empty-state-session h2,
.empty-state-loading h2 {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-1);
}
.empty-state-session p,
.empty-state-loading p {
  max-width: 420px;
}
.session-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.session-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  animation: slideUp .2s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.session-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
}
.session-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.session-modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.session-modal-close:hover {
  color: var(--text-1);
  background: var(--bg-3);
}
.session-modal-body {
  padding: 8px 24px 24px;
}
.session-modal-desc {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.session-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.session-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.session-type-card {
  background: var(--bg-1);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: inherit;
}
.session-type-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, .15);
}
.session-type-card-icon {
  font-size: 40px;
}
.session-type-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.session-type-card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.telegram-setup-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tg-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tg-step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.tg-step-content {
  flex: 1;
}
.tg-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.tg-step-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.tg-step-desc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.tg-step-desc a:hover {
  text-decoration: underline;
}
.tg-step-desc code {
  background: var(--bg-3);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
}
.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--text-2);
}
.btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, .3);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.search-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
}
.search-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  width: 560px;
  max-width: 92vw;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.15s ease-out;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.search-input::-moz-placeholder {
  color: var(--text-3);
}
.search-input::placeholder {
  color: var(--text-3);
}
.search-kbd {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-3);
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
  max-height: 350px;
}
.search-results::-webkit-scrollbar {
  width: 4px;
}
.search-results::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 2px;
}
.search-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.search-result-item {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.1s;
}
.search-result-item:hover,
.search-result-item.selected {
  background: var(--bg-3);
}
.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.search-role-user {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-role-assistant {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-result-time {
  font-size: 10px;
  color: var(--text-3);
}
.search-result-snippet {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-mark {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-1);
  border-radius: 2px;
  padding: 0 1px;
}
.search-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
}
.search-footer-hint {
  font-size: 10px;
  color: var(--text-3);
}
@keyframes searchFlash {
  0% {
    background: rgba(99, 102, 241, 0.3);
  }
  100% {
    background: transparent;
  }
}
.search-highlight {
  animation: searchFlash 2s ease-out;
}
@media (max-width: 768px) {
  .search-modal-overlay {
    padding-top: 5vh;
  }
  .search-modal {
    max-height: 80vh;
  }
}
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 200px;
    --nav-rail-w: 48px;
  }
  .page-container {
    padding: 24px 28px;
  }
  .page-header h1 {
    font-size: 22px;
  }
  .nav-rail-btn span {
    font-size: 9px;
  }
}
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
    --nav-rail-w: 0px;
  }
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .nav-rail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 0;
    background: var(--bg-1);
  }
  .nav-rail-top,
    .nav-rail-bottom {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }
  .nav-rail-bottom {
    display: none;
  }
  .nav-rail-btn {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .nav-rail-btn.active::before {
    display: none;
  }
  .nav-rail-btn svg {
    width: 20px;
    height: 20px;
  }
  .nav-rail-btn span {
    font-size: 9px;
  }
  .sidebar,
    .session-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    z-index: 200;
    transition: left 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }
  .sidebar.mobile-open,
    .session-sidebar.mobile-open {
    left: 0;
  }
  .mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    backdrop-filter: blur(2px);
  }
  .mobile-sidebar-overlay.visible {
    display: block;
  }
  .main-area {
    grid-column: 1 / -1;
    padding-bottom: 56px;
  }
  .gateway-page>.main-area {
    grid-column: 1 / -1;
  }
  .page-container {
    grid-column: 1 / -1;
    padding: 16px;
    padding-bottom: 72px;
  }
  .page-header {
    margin-bottom: 16px;
  }
  .page-header h1 {
    font-size: 20px;
  }
  .page-subtitle {
    font-size: 13px;
  }
  .agent-header {
    padding: 8px 12px;
    min-height: 44px;
  }
  .agent-header-name {
    font-size: 14px;
  }
  .agent-header-right {
    gap: 4px;
  }
  .model-select-wrapper {
    max-width: 120px;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-2);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background 0.15s;
  }
  .mobile-menu-btn:hover {
    background: var(--bg-3);
    color: var(--text-1);
  }
  .chat-section {
    padding: 0;
  }
  .chat-area {
    padding: 8px 12px;
  }
  .input-area {
    padding: 8px 12px 12px;
  }
  .input-row {
    gap: 8px;
  }
  .chat-input {
    font-size: 15px;
    padding: 10px 14px;
  }
  .overview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .overview.mobile-expanded {
    max-height: 50vh;
    overflow-y: auto;
  }
  .overview-resize {
    display: none;
  }
  .metrics-bar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
  }
  .metric-item {
    font-size: 10px;
    padding: 3px 6px;
  }
  .skill-toggles {
    display: none;
  }
  .composition-templates {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .providers-grid,
    .providers-list {
    max-width: 100%;
  }
  .provider-card {
    padding: 12px;
  }
  .key-input-row {
    flex-direction: column;
  }
  .key-actions {
    flex-wrap: wrap;
  }
  .skills-list {
    gap: 8px;
  }
  .skill-card {
    padding: 12px;
  }
  .plugin-grid {
    grid-template-columns: 1fr;
  }
  .plugin-card {
    padding: 12px;
  }
  .session-modal {
    width: 95vw;
    max-height: 90vh;
  }
  .session-type-cards {
    grid-template-columns: 1fr;
  }
  .confirmation-actions {
    flex-direction: column;
    gap: 8px;
  }
  .confirm-btn {
    width: 100%;
  }
  .tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .tab-bar::-webkit-scrollbar {
    display: none;
  }
}
.mobile-menu-btn {
  display: none;
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .nav-rail {
      padding-bottom: env(safe-area-inset-bottom);
      height: calc(56px + env(safe-area-inset-bottom));
    }
    .main-area,
        .page-container {
      padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }
  }
}


/*# sourceMappingURL=style.css.map */
/*# sourceMappingURL=globals-c52ba735.css.map */