:root {
  color-scheme: light;
  --ink-950: #16202b;
  --ink-800: #263149;
  --ink-700: #3d4960;
  --ink-600: #5f6b80;
  --ink-500: #778298;
  --canvas: #f4f6fa;
  --surface: #ffffff;
  --line: #d9e0ea;
  --line-soft: #e9edf3;
  --brand: #0b8ec4;
  --brand-bright: #3ec9f5;
  --primary: #0973a2;
  --primary-strong: #075d83;
  --primary-soft: #e4f4fb;
  --live: #087d75;
  --live-soft: #e5f5f2;
  --new: #6d4aff;
  --new-soft: #f0edff;
  --stopped: #a94e08;
  --stopped-soft: #fff1e3;
  --critical: #c83e4d;
  --critical-soft: #fff0f2;
  --focus: #1688e5;
  --sidebar-width: 280px;
  --radius-panel: 16px;
  --radius-control: 10px;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-interface: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink-950);
  font-family: var(--font-interface);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body:not([data-route-ready]) .route-view,
.route-view[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-950);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(16 22 41 / 18%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  flex-direction: column;
  background: var(--ink-950);
  color: #f8f9ff;
  padding: 30px 22px 20px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #aeb7cd;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover .brand-mark {
  opacity: 0.85;
}

.section-nav {
  margin-top: 42px;
}

.nav-groups {
  display: grid;
  gap: 24px;
}

.nav-group {
  min-width: 0;
}

.nav-label {
  margin: 0 12px 10px;
  color: #7f8aa3;
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-nav ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-nav a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  border-radius: var(--radius-control);
  color: #bac2d3;
  padding: 10px 12px 10px 16px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease;
}

.section-nav a:hover,
.section-nav a[aria-current] {
  background: #1c2540;
  color: #ffffff;
}

.section-nav a[aria-current]::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #3ec9f5;
  content: "";
}

.section-nav a:hover {
  transform: translateX(2px);
}

.section-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-nav svg.stroke-icon {
  fill: none;
}

.sidebar-health {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  border-top: 1px solid #2d3650;
  padding: 20px 10px 6px;
}

.sidebar-health > div {
  display: grid;
  line-height: 1.35;
}

.sidebar-health small {
  color: #8f99b0;
  font-size: 13px;
}

.sidebar-health strong {
  font-size: 14px;
  font-weight: 700;
}

.health-icon {
  position: relative;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid #3c4661;
  border-radius: 50%;
}

.health-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f8aa3;
  content: "";
  transform: translate(-50%, -50%);
}

.sidebar-health.online .health-icon::after {
  background: #55d4c5;
  box-shadow: 0 0 0 4px rgb(85 212 197 / 14%);
}

.sidebar-health.warning .health-icon::after {
  background: #f2aa64;
  box-shadow: 0 0 0 4px rgb(242 170 100 / 14%);
}

.sidebar-health.pending .health-icon::after {
  background: #3ec9f5;
  box-shadow: 0 0 0 4px rgb(148 161 255 / 14%);
}

.workspace {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
}

.utility-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  padding: 10px clamp(20px, 3vw, 48px);
  backdrop-filter: blur(14px);
}

.workspace-context {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-600);
  font-size: 15px;
}

.workspace-context span::after {
  margin-left: 9px;
  color: #b2bbc9;
  content: "/";
}

.workspace-context strong {
  color: var(--ink-800);
  font-weight: 700;
}

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

.user-session {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.user-session[hidden] {
  display: none;
}

.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink-950);
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.user-name {
  color: inherit;
  text-decoration: none;
}

a.user-name:hover {
  color: var(--primary);
}

.logout-button {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
}

.logout-button:hover {
  background: var(--critical-soft);
  color: var(--critical);
}

.logout-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-500);
  box-shadow: 0 0 0 4px rgb(119 130 152 / 12%);
}

.system-status.online .status-dot {
  background: var(--live);
  box-shadow: 0 0 0 4px rgb(8 125 117 / 12%);
}

.system-status.warning .status-dot {
  background: var(--stopped);
  box-shadow: 0 0 0 4px rgb(169 78 8 / 12%);
}

.system-status.pending .status-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgb(63 82 227 / 12%);
}

.refresh-button {
  display: inline-flex;
  min-height: 44px;
  min-width: 138px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(63 82 227 / 20%);
  transition: transform 180ms ease;
}

.refresh-button:hover:not(:disabled) {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(63 82 227 / 26%);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.refresh-icon,
.refresh-button svg {
  width: 17px;
  height: 17px;
}

.refresh-icon {
  display: inline-flex;
  flex: 0 0 17px;
}

.refresh-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.refresh-button.loading .refresh-icon {
  animation: spin 900ms linear infinite;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 52px clamp(28px, 4vw, 72px) 72px;
}

.overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  scroll-margin-top: 92px;
}

.overview-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--font-display);
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.overview-copy > p:last-child {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--ink-600);
  font-size: 17px;
}

.page-intro {
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 34px;
}

.page-intro > div {
  max-width: 900px;
}

.page-intro h1 {
  max-width: 900px;
}

.page-intro > div > p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-600);
  font-size: 18px;
  line-height: 1.65;
}

