/* CSS Variables - OmniRadar 亮色主题 */
:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-hover: #e2e8f0;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent-blue: #2563eb;
  --accent-green: #16a34a;
  --accent-yellow: #d97706;
  --accent-red: #dc2626;
  --accent-purple: #7c3aed;
  --sidebar-width: 240px;
  --sidebar-bg: #1e293b;
  --sidebar-text: #e2e8f0;
  --sidebar-text-muted: #94a3b8;
  /* z-index 层级管理 (P2-1) */
  --z-modal-overlay: 1000;
  --z-modal-content: 1001;
  --z-modal-close: 1002;
  --z-toast: 1100;

  /* Dashboard 健康状态颜色 */
  --health-ok: #16a34a;
  --health-warning: #d97706;
  --health-critical: #dc2626;
  --health-info: #2563eb;

  /* 告警严重程度颜色 */
  --alert-P0-bg: #fef2f2;
  --alert-P0-border: #dc2626;
  --alert-P0-text: #991b1b;
  --alert-P1-bg: #fffbeb;
  --alert-P1-border: #d97706;
  --alert-P1-text: #92400e;
  --alert-P2-bg: #eff6ff;
  --alert-P2-border: #2563eb;
  --alert-P2-text: #1e40af;

  /* 趋势颜色 */
  --trend-up: #16a34a;
  --trend-down: #dc2626;
  --trend-neutral: #64748b;
}

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

body {
  font-family: 'Inter', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  min-height: 100vh;
}

.app-loading .app-container {
  visibility: hidden;
}

.app-splash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #1f2937;
  font-size: 14px;
}

.app-splash-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: app-splash-spin 0.8s linear infinite;
}

.app-splash-text {
  letter-spacing: 0.04em;
}

@keyframes app-splash-spin {
  to { transform: rotate(360deg); }
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  position: fixed;
  z-index: 20;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.sidebar-logo h1 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-text);
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar-logo .logo-sub {
  font-size: 13px;
  color: var(--sidebar-text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.sidebar-logo .logo-desc {
  font-size: 11px;
  color: var(--sidebar-text-muted);
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.4;
}

.sidebar-nav {
  list-style: none;
  flex: 1;
}

.permissions-pending .sidebar-nav {
  visibility: hidden;
}

.sidebar-nav li {
  margin: 4px 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.15s;
}

.sidebar-nav a span {
  white-space: nowrap;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--sidebar-text);
}

.sidebar-nav a.active {
  background: var(--accent-blue);
  color: white;
}

.sidebar-nav .nav-section {
  margin: 12px 0 6px;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: var(--sidebar-text-muted);
}

.sidebar-footer a {
  color: var(--sidebar-text-muted);
  text-decoration: none;
}

.sidebar-footer a:hover {
  color: var(--sidebar-text);
}

.embed-wrapper {
  height: calc(100vh - 180px);
  min-height: 520px;
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.embed-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.build-watermark {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 9999;
  font-size: 11px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px 32px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  width: calc(100% - var(--sidebar-width));
  overflow-x: hidden;
}

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

.geo-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.geo-toolbar .page-title {
  font-size: 20px;
}

.geo-meta-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  row-gap: 4px;
  margin-left: auto;
}

#page-geo-strategy .page-title {
  font-size: 18px;
}

#page-geo-strategy .geo-subtitle {
  font-size: 12px;
}

#page-geo-strategy .geo-field span {
  font-size: 11px;
}

#page-geo-strategy .geo-field select {
  min-width: 140px;
  padding: 4px 8px;
  font-size: 12px;
}

.geo-export-btn {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.geo-export-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
}

.page-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-card.success .stat-value { color: var(--accent-green); }
.stat-card.warning .stat-value { color: var(--accent-yellow); }
.stat-card.danger .stat-value { color: var(--accent-red); }

