.ga-benchmark-tool {
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: rgba(255, 248, 238, 0.94);
  --line: rgba(62, 39, 19, 0.12);
  --text: var(--wp--preset--color--foreground, #1f1a15);
  --muted: #6b5c4a;
  --accent: var(--wp--preset--color--primary, #165d58);
  --warm: #b45c37;
  --cool: #3366a3;
  --shadow: 0 18px 40px rgba(67, 39, 12, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  color: var(--text);
  font-family: inherit;
}

.ga-benchmark-tool,
.ga-benchmark-tool * {
  box-sizing: border-box;
}

.ga-benchmark-tool label {
  display: block;
  margin: 0;
}

.ga-benchmark-tool .page-shell {
  width: 100%;
  margin: 0;
}

.ga-benchmark-tool .hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.ga-benchmark-tool .hero-copy,
.ga-benchmark-tool .hero-stat-cluster,
.ga-benchmark-tool .surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
  box-shadow: var(--shadow);
}

.ga-benchmark-tool .hero-copy {
  padding: 36px;
}

.ga-benchmark-tool .eyebrow,
.ga-benchmark-tool .mini-kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ga-benchmark-tool .hero h1,
.ga-benchmark-tool .summary-strip h2,
.ga-benchmark-tool .forecast-card h2,
.ga-benchmark-tool .insight-card h2,
.ga-benchmark-tool .table-panel h2,
.ga-benchmark-tool .source-card h2,
.ga-benchmark-tool .panel-head h2 {
  margin: 0;
  font-family: inherit;
  line-height: 1.08;
}

.ga-benchmark-tool .hero h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.ga-benchmark-tool .hero-text {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.ga-benchmark-tool .hero-stat-cluster {
  display: grid;
  gap: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(22, 93, 88, 0.18), transparent 38%),
    linear-gradient(180deg, #fff9ef 0%, #f5ead9 100%);
}

.ga-benchmark-tool .hero-stat {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(62, 39, 19, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.ga-benchmark-tool .hero-stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.ga-benchmark-tool .hero-stat strong {
  font-size: 1.15rem;
}

.ga-benchmark-tool .dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.ga-benchmark-tool .control-panel {
  align-self: start;
  padding: 24px;
  min-width: 0;
}

.ga-benchmark-tool .panel-head p,
.ga-benchmark-tool .field p,
.ga-benchmark-tool .summary-strip p,
.ga-benchmark-tool .forecast-footnote,
.ga-benchmark-tool .source-list,
.ga-benchmark-tool .metric-delta,
.ga-benchmark-tool .objective-note p,
.ga-benchmark-tool .insight-card p,
.ga-benchmark-tool .table-panel p {
  color: var(--muted);
}

.ga-benchmark-tool .field,
.ga-benchmark-tool .compact-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ga-benchmark-tool .field-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.ga-benchmark-tool select,
.ga-benchmark-tool input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(62, 39, 19, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.ga-benchmark-tool select:focus,
.ga-benchmark-tool input[type="number"]:focus {
  border-color: rgba(22, 93, 88, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 93, 88, 0.12);
}

.ga-benchmark-tool .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ga-benchmark-tool .currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  min-width: 30px;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.ga-benchmark-tool input[type="number"] {
  padding-left: 58px;
  line-height: 1.2;
}

.ga-benchmark-tool .toggle-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(62, 39, 19, 0.08);
}

.ga-benchmark-tool .toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 6px;
}

.ga-benchmark-tool .card-tone {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(22, 93, 88, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(232, 247, 242, 0.82) 0%, rgba(248, 250, 244, 0.96) 100%);
  border: 1px solid rgba(22, 93, 88, 0.14);
}

.ga-benchmark-tool .objective-note h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.ga-benchmark-tool .insight-list,
.ga-benchmark-tool .source-list {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

.ga-benchmark-tool .content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.ga-benchmark-tool .summary-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  align-items: center;
}

.ga-benchmark-tool .summary-strip h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.ga-benchmark-tool .signal-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ga-benchmark-tool .signal-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(62, 39, 19, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  white-space: normal;
  line-height: 1.3;
}

.ga-benchmark-tool .metric-grid,
.ga-benchmark-tool .forecast-grid,
.ga-benchmark-tool .source-grid {
  display: grid;
  gap: 20px;
}

.ga-benchmark-tool .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ga-benchmark-tool .video-metric-grid.is-hidden {
  display: none;
}

.ga-benchmark-tool .metric-card,
.ga-benchmark-tool .forecast-card,
.ga-benchmark-tool .insight-card,
.ga-benchmark-tool .table-panel,
.ga-benchmark-tool .source-card {
  padding: 24px;
  min-width: 0;
}

.ga-benchmark-tool .metric-card {
  min-height: 150px;
  background:
    radial-gradient(circle at top right, rgba(255, 216, 198, 0.5), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.9) 0%, rgba(255, 247, 238, 0.98) 100%);
}

.ga-benchmark-tool .metric-label {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
}

.ga-benchmark-tool .metric-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.ga-benchmark-tool .metric-delta {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.ga-benchmark-tool .forecast-grid {
  grid-template-columns: 1.2fr 1fr;
}

.ga-benchmark-tool .forecast-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.ga-benchmark-tool .forecast-budget {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.ga-benchmark-tool .forecast-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.ga-benchmark-tool .forecast-stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(62, 39, 19, 0.08);
  min-width: 0;
}

.ga-benchmark-tool .forecast-stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.ga-benchmark-tool .forecast-stat strong {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.ga-benchmark-tool .forecast-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ga-benchmark-tool .forecast-value-main {
  font-size: clamp(1.2rem, 2vw, 2.2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.ga-benchmark-tool .forecast-value-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ga-benchmark-tool .forecast-footnote {
  margin: 18px 0 0;
  line-height: 1.55;
}

.ga-benchmark-tool .metric-track-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.ga-benchmark-tool .track-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.ga-benchmark-tool .track-shell {
  height: 12px;
  border-radius: 999px;
  background: rgba(62, 39, 19, 0.08);
  overflow: hidden;
}

.ga-benchmark-tool .track-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #34a58a 100%);
  transition: width 260ms ease;
}

.ga-benchmark-tool .track-fill.warm {
  background: linear-gradient(90deg, var(--warm) 0%, #f39a63 100%);
}

.ga-benchmark-tool .track-fill.cool {
  background: linear-gradient(90deg, var(--cool) 0%, #6da0e0 100%);
}

.ga-benchmark-tool .table-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.ga-benchmark-tool .table-actions {
  display: flex;
  gap: 12px;
  align-items: end;
}

.ga-benchmark-tool .compact-field {
  min-width: 170px;
  margin-top: 0;
}

.ga-benchmark-tool .ghost-button {
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(62, 39, 19, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.ga-benchmark-tool .ghost-button:hover {
  background: rgba(255, 255, 255, 0.96);
}

.ga-benchmark-tool .table-wrap {
  overflow-x: auto;
}

.ga-benchmark-tool table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.ga-benchmark-tool thead th {
  text-align: left;
  padding: 14px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(62, 39, 19, 0.12);
}

.ga-benchmark-tool tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(62, 39, 19, 0.08);
}

.ga-benchmark-tool tbody tr {
  transition: transform 180ms ease, background 180ms ease;
  cursor: pointer;
}

.ga-benchmark-tool tbody tr:hover {
  background: rgba(255, 255, 255, 0.72);
}

.ga-benchmark-tool tbody tr.is-selected {
  background: rgba(211, 238, 231, 0.56);
}

.ga-benchmark-tool .signal-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(22, 93, 88, 0.1);
  color: var(--accent);
}

.ga-benchmark-tool .source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ga-benchmark-tool .source-card a {
  color: var(--accent);
  text-decoration: none;
}

.ga-benchmark-tool .source-card a:hover {
  text-decoration: underline;
}

.ga-benchmark-tool [data-role="plannerHeadline"] {
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .ga-benchmark-tool .hero,
  .ga-benchmark-tool .dashboard,
  .ga-benchmark-tool .forecast-grid,
  .ga-benchmark-tool .source-grid {
    grid-template-columns: 1fr;
  }

  .ga-benchmark-tool .metric-grid {
    grid-template-columns: 1fr;
  }

  .ga-benchmark-tool .forecast-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ga-benchmark-tool .hero-copy,
  .ga-benchmark-tool .hero-stat-cluster,
  .ga-benchmark-tool .control-panel,
  .ga-benchmark-tool .metric-card,
  .ga-benchmark-tool .forecast-card,
  .ga-benchmark-tool .insight-card,
  .ga-benchmark-tool .table-panel,
  .ga-benchmark-tool .source-card,
  .ga-benchmark-tool .summary-strip {
    padding: 18px;
    border-radius: 20px;
  }

  .ga-benchmark-tool .summary-strip,
  .ga-benchmark-tool .forecast-head,
  .ga-benchmark-tool .table-head,
  .ga-benchmark-tool .table-actions,
  .ga-benchmark-tool .track-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .ga-benchmark-tool .forecast-stats {
    grid-template-columns: 1fr;
  }

  .ga-benchmark-tool .forecast-budget {
    text-align: left;
  }

  .ga-benchmark-tool .hero h1 {
    max-width: none;
  }
}
