@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/fonts/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/fonts/IBMPlexSans-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('/fonts/IBMPlexSans_Condensed-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'IBM Plex Sans Condensed';
    src: url('/fonts/IBMPlexSans_Condensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

:root {
    --cursor-default: url('/assets/cursors/Cursor.svg') 2 2, auto;
    --cursor-move: url('/assets/cursors/Move.svg') 12 12, grab;
    --cursor-drop: url('/assets/cursors/Drop.svg') 12 12, grabbing;
    --cursor-filter: url('/assets/cursors/Filter.svg') 12 12, pointer;
    --cursor-filter-off: url('/assets/cursors/Filter_Off.svg') 12 12, pointer;
    --bg: #050606;
    --surface: rgba(9, 10, 10, 0.76);
    --surface-strong: rgba(13, 14, 14, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.035);
    --text: #ffffff;
    --muted: #e2e2e2;
    --faint: #565c58;
    --line: rgba(255, 255, 255, 0.2);
    --line-strong: rgba(255, 255, 255, 0.18);
    --green: #48d597;
    --blue: #8aa8ff;
    --red: #ff0021;
    --amber: #ff6500;
    --ipekon: #8aa8ff;
    --vepripak: #ff6500;
    --heading-accent: var(--text);
    --brand-accent: #ffffff;
    --shadow: none;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --sidebar-mobile-width: 58px;
    --sidebar-layout-width: var(--sidebar-width);
}

body.dashboard-page .panel[hidden],
body.dashboard-page .chart-panel[hidden],
body.dashboard-page .metric[hidden],
body.dashboard-page .filters[hidden] {
    display: none !important;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 101, 0, 0.72) rgba(255, 255, 255, 0.06);
    scroll-behavior: smooth;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055);
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 101, 0, 0.82), rgba(255, 255, 255, 0.24));
    border: 2px solid rgba(5, 6, 6, 0.94);
    border-radius: 0;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 101, 0, 0.92);
}

*::-webkit-scrollbar-corner {
    background: rgba(5, 6, 6, 0.94);
}

html {
    background: var(--bg);
    max-width: 100%;
    overflow-x: hidden;
    cursor: var(--cursor-default);
}

body {
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 101, 0, 0.07), transparent 22rem),
        linear-gradient(rgba(255, 255, 255, 0.014), rgba(0, 0, 0, 0.34)), #050606;
    background-size: auto, auto;
    color: var(--text);
    font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 6, 6, 0.34), rgba(5, 6, 6, 0.08) 48%, rgba(5, 6, 6, 0.4)),
        url('/assets/backgrounds/3.jpg') center / cover no-repeat;

    filter: saturate(1.05) contrast(1.16);
    opacity: 0.075;
    mix-blend-mode: lighten;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

.page {
    width: min(1820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 56px;
}

.kpi-grid span {
    pointer-events: none;
}

.kpi-grid,
.page > .panel,
.charts > .chart-panel,
.charts > .panel,
.split > .panel {
    scroll-margin-top: var(--report-scroll-margin-top, 144px);
}

.chart-panel h2 {
    pointer-events: none;
}

body.with-sidebar .page {
    width: calc(100% - var(--sidebar-layout-width) - 48px);
    max-width: 1820px;
    margin-left: calc(var(--sidebar-layout-width) + 24px);
    margin-right: 24px;
}

.not-found-page__content {
    min-height: 100vh;
}

.not-found-page__home {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 101, 0, 0.7);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

.not-found-page__home:hover {
    border-color: rgba(255, 101, 0, 0.9);
    background: rgba(255, 101, 0, 0.12);
}

.not-found-page__code {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: clamp(112px, 15vw, 300px);
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -0.08em;
    pointer-events: none;
}

@media (max-width: 1000px) {
    .not-found-page__code {
        bottom: 80px;
    }
}

.not-found-page__code span {
    color: #cd0000;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: var(--sidebar-layout-width);
    border-right: 1px solid var(--line);
    background: rgba(12, 13, 13, 0.96);
    backdrop-filter: blur(18px);
    padding: 18px 12px 12px;
    overflow: hidden;
    transition: transform 0.24s ease;
}

.app-sidebar.is-animating {
    contain: layout paint;
    transition: none;
    will-change: width;
}

body.is-sidebar-animating .page,
body.is-sidebar-animating .help-toc {
    will-change: transform;
}

body.is-sidebar-animating .sidebar-rail,
body.is-sidebar-animating .sidebar-content,
body.is-sidebar-animating .sidebar-user {
    transition: none;
}

.sidebar-rail {
    position: absolute;
    inset: 18px 12px auto 12px;
    display: grid;
    width: 40px;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-4px);
    transition:
        opacity 0.16s ease,
        transform 0.2s ease,
        visibility 0.16s ease;
}

.app-sidebar.is-collapsed .sidebar-rail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.sidebar-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    padding: 0;
}

.sidebar-icon-button:hover:not(:disabled) {
    background: rgba(255, 101, 0, 0.08);
}

.sidebar-icon-button img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.sidebar-icon-button:disabled {
    opacity: 0.42;
    cursor: var(--cursor-default);
}

.scroll-top-button {
    position: fixed;
    right: 32px;
    bottom: 24px;
    z-index: 70;
    display: none;
    place-items: center;
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover:not(:disabled) {
    border-color: rgba(255, 101, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.scroll-top-button img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.flatpickr-input[readonly],
.date-input[readonly] {
    cursor: pointer;
}

.flatpickr-calendar {
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(8, 9, 9, 0.98);
    box-shadow: none;
    color: var(--text);
    font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
    border-bottom-color: rgba(8, 9, 9, 0.98);
    border-top-color: rgba(8, 9, 9, 0.98);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: transparent;
    color: var(--text);
}

.flatpickr-months {
    min-height: 44px;
}

.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    height: 44px;
}

.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    width: auto;
    min-height: 28px;
    height: 28px;
    margin: 0;
    padding: 0 20px 0 8px;
    line-height: 28px;
}

.flatpickr-current-month .numInputWrapper {
    width: 6ch;
    height: 28px;
}

.flatpickr-current-month input.cur-year,
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    color: var(--text);
}

.flatpickr-current-month input.cur-year {
    min-height: 28px;
    height: 28px;
    padding: 0 0 0 4px;
    line-height: 28px;
}

.flatpickr-day {
    border-radius: 0;
    color: var(--muted);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    border-color: rgba(255, 101, 0, 0.35);
    background: rgba(255, 101, 0, 0.14);
    color: var(--text);
}

.flatpickr-day.today {
    border-color: var(--amber);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    border-color: var(--amber);
    background: var(--amber);
    color: #050606;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.25);
}

