.im-analytics-panel {
  position: fixed;
  z-index: 10000;
  inset: auto 16px 16px;
  margin-inline: auto;
  max-width: 1050px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f4f1ed;
  color: #0b1218;
  border: 1px solid #6b7075;
  border-radius: 10px;
  box-shadow: 0 8px 28px #0005;
  font-family: "Work Sans", sans-serif;
  text-align: left;
}
.im-analytics-panel[hidden] { display: none !important; }
.im-analytics-copy { flex: 1; min-width: 0; }
.im-analytics-panel h2 {
  margin: 0 0 7px;
  color: #0b1218;
  font: 700 18px/1.3 "Work Sans", sans-serif;
  letter-spacing: normal;
}
.im-analytics-panel p { margin: 0; color: #283640; font-size: 14px; line-height: 1.55; }
.im-analytics-panel a { color: #843511; text-decoration: underline; }
.im-analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.im-analytics-actions button {
  border: 1px solid #0b1218;
  border-radius: 5px;
  background: #0b1218;
  color: #fff;
  padding: 11px 14px;
  font: 600 14px/1.3 "Work Sans", sans-serif;
  cursor: pointer;
}
.im-analytics-actions button:hover { background: #283640; }
.im-analytics-panel button:focus-visible, .im-analytics-panel a:focus-visible,
.im-analytics-settings:focus-visible { outline: 3px solid #b64713; outline-offset: 3px; }
.im-analytics-settings {
  display: block;
  margin: 18px auto;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 500 14px/1.4 "Work Sans", sans-serif;
  padding: 8px 12px;
  cursor: pointer;
}
@media (max-width: 700px) {
  .im-analytics-panel { inset: auto 10px 10px; padding: 18px; flex-direction: column; align-items: stretch; gap: 15px; }
  .im-analytics-actions button { flex: 1; }
}
