/* Teano PWA — ciemny motyw (jedyny), tokeny z android/.../ui/theme/Color.kt i Tokens.kt.
   Typografia: jeden krój Jost (jak NOTEA DS v2) — hierarchia rozmiarem, wagą i WERSALIKAMI.
   Role (TeanoText): displayL 26/32 caps · titleXL 22/28 caps · titleL 19/25 · titleM 13/18 caps ·
   bodyL 16/24 · bodyM 14.5/21 · caption 12.5/17 · labelCaps 11/16 caps · quote 18/27 light ·
   numeralXL 52 · numeralL 34 · numeralM 24 (light, cyfry tabelaryczne). Kolory tekstu: biel + złoto. */
@font-face {
  font-family: "Jost"; src: url(fonts/jost.ttf) format("truetype");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
:root {
  --night-top: #0D0B26; --night-mid: #1B1445; --night-bottom: #2E1D5C;
  --surface: rgba(23, 18, 51, .62); --surface-hi: rgba(34, 27, 71, .75);
  --outline: rgba(183, 166, 255, .16);
  --ink: #F5EFE4; --ink-muted: #C9C0D8; --ink-faint: #9A92AC;
  --gold: #F4C97A; --gold-dim: rgba(244, 201, 122, .45); --purple: #6D4AFF; --lilac: #B7A6FF;
  --medallion: #14102B;
  --alert: #E57373;
  --radius: 24px; --radius-m: 20px;
  --font: "Jost", "Futura", "Century Gothic", -apple-system, system-ui, sans-serif;
  --tabbar: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--night-top); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 16px/1.5 var(--font);
  background: linear-gradient(180deg, var(--night-top), var(--night-mid) 55%, var(--night-bottom));
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; overflow-x: hidden;
}
#bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(img/bg.jpg) center top / cover no-repeat; opacity: .55;
}
#bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,38,.15), rgba(13,11,38,.65) 70%); }

#view {
  max-width: 560px; margin: 0 auto; outline: none; min-width: 0;
  padding: calc(env(safe-area-inset-top) + 18px) calc(16px + env(safe-area-inset-right)) calc(var(--tabbar) + env(safe-area-inset-bottom) + 24px) calc(16px + env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 16px;
}
#view.no-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
#view > * { min-width: 0; }

/* ---------- Typografia ---------- */
h1, .display-l { font-size: 26px; line-height: 32px; font-weight: 400; margin: 0; letter-spacing: 2.6px; text-transform: uppercase; overflow-wrap: break-word; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 400; margin: 0; letter-spacing: 2px; text-transform: uppercase; }
p { margin: 0; }
.t-xl { font-size: 22px; line-height: 28px; font-weight: 400; letter-spacing: 2.2px; text-transform: uppercase; overflow-wrap: break-word; }
.t-l { font-size: 19px; line-height: 25px; font-weight: 400; letter-spacing: .2px; }
.t-m { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; }
.t-s { font-size: 15px; line-height: 21px; font-weight: 500; }  /* titleSmall Materiala (kalendarz) */
.body-l { font-size: 16px; line-height: 24px; }
.body-m { font-size: 14.5px; line-height: 21px; }
.caption { font-size: 12.5px; line-height: 17px; }
.label { font: 500 11px/16px var(--font); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); }
.quote { font-size: 18px; line-height: 27px; font-weight: 300; }
.quote-s { font-size: 15px; line-height: 22px; font-weight: 300; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.gold { color: var(--gold); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.strong { font-weight: 500; }
.pre { white-space: pre-line; }
.prose { display: flex; flex-direction: column; gap: 12px; }
blockquote { margin: 0; font-size: 18px; font-weight: 300; line-height: 27px; color: var(--gold); }

/* ---------- Nagłówki ekranów ---------- */
.hello { padding: 6px 4px 0; display: flex; flex-direction: column; gap: 4px; }
/* ScreenHeader: strzałka wstecz + tytuł displayL */
.screen-head { display: flex; align-items: center; gap: 4px; margin: -6px 0 -4px -10px; min-width: 0; }
.screen-head h1 { min-width: 0; font-size: clamp(20px, 6.4vw, 26px); }
.back-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--gold);
}
.back-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-btn:active { background: rgba(244, 201, 122, .12); }

/* ---------- Szkło ---------- */
.glass {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  color: inherit; text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.18);
}
.glass.tight { gap: 8px; padding: 16px; }
/* HeroCard — jako jedyna nosi złotą nitkę i fioletową poświatę */
.glass.hero {
  padding: 24px; gap: 8px; border: 1px solid transparent;
  background: linear-gradient(rgba(27, 21, 60, .70), rgba(27, 21, 60, .70)) padding-box,
              linear-gradient(135deg, rgba(244,201,122,.45), rgba(255,255,255,.14), rgba(244,201,122,.20)) border-box;
  box-shadow: 0 14px 40px rgba(109,74,255,.28), 0 6px 20px rgba(0,0,0,.25);
  cursor: pointer;
}
a.glass, button.glass { cursor: pointer; }
button.glass { font: inherit; text-align: left; width: 100%; }

