/* ========================================================
   KEVIN CITY AGENT HQ — NEXT-GEN CYBER DASHBOARD STYLES
   ======================================================== */

:root {
  --hq-bg: #070b14;
  --hq-card-bg: rgba(15, 23, 42, 0.85);
  --hq-border: rgba(56, 189, 248, 0.25);
  --hq-border-hover: rgba(56, 189, 248, 0.6);
  --hq-cyan: #00f2fe;
  --hq-blue: #38bdf8;
  --hq-green: #10b981;
  --hq-yellow: #f59e0b;
  --hq-purple: #a855f7;
  --hq-pink: #ec4899;
  --hq-text-main: #f8fafc;
  --hq-text-sub: #94a3b8;
  --hq-text-muted: #64748b;
  --font-main: 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-code: 'Chakra Petch', sans-serif;
}

body.theme-cyber-hq {
  margin: 0;
  padding: 0;
  background: var(--hq-bg) !important;
  color: var(--hq-text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ========================================================
   1. GLOBAL TOP HUD HEADER
   ======================================================== */
.hq-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(7, 11, 20, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hq-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hq-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hq-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.hq-brand-title .hq-title-main {
  font-family: var(--font-code);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hq-sub-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--hq-cyan);
  color: var(--hq-cyan);
  font-weight: 700;
}

.hq-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--hq-text-sub);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hq-green);
  box-shadow: 0 0 10px var(--hq-green);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hq-tag.demo-tag {
  background: #2563eb;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
}

/* Metric Status Chips */
.hq-metric-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-active { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-standby { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.dot-idle { background: #64748b; }
.dot-offline { background: #ef4444; }

.chip-label {
  color: var(--hq-text-muted);
  font-weight: 700;
}

.chip-val {
  color: #ffffff;
  font-weight: 800;
}

/* Header Right */
.hq-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hq-top-floor-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.floor-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  animation: pulse-green 1.2s infinite;
}

.lm-badge {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--hq-cyan);
  color: var(--hq-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.hq-voice-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-voice-toggle {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-voice-toggle:hover {
  border-color: var(--hq-cyan);
  color: #ffffff;
}

.btn-voice-toggle.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 70, 229, 0.3));
  border-color: var(--hq-cyan);
  color: var(--hq-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.btn-voice-toggle.speaking {
  animation: pulse-glow 0.8s infinite alternate;
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 8px #00f2fe; }
  to { box-shadow: 0 0 20px #00f2fe; }
}

/* ========================================================
   2. TOP NAV TAB SWITCHER
   ======================================================== */
.hq-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hq-text-sub);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.25));
  border-color: var(--hq-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.tab-badge {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--hq-cyan);
}

.hq-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hq-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hq-action:hover {
  background: rgba(30, 41, 59, 1);
  border-color: var(--hq-cyan);
}

.patrol-radar {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-green 1s infinite;
}

/* ========================================================
   3. MAIN WORKSPACE & TAB CONTENTS
   ======================================================== */
.hq-main-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 20px;
  padding: 20px 24px;
  box-sizing: border-box;
}

.hq-view-container {
  min-width: 0;
}

.hq-tab-content {
  display: none;
}

.hq-tab-content.active {
  display: block;
  animation: fadeInTab 0.25s ease-out;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   TAB 1: 10 DEPARTMENTS MATRIX GRID
   ======================================================== */
.org-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.org-title-group h3 {
  margin: 0;
  font-family: var(--font-code);
  font-size: 1.15rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-status {
  font-size: 0.7rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.org-title-group p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--hq-text-sub);
}

.org-filter-pills {
  display: flex;
  gap: 6px;
}

.org-filter-pills .pill {
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hq-text-sub);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.org-filter-pills .pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--hq-cyan);
  color: var(--hq-cyan);
  font-weight: 700;
}

