:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0b1d3a;
    background: #f7f9fc;
    font-synthesis: none;
    --signal: #2f55e7;
    --signal-deep: #2142be;
    --signal-soft: #eef2ff;
    --action: #008f76;
    --canvas: #f7f9fc;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --ink: #0b1d3a;
    --muted: #475467;
    --border: #d0d5dd;
    --border-soft: #e4e7ec;
    --danger: #b42318;
    --focus: #84caff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --ease: 180ms cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.app-loader {
    position: fixed;
    inset: 64px 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 42px minmax(0, 280px);
    gap: 14px;
    align-content: center;
    justify-content: center;
    padding: 24px;
    color: var(--ink);
    background: var(--canvas);
}
.app-loader__mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #fff; background: var(--signal); font-weight: 800; }
.app-loader div { display: grid; gap: 4px; align-content: center; }
.app-loader strong { font-size: 14px; }
.app-loader div span { color: var(--muted); font-size: 12px; }
.app-loader__progress {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: #dfe5f2;
}
.app-loader__progress::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: var(--signal);
    content: "";
    animation: loader-progress 1.1s ease-in-out infinite;
}
body[data-view="booting"] .shell,
body[data-view="booting"] .privacy-note { visibility: hidden; }

.product-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 max(20px, calc((100% - 1280px) / 2));
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .96);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.brand strong { color: var(--signal); }
.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: var(--signal);
    color: #fff;
    font-weight: 800;
}

.shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 72px;
}
body[data-view="access"] .shell { display: grid; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); align-content: center; padding-top: 40px; }
body[data-view="access"] .page-header { display: none; }
.page-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
    padding: 20px 22px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.page-header::after { position: absolute; right: -22px; width: 180px; height: 100%; opacity: .55; background-image: radial-gradient(circle, #dce4fb 2px, transparent 2px); background-size: 16px 16px; content: ""; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.profile-identity { position: relative; z-index: 1; display: flex; min-width: 0; align-items: center; gap: 14px; }
.profile-avatar { display: grid; flex: 0 0 auto; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: #fff; background: var(--signal); font-size: 18px; font-weight: 750; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(47, 85, 231, .2); }
.profile-copy { min-width: 0; }
.profile-eyebrow, .section-kicker, .access-kicker { display: block; margin-bottom: 4px; color: var(--signal-deep); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.profile-copy h1 { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.profile-project { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 550; }
.account-context { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
.account-context div { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface-subtle); }
.account-context dt { color: var(--muted); font-size: 11px; font-weight: 600; }
.account-context dt::after { content: ":"; }
.account-context dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 650; }
h1, h2, p { text-wrap: pretty; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.025em; }
h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.subtitle { max-width: 68ch; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}
.status::before { width: 7px; height: 7px; border-radius: 50%; background: #667085; content: ""; }

.panel {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.panel-heading h2 { margin-bottom: 3px; }
.panel-heading p, .filter-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.access-panel { display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(380px, .95fr); width: min(100%, 940px); margin: 0 auto; padding: 0; overflow: hidden; border-color: #dfe5f2; box-shadow: 0 18px 50px rgba(11, 29, 58, .08); }
.access-intro { position: relative; padding: 46px; overflow: hidden; background: var(--signal-soft); }
.access-intro::after { position: absolute; right: -50px; bottom: -55px; width: 230px; height: 230px; border: 38px solid rgba(47, 85, 231, .07); border-radius: 54px; content: ""; transform: rotate(14deg); }
.access-badge { display: inline-flex; padding: 6px 10px; border: 1px solid #cfd8ff; border-radius: 999px; color: var(--signal-deep); background: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 700; }
.access-intro h2 { max-width: 17ch; margin-top: 22px; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
.access-intro > p { max-width: 46ch; margin: 12px 0 0; color: #344054; line-height: 1.6; }
.access-assurances { position: relative; z-index: 1; display: grid; gap: 18px; margin: 34px 0 0; padding: 28px 0 0; border-top: 1px solid #cfd8ff; list-style: none; }
.access-assurances li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; }
.access-assurances li > div { display: grid; gap: 3px; }
.benefit-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--signal-deep); background: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 1px 3px rgba(11, 29, 58, .08); }
.access-assurances strong { color: var(--ink); font-size: 13px; }
.access-assurances span { color: #475467; font-size: 12px; line-height: 1.5; }
.access-methods { display: flex; min-width: 0; padding: 46px; flex-direction: column; justify-content: center; }
.access-methods__heading { margin-bottom: 28px; }
.access-methods__heading h2 { max-width: 18ch; font-size: 24px; letter-spacing: -.015em; }
.access-methods__heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-pending {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon message";
    gap: 2px 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f4b4b0;
    border-radius: var(--radius-md);
    color: #7a271a;
    background: #fff5f4;
    font-size: 12px;
    line-height: 1.45;
}
.login-pending::before {
    display: grid;
    grid-area: icon;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    content: "!";
    font-size: 12px;
    font-weight: 800;
}
.login-pending strong { grid-area: title; color: #7a271a; font-size: 13px; }
.login-pending span { grid-area: message; }
.login-pending--notice {
    border-color: #b7c6ff;
    color: #344054;
    background: var(--signal-soft);
}
.login-pending--notice::before { background: var(--signal); content: "i"; }
.login-pending--notice strong { color: var(--ink); }
.account-form { display: grid; gap: 16px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 50%; right: 7px; min-width: 48px; padding: 6px; border: 0; border-radius: var(--radius-sm); color: var(--signal-deep); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; transform: translateY(-50%); }
.password-field button:hover { background: var(--signal-soft); }
.password-field button:focus-visible, .text-button:focus-visible, .checkbox-label input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.account-submit { width: 100%; margin-top: 2px; }
.sign-in-help { margin: 18px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; text-align: center; }
.access-panel > .error { grid-column: 1 / -1; margin: 0 32px 32px; }

label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 600; }
input, select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--ink);
    background: #fff;
    transition: border-color var(--ease), box-shadow var(--ease);
}
input::placeholder { color: #667085; opacity: 1; }
input:hover, select:hover { border-color: #98a2b3; }
input:focus, select:focus { border-color: var(--signal); outline: 3px solid #d1e9ff; }
input:disabled { border-color: var(--border-soft); color: #667085; background: #f2f4f7; cursor: not-allowed; }

.button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--signal);
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--signal);
    cursor: pointer;
    font-weight: 650;
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.button:hover:not(:disabled) { border-color: var(--signal-deep); background: var(--signal-deep); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:focus-visible, .presets button:focus-visible, .brand:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button--secondary { border-color: var(--border); color: #344054; background: #fff; }
.button--secondary:hover:not(:disabled) { border-color: #98a2b3; color: var(--ink); background: var(--surface-subtle); }
.button--quiet { min-height: 34px; padding: 6px 10px; border-color: transparent; color: #344054; background: transparent; }
.button--quiet:hover:not(:disabled) { border-color: var(--border-soft); color: var(--ink); background: var(--surface-subtle); }

.filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(140px, .8fr)) auto;
    gap: 16px;
    align-items: start;
    padding: 24px;
}
.filter-heading { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.filter-heading h2 { font-size: 20px; letter-spacing: -.015em; }
.filter-actions { display: flex; gap: 8px; align-self: start; margin-top: 25px; white-space: nowrap; }
.project-filter { position: relative; display: grid; min-width: 0; gap: 7px; }
.field-label { color: #344054; font-size: 13px; font-weight: 600; }
.field-note { min-height: 17px; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.combobox-trigger { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink); background: var(--surface); cursor: pointer; text-align: left; transition: border-color var(--ease), box-shadow var(--ease); }
.combobox-trigger:hover:not(:disabled) { border-color: #98a2b3; }
.combobox-trigger:focus-visible, .combobox-trigger[aria-expanded="true"] { border-color: var(--signal); outline: 3px solid #d1e9ff; }
.combobox-trigger:disabled { cursor: wait; opacity: .65; }
.combobox-trigger > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combobox-chevron { width: 8px; height: 8px; margin: -4px 2px 0 0; border-right: 2px solid #667085; border-bottom: 2px solid #667085; transform: rotate(45deg); transition: transform var(--ease), margin var(--ease); }
.combobox-trigger[aria-expanded="true"] .combobox-chevron { margin-top: 4px; transform: rotate(225deg); }
.combobox-menu { position: fixed; inset: auto; z-index: 60; max-height: min(360px, calc(100vh - 24px)); margin: 0; padding: 6px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 4px 8px rgba(16, 24, 40, .14); }
.combobox-menu::backdrop { background: transparent; }
.combobox-menu[data-open="true"] { display: block; }
.combobox-search { display: block; padding: 2px; }
.combobox-search input { min-height: 40px; padding-left: 11px; }
.combobox-options { max-height: 264px; margin-top: 5px; overflow-y: auto; overscroll-behavior: contain; }
.combobox-option { display: block; width: 100%; min-height: 40px; padding: 10px; overflow: hidden; border: 0; border-radius: var(--radius-sm); color: #344054; background: transparent; cursor: pointer; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.combobox-option:hover, .combobox-option:focus-visible { outline: 0; color: var(--ink); background: var(--surface-subtle); }
.combobox-option[aria-selected="true"] { color: var(--signal-deep); background: var(--signal-soft); font-weight: 650; }
.combobox-option--manual { color: var(--muted); }
.combobox-empty { margin: 5px 0 0; padding: 18px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.presets { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin: 0; padding: 0; border: 0; }
.presets legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.presets button { min-height: 34px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px; color: #344054; background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; transition: border-color var(--ease), color var(--ease), background var(--ease); }
.presets button:hover, .presets button[aria-pressed="true"] { border-color: #84adff; color: var(--signal-deep); background: var(--signal-soft); }

.error, .state-message { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius-md); line-height: 1.5; }
.error { border: 1px solid #fecdca; color: var(--danger); background: #fef3f2; }
.state-message { border: 1px solid var(--border-soft); color: var(--muted); background: var(--surface); }
.loading-state { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; align-items: center; }
.loading-state > div { display: grid; gap: 3px; }
.loading-state strong { color: var(--ink); font-size: 13px; }
.loading-state span { font-size: 12px; }
.loading-state__bar { position: relative; width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: #e5e9f2; }
.loading-state__bar::after { position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: inherit; background: var(--signal); content: ""; animation: loader-progress 1.1s ease-in-out infinite; }

@keyframes loader-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(340%); }
}

.summary-grid { display: grid; grid-template-columns: repeat(8, minmax(120px, 1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface); }
.summary-card { min-width: 0; padding: 18px; border-right: 1px solid var(--border-soft); }
.summary-card:last-child { border-right: 0; }
.summary-label { display: block; min-height: 36px; color: var(--muted); font-size: 12px; font-weight: 550; line-height: 1.4; }
.summary-value { display: block; margin-top: 7px; overflow: hidden; color: var(--ink); font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; text-overflow: ellipsis; }
.summary-card:first-child { box-shadow: inset 0 2px var(--signal); }
.summary-card:nth-child(2) { box-shadow: inset 0 2px var(--action); }

.analytics-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr); gap: 18px; align-items: stretch; }
.analytics-grid > .panel { height: 464px; }
.enrichment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.split-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.performance-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--border-soft); }
.performance-metric { padding: 14px; background: var(--surface-subtle); }
.performance-metric span { display: block; color: var(--muted); font-size: 12px; }
.performance-metric strong { display: block; margin-top: 5px; font-size: 19px; font-variant-numeric: tabular-nums; }
.availability-note { margin: 5px 0 16px; color: var(--muted); font-size: 13px; }
.privacy-note { width: min(1280px, calc(100% - 40px)); margin: -46px auto 24px; color: #667085; font-size: 12px; line-height: 1.5; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legend span { display: flex; gap: 6px; align-items: center; }
.legend-dot { width: 10px; height: 3px; border-radius: 2px; }
.legend-dot--views { background: var(--signal); }
.legend-dot--clicks { background: var(--action); }
.chart { min-height: 360px; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; min-height: 340px; }
.chart-grid { stroke: #eaecf0; stroke-width: 1; }
.chart-axis-label { fill: #667085; font-size: 11px; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line--views { stroke: var(--signal); }
.chart-line--clicks { stroke: var(--action); stroke-dasharray: 7 5; }
.chart-point--views { fill: var(--signal); }
.chart-point--clicks { fill: var(--surface); stroke: var(--action); stroke-width: 2; }

.button-list-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; font-weight: 650; }
.button-list-heading span:last-child { min-width: 52px; text-align: right; }
.button-bars { display: grid; min-height: 0; align-content: start; gap: 12px; padding-inline-end: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.button-bars:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.button-bar-row { display: grid; grid-template-areas: "label value" "track track"; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.button-bar-row:last-child { padding-bottom: 0; border-bottom: 0; }
.button-bar-label { grid-area: label; min-width: 0; color: #344054; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.button-bar-track { grid-area: track; height: 7px; overflow: hidden; border-radius: 999px; background: #eaecf0; }
.button-bar-fill { height: 100%; min-width: 2px; border-radius: inherit; background: var(--action); }
.button-bar-value { grid-area: value; min-width: 52px; color: var(--ink); font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.button-bars-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.button-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--border-soft); }
.button-detail-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.button-detail-copy { display: grid; min-width: 0; gap: 4px; }
.button-detail-label { color: #344054; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.button-detail-meta { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.button-detail-value { min-width: 72px; color: var(--ink); font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.button-details-empty { grid-column: 1 / -1; margin: 0; padding: 24px; color: var(--muted); text-align: center; }
.button-details-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.button-details-pagination[hidden], .button-details-actions[hidden] { display: none; }
.button-details-pagination p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.button-details-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.button-details-actions .button { min-width: 92px; }

.table-scroll { width: 100%; overflow-x: auto; }
.buttons-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--border-soft); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: var(--surface-subtle); font-size: 12px; font-weight: 650; }
td { color: #344054; font-size: 13px; }
tbody tr:hover td { background: #f9fafb; }
tbody tr:last-child td { border-bottom: 0; }
th:not(:first-child), td:not(:first-child) { text-align: right; }
.empty-cell { padding: 24px !important; color: #667085; text-align: center !important; }

@media (max-width: 1120px) {
    .summary-grid { grid-template-columns: repeat(4, 1fr); }
    .summary-card:nth-child(4n) { border-right: 0; }
    .summary-card:nth-child(-n+4) { border-bottom: 1px solid var(--border-soft); }
    .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-heading { align-items: flex-start; }
    .filter-actions { grid-column: 1 / -1; margin-top: 0; }
    .analytics-grid { grid-template-columns: 1fr; }
    .analytics-grid > .panel { height: auto; }
    .button-bars { padding-inline-end: 0; overflow-y: visible; scrollbar-gutter: auto; }
    .chart { min-height: 300px; }
}

@media (max-width: 760px) {
    .product-bar { padding: 0 16px; }
    .shell { width: min(100% - 24px, 1280px); padding-top: 24px; }
    h1 { font-size: 27px; }
    body[data-view="access"] .shell { align-content: start; padding-top: 24px; }
    .page-header { display: grid; padding: 18px; }
    .account-context { justify-content: flex-start; }
    .access-panel { display: block; }
    .access-intro, .access-methods { padding: 28px; }
    .access-intro h2 { max-width: none; font-size: 25px; }
    .access-assurances { margin-top: 26px; padding-top: 22px; }
    .access-methods { margin-top: 0; }
    .access-form { grid-template-columns: 1fr; }
    .access-panel > .error { margin: 0 28px 28px; }
    .filters { grid-template-columns: 1fr 1fr; }
    .filter-heading { display: grid; }
    .presets { justify-content: flex-start; }
    .filter-actions { grid-column: 1 / -1; }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-card:nth-child(2n) { border-right: 0; }
    .summary-card { border-bottom: 1px solid var(--border-soft); }
    .summary-card:nth-last-child(-n+2) { border-bottom: 0; }
    .button-details { grid-template-columns: 1fr; }
    .enrichment-grid, .split-tables { grid-template-columns: 1fr; }
    .performance-grid { grid-template-columns: repeat(2, 1fr); }
    .privacy-note { width: calc(100% - 24px); }
}

@media (max-width: 480px) {
    .brand > span:last-child { font-size: 14px; }
    .status { padding: 5px 8px; }
    .panel { padding: 16px; border-radius: 12px; }
    .access-panel { padding: 0; }
    .access-intro, .access-methods { padding: 22px; }
    .profile-avatar { width: 46px; height: 46px; border-radius: 14px; }
    .profile-copy h1 { font-size: 18px; }
    .account-context div { max-width: 100%; }
    .access-panel > .error { margin: 0 22px 22px; }
    .filters, .summary-grid { grid-template-columns: 1fr; }
    .filter-actions { display: grid; }
    .summary-card { border-right: 0; border-bottom: 1px solid var(--border-soft) !important; }
    .summary-card:last-child { border-bottom: 0 !important; }
    .performance-grid { grid-template-columns: 1fr; }
    .panel-heading { display: block; }
    .loading-state { grid-template-columns: 1fr; }
    .button-details-pagination { align-items: stretch; }
    .button-details-pagination p { width: 100%; }
    .button-details-actions { width: 100%; margin-inline-start: 0; }
    .button-details-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .app-loader__progress::after, .loading-state__bar::after { width: 100%; transform: none; }
}
