/* The cookie banner (public/consent.js). Self-contained: it appears on the
   sign-in page, the legal pages and the app, which each have their own
   stylesheet, so it carries its own colours and follows the app's skin where
   there is one and the device's light or dark setting where there is not. */
.cc {
  --cc-bg: rgba(20, 24, 30, .96); --cc-line: rgba(255, 255, 255, .12); --cc-ink: #eef2f6;
  --cc-ink2: #b8c2ce; --cc-ink3: #8b97a5; --cc-btn: rgba(255, 255, 255, .07); --cc-accent: #3d77b5;
  --cc-link: #8fb8e6; --cc-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  position: fixed; z-index: 2147483000; left: 16px; bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--cc-bg); color: var(--cc-ink); border: 1px solid var(--cc-line); border-radius: 18px;
  box-shadow: var(--cc-shadow); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  opacity: 0; transform: translateY(14px); transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .cc, html[data-theme="system"] .cc {
    --cc-bg: rgba(255, 255, 255, .97); --cc-line: rgba(16, 24, 40, .12); --cc-ink: #121820; --cc-ink2: #3a4553;
    --cc-ink3: #66727f; --cc-btn: rgba(16, 24, 40, .05); --cc-accent: #2f5c8f; --cc-link: #2f5c8f;
    --cc-shadow: 0 18px 50px rgba(16, 24, 40, .18);
  }
}
html[data-theme="day"] .cc {
  --cc-bg: rgba(255, 255, 255, .97); --cc-line: rgba(16, 24, 40, .12); --cc-ink: #121820; --cc-ink2: #3a4553;
  --cc-ink3: #66727f; --cc-btn: rgba(16, 24, 40, .05); --cc-accent: #2f5c8f; --cc-link: #2f5c8f;
  --cc-shadow: 0 18px 50px rgba(16, 24, 40, .18);
}
.cc.in { opacity: 1; transform: none; }
.cc.out { opacity: 0; transform: translateY(10px); }
.cc-in { padding: 18px 20px 16px; }
.cc h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--cc-ink); letter-spacing: -.005em; }
.cc p { margin: 0; color: var(--cc-ink2); }
.cc p b { color: var(--cc-ink); font-weight: 650; }
.cc a { color: var(--cc-link); text-underline-offset: 2px; white-space: nowrap; }
.cc-opts { margin: 14px 0 2px; border: 1px solid var(--cc-line); border-radius: 12px; overflow: hidden; }
.cc-opts[hidden] { display: none; }
.cc-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; }
.cc-row + .cc-row { border-top: 1px solid var(--cc-line); }
.cc-row.is-locked { cursor: default; }
.cc-t { flex: 1; min-width: 0; }
.cc-t b { display: block; color: var(--cc-ink); font-weight: 650; }
.cc-t em { display: block; font-style: normal; color: var(--cc-ink3); font-size: 13px; }
.cc-sw { position: relative; flex: none; width: 42px; height: 26px; }
.cc-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.cc-sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--cc-btn); border: 1px solid var(--cc-line);
  transition: background .18s ease, border-color .18s ease; pointer-events: none; }
.cc-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cc-ink3); transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .18s ease; }
.cc-sw input:checked + i { background: var(--cc-accent); border-color: var(--cc-accent); }
.cc-sw input:checked + i::after { transform: translateX(16px); background: #fff; }
.cc-sw input:disabled + i { opacity: .6; }
.cc-sw input:focus-visible + i { outline: 2px solid var(--cc-link); outline-offset: 2px; }
.cc-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.cc-btn { font: inherit; font-weight: 650; font-size: 14px; color: var(--cc-ink); background: var(--cc-btn);
  border: 1px solid var(--cc-line); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 40px; }
.cc-btn:hover { border-color: var(--cc-accent); }
.cc-btn:focus-visible { outline: 2px solid var(--cc-link); outline-offset: 2px; }
.cc-btn.cc-go { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-btn.cc-link { background: none; border-color: transparent; color: var(--cc-link); margin-right: auto; padding-left: 4px; }
.cc-said { position: fixed; z-index: 2147483000; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px); opacity: 0; transition: opacity .2s ease, transform .24s ease;
  background: rgba(20, 24, 30, .94); color: #eef2f6; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  padding: 9px 16px; font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: calc(100vw - 32px); text-align: center; }
.cc-said.in { opacity: 1; transform: translate(-50%, 0); }

/* phones: the full width, above the app's tab bar, buttons as a column a thumb can reach */
@media (max-width: 560px) {
  .cc { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; }
  html.touch .cc { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .cc-in { padding: 16px 16px 14px; }
  .cc-acts { flex-direction: column-reverse; align-items: stretch; }
  .cc-btn { width: 100%; min-height: 44px; }
  .cc-btn.cc-link { margin-right: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cc, .cc-said { transition: none; } }
@media print { .cc, .cc-said { display: none !important; } }
