/* ==========================================================================
   CENTRAL DE OPERAÇÕES · DESIGN SYSTEM V2 (EXECUTIVE LUXE & CLEAN AIR)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   THEMES: DARK (EXECUTIVE MIDNIGHT) & LIGHT (SWISS QUARTZ)
   ========================================================================== */
html[data-theme="dark"], :root {
  --bg-base: #0a0e17;
  --bg-surface: #111726;
  --bg-surface-elevated: #182238;
  --bg-surface-hover: #1f2b47;
  --bg-surface-glass: rgba(17, 23, 38, 0.85);
  --bg-subtle: #0e1422;
  --bg-card-inner: #151d30;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-highlight: rgba(14, 165, 233, 0.35);
  --border-focus: #0ea5e9;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0a0e17;

  --brand-primary: #0ea5e9;
  --brand-primary-hover: #38bdf8;
  --brand-primary-soft: rgba(14, 165, 233, 0.14);
  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --brand-glow: 0 0 24px rgba(14, 165, 233, 0.25);

  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.14);
  --accent-emerald-border: rgba(16, 185, 129, 0.3);

  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.14);
  --accent-amber-border: rgba(245, 158, 11, 0.3);

  --accent-rose: #f43f5e;
  --accent-rose-soft: rgba(244, 63, 94, 0.14);
  --accent-rose-border: rgba(244, 63, 94, 0.3);

  --accent-indigo: #6366f1;
  --accent-indigo-soft: rgba(99, 102, 241, 0.14);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.65);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] {
  --bg-base: #f3f6fa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-surface-glass: rgba(255, 255, 255, 0.9);
  --bg-subtle: #f1f5f9;
  --bg-card-inner: #f8fafc;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-highlight: rgba(2, 132, 199, 0.3);
  --border-focus: #0284c7;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-primary-soft: rgba(2, 132, 199, 0.1);
  --brand-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --brand-glow: 0 0 20px rgba(2, 132, 199, 0.18);

  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;
  --accent-emerald-border: #a7f3d0;

  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;
  --accent-amber-border: #fde68a;

  --accent-rose: #e11d48;
  --accent-rose-soft: #fff1f2;
  --accent-rose-border: #fecdd3;

  --accent-indigo: #4f46e5;
  --accent-indigo-soft: #eef2ff;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
  --shadow-drawer: -10px 0 35px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

/* ==========================================================================
   APP HEADER & NAVIGATION
   ========================================================================== */
.top-status-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4px;
  border: 1px solid var(--accent-emerald-border);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 32px;
}

.header-container {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--brand-glow);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-v2-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  letter-spacing: 0.5px;
}

/* NAVIGATION TABS */
.nav-tab-strip {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
}

.nav-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  user-select: none;
}

.nav-tab-item:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.nav-tab-item.active {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.nav-tab-item .tab-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.nav-tab-item.active .tab-badge {
  background: var(--brand-primary);
  color: #ffffff;
}

/* HEADER ACTION BUTTONS */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-search-spotlight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-search-spotlight:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.btn-search-spotlight kbd {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
}

.btn-icon-square {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 16px;
}

.btn-icon-square:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.btn-create-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-create-primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: var(--brand-glow);
}

/* ==========================================================================
   LAYOUT & MAIN CONTAINER
   ========================================================================== */
.main-wrapper {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  flex: 1;
}

/* KPI EXECUTIVE METRIC CARDS */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.kpi-card.accent-sky::before { background: #0ea5e9; }
.kpi-card.accent-emerald::before { background: #10b981; }
.kpi-card.accent-amber::before { background: #f59e0b; }
.kpi-card.accent-indigo::before { background: #6366f1; }

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-metric-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.kpi-subtext {
  font-size: 13px;
  color: var(--text-subtle);
}

/* ==========================================================================
   VIEW: VISÃO GERAL (EXECUTIVE DASHBOARD)
   ========================================================================== */
.overview-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 28px;
}

@media (max-width: 1080px) {
  .overview-layout {
    grid-template-columns: 1fr;
  }
}

/* HERO PROJECT CARD (FÁCIL COM IA) */
.hero-project-box {
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-project-box::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--brand-primary-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-highlight);
  margin-bottom: 12px;
}

.hero-project-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.hero-project-description {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 680px;
  line-height: 1.6;
}

.hero-next-action-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-main);
}

