/* ════════════════════════════════════════════════════════════════
   Advertising Settings (js/adSettings.js). Research/growth components
   (.rx-card .rx-btn) + the app's tokens; green family from
   css/app-nav.css (--og-*). Prefix aset-. Dark mode via body.dark-mode.
   ════════════════════════════════════════════════════════════════ */
.aset {
  --aset-line: var(--border);
  --aset-soft: color-mix(in srgb, var(--charcoal) 4%, transparent);
  --aset-acc: #2E7D32;
  --aset-acc-bg: color-mix(in srgb, var(--og-mid, #7CCB45) 16%, transparent);
  --aset-ok: #15803D; --aset-warn: #B45309; --aset-off: var(--m2);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
body.dark-mode .aset {
  --aset-soft: rgba(255, 255, 255, .035);
  --aset-acc: var(--og-fresh, #C9F27A);
  --aset-acc-bg: color-mix(in srgb, var(--og-mid, #7CCB45) 14%, transparent);
  --aset-ok: #86E07A; --aset-warn: #FFB45E;
}
.aset .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.aset-headact { display: flex; gap: 8px; }
.aset-h { margin: 0; font-size: 17px; font-weight: 700; color: var(--charcoal); letter-spacing: -.01em; }
.aset-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 72ch; }
.aset-sub b { color: var(--c2); }
.aset-muted { color: var(--muted); font-size: 13px; }
.aset-lbl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.aset-hint { font-size: 12px; color: var(--muted); }

/* Platform switcher */
.aset-plats { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--aset-line); border-radius: 14px; background: var(--surface); align-self: flex-start; max-width: 100%; }
.aset-plat { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.aset-plat:hover { color: var(--charcoal); }
.aset-plat.is-on { background: var(--aset-acc-bg); color: var(--charcoal); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--og-mid, #7CCB45) 45%, transparent); }
.aset-plat:focus-visible, .aset-link:focus-visible, .aset-ext:focus-visible { outline: 2px solid var(--aset-acc); outline-offset: 2px; }
.aset-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aset-off); flex: none; }
.aset-dot.is-on { background: var(--aset-ok); }
.aset-dot.is-warn { background: var(--aset-warn); }
.aset-dot.is-unknown { background: transparent; box-shadow: inset 0 0 0 1.5px var(--aset-off); }

/* Context bar: what you're configuring */
.aset-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--og-mid, #7CCB45) 40%, var(--aset-line)); background: linear-gradient(90deg, var(--aset-acc-bg), transparent 70%); }
.aset-ctx > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aset-ctx b { font-size: 14.5px; color: var(--charcoal); display: inline-flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.aset-ctx .rx-btn { margin-left: auto; }

/* Cards */
.aset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.aset-grid > .aset-empty, .aset-grid > .aset-matrix { grid-column: 1 / -1; }
.aset-card { gap: 12px; }
.aset-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.aset-st { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--aset-soft); color: var(--c2); }
.aset-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.aset-st--ok { color: var(--aset-ok); background: color-mix(in srgb, var(--aset-ok) 12%, transparent); }
.aset-st--warn { color: var(--aset-warn); background: color-mix(in srgb, var(--aset-warn) 12%, transparent); }
.aset-st--off { color: var(--muted); }
.aset-kv { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.aset-kv span { color: var(--muted); min-width: 64px; }
.aset-kv code { font: 600 13px/1.3 'Geist Mono', ui-monospace, Menlo, Consolas, monospace; padding: 3px 8px; border-radius: 7px; background: var(--aset-soft); color: var(--charcoal); overflow-wrap: anywhere; }
.aset-link { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--aset-acc); text-decoration: underline; text-underline-offset: 3px; }
.aset-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.aset-field { display: flex; flex-direction: column; gap: 6px; }
.aset-in { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--aset-line); background: var(--surface); color: var(--charcoal); font: inherit; font-size: 14px; }
.aset-in:focus { outline: 2px solid color-mix(in srgb, var(--og-mid, #7CCB45) 70%, transparent); border-color: transparent; }
.aset-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.aset-msg { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.aset-msg--ok { background: var(--aset-acc-bg); color: var(--charcoal); }
.aset-msg--warn { background: var(--warn-bg); color: var(--warn-c); }
.aset-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--c2); line-height: 1.5; }
.aset-links { display: flex; flex-wrap: wrap; gap: 10px; }
.aset-ext { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--charcoal); text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--aset-line); background: var(--surface); }
.aset-ext:hover { border-color: color-mix(in srgb, var(--og-mid, #7CCB45) 60%, transparent); }
.aset-ext__i { color: var(--aset-acc); }
.aset-code { margin: 0; max-height: 180px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: var(--aset-soft); border: 1px solid var(--aset-line); font: 12px/1.5 'Geist Mono', ui-monospace, Menlo, Consolas, monospace; color: var(--c2); white-space: pre-wrap; word-break: break-all; }
.aset-confirm { padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--og-mid, #7CCB45) 55%, transparent); background: var(--aset-acc-bg); display: flex; flex-direction: column; gap: 10px; }
.aset-confirm p { margin: 0; color: var(--charcoal); }
.aset-confirm dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; font-size: 13.5px; }
.aset-confirm dt { color: var(--muted); }
.aset-confirm dd { margin: 0; color: var(--charcoal); }

/* "Not yet verified with a real ad account" — shown on every native action
   until REAL_ACCOUNT_VERIFIED in js/adSettings.js says otherwise. */
.aset-unverified { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--c2); background: color-mix(in srgb, var(--aset-warn) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--aset-warn) 45%, transparent); }
.aset-unverified__tag { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 12px; font-weight: 700; color: var(--aset-warn); letter-spacing: .01em; }
.aset-unverified__tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.aset-unverified__line { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--aset-warn); }

/* Capability matrix */
.aset-tablewrap { overflow-x: auto; }
.aset-matrix table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.aset-matrix th, .aset-matrix td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--aset-line); vertical-align: top; }
.aset-matrix thead th { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.aset-matrix th[scope=row] { font-weight: 650; color: var(--charcoal); white-space: nowrap; }
.aset-matrix td { color: var(--c2); line-height: 1.45; }
.aset-where { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--aset-soft); color: var(--c2); }
.aset-where--native { background: var(--aset-acc-bg); color: var(--charcoal); }
.aset-where--partial { background: color-mix(in srgb, var(--og-rich, #2E9E5B) 12%, transparent); color: var(--charcoal); }
.aset-where--none { color: var(--muted); }

@media (max-width: 980px) { .aset-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .aset-ctx .rx-btn { margin-left: 0; width: 100%; }
  .aset-plats { flex-wrap: nowrap; overflow-x: auto; align-self: stretch; }
  .aset-confirm dl { grid-template-columns: minmax(0, 1fr); }
}
