:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #66736c;
  --line: #d9e0dc;
  --surface: #f7f8f5;
  --panel: #ffffff;
  --green: #1f8a5b;
  --green-soft: #e7f4ed;
  --amber: #a46812;
  --amber-soft: #fff1d7;
  --red: #b13d3a;
  --red-soft: #fde8e6;
  --blue: #276fbf;
  --blue-soft: #e6f0fb;
  --shadow: 0 1px 2px rgba(23, 32, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 10;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  font-size: 15px;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-filter {
  display: inline-grid;
  grid-template-columns: repeat(2, 136px);
  gap: 8px;
  align-items: end;
}

.date-filter label {
  display: grid;
  gap: 4px;
}

.date-filter span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-filter input {
  height: 36px;
  font-size: 12px;
}

.quick-ranges {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  height: 36px;
  align-self: end;
}

.quick-ranges button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.quick-ranges button:last-child {
  border-right: 0;
}

.quick-ranges button:hover,
.quick-ranges button.active {
  background: var(--ink);
  color: #fff;
}

.view-nav {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  height: 36px;
}

.view-nav button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.view-nav button:last-child {
  border-right: 0;
}

.view-nav button.active {
  background: var(--ink);
  color: #ffffff;
}

.updated {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  cursor: pointer;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(220px, 320px) 180px;
  gap: 10px;
  padding: 14px 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.search span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 11px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  height: 38px;
}

.segmented button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 0 12px;
  min-width: 76px;
  cursor: pointer;
  color: var(--muted);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.overview {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.15fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
}

.overview-hero h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.overview-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 660px;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.overview-metrics div {
  background: #fbfcfa;
  padding: 12px;
}

.overview-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.overview-metrics strong {
  font-size: 22px;
  line-height: 1;
}

.audience-section {
  display: grid;
  gap: 12px;
}

.audience-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.audience-head h2 {
  font-size: 18px;
}

.audience-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.audience-kpis {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-end;
}

.daily-budget {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 12px;
  text-align: right;
}

.daily-budget span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.daily-budget strong {
  font-size: 18px;
  line-height: 1.1;
}

.period-summary {
  min-width: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.period-summary > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.period-summary div {
  min-width: 0;
}

.period-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
}

.period-summary strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}

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

.decision-lane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.decision-lane.winning {
  border-top: 4px solid var(--green);
}

.decision-lane.losing {
  border-top: 4px solid var(--red);
}

.decision-lane.watching {
  border-top: 4px solid var(--amber);
}

.decision-lane.testing {
  border-top: 4px solid var(--blue);
}

.decision-lane.paused {
  border-top: 4px solid #7b8580;
  background: #f1f3f2;
}

.decision-lane.paused .mini-grid {
  max-height: 980px;
  overflow-y: auto;
}

.lane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.lane-head h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
}

.lane-head p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.lane-head strong {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  padding: 10px;
}

.mini-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfa;
}

.mini-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0f1412;
  overflow: hidden;
}

.mini-media video,
.mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-media .no-media {
  height: 100%;
  display: grid;
  place-items: center;
  color: #dbe3df;
  font-size: 12px;
}

.mini-body {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.mini-body strong {
  font-size: 12px;
  line-height: 1.25;
}

.mini-body > span,
.mini-body p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.mini-stats div {
  min-width: 0;
  background: var(--panel);
  padding: 6px;
}

.mini-stats small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 2px;
}

.mini-stats b {
  font-size: 11px;
  line-height: 1.1;
}

.empty-lane {
  color: var(--muted);
  background: #fbfcfa;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  font-size: 12px;
  text-align: center;
}

.metric {
  background: var(--panel);
  padding: 14px 18px;
  min-height: 78px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.metric strong {
  font-size: 22px;
  line-height: 1.1;
}

.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 190px);
}

.campaigns {
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.panel-title,
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title span,
.board-head p {
  color: var(--muted);
  font-size: 12px;
}

.campaign-list {
  display: grid;
  gap: 8px;
}

.campaign-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.campaign-row.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.campaign-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.campaign-row span {
  color: var(--muted);
  font-size: 12px;
}

.board {
  min-width: 0;
  padding: 18px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.dot.good {
  background: var(--green);
}

.dot.warn {
  background: var(--amber);
}

.dot.bad {
  background: var(--red);
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.ad-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.media {
  aspect-ratio: 9 / 10;
  background: #0f1412;
  position: relative;
  overflow: hidden;
}

.media video,
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-unavailable {
  display: grid;
  place-items: center;
  padding: 22px;
}

.media-unavailable::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 18, 0.52), rgba(15, 20, 18, 0.88));
  z-index: 1;
}

.media-unavailable .media-thumb {
  width: min(62%, 210px);
  height: auto;
  max-height: 58%;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.82;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.media-overlay {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: #ffffff;
}

.media-overlay strong {
  font-size: 14px;
  line-height: 1.2;
}

.media-overlay span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.3;
}

.media-overlay a {
  justify-self: start;
  color: #0f1412;
  background: #ffffff;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.media .no-media {
  height: 100%;
  display: grid;
  place-items: center;
  color: #dbe3df;
  padding: 18px;
  text-align: center;
  font-size: 13px;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
}

.badge.good {
  color: var(--green);
}

.badge.warn {
  color: var(--amber);
}

.badge.bad {
  color: var(--red);
}

.badge.neutral,
.badge.idle {
  color: var(--muted);
}

.ad-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ad-title {
  display: grid;
  gap: 4px;
}

.ad-title strong {
  font-size: 14px;
  line-height: 1.25;
}

