.vm-stat-settings {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  background: none;
  border: 0;
  padding: .35rem 0;
}
.vm-stat-panel[hidden], .vm-stat-settings[hidden] { display: none; }
.vm-stat-panel {
  position: fixed;
  z-index: 10000;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  left: auto;
  width: min(28rem, calc(100% - 1.5rem));
  max-height: 75vh;
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
  color: #0e192c;
  border: 1px solid #aeb8c9;
  box-shadow: 0 6px 26px #0e192c24;
  padding: 1rem;
  font: 1rem/1.5 system-ui, sans-serif;
}
.vm-stat-panel h2 { font: 700 1.1rem/1.3 system-ui, sans-serif; color: inherit; margin: 0; }
.vm-stat-panel p { margin: .55rem 0; color: inherit; }
.vm-stat-panel a { color: #162f54; text-decoration: underline; }
.vm-stat-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vm-stat-actions button {
  flex: 1 1 8rem;
  min-height: 44px;
  padding: .4rem;
  cursor: pointer;
  color: #0e192c;
  border: 1px solid #aeb8c9;
  background: #f1f3f6;
  font: 600 .95rem system-ui, sans-serif;
}
.vm-stat-actions button:hover { background: #e6eaf0; }
