/* Dashboard styles — auth screens, layout, watch cards, settings, modal */
/* Clean Authority color system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #F7F8FC;
  color: #1A1A2E;
  min-height: 100%;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; line-height: 1.2; }
a { color: #00875A; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* AUTH SCREENS */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #F7F8FC;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(27,43,107,0.08);
}
.auth-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #1B2B6B;
  margin-bottom: 8px;
}
.auth-subtitle { color: #6B7280; font-size: 0.9rem; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; color: #6B7280; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; background: #F7F8FC;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
  color: #1A1A2E; font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #FF6B35; }
.form-group input::placeholder { color: #9CA3AF; }
.form-group textarea { resize: vertical; min-height: 76px; }
.form-group small { display: block; margin-top: 5px; color: #9CA3AF; font-size: 0.72rem; }
.form-group #watch-access-mode-budget-note { color: #4B5563; line-height: 1.45; }
.form-group #watch-access-mode-budget-note.safe { color: #047857; }
.form-group #watch-access-mode-budget-note.warning { color: #B45309; font-weight: 600; }
.webhook-secret-remove { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #6B7280; font-size: 0.76rem; }
.webhook-secret-remove input { width: auto; margin: 0; }
.form-group select {
  width: 100%; padding: 12px 16px; background: #F7F8FC;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
  color: #1A1A2E; font-size: 0.95rem; outline: none; appearance: none;
}
.form-group select:focus { border-color: #FF6B35; }
.btn-primary {
  width: 100%; padding: 14px; background: #FF6B35; color: #FFFFFF;
  font-weight: 700; font-size: 0.95rem; border: none; border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #e85a27; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.85rem; color: #6B7280; }
.auth-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #00875A;
  font: inherit;
  margin: 0;
  padding: 0;
}
.auth-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.auth-link:focus-visible { outline: 3px solid rgba(27,43,107,0.25); outline-offset: 3px; border-radius: 2px; }
.auth-help { text-align: right; margin-top: 12px; font-size: 0.8rem; }
.auth-error {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  color: #DC2626; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem;
  margin-bottom: 16px; display: none;
}
.auth-message {
  background: rgba(0,135,90,0.08); border: 1px solid rgba(0,135,90,0.2);
  color: #087A55; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem;
  margin-bottom: 16px; display: none;
}
.auth-error.is-visible, .auth-message.is-visible { display: block; }
.watch-copy-note {
  margin: -4px 0 16px; padding: 10px 14px; border: 1px solid #C7D2FE;
  border-radius: 8px; background: #EEF2FF; color: #334A91;
  font-size: 0.8rem; line-height: 1.5;
}

/* DASHBOARD LAYOUT */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; background: #1B2B6B; border-right: none;
  padding: 24px 16px; display: flex; flex-direction: column; flex-shrink: 0;
}
.sidebar-logo {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff;
  padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.sidebar-logo span { color: rgba(255,255,255,0.5); }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 0.9rem; color: rgba(255,255,255,0.55); cursor: pointer; transition: all 0.2s;
  margin-bottom: 4px; border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(255,107,53,0.15); color: #FF6B35; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-spacer { flex: 1; }
.sidebar-user {
  padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 32px; height: 32px; background: rgba(255,107,53,0.2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600; color: #FF6B35; flex-shrink: 0;
}
.sidebar-email { font-size: 0.8rem; color: rgba(255,255,255,0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy { min-width: 0; }
.sidebar-plan { color: #FFB599; font-size: 0.68rem; font-weight: 700; margin-top: 1px; }

/* FUNNEL WIDGET */
.sidebar-funnel {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}
.sidebar-funnel-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.funnel-row-label { color: rgba(255,255,255,0.45); }
.funnel-row strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.funnel-rate { color: #00E887; }
.funnel-rate.low { color: #FF6B35; }

/* MAIN CONTENT */
.main { flex: 1; min-width: 0; padding: 32px 40px; overflow-y: auto; max-height: 100vh; background: #F7F8FC; }
.dashboard-release-update { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -12px 0 24px; padding: 11px 13px; border: 1px solid #C7D2FE; border-radius: 10px; background: #EEF2FF; color: #273A80; font-size: 0.8rem; font-weight: 600; }
.dashboard-release-update .btn-secondary { flex: 0 0 auto; padding: 7px 11px; color: #273A80; }
.main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.main-header h1 { font-size: 1.75rem; color: #1B2B6B; }
.main-header-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.watch-capacity { color: #6B7280; font-size: 0.78rem; font-weight: 600; }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: #FF6B35; color: #fff; font-weight: 600; font-size: 0.85rem;
  border: none; border-radius: 10px; transition: background 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-add:hover { background: #e85a27; }
.btn-add.limit-reached, .btn-add.limit-reached:hover,
.btn-add:disabled, .btn-add:disabled:hover { background: #6B7280; cursor: not-allowed; }
.btn-add svg { width: 16px; height: 16px; }

/* WATCH CARDS */
.watches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.watch-card {
  background: #FFFFFF; border: 1.5px solid #E5E7EB;
  border-radius: 14px; padding: 20px 24px; transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}
.watch-card:hover { border-color: #1B2B6B; box-shadow: 0 4px 16px rgba(27,43,107,0.08); }
.watch-card.selected { border-color: #FF6B35; box-shadow: 0 0 0 2px rgba(255,107,53,0.12); }
.watch-card.paused { background: #FAFAFB; border-color: #E5E7EB; }
.watch-card.paused .watch-preview, .watch-card.paused .watch-performance { opacity: 0.65; }
.watch-preview { position: relative; aspect-ratio: 16 / 9; margin: 14px 0 2px; border-radius: 10px; overflow: hidden; background: #EEF1F8; border: 1px solid #E5E7EB; }
.watch-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.watch-preview-enlarge { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.watch-preview-enlarge:focus-visible { outline: 3px solid rgba(255,107,53,0.6); outline-offset: -3px; }
.watch-preview-enlarge-label { position: absolute; left: 8px; bottom: 8px; padding: 5px 9px; border: 1px solid rgba(255,255,255,0.6); border-radius: 7px; background: rgba(27,43,107,0.86); color: #FFFFFF; font-size: 0.68rem; font-weight: 600; opacity: 0; transform: translateY(3px); transition: opacity 0.15s, transform 0.15s; pointer-events: none; }
.watch-preview-enlarge:hover .watch-preview-enlarge-label, .watch-preview-enlarge:focus-visible .watch-preview-enlarge-label { opacity: 1; transform: translateY(0); }
.watch-preview-status { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 5px 8px; border-radius: 7px; background: rgba(27,43,107,0.86); color: #FFFFFF; font-size: 0.68rem; font-weight: 600; line-height: 1.25; pointer-events: none; }
.watch-preview-status.warning { background: rgba(185, 28, 28, 0.9); }
.watch-preview-pending { display: flex; align-items: center; justify-content: center; color: #6B7280; font-size: 0.76rem; }
.preview-refresh { position: absolute; right: 8px; bottom: 8px; border: 1px solid rgba(255,255,255,0.6); background: rgba(27,43,107,0.86); color: #fff; border-radius: 7px; padding: 5px 9px; font-size: 0.68rem; font-weight: 600; }
.watch-performance { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #F7F8FC; }
.watch-performance div { min-width: 0; }
.watch-performance strong, .watch-performance span { display: block; }
.watch-performance strong { color: #1B2B6B; font-size: 0.72rem; margin-bottom: 2px; }
.watch-performance span { color: #6B7280; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-performance .ssl-status { margin-top: 3px; color: #00875A; }
.watch-performance .ssl-status.warning { color: #D97706; }
.watch-performance .ssl-status.critical { color: #DC2626; font-weight: 700; }
.watch-performance .domain-status { margin-top: 3px; color: #00875A; }
.watch-performance .domain-status.warning { color: #D97706; }
.watch-performance .domain-status.critical { color: #DC2626; font-weight: 700; }
.performance-sparkline { width: 120px; height: 30px; flex: 0 0 120px; }
.performance-sparkline polyline { fill: none; stroke: #00875A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.watch-blocked-guidance { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; padding: 12px 14px; border: 1px solid #FDBA74; border-radius: 10px; background: #FFF7ED; }
.watch-blocked-guidance div, .watch-blocked-guidance strong, .watch-blocked-guidance span { display: block; }
.watch-blocked-guidance strong { color: #9A3412; font-size: 0.78rem; }
.watch-blocked-guidance span { color: #7C2D12; font-size: 0.72rem; line-height: 1.45; margin-top: 3px; }
.watch-blocked-guidance .btn-secondary { flex: 0 0 auto; white-space: nowrap; }
.watch-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.watch-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; color: #1B2B6B; }
.watch-card-open { display: block; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.watch-card-open:hover { color: #3656A6; }
.watch-card-open:focus-visible { outline: 3px solid rgba(27,43,107,0.24); outline-offset: 3px; border-radius: 3px; }
.watch-url { font-size: 0.8rem; color: #6B7280; margin-top: 4px; word-break: break-all; }
.watch-url a { color: #3656A6; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; transition: color 0.15s, text-decoration-color 0.15s; }
.watch-url a:hover, .watch-url a:focus-visible { color: #1B2B6B; text-decoration-color: currentColor; }
.watch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.watch-tag { padding: 3px 8px; border: 1px solid #C7D2FE; border-radius: 999px; background: #EEF2FF; color: #334A91; font: 600 0.68rem 'Inter', sans-serif; cursor: pointer; }
.watch-tag:hover, .watch-tag:focus-visible { border-color: #FF6B35; color: #9A3412; background: #FFF4EE; }
.watch-product-observation { margin-top: 12px; padding: 11px 13px; border: 1px solid #C7D2FE; border-radius: 10px; background: #F7F8FC; }
.watch-product-observation strong, .watch-product-observation span { display: block; }
.watch-product-observation strong { color: #1B2B6B; font-size: 0.78rem; line-height: 1.35; }
.watch-product-observation span { color: #6B7280; font-size: 0.71rem; line-height: 1.45; margin-top: 3px; }
.watch-product-observation.observed { border-color: #A7DCCB; background: #F2FBF7; }
.watch-product-observation.observed strong { color: #006B48; }
.watch-product-observation.pending, .watch-product-observation.inconclusive { border-color: #E5E7EB; }
.watch-actions { display: flex; gap: 6px; flex-shrink: 0; }
.watch-select-card { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.watch-select-card input, .watch-select-visible input { width: 16px; height: 16px; accent-color: #FF6B35; cursor: pointer; }
.btn-icon {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #E5E7EB;
  background: #fff; color: #6B7280; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-icon:hover { border-color: #1B2B6B; color: #1B2B6B; }
.btn-icon.danger:hover { border-color: rgba(239,68,68,0.4); color: #DC2626; }
.btn-icon svg { width: 14px; height: 14px; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #F3F4F6; }
.watch-meta-item { font-size: 0.75rem; color: #6B7280; }
.watch-meta-item strong { color: #1A1A2E; font-weight: 600; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-dot.active { background: #00875A; box-shadow: 0 0 6px rgba(0,135,90,0.3); }
.status-dot.inactive { background: #D1D5DB; }
.watch-paused-label { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #EEF1F8; color: #6B7280; font-family: Inter, sans-serif; font-size: 0.62rem; font-weight: 600; vertical-align: middle; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon {
  width: 64px; height: 64px; background: rgba(27,43,107,0.06);
  border: 1px solid rgba(27,43,107,0.1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.empty-icon svg { width: 28px; height: 28px; color: #1B2B6B; }
.empty-state h3 { color: #1B2B6B; margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { color: #6B7280; font-size: 0.9rem; max-width: 400px; margin: 0 auto; }
.watch-filter-clear { width: auto; margin-top: 16px; }
.watch-refresh-warning {
  align-items: center;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  border-radius: 10px;
  color: #9A3412;
  display: flex;
  font-size: 0.82rem;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 12px;
}
.watch-refresh-warning.hidden { display: none; }
.watch-refresh-warning .btn-secondary {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  width: auto;
}
.managed-browser-usage-notice {
  align-items: center;
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 12px;
  color: #92400E;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
}
.managed-browser-usage-notice.hidden { display: none; }
.managed-browser-usage-notice.danger { background: #FFF7F7; border-color: #FCA5A5; color: #B91C1C; }
.managed-browser-usage-icon { align-items: center; display: flex; flex: 0 0 auto; justify-content: center; }
.managed-browser-usage-icon svg { height: 20px; width: 20px; }
.managed-browser-usage-copy { flex: 1; min-width: 0; }
.managed-browser-usage-copy strong { display: block; font: 700 0.84rem 'Plus Jakarta Sans', sans-serif; margin-bottom: 3px; }
.managed-browser-usage-copy p { color: #78350F; font-size: 0.76rem; line-height: 1.45; }
.managed-browser-usage-notice.danger .managed-browser-usage-copy p { color: #991B1B; }
.managed-browser-usage-notice .btn-secondary { flex: 0 0 auto; margin: 0; padding: 7px 11px; width: auto; }
.billing-usage-forecast {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  color: #78350F;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
}
.billing-usage-forecast.hidden { display: none; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(27,43,107,0.3); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal { width: 100%; max-width: 680px; max-height: calc(100vh - 48px); overflow-y: auto; background: #FFFFFF; border: 1.5px solid #E5E7EB; border-radius: 20px; padding: 32px; box-shadow: 0 20px 60px rgba(27,43,107,0.15); }
.modal h2 { font-size: 1.25rem; color: #1B2B6B; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

.watch-builder-section { margin-bottom: 22px; }
.watch-builder-heading { margin-bottom: 12px; }
.watch-builder-heading > div { display: flex; align-items: center; gap: 8px; color: #1B2B6B; }
.watch-builder-heading small { display: block; margin: 5px 0 0 30px; color: #6B7280; }
.watch-step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,107,53,0.12); color: #C2410C; font-size: 0.72rem; font-weight: 700; margin-right: 7px; }
.watch-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.watch-type-card { text-align: left; padding: 14px; border: 1.5px solid #DDE3F2; border-radius: 11px; background: #FFFFFF; color: #1B2B6B; cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.watch-type-card:hover { border-color: #FF6B35; }
.watch-type-card:disabled { cursor: not-allowed; opacity: 0.58; border-color: #DDE3F2; }
.watch-type-card.selected { border-color: #FF6B35; background: #FFF8F5; box-shadow: 0 0 0 2px rgba(255,107,53,0.1); }
.watch-type-card strong, .watch-type-card span { display: block; }
.watch-type-card strong { font-size: 0.82rem; }
.watch-type-card span { margin-top: 4px; color: #6B7280; font-size: 0.7rem; line-height: 1.4; }
.ai-watch-builder { margin-top: 12px; padding: 14px; border: 1px solid #DDE3F2; border-radius: 11px; background: #F7F8FC; }
.ai-watch-builder > div strong, .ai-watch-builder > div span { display: block; }
.ai-watch-builder > div strong { color: #1B2B6B; font-size: 0.82rem; }
.ai-watch-builder > div span { color: #6B7280; font-size: 0.7rem; margin: 3px 0 9px; }
.ai-watch-builder textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #E5E7EB; border-radius: 9px; resize: vertical; min-height: 74px; }
.ai-watch-builder button { width: auto; margin-top: 9px; padding: 8px 14px; }
.ai-watch-builder small { margin-left: 9px; color: #6B7280; }
.watch-advanced { margin: 8px 0 20px; border: 1.5px solid #E5E7EB; border-radius: 11px; padding: 0 14px; }
.watch-advanced summary { padding: 13px 0; color: #1B2B6B; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.watch-advanced > p { color: #6B7280; font-size: 0.72rem; line-height: 1.45; margin: -4px 0 16px; }
.selector-preview-panel { margin: -5px 0 20px; padding: 12px; border: 1px solid #DDE3F2; border-radius: 10px; background: #F7F8FC; }
.selector-preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.selector-preview-actions > button { padding: 8px 13px; font-size: 0.76rem; }
.selector-preview-actions > button:disabled { opacity: 0.55; cursor: not-allowed; }
.selector-preview-actions > small { color: #6B7280; font-size: 0.7rem; }
.selector-picker { margin-top: 12px; padding: 11px; border: 1px solid #C7D2FE; border-radius: 9px; background: #FFFFFF; }
.selector-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.selector-picker-heading strong, .selector-picker-heading span { display: block; }
.selector-picker-heading strong { color: #1B2B6B; font-size: 0.78rem; }
.selector-picker-heading span { margin-top: 3px; color: #6B7280; font-size: 0.68rem; line-height: 1.4; }
.selector-picker-heading button { padding: 6px 10px; font-size: 0.68rem; }
.selector-picker-viewport { max-height: 430px; overflow: auto; border: 1px solid #DDE3F2; border-radius: 8px; background: #E5E7EB; }
.selector-picker-stage { position: relative; width: 100%; overflow: hidden; line-height: 0; }
.selector-picker-stage img { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; }
.selector-picker-highlight { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.selector-picker-highlight rect { fill: rgba(255,107,53,0.16); stroke: #FF6B35; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1px rgba(255,255,255,0.85)); }
.selector-picker-keyboard { margin-top: 10px; }
.selector-picker-keyboard > label { display: block; margin-bottom: 5px; color: #1B2B6B; font-size: 0.72rem; font-weight: 600; }
.selector-picker-keyboard > input { width: 100%; padding: 8px 10px; border: 1px solid #DDE3F2; border-radius: 7px; background: #FFFFFF; color: #1B2B6B; font-size: 0.74rem; }
.selector-picker-candidates { display: grid; gap: 5px; max-height: 220px; margin-top: 7px; overflow-y: auto; }
.selector-picker-candidate { width: 100%; padding: 7px 9px; border: 1px solid #DDE3F2; border-radius: 7px; background: #F7F8FC; color: #1B2B6B; text-align: left; }
.selector-picker-candidate:hover, .selector-picker-candidate:focus-visible { border-color: #FF6B35; background: #FFF7ED; }
.selector-picker-candidate strong, .selector-picker-candidate span { display: block; }
.selector-picker-candidate strong { font-size: 0.68rem; text-transform: uppercase; }
.selector-picker-candidate span { margin-top: 2px; overflow-wrap: anywhere; color: #4B5563; font-size: 0.68rem; line-height: 1.35; }
.selector-picker-candidate .selector-picker-candidate-selector { color: #6B7280; font-family: "Courier New", monospace; font-size: 0.62rem; }
.selector-picker-keyboard > small { display: block; min-height: 1em; margin-top: 6px; color: #6B7280; font-size: 0.66rem; }
.selector-picker-choice { margin-top: 9px; padding: 8px 10px; border-radius: 7px; background: #FFF4EE; color: #7C2D12; font-size: 0.7rem; line-height: 1.45; overflow-wrap: anywhere; }
.selector-preview-result { margin-top: 11px; padding: 11px; border: 1px solid #BFD8CC; border-radius: 8px; background: #FFFFFF; }
.selector-preview-result.error { border-color: #FECACA; background: #FFF7F7; }
.selector-preview-result strong { display: block; color: #14532D; font-size: 0.76rem; }
.selector-preview-result.error strong { color: #B91C1C; }
.selector-preview-result pre { max-height: 150px; margin: 8px 0 5px; padding: 9px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #F3F4F6; border-radius: 7px; color: #374151; font: 0.72rem/1.45 'Courier New', monospace; }
.selector-preview-result small { color: #6B7280; font-size: 0.68rem; }
.condition-preview-panel { margin: -5px 0 20px; padding: 12px; border: 1px solid #DDE3F2; border-radius: 10px; background: #F7F8FC; }
.condition-preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.condition-preview-actions > button { padding: 8px 13px; font-size: 0.76rem; }
.condition-preview-actions > button:disabled { opacity: 0.55; cursor: not-allowed; }
.condition-preview-actions > small { color: #6B7280; font-size: 0.7rem; }
.condition-preview-result { display: grid; gap: 4px; margin-top: 11px; padding: 11px; border: 1px solid #E5E7EB; border-radius: 8px; background: #FFFFFF; }
.condition-preview-result strong { color: #374151; font-size: 0.76rem; }
.condition-preview-result span { color: #4B5563; font-size: 0.74rem; line-height: 1.45; }
.condition-preview-result small { color: #6B7280; font-size: 0.68rem; }
.condition-preview-result.matched { border-color: #A7F3D0; background: #ECFDF5; }
.condition-preview-result.matched strong { color: #047857; }
.condition-preview-result.not-met { border-color: #E5E7EB; background: #F9FAFB; }
.condition-preview-result.not-evaluable { border-color: #FDE68A; background: #FFFBEB; }
.condition-preview-result.not-evaluable strong { color: #92400E; }
.condition-preview-result.error { border-color: #FECACA; background: #FFF7F7; }
.condition-preview-result.error strong { color: #B91C1C; }
.watch-review { padding: 15px 17px; border: 1.5px solid #BFD8CC; border-radius: 11px; background: #F3FBF7; }
.watch-review > div { display: flex; align-items: center; color: #14532D; }
.watch-review p { margin: 8px 0 0; color: #355E48; font-size: 0.8rem; line-height: 1.5; }
.btn-secondary {
  padding: 10px 20px; background: #fff; border: 1.5px solid #E5E7EB;
  color: #6B7280; font-size: 0.85rem; border-radius: 10px; transition: all 0.2s;
}
.btn-secondary:hover { border-color: #1B2B6B; color: #1B2B6B; }

/* SETTINGS PAGE */
.settings-section { background: #FFFFFF; border: 1.5px solid #E5E7EB; border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.settings-section h3 { font-size: 1rem; color: #1B2B6B; margin-bottom: 4px; }
.settings-section p { font-size: 0.85rem; color: #6B7280; margin-bottom: 16px; }
.api-key-display { display: flex; align-items: center; gap: 12px; }
.api-key-value {
  flex: 1; padding: 12px 16px; background: #F7F8FC; border: 1.5px solid #E5E7EB;
  border-radius: 10px; font-family: 'Courier New', monospace; font-size: 0.85rem; color: #1B2B6B;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.api-key-password { max-width: 520px; margin-top: 16px; }
.api-key-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-copy { padding: 12px 16px; background: rgba(0,135,90,0.08); border: 1px solid rgba(0,135,90,0.2); color: #00875A; font-size: 0.8rem; font-weight: 500; border-radius: 10px; transition: all 0.2s; white-space: nowrap; }
.btn-copy:hover { background: rgba(0,135,90,0.12); }
.btn-regen { padding: 12px 16px; background: rgba(255,107,53,0.06); border: 1px solid rgba(255,107,53,0.15); color: #FF6B35; font-size: 0.8rem; font-weight: 500; border-radius: 10px; transition: all 0.2s; white-space: nowrap; }
.btn-regen:hover { background: rgba(255,107,53,0.1); }
.btn-copy:disabled, .btn-regen:disabled, .api-key-controls .btn-danger:disabled { cursor: not-allowed; opacity: 0.48; }
.btn-logout { padding: 10px 20px; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); color: #DC2626; font-size: 0.85rem; font-weight: 500; border-radius: 10px; transition: all 0.2s; }
.btn-logout:hover { background: rgba(239,68,68,0.1); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-change-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-change-actions .btn-secondary { width: auto; margin: 0; }
.email-change-pending { max-width: 520px; margin-top: 12px; padding: 10px 12px; border: 1px solid #FCD34D; border-radius: 9px; background: #FFFBEB; color: #92400E; font-size: 0.75rem; line-height: 1.45; overflow-wrap: anywhere; }
.watch-backup-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.watch-backup-actions .btn-primary, .watch-backup-actions .btn-secondary { width: auto; margin: 0; }
.watch-backup-privacy { display: block; margin-top: 10px; color: #6B7280; font-size: 0.72rem; line-height: 1.45; }
.auth-legal-consent { margin: 4px 0 18px; color: #6B7280; font-size: .76rem; line-height: 1.5; }
.auth-legal-consent label { display: flex; gap: 8px; align-items: flex-start; }
.auth-legal-consent input { margin-top: 3px; flex: 0 0 auto; }
.auth-legal-consent a, .billing-legal a { color: #1B2B6B; font-weight: 600; }
.billing-legal { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: #6B7280; font-size: .72rem; line-height: 1.5; }
.billing-legal input { margin-top: 3px; flex: 0 0 auto; }
.account-security-form { max-width: 520px; }
.account-session-list { margin: 14px 0 10px; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.account-session-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #FFFFFF; }
.account-session-row + .account-session-row { border-top: 1px solid #E5E7EB; }
.account-session-details { min-width: 0; }
.account-session-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #1B2B6B; font-size: 0.78rem; font-weight: 700; }
.account-session-current { padding: 3px 7px; border-radius: 999px; background: rgba(0,135,90,0.1); color: #047857; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.account-session-meta { display: block; margin-top: 3px; color: #6B7280; font-size: 0.68rem; line-height: 1.4; }
.account-session-row .btn-secondary { width: auto; margin: 0; flex: 0 0 auto; padding: 7px 10px; font-size: 0.68rem; }
.account-session-empty { padding: 14px; color: #6B7280; font-size: 0.75rem; }
.account-session-help { margin: 0 0 14px; color: #6B7280; font-size: 0.72rem; }
.verification-code-input { font-family: 'Courier New', monospace !important; letter-spacing: 0.08em; }
.two-factor-panel { max-width: 620px; padding: 18px; border: 1.5px solid #E5E7EB; border-radius: 12px; background: #F7F8FC; }
.two-factor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.two-factor-heading strong, .two-factor-heading span { display: block; }
.two-factor-heading strong { color: #1B2B6B; font-size: 0.9rem; }
.two-factor-heading div > span { margin-top: 3px; color: #6B7280; font-size: 0.75rem; }
.security-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: #E5E7EB; color: #4B5563; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.security-badge.enabled { background: rgba(0,135,90,0.1); color: #047857; }
.two-factor-enrollment { padding-top: 4px; }
.two-factor-enrollment > p, .two-factor-recovery p { margin-bottom: 12px; }
.two-factor-qr { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 0 14px; border: 10px solid #FFFFFF; border-radius: 10px; }
.two-factor-manual-key { margin-bottom: 18px; }
.two-factor-manual-key span { display: block; color: #6B7280; font-size: 0.72rem; margin-bottom: 5px; }
.two-factor-manual-key code { display: inline-block; max-width: 100%; padding: 9px 11px; border: 1px solid #D1D5DB; border-radius: 8px; background: #FFFFFF; color: #1B2B6B; font-size: 0.78rem; overflow-wrap: anywhere; }
.two-factor-recovery { margin: 16px 0; padding: 15px; border: 1px solid #FCD34D; border-radius: 10px; background: #FFFBEB; }
.two-factor-recovery > strong { color: #78350F; font-size: 0.85rem; }
.two-factor-recovery textarea { display: block; width: 100%; margin: 10px 0; padding: 12px; resize: none; border: 1px solid #FCD34D; border-radius: 8px; background: #FFFFFF; color: #1B2B6B; font: 0.82rem/1.55 'Courier New', monospace; }
.two-factor-recovery .btn-secondary { background: #FFFFFF; }
.settings-divider { max-width: 620px; margin: 24px 0; border: 0; border-top: 1px solid #E5E7EB; }
.security-notice-heading { max-width: 620px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.security-notice-heading > div > strong { display: block; color: #1B2B6B; font-size: 0.9rem; }
.security-notice-heading > div > p { margin: 4px 0 0; }
.security-notice-heading .btn-secondary { width: auto; margin: 0; flex: 0 0 auto; }
.security-notice-list { max-width: 620px; margin-top: 12px; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.security-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #FFFFFF; }
.security-notice-row + .security-notice-row { border-top: 1px solid #E5E7EB; }
.security-notice-row strong, .security-notice-row time { display: block; }
.security-notice-row strong { color: #1B2B6B; font-size: 0.78rem; }
.security-notice-row time { margin-top: 3px; color: #6B7280; font-size: 0.7rem; }
.security-notice-delivery { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: rgba(0,135,90,0.1); color: #047857; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; }
.security-notice-delivery.failed { background: rgba(220,38,38,0.1); color: #B91C1C; }
.security-notice-empty { padding: 14px; color: #6B7280; font-size: 0.75rem; }
.danger-zone { border-color: rgba(220,38,38,0.28); background: linear-gradient(135deg, #fff 0%, #FEF7F7 100%); }
.danger-zone h3 { color: #991B1B; }
.danger-zone .btn-danger { margin-top: 2px; }
.plan-section { border-color: rgba(255,107,53,0.28); background: linear-gradient(135deg, #fff 0%, #FFF8F5 100%); }
.plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.plan-heading h3 { font-size: 1.2rem; }
.plan-eyebrow { color: #FF6B35; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.plan-status { padding: 4px 9px; border-radius: 999px; background: rgba(0,135,90,0.09); color: #00875A; font-size: 0.7rem; font-weight: 700; text-transform: capitalize; }
.plan-status-warning { background: rgba(217,119,6,0.12); color: #9A4A00; }
.plan-status-danger { background: rgba(220,38,38,0.10); color: #B91C1C; }
.plan-status-neutral { background: #EEF0F5; color: #5D6678; }
.plan-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 20px; }
.plan-capability { color: #374151; font-size: 0.78rem; display: flex; gap: 7px; align-items: center; }
.plan-capability::before { content: '✓'; color: #00875A; font-weight: 800; }
.plan-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.plan-action { width: auto; padding: 11px 18px; }
.billing-message { font-size: 0.78rem; color: #6B7280; margin-top: 10px; }
.billing-message.error { color: #DC2626; }
.billing-message.success { color: #047857; }
.plan-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 16px 0; }
.plan-usage div { padding: 12px; border: 1px solid #E5E7EB; border-radius: 10px; background: #F7F8FC; }
.plan-usage strong, .plan-usage span { display: block; }
.plan-usage strong { color: #1B2B6B; font: 700 1rem 'Plus Jakarta Sans', sans-serif; }
.plan-usage span { margin-top: 3px; color: #6B7280; font-size: 0.7rem; }
.admin-usage-heading { margin: 18px 0 8px; color: #1B2B6B; font-size: 0.8rem; }
.admin-scheduler-status { margin: 12px 0; padding: 10px 12px; border: 1px solid #C7D2FE; border-radius: 9px; background: #EEF2FF; color: #3730A3; font-size: 0.74rem; font-weight: 600; line-height: 1.45; }
.admin-scheduler-status.warning { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.admin-scheduler-status.error { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.admin-usage-list { border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.admin-usage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fff; }
.admin-usage-row + .admin-usage-row { border-top: 1px solid #E5E7EB; }
.admin-usage-identity { min-width: 0; }
.admin-usage-identity strong, .admin-usage-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-usage-identity strong { color: #1B2B6B; font-size: 0.76rem; }
.admin-usage-identity span, .admin-usage-metrics, .admin-usage-empty { color: #6B7280; font-size: 0.7rem; }
.admin-usage-metrics { flex-shrink: 0; text-align: right; }
.admin-usage-empty { padding: 12px; }
.admin-entitlement-note { margin: -3px 0 8px; color: #6B7280; font-size: 0.72rem; line-height: 1.5; }
.admin-entitlement-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-entitlement-actions button { width: auto; }
.admin-launch-header { display: flex; align-items: center; gap: 10px; }
.admin-launch-header .admin-scheduler-status { flex: 1; }
.admin-launch-copy { flex: 0 0 auto; width: auto; padding: 9px 12px; font-size: 0.7rem; }
.admin-launch-category { padding: 9px 12px; border-top: 1px solid #E5E7EB; background: #F7F8FC; color: #1B2B6B; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; }
.admin-launch-category:first-child { border-top: 0; }
.admin-launch-list .admin-usage-row { align-items: flex-start; }
.admin-launch-list .admin-usage-identity span { white-space: normal; overflow: visible; }
.feature-lock-note { color: #9A4A25; background: rgba(255,107,53,0.07); border-radius: 8px; padding: 8px 10px; font-size: 0.75rem; }
.form-group input:disabled, .form-group select:disabled { cursor: not-allowed; opacity: 0.62; background: #F3F4F6; }
.watch-plan-limited { color: #9A4A25; background: rgba(255,107,53,0.08); padding: 3px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; margin-left: 8px; }
.visual-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.visual-compare-grid section { min-width: 0; }
.visual-compare-grid h4 { color: #1B2B6B; font-size: 0.76rem; margin-bottom: 6px; }
.visual-evidence-enlarge { position: relative; width: 100%; padding: 0; border: 0; border-radius: 9px; background: #F7F8FC; cursor: zoom-in; overflow: hidden; }
.visual-evidence-enlarge img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; object-position: top; border: 1px solid #E5E7EB; border-radius: 9px; background: #F7F8FC; }
.visual-evidence-enlarge::after { content: 'Enlarge'; position: absolute; right: 8px; bottom: 8px; padding: 5px 9px; border: 1px solid rgba(255,255,255,0.6); border-radius: 7px; background: rgba(27,43,107,0.86); color: #FFFFFF; font-size: 0.68rem; font-weight: 600; }
.visual-evidence-enlarge:focus-visible { outline: 3px solid rgba(255,107,53,0.6); outline-offset: 2px; }
.visual-compare-action { display: flex; justify-content: center; margin: -4px 0 16px; }
.visual-compare-action button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid rgba(27,43,107,0.2); border-radius: 8px; color: #1B2B6B; background: #FFFFFF; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.visual-compare-action button:hover { border-color: rgba(255,107,53,0.5); color: #C2410C; }

/* FULL-SIZE PRIVATE SCREENSHOT VIEWER */
.screenshot-viewer { position: fixed; inset: 0; z-index: 275; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8,16,48,0.88); backdrop-filter: blur(6px); }
.screenshot-viewer-surface { width: min(1400px, 96vw); height: min(900px, 94vh); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,0.22); border-radius: 16px; background: #FFFFFF; box-shadow: 0 28px 80px rgba(0,0,0,0.42); }
.screenshot-viewer-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px 14px 20px; border-bottom: 1px solid #E5E7EB; }
.screenshot-viewer-header h3 { color: #1B2B6B; font-size: 0.95rem; }
.screenshot-viewer-header p { margin-top: 2px; color: #6B7280; font-size: 0.72rem; }
.screenshot-viewer-close { flex: 0 0 auto; }
.screenshot-zoom-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; }
.screenshot-zoom-controls button { min-width: 34px; min-height: 34px; padding: 5px 9px; border: 1px solid #D1D5DB; border-radius: 7px; background: #FFFFFF; color: #1B2B6B; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.screenshot-zoom-controls button:hover:not(:disabled) { border-color: #FF6B35; color: #C2410C; }
.screenshot-zoom-controls button:disabled { color: #9CA3AF; background: #F3F4F6; cursor: not-allowed; }
.screenshot-zoom-controls output { min-width: 44px; color: #4B5563; text-align: center; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.screenshot-zoom-controls .screenshot-zoom-fit { min-width: 70px; }
.screenshot-download-button, .screenshot-compare-downloads button { min-height: 34px; padding: 5px 10px; border: 1px solid #D1D5DB; border-radius: 7px; background: #FFFFFF; color: #1B2B6B; font: 700 0.72rem 'Inter', sans-serif; cursor: pointer; }
.screenshot-download-button:hover:not(:disabled), .screenshot-compare-downloads button:hover:not(:disabled) { border-color: #FF6B35; color: #C2410C; }
.screenshot-download-button:disabled, .screenshot-compare-downloads button:disabled { color: #9CA3AF; background: #F3F4F6; cursor: wait; }
.screenshot-compare-controls { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(160px, 520px) auto auto auto; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #E5E7EB; background: #F9FAFC; color: #1B2B6B; font-size: 0.72rem; font-weight: 700; }
.screenshot-compare-controls input { width: 100%; accent-color: #FF6B35; cursor: ew-resize; }
.screenshot-compare-controls output { min-width: 72px; color: #6B7280; font-variant-numeric: tabular-nums; font-weight: 600; }
.screenshot-compare-downloads { display: flex; gap: 6px; }
.screenshot-viewer-stage { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: flex-start; padding: 16px; background: #EEF1F8; }
#screenshot-viewer-image { display: block; width: 100%; height: auto; max-width: none; max-height: none; margin-inline: auto; flex: 0 0 auto; border-radius: 8px; background: #FFFFFF; box-shadow: 0 4px 22px rgba(27,43,107,0.14); }
.screenshot-comparison { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: none; margin-inline: auto; align-items: start; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #FFFFFF; box-shadow: 0 4px 22px rgba(27,43,107,0.14); }
.screenshot-comparison img { grid-area: 1 / 1; width: 100%; border-radius: 0; box-shadow: none; }
#screenshot-comparison-after { z-index: 1; clip-path: url(#screenshot-after-clip); }
.screenshot-comparison-defs { position: absolute; }
.screenshot-comparison-divider { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.screenshot-comparison-divider line { stroke: #FF6B35; stroke-width: 0.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1px rgba(255,255,255,0.8)); }
.screenshot-zoom-50 > #screenshot-viewer-image, .screenshot-zoom-50 > .screenshot-comparison { width: 50%; }
.screenshot-zoom-75 > #screenshot-viewer-image, .screenshot-zoom-75 > .screenshot-comparison { width: 75%; }
.screenshot-zoom-125 > #screenshot-viewer-image, .screenshot-zoom-125 > .screenshot-comparison { width: 125%; margin-inline: 0; }
.screenshot-zoom-150 > #screenshot-viewer-image, .screenshot-zoom-150 > .screenshot-comparison { width: 150%; margin-inline: 0; }
.screenshot-zoom-175 > #screenshot-viewer-image, .screenshot-zoom-175 > .screenshot-comparison { width: 175%; margin-inline: 0; }
.screenshot-zoom-200 > #screenshot-viewer-image, .screenshot-zoom-200 > .screenshot-comparison { width: 200%; margin-inline: 0; }

.toast { position: fixed; bottom: 24px; right: 24px; max-width: min(440px, calc(100vw - 32px)); background: #FFFFFF; border: 1px solid rgba(0,135,90,0.3); color: #00875A; padding: 12px 20px; border-radius: 10px; font-size: 0.85rem; z-index: 300; opacity: 0; overflow-wrap: anywhere; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; box-shadow: 0 4px 16px rgba(27,43,107,0.1); pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(239,68,68,0.3); color: #DC2626; }

.hidden { display: none !important; }

/* MOBILE */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 20px; background: #1B2B6B; border-bottom: 1px solid rgba(255,255,255,0.1); align-items: center; justify-content: space-between; }
.mobile-header .sidebar-logo { padding: 0; border: none; margin: 0; color: #fff; }
.btn-hamburger { background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 8px; color: rgba(255,255,255,0.7); }
.btn-hamburger svg { width: 20px; height: 20px; display: block; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(27,43,107,0.4); z-index: 99; }

@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .dashboard-release-update { align-items: stretch; flex-direction: column; }
  .dashboard-release-update .btn-secondary { text-align: center; }
  .sidebar { position: fixed; left: -280px; top: 0; bottom: 0; z-index: 100; transition: left 0.3s; }
  .sidebar.open { left: 0; }
  .mobile-overlay.open { display: block; }
  .main { padding: 72px 20px 20px; }
  .watches-grid { grid-template-columns: 1fr; }
  .watch-blocked-guidance { align-items: flex-start; flex-direction: column; }
  .main-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .main-header .btn-add { width: 100%; justify-content: center; }
  .admin-launch-header { align-items: stretch; flex-direction: column; }
  .admin-launch-copy { width: 100%; }
  .admin-entitlement-actions { align-items: flex-end; flex-direction: column; }
  .api-key-display { flex-direction: column; }
  .api-key-display > *, .api-key-controls > * { width: 100%; }
}

/* WATCH STATS BAR */
.watch-stats {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.stat-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: #FFFFFF; border: 1.5px solid #E5E7EB;
  border-radius: 8px; font-size: 0.8rem; color: #6B7280;
}
.stat-chip strong { color: #1A1A2E; font-weight: 600; }
.stat-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.stat-chip .dot.green { background: #00875A; }
.stat-chip .dot.amber { background: #FF6B35; }
.stat-chip.alert-summary-delivered { background: rgba(0,232,135,0.06); border-color: rgba(0,232,135,0.15); }
.stat-chip.alert-summary-retrying { background: rgba(255,107,53,0.06); border-color: rgba(255,107,53,0.15); }
.stat-chip.alert-summary-failed { background: rgba(255,59,48,0.06); border-color: rgba(255,59,48,0.15); }

/* SEARCH BAR */
.watch-filters { display: flex; gap: 10px; align-items: stretch; margin-bottom: 20px; }
.search-bar {
  position: relative; flex: 1; min-width: 220px;
}
.search-bar input {
  width: 100%; padding: 10px 16px 10px 40px; background: #FFFFFF;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
  color: #1A1A2E; font-size: 0.85rem; outline: none; transition: border-color 0.2s;
}
.search-bar input:focus { border-color: #FF6B35; }
.search-bar input::placeholder { color: #9CA3AF; }
.search-bar svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #9CA3AF; pointer-events: none;
}
.search-bar .kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  padding: 2px 6px; background: #F7F8FC; border: 1px solid #E5E7EB;
  border-radius: 4px; font-size: 0.65rem; color: #9CA3AF; font-family: 'Inter', sans-serif;
}

/* CHANGES PANEL (slide-out) */
.changes-panel-overlay {
  position: fixed; inset: 0; background: rgba(27,43,107,0.2); backdrop-filter: blur(2px);
  z-index: 150; opacity: 0; transition: opacity 0.25s;
}
.changes-panel-overlay.open { opacity: 1; }
.changes-panel {
  position: fixed; top: 0; right: -820px; bottom: 0; width: 820px; max-width: 100vw;
  background: #FFFFFF; border-left: 1px solid #E5E7EB;
  z-index: 151; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.changes-panel.open { right: 0; }
.changes-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #F3F4F6;
}
.changes-panel-header h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; color: #1B2B6B; }
.changes-panel-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.changes-panel-actions .btn-secondary { margin: 0; padding: 7px 11px; font-size: 0.72rem; }
.changes-panel-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.change-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; border-bottom: 1px solid #F3F4F6; }
.change-review-toolbar label { display: inline-flex; align-items: center; gap: 7px; color: #4B5563; font-size: 0.76rem; font-weight: 600; cursor: pointer; }
.change-review-toolbar input { width: 15px; height: 15px; accent-color: #FF6B35; }
.change-review-toolbar .btn-secondary { width: auto; margin: 0; padding: 7px 11px; font-size: 0.72rem; }
.change-review-toolbar .btn-secondary:disabled { cursor: default; opacity: 0.58; }
.version-compare-toolbar { margin: 12px 0 2px; padding: 12px; border: 1px solid #E5E7EB; border-radius: 10px; background: #F7F8FC; }
.version-compare-toolbar > strong { display: block; margin-bottom: 9px; color: #1B2B6B; font-size: 0.78rem; }
.version-compare-toolbar > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.version-compare-toolbar label { display: grid; gap: 5px; color: #6B7280; font-size: 0.68rem; font-weight: 700; }
.version-compare-toolbar select { width: 100%; min-width: 0; padding: 8px 30px 8px 9px; border: 1px solid #D1D5DB; border-radius: 7px; background: #FFFFFF; color: #1A1A2E; font-size: 0.72rem; }
.version-compare-toolbar .btn-secondary { width: auto; margin: 0; padding: 8px 12px; font-size: 0.72rem; }
.change-item {
  padding: 14px 0; border-bottom: 1px solid #F3F4F6;
}
.change-item.reviewed { opacity: 0.78; }
.change-item:last-child { border-bottom: none; }
.change-time { font-size: 0.75rem; color: #9CA3AF; margin-bottom: 4px; }
.change-hash { font-size: 0.75rem; color: rgba(0,135,90,0.6); font-family: 'Courier New', monospace; }
.change-line-count { margin-top: 4px; font-size: 0.75rem; color: #6B7280; }
.alert-change-extent { display: block; margin-top: 4px; color: #6B7280; font-size: 0.75rem; }
.change-review-state { display: inline-flex; margin: 2px 0 4px; padding: 3px 7px; border-radius: 999px; background: #ECFDF5; color: #047857; font-size: 0.68rem; font-weight: 700; }
.change-review-state.unreviewed { background: #FFF7ED; color: #9A3412; }
.change-condition-state { display: flex; align-items: baseline; gap: 7px; margin: 6px 0; padding: 7px 9px; border: 1px solid #BFDBFE; border-radius: 7px; background: #EFF6FF; color: #1E40AF; font-size: 0.7rem; }
.change-condition-state strong { flex-shrink: 0; }
.change-condition-state span { color: #4B5563; line-height: 1.4; }
.change-condition-state.matched { border-color: #A7F3D0; background: #ECFDF5; color: #047857; }
.change-condition-state.not-met { border-color: #E5E7EB; background: #F9FAFB; color: #4B5563; }
.change-condition-state.not-evaluable { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.change-diff {
  margin-top: 8px; padding: 10px 12px; background: #F7F8FC; border-radius: 8px;
  font-size: 0.8rem; color: #6B7280; font-family: 'Courier New', monospace;
  white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow-y: auto;
}
.changes-empty {
  text-align: center; padding: 40px 20px; color: #9CA3AF; font-size: 0.85rem;
}
.watch-filters select { min-width: 160px; padding: 10px 34px 10px 12px; border: 1.5px solid #E5E7EB; border-radius: 10px; background-color: #FFFFFF; color: #1A1A2E; font-size: 0.8rem; outline: none; }
.watch-filters select:focus { border-color: #FF6B35; }
.watch-bulk-toolbar { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: -8px 0 20px; padding: 8px 10px; border: 1px solid #E5E7EB; border-radius: 10px; background: #FFFFFF; }
.watch-select-visible { display: inline-flex; align-items: center; gap: 7px; color: #1B2B6B; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.watch-selection-count { color: #6B7280; font-size: 0.76rem; }
.watch-bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.watch-bulk-actions .btn-secondary { width: auto; margin: 0; padding: 7px 11px; font-size: 0.74rem; }
.watch-bulk-actions .btn-secondary:disabled { opacity: 0.5; cursor: default; }
.change-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-compare, .btn-review, .change-back {
  margin-top: 10px; padding: 7px 11px; border: 1px solid rgba(27,43,107,0.18);
  border-radius: 7px; background: #FFFFFF; color: #1B2B6B; font: 600 0.75rem 'Inter', sans-serif;
  cursor: pointer;
}
.btn-compare:hover, .btn-review:hover, .change-back:hover { border-color: #FF6B35; color: #D94F1E; }
.btn-review.reviewed { border-color: rgba(4,120,87,0.25); color: #047857; }
.change-back { margin: 0 0 16px; }
.change-detail-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px; border: 1px solid #E5E7EB; border-radius: 9px; background: #F7F8FC; }
.change-detail-navigation button { justify-self: start; padding: 7px 10px; border: 1px solid rgba(27,43,107,0.18); border-radius: 7px; background: #FFFFFF; color: #1B2B6B; font: 600 0.72rem 'Inter', sans-serif; cursor: pointer; }
.change-detail-navigation button:last-child { justify-self: end; }
.change-detail-navigation button:hover:not(:disabled) { border-color: #FF6B35; color: #D94F1E; }
.change-detail-navigation button:disabled { color: #9CA3AF; background: #F3F4F6; cursor: default; }
.change-detail-navigation span { color: #6B7280; font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.change-detail-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #6B7280; font-size: 0.78rem; }
.change-detail-meta strong { color: #1B2B6B; }
.change-truncated { margin-bottom: 12px; padding: 9px 11px; border-radius: 7px; background: #FFF7ED; color: #9A3412; font-size: 0.76rem; }
.change-compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.change-version { min-width: 0; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #FAFAFB; }
.change-version h4 { min-height: 42px; padding: 7px 8px 7px 12px; font-size: 0.78rem; color: #1B2B6B; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.change-version.before h4 { background: #FEF2F2; color: #991B1B; }
.change-version.after h4 { background: #ECFDF5; color: #065F46; }
.baseline-restore-button { padding: 5px 8px; border: 1px solid rgba(27,43,107,0.2); border-radius: 6px; background: #FFFFFF; color: #1B2B6B; font: 600 0.68rem 'Inter', sans-serif; cursor: pointer; }
.baseline-restore-button:hover { border-color: #FF6B35; color: #D94F1E; }
.change-version pre { margin: 0; padding: 12px; min-height: 260px; max-height: calc(100vh - 210px); overflow: auto; white-space: pre-wrap; word-break: break-word; font: 0.75rem/1.55 'Courier New', monospace; color: #374151; }
.change-version pre.highlighted { padding: 8px 0; }
.change-diff-line { display: block; min-height: 1.55em; padding: 0 12px; }
.change-version.before .change-diff-line.changed { background: #FEE2E2; color: #991B1B; }
.change-version.after .change-diff-line.changed { background: #D1FAE5; color: #065F46; }
.health-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 20px; }
.health-summary-grid div { padding: 14px; border: 1px solid #E5E7EB; border-radius: 10px; background: #F7F8FC; }
.health-summary-grid strong, .health-summary-grid span { display: block; }
.health-summary-grid strong { color: #1B2B6B; font: 700 1.05rem 'Plus Jakarta Sans', sans-serif; }
.health-summary-grid span { margin-top: 3px; color: #6B7280; font-size: 0.68rem; }
.health-trend { margin: 0 0 20px; padding: 15px; border: 1px solid #DCE2F1; border-radius: 12px; background: #FBFCFF; }
.health-trend-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.health-trend-heading h4 { margin: 0; color: #1B2B6B; font: 700 0.84rem 'Plus Jakarta Sans', sans-serif; }
.health-trend-heading p { margin: 4px 0 0; color: #6B7280; font-size: 0.68rem; line-height: 1.4; }
.health-trend-heading > span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #EEF1F8; color: #44506B; font-size: 0.65rem; }
.health-trend-chart { margin-top: 10px; overflow: hidden; border-radius: 8px; background: #FFFFFF; }
.health-trend-chart svg { display: block; width: 100%; height: auto; min-height: 150px; }
.health-trend-grid { stroke: #E8ECF5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.health-trend-line { fill: none; stroke: #1B2B6B; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.health-trend-point { fill: #FFFFFF; stroke: #1B2B6B; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.health-trend-status.available, .health-trend-legend i.available { fill: #00875A; background: #00875A; }
.health-trend-status.unavailable, .health-trend-legend i.unavailable { fill: #DC2626; background: #DC2626; }
.health-trend-status.blocked, .health-trend-legend i.blocked { fill: #FF6B35; background: #FF6B35; }
.health-trend-status.monitoring, .health-trend-legend i.monitoring { fill: #3B82F6; background: #3B82F6; }
.health-trend-status.configuration, .health-trend-legend i.configuration { fill: #F59E0B; background: #F59E0B; }
.health-trend-status.maintenance, .health-trend-legend i.maintenance { fill: #7C3AED; background: #7C3AED; }
.health-trend-direction { fill: #7B8499; font: 10px Inter, sans-serif; }
.health-trend-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px; color: #6B7280; font-size: 0.66rem; line-height: 1.4; }
.health-trend-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }
.health-trend-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.health-trend-legend i { width: 7px; height: 7px; border-radius: 2px; }
.product-trend.pending { background: #FFFFFF; }
.product-trend-line { fill: none; stroke: #FF6B35; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.product-trend-point { fill: #FFFFFF; stroke: #FF6B35; stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.product-trend-availability.available, .product-trend-legend i.available { fill: #00875A; background: #00875A; }
.product-trend-availability.unavailable, .product-trend-legend i.unavailable { fill: #DC2626; background: #DC2626; }
.product-trend-availability.unknown, .product-trend-legend i.unknown { fill: #A0A7B8; background: #A0A7B8; }
@media (max-width: 640px) {
  .health-trend-heading, .health-trend-meta { align-items: stretch; flex-direction: column; }
  .health-trend-heading > span { align-self: flex-start; }
  .health-trend-legend { justify-content: flex-start; }
  .health-trend-chart svg { min-height: 125px; }
}
.health-row { padding: 13px 0; border-bottom: 1px solid #F3F4F6; }
.health-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.73rem; }
.health-row-meta strong { color: #00875A; }
.health-row.error .health-row-meta strong { color: #DC2626; }
.health-row.blocked .health-row-meta strong { color: #C2410C; }
.health-row.configuration .health-row-meta strong { color: #B45309; }
.health-row-meta span, .health-detail { color: #6B7280; }
.health-bar {
  display: block; width: 100%; height: 5px; margin: 8px 0 5px; border: 0;
  border-radius: 999px; overflow: hidden; appearance: none; background: #EEF1F8;
}
.health-bar::-webkit-progress-bar { background: #EEF1F8; }
.health-bar::-webkit-progress-value { border-radius: 999px; background: #00875A; }
.health-bar::-moz-progress-bar { border-radius: 999px; background: #00875A; }
.health-row.error .health-bar::-webkit-progress-value { background: #DC2626; }
.health-row.error .health-bar::-moz-progress-bar { background: #DC2626; }
.health-row.blocked .health-bar::-webkit-progress-value { background: #FF6B35; }
.health-row.blocked .health-bar::-moz-progress-bar { background: #FF6B35; }
.health-row.configuration .health-bar::-webkit-progress-value { background: #F59E0B; }
.health-row.configuration .health-bar::-moz-progress-bar { background: #F59E0B; }
.health-row.maintenance .health-bar::-webkit-progress-value { background: #F59E0B; }
.health-row.maintenance .health-bar::-moz-progress-bar { background: #F59E0B; }
.health-row.monitoring .health-bar::-webkit-progress-value { background: #3B82F6; }
.health-row.monitoring .health-bar::-moz-progress-bar { background: #3B82F6; }
.health-detail { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.health-blocked-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #FED7AA; border-radius: 9px; background: #FFF7ED; }
.health-blocked-notice strong, .health-blocked-notice span { display: block; }
.health-blocked-notice strong { color: #9A3412; font-size: 0.8rem; }
.health-blocked-notice span { margin-top: 3px; color: #C2410C; font-size: 0.72rem; line-height: 1.45; }
.health-configuration-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #FDE68A; border-radius: 9px; background: #FFFBEB; }
.health-configuration-notice strong, .health-configuration-notice span { display: block; }
.health-configuration-notice strong { color: #92400E; font-size: 0.8rem; }
.health-configuration-notice span { margin-top: 3px; color: #B45309; font-size: 0.72rem; line-height: 1.45; }
.health-maintenance-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #FDE68A; border-radius: 9px; background: #FFFBEB; }
.health-maintenance-notice strong, .health-maintenance-notice span { display: block; }
.health-maintenance-notice strong { color: #92400E; font-size: 0.8rem; }
.health-maintenance-notice span { margin-top: 3px; color: #B45309; font-size: 0.72rem; line-height: 1.45; }
.health-monitoring-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #BFDBFE; border-radius: 9px; background: #EFF6FF; }
.health-monitoring-notice strong, .health-monitoring-notice span { display: block; }
.health-monitoring-notice strong { color: #1B2B6B; font-size: 0.8rem; }
.health-monitoring-notice span { margin-top: 3px; color: #1D4ED8; font-size: 0.72rem; line-height: 1.45; }
.health-fallback-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #BFDBFE; border-radius: 9px; background: #EFF6FF; }
.health-fallback-notice strong, .health-fallback-notice span { display: block; }
.health-fallback-notice strong { color: #1B2B6B; font-size: 0.8rem; }
.health-fallback-notice span { margin-top: 3px; color: #1D4ED8; font-size: 0.72rem; line-height: 1.45; }
.health-fallback-notice.warning { border-color: #FED7AA; background: #FFF7ED; }
.health-fallback-notice.warning strong, .health-fallback-notice.warning span { color: #C2410C; }
.integrity-history { margin: 18px 0; }
.integrity-history h4 { margin: 0 0 10px; color: #1B2B6B; font-size: 0.82rem; }
.integrity-event { border: 1px solid #FED7AA; border-left: 4px solid #FF6B35; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: #FFF7ED; }
.integrity-event > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.integrity-event strong { color: #9A3412; font-size: 0.76rem; }
.integrity-event > div span { color: #6B7280; font-size: 0.68rem; }
.integrity-event p { margin: 3px 0; color: #374151; font-size: 0.72rem; word-break: break-all; }
.integrity-event p span { display: inline-block; min-width: 58px; color: #9CA3AF; font-weight: 600; }

/* CONFIRM DIALOG */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(27,43,107,0.3); backdrop-filter: blur(4px);
  z-index: 250; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.confirm-dialog {
  width: 100%; max-width: 400px; background: #FFFFFF; border: 1.5px solid #E5E7EB;
  border-radius: 16px; padding: 28px; text-align: center;
  box-shadow: 0 20px 60px rgba(27,43,107,0.15);
}
.confirm-dialog .confirm-icon {
  width: 48px; height: 48px; background: rgba(239,68,68,0.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  color: #DC2626;
}
.confirm-dialog .confirm-icon svg { width: 24px; height: 24px; }
.confirm-dialog .confirm-icon.baseline { background: rgba(255,107,53,0.1); color: #D94F1E; }
.confirm-dialog h3 { font-size: 1.1rem; color: #1B2B6B; margin-bottom: 8px; }
.confirm-dialog p { font-size: 0.85rem; color: #6B7280; margin-bottom: 24px; }
.confirm-dialog .confirm-actions { display: flex; gap: 12px; }
.confirm-dialog .confirm-actions button { flex: 1; }
.extension-connect-dialog { max-width: 460px; }
.extension-connect-mark {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 13px;
  display: grid; place-items: center; color: #FFFFFF; background: #1B2B6B;
  font-size: 1.25rem; font-weight: 800;
}
.extension-connect-device {
  margin: 18px 0; padding: 14px; border: 1px solid #DCE3F2; border-radius: 10px;
  background: #F8FAFF; text-align: left;
}
.extension-connect-device strong, .extension-connect-device span { display: block; }
.extension-connect-device strong { color: #1B2B6B; font-size: 0.86rem; }
.extension-connect-device span { margin-top: 4px; color: #6B7280; font-size: 0.72rem; }
.confirm-dialog .extension-connect-privacy {
  margin-bottom: 20px; padding: 10px 12px; color: #475569; background: #F1F5F9;
  border-radius: 8px; font-size: 0.72rem; line-height: 1.5; text-align: left;
}
.chrome-connector-install {
  margin: 16px 0; padding: 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; border: 1px solid #BBF7D0; border-radius: 12px; background: #F0FDF4;
}
.chrome-connector-install strong, .chrome-connector-install p { display: block; }
.chrome-connector-install strong { color: #166534; font-size: 0.86rem; }
.chrome-connector-install p { margin: 4px 0 0; color: #475569; font-size: 0.74rem; }
.chrome-connector-install .btn-primary { flex: 0 0 auto; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) {
  .chrome-connector-install { align-items: stretch; flex-direction: column; }
  .chrome-connector-install .btn-primary { text-align: center; }
}
.btn-danger {
  padding: 12px 20px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
  color: #DC2626; font-size: 0.85rem; font-weight: 600; border-radius: 10px; transition: all 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.12); }

/* ALERTS TABLE */
.stat-chip .dot.red { background: #DC2626; }
.alerts-summary { display: flex; align-items: center; gap: 16px; }
.alerts-table-scroll { overflow-x: auto; }
.alerts-filter-bar {
  margin-bottom: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.alerts-filter-bar select {
  min-width: 180px; padding: 8px 14px; background: #FFFFFF; color: #374151;
  border: 1px solid #D1D5DB; border-radius: 8px; font-size: 0.85rem; outline: none;
}
.alerts-filter-bar select:focus { border-color: #1B2B6B; box-shadow: 0 0 0 3px rgba(27,43,107,0.1); }
.alerts-clear-filters { padding: 8px 14px; font-size: 0.8rem; border-radius: 8px; }
.alerts-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.alerts-table th {
  text-align: left; padding: 10px 16px; font-size: 0.72rem; font-weight: 500;
  color: #9CA3AF; border-bottom: 2px solid #E5E7EB;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em;
}
.alerts-table td {
  padding: 14px 16px; border-bottom: 1px solid #F3F4F6;
  color: #6B7280; vertical-align: middle;
}
.alerts-table tr:hover td { background: #F7F8FC; }
.alerts-table tr:last-child td { border-bottom: none; }
.alert-row-delivered td:first-child { border-left: 3px solid #00875A; }
.alert-row-retrying td:first-child { border-left: 3px solid #FF6B35; }
.alert-row-failed td:first-child { border-left: 3px solid #DC2626; }
.alert-watch-name { font-weight: 600; color: #1B2B6B; }
.alert-watch-url { font-size: 0.72rem; color: #9CA3AF; margin-top: 2px; display: block; }
.alert-status-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 6px; font-size: 0.72rem; font-weight: 600;
}
.alert-status-icon { width: 10px; height: 10px; }
.alert-status-badge.delivered { background: rgba(0,135,90,0.08); color: #00875A; }
.alert-status-badge.retrying { background: rgba(255,107,53,0.08); color: #C2410C; }
.alert-status-badge.failed { background: rgba(239,68,68,0.08); color: #DC2626; }
.alert-timestamp { font-size: 0.78rem; color: #9CA3AF; white-space: nowrap; }
.alert-response { font-family: 'Courier New', monospace; font-size: 0.75rem; }
.alert-response-code { font-weight: 600; }
.alert-response-ok { color: #00875A; }
.alert-response-err { color: #DC2626; }
.alert-error-msg { font-size: 0.72rem; color: rgba(220,38,38,0.7); margin-top: 2px; display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-diff-preview {
  font-size: 0.75rem; color: #9CA3AF; font-family: 'Courier New', monospace;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.alerts-table .col-timestamp { width: 160px; white-space: nowrap; }
.alerts-table .col-channel { width: 90px; }
.alerts-table .col-status { width: 110px; }
.alerts-table .col-response { width: 100px; }
.alerts-table .col-diff { width: auto; }
@media (max-width: 768px) {
  .toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }
  .watch-type-grid { grid-template-columns: 1fr; }
  .alerts-table th:nth-child(5),
  .alerts-table td:nth-child(5),
  .alerts-table th:nth-child(6),
  .alerts-table td:nth-child(6) { display: none; }
  .alerts-summary { display: none; }
}
.btn-changes {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: rgba(0,135,90,0.06); border: 1px solid rgba(0,135,90,0.12);
  border-radius: 6px; font-size: 0.7rem; color: rgba(0,135,90,0.8); transition: all 0.2s;
  cursor: pointer; white-space: nowrap;
}
.btn-changes:hover { background: rgba(0,135,90,0.1); color: #00875A; }

/* ONBOARDING BANNER */
.onboarding-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1.5px solid #1B2B6B;
  border-radius: 14px;
  margin-bottom: 24px;
  animation: fadeInUp 0.3s ease;
}
.onboarding-banner.hidden { display: none; }
.onboarding-icon {
  width: 40px; height: 40px; background: rgba(255,107,53,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #FF6B35;
}
.onboarding-icon svg { width: 18px; height: 18px; }
.onboarding-content { flex: 1; }
.onboarding-content strong { display: block; font-size: 0.9rem; color: #1B2B6B; margin-bottom: 4px; font-family: 'Plus Jakarta Sans', sans-serif; }
.onboarding-content p { font-size: 0.8rem; color: #6B7280; }
.onboarding-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.btn-onboard-check {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: #FF6B35; color: #fff; font-weight: 600; font-size: 0.8rem;
  border: none; border-radius: 8px; transition: background 0.2s; white-space: nowrap;
}
.btn-onboard-check:hover { background: #e85a27; }
.btn-onboard-check svg { width: 13px; height: 13px; }
.btn-onboard-check.checking { opacity: 0.7; cursor: not-allowed; }
.btn-onboard-check.checking svg { animation: spin 0.8s linear infinite; }
.btn-onboard-interval {
  padding: 8px 14px; background: #F7F8FC; border: 1.5px solid #E5E7EB;
  color: #6B7280; font-size: 0.78rem; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.btn-onboard-interval:hover { border-color: #1B2B6B; color: #1B2B6B; }
.btn-onboard-dismiss {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: #F7F8FC;
  color: #9CA3AF; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.btn-onboard-dismiss:hover { background: #E5E7EB; color: #1B2B6B; }
.btn-onboard-dismiss svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
  .onboarding-banner { flex-wrap: wrap; padding: 14px 16px; }
  .onboarding-content { width: calc(100% - 56px); }
  .onboarding-actions { width: 100%; justify-content: flex-start; }
  .btn-onboard-dismiss { position: absolute; top: 10px; right: 10px; }
  #page-watches { position: relative; }
  .managed-browser-usage-notice { align-items: flex-start; flex-wrap: wrap; }
  .managed-browser-usage-notice .btn-secondary { margin-left: 32px; }
}
.kbd-hint {
  position: fixed; bottom: 24px; left: 24px; display: flex; gap: 16px;
  font-size: 0.7rem; color: rgba(27,43,107,0.3);
}
.kbd-hint span { display: inline-flex; align-items: center; gap: 4px; }
.kbd-hint kbd {
  padding: 2px 5px; background: #F7F8FC; border: 1px solid #E5E7EB;
  border-radius: 3px; font-family: 'Inter', sans-serif; font-size: 0.65rem; color: #9CA3AF;
}

/* Loading spinner */
.loading { display: flex; justify-content: center; padding: 60px; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(255,107,53,0.2); border-top-color: #FF6B35; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 0.8s linear infinite; }

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.watch-card { animation: fadeInUp 0.3s ease both; }
.watch-card:nth-child(2) { animation-delay: 0.05s; }
.watch-card:nth-child(3) { animation-delay: 0.1s; }
.watch-card:nth-child(4) { animation-delay: 0.15s; }
.watch-card:nth-child(5) { animation-delay: 0.2s; }
.watch-card:nth-child(6) { animation-delay: 0.25s; }

/* Modal animation */
.modal-overlay:not(.hidden) .modal,
.confirm-overlay .confirm-dialog {
  animation: fadeInUp 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
.modal :focus-visible, .changes-panel :focus-visible, .confirm-dialog :focus-visible, .screenshot-viewer :focus-visible {
  outline: 3px solid rgba(27,43,107,0.28);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .screenshot-viewer { padding: 8px; }
  .screenshot-viewer-surface { width: 100%; height: 96vh; border-radius: 12px; }
  .screenshot-viewer-header { flex-wrap: wrap; gap: 8px; padding: 11px 12px; }
  .screenshot-viewer-header > div:first-child { min-width: 0; flex: 1; }
  .screenshot-viewer-header p { display: none; }
  .screenshot-zoom-controls { order: 3; width: 100%; margin-left: 0; }
  .screenshot-zoom-controls .screenshot-zoom-fit { display: none; }
  .screenshot-download-button { order: 2; }
  .screenshot-compare-controls { grid-template-columns: auto minmax(100px, 1fr) auto; padding: 9px 10px; }
  .screenshot-compare-controls output { grid-column: 1 / -1; justify-self: center; }
  .screenshot-compare-downloads { grid-column: 1 / -1; justify-self: center; }
  .screenshot-viewer-stage { padding: 8px; }
  .change-detail-navigation { grid-template-columns: 1fr 1fr; }
  .change-detail-navigation span { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .watch-preview-enlarge-label { opacity: 1; transform: none; }
}

/* ACTIVITY / MONITOR PAGE */
.activity-select-wrapper {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.activity-select-label {
  font-size: 0.8rem; color: #6B7280; white-space: nowrap; font-weight: 500;
}
#activity-watch-select {
  flex: 1; max-width: 400px; padding: 10px 16px; background: #FFFFFF;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
  color: #1A1A2E; font-size: 0.9rem; outline: none; appearance: none;
}
#activity-watch-select:focus { border-color: #FF6B35; }
.btn-trigger-check {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: rgba(255,107,53,0.08); border: 1.5px solid rgba(255,107,53,0.2);
  color: #FF6B35; font-size: 0.85rem; font-weight: 600; border-radius: 10px;
  transition: all 0.2s; white-space: nowrap;
}
.btn-trigger-check:hover:not(:disabled) { background: rgba(255,107,53,0.15); }
.btn-trigger-check:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-trigger-check svg { width: 14px; height: 14px; }
.btn-trigger-check.checking svg { animation: spin 0.8s linear infinite; }

.activity-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid #E5E7EB;
  margin-bottom: 24px;
}
.activity-tab {
  padding: 10px 18px; font-size: 0.85rem; color: #9CA3AF;
  border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s; margin-bottom: -2px; font-weight: 500;
}
.activity-tab:hover { color: #6B7280; }
.activity-tab.active { color: #FF6B35; border-bottom-color: #FF6B35; }

.activity-panel { min-height: 200px; }
.activity-loading { display: flex; justify-content: center; padding: 60px; }
.activity-empty {
  text-align: center; padding: 60px 20px;
}
.activity-empty .empty-icon {
  width: 64px; height: 64px; background: rgba(27,43,107,0.06);
  border: 1px solid rgba(27,43,107,0.1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.activity-empty .empty-icon svg { width: 26px; height: 26px; color: #1B2B6B; }
.activity-empty h3 { color: #1B2B6B; margin-bottom: 8px; font-size: 1.05rem; }
.activity-empty p { color: #6B7280; font-size: 0.85rem; max-width: 360px; margin: 0 auto; }

.activity-info {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.activity-product-observation { margin: -10px 0 24px; }
.activity-product-observation .watch-product-observation { margin-top: 0; }
.activity-stat-card {
  background: #FFFFFF; border: 1.5px solid #E5E7EB;
  border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.activity-stat-icon {
  width: 36px; height: 36px; background: rgba(255,107,53,0.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #FF6B35;
}
.activity-stat-icon.alert { background: rgba(0,135,90,0.08); color: #00875A; }
.activity-stat-icon.hash { background: rgba(27,43,107,0.06); color: #1B2B6B; }
.activity-stat-icon svg { width: 16px; height: 16px; }
.activity-stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.2rem; color: #1B2B6B; }
.activity-hash-value { font-size: 0.75rem; }
.activity-stat-label { font-size: 0.72rem; color: #9CA3AF; margin-top: 2px; }
.modal-submit-button { width: auto; padding: 10px 24px; }

.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-inline-loading { display: flex; justify-content: center; padding: 40px; }
.activity-inline-error { padding: 20px; color: #DC2626; font-size: 0.85rem; }
.activity-list-item {
  background: #FFFFFF; border: 1.5px solid #E5E7EB;
  border-radius: 12px; padding: 14px 18px; transition: border-color 0.2s;
}
.activity-list-item:hover { border-color: #1B2B6B; }
.activity-list-item.success { border-left: 3px solid #00875A; }
.activity-list-item.changed { border-left: 3px solid #FF6B35; }
.activity-list-item.error { border-left: 3px solid #DC2626; }
.activity-list-item.alert-sent { border-left: 3px solid #7C3AED; }
.activity-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.activity-list-title { font-size: 0.85rem; font-weight: 600; color: #1B2B6B; }
.activity-list-time { font-size: 0.72rem; color: #9CA3AF; }
.activity-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: 6px; font-size: 0.7rem; font-weight: 500;
}
.activity-badge.change { background: rgba(255,107,53,0.08); color: #FF6B35; }
.activity-badge.no-change { background: rgba(0,135,90,0.08); color: #00875A; }
.activity-badge.error { background: rgba(239,68,68,0.08); color: #DC2626; }
.activity-badge.blocked { background: rgba(255,107,53,0.1); color: #C2410C; }
.activity-badge.alert { background: rgba(124,58,237,0.08); color: #7C3AED; }
.activity-badge.pending { background: #F7F8FC; color: #9CA3AF; border: 1px solid #E5E7EB; }
.activity-delivery-badge { margin-left: 6px; }
.activity-list-detail { font-size: 0.8rem; color: #6B7280; margin-top: 6px; }
.activity-diff-block {
  margin-top: 8px; padding: 10px 12px; background: #F7F8FC;
  border-radius: 8px; font-size: 0.75rem; color: #6B7280;
  font-family: 'Courier New', monospace; white-space: pre-wrap; word-break: break-word;
  max-height: 120px; overflow-y: auto;
}

/* ---- Notification Preferences ---- */
.pref-group {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}
.pref-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #FFFFFF;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
}
.pref-toggle-info { flex: 1; }
.pref-label { font-size: 0.85rem; font-weight: 600; color: #1B2B6B; display: block; margin-bottom: 2px; cursor: pointer; }
.pref-desc { font-size: 0.75rem; color: #9CA3AF; }
.pref-section-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding: 16px 2px 2px; border-top: 1px solid #E5E7EB;
}
.pref-section-heading strong { color: #1B2B6B; font-size: 0.9rem; }
.pref-section-heading span { color: #6B7280; font-size: 0.75rem; text-align: right; }

/* Toggle switch */
.toggle-switch { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  width: 44px; height: 24px; background: #D1D5DB;
  border-radius: 12px; position: relative; transition: background 0.2s;
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #FFFFFF; border-radius: 50%;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-track { background: #00875A; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }

/* Frequency row */
.pref-frequency-row {
  margin-top: 8px; padding: 16px 18px; background: #F7F8FC;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
}
.pref-frequency-row select {
  width: 100%; margin-top: 8px; padding: 8px 12px;
  border: 1.5px solid #E5E7EB; border-radius: 8px;
  font-size: 0.8rem; background: #FFFFFF; color: #1B2B6B; outline: none;
  appearance: none;
}
.pref-frequency-row select:focus { border-color: #FF6B35; }

/* Save status */
.pref-save-status {
  font-size: 0.78rem; margin-top: 12px; min-height: 18px;
}
.pref-save-status.saving { color: #9CA3AF; }
.pref-save-status.saved { color: #00875A; font-weight: 500; }
.pref-save-status.error { color: #DC2626; }

.agent-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.agent-status-card { padding: 14px 16px; border: 1.5px solid #E5E7EB; border-radius: 10px; background: #F7F8FC; }
.agent-status-card strong, .agent-status-card span { display: block; }
.agent-status-card strong { color: #1B2B6B; font-size: 0.9rem; }
.agent-status-card strong.ready { color: #00875A; }
.agent-status-card strong.polling { color: #C2410C; }
.agent-status-card strong.waiting { color: #C2410C; }
.agent-status-card span { margin-top: 3px; color: #6B7280; font-size: 0.72rem; }
.agent-setup { padding: 16px 18px; border: 1px solid #DDE3F2; border-radius: 10px; background: #FFFFFF; }
.agent-setup p { margin-top: 0; }
.connector-continuity-notice { margin-top: 14px; padding: 12px 14px; border: 1px solid #F59E0B; border-radius: 9px; background: #FFFBEB; color: #92400E; font-size: .78rem; line-height: 1.55; }
.connector-continuity-notice strong { display: block; margin-bottom: 2px; color: #7C2D12; }
.agent-devices-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid #E5E7EB; }
.agent-device-list { display: grid; gap: 8px; margin-top: 10px; color: #6B7280; font-size: .78rem; }
.agent-device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #F7F8FC; }
.agent-device strong, .agent-device span { display: block; }
.agent-device button { width: auto; }
.agent-presence { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #9CA3AF; }
.agent-presence.online { background: #00875A; box-shadow: 0 0 0 3px rgba(0, 135, 90, .12); }
.agent-presence.polling { background: #FF6B35; box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }
.agent-device .agent-device-error { max-width: 680px; margin-top: 3px; color: #B42318; }
.agent-device .agent-device-recovery { max-width: 680px; margin-top: 5px; color: #9A4B10; line-height: 1.45; }

.status-hub-publish-row { margin: 16px 0; }
.status-hub-title-row { margin-top: 16px; }
.status-hub-components-heading { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0 10px; }
.status-hub-components-heading strong { color: #1B2B6B; font-size: 0.85rem; }
.status-hub-components-heading span { color: #6B7280; font-size: 0.72rem; }
.status-hub-components { display: grid; gap: 9px; }
.status-hub-component { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(180px, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #E5E7EB; border-radius: 10px; background: #F7F8FC; }
.status-hub-component input[type="checkbox"] { width: 17px; height: 17px; accent-color: #FF6B35; }
.status-hub-component-info strong, .status-hub-component-info span { display: block; }
.status-hub-component-info strong { color: #1B2B6B; font-size: 0.82rem; }
.status-hub-component-info span { color: #6B7280; font-size: 0.7rem; }
.status-hub-component input[type="text"] { width: 100%; padding: 8px 10px; border: 1.5px solid #E5E7EB; border-radius: 8px; background: #FFFFFF; color: #1B2B6B; }
.status-hub-component input:disabled { color: #9CA3AF; background: #F3F4F6; }
.status-hub-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.status-hub-actions button { width: auto; }
.status-hub-actions a { color: #00875A; font-size: 0.8rem; font-weight: 600; }
.status-hub-empty { padding: 16px; border: 1px dashed #D1D5DB; border-radius: 10px; color: #6B7280; font-size: 0.8rem; text-align: center; }

@media (max-width: 768px) {
  .kbd-hint { display: none; }
  .changes-panel { width: 100vw; }
  .watch-stats { flex-wrap: wrap; }
  .search-bar .kbd { display: none; }
  .watch-filters { flex-direction: column; }
  .watch-filters select { width: 100%; }
  .watch-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .watch-bulk-actions { width: 100%; margin-left: 0; }
  .watch-bulk-actions .btn-secondary { flex: 1; }
  .activity-select-wrapper { flex-wrap: wrap; }
  #activity-watch-select { max-width: 100%; width: 100%; }
  .btn-trigger-check { width: 100%; justify-content: center; }
  .activity-info { grid-template-columns: 1fr 1fr; }
  .agent-status-grid { grid-template-columns: 1fr; }
  .status-hub-component { grid-template-columns: auto 1fr; }
  .status-hub-component input[type="text"] { grid-column: 1 / -1; }
  .status-hub-components-heading { display: block; }
  .status-hub-components-heading span { display: block; margin-top: 3px; }
  .change-compare-grid { grid-template-columns: 1fr; }
  .change-version pre { min-height: 180px; max-height: 45vh; }
  .change-review-toolbar { align-items: stretch; flex-direction: column; }
  .change-review-toolbar .btn-secondary { width: 100%; }
  .version-compare-toolbar > div { grid-template-columns: 1fr; }
  .version-compare-toolbar .btn-secondary { width: 100%; }
}

/* ONBOARDING TOUR */
.tour-overlay {
  position: fixed; inset: 0; background: rgba(27,43,107,0.5); z-index: 400;
}
.tour-spotlight {
  position: fixed; z-index: 401; inset: 0; width: 100vw; height: 100vh; pointer-events: none;
}
.tour-spotlight rect {
  fill: transparent; stroke: #FF6B35; stroke-width: 3; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255,107,53,0.45));
}
.tour-tooltip {
  position: fixed; z-index: 402; right: 24px; bottom: 24px; background: #FFFFFF;
  border: 1.5px solid #E5E7EB; border-radius: 14px; padding: 20px 22px;
  width: 280px; box-shadow: 0 8px 32px rgba(27,43,107,0.18);
  animation: fadeInUp 0.25s ease;
}
.tour-step-indicator {
  font-size: 0.7rem; color: #FF6B35; font-weight: 600;
  margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase;
}
.tour-tooltip h4 {
  font-size: 0.95rem; color: #1B2B6B; margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tour-tooltip p { font-size: 0.82rem; color: #6B7280; margin-bottom: 18px; line-height: 1.5; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; }
.tour-skip { font-size: 0.78rem; color: #9CA3AF; background: none; border: none; padding: 4px 0; cursor: pointer; }
.tour-skip:hover { color: #6B7280; }
.tour-next { padding: 8px 18px !important; font-size: 0.82rem !important; width: auto !important; }
@media (max-width: 640px) {
  .tour-tooltip { right: 16px; bottom: 16px; left: 16px; width: auto; }
}
