.analytics-notice-card {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99999;
  width: min(390px, calc(100vw - 24px));
  border: 3px solid #2f2a24;
  border-radius: 18px;
  background: #fff8df;
  color: #2f2a24;
  box-shadow: 8px 8px 0 rgba(0,0,0,.18);
  padding: 16px;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
  font-size: 14px;
}
.analytics-notice-card.open {
  opacity: 1;
  transform: translateY(0);
}
.analytics-notice-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 2px solid #2f2a24;
  border-radius: 8px;
  background: #fff;
  color: #2f2a24;
  font-weight: 900;
  cursor: pointer;
}
.analytics-notice-kicker {
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #fff;
  border: 2px solid #2f2a24;
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.analytics-notice-card h3 {
  margin: 2px 30px 8px 0;
  font-size: 18px;
}
.analytics-notice-card p {
  margin: 0 0 10px;
  line-height: 1.45;
}
.analytics-learn-more {
  border: 2px dashed rgba(47,42,36,.35);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,.58);
  margin: 10px 0 12px;
}
.analytics-learn-more summary,
.analytics-privacy-note summary {
  cursor: pointer;
  font-weight: 900;
}
.analytics-actions,
.analytics-settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.analytics-allow {
  background: #dff7d8 !important;
}
.analytics-decline,
.analytics-settings-actions .ghost {
  background: #fff !important;
}
.analytics-settings-card {
  margin-top: 14px;
  border: 3px solid #2f2a24;
  border-radius: 18px;
  background: rgba(255,248,223,.82);
  box-shadow: 5px 5px 0 rgba(0,0,0,.12);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.analytics-settings-card strong {
  display: block;
  margin-bottom: 4px;
}
.analytics-settings-card p {
  margin: 0 0 8px;
  line-height: 1.45;
}
.analytics-privacy-note {
  font-size: 13px;
  max-width: 780px;
}
body.night-mode .analytics-notice-card,
body.night-mode .analytics-settings-card {
  background: #1d2335;
  color: #eef3ff;
  border-color: #d8e0ff;
  box-shadow: 8px 8px 0 rgba(0,0,0,.35);
}
body.night-mode .analytics-notice-close,
body.night-mode .analytics-notice-kicker,
body.night-mode .analytics-learn-more {
  background: #12182a;
  color: #eef3ff;
  border-color: #d8e0ff;
}
@media (max-width: 640px) {
  .analytics-notice-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .analytics-settings-card {
    flex-direction: column;
  }
  .analytics-actions .pixel-button,
  .analytics-settings-actions .pixel-button {
    flex: 1 1 100%;
  }
}
