@charset "UTF-8";
.hf-metrics-panel {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  width: min(480px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #b5a996;
  border-radius: 4px;
  background: #fffdf7;
  color: #302c28;
  box-shadow: 0 10px 40px #302c2829;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.8;
}
.hf-metrics-panel[hidden], button[data-metrics-settings][hidden] { display: none !important; }
.hf-metrics-panel h2 { margin: 0 0 10px; font-family: inherit; font-weight: 600; font-size: 18px; line-height: 1.5; }
.hf-metrics-panel p { margin: 0 0 12px; }
.hf-metrics-panel a { color: #7d352b; text-decoration: underline; text-underline-offset: 3px; }
.hf-metrics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.hf-metrics-panel .hf-metrics-choice {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #51483c;
  border-radius: 3px;
  background: #f7f2e7;
  color: #302c28;
  font: 500 14px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  cursor: pointer;
}
.hf-metrics-panel .hf-metrics-choice:hover { background: #eae1d1; }
.hf-metrics-panel :focus-visible { outline: 3px solid #9d4335; outline-offset: 3px; }
button[data-metrics-settings] {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
button[data-metrics-settings]:disabled { cursor: default; opacity: .65; }
footer:has(> .metrics-footer) { flex-wrap: wrap; }
.metrics-footer {
  display: flex;
  flex: 0 0 100%;
  grid-column: 1 / -1;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid #dcd6c9;
  font-size: 11px;
  line-height: 1.8;
  color: #746e63;
}
.metrics-footer a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .hf-metrics-panel { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 20px; }
}
