/* ==============================================================================
   🏢 KANTOR AI AGENT VIRTUAL — RETRO CYBERPUNK PIXEL ART DESIGN SYSTEM
   ============================================================================== */

:root {
  --bg-dark: #080c14;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.85);

  --pixel-border: #000000;
  --pixel-cyan: #00f0ff;
  --pixel-green: #10b981;
  --pixel-purple: #a855f7;
  --pixel-gold: #f59e0b;
  --pixel-pink: #ec4899;
  --pixel-red: #ef4444;

  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --font-pixel: "Press Start 2P", monospace;
  --font-mono: "VT323", monospace;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Subtle Retro Scanlines */
.crt-filter::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography Utilities */
.pixel-text {
  font-family: var(--font-pixel);
  letter-spacing: -0.5px;
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.text-cyan { color: var(--pixel-cyan); }
.text-green { color: var(--pixel-green); }
.text-purple { color: var(--pixel-purple); }
.text-gold { color: var(--pixel-gold); }
.text-amber { color: #f59e0b; }

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 14, 26, 0.95);
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 0 rgba(0, 240, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

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

.pixel-icon {
  font-size: 2rem;
  image-rendering: pixelated;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.brand .title {
  font-size: 0.95rem;
  color: var(--pixel-cyan);
  text-shadow: 2px 2px 0 #000;
}

.brand .subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.system-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  padding: 6px 12px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-size: 0.75rem;
  font-weight: 700;
}

.stat-pill .label {
  color: var(--text-muted);
}

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

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; }
}

/* NAVIGATION FLOOR TABS */
.floor-nav {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  background: #090e1a;
  border-bottom: 2px solid #1e293b;
  overflow-x: auto;
  scrollbar-width: none;
}

.floor-nav::-webkit-scrollbar { display: none; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1e293b;
  color: var(--text-dim);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: #334155;
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}

.nav-btn.active {
  background: var(--pixel-cyan);
  color: #000;
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
  font-weight: 800;
}

/* MAIN VIEWPORT */
.viewport-container {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.office-section, .kanban-section, .deliverables-section {
  display: none;
}

.active-view {
  display: block !important;
  animation: fadeIn 0.25s ease;
}

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

/* FLOOR BLOCKS */
.floor-block {
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease;
}

.floor-block:hover {
  border-color: #334155;
}

.floor-3-block { border-left: 8px solid var(--pixel-gold); }
.floor-2-block { border-left: 8px solid var(--pixel-purple); }
.floor-1-block { border-left: 8px solid var(--pixel-cyan); }

.floor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #1e293b;
  flex-wrap: wrap;
  gap: 12px;
}

.floor-badge {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 6px 12px;
  color: #000;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
}

.floor-badge.gold { background: var(--pixel-gold); }
.floor-badge.purple { background: var(--pixel-purple); color: #fff; }
.floor-badge.cyan { background: var(--pixel-cyan); }

.floor-title-wrap {
  flex: 1;
  margin-left: 14px;
}

.floor-title {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 4px;
}

.floor-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.channel-tag {
  background: #111827;
  padding: 6px 12px;
  border: 2px solid #000;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--pixel-cyan);
}

/* AGENT CARDS & ROOM GRIDS */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #131c31;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.agent-card:hover {
  background: #1e2942;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  border-color: var(--pixel-cyan);
}

.pixel-avatar-box {
  width: 72px;
  height: 72px;
  background: #090e1a;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.pixel-avatar-art {
  font-size: 2.2rem;
  image-rendering: pixelated;
}

.agent-live-tag {
  position: absolute;
  bottom: -6px;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  background: #059669;
  color: #fff;
  padding: 2px 4px;
  border: 1px solid #000;
  white-space: nowrap;
}

.agent-info {
  flex: 1;
}

.agent-role-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 3px 8px;
  background: #f59e0b;
  color: #000;
  margin-bottom: 6px;
  border: 1px solid #000;
}

