.statistics-panel[hidden], .statistics-panel [hidden] { display: none !important; }
.statistics-panel {
  position: fixed; z-index: 120; inset: auto 20px 20px auto;
  box-sizing: border-box; width: min(540px, calc(100% - 40px)); max-height: 75dvh;
  overflow-y: auto; padding: 22px; color: #f4f1e9; background: #191814;
  border: 1px solid #a38b53; border-radius: 12px; box-shadow: 0 8px 36px #0008;
  font: 16px/1.5 'Golos Text', sans-serif; text-align: left;
}
.statistics-panel p { margin: 0 0 14px; }
#statistics-title { font-weight: 600; }
.statistics-panel .statistics-detail, .statistics-panel .statistics-status { font-size: 14px; }
.statistics-panel .statistics-status:empty { display: none; }
.statistics-panel a { color: #e5ca87; text-decoration: underline; }
.statistics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.statistics-actions button {
  flex: 1 1 130px; min-height: 44px; padding: 10px 14px; border: 1px solid #d7bc7b;
  border-radius: 6px; background: #242119; color: #f4f1e9; cursor: pointer;
  font: inherit; line-height: 1.3;
}
.footer-bottom { align-items: center; }
.footer-bottom > .statistics-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  column-gap: 16px;
}
.statistics-settings {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.statistics-settings:hover { color: var(--gold, #e5ca87); text-decoration: underline; text-underline-offset: 3px; }
.statistics-footer {
  box-sizing: border-box;
  width: min(100%, 1320px);
  margin-inline: auto;
  padding: 8px clamp(22px, 4vw, 68px);
  color: var(--muted, #c6bdae);
  border-top: 1px solid var(--line, #3a322b);
  font: 12px/1.45 Golos, Arial, sans-serif;
}
.statistics-panel button:focus-visible, .statistics-panel a:focus-visible,
.statistics-settings:focus-visible { outline: 2px solid #f4d68b; outline-offset: 4px; }
@media (max-width: 700px) {
  .footer-bottom > .statistics-footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .statistics-panel { inset: auto 12px 12px; width: auto; padding: 18px; }
}
