/* ==========================================================================
   LYF.lab Dark Cockpit v2 — Zero-Abstraction CSS
   Design System: Deep Cyber-Cockpit, High Signal-to-Noise, 120 FPS Ready
   CRITICAL CONSTRAINT: Computed font-size >= 11px across ALL elements
   ========================================================================== */

:root {
  /* Color Palette — SwiftUI HUDTheme Surfaces */
  --bg-void: #07080b;
  --bg-deep: #07080b;
  --bg-surface: #0a0c12;
  --bg-card: rgba(12, 14, 19, 0.86);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-card-subtle: rgba(0, 0, 0, 0.32);
  --bg-well: rgba(0, 0, 0, 0.32);
  --bg-raised: rgba(255, 255, 255, 0.035);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-active: rgba(77, 204, 242, 0.32);
  --border-glow: rgba(77, 204, 242, 0.5);
  --track-bg: rgba(255, 255, 255, 0.08);

  /* SwiftUI HUD Flow & Status Colors */
  --rx-cyan: #4dccf2;
  --tx-magenta: #e673d9;
  --eng-gemini: #8c99ff;
  --eng-claude: #d97857;
  --eng-codex: #59d199;
  --eng-mengu: #f5c442;

  /* High-Signal Neon Accents */
  --accent-cyan: #4dccf2;
  --accent-cyan-rgb: 77, 204, 242;
  --accent-amber: #ffb840;
  --accent-amber-rgb: 255, 184, 64;
  --accent-purple: #e673d9;
  --accent-purple-rgb: 230, 115, 217;
  --accent-emerald: #38d980;
  --accent-emerald-rgb: 56, 217, 128;
  --accent-rose: #ff5c54;
  --accent-rose-rgb: 255, 92, 84;

  /* Typography Colors */
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.42);
  --text-dim: rgba(255, 255, 255, 0.32);

  /* Strict Font Scales (Minimum 11px) */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 22px;
  --fs-3xl: 28px;

  /* Font Families */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;

  /* Layout Constants */
  --topbar-height: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tabular Nums Everywhere Numbers are Rendered */
.tabular, kbd, code, .pill-value, .speed-value, .hero-value, .meta-val, .kpi-val, .hm-val, .h-ring-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Custom Cockpit Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

/* ==========================================================================
   TOP BAR (#topbar)
   Fixed Command Deck Pinned to Viewport
   ========================================================================== */
.topbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: rgba(9, 11, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  user-select: none;
}
.brand-icon {
  color: var(--accent-amber);
  font-size: var(--fs-lg);
  filter: drop-shadow(0 0 8px rgba(var(--accent-amber-rgb), 0.6));
}
.brand-sub {
  color: var(--accent-cyan);
  font-size: var(--fs-xs);
  padding: 1px 4px;
  background: rgba(var(--accent-cyan-rgb), 0.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
}

/* Layout Mode Buttons */
.layout-toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.mode-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-family: inherit;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.mode-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.mode-toggle-btn.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.35);
  box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.2);
}

/* Connection Pill */
.conn-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  white-space: nowrap;
}
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Center Dynamic Indicators Strip — Icon-Free High-Contrast Compact Cells */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
  flex: 1;
  justify-content: center;
  max-width: 900px;
}
.indicators-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  padding: 2px 0;
}

.indicator-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 26px;
  background: rgba(16, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: #F8FAFC;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.indicator-pill:hover {
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(103, 232, 249, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  z-index: 1200;
}
.indicator-pill .ind-text {
  color: #F8FAFC;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.15;
}
.indicator-pill.compact {
  padding: 2px 5px;
}

/* Instant High-Contrast HUD Floating Tooltip on Every Top Bar Cell */
.indicator-pill[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 10, 15, 0.98);
  color: #F8FAFC;
  border: 1px solid rgba(103, 232, 249, 0.45);
  border-radius: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 12px rgba(103, 232, 249, 0.2);
  pointer-events: none;
  z-index: 3000;
}

.btn-topbar-tool {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  padding: 5px 9px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.btn-topbar-tool:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

/* Topbar Right Tools */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-topbar-shield {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-topbar-shield:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}
.btn-topbar-shield.active {
  background: rgba(var(--accent-purple-rgb), 0.12);
  border-color: rgba(var(--accent-purple-rgb), 0.4);
  color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(var(--accent-purple-rgb), 0.25);
}
.shield-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}
.btn-topbar-shield.active .shield-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 6px var(--accent-purple);
}
.kbd-hint {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-topbar-user {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-topbar-user:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}
.dropdown-chevron {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   COCKPIT GRID & BENTO LAYOUT
   ========================================================================== */
.cockpit-grid {
  display: grid;
  padding: 58px 12px 18px;
  gap: 10px;
  max-width: 1920px;
  margin: 0 auto;
  transition: all var(--transition-normal);
}

/* 3-Column Bento Mission Control */
.cockpit-grid.mode-mission {
  grid-template-columns: 356px 1fr 356px;
}

/* 1-Column Compact HUD Mode */
.cockpit-grid.mode-hud {
  grid-template-columns: 1fr;
  max-width: 520px;
}
.cockpit-grid.mode-hud .center-column {
  order: -1; /* Harita ve zaman çizelgesi en üstte veya sıralı */
}

.bento-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Prevents CSS Grid blowout */
}

/* Generic Cockpit Card — Double-Bezel Tactical Surface */
.cockpit-card {
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -6px rgba(0, 0, 0, 0.72);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}
.cockpit-card:hover {
  border-color: var(--border-strong);
}
.cockpit-card.is-center-maximized {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.7);
}
.cockpit-card.fx-cyber-lock {
  animation: cyber-lock-pulse 0.35s ease-out;
}
@keyframes cyber-lock-pulse {
  0% {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
  }
}

