/* Spacing tokens: defined on :root in saas-consistency.css (loaded on all admin screens). */

/* Outer shell never adds vertical offset; .bbai-page-container owns nav→content gap */
.bbai-container.bbai-content-shell {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.toplevel_page_bbai #wpcontent,
body.beepbeep-ai_page_bbai-library #wpcontent,
body.beepbeep-ai_page_bbai-analytics #wpcontent,
body.beepbeep-ai_page_bbai-credit-usage #wpcontent,
body.beepbeep-ai_page_bbai-guide #wpcontent,
body.beepbeep-ai_page_bbai-settings #wpcontent,
body.beepbeep-ai_page_bbai-debug #wpcontent,
body.beepbeep-ai_page_bbai-agency-overview #wpcontent {
    padding-left: 0;
}

body.toplevel_page_bbai #wpbody-content,
body.beepbeep-ai_page_bbai-library #wpbody-content,
body.beepbeep-ai_page_bbai-analytics #wpbody-content,
body.beepbeep-ai_page_bbai-credit-usage #wpbody-content,
body.beepbeep-ai_page_bbai-guide #wpbody-content,
body.beepbeep-ai_page_bbai-settings #wpbody-content,
body.beepbeep-ai_page_bbai-debug #wpbody-content,
body.beepbeep-ai_page_bbai-agency-overview #wpbody-content {
    padding: 0;
}

body.toplevel_page_bbai .wrap,
body.beepbeep-ai_page_bbai-library .wrap,
body.beepbeep-ai_page_bbai-analytics .wrap,
body.beepbeep-ai_page_bbai-credit-usage .wrap,
body.beepbeep-ai_page_bbai-guide .wrap,
body.beepbeep-ai_page_bbai-settings .wrap,
body.beepbeep-ai_page_bbai-debug .wrap,
body.beepbeep-ai_page_bbai-agency-overview .wrap {
    margin: 0;
    padding: 0;
    max-width: none;
    overflow: visible;
}

/* Single source for nav → first content offset (matches former 28px .bbai-page + 20px inner) */
.bbai-page {
    padding-top: 0 !important;
}

.bbai-page-inner.bbai-page-container,
.bbai-dashboard-shell .bbai-page-inner.bbai-page-container {
    width: 100%;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-top: var(--page-padding-top, 24px) !important;
    padding-left: var(--section-spacing, 24px) !important;
    padding-right: var(--section-spacing, 24px) !important;
    padding-bottom: calc(var(--section-spacing, 24px) + var(--card-gap, 16px)) !important;
    box-sizing: border-box;
    background: transparent !important;
    min-height: 0 !important;
}

#bbai-dashboard-main,
.bbai-dashboard#bbai-dashboard-main,
.bbai-dashboard-shell #bbai-dashboard-main {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: transparent !important;
    min-height: 0 !important;
    color: #111827 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    transition: none !important;
}

/* Page canvas uses the same three tokens at all breakpoints (no per-page drift) */

#bbai-dashboard-main .bbai-dashboard-hero,
#bbai-dashboard-main .bbai-dashboard-header,
#bbai-dashboard-main .bbai-dashboard-container {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

#bbai-dashboard-main .bbai-dashboard-hero {
    margin-bottom: var(--section-spacing, 24px);
    min-height: 128px;
    padding: 16px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef4ff 58%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

#bbai-dashboard-main .bbai-dashboard-header {
    margin: 0 0 var(--section-spacing, 24px);
}

#bbai-dashboard-main .bbai-dashboard-header__title {
    margin: 0 0 8px;
    font-size: var(--bbai-admin-type-page-title, 28px);
    font-weight: var(--bbai-admin-type-weight-bold, 700);
    line-height: 1.1;
    letter-spacing: var(--bbai-tracking-tight, -0.03em);
    color: var(--bbai-admin-color-text, #111827);
}

#bbai-dashboard-main .bbai-dashboard-header__subtitle {
    margin: 0;
    font-size: var(--bbai-admin-type-body, 14px);
    line-height: 1.5;
    color: var(--bbai-admin-color-text-muted, #6b7280);
}

#bbai-dashboard-main .bbai-dashboard-container {
    gap: var(--card-gap, 16px);
}

#bbai-dashboard-main .bbai-dashboard-row {
    gap: var(--card-gap, 16px);
    align-items: stretch;
    margin-bottom: 0;
}

#bbai-dashboard-main .bbai-dashboard-row--1 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
}

#bbai-dashboard-main .bbai-dashboard-row--1 > .bbai-dashboard-card {
    min-height: 420px;
}

#bbai-dashboard-main .bbai-dashboard-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#bbai-dashboard-main .bbai-dashboard-row--3,
#bbai-dashboard-main .bbai-dashboard-row--4,
#bbai-dashboard-main .bbai-dashboard-row--5 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 0;
}

#bbai-dashboard-main .bbai-dashboard-row--3 .bbai-dashboard-stats-wrap {
    margin-top: var(--card-gap, 16px);
}

#bbai-dashboard-main .bbai-dashboard-row--3 .bbai-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@supports (content-visibility: auto) {
    #bbai-dashboard-main .bbai-dashboard-section--lazy-render {
        content-visibility: auto;
        contain-intrinsic-size: 760px;
    }

    #bbai-dashboard-main .bbai-dashboard-row--4.bbai-dashboard-section--lazy-render,
    #bbai-dashboard-main .bbai-dashboard-row--5.bbai-dashboard-section--lazy-render {
        contain-intrinsic-size: 420px;
    }
}

#bbai-dashboard-main .bbai-dashboard-card,
#bbai-dashboard-main .bbai-stat-card {
    align-self: stretch;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#bbai-dashboard-main .bbai-dashboard-card:hover,
#bbai-dashboard-main .bbai-stat-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.075);
    transform: translateY(-1px);
}

#bbai-dashboard-main .bbai-dashboard-card .bbai-card__header {
    margin-bottom: 16px;
}

#bbai-dashboard-main .bbai-dashboard-card .bbai-card__title,
#bbai-dashboard-main .bbai-dashboard-card .bbai-opportunity-scanner__title {
    margin: 0 0 8px;
    font-size: var(--bbai-admin-type-card-title, 20px);
    font-weight: var(--bbai-admin-type-weight-semibold, 600);
    line-height: 1.2;
    letter-spacing: var(--bbai-tracking-tight, -0.02em);
    color: var(--bbai-admin-color-text, #1f2937);
}

#bbai-dashboard-main .bbai-card__title-icon,
#bbai-dashboard-main .bbai-dashboard-section-kicker__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #6366f1;
    vertical-align: text-bottom;
}

#bbai-dashboard-main .bbai-dashboard-card .bbai-card__copy,
#bbai-dashboard-main .bbai-dashboard-card .bbai-card__body p,
#bbai-dashboard-main .bbai-dashboard-card p {
    max-width: none !important;
}

#bbai-dashboard-main .bbai-dashboard-card .bbai-card__copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-dashboard-card .bbai-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#bbai-dashboard-main .bbai-dashboard-card .bbai-card__footer {
    margin-top: auto;
}

#bbai-dashboard-main .bbai-dashboard-hero-inner {
    display: block;
}

#bbai-dashboard-main .bbai-dashboard-hero-copy {
    display: grid;
    gap: 0;
    min-width: 0;
    width: 100%;
}

#bbai-dashboard-main .bbai-dashboard-hero__heading-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(37, 99, 235, 0.08));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

#bbai-dashboard-main .bbai-dashboard-hero__icon svg {
    width: 20px;
    height: 20px;
}

#bbai-dashboard-main .bbai-dashboard-hero__heading-copy {
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero__headline,
#bbai-dashboard-main .bbai-dashboard-hero-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
}

#bbai-dashboard-main .bbai-dashboard-hero__subtext,
#bbai-dashboard-main .bbai-dashboard-hero-subtext {
    margin: 4px 0 0;
    max-width: 640px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #64748b;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-block {
    display: grid;
    gap: 4px;
    width: 100%;
    max-width: 600px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero__helper {
    margin: -2px 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage,
#bbai-dashboard-main .bbai-dashboard-hero-usage {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-primary {
    display: inline;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-progress-copy {
    display: none !important;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-progress-copy:empty {
    display: none;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-progress-copy:not(:empty)::before {
    content: "•";
    margin: 0 6px;
    color: #9ca3af;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage .bbai-banner-usage-used,
#bbai-dashboard-main .bbai-dashboard-hero__usage .bbai-banner-usage-limit {
    font-weight: 600;
    color: #111827;
}

#bbai-dashboard-main .bbai-dashboard-hero-progress:not(.bbai-banner__progress) {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero-progress-track:not(.bbai-banner__progress-track) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

#bbai-dashboard-main .bbai-dashboard-hero-progress-fill:not(.bbai-banner__progress-fill) {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f46e5, #2563eb);
    transition: width 0.4s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 4px;
    flex: 0 0 auto;
    width: 184px;
    max-width: 184px;
}

#bbai-dashboard-main .bbai-dashboard-hero-actions__primary-row {
    width: 100%;
    margin: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero-actions__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 8px;
    min-height: 18px;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero-actions__primary-row > .bbai-dashboard-hero__cta {
    width: 100%;
    justify-content: center;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--primary,
#bbai-dashboard-main .bbai-dashboard-hero-actions .bbai-btn-primary {
    border: none;
    background: #10b981 !important;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
    color: #ffffff !important;
    transform: translateY(0);
    transition:
        background-color 0.165s ease,
        box-shadow 0.165s ease,
        transform 0.165s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--primary:hover,
#bbai-dashboard-main .bbai-dashboard-hero-actions .bbai-btn-primary:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1)) !important;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--primary:active,
#bbai-dashboard-main .bbai-dashboard-hero-actions .bbai-btn-primary:active {
    background: #047857 !important;
    transform: translateY(0) scale(0.98) !important;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)) !important;
    transition-duration: 0.1s;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--tertiary {
    border: 1px solid #dbe5f4;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
    color: #1f2937 !important;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--tertiary:hover {
    border-color: #bfdbfe;
    background: #f8fbff !important;
    transform: translateY(-1px) !important;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--secondary {
    min-height: auto;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #2563eb !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    justify-content: flex-start;
    white-space: nowrap;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--secondary:hover {
    text-decoration: underline;
    transform: none !important;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--secondary-muted {
    color: #64748b !important;
    font-weight: 600;
}

#bbai-dashboard-main .bbai-dashboard-hero__link-separator {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
}

#bbai-dashboard-main .bbai-dashboard-hero__action-helper {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
}

#bbai-dashboard-main .bbai-dashboard-quick-actions {
    margin-top: 8px;
    margin-bottom: 24px;
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #dbe5f4;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button:hover {
    transform: translateY(-1px);
    border-color: #c7d4e8;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button--primary {
    border: none;
    background: #10b981;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    color: #ffffff;
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button--primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button.is-disabled,
#bbai-dashboard-main .bbai-workflow-step__btn.is-disabled,
#bbai-dashboard-main .bbai-dashboard-hero__cta.is-disabled {
    pointer-events: none;
    border-color: #e5e7eb;
    background: #f8fafc !important;
    box-shadow: none !important;
    color: #9ca3af !important;
    transform: none !important;
}

#bbai-dashboard-main .bbai-dashboard-feedback {
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

#bbai-dashboard-main .bbai-dashboard-feedback__title,
#bbai-dashboard-main .bbai-dashboard-feedback__detail {
    display: block;
}

#bbai-dashboard-main .bbai-dashboard-feedback__detail {
    margin-top: 2px;
    font-weight: 500;
    opacity: 0.9;
}

#bbai-dashboard-main .bbai-dashboard-feedback--success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #047857;
}

#bbai-dashboard-main .bbai-dashboard-feedback--warning {
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #b45309;
}

#bbai-dashboard-main .bbai-dashboard-feedback--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-message {
    margin-bottom: 0;
    white-space: normal;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-container {
    max-width: 560px;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-content {
    padding: 32px;
    text-align: left;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-icon {
    display: none;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-title {
    margin-bottom: 8px;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-buttons {
    justify-content: flex-end;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__intro {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.55;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__summary {
    margin-bottom: 16px;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #dbe7f3;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__summary--warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: linear-gradient(180deg, #fffaf0 0%, #fff5e6 100%);
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__summary-line {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #111827;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__summary-line + .bbai-dashboard-generator-modal__summary-line {
    margin-top: 4px;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__summary-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__toggle:hover {
    color: #0f172a;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 8px;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__toggle:disabled {
    opacity: 0.6;
    cursor: default;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__toggle-icon {
    font-size: 13px;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__options {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__options[hidden] {
    display: none !important;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__option:hover {
    border-color: #c7d2fe;
    background: #f8fbff;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__option.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__option:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__option input {
    margin: 0;
    flex-shrink: 0;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__option-label {
    display: block;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-dashboard-generator-modal__button-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bbai-dashboard-generator-spin 0.7s linear infinite;
}

#bbai-modal-overlay.bbai-dashboard-generator-modal.bbai-dashboard-generator-modal--loading .bbai-modal-buttons {
    pointer-events: none;
}

@keyframes bbai-dashboard-generator-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#bbai-dashboard-main .bbai-dashboard-feedback--info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.bbai-dashboard-scan-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.bbai-dashboard-scan-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.bbai-dashboard-scan-modal__dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 32px 32px 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
    color: #111827;
}

.bbai-dashboard-scan-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bbai-dashboard-scan-modal__close:hover {
    border-color: #cbd5e1;
    background: #eff6ff;
    color: #1e293b;
}

.bbai-dashboard-scan-modal__state {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbai-dashboard-scan-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eef2ff;
    color: #3b82f6;
    font-size: 24px;
    font-weight: 600;
}

.bbai-dashboard-scan-modal__icon--loading {
    background: rgba(59, 130, 246, 0.1);
}

.bbai-dashboard-scan-modal__icon--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.bbai-dashboard-scan-modal__icon--success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.bbai-dashboard-scan-modal__icon--error {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.bbai-dashboard-scan-modal__title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.bbai-dashboard-scan-modal__description {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #64748b;
}

.bbai-dashboard-scan-modal__loading,
.bbai-dashboard-scan-modal__result {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.bbai-dashboard-scan-modal__loading[hidden],
.bbai-dashboard-scan-modal__result[hidden],
.bbai-dashboard-scan-modal__stats[hidden] {
    display: none !important;
}

.bbai-dashboard-scan-modal__loading {
    padding: 16px 18px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(248, 250, 252, 0.98));
}

.bbai-dashboard-scan-modal__spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

.bbai-dashboard-scan-modal__loading-copy {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
}

.bbai-dashboard-scan-modal__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bbai-dashboard-scan-modal__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.bbai-dashboard-scan-modal__stat-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
}

.bbai-dashboard-scan-modal__stat-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
}

.bbai-dashboard-scan-modal__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.bbai-dashboard-scan-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.bbai-dashboard-scan-modal__button {
    min-width: 132px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bbai-dashboard-scan-modal__button:hover {
    transform: translateY(-1px);
}

.bbai-dashboard-scan-modal__button--secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #334155;
}

.bbai-dashboard-scan-modal__button--secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bbai-dashboard-scan-modal__button--primary {
    border: none;
    background: linear-gradient(135deg, #5b5ce6, #3b82f6);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.22);
    color: #ffffff;
}

@media (max-width: 640px) {
    .bbai-dashboard-scan-modal {
        padding: 16px;
    }

    .bbai-dashboard-scan-modal__dialog {
        padding: 24px 20px 18px;
    }

    .bbai-dashboard-scan-modal__title {
        font-size: 22px;
    }

    .bbai-dashboard-scan-modal__stats,
    .bbai-dashboard-scan-modal__footer {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .bbai-dashboard-scan-modal__button {
        width: 100%;
    }
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button.is-loading,
#bbai-dashboard-main .bbai-workflow-step__btn.is-loading,
#bbai-dashboard-main .bbai-dashboard-hero__cta.is-loading {
    pointer-events: none;
}

#bbai-dashboard-main .bbai-dashboard-quick-actions__button .bbai-spinner,
#bbai-dashboard-main .bbai-workflow-step__btn .bbai-spinner,
#bbai-dashboard-main .bbai-dashboard-hero__cta .bbai-spinner {
    width: 14px;
    height: 14px;
}

/* Donut + metric tiles — align with Phase 4 --bbai-status-* (foundation tokens) */
#bbai-dashboard-main .bbai-status-card {
    --bbai-status-optimized: var(--bbai-status-optimized-accent);
    --bbai-status-optimized-bg: rgba(34, 181, 115, 0.06);
    --bbai-status-optimized-border: rgba(34, 181, 115, 0.14);
    --bbai-status-weak: var(--bbai-status-needs-review-accent);
    --bbai-status-weak-bg: rgba(217, 164, 65, 0.06);
    --bbai-status-weak-border: rgba(217, 164, 65, 0.14);
    --bbai-status-missing: var(--bbai-status-missing-accent);
    --bbai-status-missing-bg: rgba(201, 122, 0, 0.06);
    --bbai-status-missing-border: rgba(201, 122, 0, 0.14);
}

#bbai-dashboard-main .bbai-status-card .bbai-card__header {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#bbai-dashboard-main .bbai-status-card .bbai-card__title {
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
}

#bbai-dashboard-main .bbai-status-card__scan-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #94a3b8;
    text-align: center;
}

#bbai-dashboard-main .bbai-status-card__body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#bbai-dashboard-main .bbai-status-card .bbai-progress-donut-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
}

#bbai-dashboard-main .bbai-status-card .bbai-progress-donut {
    width: 188px;
    height: 188px;
    max-width: 188px;
}

#bbai-dashboard-main .bbai-status-card .bbai-status-ring-track {
    stroke: #e5e7eb;
}

#bbai-dashboard-main .bbai-status-card .bbai-status-ring-segment {
    transition: stroke-dasharray 0.8s ease, stroke-dashoffset 0.8s ease, opacity 0.25s ease;
}

#bbai-dashboard-main .bbai-status-card .bbai-status-ring-segment--optimized {
    stroke: var(--bbai-status-optimized);
}

#bbai-dashboard-main .bbai-status-card .bbai-status-ring-segment--weak {
    stroke: var(--bbai-status-weak);
}

#bbai-dashboard-main .bbai-status-card .bbai-status-ring-segment--missing {
    stroke: var(--bbai-status-missing);
}

#bbai-dashboard-main .bbai-status-card .bbai-progress-donut-center,
#bbai-dashboard-main .bbai-status-card .bbai-donut-center {
    inset: 18%;
    width: 64%;
    height: 64%;
    margin: 0;
    background: transparent;
}

