#ads {
  --ads-ink: #2455a7;
  --ads-solid: #2455a7;
  --ads-solid-hover: #194484;
  --ads-tint: #edf4ff;
  --ads-border: #c4d6f3;
}
html[data-theme="dark"] #ads {
  --ads-ink: #acc7ff;
  --ads-solid: #acc7ff;
  --ads-solid-hover: #c7d9ff;
  --ads-tint: #243149;
  --ads-border: #465d86;
}
#ads .panel { border-radius: 12px; padding: clamp(18px, 3vw, 28px); }
#ads .ads-report { border-top: 3px solid var(--accent); }
#ads .panel-head { gap: 12px 20px; align-items: center; }
#ads h2, #ads .panel-head p { margin: 0; }
#ads h2 { font-size: 1.15rem; }
#ads .ads-kicker { color: var(--ads-ink); font-size: .7rem; font-weight: 750; letter-spacing: .12em; }
#ads .ads-caption { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
#ads .panel-head .ads-caption { margin-top: 4px; }
#ads fieldset { border: 0; padding: 0; margin: 18px 0 0; }
#ads .placements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
#ads .placements label {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
#ads .placements label:hover { border-color: var(--ads-ink); }
#ads .placements label:has(input:checked) { background: var(--ads-tint); border-color: var(--ads-border); }
#ads input[type="checkbox"] { flex: none; margin: 0; width: 16px; height: 16px; accent-color: var(--ads-solid); }
#ads .action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 8px 15px; border: 1px solid var(--ads-border); border-radius: 8px;
  background: var(--ads-tint); color: var(--ads-ink); font: inherit; font-weight: 700; cursor: pointer;
}
#ads .action:hover:not(:disabled) { border-color: var(--ads-ink); }
#ads .action.primary { border-color: transparent; background: var(--ads-solid); color: #fff; }
html[data-theme="dark"] #ads .action.primary { color: #121a28; }
#ads .action.primary:hover:not(:disabled) { background: var(--ads-solid-hover); }
#ads .action:focus-visible { outline: 2px solid var(--ads-ink); outline-offset: 3px; }
#ads .action:disabled { cursor: wait; opacity: .55; }
#ads output { display: block; margin-top: 12px; font-size: .88rem; }
#ads output:empty { display: none; }
#ads-api-status:not(:empty) { padding: 10px 12px; background: var(--ads-tint); border-radius: 8px; }
#ads-report-filter:not([hidden]), #ads-custom:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#ads-report-filter select, #ads-report-filter input { border: 1px solid var(--line); border-radius: 6px; padding: 7px; background: var(--panel); color: var(--text); font: inherit; }
#ads-report-result { margin-top: 16px; }
#ads-report-result .card { box-shadow: none; border-radius: 8px; padding: 14px; }
#ads-report-result .value { font-size: clamp(1.1rem, 2.6vw, 1.55rem); overflow-wrap: anywhere; }
#ads-report-result h3 { margin: 20px 0 8px; }
#ads .ads-table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
#ads .ads-table-scroll thead { background: var(--ads-tint); }
#ads .ads-table-scroll th, #ads .ads-table-scroll td { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
#ads .ads-table-scroll th:first-child, #ads .ads-table-scroll td:first-child { text-align: left; }
@media (max-width: 720px) { #ads .placements { grid-template-columns: 1fr; } }
@media (max-width: 1359px) { .admin-tabs.ads-active .admin-subtabs { display: none !important; } }