/* Platform Badge */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.platform-badge.deepseek { background: #e0f2fe; color: #0369a1; }
.platform-badge.perplexity { background: #fce7f3; color: #be185d; }
.platform-badge.chatgpt { background: #dcfce7; color: #15803d; }
.platform-badge.claude { background: #fef3c7; color: #b45309; }
.platform-badge.gemini { background: #ede9fe; color: #6d28d9; }

/* Worker Cards */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.worker-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.worker-name {
  font-weight: 600;
  color: var(--text-primary);
}

.worker-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  animation: pulse-online 2s infinite;
}

.status-dot.offline {
  background: var(--text-muted);
}

@keyframes pulse-online {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.worker-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.worker-stat {
  font-size: 13px;
  color: var(--text-secondary);
}

.worker-stat-value {
  font-weight: 600;
  margin-right: 4px;
  color: var(--text-primary);
}

.worker-current {
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.worker-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* Platforms Grid */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: #fef2f2;
  color: var(--accent-red);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-loading {
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
}

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

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover {
  background: var(--bg-tertiary);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-success { background: rgba(0, 200, 83, 0.15); color: var(--accent-green); }
.badge-warning { background: rgba(255, 179, 0, 0.15); color: var(--accent-yellow); }
.badge-danger { background: rgba(255, 68, 68, 0.15); color: var(--accent-red); }
.badge-info { background: rgba(0, 112, 243, 0.15); color: var(--accent-blue); }
.badge-muted { background: var(--bg-tertiary); color: var(--text-secondary); }

/* Forms */
textarea, input, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  transition: width 0.5s ease-out;
  position: relative;
  border-radius: 4px;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: var(--z-toast);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { background: var(--accent-green); }
.toast.error { background: var(--accent-red); }
.toast.info { background: var(--accent-blue); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-overlay);
  overflow: auto;
}

.modal-overlay.show {
  display: block;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 800px;
  margin: 40px auto;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.confirm-modal {
  max-width: 400px;
  padding: 20px;
}

.confirm-modal .modal-header {
  border-bottom: none;
  padding: 0 0 12px 0;
}

.confirm-modal h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

/* Quality Stars */
.quality-stars {
  color: var(--accent-yellow);
  letter-spacing: 2px;
}

/* Copy Button */
.id-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy {
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
  border-radius: 4px;
}

.btn-copy:hover {
  opacity: 1;
  background: var(--bg-hover);
  transform: scale(1.1);
}

/* Activity Feed */
.activity-feed {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.activity-time {
  color: var(--text-muted);
  white-space: nowrap;
}

/* 骨架屏加载动画 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.skeleton-cell {
  height: 20px;
  flex: 1;
}

.skeleton-cell.short { flex: 0.5; }
.skeleton-cell.long { flex: 2; }

.loading-container {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

/* 统计摘要 */
.stats-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stats-summary:empty {
  display: none;
}

.stat-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-item-icon {
  font-size: 18px;
}

.stat-item-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-item-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  margin-bottom: 16px;
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters select, .filters input {
  width: auto;
  min-width: 150px;
}

.filter-item select {
  min-width: 180px;
  max-width: 280px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ID Display Component */
.id-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
}

.id-prefix {
  font-weight: 600;
}

.id-proj { color: var(--accent-blue); }
.id-bat { color: var(--accent-green); }
.id-task { color: var(--accent-purple); }
.id-res { color: var(--accent-yellow); }
.id-wkr { color: var(--accent-red); }

.id-copy-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
  border-radius: 3px;
  margin-left: 4px;
}

.id-copy-btn:hover {
  opacity: 1;
  background: var(--bg-hover);
  transform: scale(1.1);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
}

.pagination .btn {
  min-width: 60px;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 8px;
}

.pagination-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Loading state for filters */
.filters-card.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.filters-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Status change animation */
@keyframes status-change {
  0%, 100% { background: transparent; }
  50% { background: rgba(37, 99, 235, 0.1); }
}

.task-row-updated {
  animation: status-change 1s ease-in-out;
}

.task-row-completed {
  animation: status-change 1s ease-in-out;
  background: rgba(22, 163, 74, 0.05);
}

/* Hidden pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
    padding: 10px 0;
  }

  .sidebar-logo h1 span,
  .sidebar-nav a span {
    display: none;
  }

  .main-content {
    margin-left: 60px;
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   截图预览模态框样式 (v1.2.0+)
   ============================================ */

/* 截图模态框内容 */
.screenshot-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  z-index: var(--z-modal-content);
  overflow: hidden;
  /* P2-2: 添加关闭动画 */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* P2-2: 关闭动画状态 */
.screenshot-modal-content.closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

/* 关闭按钮 */
.screenshot-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: var(--z-modal-close);
}

.screenshot-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* 截图图片 */
.screenshot-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* 截图操作按钮 */
.screenshot-actions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1003;
}

.screenshot-actions .btn {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式：移动端优化 */
@media (max-width: 768px) {
  .screenshot-modal-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .screenshot-image {
    max-width: 100vw;
    max-height: 80vh;
  }

  .screenshot-actions {
    bottom: 12px;
    flex-direction: column;
    gap: 8px;
  }

  .screenshot-modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* ============================================
   截图网格视图样式 (v2.1.1+)
   ============================================ */

.screenshot-grid-section {
  margin: 16px 0;
}

.btn-screenshot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-screenshot-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
}

.btn-screenshot-toggle .icon {
  font-size: 16px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.screenshot-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-tertiary);
  aspect-ratio: 4/3;
}

.screenshot-thumbnail:hover {
  transform: scale(1.05);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1;
}

.screenshot-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-thumbnail .index-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.screenshot-thumbnail .source-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.screenshot-thumbnail.error {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   截图画廊模态框样式 (v2.1.1+)
   ============================================ */

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.gallery-content {
  position: relative;
  z-index: 2;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 12px 12px 0 0;
}

.gallery-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.gallery-main {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.gallery-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  overflow: hidden;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev { left: 20px; }
.gallery-nav-btn.next { right: 20px; }

.gallery-metadata {
  width: 320px;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-metadata-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-metadata-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.gallery-metadata-value {
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 12px 12px;
}

.gallery-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.gallery-thumbnail.active {
  border-color: var(--accent-blue);
  opacity: 1;
}

.gallery-thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-controls {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 12px 12px;
  justify-content: center;
}

.gallery-zoom-info {
  color: white;
  font-size: 13px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

/* ============================================
   来源标签样式 (v2.1.1+)
   ============================================ */

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.source-tag:hover {
  transform: scale(1.05);
}

.source-tag.gov {
  background: #dbeafe;
  color: #1e40af;
}

.source-tag.media {
  background: #dcfce7;
  color: #166534;
}

.source-tag.wiki {
  background: #fed7aa;
  color: #9a3412;
}

.source-tag.other {
  background: #f3f4f6;
  color: #6b7280;
}

.source-tag .icon {
  font-size: 12px;
}

/* ============================================
   参考分组样式 (v2.1.1+)
   ============================================ */

.reference-group {
  margin-bottom: 16px;
}

.reference-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.reference-group-header:hover {
  background: var(--bg-hover);
}

.reference-group-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.reference-group-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.reference-group-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

.reference-group-content {
  padding-left: 12px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 1000px; }
}

/* ============================================
   统计进度条样式 (v2.1.1+)
   ============================================ */

.stats-progress-bar {
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  display: flex;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.stats-progress-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  transition: width 0.5s ease;
}

.stats-progress-segment.full {
  background: var(--accent-green);
}

.stats-progress-segment.partial {
  background: #f59e0b;
}

.stats-progress-segment.none {
  background: var(--accent-red);
}

/* ============================================
   截图状态指示器 (v2.1.1+)
   ============================================ */

.screenshot-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshot-status:hover {
  transform: scale(1.05);
}

.screenshot-status.full {
  background: rgba(22, 163, 74, 0.15);
  color: var(--accent-green);
}

.screenshot-status.partial {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.screenshot-status.none {
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent-red);
}

.screenshot-status.loading {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-blue);
}

/* ============================================
   可信度评分样式 (v2.1.1+)
   ============================================ */

.credibility-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.credibility-score.high {
  background: #dcfce7;
  color: #166534;
}

.credibility-score.medium {
  background: #fef3c7;
  color: #b45309;
}

.credibility-score.low {
  background: #fee2e2;
  color: #dc2626;
}

.credibility-stars {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 12px;
}

/* ============================================
   新鲜度告警样式 (v2.1.1+)
   ============================================ */

.freshness-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: #fef3c7;
  color: #b45309;
}

.freshness-warning .icon {
  font-size: 12px;
}

/* ============================================
   批量操作栏样式 (P0-3)
   ============================================ */

.batch-operation-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 任务复选框样式 */
.task-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

/* ============================================
   Enhanced Dashboard Styles (极致体验仪表盘)
   ============================================ */

/* 页面元信息 */
.page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 12px;
}

.last-update {
  font-size: 13px;
  color: var(--text-secondary);
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auto-refresh-toggle input {
  cursor: pointer;
}

/* Level 0: 系统健康度指示器 */
.health-indicator {
  background: var(--bg-secondary);
  border: 2px solid;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.health-indicator.health-ok {
  border-color: var(--health-ok);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(22, 163, 74, 0.1) 100%);
}

.health-indicator.health-warning {
  border-color: var(--health-warning);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.health-indicator.health-critical {
  border-color: var(--health-critical);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.1) 100%);
  animation: critical-pulse 2s infinite;
}

@keyframes critical-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.health-status {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.health-message {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Level 1: 需要关注区域 */
.attention-needed {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.attention-header {
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.attention-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.attention-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.attention-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 告警卡片 */
.alert-card {
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 4px solid;
  transition: all 0.2s ease;
  animation: alert-slide-in 0.5s ease-out;
}

@keyframes alert-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-card.alert-P0 {
  background: var(--alert-P0-bg);
  border-left-color: var(--alert-P0-border);
}

.alert-card.alert-P1 {
  background: var(--alert-P1-bg);
  border-left-color: var(--alert-P1-border);
}

.alert-card.alert-P2 {
  background: var(--alert-P2-bg);
  border-left-color: var(--alert-P2-border);
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 20px;
  padding: 0 6px;
  background: currentColor;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.alert-title {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  color: var(--text-primary);
}

.alert-time {
  font-size: 12px;
  color: var(--text-muted);
}

.alert-body {
  margin-left: 44px;
}

.alert-message {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.alert-impact {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.alert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Level 2: 核心指标网格 */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--accent-blue);
}

.metric-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.metric-unit {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.metric-trend {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.trend-up {
  color: var(--trend-up);
}

.trend-down {
  color: var(--trend-down);
}

.trend-neutral {
  color: var(--trend-neutral);
}

.metric-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 数值更新动画 */
@keyframes value-change {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); color: var(--accent-blue); }
  100% { transform: scale(1); }
}

.metric-value.updated {
  animation: value-change 0.3s ease;
}

/* 趋势动画 */
@keyframes trend-up {
  0% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes trend-down {
  0% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(3px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.metric-trend.trend-up {
  animation: trend-up 0.5s ease;
}

.metric-trend.trend-down {
  animation: trend-down 0.5s ease;
}

/* Level 3: Dashboard网格 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.card-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.batch-list,
.worker-list {
  max-height: 300px;
  overflow-y: auto;
}

.batch-item,
.worker-item {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.batch-item:hover,
.worker-item:hover {
  background: var(--bg-tertiary);
}

.batch-item:last-child,
.worker-item:last-child {
  border-bottom: none;
}

/* Level 4: 性能分析区域 */
.performance-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.performance-toggle {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: none;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.performance-toggle:hover {
  background: var(--bg-tertiary);
}

.performance-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.performance-section.expanded .performance-content {
  max-height: 800px;
}

.performance-metrics {
  padding: 20px;
}

/* GEO Demo */
.geo-platforms {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.geo-platform-card {
  padding: 10px 14px;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.08), transparent 55%), var(--bg-secondary);
  min-width: 120px;
}

.geo-platform-card.selected {
  border-color: #2b7cff;
  box-shadow: 0 0 0 2px rgba(43,124,255,0.15);
}

.geo-platform-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.geo-platform-status {
  font-size: 12px;
  color: var(--text-muted);
}

.geo-section {
  margin-bottom: 22px;
}

.geo-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.geo-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.geo-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.geo-metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.geo-metric-value {
  font-size: 20px;
  font-weight: 700;
}

.geo-metric-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.geo-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.geo-grid-sources {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .geo-grid-sources {
    grid-template-columns: 1fr;
  }
}

.geo-data-grid {
  gap: 16px;
}

@media (max-width: 1024px) {
  .geo-data-grid {
    grid-template-columns: 1fr;
  }
}

.geo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.geo-card-hero {
  min-height: 200px;
  padding: 16px;
}

.geo-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.geo-section-title {
  font-size: 15px;
}

.geo-table-title {
  font-size: 14px;
}

.geo-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.geo-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.geo-bar-track {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
}

.geo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2b7cff, #12d8fa);
  border-radius: 999px;
}

.geo-bar-value {
  text-align: right;
  color: var(--text-primary);
  font-weight: 600;
}

.geo-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
}

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

.geo-pill-count {
  font-weight: 600;
  color: var(--text-primary);
}

.geo-share-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.geo-share-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.geo-share-track {
  height: 10px;
  background: rgba(59,130,246,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.geo-share-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
}

.geo-share-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.geo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  min-height: 200px;
}

.geo-cloud-item {
  color: rgba(226,232,240,0.85);
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(15,23,42,0.4);
  border: 1px solid rgba(59,130,246,0.2);
}

.geo-cloud-item.muted {
  color: var(--text-muted);
}

.geo-cloud-item.size-1 { font-size: 12px; }
.geo-cloud-item.size-2 { font-size: 15px; }
.geo-cloud-item.size-3 { font-size: 18px; }
.geo-cloud-item.size-4 { font-size: 22px; font-weight: 600; }
.geo-cloud-item.size-5 { font-size: 26px; font-weight: 700; }
.geo-cloud-item.size-6 { font-size: 30px; font-weight: 700; }

.geo-insight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.geo-insight-line strong {
  color: #e2e8f0;
}

.geo-question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.geo-question-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.geo-question-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.geo-question-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.geo-question-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.geo-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

.geo-question-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.geo-question-foot {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* GEO Intelligence Table Layout */
#page-geo-strategy,
#page-geo-brief,
#page-geo-competitor-insights {
  background: #F8FAFC;
}

#page-geo-strategy .page-header,
#page-geo-brief .page-header,
#page-geo-competitor-insights .page-header {
  gap: 12px;
}

.geo-hot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.geo-insights-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  font-size: 13px;
}

.geo-ellipsis {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-insights-summary-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #0F172A;
  font-size: 14px;
}

.geo-insights-kpi {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.geo-insights-kpi .geo-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 6px;
}

.geo-insights-kpi .geo-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
}

.geo-insights-kpi .geo-kpi-label {
  font-size: 12px;
  color: #64748B;
}

.geo-insights-kpi .geo-kpi-sub {
  font-size: 11px;
  color: #94A3B8;
}

.geo-brand-strip {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
}

.geo-brand-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.geo-brand-label {
  font-size: 11px;
  color: #64748B;
  padding: 2px 6px;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

.geo-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 12px;
  color: #0F172A;
}

.geo-brand-pill.target {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1E3A8A;
  font-weight: 600;
}

.geo-brand-pill img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.geo-card-note {
  margin-top: 8px;
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.5;
}

.geo-insights-block {
  margin-bottom: 16px;
}

.geo-insights-map {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.geo-insights-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.geo-insights-core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

#geo-competitor-url-top .geo-table-controls {
  flex-wrap: nowrap;
  gap: 12px;
}

#geo-competitor-url-top .geo-table-search {
  flex: 1 1 auto;
}

#geo-competitor-url-top .geo-table-search input {
  width: 100%;
}

.geo-card-subtitle {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 8px;
}

.geo-competitor-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.geo-competitor-card {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  background: #FFFFFF;
  display: grid;
  gap: 10px;
}

.geo-competitor-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.geo-competitor-card-header img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.geo-competitor-card-title {
  font-weight: 600;
  color: #0F172A;
  font-size: 15px;
}

.geo-competitor-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.geo-competitor-card-meta strong {
  color: #0F172A;
}

.geo-competitor-card-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}

.geo-competitor-card-list a {
  color: #2563EB;
  text-decoration: none;
}

.geo-competitor-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #3730A3;
  font-size: 11px;
}

.geo-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.geo-collapse-btn {
  border: 1px solid #CBD5F5;
  background: #EEF2FF;
  color: #3730A3;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.geo-collapse-body {
  display: none;
  margin-top: 12px;
}

.geo-collapse-body.open {
  display: block;
}

.geo-insights-playbook {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: #0F172A;
}

.geo-insights-playbook .playbook-item {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
}

.geo-insights-playbook .playbook-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 6px;
}

.geo-insights-playbook .playbook-text {
  line-height: 1.6;
  color: #334155;
}

.geo-insights-playbook .playbook-text p {
  margin: 0 0 8px;
}

.geo-insights-playbook .playbook-text ul,
.geo-insights-playbook .playbook-text ol {
  margin: 6px 0 10px 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.geo-insights-playbook .playbook-text li {
  line-height: 1.6;
  color: #334155;
}

.geo-insights-playbook .playbook-text a {
  color: #2563EB;
  text-decoration: none;
}

.geo-insights-playbook .playbook-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #64748B;
}

.geo-table-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.geo-table-brand img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.geo-overview-meta {
  display: grid;
  gap: 8px;
  margin: 6px 0 10px;
}

.geo-summary,
.geo-scope {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #0F172A;
  font-size: 14px;
  line-height: 1.6;
}

.geo-scope {
  color: #475569;
  font-size: 13px;
}

.geo-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.geo-quality-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.geo-quality-label {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 8px;
}

.geo-quality-value {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
}

.geo-quality-hint {
  font-size: 12px;
  color: #64748B;
  margin-top: 6px;
}

.geo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.geo-subtitle {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

.geo-header-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.geo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}

.geo-field select {
  min-width: 160px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 12px;
}

.geo-multi-select {
  position: relative;
  min-width: 110px;
  max-width: 140px;
}

.geo-multi-select-compact {
  min-width: 100px;
  max-width: 120px;
}

.geo-single-select {
  min-width: 110px;
  max-width: 140px;
}

.geo-single-select .geo-single-control {
  width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-empty-chart {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 12px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px dashed #E2E8F0;
}

.geo-multi-trigger {
  width: 100%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-multi-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  min-width: 160px;
  max-height: 220px;
  overflow: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 120ms ease, transform 120ms ease;
  text-align: left;
}

.geo-multi-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.geo-multi-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #334155;
  padding: 4px 10px;
  justify-content: flex-start;
}

.geo-multi-item input {
  width: 13px;
  height: 13px;
}

.geo-multi-item:hover {
  background: #f1f5f9;
}

.geo-multi-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

.geo-platform-filter {
  min-width: 240px;
}

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

.geo-filter-pill {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.geo-filter-pill.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.geo-section-panel {
  display: none;
  margin-bottom: 18px;
}

.geo-section-panel.active {
  display: block;
}

.geo-section-title-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.geo-collapse-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.geo-collapse-btn:hover {
  background: #f1f5f9;
}

.geo-competition-card.geo-collapsed {
  display: none;
}

.geo-competitor-rank {
  padding: 12px 14px;
  margin-bottom: 12px;
}

.geo-competitor-rank-title {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 8px;
}

.geo-competitor-rank-list {
  display: grid;
  gap: 6px;
}

.geo-competitor-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  background: #F8FAFC;
}

.geo-competitor-rank-item.target {
  background: #EEF2FF;
}

.geo-competitor-rank-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.geo-competitor-rank-num {
  font-size: 12px;
  color: #94A3B8;
  width: 28px;
  text-align: right;
}

.geo-competitor-rank-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.geo-competitor-rank-icon img {
  width: 14px;
  height: 14px;
}

.geo-competitor-rank-name {
  font-size: 12px;
  color: #0F172A;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-competitor-rank-tag {
  font-size: 11px;
  color: #2563EB;
  margin-left: 4px;
}

.geo-competitor-rank-value {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
}

.geo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.geo-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-kpi-label {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 8px;
}

.geo-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
}

.geo-kpi-hint {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}

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

.geo-kpi-ring {
  --percent: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-blue) calc(var(--percent) * 1%), #e5e7eb 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-kpi-ring span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #0f172a;
  font-weight: 600;
}

.geo-kpi-progress {
  height: 6px;
  width: 100%;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.geo-kpi-progress > span {
  display: block;
  height: 100%;
  background: #60a5fa;
  border-radius: 999px;
}

.geo-sentiment-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.geo-sentiment-bar span {
  height: 100%;
}

.geo-sentiment-pos { background: #22c55e; }
.geo-sentiment-neu { background: #9ca3af; }
.geo-sentiment-neg { background: #ef4444; }

.geo-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.geo-chip-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.geo-filter-group-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.geo-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  color: #0f172a;
  cursor: pointer;
}

.geo-filter-chip.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.geo-filter-select {
  min-width: 140px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 12px;
  color: #0f172a;
}

.geo-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.geo-table-controls .geo-table-search {
  order: 2;
  margin-left: auto;
}

.geo-table-controls .geo-table-meta {
  order: 1;
}

.geo-table {
  border-collapse: collapse;
}

.geo-table th {
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 600;
  background: #f8fafc;
}

.geo-table td {
  padding: 10px 12px;
}

.geo-table tbody tr.geo-data-row td {
  border-bottom: 1px solid #EDF2F7;
}

.geo-table tbody tr.geo-data-row:nth-of-type(even) {
  background: #F8FAFC;
}

.geo-row-expandable {
  cursor: pointer;
}

.geo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.geo-dot-yes { background: #22c55e; }
.geo-dot-no { background: #94a3b8; }

.geo-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.geo-tag-positive { background: #dcfce7; color: #15803d; }
.geo-tag-neutral { background: #f1f5f9; color: #475569; }
.geo-tag-negative { background: #fee2e2; color: #b91c1c; }

.geo-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.geo-table-controls {
  gap: 8px;
}

.geo-table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.geo-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geo-filter-label {
  font-size: 12px;
  color: #64748B;
}

.geo-platform-select {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 8px;
  background: #FFFFFF;
  min-width: 220px;
}

.geo-platform-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.geo-platform-actions button {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.geo-platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.geo-platform-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0F172A;
}

.geo-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 12px;
}

.geo-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

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

.geo-funnel-bar {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.geo-funnel-segment {
  height: 100%;
}

/* GEO V3 Strategy (Issue IDQWX8) */
.geo-funnel-hero {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.geo-funnel-left,
.geo-funnel-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.geo-funnel-label {
  font-size: 12px;
  color: #64748B;
}

.geo-funnel-value {
  font-size: 26px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.1;
}

.geo-funnel-sub {
  font-size: 12px;
  color: #94A3B8;
}

.geo-funnel-center {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.geo-funnel-hero .geo-funnel {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: block;
}

.geo-funnel-chart {
  width: 100%;
  height: 180px;
}

.geo-funnel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.geo-funnel-labels {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 0;
  text-align: center;
}

.geo-funnel-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
}

.geo-funnel-label span {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
}

.geo-funnel-penetration {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.geo-funnel-analysis-bar {
  height: 10px;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: hidden;
  display: flex;
  margin: 6px 0 4px;
}

.geo-funnel-analysis-bar span {
  height: 100%;
  display: block;
}

.geo-funnel-analysis-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #64748B;
}

.geo-funnel-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}


.geo-radar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.geo-competition-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.geo-competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.geo-pie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.geo-pie-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.geo-pie-title {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.geo-pie-chart {
  width: 220px;
  height: 220px;
}

.geo-pie-note {
  font-size: 11px;
  color: #94A3B8;
  align-self: flex-start;
}

.geo-radar-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-radar-card .geo-chart {
  height: 160px;
  min-height: 160px;
}

.geo-gauge-wrap {
  position: relative;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-gauge {
  height: 170px;
  position: relative;
  z-index: 1;
}

.geo-gauge-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.geo-gauge-overlay svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12));
}

.geo-gauge-value {
  position: absolute;
  bottom: 26px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  z-index: 3;
  pointer-events: none;
}

.geo-gauge-foot {
  font-size: 12px;
  color: #475569;
  text-align: center;
  margin-top: 4px;
}

.geo-density-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.geo-card-sub {
  font-size: 12px;
  color: #94A3B8;
  margin: -4px 0 8px;
}

.geo-sentiment-belt {
  padding: 16px 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.geo-strategy-table .geo-filter-bar {
  padding: 0;
  margin-bottom: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.geo-filter-bar .geo-filter-select {
  border-radius: 8px;
  min-width: 120px;
}

.geo-filter-bar .geo-filter-label {
  font-size: 12px;
  color: #64748B;
}

.geo-card-note {
  font-size: 12px;
  color: #64748b;
}

#geo-overview .geo-card,
#geo-overview .geo-table-card {
  border: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.geo-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.geo-status-tag.success {
  background: #DCFCE7;
  color: #15803D;
}

.geo-status-tag.warn {
  background: #FEF3C7;
  color: #B45309;
}

.geo-status-tag.danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.geo-sentiment-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1F2937;
}

.geo-sentiment-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
}

.geo-sentiment-dot.positive::before {
  background: #22C55E;
}

.geo-sentiment-dot.negative::before {
  background: #EF4444;
}

.geo-fire {
  font-size: 14px;
  margin-right: 2px;
}

.geo-action {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geo-action-title {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.geo-action-title.danger {
  color: #DC2626;
}

.geo-action-title.warn {
  color: #D97706;
}

.geo-action-title.ok {
  color: #2563EB;
}

.geo-action-reason {
  font-size: 12px;
  color: #64748B;
}

.geo-sentiment-bar {
  position: relative;
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #E2E8F0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.geo-sentiment-bar span {
  height: 100%;
  display: block;
}

.geo-sentiment-pos {
  background: linear-gradient(90deg, #22C55E, #4ADE80);
}

.geo-sentiment-neg {
  background: linear-gradient(90deg, #FCA5A5, #EF4444);
}

.geo-sentiment-neu {
  background: linear-gradient(90deg, #CBD5F5, #94A3B8);
}

.geo-sentiment-belt .geo-card-note {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.geo-sentiment-label {
  font-size: 12px;
  color: #64748B;
}

.geo-sentiment-label.pos {
  color: #16A34A;
  font-weight: 600;
}

.geo-sentiment-label.neg {
  color: #DC2626;
  font-weight: 600;
}

.geo-sentiment-label.neu {
  color: #64748B;
  font-weight: 600;
}

.geo-sentiment-label.meta {
  margin-left: auto;
  color: #94A3B8;
}

.geo-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.geo-filter-group-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.geo-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-filter-chip {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.geo-filter-chip.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.geo-filter-chip.ghost {
  background: transparent;
  border-color: transparent;
  color: #94A3B8;
}

.geo-filter-empty {
  font-size: 12px;
  color: #94A3B8;
  padding: 4px 0;
}

.geo-question-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
  white-space: normal;
}

.geo-id-cell {
  font-variant-numeric: tabular-nums;
  color: #475569;
  white-space: nowrap;
}

.geo-translate-btn {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  cursor: pointer;
}

.geo-translate-btn:hover {
  background: #F1F5F9;
}

.geo-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.geo-translate-tooltip {
  position: fixed;
  z-index: 2000;
  max-width: 360px;
  padding: 8px 10px;
  background: #0F172A;
  color: #F8FAFC;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  pointer-events: none;
  display: none;
  white-space: pre-wrap;
}

.geo-strategy-table .geo-table-wrapper {
  border: none;
}

.geo-strategy-table .geo-table thead th {
  background: #F8FAFC;
}

.geo-strategy-table .geo-table tbody td {
  padding: 8px 8px;
}

.geo-strategy-table .geo-table-controls {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.geo-strategy-table .geo-table-search {
  order: 2;
  margin-left: auto;
}

.geo-strategy-table .geo-table-search input {
  background: #FFFFFF;
}

.geo-strategy-table .geo-table tbody tr.geo-data-row:nth-of-type(even) {
  background: #F9FAFB;
}

.geo-strategy-table .geo-table tbody tr.geo-data-row:hover {
  background: #EEF2FF;
}

.geo-strategy-table .geo-expand-row {
  background: #F8FAFC;
}

.geo-density-value {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
  line-height: 1;
}

.geo-sparkline-svg {
  width: 120px;
  height: 36px;
}

.geo-competition-heat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.geo-heat-level {
  font-size: 14px;
}

.geo-heat-stack {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.geo-heat-stack span {
  height: 100%;
}

.geo-heat-legend {
  font-size: 11px;
  color: #64748b;
}

.geo-density-value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.geo-sparkline-svg {
  width: 100%;
  height: 32px;
}

.geo-chart {
  width: 100%;
  height: 280px;
  min-height: 280px;
}

.geo-chart-tall {
  height: 560px;
  min-height: 560px;
}

.geo-source-card {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.geo-competitor-chart {
  height: 360px;
  min-height: 360px;
}

.geo-wordcloud {
  width: 100%;
  height: 280px;
  min-height: 280px;
}

.geo-table-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.geo-table-filters label {
  font-size: 12px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geo-table-filters input,
.geo-table-filters select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 12px;
}

.geo-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.geo-coverage-intro {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
}

.geo-coverage-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.geo-coverage-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
}

.geo-coverage-label {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 6px;
}

.geo-coverage-value {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
}

.geo-coverage-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #94A3B8;
}

.geo-coverage-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.geo-coverage-cell {
  text-align: center;
}


.geo-table-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 8px;
}

.geo-table-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}

.geo-table-search input {
  padding: 4px 8px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 11px;
  color: #0F172A;
}

.geo-table-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748B;
  justify-content: flex-end;
  white-space: nowrap;
}

.geo-table-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

@media (min-width: 1100px) {
  .geo-table-controls {
    align-items: center;
  }
  .geo-table-meta {
    justify-content: flex-end;
  }
}

@media (max-width: 1099px) {
  .geo-table-controls {
    flex-wrap: wrap;
  }
  .geo-table-meta {
    justify-content: flex-start;
  }
}

.geo-table-search {
  flex: 1 1 auto;
  min-width: 160px;
}

.geo-table-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.geo-table-meta select {
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 11px;
}

.geo-table-meta select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 12px;
}

#geo-table-coverage .geo-table-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
}

#geo-table-coverage .geo-table-controls .geo-table-filters {
  order: 1;
}

#geo-table-coverage .geo-table-controls .geo-table-meta {
  order: 2;
}

#geo-table-coverage .geo-table-controls .geo-table-search {
  order: 3;
  margin-left: auto;
}

#geo-table-coverage .geo-table-search input {
  width: 220px;
  min-width: 180px;
}

#geo-table-coverage .geo-table-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 0;
  flex: 0 0 auto;
}

#geo-table-coverage .geo-table-filters label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

#geo-table-coverage .geo-table-filters span {
  white-space: nowrap;
}

#geo-table-coverage .geo-table-filters select {
  max-width: 180px;
  width: 180px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.geo-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.geo-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.geo-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.geo-icon-wrap .geo-icon-fallback {
  display: none;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.geo-icon-wrap.fallback .geo-icon-fallback {
  display: inline-flex;
}

.geo-icon-fallback {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.geo-filter-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.geo-filter-with-icon .geo-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#geo-table-coverage .geo-multi-select {
  position: relative;
  min-width: 180px;
}

#geo-table-coverage .geo-multi-trigger {
  width: 180px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 12px;
  color: #0F172A;
  text-align: left;
  cursor: pointer;
}

#geo-table-coverage .geo-multi-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  max-height: 240px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 6px;
  display: none;
  z-index: 12;
}

#geo-table-coverage .geo-multi-select.open .geo-multi-panel {
  display: block;
}

#geo-table-coverage .geo-multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: #0F172A;
  cursor: pointer;
  border-radius: 6px;
}

.geo-multi-option:hover {
  background: #F1F5F9;
}

#geo-table-coverage .geo-table-meta {
  white-space: nowrap;
  flex: 0 0 auto;
}

