/* The analytics consent banner (analytics.js). Uses the shared tokens and .btn / .toggle components that the homepage (style.css) and the app (app.css)
   both compile in. Compact: one line of text with Settings and OK; .is-panel swaps in the settings panel (an analytics switch, Reject all, Save). */
.consent {
  position: fixed; z-index: 1000; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; max-width: min(440px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px; border-radius: var(--radius-xl, 16px);
  background: var(--color-surface-solid, #fff); color: var(--color-fg, #0b1416);
  box-shadow: 0 0 0 1px var(--color-line, rgba(0, 0, 0, .08)), var(--shadow-float, 0 12px 40px -12px rgba(0, 0, 0, .25));
  font: 400 var(--text-sm, .875rem)/1.4 var(--font-sans, system-ui, sans-serif);
  opacity: 0; transform: translateY(8px); transition: opacity 180ms var(--ease-out, ease-out), transform 180ms var(--ease-out, ease-out);
}
.consent.is-open { opacity: 1; transform: none; }
.consent.is-panel { padding: 16px; }
.consent-text { margin: 0; flex: 1 1 180px; color: var(--color-fg-2, #33424a); }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.consent-panel { display: grid; gap: 14px; width: 100%; }
.consent-title { margin: 0; font-weight: var(--font-weight-semibold, 600); font-size: var(--text-md, 1rem); color: var(--color-fg, #0b1416); }
.consent-row { display: flex; align-items: flex-start; gap: 16px; }
.consent-row-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.consent-row-t b { font-weight: var(--font-weight-label, 500); color: var(--color-fg, #0b1416); }
.consent-row-t span { color: var(--color-fg-3, #5b6b73); }
.consent-panel .consent-actions { justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