#bbai-dashboard-main .bbai-status-card .bbai-progress-donut-value {
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
}

#bbai-dashboard-main .bbai-status-card .bbai-donut-value {
    display: block;
    font-size: 48px;
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: #111827;
}

#bbai-dashboard-main .bbai-status-card .bbai-progress-donut-percent,
#bbai-dashboard-main .bbai-status-card .bbai-donut-percent {
    margin-left: 0;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #111827;
    opacity: 1;
}

#bbai-dashboard-main .bbai-status-card .bbai-progress-donut-label,
#bbai-dashboard-main .bbai-status-card .bbai-donut-label {
    max-width: 118px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #7a8498;
}

#bbai-dashboard-main .bbai-status-summary {
    width: 100%;
    margin: 4px auto 0 !important;
    text-align: center !important;
}

#bbai-dashboard-main .bbai-status-summary__line {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-status-summary__line--primary {
    font-size: 15px;
    line-height: 1.25;
}

#bbai-dashboard-main .bbai-status-summary__line--secondary {
    margin-top: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #64748b;
}

#bbai-dashboard-main .bbai-status-summary__line--meta {
    margin-top: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #94a3b8;
}

#bbai-dashboard-main .bbai-status-summary__line--secondary {
    margin-top: 0;
}

#bbai-dashboard-main .bbai-status-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 0;
}

#bbai-dashboard-main .bbai-status-metrics::before {
    display: none;
}

#bbai-dashboard-main .bbai-status-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 84px;
    padding: 16px 14px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

#bbai-dashboard-main .bbai-status-metric__value,
#bbai-dashboard-main .bbai-status-stat-number {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #111827;
}

#bbai-dashboard-main .bbai-status-metric__label,
#bbai-dashboard-main .bbai-status-stat-label {
    margin: 4px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-status-metric__label-icon {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    color: currentColor;
}

#bbai-dashboard-main .bbai-status-metric--optimized {
    border-color: var(--bbai-status-optimized-border);
    background: var(--bbai-status-optimized-bg);
}

#bbai-dashboard-main .bbai-status-metric--optimized .bbai-status-metric__value,
#bbai-dashboard-main .bbai-status-metric--optimized .bbai-status-stat-number,
#bbai-dashboard-main .bbai-status-metric--optimized .bbai-status-metric__label,
#bbai-dashboard-main .bbai-status-metric--optimized .bbai-status-stat-label {
    color: var(--bbai-status-optimized);
}

#bbai-dashboard-main .bbai-status-metric--weak {
    border-color: var(--bbai-status-weak-border);
    background: var(--bbai-status-weak-bg);
}

#bbai-dashboard-main .bbai-status-metric--weak .bbai-status-metric__value,
#bbai-dashboard-main .bbai-status-metric--weak .bbai-status-stat-number,
#bbai-dashboard-main .bbai-status-metric--weak .bbai-status-metric__label,
#bbai-dashboard-main .bbai-status-metric--weak .bbai-status-stat-label {
    color: var(--bbai-status-weak);
}

#bbai-dashboard-main .bbai-status-metric--missing {
    border-color: var(--bbai-status-missing-border);
    background: var(--bbai-status-missing-bg);
}

#bbai-dashboard-main .bbai-status-metric--missing .bbai-status-metric__value,
#bbai-dashboard-main .bbai-status-metric--missing .bbai-status-stat-number,
#bbai-dashboard-main .bbai-status-metric--missing .bbai-status-metric__label,
#bbai-dashboard-main .bbai-status-metric--missing .bbai-status-stat-label {
    color: var(--bbai-status-missing);
}

#bbai-dashboard-main .bbai-status-card .bbai-status-insight {
    width: 100%;
    max-width: none !important;
    margin: 16px auto 22px;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
}

#bbai-dashboard-main .bbai-status-insight__header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

#bbai-dashboard-main .bbai-status-insight__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

#bbai-dashboard-main .bbai-status-insight__message {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

#bbai-dashboard-main .bbai-status-insight__icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
}

#bbai-dashboard-main .bbai-status-insight__text {
    text-align: center;
}

#bbai-dashboard-main .bbai-status-insight__guidance {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: inherit;
    opacity: 0.82;
}

#bbai-dashboard-main .bbai-status-insight__meta {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: inherit;
    opacity: 0.78;
}

#bbai-dashboard-main .bbai-status-insight__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

#bbai-dashboard-main .bbai-status-insight__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

#bbai-dashboard-main .bbai-status-insight__action--button {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #10b981 !important;
    border: none;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    text-decoration: none;
}

#bbai-dashboard-main .bbai-status-insight__action--link {
    min-height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #2563eb;
}

#bbai-dashboard-main .bbai-status-insight__action:hover {
    text-decoration: underline;
}

#bbai-dashboard-main .bbai-status-insight__action--button:hover {
    background: #059669 !important;
    transform: none;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#bbai-dashboard-main .bbai-status-insight__action--link:hover {
    transform: none;
    text-decoration: underline;
    box-shadow: none;
}

#bbai-dashboard-main .bbai-status-insight--warning,
#bbai-dashboard-main .bbai-status-insight--danger,
#bbai-dashboard-main .bbai-warning-card,
#bbai-dashboard-main .bbai-status-warning,
#bbai-dashboard-main .bbai-accessibility-warning {
    border: 1px solid rgba(249, 115, 22, 0.26);
    background: rgba(249, 115, 22, 0.05) !important;
    color: #b45309;
    border-radius: 8px;
}

#bbai-dashboard-main .bbai-status-insight--warning .bbai-status-insight__message,
#bbai-dashboard-main .bbai-status-insight--danger .bbai-status-insight__message {
    color: #b45309;
}

#bbai-dashboard-main .bbai-status-insight--warning .bbai-status-insight__icon,
#bbai-dashboard-main .bbai-status-insight--danger .bbai-status-insight__icon,
#bbai-dashboard-main .bbai-warning-icon {
    color: rgba(249, 115, 22, 0.75);
}

#bbai-dashboard-main .bbai-status-insight--success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4 !important;
    color: #166534;
}

#bbai-dashboard-main .bbai-status-insight--success .bbai-status-insight__message {
    color: #166534;
}

#bbai-dashboard-main .bbai-plan-usage-divider {
    margin: 0 0 12px;
    border-top: 1px solid #eef1f5;
}

#bbai-dashboard-main .bbai-plan-usage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: none;
    text-align: left;
}

#bbai-dashboard-main .bbai-plan-usage-card .bbai-card__body {
    justify-content: stretch;
}

#bbai-dashboard-main .bbai-plan-usage-card .bbai-plan-usage {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

#bbai-dashboard-main .bbai-plan-usage__tier {
    display: flex;
    flex-direction: column;
}

#bbai-dashboard-main .bbai-plan-usage__tier--growth {
    gap: 2px;
}

#bbai-dashboard-main .bbai-plan-usage__section-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-plan-usage__guide .bbai-plan-usage__section-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

#bbai-dashboard-main .bbai-plan-usage__title,
#bbai-dashboard-main .bbai-plan-usage__label {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-plan-usage__progress {
    position: relative;
    height: 6px;
    margin: 8px 0 0;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: visible;
}

#bbai-dashboard-main .bbai-plan-usage__progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    transition: width 0.6s ease;
}

#bbai-dashboard-main .bbai-plan-usage__progress--growth {
    margin-top: 4px;
    margin-bottom: 0;
    background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
    border: 1px solid #dcfce7;
}

#bbai-dashboard-main .bbai-plan-usage__progress-fill--growth {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: width 0.6s ease;
}

#bbai-dashboard-main .bbai-plan-usage__progress--capacity {
    box-shadow: inset 0 1px 2px rgba(34, 197, 94, 0.08);
}

#bbai-dashboard-main .bbai-plan-usage__line,
#bbai-dashboard-main .bbai-plan-usage__reset,
#bbai-dashboard-main .bbai-plan-usage__remaining,
#bbai-dashboard-main .bbai-plan-usage__growth-copy,
#bbai-dashboard-main .bbai-plan-usage__comparison {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

#bbai-dashboard-main .bbai-plan-usage__comparison {
    margin-top: 2px;
    font-weight: 600;
    color: #166534;
}

#bbai-dashboard-main .bbai-plan-usage__progress-indicator {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #16a34a;
    border: 2px solid #f9fafb;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#bbai-dashboard-main .bbai-plan-usage__line {
    font-weight: 600;
    color: #111827;
}

#bbai-dashboard-main .bbai-plan-usage__remaining {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

#bbai-dashboard-main .bbai-plan-usage__reset {
    margin-top: 2px;
}

#bbai-dashboard-main .bbai-plan-usage__divider {
    margin: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#bbai-dashboard-main .bbai-plan-usage__guide,
#bbai-dashboard-main .bbai-plan-usage__upgrade {
    display: flex;
    flex-direction: column;
}

#bbai-dashboard-main .bbai-plan-usage__steps {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-plan-usage__step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: #4b5563;
}

#bbai-dashboard-main .bbai-plan-usage__step-icon {
    flex: 0 0 auto;
    width: 14px;
    text-align: center;
    opacity: 0.78;
}

#bbai-dashboard-main .bbai-plan-usage__step-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-plan-usage__step-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
}

#bbai-dashboard-main .bbai-plan-usage__step-description {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-plan-usage__remaining--exhausted {
    color: #1f2937;
}

#bbai-dashboard-main .bbai-plan-usage__upgrade-copy {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #2563eb;
}

#bbai-dashboard-main .bbai-plan-usage__growth-copy {
    margin: 0;
}

#bbai-dashboard-main .bbai-plan-usage__price {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__comparison {
    margin-top: 2px;
}

#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__progress--growth {
    margin-top: 8px;
}

#bbai-dashboard-main .bbai-plan-usage__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: var(--bbai-cta-group-margin-top, 16px);
}

#bbai-dashboard-main .bbai-plan-usage__cta {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px !important;
    margin: 0;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1;
    transform: translateY(0);
    transition: transform 0.165s ease, box-shadow 0.165s ease !important;
}

#bbai-dashboard-main .bbai-plan-usage__cta.bbai-btn-primary {
    background: #10b981 !important;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)) !important;
    color: #ffffff !important;
}

#bbai-dashboard-main .bbai-plan-usage__cta.bbai-btn-primary:hover:not(:disabled) {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1)) !important;
}

#bbai-dashboard-main .bbai-plan-usage__compare-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    padding-left: 0;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #6b7280;
    text-decoration: none;
}

#bbai-dashboard-main .bbai-plan-usage__compare-link:hover {
    text-decoration: underline;
}

#bbai-dashboard-main .bbai-inline-upgrade-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
}

#bbai-dashboard-main .bbai-inline-upgrade-trigger:hover {
    text-decoration: underline;
}

#bbai-dashboard-main .bbai-inline-upgrade-trigger:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 3px;
    border-radius: 8px;
}

#bbai-dashboard-main .bbai-upgrade-card {
    align-self: stretch;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px !important;
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

#bbai-dashboard-main .bbai-upgrade-card--subtle {
    border-color: #e5e7eb !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

#bbai-dashboard-main .bbai-upgrade-card--urgent {
    border-color: #bfdbfe !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08) !important;
}

#bbai-dashboard-main .bbai-upgrade-top {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-card__header {
    position: static;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 0;
}

#bbai-dashboard-main .bbai-upgrade-card__badge,
#bbai-dashboard-main .bbai-plan-badge {
    display: none;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-card__title {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.2;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-upgrade-price {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111827;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-card__copy {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-upgrade-subtitle {
    margin-bottom: 0;
}

#bbai-dashboard-main .bbai-upgrade-card__trust {
    display: none;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    justify-content: flex-start;
}

#bbai-dashboard-main .bbai-upgrade-card__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
    border-top: 0;
}

#bbai-dashboard-main .bbai-upgrade-card__section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-feature-list,
#bbai-dashboard-main .bbai-upgrade-features {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #374151;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.16);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

#bbai-dashboard-main .bbai-upgrade-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

#bbai-dashboard-main .bbai-upgrade-value__line,
#bbai-dashboard-main .bbai-upgrade-value__support {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-upgrade-value__line strong,
#bbai-dashboard-main .bbai-upgrade-value__support strong {
    font-weight: 600;
    color: #111827;
}

#bbai-dashboard-main .bbai-upgrade-card__divider,
#bbai-dashboard-main .bbai-upgrade-card__footer-divider {
    display: none;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-card__footer.bbai-upgrade-bottom {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    border-top: 1px solid #eef1f5;
}

#bbai-dashboard-main .bbai-upgrade-context,
#bbai-dashboard-main .bbai-upgrade-context-line {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

#bbai-dashboard-main .bbai-upgrade-meters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 4px;
}

#bbai-dashboard-main .bbai-meter {
    display: flex;
    flex-direction: column;
}

#bbai-dashboard-main .bbai-meter-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #374151;
}

#bbai-dashboard-main .bbai-meter-value {
    font-weight: 600;
    color: #111827;
}

#bbai-dashboard-main .bbai-meter-bar {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

#bbai-dashboard-main .bbai-meter-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-meter-free .bbai-meter-bar {
    background: #ece8ff;
}

#bbai-dashboard-main .bbai-meter-free .bbai-meter-fill {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    transition: width 0.6s ease;
}

#bbai-dashboard-main .bbai-meter-growth .bbai-meter-bar {
    box-sizing: border-box;
    height: 12px;
    padding: 1px;
    background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
    border: 1px solid #dcfce7;
    box-shadow: inset 0 1px 2px rgba(34, 197, 94, 0.08);
}

#bbai-dashboard-main .bbai-meter-growth .bbai-meter-fill {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

#bbai-dashboard-main .bbai-meter-caption {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-upgrade-cta {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px !important;
    margin: 0;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-upgrade-cta.bbai-btn-primary {
    background: #10b981 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    color: #ffffff !important;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-upgrade-cta.bbai-btn-primary:hover:not(:disabled) {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1)) !important;
}

#bbai-dashboard-main .bbai-upgrade-trust {
    display: none;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-link-secondary,
#bbai-dashboard-main .bbai-upgrade-card .bbai-upgrade-compare-link,
#bbai-dashboard-main .bbai-compare-plans {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    padding-left: 0;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #6b7280;
    text-decoration: none;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-link-secondary:hover,
#bbai-dashboard-main .bbai-upgrade-card .bbai-upgrade-compare-link:hover {
    text-decoration: underline;
}

#bbai-dashboard-main .bbai-actions-card {
    min-height: 0;
}

#bbai-dashboard-main .bbai-workflow-card__body {
    display: block;
}

#bbai-dashboard-main .bbai-workflow-card .bbai-card__title {
    margin-bottom: 8px;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-workflow-card__desc {
    max-width: 560px;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#bbai-dashboard-main .bbai-workflow-step {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
}

#bbai-dashboard-main .bbai-workflow-step:first-child {
    padding-top: 0;
    border-top: none;
}

#bbai-dashboard-main .bbai-workflow-step--last {
    padding-bottom: 0;
}

#bbai-dashboard-main .bbai-workflow-step__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #475569;
    font-size: 18px;
}

#bbai-dashboard-main .bbai-workflow-step__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
}

#bbai-dashboard-main .bbai-workflow-step__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-workflow-step__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-workflow-step__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: 0;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#bbai-dashboard-main .bbai-workflow-step__btn--primary {
    border: none;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

#bbai-dashboard-main .bbai-workflow-step__btn--primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-workflow-step__btn--secondary,
#bbai-dashboard-main .bbai-workflow-step__btn--locked {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-workflow-card__help-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

#bbai-dashboard-main .bbai-workflow-card__help-cta a {
    color: #2563eb;
    text-decoration: none;
}

#bbai-dashboard-main .bbai-workflow-card__help-cta a:hover {
    text-decoration: underline;
}

#bbai-dashboard-main .bbai-opportunity-scanner__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#bbai-dashboard-main .bbai-opportunity-scanner .bbai-card__body {
    flex: 1 1 auto;
    justify-content: stretch;
    gap: 0;
}