.sidebar-mobile-open-button,
.sidebar-mobile-close-button {
    display: none;
}

.sidebar-content {
    position: absolute;
    inset: 18px 12px 120px 12px;
    width: calc(var(--sidebar-width) - 24px);
    min-width: calc(var(--sidebar-width) - 24px);
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    opacity: 1;
    transform: translateX(0);
    transition:
        opacity 0.18s ease,
        transform 0.24s ease;
    overflow: hidden;
}

.app-sidebar:not(.is-collapsed) .sidebar-content {
    width: calc(var(--sidebar-width) - 24px);
}

.app-sidebar.is-collapsed .sidebar-content,
.app-sidebar.is-loading .sidebar-content {
    pointer-events: none;
    opacity: 0;
    transform: translateX(0);
}

.sidebar-top {
    display: flex;
    justify-content: flex-end;
    min-height: 42px;
    margin-bottom: 18px;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.sidebar-nav-link,
.sidebar-report-link {
    color: var(--muted);
    text-decoration: none;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    padding: 0 12px;
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.is-active {
    border-color: rgba(255, 101, 0, 0.35);
    background: rgba(255, 101, 0, 0.08);
    color: var(--text);
}

/* .sidebar-reports {
    min-height: 0;
    overflow-y: auto;
    overflow-anchor: none;
    padding-right: 2px;
    scrollbar-gutter: stable;
} */

.sidebar-reports-separator {
    height: 1px;
    margin: 0 0 12px;
    background: var(--line);
}

.sidebar-accordion {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-anchor: none;
}

.sidebar-accordion-heading {
    display: block;
}

.sidebar-accordion-heading--presentation {
    display: block;
}

.sidebar-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    padding: 0 5px 0 12px;
    color: var(--muted);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.sidebar-accordion-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-accordion-trigger:focus-visible {
    outline: 1px solid rgba(255, 101, 0, 0.7);
    outline-offset: 2px;
}

.sidebar-new-report-button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    position: relative;
    width: 24px;
    height: 24px;
    min-height: 24px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    color: var(--muted);
    font-size: 0;
    line-height: 0;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease;
}

.sidebar-new-report-button::before,
.sidebar-new-report-button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.sidebar-new-report-button::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.sidebar-new-report-button.is-syncing::before,
.sidebar-new-report-button.is-syncing::after {
    content: none;
}

.sidebar-new-report-button img {
    display: block;
    width: 13px;
    height: 13px;
    opacity: 0.9;
    filter: grayscale(1);
}

.sidebar-new-report-button:hover:not(:disabled),
.sidebar-new-report-button:focus-visible:not(:disabled) {
    border-color: rgba(255, 101, 0, 0.35);
    background: rgba(255, 101, 0, 0.06);
    color: #ffffff;
}

.sidebar-accordion-item.is-open .sidebar-new-report-button:not(:hover):not(:focus-visible) {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.015);
    color: var(--muted);
}

.sidebar-new-report-button:disabled,
.sidebar-new-report-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.sidebar-accordion-trigger:hover,
.sidebar-accordion-trigger:focus-visible,
.sidebar-accordion-heading:focus-within .sidebar-accordion-trigger,
.sidebar-accordion-item.is-open > .sidebar-accordion-heading .sidebar-accordion-trigger,
.sidebar-accordion-item.is-open > .sidebar-accordion-trigger {
    border-color: rgba(255, 101, 0, 0.35);
    background: rgba(255, 101, 0, 0.06);
    color: var(--text);
}

.sidebar-accordion-trigger::after {
    content: none;
    color: var(--amber);
}

.sidebar-accordion-item.is-open .sidebar-accordion-trigger::after {
    content: none;
}

.sidebar-accordion-panel {
    height: 0;
    overflow: hidden;
    will-change: height;
}

.sidebar-accordion-item.is-open .sidebar-accordion-panel {
    height: auto;
}

.sidebar-accordion-panel-inner {
    padding: 4px 0 10px;
    will-change: opacity;
}

