h1 {
  margin-bottom: 8px;
}
h1 + h2 {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
body > .searchbar {
  width: min(560px,100% - 40px);
  margin: 0 auto 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 1px 3px var(--card-shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.card > img {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
}
.card .name {
  grid-column: span 2;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.3;
  align-self: end;
}
.card .branch {
  grid-column: span 2;
  margin-top: 1px;
  align-self: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .branch > span + span::before {
  content: "·";
  margin-inline: 3px;
}
.card .indicator {
  margin-block: 12px 2px;
  grid-column: span 3;
  font-size: 13px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card .indicator.bad {
  color: var(--accent-danger);
}
.card .indicator::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: currentColor;
}
.card .graph {
  grid-column: span 3;
  height: 36px;
  margin-block: 12px 10px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
}
.card .graph > div {
  flex-grow: 1;
  min-height: 1px;
  border-radius: 1.5px;
  height: calc(100% * var(--size));
  background-color: color-mix(in oklab, var(--accent-warning), var(--accent-danger) calc(100% * var(--size)));
}
.card .complaints {
  grid-column: span 2;
  justify-self: start;
}
.card em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
  margin-inline: 0.5ch 1.5ch;
}
.card [data-last] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card [data-last] svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}
.card [data-last]:has(span:empty) {
  display: none;
}
section.recent {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}
section.recent h2 {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 4px;
}
section.sectors {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
section.sectors > h2 {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 12px;
}
section.sectors > .card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 12px 14px;
  overflow: hidden;
}
section.sectors > .card > span {
  align-self: flex-start;
}
section.sectors > .card > svg {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  color: var(--text-secondary);
  opacity: 0.7;
  z-index: 0;
}
section.stats {
  padding-block: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
section.stats div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px var(--card-shadow);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
section.stats span:first-child {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
section.stats span:last-child {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
@media (max-width: 800px) {
  section.stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 450px) {
  section.stats {
    grid-template-columns: 100%;
  }
}
