/* Bandspace dashboard components and hints, adapted from test-bandspace-ui.html.
   Loaded only by Bandspace/demo; owner and public fan UI remain unchanged. */
/* 1. Refined Attention Notice (.bg-notice-redesign) */
.bg-notice-redesign {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1.15rem 1.35rem;
    border-radius: var(--border-radius, 12px);
    position: relative;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.15);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.bg-notice-redesign:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.2);
}

.bg-notice-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* Visual Alert Icon Badge */
.bg-notice-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: color-mix(in srgb, var(--notice-accent) 12%, transparent);
    color: var(--notice-text);
    border: 1px solid color-mix(in srgb, var(--notice-accent) 25%, transparent);
}

.bg-notice-icon-badge svg {
    width: 22px;
    height: 22px;
}

.bg-notice-text {
    min-width: 0;
}

.bg-notice-text .eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--notice-text);
    margin: 0 0 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bg-notice-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text);
    line-height: 1.3;
}

.bg-notice-text p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

.bg-notice-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.btn-redesign-primary {
    background: var(--brand-action);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 0.92rem;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 1.15rem;
    border-radius: var(--control-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    transition: all 180ms ease;
    white-space: nowrap;
}

.btn-redesign-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4);
    color: #fff;
}

.btn-redesign-secondary {
    background: var(--surface-soft, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 0.95rem;
    border-radius: var(--control-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 180ms ease;
    white-space: nowrap;
}

[data-theme="light"] .btn-redesign-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-redesign-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--surface-soft-hover, rgba(255, 255, 255, 0.1));
}

.btn-snooze {
    position: relative;
    overflow: visible;
}

.btn-snooze .snooze-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke-width: 2.1;
}

/* 2. Quiet blue Next Gig card; the vivid teal treatment belongs to Live Show. */
.bg-next-gig-redesign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius, 12px);
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.bg-next-gig-redesign:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.25);
}

/* Dark Theme Next Gig */
[data-theme="dark"] .bg-next-gig-redesign,
:root:not([data-theme="light"]) .bg-next-gig-redesign {
    background: var(--panel);
    border: 1px solid rgba(100, 127, 168, 0.28);
    border-left: 4px solid #647fa8;
}

/* Light Theme Next Gig */
[data-theme="light"] .bg-next-gig-redesign {
    background: #ffffff;
    border: 1px solid rgba(71, 98, 139, 0.22);
    border-left: 4px solid #647fa8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.bg-next-gig-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* Calendar Date Tile */
.bg-date-tile {
    width: 66px;
    height: 72px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 0 0 66px;
    text-align: center;
    border: 1px solid rgba(100, 127, 168, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .bg-date-tile {
    background: rgba(13, 20, 32, 0.8);
}

[data-theme="light"] .bg-date-tile {
    background: #ffffff;
    border-color: rgba(71, 98, 139, 0.25);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.bg-date-tile-month {
    background: #47628b;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0;
}

[data-theme="light"] .bg-date-tile-month {
    background: #47628b;
}

.bg-date-tile-day {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 0.15rem;
    color: var(--text);
}

.bg-date-tile-dow {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.bg-gig-info {
    min-width: 0;
}

.bg-gig-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.bg-gig-eyebrow-row .eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a9bfdf;
    margin: 0;
}

[data-theme="light"] .bg-gig-eyebrow-row .eyebrow {
    color: #47628b;
}

.bg-countdown-badge {
    background: rgba(100, 127, 168, 0.14);
    color: #b8cce8;
    font-size: 0.72rem;
    font-weight: 750;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(100, 127, 168, 0.25);
}

[data-theme="light"] .bg-countdown-badge {
    background: #edf2f8;
    color: #3d5579;
    border-color: rgba(71, 98, 139, 0.2);
}

.bg-gig-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--text);
    line-height: 1.25;
}

/* Structured Meta Grid */
.bg-gig-meta-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.45rem;
    flex-wrap: wrap;
}

.bg-gig-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.bg-gig-meta-item svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    opacity: 0.8;
    color: #a9bfdf;
}

