/* Shared utility classes for ReelAnalytics Frontend */

:root {
    --ra-compact-text-fs: 0.9rem;
    --ra-compact-meta-fs: 0.82rem;
    --ra-chart-axis-fs: 0.6875rem;
    --ra-input-min-height: 2.375rem;
    --ra-input-padding-y: 0.375rem;
    --ra-input-padding-x: 0.75rem;
    --ra-input-fs: 0.9375rem;
    /* PR filter row: matches my-stories / Generation 2 compact baseline */
    --ra-pr-filter-input-height: 2.125rem;
    --ra-pr-filter-input-fs: 0.875rem;
    --ra-pr-filter-input-padding-y: 0.3rem;
    --ra-pr-filter-input-padding-x: 0.65rem;
    --ra-pr-filter-border: 1px solid #dee2e6;
    --ra-pr-filter-radius: 0.375rem;
    /* Alias for legacy page-local --ms-input-* */
    --ms-input-height: var(--ra-pr-filter-input-height);
    --ms-input-font: var(--ra-pr-filter-input-fs);
    --ms-input-padding-y: var(--ra-pr-filter-input-padding-y);
    --ms-input-padding-x: var(--ra-pr-filter-input-padding-x);
    --ms-input-border: var(--ra-pr-filter-border);
    --ms-input-radius: var(--ra-pr-filter-radius);
    --ms-input-bg: #fff;
    --ms-input-color: var(--bs-body-color, #212529);

    /* Platform tokens - canonical colour per media platform. */
    --platform-radio:  #6366F1; /* indigo */
    --platform-tv:     #10B981; /* emerald */
    --platform-print:  #F59E0B; /* amber */
    --platform-online: #3B82F6; /* blue */
    --platform-other:  #94A3B8; /* slate */

    /* Sentiment tokens - never mixed with platform or brand colours. */
    --sentiment-positive:       #D1FAE5;
    --sentiment-positive-text:  #065F46;
    --sentiment-positive-chart: #10B981;
    --sentiment-neutral:        #F1F5F9;
    --sentiment-neutral-text:   #475569;
    --sentiment-negative:       #FEE2E2;
    --sentiment-negative-text:  #991B1B;
    --sentiment-negative-chart: #EF4444;

    /* Industry / category tokens - breakdown charts only. */
    --industry-1: #6366F1;
    --industry-2: #F59E0B;
    --industry-3: #10B981;
    --industry-4: #EF4444;
    --industry-5: #8B5CF6;
    --industry-6: #EC4899;

    --ra-brand-primary: #ed1c24;
    --ra-text-primary: #162033;
    --ra-text-secondary: #576174;
    --ra-color-text-tertiary: #94a3b8;
    --ra-border-color: #dee2e6;
    --ra-surface-muted: #f8fafc;
    /* Disabled filter Apply: readable label on muted surface (Rule 12) */
    --ra-btn-primary-disabled-fg: #475569;

    /* Bootstrap-aligned breakpoints (canonical across custom CSS) */
    --ra-bp-sm: 576px;
    --ra-bp-md: 768px;
    --ra-bp-lg: 992px;
    --ra-bp-xl: 1200px;
    --ra-bp-xxl: 1400px;
}

/* Platform accent utilities — use CSS tokens from :root (Rule 1). */
.ra-platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.ra-platform-dot--radio { background-color: var(--platform-radio); }
.ra-platform-dot--tv { background-color: var(--platform-tv); }
.ra-platform-dot--print { background-color: var(--platform-print); }
.ra-platform-dot--online { background-color: var(--platform-online); }
.ra-platform-dot--other { background-color: var(--platform-other); }

.ra-platform-accent--radio { border-left-color: var(--platform-radio) !important; }
.ra-platform-accent--tv { border-left-color: var(--platform-tv) !important; }
.ra-platform-accent--print { border-left-color: var(--platform-print) !important; }
.ra-platform-accent--online { border-left-color: var(--platform-online) !important; }
.ra-platform-accent--other { border-left-color: var(--platform-other) !important; }

.ra-platform-row-accent {
    border-left-width: 3px;
    border-left-style: solid;
}

.ra-platform-row-accent--radio { border-left-color: var(--platform-radio); }
.ra-platform-row-accent--tv { border-left-color: var(--platform-tv); }
.ra-platform-row-accent--print { border-left-color: var(--platform-print); }
.ra-platform-row-accent--online { border-left-color: var(--platform-online); }
.ra-platform-row-accent--other { border-left-color: var(--platform-other); }

.ra-platform-badge {
    border: 0;
    font-weight: 500;
}

.ra-platform-badge--radio {
    background: color-mix(in srgb, var(--platform-radio) 22%, white);
    color: var(--platform-radio);
}

.ra-platform-badge--tv {
    background: color-mix(in srgb, var(--platform-tv) 22%, white);
    color: var(--platform-tv);
}

.ra-platform-badge--print {
    background: color-mix(in srgb, var(--platform-print) 22%, white);
    color: var(--platform-print);
}

.ra-platform-badge--online {
    background: color-mix(in srgb, var(--platform-online) 22%, white);
    color: var(--platform-online);
}

.ra-platform-badge--other {
    background: color-mix(in srgb, var(--platform-other) 35%, white);
    color: var(--platform-other);
}

body.ra-dark-mode .ra-platform-badge--radio,
body:is([data-theme="dark"]) .ra-platform-badge--radio {
    background: color-mix(in srgb, var(--platform-radio) 35%, transparent);
    color: #c4b5fd;
}

body.ra-dark-mode .ra-platform-badge--tv,
body:is([data-theme="dark"]) .ra-platform-badge--tv {
    background: color-mix(in srgb, var(--platform-tv) 35%, transparent);
    color: #6ee7b7;
}

body.ra-dark-mode .ra-platform-badge--print,
body:is([data-theme="dark"]) .ra-platform-badge--print {
    background: color-mix(in srgb, var(--platform-print) 35%, transparent);
    color: #fde68a;
}

body.ra-dark-mode .ra-platform-badge--online,
body:is([data-theme="dark"]) .ra-platform-badge--online {
    background: color-mix(in srgb, var(--platform-online) 35%, transparent);
    color: #93c5fd;
}

body.ra-dark-mode .ra-platform-badge--other,
body:is([data-theme="dark"]) .ra-platform-badge--other {
    background: color-mix(in srgb, var(--platform-other) 40%, transparent);
    color: var(--ra-dark-text-secondary);
}

.ra-text-compact {
    font-size: var(--ra-compact-text-fs);
    line-height: 1.45;
}

.ra-meta-compact {
    font-size: var(--ra-compact-meta-fs);
    line-height: 1.4;
}

.ra-table-compact {
    font-size: var(--ra-compact-text-fs);
}

.ra-form-input-baseline {
    min-height: var(--ra-input-min-height);
    padding: var(--ra-input-padding-y) var(--ra-input-padding-x);
    font-size: var(--ra-input-fs);
    line-height: 1.5;
}

/* PR monitoring + report shells: one baseline for page copy */
.ra-pr-page {
    font-size: var(--ra-compact-text-fs);
    line-height: 1.45;
}

/* Toolbar actions aligned with compact filter controls */
.ra-btn-compact.btn-sm {
    min-height: var(--ra-pr-filter-input-height);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: var(--ra-pr-filter-input-fs);
    line-height: 1.35;
}

.ra-btn-compact.btn-sm .material-symbols-outlined {
    font-size: 1.125rem;
    line-height: 1;
    vertical-align: -0.2em;
}

/* Pagination: compact controls with consistent height and readable page numbers */
.ra-pagination-compact.pagination {
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.ra-pagination-compact.pagination .page-link {
    padding: 0.25rem 0.55rem;
    font-size: var(--ra-pr-filter-input-fs);
    line-height: 1.25;
    min-height: var(--ra-pr-filter-input-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: var(--bs-secondary-color, #576174);
    background-color: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.ra-pagination-compact.pagination .page-item.active .page-link {
    color: var(--bs-primary);
    font-weight: 600;
    background-color: rgba(var(--bs-primary-rgb, 237 28 36), 0.14);
    border-color: rgba(var(--bs-primary-rgb, 237 28 36), 0.45);
}

.ra-pagination-compact.pagination .page-item.disabled .page-link {
    opacity: 0.55;
}

.ra-pagination-compact .ra-pagination-icon {
    font-size: 1.125rem;
    line-height: 1;
}

/* Shared filter card: native + Choices.js (use with .ra-filter-card) */
.ra-filter-card .form-label {
    font-size: var(--ra-compact-meta-fs);
    margin-bottom: 0.35rem;
}

.ra-filter-card .form-control,
.ra-filter-card .form-select {
    height: var(--ra-pr-filter-input-height);
    min-height: var(--ra-pr-filter-input-height);
    font-size: var(--ra-pr-filter-input-fs);
    padding: var(--ra-pr-filter-input-padding-y) var(--ra-pr-filter-input-padding-x);
    border: var(--ra-pr-filter-border);
    border-radius: var(--ra-pr-filter-radius);
    line-height: 1.4;
}

.ra-filter-card .input-group-text {
    height: var(--ra-pr-filter-input-height);
    font-size: var(--ra-pr-filter-input-fs);
    padding: var(--ra-pr-filter-input-padding-y) var(--ra-pr-filter-input-padding-x);
    border: var(--ra-pr-filter-border);
    background-color: #f8f9fa;
    line-height: 1.4;
}

.ra-filter-card .input-group .form-control {
    border-left: 0;
    border-radius: 0 var(--ra-pr-filter-radius) var(--ra-pr-filter-radius) 0;
}

.ra-filter-card .input-group .input-group-text {
    border-radius: var(--ra-pr-filter-radius) 0 0 var(--ra-pr-filter-radius);
}

.ra-filter-card .choices {
    margin-bottom: 0;
    width: 100%;
}

.ra-filter-card .choices__inner {
    min-height: var(--ra-pr-filter-input-height);
    font-size: var(--ra-pr-filter-input-fs);
    padding: var(--ra-pr-filter-input-padding-y) var(--ra-pr-filter-input-padding-x);
    border: var(--ra-pr-filter-border);
    border-radius: var(--ra-pr-filter-radius);
    background-color: var(--ms-input-bg, #fff);
    color: var(--ms-input-color);
    line-height: 1.4;
}

.ra-filter-card .choices[data-type*="select-multiple"] .choices__inner {
    padding-bottom: 2px;
}

.ra-filter-card .choices.is-open .choices__inner {
    border-color: rgba(99, 102, 241, 0.45);
}

.ra-filter-card .choices.is-disabled .choices__inner,
.ra-filter-card .choices.is-disabled .choices__input {
    background-color: var(--ra-surface-muted, #f4f7fb);
    cursor: not-allowed;
    opacity: 0.85;
}

.ra-filter-card .choices__list--multiple .choices__item {
    background-color: #eef2ff;
    border: 1px solid #dce3f2;
    color: #1c3a6d;
    border-radius: 999px;
    font-size: var(--ra-pr-filter-input-fs);
    font-weight: 600;
    margin: 0.15rem 0.35rem 0.15rem 0;
    padding: 0.15rem 0.55rem;
}

.ra-filter-card .choices__list--multiple .choices__item .choices__button {
    border-left: 1px solid #dce3f2;
    margin-left: 0.35rem;
    padding-left: 0.35rem;
    opacity: 0.75;
}

.ra-filter-card .choices__list--multiple .choices__item .choices__button:hover {
    opacity: 1;
}

.ra-filter-card .choices__input,
.ra-filter-card .choices__item--selectable {
    font-size: var(--ra-pr-filter-input-fs);
}

/* Analysis report form column: compact inputs matching PR filter scale */
.ra-analysis-report-shell .form-control,
.ra-analysis-report-shell .form-select {
    height: var(--ra-pr-filter-input-height);
    min-height: var(--ra-pr-filter-input-height);
    padding: var(--ra-pr-filter-input-padding-y) var(--ra-pr-filter-input-padding-x);
    font-size: var(--ra-pr-filter-input-fs);
    line-height: 1.4;
    border: var(--ra-pr-filter-border);
    border-radius: var(--ra-pr-filter-radius);
}

.ra-analysis-report-shell .choices {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
}

.ra-analysis-report-shell .choices__inner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: var(--ra-pr-filter-input-height);
    padding: var(--ra-pr-filter-input-padding-y) var(--ra-pr-filter-input-padding-x);
    font-size: var(--ra-pr-filter-input-fs);
    line-height: 1.4;
    border: var(--ra-pr-filter-border);
    border-radius: var(--ra-pr-filter-radius);
    background-color: var(--ms-input-bg, #fff);
}

.ra-analysis-report-shell .choices[data-type*="select-one"] .choices__inner {
    height: var(--ra-pr-filter-input-height);
}

.ra-analysis-report-shell .choices[data-type*="select-multiple"] .choices__inner {
    height: auto;
    min-height: var(--ra-pr-filter-input-height);
    padding-bottom: 2px;
}

.ra-analysis-report-shell .choices[data-type*="select-multiple"] .choices__list--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin: 0;
}

.ra-analysis-report-shell .choices__input {
    font-size: var(--ra-pr-filter-input-fs);
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.ra-analysis-report-shell .choices[data-type*="select-multiple"] .choices__input {
    min-width: 2ch;
    flex: 1 1 auto;
    margin-top: 0.15rem;
}

.ra-analysis-report-shell .choices__list--multiple .choices__item {
    font-size: var(--ra-pr-filter-input-fs);
    font-weight: 600;
    margin: 0.15rem 0.35rem 0.15rem 0;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: #eef2ff;
    border: 1px solid #dce3f2;
    color: #1c3a6d;
}

.ra-analysis-report-shell .choices__list--multiple .choices__item .choices__button {
    border-left: 1px solid #dce3f2;
    margin-left: 0.35rem;
    padding-left: 0.35rem;
    opacity: 0.75;
}

.ra-analysis-report-shell .choices__list--multiple .choices__item .choices__button:hover {
    opacity: 1;
}

.ra-analysis-report-shell .form-label {
    font-size: var(--ra-compact-meta-fs);
}

.ra-analysis-report-shell .btn-primary:not(.btn-sm) {
    min-height: var(--ra-pr-filter-input-height);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    font-size: var(--ra-pr-filter-input-fs);
}

.ra-analysis-report-shell .btn-primary:not(.btn-sm) .material-symbols-outlined {
    font-size: 1.125rem;
    vertical-align: -0.2em;
}

/* Compact primary/outline actions: use with .btn-sm.ra-btn-compact (Generate, Export) */
.ra-analysis-report-shell .btn-sm.ra-btn-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ra-dashboard-filter-trigger {
    min-height: calc(var(--ra-input-min-height) - 0.25rem);
    padding-inline: 0.35rem;
    font-size: var(--ra-compact-meta-fs);
    line-height: 1.45;
}

/* Choices.js fix for z-index dropdown overlapping */
.choices {
    position: relative;
    z-index: 1;
}

.choices.is-open {
    z-index: 100;
}

.ra-filter-card .row > [class*='col-']:has(.choices.is-open) {
    position: relative;
    z-index: 100;
}

.choices__list--dropdown {
    z-index: 9999 !important;
    position: absolute !important;
}

.choices__list--dropdown.is-active {
    z-index: 9999 !important;
}

/* Allow card contents to break out for dropdowns */
.card,
.main-content-container,
.ra-overflow-visible {
    overflow: visible !important;
}

/*
 * App shell: the theme sets .main-content { min-height: 100vh }. Stacking that
 * with #main-content { min-height: 100vh } + nested flex children inflated
 * document scroll height past the footer. Fix: one viewport min-height on
 * body, #main-content grows with content only (no min-height: 100vh).
 * Sidebar is position:fixed so it is not a flex item; main fills the column.
 */
body.bg-body-bg {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.bg-body-bg > #main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    width: 100%;
    padding-bottom: 0;
}

#main-content > .container-fluid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    padding-bottom: 0;
}

.main-content.d-flex.flex-column {
    min-height: 0 !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-content.d-flex.flex-column > .main-content-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.main-content.d-flex.flex-column > .footer-area {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.main-content.d-flex.flex-column > .main-content-container > .footer-area {
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Primary button hover text color */
.btn-primary {
    --bs-btn-hover-color: white;
}

/* Filter card shared z-index */
.ra-filter-card {
    position: relative;
    z-index: 50;
}

/* Active filter count badge */
.ra-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #1c3a6d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.35rem;
}

/* Chart loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-loading-icon {
    animation: spin 1s linear infinite;
    color: var(--bs-secondary);
    font-size: 2rem;
}

/* Chart placeholders */
.chart-area, .chart-placeholder {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 575.98px) {
    .chart-area,
    .chart-placeholder {
        min-height: 240px;
    }
}

.ra-ooh-map {
    width: 100%;
    border-radius: 10px;
    height: min(500px, 55vh);
    min-height: 280px;
}

@media (max-width: 575.98px) {
    .ra-ooh-map {
        height: min(360px, 45vh);
        min-height: 240px;
    }
}

@media (max-width: 767.98px) {
    .step-indicator {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .step-indicator-line {
        display: none;
    }

    .step-indicator-item {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 0;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .step-indicator .step-label {
        white-space: normal;
        font-size: 0.7rem;
    }
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ra-skeleton {
    background: linear-gradient(90deg,
        rgba(226, 232, 240, 0.4) 25%,
        rgba(241, 245, 249, 0.8) 50%,
        rgba(226, 232, 240, 0.4) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    display: inline-block;
    user-select: none;
}

body.ra-dark-mode .ra-skeleton,
body:is([data-theme="dark"]) .ra-skeleton {
    background: linear-gradient(90deg,
        rgba(30, 41, 59, 0.4) 25%,
        rgba(51, 65, 85, 0.8) 50%,
        rgba(30, 41, 59, 0.4) 75%
    );
    background-size: 200% 100%;
}

/* =========================================================================
   UI consistency spec — shared component classes
   ========================================================================= */

/* Sentiment badge (Rule 2) */
.sentiment-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.sentiment-badge--positive {
    background: var(--sentiment-positive);
    color: var(--sentiment-positive-text);
}

.sentiment-badge--neutral {
    background: var(--sentiment-neutral);
    color: var(--sentiment-neutral-text);
}

.sentiment-badge--negative {
    background: var(--sentiment-negative);
    color: var(--sentiment-negative-text);
}

/* Page header (Rule 10) */
.page-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.page-header__section {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ra-color-text-tertiary);
    margin: 0 0 2px;
}

.page-header__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--ra-text-primary);
    margin: 0 0 4px;
    line-height: 1.2;
}

.page-header__description {
    font-size: 0.875rem;
    color: var(--ra-text-secondary);
    margin: 0;
    line-height: 1.45;
}

/* Card header (Rule 13) */
.ra-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ra-card-header__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ra-text-primary);
    line-height: 1.35;
}

.ra-card-header__subtitle {
    margin: 2px 0 0;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
    line-height: 1.4;
}

.ra-card-header__action {
    flex-shrink: 0;
}

/* Truncated cell (Rule 6) */
.ra-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Metric card (Rule 5) */
.ra-metric-card {
    border: 1px solid var(--ra-border-color);
    border-radius: 18px;
    background: var(--ra-surface);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.ra-metric-card__label {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #607087;
}

.ra-metric-card__value {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--ra-text-primary);
    line-height: 1.15;
}

.ra-metric-card__denominator {
    margin: 0.35rem 0 0;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-metric-card__period {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ra-color-text-tertiary);
    text-transform: uppercase;
}

.ra-metric-card__change {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
}

.ra-metric-card__change.positive {
    color: #047857;
}

.ra-metric-card__change.negative {
    color: #b91c1c;
}

/* Data rows (Rule 4 / 14) */
.ra-data-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ra-data-row:hover > td {
    background-color: rgba(15, 23, 42, 0.03);
}

body.ra-dark-mode .ra-data-row:hover > td,
body:is([data-theme="dark"]) .ra-data-row:hover > td {
    background-color: rgba(255, 255, 255, 0.04);
}

.ra-data-row__chevron {
    color: var(--ra-color-text-tertiary);
    width: 28px;
    text-align: right;
    font-size: 1.05rem;
    line-height: 1;
}

.ra-col-play {
    width: 44px;
    text-align: center;
}

.btn-icon--play {
    color: var(--ra-brand-primary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.btn-icon--play:hover {
    background: color-mix(in srgb, var(--ra-brand-primary) 12%, transparent);
    border-color: var(--ra-brand-primary);
}

.btn-icon--play .material-symbols-outlined,
.btn-icon--play .ri,
.btn-icon--play [class^="ri-"],
.btn-icon--play [class*=" ri-"] {
    font-size: 1.05rem;
    line-height: 1;
}

/* Filter bar (Rule 3 / 11) */
.ra-filter-bar {
    border: 1px solid var(--ra-border-color);
    border-radius: 18px;
    background: var(--ra-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.ra-filter-bar__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
}

.ra-filter-bar__header-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 auto;
}

.ra-filter-bar__header-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ra-filter-bar--sticky {
    position: sticky;
    top: var(--ra-sticky-filter-top, 0.75rem);
    z-index: 20;
    backdrop-filter: blur(8px);
    background: color-mix(in srgb, var(--ra-surface) 92%, transparent);
}

.ra-filter-bar-sticky-sentinel {
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.ra-filter-bar--sticky.is-pinned .ra-section-card__header {
    display: none;
}

#header-area.ra-header-area--pinned-compact .header-context__title,
#header-area.ra-header-area--pinned-compact .header-context__description,
#header-area.ra-header-area--pinned-compact .header-context__eyebrow {
    display: none;
}

#header-area.ra-header-area--pinned-compact {
    margin-bottom: 0.5rem;
}

html.ra-filter-bar-pinned .main-content-container > .d-none.d-lg-flex.justify-content-end.mb-3 {
    display: none !important;
}

.ra-date-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.ra-date-preset-chip {
    border: 1px solid var(--ra-border-color);
    background: var(--ra-surface-muted, #f8fafc);
    color: var(--ra-text-muted, #64748b);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ra-date-preset-chip:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.ra-date-preset-chip--active {
    border-color: #1c3a6d;
    background: #1c3a6d;
    color: #fff;
}

.ra-date-preset-chip--active:hover {
    border-color: #1c3a6d;
    background: #1c3a6d;
    color: #fff;
}

body.ra-dark-mode .ra-date-preset-chip,
body:is([data-theme="dark"]) .ra-date-preset-chip {
    background: rgba(148, 163, 184, 0.12);
    border-color: var(--ra-dark-border);
    color: #cbd5e1;
}

body.ra-dark-mode .ra-date-preset-chip--active,
body:is([data-theme="dark"]) .ra-date-preset-chip--active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ra-date-presets__loading {
    display: inline-flex;
    align-items: center;
    margin-left: 0.15rem;
}

.ra-date-presets__loading .spinner-border {
    width: 0.85rem;
    height: 0.85rem;
}

.ra-filter-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ra-filter-bar__body {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ra-border-color);
}

.ra-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem 0.25rem 0.75rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #1c3a6d;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid #dce3f2;
}

.ra-filter-pill__close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.1rem;
    cursor: pointer;
    opacity: 0.75;
}

.ra-filter-pill__close:hover {
    opacity: 1;
}

.ra-filter-pill--reset {
    background: transparent;
    color: var(--ra-brand-primary);
    border-color: transparent;
    cursor: pointer;
}

/* Primary button disabled state (Rule 12) */
.btn-primary.btn--disabled,
.btn-primary[disabled],
.btn-primary:disabled {
    background: var(--ra-surface-muted);
    color: var(--ra-btn-primary-disabled-fg);
    border-color: var(--ra-border-color);
    cursor: not-allowed;
    opacity: 1;
}

/* Bootstrap .text-white uses !important; must win on the button for readable disabled state */
.btn-primary.btn--disabled.text-white,
.btn-primary[disabled].text-white,
.btn-primary:disabled.text-white {
    color: var(--ra-btn-primary-disabled-fg) !important;
}

.btn-primary.btn--disabled .material-symbols-outlined,
.btn-primary.btn--disabled .text-white,
.btn-primary[disabled] .material-symbols-outlined,
.btn-primary[disabled] .text-white,
.btn-primary:disabled .material-symbols-outlined,
.btn-primary:disabled .text-white {
    color: inherit !important;
}

body.ra-dark-mode .btn-primary.btn--disabled,
body.ra-dark-mode .btn-primary[disabled],
body.ra-dark-mode .btn-primary:disabled,
body:is([data-theme="dark"]) .btn-primary.btn--disabled,
body:is([data-theme="dark"]) .btn-primary[disabled],
body:is([data-theme="dark"]) .btn-primary:disabled {
    background: var(--ra-dark-surface-muted);
    color: var(--ra-dark-text-secondary);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .btn-primary.btn--disabled.text-white,
body.ra-dark-mode .btn-primary[disabled].text-white,
body.ra-dark-mode .btn-primary:disabled.text-white,
body:is([data-theme="dark"]) .btn-primary.btn--disabled.text-white,
body:is([data-theme="dark"]) .btn-primary[disabled].text-white,
body:is([data-theme="dark"]) .btn-primary:disabled.text-white {
    color: var(--ra-dark-text-secondary) !important;
}

/* Chart cards (Rule 7) */
.ra-chart-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.ra-chart-card__body {
    position: relative;
    flex: 1;
    min-height: 200px;
}

.ra-chart-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.ra-chart-spinner__icon {
    animation: spin 1s linear infinite;
    color: var(--ra-color-text-tertiary);
    font-size: 1.75rem;
}

.ra-chart-footnote {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    color: var(--ra-color-text-tertiary);
    font-style: italic;
}

.ra-chart-panel__body {
    position: relative;
    min-height: 200px;
}

.ra-chart-panel__chart {
    width: 100%;
    min-height: 200px;
    position: relative;
}

.ra-ranked-list__empty {
    margin: 0;
    padding: 0.5rem 0;
    text-align: center;
    font-size: var(--ra-font-size-xs);
    color: var(--ra-text-muted, #64748b);
}

.ra-ranked-list__items {
    margin: 0;
}

.ra-ranked-list__item {
    cursor: pointer;
    font-size: var(--ra-font-size-xs);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ra-ranked-list__item:hover {
    color: var(--ra-text-primary);
}

.ra-ranked-list__filter-icon {
    font-size: 0.65rem;
    vertical-align: middle;
}

.modal.ra-sentiment-modal {
    z-index: 1060;
}

.modal-backdrop.show {
    z-index: 1055;
}

body.ra-sentiment-modal-open {
    overflow: hidden;
}

.ra-sentiment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.55);
    overflow-y: auto;
}

.ra-sentiment-modal-dialog {
    width: 100%;
    max-width: 1140px;
    margin: 0;
}

.ra-sentiment-modal-overlay .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ra-sentiment-modal-overlay .modal-body {
    overflow-y: auto;
}

/* Future period hatch pattern (Rule 8) */
.ra-future-hatch {
    background-image: repeating-linear-gradient(
        45deg,
        #f1f5f9,
        #f1f5f9 4px,
        #e2e8f0 4px,
        #e2e8f0 8px
    );
}

/* Sidebar active / ancestor states (Rule 9) */
.sidebar-item {
    color: var(--ra-text-secondary);
    font-weight: 400;
    border-left: 2px solid transparent;
    padding: 6px 12px 6px 14px;
    display: block;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 4px;
}

.sidebar-item:hover {
    color: var(--ra-text-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 5%, transparent);
}

.sidebar-item--ancestor {
    color: var(--ra-text-primary);
    font-weight: 500;
}

.sidebar-item--active {
    color: var(--ra-brand-primary);
    font-weight: 600;
    border-left-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

/*
 * Rule 9 — sidebar leaf vs ancestor visual semantics.
 * The vendor template applies `.active` on both expanded group toggles and
 * the matching leaf link. These overrides make the leaf the clearly active
 * row while ancestors get a softer "you are inside this group" treatment.
 */
.menu-vertical .menu-item .menu-link.menu-toggle.active {
    background: transparent !important;
    color: var(--ra-text-primary);
    font-weight: 500;
}

.menu-vertical .menu-item .menu-link.menu-toggle.active::before {
    content: none;
}

.menu-vertical .menu-sub .menu-item .menu-link.active:not(.menu-toggle) {
    color: var(--ra-brand-primary);
    font-weight: 600;
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav {
    margin-bottom: 0.35rem;
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle) {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border-left: 2px solid transparent;
    color: var(--ra-text-secondary);
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle) .menu-icon {
    margin-right: 0;
    color: inherit;
    font-size: 1.15rem;
    transition: color 0.15s ease;
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle) .title {
    color: inherit;
    font-weight: 500;
    transition: color 0.15s ease;
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle):hover {
    color: var(--ra-text-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 5%, transparent);
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) {
    color: var(--ra-brand-primary);
    font-weight: 600;
    border-left-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) .menu-icon,
.menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) .title {
    color: var(--ra-brand-primary);
    font-weight: 600;
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) {
    color: var(--ra-brand-primary);
    border-left-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

.menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) .menu-icon,
.menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) .title {
    color: var(--ra-brand-primary);
    font-weight: 600;
}

/* Legacy selector — keep for any other top-level leaf links */
.menu-vertical .menu-inner > .menu-item > .menu-link.active:not(.menu-toggle) {
    color: var(--ra-brand-primary);
    font-weight: 600;
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle),
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle) {
    color: var(--ra-text-secondary);
}

body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle):hover,
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link:not(.menu-toggle):hover {
    color: var(--ra-text-primary);
    background: color-mix(in srgb, var(--ra-dark-brand-primary, #f97583) 12%, transparent);
}

body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle),
body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle),
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle),
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) {
    color: var(--ra-dark-brand-primary, #f97583);
    border-left-color: var(--ra-dark-brand-primary, #f97583);
    background: color-mix(in srgb, var(--ra-dark-brand-primary, #f97583) 14%, transparent);
}

body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) .menu-icon,
body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) .title,
body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) .menu-icon,
body.ra-dark-mode .menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) .title,
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) .menu-icon,
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav > .menu-link.active:not(.menu-toggle) .title,
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) .menu-icon,
body:is([data-theme="dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .menu-vertical .menu-inner > .menu-item.menu-item--main-nav.active > .menu-link:not(.menu-toggle) .title {
    color: var(--ra-dark-brand-primary, #f97583);
}

/* =========================================================================
   Dark mode — token remap for balance & legibility.
   Remaps the shared surface / text / border / sentiment tokens at the body
   scope, so every component that already reads `var(--ra-*)` automatically
   adapts without per-component overrides.
   ========================================================================= */
body.ra-dark-mode,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) {
    --ra-surface: var(--ra-dark-surface, #181f2b);
    --ra-surface-muted: var(--ra-dark-surface-muted, #1f2734);
    --ra-border-color: var(--ra-dark-border, #2a3547);
    --ra-text-primary: var(--ra-dark-text-primary, #e9eef7);
    --ra-text-secondary: var(--ra-dark-text-secondary, #b7c4d6);
    --ra-color-text-tertiary: var(--ra-dark-text-tertiary, #7b8a9e);
    --ms-input-bg: var(--ra-dark-surface-muted, #1f2734);
    --ms-input-color: var(--ra-dark-text-primary, #e9eef7);
    --ra-pr-filter-border: 1px solid var(--ra-dark-border, #2a3547);

    --sentiment-positive:       rgba(16, 185, 129, 0.18);
    --sentiment-positive-text:  #6ee7b7;
    --sentiment-positive-chart: #34d399;
    --sentiment-neutral:        rgba(148, 163, 184, 0.18);
    --sentiment-neutral-text:   #cbd5e1;
    --sentiment-negative:       rgba(239, 68, 68, 0.18);
    --sentiment-negative-text:  #fca5a5;
    --sentiment-negative-chart: #f87171;
}

/*
 * Components that use hardcoded light tonal fills (filter pills / badge /
 * future-period hatch / metric deltas) still need dark-mode counterparts so
 * they stay legible without glaring against the dark surface.
 */
body.ra-dark-mode .ra-filter-pill,
body:is([data-theme="dark"]) .ra-filter-pill {
    background: rgba(99, 102, 241, 0.14);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.28);
}

body.ra-dark-mode .ra-filter-badge,
body:is([data-theme="dark"]) .ra-filter-badge {
    background: #3451a2;
}

body.ra-dark-mode .ra-metric-card__label,
body:is([data-theme="dark"]) .ra-metric-card__label {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ra-metric-card__change.positive,
body:is([data-theme="dark"]) .ra-metric-card__change.positive {
    color: #6ee7b7;
}

body.ra-dark-mode .ra-metric-card__change.negative,
body:is([data-theme="dark"]) .ra-metric-card__change.negative {
    color: #fca5a5;
}

body.ra-dark-mode .ra-filter-card .input-group-text,
body:is([data-theme="dark"]) .ra-filter-card .input-group-text {
    background-color: var(--ra-dark-surface-muted, #1f2734);
    border-color: var(--ra-dark-border, #2a3547);
    color: var(--ra-dark-text-secondary, #b7c4d6);
}

body.ra-dark-mode .ra-filter-card .choices__inner,
body:is([data-theme="dark"]) .ra-filter-card .choices__inner {
    background-color: var(--ra-dark-surface-muted, #1f2734);
    border-color: var(--ra-dark-border, #2a3547);
    color: var(--ra-dark-text-primary, #e9eef7);
}

body.ra-dark-mode .ra-filter-card .choices__input,
body:is([data-theme="dark"]) .ra-filter-card .choices__input {
    background-color: transparent;
    color: var(--ra-dark-text-primary, #e9eef7);
}

body.ra-dark-mode .ra-filter-card .choices__placeholder,
body:is([data-theme="dark"]) .ra-filter-card .choices__placeholder {
    color: var(--ra-dark-text-tertiary, #7b8a9e);
    opacity: 1;
}

body.ra-dark-mode .ra-filter-card .choices__list--multiple .choices__item,
body:is([data-theme="dark"]) .ra-filter-card .choices__list--multiple .choices__item {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
}

body.ra-dark-mode .ra-filter-card .choices__list--multiple .choices__item .choices__button,
body:is([data-theme="dark"]) .ra-filter-card .choices__list--multiple .choices__item .choices__button {
    border-left-color: rgba(99, 102, 241, 0.35);
    filter: invert(1) brightness(1.4);
}

body.ra-dark-mode .ra-filter-card .choices.is-disabled .choices__inner,
body.ra-dark-mode .ra-filter-card .choices.is-disabled .choices__input,
body:is([data-theme="dark"]) .ra-filter-card .choices.is-disabled .choices__inner,
body:is([data-theme="dark"]) .ra-filter-card .choices.is-disabled .choices__input {
    background-color: rgba(15, 23, 42, 0.45) !important;
    color: var(--ra-dark-text-tertiary, #7b8a9e) !important;
    border-color: var(--ra-dark-border, #2a3547) !important;
    opacity: 1;
}

body.ra-dark-mode .ra-filter-card .choices__list--dropdown,
body.ra-dark-mode .ra-filter-card .choices__list[aria-expanded],
body:is([data-theme="dark"]) .ra-filter-card .choices__list--dropdown,
body:is([data-theme="dark"]) .ra-filter-card .choices__list[aria-expanded] {
    background-color: var(--ra-dark-surface, #181f2b) !important;
    border-color: var(--ra-dark-border, #2a3547) !important;
}

body.ra-dark-mode .ra-filter-card .choices__list--dropdown .choices__item--selectable,
body.ra-dark-mode .ra-filter-card .choices__list[aria-expanded] .choices__item--selectable,
body:is([data-theme="dark"]) .ra-filter-card .choices__list--dropdown .choices__item--selectable,
body:is([data-theme="dark"]) .ra-filter-card .choices__list[aria-expanded] .choices__item--selectable {
    color: var(--ra-dark-text-primary, #e9eef7);
}

body.ra-dark-mode .ra-filter-card .choices__list--dropdown .choices__item--selectable.is-highlighted,
body.ra-dark-mode .ra-filter-card .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
body:is([data-theme="dark"]) .ra-filter-card .choices__list--dropdown .choices__item--selectable.is-highlighted,
body:is([data-theme="dark"]) .ra-filter-card .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: rgba(99, 102, 241, 0.18) !important;
    color: var(--ra-dark-text-primary, #e9eef7) !important;
}

body.ra-dark-mode .ra-filter-card .choices__list--dropdown .choices__item--selectable.is-selected,
body:is([data-theme="dark"]) .ra-filter-card .choices__list--dropdown .choices__item--selectable.is-selected {
    background-color: rgba(99, 102, 241, 0.28) !important;
    color: #c7d2fe !important;
}

body.ra-dark-mode .ra-filter-card .choices.is-open .choices__inner,
body:is([data-theme="dark"]) .ra-filter-card .choices.is-open .choices__inner {
    border-color: rgba(99, 102, 241, 0.45);
}

/* Flatpickr preset sidebar — PR story tables (ms-fp) and proof of flight (pof-fp) */
.ms-fp-has-presets,
.pof-fp-has-presets {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ms-fp-calendar-wrapper,
.pof-fp-calendar-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ms-fp-presets,
.pof-fp-presets {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 6px;
    min-width: 144px;
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
    border-radius: 6px 0 0 6px;
}

.ms-fp-presets::before,
.pof-fp-presets::before {
    content: 'Quick select';
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0 8px 6px;
}

.ms-fp-preset-btn,
.pof-fp-preset-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 6px 10px;
    font-size: 12.5px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    color: #374151;
    transition: background 0.12s, color 0.12s;
    line-height: 1.4;
}

.ms-fp-preset-btn:hover,
.pof-fp-preset-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.ms-fp-preset-btn.active {
    background: #1d4ed8;
    color: #fff;
    font-weight: 500;
}

.pof-fp-preset-btn.active {
    background: #1c3a6d;
    color: #fff;
    font-weight: 500;
}

body.ra-dark-mode .ms-fp-has-presets,
body.ra-dark-mode .pof-fp-has-presets,
body:is([data-theme="dark"]) .ms-fp-has-presets,
body:is([data-theme="dark"]) .pof-fp-has-presets {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.ra-dark-mode .ms-fp-presets,
body.ra-dark-mode .pof-fp-presets,
body:is([data-theme="dark"]) .ms-fp-presets,
body:is([data-theme="dark"]) .pof-fp-presets {
    background: var(--ra-dark-surface-muted, #1f2734);
    border-right-color: var(--ra-dark-border, #2a3547);
}

body.ra-dark-mode .ms-fp-presets::before,
body.ra-dark-mode .pof-fp-presets::before,
body:is([data-theme="dark"]) .ms-fp-presets::before,
body:is([data-theme="dark"]) .pof-fp-presets::before {
    color: var(--ra-dark-text-tertiary, #7b8a9e);
}

body.ra-dark-mode .ms-fp-preset-btn,
body.ra-dark-mode .pof-fp-preset-btn,
body:is([data-theme="dark"]) .ms-fp-preset-btn,
body:is([data-theme="dark"]) .pof-fp-preset-btn {
    color: var(--ra-dark-text-secondary, #b7c4d6);
}

body.ra-dark-mode .ms-fp-preset-btn:hover,
body.ra-dark-mode .pof-fp-preset-btn:hover,
body:is([data-theme="dark"]) .ms-fp-preset-btn:hover,
body:is([data-theme="dark"]) .pof-fp-preset-btn:hover {
    background: rgba(99, 102, 241, 0.16);
    color: var(--ra-dark-text-primary, #e9eef7);
}

body.ra-dark-mode .ms-fp-preset-btn.active,
body.ra-dark-mode .pof-fp-preset-btn.active,
body:is([data-theme="dark"]) .ms-fp-preset-btn.active,
body:is([data-theme="dark"]) .pof-fp-preset-btn.active {
    background: rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
}

body.ra-dark-mode .ra-chart-spinner__icon,
body:is([data-theme="dark"]) .ra-chart-spinner__icon {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ra-future-hatch,
body:is([data-theme="dark"]) .ra-future-hatch {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.035),
        rgba(255, 255, 255, 0.035) 4px,
        rgba(255, 255, 255, 0.07) 4px,
        rgba(255, 255, 255, 0.07) 8px
    );
}

body.ra-dark-mode .ra-metric-card,
body:is([data-theme="dark"]) .ra-metric-card {
    background: var(--ra-dark-surface);
    border-color: var(--ra-dark-border);
    box-shadow: none;
}

body.ra-dark-mode .ra-filter-bar,
body:is([data-theme="dark"]) .ra-filter-bar {
    background: var(--ra-dark-surface);
    border-color: var(--ra-dark-border);
    box-shadow: none;
}

body.ra-dark-mode .ra-filter-bar__body,
body:is([data-theme="dark"]) .ra-filter-bar__body {
    border-top-color: var(--ra-dark-border);
}

/* OOH — media-type legend dots & pills use platform / category tokens (Rule 1). */
.ooh-legend-dot--billboard {
    background: var(--platform-print);
}

.ooh-legend-dot--digital {
    background: var(--platform-online);
}

.ooh-legend-dot--transit {
    background: var(--platform-radio);
}

.ooh-legend-dot--street_furniture {
    background: var(--platform-tv);
}

.ooh-legend-dot--other {
    background: var(--platform-other);
}

.ooh-media-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.ooh-media-pill--billboard {
    background: color-mix(in srgb, var(--platform-print) 22%, transparent);
    color: color-mix(in srgb, var(--platform-print) 92%, #000);
}

.ooh-media-pill--digital {
    background: color-mix(in srgb, var(--platform-online) 22%, transparent);
    color: color-mix(in srgb, var(--platform-online) 92%, #000);
}

.ooh-media-pill--transit {
    background: color-mix(in srgb, var(--platform-radio) 22%, transparent);
    color: color-mix(in srgb, var(--platform-radio) 92%, #000);
}

.ooh-media-pill--street_furniture {
    background: color-mix(in srgb, var(--platform-tv) 22%, transparent);
    color: color-mix(in srgb, var(--platform-tv) 85%, #000);
}

.ooh-media-pill--other {
    background: color-mix(in srgb, var(--platform-other) 35%, transparent);
    color: var(--ra-text-secondary);
}

body.ra-dark-mode .ooh-media-pill--billboard,
body:is([data-theme="dark"]) .ooh-media-pill--billboard {
    background: color-mix(in srgb, var(--platform-print) 35%, transparent);
    color: #fde68a;
}

body.ra-dark-mode .ooh-media-pill--digital,
body:is([data-theme="dark"]) .ooh-media-pill--digital {
    background: color-mix(in srgb, var(--platform-online) 35%, transparent);
    color: #93c5fd;
}

body.ra-dark-mode .ooh-media-pill--transit,
body:is([data-theme="dark"]) .ooh-media-pill--transit {
    background: color-mix(in srgb, var(--platform-radio) 35%, transparent);
    color: #c4b5fd;
}

body.ra-dark-mode .ooh-media-pill--street_furniture,
body:is([data-theme="dark"]) .ooh-media-pill--street_furniture {
    background: color-mix(in srgb, var(--platform-tv) 35%, transparent);
    color: #6ee7b7;
}

body.ra-dark-mode .ooh-media-pill--other,
body:is([data-theme="dark"]) .ooh-media-pill--other {
    background: color-mix(in srgb, var(--platform-other) 40%, transparent);
    color: var(--ra-dark-text-secondary);
}

/* OOH — map focus control (Rule 14: icon affordance, not text-only). */
.btn-icon--ooh-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 0.5rem;
}

.btn-icon--ooh-map .material-symbols-outlined {
    font-size: 1.125rem;
    line-height: 1;
}

/* ── Responsive utilities (Phase 0+) ───────────────────────────────────── */

.ra-overlay-card {
    width: min(340px, calc(100vw - 2rem));
    max-width: 100%;
}

.ra-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ra-breadcrumb-trail .breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
}

.ra-breadcrumb-bar {
    width: 100%;
}

.ra-breadcrumb-compact {
    max-width: 100%;
    overflow: hidden;
    padding: 0.35rem 0.15rem;
}

.ra-breadcrumb-compact .breadcrumb {
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

.ra-breadcrumb-compact__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--ra-text-secondary, #64748b);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ra-breadcrumb-compact__back:hover,
.ra-breadcrumb-compact__back:focus-visible {
    background: var(--ra-surface-muted, #f1f5f9);
    color: var(--ra-brand-primary, #ed1c24);
    outline: none;
}

.ra-breadcrumb-compact__back .material-symbols-outlined {
    font-size: 1.25rem;
}

.ra-breadcrumb-compact .breadcrumb-item + .breadcrumb-item::before {
    float: none;
}

.ra-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border: 1px dashed var(--ra-border-color, #e2e8f0);
    border-radius: 0.75rem;
    background: var(--ra-surface-muted, #f8fafc);
}

.ra-empty-state__icon {
    font-size: 1.75rem;
    color: var(--ra-text-muted, #94a3b8);
}

.ra-empty-state__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ra-text-primary);
}

.ra-empty-state__description {
    margin: 0;
    max-width: 28rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ra-text-muted, #64748b);
}

.ra-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.35rem;
}

.ra-scroll-panel {
    -webkit-overflow-scrolling: touch;
}

/* Context strip (P3) */
.ra-context-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--ra-border-color, #e2e8f0);
    border-radius: 0.75rem;
    background: var(--ra-surface-muted, #f8fafc);
}

.ra-context-strip__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.ra-context-strip__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ra-text-muted, #94a3b8);
}

.ra-context-strip__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ra-text-primary);
}

.ra-context-strip__period {
    font-size: var(--ra-compact-meta-fs, 0.78rem);
    color: var(--ra-text-secondary, #64748b);
}

.ra-context-strip__actions,
.ra-context-strip__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ra-ad-page .ra-context-strip {
    border-color: color-mix(in srgb, #244a8c 25%, var(--ra-border-color, #e2e8f0));
}

.ra-ad-page .pof-group-header-row td {
    background: linear-gradient(90deg, #0f2747 0%, #1c3a6d 45%, #244a8c 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Sentiment metric variants (P3) */
.ra-metric-card--sentiment-positive {
    border-color: color-mix(in srgb, var(--sentiment-positive) 35%, var(--ra-border-color));
    background: color-mix(in srgb, var(--sentiment-positive) 8%, var(--ra-surface));
}

.ra-metric-card--sentiment-negative {
    border-color: color-mix(in srgb, var(--sentiment-negative) 35%, var(--ra-border-color));
    background: color-mix(in srgb, var(--sentiment-negative) 8%, var(--ra-surface));
}

.ra-metric-card--sentiment-neutral {
    border-color: color-mix(in srgb, var(--sentiment-neutral) 35%, var(--ra-border-color));
    background: color-mix(in srgb, var(--sentiment-neutral) 8%, var(--ra-surface));
}

.ra-metric-card[role="button"] {
    cursor: pointer;
    transition: transform var(--ra-motion-duration-fast, 0.15s) ease, box-shadow var(--ra-motion-duration-fast, 0.15s) ease, border-color var(--ra-motion-duration-fast, 0.15s) ease;
}

.ra-metric-card[role="button"]:hover,
.ra-metric-card[role="button"]:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    outline: none;
}

/* Motion system (P3) */
:root {
    --ra-motion-duration-fast: 0.15s;
    --ra-motion-duration-base: 0.25s;
    --ra-motion-duration-slow: 0.45s;
    --ra-motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes raMonitoringFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes raMetricReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ra-monitoring-page > .ra-filter-bar,
.ra-monitoring-page > .ra-loading-banner,
.ra-monitoring-page > .ra-context-strip,
.ra-monitoring-page > .row,
.ra-monitoring-page > .card,
.ra-monitoring-page > .ra-section-card {
    animation: raMonitoringFadeUp var(--ra-motion-duration-slow) var(--ra-motion-ease) both;
}

.ra-monitoring-page > *:nth-child(1) { animation-delay: 0s; }
.ra-monitoring-page > *:nth-child(2) { animation-delay: 0.04s; }
.ra-monitoring-page > *:nth-child(3) { animation-delay: 0.08s; }
.ra-monitoring-page > *:nth-child(4) { animation-delay: 0.12s; }
.ra-monitoring-page > *:nth-child(5) { animation-delay: 0.16s; }
.ra-monitoring-page > *:nth-child(6) { animation-delay: 0.2s; }

.ra-filter-bar {
    transition: box-shadow var(--ra-motion-duration-base) var(--ra-motion-ease);
}

.ra-metric-card__value.is-revealed {
    animation: raMetricReveal var(--ra-motion-duration-slow) var(--ra-motion-ease) both;
}

@media (prefers-reduced-motion: reduce) {
    .ra-monitoring-page > *,
    .ra-metric-card__value.is-revealed {
        animation: none !important;
        transition: none !important;
    }

    .ra-metric-card[role="button"]:hover,
    .ra-metric-card[role="button"]:focus-visible {
        transform: none;
    }
}

body.ra-dark-mode .ra-context-strip,
body:is([data-theme="dark"]) .ra-context-strip {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

body.ra-dark-mode .ra-empty-state,
body:is([data-theme="dark"]) .ra-empty-state {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

/* Monitoring — chart panels, ranked lists, and table cards (bg-white overrides) */
body.ra-dark-mode .ra-chart-panel.card,
body.ra-dark-mode .ra-ranked-list.card,
body.ra-dark-mode .ra-ad-page > .card.bg-white,
body.ra-dark-mode .ra-ad-page .ra-section-card.card,
body:is([data-theme="dark"]) .ra-chart-panel.card,
body:is([data-theme="dark"]) .ra-ranked-list.card,
body:is([data-theme="dark"]) .ra-ad-page > .card.bg-white,
body:is([data-theme="dark"]) .ra-ad-page .ra-section-card.card {
    background: var(--ra-dark-surface, #181f2b) !important;
    border-color: var(--ra-dark-border, #2a3547) !important;
    box-shadow: none;
}

body.ra-dark-mode .ra-ad-page .border-bottom,
body:is([data-theme="dark"]) .ra-ad-page .border-bottom {
    border-color: var(--ra-dark-border, #2a3547) !important;
}

body.ra-dark-mode .ra-ranked-list__item,
body:is([data-theme="dark"]) .ra-ranked-list__item {
    color: var(--ra-dark-text-primary, #e9eef7);
}

body.ra-dark-mode .ra-ranked-list__item:hover,
body:is([data-theme="dark"]) .ra-ranked-list__item:hover {
    color: var(--ra-dark-text-primary, #e9eef7);
    background: rgba(148, 163, 184, 0.06);
}

body.ra-dark-mode .ra-ranked-list__item--active.text-primary,
body:is([data-theme="dark"]) .ra-ranked-list__item--active.text-primary {
    color: #93c5fd !important;
}

body.ra-dark-mode .ra-ranked-list__count.bg-secondary.bg-opacity-25,
body:is([data-theme="dark"]) .ra-ranked-list__count.bg-secondary.bg-opacity-25 {
    background: rgba(148, 163, 184, 0.18) !important;
    color: var(--ra-dark-text-secondary, #b7c4d6) !important;
}

body.ra-dark-mode .ra-ranked-list__count.bg-primary,
body:is([data-theme="dark"]) .ra-ranked-list__count.bg-primary {
    background: rgba(59, 130, 246, 0.35) !important;
    color: #dbeafe !important;
}

body.ra-dark-mode .ra-ad-page .text-muted,
body:is([data-theme="dark"]) .ra-ad-page .text-muted {
    color: var(--ra-dark-text-secondary, #b7c4d6) !important;
}

body.ra-dark-mode .ra-ad-page .ra-context-strip,
body:is([data-theme="dark"]) .ra-ad-page .ra-context-strip {
    border-color: rgba(36, 74, 140, 0.45);
}

.company-dropdown-menu {
    max-height: min(60vh, 22rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.header-area .company-dropdown-item {
    position: relative;
    z-index: 20;
}

/* Mobile drawer — sidebar must sit above header org switcher (z-index: 20) */
@media (max-width: 1199.98px) {
    body[sidebar-data-theme="sidebar-hide"] .sidebar-area {
        z-index: 30;
        overflow-x: hidden;
    }

    body[sidebar-data-theme="sidebar-hide"] .header-area .company-dropdown-item {
        z-index: auto;
    }
}

.ra-table-col-title {
    min-width: 12rem;
}

.ra-table-col-station {
    min-width: 7.5rem;
}

.ra-table-col-industry {
    min-width: 8.75rem;
}

.ra-table-col-sentiment {
    min-width: 5.625rem;
}

.ra-table-sticky-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ra-table-sticky-wrap .ra-table-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--ra-surface, #fff);
    box-shadow: 2px 0 6px rgba(15, 23, 42, 0.04);
}

.ra-table-sticky-wrap thead .ra-table-sticky-col {
    z-index: 3;
}

body.ra-dark-mode .ra-table-sticky-wrap .ra-table-sticky-col,
body:is([data-theme="dark"]) .ra-table-sticky-wrap .ra-table-sticky-col {
    background: var(--ra-dark-surface, #181f2b);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.25);
}

.ra-story-mobile-meta {
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    line-height: 1.35;
}

.ra-flex-min-0 {
    min-width: 0;
}

.ra-story-mobile-sentiment .sentiment-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
}

.ra-table-desktop-only {
    display: none;
}

.ra-cards-mobile-only {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .ra-table-desktop-only {
        display: block;
    }

    .ra-cards-mobile-only {
        display: none !important;
    }
}

.ra-story-mobile-card,
.ra-ad-mobile-card {
    background: var(--ra-surface, #fff);
    border: 1px solid var(--ra-border-color, #e2e8f0);
    border-radius: 0.65rem;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ra-story-mobile-card:hover,
.ra-ad-mobile-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.ra-story-mobile-card__header,
.ra-ad-mobile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ra-story-mobile-card__body,
.ra-ad-mobile-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.ra-story-mobile-card__title,
.ra-ad-mobile-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ra-text-primary);
    word-break: break-word;
}

.ra-story-mobile-card__meta,
.ra-ad-mobile-card__meta {
    margin: 0.35rem 0 0;
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    line-height: 1.35;
    color: var(--ra-text-muted, #64748b);
}

.ra-story-mobile-card__aside,
.ra-ad-mobile-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ra-story-mobile-card__chevron,
.ra-ad-mobile-card__chevron {
    font-size: 1.25rem;
    color: var(--ra-text-muted, #94a3b8);
}

.ra-story-mobile-card__detail,
.ra-ad-mobile-card__detail {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ra-border-color, #e2e8f0);
}

.ra-story-mobile-card__facts {
    display: grid;
    grid-template-columns: minmax(5rem, auto) 1fr;
    gap: 0.35rem 0.75rem;
    font-size: var(--ra-font-size-xs, 0.78rem);
}

.ra-story-mobile-card__facts dt {
    margin: 0;
    color: var(--ra-text-muted, #64748b);
    font-weight: 500;
}

.ra-story-mobile-card__facts dd {
    margin: 0;
}

.ra-story-mobile-card__summary {
    margin: 0.75rem 0 0;
    font-size: var(--ra-font-size-xs, 0.78rem);
    line-height: 1.55;
    color: var(--ra-text-secondary);
}

.ra-story-mobile-card__badge {
    font-size: 0.62rem;
    vertical-align: middle;
}

.ra-ad-mobile-card {
    border-left-width: 3px;
    border-left-style: solid;
}

.ra-ad-mobile-card--radio { border-left-color: var(--platform-radio); }
.ra-ad-mobile-card--tv { border-left-color: var(--platform-tv); }
.ra-ad-mobile-card--print { border-left-color: var(--platform-print); }
.ra-ad-mobile-card--online { border-left-color: var(--platform-online); }
.ra-ad-mobile-card--other { border-left-color: var(--platform-other); }

body.ra-dark-mode .ra-story-mobile-card,
body.ra-dark-mode .ra-ad-mobile-card,
body:is([data-theme="dark"]) .ra-story-mobile-card,
body:is([data-theme="dark"]) .ra-ad-mobile-card {
    background: var(--ra-dark-surface, #181f2b);
    border-color: rgba(148, 163, 184, 0.2);
}

@media (max-width: 1199.98px) {
    .header-area {
        padding: 0.75rem 0.85rem;
        margin-top: 0.75rem;
    }

    .header-area .ra-header-top-row {
        position: relative;
        width: 100%;
        min-height: 2.75rem;
        padding-left: 2.75rem;
        justify-content: flex-start;
    }

    .header-area .ra-header-burger-slot {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .header-area .header-burger-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
    }

    .header-area .ra-header-top-row .header-context {
        text-align: left;
        max-width: none;
        margin-inline: 0;
        min-width: 0;
    }

    .header-area .header-context__title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-area .ra-header-row__actions .right-header-content {
        margin-top: 0.65rem !important;
    }

    .header-area .ra-header-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end !important;
        gap: 0.35rem;
        width: 100%;
    }

    .header-area .company-dropdown-item {
        flex: 1 1 100%;
        order: -1;
        margin-bottom: 0.15rem;
        min-width: 0;
    }

    .header-area .company-dropdown-btn {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: 0.45rem 0.65rem !important;
    }

    .header-area .company-name__hint {
        display: none;
    }

    .header-area .company-name__label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .header-area .ra-header-top-row {
        padding-left: 0;
        justify-content: center;
    }

    .header-area .ra-header-top-row .header-context {
        text-align: center;
        max-width: calc(100% - 5.5rem);
        margin-inline: auto;
    }

    .header-context__title {
        font-size: 1rem;
    }

    .ra-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .ra-toolbar-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        min-height: 2.75rem;
    }

    .apexcharts-canvas,
    .apexcharts-svg,
    [id$="-chart"] {
        max-width: 100%;
    }

    .flatpickr-calendar,
    .ms-fp-has-presets,
    .pof-fp-has-presets {
        max-width: calc(100vw - 1.5rem) !important;
        width: min(100%, calc(100vw - 1.5rem)) !important;
        box-sizing: border-box;
    }

    .ms-fp-has-presets,
    .pof-fp-has-presets {
        flex-direction: column !important;
    }

    .ms-fp-presets,
    .pof-fp-presets {
        min-width: 0 !important;
        width: 100% !important;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 6px 6px 0 0;
    }

    .ms-fp-preset-btn,
    .pof-fp-preset-btn {
        width: auto;
        flex: 1 1 auto;
    }

    .ra-section-card--responsive {
        padding: 1rem !important;
    }

    .ra-filter-card--responsive {
        padding: 1rem !important;
    }

    .ra-filter-card--responsive .ra-section-card__header {
        margin-bottom: 0.65rem;
    }

    .ra-table-sticky-wrap .ra-table-sticky-col {
        position: static;
        box-shadow: none;
        max-width: none;
    }

    .ra-table-col-title,
    .ra-table-col-sentiment {
        min-width: 0;
    }

    .ra-pagination-touch.pagination .page-link {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.35rem 0.65rem;
    }

    .company-dropdown-menu {
        width: min(20rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        max-height: min(60vh, 22rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1060;
    }
}

@media (min-width: 1200px) {
    .header-area .ra-header-burger-slot {
        position: static;
        transform: none;
    }

    .header-area .ra-header-top-row {
        padding-left: 0;
    }

    .header-area .ra-header-top-row .header-context {
        text-align: left;
        max-width: 38rem;
        margin-inline: 0;
    }

    .header-area .header-context__title {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    html {
        overflow-x: clip;
    }

    body.bg-body-bg {
        overflow-x: clip;
    }

    #main-content,
    .main-content {
        max-width: 100%;
        overflow-x: clip;
    }

    .container-fluid {
        --bs-gutter-x: 0.75rem;
        max-width: 100%;
        overflow-x: clip;
    }

    .header-area {
        margin-top: 0.5rem;
        max-width: 100%;
        overflow-x: clip;
    }

    .ra-header-row {
        --bs-gutter-x: 0.5rem;
        margin-inline: 0;
    }

    .ra-header-actions {
        gap: 0.25rem;
    }

    .header-area .company-dropdown-btn {
        padding: 0.4rem 0.5rem !important;
    }

    .header-area .header-right-item {
        flex-shrink: 0;
    }

    .ra-pagination-compact .ra-pagination-edge,
    .ra-pagination-compact .ra-pagination-page,
    .ra-pagination-compact .ra-pagination-ellipsis {
        display: none !important;
    }

    .ra-pagination-mobile-status .page-link {
        min-width: auto;
        padding-inline: 0.5rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .p-20,
    .ra-section-card--responsive {
        padding: 0.75rem !important;
    }

    .media-agent-shell {
        right: max(0.5rem, env(safe-area-inset-right, 0.5rem));
        bottom: max(0.5rem, env(safe-area-inset-bottom, 0.5rem));
    }

    .media-agent-panel {
        width: min(26rem, calc(100% - 1rem));
        max-width: calc(100vw - 1rem);
    }
}

/* Auth pages (layouts/auth) — fluid shell padding below desktop card width */
body.bg-body-bg .ra-auth-page {
    overflow-x: clip;
}

body.bg-body-bg .ra-auth-shell {
    width: 100%;
    max-width: 930px;
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 4vw, 1.5rem);
}

@media (min-width: 992px) {
    body.bg-body-bg .ra-auth-shell {
        padding-inline: 0;
    }
}

body.bg-body-bg .ra-auth-card {
    border-radius: 0.625rem;
}

@media (max-width: 991.98px) {
    body.bg-body-bg .ra-auth-card {
        padding: 1.25rem 1rem !important;
    }
}

@media (min-width: 992px) {
    body.bg-body-bg .ra-auth-card {
        padding-top: 100px;
        padding-bottom: 100px;
        padding-left: 130px;
        padding-right: 130px;
    }
}

body.bg-body-bg .ra-auth-card__body {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    body.bg-body-bg .ra-auth-card__body {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    body.bg-body-bg .ra-auth-card__body {
        padding: 0;
    }
}

body.bg-body-bg .auth-logo {
    height: 52px;
    max-width: 100%;
}

@media (min-width: 768px) {
    body.bg-body-bg .auth-logo {
        height: 60px;
    }
}

body.bg-body-bg .auth-submit-btn {
    padding-top: 18px;
    padding-bottom: 18px;
}

body.bg-body-bg .auth-password-toggle {
    color: #a9a9c8;
    font-size: 22px;
    right: 15px;
}

body.bg-body-bg .auth-title {
    margin-bottom: 6px;
}

body.bg-body-bg .ra-auth-lede {
    max-width: 490px;
    margin-inline: auto;
}

/* ── OOH Outdoor Sites — inventory explorer ─────────────────────────────── */

.ooh-page .card,
.ooh-page .main-content-container {
    overflow: visible !important;
}

.ooh-coord {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.04em;
}

.ooh-context-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    max-width: 100%;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--ra-surface-muted, #f8fafc);
    border: 1px solid var(--ra-border-color, #dee2e6);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    overflow: hidden;
}

.ooh-context-strip--ops {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--ra-brand-primary, #ed1c24) 18%, var(--ra-border-color, #dee2e6));
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(225deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        var(--ra-surface-muted, #f8fafc);
    background-size: 18px 18px;
}

.ooh-context-strip__scan-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ra-brand-primary, #ed1c24);
}

.ooh-context-strip__live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ra-brand-primary, #ed1c24);
    box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.45);
    animation: ooh-live-pulse 2.2s ease infinite;
}

.ooh-context-strip__coverage {
    margin-left: auto;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ra-text-secondary, #64748b);
}

@keyframes ooh-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(237, 28, 36, 0); }
}

.ooh-context-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ra-text-secondary, #64748b);
    font-weight: 600;
}

.ooh-context-strip__item strong {
    color: var(--ra-text-primary, #0f172a);
    font-weight: 700;
}

.ooh-context-strip__divider {
    width: 1px;
    height: 1rem;
    background: var(--ra-border-color, #dee2e6);
}

.ooh-context-strip__mobile-summary {
    align-items: center;
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ra-text-secondary, #64748b);
}

@media (max-width: 575.98px) {
    .ooh-context-strip__mobile-summary {
        flex: 1 1 100%;
        margin-left: 0;
        padding-top: 0.35rem;
        border-top: 1px solid var(--ra-border-color, #dee2e6);
    }
}

.ooh-breadcrumb-compact {
    max-width: 100%;
    overflow: hidden;
    padding: 0.35rem 0.15rem;
}

.ooh-breadcrumb-compact .breadcrumb {
    min-width: 0;
    overflow: hidden;
}

.ooh-breadcrumb-compact__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--ra-text-secondary, #64748b);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ooh-breadcrumb-compact__back:hover,
.ooh-breadcrumb-compact__back:focus-visible {
    background: var(--ra-surface-muted, #f1f5f9);
    color: var(--ra-brand-primary, #ed1c24);
    outline: none;
}

.ooh-breadcrumb-compact__back .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

.ooh-breadcrumb-compact .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ra-text-tertiary, #94a3b8);
}

.ooh-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ooh-toolbar__primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ooh-data-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 10px;
    background: var(--ra-surface-muted, #f1f5f9);
    border: 1px solid var(--ra-border-color, #dee2e6);
    gap: 0.15rem;
}

.ooh-data-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ra-text-secondary, #64748b);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ooh-data-toggle__btn:hover,
.ooh-data-toggle__btn:focus-visible {
    color: var(--ra-text-primary, #0f172a);
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}

.ooh-data-toggle__btn.is-active {
    background: var(--ra-surface, #fff);
    color: var(--ra-brand-primary, #ed1c24);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ooh-data-toggle__btn .material-symbols-outlined {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .ooh-data-toggle__label {
        display: none;
    }

    .ooh-data-toggle__btn {
        padding: 0.42rem 0.55rem;
    }
}

.ooh-page[data-data-mode="proof"] .ooh-layout-toggle,
.ooh-page[data-data-mode="proof"] .ooh-split-map {
    display: none !important;
}

.ooh-page[data-data-mode="proof"] .ooh-split-container {
    grid-template-columns: minmax(0, 1fr) !important;
}

.ooh-view-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 10px;
    background: var(--ra-surface-muted, #f1f5f9);
    border: 1px solid var(--ra-border-color, #dee2e6);
    gap: 0.15rem;
}

.ooh-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ra-text-secondary, #64748b);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ooh-view-toggle__btn:hover,
.ooh-view-toggle__btn:focus-visible {
    color: var(--ra-text-primary, #0f172a);
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}

.ooh-view-toggle__btn.is-active {
    background: var(--ra-surface, #fff);
    color: var(--ra-brand-primary, #ed1c24);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ooh-view-toggle__btn .material-symbols-outlined {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 1199.98px) {
    .ooh-view-toggle__btn--split {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ooh-view-toggle__label {
        display: none;
    }

    .ooh-view-toggle__btn {
        padding: 0.42rem 0.55rem;
    }

    .ooh-view-toggle__btn .material-symbols-outlined {
        font-size: 1.15rem;
    }
}

.ooh-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ooh-active-chips:empty {
    display: none;
}

.ooh-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ra-brand-primary, #ed1c24) 12%, transparent);
    color: var(--ra-text-primary, #0f172a);
    border: 1px solid color-mix(in srgb, var(--ra-brand-primary, #ed1c24) 25%, transparent);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
}

.ooh-filter-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
}

.ooh-filter-chip button:hover {
    opacity: 1;
}

.ooh-metrics-row > [class*="col-"] {
    display: flex;
}

.ooh-metrics-row--cartography > [class*="col-"] .ra-metric-card {
    opacity: 0;
    transform: translateY(10px);
}

.ooh-metrics-row--cartography.ooh-metrics-row--revealed > [class*="col-"]:nth-child(1) .ra-metric-card {
    animation: ooh-metric-reveal 0.5s ease 0.05s forwards;
}

.ooh-metrics-row--cartography.ooh-metrics-row--revealed > [class*="col-"]:nth-child(2) .ra-metric-card {
    animation: ooh-metric-reveal 0.5s ease 0.12s forwards;
}

.ooh-metrics-row--cartography.ooh-metrics-row--revealed > [class*="col-"]:nth-child(3) .ra-metric-card {
    animation: ooh-metric-reveal 0.5s ease 0.19s forwards;
}

.ooh-metrics-row--cartography.ooh-metrics-row--revealed > [class*="col-"]:nth-child(4) .ra-metric-card {
    animation: ooh-metric-reveal 0.5s ease 0.26s forwards;
}

@keyframes ooh-metric-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ra-metric-card--ooh {
    position: relative;
    width: 100%;
    padding-left: 1.15rem;
    overflow: hidden;
}

.ra-metric-card--ooh::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 18px 0 0 18px;
}

.ra-metric-card--ooh-total::before {
    background: var(--platform-other);
}

.ra-metric-card--ooh-billboard::before {
    background: var(--platform-print);
}

.ra-metric-card--ooh-digital::before {
    background: var(--platform-online);
}

.ra-metric-card--ooh-mapped::before {
    background: var(--platform-tv);
}

.ra-metric-card--ooh .ra-metric-card__icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.35rem;
    opacity: 0.35;
    line-height: 1;
}

.ra-metric-card--ooh-total .ra-metric-card__icon {
    color: var(--platform-other);
}

.ra-metric-card--ooh-billboard .ra-metric-card__icon {
    color: var(--platform-print);
}

.ra-metric-card--ooh-digital .ra-metric-card__icon {
    color: var(--platform-online);
}

.ra-metric-card--ooh-mapped .ra-metric-card__icon {
    color: var(--platform-tv);
}

.ra-metric-card__value.is-animating {
    transition: color 0.2s ease;
}

.ooh-split-container {
    display: grid;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.ooh-split-table,
.ooh-split-map {
    min-width: 0;
    max-width: 100%;
}

.ooh-split-container[data-view-mode="list"] {
    grid-template-columns: minmax(0, 1fr);
}

.ooh-split-container[data-view-mode="map"] {
    grid-template-columns: minmax(0, 1fr);
}

.ooh-split-container[data-view-mode="map"] .ooh-split-table {
    display: none;
}

.ooh-split-container[data-view-mode="list"] .ooh-split-map {
    display: none;
}

@media (min-width: 1200px) {
    .ooh-split-container[data-view-mode="split"] {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }

    .ooh-split-container[data-view-mode="split"] .ooh-split-map .ra-section-card {
        position: sticky;
        top: 1rem;
    }

    .ooh-split-container[data-view-mode="split"] .ooh-split-table .ra-section-card {
        max-height: calc(100vh - 8rem);
        display: flex;
        flex-direction: column;
    }

    .ooh-split-container[data-view-mode="split"] .ooh-split-table .ooh-table-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
}

.ooh-split-table .ooh-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 1199.98px) {
    .ooh-split-container[data-view-mode="split"] {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 1199.98px) {
    .ooh-split-container[data-view-mode="split"] {
        display: flex;
        flex-direction: column-reverse;
    }
}

.ooh-sites-table-card .ooh-table-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--ra-surface-muted, #f8fafc);
    border: 1px solid var(--ra-border-color, #dee2e6);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-sites-table-card .ooh-table-status:empty {
    display: none;
}

.ooh-table-status__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ooh-table-status__item .material-symbols-outlined {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.75;
}

.ooh-table-status__divider {
    width: 1px;
    height: 0.9rem;
    background: var(--ra-border-color, #dee2e6);
}

.ooh-sites-table .ooh-table-head th {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ra-text-secondary, #64748b);
    background: var(--ra-surface-muted, #f8fafc);
    border-bottom: 1px solid var(--ra-border-color, #dee2e6);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    white-space: nowrap;
}

.ooh-sites-table tbody td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    vertical-align: middle;
    border-bottom: 1px solid color-mix(in srgb, var(--ra-border-color, #dee2e6) 65%, transparent);
}

.ooh-site-row {
    cursor: pointer;
    transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.ooh-site-row:hover {
    background-color: rgba(59, 130, 246, 0.04) !important;
}

.ooh-site-row--selected td {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

.ooh-site-row--selected .ra-table-sticky-col {
    box-shadow: inset 3px 0 0 var(--ra-brand-primary, #ed1c24);
}

.ooh-site-row--expanded td {
    border-bottom-color: transparent !important;
}

.ooh-site-detail-row td {
    padding-top: 0 !important;
    padding-bottom: 0.75rem !important;
    border-left: 3px solid var(--platform-online, #3b82f6) !important;
}

.ooh-site-detail {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--ra-surface-muted, #f8fafc);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
}

.ooh-site-detail__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem 1rem;
}

.ooh-site-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ooh-site-thumbnail {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-site-thumbnail-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.ooh-site-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: var(--ra-surface-muted, #f4f6fc);
    border: 1px dashed var(--ra-border-color, #dee2e6);
}

.ooh-site-thumbnail-placeholder .material-symbols-outlined {
    color: var(--ra-color-text-tertiary, #94a3b8);
}

.ooh-site-row--billboard {
    border-left: 3px solid transparent;
}

.ooh-site-row--billboard .ra-table-sticky-col {
    box-shadow: inset 3px 0 0 var(--platform-print);
}

.ooh-site-row--digital .ra-table-sticky-col {
    box-shadow: inset 3px 0 0 var(--platform-online);
}

.ooh-site-row--transit .ra-table-sticky-col {
    box-shadow: inset 3px 0 0 var(--platform-radio);
}

.ooh-site-row--street_furniture .ra-table-sticky-col {
    box-shadow: inset 3px 0 0 var(--platform-tv);
}

.ooh-site-row--selected.ooh-site-row--billboard .ra-table-sticky-col,
.ooh-site-row--selected.ooh-site-row--digital .ra-table-sticky-col,
.ooh-site-row--selected.ooh-site-row--transit .ra-table-sticky-col,
.ooh-site-row--selected.ooh-site-row--street_furniture .ra-table-sticky-col {
    box-shadow: inset 3px 0 0 var(--ra-brand-primary, #ed1c24);
}

.ooh-site-row__photo {
    width: 5.5rem;
}

.ooh-site-cell__main {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.ooh-site-cell__text {
    flex: 1;
    min-width: 0;
}

.ooh-site-cell__title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.ooh-site-cell__title {
    font-weight: 600;
    line-height: 1.35;
    color: var(--ra-text-primary, #0f172a);
}

.ooh-site-cell__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-cell__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.25rem;
}

.ooh-site-cell__id {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-cell__pill {
    font-size: 0.68rem;
}

.ooh-site-thumbnail--compact,
.ooh-site-thumbnail-placeholder--compact {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.ooh-site-thumbnail-wrap--compact {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ooh-site-thumbnail-placeholder--compact .material-symbols-outlined {
    font-size: 1.1rem;
}

.ooh-table-region {
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
    color: var(--ra-text-primary, #0f172a);
}

.ooh-table-road {
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    color: var(--ra-text-secondary, #64748b);
}

.ooh-table-actions {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.15rem;
    border-radius: 8px;
    background: var(--ra-surface-muted, #f8fafc);
    border: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-table-actions .btn {
    padding: 0.25rem 0.35rem;
    line-height: 1;
}

.ooh-empty-state {
    padding: 2rem 1.25rem;
    text-align: center;
    border-radius: 12px;
    background: var(--ra-surface-muted, #f8fafc);
    border: 1px dashed var(--ra-border-color, #dce3f2);
}

.ooh-empty-state__icon {
    font-size: 2.5rem;
    opacity: 0.4;
    color: var(--ra-text-secondary, #64748b);
    margin-bottom: 0.5rem;
}

.ooh-empty-state__title {
    margin: 0 0 0.35rem;
    font-size: var(--ra-compact-text-fs, 0.9rem);
    font-weight: 700;
    color: var(--ra-text-primary, #0f172a);
}

.ooh-empty-state__text {
    margin: 0;
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    color: var(--ra-text-secondary, #64748b);
}

.ooh-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.ooh-map-card {
    overflow: hidden;
}

.ooh-map-shell {
    position: relative;
    isolation: isolate;
}

.ooh-map-shell--cartography .ra-ooh-map {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.ooh-map-shell__grid {
    position: absolute;
    inset: 0;
    z-index: 401;
    pointer-events: none;
    border-radius: 10px;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 100%);
}

.ooh-map-shell__vignette {
    position: absolute;
    inset: 0;
    z-index: 402;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: inset 0 0 48px rgba(15, 23, 42, 0.22);
}

.ooh-map-frame__corner {
    position: absolute;
    z-index: 503;
    width: 16px;
    height: 16px;
    pointer-events: none;
    border-color: color-mix(in srgb, var(--ra-brand-primary, #ed1c24) 70%, #fff);
}

.ooh-map-frame__corner--tl {
    top: 0.55rem;
    left: 0.55rem;
    border-top: 2px solid;
    border-left: 2px solid;
}

.ooh-map-frame__corner--tr {
    top: 0.55rem;
    right: 0.55rem;
    border-top: 2px solid;
    border-right: 2px solid;
}

.ooh-map-frame__corner--bl {
    bottom: 0.55rem;
    left: 0.55rem;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.ooh-map-frame__corner--br {
    bottom: 0.55rem;
    right: 0.55rem;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.ooh-ops-coords {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    background: rgba(8, 15, 30, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.ooh-ops-coords__label {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.ooh-ops-coords__value {
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
}

.ooh-empty-state--cartography {
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        var(--ra-surface-muted, #f8fafc);
    background-size: 20px 20px;
}

.ooh-map-empty-overlay {
    position: absolute;
    inset: 0;
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ra-surface-muted, #f8fafc) 88%, transparent);
    backdrop-filter: blur(2px);
}

.ooh-map-empty-overlay.d-none {
    display: none !important;
}

.ooh-map-loading-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 460;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
}

.ooh-map-loading-badge.d-none {
    display: none !important;
}

#sitesMap {
    background-color: #f4f6fc;
}

.ooh-page .custom-marker {
    background: transparent !important;
    border: none !important;
}

.ooh-page .ooh-marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ooh-page .ooh-marker-dot--pulse {
    animation: ooh-marker-pulse 1.2s ease infinite;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
}

@keyframes ooh-marker-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.15); }
}

.ooh-page .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.ooh-page .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ooh-page .leaflet-popup-tip {
    background: #fff;
}

.ooh-page .site-popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ooh-page .site-photo-container {
    margin: 0;
    overflow: hidden;
    height: 180px;
    position: relative;
}

.ooh-page .photo-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.ooh-page .site-popup-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ooh-page .site-popup-carousel-nav--prev {
    left: 8px;
}

.ooh-page .site-popup-carousel-nav--next {
    right: 8px;
}

.ooh-page .site-popup-details {
    padding: 16px;
    background: #fff;
    font-size: 13px;
    color: #555;
}

.ooh-page .site-popup-details strong {
    font-size: 16px;
    color: #111;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ooh-page .site-popup-info-row {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
}

.ooh-page .site-popup-label {
    font-weight: 600;
    color: #888;
    width: 60px;
    flex-shrink: 0;
    font-size: 12px;
}

.ooh-page .site-popup-value {
    color: #333;
    font-weight: 500;
}

.ooh-page .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.ooh-page .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ooh-page .leaflet-fullscreen-on #sitesMap {
    height: 100vh !important;
    width: 100vw !important;
}

.ooh-page .fullscreen-icon::before {
    font-family: "remixicon" !important;
}

.ooh-page .leaflet-control-zoom a {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.ooh-page .leaflet-control-zoom a:hover {
    background-color: #f0f0f0 !important;
}

.ooh-page .loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.ooh-page .loading-overlay.hidden {
    display: none;
}

.ooh-page .ooh-skeleton-row td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.ooh-page .ooh-skeleton-block {
    height: 0.85rem;
    border-radius: 4px;
}

.ooh-page .ooh-skeleton-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
}

.ooh-filter-card {
    --ooh-input-height: 34px;
    --ooh-input-font: 0.875rem;
    --ooh-input-padding-y: 0.3rem;
    --ooh-input-padding-x: 0.65rem;
    --ooh-input-border: 1px solid #dee2e6;
    --ooh-input-radius: 0.375rem;
}

.ooh-filter-card .form-control,
.ooh-filter-card .form-select {
    height: var(--ooh-input-height);
    min-height: var(--ooh-input-height);
    font-size: var(--ooh-input-font);
    padding: var(--ooh-input-padding-y) var(--ooh-input-padding-x);
    border: var(--ooh-input-border);
    border-radius: var(--ooh-input-radius);
    line-height: 1.4;
}

.ooh-filter-card .choices__inner {
    min-height: var(--ooh-input-height);
    font-size: var(--ooh-input-font);
    padding: var(--ooh-input-padding-y) var(--ooh-input-padding-x);
    border: var(--ooh-input-border);
    border-radius: var(--ooh-input-radius);
    background-color: #fff;
    line-height: 1.4;
}

.ooh-filter-card .choices[data-type*="select-multiple"] .choices__inner {
    padding-bottom: 2px;
}

.ooh-filter-card .choices__input {
    font-size: var(--ooh-input-font);
}

.ooh-page .choices {
    position: relative;
    z-index: 1;
}

.ooh-page .choices__list--dropdown {
    z-index: 9999 !important;
    position: absolute !important;
}

.ooh-page .choices__list--dropdown.is-active {
    z-index: 9999 !important;
}

.ooh-page .marker-cluster-small,
.ooh-page .marker-cluster-medium,
.ooh-page .marker-cluster-large {
    background-color: color-mix(in srgb, var(--platform-online) 25%, transparent);
}

.ooh-page .marker-cluster-small div,
.ooh-page .marker-cluster-medium div,
.ooh-page .marker-cluster-large div {
    background-color: var(--platform-online);
    color: #fff;
    font-weight: 700;
}

body.ra-dark-mode .ooh-context-strip,
body:is([data-theme="dark"]) .ooh-context-strip {
    background: rgba(15, 23, 42, 0.45);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-context-strip--ops,
body:is([data-theme="dark"]) .ooh-context-strip--ops {
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(225deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        rgba(15, 23, 42, 0.55);
    background-size: 18px 18px;
    border-color: color-mix(in srgb, var(--ra-dark-brand-primary, #ed1c24) 22%, var(--ra-dark-border));
}

body.ra-dark-mode .ooh-map-shell__grid,
body:is([data-theme="dark"]) .ooh-map-shell__grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

body.ra-dark-mode .ooh-map-shell__vignette,
body:is([data-theme="dark"]) .ooh-map-shell__vignette {
    box-shadow: inset 0 0 56px rgba(0, 0, 0, 0.45);
}

body.ra-dark-mode .ooh-empty-state--cartography,
body:is([data-theme="dark"]) .ooh-empty-state--cartography {
    background:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        rgba(15, 23, 42, 0.35);
    background-size: 20px 20px;
}

body.ra-dark-mode .ooh-context-strip__item,
body:is([data-theme="dark"]) .ooh-context-strip__item {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-context-strip__item strong,
body:is([data-theme="dark"]) .ooh-context-strip__item strong {
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-view-toggle,
body:is([data-theme="dark"]) .ooh-view-toggle {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-view-toggle__btn,
body:is([data-theme="dark"]) .ooh-view-toggle__btn {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-view-toggle__btn.is-active,
body:is([data-theme="dark"]) .ooh-view-toggle__btn.is-active {
    background: var(--ra-dark-surface);
    color: var(--ra-dark-brand-primary, #ed1c24);
}

body.ra-dark-mode .ooh-filter-chip,
body:is([data-theme="dark"]) .ooh-filter-chip {
    background: color-mix(in srgb, var(--ra-dark-brand-primary, #ed1c24) 18%, transparent);
    border-color: color-mix(in srgb, var(--ra-dark-brand-primary, #ed1c24) 35%, transparent);
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-site-row:hover,
body:is([data-theme="dark"]) .ooh-site-row:hover {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

body.ra-dark-mode .ooh-site-row--selected td,
body:is([data-theme="dark"]) .ooh-site-row--selected td {
    background-color: rgba(59, 130, 246, 0.16) !important;
}

body.ra-dark-mode .ooh-site-detail,
body:is([data-theme="dark"]) .ooh-site-detail {
    background: var(--ra-dark-surface-muted);
}

body.ra-dark-mode .ooh-empty-state,
body:is([data-theme="dark"]) .ooh-empty-state {
    background: rgba(15, 23, 42, 0.35);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-empty-state__title,
body:is([data-theme="dark"]) .ooh-empty-state__title {
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-map-empty-overlay,
body:is([data-theme="dark"]) .ooh-map-empty-overlay {
    background: color-mix(in srgb, var(--ra-dark-shell-bg) 85%, transparent);
}

body.ra-dark-mode #sitesMap,
body[data-theme="dark"] #sitesMap,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) #sitesMap {
    background-color: var(--ra-dark-shell-bg);
}

body.ra-dark-mode .ooh-page .leaflet-popup-content-wrapper,
body[data-theme="dark"] .ooh-page .leaflet-popup-content-wrapper,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .leaflet-popup-content-wrapper {
    background: var(--ra-dark-surface);
    border: 1px solid var(--ra-dark-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body.ra-dark-mode .ooh-page .leaflet-popup-tip,
body[data-theme="dark"] .ooh-page .leaflet-popup-tip,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .leaflet-popup-tip {
    background: var(--ra-dark-surface);
}

body.ra-dark-mode .ooh-page .site-popup-details,
body[data-theme="dark"] .ooh-page .site-popup-details,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .site-popup-details {
    background: var(--ra-dark-surface);
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-page .site-popup-details strong,
body[data-theme="dark"] .ooh-page .site-popup-details strong,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .site-popup-details strong {
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-page .site-popup-value,
body[data-theme="dark"] .ooh-page .site-popup-value,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .site-popup-value {
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-page .leaflet-control-zoom a,
body[data-theme="dark"] .ooh-page .leaflet-control-zoom a,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .leaflet-control-zoom a {
    background-color: var(--ra-dark-surface) !important;
    color: var(--ra-dark-text-primary) !important;
    border: 1px solid var(--ra-dark-border) !important;
}

body.ra-dark-mode .ooh-page .leaflet-control-zoom a:hover,
body[data-theme="dark"] .ooh-page .leaflet-control-zoom a:hover,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .leaflet-control-zoom a:hover {
    background-color: var(--ra-dark-surface-muted) !important;
}

body.ra-dark-mode .ooh-page .loading-overlay,
body[data-theme="dark"] .ooh-page .loading-overlay,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .loading-overlay {
    background: rgba(15, 23, 42, 0.8);
}

body.ra-dark-mode .ooh-page .legend-item,
body[data-theme="dark"] .ooh-page .legend-item,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) .ooh-page .legend-item {
    color: var(--ra-dark-text-secondary);
}

/* OOH — site profile drawer & unified site presentation */
body.ooh-site-drawer-open {
    overflow: hidden;
}

.ooh-site-drawer {
    position: fixed;
    inset: 0;
    z-index: 1080;
    pointer-events: none;
}

.ooh-site-drawer.is-open {
    pointer-events: auto;
}

.ooh-site-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ooh-site-drawer.is-open .ooh-site-drawer__backdrop {
    opacity: 1;
}

.ooh-site-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ra-surface, #fff);
    border-left: 1px solid var(--ra-border-color, #dee2e6);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ooh-site-drawer.is-open .ooh-site-drawer__panel {
    transform: translateX(0);
}

@media (max-width: 767.98px) {
    .ooh-site-drawer__panel {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: min(92vh, 100%);
        max-height: 92vh;
        border-left: 0;
        border-top: 1px solid var(--ra-border-color, #dee2e6);
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    }

    .ooh-site-drawer.is-open .ooh-site-drawer__panel {
        transform: translateY(0);
    }

    .ooh-site-drawer__header {
        position: relative;
        padding-top: 1.35rem;
    }

    .ooh-site-drawer__header::before {
        content: "";
        position: absolute;
        top: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: var(--ra-border-color, #cbd5e1);
    }

    .ooh-site-profile__gallery--drawer .ooh-site-profile__hero {
        height: min(36vh, 260px);
        min-height: 180px;
    }
}

.ooh-site-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem 0.9rem;
    border-bottom: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-site-drawer__intro {
    min-width: 0;
    flex: 1;
}

.ooh-site-drawer__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ra-brand-primary, #ed1c24);
}

.ooh-site-drawer__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ra-text-primary, #0f172a);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ooh-site-drawer__location {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ra-text-secondary, #64748b);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.ooh-site-drawer__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-top: 0.55rem;
}

.ooh-site-drawer__id {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.ooh-site-drawer__gallery {
    flex-shrink: 0;
    border-bottom: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-site-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.5rem;
}

.ooh-site-profile__gallery--drawer {
    margin: 0;
}

.ooh-site-profile__gallery--drawer .ooh-site-profile__hero {
    height: min(42vh, 320px);
    min-height: 220px;
    border-radius: 0;
    border: 0;
    background: #0b1220;
}

.ooh-site-profile__hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        #0b1220;
    background-size: 20px 20px;
}

.ooh-site-profile__hero {
    position: relative;
    overflow: hidden;
    background: #0b1220;
}

.ooh-site-profile__hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.ooh-site-profile__hero-shade {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(8, 12, 24, 0.72), transparent);
    pointer-events: none;
}

.ooh-site-profile__hero-count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(8, 12, 24, 0.78);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.ooh-site-profile__gallery-footer {
    padding: 0.65rem 1rem 0.75rem;
    background: var(--ra-surface-muted, #f8fafc);
    border-top: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-site-profile__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    color: var(--ra-text-secondary, #64748b);
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
}

.ooh-site-profile__placeholder .material-symbols-outlined {
    font-size: 2.5rem;
    opacity: 0.45;
}

.ooh-site-profile__placeholder--billboard { color: color-mix(in srgb, var(--platform-print) 80%, #000); }
.ooh-site-profile__placeholder--digital { color: color-mix(in srgb, var(--platform-online) 80%, #000); }
.ooh-site-profile__placeholder--transit { color: color-mix(in srgb, var(--platform-radio) 80%, #000); }
.ooh-site-profile__placeholder--street_furniture { color: color-mix(in srgb, var(--platform-tv) 80%, #000); }

.ooh-site-profile__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.ooh-site-profile__thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    scroll-snap-align: start;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ra-surface-muted, #f8fafc);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ooh-site-profile__thumb.is-active {
    border-color: var(--ra-brand-primary, #ed1c24);
    transform: translateY(-1px);
}

.ooh-site-profile__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ooh-site-profile__captured {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-profile__captured:empty {
    display: none;
}

.ooh-site-profile--drawer .ooh-site-profile__chips:first-child {
    margin-top: 0;
}

.ooh-site-profile--drawer .ooh-site-profile__chips:empty {
    display: none;
}

.ooh-site-profile--drawer .ooh-site-profile__meta {
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    background: var(--ra-surface-muted, #f8fafc);
    border: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-site-profile__header {
    margin-bottom: 0.85rem;
}

.ooh-site-profile__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.ooh-site-profile__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ra-text-primary, #0f172a);
}

.ooh-site-profile__id {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.ooh-site-chip {
    display: inline-flex;
    flex-direction: column;
    min-width: 72px;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: var(--ra-surface-muted, #f8fafc);
    border: 1px solid var(--ra-border-color, #dee2e6);
}

.ooh-site-chip__label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-chip__value {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ra-text-primary, #0f172a);
    line-height: 1.3;
}

.ooh-site-profile__meta {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.ooh-site-profile__meta > div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.ooh-site-profile__meta dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ra-text-secondary, #64748b);
}

.ooh-site-profile__meta dd {
    margin: 0;
    font-size: var(--ra-compact-meta-fs, 0.82rem);
    font-weight: 600;
    color: var(--ra-text-primary, #0f172a);
}

.ooh-site-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ooh-site-profile__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ooh-badge-ungeocoded {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--platform-other) 22%, transparent);
    color: var(--ra-text-secondary, #64748b);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ooh-site-thumbnail-placeholder--typed .material-symbols-outlined {
    font-size: 1.5rem;
    opacity: 0.5;
}

body.ra-dark-mode .ooh-site-drawer__panel,
body:is([data-theme="dark"]) .ooh-site-drawer__panel {
    background: var(--ra-dark-surface);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-site-drawer__title,
body:is([data-theme="dark"]) .ooh-site-drawer__title,
body.ra-dark-mode .ooh-site-drawer__location,
body:is([data-theme="dark"]) .ooh-site-drawer__location,
body.ra-dark-mode .ooh-site-profile__name,
body:is([data-theme="dark"]) .ooh-site-profile__name,
body.ra-dark-mode .ooh-site-profile__meta dd,
body:is([data-theme="dark"]) .ooh-site-profile__meta dd,
body.ra-dark-mode .ooh-site-chip__value,
body:is([data-theme="dark"]) .ooh-site-chip__value {
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-site-drawer__header,
body:is([data-theme="dark"]) .ooh-site-drawer__header,
body.ra-dark-mode .ooh-site-drawer__gallery,
body:is([data-theme="dark"]) .ooh-site-drawer__gallery {
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-site-profile__gallery-footer,
body:is([data-theme="dark"]) .ooh-site-profile__gallery-footer {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-site-profile__hero,
body:is([data-theme="dark"]) .ooh-site-profile__hero,
body.ra-dark-mode .ooh-site-chip,
body:is([data-theme="dark"]) .ooh-site-chip,
body.ra-dark-mode .ooh-site-profile--drawer .ooh-site-profile__meta,
body:is([data-theme="dark"]) .ooh-site-profile--drawer .ooh-site-profile__meta {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

/* OOH Monitoring — dark mode visibility pass (Outdoor Sites + shared chrome) */

body.ra-dark-mode .ooh-page .page-header__description,
body:is([data-theme="dark"]) .ooh-page .page-header__description {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-page .ra-metric-card__period,
body:is([data-theme="dark"]) .ooh-page .ra-metric-card__period {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-page .ra-metric-card--ooh .ra-metric-card__icon,
body:is([data-theme="dark"]) .ooh-page .ra-metric-card--ooh .ra-metric-card__icon {
    opacity: 0.55;
}

body.ra-dark-mode .ooh-data-toggle,
body:is([data-theme="dark"]) .ooh-data-toggle {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-data-toggle__btn,
body:is([data-theme="dark"]) .ooh-data-toggle__btn {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-data-toggle__btn:hover,
body.ra-dark-mode .ooh-data-toggle__btn:focus-visible,
body:is([data-theme="dark"]) .ooh-data-toggle__btn:hover,
body:is([data-theme="dark"]) .ooh-data-toggle__btn:focus-visible {
    background: rgba(148, 163, 184, 0.08);
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-data-toggle__btn.is-active,
body:is([data-theme="dark"]) .ooh-data-toggle__btn.is-active {
    background: var(--ra-dark-surface);
    color: var(--ra-dark-brand-primary, #ed1c24);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.ra-dark-mode .ooh-context-strip__scan-label,
body:is([data-theme="dark"]) .ooh-context-strip__scan-label {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-coord,
body:is([data-theme="dark"]) .ooh-coord {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-page .btn-outline-secondary,
body:is([data-theme="dark"]) .ooh-page .btn-outline-secondary {
    border-color: var(--ra-dark-border);
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-page .btn-outline-secondary:hover,
body.ra-dark-mode .ooh-page .btn-outline-secondary:focus-visible,
body:is([data-theme="dark"]) .ooh-page .btn-outline-secondary:hover,
body:is([data-theme="dark"]) .ooh-page .btn-outline-secondary:focus-visible {
    background: rgba(148, 163, 184, 0.1);
    border-color: #475569;
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-page .btn-outline-primary,
body:is([data-theme="dark"]) .ooh-page .btn-outline-primary {
    border-color: color-mix(in srgb, var(--ra-dark-brand-primary, #ed1c24) 55%, var(--ra-dark-border));
    color: #fca5a5;
}

body.ra-dark-mode .ooh-page .btn-outline-primary:hover,
body.ra-dark-mode .ooh-page .btn-outline-primary:focus-visible,
body:is([data-theme="dark"]) .ooh-page .btn-outline-primary:hover,
body:is([data-theme="dark"]) .ooh-page .btn-outline-primary:focus-visible {
    background: color-mix(in srgb, var(--ra-dark-brand-primary, #ed1c24) 16%, transparent);
    border-color: color-mix(in srgb, var(--ra-dark-brand-primary, #ed1c24) 65%, var(--ra-dark-border));
    color: #fff;
}

body.ra-dark-mode .ooh-sites-table .ooh-table-head th,
body:is([data-theme="dark"]) .ooh-sites-table .ooh-table-head th {
    background: var(--ra-dark-surface-muted);
    border-bottom-color: var(--ra-dark-border);
    color: #94a3b8;
}

body.ra-dark-mode .ooh-sites-table tbody td,
body:is([data-theme="dark"]) .ooh-sites-table tbody td {
    border-bottom-color: var(--ra-dark-border);
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ooh-table-status,
body:is([data-theme="dark"]) .ooh-table-status {
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ooh-table-status__divider,
body:is([data-theme="dark"]) .ooh-table-status__divider {
    background: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-empty-state__text,
body.ra-dark-mode .ooh-empty-state__icon,
body:is([data-theme="dark"]) .ooh-empty-state__text,
body:is([data-theme="dark"]) .ooh-empty-state__icon {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-map-shell__vignette,
body:is([data-theme="dark"]) .ooh-map-shell__vignette {
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.28);
}

body.ra-dark-mode .ooh-page .leaflet-tile-pane,
body:is([data-theme="dark"]) .ooh-page .leaflet-tile-pane {
    filter: brightness(1.28) contrast(1.06) saturate(0.92);
}

body.ra-dark-mode #sitesMap,
body[data-theme="dark"] #sitesMap,
body:is([data-theme="dark"], [header-dark-light-data-theme="header-dark"], [sidebar-dark-light-data-theme="sidebar-dark"]) #sitesMap {
    background-color: #1a2433;
}

body.ra-dark-mode #planningMap,
body:is([data-theme="dark"]) #planningMap {
    background-color: #1a2433;
}

body.ra-dark-mode .ooh-planning-page .leaflet-tile-pane,
body:is([data-theme="dark"]) .ooh-planning-page .leaflet-tile-pane {
    filter: brightness(1.28) contrast(1.06) saturate(0.92);
}

body.ra-dark-mode .ooh-site-drawer__eyebrow,
body:is([data-theme="dark"]) .ooh-site-drawer__eyebrow {
    color: #fca5a5;
}

body.ra-dark-mode .ooh-site-drawer__id,
body:is([data-theme="dark"]) .ooh-site-drawer__id {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-site-drawer__location,
body:is([data-theme="dark"]) .ooh-site-drawer__location {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-site-profile__meta dt,
body:is([data-theme="dark"]) .ooh-site-profile__meta dt {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-site-chip__label,
body:is([data-theme="dark"]) .ooh-site-chip__label {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-site-profile__captured,
body:is([data-theme="dark"]) .ooh-site-profile__captured {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-site-profile__placeholder,
body:is([data-theme="dark"]) .ooh-site-profile__placeholder {
    color: #94a3b8;
}

body.ra-dark-mode .ooh-site-profile__placeholder .material-symbols-outlined,
body:is([data-theme="dark"]) .ooh-site-profile__placeholder .material-symbols-outlined {
    opacity: 0.62;
}

body.ra-dark-mode .ooh-site-profile__placeholder--billboard,
body:is([data-theme="dark"]) .ooh-site-profile__placeholder--billboard {
    color: #c4b5fd;
}

body.ra-dark-mode .ooh-site-profile__placeholder--digital,
body:is([data-theme="dark"]) .ooh-site-profile__placeholder--digital {
    color: #6ee7b7;
}

body.ra-dark-mode .ooh-site-profile__placeholder--transit,
body:is([data-theme="dark"]) .ooh-site-profile__placeholder--transit {
    color: #fdba74;
}

body.ra-dark-mode .ooh-site-profile__placeholder--street_furniture,
body:is([data-theme="dark"]) .ooh-site-profile__placeholder--street_furniture {
    color: #93c5fd;
}

body.ra-dark-mode .ooh-site-profile__thumb,
body.ra-dark-mode .ooh-site-thumbnail-placeholder,
body:is([data-theme="dark"]) .ooh-site-profile__thumb,
body:is([data-theme="dark"]) .ooh-site-thumbnail-placeholder {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ooh-site-thumbnail-placeholder .material-symbols-outlined,
body:is([data-theme="dark"]) .ooh-site-thumbnail-placeholder .material-symbols-outlined {
    color: #94a3b8;
    opacity: 0.65;
}

body.ra-dark-mode .ooh-badge-ungeocoded,
body:is([data-theme="dark"]) .ooh-badge-ungeocoded {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

body.ra-dark-mode .ooh-page .site-popup-label,
body:is([data-theme="dark"]) .ooh-page .site-popup-label {
    color: #94a3b8;
}

body.ra-dark-mode .ra-ooh-proof-mobile-card .ra-ad-mobile-card__detail,
body:is([data-theme="dark"]) .ra-ooh-proof-mobile-card .ra-ad-mobile-card__detail {
    border-top-color: var(--ra-dark-border);
}

/* ==========================================================================
   Account workspace pages (profile, support, notifications)
   ========================================================================== */

.ra-account-page {
    font-size: var(--ra-compact-text-fs);
    line-height: 1.45;
}

.ra-account-page .page-header__title {
    font-size: 1.25rem;
}

.ra-account-page .page-header__description {
    font-size: var(--ra-compact-text-fs);
}

.ra-account-page .form-label {
    font-size: var(--ra-compact-meta-fs);
    margin-bottom: 0.35rem;
}

.ra-account-page .form-control,
.ra-account-page .form-select,
.ra-account-page textarea.form-control {
    font-size: var(--ra-input-fs);
    line-height: 1.45;
}

.ra-account-page .small,
.ra-account-page small {
    font-size: var(--ra-compact-meta-fs);
}

.ra-account-page .ra-chip {
    font-size: var(--ra-pr-filter-input-fs);
}

.ra-account-page .ra-metric-card__value {
    font-size: clamp(1.125rem, 1.6vw, 1.4rem);
}

.ra-account-page .ra-metric-card--account .ra-metric-card__value {
    font-size: var(--ra-compact-text-fs);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.ra-account-page .btn {
    font-size: var(--ra-input-fs);
}

.ra-account-page .btn-sm {
    font-size: var(--ra-pr-filter-input-fs);
}

.ra-account-page .badge {
    font-size: 0.72rem;
    font-weight: 600;
}

@keyframes raAccountReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ra-account-page__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}

.ra-account-page__grid > * {
    animation: raAccountReveal 0.42s ease both;
}

.ra-account-page__grid > *:nth-child(1) {
    animation-delay: 0.04s;
}

.ra-account-page__grid > *:nth-child(2) {
    animation-delay: 0.1s;
}

.ra-account-page__grid > *:nth-child(3) {
    animation-delay: 0.16s;
}

.ra-account-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--ra-border-color);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, var(--ra-surface-muted) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ra-account-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--ra-brand-primary);
}

.ra-account-avatar {
    position: relative;
    flex-shrink: 0;
}

.ra-account-avatar__image {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.ra-account-avatar__status {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
}

.ra-account-hero__main {
    flex: 1 1 220px;
    min-width: 0;
}

.ra-account-hero__name {
    margin: 0 0 0.2rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ra-text-primary);
    line-height: 1.3;
}

.ra-account-hero__email {
    margin: 0 0 0.55rem;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-account-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ra-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.1rem 1rem;
    border: 1.5px dashed color-mix(in srgb, var(--ra-brand-primary) 35%, var(--ra-border-color));
    border-radius: 14px;
    background: color-mix(in srgb, var(--ra-brand-primary) 4%, #fff);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ra-upload-zone:hover,
.ra-upload-zone:focus-within,
.ra-upload-zone.is-dragover {
    border-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 8%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ra-brand-primary) 12%, transparent);
}

.ra-upload-zone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ra-brand-primary) 12%, transparent);
    color: var(--ra-brand-primary);
}

.ra-upload-zone__title {
    margin: 0;
    font-size: var(--ra-compact-text-fs);
    font-weight: 600;
    color: var(--ra-text-primary);
}

.ra-upload-zone__hint {
    margin: 0;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-upload-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ra-upload-zone__wrapper {
    position: relative;
}

.ra-org-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .ra-org-metrics {
        grid-template-columns: 1fr;
    }
}

.ra-metric-card--account {
    min-height: 100%;
}

.ra-metric-card--account.ra-metric-card--pulse .ra-metric-card__value {
    animation: raMetricPulse 2s ease-in-out infinite;
}

@keyframes raMetricPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}

.ra-sla-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ra-sla-timeline__item {
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 0.65rem;
    align-items: start;
}

.ra-sla-timeline__bar {
    width: 4px;
    min-height: 100%;
    border-radius: 999px;
}

.ra-sla-timeline__bar--urgent {
    background: var(--ra-brand-primary);
}

.ra-sla-timeline__bar--high {
    background: #f59e0b;
}

.ra-sla-timeline__bar--medium {
    background: #3b82f6;
}

.ra-sla-timeline__bar--low {
    background: #94a3b8;
}

.ra-sla-timeline__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-primary);
}

.ra-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--ra-border-color);
    border-radius: 12px;
    background: var(--ra-surface-muted);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ra-contact-card:hover {
    border-color: color-mix(in srgb, var(--ra-brand-primary) 35%, var(--ra-border-color));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.ra-contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
    color: var(--ra-brand-primary);
    flex-shrink: 0;
}

.ra-contact-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ra-contact-card__title {
    margin: 0 0 0.15rem;
    font-size: var(--ra-pr-filter-input-fs);
    font-weight: 700;
    color: var(--ra-text-primary);
}

.ra-contact-card__email {
    display: block;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
    text-decoration: none;
    word-break: break-all;
}

.ra-contact-card__email:hover {
    color: var(--ra-brand-primary);
}

.ra-dept-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (max-width: 767.98px) {
    .ra-dept-tiles {
        grid-template-columns: 1fr;
    }
}

.ra-dept-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid var(--ra-border-color);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ra-dept-tile:hover {
    border-color: color-mix(in srgb, var(--ra-brand-primary) 40%, var(--ra-border-color));
}

.ra-dept-tile.is-active {
    border-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 6%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

.ra-dept-tile__icon {
    color: var(--ra-brand-primary);
    font-size: 1.125rem;
}

.ra-dept-tile__label {
    font-size: var(--ra-pr-filter-input-fs);
    font-weight: 700;
    color: var(--ra-text-primary);
}

.ra-dept-tile__hint {
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
    line-height: 1.35;
}

.ra-priority-segment {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (max-width: 575.98px) {
    .ra-priority-segment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ra-priority-segment__btn {
    padding: 0.55rem 0.5rem;
    border: 1.5px solid var(--ra-border-color);
    border-radius: 10px;
    background: #fff;
    font-size: var(--ra-pr-filter-input-fs);
    font-weight: 600;
    color: var(--ra-text-secondary);
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.ra-priority-segment__btn:hover {
    border-color: color-mix(in srgb, var(--ra-brand-primary) 35%, var(--ra-border-color));
    color: var(--ra-text-primary);
}

.ra-priority-segment__btn.is-active {
    border-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 8%, #fff);
    color: var(--ra-brand-primary);
}

.ra-priority-segment__btn--urgent.is-active {
    border-color: var(--ra-brand-primary);
    background: color-mix(in srgb, var(--ra-brand-primary) 12%, #fff);
    color: #b91c1c;
}

.ra-response-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: var(--ra-surface-muted);
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-response-preview strong {
    color: var(--ra-text-primary);
}

.ra-filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid var(--ra-border-color);
    border-radius: 999px;
    background: var(--ra-surface-muted);
}

.ra-filter-tabs__btn {
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: var(--ra-pr-filter-input-fs);
    font-weight: 600;
    color: var(--ra-text-secondary);
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ra-filter-tabs__btn:hover {
    color: var(--ra-text-primary);
}

.ra-filter-tabs__btn.is-active {
    background: #fff;
    color: var(--ra-brand-primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.ra-notification-group__title {
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.15rem 0;
    font-size: var(--ra-compact-meta-fs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ra-color-text-tertiary);
}

.ra-notification-item__title {
    margin: 0;
    font-size: var(--ra-compact-text-fs);
    font-weight: 600;
    color: var(--ra-text-primary);
    line-height: 1.35;
}

.ra-notification-item__message,
.ra-notification-item__meta {
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
    line-height: 1.4;
}

.ra-notification-item__icon .material-symbols-outlined {
    font-size: 1.125rem;
}

.ra-notifications-empty__title {
    margin: 0 0 0.35rem;
    font-size: var(--ra-compact-text-fs);
    font-weight: 600;
    color: var(--ra-text-secondary);
}

.ra-notifications-empty__copy {
    margin: 0 0 1rem;
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--ra-border-color);
    transition: background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.ra-notification-item:last-child {
    border-bottom: none;
}

.ra-notification-item:hover {
    background-color: rgba(15, 23, 42, 0.03);
}

.ra-notification-item.unread {
    border-left: 4px solid var(--ra-brand-primary);
    background-color: color-mix(in srgb, var(--ra-brand-primary) 6%, transparent);
}

.ra-notification-item:focus-within {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ra-brand-primary) 35%, transparent);
}

.ra-notification-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ra-notification-item__icon--report {
    background: color-mix(in srgb, #3b82f6 14%, transparent);
    color: #2563eb;
}

.ra-notification-item__icon--workspace {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: #047857;
}

.ra-notification-item__icon--alert {
    background: color-mix(in srgb, var(--ra-brand-primary) 14%, transparent);
    color: var(--ra-brand-primary);
}

.ra-notification-item__icon--default {
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
    color: var(--ra-brand-primary);
}

.ra-notification-item__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.45rem;
    align-items: center;
}

@media (max-width: 767.98px) {
    .ra-notification-item {
        flex-wrap: wrap;
    }

    .ra-notification-item__actions {
        width: 100%;
        margin-left: calc(40px + 0.85rem);
    }

    .ra-notification-item__actions .btn-outline-primary {
        flex: 1 1 auto;
    }
}

.ra-notifications-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.ra-notifications-empty__icon {
    font-size: 3rem;
    opacity: 0.28;
    color: var(--ra-text-secondary);
}

body.ra-dark-mode .ra-account-hero,
body:is([data-theme="dark"]) .ra-account-hero {
    background: linear-gradient(135deg, var(--ra-dark-surface) 0%, var(--ra-dark-surface-muted) 100%);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ra-upload-zone,
body:is([data-theme="dark"]) .ra-upload-zone {
    background: color-mix(in srgb, var(--ra-brand-primary) 6%, var(--ra-dark-surface-muted));
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ra-dept-tile,
body:is([data-theme="dark"]) .ra-dept-tile,
body.ra-dark-mode .ra-priority-segment__btn,
body:is([data-theme="dark"]) .ra-priority-segment__btn {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ra-contact-card,
body:is([data-theme="dark"]) .ra-contact-card,
body.ra-dark-mode .ra-response-preview,
body:is([data-theme="dark"]) .ra-response-preview {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ra-notification-item:hover,
body:is([data-theme="dark"]) .ra-notification-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

body.ra-dark-mode .ra-filter-tabs__btn.is-active,
body:is([data-theme="dark"]) .ra-filter-tabs__btn.is-active {
    background: var(--ra-dark-surface);
}

@media (max-width: 991.98px) {
    .ra-account-page .ra-dept-tiles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ra-account-page .main-content-container {
        overflow-x: clip;
    }

    .ra-account-page .ra-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ra-account-page .ra-card-header__action {
        width: 100%;
        max-width: 100%;
    }

    .ra-account-page .ra-card-header__toolbar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .ra-account-page .ra-filter-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .ra-account-page .ra-filter-tabs__btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .ra-account-page .ra-card-header__toolbar .btn {
        width: 100%;
    }

    .ra-account-hero {
        padding: 1rem;
    }

    .ra-account-avatar__image {
        width: 72px;
        height: 72px;
    }

    .ra-account-hero__meta .ra-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ra-contact-card {
        flex-wrap: wrap;
        align-items: center;
    }

    .ra-contact-card__body {
        flex: 1 1 calc(100% - 3rem);
        min-width: 0;
    }

    .ra-priority-segment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ra-notification-item__content {
        flex: 1 1 calc(100% - 3rem);
        min-width: 0;
    }

    .ra-notification-item__actions {
        width: 100%;
        margin-left: 0;
        padding-left: calc(40px + 0.85rem);
    }
}

/* Organization switcher */
.ra-org-switcher__trigger {
    position: relative;
    overflow: hidden;
    min-width: 12.5rem;
    font-size: var(--ra-pr-filter-input-fs);
    background-color: var(--ra-surface-muted);
    border-radius: 10px;
    color: var(--ra-text-primary);
    font-weight: 600;
}

.ra-org-switcher__trigger:hover,
.ra-org-switcher__trigger[aria-expanded="true"] {
    background-color: color-mix(in srgb, var(--ra-brand-primary) 6%, var(--ra-surface-muted));
    color: var(--ra-brand-primary);
}

.ra-org-switcher__trigger:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ra-brand-primary) 18%, transparent);
    outline: none;
}

.ra-org-switcher__trigger-hint,
.ra-org-switcher .company-name__hint {
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-org-switcher .company-icon {
    font-size: 1.125rem;
    color: var(--ra-brand-primary);
}

.ra-org-switcher__menu {
    width: min(24rem, calc(100vw - 1rem));
    min-width: min(24rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 0.35rem;
}

.ra-org-switcher__menu-title {
    font-size: var(--ra-compact-text-fs);
    font-weight: 700;
    color: var(--ra-text-primary);
}

.ra-org-switcher__menu-meta,
.ra-org-switcher__section-label,
.ra-org-switcher__empty {
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-org-switcher__section-label {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ra-org-switcher__search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ra-surface, #fff);
}

.ra-org-switcher__search-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: var(--ra-pr-filter-input-height);
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--ra-border-color);
    border-radius: 10px;
    background: var(--ra-surface-muted);
}

.ra-org-switcher__search-field:focus-within,
.ra-org-switcher__search-field.is-filtering {
    border-color: color-mix(in srgb, var(--ra-brand-primary) 45%, var(--ra-border-color));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ra-brand-primary) 10%, transparent);
}

.ra-org-switcher__search-spinner {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--ra-brand-primary);
}

.ra-org-switcher__search-icon {
    font-size: 1rem;
    color: var(--ra-text-secondary);
    flex-shrink: 0;
}

.ra-org-switcher__search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: var(--ra-pr-filter-input-fs);
    line-height: 1.35;
    color: var(--ra-text-primary);
    outline: none;
    box-shadow: none;
}

.ra-org-switcher__search-input::placeholder {
    color: var(--ra-text-secondary);
}

.ra-org-switcher__search-input::-webkit-search-decoration,
.ra-org-switcher__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.ra-org-switcher__shortcut-hint,
.ra-org-switcher__mobile-hint {
    font-size: 0.68rem;
    color: var(--ra-color-text-tertiary);
    margin-top: 0.2rem;
}

.ra-org-switcher__close,
.ra-org-switcher__refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border-radius: 999px;
}

.ra-org-switcher__close:hover,
.ra-org-switcher__refresh:hover {
    background: color-mix(in srgb, var(--ra-brand-primary) 8%, transparent);
}

.ra-org-switcher__sheet-portal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
}

.ra-org-switcher__sheet-portal .ra-org-switcher__backdrop.is-visible {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.ra-org-switcher__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ra-org-switcher__backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ra-org-switcher__shortcut-hint kbd {
    display: inline-block;
    padding: 0.05rem 0.3rem;
    border: 1px solid var(--ra-border-color);
    border-radius: 0.3rem;
    background: var(--ra-surface-muted);
    font-size: 0.65rem;
    line-height: 1.2;
}

.ra-org-switcher__search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ra-text-secondary) 12%, transparent);
    color: var(--ra-text-secondary);
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ra-org-switcher__search-clear:hover {
    background: color-mix(in srgb, var(--ra-brand-primary) 12%, transparent);
    color: var(--ra-brand-primary);
}

.ra-org-switcher__search-clear .material-symbols-outlined {
    font-size: 0.95rem;
}

.ra-org-switcher__result-count {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ra-brand-primary);
    white-space: nowrap;
}

.ra-org-switcher__trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.ra-org-switcher__trigger-icon-default,
.ra-org-switcher__trigger-icon-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ra-org-switcher__trigger-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--ra-brand-primary) 18%, transparent);
    border-top-color: var(--ra-brand-primary);
    animation: ra-org-switcher-spin 0.7s linear infinite;
}

.ra-org-switcher__trigger-progress {
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ra-brand-primary) 35%,
        color-mix(in srgb, var(--ra-brand-primary) 55%, #fff) 50%,
        var(--ra-brand-primary) 65%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: ra-org-switcher-progress 1.1s ease-in-out infinite;
}

.ra-org-switcher.is-switching-active .ra-org-switcher__trigger,
.ra-org-switcher.is-switching .ra-org-switcher__trigger {
    background-color: color-mix(in srgb, var(--ra-brand-primary) 8%, var(--ra-surface-muted));
    color: var(--ra-brand-primary);
}

.ra-org-switcher.is-switching-active .ra-org-switcher__trigger-chevron,
.ra-org-switcher.is-switching .ra-org-switcher__trigger-chevron {
    opacity: 0.45;
}

.ra-org-switcher__switch-banner {
    display: none;
    align-items: center;
    gap: 0.65rem;
    border-top: 1px solid var(--ra-border-color);
    background: color-mix(in srgb, var(--ra-brand-primary) 6%, var(--ra-surface, #fff));
    list-style: none;
}

.ra-org-switcher.is-switching-active .ra-org-switcher__switch-banner,
.ra-org-switcher__switch-banner[wire\:loading] {
    display: flex;
}

.ra-org-switcher__switch-banner-spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--ra-brand-primary) 18%, transparent);
    border-top-color: var(--ra-brand-primary);
    animation: ra-org-switcher-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.ra-org-switcher__switch-banner-title {
    font-size: var(--ra-compact-text-fs);
    font-weight: 700;
    color: var(--ra-text-primary);
}

.ra-org-switcher__switch-banner-meta {
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-org-switcher.is-switching-active .ra-org-switcher__menu .ra-org-switcher__item:not(.ra-org-switcher__item--pending) {
    opacity: 0.55;
}

.ra-org-switcher__item--pending {
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, var(--ra-surface-muted)) !important;
    color: var(--ra-brand-primary) !important;
    opacity: 1 !important;
}

.ra-org-switcher__item-trailing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
}

.ra-org-switcher__item-spinner {
    display: none;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, currentColor 20%, transparent);
    border-top-color: currentColor;
    animation: ra-org-switcher-spin 0.7s linear infinite;
}

.ra-org-switcher__item--pending .ra-org-switcher__item-spinner {
    display: inline-block;
}

.ra-org-switcher__item--pending .check-icon {
    display: none !important;
}

@keyframes ra-org-switcher-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ra-org-switcher-progress {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

.ra-org-switcher__empty-state {
    text-align: center;
}

.ra-org-switcher__empty-icon {
    font-size: 1.75rem;
    color: var(--ra-text-secondary);
    opacity: 0.45;
    margin-bottom: 0.35rem;
}

.ra-org-switcher__empty-title {
    font-size: var(--ra-compact-text-fs);
    font-weight: 600;
    color: var(--ra-text-primary);
}

.ra-org-switcher__empty-copy {
    font-size: var(--ra-compact-meta-fs);
    color: var(--ra-text-secondary);
}

.ra-org-switcher__menu > li:has(> .ra-org-switcher__item),
.ra-org-switcher__menu > li:has(> .dropdown-item.ra-org-switcher__item) {
    list-style: none;
}

.ra-org-switcher__item {
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
}

.ra-org-switcher__item:hover {
    transform: none;
}

.ra-org-switcher__item-name {
    font-size: var(--ra-compact-text-fs);
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-org-switcher__item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ra-org-switcher__meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--ra-surface-muted);
    color: var(--ra-text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.ra-org-switcher__meta-badge--market {
    background: color-mix(in srgb, #3b82f6 12%, transparent);
    color: #1d4ed8;
}

.ra-org-switcher__meta-badge--primary {
    background: color-mix(in srgb, var(--ra-brand-primary) 12%, transparent);
    color: var(--ra-brand-primary);
}

.ra-org-switcher.is-switching .ra-org-switcher__trigger,
.ra-org-switcher.is-switching-active .ra-org-switcher__trigger {
    pointer-events: none;
}

.ra-org-switcher__refresh .material-symbols-outlined {
    font-size: 1rem;
}

.header-area .ra-org-switcher__trigger {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
}

@media (max-width: 1199.98px) {
    .header-area .company-name__hint,
    .header-area .ra-org-switcher__trigger-hint {
        display: none;
    }

    .header-area .company-name__label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

body.ra-dark-mode .ra-org-switcher__trigger,
body:is([data-theme="dark"]) .ra-org-switcher__trigger {
    background: var(--ra-dark-surface-muted);
    border: 1px solid var(--ra-dark-border);
    color: var(--ra-dark-text-primary);
}

body.ra-dark-mode .ra-org-switcher__meta-badge,
body:is([data-theme="dark"]) .ra-org-switcher__meta-badge {
    background: var(--ra-dark-surface);
    color: var(--ra-dark-text-secondary);
}

body.ra-dark-mode .ra-org-switcher__search-wrap,
body:is([data-theme="dark"]) .ra-org-switcher__search-wrap {
    background: var(--ra-dark-surface);
}

body.ra-dark-mode .ra-org-switcher__search-field,
body:is([data-theme="dark"]) .ra-org-switcher__search-field {
    background: var(--ra-dark-surface-muted);
    border-color: var(--ra-dark-border);
}

body.ra-dark-mode .ra-org-switcher__switch-banner,
body:is([data-theme="dark"]) .ra-org-switcher__switch-banner {
    background: color-mix(in srgb, var(--ra-brand-primary) 10%, var(--ra-dark-surface));
    border-color: var(--ra-dark-border);
}

@media (max-width: 767.98px) {
    html.ra-org-switcher-sheet-open,
    body.ra-org-switcher-sheet-open {
        overflow: hidden;
    }

    body.ra-org-switcher-sheet-open #main-content,
    body.ra-org-switcher-sheet-open .main-content,
    body.ra-org-switcher-sheet-open .header-area {
        pointer-events: none;
    }

    .ra-org-switcher__sheet-portal {
        pointer-events: none;
    }

    .ra-org-switcher__sheet-portal .ra-org-switcher__menu.show {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px 16px 0 0;
        max-height: min(82dvh, 34rem);
        min-height: min(42dvh, 18rem);
        padding: 0 0 max(0.5rem, env(safe-area-inset-bottom, 0.5rem));
        box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
        z-index: 2 !important;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        background: var(--ra-surface, #fff);
        border: 1px solid var(--ra-border-color);
        isolation: isolate;
    }

    .ra-org-switcher__menu.show {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px 16px 0 0;
        max-height: min(82dvh, 34rem);
        min-height: min(42dvh, 18rem);
        padding: 0 0 max(0.5rem, env(safe-area-inset-bottom, 0.5rem));
        box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
        z-index: 2 !important;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        background: var(--ra-surface, #fff);
        border: 1px solid var(--ra-border-color);
        isolation: isolate;
    }

    .ra-org-switcher__menu.show::before {
        content: "";
        display: block;
        width: 2.5rem;
        height: 0.28rem;
        margin: 0.45rem auto 0.35rem;
        border-radius: 999px;
        background: color-mix(in srgb, var(--ra-text-secondary) 35%, transparent);
        flex-shrink: 0;
    }

    .ra-org-switcher__menu-header {
        position: sticky;
        top: 0;
        z-index: 4;
        background: var(--ra-surface, #fff);
        flex-shrink: 0;
    }

    .ra-org-switcher__search-wrap {
        position: sticky;
        top: 3.35rem;
        z-index: 3;
        flex-shrink: 0;
    }

    .ra-org-switcher__switch-banner {
        position: sticky;
        bottom: 0;
        z-index: 4;
        margin-top: auto;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0.65rem)) !important;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
    }

    .ra-org-switcher.is-switching-active .ra-org-switcher__switch-banner,
    .ra-org-switcher__switch-banner[wire\:loading] {
        display: flex;
    }

    .ra-org-switcher__item {
        min-height: 3rem;
        padding: 0.8rem 0.85rem;
        touch-action: pan-y;
    }

    .ra-org-switcher__search-field {
        min-height: 2.75rem;
        padding: 0.4rem 0.7rem;
    }

    .ra-org-switcher__sheet-portal .ra-org-switcher__menu.show.ra-org-switcher__menu--keyboard-open,
    .ra-org-switcher__menu.show.ra-org-switcher__menu--keyboard-open {
        min-height: 0 !important;
        max-height: none;
        border-radius: 12px 12px 0 0;
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0.35rem));
    }

    .ra-org-switcher__menu--keyboard-open .ra-org-switcher__search-wrap {
        top: 0;
    }

    .ra-org-switcher__search-clear,
    .ra-org-switcher__close,
    .ra-org-switcher__refresh {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .ra-org-switcher__trigger {
        min-width: 0;
        min-height: 2.75rem;
    }

    .header-area .ra-org-switcher.is-switching-active .ra-org-switcher__trigger-hint,
    .header-area .ra-org-switcher.is-switching .ra-org-switcher__trigger-hint,
    .ra-org-switcher.is-switching-active .ra-org-switcher__trigger-hint,
    .ra-org-switcher.is-switching .ra-org-switcher__trigger-hint {
        display: block;
        font-size: 0.68rem;
        line-height: 1.2;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ra-org-switcher__trigger-copy {
        flex: 1 1 auto;
    }

    .toast-container.ra-org-switcher-toast-container {
        top: auto !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem)) !important;
        width: auto;
    }

    .toast-container.ra-org-switcher-toast-container .toast {
        width: 100%;
        max-width: none;
    }

    .ra-org-switcher__search-wrap,
    .ra-org-switcher__search-field,
    .ra-org-switcher__search-input {
        pointer-events: auto;
    }
}

body.ra-dark-mode .ra-org-switcher__backdrop,
body:is([data-theme="dark"]) .ra-org-switcher__backdrop {
    background: rgba(2, 6, 23, 0.62);
}

body.ra-dark-mode .ra-org-switcher__menu-header,
body:is([data-theme="dark"]) .ra-org-switcher__menu-header,
body.ra-dark-mode .ra-org-switcher__search-wrap,
body:is([data-theme="dark"]) .ra-org-switcher__search-wrap {
    background: var(--ra-dark-surface);
}

body.ra-dark-mode .ra-org-switcher__sheet-portal .ra-org-switcher__menu.show,
body:is([data-theme="dark"]) .ra-org-switcher__sheet-portal .ra-org-switcher__menu.show,
body.ra-dark-mode .ra-org-switcher__menu.show,
body:is([data-theme="dark"]) .ra-org-switcher__menu.show {
    background: var(--ra-dark-surface);
    border-color: var(--ra-dark-border);
}

@media (max-width: 575.98px) {
    .ra-org-switcher__menu.show {
        max-height: min(88dvh, 36rem);
    }

    .ra-org-switcher__search-wrap {
        top: 3.15rem;
    }

    .header-area .ra-org-switcher__trigger {
        padding-top: 0.45rem !important;
        padding-bottom: 0.45rem !important;
    }

    .ra-org-switcher__trigger-chevron {
        margin-left: 0.35rem !important;
    }
}

@media (max-width: 575.98px) {
    .ra-account-page__intro {
        align-items: flex-start;
    }

    .ra-account-page__grid {
        --bs-gutter-x: 0.75rem;
    }

    .ra-account-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .ra-account-hero__meta {
        width: 100%;
    }

    .ra-notification-item {
        gap: 0.65rem;
        padding: 0.75rem 0.5rem;
    }

    .ra-notification-item__icon {
        width: 36px;
        height: 36px;
    }

    .ra-notification-item__actions {
        padding-left: calc(36px + 0.65rem);
    }
}

.ra-loading-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #b6d4fe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    background: #e7f1ff;
    color: #084298;
}

.ra-loading-banner__message {
    font-weight: 500;
}

.ra-loading-banner__spinner {
    flex-shrink: 0;
    color: var(--bs-primary);
}

body.ra-dark-mode .ra-loading-banner,
body:is([data-theme="dark"]) .ra-loading-banner {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