#bbai-dashboard-main .bbai-opportunity-scanner__workflow-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#bbai-dashboard-main .bbai-opportunity-scanner__prompt-block,
#bbai-dashboard-main .bbai-opportunity-scanner__results {
    display: flex;
    flex: 1;
    flex-direction: column;
}

#bbai-dashboard-main .bbai-opportunity-scanner__loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5edfb;
    border-radius: 12px;
    background: #f8fbff;
}

#bbai-dashboard-main .bbai-opportunity-scanner__loading-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#bbai-dashboard-main .bbai-opportunity-scanner__loading-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-opportunity-scanner__loading-note {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

#bbai-dashboard-main .bbai-opportunity-scanner__prompt {
    margin: 0 0 12px;
}

#bbai-dashboard-main .bbai-opportunity-scanner__title {
    color: #1f2937;
}

#bbai-dashboard-main .bbai-opportunity-scanner__desc {
    color: #6b7280;
}

#bbai-dashboard-main .bbai-opportunity-scanner__summary {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
}

#bbai-dashboard-main .bbai-opportunity-scanner__label {
    margin: 16px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

#bbai-dashboard-main .bbai-opportunity-scanner__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    font-size: 16px;
    line-height: 1;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-icon.dashicons {
    font-size: 16px;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: start;
    min-width: 0;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-title {
    margin: 0;
    grid-column: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-desc {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-button {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    min-height: auto;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

#bbai-dashboard-main .bbai-opportunity-scanner__step-helper {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
}

#bbai-dashboard-main .bbai-dashboard-stats-wrap {
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

#bbai-dashboard-main .bbai-dashboard-footer-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 0;
}

#bbai-dashboard-main .bbai-review-prompt-card,
#bbai-dashboard-main .bbai-review-strip {
    width: 100%;
}

#bbai-dashboard-main .bbai-review-prompt-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 16px 24px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

#bbai-dashboard-main .bbai-review-prompt-card__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

#bbai-dashboard-main .bbai-review-prompt-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-review-prompt-card__content {
    min-width: 0;
}

#bbai-dashboard-main .bbai-review-prompt-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

#bbai-dashboard-main .bbai-review-prompt-card__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

#bbai-dashboard-main .bbai-review-prompt-card__copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-review-prompt-card__stars,
#bbai-dashboard-main .bbai-review-stars {
    margin: 0;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.125em;
    color: #f59e0b;
    opacity: 0.95;
}

#bbai-dashboard-main .bbai-review-prompt-card__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-review-prompt-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

#bbai-dashboard-main .bbai-review-prompt-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

#bbai-dashboard-main .bbai-dashboard-section-kicker,
#bbai-dashboard-main .bbai-performance-title {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #374151;
}

#bbai-dashboard-main .bbai-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

#bbai-dashboard-main .bbai-accessibility-impact-card {
    min-height: 0;
}

#bbai-dashboard-main .bbai-accessibility-impact-card .bbai-card__body {
    gap: 16px;
}

#bbai-dashboard-main .bbai-accessibility-impact__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#bbai-dashboard-main .bbai-accessibility-impact__metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    background: #f8fafc;
}

#bbai-dashboard-main .bbai-accessibility-impact__metric-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
}

#bbai-dashboard-main .bbai-accessibility-impact__metric-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
}

#bbai-dashboard-main .bbai-accessibility-impact__metric-value strong {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#bbai-dashboard-main .bbai-accessibility-impact__generated {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-accessibility-impact__preview {
    padding: 16px;
    border: 1px solid #e9e5ff;
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfcff 0%, #f7f5ff 100%);
}

#bbai-dashboard-main .bbai-accessibility-impact__badge {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
}

#bbai-dashboard-main .bbai-accessibility-impact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#bbai-dashboard-main .bbai-accessibility-impact__action {
    margin: 0;
}

#bbai-dashboard-main .bbai-stat-card,
#bbai-dashboard-main .bbai-metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-height: 136px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#bbai-dashboard-main .bbai-stat-card:hover,
#bbai-dashboard-main .bbai-metric-card:hover {
    transform: translateY(-1px);
    border-color: #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

#bbai-dashboard-main .bbai-btn:focus-visible,
#bbai-dashboard-main .bbai-workflow-step__btn:focus-visible,
#bbai-dashboard-main .bbai-review-prompt-card__cta:focus-visible,
#bbai-dashboard-main .bbai-status-insight__action:focus-visible,
#bbai-dashboard-main .bbai-upgrade-compare-link:focus-visible,
#bbai-dashboard-main .bbai-workflow-card__help-cta a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#bbai-dashboard-main .bbai-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    margin: 0 0 12px;
    color: #94a3b8;
}

#bbai-dashboard-main .bbai-stat-card__icon svg {
    width: 18px;
    height: 18px;
}

#bbai-dashboard-main .bbai-stat-card__value,
#bbai-dashboard-main .bbai-metric-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 0;
    min-height: 20px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
}

#bbai-dashboard-main .bbai-stat-card__value .bbai-number-animate,
#bbai-dashboard-main .bbai-metric-value .bbai-number-animate {
    font-size: 32px;
    line-height: 1.2;
}

#bbai-dashboard-main .bbai-stat-card__value span + span,
#bbai-dashboard-main .bbai-stat-card .bbai-percent {
    font-size: 16px;
    font-weight: 600;
}

#bbai-dashboard-main .bbai-stat-card__label,
#bbai-dashboard-main .bbai-metric-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 0;
    min-height: 30px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-stat-card__label--with-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    text-transform: none;
    letter-spacing: 0.01em;
}

#bbai-dashboard-main .bbai-stat-card__tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    cursor: help;
}

#bbai-dashboard-main .bbai-stat-card__tooltip-trigger:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

#bbai-dashboard-main .bbai-stat-card__tooltip-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    #bbai-dashboard-main .bbai-dashboard-row--1,
    #bbai-dashboard-main .bbai-dashboard-row--2,
    #bbai-dashboard-main .bbai-dashboard-row--3,
    #bbai-dashboard-main .bbai-dashboard-row--4,
    #bbai-dashboard-main .bbai-dashboard-row--5 {
        grid-template-columns: 1fr !important;
    }

    #bbai-dashboard-main .bbai-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #bbai-dashboard-main .bbai-dashboard-quick-actions__buttons {
        width: 100%;
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main {
        padding: 0 20px 32px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__usage-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero-actions {
        width: auto;
        align-items: flex-start;
        justify-content: flex-start;
        max-width: none;
    }

    #bbai-dashboard-main .bbai-dashboard-hero-actions__links {
        align-items: flex-start;
        gap: 4px 8px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero,
    #bbai-dashboard-main .bbai-dashboard-card,
    #bbai-dashboard-main .bbai-stat-card {
        padding: 16px 24px;
    }

    #bbai-dashboard-main .bbai-metric-card,
    #bbai-dashboard-main .bbai-stat-card.bbai-metric-card {
        padding: 16px;
    }

    #bbai-dashboard-main .bbai-plan-usage__price {
        font-size: 20px;
    }

    #bbai-dashboard-main .bbai-dashboard-header__title {
        font-size: 24px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__headline {
        font-size: 19px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__action-helper {
        text-align: left;
    }

    #bbai-dashboard-main .bbai-status-card .bbai-progress-donut {
        width: 192px;
        height: 192px;
        max-width: 192px;
    }

    #bbai-dashboard-main .bbai-status-card .bbai-progress-donut-value,
    #bbai-dashboard-main .bbai-status-card .bbai-donut-value {
        font-size: 42px;
    }

    #bbai-dashboard-main .bbai-status-metrics,
    #bbai-dashboard-main .bbai-opportunity-scanner__steps {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    #bbai-dashboard-main .bbai-dashboard-hero-actions__links {
        width: 100%;
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__metrics {
        grid-template-columns: 1fr;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #bbai-dashboard-main .bbai-review-prompt-card__body {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    #bbai-dashboard-main .bbai-review-prompt-card__summary {
        width: 100%;
        justify-content: flex-start;
    }

    #bbai-dashboard-main .bbai-review-prompt-card__actions {
        width: 100%;
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-hero-actions__primary-row > .bbai-dashboard-hero__cta {
        width: auto;
        justify-content: center;
    }

    #bbai-dashboard-main .bbai-dashboard-quick-actions__button {
        width: auto;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__cta--secondary {
        width: auto;
        justify-content: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__action-helper {
        text-align: center;
    }

    #bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-buttons {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    #bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-button {
        width: 100%;
    }

    #bbai-modal-overlay.bbai-dashboard-generator-modal .bbai-modal-content {
        padding: 24px;
    }

    #bbai-dashboard-main .bbai-dashboard-stats {
        grid-template-columns: 1fr;
    }

    #bbai-dashboard-main .bbai-status-metrics {
        grid-template-columns: 1fr;
    }

    #bbai-dashboard-main .bbai-opportunity-scanner__step-content {
        grid-template-columns: 1fr;
    }

    #bbai-dashboard-main .bbai-opportunity-scanner__step-button {
        grid-column: 1;
        grid-row: auto;
        margin-top: 4px;
        justify-self: start;
    }
}

@media (max-width: 540px) {
    #bbai-dashboard-main {
        padding: 0 16px 28px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero,
    #bbai-dashboard-main .bbai-dashboard-card,
    #bbai-dashboard-main .bbai-stat-card {
        padding: 16px;
    }

    #bbai-dashboard-main .bbai-dashboard-header__title {
        font-size: 22px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__headline {
        font-size: 18px;
    }

    #bbai-dashboard-main .bbai-status-card .bbai-card__title,
    #bbai-dashboard-main .bbai-upgrade-card .bbai-card__title {
        font-size: 17px;
    }

    #bbai-dashboard-main .bbai-status-summary,
    #bbai-dashboard-main .bbai-status-insight__message,
    #bbai-dashboard-main .bbai-plan-usage__line,
    #bbai-dashboard-main .bbai-plan-usage__reset,
    #bbai-dashboard-main .bbai-plan-usage__remaining,
    #bbai-dashboard-main .bbai-plan-usage__upgrade-copy,
    #bbai-dashboard-main .bbai-opportunity-scanner__summary,
    #bbai-dashboard-main .bbai-opportunity-scanner__step-desc,
    #bbai-dashboard-main .bbai-review-prompt-card__copy,
    #bbai-dashboard-main .bbai-review-prompt-card__note {
        font-size: 13px;
    }

    #bbai-dashboard-main .bbai-status-card .bbai-progress-donut {
        width: 180px;
        height: 180px;
        max-width: 180px;
    }

    #bbai-dashboard-main .bbai-status-card .bbai-progress-donut-value,
    #bbai-dashboard-main .bbai-status-card .bbai-donut-value {
        font-size: 38px;
    }

    #bbai-dashboard-main .bbai-status-metric {
        padding: 16px;
    }

    #bbai-dashboard-main .bbai-status-insight__action,
    #bbai-dashboard-main .bbai-workflow-step__btn {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    #bbai-dashboard-main .bbai-status-insight__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #bbai-dashboard-main .bbai-status-insight__action--button {
        width: 100%;
    }
}

/* Scan complete modal refresh */
.bbai-dashboard-scan-modal__dialog {
    width: min(520px, 100%);
    max-width: 680px;
    padding: 32px 32px 24px;
}

.bbai-dashboard-scan-modal__close:focus-visible {
    border-color: #cbd5e1;
    background: #eff6ff;
    color: #1e293b;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.bbai-dashboard-scan-modal__state {
    gap: 16px;
}

.bbai-dashboard-scan-modal__description {
    max-width: 40ch;
}

.bbai-dashboard-scan-modal__loading,
.bbai-dashboard-scan-modal__result {
    gap: 16px;
    margin-top: 4px;
}

.bbai-dashboard-scan-modal__loading-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bbai-dashboard-scan-modal__loading-progress {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.bbai-dashboard-scan-modal__loading-progress-fill {
    display: block;
    width: 8%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
    transition: width 0.7s ease;
}

.bbai-dashboard-scan-modal__loading-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.bbai-dashboard-scan-modal__loading-stat {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #334155;
}

.bbai-dashboard-scan-modal__loading-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.bbai-dashboard-scan-modal__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bbai-dashboard-scan-modal__metrics[hidden] {
    display: none !important;
}

.bbai-dashboard-scan-modal__metric {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

.bbai-dashboard-scan-modal__metric-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #0f172a;
}

.bbai-dashboard-scan-modal__metric-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.bbai-dashboard-scan-modal__footer {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 24px;
}

.bbai-dashboard-scan-modal__button {
    min-width: 144px;
}

@media (max-width: 640px) {
    .bbai-dashboard-scan-modal__dialog {
        width: min(100%, 680px);
        padding: 24px 20px 20px;
    }

    .bbai-dashboard-scan-modal__description {
        max-width: none;
    }

    .bbai-dashboard-scan-modal__metrics,
    .bbai-dashboard-scan-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .bbai-dashboard-scan-modal__loading-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .bbai-dashboard-scan-modal__button {
        width: 100%;
    }
}

/* Dashboard product refactor overrides */
#bbai-dashboard-main {
    --bbai-ui-ink: #0f172a;
    --bbai-ui-text: #334155;
    --bbai-ui-muted: #64748b;
    --bbai-ui-line: #dbe5ef;
    --bbai-ui-line-strong: #c7d5e3;
    --bbai-ui-surface: #ffffff;
    --bbai-ui-surface-soft: #f8fbff;
    --bbai-ui-surface-subtle: #f1f5f9;
    --bbai-ui-brand: #2563eb;
    --bbai-ui-brand-strong: #1d4ed8;
    --bbai-ui-brand-soft: #dbeafe;
    --bbai-ui-success: #15803d;
    --bbai-ui-success-soft: #f0fdf4;
    --bbai-ui-warning: #b45309;
    --bbai-ui-warning-soft: #fffbeb;
    --bbai-ui-danger: #b91c1c;
    --bbai-ui-danger-soft: #fef2f2;
    --bbai-ui-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

#bbai-dashboard-main [hidden] {
    display: none !important;
}

#bbai-dashboard-main .bbai-dashboard-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 24px;
    min-height: 0;
    padding: 24px clamp(16px, 2.2vw, 32px);
    border: 1px solid rgba(199, 213, 227, 0.78);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #edf5ff 46%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

#bbai-dashboard-main .bbai-dashboard-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#bbai-dashboard-main .bbai-dashboard-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--bbai-ui-line);
    border-radius: 12px;
    background: var(--bbai-ui-surface);
}

#bbai-dashboard-main .bbai-dashboard-alert--warning {
    border-color: rgba(217, 119, 6, 0.26);
    background: linear-gradient(180deg, #fffdf7 0%, #fffbeb 100%);
}

#bbai-dashboard-main .bbai-dashboard-alert--danger {
    border-color: rgba(220, 38, 38, 0.24);
    background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
}

#bbai-dashboard-main .bbai-dashboard-alert__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-alert__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-dashboard-alert__message {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-dashboard-alert__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

#bbai-dashboard-main .bbai-dashboard-alert__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--bbai-ui-ink);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

#bbai-dashboard-main .bbai-dashboard-alert__meta {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero-inner,
#bbai-dashboard-main .bbai-dashboard-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

#bbai-dashboard-main .bbai-dashboard-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 24px 32px;
    align-items: start;
}

#bbai-dashboard-main .bbai-dashboard-hero-copy {
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero__status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero__status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.12);
    color: var(--bbai-ui-warning);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

#bbai-dashboard-main .bbai-dashboard-hero__status-copy {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-dashboard-hero__heading-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bbai-ui-success-soft);
    color: var(--bbai-ui-success);
    box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.12);
}

#bbai-dashboard-main .bbai-dashboard-hero__icon svg {
    width: 22px;
    height: 22px;
}

#bbai-dashboard-main .bbai-dashboard-hero[data-tone="setup"] .bbai-dashboard-hero__icon {
    background: rgba(37, 99, 235, 0.12);
    color: var(--bbai-ui-brand-strong);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

#bbai-dashboard-main .bbai-dashboard-hero[data-tone="attention"] .bbai-dashboard-hero__icon {
    background: rgba(180, 83, 9, 0.12);
    color: var(--bbai-ui-warning);
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.14);
}

#bbai-dashboard-main .bbai-dashboard-hero[data-tone="paused"] .bbai-dashboard-hero__icon {
    background: rgba(185, 28, 28, 0.1);
    color: var(--bbai-ui-danger);
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.14);
}

#bbai-dashboard-main .bbai-dashboard-hero__heading-copy {
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero__headline,
#bbai-dashboard-main .bbai-dashboard-hero-heading {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-dashboard-hero__subtext,
#bbai-dashboard-main .bbai-dashboard-hero-subtext {
    max-width: 72ch;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-dashboard-hero__next-step {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-dashboard-hero__workflow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero__workflow-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--bbai-ui-brand-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#bbai-dashboard-main .bbai-dashboard-hero__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 680px;
    padding-top: 2px;
}

#bbai-dashboard-main .bbai-dashboard-hero__usage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-primary {
    font-weight: 600;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-dashboard-hero__usage-secondary {
    color: var(--bbai-ui-muted);
    font-size: 12px;
    font-weight: 500;
}

