.privacy-preferences {
  position: fixed;
  inset: auto auto max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  z-index: 1000;
  width: 344px;
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line, #dedbd3);
  border-radius: 12px;
  background: var(--paper, #fbfaf7);
  color: var(--ink, #0a0a0a);
  box-shadow: 0 4px 24px #201c1412;
  font: 13px/1.5 var(--body, Inter, Arial, sans-serif);
  letter-spacing: normal;
}
.privacy-preferences[hidden] { display: none; }
.privacy-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.privacy-heading strong { font-size: 13px; font-weight: 600; }
.privacy-heading a { color: var(--muted, #625f59); font-size: 12px; text-underline-offset: 3px; }
.privacy-preferences p { margin: 7px 0 14px; color: var(--muted, #625f59); }
.privacy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.privacy-actions button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line, #dedbd3);
  border-radius: 6px;
  background: var(--white, #fff);
  color: var(--ink, #0a0a0a);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.privacy-actions button:hover { background: var(--paper2, #f2efe8); border-color: var(--control, #8d8880); }
.privacy-preferences :focus-visible { outline: 2px solid var(--teal, #177c80); outline-offset: 3px; }
@media (max-width: 480px) {
  .privacy-preferences {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
}