#geo-table-coverage .geo-table-meta select {
  width: 90px;
}

#geo-table-coverage {
  overflow-x: auto;
}

#geo-table-coverage .geo-table {
  table-layout: fixed;
  min-width: 1500px;
}

#geo-table-coverage .geo-table th:nth-child(1),
#geo-table-coverage .geo-table td:nth-child(1) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#geo-table-coverage .geo-table th:nth-child(2),
#geo-table-coverage .geo-table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#geo-table-coverage .geo-table th:nth-child(3),
#geo-table-coverage .geo-table td:nth-child(3) {
  width: 30%;
  max-width: 30%;
}

#geo-table-coverage .geo-table th:nth-child(n+4),
#geo-table-coverage .geo-table td:nth-child(n+4) {
  width: 96px;
  min-width: 96px;
  text-align: center;
  overflow: hidden;
}

#geo-table-coverage .geo-icon-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#geo-table-coverage .geo-icon-label span:last-child {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

#geo-table-coverage .geo-table td:nth-child(3) {
  white-space: normal;
}

.geo-table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #0F172A;
}

.geo-table thead th {
  position: sticky;
  top: 0;
  background: #F1F5F9;
  color: #0F172A;
  text-align: left;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid #E2E8F0;
  z-index: 1;
  white-space: nowrap;
}

