/* Paczka Ekipy · styl "Aurora": czarne tło, rozmyta zorza, szklane karty, cienkie duże cyfry. */
@font-face { font-family: "Geist"; src: url(/fonts/geist/geist-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url(/fonts/geist/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #06070A;
  --fg: #F3F4F8;
  --muted: rgba(243, 244, 248, .56);
  --dim: rgba(243, 244, 248, .34);
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --glass-strong: rgba(22, 24, 34, .72);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --blurple: #5865F2;
  --blurple-2: #8EA1FF;
  --teal: #40D2C8;
  --pink: #EB5AAA;
  --ok: #3DDC97;
  --ok-soft: rgba(61, 220, 151, .14);
  --warn: #F5B84A;
  --warn-soft: rgba(245, 184, 74, .14);
  --danger: #FF5D73;
  --danger-soft: rgba(255, 93, 115, .14);
  --grad: linear-gradient(120deg, #8EA1FF 0%, #40D2C8 50%, #EB5AAA 100%);
  --f: "Geist", -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-xl: 28px; --r-lg: 22px; --r: 18px; --r-sm: 13px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--f); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; overscroll-behavior-y: none; }
body.noscroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blurple-2); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }

/* ---------- tło: zorza ---------- */
.aurora { position: fixed; inset: -10vh -20vw auto; height: 70vh; pointer-events: none; z-index: 0; filter: blur(48px); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 55vw; height: 40vh; left: 10vw; top: 6vh; background: radial-gradient(closest-side, rgba(88, 101, 242, .55), transparent); }
.aurora i:nth-child(2) { width: 45vw; height: 36vh; right: 12vw; top: 0; background: radial-gradient(closest-side, rgba(64, 210, 200, .32), transparent); }
.aurora i:nth-child(3) { width: 40vw; height: 34vh; left: 38vw; top: 22vh; background: radial-gradient(closest-side, rgba(235, 90, 170, .25), transparent); }
.aurora.strong { opacity: 1; height: 85vh; }
@media (prefers-reduced-motion: no-preference) {
  .aurora i { animation: drift 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation-duration: 27s; animation-delay: -6s; }
  .aurora i:nth-child(3) { animation-duration: 31s; animation-delay: -12s; }
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vh) scale(1.15); } }

/* ---------- układ ---------- */
/* Animacje wejścia mają fill-mode 'backwards': po zakończeniu nie zostaje transform,
   który tworzyłby kontekst warstw i więził arkusze (position: fixed) pod paskiem nawigacji. */