.hero-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hero-row > div:not(.numeral-xl) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.numeral-xl { font-size: 52px; line-height: 58px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--gold); flex: none; }
.numeral-l { font-size: 34px; line-height: 40px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--gold); }
.action-link { align-self: flex-end; color: var(--gold); font-size: 14.5px; line-height: 21px; background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: inherit; text-decoration: none; }

/* NumberBadge — liczba w złotym kręgu */
.badge {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(244,201,122,.55); color: var(--gold);
  font-size: 24px; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums;
}
.badge.lg { width: 64px; height: 64px; font-size: 34px; }
.num-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.num-row > div:not(.badge) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }

/* StatisticTile */
.stats { display: flex; gap: 24px; }
.stats.even { gap: 16px; }
.stats.even .stat { flex: 1; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.stat .label { text-align: center; color: var(--ink-muted); }

/* ---------- Wiersze listy (ListItem) ---------- */
.list-item {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-m);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  color: var(--ink); text-decoration: none; cursor: pointer; width: 100%; font: inherit; text-align: left;
  box-shadow: 0 6px 22px rgba(0,0,0,.14); min-width: 0;
}
.list-item > .li-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-item .li-sub { color: var(--gold); font-size: 14.5px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-sub.wrap { white-space: normal; color: var(--ink-muted); }
.medallion { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; background: var(--medallion); display: grid; place-items: center; overflow: hidden; }
.chev { color: var(--gold); font-size: 22px; line-height: 1; flex: none; }

/* ---------- LockedNote ---------- */
.locked {
  border-radius: var(--radius-m); border: 1px solid var(--gold-dim); padding: 16px;
  background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.glass .locked { background: rgba(255,255,255,.04); -webkit-backdrop-filter: none; backdrop-filter: none; }
.locked .t-m { color: var(--ink); }

/* ---------- Przyciski / pola ---------- */
.btn {
  appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; min-height: 52px; padding: 12px 24px;
  font: 500 13px/18px var(--font); letter-spacing: 2.6px; text-transform: uppercase;
  background: var(--purple); color: #fff; cursor: pointer; width: 100%;
  box-shadow: 0 6px 24px rgba(109,74,255,.30); /* fiolet marki — jak PrimaryButton w apce */
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
}
.btn:disabled { background: rgba(245,239,228,.12); color: rgba(245,239,228,.45); box-shadow: none; cursor: default; }
.btn.secondary { background: transparent; color: var(--gold); border: 1px solid rgba(183,166,255,.4); box-shadow: none; min-height: 48px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--outline); box-shadow: none; }
.btn.danger { background: transparent; color: var(--alert); border: 1px solid rgba(229,115,115,.35); box-shadow: none; }
.btn.auto { width: auto; }
.text-btn {
  appearance: none; border: 0; background: none; color: var(--gold); font: 500 14px/20px var(--font); letter-spacing: .3px;
  padding: 10px 12px; margin: 0 -12px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
}
.text-btn:active { background: rgba(244,201,122,.10); }
.text-btn.center { align-self: center; margin: 0; }
.text-row { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.text-row .text-btn { margin: 0 -12px; }
.field {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: 17px var(--font); color: var(--ink);
  background: var(--surface-hi); border: 1px solid var(--outline); min-height: 52px;
  -webkit-appearance: none; appearance: none;
}
.field:focus { outline: 2px solid var(--gold-dim); outline-offset: 1px; }
input[type=date].field { display: block; text-align: left; min-width: 0; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
.field-label { font: 500 14px/20px var(--font); color: var(--ink-muted); margin-bottom: -4px; }

/* Chipy (kategorie, propozycje, forma zwrotów) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(183,166,255,.35); background: transparent;
  color: var(--ink); font: 14px/20px var(--font); cursor: pointer; white-space: nowrap;
}
.chip.on { background: rgba(109,74,255,.35); border-color: rgba(183,166,255,.6); }
.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; padding: 12px; border-radius: 16px; border: 0; background: rgba(245,239,228,.06); color: var(--ink);
  font: 14px/20px var(--font); cursor: pointer;
}
.seg button.on { background: rgba(109,74,255,.9); color: #fff; font-weight: 600; }

.disclaimer { font-size: 12.5px; line-height: 17px; color: var(--ink-faint); text-align: center; padding: 0 8px; white-space: pre-line; }

/* ---------- Dzisiaj ---------- */
.moon-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.moon-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.moon-row svg { flex: none; }
.dot-list { display: flex; flex-direction: column; gap: 8px; }

/* Instalacja */
.install {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 18px; border: 1px solid var(--gold-dim); color: var(--ink);
  background: linear-gradient(90deg, rgba(244,201,122,.14), rgba(109,74,255,.16)); font: inherit;
}
.install > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.install small { color: var(--ink-muted); font-size: 13px; }
.install-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(244,201,122,.2); color: var(--gold); font-size: 20px; flex: none; }

/* ---------- Karty ---------- */
.cards-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cards-col > * { width: 100%; }
.deck { display: block; margin: 12px auto 0; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1000px; width: 220px !important; height: 300px; }
.deck img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block; box-shadow: 0 10px 50px rgba(109,74,255,.45), 0 0 0 1px var(--gold-dim); transition: transform .65s cubic-bezier(.4,.1,.2,1); animation: float 4s ease-in-out infinite; }
.deck.flip img { transform: rotateY(90deg) scale(1.05); animation: none; }
@keyframes float { 50% { transform: translateY(-6px); } }
.card-front { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: .72; background: var(--night-mid); box-shadow: 0 10px 50px rgba(109,74,255,.35); animation: reveal .6s cubic-bezier(.2,.8,.2,1); }
.card-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,11,38,.95)); }
.card-front .cf-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.card-front .cf-angel { font-size: 26px; line-height: 32px; letter-spacing: 2.6px; text-transform: uppercase; color: #fff; }
.card-front .cf-name { font-size: 19px; line-height: 25px; color: var(--gold); }
.card-front .cf-motto { font-size: 18px; line-height: 27px; font-weight: 300; color: #fff; }
.card-front.compact { width: 72% !important; }
.card-front.compact .cf-angel { font-size: 20px; line-height: 26px; letter-spacing: 2px; }
.card-front.compact .cf-motto { font-size: 15.5px; line-height: 23px; }
@keyframes reveal { from { transform: scaleX(0); opacity: .4; } }
.details { display: flex; flex-direction: column; gap: 16px; }
.spread-pos { text-align: center; }

/* ---------- Kalendarz ---------- */
.month-head { display: flex; align-items: center; gap: 4px; }
.month-head .t-xl { flex: 1; text-align: center; }
.month-nav { width: 48px; height: 44px; border: 0; background: none; color: var(--gold); font: 300 28px/1 var(--font); cursor: pointer; border-radius: 999px; padding: 0 0 4px; }
.month-nav:active { background: rgba(244,201,122,.12); }
.cal { padding: 14px 10px; gap: 0; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow span { text-align: center; font-size: 11px; line-height: 16px; letter-spacing: .5px; color: var(--ink-muted); font-weight: 500; padding-bottom: 6px; }
.cal-grid { row-gap: 4px; }
.cal-cell { position: relative; aspect-ratio: 1; padding: 2px; }
.cal-day {
  width: 100%; height: 100%; border: 0; background: none; color: var(--ink); border-radius: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0; font-family: inherit;
}
.cal-day.today { box-shadow: inset 0 0 0 1px rgba(109,74,255,.6); }
.cal-day.today .cd-n { font-weight: 700; }
.cal-day.sel { background: rgba(109,74,255,.18); box-shadow: none; }
.cd-n { font-size: 14px; line-height: 18px; }
.cd-v { font-size: 11px; line-height: 14px; letter-spacing: 1px; font-weight: 500; color: var(--gold); }
.cd-dot { width: 5px; height: 5px; border-radius: 50%; margin-top: 2px; background: transparent; }
.cd-dot.on { background: var(--gold); }
.cd-phase { position: absolute; top: 3px; right: 3px; line-height: 0; pointer-events: none; }
.cal-legend { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; line-height: 16px; color: var(--ink-muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.lg-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.lg-phases { display: inline-flex; gap: 3px; margin-right: 2px; line-height: 0; }

/* ---------- Krąg bliskich ---------- */
.person-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-m); }

/* ---------- Onboarding ---------- */
.ob { min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px); display: flex; flex-direction: column; gap: 18px; }
.ob-start { align-items: center; text-align: center; padding: 0 12px; }
.ob-start .grow { flex: 1.3; }
.ob-start .grow2 { flex: 1; }
.wordmark { font-size: 40px; line-height: 48px; font-weight: 300; margin: 0; color: var(--gold); letter-spacing: 10px; text-transform: uppercase; padding-left: 10px; }
.ob-tagline { font-size: 16px; line-height: 24px; color: var(--ink-muted); white-space: pre-line; margin-top: 12px; }
.ob-dots { display: flex; gap: 6px; padding-top: 8px; }
.ob-dots span { flex: 1; height: 5px; border-radius: 3px; background: rgba(245,239,228,.12); }
.ob-dots span.on { background: var(--purple); }
.ob-body { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.ob-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ob-emoji { width: 84px; height: 84px; border-radius: 50%; background: rgba(109,74,255,.14); display: grid; place-items: center; font-size: 36px; }
.ob-hero p { color: var(--ink-muted); white-space: pre-line; }
.ob-nav { display: flex; gap: 12px; align-items: center; }
.ob-nav .btn { flex: 1; min-height: 54px; }
.ob-nav .btn.back { flex: none; width: auto; padding: 0 22px; background: transparent; color: var(--gold); border: 1px solid rgba(183,166,255,.4); box-shadow: none; }
.choice {
  width: 100%; padding: 16px; border-radius: 18px; border: 0; background: rgba(245,239,228,.06); color: var(--ink);
  font: 16px/22px var(--font); text-align: center; cursor: pointer;
}
.choice.on { background: rgba(109,74,255,.9); color: #fff; font-weight: 600; }
.lang-link { font-size: 14px; }

/* ---------- Pasek zakładek ---------- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding: 6px calc(8px + env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 6px) calc(8px + env(safe-area-inset-left));
  background: rgba(13, 11, 38, .86); border-top: 1px solid var(--outline);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
#tabs[hidden] { display: none; }
#tabs a { flex: 1; max-width: 110px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 2px; color: var(--ink-faint); text-decoration: none; font-size: 9.5px; line-height: 12px; font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap; }
#tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#tabs .ti { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; box-sizing: content-box; padding: 4px 20px; border-radius: 16px; }
#tabs a.on { color: var(--gold); }
#tabs a.on .ti { background: rgba(244,201,122,.20); }

/* ---------- Arkusz / dialog ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5,4,15,.6); z-index: 20; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 560px; margin: 0 auto;
  background: #1B1445; border-radius: 26px 26px 0 0; border: 1px solid var(--outline); border-bottom: 0;
  padding: 10px calc(20px + env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 20px) calc(20px + env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 12px; max-height: 100dvh; overflow-y: auto;
  animation: up .28s cubic-bezier(.2,.8,.2,1);
}
.sheet h2 { margin-top: 6px; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--outline); margin: 0 auto; flex: none; }
.dialog {
  position: fixed; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(calc(100vw - 40px), 400px); max-height: calc(100dvh - 40px); overflow-y: auto;
  background: #221A4D; border: 1px solid var(--outline); border-radius: 28px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; animation: pop .2s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.dialog .dlg-title { font-size: 21px; line-height: 28px; font-weight: 400; }
.dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.dialog .dlg-actions .text-btn { margin: 0; }
.dialog .text-btn:disabled { color: rgba(245,239,228,.35); cursor: default; }
.radio-row { display: flex; align-items: center; gap: 14px; padding: 10px 4px; cursor: pointer; font-size: 16px; border: 0; background: none; color: var(--ink); width: 100%; text-align: left; font-family: inherit; border-radius: 12px; }
.radio-row .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-muted); flex: none; display: grid; place-items: center; }
.radio-row.on .rd { border-color: var(--gold); }
.radio-row.on .rd::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.steps li::marker { color: var(--gold); font-weight: 600; }
.steps small { color: var(--ink-faint); }
.ic { vertical-align: -4px; color: #4F9BFF; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }

/* ---------- Powiadomienia ---------- */
.switch-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--outline); cursor: pointer; }
.switch-row > span:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.switch-row small { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(245,239,228,.14); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-muted); transition: transform .2s, background .2s; }
.switch input:checked + i { background: var(--purple); }
.switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.note { font-size: 14px; line-height: 20px; color: var(--gold); }

/* ---------- Udostępnianie ---------- */
.share-prev { display: grid; place-items: center; min-height: 120px; }
.share-prev img { display: block; max-width: 100%; max-height: 48dvh; border-radius: 16px; box-shadow: 0 8px 36px rgba(0,0,0,.45), 0 0 0 1px var(--outline); }
.share-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Mapa Wysokich Wibracji ---------- */
.add-row { display: flex; gap: 8px; align-items: center; }
.add-row .field { flex: 1; min-width: 0; }
.add-row .btn { width: auto; flex: none; padding: 12px 20px; }
.hv-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hv-item button { border: 0; background: none; color: var(--ink-muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }

/* ---------- Paywall ---------- */
.benefits { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

/* Pasjans — pełny ekran pod pasjans.js */
#view.game { gap: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.stats.even .stat .label { max-width: 100%; letter-spacing: 1.2px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
