.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 24px max(24px, env(safe-area-inset-bottom)) auto;
  width: min(440px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 22px;
  background: linear-gradient(145deg, #152442, #0d172d 75%);
  color: #f4f6fa;
  box-shadow: 0 20px 64px rgb(0 5 18 / 45%), 0 2px 8px rgb(0 0 0 / 15%);
  font: 14px/1.6 var(--font, system-ui, sans-serif);
  text-align: left;
  animation: analytics-appear .22s ease-out;
}
.analytics-consent[hidden], .analytics-preferences[hidden], .analytics-close[hidden] { display: none; }
.analytics-heading { display: flex; align-items: center; gap: 12px; }
.analytics-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: rgb(233 162 59 / 12%); color: #ffc766; }
.analytics-eyebrow { display: block; margin-bottom: 3px; color: #b4bfd3; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.analytics-consent h2 { margin: 0; color: #f4f6fa; font: 650 19px/1.25 var(--font, system-ui, sans-serif); letter-spacing: -.025em; }
.analytics-consent p { margin: 18px 0; color: #c1cbdd; font-size: 13px; line-height: 1.7; }
.analytics-description-compact { display: none; }
.analytics-description-compact a { color: #d9e1ee; text-decoration: underline; text-underline-offset: 3px; }
.analytics-details { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 18px; color: #a7b2c8; font-size: 10px; }
.analytics-details > span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #8ebda8; vertical-align: 1px; }
.analytics-details a { color: #d9e1ee; text-decoration: underline; text-underline-offset: 3px; }
.analytics-actions { display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 10%); }
.analytics-actions button { flex: 1; min-height: 46px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 12px; background: rgb(255 255 255 / 5%); color: #f4f6fa; font: 600 12px/1.4 var(--font, system-ui, sans-serif); cursor: pointer; transition: background .15s, border-color .15s; }
.analytics-actions button:hover { border-color: #e9a23b; background: rgb(233 162 59 / 12%); }
.analytics-actions button[aria-pressed="true"] { border-color: #e9a23b; background: rgb(233 162 59 / 12%); }
.analytics-close { display: grid; place-items: center; align-self: flex-start; flex: 0 0 32px; height: 32px; margin: -8px -8px 0 auto; border: 0; border-radius: 50%; background: transparent; color: #c1cbdd; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.analytics-close:hover { background: rgb(255 255 255 / 8%); }
.analytics-preferences { position: fixed; z-index: 999; right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 44px; padding: 10px 16px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px; background: #101c33; color: #c1cbdd; box-shadow: 0 4px 20px rgb(0 0 0 / 18%); font: 500 11px/1.4 var(--font, system-ui, sans-serif); cursor: pointer; }
.analytics-preferences:hover { color: #fff; border-color: #a7b2c8; }
.analytics-consent button:focus-visible, .analytics-consent a:focus-visible, .analytics-preferences:focus-visible { outline: 3px solid #ffc766; outline-offset: 4px; }
@keyframes analytics-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .analytics-consent { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; border-radius: 14px; }
  .analytics-icon, .analytics-eyebrow, .analytics-description-full, .analytics-details { display: none; }
  .analytics-consent h2 { font-size: 14px; }
  .analytics-consent p { margin: 6px 0 10px; font-size: 12px; line-height: 1.45; }
  .analytics-description-compact { display: inline; }
  .analytics-actions { gap: 8px; padding-top: 0; border-top: 0; }
  .analytics-actions button { min-height: 44px; padding: 8px; border-radius: 8px; }
  .analytics-close { margin: -6px -6px -6px auto; }
  .analytics-preferences { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .analytics-consent { animation: none; } .analytics-actions button { transition: none; } }