#bbai-dashboard-main .bbai-dashboard-hero-progress:not(.bbai-banner__progress) {
    margin-top: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero-progress-track:not(.bbai-banner__progress-track) {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

#bbai-dashboard-main .bbai-dashboard-hero-progress-fill:not(.bbai-banner__progress-fill) {
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: end;
    gap: 8px;
    width: min(100%, 320px);
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero-actions__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--primary,
#bbai-dashboard-main .bbai-dashboard-hero-actions .bbai-btn-primary {
    border: 1px solid transparent;
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
    transform: translateY(0);
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--primary:hover,
#bbai-dashboard-main .bbai-dashboard-hero-actions .bbai-btn-primary:hover {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--secondary {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.74);
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--secondary:hover {
    border-color: rgba(37, 99, 235, 0.18);
    background: #ffffff;
}

#bbai-dashboard-main .bbai-dashboard-hero__cta--tertiary {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bbai-ui-brand-strong);
    font-size: 13px;
    font-weight: 600;
    justify-content: flex-start;
}

#bbai-dashboard-main .bbai-dashboard-hero-actions__helper {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero__cta.is-disabled {
    opacity: 0.58;
    pointer-events: none;
}

#bbai-dashboard-main .bbai-status-card .bbai-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

#bbai-dashboard-main .bbai-status-card__scan-meta,
#bbai-dashboard-main .bbai-status-summary__line--meta {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-status-card__body {
    gap: 16px;
}

#bbai-dashboard-main .bbai-status-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-status-summary__line--primary {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-status-summary__line--secondary {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-status-card .bbai-status-insight {
    margin: 2px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--bbai-ui-line);
    border-radius: 16px;
    background: var(--bbai-ui-surface-soft) !important;
    text-align: left;
}

#bbai-dashboard-main .bbai-status-insight__header {
    justify-content: flex-start;
    margin-bottom: 8px;
}

#bbai-dashboard-main .bbai-status-insight__title {
    font-size: 14px;
}

#bbai-dashboard-main .bbai-status-insight__message,
#bbai-dashboard-main .bbai-status-insight__guidance,
#bbai-dashboard-main .bbai-status-insight__meta {
    margin: 0;
    text-align: left;
}

#bbai-dashboard-main .bbai-status-insight__message {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

#bbai-dashboard-main .bbai-status-insight__guidance {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    opacity: 1;
}

#bbai-dashboard-main .bbai-status-insight__meta {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.88;
}

#bbai-dashboard-main .bbai-status-insight__actions {
    justify-content: flex-start;
    gap: 8px 16px;
    margin-top: 16px;
}

#bbai-dashboard-main .bbai-status-insight__action {
    margin-top: 0;
}

#bbai-dashboard-main .bbai-status-insight__action--button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #10b981 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

#bbai-dashboard-main .bbai-status-insight__action--link {
    color: var(--bbai-ui-brand-strong);
}

#bbai-dashboard-main .bbai-status-insight__action--muted {
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-status-insight--success {
    border-color: #cce7d3;
    background: linear-gradient(180deg, #f6fdf7 0%, #effaf1 100%) !important;
    color: var(--bbai-ui-success);
}

#bbai-dashboard-main .bbai-status-insight--warning {
    border-color: rgba(217, 119, 6, 0.2);
    background: linear-gradient(180deg, #fffdf7 0%, #fffbeb 100%) !important;
    color: var(--bbai-ui-warning);
}

#bbai-dashboard-main .bbai-status-insight--danger {
    border-color: rgba(220, 38, 38, 0.18);
    background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%) !important;
    color: var(--bbai-ui-danger);
}

#bbai-dashboard-main .bbai-plan-usage-card .bbai-card__body {
    gap: 16px;
}

#bbai-dashboard-main .bbai-plan-usage {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) 1px minmax(0, 1fr) 1px minmax(0, 1.08fr);
    gap: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fafc 100%);
}

#bbai-dashboard-main .bbai-plan-usage__tier,
#bbai-dashboard-main .bbai-plan-usage__automation,
#bbai-dashboard-main .bbai-plan-usage__upgrade {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-plan-usage__plan-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

#bbai-dashboard-main .bbai-plan-usage__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-plan-usage__label {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-plan-usage__plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#bbai-dashboard-main .bbai-plan-usage__plan-badge--free {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-plan-usage__plan-badge--growth {
    border-color: rgba(21, 128, 61, 0.18);
    background: rgba(21, 128, 61, 0.08);
    color: var(--bbai-ui-success);
}

#bbai-dashboard-main .bbai-plan-usage__line {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-plan-usage__remaining {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--bbai-ui-brand-strong);
}

#bbai-dashboard-main .bbai-plan-usage__reset {
    font-size: 12px;
    line-height: 1.5;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-plan-usage__progress {
    height: 10px;
    margin-top: auto;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
}

#bbai-dashboard-main .bbai-plan-usage__progress-fill {
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
}

#bbai-dashboard-main .bbai-plan-usage__divider {
    width: 1px;
    margin: 0;
    border: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(148, 163, 184, 0.3) 20%, rgba(148, 163, 184, 0.3) 80%, transparent 100%);
}

#bbai-dashboard-main .bbai-plan-usage__automation {
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#bbai-dashboard-main .bbai-plan-usage__section-title {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-plan-usage__automation-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-plan-usage__automation-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-plan-usage__automation-toggle-wrap {
    display: flex;
    justify-content: flex-start;
}

#bbai-dashboard-main .bbai-plan-usage__automation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #ffffff;
}

#bbai-dashboard-main .bbai-plan-usage__automation-track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #dbe4ee;
}

#bbai-dashboard-main .bbai-plan-usage__automation-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease;
}

#bbai-dashboard-main .bbai-plan-usage__automation-toggle.is-active .bbai-plan-usage__automation-track {
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 100%);
}

#bbai-dashboard-main .bbai-plan-usage__automation-toggle.is-active .bbai-plan-usage__automation-thumb {
    transform: translateX(18px);
}

#bbai-dashboard-main .bbai-plan-usage__automation-status {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-plan-usage__upgrade {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__section-title,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__price,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__growth-copy,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__comparison,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__value-line,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-plan-usage__compare-link,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-upgrade-benefits__title,
#bbai-dashboard-main .bbai-plan-usage__upgrade .bbai-upgrade-benefits__description {
    color: #e2e8f0;
}

#bbai-dashboard-main .bbai-plan-usage__price {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
}

#bbai-dashboard-main .bbai-plan-usage__growth-copy {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: #ffffff;
}

#bbai-dashboard-main .bbai-plan-usage__comparison {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: #cbd5e1;
}

#bbai-dashboard-main .bbai-plan-usage__progress--growth {
    background: rgba(148, 163, 184, 0.18);
    border: 0;
}

#bbai-dashboard-main .bbai-plan-usage__progress-fill--growth {
    background: linear-gradient(90deg, #38bdf8 0%, #22c55e 100%);
}

#bbai-dashboard-main .bbai-plan-usage__progress-indicator {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22);
}

#bbai-dashboard-main .bbai-upgrade-benefits {
    display: grid;
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

#bbai-dashboard-main .bbai-upgrade-benefits__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

#bbai-dashboard-main .bbai-upgrade-benefits__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 15px;
}

#bbai-dashboard-main .bbai-upgrade-benefits__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#bbai-dashboard-main .bbai-upgrade-benefits__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

#bbai-dashboard-main .bbai-upgrade-benefits__description {
    font-size: 12px;
    line-height: 1.55;
    color: #cbd5e1;
}

#bbai-dashboard-main .bbai-plan-usage__value {
    padding-top: 2px;
}

#bbai-dashboard-main .bbai-plan-usage__value-line {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

#bbai-dashboard-main .bbai-plan-usage__value-line strong {
    color: #ffffff;
}

#bbai-dashboard-main .bbai-plan-usage__actions {
    gap: 8px;
    margin-top: auto;
}

#bbai-dashboard-main .bbai-plan-usage__cta {
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: var(--bbai-ui-ink) !important;
    box-shadow: none !important;
}

#bbai-dashboard-main .bbai-plan-usage__compare-link {
    font-size: 13px;
    font-weight: 600;
    color: #dbeafe;
}

#bbai-dashboard-main .bbai-automation-card {
    border-color: #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--bbai-ui-shadow);
}

#bbai-dashboard-main .bbai-automation-card--premium {
    border-color: rgba(21, 128, 61, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f6fdf7 100%);
}

#bbai-dashboard-main .bbai-automation-card__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-upgrade-card__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-automation-card__toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    background: #ffffff;
}

#bbai-dashboard-main .bbai-automation-card__toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-automation-card__toggle-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-automation-card__toggle-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-automation-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #f8fafc;
}

#bbai-dashboard-main .bbai-automation-card__toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #dbe4ee;
}

#bbai-dashboard-main .bbai-automation-card__toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease;
}

#bbai-dashboard-main .bbai-automation-card__toggle.is-active .bbai-automation-card__toggle-track {
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 100%);
}

#bbai-dashboard-main .bbai-automation-card__toggle.is-active .bbai-automation-card__toggle-thumb {
    transform: translateX(20px);
}

#bbai-dashboard-main .bbai-automation-card__toggle-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-automation-card__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bbai-dashboard-main .bbai-automation-card__list li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-automation-card__list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%);
}

#bbai-dashboard-main .bbai-upgrade-value {
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

#bbai-dashboard-main .bbai-upgrade-value__line,
#bbai-dashboard-main .bbai-upgrade-value__support {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-upgrade-value__line strong {
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-upgrade-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

#bbai-dashboard-main .bbai-upgrade-cta {
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
}

#bbai-dashboard-main .bbai-workflow-card__body {
    justify-content: center;
}

#bbai-dashboard-main .bbai-workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-workflow-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 0;
}

#bbai-dashboard-main .bbai-workflow-step + .bbai-workflow-step {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

#bbai-dashboard-main .bbai-workflow-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    color: var(--bbai-ui-brand-strong);
}

#bbai-dashboard-main .bbai-workflow-step__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-workflow-step__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-workflow-step__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-workflow-step__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
}

#bbai-dashboard-main .bbai-dashboard-stats-wrap {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

#bbai-dashboard-main .bbai-dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#bbai-dashboard-main .bbai-stat-card,
#bbai-dashboard-main .bbai-metric-card {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    text-align: left;
}

#bbai-dashboard-main .bbai-stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    color: var(--bbai-ui-brand-strong);
}

#bbai-dashboard-main .bbai-stat-card__value {
    margin: 0;
}

#bbai-dashboard-main .bbai-accessibility-impact-card {
    border-color: rgba(22, 163, 74, 0.22);
    background: linear-gradient(180deg, #fcfffd 0%, #f2fbf4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Logged-in insight cards: override generic stat-card treatment loaded above. */
#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card {
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    min-height: 260px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045), 0 18px 42px rgba(15, 23, 42, 0.06);
    text-align: left;
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e 0%, rgba(34, 197, 94, 0.12) 100%);
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card.secondary::before {
    background: linear-gradient(90deg, #3b82f6 0%, rgba(59, 130, 246, 0.12) 100%);
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card.tertiary::before {
    background: linear-gradient(90deg, #7c3aed 0%, rgba(124, 58, 237, 0.12) 100%);
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card.primary {
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card.secondary {
    background:
        radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card.tertiary {
    background:
        radial-gradient(circle at 18% 8%, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

#bbai-dashboard-main .bbai-li-insight-card.bbai-stat-card:hover {
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 24px 52px rgba(15, 23, 42, 0.08);
}

#bbai-dashboard-main .bbai-li-insight-card .bbai-stat-card-bottom {
    margin-top: auto;
}

#bbai-dashboard-main .bbai-accessibility-impact-card .bbai-card__header {
    margin-bottom: 4px;
}

#bbai-dashboard-main .bbai-accessibility-impact-card .bbai-card__body {
    padding-top: 0;
}

#bbai-dashboard-main .bbai-accessibility-impact__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #15803d;
}

#bbai-dashboard-main .bbai-accessibility-impact__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#bbai-dashboard-main .bbai-accessibility-impact__summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(100%, 560px);
    margin: 0 auto;
    text-align: center;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-card {
    position: relative;
    width: min(100%, 360px);
    padding: 16px 24px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 246, 0.96) 100%);
    box-shadow: 0 16px 36px rgba(22, 101, 52, 0.08);
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #15803d;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-score {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    font-size: 24px;
    line-height: 1;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-score strong {
    font-size: clamp(42px, 6vw, 54px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-score span {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 600;
    color: #15803d;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-divider {
    width: 100%;
    height: 1px;
    margin: 16px 0 12px;
    background: linear-gradient(90deg, transparent 0%, rgba(21, 128, 61, 0.24) 16%, rgba(21, 128, 61, 0.24) 84%, transparent 100%);
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    color: #14532d;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-metric-label {
    font-size: 13px;
    font-weight: 500;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-metric strong {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-accessibility-impact__badge-powered {
    margin: 16px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
}

#bbai-dashboard-main .bbai-accessibility-impact__stats {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: #166534;
}

#bbai-dashboard-main .bbai-accessibility-impact__value {
    max-width: 48ch;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-accessibility-impact__primary {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2px;
}

#bbai-dashboard-main .bbai-accessibility-impact__action--primary {
    min-width: 164px;
}

#bbai-dashboard-main .bbai-accessibility-impact__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 0;
}

#bbai-dashboard-main .bbai-accessibility-impact__action {
    justify-content: center;
}

#bbai-dashboard-main .bbai-accessibility-impact__action--secondary {
    position: relative;
    margin-left: 16px;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

#bbai-dashboard-main .bbai-accessibility-impact__action--secondary:first-child {
    margin-left: 0;
    padding-left: 0;
}

#bbai-dashboard-main .bbai-accessibility-impact__action--secondary::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    color: rgba(22, 101, 52, 0.46);
    transform: translateY(-50%);
}

#bbai-dashboard-main .bbai-accessibility-impact__action--secondary:first-child::before {
    content: none;
}

#bbai-dashboard-main .bbai-accessibility-impact__action--secondary:hover,
#bbai-dashboard-main .bbai-accessibility-impact__action--secondary:focus-visible {
    color: #14532d;
    text-decoration: underline;
}

#bbai-dashboard-main .bbai-accessibility-impact__preview {
    width: min(100%, 460px);
    padding: 16px;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#bbai-dashboard-main .bbai-accessibility-impact__badge {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

#bbai-dashboard-main .bbai-review-prompt-card__body {
    gap: 16px 24px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: none;
}

#bbai-dashboard-main .bbai-review-prompt-card__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-review-prompt-card__copy {
    font-size: 12px;
    line-height: 1.55;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-review-prompt-card__stars {
    opacity: 0.78;
}

#bbai-dashboard-main .bbai-review-prompt-card__cta {
    min-height: 38px;
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--bbai-ui-brand-strong);
    box-shadow: none;
}

#bbai-dashboard-main .bbai-review-prompt-card__cta:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

#bbai-dashboard-main .bbai-dashboard-alert__cta:focus-visible,
#bbai-dashboard-main .bbai-dashboard-hero__cta:focus-visible,
#bbai-dashboard-main .bbai-status-insight__action:focus-visible,
#bbai-dashboard-main .bbai-plan-usage__cta:focus-visible,
#bbai-dashboard-main .bbai-plan-usage__compare-link:focus-visible,
#bbai-dashboard-main .bbai-upgrade-cta:focus-visible,
#bbai-dashboard-main .bbai-upgrade-compare-link:focus-visible,
#bbai-dashboard-main .bbai-workflow-step__btn:focus-visible,
#bbai-dashboard-main .bbai-accessibility-impact__action:focus-visible,
#bbai-dashboard-main .bbai-review-prompt-card__cta:focus-visible {
    outline: 2px solid var(--bbai-ui-brand);
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    #bbai-dashboard-main .bbai-dashboard-row--1,
    #bbai-dashboard-main .bbai-dashboard-row--2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #bbai-dashboard-main .bbai-plan-usage {
        grid-template-columns: minmax(0, 1fr);
    }

    #bbai-dashboard-main .bbai-plan-usage__divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.28) 16%, rgba(148, 163, 184, 0.28) 84%, transparent 100%);
    }
}

@media (max-width: 960px) {
    #bbai-dashboard-main .bbai-dashboard-hero__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #bbai-dashboard-main .bbai-dashboard-hero-actions {
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    #bbai-dashboard-main .bbai-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main .bbai-dashboard-hero,
    #bbai-dashboard-main .bbai-dashboard-card,
    #bbai-dashboard-main .bbai-stat-card {
        padding: 24px;
    }

    #bbai-dashboard-main .bbai-dashboard-alert {
        flex-direction: column;
    }

    #bbai-dashboard-main .bbai-dashboard-alert__actions,
    #bbai-dashboard-main .bbai-upgrade-bottom,
    #bbai-dashboard-main .bbai-review-prompt-card__actions {
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-automation-card__toggle-row,
    #bbai-dashboard-main .bbai-status-card .bbai-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__heading-row {
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__workflow {
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    #bbai-dashboard-main .bbai-dashboard-hero__headline,
    #bbai-dashboard-main .bbai-dashboard-hero-heading {
        font-size: 24px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero-actions {
        width: 100%;
    }

    #bbai-dashboard-main .bbai-dashboard-hero__cta--primary,
    #bbai-dashboard-main .bbai-dashboard-hero__cta--secondary,
    #bbai-dashboard-main .bbai-workflow-step__btn {
        width: 100%;
    }

    #bbai-dashboard-main .bbai-dashboard-hero-actions__helper {
        max-width: none;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__summary {
        width: 100%;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__badge-card,
    #bbai-dashboard-main .bbai-accessibility-impact__preview,
    #bbai-dashboard-main .bbai-accessibility-impact__action--primary {
        width: 100%;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__badge-card {
        padding: 16px;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__badge-metric {
        gap: 8px;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__actions {
        row-gap: 8px;
    }

    #bbai-dashboard-main .bbai-accessibility-impact__action--secondary {
        margin-left: 8px;
        padding-left: 8px;
    }
}

#bbai-dashboard-main .bbai-dashboard-row--2.bbai-guided-workflow-section {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
}