.sidebar-accordion-item--presentation {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.sidebar-accordion-item--presentation:hover,
.sidebar-accordion-item--presentation:focus-within,
.sidebar-accordion-item--presentation.is-open {
    opacity: 1;
}

.sidebar-empty {
    padding: 8px 10px;
    color: #aaaaaa;
    font-size: 12px;
}

.sidebar-report-list {
    display: grid;
    gap: 3px;
}

.sidebar-report-link {
    display: grid;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 10px;
}

.sidebar-report-link:hover,
.sidebar-report-link.is-active {
    border-color: rgba(255, 101, 0, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-report-link.is-active {
    color: var(--text);
    background: rgba(255, 101, 0, 0.09);
}

.sidebar-report-link span,
.sidebar-report-link small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-report-link small {
    color: #aaaaaa;
}

.sidebar-user {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(var(--sidebar-width) - 24px);
    border-top: 1px solid var(--line);
    padding-top: 10px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.16s ease;
}

.app-sidebar:not(.is-collapsed) .sidebar-user {
    border-top: 0;
}

.sidebar-user-account,
.sidebar-user-text {
    display: grid;
    min-width: 0;
}

.sidebar-user-account {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    padding: 0 12px;
    color: var(--muted);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-user-text strong,
.sidebar-user-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-text {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.sidebar-user-text small {
    color: #aaaaaa;
    font-size: 12px;
}

.sidebar-user-actions {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.sidebar-user-actions a,
.sidebar-user-actions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 0 12px;
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: var(--cursor-default);
}

.sidebar-user-account:hover,
.sidebar-user-actions a:hover,
.sidebar-user-actions button:hover {
    border-color: rgba(255, 101, 0, 0.35);
    background: rgba(255, 101, 0, 0.08);
    color: var(--text);
}

.app-sidebar.is-collapsed .sidebar-user,
.app-sidebar.is-loading .sidebar-user {
    opacity: 0;
    pointer-events: none;
}

.toolbar {
    position: sticky;
    top: 20px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    min-height: 92px;
    margin: 0 0 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    max-width: 980px;
    color: var(--heading-accent);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: clamp(32px, 3vw, 64px);
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

h2 {
    color: var(--heading-accent);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.toolbar p,
p,
small,
span {
    color: var(--muted);
}

.toolbar p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
}

input,
select,
textarea {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    padding: 0 12px;
    cursor: var(--cursor-default);
}

select option {
    background: #080909;
    color: var(--text);
}

button {
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 18px;
    cursor: var(--cursor-default);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

button:hover:not(:disabled) {
    border-color: var(--amber);
    color: var(--amber);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 12px 0 20px;
}

.brand-picker {
    display: grid;
    gap: 7px;
    min-width: min(320px, 100%);
    margin-left: auto;
}

.brand-picker[hidden] {
    display: none !important;
}

.brand-picker span {
    color: var(--muted);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
}

.brand-picker select {
    width: 100%;
}

.campaign-picker[hidden] {
    display: none !important;
}

.campaign-picker select {
    min-width: min(280px, 100%);
}

.actions .export-button {
    border-color: rgba(255, 101, 0, 0.7);
}

.ad-attention-wrap {
    position: relative;
    display: inline-grid;
    place-items: end;
    align-self: flex-end;
    margin-left: 0;
}

.ad-attention-wrap[hidden] {
    display: none;
}

.ad-attention {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid rgba(255, 90, 61, 0.72);
    background: rgba(255, 90, 61, 0.08);
    padding: 0;
}

.ad-attention:hover,
.ad-attention:focus-visible {
    border-color: var(--red);
    color: var(--red);
}

.ad-attention img {
    display: block;
    width: 22px;
    height: 22px;
}

.ad-attention-note {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: min(360px, calc(100vw - 32px));
    border: 1px solid rgba(255, 90, 61, 0.72);
    background: rgba(5, 6, 6, 0.98);
    color: #f3f5f2;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.45;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;
    pointer-events: none;
}

.ad-attention-wrap:hover .ad-attention-note,
.ad-attention:focus-visible + .ad-attention-note {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.status {
    border: 1px solid var(--line);
    border-left: 2px solid var(--amber);
    border-radius: 0;
    background: rgba(255, 101, 0, 0.07);
    color: var(--text);
    padding: 14px 16px;
    margin: 12px 0;
    white-space: pre-wrap;
    transition:
        background-color 420ms ease,
        border-color 420ms ease,
        border-left-color 420ms ease;
}

.status + .status {
    margin-top: -4px;
}

.status-title {
    display: block;
    margin-bottom: 6px;
}

.status-line + .status-line {
    margin-top: 4px;
}

.status-inline-action {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.status-inline-action:hover,
.status-inline-action:focus-visible {
    color: var(--text);
}

.status a,
.report-progress a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.status a:hover,
.status a:focus-visible,
.report-progress a:hover,
.report-progress a:focus-visible {
    color: var(--text);
}

.status--info {
    background: rgba(255, 101, 0, 0.07);
    border-left-color: var(--amber);
}

.status--success {
    background: rgb(33 55 34);
    border-color: rgba(72, 213, 151, 0.22);
    border-left-color: var(--green);
}

.status--warning {
    background: rgba(255, 90, 61, 0.12);
    border-left-color: var(--red);
    color: var(--red);
}

.status--error {
    background: rgba(255, 90, 61, 0.12);
    border-left-color: var(--red);
}

.toast-stack {
    position: fixed;
    z-index: 1400;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 36px));
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    position: relative;
    border: 1px solid var(--line);
    border-left: 2px solid var(--amber);
    background: rgba(8, 9, 9, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
    padding: 18px 42px 16px 14px;
    color: var(--text);
    pointer-events: auto;
}

.app-toast--success {
    border-left-color: var(--green);
}

.app-toast--error {
    border-left-color: var(--red);
}

.app-toast p {
    margin: 0;
}

.app-toast__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.app-toast__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.app-toast__close:hover,
.app-toast__close:focus-visible {
    background: transparent;
    color: var(--text);
}

.report-progress {
    display: grid;
    gap: 10px;
}

.report-progress[hidden] {
    display: none !important;
}

.report-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-progress__cancel {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
}

.report-progress__bar {
    position: relative;
    overflow: hidden;
    height: 10px;
    border: 1px solid rgba(255, 101, 0, 0.42);
    background: rgba(255, 255, 255, 0.055);
}

.report-progress__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), #e70040 75%, transparent);
    transition: width 0.28s ease;
}

.report-progress__text,
.report-progress__eta {
    color: var(--muted);
    font-size: 13px;
}

.report-progress__eta {
    color: #b9b9b9;
}

.appendix-prompt p {
    margin: 6px 0 0;
}

.appendix-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.report-text-card.metric {
    align-content: start;
    gap: 12px;
    color: var(--text);
    margin: 0;
    min-height: 146px;
    grid-column: 1 / -1;
    order: -1;
}

.report-text-card.status--info,
.report-text-card.status--success,
.report-text-card.status--warning,
.report-text-card.status--error {
    color: var(--text);
}

.report-text-block {
    display: grid;
    gap: 6px;
}

.report-text-block span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.15;
}

.report-text-block small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.report-text-block--warning small,
.report-text-block--error small {
    color: var(--red);
}

.report-period-card.metric {
    align-content: end;
}

.report-period-card.metric span {
    white-space: nowrap;
}

.report-period-card.metric strong {
    white-space: nowrap;
    font-size: clamp(30px, 2.3vw, 38px);
}

.report-period-card.metric small {
    font-size: 14px;
    white-space: nowrap;
}

.note {
    color: #aaaaaa;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 12px;
}

body.dashboard-page .note {
    display: none;
}

body.dashboard-page #categoryAnalyticsStatus.note {
    display: block;
}

.note a {
    color: var(--amber);
    text-decoration: none;
}

.kpi-grid + .note {
    margin-bottom: 18px;
}

body.ad-diagnostics-warning .ad-data {
    border-color: rgba(255, 90, 61, 0.72);
}

body.ad-diagnostics-warning .ad-data.metric span,
body.ad-diagnostics-warning .ad-data.metric strong,
body.ad-diagnostics-warning .ad-data.metric small,
body.ad-diagnostics-warning .ad-data .ad-grid span,
body.ad-diagnostics-warning .ad-data .ad-grid strong,
body.ad-diagnostics-warning .ad-data-field {
    color: var(--red) !important;
}

body.ad-diagnostics-warning .ad-data canvas {
    filter: drop-shadow(0 0 18px rgba(255, 90, 61, 0.18));
}

body.ad-diagnostics-warning .ad-data .note,
body.ad-diagnostics-warning .ad-data .note * {
    color: #aaaaaa !important;
}
.ad-card-attention {
    position: absolute;
    right: 10px;
    z-index: 6;
    display: inline-grid;
    place-items: center;
    width: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 0;
    background: transparent;
    padding: 0;
}

.ad-card-attention--top {
    top: 10px;
}

.ad-card-attention--bottom {
    right: 12px;
    bottom: 12px;
}

.ad-card-attention img {
    display: block;
    width: 18px;
    height: 18px;
}

body.dashboard-page:not(.has-report) .kpi-grid,
body.dashboard-page:not(.has-report) .kpi-grid + .note,
body.dashboard-page:not(.has-report) .charts,
body.dashboard-page:not(.has-report) .panel,
body.dashboard-page:not(.has-report) .layout-reset-panel {
    display: none;
}

body.dashboard-page:not(.has-report).has-report-context .kpi-grid {
    display: grid;
}

body.dashboard-page:not(.has-report).has-report-context .kpi-grid > .metric:not(.report-text-card) {
    display: none;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 1450px) {
    .kpi-grid .metric strong {
        font-size: 30px;
    }
}

.metric::before,
.panel::before,
.chart-panel::before {
    content: '';
    position: absolute;
    inset: -2px -2px auto;
    height: 75px;
    border-radius: inherit;
    filter: blur(4px);
    pointer-events: none;
    mix-blend-mode: lighten;
}

.metric,
.panel,
.chart-panel {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow);
}

.sku-mix-panel {
    min-height: 380px;
    height: 100%;
}

.sku-mix-panel table {
    width: max-content;
    min-width: 100%;
}

.sku-mix-panel th,
.sku-mix-panel td {
    width: auto;
}

.panel::after,
.chart-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(5, 6, 6, 0.46), rgba(5, 6, 6, 0.58)),
        url('/assets/elements/glass-surface.jpg') center / cover no-repeat;
    opacity: 0.075;
    mix-blend-mode: lighten;
}

.metric > *,
.toolbar > *,
.panel > *,
.chart-panel > *,
.table-wrap {
    position: relative;
}

.metric {
    min-height: 140px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.metric span,
.quality-item span,
.ad-grid span {
    color: var(--muted);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
}

.metric > .drag-handle + span {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin-top: 0;
    padding-left: 38px;
    color: var(--heading-accent);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.metric strong {
    margin-top: auto;
    color: var(--brand-accent);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 0.95;
}

.brand-name-accent {
    color: var(--heading-accent);
    font-weight: 600;
}

.panel {
    padding: 18px;
    margin-bottom: 18px;
}

.panel-title {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-count {
    order: 2;
    color: var(--heading-accent);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.panel-title h2 {
    margin-right: auto;
}

.chart-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.sku-revenue-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sku-revenue-panel .panel-title {
    margin-bottom: 0;
}

.sku-revenue-panel .chart-legend {
    margin-bottom: 0;
}

.chart-mode-toggle--bottom {
    margin-top: auto;
    justify-content: flex-start;
    padding-top: 16px;
}

.chart-mode-button {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #d4d8d6;
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chart-mode-button:hover,
.chart-mode-button:focus-visible {
    border-color: rgba(255, 101, 0, 0.52);
    color: #f3f5f2;
}

.chart-mode-button.is-active,
.chart-mode-button[aria-pressed='true'] {
    border-color: rgba(255, 101, 0, 0.68);
    background: rgba(255, 101, 0, 0.12);
    color: var(--heading-accent);
}

.drag-handle {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border-color: rgba(255, 101, 0, 0.42);
    background: rgba(255, 101, 0, 0.08);
    color: var(--amber);
    padding: 0;
    cursor: var(--cursor-move);
    line-height: 1;
    user-select: none;
    touch-action: none;
    text-transform: none;
}

.drag-handle:active {
    cursor: var(--cursor-drop);
}

.drag-handle span {
    display: block;
    width: 18px;
    height: 18px;
    background: var(--amber);
    mask: url('/assets/cursors/Drag_Horizontal.svg') center / contain no-repeat;
    -webkit-mask: url('/assets/cursors/Drag_Horizontal.svg') center / contain no-repeat;
}

.drag-zone {
    cursor: var(--cursor-move);
    touch-action: none;
    user-select: none;
}

.drag-zone:active {
    cursor: var(--cursor-drop);
}

.metric > .drag-handle {
    position: absolute !important;
    top: 18px;
    left: 20px;
    right: auto;
    z-index: 4;
}

.chart-panel > .drag-handle {
    float: left;
    margin: -3px 10px 0 0;
}

.draggable-panel {
    user-select: auto;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
    will-change: transform;
}

.draggable-panel.is-dragging {
    outline: 1px solid var(--amber);
    outline-offset: -1px;
    transition:
        opacity 120ms ease,
        box-shadow 120ms ease;
    opacity: 0.94;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    cursor: var(--cursor-drop);
}

.drag-placeholder {
    min-height: 92px;
    border: 1px dashed rgba(255, 101, 0, 0.55);
    background: rgba(255, 101, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    pointer-events: none;
    will-change: transform;
}

.kpi-grid > .drag-placeholder {
    min-height: 140px;
}

.charts > .drag-placeholder {
    min-height: 380px;
}

.page > .drag-placeholder,
.split > .drag-placeholder {
    margin-bottom: 18px;
}

.is-panel-dragging,
.is-panel-dragging * {
    cursor: var(--cursor-drop) !important;
    user-select: none;
}

.quality-grid,
.ad-grid {
    display: grid;
    gap: 12px;
}

.quality-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quality-item,
.ad-grid > div {
    position: relative;
    min-height: 92px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    padding: 14px;
    display: grid;
    align-content: end;
    gap: 8px;
}

.quality-item strong,
.ad-grid strong {
    color: var(--text);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 28px;
    font-weight: 400;
}

.ad-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 14px;
}

.charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-bottom: 18px;
    overflow-x: visible;
    overflow-y: visible;
    overscroll-behavior-x: auto;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 101, 0, 0.72) rgba(255, 255, 255, 0.06);
    padding-bottom: 0;
}

.charts::-webkit-scrollbar {
    height: 11px;
}

.charts::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.charts::-webkit-scrollbar-thumb {
    background: rgba(255, 101, 0, 0.72);
    border: 2px solid rgba(5, 6, 6, 0.92);
}

.chart-panel {
    min-width: 0;
    min-height: 380px;
    padding: 18px;
}

.chart-scroll {
    width: 100%;
    overflow-x: visible;
    overflow-y: visible;
}

.chart-tooltip {
    position: fixed;
    z-index: 20;
    display: grid;
    gap: 4px;
    max-width: 240px;
    border: 1px solid var(--amber);
    border-radius: 0;
    background: rgba(5, 6, 6, 0.96);
    padding: 9px 11px;
    pointer-events: none;
}

.chart-tooltip[hidden] {
    display: none;
}

.chart-tooltip strong {
    color: var(--text);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
}

.chart-tooltip span {
    color: var(--amber);
    font-size: 12px;
}

.report-section-nav[hidden] {
    display: none;
}

.report-section-nav {
    position: fixed;
    right: 4px;
    top: 50%;
    z-index: 45;
    transform: translateY(-50%);
    display: none;
}

.report-section-strips {
    display: grid;
    justify-items: end;
    gap: 6px;
    padding: 10px 0 10px 16px;
    pointer-events: none;
}

.report-section-strip {
    display: block;
    width: 11px;
    height: 2px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.28);
    opacity: 0.72;
    transition:
        background-color 140ms ease,
        opacity 140ms ease;
}

.report-section-strip.is-active {
    background: rgba(255, 255, 255, 0.82);
    opacity: 1;
}

.report-section-menu {
    position: absolute;
    right: 0;
    top: 50%;
    display: grid;
    gap: 3px;
    width: 272px;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(28, 27, 26, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
    padding: 12px 8px;
    opacity: 0;
    pointer-events: none;
    transform: translate(0, -50%);
    transition: opacity 140ms ease;
}

.report-section-nav:hover .report-section-menu,
.report-section-nav:focus-within .report-section-menu {
    opacity: 1;
    pointer-events: auto;
}

.report-section-menu strong {
    padding: 0 8px 5px;
    color: #7f7f7f;
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-section-menu-item {
    display: -webkit-box;
    min-height: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #b8b8b8;
    padding: 7px 8px;
    overflow: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.report-section-menu-item:hover,
.report-section-menu-item:focus-visible,
.report-section-menu-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

@media (min-width: 1300px) {
    .report-section-nav {
        display: block;
    }
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 14px;
    color: #aaaaaa;
    font-size: 12px;
}

.chart-legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    max-width: 100%;
    color: #aaaaaa;
    line-height: 1.25;
}

.chart-legend i {
    width: 9px;
    min-width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.diagnostics-intro {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: -4px 0 16px;
    color: #f3f5f2;
    font-size: 13px;
    line-height: 1.65;
}
canvas {
    width: 100%;
    height: 280px;
    display: block;
    margin-top: 12px;
    transition:
        filter 0.16s ease,
        opacity 0.16s ease;
    will-change: filter, opacity;
}

body.is-chart-resizing .chart-panel canvas {
    filter: blur(4px);
    opacity: 0.58;
    pointer-events: none;
}

@media (max-width: 440px) {
    canvas {
        height: auto;
    }
}

canvas.pie-chart {
    width: min(100%, 360px);
    max-width: 360px;
    margin: 12px auto 0;
}

.daily-chart {
    width: 100%;
    height: 280px;
    margin-top: 12px;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.split-full {
    grid-template-columns: 1fr;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 101, 0, 0.72) rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055);
    border-top: 1px solid var(--line);
}

.table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(255, 101, 0, 0.82), rgba(255, 255, 255, 0.24));
    border: 2px solid rgba(5, 6, 6, 0.94);
    border-radius: 0;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 101, 0, 0.92);
}

.table-wrap::-webkit-scrollbar-corner {
    background: rgba(5, 6, 6, 0.94);
}

.table-wrap + .table-wrap {
    margin-top: 14px;
}

.table-controls {
    position: sticky;
    left: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 6, 0.86);
}

.table-controls input {
    min-height: 36px;
    flex: 1 0 50%;
}

.table-controls button {
    min-height: 36px;
    padding: 0 14px;
}

.table-controls button:hover:not(:disabled) {
    cursor: var(--cursor-filter-off);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    background: rgba(0, 0, 0, 0.2);
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 11px 14px;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

th:first-child,
td:first-child,
.name-cell,
.text-cell {
    text-align: left;
}

th {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    cursor: var(--cursor-filter);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    user-select: none;
}

th:hover {
    color: var(--amber);
}

th:focus {
    outline: 1px solid var(--amber);
    outline-offset: -1px;
}

th[data-sort='asc']::after {
    content: ' ↑';
    color: var(--amber);
}

th[data-sort='desc']::after {
    content: ' ↓';
    color: var(--amber);
}

td {
    color: var(--text);
}

tbody tr:hover td {
    background: rgba(255, 101, 0, 0.06);
}

.total-row td {
    background: rgba(255, 101, 0, 0.09);
    color: var(--text);
    font-weight: 700;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.name-cell,
td:first-child {
    min-width: 160px;
    max-width: 560px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
}

.name-cell {
    min-width: 260px;
}

@media (max-width: 1299px) {
    .charts {
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        padding-bottom: 0;
    }

    .line-chart-panel {
        min-width: 0;
    }

    .line-chart-panel .chart-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-gutter: stable;
        padding-bottom: 8px;
    }

    .line-chart-panel .chart-scroll .line-chart,
    .line-chart-panel .chart-scroll .chart-legend,
    .line-chart-panel .chart-scroll .note {
        min-width: 800px;
    }
}
@media (max-width: 1450px) {
    .kpi-grid .metric > .drag-handle + span {
        font-size: 16px;
    }
}
@media (max-width: 1250px) {
    .kpi-grid .metric > .drag-handle + span {
        font-size: 14px;
    }
}
@media (max-width: 640px) {
    .kpi-grid .metric > .drag-handle + span {
        font-size: 16px;
    }
    h2 {
        font-size: 16px;
    }
}
@media (max-width: 1180px) {
    .toolbar {
        grid-template-columns: 1fr;
        margin: 0 0 18px;
        padding: 18px;
    }

    .filters {
        justify-content: stretch;
    }

    .filters label,
    .filters button {
        flex: 1 1 180px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quality-grid,
    .ad-grid,
    .split {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1180px) {
    body.with-sidebar .page {
        width: calc(100% - var(--sidebar-layout-width) - 28px);
        margin-left: calc(var(--sidebar-layout-width) + 14px);
        margin-right: 14px;
    }
}

@media (max-width: 900px) {
    .brand-picker {
        width: 100%;
        margin-left: 0;
    }

    .ad-attention-wrap {
        margin-left: auto;
    }

    .toolbar {
        position: static;
        top: auto;
    }
}
@media (max-width: 640px) {
    :root {
        --sidebar-width: var(--sidebar-mobile-width);
    }

    .page,
    .toolbar,
    .actions,
    .panel,
    .chart-panel,
    .charts,
    .split,
    .table-wrap,
    .chart-scroll {
        min-width: 0;
        max-width: 100%;
    }

    html.sidebar-collapsed body.with-sidebar .page,
    body.with-sidebar .page {
        width: calc(100% - var(--sidebar-mobile-width) - 28px);
        margin-left: calc(var(--sidebar-mobile-width) + 14px);
        margin-right: 14px;
        overflow-x: clip;
    }

    html.sidebar-collapsed body.with-sidebar .help-page,
    body.with-sidebar .help-page,
    html.sidebar-collapsed body.with-sidebar .updates-page,
    body.with-sidebar .updates-page {
        overflow-x: visible;
    }

    .app-sidebar {
        width: var(--sidebar-mobile-width);
        padding: 12px 8px;
    }

    .app-sidebar.is-mobile-open {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .sidebar-rail {
        inset: 12px 8px auto 8px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        gap: 12px;
    }

    .app-sidebar:not(.is-collapsed) .sidebar-rail > :not(.sidebar-desktop-toggle) {
        display: inline-grid;
    }

    .app-sidebar:not(.is-mobile-open) .sidebar-rail .sidebar-mobile-close-button {
        display: none;
    }

    .app-sidebar.is-mobile-open .sidebar-rail,
    .app-sidebar.is-mobile-open .sidebar-mobile-open-button,
    .app-sidebar.is-mobile-open .sidebar-desktop-toggle,
    .sidebar-desktop-toggle {
        display: none;
    }

    .sidebar-mobile-open-button {
        display: inline-grid;
    }

    .scroll-top-button {
        right: 24px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        min-height: 48px;
    }

    .app-sidebar.is-mobile-open .sidebar-mobile-close-button {
        display: inline-grid;
    }

    .sidebar-content,
    .app-sidebar.is-collapsed .sidebar-content {
        opacity: 0;
        transform: none;
        pointer-events: none;
    }

    .app-sidebar.is-mobile-open .sidebar-content {
        inset: 16px 16px 136px 16px;
        width: auto;
        min-width: 0;
        opacity: 1;
        pointer-events: auto;
        overflow-x: hidden;
    }

    .sidebar-top {
        justify-content: flex-end;
        margin-bottom: 18px;
    }

    .sidebar-nav-link,
    .sidebar-accordion-trigger {
        justify-content: space-between;
        padding: 0 12px;
        font-size: 13px;
    }

    .sidebar-nav-link span,
    .sidebar-accordion-trigger span {
        display: inline;
    }

    .sidebar-user-text {
        display: flex;
    }

    .sidebar-accordion-item.is-open .sidebar-accordion-panel {
        position: static;
        height: auto;
        width: auto;
        overflow-y: visible;
        border: 0;
        background: transparent;
    }

    .sidebar-accordion-panel-inner {
        padding: 4px 0 10px;
    }

    .sidebar-report-link {
        display: grid;
    }

    .app-sidebar:not(.is-mobile-open) .sidebar-user {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: none;
    }

    .app-sidebar.is-mobile-open .sidebar-user {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        overflow: hidden;
    }

    .charts,
    .split {
        overflow-x: clip;
    }

    .chart-panel,
    .panel {
        overflow-x: hidden;
    }

    .chart-scroll,
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .help-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .help-toc {
        position: sticky;
        top: 0;
        z-index: 30;
        order: -1;
        border: 1px solid var(--line);
        background: rgba(12, 13, 13, 0.98);
    }

    .help-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 42px;
        border: 0;
        background: transparent;
        color: var(--text);
        padding: 0 12px;
        text-align: left;
    }

    .help-toc-toggle::after {
        content: '⌄';
        color: #aaaaaa;
    }

    .help-toc-toggle[aria-expanded='true']::after {
        content: '⌃';
    }

    .help-toc-nav {
        display: none;
        max-height: 420px;
        overflow-y: auto;
        padding: 8px 12px 12px 24px;
    }

    .help-toc-nav.is-open {
        display: grid;
    }

    .help-section h2 {
        font-size: 28px;
    }
    h1 {
        margin-bottom: 32px;
    }
}

.metric > .ad-card-attention,
.panel > .ad-card-attention,
.ad-grid > div > .ad-card-attention {
    position: absolute;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
}

.metric > .ad-card-attention--bottom {
    right: 12px;
    bottom: 12px;
}

.panel > .ad-card-attention--top,
.ad-grid > div > .ad-card-attention--top {
    top: 10px;
    right: 10px;
}

.ad-card-attention img {
    width: 24px;
    height: 24px;
}

.panel.ad-data,
.metric.ad-data,
.ad-grid > div {
    overflow: visible;
}

.panel.ad-data > .ad-card-attention--top {
    top: 14px;
    right: 14px;
}

.panel.ad-data .ad-grid > div > .ad-card-attention--top {
    top: 8px;
    right: 8px;
}

@media (max-width: 900px) {
    .metric > .ad-card-attention--bottom {
        top: 10px;
        right: 10px;
        bottom: auto;
    }
}

.ad-attention-tooltip {
    position: fixed;
    z-index: 1000;
    border: 1px solid rgba(255, 90, 61, 0.72);
    background: rgba(5, 6, 6, 0.98);
    color: #f3f5f2;
    padding: 10px 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}

.ad-attention-tooltip[hidden] {
    display: block;
    opacity: 0;
    visibility: hidden;
}

.ad-card-attention,
.metric > .ad-card-attention,
.panel > .ad-card-attention,
.ad-grid > div > .ad-card-attention {
    position: absolute !important;
    z-index: 6;
    display: block;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    justify-self: auto;
    align-self: auto;
    line-height: 0;
}

.metric > .ad-card-attention--bottom {
    inset: auto 12px 12px auto !important;
}

@media (max-width: 900px) {
    .metric > .ad-card-attention--bottom {
        inset: 10px 10px auto auto !important;
    }
}

.panel.ad-data > .ad-card-attention--top {
    inset: 14px 14px auto auto !important;
}

.panel.ad-data .ad-grid > div > .ad-card-attention--top {
    inset: 8px 8px auto auto !important;
}

.ad-card-attention img {
    display: block;
    width: 24px;
    height: 24px;
}

.session-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.session-controls[hidden] {
    display: none;
}

.session-controls--standalone {
    margin-right: 0;
    justify-content: flex-end;
}

.session-email {
    color: var(--muted);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 0 18px;
    text-decoration: none;
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.button-link:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.layout-reset-panel {
    display: flex;
    margin-top: 18px;
}

.layout-reset-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border: 1px solid rgba(255, 101, 0, 0.52);
    background: rgba(5, 6, 6, 0.9);
    padding: 0;
}

.layout-reset-button:hover {
    border-color: var(--amber);
    background: rgba(255, 101, 0, 0.08);
}

.layout-reset-button img {
    width: 20px;
    height: 20px;
}

.auth-page {
    width: min(720px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.auth-card {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(12px);
}

.auth-copy p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.auth-form input {
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-form input:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.auth-form input:focus,
.auth-form input:focus-visible {
    border-color: var(--amber);
    outline: none;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text);
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4);
    transition: background-color 9999s ease-out 0s;
    caret-color: var(--text);
}

.auth-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-page .toolbar {
    position: static;
    margin-bottom: 20px;
}

.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.admin-form label {
    min-width: min(220px, 100%);
}

.admin-keys-panel {
    display: grid;
    gap: 14px;
}

.admin-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.admin-keys-panel .muted-text {
    margin: 0;
    color: var(--muted);
}

.admin-key-card {
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.24);
    padding: 14px;
}

.admin-key-card__head {
    display: flex;
    gap: 10px;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.admin-key-card h3,
.admin-key-card p {
    margin: 0;
}

.admin-key-card h3 {
    font-size: 14px;
}

.admin-key-card p {
    color: var(--muted);
    line-height: 1.55;
}

.admin-key-card__message {
    margin-top: 8px !important;
    font-size: 12px;
}

.admin-key-badge {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    padding: 4px 8px;
    color: var(--text);
    font-size: 11px;
    text-transform: uppercase;
}

.admin-key-card--ok .admin-key-badge {
    border-color: rgba(72, 213, 151, 0.38);
    color: #48d597;
}

.admin-key-card--expired .admin-key-badge,
.admin-key-card--error .admin-key-badge {
    border-color: rgba(255, 90, 61, 0.42);
    color: var(--red);
}

.admin-key-card--missing .admin-key-badge,
.admin-key-card--unknown .admin-key-badge {
    border-color: rgba(255, 101, 0, 0.42);
    color: var(--amber);
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.marketplace-card {
    display: grid;
    gap: 10px;
    min-height: 168px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.24);
    color: var(--text);
    padding: 18px;
    text-decoration: none;
}

.marketplace-card:hover {
    border-color: var(--amber);
}

.marketplace-card strong {
    color: var(--text);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 26px;
    font-weight: 400;
    text-transform: uppercase;
}

.marketplace-card small,
.marketplace-card__eyebrow {
    color: var(--muted);
}

.marketplace-card__eyebrow {
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
}

.marketplace-card.is-disabled {
    opacity: 0.56;
    cursor: default;
}

.report-list-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.saved-reports-table th,
.saved-reports-table td {
    text-align: left;
}

.saved-reports-table td {
    vertical-align: middle;
}

.saved-reports-table th:last-child,
.saved-reports-table td:last-child {
    text-align: right;
}

.saved-report-important-heading,
.saved-report-important-cell {
    width: 1%;
    min-width: 34px !important;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center !important;
}

.saved-report-important-button {
    display: inline-grid;
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 3px 12px 0 12px;
    border: 0;
    background: transparent;
    vertical-align: middle;
}

.saved-report-important-button img {
    display: block;
    width: 16px;
    height: 16px;
}

.saved-report-important-button:hover,
.saved-report-important-button:focus-visible,
.saved-report-important-button.is-active {
    background: transparent;
}

.report-action-url {
    cursor: pointer;
}

.saved-reports-table td.report-table-empty {
    text-align: left;
}

@media (min-width: 641px) and (max-width: 1599px) {
    .saved-reports-table:not(.active-report-jobs-table) th:nth-child(6),
    .saved-reports-table:not(.active-report-jobs-table) td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 1400px) {
    .report-action-export {
        display: none;
    }
}

@media (max-width: 999px) {
    .toast-stack {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px;
    }

    .app-toast {
        grid-template-columns: 1fr;
    }
}

.category-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.category-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.category-analytics-results {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.category-analytics-period {
    display: grid;
    gap: 14px;
}

.category-analytics-period + .category-analytics-period {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.category-analytics-period-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    justify-content: space-between;
}

.category-analytics-period-title h3 {
    margin: 0;
    color: var(--text);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-analytics-period-title span {
    color: #aaaaaa;
    font-size: 12px;
}

.category-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-analytics-card {
    display: grid;
    gap: 8px;
    min-height: 128px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
    padding: 16px;
}

.category-analytics-card span,
.category-analytics-card small {
    color: var(--muted);
}

.category-analytics-card span {
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
}

.category-analytics-card strong {
    color: var(--amber);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 0.95;
}

.category-share-chart {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
    padding: 16px;
}

.category-share-column {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(180px, 1fr) minmax(88px, auto);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.category-share-label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.category-share-stack {
    display: flex;
    width: 100%;
    height: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
}

.category-share-rest {
    display: block;
    min-width: 2px;
    background: rgba(255, 255, 255, 0.16);
}

.category-share-own {
    display: block;
    min-width: 2px;
    background: var(--amber);
}

.category-share-label strong,
.category-share-label small,
.category-share-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-share-label strong {
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.category-share-label small,
.category-share-value {
    color: var(--muted);
}

.category-share-value {
    text-align: right;
}

@media (max-width: 700px) {
    .category-share-column {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .category-share-value {
        text-align: left;
    }
}

.hub-page .panel {
    display: block;
}

.help-page {
    --help-desktop-toc-width: 300px;
    --help-desktop-toc-gap: 40px;
    --help-desktop-toc-right: max(24px, calc(100vw - var(--sidebar-layout-width) - 1844px));
    --help-desktop-toc-top: 32px;
    --help-desktop-toc-height: calc(100vh - 64px);
}

.help-page .toolbar {
    position: static;
    margin: 0 calc(var(--help-desktop-toc-width) + var(--help-desktop-toc-gap)) 18px 0;
}

.help-search {
    position: relative;
    width: min(420px, 100%);
    margin-bottom: 28px;
}

.help-top-stack:empty {
    display: none;
}

.help-search-field {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    padding: 0 14px;
}

.help-search-field:focus-within {
    border-color: rgba(255, 101, 0, 0.55);
    background: rgba(255, 101, 0, 0.06);
}

.help-search-field img {
    width: 18px;
    height: 18px;
}

.help-search-field input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.help-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 45;
    border: 1px solid var(--line);
    background: rgba(12, 13, 13, 0.98);
    padding: 8px;
}

.help-search-results[hidden] {
    display: none;
}

.help-search-result {
    display: grid;
    gap: 2px;
    padding: 10px;
    color: var(--muted);
    text-decoration: none;
}

.help-search-result:hover {
    background: rgba(255, 101, 0, 0.08);
    color: var(--text);
}

.help-search-result small,
.help-search-empty {
    color: #aaaaaa;
    font-size: 12px;
}

.help-search-empty {
    margin: 0;
    padding: 10px;
}

.help-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--help-desktop-toc-width);
    gap: var(--help-desktop-toc-gap);
    align-items: start;
}

.help-article {
    min-width: 0;
}

.updates-article {
    display: grid;
    gap: 22px;
}

.help-section,
.help-subsection {
    scroll-margin-top: 24px;
}

.help-section {
    padding-bottom: 34px;
}

.help-section h2 {
    margin: 0 0 14px;
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
}

.help-subsection {
    margin-top: 24px;
}

.help-subsection h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 20px;
}

.help-section p,
.help-subsection p {
    max-width: 820px;
    color: #c8c8c8;
    line-height: 1.7;
}

.help-subsection-content {
    display: grid;
    gap: 14px;
}

.help-block {
    display: grid;
    gap: 8px;
}

.help-block h4 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.help-block ul {
    margin: 0;
    padding-left: 20px;
    max-width: 820px;
    color: #c8c8c8;
}

.help-block li + li {
    margin-top: 8px;
}

.help-block--callout,
.help-block--calc {
    max-width: 860px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
}

.help-block--callout {
    border-color: rgba(255, 255, 255, 0.08);
}

.help-block--calc {
    border-color: rgba(255, 101, 0, 0.28);
    background: linear-gradient(180deg, rgba(255, 101, 0, 0.08), rgba(255, 255, 255, 0.03));
}

.help-calc-item + .help-calc-item {
    margin-top: 12px;
}

.help-calc-item strong {
    display: block;
    margin-bottom: 6px;
    color: #fff1e7;
    font-size: 14px;
}

.help-calc-item p:last-child,
.help-block p:last-child {
    margin-bottom: 0;
}

.update-entry {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
    scroll-margin-top: 24px;
}

.update-entry-copy {
    display: grid;
    gap: 14px;
}

.update-entry h2 {
    margin: 0;
    color: var(--text);
    font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.update-entry p {
    max-width: 860px;
    color: #c8c8c8;
    line-height: 1.7;
}

.update-entry .help-block--list ul {
    max-width: none;
}

.update-gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.update-gallery--double {
    display: flex;
    flex-direction: row;
}
.update-gallery--double .update-shot img {
    height: 100%;
}

.update-shot {
    margin: 0;
    min-width: 0;
}

.update-shot img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    object-fit: contain;
}

.help-toc {
    position: relative;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: var(--help-desktop-toc-width);
    overflow: hidden;
}

.help-page.is-desktop-toc-pinned .help-toc {
    position: fixed;
    top: var(--help-desktop-toc-top);
    right: var(--help-desktop-toc-right);
    width: var(--help-desktop-toc-width);
    height: var(--help-desktop-toc-height);
    max-height: var(--help-desktop-toc-height);
}

.help-toc-toggle {
    display: none;
}

.help-toc-nav {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-height: 0;
    max-height: calc(100vh - 64px);
    padding-left: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 2px;
    padding-right: 8px;
    padding-bottom: 14px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 101, 0, 0.72) rgba(255, 255, 255, 0.06);
}

.help-toc-nav::-webkit-scrollbar {
    width: 10px;
}

.help-toc-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.help-toc-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 101, 0, 0.72);
    border: 2px solid rgba(5, 6, 6, 0.92);
}

.help-toc-link {
    display: block;
    color: #8e8e8e;
    text-decoration: none;
    padding: 6px 0;
    line-height: 1.25;
    font-weight: 500;
}

.help-pin-sentinel {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
}

.help-page.is-desktop-toc-pinned .help-pin-sentinel--desktop {
    visibility: hidden;
}

.help-toc-link.is-child {
    padding-left: 12px;
}

.help-toc-link:hover,
.help-toc-link.is-active {
    color: var(--text);
}

@supports (height: 100dvh) {
    .help-page {
        --help-desktop-toc-height: calc(100dvh - 64px);
    }

    .help-toc-nav {
        max-height: calc(100dvh - 64px);
    }

    .help-page.is-desktop-toc-pinned .help-toc {
        height: var(--help-desktop-toc-height);
        max-height: var(--help-desktop-toc-height);
    }
}

@media (max-width: 1180px) {
    .help-page {
        --help-mobile-stack-left: calc(var(--sidebar-layout-width) + 14px);
        --help-mobile-stack-width: min(420px, calc(100vw - var(--sidebar-layout-width) - 28px));
        --help-layout-offset: 0px;
    }

    .help-page .toolbar {
        margin-right: 0;
    }

    .help-top-stack {
        display: grid;
        gap: 12px;
        width: min(420px, 100%);
        margin-bottom: 18px;
    }

    .help-search {
        position: relative;
        left: auto;
        top: auto;
        padding-top: 2px;
        margin-bottom: 0;
    }

    .help-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .help-page .help-layout {
        padding-top: var(--help-layout-offset);
    }

    .update-gallery--double {
        flex-direction: column;
    }

    .help-toc {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 30;
        width: min(420px, 100%);
        max-width: min(420px, 100%);
        height: auto;
        max-height: none;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.015);
    }

    .help-page.is-stack-pinned .help-top-stack {
        position: fixed;
        top: 16px;
        left: var(--help-mobile-stack-left);
        width: var(--help-mobile-stack-width);
        max-width: var(--help-mobile-stack-width);
        z-index: 32;
    }

    .help-page .help-search,
    .help-page .help-toc,
    .updates-page .help-toc {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .help-toc:focus-within {
        border-color: rgba(255, 101, 0, 0.55);
        background: rgba(255, 101, 0, 0.06);
    }

    .help-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        border: 0;
        background: transparent;
        color: var(--text);
        padding: 0 14px;
        text-align: left;
    }

    .help-toc-toggle::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 1px solid #aaaaaa;
        border-bottom: 1px solid #aaaaaa;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.16s ease;
    }

    .help-toc-toggle[aria-expanded='true']::after {
        transform: rotate(225deg) translateY(-2px);
    }

    .help-toc-nav {
        display: none;
        max-height: 420px;
        overflow-y: auto;
        border-top: 1px solid var(--line);
        padding: 8px 14px 12px;
        scrollbar-gutter: auto;
    }

    .help-toc-nav.is-open {
        display: grid;
    }

    .help-toc-link.is-active {
        font-weight: 400;
    }

    .help-toc-link {
        color: var(--muted);
    }

    .scroll-top-button {
        display: inline-grid;
    }
}

@media (max-width: 900px) {
    .session-controls {
        width: 100%;
        margin-right: 0;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .category-analytics-grid {
        grid-template-columns: 1fr;
    }
}

.flatpickr-month select option {
    color: #222;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--amber);
    fill: var(--amber);
}

@media (max-width: 700px) {
    .not-found-page__home {
        width: 100%;
    }
    .actions button {
        flex-grow: 1;
    }
}
