:root {
  --utility-bar-offset: 84px;
  --utility-panel-bottom: 84px;
}

.site-stats-button {
  min-width: 34px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(44, 62, 80, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #b84a3a;
  box-shadow: 0 8px 20px rgba(32, 47, 61, 0.12);
  font: 650 12px/1 var(--pico-font-family-sans-serif);
  cursor: pointer;
}

.site-stats-button:hover {
  border-color: rgba(34, 124, 141, 0.36);
  background: rgba(247, 251, 252, 0.98);
}

.site-stats-button:focus-visible {
  outline: 2px solid rgba(34, 124, 141, 0.32);
  outline-offset: 2px;
}

.help-panel {
  bottom: var(--utility-panel-bottom);
  max-height: min(520px, calc(100vh - var(--utility-panel-bottom) - 28px));
}

.site-stats-panel {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100vh - var(--utility-panel-bottom) - 28px);
  padding: 18px;
  background: rgba(247, 249, 252, 0.97);
}


.site-stats-panel .site-stats-eyebrow {
  margin: 0 0 5px;
  color: #1684b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-stats-panel h2 {
  margin-bottom: 4px;
}

.site-stats-panel .help-summary {
  margin-bottom: 16px;
  color: #607080;
}

.umami-board-shell {
  overflow: hidden;
  border: 1px solid rgba(44, 62, 80, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(31, 45, 61, 0.10);
}

#umami-board {
  display: block;
  width: 100%;
  height: 850px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
}

.site-stats-panel .site-stats-source {
  margin: 12px 2px 0;
  color: #728193;
  font-size: 10px;
}

@media (max-width: 640px) {
  :root {
    --utility-bar-offset: 118px;
    --utility-panel-bottom: 118px;
  }

  .help-panel {
    bottom: var(--utility-panel-bottom);
    max-height: calc(100vh - var(--utility-panel-bottom) - 20px);
  }

  .site-stats-panel {
    right: 10px;
    width: calc(100vw - 20px);
    padding: 12px;
  }

  #umami-board {
    height: 720px;
  }
}