.page-index {
  flex: 0 0 auto;
  color: var(--ink-500);
  padding-bottom: 4px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scan-stamp {
  display: grid;
  min-width: 250px;
  justify-items: end;
  padding-bottom: 3px;
  text-align: right;
}

.scan-stamp span {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scan-stamp strong {
  margin: 5px 0 3px;
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 600;
}

.scan-stamp small {
  color: var(--ink-500);
  font-size: 13px;
}

.attention-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 24px 26px;
}

.attention-summary {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.attention-kicker,
.rail-heading span {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attention-summary > strong {
  display: block;
  margin: 8px 0 1px;
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 31px;
  line-height: 1;
}

.attention-summary h2 {
  margin: 7px 0 5px;
  color: var(--ink-950);
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.attention-summary p {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
}

.signal-rail-wrap {
  min-width: 0;
  padding-top: 1px;
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rail-heading small {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.signal-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 16px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.signal-rail::before {
  position: absolute;
  top: 7px;
  right: 8px;
  left: 8px;
  height: 1px;
  background: var(--line);
  content: "";
}

.rail-item,
.rail-placeholder {
  position: relative;
  min-width: 0;
}

.rail-marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 1px var(--live);
}

.rail-item.new .rail-marker {
  border-radius: 4px;
  background: var(--new);
  box-shadow: 0 0 0 1px var(--new);
  transform: rotate(45deg);
}

.rail-item.stopped .rail-marker {
  background: var(--stopped);
  box-shadow: 0 0 0 1px var(--stopped);
}

.rail-item.unresolved .rail-marker {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--stopped);
}

.rail-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-placeholder > span:first-child {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: #cfd5df;
}

.rail-placeholder > span:last-child {
  display: block;
  width: 70%;
  height: 9px;
  margin-top: 13px;
  border-radius: 2px;
  background: #e7ebf1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.kpi-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 19px 20px 18px;
}

.kpi-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.kpi-heading p {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 800;
}

.kpi-card > strong {
  display: block;
  margin: 16px 0 4px;
  font-family: var(--font-data);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.kpi-card > small {
  display: block;
  min-height: 34px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.45;
}

.kpi-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.target-icon {
  border: 1.5px solid var(--primary);
  border-radius: 50%;
}

.target-icon::before {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.active-icon::before,
.active-icon::after {
  position: absolute;
  bottom: 1px;
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--live);
  content: "";
}

.active-icon::before {
  left: 2px;
  height: 9px;
  box-shadow: 6px -5px 0 var(--live), 12px -2px 0 var(--live);
}

.new-icon::before,
.new-icon::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--new);
  content: "";
}

.new-icon::after {
  transform: rotate(90deg);
}

.stopped-icon {
  border: 2px solid var(--stopped);
  border-radius: 50%;
}

.stopped-icon::before {
  position: absolute;
  top: 6px;
  left: 3px;
  width: 7px;
  height: 2px;
  background: var(--stopped);
  content: "";
}

.data-grid {
  display: contents;
}

.data-grid .panel {
  margin-top: 26px;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  min-width: 0;
  scroll-margin-top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.method-panel h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.panel-description {
  margin: 7px 0 0;
  color: var(--ink-500);
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.6;
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--live-soft);
  color: var(--live);
  padding: 5px 9px;
  font-size: 12.5px;
  font-weight: 800;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.warning {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.status-badge.pending {
  background: var(--primary-soft);
  color: var(--primary);
}

.competitor-panel-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.add-target-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.add-target-button:hover {
  background: var(--primary-strong);
}

.add-target-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.table-wrap {
  width: 100%;
  margin-top: 23px;
}

.archived-targets {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.archived-targets summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.archived-targets summary small {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 500;
}

.archived-target-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.archived-target-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #f8f9fb;
  padding: 14px 16px;
}

.archived-target-row > div {
  min-width: 0;
}

.archived-target-row strong,
.archived-target-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archived-target-row strong {
  font-size: 15px;
}

.archived-target-row small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 13px;
}

.archived-target-row button {
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--primary);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.archived-target-row button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  padding: 0 10px 10px;
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

th:first-child {
  width: 31%;
  padding-left: 0;
  text-align: left;
}

th:nth-child(5) {
  width: 22%;
}

th:last-child {
  width: 68px;
  padding-right: 0;
}

td {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 10px;
  font-family: var(--font-data);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

td:first-child {
  padding-left: 0;
  font-family: var(--font-interface);
  text-align: left;
}

td:last-child {
  padding-right: 0;
}

tr:last-child td {
  border-bottom: 0;
  padding-bottom: 3px;
}

.costs-table th:first-child {
  width: 26%;
}

.costs-table th:nth-child(5),
.costs-table th:last-child {
  width: auto;
}

.costs-table td:first-child small {
  display: block;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.costs-table.costs-months th:first-child {
  width: 14%;
}

.costs-month-total td {
  color: var(--ink-700);
  font-weight: 700;
}

.costs-message {
  margin-top: 20px;
  color: var(--ink-500);
  font-size: 15px;
}

.competitor-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.competitor-initial {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
}

.competitor-copy {
  min-width: 0;
}

.competitor-copy strong,
.competitor-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-copy strong {
  color: var(--ink-800);
  font-size: 14px;
}

.competitor-copy small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.cell-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-700);
}

.cell-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  content: "";
}

.cell-status.partial::before {
  border: 1px solid var(--stopped);
  background: transparent;
}

.cell-status.awaiting {
  color: var(--primary);
}

.cell-status.awaiting::before {
  border: 1px solid var(--primary);
  background: transparent;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.cell-status.paused {
  color: var(--ink-500);
}

.cell-status.paused::before {
  background: var(--ink-500);
}

.coverage-cell {
  min-width: 94px;
}

.coverage-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 5px;
  color: var(--ink-500);
  font-family: var(--font-interface);
  font-size: 12.5px;
}

.coverage-label small {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.35;
}

.coverage-bar {
  display: flex;
  height: 5px;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0f4;
}

.coverage-bar span {
  display: block;
  min-width: 3px;
  background: var(--live);
}

.coverage-bar .new-part {
  background: var(--new);
}

.coverage-bar .stopped-part {
  background: var(--stopped);
}

.coverage-bar.awaiting span,
.coverage-bar.paused span {
  display: none;
}

tr[data-target-status="paused"] .competitor-initial {
  background: #eef1f5;
  color: var(--ink-600);
}

.edit-target-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  padding: 7px 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.edit-target-button:hover {
  background: var(--primary-soft);
}
.result-count {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
}

.signal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-600);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover {
  border-color: #adb7c8;
  color: var(--ink-950);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

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

.signal-row {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 0;
}

.signal-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.signal-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 1px var(--live);
}

.signal-marker.new {
  border-radius: 2px;
  background: var(--new);
  box-shadow: 0 0 0 1px var(--new);
  transform: rotate(45deg);
}

.signal-marker.stopped {
  background: var(--stopped);
  box-shadow: 0 0 0 1px var(--stopped);
}

.signal-marker.unresolved {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--stopped);
}

.signal-copy {
  min-width: 0;
}

.signal-copy a,
.signal-copy > strong {
  display: block;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-copy a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signal-copy small {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.signal-tag {
  min-height: 24px;
  border-radius: 999px;
  background: var(--live-soft);
  color: var(--live);
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 800;
}

.signal-tag.new {
  background: var(--new-soft);
  color: var(--new);
}

.signal-tag.stopped,
.signal-tag.unresolved {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.creative-library {
  margin-top: 26px;
}

.creative-heading {
  align-items: center;
}

.creative-result-count {
  flex: 0 0 auto;
  color: var(--ink-600);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
}

.creative-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.creative-export {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--primary);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.creative-export:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.creative-export svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.validation-strip {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 0.9fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid #d6dcfb;
  border-radius: 13px;
  background: #f8f9ff;
  padding: 20px 22px;
}

.validation-copy {
  min-width: 0;
}

.validation-copy .eyebrow {
  margin-bottom: 6px;
}

.validation-copy h3 {
  margin: 0;
  color: var(--ink-950);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.validation-copy > p:last-child {
  margin: 6px 0 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.5;
}

.validation-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.validation-value strong {
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.validation-value span,
.validation-score small {
  color: var(--ink-600);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 500;
}

.validation-track {
  position: relative;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e4e7f5;
}

.validation-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.validation-track i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgb(255 255 255 / 82%);
}

.validation-track i:nth-of-type(1) {
  left: 20%;
}

.validation-track i:nth-of-type(2) {
  left: 40%;
}

.validation-track i:nth-of-type(3) {
  left: 60%;
}

.validation-track i:nth-of-type(4) {
  left: 80%;
}

.validation-score small {
  display: block;
  margin-top: 7px;
}

.validation-brief-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 7px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.validation-brief-link:hover {
  color: var(--primary-strong);
}

.validation-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(66px, auto));
  gap: 0;
  margin: 0;
}

.validation-facts div {
  min-width: 0;
  border-left: 1px solid #dfe3f3;
  padding: 2px 15px;
}

.validation-facts dt {
  color: var(--ink-500);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.validation-facts dd {
  margin: 5px 0 0;
  color: var(--ink-800);
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 600;
}

.creative-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    minmax(160px, 0.34fr)
    minmax(160px, 0.3fr)
    auto;
  gap: 12px;
  align-items: end;
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

.creative-control {
  min-width: 0;
}

.creative-control label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 800;
}

.input-shell {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 0 12px;
}

.input-shell:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgb(22 136 229 / 16%);
}

.input-shell svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--ink-500);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-950);
  font: 500 13px/1.4 var(--font-interface);
}

