/* ===== Projekt Siatkówka Malbork – style ===== */
:root {
  /* Paleta Projekt Siatkówka Malbork */
  --brand-navy: #143b60;
  --brand-charcoal: #383b3d;
  --brand-pink: #f35ebd;
  --brand-blue: #5fa5eb;
  --brand-light: #d8d8d8;
  --brand-gray: #827d81;

  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --line: #e2e2e3;
  --line-strong: var(--brand-light);
  --text: var(--brand-charcoal);
  --muted: #6c676b;           /* szary klubowy przyciemniony – czytelny na białym */
  --navy: var(--brand-navy);
  --navy-2: #1d4b77;
  --accent: var(--brand-pink);
  --accent-ink: #ffffff;
  --accent-soft: #fde8f5;
  --blue: var(--brand-blue);
  --blue-ink: #1e6bb8;        /* niebieski klubowy przyciemniony – do linków i tekstu */
  --primary: var(--brand-navy);
  --primary-ink: #ffffff;
  --link: var(--blue-ink);
  --ok: #15803d;
  --ok-bg: #e7f6ec;
  --warn: #b45309;
  --warn-bg: #fdf3e2;
  --bad: #c0264b;
  --bad-bg: #fcebef;
  --info-bg: #e8f2fd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 59, 96, .06), 0 4px 16px rgba(20, 59, 96, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1724; --surface: #15212f; --surface-2: #1b2939; --line: #2b3a4b; --line-strong: #3a4a5c; --text: #ecebec; --muted: #aaa5a9;
    --navy: #0b2238; --navy-2: #173a5c; --primary: var(--brand-blue); --primary-ink: #0b2238; --link: #8cc0f2; --blue-ink: #8cc0f2;
    --accent-soft: #3a1f33; --ok: #4ade80; --ok-bg: #11301f; --warn: #fbbf24; --warn-bg: #33270d;
    --bad: #f47a96; --bad-bg: #3a1722; --info-bg: #15304d; --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; word-break: break-all; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- Układ ----- */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); background-image: linear-gradient(180deg, rgba(95,165,235,.10), transparent 40%); color: #dfe6ee; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #d3dce6; font-weight: 500; border-left: 3px solid transparent; }
.nav a:hover { background: var(--navy-2); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(243, 94, 189, .2); color: #fff; font-weight: 700; border-left-color: var(--accent); }
.nav a.active svg { color: var(--accent); }
.nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 6px; }
.nav svg { width: 18px; height: 18px; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn.menu-btn { display: none; }
.content { padding: 22px 24px 60px; max-width: 1200px; width: 100%; }
.iconbtn { position: relative; background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px; color: var(--text); cursor: pointer; display: inline-flex; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.child-switch { max-width: 190px; }
.userchip { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 0 0 2px var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.backdrop-nav { display: none; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  body.nav-open .backdrop-nav { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
  .iconbtn.menu-btn { display: inline-flex; }
  .topbar { padding: 8px 12px; }
  .content { padding: 16px 16px 60px; }
  .userchip span { display: none; }
}

/* ----- Elementy ----- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card h2 svg, .ann-banner svg, h1 svg { width: 20px; height: 20px; flex: none; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { font-size: 1.6rem; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page-head h1 { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--blue-ink); border-color: transparent; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

.alert { padding: 10px 14px; border-radius: 10px; margin: 10px 0; background: var(--info-bg); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }

/* ----- Formularze ----- */
.form label, label.f { display: block; margin-bottom: 12px; font-weight: 600; font-size: .88rem; }
.form label > input, .form label > select, .form label > textarea, label.f > input, label.f > select, label.f > textarea { margin-top: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 10px; min-height: 38px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand-blue) 55%, transparent); border-color: var(--brand-blue); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand-navy); }
input[type=color] { padding: 2px; width: 56px; }
textarea { min-height: 90px; resize: vertical; font-weight: 400; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: .85rem; font-weight: 400; margin: 2px 0 10px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
legend { font-weight: 700; font-size: .88rem; padding: 0 4px; }
.checks-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks-grid label { margin: 0; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.weekdays label { margin: 0; }
.weekdays input { display: none; }
.weekdays span { display: inline-flex; width: 42px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.weekdays input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ----- Tabele ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl .actions { text-align: right; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ----- Modal ----- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 35, .5); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 620px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; flex: 1; font-size: 1.1rem; }
.modal-body { padding: 16px 18px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .modal-backdrop { padding: 0; } .modal { border-radius: 0; min-height: 100vh; } .modal-foot { border-radius: 0; } }

#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: calc(100vw - 36px); }
.toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; }
.toast.bad { background: var(--bad); }

/* ----- Logowanie ----- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(600px 420px at 100% 0%, rgba(243, 94, 189, .35), transparent 70%), radial-gradient(700px 500px at 0% 100%, rgba(95, 165, 235, .35), transparent 70%), linear-gradient(160deg, #143b60 0%, #10304f 70%, #0c263f 100%); }
.auth-card { background: var(--surface); width: 100%; max-width: 400px; border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card .brand { color: var(--text); padding: 0 0 16px; font-size: 1.15rem; }
.auth-card .btn { width: 100%; }

/* ----- Kalendarz ----- */
.cal-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.cal-head .period { font-size: 1.15rem; font-weight: 700; min-width: 170px; text-transform: capitalize; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--surface-2); padding: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-day { background: var(--surface); min-height: 108px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-day.other { background: var(--surface-2); }
.cal-day.other .num { opacity: .45; }
.cal-day .num { font-size: .8rem; font-weight: 700; padding: 1px 4px; align-self: flex-start; border-radius: 6px; }
.cal-day.today .num { background: var(--accent); color: var(--accent-ink); }
.chip { display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 6px; font-size: .76rem; cursor: pointer; border-left: 3px solid var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 13%, var(--surface)); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.chip:hover { filter: brightness(.96); }
.chip .t { font-weight: 700; flex: none; }
.chip .n { overflow: hidden; text-overflow: ellipsis; }
.chip.cancel .n { text-decoration: line-through; opacity: .7; }
.more { font-size: .75rem; color: var(--muted); padding-left: 4px; cursor: pointer; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-week .col { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 180px; padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-week .col.today { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.cal-week .dh { font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.wk-ev { border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); padding: 5px 7px; border-radius: 7px; cursor: pointer; font-size: .82rem; }
.wk-ev b { display: block; }
.wk-ev.cancel { opacity: .6; text-decoration: line-through; }
@media (max-width: 960px) { .cal-week { grid-template-columns: 1fr; } .cal-week .col { min-height: 0; } }
@media (max-width: 700px) { .cal-day { min-height: 64px; } .chip .t { display: none; } .chip { font-size: .7rem; padding: 1px 4px; } }
.ev-list .day { font-weight: 700; margin: 14px 0 6px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.ev-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.ev-item:hover { background: var(--surface-2); }
.ev-item .time { font-weight: 700; min-width: 92px; font-variant-numeric: tabular-nums; }
.ev-item .meta { color: var(--muted); font-size: .85rem; }
.ev-item.cancel .ttl { text-decoration: line-through; }
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0 0 12px; }
.detail-list dt { color: var(--muted); font-size: .88rem; }
.detail-list dd { margin: 0; }
@media (max-width: 600px) { .detail-list { grid-template-columns: 1fr; } .detail-list dt { margin-top: 6px; } }

/* ----- Ogłoszenia ----- */
.ann { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); margin-bottom: 10px; cursor: pointer; }
.ann:hover { background: var(--surface-2); }
.ann.new { border-left: 4px solid var(--accent); }
.ann h3 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ann p { margin: 0; color: var(--muted); font-size: .9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ann-banner { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.ann-banner .item { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.body-text { white-space: pre-wrap; word-wrap: break-word; }

/* ----- Obecności ----- */
.att-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.att-row:last-child { border-bottom: 0; }
.att-row .who { flex: 1; min-width: 160px; }
.att-btns { display: flex; gap: 4px; }
.att-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; height: 38px; min-width: 44px; padding: 0 8px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.att-btn[data-s=obecny].on { background: var(--ok); color: #fff; border-color: var(--ok); }
.att-btn[data-s=nieobecny].on { background: var(--bad); color: #fff; border-color: var(--bad); }
.att-btn[data-s=usprawiedliwiony].on { background: var(--brand-blue); color: var(--brand-navy); border-color: var(--brand-blue); }
.att-btn[data-s=spozniony].on { background: var(--warn); color: #fff; border-color: var(--warn); }
.att-note { width: 170px; min-height: 34px; padding: 5px 8px; font-size: .85rem; }
@media (max-width: 600px) { .att-note { width: 100%; } .att-btns { width: 100%; } .att-btn { flex: 1; } }
.st-obecny { color: var(--ok); } .st-nieobecny { color: var(--bad); } .st-usprawiedliwiony { color: var(--blue-ink); } .st-spozniony { color: var(--warn); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* ----- Składki ----- */
.dues-grid td.cell { text-align: center; padding: 4px; }
.due { border: 0; border-radius: 7px; width: 36px; height: 30px; font-weight: 800; cursor: pointer; font: inherit; }
.due.zaplacono { background: var(--ok-bg); color: var(--ok); }
.due.nie_zaplacono { background: var(--bad-bg); color: var(--bad); }
.due.future { background: var(--surface-2); color: var(--muted); }
.dues-grid th.m { text-align: center; text-transform: capitalize; }
.dues-grid td:first-child, .dues-grid th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.dues-grid th:first-child { background: var(--surface-2); z-index: 2; }
.month-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.month-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface); }
.month-card .m { font-weight: 700; text-transform: capitalize; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }

.picker { position: relative; }
.picker .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.picker .chips .badge { cursor: pointer; }
.picker .results { position: absolute; left: 0; right: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; }
.picker .results div { padding: 7px 10px; cursor: pointer; }
.picker .results div:hover { background: var(--surface-2); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-plain li:last-child { border-bottom: 0; }
.notif { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.notif.unread .t { font-weight: 700; }
.notif .b { color: var(--muted); font-size: .88rem; white-space: pre-wrap; }
.json { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--muted); word-break: break-word; }
.linkbox { display: flex; gap: 6px; } .linkbox input { font-size: .82rem; }

/* ----- Instalator ----- */
body.install { background: var(--bg); }
.install-card { max-width: 760px; margin: 30px auto; background: var(--surface); border-radius: 16px; padding: 26px 30px; box-shadow: var(--shadow); }
.install-card h2 { margin-top: 22px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--bad); }
@media print { .side, .topbar, .btn, .toolbar { display: none !important; } .layout { display: block; } }

@media (max-width: 600px) {
  #prefT th:nth-child(2), #prefT td:nth-child(2) { display: none; }
  #prefT th, #prefT td { padding: 8px; }
  .topbar:has(.child-switch) .title { display: none; }
  .child-switch { flex: 1; max-width: none; }
}

/* ===== Akcenty Projekt Siatkówka Malbork ===== */
.side .brand { justify-content: center; padding: 4px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.side .brand img.logo { width: 150px; height: auto; }
.auth-card .brand { justify-content: center; padding: 0 0 6px; }
.auth-card .brand img.logo { width: 170px; height: auto; }
.auth-card h1 { text-align: center; color: var(--navy); }
@media (prefers-color-scheme: dark) { .auth-card h1 { color: var(--text); } }
.auth-card { border-top: 5px solid var(--accent); }
.page-head h1, .content > h1 { color: var(--navy); }
@media (prefers-color-scheme: dark) { .page-head h1, .content > h1 { color: var(--text); } }
.card h2 svg { color: var(--accent); }
.topbar { border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 -1px transparent; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--brand-navy) 0 33%, var(--brand-pink) 33% 66%, var(--brand-blue) 66% 100%); }
.tabs a.on { border-bottom-color: var(--accent); }
.cal-day.today .num { background: var(--accent); color: #fff; }
.cal-week .col.today { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.ann.new { border-left-color: var(--accent); }
.ann-banner { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ann-banner svg { color: var(--accent); }
.weekdays input:checked + span { background: var(--navy); border-color: var(--navy); }
.seg button.on { background: var(--navy); }
.stat { color: var(--navy); }
@media (prefers-color-scheme: dark) { .stat { color: var(--text); } }
.grid.three > .card { border-top: 3px solid var(--brand-blue); }
.grid.three > .card:nth-child(2) { border-top-color: var(--brand-pink); }
.grid.three > .card:nth-child(3) { border-top-color: var(--brand-navy); }
.btn.primary:hover { background: var(--navy-2); filter: none; }
.toast { border-left: 4px solid var(--accent); }
.install-card { border-top: 5px solid var(--accent); }

/* Rejestracja zawodnika */
.auth-card.wide { max-width: 580px; }
.auth-card fieldset { margin: 0 0 4px; }
.check.consent { align-items: flex-start; line-height: 1.4; }
.check.consent input { width: auto; min-height: 0; margin-top: 3px; flex: none; }
.req { color: var(--bad); }
details.rodo { border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 12px; background: var(--info-bg); }
details.rodo summary { cursor: pointer; font-weight: 600; }
details.rodo .body-text { max-height: 260px; overflow: auto; margin-top: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
