@font-face {
  font-family: Century Gothic;
  src: url("./century-gothic-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Century Gothic;
  src: url("./century-gothic-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --red: #ca0c39;
  --navy: #192637;
  --red-hover: #a90830;
  --muted: #536071;
  --line: #e1e5eb;
  --paper: #f5f6f8;
  --white: #fff;
  --tint: #fff1f4;
  --radius: 16px;
  --control-radius: 9px;
  --shadow: 0 2px 6px #19263706, 0 10px 24px #19263706;
  font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  background: var(--paper);
  color: var(--navy);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, .contact, .manager-list a, .customer-campaigns a {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.frame { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px #19263705; }
.header-content { display: flex; align-items: center; min-height: 82px; gap: 22px; }
.brand { display: block; align-self: flex-start; flex: none; }
.brand img { display: block; width: 61px; height: auto; border-radius: 0 0 5px 5px; }
.header-title { font-weight: 700; font-size: 15px; letter-spacing: -.015em; }
.contact {
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.contact span, .report-footer a span { margin-left: 4px; color: var(--red); font-family: system-ui, sans-serif; }
.contact:hover { border-color: #efb6c4; color: var(--red-hover); background: var(--tint); }
.report { padding: 30px 0 28px; }
.report > .panel:only-child { max-width: 700px; margin: 24px auto 0; }
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 21px;
  padding: clamp(18px, 3.2vw, 36px);
  border: 1px solid #ecdee4;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 100% 0%, #fae4eb, transparent 56%), linear-gradient(110deg, #fff 42%, #fdf2f5);
  box-shadow: var(--shadow);
}
.channel { margin-bottom: 6px; color: var(--red); font-weight: 700; font-size: 14px; }
h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.048em; line-height: 1.17; overflow-wrap: anywhere; }
.customer { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 9px; overflow-wrap: anywhere; }
.customer:empty { margin: 0; }
.campaign-context {
  max-width: min(100%, 340px);
  padding: 9px 13px;
  border: 1px solid #ead8df;
  border-radius: var(--control-radius);
  background: #ffffffb8;
  overflow-wrap: anywhere;
}
#campaignTitle { font-weight: 700; font-size: 15px; }
.context-meta { margin-top: 3px; color: var(--muted); font-size: 13px; }
.toolbar, .period-control, .report-actions { display: flex; align-items: center; }
.toolbar { justify-content: space-between; gap: 14px; margin-bottom: 17px; padding: 0; }
.period-control, .report-actions { gap: 10px; }
.periods { display: flex; padding: 3px; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--control-radius); box-shadow: var(--shadow); }
.periods button { color: var(--navy); background: transparent; border: 0; border-radius: 6px; padding: 8px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.periods button:hover { background: var(--tint); }
.periods button[aria-pressed="true"], .export { background: var(--red); color: var(--white); box-shadow: 0 2px 5px #ca0c3924; }
.date-range { font-size: 13px; color: var(--muted); }
.demo-label { border-radius: 999px; background: #e9edf3; padding: 4px 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.refresh, .export { min-height: 41px; border-radius: var(--control-radius); }
.export { padding: 7px 12px; border: 1px solid var(--red); font-size: 13px; font-weight: 700; }
.export span { margin-left: 5px; }
.export:hover:not(:disabled) { background: var(--red-hover); }
.refresh { width: 41px; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-size: 21px; line-height: 1; }
.refresh:hover { color: var(--red-hover); border-color: #efb6c4; background: var(--tint); }
.metrics, .detail-grid { display: grid; gap: 16px; margin-bottom: 18px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric { min-width: 0; padding: 18px 20px; }
.metric h2 { font-size: 14px; line-height: 1.35; }
.metric-value { font-size: clamp(23px, 3.2vw, 40px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.12; margin: 8px 0 10px; overflow-wrap: anywhere; }
.metric-note { color: var(--muted); font-size: 12px; }
.primary-metric { background: linear-gradient(135deg, #fff8fa, #fdeaf0); border-color: #efced8; }
.primary-metric .metric-value { color: var(--red); }
.detail-grid { grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); }
.panel { min-width: 0; padding: 20px; }
.panel h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.chart-unit { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chart { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: 174px auto; gap: 7px 8px; padding-top: 6px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; text-align: right; margin-block: -7px; }
.chart-scale, .chart-dates { color: var(--muted); font-size: 11px; line-height: 14px; }
.chart-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(1px, .22vw, 4px);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
}
.chart-bar { width: 100%; max-width: 36px; justify-self: center; background: linear-gradient(to top, #bd0d38, #e65477); border-radius: 4px 4px 0 0; }
.chart-bar:hover { background: var(--red-hover); }
.chart-dates { grid-column: 2; display: flex; justify-content: space-between; }
.secondary dl { margin-top: 7px; }
.secondary dl div { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.secondary dl div:last-child { border: 0; }
.secondary dt { color: var(--muted); font-size: 13px; }
.secondary dd { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; white-space: nowrap; }
.campaigns h2 { margin-bottom: 9px; }
.table-scroll { overflow-x: auto; border-radius: var(--control-radius); }
table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
th, td { text-align: right; padding: 10px 12px; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); background: #f4f6f9; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }
.report-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 12px; color: var(--muted); }
.report-footer a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.report-footer a:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .frame { width: calc(100% - 40px); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .frame { width: calc(100% - 28px); }
  .header-content { min-height: 66px; gap: 12px; }
  .brand img { width: 48px; }
  .report { padding-top: 24px; }
  .intro { display: grid; gap: 13px; margin-bottom: 18px; }
  .toolbar, .period-control { flex-wrap: wrap; gap: 8px; }
  .period-control { width: 100%; }
  .date-range { font-size: 11px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics, .detail-grid { gap: 10px; }
  .metric, .panel { padding: 14px; }
  .metric h2 { font-size: 13px; }
  .metric-note { font-size: 11px; }
  .chart { grid-template-rows: 126px auto; }
}
.report-message { margin: 0 0 16px; padding: 10px 14px; border-left: 2px solid var(--red); border-radius: var(--control-radius); background: var(--white); }
.export:disabled { opacity: .6; cursor: default; }
.panel .export[href] { display: inline-block; text-decoration: none; margin-top: 16px; }
[hidden] { display: none !important; }
.report-back { display: inline-block; margin-bottom: 18px; color: var(--red); font-size: 13px; font-weight: 700; }
.manager-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; align-items: start; }
.manager-heading, .campaign-filters, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.manager-heading { margin-bottom: 12px; }
.manager-heading h2 { font-size: 20px; }
.reporting-admin input:not([type=checkbox]), .reporting-admin textarea {
  width: 100%; min-width: 0; background: #f9fafb; border: 1px solid #cdd1d8; border-radius: var(--control-radius);
  padding: 10px; color: var(--navy); font: inherit; font-size: 14px;
}
.campaign-filters { margin-bottom: 8px; }
.campaign-filters label { white-space: nowrap; font-size: 13px; }
.reporting-admin input[type=checkbox] { accent-color: var(--red); }
.manager-list, .customer-campaigns { list-style: none; margin: 0; padding: 0; }
.manager-list li, .customer-campaigns li { border-top: 1px solid var(--line); }
.manager-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 10px; }
.manager-list a, .customer-campaigns a { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.manager-list a:hover, .customer-campaigns a:hover { color: var(--red); }
.manager-status { color: var(--muted); background: #eff2f6; border-radius: 999px; padding: 4px 8px; font-size: 11px; }
.manager-status.active { background: #e5f4ec; color: #236947; }
.customer-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.customer-actions button, .form-actions button.contact { font-size: 12px; white-space: nowrap; padding: 7px 9px; margin: 0; }
#customerForm { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
#customerForm > label, #customerForm legend { font-size: 13px; font-weight: 700; }
#customerForm fieldset { border: 1px solid var(--line); border-radius: var(--control-radius); min-width: 0; }
.assignment-list { max-height: 230px; overflow-y: auto; padding-block: 8px; }
.assignment-list label { display: flex; gap: 7px; align-items: start; padding-block: 4px; font-size: 13px; }
.form-actions { justify-content: start; }
.customer-campaigns li { margin-top: 9px; }
.customer-campaigns a { display: block; padding: 13px 10px; border-radius: var(--control-radius); }
.customer-campaigns a:hover { background: var(--tint); }
#campaignMessage, #customerMessage { color: var(--muted); font-size: 13px; padding-block: 9px; }
#linkMessage { margin-top: 8px; overflow-wrap: anywhere; }
@media (max-width: 850px) { .manager-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 460px) {
  .manager-list li { flex-wrap: wrap; }
  .manager-heading { flex-wrap: wrap; }
  .metric-value { font-size: clamp(20px, 6vw, 26px); }
  .toolbar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .contact, .manager-list a, .customer-campaigns a { transition: none; }
}