.dept-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.dept-card {
  background: var(--hq-card-bg);
  border: 1px solid var(--hq-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dept-card:hover {
  border-color: var(--hq-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15);
}

.dept-card.highlight-glow {
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: inset 0 0 16px rgba(0, 242, 254, 0.08);
}

.dept-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dept-name-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-icon {
  font-size: 1.5rem;
}

.dept-name-box h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dept-sub {
  font-size: 0.7rem;
  color: var(--hq-cyan);
  font-family: var(--font-mono);
}

.dept-head-tag {
  font-size: 0.72rem;
  color: var(--hq-text-muted);
}

.dept-total-count {
  text-align: right;
}

.dept-total-count strong {
  font-size: 1.3rem;
  color: #ffffff;
  font-family: var(--font-mono);
  display: block;
  line-height: 1;
}

.dept-total-count small {
  font-size: 0.65rem;
  color: var(--hq-text-muted);
}

.dept-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: rgba(7, 11, 20, 0.7);
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.stat-col .val {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.stat-col .lbl {
  font-size: 0.65rem;
  color: var(--hq-text-muted);
}

.num-focus { color: #22c55e; }
.num-act { color: #38bdf8; }
.num-idle { color: #94a3b8; }

.dept-progress-bar {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #0284c7, #00f2fe);
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
}

.dept-live-desks-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(7, 11, 20, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 6px;
}

.desk-tag {
  font-size: 0.72rem;
  color: var(--hq-cyan);
  font-family: var(--font-mono);
}

.desk-tag span {
  color: #e2e8f0;
}

.dept-card-footer {
  margin-top: auto;
}

.btn-dept-focus {
  width: 100%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--hq-cyan);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dept-focus:hover {
  background: var(--hq-cyan);
  color: #000000;
}

/* ========================================================
   TAB 2: LIVE DESKS & 2.5D ROOMS
   ======================================================== */
.live-rooms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rooms-title-group h3 {
  margin: 0;
  font-family: var(--font-code);
  font-size: 1.15rem;
  color: #ffffff;
}

.rooms-title-group p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--hq-text-sub);
}

.patrol-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid var(--hq-cyan);
  color: var(--hq-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hq-cyan);
  box-shadow: 0 0 10px var(--hq-cyan);
  animation: pulse-green 1.2s infinite;
}

.live-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.live-room-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.live-room-box.active-room {
  border-color: var(--hq-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(7, 11, 20, 0.98));
}

.room-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.room-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-floor {
  font-size: 0.72rem;
  color: var(--hq-text-muted);
  font-family: var(--font-mono);
}

.room-status-badge {
  font-size: 0.72rem;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.desks-canvas-box {
  background: #070b14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
}

.agent-desk-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.desk-station {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
}

.agent-avatar {
  position: relative;
}

.avatar-head {
  font-size: 1.8rem;
  display: inline-block;
  animation: floatHead 2s infinite ease-in-out alternate;
}

@keyframes floatHead {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.agent-tag {
  position: absolute;
  bottom: -4px;
  right: -6px;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
}

.agent-tag.lead { background: #eab308; color: #000; }
.agent-tag.pro { background: #3b82f6; color: #fff; }
.agent-tag.junior { background: #10b981; color: #000; }

.agent-pc {
  width: 32px;
  height: 20px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pc-screen {
  width: 24px;
  height: 12px;
  background: #0284c7;
  border-radius: 2px;
  animation: screenBlink 1.5s infinite alternate;
}

@keyframes screenBlink {
  0% { opacity: 0.6; background: #0284c7; }
  100% { opacity: 1; background: #38bdf8; }
}

.agent-bubble {
  font-size: 0.65rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================
   TAB 3: 36 PROJECTS MATRIX GRID
   ======================================================== */
.project-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.proj-title-group h3 {
  margin: 0;
  font-family: var(--font-code);
  font-size: 1.15rem;
  color: #ffffff;
}

.proj-title-group p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--hq-text-sub);
}

.proj-stats-pills {
  display: flex;
  gap: 6px;
}

.proj-pill {
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hq-text-sub);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.proj-pill.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 6px;
}

.proj-card {
  background: var(--hq-card-bg);
  border: 1px solid var(--hq-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.proj-card:hover {
  border-color: var(--hq-cyan);
  transform: translateY(-2px);
}

.proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proj-id {
  font-size: 0.68rem;
  color: var(--hq-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.proj-status-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.proj-status-tag.live { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.proj-status-tag.local { background: rgba(234, 179, 8, 0.2); color: #eab308; }

.proj-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.proj-desc {
  font-size: 0.72rem;
  color: var(--hq-text-sub);
  line-height: 1.3;
}

.proj-agents-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.proj-avatars {
  display: flex;
  margin-left: 6px;
}

.proj-avatars span {
  font-size: 0.9rem;
  margin-left: -6px;
  border: 1px solid #0f172a;
  border-radius: 50%;
  background: #1e293b;
}

.proj-count {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--hq-cyan);
  font-weight: 700;
}

/* ========================================================
   RIGHT SIDEBAR: AI VOICE & COMMAND CONSOLE
   ======================================================== */
.hq-sidebar-console {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--hq-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  position: sticky;
  top: 130px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(7, 11, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #ffffff;
}

.console-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.console-status-pill.on {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.console-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.console-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-card {
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  animation: fadeInMsg 0.2s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-card.msg-pet {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #f1f5f9;
}

.msg-card.msg-user {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #ffffff;
  align-self: flex-end;
  max-width: 90%;
}

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--hq-cyan);
}

.msg-time {
  font-size: 0.68rem;
  color: var(--hq-text-muted);
  font-weight: normal;
}

/* Mini Comm Stream */
.hq-comm-stream {
  background: #070b14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.comm-stream-title {
  color: var(--hq-cyan);
  font-weight: 800;
  margin-bottom: 4px;
}

.comm-stream-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 70px;
  overflow-y: hidden;
}

.comm-row {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-from { color: #38bdf8; font-weight: 700; }
.c-to { color: #a855f7; font-weight: 700; }

/* Quick Command Pills */
.quick-cmd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.95);
}

.q-pill {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-pill:hover {
  background: var(--hq-cyan);
  color: #000000;
  border-color: var(--hq-cyan);
}

/* Console Input Bar */
.console-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #070b14;
}

.console-input-bar input {
  flex: 1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.console-input-bar input:focus {
  border-color: var(--hq-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.btn-hq-send {
  background: linear-gradient(135deg, #0284c7, #00f2fe);
  border: none;
  color: #000000;
  font-weight: 900;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-hq-send:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hq-main-layout {
    grid-template-columns: 1fr;
  }
  .hq-sidebar-console {
    position: static;
    height: 500px;
  }
}