.input-shell input::placeholder {
  color: #8d97aa;
}

.creative-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background-color: var(--surface);
  color: var(--ink-800);
  padding: 0 36px 0 12px;
  font: 700 12px/1.4 var(--font-interface);
  cursor: pointer;
}

.reset-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--primary);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.reset-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.creative-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.creative-card {
  --creative-state: var(--live);
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--creative-state);
  border-radius: 13px;
  background: #fbfcfe;
  padding: 18px 18px 16px;
}

.creative-card[data-status="new"] {
  --creative-state: var(--new);
}

.creative-card[data-status="stopped"],
.creative-card[data-status="unresolved"] {
  --creative-state: var(--stopped);
}

.creative-card[data-status="inactive"] {
  --creative-state: var(--ink-500);
}

.creative-card[data-status="reactivated"] {
  --creative-state: var(--primary);
}

.creative-card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creative-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.creative-format-icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--creative-state);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.creative-id {
  min-width: 0;
}

.creative-id strong,
.creative-id small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creative-id strong {
  color: var(--ink-800);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
}

.creative-id small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.creative-network {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-500);
  padding: 4px 8px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.creative-state {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--live-soft);
  color: var(--live);
  padding: 5px 8px;
  font-size: 12.5px;
  font-weight: 800;
}

.creative-state.new {
  background: var(--new-soft);
  color: var(--new);
}

.creative-state.stopped,
.creative-state.unresolved {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.creative-state.inactive {
  background: #eef1f5;
  color: var(--ink-600);
}

.creative-state.reactivated {
  background: var(--primary-soft);
  color: var(--primary);
}

.creative-copy {
  min-height: 118px;
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 17px;
}

.copy-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.creative-copy h3 {
  margin: 0;
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.creative-copy p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creative-copy.missing h3 {
  color: var(--ink-700);
}

.creative-copy.missing p {
  font-style: italic;
}

.destination-host {
  display: block;
  overflow: hidden;
  margin-top: 9px;
  color: var(--primary);
  font-family: var(--font-data);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifespan-block {
  margin-top: 18px;
}

.lifespan-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.lifespan-heading strong {
  color: var(--ink-700);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
}

.lifespan-track {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: #e9edf3;
}

.lifespan-track span {
  display: block;
  width: var(--lifespan-width);
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--creative-state);
}

.creative-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.creative-facts div {
  min-width: 0;
}

.creative-facts dt {
  color: var(--ink-500);
  font-size: 12.5px;
}

.creative-facts dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink-800);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creative-review {
  --review-color: var(--new);
  margin-top: 15px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.creative-review[data-review-state="relevant"] {
  --review-color: var(--live);
}

.creative-review[data-review-state="irrelevant"] {
  --review-color: var(--ink-600);
}

.review-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review-heading span {
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 700;
}

.review-heading strong {
  color: var(--review-color);
  font-size: 12.5px;
  font-weight: 800;
}

.review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 9px;
}

.review-actions button {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-600);
  padding: 6px 7px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.review-actions button:hover {
  border-color: var(--review-color);
  color: var(--review-color);
}

.review-actions button[aria-pressed="true"] {
  border-color: var(--review-color);
  background: color-mix(in srgb, var(--review-color) 9%, white);
  color: var(--review-color);
  box-shadow: inset 0 0 0 1px var(--review-color);
}

.review-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.creative-action-form {
  margin-top: 12px;
  border: 1px solid #cfe4df;
  border-radius: 9px;
  background: #f7fcfb;
  padding: 11px;
}

.creative-action-form label,
.creative-action-form label > span {
  display: block;
}

.creative-action-form label > span {
  color: var(--live);
  font-size: 12.5px;
  font-weight: 800;
}

.creative-action-form textarea {
  width: 100%;
  min-height: 68px;
  margin-top: 7px;
  resize: vertical;
  border: 1px solid #bfd8d3;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-800);
  padding: 9px 10px;
  font: 500 11px/1.5 var(--font-interface);
}

.creative-action-form textarea::placeholder {
  color: #86918f;
}

.creative-action-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.creative-action-form small {
  color: var(--ink-500);
  font-size: 11.5px;
  line-height: 1.4;
}

.creative-action-form button {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--live);
  border-radius: 8px;
  background: var(--surface);
  color: var(--live);
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.creative-action-form button:hover {
  background: var(--live-soft);
}

.creative-action-form button:disabled,
.creative-action-form textarea:disabled {
  cursor: wait;
  opacity: 0.62;
}

.creative-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.creative-card-footer > span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.evidence-link:hover {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.evidence-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.creative-empty {
  grid-column: 1 / -1;
}

.creative-skeleton {
  display: grid;
  gap: 14px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}

.creative-skeleton span {
  display: block;
  border-radius: 6px;
  background: #edf0f4;
  animation: pulse 1.3s ease-in-out infinite alternate;
}

.creative-skeleton span:first-child {
  width: 42%;
  height: 28px;
}

.creative-skeleton span:nth-child(2) {
  width: 86%;
  height: 92px;
}

.creative-skeleton span:last-child {
  width: 100%;
  height: 58px;
}

.creative-pagination {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.creative-pagination[hidden] {
  display: none;
}

.creative-pagination span {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.creative-pagination button {
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--primary);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.creative-pagination button:hover {
  background: var(--primary-soft);
}

.report-register {
  margin-top: 26px;
}

.report-heading {
  align-items: center;
}

.report-result-count {
  flex: 0 0 auto;
  color: var(--ink-600);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
}

.report-list {
  display: grid;
  margin: 23px 0 0;
  border-top: 1px solid var(--line);
  padding: 0;
  list-style: none;
}

.report-entry {
  display: grid;
  min-width: 0;
  grid-template-columns:
    18px minmax(190px, 1.05fr) minmax(240px, 0.95fr)
    minmax(150px, 0.65fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 19px 0;
}

.report-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.report-spine {
  position: relative;
  align-self: stretch;
}

.report-spine::before {
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: 8px;
  width: 1px;
  background: var(--line);
  content: "";
}

.report-entry:first-child .report-spine::before {
  top: 50%;
}

.report-entry:last-child .report-spine::before {
  bottom: 50%;
}

.report-spine span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 3px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 1px var(--live);
  transform: translateY(-50%);
}

.report-entry[data-report-status="partial"] .report-spine span {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--stopped);
}

.report-identity {
  min-width: 0;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.report-state,
.latest-tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.report-state.complete {
  background: var(--live-soft);
  color: var(--live);
}

.report-state.partial {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.latest-tag {
  background: var(--primary-soft);
  color: var(--primary);
}

.report-identity time strong,
.report-identity time small {
  display: block;
}

.report-identity time strong {
  color: var(--ink-950);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.report-identity time small {
  margin-top: 2px;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.report-identity p {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 12.5px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.report-metrics div {
  min-width: 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 13px;
}

.report-metrics dt {
  color: var(--ink-500);
  font-size: 11.5px;
}

.report-metrics dd {
  margin: 4px 0 0;
  color: var(--ink-800);
  font-family: var(--font-data);
  font-size: 17px;
  font-weight: 600;
}

.report-metrics dd.new {
  color: var(--new);
}

.report-metrics dd.stopped {
  color: var(--stopped);
}

.report-coverage {
  min-width: 0;
}

.report-coverage > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-500);
  font-size: 11.5px;
}

.report-coverage strong {
  color: var(--ink-700);
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 600;
}

.report-coverage-track {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: #e9edf3;
}

.report-coverage-track span {
  display: block;
  width: var(--report-coverage);
  height: 100%;
  border-radius: inherit;
  background: var(--live);
}

.report-entry[data-report-status="partial"] .report-coverage-track span {
  background: var(--stopped);
}

.report-coverage small {
  display: block;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 11.5px;
}

.report-downloads {
  display: flex;
  flex-wrap: wrap;
  min-width: 220px;
  gap: 7px;
}

.report-download,
.report-open {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--primary);
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.report-open {
  font-family: inherit;
  background: var(--surface);
  cursor: pointer;
}

.report-download:hover,
.report-open:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.report-download--pdf {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.report-download--pdf:hover {
  background: var(--primary-strong);
  color: #fff;
}

.report-open svg,
.report-download svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.report-detail {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel, 16px);
  background: var(--surface);
  padding: 22px 24px;
}

.report-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.report-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#report-detail-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink-700);
  padding: 9px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--surface);
  cursor: pointer;
}

#report-detail-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.report-detail-body {
  max-width: 78ch;
  color: var(--ink-800);
  font-size: 14.5px;
  line-height: 1.65;
}

.report-detail-body h1 {
  margin: 4px 0 14px;
  color: var(--ink-900);
  font-size: 22px;
  line-height: 1.3;
}

.report-detail-body h2 {
  margin: 26px 0 10px;
  color: var(--ink-900);
  font-size: 17px;
}

.report-detail-body h3 {
  margin: 20px 0 8px;
  color: var(--ink-800);
  font-size: 15px;
}

.report-detail-body ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.report-detail-body li::marker {
  color: var(--primary);
}

.report-detail-body a {
  color: var(--primary);
  font-weight: 700;
}

.report-detail-body code {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--ink-900);
  padding: 1px 6px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

.report-detail-loading,
.report-detail-error {
  color: var(--ink-500);
}

.report-detail-body ol {
  margin: 8px 0 14px;
  padding-left: 24px;
  display: grid;
  gap: 6px;
}

.report-detail-body ol li::marker {
  color: var(--primary);
  font-weight: 800;
}

.report-notes-editor {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
  padding-top: 16px;
}

.report-notes-editor label {
  display: grid;
  gap: 3px;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 800;
}

.report-notes-editor label small {
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 500;
}

.report-notes-editor textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-900);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  min-height: 110px;
}

.report-notes-editor textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.report-notes-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#report-notes-save {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#report-notes-save:hover {
  background: var(--primary-strong);
}