.card-tech-tag {
  display: none !important;
}

/* Maximize / Center Stage Action Button */
.btn-maximize-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-maximize-card:hover {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
}
.btn-maximize-card.is-active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.max-icon {
  font-size: 12px;
  line-height: 1;
}

/* Center Stage Switcher Bar */
.center-stage-switcher-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.4);
  margin-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.center-stage-switcher-bar::-webkit-scrollbar {
  display: none;
}
.switcher-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-right: 4px;
}
.switcher-buttons-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.switcher-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}
.switcher-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}
.switcher-btn .sw-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

/* Deep Drill-Down Inspector */
.drilldown-card {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px -8px rgba(0, 0, 0, 0.65);
}
.drilldown-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 10px;
}
.drilldown-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.drilldown-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.drilldown-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.drilldown-kpi-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dd-kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dd-kpi-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.drilldown-table-wrapper {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(7, 9, 14, 0.4);
}
.drilldown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}
.drilldown-table th {
  position: sticky;
  top: 0;
  background: #0d121c;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  z-index: 2;
}
.drilldown-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  white-space: nowrap;
}
.drilldown-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.btn-table-action {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-table-action:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.card-tabs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.tab-buttons-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.card-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-subtitle {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-tag {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(var(--accent-cyan-rgb), 0.1);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Segmented Buttons */
.segment-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 2px;
}
.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-family: inherit;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.seg-btn:hover {
  color: var(--text-primary);
}
.seg-btn.active {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
}

/* ==========================================================================
   LEFT COLUMN: AI DIALS, NETWORK, DISK
   ========================================================================== */
.dials-canvas-container {
  width: 100%;
  height: 112px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.high-dpi-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dials-legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 6px;
}
.dial-stat-pill {
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  min-width: 0;
}
.dial-stat-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.dial-stat-pill.selected {
  border-color: var(--accent-cyan);
  background: rgba(77, 204, 242, 0.08);
  box-shadow: 0 0 8px rgba(77, 204, 242, 0.16);
}
.dial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-claude { background: var(--eng-claude); box-shadow: 0 0 5px var(--eng-claude); }
.dot-gemini { background: var(--eng-gemini); box-shadow: 0 0 5px var(--eng-gemini); }
.dot-flash { background: var(--eng-codex); box-shadow: 0 0 5px var(--eng-codex); }
.dot-focus { background: var(--eng-mengu); box-shadow: 0 0 5px var(--eng-mengu); }

.pill-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.15;
}
.pill-title {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-value {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
}

/* Selected Engine Detail Strip (SwiftUI EngineDetailSection) */
.selected-engine-well {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: var(--fs-xs);
  line-height: 1.2;
}
.sel-eng-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sel-eng-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sel-eng-name {
  font-weight: 700;
  color: var(--text-primary);
}
.sel-eng-plan-badge {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}
.sel-eng-model {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sel-eng-tokens-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.card-mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  line-height: 1.15;
}
.footer-label { color: var(--text-muted); }
.footer-value { color: var(--accent-cyan); font-weight: 600; }

/* Canlı Ağ Trafiği — SwiftUI Compact Layout */
.net-speed-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 6px;
}
.speed-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  line-height: 1.15;
}
.tx-block {
  text-align: right;
}
.speed-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tx-block .speed-label {
  justify-content: flex-end;
}
.arrow-icon {
  font-weight: 800;
}
.rx-arrow { color: var(--rx-cyan); }
.tx-arrow { color: var(--tx-magenta); }
.speed-value {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}
.speed-total {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.speed-divider {
  width: 1px;
  height: 30px;
  background: var(--border-subtle);
  margin: 0 8px;
}

.net-window-combined-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.15;
}

.split-ratio-track {
  width: 100%;
  height: 4px;
  background: var(--track-bg);
  border-radius: var(--radius-pill);
  display: flex;
  overflow: hidden;
  margin-bottom: 6px;
}
.ratio-fill {
  height: 100%;
  transition: width var(--transition-fast);
}
.rx-fill { background: var(--rx-cyan); }
.tx-fill { background: var(--tx-magenta); }

.sparkline-container {
  width: 100%;
  height: 68px;
  background: var(--bg-well);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

/* SwiftUI Per-Process Data Consumers (Veri Tüketimi) */
.net-consumers-section {
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.net-consumers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.15;
}
.net-consumers-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.net-consumers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.net-consumer-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.net-consumer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  line-height: 1.15;
}
.net-consumer-name {
  color: var(--text-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.net-consumer-flows {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.net-consumer-bar {
  width: 100%;
  height: 2px;
  background: var(--track-bg);
  border-radius: 99px;
  display: flex;
  overflow: hidden;
}

/* Disk & Depolama */
.disk-main-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
}
.disk-hero-metric {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero-value {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--accent-cyan);
}
.disk-meta-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  line-height: 1.15;
}
.meta-row {
  font-size: var(--fs-xs);
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.meta-name { color: var(--text-muted); }
.meta-val { color: var(--text-primary); font-weight: 600; }
.purgeable-val { color: var(--accent-amber); }

.disk-gauge-track {
  width: 100%;
  height: 4px;
  background: var(--track-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 6px 0 8px;
}
.disk-used-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rx-cyan), var(--tx-magenta));
  border-radius: var(--radius-pill);
}