.ad-title em {
  justify-self: start;
  border: 1px solid var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ad-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stat {
  background: #fbfcfa;
  padding: 8px;
  min-width: 0;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 3px;
}

.stat strong {
  font-size: 13px;
}

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

.delta.up.bad,
.delta.down.bad {
  color: var(--red);
}

.delta.up.good,
.delta.down.good {
  color: var(--green);
}

.reason {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-height: 32px;
}

.links {
  display: flex;
  gap: 8px;
}

.links a {
  text-decoration: none;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}

.mini-card[data-trend-ad-id],
.ad-card[data-trend-ad-id] {
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mini-card[data-trend-ad-id]:hover,
.mini-card[data-trend-ad-id]:focus-visible,
.ad-card[data-trend-ad-id]:hover,
.ad-card[data-trend-ad-id]:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 90, 165, .12);
  outline: none;
  transform: translateY(-1px);
}

.trend-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.trend-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.trend-head h2 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.trend-head p:not(.eyebrow),
.trend-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.trend-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f6;
}

.trend-controls span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-controls button,
.trend-breadcrumb button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.trend-controls button.active {
  background: var(--ink);
  color: #fff;
}

.trend-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f8f6;
}

.trend-mode-tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.trend-mode-tabs button:hover,
.trend-mode-tabs button:focus-visible {
  color: var(--ink);
  outline: 2px solid rgba(36, 90, 165, .2);
  outline-offset: -2px;
}

.trend-mode-tabs button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 33, 26, .18);
}

.trend-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 12px 0 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.trend-breadcrumb button {
  padding: 0 8px;
  color: var(--blue);
}

.trend-line-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0;
  padding: 7px 8px 7px 10px;
  border: 1px solid #b9d7ca;
  border-radius: 999px;
  background: #eff8f4;
  color: var(--ink);
  font-size: 11px;
}

.trend-line-filter span {
  color: var(--muted);
  white-space: nowrap;
}

.trend-line-filter b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-line-filter button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #176b50;
  color: #fff;
  font-weight: 800;
}

.trend-chart {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfa, #f6f8f6);
}

.trend-svg {
  display: block;
  width: 100%;
  min-width: 700px;
  height: auto;
  color: var(--muted);
  font: 11px system-ui, sans-serif;
}

.trend-svg circle {
  stroke: #fff;
  stroke-width: 2px;
}

.trend-line-hit {
  stroke: transparent;
  stroke-width: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: stroke;
}

.trend-line-group.is-clickable:hover .trend-line-visible,
.trend-line-group.is-clickable:focus-within .trend-line-visible {
  stroke-width: 6px;
}

.trend-line-hit:focus-visible {
  stroke: rgba(36, 90, 165, .12);
  outline: none;
}

.trend-point-isolatable {
  cursor: pointer;
}

.trend-svg circle:hover,
.trend-svg circle:focus {
  r: 7px;
  outline: none;
}

.trend-gridline {
  stroke: #dfe5e1;
  stroke-width: 1px;
}

.trend-svg .axis-title {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.trend-svg .axis-marcas {
  fill: #176b50;
  font-weight: 800;
}

.trend-svg .axis-creators {
  fill: #245aa5;
  font-weight: 800;
}

.trend-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.trend-series {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.trend-series:hover,
.trend-series:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.trend-series.is-terminal {
  cursor: default;
}

.trend-series.is-terminal:hover {
  border-color: var(--line);
}

.trend-series i {
  flex: 0 0 auto;
  width: 10px;
  height: 32px;
  border-radius: 999px;
  background: var(--series);
}

.trend-series span,
.trend-series b,
.trend-series small {
  display: block;
  min-width: 0;
}

.trend-series b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.trend-series small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.trend-note {
  margin: 10px 0 0;
}

.trend-notice {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #fff8e8;
  color: #7a5700;
  font-size: 11px;
  font-weight: 700;
}

.trend-loading,
.trend-error,
.trend-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.trend-error {
  color: var(--red);
  background: #fff7f7;
  border-radius: 8px;
}

@media (max-width: 1120px) {
  .filters {
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }

  .filters select {
    grid-column: span 1;
  }

  .summary {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .overview-hero,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .overview-metrics {
    grid-template-columns: repeat(7, minmax(78px, 1fr));
  }
}

.creative-details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.creative-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

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

.creative-details summary b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}

.creative-details[open] summary b {
  transform: rotate(45deg);
}

.creative-details-content {
  display: grid;
  gap: 10px;
  padding: 10px 0 4px;
}

.creative-details-content section {
  display: grid;
  gap: 4px;
}

.creative-details-content small,
.creative-details-meta small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creative-details-content section p {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}

.creative-copy {
  white-space: pre-line;
}

.creative-details-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}

.creative-details-meta div {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.creative-details-meta strong {
  font-size: 10px;
  line-height: 1.25;
  text-transform: capitalize;
}

.creative-details-note {
  color: var(--muted) !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
}

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

  .top-actions {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .date-filter {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-ranges {
    width: 100%;
    grid-auto-columns: 1fr;
  }

  .view-nav {
    width: 100%;
    grid-auto-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }

  .segmented {
    width: 100%;
    grid-auto-columns: 1fr;
  }

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

  .campaigns {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .campaign-list {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .overview {
    padding: 12px;
  }

  .trend-panel {
    padding: 12px;
  }

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

  .trend-controls {
    width: 100%;
  }

  .trend-controls button {
    flex: 1;
    min-height: 44px;
  }

  .trend-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-mode-tabs button {
    min-height: 44px;
  }

  .trend-series {
    min-height: 58px;
  }

  .overview-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .audience-head {
    align-items: stretch;
    flex-direction: column;
  }

  .audience-kpis {
    flex-direction: column;
    width: 100%;
  }

  .daily-budget {
    width: 100%;
    text-align: left;
  }

  .period-summary {
    min-width: 0;
    width: 100%;
  }
}
