.agent-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg-void);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,212,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,245,212,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 4px rgba(0,245,212,0.6), 0 0 8px rgba(0,245,212,0.2);
  animation: star-twinkle var(--d, 4s) ease-in-out infinite var(--delay, 0s);
}
@keyframes star-twinkle {
  0%, 100% { opacity: var(--o, 0.4); transform: scale(1); }
  50% { opacity: calc(var(--o, 0.4) * 0.3); transform: scale(0.5); }
}
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 10;
  background: rgba(5,8,16,0.6);
  backdrop-filter: blur(8px);
}
.header-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; color: var(--text-primary); }
.title-bracket { color: var(--accent-cyan); opacity: 0.6; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast);
}
.btn-icon:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.btn-icon.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-bar { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.connected { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); animation: status-pulse-soft 2.6s ease-in-out infinite; }
.status-dot.disconnected { background: var(--text-dim); }
@keyframes status-pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
.nodes-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: grab;
}
.nodes-canvas.panning {
  cursor: grabbing;
  user-select: none;
}
.hud-panels {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  max-height: calc(100% - 36px);
  overflow: auto;
  padding-right: 4px;
}
.hud-panel {
  border: 1px solid rgba(0,245,212,0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.92), rgba(5, 9, 18, 0.86));
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 14px;
}
.hud-title {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.route-main {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.route-child {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}
.runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.runtime-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.runtime-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.runtime-item strong {
  font-size: 12px;
  color: var(--text-primary);
  word-break: break-word;
}
.runtime-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.runtime-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--accent-cyan);
}
.runtime-warning {
  color: var(--accent-amber);
}
.runtime-workspace {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-dim);
  word-break: break-all;
}
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-item {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,245,212,0.08);
  background: rgba(10, 18, 30, 0.78);
}
.stack-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-primary);
}
.stack-subline {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-dim);
  word-break: break-word;
}
.stack-empty {
  font-size: 11px;
  color: var(--text-dim);
}
.mini-section + .mini-section {
  margin-top: 12px;
}
.mini-title {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}
.event-severity {
  text-transform: uppercase;
  font-size: 10px;
}
.event-severity.warning {
  color: var(--accent-amber);
}
.event-severity.error {
  color: var(--accent-red);
}
.threshold-line {
  margin-top: 8px;
}
.candidate-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.candidate-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--accent-cyan);
  border: 1px solid rgba(0,245,212,0.12);
  background: rgba(0,245,212,0.06);
}
.canvas-controls {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(0,245,212,0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.92), rgba(5, 9, 18, 0.86));
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}
.control-chip {
  height: 36px;
  border: 1px solid rgba(0,245,212,0.12);
  background: rgba(9, 16, 28, 0.9);
  color: var(--text-secondary);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.control-chip:hover {
  border-color: rgba(0,245,212,0.3);
  color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0,245,212,0.08);
}
.zoom-chip { width: 36px; flex-shrink: 0; }
.chip-symbol { font-family: var(--font-display); font-size: 18px; line-height: 1; }
.zoom-readout { min-width: 72px; padding: 0 14px; }
.chip-value { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; color: var(--text-primary); }
.nodes-viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}
.nodes-stage {
  position: absolute;
  inset: 0;
  will-change: auto;
}
.canvas-aura,
.canvas-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.canvas-aura {
  background:
    radial-gradient(circle at 50% 18%, rgba(0,245,212,0.1) 0%, rgba(0,245,212,0.05) 20%, transparent 46%),
    radial-gradient(circle at 50% 62%, rgba(0,245,212,0.035) 0%, transparent 54%);
  filter: blur(12px);
  opacity: 0.72;
}
.canvas-scan {
  inset: -20% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,245,212,0.018) 42%, rgba(0,245,212,0.045) 50%, rgba(0,245,212,0.018) 58%, transparent 100%);
  animation: canvas-scan 11s linear infinite;
  opacity: 0.5;
}
@keyframes canvas-scan {
  from { transform: translateY(-18%); }
  to { transform: translateY(18%); }
}
.conn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.conn-path {
  fill: none;
  stroke: rgba(0,245,212,0.22);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0,245,212,0.06));
  animation: dash-flow 5.5s linear infinite;
}
.conn-path-sub {
  stroke-width: 1.2;
  stroke-opacity: 0.7;
}
@keyframes dash-flow { to { stroke-dashoffset: -48; } }
.conn-path.energized {
  stroke: color-mix(in srgb, var(--accent-cyan) 72%, var(--accent-amber) 28%);
  stroke-opacity: 0.62;
  stroke-width: 1.9;
  stroke-dasharray: none;
  filter: url(#lineGlow) drop-shadow(0 0 8px rgba(0,245,212,0.16));
  animation: line-flare 2.2s ease-in-out infinite alternate;
}
.conn-current {
  fill: none;
  stroke: rgba(232, 255, 255, 0.98);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 18 220;
  filter: drop-shadow(0 0 10px rgba(0,245,212,0.36)) drop-shadow(0 0 18px rgba(255,255,255,0.24));
  animation: current-flow 1.2s linear infinite;
}
.conn-current-sub {
  stroke-width: 2.6;
  stroke-dasharray: 14 180;
  animation-duration: 1s;
}
@keyframes line-flare {
  from { stroke-opacity: 0.38; }
  to { stroke-opacity: 0.72; }
}
@keyframes current-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -238; }
}
.node-card {
  position: absolute;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.node-sub.disabled { opacity: 0.35; cursor: not-allowed; }
.node-child { z-index: 2; }
.node-child .node-name,
.node-child .node-role,
.node-child .node-label {
  word-break: break-word;
}
.node-inner {
  width: 100%;
  height: 100%;
  background: rgba(13,21,37,0.92);
  border: 1px solid rgba(0,245,212,0.2);
  border-radius: var(--radius-md);
  padding: var(--node-padding-y, 14px) var(--node-padding-x, 16px);
  display: flex;
  flex-direction: column;
  gap: calc(3px * var(--node-scale, 1));
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.25s ease;
}
.node-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.045) 32%, transparent 44%);
  transform: translateX(-150%);
  opacity: 0;
  pointer-events: none;
}
.node-master .node-inner::after {
  content: '';
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(0,245,212,0.1) 0%, rgba(0,245,212,0.045) 28%, transparent 62%);
  opacity: 0.72;
  animation: core-breathe 5.6s ease-in-out infinite;
  pointer-events: none;
}
.node-master .node-inner {
  background: linear-gradient(135deg, rgba(0,245,212,0.06) 0%, rgba(13,21,37,0.95) 100%);
  border-color: rgba(0,245,212,0.3);
}
.node-card:hover .node-inner {
  border-color: rgba(0,245,212,0.42);
  box-shadow: 0 8px 28px rgba(0,245,212,0.11), 0 0 0 1px rgba(0,245,212,0.08);
}
.node-card:hover .node-inner::before {
  opacity: 0.9;
  animation: node-sheen 1.45s ease;
}
.node-card.selected .node-inner {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0,245,212,0.26), 0 0 18px rgba(0,245,212,0.14);
}
@keyframes node-sheen {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}
@keyframes core-breathe {
  0%, 100% { opacity: 0.46; transform: scale(0.98); }
  50% { opacity: 0.8; transform: scale(1.01); }
}
.node-corner { position: absolute; width: var(--node-corner-size, 10px); height: var(--node-corner-size, 10px); opacity: 0.6; }
.node-corner.tl { top: calc(6px * var(--node-scale, 1)); left: calc(6px * var(--node-scale, 1)); border-top: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); border-left: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); }
.node-corner.tr { top: calc(6px * var(--node-scale, 1)); right: calc(6px * var(--node-scale, 1)); border-top: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); border-right: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); }
.node-corner.bl { bottom: calc(6px * var(--node-scale, 1)); left: calc(6px * var(--node-scale, 1)); border-bottom: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); border-left: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); }
.node-corner.br { bottom: calc(6px * var(--node-scale, 1)); right: calc(6px * var(--node-scale, 1)); border-bottom: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); border-right: calc(1.5px * var(--node-scale, 1)) solid var(--accent-cyan); }
.node-status { position: absolute; top: calc(10px * var(--node-scale, 1)); right: calc(10px * var(--node-scale, 1)); width: var(--node-status-size, 10px); height: var(--node-status-size, 10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-ring { width: var(--node-status-ring-size, 8px); height: var(--node-status-ring-size, 8px); border-radius: 50%; }
.node-status.active::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(0,245,212,0.22);
  border-radius: 999px;
  animation: status-orbit 2.3s ease-out infinite;
}
.node-status.active .status-ring { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); animation: status-pulse 1.8s ease-in-out infinite; }
.node-status.idle .status-ring { background: var(--text-secondary); }
.node-status.disabled .status-ring { background: var(--text-dim); opacity: 0.4; }
@keyframes status-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes status-orbit {
  0% { transform: scale(0.5); opacity: 0.65; }
  100% { transform: scale(1.3); opacity: 0; }
}
.node-label { font-family: var(--font-display); font-size: calc(8px * var(--node-scale, 1)); letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 1px; }
.node-master .node-label { color: rgba(0,245,212,0.5); }
.node-name { font-family: var(--font-display); font-size: calc(15px * var(--node-scale, 1)); font-weight: 700; letter-spacing: 0.08em; color: var(--accent-cyan); line-height: 1.2; }
.node-master .node-name { font-size: calc(18px * var(--node-scale, 1)); }
.node-role { font-family: var(--font-mono); font-size: calc(10px * var(--node-scale, 1)); color: var(--accent-amber); letter-spacing: 0.05em; }
.node-desc {
  font-family: var(--font-mono); font-size: calc(10px * var(--node-scale, 1)); color: var(--text-secondary);
  line-height: 1.5; flex: 1; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; text-overflow: ellipsis;
}
.node-child .node-desc { -webkit-line-clamp: 2; }
.node-footer { display: flex; align-items: center; gap: calc(8px * var(--node-scale, 1)); flex-wrap: wrap; margin-top: 2px; }
.node-stat { display: flex; align-items: center; gap: calc(4px * var(--node-scale, 1)); font-family: var(--font-mono); font-size: calc(9px * var(--node-scale, 1)); }
.stat-label { color: var(--text-dim); }
.stat-val { color: var(--accent-cyan); font-weight: 600; }
.node-task-tag {
  font-family: var(--font-mono); font-size: calc(9px * var(--node-scale, 1)); color: var(--accent-amber);
  background: rgba(249,168,37,0.08); border: 1px solid rgba(249,168,37,0.18);
  border-radius: 3px; padding: calc(1px * var(--node-scale, 1)) calc(6px * var(--node-scale, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(120px * var(--node-scale, 1));
  box-shadow: 0 0 10px rgba(249,168,37,0.05);
  animation: task-tag-glow 3.4s ease-in-out infinite;
}
.node-idle { font-family: var(--font-mono); font-size: calc(9px * var(--node-scale, 1)); color: var(--text-dim); font-style: italic; }
.rel-label {
  position: absolute; font-family: var(--font-mono); font-size: calc(8px * var(--node-scale, 1)); color: var(--text-dim);
  letter-spacing: 0.05em; pointer-events: none; left: 50%; transform: translateX(-50%);
  bottom: var(--node-rel-offset, -20px); white-space: nowrap;
}
@keyframes task-tag-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(249,168,37,0.04); }
  50% { box-shadow: 0 0 14px rgba(249,168,37,0.1); }
}
.config-drawer {
  position: fixed; top: 0; right: 0; width: 420px; height: 100%;
  background: rgba(5,8,16,0.97); border-left: 1px solid var(--border-mid);
  backdrop-filter: blur(20px); z-index: 100; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-dim); }