#report-notes-save:disabled {
  opacity: 0.6;
  cursor: default;
}

#report-notes-status {
  color: var(--ink-500);
  font-size: 13px;
}

.report-unavailable {
  color: var(--ink-500);
  font-size: 12.5px;
}

.report-empty {
  display: grid;
  justify-items: start;
  text-align: left;
}

.report-empty strong {
  color: var(--ink-800);
  font-size: 15px;
}

.report-empty span {
  margin-top: 4px;
}

.report-pagination {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.report-pagination[hidden] {
  display: none;
}

.report-pagination span {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.report-pagination button {
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--primary);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.report-pagination button:hover {
  background: var(--primary-soft);
}

.report-skeleton {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr) 120px;
  gap: 22px;
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}

.report-skeleton span {
  height: 42px;
  border-radius: 7px;
  background: #edf0f4;
  animation: pulse 1.3s ease-in-out infinite alternate;
}

.report-skeleton span:last-child {
  height: 44px;
}

.collection-workspace {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.collection-console {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #25304a;
  border-radius: var(--radius-panel);
  background: var(--ink-950);
  color: #f8f9ff;
  padding: 30px;
}

.collection-console::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 72%, rgb(92 110 255 / 7%));
  content: "";
}

.collection-console > * {
  position: relative;
  z-index: 1;
}

.collection-console .eyebrow {
  color: #3ec9f5;
}

.collection-console-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 34px;
  align-items: end;
}

.collection-console-heading h2 {
  margin: 12px 0 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.collection-console-heading > div > p:last-child {
  max-width: 680px;
  margin: 13px 0 0;
  color: #aeb7cd;
  font-size: 15.5px;
}

.collection-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-top: 11px;
  border: 1px solid #5364dc;
  border-radius: 999px;
  color: #cbd1ff;
  padding: 4px 9px;
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-state.healthy {
  border-color: #2f9b91;
  color: #8fe0d7;
}

.collection-state.overdue,
.collection-state.warning {
  border-color: #bd6c2d;
  color: #ffc18f;
}

.collection-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #2b3650;
  border-radius: 10px;
  background: #2b3650;
}

.collection-schedule div {
  min-width: 0;
  background: #151d32;
  padding: 15px;
}

.collection-schedule dt,
.collection-readouts dt {
  color: #7f8ba6;
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-schedule dd {
  margin: 7px 0 0;
  color: #f5f7ff;
  font-size: 15px;
  font-weight: 700;
}

.collection-readouts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 28px 0 0;
  border-block: 1px solid #2b3650;
}

.collection-readouts > div {
  min-width: 0;
  border-right: 1px solid #2b3650;
  padding: 20px 20px 20px 0;
}

.collection-readouts > div:not(:first-child) {
  padding-left: 20px;
}

.collection-readouts > div:last-child {
  border-right: 0;
}

.collection-readouts dd {
  margin: 7px 0 0;
  color: #ffffff;
  font-family: var(--font-data);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.collection-readouts small {
  display: block;
  min-height: 32px;
  margin-top: 7px;
  color: #8f9ab2;
  font-size: 12.5px;
  line-height: 1.45;
}

.collection-tape-wrap {
  margin-top: 25px;
}

.collection-tape-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.collection-tape-heading span {
  color: #dce1ef;
  font-size: 14px;
  font-weight: 700;
}

.collection-tape-heading small {
  color: #7f8ba6;
  font-family: var(--font-data);
  font-size: 12.5px;
}

.collection-tape {
  display: grid;
  grid-auto-columns: minmax(112px, 1fr);
  grid-auto-flow: column;
  margin: 6px 0 0;
  overflow-x: auto;
  padding: 10px 0 8px;
  list-style: none;
  scrollbar-color: #4a5877 transparent;
}

.collection-tape-item {
  position: relative;
  min-width: 112px;
  border-top: 1px solid #46516a;
  padding: 19px 12px 0 0;
}

.collection-tape-mark {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink-950);
  border-radius: 50%;
  background: #45b8ad;
  box-shadow: 0 0 0 1px #45b8ad;
}

.collection-tape-item.warning .collection-tape-mark,
.collection-tape-item.partial .collection-tape-mark {
  background: #d07a37;
  box-shadow: 0 0 0 1px #d07a37;
}

.collection-tape time,
.collection-tape time strong,
.collection-tape time small {
  display: block;
}

.collection-tape time strong {
  color: #f5f7ff;
  font-size: 14px;
}

.collection-tape time small,
.collection-tape-item > span:last-child {
  margin-top: 3px;
  color: #7f8ba6;
  font-family: var(--font-data);
  font-size: 12.5px;
}

.collection-tape-item > span:last-child {
  display: block;
  margin-top: 9px;
  color: #aeb7cd;
}

