body {
  font-family: Arial, sans-serif;
  margin: 16px;
  background: #ffffff;
  color: #1d1d1f;
}
.page {
  display: block;
}
.topline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.pill {
  background: #f2f4f7;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.pill.mini {
  padding: 4px 8px;
}
.muted {
  color: #666;
  font-size: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.stat-card {
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.stat-up {
  color: #157347;
}
.stat-down {
  color: #b42318;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 12px 0 18px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 10px;
}
.field {
  min-width: 160px;
}
.field-multi {
  min-width: 220px;
}
label {
  font-size: 12px;
  color: #333;
  display: block;
  margin-bottom: 4px;
}
select,
input {
  padding: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
select[multiple] {
  min-height: 140px;
}
button,
.btn-secondary {
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #111827;
}
button:hover,
.btn-secondary:hover {
  background: #f9fafb;
}
.actions {
  display: flex;
  gap: 10px;
}
.hintline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1500px;
}
th,
td {
  border-bottom: 1px solid #eee;
  padding: 8px 10px;
  white-space: nowrap;
  vertical-align: middle;
}
thead th {
  position: sticky;
  top: 0;
  background: #f7f7f8;
  z-index: 3;
  border-bottom: 1px solid #e3e3e3;
}
th a {
  color: #111827;
  text-decoration: none;
}
th a:hover {
  text-decoration: underline;
}
th.sticky1,
td.sticky1 {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  border-right: 1px solid #eee;
  min-width: 220px;
  max-width: 220px;
}
th.sticky2,
td.sticky2 {
  position: sticky;
  left: 220px;
  z-index: 3;
  background: #fff;
  border-right: 1px solid #eee;
  min-width: 620px;
  max-width: 620px;
}
th.sticky3,
td.sticky3 {
  position: sticky;
  left: 840px;
  z-index: 2;
  background: #fff;
  border-right: 1px solid #eee;
  min-width: 120px;
}
thead th.sticky1,
thead th.sticky2,
thead th.sticky3 {
  background: #f7f7f8;
}
td.num,
th.num {
  text-align: right;
}
td.zero {
  color: #c6cad0;
}
td.strong {
  font-weight: 700;
}
.url-main {
  overflow: hidden;
  text-overflow: ellipsis;
}
.url-host {
  color: #667085;
  font-size: 12px;
  margin-top: 3px;
}
tr.brand td {
  background: #eef6ff;
}
tr.brand td.sticky1,
tr.brand td.sticky2,
tr.brand td.sticky3 {
  background: #eef6ff;
  font-weight: 600;
}
.delta-up {
  color: #157347;
  font-weight: 700;
}
.delta-down {
  color: #b42318;
  font-weight: 700;
}
.delta-flat {
  color: #667085;
  font-weight: 700;
}
.delta-head .subhead {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #667085;
  margin-top: 4px;
}
td.heat {
  background: rgba(25, 118, 210, calc(var(--heat, 0) / 180));
}
.sort-col {
  min-width: 110px;
}
@media (max-width: 1200px) {
  .filters {
    padding: 10px;
  }
  table {
    min-width: 1300px;
  }
}