#bbai-dashboard-main .bbai-guided-workflow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
}

#bbai-dashboard-main .bbai-guided-workflow__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-hero-full {
    position: relative;
    width: auto;
    margin: 0 -32px 26px;
    padding: 24px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#bbai-dashboard-main .bbai-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

#bbai-dashboard-main .bbai-dashboard-hero.bbai-hero {
    margin: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-inner {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

#bbai-dashboard-main .bbai-hero .bbai-hero-content,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#bbai-dashboard-main .bbai-hero .bbai-hero-left,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__heading-row {
    align-items: flex-start;
    gap: 16px;
    margin: 0;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(37, 99, 235, 0.08));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__icon svg {
    width: 20px;
    height: 20px;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__heading-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

#bbai-dashboard-main .bbai-hero .bbai-workflow,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__workflow {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #9ca3af;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__headline,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-heading {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__subtext,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-subtext {
    max-width: 72ch;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__next-step {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #111827;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__usage-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 680px;
    padding-top: 4px;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__usage {
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__usage-primary {
    font-weight: 600;
    color: #111827;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__usage-secondary {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-progress:not(.bbai-banner__progress) {
    margin-top: 8px;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-progress-track:not(.bbai-banner__progress-track) {
    height: 6px;
    background: rgba(148, 163, 184, 0.18);
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-progress-fill:not(.bbai-banner__progress-fill) {
    background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__note {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

#bbai-dashboard-main .bbai-hero .bbai-hero-right,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-actions {
    display: flex;
    flex: 0 0 min(100%, 320px);
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: min(100%, 320px);
    min-width: 0;
}

#bbai-dashboard-main .bbai-hero .bbai-hero-secondary-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-actions__item {
    width: 100%;
    gap: 4px;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta--primary,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-actions .bbai-btn-primary {
    border: 1px solid transparent;
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta--primary:hover,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-actions .bbai-btn-primary:hover {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta--secondary,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta--tertiary,
#bbai-dashboard-main .bbai-hero .bbai-btn-secondary {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6 !important;
    color: #111827 !important;
    box-shadow: none !important;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta--secondary:hover,
#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta--tertiary:hover,
#bbai-dashboard-main .bbai-hero .bbai-btn-secondary:hover {
    transform: translateY(-1px);
    border-color: #d1d5db;
    background: #ffffff !important;
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__cta:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-actions__helper {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

@media (max-width: 900px) {
    #bbai-dashboard-main .bbai-hero .bbai-hero-content,
    #bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__layout {
        flex-direction: column;
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-hero .bbai-hero-right,
    #bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-actions {
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main .bbai-hero-full {
        margin-right: -24px;
        margin-left: -24px;
        padding: 24px 0 16px;
    }

    #bbai-dashboard-main .bbai-hero-inner {
        padding: 0 24px;
    }

    #bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__headline,
    #bbai-dashboard-main .bbai-hero .bbai-dashboard-hero-heading {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    #bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__heading-row {
        gap: 8px;
    }

    #bbai-dashboard-main .bbai-hero .bbai-dashboard-hero__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

#bbai-dashboard-main .bbai-guided-workflow__copy {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-guided-workflow__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

#bbai-dashboard-main .bbai-actions-card,
#bbai-dashboard-main .bbai-automation-card {
    min-height: 0;
}

#bbai-dashboard-main .bbai-actions-card .bbai-card__header,
#bbai-dashboard-main .bbai-automation-card .bbai-card__header {
    margin-bottom: 16px;
}

#bbai-dashboard-main .bbai-workflow-card__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-workflow-card .bbai-card__title,
#bbai-dashboard-main .bbai-automation-card .bbai-card__title {
    margin-bottom: 4px;
}

#bbai-dashboard-main .bbai-workflow-card__desc,
#bbai-dashboard-main .bbai-automation-card__lead {
    max-width: 34rem;
}

#bbai-dashboard-main .bbai-workflow-steps {
    gap: 0;
}

#bbai-dashboard-main .bbai-workflow-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
}

#bbai-dashboard-main .bbai-workflow-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

#bbai-dashboard-main .bbai-workflow-step__content {
    gap: 4px;
}

#bbai-dashboard-main .bbai-workflow-step__desc {
    max-width: 28rem;
}

#bbai-dashboard-main .bbai-automation-card__status-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

#bbai-dashboard-main .bbai-automation-card__status-row--locked {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-automation-card__status-row--ready {
    border-color: rgba(21, 128, 61, 0.16);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.88) 0%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-automation-card__status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
}

#bbai-dashboard-main .bbai-automation-card__status-row--locked .bbai-automation-card__status-indicator {
    background: #f1f5f9;
    color: #475569;
}

#bbai-dashboard-main .bbai-automation-card__status-row--ready .bbai-automation-card__status-indicator {
    background: #ecfdf3;
    color: #15803d;
}

#bbai-dashboard-main .bbai-automation-card__status-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-automation-card__status-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#bbai-dashboard-main .bbai-automation-card__status-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bbai-ui-ink);
}

#bbai-dashboard-main .bbai-automation-card__status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

#bbai-dashboard-main .bbai-automation-card__status-badge--locked {
    border: 1px solid #d7dee7;
    background: #f8fafc;
    color: #334155;
}

#bbai-dashboard-main .bbai-automation-card__status-badge--ready {
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
    color: #166534;
}

#bbai-dashboard-main .bbai-automation-card__status-helper {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bbai-ui-text);
}

#bbai-dashboard-main .bbai-automation-card__list {
    gap: 8px;
}

#bbai-dashboard-main .bbai-automation-card__list li {
    padding-left: 16px;
}

#bbai-dashboard-main .bbai-automation-card__list li::before {
    top: 7px;
    width: 7px;
    height: 7px;
}

#bbai-dashboard-main .bbai-upgrade-value {
    padding: 8px 16px;
}

#bbai-dashboard-main .bbai-upgrade-bottom {
    gap: 8px;
    padding-top: 16px;
}

#bbai-dashboard-main .bbai-upgrade-card .bbai-upgrade-compare-link,
#bbai-dashboard-main .bbai-upgrade-card .bbai-compare-plans {
    font-weight: 600;
    color: #4b5563;
}

@media (max-width: 1180px) {
    #bbai-dashboard-main .bbai-guided-workflow__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main .bbai-guided-workflow {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #bbai-dashboard-main .bbai-automation-card__status-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    #bbai-dashboard-main .bbai-upgrade-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Command center dashboard */
#bbai-dashboard-main .bbai-hero-full,
.bbai-command-hero-host.bbai-hero-full {
    width: 100%;
    margin: 0 0 var(--bbai-command-banner-gap, 24px);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

#bbai-dashboard-main .bbai-hero-inner,
.bbai-command-hero-host > .bbai-hero-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) {
    margin: 0;
    padding: 32px;
    border: 1px solid #dce7f5;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(145deg, #fbfdff 0%, #f3f8ff 52%, #ffffff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="healthy"] {
    border-color: #d7ebe0;
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.09), transparent 34%),
        linear-gradient(145deg, #fcfffd 0%, #f3fbf6 52%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] {
    border-color: #f7dfbf;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 34%),
        linear-gradient(145deg, #fffdf9 0%, #fff7ed 52%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] {
    border-color: #f1d3d3;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.11), transparent 34%),
        linear-gradient(145deg, #fffdfd 0%, #fff4f4 52%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 360px);
    gap: 24px;
    align-items: start;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__heading-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="healthy"] .bbai-dashboard-hero__icon {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] .bbai-dashboard-hero__icon {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] .bbai-dashboard-hero__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__icon svg {
    width: 22px;
    height: 22px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
    margin: 0;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__subtext,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__next-step,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__note {
    max-width: 64ch;
    margin: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__subtext {
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__next-step {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__note {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-pill,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-primary,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-pill {
    font-weight: 600;
    color: #1e3a8a;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-primary {
    font-weight: 600;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-secondary {
    color: #475569;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: #10b981;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] .bbai-dashboard-hero-progress-fill {
    background: linear-gradient(90deg, #c97a00 0%, #d48806 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] .bbai-dashboard-hero-progress-fill {
    background: linear-gradient(90deg, #5b6ea8 0%, #6a6fd1 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
#bbai-dashboard-main .bbai-command-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
#bbai-dashboard-main .bbai-command-action--primary {
    padding: 0 24px;
    border: 1px solid transparent;
    background: #10b981;
    color: #ffffff;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
    transform: translateY(0);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:hover,
#bbai-dashboard-main .bbai-command-action--primary:hover {
    transform: translateY(-1px);
    background: var(--bbai-cta-primary-bg, #10b981);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:active,
#bbai-dashboard-main .bbai-command-action--primary:active {
    transform: translateY(0) scale(0.98);
    background: var(--bbai-cta-primary-bg, #10b981);
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
    transition-duration: 0.1s;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
#bbai-dashboard-main .bbai-command-action--ghost,
#bbai-dashboard-main .bbai-command-action--secondary,
#bbai-dashboard-main .bbai-command-action--tertiary {
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1f2937;
    box-shadow: none;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link:hover,
#bbai-dashboard-main .bbai-command-action--ghost:hover,
#bbai-dashboard-main .bbai-command-action--secondary:hover,
#bbai-dashboard-main .bbai-command-action--tertiary:hover {
    border-color: #c4d3e8;
    background: #f8fbff;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link:focus-visible,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta:not(.bbai-dashboard-hero__cta--primary):focus-visible,
#bbai-dashboard-main .bbai-command-action:not(.bbai-command-action--primary):focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.2);
}

#bbai-dashboard-main .bbai-dashboard-command {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-dashboard-command__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* State-driven layout: status card spans full width and becomes secondary when no issues */
#bbai-dashboard-main[data-bbai-ui-state="NOT_SCANNED"] .bbai-command-card--status .bbai-command-status__summary,
#bbai-dashboard-main[data-bbai-ui-state="NOT_SCANNED"] .bbai-command-card--status [data-bbai-status-summary-detail] {
    display: none;
}

#bbai-dashboard-main[data-bbai-ui-state="COMPLETE"] .bbai-command-card--plan {
    opacity: 0.85;
}

/* LIMIT_REACHED: plan card gets visual emphasis */
#bbai-dashboard-main[data-bbai-ui-state="LIMIT_REACHED"] .bbai-command-card--plan {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15), 0 4px 12px rgba(245, 158, 11, 0.08);
}

#bbai-dashboard-main[data-bbai-ui-state="LIMIT_REACHED"] .bbai-command-card--plan.bbai-command-card--limit-active {
    order: -1;
    grid-column: 1 / -1;
}

/* SCANNING state: pulse the donut */
#bbai-dashboard-main[data-bbai-ui-state="SCANNING"] [data-bbai-status-donut] {
    animation: bbai-donut-pulse 1.8s ease-in-out infinite;
}

@keyframes bbai-donut-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* FIXING state: subtle pulse on status value */
#bbai-dashboard-main[data-bbai-ui-state="FIXING"] [data-bbai-status-coverage-value] {
    animation: bbai-value-pulse 1.2s ease-in-out infinite;
}

@keyframes bbai-value-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#bbai-dashboard-main .bbai-command-card {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}

#bbai-dashboard-main .bbai-command-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

#bbai-dashboard-main .bbai-command-card__eyebrow,
#bbai-dashboard-main .bbai-dashboard-alert-card__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

#bbai-dashboard-main .bbai-command-card__title,
#bbai-dashboard-main .bbai-dashboard-alert-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: -0.01em;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-command-card__meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    white-space: nowrap;
}

#bbai-dashboard-main .bbai-command-status {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-status__overview {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

#bbai-dashboard-main .bbai-command-donut {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: conic-gradient(#e2e8f0 0deg 360deg);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

#bbai-dashboard-main .bbai-command-donut__inner {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

#bbai-dashboard-main .bbai-command-status__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-command-status__label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

#bbai-dashboard-main .bbai-command-status__value {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-command-meter {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

#bbai-dashboard-main .bbai-command-meter__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

#bbai-dashboard-main .bbai-command-meter__fill--plan {
    background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
}

#bbai-dashboard-main .bbai-command-meter--growth {
    height: 4px;
    background: #e5e7eb;
}

#bbai-dashboard-main .bbai-command-meter__fill--growth {
    background: linear-gradient(90deg, #94a3b8 0%, #60a5fa 100%);
}

#bbai-dashboard-main .bbai-command-status__summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-command-breakdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

#bbai-dashboard-main .bbai-command-breakdown:last-child {
    border-bottom: 0;
}

#bbai-dashboard-main .bbai-command-breakdown__label,
#bbai-dashboard-main .bbai-command-plan__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
}

#bbai-dashboard-main .bbai-command-breakdown__value,
#bbai-dashboard-main .bbai-command-plan__value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-command-status__summary-line,
#bbai-dashboard-main .bbai-command-status__detail {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

#bbai-dashboard-main .bbai-command-status__summary-line {
    font-weight: 600;
    color: #0f172a;
}

#bbai-dashboard-main .bbai-command-status__detail {
    color: #475569;
}

#bbai-dashboard-main .bbai-command-plan {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-plan__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-plan__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

#bbai-dashboard-main .bbai-command-plan__comparison {
    margin: -2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

#bbai-dashboard-main .bbai-dashboard-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border: 1px solid #f3dcc0;
    border-radius: 12px;
    background: linear-gradient(145deg, #fffdfa 0%, #fff6eb 100%);
}

#bbai-dashboard-main .bbai-dashboard-alert-card--danger {
    border-color: #f3cdcd;
    background: linear-gradient(145deg, #fffdfd 0%, #fff1f1 100%);
}

#bbai-dashboard-main .bbai-dashboard-alert-card__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-alert-card__message {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #475569;
}

#bbai-dashboard-main .bbai-dashboard-alert-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

#bbai-dashboard-main .bbai-dashboard-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__layout,
    #bbai-dashboard-main .bbai-dashboard-command__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions,
    #bbai-dashboard-main .bbai-dashboard-alert-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) {
        padding: 24px 16px;
        border-radius: 12px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
        font-size: 26px;
    }

    #bbai-dashboard-main .bbai-command-card {
        padding: 24px;
    }

    #bbai-dashboard-main .bbai-command-status__overview {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 16px;
    }

    #bbai-dashboard-main .bbai-dashboard-alert-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    #bbai-dashboard-main .bbai-command-status__overview {
        grid-template-columns: minmax(0, 1fr);
    }

    #bbai-dashboard-main .bbai-command-donut {
        width: 84px;
        height: 84px;
        margin: 0 auto;
    }

    #bbai-dashboard-main .bbai-command-plan__row {
        flex-direction: column;
        align-items: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__secondary-actions,
    #bbai-dashboard-main .bbai-command-plan__actions,
    #bbai-dashboard-main .bbai-dashboard-alert-card__actions {
        width: 100%;
        flex-direction: column;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
    #bbai-dashboard-main .bbai-command-action {
        width: 100%;
    }
}

/* Simplified dashboard polish */
#bbai-dashboard-main,
.bbai-command-hero-host {
    --bbai-surface: #ffffff;
    --bbai-surface-soft: #f8fafc;
    --bbai-surface-warm: #fffaf3;
    --bbai-surface-warm-soft: #fff7ed;
    --bbai-border-soft: #f1f5f9;
    --bbai-border-muted: #e5e7eb;
    --bbai-divider: #f1f5f9;
    --bbai-text-strong: #0f172a;
    --bbai-text-body: #334155;
    --bbai-text-muted: #64748b;
    /* Brand primary = action green (not blue) — drives --bbai-admin-color-primary via foundation */
    --bbai-primary: #10b981;
    --bbai-primary-strong: #047857;
    --bbai-success: #16a34a;
    --bbai-warning: #c97a00;
    --bbai-warning-soft: #fff7ed;
    --bbai-danger: #dc2626;
    --bbai-danger-soft: #fff7f7;
    --bbai-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --bbai-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06);
    --bbai-command-banner-gap: var(--section-spacing, var(--bbai-space-6));
    --bbai-command-banner-padding-block: var(--bbai-rhythm-banner-padding-block, var(--bbai-space-6));
    --bbai-command-banner-padding-inline: var(--bbai-rhythm-banner-padding-inline, var(--bbai-space-6));
    --bbai-command-banner-radius: 16px;
    --bbai-command-card-padding: var(--bbai-rhythm-card-padding, var(--bbai-space-6));
    --bbai-command-group-gap: var(--card-gap, var(--bbai-space-4));
    --bbai-command-row-padding: var(--bbai-rhythm-row-padding-y, var(--bbai-space-3));
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner).bbai-dashboard-section {
    margin-bottom: 0;
}

