/* Authority (Launchpad v9, v3/authority.js, #/authority). Builds on v9.css (.cc grid, cards, chips, segments, tooltips)
   and only the v9 tokens: dark by default, light under [data-theme="light"]. 390px: one column, no horizontal page scroll,
   44px touch targets on the links, Copy and Done. */
.ath .cc-span-7 { grid-column: span 7; } .ath .cc-span-5 { grid-column: span 5; }
@media (max-width: 1100px) { .ath .cc-span-7, .ath .cc-span-5 { grid-column: span 12; } }
.ath-kpis .cc-kpi .v { font-variant-numeric: tabular-nums; }
.ath-filters { grid-column: 1 / -1; display: flex; gap: var(--v9-2); flex-wrap: wrap; align-items: center; }
.ath-seg { flex-wrap: wrap; border-radius: 14px; }
.ath-seg button { min-height: 32px; }
.ath .ath-lead { margin: 0 0 var(--v9-5); }

/* brand → network → rows */
.ath-brand + .ath-brand { margin-top: var(--v9-6); padding-top: var(--v9-4); border-top: 1px solid var(--v9-line); }
.ath-brand > h3 { margin: 0 0 var(--v9-3); font: 650 17px/1.25 'Instrument Sans', system-ui, sans-serif; display: flex; gap: var(--v9-3); align-items: baseline; flex-wrap: wrap; }
.ath-brand > h3 span { font: var(--v9-f-small); color: var(--v9-mute); }
.ath-nets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v9-4); }
@media (max-width: 1100px) { .ath-nets { grid-template-columns: minmax(0, 1fr); } }
.ath-net { border: 1px solid var(--v9-line); border-radius: var(--v9-r-sm); padding: 10px 12px; min-width: 0; background: var(--v9-card); }
.ath-net > h4 { margin: 0 0 6px; font: 650 13.5px/1.3 'Instrument Sans', system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ath-net > h4 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; align-self: center; }
.ath-net > h4 span { font: var(--v9-f-small); color: var(--v9-mute); font-weight: 500; }
.ath-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.ath-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--v9-line); align-items: start; }
.ath-row:first-child { border-top: 0; }
.ath-main { min-width: 0; display: grid; gap: 4px; }
.ath-who { display: flex; gap: 6px 8px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.ath-tag { font: var(--v9-f-micro); text-transform: uppercase; letter-spacing: .05em; color: var(--v9-ink2); background: var(--v9-sunk); border: 1px solid var(--v9-line); border-radius: 6px; padding: 2px 6px; }
.ath-tag[data-k="engage"] { border-color: var(--v9-s3); }
.ath-org { font: 600 14px/1.3 'Instrument Sans', system-ui, sans-serif; color: var(--v9-ink); text-decoration: none; overflow-wrap: anywhere; }
.ath-org:hover { text-decoration: underline; }
.ath-h { font: var(--v9-f-small); color: var(--v9-mute); overflow-wrap: anywhere; }
.ath-why { font: var(--v9-f-small); color: var(--v9-ink2); overflow-wrap: anywhere; }
.ath-k { color: var(--v9-mute); font-weight: 650; }
.ath-post { margin: 2px 0 0; padding: 4px 0 4px 10px; border-left: 3px solid var(--v9-line2); font: var(--v9-f-body); color: var(--v9-ink2); overflow-wrap: anywhere; display: grid; gap: 2px; }
.ath-post a { font: var(--v9-f-small); color: var(--v9-accent); text-decoration: none; overflow-wrap: anywhere; }
.ath-nopost { font: var(--v9-f-small); color: var(--v9-mute); }
.ath-comment { display: flex; gap: 8px; align-items: flex-start; background: var(--v9-sunk); border: 1px solid var(--v9-line); border-radius: var(--v9-r-sm); padding: 8px 10px; }
.ath-comment p { margin: 0; flex: 1 1 auto; min-width: 0; font: var(--v9-f-body); color: var(--v9-ink); overflow-wrap: anywhere; }
.ath-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 132px; }
.ath-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--v9-line2); background: var(--v9-card2); color: var(--v9-ink); font: 600 13px/1.2 'Instrument Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap; }
.ath-btn:hover { border-color: var(--v9-ink2); }
.ath-btn:focus-visible { outline: 2px solid var(--v9-accent); outline-offset: 2px; }
.ath-open { background: var(--v9-accent); border-color: var(--v9-accent); color: var(--v9-accent-ink); }
.ath-open:hover { border-color: var(--v9-accent); filter: brightness(1.08); }
.ath-copy { min-height: 36px; padding: 6px 12px; flex: none; }
.ath-tick.on { border-color: var(--v9-good); color: var(--v9-good-ink); cursor: default; }
.ath-done .ath-org { color: var(--v9-mute); text-decoration: line-through; }
.ath-done .ath-open { background: var(--v9-card2); border-color: var(--v9-line2); color: var(--v9-ink2); }
.ath-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.45 ui-monospace, Menlo, monospace; background: var(--v9-sunk); border: 1px solid var(--v9-line); border-radius: var(--v9-r-sm); padding: 8px; max-height: 260px; overflow: auto; color: var(--v9-ink2); }
.ath-nm, .ath-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--v9-2); }
.ath-chips { margin: 0 0 var(--v9-3); }

