@import url("fonts/fonts.css");
/* podstawy, które w pokazie dodawała platforma Claude */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Layout: one column app with a sticky header (menu left, account right); views switch between Start, Dołącz, Logowanie, Kalendarz, Czaty, Profil, Panel */
:root {
  --bg: #FFF5EF;
  --surface: #FFFFFF;
  --soft: #FFE3D5;
  --fg: #1E3638;
  --muted: #5E7577;
  --peach: #EE8466;
  --peach-ink: #B9502F;
  --sea: #1F7F80;
  --sea-soft: #D3EEEC;
  --line: #F1D9CC;
  --on-accent: #FFFFFF;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12201F; --surface: #1A2C2B; --soft: #3A2A25; --fg: #F7EAE3; --muted: #A9BDBB;
    --peach: #F49C7F; --peach-ink: #F7B39C; --sea: #5CC2BE; --sea-soft: #1E3B3A; --line: #2C403E; --on-accent: #12201F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12201F; --surface: #1A2C2B; --soft: #3A2A25; --fg: #F7EAE3; --muted: #A9BDBB;
  --peach: #F49C7F; --peach-ink: #F7B39C; --sea: #5CC2BE; --sea-soft: #1E3B3A; --line: #2C403E; --on-accent: #12201F;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.demo-bar { background: var(--sea); color: var(--on-accent); font-size: .85rem; text-align: center; padding-block: 6px; }
.demo-bar .wrap { display: block; }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px 18px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.35rem; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 0; }
.logo small { font-family: var(--body); font-size: .7rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 1px 8px; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 99px; cursor: pointer; }
nav.tabs button[aria-current="page"] { background: var(--peach); color: var(--on-accent); }
nav.tabs button.admin-tab { color: var(--sea); }
nav.tabs button.admin-tab[aria-current="page"] { background: var(--sea); color: var(--on-accent); }
.account { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.me-btn { display: flex; gap: 8px; align-items: center; font: inherit; font-weight: 700; border: 0; background: var(--surface); color: var(--fg); padding: 4px 12px 4px 4px; border-radius: 99px; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label.chip:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }

.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--on-accent); background: var(--sea); object-fit: cover; }
.avatar.big { width: 112px; height: 112px; font-size: 2.4rem; }
.avatar.c1 { background: var(--peach); } .avatar.c2 { background: var(--peach-ink); } .avatar.c3 { background: var(--muted); }

main { padding-block: 28px 64px; }
section.view { display: grid; gap: 28px; }