.hero-next-action-callout strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hero-quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-hero-action:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* SECTION CONTAINERS */
.content-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.content-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.content-box-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.content-box-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 2px;
}

/* INTERACTIVE PRIORITIES LIST */
.priority-card-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}

.priority-card-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.priority-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.priority-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.priority-index-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-subtle);
}

.priority-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.priority-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-project {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid var(--border-highlight);
}

.badge-deadline {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-deadline.soon {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-border);
}

.badge-deadline.overdue {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border: 1px solid var(--accent-rose-border);
}

.badge-deadline.calm {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* CHECKLIST STEPS */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 42px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 12px;
}

.step-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.step-item-row:hover {
  color: var(--text-main);
}

.step-custom-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-size: 12px;
}

.step-item-row.is-done .step-custom-box {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
}

.step-item-row.is-done span {
  text-decoration: line-through;
  color: var(--text-subtle);
}

/* ==========================================================================
   VIEW: KANBAN BOARD (DRAGGABLE & TACTILE)
   ========================================================================== */
.kanban-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.kanban-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .kanban-columns-grid {
    grid-template-columns: 1fr;
  }
}

.kanban-lane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color var(--transition-fast);
}

.kanban-lane.drag-over {
  background: var(--bg-surface-hover);
  border-color: var(--border-highlight);
}

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.lane-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lane-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lane-indicator-dot.todo { background: var(--text-subtle); }
.lane-indicator-dot.doing { background: var(--brand-primary); }
.lane-indicator-dot.done { background: var(--accent-emerald); }

.lane-heading-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.lane-count-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
}

/* KANBAN TASK CARD */
.task-kanban-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: all var(--transition-fast);
  user-select: none;
}

.task-kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.task-kanban-card.is-dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-main-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.card-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 600;
}

.card-progress-track {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: var(--accent-emerald);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.card-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.btn-move-step {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-move-step:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* ==========================================================================
   VIEW: PROJETOS PORTFOLIO (AIRY & STRUCTURED GRID)
   ========================================================================== */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.project-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.project-box-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.project-card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-icon-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--brand-primary);
}

.project-title-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.status-badge-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-badge-pill.active {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.status-badge-pill.monitoring {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid var(--border-highlight);
}

.project-card-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-callout-action {
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-muted);
}

.project-callout-action strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.project-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}

/* ==========================================================================
   VIEW: CLIENTES AVULSOS
   ========================================================================== */
.client-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-indigo-soft);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

/* ==========================================================================
   VIEW: FINANCEIRO EXECUTIVO
   ========================================================================== */