.disk-panel {
  display: none;
}
.disk-panel.active {
  display: block;
}
.disk-sparkline-box {
  height: 70px;
}
.large-files-container {
  max-height: 140px;
  overflow-y: auto;
  font-size: var(--fs-xs);
}
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-subtle);
}
.file-row:hover { background: var(--bg-card-hover); }
.file-name {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.file-size {
  color: var(--accent-amber);
  font-weight: 600;
}
.files-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   CENTER COLUMN: 120 FPS MAP & 9.3Y TIMELINE
   ========================================================================== */
.map-card-full {
  padding: 12px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.map-mode-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 4px;
  flex-wrap: wrap;
}
.map-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-family: inherit;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.map-tab-btn:hover {
  color: var(--text-primary);
}
.map-tab-btn.active {
  background: var(--bg-card-subtle);
  color: var(--accent-cyan);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.35);
  box-shadow: 0 0 10px rgba(var(--accent-cyan-rgb), 0.2);
}

.map-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-primary {
  background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.2), rgba(var(--accent-purple-rgb), 0.2));
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.4);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-action-primary:hover {
  background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.3), rgba(var(--accent-purple-rgb), 0.3));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(var(--accent-cyan-rgb), 0.3);
}

/* Map Canvas Container */
.map-canvas-wrapper {
  width: 100%;
  height: 600px;
  background: #090c12;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: grab;
}
.google-map-base {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07090e;
}
.fog-blur-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
  background: transparent;
  backdrop-filter: blur(28px) saturate(0.9);
  -webkit-backdrop-filter: blur(28px) saturate(0.9);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-mode: alpha;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-source-type: alpha;
}
.interactive-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.map-canvas-wrapper.map-google-active .interactive-map-canvas {
  pointer-events: none;
}
.interactive-map-canvas:active {
  cursor: grabbing;
}

/* Fog of War Controls */
.map-fog-controls {
  position: absolute;
  top: 52px;
  right: 12px;
  bottom: auto;
  z-index: 16;
  width: 250px;
  padding: 10px 12px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.28);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.fog-control-head,
.fog-control-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fog-control-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.fog-radius-value {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-cyan);
}
.fog-radius-slider {
  width: 100%;
  margin: 8px 0 6px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}
.fog-control-foot {
  font-size: 10px;
  color: var(--text-muted);
}
.fog-last-visit {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Clean canvas for headless video rendering */
body.fog-render-mode {
  overflow: hidden !important;
  background: #05070b !important;
}
body.fog-render-mode #topbar,
body.fog-render-mode #col-left,
body.fog-render-mode #col-right,
body.fog-render-mode #center-stage-switcher,
body.fog-render-mode #center-drilldown-inspector,
body.fog-render-mode .map-toolbar,
body.fog-render-mode .map-hud-overlay,
body.fog-render-mode .map-fog-controls,
body.fog-render-mode .fog-timeline,
body.fog-render-mode .map-floating-tooltip {
  display: none !important;
}
body.fog-render-mode #cockpit-container {
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}
body.fog-render-mode #col-center {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.fog-render-mode #card-map-engine {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #05070b !important;
}
body.fog-render-mode #card-map-engine .map-canvas-wrapper {
  width: 100vw !important;
  height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Fog of War Timeline */
.fog-timeline {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 36px;
  z-index: 17;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(10, 14, 23, 0.93);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.28);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.fog-play-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.65);
  background: rgba(var(--accent-cyan-rgb), 0.16);
  color: var(--accent-cyan);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fog-play-btn:hover {
  background: rgba(var(--accent-cyan-rgb), 0.28);
  box-shadow: 0 0 12px rgba(var(--accent-cyan-rgb), 0.35);
}
.fog-timeline-main {
  flex: 1 1 auto;
  min-width: 0;
}
.fog-time-slider {
  width: 100%;
  margin: 0;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}
.fog-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#fog-time-label {
  color: var(--accent-cyan);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fog-speed-pills {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.fog-speed-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
}
.fog-speed-btn.active {
  background: rgba(var(--accent-cyan-rgb), 0.18);
  color: var(--accent-cyan);
}
/* Fog film overlay (video render only). Sizes in vh so every resolution
   frames the same. */
