.intro-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; }
.demo-link, .faq-list a { color: #9acaff; text-underline-offset: 3px; }
.demo-link:hover, .faq-list a { text-decoration: underline; }
.overview-section { padding-block: clamp(32px,4vw,54px); border-top: 1px solid var(--line); }
.demo-section { border-top: 0; padding-bottom: 0; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem,2.1vw,2rem); font-weight: 600; line-height: 1.18; letter-spacing: -.032em; }
.section-heading p, .platform-intro { max-width: 64ch; margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.demo-window, .report-dates { min-inline-size: 0; padding: 0; margin: 0; }
.demo-window, .campaign-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #202327; }
.demo-bar, .card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-bar { padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo-switch { display: inline-flex; gap: 4px; padding: 3px; background: #181b1f; border: 1px solid var(--line); border-radius: 8px; }
.demo-switch label { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 5px 15px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: .9375rem; cursor: pointer; }
.demo-switch label:hover { color: var(--text); }
#report-facebook:checked ~ .demo-bar [for="report-facebook"],
#day-one:checked ~ .day-labels [for="day-one"],
#day-two:checked ~ .day-labels [for="day-two"],
#day-three:checked ~ .day-labels [for="day-three"] { color: #bbdcff; background: #22374b; border-color: #3f6188; }
#report-tiktok:checked ~ .demo-bar [for="report-tiktok"] { color: #b8eef0; background: #1c373a; border-color: #39676c; }
#report-facebook:focus-visible ~ .demo-bar [for="report-facebook"],
#report-tiktok:focus-visible ~ .demo-bar [for="report-tiktok"],
#day-one:focus-visible ~ .day-labels [for="day-one"],
#day-two:focus-visible ~ .day-labels [for="day-two"],
#day-three:focus-visible ~ .day-labels [for="day-three"],
.overview-section :is(summary,button,input:not(.sr-only)):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#report-facebook:checked ~ .tiktok-report, #report-tiktok:checked ~ .facebook-report { display: none; }
.demo-pane { padding: 20px 22px 22px; }
.demo-pane h3, .card-title h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.report-context, .report-dates legend { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.report-dates { border: 0; }
.report-dates legend { padding: 0; }
.day-labels { margin-top: 12px; }
.tt-table { width: 100%; margin-top: 14px; border-collapse: collapse; }
.tt-table tbody { display: none; }
#day-one:checked ~ .tt-table .day-one, #day-two:checked ~ .tt-table .day-two, #day-three:checked ~ .tt-table .day-three { display: table-row-group; }
.tt-table :is(td,th) { padding: 11px 9px; border-bottom: 1px solid #363c42; font-weight: 400; }
.tt-table th { text-align: left; }
.tt-table td, .tt-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-table th, .object-row { font-size: .9375rem; }
.tt-table thead th, .row-head { color: var(--muted); font-size: .875rem; }
.object-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(64px,16%) minmax(56px,15%); align-items: center; gap: 8px; padding: 11px 9px; border-bottom: 1px solid #363c42; line-height: 1.45; }
.row-head { margin-top: 14px; }
.object-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.object-row > span:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.object-row.row-head { font-size: .875rem; }
.campaign-tree summary, .group-tree summary, .faq-list summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.campaign-tree summary:hover, .faq-list summary:hover { background: #272c32; }
.object-title { display: flex; align-items: center; gap: 10px; }
.object-title::before { content: ""; width: 6px; height: 6px; flex: none; border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(-45deg); }
details[open] > .object-row .object-title::before { transform: rotate(45deg); }
.group-tree > summary { padding-left: 27px; }
.ad-row { padding-left: 49px; color: #bfccd8; background: #1d2024; }
.source-facts { margin: 15px 0 0; }
.source-facts > div { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 10px; padding-top: 12px; }
.source-facts > div + div { border-top: 1px solid var(--line); margin-top: 12px; }
.source-facts dt { color: #c6d9ec; font-size: .875rem; line-height: 1.65; font-weight: 600; }
.source-facts dd { margin: 0; color: var(--muted); line-height: 1.55; }
.controls-section, .faq-section { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.2fr); align-items: start; gap: clamp(26px,5vw,72px); }
.controls-section .section-heading, .faq-section .section-heading { margin: 0; }
.campaign-card { min-width: 0; padding: 22px; }
.campaign-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 23px 0 18px; }
.campaign-metrics dt { margin-bottom: 6px; color: var(--muted); font-size: .875rem; }
.campaign-metrics dd { margin: 0; font-size: 1.12rem; font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.example-status { display: inline-block; padding: 2px 8px; background: #1f3b31; color: #98e2bc; border-radius: 5px; font-size: .84rem; vertical-align: top; }
.example-status.paused { background: #413727; color: #f1c582; }
#example-schedule { margin: 0 0 16px; color: #edca91; font-size: .9rem; line-height: 1.5; }
.example-tools, .example-editor > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.campaign-card [hidden] { display: none; }
.campaign-card :is(input,button) { min-height: 39px; font: inherit; font-size: .9375rem; border: 1px solid #4c5560; border-radius: 7px; color: var(--text); background: #262b31; }
.campaign-card button { padding: 8px 14px; cursor: pointer; }
.campaign-card button:hover { border-color: #8596a9; }
.campaign-card .save { background: #176cc0; border-color: #3488e2; color: white; }
.example-editor { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid #414b56; border-radius: 8px; }
.example-editor label, #example-note, .campaign-card noscript p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.example-editor input { width: min(100%,22em); min-width: 0; padding: 6px 10px; background: #171b1f; }
#example-note, .campaign-card noscript p { margin-top: 14px; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 3px; font-weight: 550; line-height: 1.45; }
.faq-list summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list p { margin: 0 0 18px; padding-inline: 3px; color: var(--muted); line-height: 1.6; }
@media (max-width: 800px) {
  .controls-section, .faq-section { grid-template-columns: minmax(0,1fr); gap: 22px; }
}
@media (max-width: 520px) {
  .demo-bar { padding: 12px; }
  .demo-pane, .campaign-card { padding: 16px 12px; }
  .source-facts > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .object-row { grid-template-columns: minmax(0,1fr) 65px 55px; padding-inline: 3px; gap: 4px; font-size: .875rem; }
  .row-head > span:first-child { max-width: 13ch; }
  .group-tree > summary { padding-left: 12px; }
  .ad-row { padding-left: 22px; }
  .object-title { gap: 7px; }
  .campaign-metrics { gap: 7px; }
  .campaign-metrics dd { font-size: 1rem; }
  .tt-table :is(td,th) { padding: 10px 3px; font-size: .875rem; }
}