.finance-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.finance-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.finance-data-table th {
  background: var(--bg-subtle);
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.finance-data-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.finance-data-table tr:last-child td {
  border-bottom: none;
}

.finance-data-table tr:hover td {
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   MODAL & SLIDE-OVER DRAWER (FICHA COMPLETA & EDIÇÃO)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.active {
  display: flex;
  opacity: 1;
}

.drawer-panel {
  background: var(--bg-surface);
  width: 100%;
  max-width: 620px;
  height: 100%;
  box-shadow: var(--shadow-drawer);
  border-left: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-body {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* FORM DIALOG MODAL (NOVA TAREFA, NOVO PROJETO, NOVO FINANCEIRO) */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dialog-backdrop.active {
  display: flex;
}

.dialog-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* SPOTLIGHT COMMAND PALETTE */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.spotlight-backdrop.active {
  display: flex;
}

.spotlight-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  box-shadow: var(--shadow-lg), var(--brand-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  box-shadow: none;
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spotlight-item-row:hover, .spotlight-item-row.active {
  background: var(--brand-primary-soft);
  color: var(--text-main);
}

/* TOAST NOTIFICATION */
.toast-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* AI BENCHMARK ENHANCEMENTS */
.benchmark-row {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.benchmark-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.badge-trend-up {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-trend-down {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-trend-same {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
}

.badge-trend-new {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.chip-discovery {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.chip-evolution {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   VIEW: RADAR DOM (DESIGN SYSTEM COMPLIANT)
   ========================================================================== */
.radar-header-box {
  margin-bottom: 28px;
}

.radar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.radar-main-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.radar-main-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.radar-header-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.radar-period-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.radar-custom-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.radar-custom-dates input[type="date"] {
  width: auto;
  padding: 5px 8px;
  font-size: 12px;
}

.radar-date-sep {
  font-size: 12px;
  color: var(--text-muted);
}

.radar-status-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.radar-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.radar-live-dot.offline {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.radar-offline-banner {
  background: var(--accent-rose-soft);
  border: 1px solid var(--accent-rose-border);
  color: var(--accent-rose);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.radar-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.radar-banner-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radar-empty-invite {
  background: var(--brand-primary-soft);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.radar-roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.radar-roi-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.radar-roi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.radar-roi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.radar-roi-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.radar-roi-sub {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.radar-delta {
  font-weight: 700;
}

.radar-delta.positive {
  color: var(--accent-emerald);
}

.radar-delta.negative {
  color: var(--accent-rose);
}

.radar-delta.neutral {
  color: var(--text-muted);
}

/* FUNNEL & OPERATIONAL LAYOUT */
.radar-middle-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .radar-middle-layout {
    grid-template-columns: 1fr;
  }
}

.radar-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-funnel-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radar-funnel-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.radar-funnel-item.worst-loss {
  border-color: var(--accent-amber);
  background: var(--accent-amber-soft);
}

.radar-funnel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.radar-funnel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-funnel-count {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.radar-funnel-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.radar-funnel-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  transition: width var(--transition-smooth);
}

.radar-funnel-item.worst-loss .radar-funnel-bar-fill {
  background: var(--accent-amber);
}

.radar-origin-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-subtle);
}

.radar-funnel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-subtle);
}

.radar-loss-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.radar-op-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radar-op-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}

.radar-op-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
}

.radar-op-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.radar-op-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.radar-op-sub {
  font-size: 12px;
  color: var(--text-subtle);
}

/* EVOLUTION CHART (INLINE SVG) */
.radar-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.radar-chart-svg {
  width: 100%;
  height: 240px;
  display: block;
}

.radar-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.radar-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.radar-legend-dot.brand {
  background: var(--brand-primary);
}

.radar-legend-dot.emerald {
  background: var(--accent-emerald);
}

.radar-legend-dot.amber {
  background: var(--accent-amber);
}

.radar-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  color: var(--text-main);
  z-index: 30;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  margin-top: -12px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.radar-chart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 14px;
}

/* ENTRY FORMS & MINI TABLES */
.radar-forms-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1320px) {
  .radar-forms-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .radar-forms-layout {
    grid-template-columns: 1fr;
  }
}

.radar-entry-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.radar-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .radar-form-row {
    grid-template-columns: 1fr;
  }
}

.radar-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.radar-form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.radar-lead-search-box {
  position: relative;
  width: 100%;
}

.radar-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
}

.radar-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  transition: background var(--transition-fast);
}

.radar-autocomplete-item:last-child {
  border-bottom: none;
}

.radar-autocomplete-item:hover {
  background: var(--bg-surface-hover);
}

.radar-selected-lead-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-primary-soft);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
}

.radar-pill-clear-btn {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.radar-pill-clear-btn:hover {
  color: var(--accent-rose);
}

.radar-recent-records-wrap {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.radar-records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.radar-records-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.radar-table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.radar-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.radar-mini-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.radar-mini-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.radar-mini-table tr:last-child td {
  border-bottom: none;
}

.radar-mini-table tr:hover td {
  background: var(--bg-surface-hover);
}

.radar-btn-delete {
  cursor: pointer;
  color: var(--text-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  transition: all var(--transition-fast);
}

.radar-btn-delete:hover {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.radar-skeleton-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  animation: radarPulse 1.5s infinite ease-in-out;
}

@keyframes radarPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}


/* ==========================================================================
   RADAR DOM · OPERAÇÃO (spec §8): kanban de leads, gaveta do lead, eventos, follow-ups
   Só tokens existentes. Kanban rola dentro do próprio contêiner; a página nunca rola de lado.
   ========================================================================== */
.radar-ops-box { min-width: 0; }

.radar-ops-header {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.radar-ops-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.radar-ops-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radar-ops-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.radar-ops-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.radar-ops-tab:hover { color: var(--text-main); }

.radar-ops-tab.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.radar-ops-tab-count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-primary);
}

.radar-ops-offline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-rose-soft);
  border: 1px solid var(--accent-rose-border);
  color: var(--accent-rose);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.radar-ops-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  min-width: 0;
  scrollbar-width: thin;
}

