:root {
  color-scheme: light;
  --canvas: #f7f7fc;
  --paper: #fff;
  --side: #1b172b;
  --side-border: #342b49;
  --ink: #211b33;
  --muted: #625c72;
  --line: #ebe8f3;
  --violet: #6d49e1;
  --violet-deep: #5333be;
  --mint: #117e61;
  --radius: 18px;
  --side-width: 236px;
  font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, canvas:focus-visible, input:focus-visible { outline: 3px solid #a792fb; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; transform: translateY(-125%); padding: 9px 14px; border-radius: 8px; background: #fff; color: var(--ink); }
.skip-link:focus { transform: none; }
.shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: var(--side-width); padding: 30px 17px 19px; background: var(--side); color: #e9e3f7; }
.brand { display: flex; align-items: center; gap: 12px; max-width: fit-content; margin: 0 0 50px 9px; text-decoration: none; }
.brand-mark { position: relative; display: flex; flex: 0 0 39px; justify-content: center; align-items: center; gap: 2.5px; width: 39px; height: 39px; overflow: hidden; border: 1px solid #a38dfa; border-radius: 12px; background: linear-gradient(145deg, #9875ff, #6e4ae1); box-shadow: 0 4px 8px #14102270, inset 0 1px 0 #c9baff90; }
.brand-mark i { width: 3.5px; height: 14px; transform: rotate(33deg); transform-origin: center bottom; border-radius: 3px; background: white; }
.brand-mark i:first-child { height: 8px; align-self: center; margin-top: 7px; opacity: .75; }
.brand-mark i:last-child { height: 20px; margin-top: -4px; opacity: .9; }
.brand-name { display: block; color: #fff; font-size: 1.39rem; font-weight: 750; line-height: 1; letter-spacing: -.045em; }
.brand-name small { display: block; margin-top: 6px; color: #b9adc9; font-size: .72rem; font-weight: 600; letter-spacing: .055em; }
.workspace-label { margin: 0 0 16px 12px; color: #ada1c3; font-size: .67rem; font-weight: 750; letter-spacing: .1em; }
.nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; background: none; color: #cfc6df; font-size: .9rem; font-weight: 530; line-height: 1.25; text-align: left; transition: color .15s, background .15s; }
.nav-link:hover { background: #29223b; color: #fff; }
.nav-link.active, .nav-link[aria-current="page"] { border-color: #584382; background: #3b2d58; color: #f9f5ff; font-weight: 650; }
.nav-link.active .icon, .nav-link[aria-current="page"] .icon { color: #bea8ff; }
.nav-footer { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 16px 6px 1px; border-top: 1px solid var(--side-border); }
.nav-footer strong, .nav-footer small { display: block; }
.nav-footer strong { color: #e9e3f7; font-size: .81rem; font-weight: 650; }
.nav-footer small { margin-top: 4px; color: #b0a3c4; font-size: .69rem; }
.footer-mark { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #514065; border-radius: 10px; background: #372a4b; color: #d6c4f9; font-size: .71rem; font-weight: 750; }

.work-area { min-width: 0; margin-left: var(--side-width); }
.topbar { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 clamp(18px, 2.9vw, 42px); border-bottom: 1px solid #eeebf4; background: #fff; }
.topbar-left, .topbar-right, .topbar-location { display: flex; align-items: center; gap: 11px; }
.topbar-location { font-size: .88rem; color: #716980; white-space: nowrap; }
.topbar-location span { color: #9c94ac; }
.topbar-location strong { color: var(--ink); font-weight: 650; }
.mode-label { display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 0 9px; border: 1px solid #f0e0b7; border-radius: 7px; background: #fff8e5; color: #805411; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.mode-label i { width: 7px; height: 7px; border-radius: 50%; background: #bd8825; }
.mode-label.is-live { border-color: #bce8da; background: #e8f8f1; color: #11644e; }
.mobile-nav { display: none !important; }
.workspace { width: 100%; max-width: 1660px; margin: 0 auto; padding: 36px clamp(18px, 2.9vw, 42px) 44px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3.1vw, 2.48rem); font-weight: 750; line-height: 1.09; letter-spacing: -.061em; }
.page-intro p { margin-top: 10px; color: var(--muted); font-size: .98rem; line-height: 1.52; }
.filters { display: flex; flex-wrap: wrap; min-width: 0; gap: 9px; }
.page-intro .filters { justify-content: flex-end; }
.select-wrap { position: relative; display: flex; width: auto; min-width: 129px; align-items: center; }
.select-wrap .icon { position: absolute; top: calc(50% - 9px); left: 10px; z-index: 1; color: #766a91; pointer-events: none; }
.select-wrap::after { position: absolute; right: 13px; width: 6px; height: 6px; margin-top: -4px; transform: rotate(45deg); border: solid #6f6489; border-width: 0 1.5px 1.5px 0; content: ""; pointer-events: none; }
.select-wrap select { width: 100%; max-width: 215px; min-height: 41px; appearance: none; padding: 0 28px 0 35px; overflow: hidden; text-overflow: ellipsis; border: 1px solid #e9e5f0; border-radius: 9px; background: #fff; color: #342847; font-size: .83rem; font-weight: 620; }
.select-wrap select:hover { border-color: #bcaaee; }

.button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 7px 15px; border: 1px solid #e6e1ef; border-radius: 9px; background: #fff; color: #382c4b; font-size: .88rem; font-weight: 670; line-height: 1.15; text-align: center; transition: background .16s, border-color .16s; white-space: nowrap; }
.button:hover, .quiet-button:hover { border-color: #cbbcf4; background: #f5f0ff; }
.button-small, .quiet-button { min-height: 35px; padding: 6px 10px; font-size: .8rem; }
.button-square { width: 37px; min-height: 37px; padding: 0; }
.button-primary { border-color: var(--violet); background: var(--violet); color: #fff; }
.button-primary:hover { border-color: var(--violet-deep); background: var(--violet-deep); }
.quiet-button { border-color: transparent; color: var(--violet-deep); }
.button .icon { flex: 0 0 16px; width: 16px; height: 16px; }

.panel { display: grid; gap: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 4px #20143005; }
.metric { min-width: 0; min-height: 139px; padding: 15px 16px 14px; }
.metric-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; }
.metric-icon.violet { background: #efe9ff; color: #6d46e2; }
.metric-icon.blue { background: #e8efff; color: #3e64dd; }
.metric-icon.green { background: #e1f5ef; color: #127f60; }
.metric-icon.apricot { background: #fff1e5; color: #a9541b; }
.metric p { margin-top: 10px; color: #615870; font-size: .83rem; font-weight: 640; }
.metric strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: clamp(1.36rem, 2.35vw, 1.92rem); font-weight: 750; line-height: 1.13; letter-spacing: -.048em; font-variant-numeric: tabular-nums; }
.metric-detail { display: block; margin-top: 6px; color: #6c647b; font-size: .74rem; line-height: 1.31; }
.primary-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(252px, 1fr); gap: 16px; align-items: start; }
.right-column { display: grid; gap: 15px; }
.card { min-width: 0; padding: 19px 19px 18px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.card-heading h2, .payout-note h2 { font-size: 1.07rem; font-weight: 740; line-height: 1.22; letter-spacing: -.024em; }
.card-heading p { margin-top: 5px; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.trend-card { min-height: 361px; padding: 20px 22px 15px; }
.trend-legend { display: flex; width: fit-content; align-items: center; gap: 7px; margin: 16px 0 7px 1px; color: #665a77; font-size: .77rem; font-weight: 590; }
.trend-legend i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #7a57ec; }
.chart-wrap { position: relative; min-width: 0; }
#revenue-chart { display: block; width: 100%; height: 265px; touch-action: pan-y; }
.chart-tooltip { position: absolute; z-index: 1; min-width: 116px; padding: 8px 10px; border: 1px solid #ece5fa; border-radius: 8px; background: #fff; box-shadow: 0 5px 15px #27124120; color: #2f214a; font-size: .77rem; pointer-events: none; }
.payout-card { position: relative; isolation: isolate; min-width: 0; min-height: 170px; overflow: hidden; border: 1px solid #58428f; border-radius: var(--radius); background: linear-gradient(120deg, #251749, #462d81 76%, #5e3baf); color: #fff; }
.payout-card::before, .payout-card::after { position: absolute; z-index: -1; width: 190px; height: 190px; border: 1px solid #ab89f144; border-radius: 50%; content: ""; pointer-events: none; }
.payout-card::before { top: -102px; right: -32px; box-shadow: 0 0 0 18px #b09bf117, 0 0 0 38px #b09bf116, 0 0 0 58px #b09bf10f; }
.payout-card::after { right: -95px; bottom: -138px; box-shadow: 0 0 0 19px #b29bfd1a, 0 0 0 39px #b29bfd13; }
.payout-content { position: relative; padding: 16px 18px; }
.payout-eyebrow { display: flex; align-items: center; gap: 7px; color: #e0d1ff; font-size: .85rem; font-weight: 620; }
.payout-content > strong { display: block; margin-top: 6px; font-size: clamp(1.7rem, 3vw, 2.16rem); font-weight: 740; line-height: 1.14; letter-spacing: -.052em; font-variant-numeric: tabular-nums; }
.payout-content p { margin: 6px 0 12px; color: #e0d1ff; font-size: .76rem; }
.payout-content p b { margin-left: 3px; color: #fff; font-weight: 720; }
.payout-button { min-height: 34px; padding: 6px 11px; border-color: #f5edff; background: #f9f4ff; color: #3f237c; font-size: .81rem; }
.payout-button:hover { border-color: #fff; background: #fff; }
.source-card { padding: 16px 16px 15px; }
.source-card .card-heading p { font-size: .78rem; }
.source-card .quiet-button { min-height: 30px; padding-inline: 4px; }
.traffic-sources { display: grid; gap: 9px; margin-top: 12px; }
.source-row { display: grid; gap: 4px; }
.source-meta { display: flex; justify-content: space-between; gap: 12px; color: #554a6a; font-size: .78rem; font-weight: 620; }
.source-bar { display: block; height: 6px; overflow: hidden; border-radius: 6px; background: #f0ecfa; }
.source-fill { display: block; height: 100%; border-radius: inherit; background: #8b6afa; }
.source-row:nth-child(2) .source-fill { background: #6f95ec; }
.source-row:nth-child(3) .source-fill { background: #55baa8; }
.source-row:nth-child(4) .source-fill { background: #c28de6; }

.card-actions { display: flex; align-items: center; gap: 6px; }
.sites-card { padding-bottom: 5px; }
.table-scroll { width: 100%; margin-top: 13px; overflow-x: auto; }
table { width: 100%; min-width: 505px; border-collapse: collapse; font-size: .88rem; text-align: left; }
th { padding: 10px 8px; border-bottom: 1px solid #eeeaf5; background: #fbfafe; color: #615871; font-size: .76rem; font-weight: 700; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 11px; }
td { padding: 10px 8px; border-bottom: 1px solid #f0edf5; color: #3a304b; vertical-align: middle; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.site-identity { display: flex; align-items: center; gap: 9px; }
.site-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; background: #eae4ff; color: #6742d8; font-size: .72rem; font-weight: 750; }
tr:nth-child(2) .site-avatar { background: #e2efff; color: #375eb8; }
tr:nth-child(3) .site-avatar { background: #def3ec; color: #127451; }
.site-name { display: block; color: #2c223e; font-weight: 680; }
.site-domain { display: block; margin-top: 2px; color: #746983; font-size: .73rem; }
.report-card .card-heading { align-items: center; flex-wrap: wrap; }
.report-sort select { min-width: 160px; }
.report-scroll { max-height: 29rem; overflow: auto; }
.report-scroll th { position: sticky; z-index: 1; top: 0; box-shadow: inset 0 -1px #eeeaf5; }
.report-scroll .ad-unit-table { min-width: 820px; }
.report-scroll .country-table { min-width: 365px; }
.report-scroll .ad-unit-table :is(td, th):nth-child(n+3), .report-scroll .country-table :is(td, th):nth-last-child(-n+3) { text-align: right; white-space: nowrap; }
.report-identity { display: block; min-width: 104px; max-width: 240px; overflow-wrap: anywhere; }
.report-note { margin-top: 11px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.report-note a { color: #5738ba; white-space: nowrap; }
.data-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 2px 8px; border-radius: 20px; background: #f2edf9; color: #625373; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.data-pill.active, .data-pill.paid, .data-pill.low, .data-pill.is-active, .data-pill.is-paid { background: #e4f6ed; color: #147653; }
.data-pill.high, .data-pill.rejected, .data-pill.is-high { background: #fce8e6; color: #a63937; }
.data-pill.medium, .data-pill.pending, .data-pill.is-pending { background: #fff1da; color: #875313; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-grid .traffic-sources { gap: 13px; margin-top: 23px; }
.detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.detail-summary > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.detail-summary span { display: block; color: var(--muted); font-size: .84rem; }
.detail-summary strong { display: block; margin-top: 6px; font-size: 1.35rem; }
.payout-note p { max-width: 35ch; margin-top: 10px; color: var(--muted); line-height: 1.55; }
.payment-methods .card-heading { align-items: center; flex-wrap: wrap; }
.payment-method-empty { margin: 16px 0 4px; color: var(--muted); font-size: .88rem; }
.payment-method-list { display: grid; gap: 9px; margin: 15px 0 1px; padding: 0; list-style: none; }
.payment-method-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.payment-method-identity { min-width: 0; overflow-wrap: anywhere; }
.payment-method-item .card-actions { flex-wrap: wrap; }
.notice { position: fixed; z-index: 7; right: 20px; bottom: 20px; width: min(360px, calc(100% - 40px)); padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); box-shadow: 0 7px 27px #30205528; }

.icon { position: relative; display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: inherit; vertical-align: middle; }
.icon::before, .icon::after { position: absolute; content: ""; }
.i-grid::before { top: 1px; left: 1px; width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 1.4px; }
.i-grid::after { top: 1px; right: 1px; width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 1.4px; box-shadow: inset 0 0 0 8px transparent, 0 9px 0 -1px currentColor, -9px 9px 0 -1px currentColor; }
.i-site::before { inset: 2px 1px; border: 1.5px solid currentColor; border-radius: 3px; }
.i-site::after { top: 6px; right: 2px; left: 2px; border-top: 1.4px solid currentColor; }
.i-ad-unit::before { inset: 3px 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.i-ad-unit::after { inset: 6px 4px; border-radius: 1px; background: currentColor; }
.i-trend::before { right: 1px; bottom: 2px; left: 2px; height: 14px; border: solid currentColor; border-width: 0 0 1.4px 1.4px; border-radius: 0 0 0 2px; }
.i-trend::after { top: 5px; right: 1px; width: 10px; height: 5px; transform: skewY(-33deg); border: solid currentColor; border-width: 1.5px 1.5px 0 0; }
.i-shield::before { inset: 1px 2px; background: currentColor; clip-path: polygon(50% 0, 100% 20%, 95% 67%, 72% 90%, 50% 100%, 28% 90%, 5% 67%, 0 20%, 50% 0, 50% 13%, 12% 28%, 16% 63%, 35% 82%, 50% 90%, 65% 82%, 84% 63%, 88% 28%, 50% 13%); }
.i-shield::after { top: 5px; left: 6px; width: 5px; height: 7px; transform: rotate(40deg); border: solid currentColor; border-width: 0 1.3px 1.3px 0; }
.i-wallet::before { inset: 3px 1px; border: 1.4px solid currentColor; border-radius: 3px; }
.i-wallet::after { top: 7px; right: 1px; width: 7px; height: 5px; border: 1.3px solid currentColor; border-radius: 2px 0 0 2px; }
.i-calendar::before { inset: 3px 1px 1px; border: 1.4px solid currentColor; border-radius: 3px; }
.i-calendar::after { top: 7px; right: 2px; left: 2px; border-top: 1.4px solid currentColor; }
.i-eye::before { top: 4px; left: 1px; width: 16px; height: 11px; transform: rotate(-6deg); border: 1.4px solid currentColor; border-radius: 65% 25%; }
.i-eye::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.i-dollar { font-size: 1.22rem; font-weight: 670; line-height: 18px; }
.i-download::before { right: 2px; bottom: 1px; left: 2px; height: 5px; border: solid currentColor; border-width: 0 1.4px 1.4px; border-radius: 0 0 2px 2px; }
.i-download::after { top: 2px; width: 6px; height: 6px; transform: rotate(45deg); border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.i-plus::before { width: 11px; height: 1.5px; border-radius: 1px; background: currentColor; }
.i-plus::after { width: 1.5px; height: 11px; border-radius: 1px; background: currentColor; }
.i-menu::before { top: 4px; width: 15px; height: 1.5px; border-radius: 1px; background: currentColor; box-shadow: 0 4px currentColor, 0 8px currentColor; }

@media (max-width: 1070px) {
  :root { --side-width: 203px; }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .workspace, .topbar { padding-right: 20px; padding-left: 20px; }
  .metric { padding-inline: 12px; }
  .metrics { gap: 9px; }
  .primary-grid { grid-template-columns: minmax(0, 1.65fr) minmax(226px, 1fr); gap: 10px; }
}

@media (max-width: 770px) {
  .sidebar { width: min(245px, 82vw); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.is-open, .sidebar.open, body.nav-open .sidebar, .shell.nav-open .sidebar { transform: none; box-shadow: 6px 0 15px #1b112c42; }
  .work-area { margin-left: 0; }
  .mobile-nav { display: inline-flex !important; }
  .topbar { min-height: 58px; padding-inline: 15px; }
  .workspace { padding: 26px 15px 28px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 17px; }
  .page-intro .filters { justify-content: flex-start; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 124px; }
  .primary-grid { grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); }
  .trend-card { min-height: 337px; padding-inline: 14px; }
  #revenue-chart { height: 235px; }
}

@media (max-width: 520px) {
  .topbar-left, .topbar-right { gap: 7px; }
  .topbar-location { gap: 5px; }
  .topbar-location > strong { display: none; }
  .topbar-location > span { display: none; }
  .primary-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { padding-inline: 12px; }
  .panel, .right-column { gap: 11px; }
  .card-heading h2, .payout-note h2 { font-size: 1rem; }
  .payout-content { padding-inline: 14px; }
  .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-card { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Keep the publisher workspace aligned with the approved light design. */
.sidebar { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.brand-mark { box-shadow: 0 5px 16px #683ce439; }
.brand-name, .nav-footer strong { color: var(--ink); }
.brand-name small, .workspace-label, .nav-footer small { color: var(--muted); }
.nav-link { color: #4c415f; }
.nav-link:hover { background: #f7f4fd; color: #4d2fb2; }
.nav-link.active, .nav-link[aria-current="page"] { border-color: #eee6ff; background: #f1ebff; color: #5a38cc; }
.nav-link.active .icon, .nav-link[aria-current="page"] .icon { color: #6646d4; }
.nav-footer { border-top-color: var(--line); }
.footer-mark { border-color: #e9e0fe; background: #eee8ff; color: #643dc8; }
.profile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-summary strong { overflow-wrap: anywhere; font-size: 1.06rem; }
.profile-actions, .tracking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.delivery-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quality-link { display: inline-flex; width: fit-content; align-items: center; min-height: 28px; margin-top: 3px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #5d3ac5; font-size: .76rem; font-weight: 700; text-align: left; }
.quality-link:hover { text-decoration: underline; }
.quality-site-link { margin: 0; font-size: .84rem; overflow-wrap: anywhere; }
.quality-heading { align-items: center; }
.quality-heading .data-pill { flex-shrink: 0; }
.quality-overview { border-color: #e7def9; }
.quality-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.assessment-card { min-width: 0; padding: 12px; border: 1px solid #ebe5f3; border-radius: 10px; background: #faf9fd; }
.assessment-card > span, .assessment-card > small { display: block; font-size: .75rem; color: var(--muted); }
.assessment-card > span { font-weight: 650; color: #4d455b; }
.assessment-card > strong { display: block; margin: 4px 0; color: #231a35; font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.assessment-clear { border-color: #e2efe7; background: #f4fbf7; }
.assessment-watch { border-color: #f4e9c8; background: #fdf9ed; }
.assessment-flag { border-color: #f2e4e8; background: #fff7f7; }
.assessment-estimate { border-color: #e8dff9; background: #f6f1fe; }
.assessment-estimate > strong { color: #5330ae; }
.quality-assessment { margin-top: 16px; }
.quality-assessment-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: .76rem; }
.quality-assessment-header > span, .quality-assessment > p, .quality-note { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.quality-assessment-track { height: 7px; margin: 7px 0; overflow: hidden; border-radius: 20px; background: #ede8f6; }
.quality-assessment-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: #8662dd; }
.quality-signals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.quality-signal { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; min-height: 45px; align-items: center; gap: 4px 7px; padding: 8px 10px; border: 1px solid #ebe5f4; border-radius: 9px; background: #fff; font-size: .76rem; color: #574968; }
.quality-signal strong { flex-shrink: 0; color: #2a1c42; font-size: .97rem; font-variant-numeric: tabular-nums; }
.quality-signal-coverage { grid-column: 1 / -1; font-size: .7rem; color: #68597b; }
.quality-note { margin-top: 10px; }
.quality-table { min-width: 740px; }
.quality-table tbody td:first-child { min-width: 143px; }
.quality-table tbody td:not(:first-child) { white-space: nowrap; }
.quality-site-flagged .site-domain { display: block; }
.data-pill.monitor { background: #f0eafb; color: #5c3f9a; }
.table-scroll[tabindex]:focus-visible { outline: 2px solid #7954ce; outline-offset: 3px; }
.quality-windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.quality-window { border: 1px solid #ebe4fb; border-radius: 12px; background: #fbf8ff; padding: 11px; }
.quality-window span, .quality-window small { display: block; color: var(--muted); font-size: .77rem; }
.quality-window strong { display: block; margin: 3px 0; color: #4833a0; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.path-cell { display: block; max-width: 300px; overflow-wrap: anywhere; }
.tracking-snippet { resize: vertical; width: 100%; padding: 10px; border: 1px solid #dbd1ee; border-radius: 8px; background: #fbf9ff; color: var(--ink); font: .82rem/1.5 ui-monospace, monospace; }
.ad-unit-manager .card-heading, .ad-unit-manager .card-actions { flex-wrap: wrap; }
.ad-unit-manager .site-domain, .ad-unit-manager .site-name { max-width: 32ch; overflow-wrap: anywhere; }
.ad-unit-format { color: #463858; font-size: .82rem; font-weight: 650; }
.ad-unit-sizes { display: flex; max-width: 230px; flex-wrap: wrap; gap: 4px; }
.ad-unit-format + .ad-unit-sizes { margin-top: 5px; }
.ad-unit-size { padding: 3px 6px; border: 1px solid #ebe5f4; border-radius: 6px; background: #fbf9ff; color: #4d405f; font-size: .74rem; white-space: nowrap; }
.ad-unit-size-picker { min-width: 0; margin: 14px 0; padding: 0; border: 0; }
.ad-unit-size-picker legend { margin-bottom: 4px; padding: 0; font-size: .875rem; font-weight: 650; }
.ad-unit-size-note { margin: 0 0 9px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.ad-unit-size-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ad-unit-size-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(91px, 1fr)); gap: 7px; max-height: 178px; overflow-y: auto; padding: 2px; }
.ad-unit-size-option { display: flex; min-height: 41px; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #e6dfef; border-radius: 8px; color: #382c4b; font-size: .82rem; white-space: nowrap; cursor: pointer; }
.ad-unit-size-option:has(input:checked) { border-color: #9d81ee; background: #f4eeff; }
.ad-unit-size-option input { margin: 0; accent-color: #6744ce; }
.consent-option { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: .88rem; font-weight: 650; }
@media (max-width: 960px) {
  .quality-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-signals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .delivery-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 770px) {
  body:not(.admin-body) .sidebar { visibility: hidden; transition: none; }
  body:not(.admin-body).nav-open .sidebar { visibility: visible; }
}
@media (max-width: 500px) {
  .delivery-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-windows { gap: 6px; }
  .quality-window { padding: 9px 6px; }
  .quality-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .quality-kpis { gap: 7px; }
  .assessment-card { padding: 8px; }
}