.drawer-title { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.15em; color: var(--accent-cyan); }
.btn-close {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-dim); border-radius: var(--radius-sm);
  color: var(--text-dim); cursor: pointer; transition: all var(--transition-fast);
}
.btn-close:hover { border-color: var(--accent-red); color: var(--accent-red); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.flex-1 { flex: 1; display: flex; flex-direction: column; }
.form-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; color: var(--text-dim); }
.form-input {
  background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--text-primary); font-family: var(--font-mono); font-size: 12px; outline: none;
  transition: border-color var(--transition-fast);
}
.form-input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 1px rgba(0,245,212,.1); }
.form-textarea {
  background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--text-primary); font-family: var(--font-mono); font-size: 11px;
  outline: none; resize: none; line-height: 1.5; transition: border-color var(--transition-fast);
}
.form-textarea:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 1px rgba(0,245,212,.1); }
.code-textarea { font-size: 10px; flex: 1; }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent-cyan); transition: color .2s; }
.toggle-label.dim { color: var(--text-dim); }
.toggle-btn { width: 44px; height: 22px; background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: 11px; padding: 2px; cursor: pointer; transition: all .25s; }
.toggle-btn.active { background: rgba(0,245,212,.15); border-color: var(--accent-cyan); }
.toggle-knob { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--text-dim); transition: all .25s; }
.toggle-btn.active .toggle-knob { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); transform: translateX(22px); }
.drawer-actions { display: flex; gap: 12px; padding-top: 8px; }
.linked-skills-group {
  padding: 12px;
  border: 1px solid rgba(0,245,212,0.12);
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.6);
}
.linked-skill-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.linked-skill-package {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,245,212,0.12);
  background: rgba(0,245,212,0.06);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
}
.linked-skill-package strong { color: var(--accent-cyan); font-weight: 600; }
.linked-skills-state {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}
.linked-skills-error { color: var(--accent-red); }
.linked-skill-list { display: flex; flex-direction: column; gap: 10px; }
.linked-skill-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0,245,212,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.linked-skill-checkbox {
  margin-top: 2px;
  accent-color: var(--accent-cyan);
}
.linked-skill-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.linked-skill-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linked-skill-name { color: var(--text-primary); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.05em; }
.linked-skill-agent-type {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.linked-skill-desc { color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; }
.linked-skill-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.linked-skill-tool {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(249,168,37,0.08);
  border: 1px solid rgba(249,168,37,0.16);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 10px;
}
.btn-secondary,.btn-primary {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-sm); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; cursor: pointer; transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary { background: transparent; border: 1px solid var(--border-mid); color: var(--text-secondary); }
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-primary { background: rgba(0,245,212,.1); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); }
.btn-primary:hover { background: rgba(0,245,212,.2); box-shadow: var(--glow-cyan); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-loader { width: 12px; height: 12px; border: 1.5px solid transparent; border-top-color: var(--accent-cyan); border-radius: 50%; animation: spin .6s linear infinite; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
}
.modal-card {
  width: 480px; max-height: 80vh; background: rgba(10,15,26,.98); border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,245,212,.05);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-dim); }
.modal-title { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.15em; color: var(--accent-cyan); }
.modal-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.modal-footer { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border-dim); }
