:root {
  --ink: #112923;
  --ink-soft: #36544c;
  --paper: #f4f1e8;
  --paper-bright: #fbfaf5;
  --line: rgba(17, 41, 35, 0.18);
  --line-strong: rgba(17, 41, 35, 0.42);
  --lime: #d9f66f;
  --lime-deep: #a9cc2f;
  --teal: #216b65;
  --amber: #f0ba52;
  --coral: #e76f51;
  --red-soft: #f8d9d0;
  --shadow: 0 18px 55px rgba(17, 41, 35, 0.08);
  --display: "Unbounded", sans-serif;
  --body: "Onest", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -4%, rgba(217, 246, 111, 0.22), transparent 30rem),
    linear-gradient(180deg, #f8f6ef 0, var(--paper) 42%, #eeeade 100%);
  font-family: var(--body);
  min-width: 320px;
}

a {
  color: inherit;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.topbar {
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: rgba(16, 38, 34, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy b {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.freshness-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.freshness-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(240, 186, 82, 0.1);
}

.freshness-pill.is-ready i {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 246, 111, 0.1);
}

.freshness-pill.is-error i {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(231, 111, 81, 0.1);
}

.detail-link,
.inline-link {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.detail-link {
  color: #fff;
  font-size: 12px;
}

.detail-link-primary {
  padding: 8px 11px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

main {
  width: min(1440px, calc(100% - clamp(28px, 7vw, 112px)));
  margin: 0 auto;
}

.intro {
  min-height: 330px;
  padding: clamp(64px, 9vw, 118px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  align-items: end;
  gap: clamp(36px, 7vw, 100px);
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(39px, 5.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro h1 span {
  color: var(--teal);
}

.intro-note {
  max-width: 430px;
  margin: 0 0 6px;
  padding-left: 22px;
  border-left: 3px solid var(--coral);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.signal {
  min-height: 194px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(251, 250, 245, 0.72);
  border-right: 1px solid var(--line-strong);
}

.signal-primary {
  background: var(--lime);
}

.signal-alert {
  background: var(--red-soft);
}

.signal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.signal strong {
  margin: 28px 0 12px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.signal p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.status-tag,
.period-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-live {
  color: #294410;
  background: rgba(169, 204, 47, 0.24);
}

.signal-primary .status-live {
  background: rgba(17, 41, 35, 0.1);
}

.status-partial {
  color: #6b4700;
  background: rgba(240, 186, 82, 0.24);
}

.status-gap {
  color: #7c2e1c;
  background: rgba(231, 111, 81, 0.18);
}

.period-chip {
  color: var(--ink-soft);
  background: rgba(17, 41, 35, 0.07);
}

.decision-ribbon {
  margin-top: 34px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(217, 246, 111, 0.09), transparent 42%),
    var(--ink);
  box-shadow: var(--shadow);
}

.decision-code {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.decision-ribbon .eyebrow {
  color: var(--lime);
  margin-bottom: 8px;
}

.decision-ribbon h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.1;
}

.decision-ribbon p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

.decision-facts {
  min-width: 180px;
  display: grid;
  gap: 8px;
}

.decision-facts span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.decision-facts b {
  color: #fff;
  font-family: var(--display);
  font-size: 19px;
}

.dashboard-section {
  padding: 94px 0 0;
}

.section-head {
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(260px, 0.46fr);
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.section-number {
  color: var(--teal);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.section-head h2,
.next-actions h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-answer {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.section-grid {
  display: grid;
  gap: 18px;
}

.target-grid,
.creative-grid,
.offline-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
}

.ugc-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
}

.panel {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(251, 250, 245, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(17, 41, 35, 0.035);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.panel-kicker {
  margin-bottom: 8px;
}

.panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.muted {
  color: var(--ink-soft);
  font-size: 11px;
}

.panel-footnote,
.drawer-note {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.panel-footnote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.channel-table {
  display: grid;
}

.channel-row {
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(170px, 1.2fr) repeat(3, minmax(82px, 0.55fr));
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.channel-row:last-child {
  border-bottom: 1px solid var(--line);
}

.channel-name {
  display: grid;
  gap: 4px;
}

.channel-name b {
  font-family: var(--display);
  font-size: 13px;
}

.channel-name small {
  color: var(--ink-soft);
  font-size: 10px;
}

.cpi-bar-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.cpi-track {
  height: 9px;
  background: rgba(17, 41, 35, 0.09);
  overflow: hidden;
}

.cpi-fill {
  height: 100%;
  min-width: 2px;
  background: var(--teal);
  transform-origin: left;
  animation: bar-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.channel-row.is-stale .cpi-fill {
  background: var(--amber);
}

.cpi-bar-wrap strong {
  min-width: 48px;
  font-family: var(--display);
  font-size: 13px;
  text-align: right;
}

.channel-stat {
  display: grid;
  gap: 4px;
}

.channel-stat span {
  color: var(--ink-soft);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.channel-stat b {
  font-size: 13px;
}

.snapshot-note {
  margin-top: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 18px;
  background: rgba(240, 186, 82, 0.13);
  border-left: 3px solid var(--amber);
  font-size: 11px;
}

.snapshot-note.source-note {
  background: rgba(76, 183, 178, 0.11);
  border-left-color: var(--teal);
}

.snapshot-note div {
  display: grid;
  gap: 3px;
}

.snapshot-note div > span,
.snapshot-note strong {
  font-weight: 700;
}

.snapshot-note small,
.snapshot-note > span {
  color: var(--ink-soft);
}

.cpa-core {
  padding: 16px 0 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.cpa-core strong {
  font-family: var(--display);
  font-size: 54px;
}

.cpa-core p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.diagnostic-list {
  display: grid;
}

.diagnostic-row {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.diagnostic-row span {
  color: var(--ink-soft);
}

.diagnostic-row b {
  text-align: right;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inventory-card {
  min-height: 176px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-top: 3px solid var(--teal);
}

.inventory-card.is-stale {
  border-color: var(--amber);
}

.inventory-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inventory-card strong {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
}

.inventory-card p {
  margin: auto 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.decision-meter {
  display: grid;
  gap: 16px;
}

.meter-row {
  display: grid;
  grid-template-columns: minmax(116px, 0.75fr) 1fr 34px;
  gap: 12px;
  align-items: center;
}

.meter-row span {
  font-size: 11px;
  font-weight: 600;
}

.meter-track {
  height: 11px;
  background: rgba(17, 41, 35, 0.08);
}

.meter-fill {
  height: 100%;
  background: var(--teal);
  animation: bar-in 700ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.meter-row.is-good .meter-fill {
  background: var(--lime-deep);
}

.meter-row.is-warn .meter-fill {
  background: var(--amber);
}

.meter-row.is-gap .meter-fill {
  background: var(--coral);
}

.meter-row b {
  font-family: var(--display);
  font-size: 14px;
  text-align: right;
}

.production-panel {
  margin-top: 18px;
}

.production-summary {
  margin-bottom: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.production-summary span {
  padding: 12px 14px;
  background: var(--paper);
  font-size: 11px;
}

.production-summary b {
  font-family: var(--display);
}

.owner-kpi-table {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.owner-row {
  min-height: 76px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(170px, 1.25fr) repeat(2, minmax(90px, 0.55fr)) minmax(140px, 0.75fr);
  grid-template-areas: "name role plan actual status";
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.owner-name {
  grid-area: name;
  font-family: var(--display);
  font-size: 14px;
}

.owner-role {
  grid-area: role;
}

.owner-role,
.owner-metric small {
  color: var(--ink-soft);
  font-size: 10px;
}

.owner-note {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.owner-metric {
  display: grid;
  gap: 4px;
}

.owner-plan {
  grid-area: plan;
}

.owner-actual {
  grid-area: actual;
}

.owner-metric strong {
  font-size: 14px;
}

.owner-status {
  grid-area: status;
  justify-self: start;
}

.offline-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.mini-kpi {
  min-height: 138px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(251, 250, 245, 0.78);
  border-right: 1px solid var(--line-strong);
}

.mini-kpi span {
  color: var(--ink-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-kpi strong {
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
}

.mini-kpi small {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 10px;
}

.pace-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 30px;
  align-items: stretch;
}

.pace-target,
.pace-actual {
  display: grid;
  align-content: center;
  min-height: 150px;
}

.pace-target span,
.pace-actual span {
  color: var(--ink-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pace-target strong,
.pace-actual strong {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 43px);
}

.pace-target small,
.pace-actual small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.pace-divider {
  background: var(--line);
}

.trust-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
}

.trust-list .is-warn::before {
  background: var(--amber);
}

.trust-list .is-gap::before {
  background: var(--coral);
}

.detail-drawer {
  margin-top: 18px;
  background: rgba(251, 250, 245, 0.82);
  border: 1px solid var(--line);
}

.detail-drawer summary {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.detail-drawer summary::-webkit-details-marker {
  display: none;
}

.drawer-action {
  color: var(--teal);
  font-weight: 600;
}

.drawer-when-open {
  display: none;
}

.detail-drawer[open] .drawer-when-closed {
  display: none;
}

.detail-drawer[open] .drawer-when-open {
  display: inline;
}

.detail-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.responsive-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td:nth-child(n + 3):not(:nth-child(2)) {
  font-variant-numeric: tabular-nums;
}

.data-table a {
  color: var(--teal);
  font-weight: 600;
}

.creative-explorer-panel {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
}

.creative-explorer-head {
  align-items: center;
}

.founder-creative-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(17, 41, 35, 0.045);
  border: 1px solid var(--line);
}

.founder-control {
  display: grid;
  gap: 8px;
}

.founder-control > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-control input,
.founder-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font: inherit;
  font-size: 12px;
}

.founder-control select {
  cursor: pointer;
}

.founder-control input:focus-visible,
.founder-control select:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(33, 107, 101, 0.2);
  outline-offset: 2px;
}

.founder-platform-filters {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.founder-platform-filters button {
  appearance: none;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.founder-platform-filters button:hover,
.founder-platform-filters button:focus-visible,
.founder-platform-filters button.is-active {
  color: var(--paper-bright);
  background: var(--ink);
}

.founder-platform-filters button:focus-visible {
  outline: 3px solid rgba(33, 107, 101, 0.22);
  outline-offset: 2px;
}

.founder-creative-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  color: var(--ink-soft);
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  font-size: 11px;
}

.founder-creative-caption strong {
  color: var(--ink);
  white-space: nowrap;
}

.founder-creative-table-wrap {
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
}

.founder-creative-table {
  min-width: 1120px;
}

.founder-creative-table th {
  color: var(--paper-bright);
  background: var(--ink);
}

.founder-creative-table td:nth-child(2) {
  min-width: 260px;
  font-weight: 600;
}

.founder-creative-table tbody tr {
  transition: background 140ms ease;
}

.founder-creative-table tbody tr:hover {
  background: rgba(217, 246, 111, 0.14);
}

.creative-cabinet-link,
.creative-action-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  color: var(--paper-bright) !important;
  background: var(--teal);
  border: 1px solid var(--teal);
  text-decoration: none;
  white-space: nowrap;
}

.creative-cabinet-link:hover,
.creative-action-link:hover {
  color: var(--ink) !important;
  background: var(--lime);
  border-color: var(--ink);
}

.creative-cabinet-link:focus-visible,
.creative-action-link:focus-visible {
  outline: 3px solid rgba(240, 186, 82, 0.5);
  outline-offset: 2px;
}

.creative-link-unavailable {
  color: var(--ink-soft);
  font-size: 10px;
}

.creative-explorer-note {
  margin-top: 18px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.drawer-note {
  margin: 0;
  padding: 16px 20px 20px;
}

.ugc-funnel {
  display: grid;
  gap: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 144px 1fr 54px;
  gap: 14px;
  align-items: center;
}

.funnel-row span {
  font-size: 11px;
}

.funnel-track {
  height: 28px;
  background: rgba(17, 41, 35, 0.07);
  overflow: hidden;
}

.funnel-fill {
  height: 100%;
  background:
    linear-gradient(90deg, rgba(217, 246, 111, 0.4), transparent),
    var(--teal);
  animation: bar-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.funnel-row b {
  font-family: var(--display);
  font-size: 14px;
  text-align: right;
}

.ugc-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ugc-outcome {
  min-height: 102px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper-bright);
}

.ugc-outcome span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ugc-outcome strong {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 22px;
}

.attribution-gap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(231, 111, 81, 0.18), transparent 45%),
    var(--ink);
}

.attribution-gap .panel-kicker {
  color: var(--lime);
}

.attribution-gap p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.gap-metrics {
  display: flex;
  gap: 26px;
}

.gap-metrics span {
  min-width: 74px;
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.gap-metrics b {
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
}

.next-actions {
  margin: 110px 0 0;
  padding: 52px 0 70px;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 100px);
  border-top: 1px solid var(--line-strong);
}

.next-actions ol {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.next-actions li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.next-actions li > span {
  color: var(--teal);
  font-family: var(--display);
  font-size: 13px;
}

.next-actions b {
  font-family: var(--display);
  font-size: 15px;
}

.next-actions p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

footer {
  padding: 30px clamp(18px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: var(--ink);
}

footer b {
  font-family: var(--display);
  font-size: 12px;
}

footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  text-underline-offset: 4px;
}

.loading-error {
  padding: 14px;
  color: #7c2e1c;
  background: var(--red-soft);
  font-size: 12px;
}

@keyframes bar-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1120px) {
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-ribbon {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .decision-facts {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-grid,
  .creative-grid,
  .offline-grid,
  .ugc-grid {
    grid-template-columns: 1fr;
  }

  .founder-creative-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-sort-control {
    grid-column: 1 / -1;
  }

  .attribution-gap {
    grid-column: auto;
  }

  .offline-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-kpi:nth-child(4),
  .mini-kpi:nth-child(5) {
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 820px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
    gap: 10px 24px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .freshness-pill {
    display: inline-flex;
  }

  .intro {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro-note {
    max-width: 620px;
  }

  .section-head {
    grid-template-columns: 44px 1fr;
  }

  .section-answer {
    grid-column: 2;
  }

  .channel-row {
    grid-template-columns: 92px repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }

  .cpi-bar-wrap {
    grid-column: 2 / -1;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .founder-creative-toolbar {
    grid-template-columns: 1fr;
  }

  .founder-sort-control {
    grid-column: auto;
  }

  .founder-creative-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .inventory-card {
    min-height: 142px;
  }

  .owner-row {
    grid-template-columns: 90px minmax(0, 1fr) 60px 90px auto;
    grid-template-areas: "name role plan actual status";
  }

  .offline-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attribution-gap,
  .next-actions {
    grid-template-columns: 1fr;
  }

  .gap-metrics {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .detail-link {
    max-width: none;
    text-align: left;
  }

  main {
    width: min(100% - 28px, 1440px);
  }

  .intro {
    padding-top: 52px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal {
    min-height: 160px;
  }

  .decision-ribbon {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .decision-code {
    width: 64px;
    height: 64px;
    font-size: 14px;
  }

  .decision-facts {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-section {
    padding-top: 72px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-answer {
    grid-column: auto;
  }

  .panel {
    padding: 22px 18px;
  }

  .panel-head {
    flex-direction: column;
  }

  .channel-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-name,
  .cpi-bar-wrap {
    grid-column: 1 / -1;
  }

  .snapshot-note {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .owner-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name status"
      "role role"
      "plan actual";
    gap: 8px 12px;
  }

  .owner-plan,
  .owner-actual {
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: start;
    gap: 8px;
  }

  .pace-card {
    grid-template-columns: 1fr;
  }

  .pace-divider {
    width: 100%;
    height: 1px;
  }

  .offline-kpis {
    grid-template-columns: 1fr;
  }

  .mini-kpi:nth-child(n) {
    border-top: 0;
  }

  .funnel-row {
    grid-template-columns: 112px 1fr 38px;
  }

  .ugc-outcomes {
    grid-template-columns: 1fr;
  }

  .detail-drawer summary {
    flex-direction: column;
    gap: 6px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
