/* Aquila Ad Creatives. Layout: one working list of every Azora ad edit, grouped per batch, newest batch first; a sticky toolbar filters and holds the selection. Tokens come from base.css. */
body { padding-block: 0 64px; }
a { color: var(--gold); text-underline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
h1 { margin: 0; font: 500 clamp(32px, 4.6vw, 52px)/1.1 var(--display); font-stretch: 118%; letter-spacing: -0.01em; background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
h2 { margin: 0; font: 500 21.6px/1.25 var(--display); font-stretch: 118%; color: var(--ink); }
p { margin: 0; }
.lead { max-width: 70ch; font: 400 16.5px/1.6 var(--body); text-wrap: pretty; }
.t-label { white-space: nowrap; }
.note { font: 400 12.5px/1.5 var(--body); color: var(--ink-3); }
.note.err { color: var(--rose); }

.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; gap: 8px 14px; background: rgba(2,9,24,0.8); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.topbar img { height: 24px; }
.crumb { font: 500 12.5px/1 var(--body); color: var(--ink-3); white-space: nowrap; }
.tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.hero { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 16px 18px; border-radius: var(--r-block); background: var(--block); border: 0.5px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat b { min-height: 28px; font: 500 28px/1 var(--display); font-stretch: 118%; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat.gold { border-color: var(--gold-line); background: var(--gold-tint-2); }
.stat.gold b { color: var(--gold); }
.stat span { font: 400 13px/1.45 var(--body); }
.how { padding: 14px 16px; border-left: 1.5px solid var(--gold-line); font: 400 13.5px/1.55 var(--body); max-width: 92ch; }
.how strong { color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); background: var(--pill); border: 0.5px solid var(--pill-line); font: 600 11.5px/1 var(--body); color: var(--ink); white-space: nowrap; }
.pill.gold { background: var(--gold-tint); border-color: var(--gold-line); color: var(--gold); }
.pill.green { background: rgba(6,182,145,0.1); border-color: rgba(6,182,145,0.5); color: var(--green); }
.pill.soft { background: transparent; border-color: rgba(6,182,145,0.45); color: var(--green); border-style: dashed; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--block); border: 0.5px solid var(--line-soft); }
.seg button, .chip { border: 0; background: transparent; color: var(--ink-2); font: 500 12.5px/1 var(--body); padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.seg button:hover, .chip:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--pill); color: var(--ink); }
.seg button span { margin-left: 6px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip { border: 0.5px solid var(--line-soft); background: var(--block); }
.chip[aria-pressed="true"] { border-color: var(--gold-line); color: var(--gold); }
.search { width: 220px; max-width: 100%; padding: 9px 14px; border-radius: var(--r-pill); background: var(--block); border: 0.5px solid var(--line-soft); color: var(--ink); font: 400 13px/1 var(--body); transition: border-color var(--fast); }
.search::placeholder { color: var(--ink-3); }
.search:focus { outline: none; border-color: var(--gold-line); }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: var(--r-pill); background: var(--gold-grad); color: var(--on-gold); font: 600 13px/1 var(--body); white-space: nowrap; cursor: pointer; transition: filter var(--fast); }
.copy-btn:hover { filter: brightness(1.08); }
.copy-btn[disabled] { opacity: 0.45; cursor: default; filter: none; }

.batch { border-radius: var(--r-card); border: 0.5px solid var(--line); background: var(--box); overflow: hidden; }
.bhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 18px; border-bottom: 0.5px solid var(--line-soft); }
.bhead .counts { display: flex; flex-wrap: wrap; gap: 6px; }
.row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 150px 320px 20px; grid-template-areas: "thumb meta status stats box"; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 0.5px solid var(--line-soft); transition: background-color var(--fast); }
.row:last-child { border-bottom: 0; }
.row.picked { background: var(--gold-tint-2); }
.thumb { grid-area: thumb; width: 46px; height: 62px; border-radius: 8px; background: #0f1d3d center / cover no-repeat; border: 0.5px solid var(--line); }
.meta { grid-area: meta; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meta .name { font: 600 13.5px/1.3 var(--body); color: var(--ink); overflow-wrap: anywhere; }
.meta .sub { font: 400 12px/1.4 var(--body); color: var(--ink-3); }
.meta .sub a { color: var(--ink-3); transition: color var(--fast); }
.meta .sub a:hover { color: var(--gold); }
.status { grid-area: status; }
.stats-r { grid-area: stats; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mb { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: var(--r-pill); background: var(--block); border: 0.5px solid var(--line-soft); white-space: nowrap; }
.mb i { font: 500 10.5px/1 var(--body); font-style: normal; color: var(--ink-3); }
.mb b { font: 600 12px/1 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
.none { font: 400 12px/1.3 var(--body); color: var(--ink-3); }
.empty { padding: 28px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.selbar { position: sticky; bottom: 16px; z-index: 9; align-self: center; width: fit-content; max-width: 100%; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 10px 16px; padding: 6px 6px 6px 20px; border-radius: 999px; border: 0.5px solid var(--gold-line); background: rgba(10,20,40,0.85); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.selbar p { font: 500 13.5px/1.4 var(--body); color: var(--ink); }
.sel-btns { display: flex; gap: 8px; flex-wrap: wrap; }
#copyFallback { width: 100%; min-height: 140px; padding: 12px; border-radius: 12px; background: var(--box); border: 0.5px solid var(--line); color: var(--ink); font: 400 12.5px/1.5 ui-monospace, Menlo, monospace; }
.noaccess { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; max-width: 60ch; }
.noaccess p { font: 400 16.5px/1.6 var(--body); color: var(--ink-2); }

@keyframes aq-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.aq-ready .hero > *:not(h1), html.aq-ready .noaccess { animation: aq-reveal 1.2s var(--ease) both; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 46px minmax(0, 1fr) 20px; grid-template-areas: "thumb meta box" "thumb status status" "thumb stats stats"; gap: 6px 12px; align-items: start; }
  .stats-r { justify-content: flex-start; }
  .tools { margin-left: 0; }
}

/* space between the folder cards */
#list { display: flex; flex-direction: column; gap: 16px; }
.batch { scroll-margin-top: 96px; }

/* contents card on the right, same as Aquila Q4 Projects (board.css) */
.layout { display: block; }
.toc-col { display: none; }
@media (min-width: 1300px) {
  .layout { display: grid; grid-template-columns: minmax(16px, 1fr) minmax(0, 960px) minmax(296px, 1fr); }
  .layout > .wrap { grid-column: 2; width: 100%; max-width: none; margin: 0; }
  .toc-col { display: block; grid-column: 3; padding-left: 32px; min-width: 0; }
}
.toc { z-index: 9; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); margin-top: 28px; width: 256px; max-height: calc(100vh - 120px - env(safe-area-inset-top, 0px)); overflow-y: auto; scrollbar-width: none; display: grid; gap: 2px; padding: 16px 10px; background: linear-gradient(180deg, rgba(255,255,255,0.065) 0%, rgba(255,255,255,0.02) 100%), #050d1f; border: 0.5px solid var(--line); border-radius: var(--r-block); box-shadow: 0 18px 48px rgba(0,0,0,0.35); }
.toc::-webkit-scrollbar { display: none; }
.toc:empty { display: none; }
.toc .t-label { padding: 0 10px 6px; }
.toc .ti { cursor: pointer; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 10px 7px 8px; font: 400 13px/1.3 var(--body); color: var(--ink-3); transition: background-color 0.15s, color 0.15s; }
.toc .ti .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc .ti:hover { background: var(--block); color: var(--ink); }
.toc .ti .arr { opacity: 0; transform: translateX(-3px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); color: var(--gold); }
.toc .ti .c { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.toc .ti.on { background: var(--pill); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 0.5px var(--pill-line); }
.toc .ti.on .c { color: var(--ink-2); }
.toc .ti.on .arr { opacity: 1; transform: none; }
.toc .ttop { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; padding: 11px 14px; border-radius: 50px; border: 0.5px solid var(--pill-line); background: var(--pill); color: var(--ink); font: 500 13px/1 var(--body); transition: background-color 0.15s; }
.toc .ttop:hover { background: rgba(255,255,255,0.16); }

/* selection bar: as wide as its content, fully rounded; wraps on a phone */
.selbar p { white-space: nowrap; }
.sel-btns { flex-wrap: nowrap; }
@media (max-width: 560px) { .selbar { flex-wrap: wrap; border-radius: 24px; padding: 10px 10px 10px 18px; } }

/* ranked list of tested ads */
.rank { display: inline-block; min-width: 26px; margin-right: 6px; color: var(--gold); font-variant-numeric: tabular-nums; }
a.thumb { display: block; cursor: pointer; transition: border-color var(--fast); }
a.thumb:hover { border-color: var(--gold-line); }
#sortSeg[hidden] { display: none; }

/* tick box, same as Aquila Q4 Projects (board.css .dchk / .dbox-v): the tick draws in with the Aquila curve, the fill answers at once */
.box { grid-area: box; }
.dchk { flex: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; background: none; border: 0; border-radius: 7px; }
.dbox-v { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.34); background: rgba(255,255,255,0.03); color: var(--on-gold); transition: background-color 0.15s, border-color 0.15s; }
.dbox-v .tick { stroke-dasharray: 11; stroke-dashoffset: 11; transition: stroke-dashoffset 1.2s var(--ease); }
.dchk:hover .dbox-v { border-color: var(--gold-line); }
.dchk[aria-checked="true"] .dbox-v { background-color: var(--gold); border-color: var(--gold); }
.dchk[aria-checked="true"] .dbox-v .tick { stroke-dashoffset: 0; }
.dchk:focus-visible { outline: none; }
.dchk:focus-visible .dbox-v { outline: 1.5px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dbox-v .tick { transition: none; } }
