.tactical-panel {
  background: #08080b;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  color: #e0e0e0;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.tactical-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.target-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-indicator h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #fff;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.agent-glow { background: #00e5ff; box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff; }
.fleet-glow { background: #ff00ff; box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }

.tactical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.action-group {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 15px;
}

.action-group h3 {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button-grid button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.button-grid button:hover {
  background: rgba(187, 134, 252, 0.1);
  border-color: rgba(187, 134, 252, 0.5);
  color: #fff;
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
}

.button-grid button.btn-cyan { border-color: rgba(0, 229, 255, 0.3); color: #00e5ff; }
.button-grid button.btn-cyan:hover { background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }

.button-grid button.btn-amber { border-color: rgba(255, 171, 0, 0.3); color: #ffab00; }
.button-grid button.btn-amber:hover { background: rgba(255, 171, 0, 0.1); box-shadow: 0 0 15px rgba(255, 171, 0, 0.4); }

.button-grid button.btn-red { border-color: rgba(255, 23, 68, 0.3); color: #ff1744; }
.button-grid button.btn-red:hover { background: rgba(255, 23, 68, 0.1); box-shadow: 0 0 15px rgba(255, 23, 68, 0.4); }

.button-grid button.btn-magenta { border-color: rgba(255, 0, 255, 0.35); color: #ff00ff; }
.button-grid button.btn-magenta:hover { background: rgba(255, 0, 255, 0.12); box-shadow: 0 0 15px rgba(255, 0, 255, 0.35); }

.aggressive-group { border-color: rgba(255, 0, 255, 0.15); }
.aggressive-group h3 { color: #ff00ff; }
.action-group-hint { margin: -8px 0 12px; font-size: 0.75rem; color: #666; line-height: 1.35; }

.screenshot-viewer {
  margin-bottom: 20px;
  border: 1px solid #00e5ff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.viewer-header {
  background: #003344;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #00e5ff;
}

.viewer-header button {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem;
}

.screenshot-viewer img {
  width: 100%;
  display: block;
}

.tactical-bottom-row {
  display: flex;
  gap: 20px;
  height: 380px;
}

.drop-zone {
  flex: 1;
  border: 2px dashed rgba(255, 0, 255, 0.3);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 255, 0.02);
  transition: all 0.3s;
}

.drop-zone.dragging {
  border-color: #ff00ff;
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.drop-icon { font-size: 2rem; margin-bottom: 10px; }
.drop-zone p { margin: 0; color: #ff00ff; font-weight: bold; }
.drop-zone small { color: #888; margin-top: 5px; }

.master-terminal {
  flex: 2;
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  font-family: 'Consolas', 'Courier New', monospace;
}

.terminal-output {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  color: #00ff00;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.terminal-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: #0a0014;
  border-bottom: 1px solid rgba(0,229,255,0.15);
  flex-shrink: 0;
}
.terminal-title { font-size: 0.7rem; color: #00e5ff; letter-spacing: 0.06em; font-weight: bold; }
.terminal-clear-btn { background: none; border: 1px solid #333; color: #555; font-size: 0.65rem; padding: 2px 8px; border-radius: 3px; cursor: pointer; }
.terminal-clear-btn:hover { border-color: #888; color: #ccc; }

.terminal-placeholder { color: #555; font-style: italic; padding: 0; }

.log-line.log-ok   { color: #00ff88; }
.log-line.log-err  { color: #ff4444; }
.log-line.log-live { color: #888; font-size: 0.78rem; border-top: 1px solid rgba(255,255,255,0.03); padding-top: 2px; }
.log-line.log-warn { color: #ffaa00; }

.terminal-input-bar { display: flex; border-top: 1px solid #333; background: #0a0a0a; }
.terminal-input-bar .prompt { color: #ff00ff; padding: 10px; font-weight: bold; }
.terminal-input-bar input { flex: 1; background: transparent; border: none; color: #fff; font-family: inherit; outline: none; }
.terminal-input-bar button { background: #333; border: none; color: #fff; padding: 0 15px; cursor: pointer; font-weight: bold; }
.terminal-input-bar button:hover { background: #00e5ff; color: #000; }
.terminal-input-bar button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Upgrade section */
.upgrade-group { grid-column: 1 / -1; }

.upgrade-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.upgrade-select {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  color: #e0e0e0;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: 'Consolas', monospace;
  outline: none;
}

.upgrade-select:focus { border-color: var(--neon-cyan, #00e5ff); }

.upgrade-btn {
  white-space: nowrap;
  padding: 6px 18px;
  font-size: 0.82rem;
}

.log-line { line-height: 1.45; word-break: break-all; }

/* Offline & busy badges in header */
.offline-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255,40,40,0.2);
  border: 1px solid rgba(255,40,40,0.5);
  border-radius: 4px;
  color: #ff6666;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.busy-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(255,171,0,0.2);
  border: 1px solid rgba(255,171,0,0.4);
  border-radius: 4px;
  color: #ffcc44;
  animation: pulse-amber 1.2s ease-in-out infinite;
}
.offline-dot { background: #555; box-shadow: 0 0 6px #555; }

@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* WOL section */
.wol-row { display: flex; flex-direction: column; gap: 0.5rem; }
.wol-toggle {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
  color: #00e5ff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.wol-toggle:hover { background: rgba(0,229,255,0.12); }
.wol-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.wol-mac-input {
  flex: 1;
  min-width: 220px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 4px;
  color: #e0e0e0;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: 'Consolas', monospace;
  outline: none;
}
.wol-mac-input:focus { border-color: #00e5ff; }
.wol-form button { white-space: nowrap; padding: 6px 14px; font-size: 0.8rem; }

/* Compact mode extras */
.compact-offline-banner {
  font-size: 0.72rem;
  color: #ff6666;
  background: rgba(255,40,40,0.1);
  border: 1px solid rgba(255,40,40,0.3);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 6px;
}
.compact-terminal {
  margin-top: 6px;
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 5px 8px;
  font-family: 'Consolas', monospace;
  font-size: 0.72rem;
  max-height: 80px;
  overflow-y: auto;
}
.compact-log-line {
  color: #aaa;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-all;
}
.compact-log-line:last-child { color: #e0e0e0; }