.collection-tape-empty {
  color: #8f9ab2;
  font-size: 14px;
}

.collection-ledger-heading {
  align-items: center;
}

.weekly-summary-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 18px;
}

.weekly-summary-control label {
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 700;
}

.weekly-summary-control select,
.weekly-summary-control input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-900);
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
}

.weekly-summary-control small {
  flex: 1 1 220px;
  color: var(--ink-500);
  font-size: 13.5px;
}

.collection-launch-panel {
  border-top: 3px solid var(--primary);
}

.collection-launch-heading {
  align-items: center;
}

.collection-launch-state {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-600);
  padding: 7px 10px;
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-launch-state.ready {
  border-color: #71bcb4;
  background: var(--live-soft);
  color: #05645e;
}

.collection-launch-state.running {
  border-color: #8995ee;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.collection-launch-state.blocked {
  border-color: #e5c29f;
  background: #fff8f1;
  color: #96571f;
}

.collection-launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  margin-top: 25px;
}

.collection-plan-readouts > dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.collection-plan-readouts > dl > div {
  min-width: 0;
  background: #fbfcff;
  padding: 15px;
}

.collection-plan-readouts dt {
  color: var(--ink-500);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.collection-plan-readouts dd {
  margin: 7px 0 0;
  color: var(--ink-950);
  font-family: var(--font-data);
  font-size: 19px;
  font-weight: 650;
}

.collection-plan-caveat {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 12.5px;
  line-height: 1.55;
}

.collection-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.collection-checks li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
}

.collection-checks li > span {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--live);
}

.collection-checks li.error > span {
  background: var(--stopped);
}

.collection-checks strong,
.collection-checks small {
  display: block;
}

.collection-checks strong {
  color: var(--ink-800);
  font-size: 12.5px;
}

.collection-checks small {
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11.5px;
  line-height: 1.45;
}

.collection-launch-control {
  align-self: start;
  border: 1px solid #d9defb;
  border-radius: 12px;
  background: #f7f8ff;
  padding: 19px;
}

.collection-gate {
  border-left: 3px solid #c47735;
  padding-left: 12px;
}

.collection-gate.ready {
  border-left-color: var(--live);
}

.collection-gate strong,
.collection-gate span {
  display: block;
}

.collection-gate strong {
  color: var(--ink-900);
  font-size: 14px;
}

.collection-gate span {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 12.5px;
  line-height: 1.5;
}

#collection-run-form {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

#collection-run-form label {
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 700;
}

#collection-run-form code {
  color: var(--primary-strong);
  font-family: var(--font-data);
  font-size: 11.5px;
}

#collection-confirmation {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-950);
  padding: 10px 12px;
  font-family: var(--font-data);
  font-size: 14px;
}

#collection-run-button {
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#collection-run-button:disabled,
#collection-confirmation:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.collection-job {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border-top: 1px solid #d9defb;
  padding-top: 14px;
}

.collection-job > span {
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.collection-job.succeeded > span {
  background: var(--live-soft);
  color: var(--live);
}

.collection-job.failed > span {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.collection-job strong {
  overflow-wrap: anywhere;
  color: var(--ink-800);
  font-family: var(--font-data);
  font-size: 11.5px;
}

.collection-job small,
.collection-job em {
  color: var(--ink-500);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.5;
}

.collection-job em {
  color: var(--stopped);
}

.anomaly-heading {
  align-items: center;
}

.anomaly-list {
  display: grid;
  gap: 0;
  margin: 23px 0 0;
  border-top: 1px solid var(--line);
  padding: 0;
  list-style: none;
}

.anomaly-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(540px, 1.8fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 21px 0;
}

.anomaly-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.anomaly-identity {
  min-width: 0;
  border-left: 3px solid var(--stopped);
  padding-left: 13px;
}

.anomaly-row[data-anomaly-status="resolved"] .anomaly-identity {
  border-left-color: var(--live);
}

.anomaly-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.anomaly-type,
.anomaly-resolution {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.anomaly-type {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.anomaly-resolution {
  background: var(--line-soft);
  color: var(--ink-600);
}

.anomaly-row[data-anomaly-status="resolved"] .anomaly-resolution {
  background: var(--live-soft);
  color: var(--live);
}

.anomaly-identity > strong,
.anomaly-identity time,
.anomaly-identity p {
  display: block;
}

.anomaly-identity > strong {
  color: var(--ink-950);
  font-size: 15px;
}

.anomaly-identity time {
  margin-top: 3px;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.anomaly-identity p {
  margin: 8px 0 0;
  color: var(--ink-600);
  font-size: 13px;
}

.anomaly-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(100px, 0.45fr) minmax(160px, 1fr) auto;
  gap: 11px;
  align-items: end;
}

.anomaly-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.anomaly-form label > span {
  color: var(--ink-600);
  font-size: 12.5px;
  font-weight: 700;
}

.anomaly-form select,
.anomaly-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-950);
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
}

.anomaly-form textarea {
  min-height: 62px;
  resize: vertical;
  line-height: 1.4;
}

.anomaly-form select:hover,
.anomaly-form textarea:hover {
  border-color: #aab4c5;
}

.anomaly-form button {
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--primary);
  color: #ffffff;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.anomaly-form button:hover {
  background: var(--primary-strong);
}

.anomaly-form button:disabled,
.anomaly-form select:disabled,
.anomaly-form textarea:disabled {
  cursor: wait;
  opacity: 0.65;
}

.anomaly-empty {
  justify-items: start;
  padding: 25px 0 4px;
  text-align: left;
}

.anomaly-empty strong {
  color: var(--ink-800);
  font-size: 15px;
}

.anomaly-empty span {
  margin-top: 4px;
}

.collection-ledger {
  display: grid;
  margin: 23px 0 0;
  border-top: 1px solid var(--line);
  padding: 0;
  list-style: none;
}

.collection-ledger-row {
  display: grid;
  grid-template-columns: minmax(135px, 0.6fr) minmax(270px, 1.3fr) minmax(180px, 0.85fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
}

.collection-ledger-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.collection-ledger-identity time,
.collection-ledger-identity time strong,
.collection-ledger-identity time small {
  display: block;
}

.collection-run-state {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--live-soft);
  color: var(--live);
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.collection-ledger-row[data-collection-status="warning"] .collection-run-state,
.collection-ledger-row[data-collection-status="partial"] .collection-run-state {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.collection-ledger-identity time strong {
  color: var(--ink-950);
  font-size: 15.5px;
  font-weight: 800;
}

.collection-ledger-identity time small {
  margin-top: 2px;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
}

.collection-ledger-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.collection-ledger-metrics div {
  border-left: 1px solid var(--line-soft);
  padding-left: 12px;
}

.collection-ledger-metrics dt {
  color: var(--ink-500);
  font-size: 12.5px;
}

.collection-ledger-metrics dd {
  margin: 4px 0 0;
  color: var(--ink-800);
  font-family: var(--font-data);
  font-size: 17px;
  font-weight: 650;
}

.collection-ledger-detail {
  min-width: 0;
}

.collection-ledger-detail strong,
.collection-ledger-detail span {
  display: block;
}

.collection-ledger-detail strong {
  color: var(--ink-700);
  font-size: 13px;
}

.collection-ledger-detail span,
.collection-ledger-empty {
  justify-items: start;
  border-bottom: 0;
  padding: 24px 0 4px;
  text-align: left;
}

@media (max-width: 1320px) {
  .anomaly-row {
    grid-template-columns: 1fr;
  }

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

  .anomaly-note-field {
    grid-column: 1 / -1;
  }

  .anomaly-form button {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 1080px) {
  .collection-launch-grid {
    grid-template-columns: 1fr;
  }

  .collection-console-heading {
    grid-template-columns: 1fr;
  }

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

  .collection-readouts > div:nth-child(3) {
    border-right: 0;
  }

  .collection-readouts > div:nth-child(n + 4) {
    border-top: 1px solid #2b3650;
  }

  .collection-ledger-row {
    grid-template-columns: minmax(140px, 0.55fr) minmax(320px, 1.45fr);
  }

  .anomaly-row {
    grid-template-columns: 1fr;
  }

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

  .anomaly-note-field {
    grid-column: 1 / -1;
  }

  .collection-ledger-detail,
}

@media (max-width: 680px) {
  .collection-console {
    padding: 22px;
  }

  .collection-schedule,
  .collection-readouts {
    grid-template-columns: 1fr;
  }

  .collection-readouts > div,
  .collection-readouts > div:not(:first-child) {
    border-right: 0;
    border-top: 1px solid #2b3650;
    padding: 16px 0;
  }

  .collection-readouts > div:first-child {
    border-top: 0;
  }

  .collection-readouts small {
    min-height: 0;
  }

  .collection-tape-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .collection-launch-heading {
    align-items: flex-start;
  }

  .collection-launch-state {
    width: fit-content;
  }

  .collection-plan-readouts > dl,
  .collection-checks {
    grid-template-columns: 1fr;
  }

  .collection-ledger-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .anomaly-form {
    grid-template-columns: 1fr;
  }

  .anomaly-note-field {
    grid-column: 1;
  }

  .anomaly-form button {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .collection-ledger-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-ledger-detail,
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 700;
}

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

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-observed {
  background: var(--live);
}

.legend-new {
  background: var(--new);
}

.legend-stopped {
  background: var(--stopped);
}

figure {
  margin: 0;
}

.trend-chart {
  position: relative;
  display: grid;
  min-height: 216px;
  grid-auto-columns: minmax(54px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  align-items: end;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
}

.trend-chart::before {
  position: absolute;
  z-index: 0;
  top: 53px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-soft);
  box-shadow: 0 53px 0 var(--line-soft), 0 106px 0 var(--line-soft);
  content: "";
}

.trend-column {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 216px;
  grid-template-rows: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: end;
}

.bar-group {
  display: flex;
  height: 174px;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.trend-bar {
  position: relative;
  width: min(16px, 26%);
  height: var(--bar-height);
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--live);
}

.trend-bar.new {
  background: var(--new);
}

.trend-bar.stopped {
  background: var(--stopped);
}

.trend-bar.zero {
  min-height: 0;
}

.trend-value {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  color: var(--ink-600);
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 600;
  transform: translateX(-50%);
}

.trend-column > small {
  overflow: hidden;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 12.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-panel {
  display: grid;
  min-width: 0;
  scroll-margin-top: 92px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  border: 1px solid #27314d;
  border-radius: var(--radius-panel);
  background: var(--ink-950);
  color: #eef1fa;
  padding: 24px;
}

.method-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #54607d;
  border-radius: 50%;
  color: #aeb8ff;
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 600;
}

.method-panel .eyebrow {
  color: #96a2ff;
}

.method-panel h2 {
  max-width: 400px;
  color: #ffffff;
}

.method-panel p:not(.eyebrow) {
  margin: 11px 0 16px;
  color: #aeb7cb;
  font-size: 14px;
  line-height: 1.65;
}

.method-panel a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #bdc5ff;
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.method-panel a:hover {
  color: #ffffff;
}

.empty-state {
  margin: 18px 0 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-600);
  padding: 22px;
  font-size: 14px;
  text-align: center;
}

.empty-table-cell {
  border-bottom: 0;
  padding: 0;
  text-align: left;
}

.competitor-empty {
  display: grid;
  justify-items: start;
  text-align: left;
}

.competitor-empty strong {
  color: var(--ink-800);
  font-size: 15px;
}

.competitor-empty span {
  margin-top: 4px;
}

.competitor-empty button {
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--primary-soft);
  color: var(--primary);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.competitor-empty button:hover {
  background: #dfe3ff;
}

.skeleton-table-row td {
  padding: 16px 0;
}

.skeleton-table-row span,
.skeleton-signal span,
.rail-placeholder span {
  animation: pulse 1.3s ease-in-out infinite alternate;
}

.skeleton-table-row span {
  display: block;
  height: 28px;
  border-radius: 7px;
  background: #edf0f4;
}

.skeleton-signal {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 0;
}

.skeleton-signal span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dee8;
}

.skeleton-signal span:last-child {
  width: 76%;
  height: 25px;
  border-radius: 5px;
  background: #edf0f4;
}

.error-banner {
  margin-top: 16px;
  border: 1px solid #ebc3c9;
  border-radius: 12px;
  background: var(--critical-soft);
  color: #8d2936;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
}

.target-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink-950);
  padding: 0;
  box-shadow: 0 24px 70px rgb(16 22 41 / 28%);
}

.target-dialog::backdrop {
  background: rgb(16 22 41 / 58%);
  backdrop-filter: blur(3px);
}

.dialog-surface {
  border: 1px solid #cfd7e4;
  border-radius: inherit;
  background: var(--surface);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 25px 26px 21px;
}

.dialog-header h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.dialog-header p:last-child {
  margin: 7px 0 0;
  color: var(--ink-600);
  font-size: 14px;
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-600);
  cursor: pointer;
}

.dialog-close:hover {
  border-color: #adb7c8;
  color: var(--ink-950);
}

.dialog-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

#target-form {
  padding: 23px 26px 25px;
}

.target-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 800;
}

.form-field label span {
  color: var(--ink-500);
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fbfcfe;
  color: var(--ink-950);
  padding: 10px 12px;
  font: 600 13px/1.4 var(--font-interface);
}

.form-field input:hover,
.form-field select:hover {
  border-color: #adb7c8;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(22 136 229 / 14%);
}

.form-field input::placeholder {
  color: #8d97aa;
  font-weight: 500;
}

.form-help {
  margin: -7px 0 0;
  color: var(--ink-500);
  font-size: 12.5px;
  line-height: 1.55;
}

.form-error {
  margin-top: 18px;
  border: 1px solid #ebc3c9;
  border-radius: 10px;
  background: var(--critical-soft);
  color: #8d2936;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.dialog-primary-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.dialog-secondary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-button,
.pause-target-button,
.remove-target-button,
.save-target-button {
  min-height: 44px;
  border-radius: var(--radius-control);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-700);
}

.secondary-button:hover {
  border-color: #adb7c8;
  color: var(--ink-950);
}

.pause-target-button {
  border: 0;
  background: var(--stopped-soft);
  color: var(--stopped);
}

.pause-target-button.resume {
  background: var(--live-soft);
  color: var(--live);
}

.remove-target-button {
  border: 1px solid #e5bac1;
  background: var(--surface);
  color: #a02f3d;
}

.remove-target-button:hover {
  border-color: var(--critical);
  background: var(--critical-soft);
}