#bbai-dashboard-main .bbai-dashboard-command {
    gap: var(--section-spacing, 24px);
}

#bbai-dashboard-main .bbai-dashboard-command__grid {
    gap: var(--card-gap, 16px);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) {
    width: 100%;
    margin: 0;
    padding: var(--bbai-command-banner-padding-block) var(--bbai-command-banner-padding-inline);
    border: 1px solid #e9eef5;
    border-radius: var(--bbai-command-banner-radius);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 36%),
        linear-gradient(140deg, #fcfdff 0%, #f7faff 56%, #ffffff 100%);
    box-shadow: var(--bbai-shadow-sm);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="healthy"] {
    border-color: #deeee5;
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.08), transparent 34%),
        linear-gradient(135deg, #fcfffd 0%, #f4fbf7 54%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] {
    border-color: #f0dec9;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 36%),
        linear-gradient(140deg, #fffdf9 0%, #fff8f0 58%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] {
    border-color: #f1d7d4;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 34%),
        linear-gradient(135deg, #fffdfd 0%, #fff4f3 54%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: var(--card-gap, 16px) 0;
    align-items: start;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-copy {
    gap: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__heading-row {
    gap: 16px;
    align-items: flex-start;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--bbai-primary-strong);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="healthy"] .bbai-dashboard-hero__icon {
    color: #15803d;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] .bbai-dashboard-hero__icon {
    color: #c2410c;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] .bbai-dashboard-hero__icon {
    color: #b91c1c;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__subtext,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__next-step,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__note {
    max-width: 62ch;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__subtext {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__next-step {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-block {
    gap: 8px;
    margin-top: 16px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage {
    gap: 8px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-pill {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    font-weight: 600;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-primary,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-secondary {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-primary {
    color: var(--bbai-text-strong);
    font-weight: 600;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-secondary {
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-progress-track {
    height: 6px;
    background: rgba(148, 163, 184, 0.18);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-progress-fill {
    background-color: #10b981;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="healthy"] .bbai-dashboard-hero-progress-fill {
    background-color: #16a34a;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] {
    border-color: #cfe9d8;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 36%),
        linear-gradient(145deg, #f7fff9 0%, #effaf2 55%, #ffffff 100%);
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(34, 197, 94, 0.08) inset;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero__next-step {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 12px 4px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero__icon {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

#bbai-dashboard-main .bbai-dashboard-hero__icon--draw svg path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: bbai-icon-draw 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.15s forwards;
}

@keyframes bbai-icon-draw {
    to {
        stroke-dashoffset: 0;
    }
}

#bbai-dashboard-main .bbai-dashboard-hero--celebrate {
    animation: bbai-success-glow-pulse 0.6s ease-out both;
}

@keyframes bbai-success-glow-pulse {
    0% {
        box-shadow:
            0 16px 36px rgba(15, 23, 42, 0.06),
            0 0 0 0 rgba(34, 197, 94, 0.14);
    }
    55% {
        box-shadow:
            0 16px 36px rgba(15, 23, 42, 0.08),
            0 0 0 8px rgba(34, 197, 94, 0.06);
    }
    100% {
        box-shadow:
            0 16px 36px rgba(15, 23, 42, 0.06),
            0 0 0 0 rgba(34, 197, 94, 0);
    }
}

#bbai-dashboard-main .bbai-dashboard-hero__loop {
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

#bbai-dashboard-main .bbai-dashboard-hero__loop-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--bbai-ui-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero__loop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero__loop-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.88);
    color: var(--bbai-ui-ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero__loop-link:hover {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(255, 255, 255, 1);
}

#bbai-dashboard-main .bbai-dashboard-hero__loop-tension {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bbai-text-muted, #94a3b8);
    font-style: italic;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] .bbai-dashboard-hero-progress-fill {
    background: linear-gradient(90deg, #c97a00 0%, #d48806 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] .bbai-dashboard-hero-progress-fill {
    background: linear-gradient(90deg, #5b6ea8 0%, #6a6fd1 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bbai-text-muted);
    opacity: 0.78;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions {
    gap: 8px;
    width: min(100%, 360px);
    max-width: none;
    margin-left: auto;
    margin-top: var(--bbai-cta-group-margin-top, 16px);
    justify-self: stretch;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions__item {
    display: flex;
    width: 100%;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
#bbai-dashboard-main .bbai-command-action {
    min-height: var(--bbai-cta-primary-min-height, 40px);
    border-radius: var(--bbai-cta-primary-radius, 8px);
    font-size: var(--bbai-cta-primary-font-size, 14px);
    font-weight: var(--bbai-cta-primary-font-weight, 500);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary {
    width: 100%;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
#bbai-dashboard-main .bbai-command-action--primary {
    padding: 0 var(--bbai-cta-primary-padding-x, 16px);
    border: 1px solid transparent;
    background: var(--bbai-cta-primary-bg, #10b981);
    color: #ffffff;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
    transform: translateY(0);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary {
    width: 100%;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary,
#bbai-dashboard-main .bbai-command-action--ghost,
#bbai-dashboard-main .bbai-command-action--secondary {
    justify-content: center;
    padding: 0 var(--bbai-cta-primary-padding-x, 16px);
    border: 1px solid rgba(148, 163, 184, 0.11);
    background: #fafbfc;
    color: #7b8898;
    font-weight: 400;
    box-shadow: none;
    transform: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--tertiary,
#bbai-dashboard-main .bbai-command-action--tertiary {
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bbai-text-muted);
    box-shadow: none;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--tertiary {
    justify-content: center;
    width: auto;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:hover,
#bbai-dashboard-main .bbai-command-action--primary:hover {
    border-color: transparent;
    background: var(--bbai-cta-primary-bg, #10b981) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--bbai-cta-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:focus-visible,
#bbai-dashboard-main .bbai-command-action--primary:focus-visible {
    outline: none !important;
    background: var(--bbai-cta-primary-bg, #10b981) !important;
    color: #ffffff !important;
    transform: translateY(0) !important;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px rgba(16, 185, 129, 0.35) !important;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:active,
#bbai-dashboard-main .bbai-command-action--primary:active {
    border-color: transparent !important;
    background: var(--bbai-cta-primary-bg, #10b981) !important;
    color: #ffffff !important;
    transform: translateY(0) scale(0.98) !important;
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)) !important;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary:hover,
#bbai-dashboard-main .bbai-command-action--ghost:hover,
#bbai-dashboard-main .bbai-command-action--secondary:hover {
    border-color: rgba(148, 163, 184, 0.26);
    background: #f4f6f8;
    color: #606b78;
    box-shadow: none;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--tertiary:hover,
#bbai-dashboard-main .bbai-command-action--tertiary:hover {
    color: var(--bbai-primary-strong);
    background: transparent;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link:focus-visible,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta:not(.bbai-dashboard-hero__cta--primary):focus-visible,
#bbai-dashboard-main .bbai-command-action:not(.bbai-command-action--primary):focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.2);
}

#bbai-dashboard-main .bbai-command-card {
    padding: var(--bbai-command-card-padding);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: var(--bbai-surface);
    box-shadow: var(--bbai-shadow-sm);
}

#bbai-dashboard-main .bbai-command-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

#bbai-dashboard-main .bbai-command-card__eyebrow,
#bbai-dashboard-main .bbai-dashboard-alert-card__eyebrow {
    margin-bottom: 4px;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-command-card__title,
#bbai-dashboard-main .bbai-dashboard-alert-card__title {
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-card__meta {
    margin: 0;
    color: var(--bbai-text-muted);
    text-align: right;
    white-space: normal;
    font-size: 12px;
    line-height: 1.45;
}

#bbai-dashboard-main .bbai-command-card__meta-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

#bbai-dashboard-main .bbai-command-card__refresh {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--bbai-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

#bbai-dashboard-main .bbai-command-card__refresh:hover {
    background: #f8fafc;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-card__refresh:active {
    transform: scale(0.96);
}

#bbai-dashboard-main .bbai-command-card__refresh:focus-visible {
    outline: none;
    background: #f8fafc;
    color: var(--bbai-text-strong);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

#bbai-dashboard-main .bbai-command-card__refresh[disabled] {
    cursor: default;
}

#bbai-dashboard-main .bbai-command-card__refresh-icon,
#bbai-dashboard-main .bbai-command-card__refresh-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bbai-dashboard-main .bbai-command-card__refresh-icon {
    font-size: 14px;
    line-height: 1;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

#bbai-dashboard-main .bbai-command-card__refresh-spinner {
    width: 14px;
    height: 14px;
    margin: auto;
    border: 1.8px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.82);
}

#bbai-dashboard-main .bbai-command-card__refresh.is-loading .bbai-command-card__refresh-icon {
    opacity: 0;
    transform: scale(0.82);
}

#bbai-dashboard-main .bbai-command-card__refresh.is-loading .bbai-command-card__refresh-spinner {
    opacity: 1;
    animation: bbai-spin 0.7s linear infinite;
}

#bbai-dashboard-main .bbai-command-card__refresh.is-loading {
    background: #f8fafc;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-status {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-status__overview {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

#bbai-dashboard-main .bbai-command-donut {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.14),
        0 6px 14px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.16s ease;
}

#bbai-dashboard-main .bbai-command-donut__inner {
    inset: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
}

#bbai-dashboard-main .bbai-command-donut[data-bbai-status-active-segment]:not([data-bbai-status-active-segment=""]) {
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.14),
        0 10px 20px rgba(15, 23, 42, 0.08);
}

#bbai-dashboard-main .bbai-command-status__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-command-status__label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-command-status__value-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-status__value {
    margin: 0;
    font-size: 44px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-status__value span:last-child {
    font-size: 0.62em;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-command-status__summary-line {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-status__summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
}

#bbai-dashboard-main .bbai-command-breakdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: var(--bbai-command-row-padding) 0;
    border: 0;
    border-top: 1px solid var(--bbai-divider);
    background: transparent;
    cursor: default;
}

#bbai-dashboard-main .bbai-command-breakdown:first-child {
    border-top: 0;
}

#bbai-dashboard-main .bbai-command-breakdown:hover,
#bbai-dashboard-main .bbai-command-breakdown:focus-visible,
#bbai-dashboard-main .bbai-command-breakdown.is-active {
    background: transparent;
    box-shadow: none;
}

#bbai-dashboard-main .bbai-command-breakdown__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-command-breakdown__label::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

#bbai-dashboard-main .bbai-command-breakdown--optimized .bbai-command-breakdown__label::before {
    background: #22b573;
}

#bbai-dashboard-main .bbai-command-breakdown--weak .bbai-command-breakdown__label::before {
    background: #d9a441;
}

#bbai-dashboard-main .bbai-command-breakdown--missing .bbai-command-breakdown__label::before {
    background: #c97a00;
}

#bbai-dashboard-main .bbai-command-plan__label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-command-breakdown__value,
#bbai-dashboard-main .bbai-command-plan__value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-breakdown--optimized .bbai-command-breakdown__value {
    color: #15803d;
}

#bbai-dashboard-main .bbai-command-breakdown--weak .bbai-command-breakdown__value {
    color: #7c5719;
}

#bbai-dashboard-main .bbai-command-breakdown--missing .bbai-command-breakdown__value {
    color: #805112;
}

#bbai-dashboard-main .bbai-command-breakdown {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    margin: 0 -10px;
    padding: var(--bbai-command-row-padding) 10px;
    min-height: 44px;
    border-radius: 12px;
    text-align: left;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px transparent;
    transition: background-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

#bbai-dashboard-main .bbai-command-breakdown:hover,
#bbai-dashboard-main .bbai-command-breakdown:focus-visible,
#bbai-dashboard-main .bbai-command-breakdown.is-active {
    background: #f8fbff;
    box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.92);
}

#bbai-dashboard-main .bbai-command-breakdown:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#bbai-dashboard-main .bbai-command-breakdown.is-pressed {
    background: #eef4ff;
    box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.98);
}

#bbai-dashboard-main .bbai-command-breakdown__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

#bbai-dashboard-main .bbai-command-breakdown__value {
    min-width: 1.5em;
    text-align: right;
}

#bbai-dashboard-main .bbai-command-breakdown__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--bbai-text-muted);
    opacity: 0.42;
    transform: translateX(0);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

#bbai-dashboard-main .bbai-command-breakdown:hover .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown:focus-visible .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown.is-active .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown.is-pressed .bbai-command-breakdown__arrow {
    opacity: 1;
    transform: translateX(2px);
}

#bbai-dashboard-main .bbai-command-status__detail {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-command-plan {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-plan__rows {
    display: flex;
    flex-direction: column;
}

#bbai-dashboard-main .bbai-command-plan__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: var(--bbai-command-row-padding) 0;
    border-top: 1px solid var(--bbai-divider);
}

#bbai-dashboard-main .bbai-command-plan__row:first-child {
    padding-top: 0;
    border-top: 0;
}

#bbai-dashboard-main .bbai-command-plan__usage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

#bbai-dashboard-main .bbai-command-meter--plan {
    height: 8px;
    background: #e9efff;
}

#bbai-dashboard-main .bbai-command-meter__fill--plan {
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

#bbai-dashboard-main .bbai-command-plan__comparison-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-command-plan__comparison {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

#bbai-dashboard-main .bbai-command-plan__comparison-visual {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-plan__comparison-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

#bbai-dashboard-main .bbai-command-meter--growth {
    height: 3px;
    background: #e8edf3;
}

#bbai-dashboard-main .bbai-command-meter__fill--growth {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.32) 0%, rgba(16, 185, 129, 0.26) 100%);
}

#bbai-dashboard-main .bbai-command-plan__upgrade-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

#bbai-dashboard-main .bbai-command-plan__actions {
    gap: 8px;
    margin-top: 4px;
}

#bbai-dashboard-main .bbai-dashboard-alert-card {
    gap: 16px;
    padding: var(--bbai-command-banner-padding-block) var(--bbai-command-banner-padding-inline);
    border: 1px solid #f0dec9;
    border-radius: var(--bbai-command-banner-radius);
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.06), transparent 38%),
        linear-gradient(145deg, #fffdf9 0%, #fff7ed 100%);
    box-shadow: var(--bbai-shadow-sm);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#bbai-dashboard-main .bbai-dashboard-alert-card--danger {
    border-color: #f2d4d8;
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.05), transparent 38%),
        linear-gradient(145deg, #fffdfd 0%, #fff5f5 100%);
}

#bbai-dashboard-main .bbai-dashboard-alert-card__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-alert-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

#bbai-dashboard-main .bbai-dashboard-alert-card__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-dashboard-alert-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


#bbai-dashboard-main .bbai-dashboard-feedback {
    border-radius: 12px;
    box-shadow: var(--bbai-shadow-sm);
}

@media (max-width: 1080px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__layout,
    #bbai-dashboard-main .bbai-dashboard-command__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions {
        justify-self: stretch;
        max-width: none;
    }

    #bbai-dashboard-main .bbai-dashboard-alert-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main {
        --bbai-command-banner-padding-block: var(--bbai-space-5);
        --bbai-command-banner-padding-inline: var(--bbai-space-5);
        --bbai-command-card-padding: var(--bbai-rhythm-card-padding-compact, var(--bbai-space-4));
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) {
        padding: var(--bbai-command-banner-padding-block) var(--bbai-command-banner-padding-inline);
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
        font-size: 28px;
    }

    #bbai-dashboard-main .bbai-command-card,
    #bbai-dashboard-main .bbai-dashboard-alert-card {
        padding: var(--bbai-command-card-padding);
    }

    #bbai-dashboard-main .bbai-command-card__meta {
        text-align: left;
    }

    #bbai-dashboard-main .bbai-command-card__meta-group {
        justify-content: flex-start;
    }

    #bbai-dashboard-main .bbai-dashboard-alert-card {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 560px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__secondary-actions,
    #bbai-dashboard-main .bbai-command-plan__actions,
    #bbai-dashboard-main .bbai-dashboard-alert-card__actions {
        width: 100%;
        flex-direction: column;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary,
    #bbai-dashboard-main .bbai-command-action--primary,
    #bbai-dashboard-main .bbai-command-action--ghost,
    #bbai-dashboard-main .bbai-command-action--secondary {
        width: 100%;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--tertiary,
    #bbai-dashboard-main .bbai-command-action--tertiary {
        justify-content: flex-start;
    }

    #bbai-dashboard-main .bbai-command-status__overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #bbai-dashboard-main .bbai-command-donut {
        width: 104px;
        height: 104px;
        margin: 0 auto;
    }

    #bbai-dashboard-main .bbai-command-plan__row {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 420px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
        font-size: 24px;
    }

    #bbai-dashboard-main .bbai-command-plan__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
    #bbai-dashboard-main .bbai-command-action,
    #bbai-dashboard-main .bbai-command-card,
    #bbai-dashboard-main .bbai-dashboard-alert-card,
    #bbai-dashboard-main .bbai-command-meter__fill,
    #bbai-dashboard-main .bbai-dashboard-hero-progress-fill:not(.bbai-banner__progress-fill) {
        transition: none !important;
        transform: none !important;
    }
}