.agent-role-badge.purple { background: var(--pixel-purple); color: #fff; }
.agent-role-badge.cyan { background: var(--pixel-cyan); color: #000; }
.agent-role-badge.pink { background: var(--pixel-pink); color: #fff; }

.agent-name {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.agent-duty {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.4;
}

.agent-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-tag {
  background: #0f172a;
  color: var(--pixel-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 2px 6px;
  border: 1px solid #334155;
}

.tool-tag.gold {
  color: var(--pixel-gold);
  border-color: var(--pixel-gold);
}

.inspect-btn {
  background: #0f172a;
  color: var(--text-dim);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.agent-card:hover .inspect-btn {
  background: var(--pixel-cyan);
  color: #000;
}

/* PODS GRID (FLOOR 1) */
.pods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pod-card {
  background: #111a2e;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.pod-card:hover {
  background: #192642;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  border-color: var(--pixel-cyan);
}

.pod-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pod-icon {
  font-size: 2rem;
  background: #090e1a;
  border: 2px solid #000;
  padding: 6px;
  box-shadow: 2px 2px 0 #000;
}

.pod-role {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--pixel-cyan);
  margin-bottom: 2px;
}

.pod-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.pod-activity {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.4;
  flex: 1;
}

.pod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #1e293b;
  padding-top: 10px;
}

.pod-channel {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--pixel-cyan);
}

.pod-status {
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  background: #059669;
  color: #fff;
  padding: 3px 6px;
  border: 1px solid #000;
}

/* KANBAN BOARD */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title-bar h2 {
  font-size: 0.8rem;
  color: #fff;
}

.neon-bullet {
  color: var(--pixel-cyan);
  margin-right: 6px;
}

.kanban-board-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.kanban-col {
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.col-head {
  padding: 12px 16px;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-title {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
}

.col-badge {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: #000;
  color: #fff;
  padding: 2px 8px;
  border: 1px solid #334155;
}

.todo-head { background: #1e293b; color: #94a3b8; }
.running-head { background: #0369a1; color: #fff; }
.review-head { background: #6b21a8; color: #fff; }
.done-head { background: #065f46; color: #fff; }

.col-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.kanban-card {
  background: #111a2e;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kanban-card:hover {
  background: #1b2640;
  border-color: var(--pixel-cyan);
  transform: translate(-1px, -1px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.card-id { color: var(--text-muted); }
.card-assignee {
  background: #1e293b;
  color: var(--pixel-cyan);
  padding: 0 4px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* DELIVERABLES VAULT */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.deliverable-card {
  background: var(--bg-card);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.deliverable-card:hover {
  background: #1b2742;
  border-color: var(--pixel-cyan);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.deliv-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.deliv-info {
  flex: 1;
}

.deliv-cat {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--pixel-cyan);
  margin-bottom: 4px;
}

.deliv-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  word-break: break-all;
}

.deliv-size {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* MODAL SYSTEM */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-card {
  background: #0f172a;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 #000;
  max-width: 600px;
  width: 100%;
  animation: modalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.doc-modal-card {
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 3px solid #000;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-avatar {
  font-size: 2.2rem;
}

.modal-badge {
  font-size: 0.52rem;
  color: var(--pixel-gold);
  margin-bottom: 4px;
}

.modal-badge.cyan { color: var(--pixel-cyan); }

.modal-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  width: 32px;
  height: 32px;
  font-family: var(--font-pixel);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--pixel-red);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #090e1a;
  line-height: 1.6;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.field-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.field-text.small { font-size: 0.78rem; }

.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* FOOTER */
.bottom-bar {
  padding: 12px 24px;
  background: #080c14;
  border-top: 2px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 8px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .top-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .system-stats { width: 100%; justify-content: space-between; }
  .hide-sm { display: none; }
  .floor-title-wrap { margin-left: 0; width: 100%; }
  .agent-card { flex-direction: column; align-items: flex-start; }
  .inspect-btn { width: 100%; text-align: center; }
  .bottom-bar { flex-direction: column; text-align: center; }
}

/* APPROVAL CENTER STYLES */
.badge-pending {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  margin-left: 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.approvals-section {
  display: none;
  padding: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.approvals-section.active-view {
  display: block;
}

.approvals-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.approval-card {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.approval-card.pending {
  border-color: #f59e0b;
}

.approval-card.approved {
  border-color: #10b981;
}

.approval-card.revised {
  border-color: #3b82f6;
}

.approval-card.rejected {
  border-color: #ef4444;
}

.appr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 12px;
}

.appr-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.appr-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.appr-badge.risk-high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.appr-badge.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.appr-badge.status-approved {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
}

.appr-badge.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.appr-badge.status-revised {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.appr-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.appr-body {
  background: #020617;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

.appr-security {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-hmac {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.appr-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-acc {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-acc:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-revisi {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-revisi:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-tolak {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-tolak:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
/* CANVAS VIEWPORT STYLING (GBR 1) */
.canvas-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #090d16;
  border: 2px solid #1e293b;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
  gap: 12px;
}

.camera-switch-pill {
  display: inline-flex;
  align-items: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 4px 10px;
  gap: 8px;
}

.cam-nav-arrow {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.cam-nav-arrow:hover {
  background: #0284c7;
  color: #fff;
}

.cam-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  min-width: 190px;
  text-align: center;
}

.canvas-quick-actions {
  display: flex;
  gap: 8px;
}

.canvas-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s;
}

.canvas-btn.active, .canvas-btn:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.canvas-viewport-container {
  position: relative;
  background: #000;
  border: 2px solid #1e293b;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

#officeCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 760;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
}

.canvas-hint {
  padding: 10px 16px;
  background: #080c14;
  border-top: 1px solid #1e293b;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
}

/* # KANTOR-AI LIVE FEED & CHAT CONSOLE (GBR 2) */
.chat-section {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}

.chat-section.active-view {
  display: block;
}

.chat-console-box {
  background: #0a0f1d;
  border: 2px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  min-height: 600px;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #0f172a;
  border-bottom: 2px solid #1e293b;
  flex-wrap: wrap;
  gap: 12px;
}

.console-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hashtag-icon {
  font-size: 1.4rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.console-title {
  font-size: 1.1rem;
  color: #f8fafc;
}

.console-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.console-filter-tabs {
  display: flex;
  background: #1e293b;
  padding: 3px;
  border-radius: 20px;
  gap: 4px;
}

.feed-tab {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.feed-tab.active, .feed-tab:hover {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
}

.console-stream-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #020617;
}

/* Feed Item Cards (GBR 2 Style) */
.feed-card {
  display: flex;
  gap: 12px;
  background: #0b1329;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 14px;
  transition: all 0.15s;
}

.feed-card:hover {
  border-color: #38bdf8;
  transform: translateX(2px);
}

.feed-card.ceo-bubble {
  background: #1c1917;
  border-color: #f59e0b;
}

.feed-avatar-pill {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #1e293b;
  flex-shrink: 0;
}

.feed-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.feed-action-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.feed-action-badge.warn {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.feed-time {
  font-size: 0.7rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.feed-text-msg {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Prompt Chips (GBR 2 Style) */
.prompt-chips-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #0b1120;
  border-top: 1px solid #1e293b;
  overflow-x: auto;
  white-space: nowrap;
}

.chip-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.chip-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

/* Input Form (GBR 2 Style) */
.console-input-bar {
  display: flex;
  padding: 12px 16px;
  background: #0f172a;
  border-top: 2px solid #1e293b;
  gap: 10px;
}

.cmd-input {
  flex: 1;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.15s;
}

.cmd-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.cmd-send-btn {
  background: #f59e0b;
  color: #000;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.cmd-send-btn:hover {
  background: #d97706;
  transform: scale(1.02);
}