.geo-th-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.geo-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  font-size: 10px;
  cursor: help;
  line-height: 1;
  position: relative;
}

.geo-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.3;
  white-space: pre-line;
  width: 240px;
  max-width: 260px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.geo-tip::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #0F172A;
  border-radius: 2px;
  opacity: 0;
  z-index: 19;
}

.geo-tip:hover::after,
.geo-tip:hover::before {
  opacity: 1;
}

.geo-table thead th.sortable {
  cursor: pointer;
}

.geo-table tbody td {
  padding: 8px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
  white-space: nowrap;
}

.geo-table tbody tr:hover {
  background: #F8FAFC;
}

.geo-row-highlight {
  background: rgba(37, 99, 235, 0.08);
}

.geo-expand-col {
  width: 36px;
  text-align: center;
}

.geo-expand-btn {
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
}

.geo-expand-row {
  display: none;
  background: #F8FAFC;
}

.geo-expand-row.open {
  display: table-row;
}

.geo-expand-row td {
  padding: 12px 16px;
}

.geo-expand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.geo-expand-title {
  font-weight: 600;
  color: #0F172A;
}

.geo-expand-text {
  line-height: 1.5;
  white-space: normal;
}

.geo-summary-clamp {
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.geo-summary-expand {
  display: inline-flex;
  margin-top: 6px;
  border: 1px solid #d3d9e3;
  background: #f7f8fb;
  color: #4b5563;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  width: fit-content;
}

.geo-summary-expand:hover {
  background: #eef2f7;
}

.geo-summary-clamp.is-clickable {
  cursor: pointer;
}

#geo-table-coverage .geo-question-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 2.8em;
  white-space: normal;
}

