/* Optional analytics controls: equal choices, readable on a narrow screen. */
.analytics-settings {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}
.analytics-panel {
  position: fixed;
  z-index: 40;
  inset: auto 20px 20px;
  max-width: 1120px;
  max-height: calc(100dvh - 120px);
  margin-inline: auto;
  padding: 25px 28px;
  display: flex;
  gap: 30px;
  align-items: center;
  overflow-y: auto;
  color: #142128;
  background: #fff;
  border: 1px solid #bcc8cc;
  box-shadow: 0 8px 40px #0005;
}
.analytics-panel[hidden], .analytics-settings[hidden] { display: none !important; }
.analytics-copy { flex: 1; min-width: 0; }
.analytics-panel h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 9px; }
.analytics-panel p { font-size: 14px; line-height: 1.6; margin: 0; }
.analytics-panel a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-panel .analytics-state { font-size: 12px; line-height: 1.6; margin-top: 9px; color: #41535b; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 316px; flex: 0 0 auto; }
.analytics-choice {
  flex: 1 1 145px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #60747e;
  border-radius: 0;
  background: #f2f5f5;
  color: #142128;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.analytics-choice:hover { background: #e0e9ec; }
.analytics-close { background: transparent; border: 0; color: #41535b; padding: 7px 0; font-size: 12px; text-decoration: underline; }
.analytics-panel a:focus-visible, .analytics-panel button:focus-visible { outline: 2px solid #234d5e; outline-offset: 3px; }
@media (max-width: 820px) {
  .analytics-panel { inset: auto 12px 12px; display: block; padding: 21px; max-height: calc(100dvh - 100px); }
  .analytics-actions { width: 100%; margin-top: 17px; }
  .analytics-close { flex-basis: 100%; text-align: left; }
}
@media (max-width: 380px) {
  .analytics-panel { padding: 18px; }
  .analytics-choice { flex-basis: 100%; }
}
@media print { .analytics-panel, .analytics-settings { display: none !important; } }
