.rhea-analytics-panel[hidden] { display: none !important; }
.rhea-analytics-panel {
  position: fixed;
  z-index: 1100;
  inset: auto 20px 20px auto;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #879380;
  border-radius: 16px;
  color: #242b23;
  background: #f8f6f0;
  box-shadow: 0 10px 36px rgb(36 43 35 / 15%);
  font: 15px/1.55 Arial, sans-serif;
}
.rhea-analytics-panel h2 { margin: 0 0 12px; color: #465342; font: 26px/1.2 Georgia, serif; }
.rhea-analytics-panel p { margin: 12px 0; font-size: 15px; line-height: 1.55; }
.rhea-analytics-panel summary { cursor: pointer; color: #465342; text-decoration: underline; }
.rhea-analytics-panel details { padding: 8px 0; }
.rhea-analytics-status { font-weight: 600; }
.rhea-analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rhea-analytics-actions button, .rhea-analytics-control {
  appearance: none;
  min-height: 44px;
  border: 1px solid #465342;
  border-radius: 999px;
  padding: 10px 16px;
  color: #242b23;
  background: transparent;
  font: 14px/1.4 Arial, sans-serif;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.rhea-analytics-actions button:not([data-analytics-close]) { flex: 1 1 180px; background: #edf0ea; }
.rhea-analytics-actions button:disabled { opacity: 0.6; cursor: default; }
.rhea-analytics-control { display: inline-block; margin: 12px 0; }
.rhea-analytics-panel button:focus-visible, .rhea-analytics-panel summary:focus-visible,
.rhea-analytics-control:focus-visible { outline: 3px solid #465342; outline-offset: 3px; }
@media (max-width: 600px) {
  .rhea-analytics-panel { inset: auto 12px 12px; width: auto; max-height: calc(100dvh - 24px); padding: 20px; }
}