.radar-ops-col {
  flex: 0 0 236px;
  width: 236px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 540px;
}

.radar-ops-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.radar-ops-col-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.radar-ops-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
  flex-shrink: 0;
}

.radar-ops-col[data-tone="brand"] .radar-ops-col-dot { background: var(--brand-primary); }
.radar-ops-col[data-tone="indigo"] .radar-ops-col-dot { background: var(--accent-indigo); }
.radar-ops-col[data-tone="emerald"] .radar-ops-col-dot { background: var(--accent-emerald); }
.radar-ops-col[data-tone="amber"] .radar-ops-col-dot { background: var(--accent-amber); }
.radar-ops-col[data-tone="rose"] .radar-ops-col-dot { background: var(--accent-rose); }

.radar-ops-col-count {
  font-family: var(--font-display);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 1px 8px;
  font-size: 11px;
  color: var(--text-main);
}

.radar-ops-cards {
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  scrollbar-width: thin;
}

.radar-ops-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.radar-ops-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.radar-ops-card:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.radar-ops-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  word-break: break-word;
}

.radar-ops-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-word;
}

.radar-ops-card-time {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 6px;
}

.radar-ops-empty {
  font-size: 12px;
  color: var(--text-subtle);
  text-align: center;
  padding: 14px 6px;
}

.radar-ops-table-scroll {
  max-height: 520px;
  overflow-y: auto;
}

.radar-ops-table-scroll .radar-mini-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.radar-ops-detail {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-word;
}

.radar-ops-link {
  color: var(--brand-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.radar-ops-link:hover { text-decoration: underline; }

.radar-ops-when { white-space: nowrap; }

.radar-ops-table-scroll .badge-project { white-space: nowrap; }

/* Gaveta do lead (reusa .drawer-* da Central) */
.dom-lead-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dom-lead-phone {
  font-size: 13px;
  color: var(--text-muted);
}

.dom-lead-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--text-main);
}

.dom-lead-kv span { color: var(--text-muted); }

.dom-lead-kv div { word-break: break-word; white-space: pre-wrap; }

.dom-lead-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dom-lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dom-lead-actions select {
  width: auto;
  flex: 1;
  min-width: 150px;
  padding: 8px 12px;
  font-size: 13px;
}

.dom-lead-actions button[disabled],
.dom-send-row button[disabled],
.dom-lead-form button[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-warn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-warn-outline:hover { background: var(--accent-amber-soft); }

.dom-lead-details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 10px 14px;
}

.dom-lead-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.dom-lead-details[open] summary { margin-bottom: 10px; }

.dom-lead-list { font-size: 12px; color: var(--text-main); display: flex; flex-direction: column; gap: 4px; }

.dom-lead-form { display: flex; flex-direction: column; gap: 8px; }

.dom-lead-form textarea { min-height: 64px; resize: vertical; font-size: 13px; }

.dom-lead-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dom-lead-form-row input[type="datetime-local"] { width: auto; flex: 1; min-width: 180px; padding: 8px 10px; font-size: 13px; }

.dom-lead-form-row label {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dom-lead-form-row label input { width: auto; }

.dom-chat { display: flex; flex-direction: column; gap: 6px; }

.dom-chat-bubble {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
}

.dom-chat-bubble.in {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-xs);
}

.dom-chat-bubble.out {
  background: var(--brand-primary-soft);
  border: 1px solid var(--border-highlight);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-xs);
}

.dom-chat-bubble small {
  display: block;
  font-size: 10px;
  color: var(--text-subtle);
  margin-top: 4px;
}

.dom-send-row {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: flex-end;
}

.dom-send-row textarea { flex: 1; min-height: 44px; resize: vertical; font-size: 13px; }

@media (max-width: 640px) {
  .radar-ops-col { flex-basis: 200px; width: 200px; }
  .dom-lead-kv { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }

