.analytics-cards {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.badge.paused {
  background: #343640;
  color: #b9c0ca;
}

.cost-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #35506b;
  border-radius: 10px;
  background: #0a1a2b;
  color: #9db6ce;
}

.query-code {
  max-width: 360px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: normal;
}

.error-text {
  max-width: 380px;
  margin-top: 5px;
  color: #ff9aa6;
  font-size: 12px;
  white-space: normal;
}

.keyword-detail td {
  padding-top: 0;
  background: #081522;
}

.keyword-detail details {
  color: var(--muted);
}

.keyword-detail summary {
  cursor: pointer;
  padding: 8px 0;
}

.keyword-results {
  display: grid;
  gap: 8px;
  padding: 8px 0 12px;
}

.keyword-result {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1b2d;
}

.keyword-result.managed {
  border-color: #2b755f;
  background: #0d2928;
}

.keyword-result .rank {
  color: #8bc5ff;
  font-weight: 800;
}

.keyword-result .badge {
  margin-left: 8px;
}

.result-text {
  max-width: 760px;
  margin: 4px 0;
  white-space: normal;
  color: var(--text);
}

.trend-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 175px;
  padding: 12px 4px 0;
  overflow-x: auto;
}

.trend-column {
  display: grid;
  grid-template-rows: 22px 120px 24px;
  align-items: end;
  min-width: 42px;
  flex: 1;
  text-align: center;
}

.trend-value,
.trend-day {
  color: var(--muted);
  font-size: 11px;
}

.trend-bar {
  width: min(30px, 75%);
  justify-self: center;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

@media (max-width: 1250px) {
  .analytics-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .analytics-cards { grid-template-columns: repeat(2, 1fr); }
}
