/* LifeOS cookie banner: small, centred at the bottom. Uses site tokens when present, falls back to the same values. */
.lc {
  --lc-ink: var(--text-primary, #1c1c1e);
  --lc-ink-2: var(--text-secondary, #48484d);
  --lc-bg: var(--bg-elevated, #fcfcfd);
  --lc-soft: var(--bg-subtle, #eeeef1);
  --lc-btn: var(--accent-primary, #151312);
  --lc-btn-hover: var(--accent-hover, #2e2c2b);
  --lc-on-btn: var(--text-on-accent, #fff);
  --lc-off: var(--border-strong, #a1a1a8); /* switch off: the kit's solid grey track, clearly lighter than the black «on» */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: flex; justify-content: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.lc[hidden] { display: none; }
.lc *, .lc *::before, .lc *::after { box-sizing: border-box; }
.lc [hidden] { display: none !important; } /* wins over the display set on links and buttons below */
.lc-card {
  position: relative; pointer-events: auto; max-width: 100%;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 14px 14px 22px;
  background: var(--lc-bg); color: var(--lc-ink); border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(20, 20, 32, .08), 0 6px 16px rgba(20, 20, 32, .1), 0 20px 48px rgba(20, 20, 32, .16);
  font-family: var(--sans, "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: -.005em; text-align: left; -webkit-font-smoothing: antialiased;
  animation: lc-in .32s cubic-bezier(.2, .8, .2, 1) both;
}
.lc-card:focus { outline: none; }
.lc-card:focus-visible { outline: 2px solid var(--lc-btn); outline-offset: 3px; }
.lc-main { display: flex; align-items: center; gap: 20px; }
.lc .lc-title { margin: 0; font-family: inherit; font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: -.012em; color: var(--lc-ink); }
.lc .lc-text { margin: 2px 0 0; max-width: none; font-size: 13px; line-height: 1.5; color: var(--lc-ink-2); }
.lc-links { display: inline-flex; gap: 12px; margin-left: 6px; white-space: nowrap; }
.lc .lc-link {
  position: relative; display: inline; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: inherit; letter-spacing: 0; color: var(--lc-ink-2);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
/* the tap area is taller than the line of text */
.lc .lc-link::after { content: ""; position: absolute; left: -6px; right: -6px; top: -8px; bottom: -8px; }
@media (hover: hover) { .lc .lc-link:hover { color: var(--lc-ink); } }
.lc-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.lc .lc-btn {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 44px; margin: 0; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--lc-btn); color: var(--lc-on-btn); cursor: pointer; white-space: nowrap;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: -.005em;
  transition: background-color .2s, transform .2s;
}
@media (hover: hover) { .lc .lc-btn:hover { background: var(--lc-btn-hover); } }
.lc .lc-btn:active { transform: scale(.98); }
/* outside the regions the second answer is a quiet button */
.lc .lc-reject { padding: 0 16px; background: transparent; color: var(--lc-ink-2); }
@media (hover: hover) { .lc .lc-reject:hover { background: var(--lc-soft); color: var(--lc-ink); } }
/* in the regions both answers weigh the same */
.lc.lc--eq .lc-reject { padding: 0 22px; background: var(--lc-btn); color: var(--lc-on-btn); }
@media (hover: hover) { .lc.lc--eq .lc-reject:hover { background: var(--lc-btn-hover); } }
/* settings: the same banner grows upwards */
.lc.lc--set .lc-card { width: 400px; padding: 16px 18px 14px; }
.lc-set .lc-title { margin-bottom: 4px; padding-right: 36px; }
.lc-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; margin: 0; cursor: pointer; }
.lc-opt b { display: block; font-weight: 500; font-size: 14px; line-height: 1.35; }
.lc-opt small { display: block; color: var(--lc-ink-2); font-size: 12px; line-height: 1.4; }
.lc-setfoot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 8px; }
.lc .lc-back { margin-right: auto; }
.lc-sw { position: relative; flex: none; width: 44px; height: 26px; }
.lc-sw input { position: absolute; inset: -9px 0; width: 100%; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.lc-sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--lc-off); transition: background-color .2s; pointer-events: none; }
.lc-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.lc-sw input:checked + i { background: var(--lc-btn); }
.lc-sw input:checked + i::after { transform: translateX(18px); }
.lc-sw input:focus-visible + i { outline: 2px solid var(--lc-btn); outline-offset: 3px; }
.lc .lc-x {
  position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--lc-ink-2); cursor: pointer;
}
.lc .lc-x[hidden] { display: none; }
@media (hover: hover) { .lc .lc-x:hover { background: var(--lc-soft); color: var(--lc-ink); } }
.lc button:focus-visible, .lc a:focus-visible { outline: 2px solid var(--lc-btn); outline-offset: 3px; }

/* narrow screens: words on top, the two answers side by side under them */
@media (max-width: 719px) {
  .lc { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .lc-card, .lc.lc--set .lc-card { width: 100%; max-width: 440px; max-height: calc(100dvh - 20px); padding: 14px 12px 12px; }
  .lc-main { flex-direction: column; align-items: stretch; gap: 12px; }
  .lc-copy { padding: 0 6px; }
  .lc-links { display: flex; margin: 6px 0 0; }
  .lc-set { padding: 0 6px; }
  .lc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lc .lc-btn, .lc .lc-reject, .lc.lc--eq .lc-reject { padding: 0 8px; }
  .lc .lc-save { padding: 0 22px; }
  .lc .lc-reject { background: var(--lc-soft); color: var(--lc-ink); }
}
@media (max-width: 339px) { .lc-actions { grid-template-columns: 1fr; } }
/* footer entry on the home page: looks like the links around it */
.ft-grid .ft-cookie--list { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--text-muted); transition: color .2s; }
@media (hover: hover) { .ft-grid .ft-cookie--list:hover { color: var(--text-primary); } }
@media (max-width: 759px) { .ft-grid .ft-cookie--list { padding: 8px 0; } }
@keyframes lc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