/* Start */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.hero > div { min-width: 0; display: grid; gap: 16px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.hero svg { width: 100%; height: auto; max-width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { font: inherit; font-weight: 800; border: 0; border-radius: 99px; padding: 12px 22px; cursor: pointer; background: var(--peach); color: var(--on-accent); justify-self: start; }
.btn.sea { background: var(--sea); }
.btn.ghost { background: transparent; color: var(--sea); border: 2px solid var(--sea); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--peach-ink); border: 2px solid var(--peach-ink); }
.btn:disabled { opacity: .55; cursor: default; }
.linkish { font: inherit; background: none; border: 0; color: var(--sea); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.story { background: var(--surface); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; }
.story p { max-width: 65ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; align-content: start; }
.step .n { font-family: var(--display); color: var(--peach); font-size: 1.6rem; }
.vibe { background: var(--sea-soft); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.vibe ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner { border: 2px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.partner.first { background: var(--soft); border-color: var(--soft); }
.initiatives { display: grid; gap: 14px; }
.init-head { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.init-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.en-hero { display: grid; gap: 14px; max-width: 720px; }
.en-hero .lead { font-size: 1.12rem; color: var(--muted); }
.poll-opt { text-align: left; }
.init-grid .partner .btn { justify-self: start; }
.init-grid .partner small { color: var(--muted); }
.join-head { display: flex; gap: 12px 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; max-width: 680px; }
.budgets { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) { .init-grid { grid-template-columns: 1fr; } }
.intl { border: 2px dashed var(--sea); border-radius: var(--r); padding: 18px 22px; display: grid; gap: 6px; }
.lang-pill { display: inline-block; justify-self: start; font-size: .75rem; font-weight: 800; border-radius: 99px; padding: 1px 9px; background: var(--sea-soft); color: var(--sea); }
.lang-pill.en { background: var(--sea); color: var(--on-accent); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--peach-ink); }

/* Forms */
.card { background: var(--surface); border-radius: var(--r); padding: 24px; display: grid; gap: 22px; max-width: 680px; }
.card.narrow { max-width: 440px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-weight: 800; }
.hint { color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], textarea, select {
  font: inherit; color: var(--fg); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
label.chip { position: relative; cursor: pointer; }
label.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
label.chip span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 2px solid var(--line); background: var(--bg); font-weight: 600; }
label.chip input:checked + span { background: var(--sea); border-color: var(--sea); color: var(--on-accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consents { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--sea); }
.req { color: var(--peach-ink); font-weight: 800; }
.legal { font-size: .82rem; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.error { color: var(--peach-ink); font-weight: 700; }
.demo-note { border: 2px dashed var(--sea); border-radius: 14px; padding: 12px 14px; font-size: .9rem; display: grid; gap: 8px; }

/* Calendar */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 14px 16px; }
.date { text-align: center; background: var(--soft); border-radius: 14px; padding: 8px 4px; line-height: 1.1; }
.date b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 400; color: var(--peach-ink); }
.date span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.event .info { min-width: 0; display: grid; gap: 2px; }
.meta { color: var(--muted); font-size: .9rem; }
.spots { font-size: .8rem; font-weight: 800; color: var(--sea); }
.joined { font-weight: 800; color: var(--sea); }
.locked { font-size: .85rem; color: var(--muted); font-style: italic; }
.event.teaser .date b { color: var(--muted); }
.act { display: grid; gap: 6px; justify-items: start; }

/* Chats */
.chat { display: grid; grid-template-columns: 290px 1fr; background: var(--surface); border-radius: var(--r); overflow: hidden; height: min(640px, 76vh); min-height: 440px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px; display: grid; gap: 4px; align-content: start; }
.chat-list h4 { margin: 12px 8px 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chat-list button.item { font: inherit; text-align: left; border: 0; background: transparent; color: var(--fg); padding: 10px; border-radius: 12px; cursor: pointer; display: grid; gap: 1px; min-width: 0; }
.chat-list button.item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list button.item[aria-current="true"] { background: var(--soft); }
.chat-list .new { margin: 8px; justify-self: start; }
.conv { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; }
.conv-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.conv-head .back { display: none; }
.conv-head div { min-width: 0; }
.conv-head small { color: var(--muted); display: block; }
.msgs { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; display: grid; gap: 2px; }
.msg .who { font-size: .78rem; font-weight: 800; color: var(--sea); }
.msg .bubble { background: var(--bg); padding: 9px 13px; border-radius: 16px 16px 16px 4px; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; }
.msg.me .who { text-align: right; color: var(--peach-ink); }
.msg.me .bubble { background: var(--peach); color: var(--on-accent); border-radius: 16px 16px 4px 16px; }
.msg.sys { align-self: center; max-width: 100%; font-size: .82rem; color: var(--muted); text-align: center; }
.evcard { align-self: stretch; max-width: 460px; border: 2px solid var(--peach); border-radius: 16px; padding: 14px; display: grid; gap: 6px; background: var(--bg); }
form.send { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
form.send input { flex: 1; min-width: 0; }
.picker { padding: 16px; display: grid; gap: 8px; align-content: start; overflow-y: auto; }
.person { display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: var(--fg); background: var(--bg); border: 0; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.person div { min-width: 0; }
.person small { display: block; color: var(--muted); }
.gate { background: var(--surface); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; justify-items: start; max-width: 560px; }

/* Profile */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.profile .photo { display: grid; gap: 10px; justify-items: center; }
.profile .photo label { cursor: pointer; }
.profile .photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
dl.data { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
dl.data dt { color: var(--muted); }
dl.data dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Admin */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; }
.tile b { font-family: var(--display); font-weight: 400; font-size: 2.1rem; color: var(--sea); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: .9rem; }
.panel { background: var(--surface); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td .who { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.new-pill { display: inline-block; background: var(--peach); color: var(--on-accent); font-size: .7rem; font-weight: 800; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.att { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.att:first-of-type { border-top: 0; padding-top: 0; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.names span { background: var(--sea-soft); border-radius: 99px; padding: 2px 10px; font-size: .85rem; font-weight: 600; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }

/* Legal pages */
.doc { background: var(--surface); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; max-width: 760px; }
.doc h3 { margin-top: 12px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.member { display: grid; gap: 20px; max-width: 760px; }
.pending-bar { background: var(--soft); color: var(--fg); font-weight: 700; font-size: .92rem; padding-block: 10px; }
.chipbtn { font: inherit; font-size: .85rem; font-weight: 700; border: 2px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 99px; padding: 3px 12px; cursor: pointer; }
.chipbtn[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--on-accent); }
.chipbtn.no[aria-pressed="true"] { background: var(--peach-ink); border-color: var(--peach-ink); }
.pres > span:first-child { min-width: 90px; font-weight: 600; }
.member-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.member-top > div { min-width: 0; display: grid; gap: 4px; }
.incidents { display: grid; gap: 10px; }
.incident { display: grid; gap: 2px; border-left: 4px solid var(--sea); padding: 4px 12px; }
.incident.bad { border-color: var(--peach-ink); }
.incident .row { justify-content: space-between; }
.inc-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.inc-form .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .inc-form { grid-template-columns: 1fr; } }
.draft { background: var(--soft); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .9rem; }
.flag { display: inline-block; background: var(--soft); color: var(--peach-ink); font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.reported { background: var(--soft); color: var(--peach-ink); font-weight: 700; font-size: .88rem; padding: 8px 14px; }

/* Unread + feed */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--peach-ink); color: var(--on-accent); font-size: .72rem; font-weight: 800; line-height: 1; margin-left: 6px; font-variant-numeric: tabular-nums; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.item-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list button.item.unread small { color: var(--fg); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.feed { display: grid; gap: 20px; max-width: 560px; }
.post-form { gap: 14px; }
#post-preview img { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; }
.post { background: var(--surface); border-radius: var(--r); overflow: hidden; display: grid; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.post-head > div { min-width: 0; flex: 1; display: grid; }
.post-media img, .post-media svg { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.post-body { padding: 12px 14px 16px; display: grid; gap: 10px; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.reacts button { font: inherit; border: 2px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 99px; padding: 3px 11px; cursor: pointer; font-variant-numeric: tabular-nums; }
.reacts button[aria-pressed="true"] { border-color: var(--peach); background: var(--soft); font-weight: 800; }
.comments { display: grid; gap: 4px; font-size: .92rem; }
.comment b { margin-right: 6px; }
form.cmt { display: flex; gap: 8px; }
form.cmt input { flex: 1; min-width: 0; }

footer { border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-weight: 700; z-index: 20; max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 760px) {
  .hero, .steps, .partners, .two, .three, .profile { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .hero svg { max-width: 360px; }
  .event { grid-template-columns: 64px 1fr; }
  .event .act { grid-column: 1 / -1; }
  .chat { grid-template-columns: 1fr; }
  .chat.open .chat-list { display: none; }
  .chat:not(.open) .conv { display: none; }
  .conv-head .back { display: inline-block; }
  nav.tabs { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, nav.tabs button, label.chip span { transition: background .2s, color .2s, transform .15s; }
  .btn:active { transform: scale(.97); }
}

/* prawdziwa strona: dodatki */
.gate h2 { font-size: 1.6rem; }
button:disabled { cursor: progress; }