#geo-table-brand-site .geo-question-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 2.8em;
  white-space: normal;
}

.geo-url-link {
  color: #2563EB;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-url-link:hover {
  text-decoration: underline;
}

.geo-popover {
  position: absolute;
  z-index: 2000;
  width: 360px;
  max-width: 420px;
  max-height: 240px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.geo-popover.hidden {
  display: none;
}

.geo-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.geo-popover-close {
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.geo-popover-body {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #1f2937;
  max-height: 190px;
  overflow: auto;
  white-space: pre-wrap;
}

.geo-expand-link {
  color: #2563EB;
  word-break: break-all;
}

.geo-link-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748B;
}

.geo-table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #64748B;
}

.geo-table-pagination button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 12px;
  cursor: pointer;
}

.geo-table-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.geo-empty {
  text-align: center;
  padding: 20px 12px;
  color: #94A3B8;
}

.geo-table-loading {
  padding: 18px;
  color: #64748B;
  font-size: 13px;
}

.geo-table-lazy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed #E2E8F0;
  border-radius: 10px;
  background: #F8FAFC;
}

.geo-table-lazy-text {
  font-size: 12px;
  color: #64748B;
}

.geo-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563EB;
  animation: geoSpin 0.9s linear infinite;
}

.geo-work-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.geo-work-overlay.hidden {
  display: none;
}

.geo-work-overlay-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-size: 13px;
  color: #475569;
}

@keyframes geoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