.app { position: relative; min-height: 100vh; }
/* bez z-index: arkusze (position: fixed) muszą móc przykryć pasek nawigacji */
.main { position: relative; max-width: 560px; margin: 0 auto; padding-bottom: calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
.wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.screen { display: flex; flex-direction: column; gap: 18px; }
@media (prefers-reduced-motion: no-preference) {
  /* sam ekran tylko się rozjaśnia; przesuwa się treść w środku. Transform na .screen
     przesuwałby też elementy position: fixed (np. przycisk +), które potem „przeskakiwały”. */
  .screen { animation: fade .4s var(--ease) backwards; }
  .screen > .wrap { animation: in .4s var(--ease) backwards; }
  .stagger > * { animation: in .45s var(--ease) backwards; }
  .stagger > *:nth-child(2) { animation-delay: .03s; } .stagger > *:nth-child(3) { animation-delay: .06s; }
  .stagger > *:nth-child(4) { animation-delay: .09s; } .stagger > *:nth-child(5) { animation-delay: .12s; } .stagger > *:nth-child(n+6) { animation-delay: .15s; }
  .press { transition: transform .18s var(--ease), background .2s, border-color .2s, opacity .2s; }
  .press:active { transform: scale(.975); }
}
@keyframes in { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pt { padding-top: calc(20px + env(safe-area-inset-top)); }
.pad { padding: 16px; }
.mt { margin-top: 14px; } .mt-s { margin-top: 6px; } .mb { margin-bottom: 10px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap { gap: 12px; } .gap-s { gap: 8px; } .gap-l { gap: 22px; }
.grow { flex: 1; } .min0 { min-width: 0; }
.wrap-row { flex-wrap: wrap; }
.center { text-align: center; justify-content: center; } .center-x { align-items: center; justify-content: center; }
.end { align-items: flex-end; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); } .up { text-transform: uppercase; }
.danger-t { color: var(--danger) !important; } .ok-t { color: var(--ok); }
.break { word-break: break-all; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.grad-t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- szkło ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
a.glass:hover, button.glass:hover { border-color: var(--line-2); }

/* ---------- nagłówek ---------- */
.hdr { display: flex; align-items: center; gap: 12px; padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 12px; position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(6, 7, 10, .96) 72%, rgba(6, 7, 10, 0)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hdr h1, .h-title { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; flex: 1; min-width: 0; }
.hdr.back h1 { font-size: 19px; letter-spacing: -.02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-btn { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; }
.grp-btn .sub { font-size: 13px; color: var(--muted); }
.grp-btn .title { font-size: 30px; font-weight: 600; letter-spacing: -.04em; display: flex; align-items: center; gap: 6px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-btn .title .ic { color: var(--muted); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--glass); border: 1px solid var(--line); position: relative; }
.icon-spacer { width: 42px; flex: none; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- typografia ---------- */
.display { font-size: 46px; font-weight: 600; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.display.sm { font-size: 32px; letter-spacing: -.04em; line-height: 1.05; }
.display.xs { font-size: 24px; letter-spacing: -.03em; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 16px; color: var(--muted); }
.lbl { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.sub-h { font-size: 15px; font-weight: 600; margin: 18px 0 10px; }

/* ---------- avatary ---------- */
.av { border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 600; background: var(--glass-2); position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(142, 161, 255, .7), 0 18px 40px -12px rgba(88, 101, 242, .7); }
.av.more { background: var(--glass-2); color: var(--muted); font-weight: 600; }
.av-img { border-radius: 50%; }
.stack { display: flex; } .stack .av { box-shadow: 0 0 0 2px var(--bg); } .stack .av + .av { margin-left: -10px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; padding: 12px 18px; font-weight: 600; font-size: 15px; background: var(--glass-2); border: 1px solid var(--line-2); min-height: 46px; }
.btn.primary { background: var(--fg); color: #0B0C12; border-color: transparent; }
.btn.primary.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: var(--glass); }
.btn.big { min-height: 54px; font-size: 16px; border-radius: 17px; }
.linkbtn { color: var(--blurple-2); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--glass); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--fg); color: #0B0C12; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.x-mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--muted); flex: none; }
.as-btn { width: 100%; text-align: left; }
.as-text { text-align: left; display: flex; flex-direction: column; }
.fab { position: fixed; right: max(20px, calc(50vw - 260px)); bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 20px; background: var(--fg); color: #0B0C12; display: grid; place-items: center; z-index: 25; box-shadow: 0 16px 40px -10px rgba(142, 161, 255, .6); }

/* ---------- pola ---------- */
.field { width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 16px; min-height: 48px; appearance: none; -webkit-appearance: none; }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
select.field option { background: #15171F; }
textarea.field { resize: vertical; min-height: 96px; line-height: 1.45; }
.field::placeholder { color: var(--dim); }
.field:focus { outline: 0; border-color: rgba(142, 161, 255, .7); box-shadow: 0 0 0 4px rgba(88, 101, 242, .2); }
.field.sm { min-height: 40px; padding: 8px 12px; font-size: 14px; width: auto; max-width: 60%; border-radius: 12px; }
.w-90 { width: 90px !important; text-align: right; }
.day-sel { width: 96px; flex: none; }
.code-in { letter-spacing: .4em; font-weight: 600; font-size: 18px; }
.field-wrap { position: relative; } .field-ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- toggle / segment ---------- */
.toggle { width: 48px; height: 29px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.toggle[aria-checked="true"] { background: var(--ok); }
.toggle[aria-checked="true"]::after { transform: translateX(19px); }
.seg { display: flex; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); gap: 2px; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); position: relative; transition: background .2s, color .2s; white-space: nowrap; }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--fg); }
.dot-badge { font-style: normal; font-size: 11px; margin-left: 5px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--fg); }
.sticky-tabs { position: sticky; top: calc(66px + env(safe-area-inset-top)); z-index: 21; }
.sticky-tabs .seg { background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* ---------- sekcje i listy ---------- */
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-h h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.sec-h > span { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--r); width: 100%; text-align: left; }
.rc-main { flex: 1; min-width: 0; }
.rc-name { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-sub { color: var(--muted); font-size: 13px; }
.dd { text-align: right; min-width: 44px; line-height: 1; color: var(--muted); }
.dd b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -.05em; color: var(--fg); }
.dd small { font-size: 11px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; margin-top: 6px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.rose { background: var(--danger-soft); color: var(--danger); } .tag.me { background: rgba(255, 255, 255, .07); color: var(--muted); }
.type-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(142, 161, 255, .14); color: var(--blurple-2); flex: none; }
.type-ic.sm { width: 36px; height: 36px; border-radius: 12px; }
.type-ic.big { width: 52px; height: 52px; }
.type-ic.xl { width: 78px; height: 78px; border-radius: 26px; }
.type-ic.santa { background: linear-gradient(135deg, rgba(255, 93, 115, .25), rgba(235, 90, 170, .2)); color: #FF9AA8; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r); width: 100%; text-align: left; }
.pick-row.on { border-color: rgba(142, 161, 255, .6); }
.note { padding: 13px 15px; border-radius: var(--r); font-size: 14px; color: var(--muted); }
.note b { color: var(--fg); }
.note .ic { color: var(--blurple-2); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty b { color: var(--fg); font-size: 16px; } .empty p { max-width: 34ch; font-size: 14px; }
.empty-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--glass-2); color: var(--blurple-2); margin-bottom: 4px; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--teal)); border-radius: 99px; transition: width .5s var(--ease); }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--r-xl); position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(142, 161, 255, .9), rgba(64, 210, 200, .7), transparent); }
.hero-top { display: flex; justify-content: space-between; gap: 12px; }
.hero-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-name { font-size: 34px; font-weight: 600; letter-spacing: -.05em; line-height: 1.02; overflow-wrap: anywhere; }
.hero-date { color: var(--muted); font-size: 14px; }
.hero-ring { position: relative; width: 92px; height: 92px; flex: none; align-self: flex-start; }
.ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; line-height: 1; }
.ring-n b { display: block; font-size: 32px; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ring-n b.long { font-size: 25px; letter-spacing: -.03em; }
.ring-n small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.hero-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 17px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); }
.hf-t { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); }
.hf-t b { display: block; color: var(--fg); font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-r { text-align: center; line-height: 1.1; } .hf-r span { font-size: 18px; font-weight: 500; } .hf-r small { display: block; font-size: 10.5px; color: var(--muted); }
.mini-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 7px; overflow: hidden; } .mini-bar i { display: block; height: 100%; background: var(--grad); }
.todo-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 2px; scroll-snap-type: x proximity; }
.todo-scroll::-webkit-scrollbar { display: none; }
.todo { flex: none; width: 230px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; color: var(--muted); scroll-snap-align: start; }
.todo b { color: var(--fg); }
.todo-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(235, 90, 170, .16); color: #FF9BD0; flex: none; }

