.no-data {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.no-data img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.no-data h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

/* ── Tracking-mode guidance ─────────────────────────────────────────────── */
.tracking-mode-notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #bfdbfe; border-radius: var(--radius-md); background: #eff6ff; color: #1e3a5f; }
.tracking-mode-notice[hidden] { display: none; }
.tracking-mode-notice__icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12px; font-weight: 800; font-family: Georgia, serif; }
.tracking-mode-notice strong { display: block; color: #1e3a8a; font-size: 13px; }
.tracking-mode-notice p { margin: 3px 0 0; color: #334155; font-size: 12.5px; line-height: 1.5; }

/* ── Interactive filters (Overview breakdowns + Sessions) ───────────────── */
.active-filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 12px; background: var(--primary-subtle); border: 1px solid #c7d2fe; border-radius: var(--radius-md); }
.active-filters-bar[hidden] { display: none; }
.active-filters-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.active-filters-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 2px; }
.filter-group { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 3px 4px 3px 8px; background: #fff; border: 1px solid #e0e7ff; border-radius: var(--radius-full); }
.filter-group-label { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-secondary); margin-right: 2px; }
.filter-group-joiner, .filter-chip-joiner { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: lowercase; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 260px; padding: 2px 4px 2px 9px; background: var(--primary-subtle); color: var(--primary-hover); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.filter-chip-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; flex-shrink: 0; transition: var(--transition); }
.filter-chip-remove:hover { background: #c7d2fe; }
.active-filters-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.filter-bar-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-bar-btn:hover { border-color: #cbd5e1; color: var(--text-primary); }
.filter-bar-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-bar-btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

/* Row hover actions */
.pill-actions { display: inline-flex; align-items: center; gap: 2px; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.15s ease, opacity 0.15s ease; }
.clean-pill-row.is-filterable:hover .pill-actions,
.clean-pill-row.is-filterable:focus-within .pill-actions,
.clean-pill-row.is-filtered .pill-actions { max-width: 64px; opacity: 1; }
.pill-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.pill-action-btn:hover { background: #fff; border-color: var(--border); color: var(--primary); }
.pill-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill-filter-btn.active:hover { background: var(--primary-hover); color: #fff; }
.clean-pill-row.is-filtered { border-color: #c7d2fe; box-shadow: inset 3px 0 0 var(--primary); }
.clean-pill-row.is-filtered .pill-progress-bg { background: #e0e7ff; }
@media (hover: none) { .clean-pill-row.is-filterable .pill-actions { max-width: 64px; opacity: 1; } }

/* Blocked bot traffic */
.bot-card { margin-top:4px; margin-bottom:20px; padding:18px; }
.bot-list { display:flex; flex-direction:column; gap:0; }
.bot-card h4 { margin:18px 0 8px; font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.bot-bar { position:relative; display:flex; justify-content:space-between; gap:10px; align-items:center; padding:6px 8px; margin-bottom:4px; font-size:12px; border-radius:6px; overflow:hidden; }
.bot-bar-fill { position:absolute; inset:0 auto 0 0; background:rgba(37,99,235,.12); border-radius:6px; }
.bot-bar-label { position:relative; display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; white-space:nowrap; }
.bot-bar-name { overflow:hidden; text-overflow:ellipsis; }
.bot-bar-label .pill-favicon, .bot-bar-label .pill-icon-box, .bot-bar-label .pill-icon-fallback { flex-shrink:0; width:15px; height:15px; }
.bot-bar-count { position:relative; display:flex; align-items:center; gap:8px; }
.bot-bar strong { position:relative; }
.bot-row { display:grid; grid-template-columns:200px minmax(0,1fr) 150px 140px; gap:14px; align-items:center; padding:10px 0; border-top:1px solid var(--border); font-size:12px; }
.bot-row-who { display:flex; flex-direction:column; gap:2px; min-width:0; }
.bot-row-who strong, .bot-row-who small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bot-row-who small { color:var(--text-muted); font-size:11.5px; }
.bot-row-agent { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:3px 6px; border-radius:4px; background:#f1f5f9; font-size:11px; color:var(--text-secondary); }
.bot-row-country { display:flex; align-items:center; gap:6px; min-width:0; overflow:hidden; white-space:nowrap; }
.bot-row time { color:var(--text-muted); text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width: 700px) { .bot-row { grid-template-columns:1fr; gap:6px; } .bot-row time { text-align:left; } }
.bot-card { margin-top:20px; }
.bot-latest-toggle { display:flex; align-items:center; gap:6px; margin-top:18px; padding:0; border:0; background:none; cursor:pointer; font:inherit; font-size:12px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.bot-latest-toggle:hover { color:var(--text-primary); }
.bot-list[hidden] { display:none; }
.bot-tabs { margin-top:14px; flex-wrap:wrap; }
.bot-tabs .chart-toggle-btn:not(.active) { opacity:.8; }
.bot-tabs[hidden], .bot-explorer[hidden] { display:none; }
.bot-tab-count { margin-left:6px; font-variant-numeric:tabular-nums; color:var(--text-muted); font-weight:500; }
.bot-explorer { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; margin-top:12px; }
.bot-chart { min-width:0; }
.bot-chart .canvas-wrapper { height:280px; }
.bot-side { display:flex; flex-direction:column; gap:10px; min-width:0; height:280px; padding:10px; border:1px solid var(--border); border-radius:10px; background:var(--bg-surface); }
.bot-side-tabs { align-self:flex-start; }
.bot-side-list { flex:1; min-height:0; overflow-y:auto; padding-right:8px; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#cbd5e1 transparent; }
.bot-side-list::-webkit-scrollbar { width:6px; }
.bot-side-list::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:4px; }
.bot-side-list[hidden] { display:none; }
.bot-side .bot-bar { padding:8px 10px; font-size:13px; }
.bot-tabs .chart-toggle-btn svg { flex-shrink:0; }
.bot-notes { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:16px; padding-top:12px; border-top:1px solid var(--border); font-size:12px; color:var(--text-muted); }
.bot-notes strong { color:var(--text-primary); font-weight:600; }
.bot-operator { flex-shrink:0; font-size:11px; color:var(--text-muted); }
@media (max-width: 900px) { .bot-explorer { grid-template-columns:1fr; } }
.bot-reason { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:center; padding:10px 4px; border-bottom:1px solid var(--border); }
.bot-reason:last-child { border-bottom:0; }
.bot-reason-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.bot-reason-text strong { font-size:13px; font-weight:600; }
.bot-reason-text small { font-size:11.5px; color:var(--text-muted); line-height:1.4; }
.bot-reason-count { font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
.bot-reason-meter { grid-column:1 / -1; height:3px; border-radius:2px; background:#f1f5f9; overflow:hidden; }
.bot-reason-meter span { display:block; height:100%; border-radius:2px; background:var(--primary); opacity:.7; }