.remove-target-button.permanent {
  background: var(--critical-soft);
  color: var(--critical);
}

.save-target-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.save-target-button:hover {
  background: var(--primary-strong);
}

.secondary-button:disabled,
.pause-target-button:disabled,
.remove-target-button:disabled,
.save-target-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  pointer-events: none;
}

.toast {
  display: flex;
  max-width: min(380px, calc(100vw - 32px));
  align-items: center;
  gap: 10px;
  border: 1px solid #beddd8;
  border-radius: 12px;
  background: #f7fffd;
  color: #075e58;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 38px rgb(16 22 41 / 18%);
}

.toast-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px var(--live-soft);
}

.toast.error {
  border-color: #efc5ca;
  background: var(--critical-soft);
  color: #9d2533;
}

.toast.error .toast-mark {
  background: var(--critical);
  box-shadow: 0 0 0 4px rgb(200 62 77 / 12%);
}

.workspace > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  padding: 21px clamp(20px, 3vw, 48px);
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.endorsement-mark {
  display: block;
  width: auto;
  height: 20px;
  opacity: 0.92;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 1600px) {
  :root {
    --sidebar-width: 292px;
  }

  body {
    font-size: 20px;
  }

  .panel-description,
  .signal-copy small,
  .creative-copy p,
  .weekly-suggestion,
  .weekly-target-copy small,
  .alert-copy small,
  .alert-email-status {
    font-size: 15px;
  }

  .kpi-card > small,
  .creative-facts dd,
  .collection-readouts small {
    font-size: 14px;
  }

  .sidebar {
    padding-inline: 26px;
  }

  .section-nav a {
    min-height: 48px;
    font-size: 17px;
  }

  .nav-label {
    font-size: 13px;
  }

  .utility-bar,
  .workspace > footer {
    padding-inline: clamp(40px, 3vw, 64px);
  }

  main {
    padding: 56px clamp(40px, 3vw, 64px) 64px;
  }

  h1 {
    max-width: 980px;
    font-size: 4rem;
  }

  .workspace-context,
  .system-status {
    font-size: 15.5px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .overview-copy > p:last-child,
  .page-intro > div > p:last-child {
    max-width: 780px;
    font-size: 20px;
    line-height: 1.65;
  }

  .scan-stamp span,
  .scan-stamp small,
  .page-index {
    font-size: 14px;
  }

  .scan-stamp strong {
    font-size: 16px;
  }

  .attention-panel {
    padding: 30px 32px;
  }

  .attention-kicker,
  .rail-heading span {
    font-size: 14px;
  }

  .attention-summary > strong {
    font-size: 37px;
  }

  .attention-summary h2 {
    font-size: 22px;
  }

  .attention-summary p,
  .rail-item strong {
    font-size: 15.5px;
  }

  .rail-item small,
  .rail-heading small {
    font-size: 14px;
  }

  .panel {
    padding: 32px;
  }

  .panel-heading h2,
  .method-panel h2 {
    font-size: 31px;
  }

  .panel-description {
    font-size: 17px;
  }

  .kpi-card {
    padding: 26px 28px 24px;
  }

  .kpi-card > strong {
    font-size: 2.85rem;
  }

  .kpi-heading p {
    font-size: 15.5px;
  }

  .kpi-card > small {
    min-height: 0;
    font-size: 15px;
  }

  .status-badge,
  .add-target-button,
  .filter-button,
  .result-count,
  .creative-result-count,
  .report-result-count {
    font-size: 14px;
  }

  th {
    font-size: 14px;
  }

  td {
    font-size: 16px;
  }

  .competitor-copy strong,
  .signal-copy a,
  .signal-copy > strong {
    font-size: 15.5px;
  }

  .competitor-copy small,
  .signal-copy small,
  .signal-tag {
    font-size: 14px;
  }

  .validation-copy h3 {
    font-size: 20px;
  }

  .validation-copy > p:last-child,
  .creative-copy p {
    font-size: 15.5px;
  }

  .validation-value span,
  .validation-score small,
  .creative-id strong,
  .creative-id small,
  .creative-state,
  .copy-label,
  .destination-host {
    font-size: 14px;
  }

  .creative-copy {
    min-height: 132px;
  }

  .creative-copy h3 {
    font-size: 21px;
  }

  .report-state,
  .latest-tag,
  .report-identity time small,
  .report-identity p,
  .report-metrics dt,
  .report-coverage > div:first-child,
  .report-coverage strong,
  .report-coverage small {
    font-size: 13px;
  }

  .report-identity time strong {
    font-size: 17px;
  }

  .report-metrics dd {
    font-size: 20px;
  }

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

@media (min-width: 2200px) {
  .creative-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body {
    font-size: 21px;
  }

  .section-nav a {
    font-size: 18px;
  }

  table {
    font-size: 17px;
  }
}

@media (max-width: 1180px) {
  .lower-grid {
    grid-template-columns: 1fr;
  }

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

  .report-entry {
    grid-template-columns: 18px minmax(180px, 1fr) minmax(220px, 1fr) auto;
  }

  .report-spine {
    grid-row: 1 / span 2;
  }

  .report-coverage {
    grid-row: 2;
    grid-column: 2 / 4;
  }

  .report-downloads,
  .report-unavailable {
    grid-row: 1 / span 2;
    grid-column: 4;
  }
}

@media (max-width: 960px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 24px;
    padding: 11px 20px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .section-nav {
    min-width: 0;
    margin: 0 0 0 auto;
  }

  .nav-groups {
    display: flex;
    gap: 4px;
  }

  .nav-group,
  .section-nav ul {
    display: contents;
  }

  .nav-label,
  .sidebar-health {
    display: none;
  }

  .section-nav a {
    min-height: 42px;
    padding: 9px 10px;
  }

  .section-nav a:hover {
    transform: none;
  }

  .utility-bar {
    top: 64px;
  }

  .overview,
  .panel,
  .method-panel {
    scroll-margin-top: 150px;
  }
}

@media (max-width: 720px) {
  .archived-target-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 9px 16px 8px;
  }

  .utility-actions {
    gap: 8px;
  }

  .user-session {
    gap: 4px;
    padding-left: 8px;
  }

  .user-name {
    display: none;
  }

  .user-avatar {
    display: none;
  }

  .brand {
    min-height: 44px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 12.5px;
  }

  .section-nav {
    width: 100%;
    order: 2;
  }

  .nav-groups {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .nav-groups::-webkit-scrollbar {
    display: none;
  }

  .section-nav li {
    flex: 0 0 auto;
  }

  .section-nav a {
    min-height: 44px;
    justify-content: center;
    gap: 6px;
    padding: 7px 5px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .section-nav svg {
    width: 15px;
    height: 15px;
  }

  .utility-bar {
    position: static;
    min-height: 62px;
    padding: 9px 16px;
  }

  .workspace-context span {
    display: none;
  }

  .workspace-context span::after {
    display: none;
  }

  .workspace-context strong {
    font-size: 13px;
  }

  .utility-actions {
    gap: 10px;
  }

  .system-status > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .refresh-button {
    min-height: 44px;
    min-width: 44px;
    padding: 9px 11px;
  }

  .refresh-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .refresh-icon,
  .refresh-button svg {
    width: 19px;
    height: 19px;
  }

  .filter-button {
    min-height: 44px;
  }

  main {
    padding: 28px 16px 40px;
  }

  .overview {
    display: grid;
    gap: 22px;
  }

  .page-intro {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 0 0 28px;
  }

  .page-intro > div > p:last-child {
    font-size: 16px;
  }

  .page-index {
    order: -1;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .scan-stamp {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .attention-panel {
    grid-template-columns: 1fr;
    gap: 21px;
    padding: 21px 19px;
  }

  .attention-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }

  .signal-rail {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .signal-rail::before {
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 1px;
    height: auto;
  }

  .rail-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 11px;
  }

  .rail-marker {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .rail-item strong,
  .rail-item small {
    grid-column: 2;
  }

  .rail-item small {
    margin: 0;
  }

  .rail-placeholder {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 11px;
  }

  .rail-placeholder > span:last-child {
    margin-top: 3px;
  }

  .panel,
  .method-panel {
    padding: 20px 18px;
  }

  .panel-heading {
    display: grid;
    gap: 12px;
  }

  .creative-heading {
    display: grid;
  }

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

  .report-heading {
    display: flex;
  }

  .creative-toolbar {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .validation-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

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

  .validation-facts div {
    border-top: 1px solid #dfe3f3;
    border-left: 0;
    padding: 12px 8px 0 0;
  }

  .validation-facts div + div {
    padding-left: 8px;
  }

  .validation-facts dt {
    white-space: normal;
  }

  .creative-action-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .reset-button {
    justify-self: start;
  }

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

  .creative-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .creative-pagination button {
    width: 100%;
  }

  .creative-copy {
    min-height: 0;
  }

  .report-list {
    margin-top: 18px;
  }

  .report-entry {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 15px 12px;
    align-items: start;
    padding: 18px 0;
  }

  .report-spine {
    grid-row: 1 / span 4;
    grid-column: 1;
  }

  .report-identity,
  .report-metrics,
  .report-coverage,
  .report-downloads,
  .report-unavailable {
    grid-column: 2;
  }

  .report-identity {
    grid-row: 1;
  }

  .report-metrics {
    grid-row: 2;
  }

  .report-coverage {
    grid-row: 3;
  }

  .report-downloads,
  .report-unavailable {
    grid-row: 4;
  }

  .report-downloads {
    width: 100%;
    min-width: 0;
  }

  .report-metrics div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .report-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .report-pagination button {
    width: 100%;
  }

  .report-skeleton {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .status-badge {
    justify-self: start;
  }

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

  .add-target-button {
    min-height: 44px;
  }

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

  .table-wrap {
    margin-top: 16px;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 13px 14px;
  }

  td {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line-soft);
    padding: 7px 0;
    text-align: right;
  }

  td::before {
    color: var(--ink-500);
    content: attr(data-label);
    font-family: var(--font-interface);
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
  }

  td:first-child {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 0 0 11px;
  }

  td:first-child::before {
    display: none;
  }

  td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  td:last-child .edit-target-button {
    width: 100%;
    margin-top: 3px;
    border: 1px solid var(--line);
  }

  tr:last-child td {
    padding-bottom: 7px;
  }

  tr:last-child td:first-child {
    padding-bottom: 11px;
  }

  tr:last-child td:last-child {
    padding-bottom: 0;
  }

  .coverage-cell {
    min-width: 130px;
  }

  .skeleton-table-row td {
    display: block;
    padding: 0;
  }

  .skeleton-table-row td::before {
    display: none;
  }

  .legend {
    justify-content: flex-start;
  }

  .target-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .dialog-header {
    padding: 21px 18px 18px;
  }

  #target-form {
    padding: 20px 18px 21px;
  }

  .target-form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-primary-actions {
    width: 100%;
    margin: 0;
  }

  .dialog-secondary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-primary-actions button {
    flex: 1;
  }

  .pause-target-button,
  .remove-target-button {
    width: 100%;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .toast {
    max-width: none;
  }

  .trend-chart {
    grid-auto-columns: minmax(45px, 1fr);
    gap: 7px;
  }

  .workspace > footer {
    display: grid;
    gap: 6px;
    padding: 18px 16px;
  }
}

@media (max-width: 420px) {
  .brand-copy {
    display: none;
  }

  .section-nav li {
    min-width: 0;
    flex: 0 0 68px;
  }

  .section-nav a {
    gap: 0;
    padding-inline: 2px;
    font-size: 12.5px;
    letter-spacing: -0.02em;
  }

  .section-nav svg {
    display: none;
  }

  .sidebar {
    column-gap: 8px;
  }

  .kpi-grid {
    gap: 10px;
  }

  .kpi-card {
    padding: 16px 14px;
  }

  .kpi-card > small {
    font-size: 12.5px;
  }

  .signal-row {
    grid-template-columns: 17px minmax(0, 1fr);
  }

  .signal-tag {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ */
/* Digest settimanale e registro avvisi                                */
/* ------------------------------------------------------------------ */

.weekly-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 24px 26px;
}

.weekly-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.weekly-heading h2 {
  margin: 6px 0 0;
  color: var(--ink-950);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.weekly-heading small {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 13px;
  white-space: nowrap;
}

.weekly-readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 4px;
}

.weekly-stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  padding: 12px 14px;
}

.weekly-stat dt {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weekly-stat dd {
  margin: 6px 0 0;
  font-family: var(--font-data);
  font-size: 29px;
  line-height: 1;
}

.weekly-stat.new dd {
  color: var(--new);
}

.weekly-stat.stopped dd {
  color: var(--stopped);
}

.weekly-stat.message dd {
  color: var(--primary);
}

.weekly-stat.resumed dd {
  color: var(--live);
}

.weekly-target-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.weekly-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}

.weekly-target-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.weekly-target-copy strong {
  font-size: 15.5px;
}

.weekly-target-copy small {
  display: block;
  margin-top: 3px;
  color: var(--ink-600);
  font-size: 14px;
}

.weekly-suggestion {
  color: var(--ink-700);
  font-size: 14px;
}

.alert-panel {
  margin-top: 26px;
}

.alert-email-status {
  margin: 14px 0 4px;
  color: var(--ink-600);
  font-size: 14px;
}

.alert-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.alert-row {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}

.alert-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.alert-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.alert-tags strong {
  font-size: 15px;
}

.alert-copy small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink-600);
  font-size: 14px;
}

.alert-copy small a {
  color: var(--primary);
}

.alert-row time {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 13px;
  white-space: nowrap;
}

.signal-tag.message {
  background: var(--primary-soft);
  color: var(--primary);
}

.signal-marker.message {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

@media (max-width: 900px) {
  .weekly-readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-target-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .weekly-heading {
    flex-direction: column;
    gap: 6px;
  }

  .weekly-heading small {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .alert-row {
    grid-template-columns: 19px minmax(0, 1fr);
  }

  .alert-row time {
    grid-column: 2;
  }
}

/* ------------------------------------------------------------------ */
/* Piano dell'istanza                                                  */
/* ------------------------------------------------------------------ */

.plan-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.export-locked {
  color: var(--ink-500);
  font-size: 13px;
  font-style: italic;
}

.plan-billing {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: var(--live-soft);
  color: var(--live);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-billing.warning {
  background: var(--stopped-soft);
  color: var(--stopped);
}

.creative-preview {
  margin: -18px -18px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--canvas);
  aspect-ratio: 4 / 3;
}

.creative-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 700px) {
  .creative-preview {
    aspect-ratio: 3 / 2;
  }
}