.fog-film {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: none;
  pointer-events: none;
  color: #f1f5f9;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
body.fog-render-mode .fog-film { display: block; }
body.fog-render-mode .map-canvas-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 17;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 55%, rgba(2, 4, 9, 0.62) 100%);
}
/* Cyan glow where the fog opens. */
body.fog-render-mode #map-canvas {
  filter: drop-shadow(0 0 0.9vh rgba(56, 189, 248, 0.55));
}
body.fog-render-mode #google-map {
  filter: saturate(1.12) contrast(1.06);
}
.fog-film-title,
.fog-film-chapter,
.fog-film-stats {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  text-shadow: 0 0.3vh 2.4vh rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}
.fog-film-kicker {
  font-size: 1.7vh;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.fog-film-headline {
  margin: 0.8vh 0 1vh;
  font-size: 11vh;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.fog-film-headline.small { font-size: 6vh; margin: 0.6vh 0 0.6vh; }
.fog-film-sub {
  font-size: 2.3vh;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.85);
  letter-spacing: 0.04em;
}
.fog-film-chapter {
  top: 30%;
  padding: 4vh 10vh;
  background: radial-gradient(ellipse at center, rgba(3, 7, 15, 0.62) 0%, rgba(3, 7, 15, 0.35) 45%, rgba(3, 7, 15, 0) 72%);
}
.fog-film-chapter-title {
  margin: 0.8vh 0 0.6vh;
  font-size: 7vh;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.fog-film-lower {
  position: absolute;
  left: 3.2vh;
  bottom: calc(30px + 2.6vh);
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: end;
  column-gap: 3.6vh;
  row-gap: 1.4vh;
  padding: 2vh 2.6vh 1.8vh;
  background: linear-gradient(135deg, rgba(8, 13, 24, 0.82), rgba(8, 13, 24, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-left: 0.45vh solid #38bdf8;
  border-radius: 1.2vh;
  box-shadow: 0 1vh 4vh rgba(0, 0, 0, 0.45);
  opacity: 0;
}
.fog-film-date { font-size: 3.6vh; font-weight: 750; line-height: 1.05; }
.fog-film-time {
  margin-top: 0.5vh;
  font-size: 2vh;
  color: rgba(186, 230, 253, 0.85);
  text-transform: capitalize;
}
.fog-film-stat {
  display: flex;
  flex-direction: column;
  padding-left: 3.6vh;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
}
.fog-film-stat > span { font-size: 3.6vh; font-weight: 700; line-height: 1.05; }
.fog-film-stat i { font-style: normal; font-size: 2.2vh; color: #7dd3fc; margin-right: 0.2vh; }
.fog-film-stat b { font-weight: 700; }
.fog-film-stat small {
  margin-top: 0.5vh;
  font-size: 1.5vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}
.fog-film-progress {
  grid-column: 1 / -1;
  height: 0.45vh;
  border-radius: 1vh;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}
.fog-film-progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0ea5e9, #7dd3fc);
  box-shadow: 0 0 1vh rgba(56, 189, 248, 0.8);
}
.fog-film-inset {
  position: absolute;
  top: 3.2vh;
  right: 3.2vh;
  height: 26vh;
  width: auto;
  padding: 1vh;
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 1.2vh;
  box-shadow: 0 1vh 4vh rgba(0, 0, 0, 0.45);
  opacity: 0;
}
.fog-film-stats {
  padding: 4vh 6vh 3.6vh;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 2vh;
  box-shadow: 0 2vh 8vh rgba(0, 0, 0, 0.6);
}
.fog-film-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 5vh;
  margin: 3.6vh 0 2.6vh;
}
.fog-film-stats-grid > div { display: flex; flex-direction: column; align-items: center; }
.fog-film-stats-grid b { font-size: 5.4vh; font-weight: 800; line-height: 1; }
.fog-film-stats-grid span {
  margin-top: 1vh;
  font-size: 1.5vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}
.fog-film-note { font-size: 1.9vh; color: #7dd3fc; }
.fog-render-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--accent-amber-rgb), 0.45);
  background: rgba(var(--accent-amber-rgb), 0.12);
  color: var(--accent-amber);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fog-render-btn:hover {
  background: rgba(var(--accent-amber-rgb), 0.24);
  box-shadow: 0 0 10px rgba(var(--accent-amber-rgb), 0.3);
}

/* Fog render modal */
.fog-render-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fog-render-field > label,
.fog-render-dates label,
.fog-render-grid label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.fog-render-field select,
.fog-render-dates input,
.fog-render-grid select {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--fs-xs);
  padding: 6px 8px;
}
.fog-render-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fog-render-dates label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fog-render-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fog-render-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fog-render-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}
.fog-render-check input {
  accent-color: var(--accent-cyan);
}
.fog-render-progress {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
#fog-render-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.3s ease;
}
.fog-render-status {
  min-height: 18px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.fog-render-status.error {
  color: var(--accent-red, #ef4444);
}

/* Map Overlays */
.map-hud-overlay {
  position: absolute;
  display: flex;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}
.map-hud-overlay.top-left {
  top: 10px;
  left: 10px;
}
.map-hud-overlay.top-right {
  top: 10px;
  right: 10px;
  pointer-events: auto;
}
.map-hud-overlay.bottom-left {
  bottom: 34px;
  left: 10px;
}

.hud-pill {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  white-space: nowrap;
}
#map-fps-pill {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}
#map-stays-pill {
  color: var(--accent-amber);
  border-color: rgba(var(--accent-amber-rgb), 0.3);
}

.map-ctrl-btn {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
}
.map-ctrl-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

/* Floating Tooltip */
.map-floating-tooltip {
  position: absolute;
  background: rgba(15, 22, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 260px;
}
.tooltip-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}
.tooltip-meta {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

/* Bases Interactive Grid */
.bases-grid-panel {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.bases-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.grid-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.04em;
}
.grid-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.bases-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.base-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.base-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-cyan-rgb), 0.15);
}
.base-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.base-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.base-share-tag {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
}
.base-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.base-dwell {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* 9.3 Yıllık Zaman Çizelgesi */
.timeline-canvas-wrapper {
  width: 100%;
  height: 220px;
  background: #080b10;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.timeline-hover-tooltip {
  position: absolute;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  pointer-events: none;
  z-index: 20;
  font-size: var(--fs-xs);
}
.tt-date {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.tt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.tt-swatch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.timeline-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}
.legend-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.legend-checkbox input {
  display: none;
}
.swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.swatch-steps { background: var(--accent-cyan); }
.swatch-sleep { background: var(--accent-purple); }
.swatch-work { background: var(--accent-emerald); }
.swatch-cal { background: var(--accent-amber); }
.legend-checkbox input:not(:checked) + .swatch {
  opacity: 0.25;
}

.timeline-kpis {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kpi-item {
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-label { color: var(--text-muted); }
.kpi-val { color: var(--accent-cyan); font-weight: 600; }

/* ==========================================================================
   RIGHT COLUMN: HUMAN COCKPIT, TAKEOUT THEMES, PHONE, AGENTS
   ========================================================================== */
.badge-accent {
  background: rgba(var(--accent-emerald-rgb), 0.12);
  border: 1px solid rgba(var(--accent-emerald-rgb), 0.3);
  color: var(--accent-emerald);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.focus-progress-block {
  margin-bottom: 8px;
}
.focus-progress-track {
  width: 100%;
  height: 4px;
  background: var(--track-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 4px;
}
.focus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--rx-cyan));
  border-radius: var(--radius-pill);
  transition: width var(--transition-normal);
}
.focus-progress-labels {
  display: flex;
  justify-content: space-between;
  line-height: 1.15;
}
.progress-subtext {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.human-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.human-metric-card {
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
}
.hm-icon {
  font-size: var(--fs-lg);
}
.hm-data {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hm-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-val {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
}

/* 4-Tab Card */
.tabs-card {
  padding: 0;
}
.card-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.card-tabs-header::-webkit-scrollbar {
  display: none;
}
.card-tab-btn {
  flex: 1;
  min-width: max-content;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: inherit;
  padding: 8px 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.card-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.card-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: var(--bg-card);
}

.card-tab-panel {
  display: none;
  padding: 14px 16px;
}
.card-tab-panel.active {
  display: block;
}

/* Sekme 1: Takeout Temaları */
.panel-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.intro-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.03em;
}
.intro-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.themes-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
}
.theme-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.theme-icon { font-size: var(--fs-sm); }
.theme-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-share {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}
.theme-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.theme-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}
.theme-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.theme-counts {
  display: flex;
  gap: 6px;
}
.theme-badge-trend {
  padding: 1px 5px;
  border-radius: 3px;
  font-size: var(--fs-xs);
}
.trend-up { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.trend-stable { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }
.theme-keywords {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sekme 2: Sağlık & Alışkanlıklar */
.health-rings-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.health-ring-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.h-ring-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.h-ring-value {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--accent-emerald);
}
.h-ring-sub {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.habits-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.habits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.habits-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-secondary);
}
.habits-hint {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.habits-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.habit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
}
.habit-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.habit-name {
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-weight: 500;
}
.habit-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.habit-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-xs);
}
.habit-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}
.habit-count {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 20px;
  text-align: center;
}