[data-theme="light"] .bg-gig-meta-item svg {
    color: #47628b;
}

.bg-next-gig-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.btn-open-gig {
    background: var(--surface-inset, #181d2a);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 750;
    font-size: 0.92rem;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 1.15rem;
    border-radius: var(--control-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 180ms ease;
    white-space: nowrap;
}

[data-theme="light"] .btn-open-gig {
    background: var(--surface-inset);
    border-color: var(--line);
    color: var(--text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-open-gig:hover {
    background: var(--neutral-button-hover);
    border-color: var(--line-active);
    color: var(--text);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

/* Multi-Gig Finance Pill */
.bg-multi-gig-pill {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

[data-theme="light"] .bg-multi-gig-pill {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.22);
}

/* Next Gig: Needs Attention (Readiness Items Missing) */
.bg-next-gig-redesign.has-attention {
    border-left-color: #f59e0b !important;
}

[data-theme="dark"] .bg-next-gig-redesign.has-attention,
:root:not([data-theme="light"]) .bg-next-gig-redesign.has-attention {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(20, 25, 40, 0.95) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .bg-next-gig-redesign.has-attention {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(245, 158, 11, 0.35);
}

.bg-next-gig-redesign.has-attention .bg-date-tile {
    border-color: rgba(245, 158, 11, 0.4);
}

.bg-next-gig-redesign.has-attention .bg-date-tile-month {
    background: #f59e0b;
}

[data-theme="light"] .bg-next-gig-redesign.has-attention .bg-date-tile-month {
    background: #d97706;
}

.bg-next-gig-redesign.has-attention .eyebrow {
    color: #f59e0b !important;
}

[data-theme="light"] .bg-next-gig-redesign.has-attention .eyebrow {
    color: #d97706 !important;
}

/* Readiness Warning Badge with Interactive Hover Hint Popover */
.bg-readiness-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   UNIVERSAL TOOLTIP SYSTEM (.has-bg-tooltip & .bg-tooltip-bubble)
   ========================================================================== */
.has-bg-tooltip {
    position: relative;
}

.bg-readiness-warning-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.72rem;
    font-weight: 750;
    padding: 0.18rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 180ms ease;
    user-select: none;
}

.bg-readiness-warning-badge:hover,
.bg-readiness-warning-badge:focus-visible {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    transform: translateY(-1px);
}

[data-theme="light"] .bg-readiness-warning-badge {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.32);
}

[data-theme="light"] .bg-readiness-warning-badge:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: #b45309;
}

/* Tooltip Popover Bubble */
.bg-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    z-index: 1000;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

/* Compact Tooltip (Single line hints like "Snooze for 24 hours") */
.bg-tooltip-bubble.bg-tooltip-compact {
    width: max-content;
    max-width: 240px;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 7px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: normal;
}

/* Rich Tooltip (Multi-line lists) */
.bg-tooltip-bubble.bg-tooltip-card {
    width: 250px;
}

[data-theme="dark"] .bg-tooltip-bubble,
:root:not([data-theme="light"]) .bg-tooltip-bubble {
    background: #111625;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f3f4f6;
}

[data-theme="light"] .bg-tooltip-bubble {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Default Tooltip Arrow (Points Down when bubble is above) */
.bg-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111625 transparent transparent transparent;
}

[data-theme="light"] .bg-tooltip-bubble::after {
    border-color: #ffffff transparent transparent transparent;
}

/* LOCATION-AWARE 1: Right-Aligned (Prevents clipping on right edge) */
.btn-snooze .bg-tooltip-bubble,
.bg-tooltip-bubble.tooltip-align-right {
    left: auto;
    right: 0;
    transform: translateY(4px);
}

.btn-snooze .bg-tooltip-bubble::after,
.bg-tooltip-bubble.tooltip-align-right::after {
    left: auto;
    right: 14px;
    transform: none;
}

/* LOCATION-AWARE 2: Left-Aligned (Prevents clipping on left edge) */
.bg-tooltip-bubble.tooltip-align-left {
    left: 0;
    right: auto;
    transform: translateY(4px);
}

.bg-tooltip-bubble.tooltip-align-left::after {
    left: 14px;
    right: auto;
    transform: none;
}

/* LOCATION-AWARE 3: Flipped Bottom (Prevents clipping on top edge / browser URL bar) */
.bg-tooltip-bubble.tooltip-flip-bottom {
    bottom: auto;
    top: calc(100% + 9px);
    transform: translateX(-50%) translateY(-4px);
}

.btn-snooze .bg-tooltip-bubble.tooltip-flip-bottom,
.bg-tooltip-bubble.tooltip-align-right.tooltip-flip-bottom {
    transform: translateY(-4px);
}

.bg-tooltip-bubble.tooltip-align-left.tooltip-flip-bottom {
    transform: translateY(-4px);
}

.bg-tooltip-bubble.tooltip-flip-bottom::after {
    top: auto;
    bottom: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #111625 transparent;
}

[data-theme="light"] .bg-tooltip-bubble.tooltip-flip-bottom::after {
    border-color: transparent transparent #ffffff transparent;
}

/* Warning Tinted Bubble (Readiness tooltip) */
.bg-tooltip-bubble.is-warning {
    border-color: rgba(245, 158, 11, 0.45);
}

[data-theme="light"] .bg-tooltip-bubble.is-warning {
    border-color: rgba(245, 158, 11, 0.45);
}

/* ACTIVE STATE (Universal for all triggers) */
.has-bg-tooltip:hover .bg-tooltip-bubble,
.has-bg-tooltip:focus-within .bg-tooltip-bubble,
.has-bg-tooltip.is-active .bg-tooltip-bubble,
.bg-readiness-tooltip-wrap:hover .bg-tooltip-bubble,
.bg-readiness-tooltip-wrap:focus-within .bg-tooltip-bubble,
.btn-snooze:hover .bg-tooltip-bubble,
.btn-snooze:focus .bg-tooltip-bubble,
.btn-snooze.is-active .bg-tooltip-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Active transform overrides when shifted left or right */
.btn-snooze:hover .bg-tooltip-bubble,
.btn-snooze:focus .bg-tooltip-bubble,
.btn-snooze.is-active .bg-tooltip-bubble,
.has-bg-tooltip:hover .bg-tooltip-bubble.tooltip-align-right,
.has-bg-tooltip:focus-within .bg-tooltip-bubble.tooltip-align-right,
.bg-readiness-tooltip-wrap:hover .bg-tooltip-bubble.tooltip-align-right,
.bg-readiness-tooltip-wrap:focus-within .bg-tooltip-bubble.tooltip-align-right {
    transform: translateX(0) translateY(0);
}

.has-bg-tooltip:hover .bg-tooltip-bubble.tooltip-align-left,
.has-bg-tooltip:focus-within .bg-tooltip-bubble.tooltip-align-left,
.bg-readiness-tooltip-wrap:hover .bg-tooltip-bubble.tooltip-align-left,
.bg-readiness-tooltip-wrap:focus-within .bg-tooltip-bubble.tooltip-align-left {
    transform: translateX(0) translateY(0);
}

.bg-tooltip-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f59e0b;
    margin-bottom: 0.4rem;
}

[data-theme="light"] .bg-tooltip-title {
    color: #b45309;
}

.bg-tooltip-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style-type: disc;
}

.bg-tooltip-list li,
.bg-tooltip-list [role="listitem"] {
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 0.78rem;
}

/* Production integration: retain the prototype's geometry while overriding
   older dashboard rules, and put hints in a clipping-safe, measured top layer. */
.dashboard-billing-notice.bg-notice-redesign {
    --notice-accent: #f59e0b;
    --notice-text: var(--warning-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--notice-accent) 10%, var(--surface-elevated)), var(--surface-elevated));
    border: 1px solid color-mix(in srgb, var(--notice-accent) 32%, var(--line));
    border-left: 4px solid var(--notice-accent);
    flex-wrap: wrap;
}
.dashboard-billing-notice.bg-notice-redesign.is-urgent {
    --notice-accent: #ef4444;
    --notice-text: var(--danger-text);
}
.dashboard-billing-notice.bg-notice-redesign.is-info {
    --notice-accent: #0ea5e9;
    --notice-text: var(--info-text);
}
.bg-finance-eyebrow-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.15rem; }
.dashboard-billing-notice.bg-notice-redesign .eyebrow { margin: 0; font-size: 0.72rem; color: var(--notice-text); }
.dashboard-billing-notice.bg-notice-redesign h2 { font-size: 1.12rem; line-height: 1.3; }
.dashboard-notice-actions.bg-notice-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; }
.bg-notice-actions .btn, .bg-payment-setup-action { gap: .45rem; }
.bg-notice-actions form, .bg-next-gig-actions form { flex: 0 0 auto; width: auto; margin: 0; }
.dashboard-next-gig.bg-next-gig-redesign { flex-direction: row; flex-wrap: wrap; border-left-width: 4px; }
.dashboard-next-gig.bg-next-gig-redesign.has-attention {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(20, 25, 40, 0.95));
    border-color: rgba(245, 158, 11, 0.3); border-left-color: #f59e0b;
}
[data-theme="light"] .dashboard-next-gig.bg-next-gig-redesign.has-attention {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(255, 255, 255, 0.98));
    border-color: rgba(245, 158, 11, 0.35);
}
.dashboard-next-gig.bg-next-gig-redesign h2.bg-gig-title { font-size: 1.35rem; margin: 0; }
.dashboard-next-gig-actions.bg-next-gig-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; width: auto; }
.bg-gig-info, .bg-notice-text { overflow-wrap: anywhere; }
.bg-gig-meta-item { min-width: 0; }
.bg-gig-meta-item svg { display: block; }
.bg-readiness-warning-badge { font-family: inherit; text-transform: none; letter-spacing: normal; white-space: nowrap; }
.bg-readiness-warning-badge:focus-visible, .btn-open-gig:focus-visible,
.btn-redesign-primary:focus-visible, .btn-redesign-secondary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.bg-tooltip-bubble[hidden], .bg-readiness-tooltip-wrap[hidden] { display: none !important; }
.bg-tooltip-list[role="list"] { display: block; }
.bg-tooltip-list [role="listitem"] { display: list-item; }
.bg-tooltip-bubble.bg-tooltip-positioned {
    position: fixed; inset: auto; margin: 0; box-sizing: border-box;
    transform: translateY(4px); overflow: visible; text-transform: none;
    letter-spacing: normal; text-align: left; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    z-index: 2147483000;
}
.bg-tooltip-bubble.bg-tooltip-positioned.bg-tooltip-compact { white-space: normal; width: max-content; text-align: center; }
.bg-tooltip-bubble.bg-tooltip-positioned.tooltip-flip-bottom { transform: translateY(-4px); }
.bg-tooltip-bubble.bg-tooltip-positioned.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.bg-tooltip-bubble.bg-tooltip-positioned::after { left: var(--bg-tooltip-arrow-x, 50%); right: auto; transform: translateX(-50%); }
.bg-tooltip-content { overflow: auto; overscroll-behavior: contain; }
.bg-tooltip-bubble.bg-tooltip-positioned::backdrop { background: transparent; pointer-events: none; }
@media (max-width: 720px) {
    .dashboard-next-gig.bg-next-gig-redesign { flex-direction: column; align-items: stretch; }
    .dashboard-next-gig-actions.bg-next-gig-actions, .dashboard-notice-actions.bg-notice-actions { width: 100%; }
    .dashboard-next-gig-actions.bg-next-gig-actions form, .dashboard-notice-actions.bg-notice-actions form { width: auto; }
    .bg-notice-actions > a.btn, .bg-next-gig-actions .btn-open-gig { flex: 1 1 auto; min-width: 0; white-space: normal; }
    .bg-gig-eyebrow-row { flex-wrap: wrap; }
}
@media (pointer: coarse) {
    .btn-open-gig, .btn-redesign-primary, .btn-redesign-secondary { min-height: 44px; }
    .bg-readiness-warning-badge { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .bg-notice-redesign, .bg-next-gig-redesign, .bg-tooltip-bubble,
    .btn-open-gig, .btn-redesign-primary, .btn-redesign-secondary, .bg-readiness-warning-badge { transition: none; }
}

.bg-tooltip-tip {
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--muted);
    display: block;
}

