/* ==========================================================================
   Flash banners (assets/js/flash-banners.js) — a slim rotating strip at the
   top of the dashboard, above the green card. One notice at a time: a
   coloured icon chip, one line of true-black text, an optional action; dots
   for the others; a close button that hides it until the next visit.
   ========================================================================== */
.fb-rail {
    position: relative; display: flex; align-items: center; gap: 10px;
    margin: 0 0 12px; padding: 6px 6px 6px 7px; min-height: 44px;
    border-radius: 16px; background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(15, 23, 42, .05), 0 10px 26px -18px rgba(15, 23, 42, .35);
    font-family: inherit; color: #000;
    transition: opacity .2s ease, transform .2s ease;
}
/* Stays pinned under the top bar while the dashboard scrolls. */
.dashx > .fb-rail { position: sticky; top: 2px; z-index: 30; } /* top is set from the scroll box's padding (flash-banners.js _pin) */
.fb-rail.is-out { opacity: 0; transform: translateY(-6px); }
.fbr-view { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.fbr-slide { display: flex; align-items: center; gap: 10px; min-width: 0; opacity: 0; transform: translateX(14px); transition: opacity .32s ease, transform .32s cubic-bezier(.2, .9, .3, 1); }
.fbr-slide.is-in { opacity: 1; transform: none; }
.fb-ico {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: 14px;
    color: var(--fb-c, #2563eb); background: var(--fb-bg, #dbeafe);
}
.fb-text {
    flex: 1 1 auto; min-width: 0;
    font-size: 13px; font-weight: 600; line-height: 1.35; color: #000;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-label {
    display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px;
    color: var(--fb-c, #6d28d9); background: var(--fb-bg, #ede9fe);
}
.fb-act {
    flex: 0 0 auto; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 800; white-space: nowrap;
    color: #fff; background: var(--fb-c, #2563eb);
    transition: filter .15s ease, transform .15s ease;
}
.fb-act:hover { filter: brightness(1.08); }
.fb-act:active { transform: scale(.97); }
.fbr-dots { flex: 0 0 auto; display: flex; gap: 4px; align-items: center; padding: 0 2px; }
.fbr-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: #cbd5e1; cursor: pointer; transition: width .2s ease, background .2s ease; }
.fbr-dots button.on { width: 16px; background: #0f172a; }
.fbr-dots button::after { content: ""; position: relative; display: block; inset: -8px -2px; }
.fb-x {
    flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 12px; color: #334155; background: transparent;
}
.fb-x:hover { background: rgba(15, 23, 42, .06); color: #000; }
.fb-act:focus-visible, .fb-x:focus-visible, .fbr-dots button:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }
.fbr-count { display: none; flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #334155; font-variant-numeric: tabular-nums; }
/* Phones: a "2/8" counter instead of dots, so the text keeps its width. */
@media (max-width: 599.98px) {
    .fb-rail { border-radius: 14px; padding: 6px 2px 6px 6px; gap: 6px; }
    .fbr-slide { gap: 8px; }
    .fb-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; }
    .fb-label { display: none; }
    .fb-act { height: 28px; padding: 0 10px; font-size: 12px; }
    .fbr-dots { display: none; }
    .fbr-count { display: inline; }
    /* Vibrant on phones: the notice's colour fills the strip, white on top. */
    .fb-rail {
        background: linear-gradient(135deg, color-mix(in srgb, var(--fb-c, #2563eb) 86%, #fff), var(--fb-c, #2563eb));
        border-color: transparent;
        -webkit-backdrop-filter: none; backdrop-filter: none;
        box-shadow: 0 10px 24px -14px var(--fb-c, #2563eb);
        transition: background .35s ease, box-shadow .35s ease, opacity .2s ease, transform .2s ease;
    }
    .fb-rail .fb-ico { color: #fff; background: rgba(255, 255, 255, .22); }
    .fb-rail .fb-text { color: #fff; font-weight: 700; }
    .fb-rail .fb-act { color: var(--fb-c, #2563eb); background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
    .fb-rail .fbr-count { color: rgba(255, 255, 255, .92); }
    .fb-rail .fb-x { color: #fff; }
    .fb-rail .fb-x:hover { background: rgba(255, 255, 255, .18); color: #fff; }
    .fb-rail .fb-act:focus-visible, .fb-rail .fb-x:focus-visible { outline-color: #fff; }
}
@media (min-width: 600px) { .fbr-dots button:nth-child(n+13) { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .fbr-slide, .fbr-slide.is-in, .fb-rail { transition: none; transform: none; }
}

/* Admin page bits */
.ad2-fb-plans { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ad2-fb-plans .ad2-check-row { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