/* Sekme 3: Telefon & İletişim */
.phone-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.phone-apps-list, .contacts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.phone-connection-status.is-syncing {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.phone-connection-status.is-connected {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}
.phone-connection-status.is-disconnected {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  flex-shrink: 0;
}
.phone-connection-status.is-syncing .status-pulse-dot {
  background: #fbbf24;
  animation: pulse-sync-dot 1.2s infinite ease-in-out;
}
.phone-connection-status.is-connected .status-pulse-dot {
  background: #34d399;
}
.phone-connection-status.is-disconnected .status-pulse-dot {
  background: #64748b;
}
@keyframes pulse-sync-dot {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}
.phone-app-row, .contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: var(--fs-xs);
}
.app-name, .contact-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-time, .contact-meta {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Sekme 4: Aktif Ajanlar & Kotalar */
.agents-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.ai-processes-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-proc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: var(--fs-xs);
}
.proc-name {
  font-weight: 600;
  color: var(--text-primary);
}
.proc-cpu {
  color: var(--accent-amber);
  font-weight: 600;
}
.tokens-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.token-kpi {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.token-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.token-val {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODALS & DRAWERS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.modal-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-lg);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.modal-close-btn:hover { color: var(--text-primary); }

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

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
}

/* Customizer List & Items */
.customizer-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.customizer-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  font-weight: 600;
}
.style-toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 2px;
  border: 1px solid var(--border-subtle);
}
.style-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-family: inherit;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.style-btn.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  border: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.checkbox-container input {
  display: none;
}
.checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  position: relative;
}
.checkbox-container input:checked + .checkbox-custom {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.checkbox-container input:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: var(--fs-xs);
  font-weight: 900;
}
.checkbox-text {
  font-size: var(--fs-xs);
  color: var(--text-primary);
}

