/* ══════════════════════════════════════════════════════════════════
   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: #C77716; box-shadow: 0 0 0 2px rgba(199, 119, 22, .18); }
.prf-ptab-dot-checking { background: rgba(23, 23, 37, .099); animation: prfDotPulse 1.1s ease-in-out infinite alternate; }
body.dark-mode .prf-ptab-dot-checking { background: rgba(23, 23, 37, .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, #171725); }
.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, #171725); }
.prf-ci-status i { width: 7px; height: 7px; border-radius: 50%; background: rgba(23, 23, 37, .138); }
body.dark-mode .prf-ci-status i { background: rgba(23, 23, 37, .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: #C77716; }

/* 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(23, 23, 37, .022)); color: var(--charcoal); }
.prf-notice-muted { background: transparent; color: var(--muted); padding: 2px 0; }
.prf-notice-warn { background: rgba(199, 119, 22, .1); border-color: rgba(199, 119, 22, .3); color: #78350F; }
.prf-notice-error { background: rgba(196, 61, 77, .1); border-color: rgba(196, 61, 77, .28); color: #7F1D1D; }
body.dark-mode .prf-notice-info { background: rgba(23, 23, 37, .05); color: var(--text, #171725); }
body.dark-mode .prf-notice-warn { color: #7041C8; }
body.dark-mode .prf-notice-error { color: #A27374; }
.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(124, 124, 134, .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, #FCFBFE calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #FCFBFE calc(100% - 36px), transparent 100%); }
  #prfPlatTabs .prf-plat-tabs.prf-tabs-more-left { mask-image: linear-gradient(to right, transparent 0, #FCFBFE 36px); -webkit-mask-image: linear-gradient(to right, transparent 0, #FCFBFE 36px); }
  #prfPlatTabs .prf-plat-tabs.prf-tabs-more-left.prf-tabs-more-right { mask-image: linear-gradient(to right, transparent 0, #FCFBFE 36px, #FCFBFE calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #FCFBFE 36px, #FCFBFE 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; } }