.bg-readiness-full-text {
    display: inline;
}

.bg-readiness-mobile-text {
    display: none;
}

/* Mobile & Responsive Adjustments */
@media (max-width: 640px) {
    .bg-notice-actions .btn { min-height: 44px; }

    .bg-notice-redesign {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .bg-notice-actions,
    .bg-next-gig-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .bg-notice-actions .btn-redesign-primary,
    .bg-next-gig-actions .btn-open-gig {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        height: 38px;
        padding: 0 1rem;
        justify-content: center;
        text-align: center;
    }

    .btn-snooze {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .btn-snooze .snooze-label {
        display: none;
    }

    .btn-snooze .snooze-icon {
        width: 17px;
        height: 17px;
        margin: 0;
    }

    .btn-snooze .bg-tooltip-bubble {
        left: auto;
        right: 0;
        transform: translateY(4px);
    }

    .btn-snooze .bg-tooltip-bubble::after {
        left: auto;
        right: 13px;
        transform: none;
    }

    .btn-snooze:hover>.bg-tooltip-bubble,
    .btn-snooze:focus>.bg-tooltip-bubble {
        transform: translateY(0);
    }

    .bg-next-gig-redesign {
        flex-direction: column;
        align-items: stretch;
        gap: 1.15rem;
    }

    .bg-next-gig-main {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .bg-gig-eyebrow-row {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
        overflow: visible;
        /* Never clip tooltip bubbles */
    }

    .bg-readiness-full-text {
        display: none;
    }

    .bg-readiness-mobile-text {
        display: inline;
    }

    .bg-gig-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

/* Persistent, high-priority payment setup; distinct from red gig settlements. */
.dashboard-billing-notice.bg-payment-setup {
    background: linear-gradient(110deg, rgba(245, 158, 11, 0.11), var(--surface-section));
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-left: 5px solid #f59e0b;
    padding: 1rem 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 14px -5px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .dashboard-billing-notice.bg-payment-setup {
    background: linear-gradient(110deg, #fffbeb, #ffffff);
    border-color: rgba(217, 119, 6, 0.28);
    border-left-color: #d97706;
    box-shadow: 0 4px 14px -5px rgba(146, 64, 14, 0.1);
}
.bg-payment-setup-body { display: flex; align-items: center; gap: 0.85rem; flex: 1 1 380px; min-width: 0; }
.bg-payment-setup-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.28); color: var(--warning-text); }
.bg-payment-setup-icon svg { width: 24px; height: 24px; }
.bg-payment-setup-copy { min-width: 0; overflow-wrap: anywhere; }
.dashboard-billing-notice.bg-payment-setup h2 { color: var(--warning-text); font-size: 1.08rem; line-height: 1.3; }
.dashboard-billing-notice.bg-payment-setup p { font-size: 0.84rem; line-height: 1.5; margin-top: 0.25rem; }
.bg-payment-setup-action { flex: 0 0 auto; }
@media (max-width: 640px) {
    .dashboard-billing-notice.bg-payment-setup { padding: 1rem; gap: 0.85rem; }
    .bg-payment-setup-body { flex-basis: auto; align-items: flex-start; }
    .bg-payment-setup-action { width: 100%; min-height: 44px; }
}
