.hf-analytics-panel,
.hf-analytics-settings {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  color: #203a45;
  font-weight: 400;
}
.hf-analytics-settings {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10020;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #879ba4;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.hf-analytics-panel {
  position: fixed;
  left: 12px;
  bottom: 60px;
  z-index: 10021;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 88px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #879ba4;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 24px rgb(0 0 0 / 16%);
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}
.hf-analytics-panel[hidden], .hf-analytics-panel [hidden] { display: none !important; }
.hf-analytics-panel h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: normal; }
.hf-analytics-panel p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; }
.hf-analytics-panel .hf-analytics-scope { font-size: 12px; }
.hf-analytics-panel a { color: #14546a; text-decoration: underline; text-underline-offset: 3px; }
.hf-analytics-panel .hf-analytics-status { font-size: 13px; font-weight: 700; }
.hf-analytics-actions { display: flex; gap: 10px; margin-top: 14px; }
.hf-analytics-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #315b68;
  border-radius: 4px;
  padding: 10px 12px;
  color: #203a45;
  background: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.hf-analytics-close { display: block; margin: 10px 0 0 auto; min-height: 40px; padding: 6px 8px; border: 0; background: transparent; color: #203a45; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.hf-analytics-panel .hf-analytics-notice:empty { display: none; }
.hf-analytics-panel .hf-analytics-notice { margin-top: 10px; font-size: 12px; }
.hf-analytics-settings:focus-visible, .hf-analytics-panel button:focus-visible, .hf-analytics-panel a:focus-visible { outline: 3px solid #176b8e; outline-offset: 3px; }
@media (max-width: 900px) {
  .hf-analytics-settings { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .hf-analytics-panel { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 158px - env(safe-area-inset-bottom, 0px)); padding: 18px; }
}
