.home-visitor-presence {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.home-visitor-presence-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(10px, 3vw, 20px);
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}

.home-visitor-presence-summary::-webkit-details-marker {
  display: none;
}

.home-visitor-presence-toggle {
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.home-visitor-presence-toggle::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  vertical-align: 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.home-visitor-presence details[open] .home-visitor-presence-toggle::after {
  transform: rotate(225deg);
}

.home-visitor-presence-value {
  min-width: 2ch;
  color: #2d5a3d;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.home-visitor-presence-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 3px;
  font-size: 14px;
}

.home-visitor-presence[data-live='true'] .home-visitor-presence-title::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43845d;
}

.home-visitor-presence small {
  color: var(--muted);
  font-size: 12px;
}

.home-visitor-presence-pages {
  padding: 0 clamp(10px, 3vw, 20px);
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.home-visitor-presence-pages p {
  margin: 12px 0;
  color: var(--muted);
}

.home-visitor-presence-pages ul {
  max-height: 300px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.home-visitor-presence-pages li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  overflow-wrap: anywhere;
}

.home-visitor-presence-pages li + li {
  border-top: 1px solid var(--border);
}