/* Final premium polish pass for the simplified dashboard */
#bbai-dashboard-main {
    --bbai-surface: #ffffff;
    --bbai-surface-soft: #f8fafc;
    --bbai-surface-warm: #fffaf4;
    --bbai-surface-warm-soft: #fff7ee;
    --bbai-border-soft: #f1f5f9;
    --bbai-border-muted: #e5ebf3;
    --bbai-divider: #f1f5f9;
    --bbai-text-strong: #0f172a;
    --bbai-text-body: #334155;
    --bbai-text-muted: #64748b;
    /* Brand primary = action green (not blue) — drives --bbai-admin-color-primary via foundation */
    --bbai-primary: #10b981;
    --bbai-primary-strong: #047857;
    --bbai-success: #16a34a;
    --bbai-warning: #c97a00;
    --bbai-danger: #dc2626;
    --bbai-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --bbai-shadow-md: 0 10px 24px rgba(15, 23, 42, 0.07);
}

#bbai-dashboard-main .bbai-dashboard-command {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#bbai-dashboard-main .bbai-dashboard-command__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) {
    padding: 24px;
    border: 1px solid #ece4d7;
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.055), transparent 34%),
        linear-gradient(155deg, #fffdf8 0%, #fff7ed 57%, #ffffff 100%);
    box-shadow: var(--bbai-shadow-sm);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="setup"] {
    border-color: #e5ecf5;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.055), transparent 34%),
        linear-gradient(155deg, #fcfdff 0%, #f6faff 56%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="attention"] {
    border-color: #ece0ce;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.055), transparent 34%),
        linear-gradient(155deg, #fffdf8 0%, #fff7ed 57%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="healthy"] {
    border-color: #e5eee7;
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.05), transparent 34%),
        linear-gradient(155deg, #fcfffd 0%, #f5fbf7 56%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-tone="paused"] {
    border-color: #f0ddde;
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.05), transparent 34%),
        linear-gradient(155deg, #fffdfd 0%, #fff6f6 56%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(264px, 312px);
    gap: 24px 32px;
    align-items: center;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__heading-row {
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
    margin: 0;
    font-size: var(--bbai-admin-type-hero, 28px);
    font-weight: var(--bbai-admin-type-weight-bold, 700);
    line-height: 1.08;
    letter-spacing: var(--bbai-tracking-tight, -0.03em);
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__subtext {
    margin-top: 8px;
    font-size: var(--bbai-admin-type-body, 14px);
    line-height: 1.55;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__next-step {
    margin-top: 8px;
    font-size: var(--bbai-admin-type-body-lg, 16px);
    font-weight: var(--bbai-admin-type-weight-semibold, 600);
    line-height: 1.55;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-block {
    margin-top: 16px;
    gap: 8px;
    max-width: 620px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage {
    gap: 4px 16px;
    font-size: var(--bbai-admin-type-meta, 13px);
    line-height: 1.5;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-pill {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dde6f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #1e3a8a;
    font-size: var(--bbai-admin-type-label, 12px);
    font-weight: var(--bbai-admin-type-weight-semibold, 600);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-primary {
    color: var(--bbai-text-strong);
    font-weight: 600;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__usage-secondary {
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-progress-track {
    height: 8px;
    background: rgba(148, 163, 184, 0.18);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__note {
    margin-top: 8px;
    font-size: var(--bbai-admin-type-meta, 13px);
    line-height: 1.5;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions {
    width: min(100%, 312px);
    max-width: none;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__secondary-actions {
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
#bbai-dashboard-main .bbai-command-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--bbai-admin-btn-radius, 12px);
    font-size: var(--bbai-admin-type-body, 14px);
    font-weight: var(--bbai-admin-type-weight-semibold, 600);
    line-height: 1.1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
#bbai-dashboard-main .bbai-command-action--primary {
    border: 1px solid var(--bbai-admin-btn-primary-border);
    background: var(--bbai-admin-btn-primary-bg);
    color: #ffffff;
    box-shadow: var(--bbai-admin-btn-primary-shadow);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary,
#bbai-dashboard-main .bbai-command-action--secondary {
    border: 1px solid var(--bbai-admin-btn-secondary-border);
    background: var(--bbai-admin-btn-secondary-bg);
    color: var(--bbai-admin-btn-secondary-text);
    box-shadow: none;
    font-weight: var(--bbai-admin-type-weight-medium, 500);
    transform: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--tertiary,
#bbai-dashboard-main .bbai-command-action--tertiary {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bbai-admin-btn-tertiary-text, var(--bbai-text-muted));
    font-weight: var(--bbai-admin-type-weight-medium, 500);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:hover,
#bbai-dashboard-main .bbai-command-action--primary:hover {
    transform: var(--bbai-admin-btn-primary-lift, translateY(-1px));
    background: var(--bbai-admin-btn-primary-bg);
    box-shadow: var(--bbai-admin-btn-primary-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.1));
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:active,
#bbai-dashboard-main .bbai-command-action--primary:active {
    transform: translateY(0) scale(0.98);
    background: var(--bbai-cta-primary-bg, #10b981);
    box-shadow: var(--bbai-cta-primary-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:focus-visible,
#bbai-dashboard-main .bbai-command-action--primary:focus-visible {
    outline: none;
    background: var(--bbai-cta-primary-bg, #10b981);
    transform: translateY(0);
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px rgba(16, 185, 129, 0.35);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary:hover,
#bbai-dashboard-main .bbai-command-action--secondary:hover {
    transform: none;
    border-color: var(--bbai-admin-btn-secondary-border-hover);
    background: var(--bbai-admin-btn-secondary-bg-hover);
    color: var(--bbai-admin-btn-secondary-text-hover);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--tertiary:hover,
#bbai-dashboard-main .bbai-command-action--tertiary:hover {
    color: var(--bbai-admin-btn-tertiary-text-hover, var(--bbai-primary-strong));
}

#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link:focus-visible,
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta:not(.bbai-dashboard-hero__cta--primary):focus-visible,
#bbai-dashboard-main .bbai-command-action:not(.bbai-command-action--primary):focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(148, 163, 184, 0.35);
}

#bbai-dashboard-main .bbai-command-card,
#bbai-dashboard-main .bbai-dashboard-alert-card {
    border-radius: 12px;
}

#bbai-dashboard-main .bbai-command-card {
    padding: 24px;
    border: 1px solid var(--bbai-border-soft);
    background: var(--bbai-surface);
    box-shadow: var(--bbai-shadow-sm);
}

#bbai-dashboard-main .bbai-command-card__header {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

#bbai-dashboard-main .bbai-command-card__eyebrow {
    margin: 0 0 6px;
    font-size: var(--bbai-admin-type-label, var(--bbai-section-label-size, 12px));
    font-weight: var(--bbai-section-label-weight, 700);
    line-height: var(--bbai-section-label-leading, 1.3);
    letter-spacing: var(--bbai-section-label-tracking, 0.08em);
    text-transform: uppercase;
    color: var(--bbai-section-label-color, #7b8aa0);
}

#bbai-dashboard-main .bbai-command-card__title {
    margin: 0;
    font-size: var(--bbai-admin-type-card-title, var(--bbai-section-title-size, 20px));
    font-weight: var(--bbai-admin-type-weight-semibold, var(--bbai-section-title-weight, 600));
    line-height: 1.2;
    letter-spacing: var(--bbai-tracking-tight, var(--bbai-section-title-tracking, -0.02em));
    color: var(--bbai-section-title-color, var(--bbai-text-strong));
}

#bbai-dashboard-main .bbai-command-card__meta-group {
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-card__meta {
    margin: 0;
    font-size: var(--bbai-admin-type-meta, 13px);
    line-height: 1.5;
    color: #7b8aa0;
    text-align: right;
}

#bbai-dashboard-main .bbai-command-card__refresh {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #7b8aa0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#bbai-dashboard-main .bbai-command-card__refresh:hover {
    border-color: rgba(37, 99, 235, 0.08);
    background: rgba(37, 99, 235, 0.06);
    color: var(--bbai-primary-strong);
}

#bbai-dashboard-main .bbai-command-card__refresh:active .bbai-command-card__refresh-icon {
    transform: rotate(-24deg);
}

#bbai-dashboard-main .bbai-command-card__refresh:focus-visible {
    outline: none;
    border-color: rgba(37, 99, 235, 0.14);
    background: rgba(37, 99, 235, 0.08);
    color: var(--bbai-primary-strong);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#bbai-dashboard-main .bbai-command-card__refresh-icon {
    transition: opacity 0.14s ease, transform 0.14s ease;
}

#bbai-dashboard-main .bbai-command-card__refresh-icon svg {
    width: 15px;
    height: 15px;
}

#bbai-dashboard-main .bbai-command-status {
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-status__overview {
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

#bbai-dashboard-main .bbai-command-donut {
    position: relative;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
    animation: bbai-command-donut-enter 360ms ease-out both;
}

#bbai-dashboard-main .bbai-command-donut__inner {
    inset: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
}

#bbai-dashboard-main .bbai-command-donut[data-bbai-status-active-segment]:not([data-bbai-status-active-segment=""]) {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1), 0 10px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

#bbai-dashboard-main .bbai-command-status__content {
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-status__label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7b8aa0;
}

#bbai-dashboard-main .bbai-command-status__value-group {
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-status__value {
    margin: 0;
    font-size: 46px;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-status__value span:last-child {
    color: #8392a8;
}

#bbai-dashboard-main .bbai-command-status__summary-line {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-status__summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-breakdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -10px;
    padding: var(--bbai-command-row-padding) 10px;
    min-height: 44px;
    border-top: 1px solid var(--bbai-divider);
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

#bbai-dashboard-main .bbai-command-breakdown:first-child {
    border-top: 0;
}

#bbai-dashboard-main .bbai-command-breakdown:hover,
#bbai-dashboard-main .bbai-command-breakdown:focus-visible,
#bbai-dashboard-main .bbai-command-breakdown.is-active {
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

#bbai-dashboard-main .bbai-command-breakdown.is-pressed {
    background: #f1f5ff;
    box-shadow: inset 0 0 0 1px #dbe6ff;
    transform: translateY(1px);
}

#bbai-dashboard-main .bbai-command-breakdown:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#bbai-dashboard-main .bbai-command-breakdown__label {
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--bbai-text-body);
}

#bbai-dashboard-main .bbai-command-breakdown__label::before {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
}

#bbai-dashboard-main .bbai-command-breakdown__value,
#bbai-dashboard-main .bbai-command-plan__value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-breakdown--optimized .bbai-command-breakdown__value,
#bbai-dashboard-main .bbai-command-breakdown--weak .bbai-command-breakdown__value,
#bbai-dashboard-main .bbai-command-breakdown--missing .bbai-command-breakdown__value {
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-breakdown__meta {
    gap: 8px;
}

#bbai-dashboard-main .bbai-command-breakdown__arrow {
    opacity: 0.38;
    transform: translateX(-2px);
    color: #8b99ad;
}

#bbai-dashboard-main .bbai-command-breakdown:hover .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown:focus-visible .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown.is-active .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown.is-pressed .bbai-command-breakdown__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable {
    background: linear-gradient(90deg, rgba(201, 122, 0, 0.06) 0%, rgba(201, 122, 0, 0.018) 58%, rgba(201, 122, 0, 0) 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 122, 0, 0.14);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    /* Slightly more vertical inset than plain rows so the tint does not crowd the label. */
    padding-top: calc(var(--bbai-command-row-padding) + 4px);
    padding-bottom: calc(var(--bbai-command-row-padding) + 4px);
    min-height: 48px;
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable .bbai-command-breakdown__value {
    color: #805112;
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable .bbai-command-breakdown__arrow {
    opacity: 0.72;
    color: #805112;
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable:hover .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown--missing-actionable:focus-visible .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown--missing-actionable.is-active .bbai-command-breakdown__arrow,
#bbai-dashboard-main .bbai-command-breakdown--missing-actionable.is-pressed .bbai-command-breakdown__arrow {
    opacity: 1;
    transform: translateX(0);
    color: #805112;
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable:hover,
#bbai-dashboard-main .bbai-command-breakdown--missing-actionable.is-active {
    background: linear-gradient(90deg, rgba(201, 122, 0, 0.09) 0%, rgba(201, 122, 0, 0.03) 60%, rgba(201, 122, 0, 0) 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 122, 0, 0.2);
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable:focus-visible {
    outline: none;
    background: linear-gradient(90deg, rgba(201, 122, 0, 0.09) 0%, rgba(201, 122, 0, 0.03) 60%, rgba(201, 122, 0, 0) 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 122, 0, 0.22), 0 0 0 3px rgba(201, 122, 0, 0.14);
}

#bbai-dashboard-main .bbai-command-breakdown--missing-actionable.is-pressed {
    background: linear-gradient(90deg, rgba(201, 122, 0, 0.1) 0%, rgba(201, 122, 0, 0.04) 60%, rgba(201, 122, 0, 0) 100%);
    box-shadow: inset 0 0 0 1px rgba(201, 122, 0, 0.22);
}

/* One-shot legacy hook (JS removes after attention cycle); prefer .bbai-dashboard-missing-attention */
#bbai-dashboard-main .bbai-command-breakdown--missing-cue {
    animation: none;
}

/**
 * Short attention pulse on the missing-row status dot (~3s total, then stops).
 */
@keyframes bbai-missing-status-dot-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    }
    50% {
        transform: scale(1.22);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Pulse as soon as HTML paints (data attr from filter-group); JS-added .missing-actionable keeps parity after hydrate. */
#bbai-dashboard-main [data-bbai-missing-row-pulse="1"] .bbai-command-breakdown__label::before,
#bbai-dashboard-main .bbai-command-breakdown--missing-actionable.bbai-command-breakdown--missing .bbai-command-breakdown__label::before {
    animation: bbai-missing-status-dot-pulse 1s ease-in-out 3;
    transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
    #bbai-dashboard-main [data-bbai-missing-row-pulse="1"] .bbai-command-breakdown__label::before,
    #bbai-dashboard-main .bbai-command-breakdown--missing-actionable.bbai-command-breakdown--missing .bbai-command-breakdown__label::before {
        animation: none;
    }
}

/**
 * Dashboard only: gentle attention on the "Missing" coverage row (one 3s cycle; JS strips class at 3s).
 * transition:none: base row uses transition on background/box-shadow; without this, keyframes barely move.
 */
#bbai-dashboard-main [data-bbai-status-segment="missing"].bbai-dashboard-missing-attention.bbai-command-breakdown--missing-actionable {
    animation: bbai-dashboard-missing-attention 3s ease-in-out 1;
    transition: none;
}

@keyframes bbai-dashboard-missing-attention {
    0%,
    100% {
        background: linear-gradient(90deg, rgba(201, 122, 0, 0.06) 0%, rgba(201, 122, 0, 0.018) 58%, rgba(201, 122, 0, 0) 100%);
        box-shadow: inset 0 0 0 1px rgba(201, 122, 0, 0.14);
    }
    50% {
        background: linear-gradient(90deg, rgba(201, 122, 0, 0.1) 0%, rgba(201, 122, 0, 0.035) 60%, rgba(201, 122, 0, 0) 100%);
        box-shadow: inset 0 0 0 1px rgba(201, 122, 0, 0.22), 0 10px 32px -24px rgba(201, 122, 0, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    #bbai-dashboard-main .bbai-dashboard-missing-attention {
        animation: none !important;
    }
}

#bbai-dashboard-main .bbai-command-status__detail {
    display: inline-flex;
    align-self: flex-start;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--bbai-border-soft);
    border-radius: 999px;
    background: #fbfdff;
    font-size: 13px;
    line-height: 1.5;
    color: #52627a;
}

#bbai-dashboard-main .bbai-command-plan {
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-plan__rows {
    gap: 0;
}

#bbai-dashboard-main .bbai-command-plan__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--bbai-divider);
}

#bbai-dashboard-main .bbai-command-plan__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--bbai-text-muted);
}

#bbai-dashboard-main .bbai-command-plan__usage {
    gap: 16px;
}

#bbai-dashboard-main .bbai-command-meter--plan {
    height: 9px;
    border-radius: 999px;
    background: #e9efff;
}

#bbai-dashboard-main .bbai-command-meter__fill--plan {
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-command-plan__comparison {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #52627a;
}

#bbai-dashboard-main .bbai-command-plan__comparison-visual {
    gap: 4px;
}

#bbai-dashboard-main .bbai-command-plan__comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#bbai-dashboard-main .bbai-command-plan__comparison-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a98ac;
}

#bbai-dashboard-main .bbai-command-plan__comparison-value {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #7b8aa0;
}

#bbai-dashboard-main .bbai-command-meter--growth {
    height: 4px;
    border-radius: 999px;
    background: #e7edf3;
}

#bbai-dashboard-main .bbai-command-meter__fill--growth {
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-command-plan__upgrade-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #52627a;
}

#bbai-dashboard-main .bbai-command-plan__actions,
#bbai-dashboard-main .bbai-dashboard-alert-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    border: 1px solid #efe2cf;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.05), transparent 36%),
        linear-gradient(155deg, #fffdf8 0%, #fff7ee 58%, #ffffff 100%);
    box-shadow: var(--bbai-shadow-sm);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#bbai-dashboard-main .bbai-dashboard-alert-card--danger {
    border-color: #f1dcdf;
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.05), transparent 36%),
        linear-gradient(155deg, #fffdfd 0%, #fff6f6 58%, #ffffff 100%);
}

#bbai-dashboard-main .bbai-dashboard-alert-card__copy {
    display: flex;
    flex: 1 1 360px;
    flex-direction: column;
    gap: 8px;
}