.indicators-reorder-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.reorder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}
.reorder-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reorder-name {
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-weight: 500;
}
.reorder-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.reorder-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--fs-xs);
}
.reorder-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* User Profile Modal Styles */
.user-info-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.u-avatar-lg { font-size: var(--fs-2xl); }
.u-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.u-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.u-uid {
  font-size: var(--fs-xs);
  color: var(--accent-cyan);
}
.u-status-badge {
  font-size: var(--fs-xs);
  color: var(--accent-emerald);
  background: rgba(var(--accent-emerald-rgb), 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.user-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}
.u-stat {
  display: flex;
  flex-direction: column;
}
.us-label { font-size: var(--fs-xs); color: var(--text-muted); }
.us-val { font-size: var(--fs-xs); font-weight: 700; color: var(--text-primary); }

.profile-switch-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.profile-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.profile-chip.active {
  background: rgba(var(--accent-cyan-rgb), 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.create-profile-row {
  display: flex;
  gap: 6px;
}
.input-text, .input-select {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  padding: 6px 10px;
  font-family: inherit;
  flex: 1;
}
.input-text:focus, .input-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.btn-primary {
  background: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  color: #000;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-primary:hover {
  background: #7dd3fc;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}
.btn-download-db {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-download-db:hover {
  background: rgba(16, 185, 129, 0.25);
}

/* Forms in Add Base Modal */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   PRIVACY SHIELD BLUR EFFECT
   ========================================================================== */
body.privacy-active .privacy-maskable {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.2s ease;
}
body.privacy-active .privacy-replace {
  letter-spacing: 0.1em;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .cockpit-grid.mode-mission {
    grid-template-columns: 300px 1fr 300px;
  }
}
@media (max-width: 1024px) {
  .cockpit-grid.mode-mission {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UPGRADE 3: STACKED SPEED CELL & TABULAR PILLS
   ========================================================================== */
.indicator-pill.is-stacked-cell {
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  flex: 0 0 104px;
  padding: 2px 8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.net-stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.net-stack-arrow.up { color: #FCD34D; font-weight: 700; }
.net-stack-arrow.down { color: #67E8F9; font-weight: 700; }
.net-stack-val { text-align: right; color: #F8FAFC; font-weight: 600; }

.indicator-pill.is-tabular-cell {
  min-width: auto;
  justify-content: center;
}

/* ==========================================================================
   UPGRADE 2: AI QUOTAS MATRIX (5h & Weekly Quotas + Unified Token Strip)
   ========================================================================== */
.ai-quotas-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0;
  padding: 6px;
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.ai-matrix-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  line-height: 1.15;
}

.matrix-engine-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  flex-wrap: wrap;
}

.matrix-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-codex { background: var(--eng-codex); box-shadow: 0 0 5px var(--eng-codex); }

.matrix-name {
  font-weight: 700;
  color: var(--text-primary);
}

.matrix-model-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 4px;
  border-radius: 3px;
}

.matrix-tokens {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.matrix-quota-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.matrix-quota-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.matrix-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.1;
}

.matrix-col-label {
  font-size: 11px;
  color: var(--text-muted);
}

.matrix-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--text-primary);
}

.matrix-reset {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.matrix-bar-track {
  height: 4px;
  background: var(--track-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.matrix-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}
.matrix-bar-fill.fill-amber { background: var(--accent-amber); }
.matrix-bar-fill.fill-purple { background: var(--eng-gemini); }
.matrix-bar-fill.fill-cyan { background: var(--rx-cyan); }
.matrix-bar-fill.fill-emerald { background: var(--eng-codex); }
.matrix-bar-fill.fill-rose { background: var(--accent-rose); }

/* ==========================================================================
   PERMANENT 3-COLUMN TOTAL DATA SUMMARY BAR
   ========================================================================== */
.net-total-periods-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 6px 0;
  padding: 6px 8px;
  background: var(--bg-well);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.net-period-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.net-period-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.net-period-values {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.net-period-rx, .net-period-tx, .net-period-sum {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 3px;
}

.net-period-rx { color: var(--rx-cyan); font-weight: 600; }
.net-period-tx { color: var(--tx-magenta); font-weight: 600; }
.net-period-sum { color: var(--text-secondary); font-weight: 500; }

/* ==========================================================================
   UPGRADE 4: COCKPIT SETTINGS CUSTOMIZER MODAL
   ========================================================================== */
#topbar-customizer-modal .modal-dialog,
.modal-dialog-cockpit {
  max-width: 880px;
  width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

#topbar-customizer-modal .modal-body {
  overflow-y: auto;
  max-height: calc(86vh - 130px);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sync-checkbox-label {
  margin-left: auto;
}

.customizer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display, var(--font-sans));
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 4px;
}

.customizer-active-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
}

.customizer-help-tag {
  font-size: 11px;
  color: var(--text-muted);
}

.customizer-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .customizer-categories-grid {
    grid-template-columns: 1fr;
  }
}

.customizer-category-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customizer-category-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display, var(--font-sans));
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 5px;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customizer-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.customizer-metric-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.customizer-metric-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-primary);
}

.customizer-metric-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* ==========================================================================
   UPGRADE 5: 120 FPS FLIP & PARTICLE EFFECT CANVAS
   ========================================================================== */
#fx-transition-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9500;
}

/* ==========================================================================
   MINIMIZED SIDE-COLUMN ADAPTATION (SwiftUI Compact Single-Line Headers)
   ========================================================================== */
#col-left .card-subtitle,
#col-right .card-subtitle,
#col-left .card-tech-tag,
#col-right .card-tech-tag {
  display: none;
}

#col-left .cockpit-card .card-header,
#col-right .cockpit-card .card-header {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
  gap: 4px;
}

