/* ══════════════════════════════════════════════════════════════════
   Campaigns — small additions for the accuracy pass (app.html _prf*):
   connection states on the platform tabs, the selected-campaign /
   account strip, compact inline notices (errors with Retry, partial or
   account-level reporting), the mobile tab scroll cue. Same palette and
   type as the existing Campaigns styles in styles.css.
   ══════════════════════════════════════════════════════════════════ */

/* Platform tab connection dots: reconnect / status unavailable / checking */
.prf-ptab-dot-warn { background: #F5A623; box-shadow: 0 0 0 2px rgba(245,166,35,.18); }
.prf-ptab-dot-checking { background: rgba(0,0,0,.18); animation: prfDotPulse 1.1s ease-in-out infinite alternate; }
body.dark-mode .prf-ptab-dot-checking { background: rgba(255,255,255,.22); }
@keyframes prfDotPulse { from { opacity: .35; } to { opacity: 1; } }

/* Selected campaign / ad account strip */
.prf-camp-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.prf-camp-info b { font-weight: 600; color: var(--charcoal); }
body.dark-mode .prf-camp-info b { color: var(--text, #e8e8e8); }
.prf-ci-sep { opacity: .45; }
.prf-ci-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--charcoal); }
body.dark-mode .prf-ci-status { color: var(--text, #e8e8e8); }
.prf-ci-status i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); }
body.dark-mode .prf-ci-status i { background: rgba(255,255,255,.3); }
.prf-ci-st-active i, .prf-ci-st-enabled i { background: var(--green); }
.prf-ci-st-in_review i, .prf-ci-st-limited i, .prf-ci-st-issue i { background: #F5A623; }

/* Inline notices */
.prf-data-notice { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.prf-notice { padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; border: 1px solid transparent; }
.prf-notice b { font-weight: 600; }
.prf-notice-info { background: var(--sf2, rgba(0,0,0,.04)); color: var(--charcoal); }
.prf-notice-muted { background: transparent; color: var(--muted); padding: 2px 0; }
.prf-notice-warn { background: rgba(245,166,35,.10); border-color: rgba(245,166,35,.30); color: #78350f; }
.prf-notice-error { background: rgba(217,83,79,.10); border-color: rgba(217,83,79,.28); color: #7f1d1d; }
body.dark-mode .prf-notice-info { background: rgba(255,255,255,.05); color: var(--text, #e8e8e8); }
body.dark-mode .prf-notice-warn { color: #fde68a; }
body.dark-mode .prf-notice-error { color: #fecaca; }
.prf-inline-btn { margin-left: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.prf-inline-btn:hover { background: rgba(127,127,127,.12); }
.prf-inline-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.prf-ra-note { font-size: 11.5px; line-height: 1.45; color: var(--muted); padding: 4px 0 8px; }

/* Mobile: platform tabs fade only on the side where more tabs are. */
@media (max-width: 760px) {
  #prfPlatTabs .prf-plat-tabs { mask-image: none; -webkit-mask-image: none; }
  #prfPlatTabs .prf-plat-tabs.prf-tabs-more-right { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%); }
  #prfPlatTabs .prf-plat-tabs.prf-tabs-more-left { mask-image: linear-gradient(to right, transparent 0, #000 36px); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px); }
  #prfPlatTabs .prf-plat-tabs.prf-tabs-more-left.prf-tabs-more-right { mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
}
/* The date range matches its neighbours' size (a global small-screen rule
   enlarges selects to 16px up to 900px). */
@media (max-width: 900px) {
  #prfScopeRow #prfRangeSelect { font-size: 12px !important; padding: 6px 30px 6px 12px !important; height: auto !important; min-height: 0 !important; line-height: normal !important; }
}
@media (prefers-reduced-motion: reduce) { .prf-ptab-dot-checking { animation: none; } }