/* ---------- ekran wydarzenia ---------- */
.ahead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.pill b { font-size: 15px; font-weight: 600; }
.idea { padding: 14px; display: flex; flex-direction: column; gap: 12px; position: relative; border-radius: var(--r-lg); }
.idea.chosen { border-color: rgba(61, 220, 151, .5); background: linear-gradient(180deg, rgba(61, 220, 151, .1), var(--glass) 55%); }
.chosen-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); }
.idea-top { display: flex; gap: 12px; align-items: flex-start; }
.thumb { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; overflow: hidden; background: rgba(142, 161, 255, .13); color: var(--blurple-2); }
.thumb.sm { width: 44px; height: 44px; border-radius: 13px; }
.thumb.img { background: #fff; } .thumb.img img { width: 100%; height: 100%; object-fit: cover; }
.thumb.k-audio, .thumb.k-tech, .thumb.k-game { background: rgba(88, 101, 242, .16); color: #A3AFFF; }
.thumb.k-ticket, .thumb.k-travel, .thumb.k-sport { background: rgba(64, 210, 200, .14); color: #6FE6DE; }
.thumb.k-shirt, .thumb.k-beauty { background: rgba(235, 90, 170, .15); color: #FF9BD0; }
.thumb.k-book, .thumb.k-plant, .thumb.k-food { background: rgba(245, 184, 74, .14); color: #FFCE77; }
.thumb.k-wish { background: rgba(245, 184, 74, .14); color: var(--warn); }
.idea-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.idea-t b { font-size: 16px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 13px; }
.self { color: var(--warn); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.note-t { font-size: 13px; color: var(--muted); font-style: italic; }
.lnk { color: var(--blurple-2); display: inline-flex; align-items: center; gap: 3px; }
.price { font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.reserved { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--teal); background: rgba(64, 210, 200, .1); padding: 4px 10px 4px 4px; border-radius: 99px; align-self: flex-start; }
.acts { display: flex; align-items: center; gap: 8px; }
.vote { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; }
.vote.up.on { background: var(--ok-soft); border-color: rgba(61, 220, 151, .6); color: var(--ok); }
.vote.down.on { background: var(--danger-soft); border-color: rgba(255, 93, 115, .6); color: var(--danger); }
.voters { display: flex; margin-left: 2px; } .voters .av { box-shadow: 0 0 0 2px #10121A; } .voters .av + .av { margin-left: -7px; }
.pick { margin-left: auto; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--fg); color: #0B0C12; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pick.on { background: var(--ok); color: #04210F; }
.idea-more { border-top: 1px solid var(--line); padding-top: 10px; }
.cm-toggle { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--muted); font-size: 13px; text-align: left; }
.cm-toggle b { color: var(--fg); font-weight: 600; white-space: nowrap; }
.cm-toggle .pv { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { transition: transform .25s var(--ease); } .chev.up { transform: rotate(180deg); }
.thread { display: flex; flex-direction: column; gap: 12px; }
.cm { display: flex; gap: 9px; align-items: flex-start; }
.bub { flex: 1; min-width: 0; background: rgba(255, 255, 255, .07); border-radius: 5px 17px 17px 17px; padding: 9px 12px; }
.bub .who { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bub .who span { color: var(--dim); font-weight: 500; flex: 1; }
.bub .who .x-mini { width: 20px; height: 20px; }
.bub p { margin-top: 2px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm.mine { flex-direction: row-reverse; } .cm.mine .bub { border-radius: 17px 5px 17px 17px; background: rgba(88, 101, 242, .2); }
.cm-form { display: flex; gap: 8px; align-items: center; }
.cm-form .field { border-radius: 99px; min-height: 44px; padding: 10px 16px; font-size: 15px; }
.send { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: #0B0C12; flex: none; }
.kinds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.kind { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); }
.kind.on { background: rgba(142, 161, 255, .2); border-color: rgba(142, 161, 255, .7); color: var(--fg); }
.preview-img { position: relative; width: 100%; height: 160px; border-radius: 16px; overflow: hidden; background: #fff; }
.preview-img img { width: 100%; height: 100%; object-fit: contain; }
.preview-img .x-mini { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; }

/* zrzutka */
.cost { display: flex; align-items: center; gap: 18px; border-radius: var(--r-lg); }
.donut { width: 120px; height: 120px; position: relative; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut-arc { transition: stroke-dashoffset .7s var(--ease); }
.donut-n { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.donut-n b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; } .donut-n small { font-size: 11px; color: var(--muted); }
.big { font-size: 36px; font-weight: 600; letter-spacing: -.05em; line-height: 1.05; }
.payer { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.payer:first-child { border-top: 0; padding-top: 0; } .payer:last-child { padding-bottom: 0; }
.payer b { display: block; font-weight: 600; } .payer .small { display: block; }
.payer.out { opacity: .5; }
.pay-info { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(64, 210, 200, .08); border: 1px solid rgba(64, 210, 200, .25); font-size: 14px; }
.pay-info .ic { color: var(--teal); }

/* wysyłka */
.ticket { border-radius: var(--r-lg); overflow: hidden; }
.ticket .t1 { padding: 16px 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, rgba(88, 101, 242, .2), rgba(64, 210, 200, .1)); }
.ticket .t2 { padding: 16px 18px; border-top: 2px dashed var(--line-2); position: relative; }
.ticket .t2::before, .ticket .t2::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.ticket .t2::before { left: -11px; } .ticket .t2::after { right: -11px; }
.code { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: .12em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.senders { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.sender { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 62px; }
.sender .av { transition: box-shadow .2s; }
.sender.on { color: var(--fg); } .sender.on .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ok); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps.two { grid-template-columns: 1fr 1fr; }
.step { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.step-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.step.on { color: var(--fg); border-color: rgba(61, 220, 151, .5); background: rgba(61, 220, 151, .08); }
.step.on .step-ic { background: var(--ok); color: #04210F; }

/* kartka */
.card-note { padding: 14px; border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; }
.card-note p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }

/* zablokowane */
.lock { text-align: center; padding: 28px 22px; border-radius: var(--r-xl); display: flex; flex-direction: column; align-items: center; gap: 10px; background: radial-gradient(80% 70% at 50% 0%, rgba(88, 101, 242, .22), transparent), var(--glass); }
.lock-ic { width: 66px; height: 66px; border-radius: 22px; background: var(--grad); color: #0B0C12; display: grid; place-items: center; box-shadow: 0 16px 36px -12px rgba(88, 101, 242, .8); }
.lock h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; }
.lock p { color: var(--muted); max-width: 32ch; }
.reveal { position: relative; overflow: hidden; text-align: center; padding: 34px 20px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 10px; align-items: center; background: radial-gradient(90% 80% at 50% 0%, rgba(235, 90, 170, .25), transparent), var(--glass); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.6%); width: 7px; height: 12px; border-radius: 2px; background: var(--grad); opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .confetti i { animation: fall 3.2s linear infinite; animation-delay: calc(var(--i) * -.37s); } }
@keyframes fall { to { transform: translateY(260px) rotate(540deg); opacity: 0; } }

/* mikołajki */
.santa-card { border-radius: var(--r-xl); min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 20px; text-align: center; background: radial-gradient(80% 70% at 50% 0%, rgba(255, 93, 115, .2), transparent), var(--glass); }
.santa-cover { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 20px; }
.santa-cover b { font-size: 18px; }
@media (prefers-reduced-motion: no-preference) { .santa-card.open > * { animation: in .5s var(--ease) backwards; } }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.pick-av { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--r); font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.pick-av .av { opacity: .45; filter: grayscale(.7); transition: all .2s; }
.pick-av.on { color: var(--fg); background: var(--glass); border-color: var(--line); }
.pick-av.on .av { opacity: 1; filter: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--blurple-2); }
.wish-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); }
.wish-row b { display: block; font-weight: 600; } .wish-row .small { display: block; }

/* aktywność */
.notif { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: var(--r); font-size: 14px; }
.n-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; flex: none; }
.notif.unread { border-color: rgba(142, 161, 255, .45); } .notif.unread .n-dot { background: var(--blurple-2); box-shadow: 0 0 10px var(--blurple-2); }
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.feed-row:first-child { border-top: 0; }
.feed-row b { color: var(--fg); font-weight: 600; }
.feed-av { position: relative; flex: none; }
.feed-ic { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #1B1E2B; border: 1px solid var(--line-2); color: var(--blurple-2); }

/* ludzie i profil */
.invite { padding: 16px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; background: linear-gradient(140deg, rgba(88, 101, 242, .18), rgba(64, 210, 200, .07)), var(--glass); }
.invite b { display: block; } .invite code, .glass code { font-family: var(--mono); font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); color: var(--muted); display: block; }
.dm { padding: 12px 14px; border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.dc-logo { width: 42px; height: 42px; border-radius: 14px; background: #5865F2; color: #fff; display: grid; place-items: center; flex: none; }
.dc-logo.sm { width: 24px; height: 24px; border-radius: 8px; }
.bot-tag { font-size: 9px; font-weight: 700; background: #5865F2; color: #fff; padding: 1px 4px; border-radius: 4px; vertical-align: 2px; margin-left: 3px; }
.av-edit { position: relative; border-radius: 50%; }
.av-cam { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--fg); color: #0B0C12; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.set-row { padding: 11px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; padding-top: 0; }
.set-row b { display: block; font-weight: 600; } .set-row .small { display: block; }
.help-list { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 4px; }

/* ---------- nawigacja ---------- */
.nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 24px)); display: flex; padding: 6px; border-radius: 26px; background: var(--glass-strong); border-color: var(--line-2); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .9); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--dim); transition: color .2s, background .2s; }
.nav a.on { color: var(--fg); background: rgba(255, 255, 255, .09); }
.nav-ic { position: relative; }
.nav .badge { top: -5px; right: -9px; }

/* ---------- arkusz ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; background: rgba(20, 22, 31, .94); border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet-grab { width: 40px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .2); margin: 9px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 8px 18px 4px; }
.sheet-head h2 { flex: 1; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.sheet-head .icon-btn { width: 36px; height: 36px; }
.sheet-body { overflow-y: auto; padding: 10px 18px 22px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
@media (prefers-reduced-motion: no-preference) {
  .sheet-wrap { animation: fade .2s ease both; }
  .sheet { animation: up .35s var(--ease) both; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; border-bottom: 1px solid var(--line); } }

/* ---------- toast, spinner, start ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top)); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(420px, calc(100% - 24px)); }
.toast { background: var(--fg); color: #0B0C12; font-weight: 600; font-size: 14px; padding: 11px 16px; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s; text-align: center; }
.toast.err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: drop .35s var(--ease) both; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
.spinner.big { width: 34px; height: 34px; border-width: 3px; color: var(--blurple-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.center.pad { padding: 60px 0; display: flex; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.logo-mark { width: 74px; height: 74px; border-radius: 24px; background: var(--grad); color: #0B0C12; display: grid; place-items: center; box-shadow: 0 20px 44px -14px rgba(88, 101, 242, .9); }
@media (prefers-reduced-motion: no-preference) { .boot .logo-mark { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }

/* ---------- logowanie ---------- */
.auth { min-height: 100vh; position: relative; display: flex; justify-content: center; }
.auth-in { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: calc(48px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 40px max(22px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 20px; justify-content: center; }

@media (min-width: 900px) { .main { padding-top: 10px; } }

/* ---------- nagłówek startu ---------- */
.home-hdr { gap: 14px; }
.me-av { flex: none; border-radius: 50%; }
.me-av .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(142, 161, 255, .55); }
.hello { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hello-t { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 9px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-chip:hover { color: var(--fg); border-color: var(--line-2); }
.side, .desk-only { display: none !important; }

/* ---------- komputer ---------- */
@media (min-width: 1024px) {
  :root { --side-w: 264px; }
  .mob-only, .nav { display: none !important; }
  .desk-only { display: inline-flex !important; }
  .side { display: flex !important; position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--side-w); flex-direction: column; gap: 6px; padding: 22px 16px 16px; background: rgba(10, 11, 16, .72); border-right: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .side-logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
  .side-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #0B0C12; box-shadow: 0 10px 24px -10px rgba(88, 101, 242, .9); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a, .side-groups button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: 14.5px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
  .side-nav a:hover, .side-groups button:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
  .side-nav a.on { background: rgba(255, 255, 255, .09); color: var(--fg); font-weight: 600; }
  .side-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
  .side-sec { margin: 22px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
  .side-groups { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
  .side-groups button { width: 100%; font-size: 14px; }
  .side-groups button.on { color: var(--fg); }
  .side-groups small { color: var(--dim); font-size: 12px; }
  .side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
  .side-groups button.on .side-dot { background: var(--grad); box-shadow: 0 0 10px rgba(142, 161, 255, .8); }
  .side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
  .side-me:hover { background: rgba(255, 255, 255, .06); }
  .side-me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-me small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .main { max-width: none; margin: 0 0 0 var(--side-w); padding: 18px 48px 64px; }
  .main > * { max-width: 980px; margin-left: auto; margin-right: auto; }
  .wrap { padding-left: 0; padding-right: 0; }
  .hdr { position: relative; padding-top: 26px; padding-bottom: 20px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hdr h1, .h-title { font-size: 34px; }
  .hello-t { font-size: 28px; }
  .home-hdr .btn.desk-only { flex: none; gap: 8px; padding-left: 18px; padding-right: 20px; }
  .grid-desk { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero { padding: 26px; }
  .hero-name { font-size: 44px; }
  .todo-scroll { margin: 0; padding: 0 0 2px; }
  .aurora i:nth-child(1) { left: calc(var(--side-w) + 5vw); }
  .toast-host, .toasts { left: calc(50% + var(--side-w) / 2); }
}
@media (min-width: 1400px) { .grid-desk { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
