.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem auto;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  overflow: auto;
  padding: 1.4rem;
  color: var(--ink, #f4e9e4);
  background: var(--night, #120909);
  border: 1px solid var(--frame-strong, #7fd6cb);
  border-radius: .375rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  font-family: Archivo, Arial, sans-serif;
}
.analytics-consent[hidden] { display: none !important; }
.analytics-consent h2 { margin: 0 0 .75rem; font-size: 1.3rem; line-height: 1.2; }
.analytics-consent p { margin: 0 0 .75rem; font-size: 1rem; line-height: 1.5; }
.analytics-consent a { color: inherit; text-underline-offset: .2em; font-size: .9375rem; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.analytics-consent__actions button {
  flex: 1 1 11rem;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid var(--kitsunebi, #7fd6cb);
  border-radius: .375rem;
  color: var(--ink, #f4e9e4);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.analytics-consent__actions button:hover { background: rgba(127,214,203,.12); }
.analytics-preferences {
  min-height: 44px;
  padding: .5rem 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
  font: inherit;
  cursor: pointer;
}
.analytics-consent :focus-visible, .analytics-preferences:focus-visible {
  outline: 2px solid var(--amber, #ffb43a);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .analytics-consent { inset-inline: 1rem; bottom: 5.5rem; max-height: calc(100svh - 7rem); }
}
