:root {
    color-scheme: light;
    --pa-ink: #16324f;
    --pa-muted: #607284;
    --pa-border: #dce6ec;
    --pa-surface: #ffffff;
    --pa-bg: #f4f7fa;
    --pa-blue: #168fc3;
    --pa-coral: #eb6549;
    --pa-warning: #b86b00;
    --pa-danger: #b83636;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--pa-ink); background: var(--pa-bg); }
button, input, select, textarea { font: inherit; }

.platform-auth-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #dff4fb, transparent 45%), var(--pa-bg); }
.platform-auth-card { width: min(100%, 480px); padding: 36px; border: 1px solid var(--pa-border); border-radius: 20px; background: var(--pa-surface); box-shadow: 0 22px 60px rgba(22, 50, 79, .12); }
.platform-auth-brand, .platform-sidebar-brand { display: flex; align-items: center; gap: 12px; }
.platform-auth-brand div, .platform-sidebar-brand div { display: grid; gap: 2px; }
.platform-auth-brand span:not(.platform-auth-mark), .platform-sidebar-brand span:not(.platform-auth-mark) { color: var(--pa-muted); font-size: .86rem; }
.platform-auth-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; background: var(--pa-coral); font-size: 22px; }
.platform-eyebrow { margin: 28px 0 6px; color: var(--pa-blue); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { margin-bottom: 0; font-size: 1.25rem; }
.platform-auth-intro, .platform-topbar p, .platform-section-heading > span { color: var(--pa-muted); line-height: 1.55; }
.platform-auth-form { display: grid; gap: 10px; margin-top: 24px; }
.platform-auth-form label { margin-top: 8px; font-weight: 750; }
.platform-auth-form .platform-checkbox input { width: 20px; height: 20px; min-height: 20px; padding: 0; flex: 0 0 20px; }
.platform-auth-form input { min-height: 48px; padding: 10px 12px; border: 1px solid #b9c9d3; border-radius: 10px; color: var(--pa-ink); background: white; }
.platform-auth-form input:focus { outline: 3px solid rgba(22, 143, 195, .2); border-color: var(--pa-blue); }
.platform-auth-form .password-field { position: relative; isolation: isolate; width: 100%; display: block; }
.platform-auth-form .password-field > input { width: 100%; padding-right: 56px; }
.platform-auth-form .password-field-toggle { position: absolute; z-index: 3; top: 50%; right: 4px; width: 40px; min-height: 40px; height: 40px; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--pa-muted); cursor: pointer; transform: translateY(-50%); }
.platform-auth-form .password-field-toggle:hover { border-color: var(--pa-border); background: var(--pa-bg); color: var(--pa-blue); }
.platform-auth-form .password-field-toggle:focus-visible { border-color: var(--pa-blue); outline: 3px solid rgba(22, 143, 195, .22); outline-offset: 1px; }
.platform-auth-form .password-field-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.platform-auth-form .password-field-toggle.is-password-visible { color: var(--pa-blue); }
.platform-auth-form .password-field-toggle.is-password-visible::after { position: absolute; width: 23px; height: 2px; border-radius: 999px; background: currentColor; content: ""; transform: rotate(42deg); }
.platform-auth-form button, .platform-account-menu button { min-height: 44px; margin-top: 10px; padding: 10px 16px; border: 0; border-radius: 10px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-code-input { width: 100%; min-width: 0; max-width: 100%; text-align: center; font-variant-numeric: tabular-nums; font-size: clamp(1.35rem, 6vw, 1.8rem) !important; font-weight: 850; letter-spacing: .22em; }
.platform-auth-footnote { margin: 24px 0 0; color: var(--pa-muted); font-size: .84rem; text-align: center; }
.platform-alert { padding: 14px 16px; border: 1px solid var(--pa-border); border-radius: 12px; line-height: 1.45; }
.platform-alert-error { margin-top: 18px; color: #862d2d; border-color: #efb3b3; background: #fff2f2; }
.platform-alert-info { margin: 0 0 24px; color: #25556b; border-color: #b5ddea; background: #edf9fd; }
.platform-alert-success { margin: 0 0 18px; color: #246040; border-color: #acd9bd; background: #effaf3; }
.platform-alert-warning { margin: 0 0 24px; color: #704a00; border-color: #e8cb8b; background: #fff9e9; }
.platform-danger-zone { border-color: #e8a7a7; background: #fffafa; }
.platform-danger-zone .platform-eyebrow { color: var(--pa-danger); }
.platform-danger-form { display: grid; gap: 14px; max-width: 720px; margin-top: 18px; }
.platform-danger-form label { display: grid; gap: 6px; color: var(--pa-muted); font-size: .82rem; font-weight: 800; }
.platform-danger-form input, .platform-danger-form textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #d6a1a1; border-radius: 9px; color: var(--pa-ink); background: white; font: inherit; }
.platform-danger-form textarea { min-height: 90px; resize: vertical; }
.platform-danger-button { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 9px; color: white; background: var(--pa-danger); font-weight: 850; cursor: pointer; }
.platform-danger-button:focus, .platform-danger-form input:focus, .platform-danger-form textarea:focus { outline: 3px solid rgba(190, 24, 24, .2); }
.platform-logout-inline { margin-top: 18px; text-align: center; }
.platform-link-button { border: 0; color: var(--pa-muted); background: transparent; text-decoration: underline; cursor: pointer; }

.platform-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.platform-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; color: white; background: var(--pa-ink); }
.platform-sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.platform-sidebar-brand { padding: 0 8px 28px; }
.platform-sidebar-brand span:not(.platform-auth-mark) { color: #c7d7e3; }
.platform-sidebar-toggle { display: none; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 11px; color: white; background: rgba(255, 255, 255, .08); cursor: pointer; }
.platform-sidebar-toggle:hover, .platform-sidebar-toggle:focus-visible { background: rgba(255, 255, 255, .16); }
.platform-sidebar-toggle:focus-visible { outline: 3px solid rgba(255, 255, 255, .28); outline-offset: 2px; }
.platform-sidebar-toggle-icon, .platform-sidebar-toggle-icon::before, .platform-sidebar-toggle-icon::after { display: block; width: 22px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.platform-sidebar-toggle-icon { position: relative; }
.platform-sidebar-toggle-icon::before, .platform-sidebar-toggle-icon::after { position: absolute; left: 0; content: ""; }
.platform-sidebar-toggle-icon::before { top: -7px; }
.platform-sidebar-toggle-icon::after { top: 7px; }
.platform-sidebar.is-navigation-open .platform-sidebar-toggle-icon { background: transparent; }
.platform-sidebar.is-navigation-open .platform-sidebar-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.platform-sidebar.is-navigation-open .platform-sidebar-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }
.platform-sidebar nav { display: grid; gap: 6px; }
.platform-sidebar nav a, .platform-sidebar nav > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 9px; color: #d8e4ec; text-decoration: none; }
.platform-sidebar nav a.is-active { color: white; background: rgba(255, 255, 255, .13); font-weight: 800; }
.platform-sidebar nav a:hover, .platform-sidebar nav a:focus-visible { color: white; background: rgba(255, 255, 255, .09); }
.platform-sidebar nav > span { opacity: .65; }
.platform-sidebar small { font-size: .65rem; }
.platform-nav-count { min-width: 24px; padding: 3px 7px; border-radius: 999px; color: white; background: var(--pa-coral); font-size: .7rem !important; text-align: center; }
.platform-main { min-width: 0; padding: 32px clamp(20px, 4vw, 56px) 60px; }
.platform-topbar { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.platform-topbar .platform-eyebrow { margin-top: 0; }
.platform-account-menu { display: flex; align-items: center; gap: 14px; color: var(--pa-muted); font-weight: 700; }
.platform-account-menu button { margin: 0; color: var(--pa-ink); background: white; border: 1px solid var(--pa-border); }
.platform-section { margin-bottom: 24px; padding: 22px; border: 1px solid var(--pa-border); border-radius: 16px; background: var(--pa-surface); box-shadow: 0 8px 22px rgba(22, 50, 79, .05); }
.platform-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.platform-section-heading .platform-eyebrow { margin: 0 0 5px; }
.platform-section-heading > span { font-size: .82rem; }
.platform-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.platform-metric { display: grid; gap: 5px; min-height: 126px; padding: 16px; border: 1px solid var(--pa-border); border-radius: 12px; background: #fbfdfe; }
.platform-metric > span { color: var(--pa-muted); font-size: .86rem; font-weight: 750; }
.platform-metric strong { font-size: 2rem; }
.platform-metric small { color: var(--pa-muted); line-height: 1.35; }
.platform-metric-warning { border-left: 4px solid var(--pa-warning); }
.platform-metric-danger { border-left: 4px solid var(--pa-danger); }
.platform-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.platform-data-list { display: grid; gap: 0; margin: 0; }
.platform-data-list div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--pa-border); }
.platform-data-list div:last-child { border-bottom: 0; }
.platform-data-list dt { color: var(--pa-muted); }
.platform-data-list dd { margin: 0; font-weight: 850; text-align: right; }
.platform-help { margin: 14px 0 0; color: var(--pa-muted); font-size: .84rem; line-height: 1.5; }
.platform-back-link, .platform-primary-link, .platform-table a { color: #087aa9; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.platform-metric-compact { font-size: 1.55rem !important; }
.platform-text-danger { color: var(--pa-danger); font-weight: 850; }

.platform-filters { display: grid; grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(155px, 1fr)) auto auto; align-items: end; gap: 14px; }
.platform-filters-compact { grid-template-columns: minmax(260px, 2fr) minmax(190px, 1fr) auto auto; }
.platform-filters label, .platform-support-grid label { display: grid; gap: 6px; color: var(--pa-muted); font-size: .8rem; font-weight: 800; }
.platform-filters input, .platform-filters select, .platform-support-grid textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #b9c9d3; border-radius: 9px; color: var(--pa-ink); background: white; }
.platform-filters button, .platform-support-grid button { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 9px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-filters > a { min-height: 42px; display: inline-flex; align-items: center; color: var(--pa-muted); }
.platform-filters input:focus, .platform-filters select:focus, .platform-support-grid textarea:focus { outline: 3px solid rgba(22, 143, 195, .2); border-color: var(--pa-blue); }
.platform-support-grid button:disabled { opacity: .5; cursor: not-allowed; }

.platform-table-section { padding-left: 0; padding-right: 0; overflow: hidden; }
.platform-table-section > .platform-section-heading, .platform-table-section > .platform-pagination { margin-left: 22px; margin-right: 22px; }
.platform-table-wrap { max-width: 100%; overflow-x: auto; }
.platform-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.platform-table th { padding: 11px 14px; color: var(--pa-muted); background: #f7fafc; font-size: .72rem; letter-spacing: .03em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.platform-table td { padding: 14px; border-top: 1px solid var(--pa-border); vertical-align: top; line-height: 1.4; }
.platform-table td small { display: block; margin-top: 4px; color: var(--pa-muted); line-height: 1.35; }
.platform-email-retry { display: grid; grid-template-columns: minmax(170px, 1fr) auto; gap: 7px; min-width: 290px; }
.platform-email-retry input { min-height: 36px; padding: 7px 9px; border: 1px solid #b9c9d3; border-radius: 8px; }
.platform-email-retry button { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 8px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-table-compact th, .platform-table-compact td { padding: 10px 12px; }
.platform-column-filters th { padding: 8px 10px; border-top: 1px solid var(--pa-border); background: #eef4f7; }
.platform-sort-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.platform-sort-button::after { content: '↕'; }
[aria-sort="ascending"] > .platform-sort-button::after { content: '↑'; }
[aria-sort="descending"] > .platform-sort-button::after { content: '↓'; }
.platform-sort-button:focus-visible { outline: 2px solid var(--pa-blue); outline-offset: 3px; }
.platform-column-filters input, .platform-column-filters select { width: 100%; min-width: 110px; min-height: 36px; padding: 6px 8px; border: 1px solid #b9c9d3; border-radius: 8px; color: var(--pa-ink); background: white; font: inherit; letter-spacing: normal; text-transform: none; }
.platform-column-filters input:focus, .platform-column-filters select:focus { outline: 3px solid rgba(22, 143, 195, .2); border-color: var(--pa-blue); }
.platform-datatable-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px 0; border-top: 1px solid var(--pa-border); }
.platform-datatable-status { margin: 0; color: var(--pa-muted); font-size: .86rem; }
.platform-datatable-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.platform-datatable-actions label { display: inline-flex; align-items: center; gap: 7px; color: var(--pa-muted); font-size: .82rem; font-weight: 750; }
.platform-datatable-actions select, .platform-datatable-actions button { min-height: 36px; padding: 6px 9px; border: 1px solid var(--pa-border); border-radius: 8px; color: var(--pa-ink); background: white; font: inherit; }
.platform-datatable-pagination-actions { display: flex; gap: 8px; }
.platform-datatable-actions button { cursor: pointer; font-weight: 750; }
.platform-datatable-actions button:disabled { cursor: not-allowed; opacity: .5; }
.platform-empty { padding: 28px !important; color: var(--pa-muted); text-align: center; }
.platform-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; font-size: .74rem; font-weight: 850; }
.platform-badge-active { color: #246040; background: #dff4e7; }
.platform-badge-dormant { color: #704a00; background: #fff0c9; }
.platform-badge-inactive { color: #842f2f; background: #fbe0e0; }
.platform-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--pa-muted); font-size: .86rem; }
.platform-pagination a { padding: 8px 10px; border: 1px solid var(--pa-border); border-radius: 8px; color: var(--pa-ink); background: white; text-decoration: none; }
.platform-inline-list { margin: 0; padding-left: 18px; color: var(--pa-danger); font-size: .8rem; }

.platform-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.platform-support-grid form { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--pa-border); border-radius: 12px; background: #fbfdfe; }
.platform-support-grid h3 { margin: 0; font-size: 1rem; }
.platform-support-grid p { margin: 0; color: var(--pa-muted); font-size: .86rem; line-height: 1.45; }
.platform-support-grid textarea { min-height: 84px; resize: vertical; }
.platform-login-link-panel { max-width: 920px; }
.platform-login-link-value { display: grid; gap: 7px; margin-top: 18px; color: var(--pa-muted); font-size: .82rem; font-weight: 800; }
.platform-login-link-value input { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #b9c9d3; border-radius: 9px; color: var(--pa-ink); background: #f7fafc; font: inherit; }
.platform-login-link-value input:focus { outline: 3px solid rgba(22, 143, 195, .2); border-color: var(--pa-blue); }
.platform-login-link-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.platform-login-link-actions button { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 9px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-help { color: var(--pa-muted); font-size: .82rem; }
.platform-support-form { display: grid; gap: 12px; }
.platform-support-form label { display: grid; gap: 6px; color: var(--pa-muted); font-size: .8rem; font-weight: 800; }
.platform-support-form input, .platform-support-form select, .platform-support-form textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #b9c9d3; border-radius: 9px; color: var(--pa-ink); background: white; font: inherit; }
.platform-support-form textarea { min-height: 108px; resize: vertical; }
.platform-support-form input[type="checkbox"] { width: auto; min-height: auto; }
.platform-support-form button { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 9px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-support-form input:focus, .platform-support-form select:focus, .platform-support-form textarea:focus { outline: 3px solid rgba(22, 143, 195, .2); border-color: var(--pa-blue); }
.platform-choice-fieldset { margin: 0; padding: 16px; border: 1px solid var(--pa-border); border-radius: 12px; }
.platform-choice-fieldset legend { padding: 0 6px; color: var(--pa-muted); font-size: .82rem; font-weight: 850; }
.platform-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.platform-long-copy { margin: 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.platform-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.platform-timeline li { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--pa-border); line-height: 1.4; }
.platform-timeline li:last-child { border-bottom: 0; }
.platform-timeline span { color: var(--pa-muted); font-size: .82rem; }
.platform-moderation-metrics { margin-bottom: 24px; }
.platform-moderation-filters { grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(135px, 1fr)) auto auto; }
.platform-priority { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .74rem; font-weight: 850; }
.platform-priority-urgent { color: #842f2f; background: #fbe0e0; }
.platform-priority-high { color: #704a00; background: #fff0c9; }
.platform-priority-standard { color: #25556b; background: #dff4fb; }
.platform-row-overdue { box-shadow: inset 4px 0 var(--pa-danger); }
.platform-row-new { box-shadow: inset 4px 0 var(--pa-blue); }
.platform-feedback-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.platform-feedback-filters { grid-template-columns: minmax(250px, 2fr) repeat(4, minmax(145px, 1fr)) auto auto; }
.platform-feedback-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform-feedback-treatment { gap: 16px; }
.platform-feedback-diagnostics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.platform-feedback-diagnostics div { min-width: 0; }
.platform-feedback-diagnostics dd { overflow-wrap: anywhere; }
.platform-feedback-status-new { color: #25556b; background: #dff4fb; }
.platform-feedback-status-in_progress { color: #704a00; background: #fff0c9; }
.platform-feedback-status-waiting_user { color: #4f3b87; background: #eee8ff; }
.platform-feedback-status-resolved { color: #246040; background: #dff4e7; }
.platform-feedback-status-closed, .platform-feedback-status-spam { color: #58646d; background: #e8eef2; }
.platform-feedback-media-grid img { object-fit: contain; }
.platform-audience-alert-list { margin: 8px 0 0; padding-left: 20px; }
.platform-audience-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.platform-audience-presets a { padding: 7px 11px; border: 1px solid var(--pa-border); border-radius: 999px; color: var(--pa-ink); background: #f7fafc; font-size: .82rem; font-weight: 800; text-decoration: none; }
.platform-audience-presets a:hover, .platform-audience-presets a:focus-visible { border-color: var(--pa-blue); color: #087aa9; }
.platform-audience-filters { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.platform-audience-filters button, .platform-audience-filters > a, .platform-family-filters button, .platform-family-filters > a { align-self: end; justify-content: center; }
.platform-audience-metrics { margin-bottom: 24px; }
.platform-audience-metric-views { border-top: 3px solid var(--pa-blue); background: linear-gradient(180deg, #f3fbfe, #fbfdfe 55%); }
.platform-audience-metric-clicks { border-top: 3px solid var(--pa-coral); background: linear-gradient(180deg, #fff7f4, #fbfdfe 55%); }
.platform-audience-scroll-hint { display: none; margin: 0 0 9px; color: var(--pa-muted); font-size: .78rem; line-height: 1.4; }
.platform-audience-chart-wrap { max-width: 100%; overflow-x: auto; border-radius: 10px; scrollbar-color: #9eb7c6 #edf3f6; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
.platform-audience-chart-wrap:focus-visible, .platform-audience-wide-table-wrap:focus-visible { outline: 3px solid rgba(22, 143, 195, .24); outline-offset: 3px; }
.platform-audience-chart { display: block; min-width: 720px; width: 100%; height: auto; }
.platform-chart-axis { stroke: #afbec8; stroke-width: 1; }
.platform-chart-label { fill: var(--pa-muted); font-size: 11px; }
.platform-chart-bar { shape-rendering: geometricPrecision; }
.platform-chart-page, .platform-legend-swatch.platform-chart-page { fill: var(--pa-blue); background: var(--pa-blue); }
.platform-chart-cta, .platform-legend-swatch.platform-chart-cta { fill: var(--pa-coral); background: var(--pa-coral); }
.platform-chart-conversion, .platform-legend-swatch.platform-chart-conversion { fill: #5978b8; background: #5978b8; }
.platform-audience-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 0; padding: 0; color: var(--pa-muted); font-size: .82rem; list-style: none; }
.platform-audience-legend li { display: inline-flex; align-items: center; gap: 7px; }
.platform-legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.platform-audience-data-details { margin-top: 18px; }
.platform-audience-data-details summary { color: #087aa9; font-weight: 800; cursor: pointer; }
.platform-audience-data-details .platform-table-wrap { margin-top: 14px; border: 1px solid var(--pa-border); border-radius: 10px; }
.platform-audience-funnel { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.platform-audience-funnel li { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 2fr); align-items: center; gap: 18px; }
.platform-audience-funnel li > div { display: flex; justify-content: space-between; gap: 12px; }
.platform-audience-funnel span { color: var(--pa-muted); font-size: .82rem; }
.platform-audience-funnel svg { display: block; width: 100%; height: 18px; }
.platform-funnel-track { fill: #e6edf1; }
.platform-funnel-value { fill: var(--pa-blue); }
.platform-audience-table-grid { align-items: start; }
.platform-section form > button:not(.platform-danger-button) { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 9px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-moderation-content, .platform-moderation-details { padding: 15px; border-radius: 10px; background: #f7fafc; line-height: 1.55; white-space: pre-wrap; }
.platform-moderation-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.platform-moderation-actions form, .platform-break-glass-form { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--pa-border); border-radius: 12px; background: #fbfdfe; }
.platform-moderation-actions h3 { margin: 0; }
.platform-moderation-actions p { min-height: 58px; margin: 0; color: var(--pa-muted); font-size: .84rem; line-height: 1.45; }
.platform-moderation-actions textarea, .platform-moderation-actions select, .platform-break-glass-form input, .platform-break-glass-form textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #b9c9d3; border-radius: 9px; background: white; }
.platform-moderation-actions textarea, .platform-break-glass-form textarea { min-height: 96px; resize: vertical; }
.platform-moderation-actions button, .platform-break-glass-form button { min-height: 42px; border: 0; border-radius: 9px; color: white; background: var(--pa-ink); font-weight: 800; cursor: pointer; }
.platform-moderation-actions .platform-button-danger { background: var(--pa-danger); }
.platform-checkbox { display: flex; align-items: center; gap: 8px; color: var(--pa-muted); font-size: .82rem; }
.platform-break-glass { border-color: #e8cb8b; background: #fffdf7; }
.platform-break-glass-form { grid-template-columns: minmax(180px, .65fr) minmax(280px, 1.7fr) auto; align-items: end; margin-top: 16px; }
.platform-break-glass-form label { display: grid; gap: 6px; color: var(--pa-muted); font-size: .8rem; font-weight: 800; }
.platform-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.platform-media-grid figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--pa-border); border-radius: 12px; background: #fbfdfe; }
.platform-media-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8eef2; }
.platform-media-grid figcaption { display: grid; gap: 3px; padding: 11px; }
.platform-media-grid figcaption span { color: var(--pa-muted); font-size: .78rem; }
.platform-media-grid-detail { grid-template-columns: repeat(auto-fill, minmax(160px, 220px)); margin-bottom: 18px; }

@media (max-width: 960px) {
    .platform-shell { grid-template-columns: 1fr; }
    .platform-sidebar { position: static; height: auto; }
    .platform-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-filters, .platform-moderation-filters, .platform-feedback-filters, .platform-feedback-form-grid, .platform-break-glass-form, .platform-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-feedback-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-moderation-actions { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .platform-auth-card { padding: 24px 20px; }
    .platform-main { padding: 22px 14px 44px; }
    .platform-topbar, .platform-section-heading { align-items: stretch; flex-direction: column; }
    .platform-account-menu { justify-content: space-between; }
    .platform-sidebar { padding: 14px; }
    .platform-sidebar-brand { padding: 0; }
    .platform-sidebar-toggle { display: grid; }
    .platform-sidebar nav, .platform-metric-grid, .platform-two-columns, .platform-filters, .platform-support-grid, .platform-moderation-filters, .platform-feedback-filters, .platform-feedback-form-grid, .platform-break-glass-form, .platform-choice-grid { grid-template-columns: 1fr; }
    .platform-sidebar nav { margin-top: 12px; }
    .platform-sidebar.is-navigation-ready nav { display: none; }
    .platform-sidebar.is-navigation-ready.is-navigation-open nav { display: grid; }
    .platform-sidebar nav > span { display: none; }
    .platform-pagination { align-items: stretch; flex-direction: column; text-align: center; }
    .platform-datatable-controls { align-items: stretch; flex-direction: column; }
    .platform-datatable-actions { align-items: stretch; flex-direction: column; }
    .platform-datatable-actions label { justify-content: flex-start; }
    .platform-datatable-pagination-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .platform-datatable-pagination-actions button { min-width: 0; min-height: 48px; padding: 6px; line-height: 1.2; overflow-wrap: anywhere; }
    .platform-audience-funnel li { grid-template-columns: 1fr; gap: 7px; }
    .platform-audience-page .platform-topbar, .platform-family-page .platform-topbar { gap: 14px; margin-bottom: 20px; }
    .platform-audience-page .platform-section, .platform-family-page .platform-section { padding: 16px; border-radius: 14px; }
    .platform-audience-page .platform-table-section, .platform-family-page .platform-table-section { padding-right: 0; padding-left: 0; }
    .platform-audience-page .platform-section-heading, .platform-family-page .platform-section-heading { gap: 6px; margin-bottom: 14px; }
    .platform-audience-page .platform-section-heading > span, .platform-family-page .platform-section-heading > span { font-size: .76rem; }
    .platform-audience-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
    .platform-audience-presets a { display: grid; place-items: center; min-height: 44px; padding: 7px 5px; text-align: center; }
    .platform-audience-filters, .platform-family-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
    .platform-audience-filters label, .platform-family-filters label { min-width: 0; }
    .platform-audience-filters input, .platform-audience-filters select, .platform-family-filters input, .platform-family-filters select { min-width: 0; min-height: 46px; }
    .platform-audience-filters button, .platform-audience-filters > a, .platform-family-filters button, .platform-family-filters > a { width: 100%; min-height: 46px; }
    .platform-audience-filters > a, .platform-family-filters > a { justify-content: center; border: 1px solid var(--pa-border); border-radius: 9px; background: #f7fafc; font-weight: 800; text-decoration: none; }
    .platform-family-filters label:first-child { grid-column: 1 / -1; }
    .platform-audience-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .platform-audience-metrics .platform-metric { min-height: 112px; padding: 13px; }
    .platform-audience-metrics .platform-metric strong { font-size: 1.65rem; overflow-wrap: anywhere; }
    .platform-audience-metrics .platform-metric small { font-size: .75rem; }
    .platform-audience-scroll-hint { display: block; }
    .platform-audience-table-scroll-hint { margin: 0 16px 9px; }
    .platform-audience-chart-wrap { margin: 0 -2px; border: 1px solid var(--pa-border); background: #fbfdfe; }
    .platform-audience-chart { min-width: 560px; }
    .platform-audience-legend { gap: 7px; }
    .platform-audience-legend li { min-height: 32px; padding: 5px 8px; border: 1px solid var(--pa-border); border-radius: 999px; background: #f7fafc; }
    .platform-audience-funnel { gap: 18px; }
    .platform-audience-funnel li { padding-bottom: 12px; border-bottom: 1px solid var(--pa-border); }
    .platform-audience-funnel li:last-child { padding-bottom: 0; border-bottom: 0; }
    .platform-audience-table-grid { gap: 14px; }
    .platform-audience-page .platform-table-section > .platform-section-heading, .platform-family-page .platform-table-section > .platform-section-heading { margin-right: 16px; margin-left: 16px; }
    .platform-audience-page .platform-table th, .platform-family-page .platform-table th { padding: 9px 11px; }
    .platform-audience-page .platform-table td, .platform-family-page .platform-table td { padding: 12px 11px; }
    .platform-audience-page .platform-datatable-controls, .platform-family-page .platform-datatable-controls { padding: 12px 16px 0; }
    .platform-audience-wide-table-wrap { scrollbar-color: #9eb7c6 #edf3f6; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
}

@media (max-width: 360px) {
    .platform-audience-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-audience-filters, .platform-family-filters { grid-template-columns: 1fr; }
    .platform-family-filters label:first-child { grid-column: auto; }
    .platform-audience-metrics .platform-metric { padding: 11px; }
    .platform-audience-metrics .platform-metric strong { font-size: 1.5rem; }
}

/* Accueil et listes : accès directs, recherches disponibles à la demande. */
.platform-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.platform-shortcut { --shortcut-color: #175a9b; --shortcut-surface: #edf5ff; display: grid; align-content: start; gap: 7px; min-width: 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--shortcut-color) 20%, white); border-radius: 15px; background: var(--shortcut-surface); color: var(--shortcut-color); text-decoration: none; transition: box-shadow .15s ease; }
.platform-shortcut:hover { box-shadow: 0 4px 14px #16324f18; }
.platform-shortcut:focus-visible, .platform-filter-panel > summary:focus-visible, .platform-dashboard-details > summary:focus-visible { outline: 3px solid var(--pa-blue); outline-offset: 3px; }
.platform-shortcut-violet { --shortcut-color: #65429b; --shortcut-surface: #f3eefd; }
.platform-shortcut-cyan { --shortcut-color: #12667b; --shortcut-surface: #e8f7fa; }
.platform-shortcut-amber { --shortcut-color: #815308; --shortcut-surface: #fff5df; }
.platform-shortcut-coral { --shortcut-color: #9e3d3d; --shortcut-surface: #ffefed; }
.platform-shortcut-green { --shortcut-color: #17644e; --shortcut-surface: #eaf7f0; }
.platform-shortcut-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.platform-shortcut-heading svg { flex-shrink: 0; }
.platform-shortcut-badge { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; padding: 2px 6px; border-radius: 999px; background: var(--shortcut-color); color: white; font-size: .7rem; font-weight: 800; }
.platform-shortcut-label { font-size: .9rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.platform-shortcut strong { font-size: 1.6rem; line-height: 1; }
.platform-shortcut small { font-size: .72rem; }
.platform-filter-panel > summary, .platform-dashboard-details > summary { padding: 2px 0; cursor: pointer; color: var(--pa-ink); font-weight: 750; }
.platform-filter-panel[open] > summary, .platform-dashboard-details[open] > summary { margin-bottom: 16px; }
.platform-filter-panel:not([open]) { padding: 12px 16px; margin-bottom: 12px; }
.platform-dashboard-details > summary { margin-bottom: 14px; font-size: .85rem; }
.platform-admin-native .platform-topbar .platform-eyebrow, .platform-admin-native .platform-topbar h1 + p { display: none; }
.platform-admin-native .platform-topbar { margin-bottom: 12px; }

@media (max-width: 640px) {
    .platform-shell { align-content: start; }
    .platform-main { padding: 12px 10px 24px; }
    .platform-topbar, .platform-audience-page .platform-topbar, .platform-family-page .platform-topbar { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; }
    .platform-topbar .platform-eyebrow, .platform-topbar h1 + p { display: none; }
    .platform-topbar h1 { margin: 0; font-size: 1.4rem; }
    .platform-account-menu { flex-shrink: 0; }
    .platform-account-menu button { min-height: 40px; padding: 7px 10px; font-size: .72rem; }
    .platform-section, .platform-family-page .platform-section, .platform-audience-page .platform-section { padding: 12px; margin-bottom: 12px; border-radius: 12px; }
    .platform-filter-panel:not([open]) { padding: 11px 12px; }
    .platform-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .platform-metric { min-height: 0; padding: 11px; gap: 4px; }
    .platform-metric strong { font-size: 1.5rem; }
    .platform-metric > span { font-size: .76rem; }
    .platform-metric small { font-size: .7rem; }
    .platform-datatable-actions button { min-height: 48px; padding: 8px; font-size: .76rem; }
    .platform-dashboard-shell > .platform-sidebar { display: none; }
    .platform-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
    .platform-shortcut { padding: 12px; gap: 6px; border-radius: 12px; }
    .platform-shortcut-label { font-size: .75rem; overflow-wrap: normal; hyphens: auto; }
    .platform-shortcut strong { font-size: 1.3rem; }
}
@media (min-width: 380px) and (max-width: 640px) {
    .platform-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .platform-shortcut { transition: none; }
}