#col-left .cockpit-card .header-titles,
#col-right .cockpit-card .header-titles {
  flex: 1 1 auto;
  min-width: 110px;
}

#col-left .cockpit-card .card-header-actions,
#col-right .cockpit-card .card-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

#col-left .cockpit-card .segment-pills,
#col-right .cockpit-card .segment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#col-left .cockpit-card .seg-btn,
#col-right .cockpit-card .seg-btn {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.15;
}

#col-left .cockpit-card .btn-maximize-card,
#col-right .cockpit-card .btn-maximize-card {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 6px;
}

/* Map Card in Side Column (Mini-Radar) */
#col-left #card-map-engine,
#col-right #card-map-engine {
  padding: 10px;
}

#col-left #card-map-engine .map-toolbar,
#col-right #card-map-engine .map-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

#col-left #card-map-engine .map-mode-pills,
#col-right #card-map-engine .map-mode-pills {
  width: 100%;
  justify-content: space-between;
}

#col-left #card-map-engine .map-tab-btn,
#col-right #card-map-engine .map-tab-btn {
  padding: 4px 8px;
  font-size: 11px;
}

#col-left #card-map-engine .map-right-controls,
#col-right #card-map-engine .map-right-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

#col-left #card-map-engine #map-period-pills,
#col-right #card-map-engine #map-period-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: calc(100% - 90px);
}

#col-left #card-map-engine #btn-tag-base,
#col-right #card-map-engine #btn-tag-base {
  padding: 3px 6px;
  font-size: 11px;
}

#col-left #card-map-engine #map-container,
#col-right #card-map-engine #map-container {
  height: 240px !important;
  min-height: 240px !important;
}

#col-left #card-map-engine .map-hud-overlay,
#col-right #card-map-engine .map-hud-overlay {
  display: none !important;
}

/* Timeline Card in Side Column */
#col-left #card-timeline-explorer #timeline-container,
#col-right #card-timeline-explorer #timeline-container {
  height: 160px !important;
}

#col-left #card-timeline-explorer .timeline-summary-bar,
#col-right #card-timeline-explorer .timeline-summary-bar {
  flex-direction: column;
  gap: 8px;
}

#col-left #card-timeline-explorer .timeline-legend,
#col-right #card-timeline-explorer .timeline-legend {
  flex-wrap: wrap;
  gap: 6px;
}

#col-left #card-timeline-explorer .timeline-kpis,
#col-right #card-timeline-explorer .timeline-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}



/* Data honesty states */
.offline-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #7f1d1d;
  color: #fff;
  font: 600 12px -apple-system, sans-serif;
  padding: 6px 12px;
  text-align: center;
}

/* Estimated (inferred) values: amber text with a dotted underline; hover shows source and reason. */
.is-estimated,
.indicator-pill.is-estimated .ind-text {
  color: var(--accent-amber) !important;
  text-decoration: underline dotted rgba(var(--accent-amber-rgb), 0.7);
  text-underline-offset: 3px;
  cursor: help;
}