/* done per week: n of d bars */
.ath-weeks { display: grid; gap: var(--v9-3); }
.ath-week { display: grid; gap: 4px; }
.ath-wl { font: 600 13px/1.3 'Instrument Sans', system-ui, sans-serif; }
.ath-wl span { font: var(--v9-f-small); color: var(--v9-mute); margin-left: 6px; }
.ath-wm { display: grid; grid-template-columns: 76px minmax(0, 1fr) 84px; gap: 8px; align-items: center; font: var(--v9-f-small); color: var(--v9-ink2); }
.ath-wm b { text-align: right; color: var(--v9-ink); font-variant-numeric: tabular-nums; }
.ath-track { height: 10px; background: var(--v9-track); border-radius: 4px; overflow: hidden; display: block; }
.ath-track span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.ath-qw { padding: 8px 10px; border-top: 1px solid var(--v9-line); display: grid; gap: 2px; }
.ath-qw .t { font: 600 13px/1.3 'Instrument Sans', system-ui, sans-serif; }
.ath-qw .m { font: var(--v9-f-small); color: var(--v9-mute); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .ath-row { grid-template-columns: minmax(0, 1fr); }
  .ath-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; }
  .ath-btn { font-size: 14px; white-space: normal; }
  .ath-net { padding: 10px; }
  .ath-wm { grid-template-columns: 70px minmax(0, 1fr) 72px; }
}
/* Visual first (CPO review fix 8, 11-07): progress beside the follower chart, then one collapsed card per brand. */
.ath-sub { grid-column: 1 / -1; margin: calc(-1 * var(--v9-1)) 0 0; }
.ath-prog { display: flex; flex-direction: column; gap: var(--v9-3); }
.ath-prog .ath-hero { padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; }
.ath-prog .ath-hero .v { font: var(--v9-f-hero); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ath-split { display: flex; gap: 3px; height: 14px; }
.ath-split > span { display: block; background: var(--v9-track); border-radius: 4px; overflow: hidden; min-width: 6px; }
.ath-split i { display: block; height: 100%; }
.ath-prog .ath-wm { grid-template-columns: 130px minmax(0, 1fr) 72px; }
.ath-brands { display: flex; flex-direction: column; gap: var(--v9-2); }
.ath-bc { border: 1px solid var(--v9-line); border-radius: var(--v9-r-sm); background: var(--v9-card2); }
.ath-bh { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(80px, 1fr) minmax(0, 1.6fr) 16px; gap: var(--v9-3); align-items: center; padding: 12px 14px; border-radius: var(--v9-r-sm); transition: background 120ms ease; }
.ath-bh:hover { background: var(--v9-sunk); }
.ath-bh:focus-visible { outline: 2px solid var(--v9-accent); outline-offset: 2px; }
.ath-bn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ath-bn b { font: var(--v9-f-h); color: var(--v9-ink); }
.ath-bn span { font: var(--v9-f-small); color: var(--v9-mute); }
.ath-bnets { display: flex; flex-wrap: wrap; gap: 6px; }
.ath-bnets .cc-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.ath-caret { color: var(--v9-mute); text-align: right; }
.ath-bc.open > .ath-nets { padding: 0 14px 14px; }
@media (max-width: 760px) {
  .ath-bh { grid-template-columns: minmax(0, 1fr) 16px; }
  .ath-bh .ath-track, .ath-bh .ath-bnets { grid-column: 1 / -1; }
  .ath-bh .ath-caret { grid-row: 1; grid-column: 2; }
  .ath-prog .ath-wm { grid-template-columns: 112px minmax(0, 1fr) 64px; }
}
@media (forced-colors: active) { .ath-track span, .ath-net > h4 i { forced-color-adjust: none; } }
