:root { --bg:#f4f5f7; --col:#ebecf0; --card:#fff; --text:#172b4d; --muted:#6b778c; --accent:#0c66e4; --danger:#c9372c; --line:#d5d9e0; --btn:#dde1e7; --btn-hover:#cdd3dc; --btn-edge:rgba(23,43,77,.16); }
@media (prefers-color-scheme: dark) { :root { --bg:#1d2125; --col:#282e33; --card:#22272b; --text:#c7d1db; --muted:#8c9bab; --accent:#579dff; --danger:#f87168; --line:#3b444c; --btn:#3a444d; --btn-hover:#4a5762; --btn-edge:rgba(255,255,255,.13); } }
* { box-sizing: border-box; }
[hidden] { display:none !important; }
html, body { height:100%; }
body { margin:0; font-family: system-ui, sans-serif; background:var(--bg); color:var(--text); display:flex; flex-direction:column; }
button { cursor:pointer; border:0; border-radius:6px; padding:6px 12px; background:var(--accent); color:#fff; font:inherit; }
button.ghost { background:transparent; color:var(--muted); padding:2px 6px; }
button.ghost:hover { color:var(--text); }
button.danger:hover { color:var(--danger); }
button.secondary { background:var(--col); color:var(--text); }
button.bad { background:var(--danger); }
button:disabled { opacity:.3; cursor:default; }
input, select, textarea { padding:7px 8px; border-radius:6px; border:1px solid var(--line); background:var(--card); color:var(--text); min-width:0; font:inherit; width:100%; }
textarea { resize:vertical; min-height:84px; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--accent); outline-offset:-1px; }
/* okrągłe plusiki */
.plus { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; flex:0 0 auto; border-radius:50%; background:var(--accent); color:#fff; font-size:19px; line-height:1; padding:0 0 2px; font-weight:400; }
.plus.sm { width:22px; height:22px; font-size:16px; }
button.plusbtn { background:var(--accent); color:#fff; border-radius:50%; width:26px; height:26px; padding:0 0 2px; font-size:19px; line-height:1; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
button.plusbtn.sm { width:22px; height:22px; font-size:16px; }
button.plusbtn:hover, button.pill:hover .plus { filter:brightness(1.12); }
button.pill { display:inline-flex; align-items:center; gap:8px; padding:3px 14px 3px 4px; border-radius:20px; background:var(--col); color:var(--text); }
button.pill:hover { background:var(--line); }
button.pill.sm { padding:2px 10px 2px 3px; font-size:.85rem; gap:6px; }

#login { display:flex; flex-direction:column; align-items:center; gap:12px; margin-top:15vh; }
#loginForm { display:flex; flex-direction:column; gap:10px; width:260px; }
#lerr { color:var(--danger); min-height:1.2em; margin:0; }

/* logowanie przez Google (przycisk dodaje skrypt Google, widoczny tylko gdy skonfigurowano identyfikator klienta) */
#googleBox { width:260px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.or { width:100%; display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; }
.or::before, .or::after { content:''; flex:1; border-top:1px solid var(--line); }