.empty-state {
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================================================
   SEKME 5: Droplet Güvenlik Radarı, Strix Pentest & 0-Day Tehdit Bülteni
   ========================================================================== */

.sec-intro-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sec-scan-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(77, 204, 242, 0.12);
  border: 1px solid rgba(77, 204, 242, 0.35);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sec-scan-trigger-btn:hover {
  background: rgba(77, 204, 242, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(77, 204, 242, 0.25);
}

.sec-scan-trigger-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.sec-scan-trigger-btn .scan-icon {
  font-size: 13px;
}

.sec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sec-kpi-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.sec-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sec-kpi-val {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.sec-kpi-unit {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.sec-kpi-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.sec-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.badge-safe {
  background: rgba(56, 217, 128, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(56, 217, 128, 0.3);
}

.badge-warning {
  background: rgba(255, 184, 64, 0.14);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 184, 64, 0.3);
}

.badge-critical {
  background: rgba(255, 92, 84, 0.16);
  color: var(--accent-rose);
  border: 1px solid rgba(255, 92, 84, 0.35);
}

.badge-info {
  background: rgba(77, 204, 242, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(77, 204, 242, 0.25);
}

.badge-mitigated {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-irrelevant {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.sec-triage-reason {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}

.sec-triage-reason.reason-mitigated {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.sec-triage-reason.reason-irrelevant {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.sec-filter-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sec-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sec-filter-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sec-filter-btn.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: #34d399;
}

.sec-scan-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(77, 204, 242, 0.08);
  border: 1px solid rgba(77, 204, 242, 0.25);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: var(--fs-xs);
  color: var(--accent-cyan);
}

.scan-spinner {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sec-section {
  margin-bottom: 18px;
}

.sec-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.sec-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.sec-section-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.sec-servers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  transition: border-color var(--transition-fast);
}

.sec-server-card:hover {
  border-color: var(--border-strong);
}

.sec-server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sec-server-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-server-icon {
  font-size: 20px;
}

.sec-server-name {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
}

.sec-server-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.sec-server-score-badge {
  display: flex;
  align-items: baseline;
  gap: 2px;
  background: var(--bg-card-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.sec-server-score-badge.score-good {
  border-color: rgba(56, 217, 128, 0.4);
}

.sec-server-score-badge.score-mid {
  border-color: rgba(255, 184, 64, 0.4);
}

.sec-server-score-num {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--text-primary);
}

.sec-server-score-denom {
  font-size: 11px;
  color: var(--text-muted);
}

.sec-server-props-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 6px;
}

.sec-prop-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sec-prop-key {
  font-size: 11px;
  color: var(--text-muted);
}

.sec-prop-val {
  font-size: 11px;
  font-weight: 600;
}

.text-safe {
  color: var(--accent-emerald);
}

.text-amber {
  color: var(--accent-amber);
}

.text-rose {
  color: var(--accent-rose);
}

.sec-threats-list,
.sec-findings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-threat-item,
.sec-finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-threat-head,
.sec-finding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sec-threat-title-group,
.sec-finding-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sec-threat-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.sec-threat-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
}

.sec-threat-title:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.sec-finding-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sec-threat-source,
.sec-finding-host {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sec-threat-tags-row,
.sec-finding-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sec-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.sec-tag-cve {
  color: var(--accent-amber);
  border-color: rgba(255, 184, 64, 0.3);
}

.sec-tag-comp {
  color: var(--accent-cyan);
  border-color: rgba(77, 204, 242, 0.25);
}

.sec-tag-server {
  color: var(--accent-purple);
  border-color: rgba(230, 115, 217, 0.25);
}

.sec-tag-epss {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.sec-threat-desc,
.sec-finding-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.sec-action-card,
.sec-finding-remediation-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sec-action-rec {
  font-size: 11px;
  color: var(--accent-cyan);
}

.sec-remed-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.sec-remed-text {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

.sec-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 5px 8px;
}

.sec-cmd-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.sec-cmd-code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: #38d980;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
}

.sec-btn-copy {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.sec-btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.sec-empty-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE SECURITY FINDINGS & 0-DAY FEED MODAL STYLES
   ========================================================================== */

.sec-clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.sec-clickable:hover {
  background: rgba(77, 204, 242, 0.12) !important;
  border-color: rgba(77, 204, 242, 0.4) !important;
  transform: translateY(-1px);
}

#sec-findings-modal .modal-dialog,
.modal-dialog-sec {
  max-width: 920px;
  width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

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

.sec-inspect-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(77, 204, 242, 0.1);
  border: 1px solid rgba(77, 204, 242, 0.3);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sec-inspect-trigger-btn:hover {
  background: rgba(77, 204, 242, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.sec-server-card-footer {
  margin-top: 8px;
  display: flex;
}

.btn-sec-inspect {
  width: 100%;
  background: rgba(77, 204, 242, 0.08);
  border: 1px solid rgba(77, 204, 242, 0.25);
  color: var(--accent-cyan);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-sec-inspect:hover {
  background: rgba(77, 204, 242, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.btn-sec-inline-link {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-sec-inline-link:hover {
  color: #ffffff;
}

.sec-section-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.sec-modal-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sec-modal-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sec-modal-tab.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.sec-modal-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-modal-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sec-modal-filter-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.sec-modal-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sec-filter-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sec-filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.sec-filter-pill.active {
  background: rgba(77, 204, 242, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.sec-modal-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 4px;
}

.sec-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.sec-modal-card:hover {
  border-color: var(--border-active);
}

.sec-modal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sec-modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.sec-modal-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sec-modal-id {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-modal-host-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.sec-modal-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sec-modal-section-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-block-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.sec-modal-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.sec-mitigation-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-mitigation-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.sec-mitigation-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.sec-remediation-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sec-cve-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sec-cve-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.sec-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.sec-feed-card:hover {
  border-color: var(--border-active);
}

.sec-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sec-feed-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.sec-feed-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
}

.sec-feed-title:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.sec-feed-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.sec-feed-source {
  font-size: 11px;
  color: var(--text-muted);
}

.sec-feed-date {
  font-size: 10px;
  color: var(--text-muted);
}


/* ---------------------------------------------------------------------------
   Token Velocity
--------------------------------------------------------------------------- */
.tv-total-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 8px 0 10px;
}
.tv-total-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.tv-total-value { font-size: 22px; font-weight: 700; }
.tv-total-ts { font-size: 11px; opacity: .5; margin-left: auto; }
.tv-harness-list { display: flex; flex-direction: column; gap: 6px; }
.tv-harness-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.tv-harness-name { font-size: 12px; font-weight: 600; text-transform: capitalize; }
.tv-harness-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.tv-harness-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #a78bfa); }
.tv-harness-tokens { font-size: 13px; font-weight: 700; text-align: right; }
.tv-empty { padding: 14px; text-align: center; font-size: 12px; opacity: .55; }
.tv-opencode-quota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.tv-quota-label { font-size: 11px; font-weight: 600; opacity: .7; }
.tv-quota-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .25);
  font-variant-numeric: tabular-nums;
}
.tv-quota-pill.tv-credit { background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .25); }