#bbai-dashboard-main .bbai-dashboard-alert-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--bbai-text-strong);
}

#bbai-dashboard-main .bbai-dashboard-alert-card__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--bbai-text-body);
}

/* Review modal overlay */
.bbai-dashboard-review-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bbai-dashboard-review-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.bbai-dashboard-review-overlay__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 32px 24px 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(148, 163, 184, 0.10);
    text-align: center;
}

.bbai-dashboard-review-overlay__headline {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bbai-ui-ink, #1f2937);
}

.bbai-dashboard-review-overlay__copy {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bbai-text-muted, #64748b);
}

.bbai-dashboard-review-overlay__aside {
    margin: 0 0 20px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bbai-text-muted, #94a3b8);
}

.bbai-dashboard-review-overlay__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.bbai-dashboard-review-overlay__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.bbai-dashboard-review-overlay__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.24);
    color: #ffffff;
}

.bbai-dashboard-review-overlay__cta:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

.bbai-dashboard-review-overlay__later {
    padding: 4px 8px;
    border: none;
    background: none;
    color: var(--bbai-text-muted, #94a3b8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bbai-dashboard-review-overlay__later:hover {
    color: var(--bbai-ui-ink, #1f2937);
}

.bbai-dashboard-review-overlay__feedback {
    display: block;
    color: var(--bbai-text-muted, #94a3b8);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.bbai-dashboard-review-overlay__feedback:hover {
    color: var(--bbai-ui-ink, #1f2937);
    text-decoration: underline;
}

.bbai-dashboard-review-overlay--enter .bbai-dashboard-review-overlay__backdrop {
    animation: bbai-review-backdrop-enter 0.3s ease both;
}
.bbai-dashboard-review-overlay--enter .bbai-dashboard-review-overlay__dialog {
    animation: bbai-review-dialog-enter 0.4s cubic-bezier(0.33, 1, 0.68, 1) both;
}
.bbai-dashboard-review-overlay--exit .bbai-dashboard-review-overlay__backdrop {
    animation: bbai-review-backdrop-exit 0.25s ease forwards;
}
.bbai-dashboard-review-overlay--exit .bbai-dashboard-review-overlay__dialog {
    animation: bbai-review-dialog-exit 0.25s ease forwards;
}

@keyframes bbai-review-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bbai-review-backdrop-exit {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes bbai-review-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes bbai-review-dialog-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

@keyframes bbai-command-donut-enter {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    #bbai-dashboard-main .bbai-command-card:hover,
    #bbai-dashboard-main .bbai-dashboard-alert-card:hover {
        transform: translateY(-1px);
        border-color: var(--bbai-border-muted);
        box-shadow: var(--bbai-shadow-md);
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner):hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.065);
    }
}

@media (max-width: 1080px) {
    #bbai-dashboard-main .bbai-dashboard-command__grid,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero-actions {
        width: 100%;
    }
}

@media (max-width: 782px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner),
    #bbai-dashboard-main .bbai-command-card,
    #bbai-dashboard-main .bbai-dashboard-alert-card {
        padding: 24px;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
        font-size: 30px;
    }

    #bbai-dashboard-main .bbai-command-card__meta {
        text-align: left;
    }

    #bbai-dashboard-main .bbai-dashboard-alert-card {
        align-items: flex-start;
    }

    .bbai-dashboard-review-overlay__dialog {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary,
    #bbai-dashboard-main .bbai-command-action--primary,
    #bbai-dashboard-main .bbai-command-action--secondary {
        width: 100%;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__secondary-actions,
    #bbai-dashboard-main .bbai-command-plan__actions,
    #bbai-dashboard-main .bbai-dashboard-alert-card__actions {
        width: 100%;
        flex-direction: column;
    }

    #bbai-dashboard-main .bbai-command-status__overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #bbai-dashboard-main .bbai-command-donut {
        width: 116px;
        height: 116px;
        margin: 0 auto;
    }
}

@media (max-width: 420px) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__headline {
        font-size: 26px;
    }

    #bbai-dashboard-main .bbai-command-plan__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Dashboard conversion: coverage motivation, plan urgency, completion state */
#bbai-dashboard-main .bbai-command-plan__low-credits-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
}

#bbai-dashboard-main .bbai-command-plan__upgrade-note {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

#bbai-dashboard-main .bbai-command-plan__upgrade-lead {
    font-weight: 600;
    color: var(--bbai-text-strong, #0f172a);
}

#bbai-dashboard-main .bbai-command-plan__upgrade-sub {
    font-size: 13px;
    line-height: 1.45;
    color: var(--bbai-text-muted, #64748b);
}

#bbai-dashboard-main .bbai-command-status__motivation {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bbai-text-muted, #475569);
}

#bbai-dashboard-main .bbai-command-status__coverage-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #5f7489;
    opacity: 0.92;
}

#bbai-dashboard-main .bbai-command-card--coverage-complete {
    box-shadow: inset 0 0 0 1px #bbf7d0, 0 1px 2px rgba(15, 23, 42, 0.04);
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 55%);
}

#bbai-dashboard-main .bbai-command-status__value [data-bbai-status-coverage-value] {
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

@keyframes bbai-coverage-value-pulse {
    0% {
        transform: scale(1);
        color: inherit;
    }

    45% {
        transform: scale(1.06);
        color: #15803d;
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

#bbai-dashboard-main .bbai-coverage-value--pulse {
    animation: bbai-coverage-value-pulse 0.85s cubic-bezier(0.33, 1, 0.68, 1);
}

#bbai-dashboard-main .bbai-command-status__value--processing {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

#bbai-dashboard-main .bbai-command-status__coverage-processing {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 22em;
}

#bbai-dashboard-main .bbai-command-status__processing-spinner {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-top-color: var(--bbai-primary-strong, #2563eb);
    border-radius: 50%;
    animation: bbai-coverage-processing-spin 0.75s linear infinite;
}

@keyframes bbai-coverage-processing-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bbai-command-donut-processing-pulse {
    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.05);
    }
}

#bbai-dashboard-main .bbai-command-donut--processing {
    animation: bbai-command-donut-enter 360ms ease-out both, bbai-command-donut-processing-pulse 2.4s ease-in-out infinite 360ms;
}

@media (prefers-reduced-motion: reduce) {
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link,
    #bbai-dashboard-main .bbai-command-action,
    #bbai-dashboard-main .bbai-command-card,
    #bbai-dashboard-main .bbai-dashboard-alert-card,
    #bbai-dashboard-main .bbai-command-breakdown,
    #bbai-dashboard-main .bbai-command-breakdown__arrow,
    #bbai-dashboard-main .bbai-command-donut,
    #bbai-dashboard-main .bbai-command-meter__fill,
    #bbai-dashboard-main .bbai-dashboard-hero-progress-fill:not(.bbai-banner__progress-fill),
    #bbai-dashboard-main .bbai-command-card__refresh-icon,
    #bbai-dashboard-main .bbai-coverage-value--pulse,
    #bbai-dashboard-main .bbai-command-status__processing-spinner,
    #bbai-dashboard-main .bbai-command-donut--processing,
    #bbai-dashboard-main .bbai-dashboard-hero--celebrate,
    #bbai-dashboard-main .bbai-dashboard-hero__icon--draw svg path,
    .bbai-dashboard-review-overlay--enter .bbai-dashboard-review-overlay__backdrop,
    .bbai-dashboard-review-overlay--enter .bbai-dashboard-review-overlay__dialog,
    .bbai-dashboard-review-overlay--exit .bbai-dashboard-review-overlay__backdrop,
    .bbai-dashboard-review-overlay--exit .bbai-dashboard-review-overlay__dialog {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ─── Final-polish pass ──────────────────────────────────────────────── */

/* 1,2,7. Spacing polish and action alignment for success state */
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero__subtext {
    margin-top: 4px;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero__usage-block {
    margin-top: 8px;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero-progress {
    padding-top: 16px;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero-progress-track {
    position: relative;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero-progress-track::before {
    content: 'Fully optimised';
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #64748b;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero__note {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #2f6f54;
    opacity: 1;
    letter-spacing: 0.01em;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero__loop {
    margin-top: 4px;
    gap: 4px;
}
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner)[data-bbai-success-state="1"] .bbai-dashboard-hero-actions {
    align-self: center;
}

/* 3. Action hierarchy: primary action button + lighter secondary chips */
#bbai-dashboard-main .bbai-dashboard-hero__loop-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 8px;
}
#bbai-dashboard-main .bbai-dashboard-hero__loop-link {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.14s ease;
}
#bbai-dashboard-main .bbai-dashboard-hero__loop-link--secondary {
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.84);
    color: #475569;
    font-weight: 500;
    opacity: 0.84;
}
#bbai-dashboard-main .bbai-dashboard-hero__loop-link--secondary:hover {
    transform: translateY(-1px);
    opacity: 1;
    border-color: #d5dee9;
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
#bbai-dashboard-main .bbai-dashboard-hero__loop-link:focus-visible {
    outline: 2px solid var(--bbai-primary);
    outline-offset: 2px;
}

/* 1. Monetisation tension line: higher contrast, subtle amber */
#bbai-dashboard-main .bbai-dashboard-hero__loop-tension {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #8a5a10;
    font-style: normal;
    font-weight: 400;
}

/* 4. Coverage card micro-interaction: one-time premium scale-in */
@keyframes bbai-coverage-card-scale-in {
    0% {
        transform: scale(0.98);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    }
    100% {
        transform: scale(1);
        box-shadow: inset 0 0 0 1px #bbf7d0, 0 1px 2px rgba(15, 23, 42, 0.04);
    }
}
#bbai-dashboard-main .bbai-command-card--coverage-glow {
    transform-origin: 50% 50%;
    animation: bbai-coverage-card-scale-in 0.28s ease-out forwards;
}

/* 5. Progress bar completion label — "Fully optimised" at 100% */
#bbai-dashboard-main .bbai-command-card--coverage-complete .bbai-command-progress-bar::after {
    content: 'Fully optimised';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1d7c4d;
    opacity: 0.92;
    white-space: nowrap;
    line-height: 1;
}
#bbai-dashboard-main .bbai-command-card--coverage-complete .bbai-command-progress-bar {
    position: relative;
    padding-right: 98px;
}

/* 6. Upgrade context and CTA benefit copy */
#bbai-dashboard-main .bbai-command-plan__upgrade-sub {
    font-size: 13px;
    line-height: 1.45;
    color: #8a5a10;
    font-weight: 500;
}
#bbai-dashboard-main .bbai-command-plan__cta-sub {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    opacity: 0.78;
}

/* 7.3 Secondary: no lift — subtle border/background only (overrides any stray lift) */
#bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary:hover {
    transform: none;
}

/* Dashboard mount loading */
@keyframes bbai-dashboard-loading-dot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.38;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

[data-bbai-dashboard-hero="1"].bbai-dashboard-loading-surface,
#bbai-dashboard-main .bbai-dashboard-loading-surface {
    position: relative;
    overflow: hidden;
}

[data-bbai-dashboard-hero="1"].bbai-dashboard-loading-surface > :not(.bbai-dashboard-loading-skeleton),
#bbai-dashboard-main .bbai-dashboard-loading-surface > :not(.bbai-dashboard-loading-skeleton) {
    transition: opacity 150ms ease;
}

[data-bbai-dashboard-hero="1"].bbai-dashboard-loading-surface.is-loading > :not(.bbai-dashboard-loading-skeleton),
#bbai-dashboard-main .bbai-dashboard-loading-surface.is-loading > :not(.bbai-dashboard-loading-skeleton) {
    opacity: 0.98;
    filter: none;
}

[data-bbai-dashboard-hero="1"].bbai-dashboard-loading-surface.is-loaded > :not(.bbai-dashboard-loading-skeleton),
#bbai-dashboard-main .bbai-dashboard-loading-surface.is-loaded > :not(.bbai-dashboard-loading-skeleton) {
    opacity: 1;
    filter: none;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    padding: 24px;
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
    transition: opacity 150ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton--hero,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton--hero {
    align-items: center;
    padding: 24px;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton--status,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton--status,
[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton--usage,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton--usage {
    padding: 24px;
}

[data-bbai-dashboard-hero="1"].bbai-dashboard-loading-surface.is-loading .bbai-dashboard-loading-skeleton,
#bbai-dashboard-main .bbai-dashboard-loading-surface.is-loading .bbai-dashboard-loading-skeleton {
    opacity: 0;
    transform: scale(1);
}

[data-bbai-dashboard-hero="1"].bbai-dashboard-loading-surface.is-loaded .bbai-dashboard-loading-skeleton,
#bbai-dashboard-main .bbai-dashboard-loading-surface.is-loaded .bbai-dashboard-loading-skeleton {
    opacity: 0;
    transform: scale(1);
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__stack,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 460px);
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__stack--usage {
    width: 100%;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__line,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line,
[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__button,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__button,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__donut,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__list-item,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__progress-fill {
    display: block;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__line--eyebrow,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--eyebrow {
    width: 108px;
    height: 12px;
    border-radius: 999px;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__line--title,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--title {
    width: min(100%, 360px);
    height: 30px;
    border-radius: 14px;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__line--title-short,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--title-short {
    width: min(78%, 280px);
    height: 30px;
    border-radius: 14px;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__line--body,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--body {
    width: min(100%, 420px);
    height: 14px;
    border-radius: 999px;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__line--body-short,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--body-short {
    width: min(72%, 280px);
    height: 14px;
    border-radius: 999px;
}

[data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton__button,
#bbai-dashboard-main .bbai-dashboard-loading-skeleton__button {
    width: 156px;
    height: 40px;
    margin-top: 4px;
    border-radius: 10px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__button--wide {
    width: 180px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__status-layout {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    width: 100%;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__donut {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__donut::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__status-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--metric {
    width: min(52%, 172px);
    height: 38px;
    border-radius: 14px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__list {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__list-item {
    width: 100%;
    height: 38px;
    border-radius: 12px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--label {
    width: 78px;
    height: 12px;
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--value {
    width: 96px;
    height: 18px;
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__line--value-wide {
    width: 148px;
    height: 18px;
    border-radius: 999px;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.66);
    overflow: hidden;
}

#bbai-dashboard-main .bbai-dashboard-loading-skeleton__progress-fill {
    width: 72%;
    height: 100%;
    border-radius: inherit;
}

.bbai-dashboard-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 24px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.bbai-dashboard-loading-overlay.is-visible,
.bbai-dashboard-loading-overlay.is-exiting {
    visibility: visible;
    transition-delay: 0s;
}

.bbai-dashboard-loading-overlay.is-visible {
    opacity: 1;
}

.bbai-dashboard-loading-overlay.is-exiting {
    opacity: 0;
}

.bbai-dashboard-loading-overlay__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: min(100%, 220px);
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: #334155;
    text-align: center;
    transform: scale(0.98);
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 150ms ease;
}

.bbai-dashboard-loading-overlay.is-visible .bbai-dashboard-loading-overlay__panel {
    transform: scale(1);
}

.bbai-dashboard-loading-overlay__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bbai-dashboard-loading-overlay__dots span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.78);
    animation: bbai-dashboard-loading-dot 900ms ease-in-out infinite;
}

.bbai-dashboard-loading-overlay__dots span:nth-child(2) {
    animation-delay: 120ms;
}

.bbai-dashboard-loading-overlay__dots span:nth-child(3) {
    animation-delay: 240ms;
}

.bbai-dashboard-loading-overlay__title,
.bbai-dashboard-loading-overlay__subtext {
    margin: 0;
}

.bbai-dashboard-loading-overlay__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
}

.bbai-dashboard-loading-overlay__subtext {
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

@media (max-width: 782px) {
    #bbai-dashboard-main .bbai-dashboard-loading-skeleton__status-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #bbai-dashboard-main .bbai-dashboard-loading-skeleton__donut-wrap {
        justify-content: flex-start;
    }
}

/* Reduce motion compatibility */
@media (prefers-reduced-motion: reduce) {
    #bbai-dashboard-main .bbai-command-card--coverage-glow {
        animation: none !important;
    }
    #bbai-dashboard-main .bbai-dashboard-hero__loop-link,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__link--secondary {
        transition: none !important;
    }

    #bbai-dashboard-main .bbai-command-card,
    #bbai-dashboard-main .bbai-command-card:hover,
    #bbai-dashboard-main .bbai-dashboard-alert-card,
    #bbai-dashboard-main .bbai-dashboard-alert-card:hover,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner):hover {
        transform: none !important;
    }

    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:hover,
    #bbai-dashboard-main .bbai-dashboard-hero--command:not(.bbai-status-banner) .bbai-dashboard-hero__cta--primary:active,
    #bbai-dashboard-main .bbai-command-action--primary,
    #bbai-dashboard-main .bbai-command-action--primary:hover,
    #bbai-dashboard-main .bbai-command-action--primary:active {
        transform: none !important;
    }

    .bbai-dashboard-loading-overlay,
    .bbai-dashboard-loading-overlay__panel,
    [data-bbai-dashboard-hero="1"] .bbai-dashboard-loading-skeleton,
    #bbai-dashboard-main .bbai-dashboard-loading-skeleton {
        transition: none !important;
    }

    .bbai-dashboard-loading-overlay__dots span,
    .bbai-skeleton {
        animation: none !important;
    }
}
