/* Geography and acquisition share a layout; reporting periods stay explicit. */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stats-dashboard .card.audience-card { min-width: 0; padding: 20px 20px 0; overflow: hidden; border-color: #94a3b821; background: radial-gradient(ellipse at 0 0, #34d39907, transparent 65%), #0f1216; }
.audience-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audience-header > div { min-width: 0; }
.audience-title { margin: 0; color: #f1f5f9; font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.audience-description { margin: 6px 0 0; color: #8b95a4; font-size: 11px; line-height: 1.6; }
.audience-period { flex-shrink: 0; padding: 5px 8px; border: 1px solid #2b343e; border-radius: 6px; background: #171d24; color: #b3becc; font-size: 10px; font-weight: 600; white-space: nowrap; }
.audience-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin-top: 12px; border-bottom: 1px solid #ffffff0d; }
.audience-indicator { display: flex; align-items: center; gap: 7px; color: #a6b4c5; font-size: 11px; }
.audience-indicator i { width: 6px; height: 6px; background: #34d399; border-radius: 50%; }
.audience-columns { color: #8491a2; font-size: 10px; text-align: right; }
.audience-tabs { display: flex; padding: 3px; gap: 3px; border: 1px solid #252c34; border-radius: 9px; background: #0a0d11; }
.audience-tab { padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: #98a2b1; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.audience-tab:hover { background: #192027; color: #f1f5f9; }
.audience-tab.is-active { background: #22263f; color: #a5b4fc; box-shadow: inset 0 0 0 1px #818cf82e; }
.audience-list { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.audience-row { display: block; width: 100%; min-width: 0; padding: 13px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; font: inherit; }
button.audience-row, summary.audience-row { cursor: pointer; }
button.audience-row:hover, summary.audience-row:hover, .audience-row[aria-expanded="true"] { background: #ffffff04; border-color: #ffffff0b; }
.audience-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.audience-row-label { display: flex; align-items: center; gap: 9px; min-width: 0; color: #d0d9e5; font-size: 12px; }
.audience-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audience-flag, .audience-source-symbol { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; background: #202730; color: #a9b7c9; font-size: 9px; font-weight: 650; }
.audience-flag img { display: block; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }
.audience-source-symbol { color: #a5b4fc; background: #818cf816; font-size: 12px; }
.audience-row-values { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.audience-count { color: #edf2f8; font-weight: 600; }
.audience-share { min-width: 48px; text-align: right; color: #91a0b3; }
.audience-chevron { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; margin: 0 3px 1px; border-right: 1px solid #8a98aa; border-bottom: 1px solid #8a98aa; transform: rotate(-45deg); transition: transform .18s; }
[aria-expanded="true"] .audience-chevron, details[open] > summary .audience-chevron { transform: rotate(45deg); }
.audience-track { display: block; height: 4px; margin: 9px 0 0 33px; overflow: hidden; border-radius: 4px; background: #202730; }
.audience-bar { display: block; height: 100%; width: var(--audience-width); border-radius: inherit; background: #34d399; }
.audience-sources .audience-bar { background: #818cf8; }
.audience-detail { margin: 2px 8px 9px 20px; padding: 7px 0 7px 14px; border-left: 1px solid #34d39938; }
.audience-city-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 7px; border: 0; border-radius: 6px; background: transparent; color: #acb9ca; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.audience-city-button:hover { color: #e2e8f0; background: #ffffff04; }
.audience-city-button > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audience-city-values { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.audience-isp { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px; color: #9bacc1; font-size: 11px; }
.audience-isp > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.audience-isp > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.audience-status { margin: 0; padding: 12px 7px; color: #8b9caf; font-size: 11px; line-height: 1.6; }
.audience-error { color: #f1b891; }
.audience-retry { margin: 0 7px 7px; padding: 6px 9px; border: 1px solid #475569; border-radius: 6px; background: #171d24; color: #d6e2f1; font: inherit; font-size: 11px; cursor: pointer; }
.audience-more { display: block; width: 100%; margin: 0 0 14px; padding: 9px; border: 1px solid #293340; border-radius: 8px; background: #ffffff02; color: #acbcd0; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.audience-more:hover { color: #6ee7b7; border-color: #35564c; }
.audience-empty { display: flex; align-items: center; justify-content: center; min-height: 302px; padding: 24px; color: #8b9caf; text-align: center; font-size: 12px; line-height: 1.6; }
.audience-footer { margin: 0 -20px; padding: 12px 20px; border-top: 1px solid #ffffff0c; background: #ffffff01; color: #8491a2; font-size: 10px; line-height: 1.6; }
.audience-quality summary { list-style: none; }
.audience-quality summary::-webkit-details-marker { display: none; }
.audience-quality[open] > summary { background: #ffffff04; border-color: #ffffff0b; }
.audience-quality-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; margin: 0 8px 12px; padding: 14px; border: 1px solid #818cf826; border-radius: 9px; background: #818cf808; }
.audience-quality-metrics dt { color: #8b9caf; font-size: 10px; line-height: 1.5; }
.audience-quality-metrics dd { margin: 4px 0 0; color: #dce5f1; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.audience-quality-score { color: #b7c2ff; }
.audience-row:focus-visible, .audience-tab:focus-visible, .audience-city-button:focus-visible, .audience-more:focus-visible, .audience-retry:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }
.audience-list > [hidden], .audience-detail[hidden], .audience-more[hidden] { display: none; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
    .stats-dashboard .card.audience-card { padding: 17px 15px 0; }
    .audience-title { font-size: 14px; }
    .audience-row { padding: 12px 4px; }
    .audience-row-top { gap: 7px; }
    .audience-row-label { gap: 7px; font-size: 11px; }
    .audience-row-values { gap: 6px; font-size: 10px; }
    .audience-share { min-width: 42px; }
    .audience-footer { margin: 0 -15px; padding: 11px 15px; }
    .audience-detail { margin-left: 10px; padding-left: 9px; }
    .audience-columns { font-size: 9px; }
    .audience-indicator { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .audience-chevron { transition: none; } }
