/* System zapisów Colours of Samadhi — style ekranów (z makiety, gałąź makieta-v1).
   Bazą jest podstrony.css ze strony COS (te same tokeny, przyciski, nagłówek), żeby zapis wyglądał
   jak dalszy ciąg strony, a nie obcy serwis — główny zarzut wobec widgetu Fitssey.
   Projekt od telefonu (ok. 70% ruchu): 320–414 px, dotyk min. 44 px, nic nie przewija się w bok. */

.head { padding-top: 22px; padding-bottom: 6px; }
.head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; margin: 8px 0 6px; }
.head p { color: var(--ink-soft); }

/* Link „Gabinety” przed kontem (personel z dostępem do gabinetów SPL). Zabiera margines auto kontu, żeby oba stały
   razem po prawej. Poniżej 360 px sama ikona — logo, link i konto mieszczą się wtedy w 288 px bez przewijania. */
.top .gab-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 6px; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.top .gab-link svg { width: 22px; height: 22px; }
.top .gab-link + .acc { margin-left: 4px; }
@media (max-width: 359px) { .top .gab-link span { display: none; } }

/* Awatar konta w nagłówku. */
.top .acc .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600; }

/* ---------- Grafik ---------- */
.passbar { margin-top: 16px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font: inherit; color: inherit; text-align: left; }
/* Pasek karnetu to w całości przycisk do „Moich zajęć” — na 320 px nie ma miejsca na osobny link. */
button.passbar { cursor: pointer; }
button.passbar:hover { border-color: var(--accent-soft); }
.passbar .pb-t { flex: 1; min-width: 0; }
.passbar .pb-t > b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.passbar .pb-t > span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.passbar .chev { flex: none; width: 20px; height: 20px; color: var(--muted); }
.passbar .pb-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.passbar .pb-ic svg { width: 22px; height: 22px; }
.ring { flex: none; width: 44px; height: 44px; position: relative; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }

.day { margin-top: 18px; }
.day h2 { position: sticky; top: 60px; z-index: 5; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 10px 0 8px; }
.day h2 em { font-style: normal; color: var(--accent); margin-left: 6px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cls { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 14px 16px; }
.cls .t b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.1; }
.cls .t small { font-size: 0.76rem; color: var(--muted); }
.cls .i b { display: block; font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.kto { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; font-size: 0.84rem; color: var(--muted); }
.kto-av { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cls .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cls .a { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.cls .a small { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.cls .a small.low { color: var(--warn); font-weight: 600; }
.cls.is-booked { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.cls.is-maybe { border-color: #E2B65C; box-shadow: inset 4px 0 0 #E2B65C; }
@media (max-width: 359px) {
  .cls { grid-template-columns: minmax(0, 1fr) auto; }
  .cls .t { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
}
.chip.maybe { background: #FBF1DC; color: #7A4F00; }
.chip.new { background: var(--accent-tint); color: var(--accent); height: 22px; font-size: 0.7rem; vertical-align: 2px; margin-left: 4px; }
.chip.bad { background: #FCE8EC; color: #9E2A43; }
.btn-maybe { background: #FBF1DC; color: #7A4F00; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-danger { background: var(--warn); color: #fff; } .btn-danger:hover { background: #9C2814; }
.btn-danger-line { background: var(--paper); color: var(--warn); border-color: #EBC3BA; }
.btn-text { background: none; color: var(--ink-soft); }
.btn[disabled] { opacity: .45; cursor: default; }
.none { padding: 18px; text-align: center; color: var(--muted); font-size: 0.9rem; border: 1px dashed var(--line); border-radius: 16px; }

/* ---------- Okno: od dołu na telefonie, wyśrodkowane od 720 px ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px -12px rgba(18, 22, 43, .4); overflow: auto; overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(18, 22, 43, .5); }
dialog.sheet[open] { animation: wjazd .22s ease-out; }
@keyframes wjazd { from { transform: translateY(28px); opacity: .5; } }
@media (min-width: 720px) {
  dialog.sheet { margin: auto; max-width: 460px; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(18, 22, 43, .5); }
  .sheet .grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; }
.sheet .in { position: relative; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); }
:is(.sheet, .okno-strona, .gotowe-karta) .x { position: absolute; top: 4px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
:is(.sheet, .okno-strona, .gotowe-karta) .x svg { width: 22px; height: 22px; }
:is(.sheet, .okno-strona, .gotowe-karta) h2 { font-size: 1.45rem; line-height: 1.15; padding-right: 40px; }
:is(.sheet, .okno-strona, .gotowe-karta) h2:focus { outline: none; }
:is(.sheet, .okno-strona, .gotowe-karta) .meta { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
:is(.sheet, .okno-strona, .gotowe-karta) p + p { margin-top: 10px; }
:is(.sheet, .okno-strona, .gotowe-karta) .lead { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }
.rows { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 16px; }
.rows > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; }
.rows dd b { font-weight: 600; }
.rows dd small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.neg { color: var(--warn); }
.note { margin-top: 14px; display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; background: var(--accent-tint); color: var(--ink-soft); }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.note.warn { background: #FBF1DC; color: #5E3D00; }
.note.danger { background: #FCE8EC; color: #6E1F33; }
.actions { margin-top: 18px; display: grid; gap: 8px; }
.actions .btn { width: 100%; min-height: 50px; font-size: 1rem; white-space: normal; text-align: center; }
.fine { margin-top: 10px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.done { text-align: center; padding-top: 6px; }
.done h2 { padding: 0; }
.done .lead { margin-top: 8px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin: 4px auto 12px; }
.done .tick.maybe { background: #FBF1DC; color: #7A4F00; }
.done .tick svg { width: 30px; height: 30px; }
.done .summary { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--ink-soft); }
.mock-note { margin-top: 10px; font-size: 0.78rem; color: var(--muted); font-style: italic; text-align: center; }

/* Wybór karnetu przy zakupie. */
.opts { display: grid; gap: 8px; margin-top: 12px; }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.opt b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.opt small { display: block; color: var(--muted); font-size: 0.8rem; }
.opt .price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }

.field { display: grid; gap: 6px; margin-top: 12px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; overflow: hidden; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft); }
.field .hint { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 44px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 0.92rem; margin-top: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.fv[hidden] { display: none; }
.linkbtn { border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; min-height: 44px; padding: 0 4px; }

/* ---------- Moje zajęcia ---------- */
.mypass { margin-top: 16px; padding: 18px; border-radius: 22px; background: var(--dark-2); color: #fff; }
.mypass .lbl { font-size: 0.76rem; color: var(--on-dark-soft); letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
.mypass h2 { font-size: 1.35rem; margin-top: 4px; }
.mypass .big { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; margin-top: 12px; }
.mypass .big small { font-size: 1rem; color: var(--on-dark-soft); margin-left: 4px; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent-on-dark); border-radius: 4px; }
.mypass .foot { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; font-size: 0.88rem; color: var(--on-dark-soft); }
.mypass .foot button { border: 0; background: none; font: inherit; color: var(--accent-on-dark); font-weight: 600; min-height: 44px; padding: 0; cursor: pointer; }
.sect-h { margin: 26px 0 10px; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.bk .when { text-align: center; line-height: 1.1; }
.bk .when small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.bk .when b { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.bk .what b { display: block; font-weight: 600; font-size: 0.96rem; line-height: 1.3; }
.bk .what .sub { display: block; font-size: 0.84rem; color: var(--muted); }
.bk .what .chip { margin-top: 6px; }
@media (max-width: 359px) { .bk { grid-template-columns: 46px minmax(0, 1fr); } .bk .btn { grid-column: 1 / -1; } }
.more { display: flex; justify-content: center; margin-top: 10px; }

details.box { margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
details.box summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 0 16px; font-weight: 600; }
details.box summary::-webkit-details-marker { display: none; }
details.box summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); }
details.box[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details.box summary small { font-weight: 500; color: var(--muted); font-size: 0.82rem; margin-left: auto; }
.hist { list-style: none; margin: 0; padding: 0 16px 6px; }
.hist li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.88rem; line-height: 1.4; }
.hist time { color: var(--muted); font-size: 0.82rem; }
.hist b { font-weight: 600; display: block; }
.hist span { color: var(--ink-soft); }
.hist .pos { color: var(--ok); }
.hist a { font-weight: 600; font-size: 0.84rem; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.92rem; flex-wrap: wrap; min-height: 56px; }
.setrow span { color: var(--muted); }
.setrow b { font-weight: 600; }
.setrow > div { min-width: 0; }
.setrow small { display: block; color: var(--muted); font-size: 0.8rem; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--ok); position: relative; border: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 23px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch[aria-checked="false"] { background: #C9C3B8; }
.switch[aria-checked="false"]::after { left: 3px; }
.box-pad { padding: 0 16px 14px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Lista obecności ---------- */
.classcard { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.classcard b { font-weight: 600; font-size: 1.05rem; display: block; }
.classcard span { color: var(--muted); font-size: 0.88rem; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.stat { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--bg); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.stat b { color: var(--ink); font-weight: 600; font-size: 0.8rem; display: inline; }
.stat.warn { background: #FCE8EC; color: #9E2A43; } .stat.warn b { color: #9E2A43; }
.stat.ok { background: var(--ok-tint); color: var(--ok); } .stat.ok b { color: var(--ok); }
.stat.maybe { background: #FBF1DC; color: #7A4F00; } .stat.maybe b { color: #7A4F00; }
.tip { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.att { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.att li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px 9px 14px; border-top: 1px solid var(--line); }
.att li:first-child { border-top: 0; }
.att li.added { background: #FFFBF2; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; }
.nm { min-width: 0; }
.nm b { display: block; font-weight: 600; font-size: 0.96rem; line-height: 1.3; }
.nm > span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.nm .bad { color: var(--warn); font-weight: 600; }
/* Odwołani: bez kółka obecności, status jak w regulaminie (wczesne / późne anulowanie). */
.att li.off { grid-template-columns: 40px minmax(0, 1fr); }
.att li.off .av { opacity: .6; }
.att li.off .nm b { color: var(--ink-soft); }
.nm > .st-ok { color: var(--ok); font-weight: 600; }
.nm > .st-bad { color: var(--warn); font-weight: 600; }
/* align-items: start — błąd pod jednym polem nie rozciąga sąsiedniego (witaj, zmiana terminu). */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tick-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: #C9C3B8; }
.tick-btn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.tick-btn svg { width: 22px; height: 22px; }
.sticky-cta { position: sticky; bottom: 0; z-index: 6; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 72%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.sticky-cta .btn { width: 100%; min-height: 52px; font-size: 1rem; box-shadow: 0 10px 24px -12px rgba(51, 64, 143, .6); }
.res { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.res li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.res .btn { grid-column: 1 / -1; width: 100%; white-space: normal; }

/* ---------- Panel studia ---------- */
.card { margin-top: 12px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.card h2 { font-size: 1.25rem; line-height: 1.2; }
.card > p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.card.dark { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.card.dark .lbl { font-size: 0.76rem; color: var(--on-dark-soft); letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
.card.dark h2 { font-size: 1.5rem; margin-top: 6px; }
.card.dark .sub { color: var(--on-dark-soft); font-size: 0.9rem; margin-top: 2px; }
.card.dark .stats .stat { background: rgba(255, 255, 255, .1); color: var(--on-dark-soft); }
.card.dark .stats .stat b { color: #fff; }
.card.dark .stats .stat.bad { background: #FCE8EC; color: #9E2A43; }
.card.dark .stats .stat.bad b { color: #9E2A43; }
.card.dark .btn-ghost { background: transparent; color: #fff; border-color: var(--on-dark-line); margin-top: 14px; }
.stepper { display: inline-grid; grid-template-columns: 48px 60px 48px; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { height: 48px; border: 0; background: none; font: inherit; font-size: 1.4rem; line-height: 1; color: var(--accent); cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper output { text-align: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.stepper.sm { grid-template-columns: 44px 48px 44px; }
.stepper.sm button { height: 44px; }
.limit-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 14px; }
.limit-row .note { margin-top: 0; flex: 1 1 220px; }
.card .actions { margin-top: 14px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.fchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.impact { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.impact > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; font-size: 0.92rem; line-height: 1.45; }
.impact .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.impact .ic svg { width: 18px; height: 18px; }
.impact b { font-weight: 600; }
.impact small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.impact .stepline { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.h3 { margin-top: 18px; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cancelled { display: inline-flex; margin-top: 10px; }
.setlist { margin: 10px -18px -18px; }
.setlist .setrow { padding-left: 18px; padding-right: 18px; }
.setlist select { font: inherit; font-size: 16px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); max-width: 100%; }

/* ---------- Wydarzenia i bilety ---------- */
.chip.event { background: var(--accent-tint); color: var(--accent); }
.chip.event svg { width: 16px; height: 16px; margin-left: -2px; }
/* Gość bez zdjęcia: inicjały w kółku tej samej wielkości co zdjęcia prowadzących. */
.kto-in { display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 0.72rem; font-weight: 600; }
.err { display: block; font-size: 0.82rem; font-weight: 600; color: var(--warn); line-height: 1.4; }
.err[hidden] { display: none; }
.field input[aria-invalid="true"], .field input[aria-invalid="true"]:focus { border-color: var(--warn); }
.check.reg { align-items: flex-start; padding-top: 10px; line-height: 1.45; }
.check.reg input { margin-top: 1px; }
.check.reg + .err { margin: 2px 0 0 30px; }
.check a { font-weight: 600; }

/* ---------- Raporty dla księgowości ---------- */
#raporty { scroll-margin-top: 72px; }
.field.mies select { max-width: 280px; }
.rap { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.rap li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.rap li:first-child { border-top: 0; }
.rap li > div { flex: 1 1 170px; min-width: 0; }
.rap b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.rap small { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }
.rap .btn { flex: none; }
/* Tabela przewija się wewnątrz ramki, nigdy cała strona; nazwy się zawijają, liczby nie. */
.tbl-wrap { margin-top: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.84rem; line-height: 1.35; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tbl thead th { border-top: 0; background: var(--bg); font-size: 0.74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td b { font-weight: 600; }
.tbl td .m { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; white-space: normal; }
.tbl td.num .m { white-space: nowrap; }
.tbl .w { display: none; }
@media (min-width: 560px) {
  .tbl .w { display: table-cell; }
  .tbl td .m { display: none; }
  .tbl td b { font-weight: 400; }
  .tbl td:first-child b { font-weight: 600; }
}

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 0.9rem; box-shadow: 0 12px 30px -10px rgba(18, 22, 43, .55); z-index: 60; }
.toast[hidden] { display: none; }

/* ---------- Wersja serwerowa: linki zamiast przycisków, okna jako strony, formularze bez JS ---------- */
a.passbar { text-decoration: none; }
a.passbar:hover { border-color: var(--accent-soft); }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.mypass .foot a { color: var(--accent-on-dark); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
form.more { margin: 10px 0 0; }

/* Okno otwarte wprost z adresu (bez JS) i potwierdzenie po akcji — karta w miejscu okna. */
.okno-strona, .gotowe-karta { position: relative; max-width: 520px; margin: 20px auto 0; padding: 14px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.gotowe-karta { margin-top: 16px; }
.okno-strona .done h2, .gotowe-karta .done h2 { padding: 0; }
.tick.blad-ikona { background: #FCE8EC; color: var(--warn); }

/* Komunikat po akcji: bez JS pasek nad treścią; zapisy.js zamienia go w dymek (.toast). */
.flashe { display: grid; gap: 8px; margin-top: 14px; }
.flash { padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 0.9rem; }
.flash.flash-blad { background: #6E1F33; }

/* Licznik z polem liczbowym zamiast <output>: działa też bez JS (wpisanie liczby). */
.stepper input { width: 100%; height: 48px; border: 0; padding: 0; background: none; text-align: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm input { height: 44px; font-size: 1.15rem; }
.stepper input:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: -3px; border-radius: 8px; }

/* Przełącznik jako pole wyboru (formularz ustawień) — wygląd jak .switch z makiety. */
input.switch { appearance: none; -webkit-appearance: none; margin: 0; }
input.switch:not(:checked) { background: #C9C3B8; }
input.switch:not(:checked)::after { left: 3px; }
input.switch:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* Powód odwołania: radio w kształcie chipa (działa bez JS). */
label.fchip { position: relative; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fchip:has(input:checked), .fchip[aria-current="page"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.fchip:has(input:focus-visible) { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
a.fchip { text-decoration: none; }

/* Zakładki panelu. */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Wyniki wyszukiwania i lista obecności: przycisk siedzi w formularzu. */
.res li > form { grid-column: 1 / -1; }
.res li > form .btn { width: 100%; white-space: normal; }
.res .none { display: block; }
.att li > form { display: contents; }

/* Miesiąc raportu: wybór i przycisk bez JS w jednym rzędzie. */
form.field.mies { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
form.field.mies label { flex-basis: 100%; }
form.field.mies select { flex: 1 1 200px; }

/* Przełącznik ma 30 px wysokości — niewidoczny margines podnosi pole dotyku do 44 px. */
.switch::before { content: ""; position: absolute; inset: -7px -4px; }

/* Lista ustawień z przyciskiem pod spodem (w makiecie była ostatnia w karcie, z ujemnym marginesem). */
.setlist:not(:last-child) { margin-bottom: 0; border-bottom: 1px solid var(--line); }
/* „· gość” przy prowadzącym: na wąskim telefonie nie mieści się obok przycisku — inicjały w kółku wystarczą. */
@media (max-width: 399px) { .kto-gosc { display: none; } }

/* ---------- Panel: wspólne ---------- */
/* Zakładki: wszystkie widoczne naraz, nic nie przewija się w bok — menu przewijane w bok było
   największą bolączką Fitssey („co druga osoba nie widzi” dalszych pozycji). Poniżej 560 px
   siatka 3 kolumny × 3 rzędy (7 zakładek), od 560 px jeden zawijany rząd. */
@media (max-width: 559px) {
  .subnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .subnav .fchip { justify-content: center; padding: 0 6px; font-size: 0.84rem; text-align: center; }
}

/* ---------- Karty zajęć jako linki (prowadzący, tydzień w panelu) ---------- */
a.cls { color: inherit; text-decoration: none; }
a.cls:hover { border-color: var(--accent-soft); }
.cls .chev { width: 20px; height: 20px; color: var(--muted); }
.cls .stats { margin-top: 8px; }
/* Licznik może mieć dłuższy tekst — wysokość rośnie z treścią zamiast stałej, żeby nic nie wyszło poza pigułkę. */
.cls .stat { height: auto; min-height: 26px; padding-block: 3px; line-height: 1.3; font-size: 0.76rem; }
.cls.is-off { background: var(--bg); }
.cls.is-off .t b, .cls.is-off .i > b { color: var(--muted); text-decoration: line-through; }
.cls-trwa { margin-top: 8px; }
.cls .kto-txt { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.chip.warn { background: #FCE8EC; color: #9E2A43; }
.chip.maybe svg, .chip.warn svg { width: 16px; height: 16px; margin-left: -2px; }
.tydz-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Panel: grafik ---------- */
.akcje-rzad { margin-top: 16px; }
@media (min-width: 560px) { .akcje-rzad { display: flex; flex-wrap: wrap; } .akcje-rzad .btn { width: auto; } }
.cls .zmien { font-size: 0.86rem; font-weight: 600; color: var(--accent); }
.lbl-pole { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field .stepper { justify-self: start; }
.field textarea[rows] { min-height: 96px; overflow: auto; }

/* ---------- Panel: klienci ---------- */
.filtr { margin-top: 12px; }
.kropka { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--muted); flex: none; }
.kropka.p1 { background: var(--p1); } .kropka.p2 { background: var(--p2); } .kropka.p3 { background: var(--p3); }
.kropka.sky { background: #A8304A; } .kropka.event { background: var(--accent); } .kropka.soft { background: #B9B2A6; }
.fchip small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.kl-lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.kl-lista a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; }
.kl-lista a:hover { border-color: var(--accent-soft); }
.kl-lista .nm > span { overflow-wrap: anywhere; }
.kl-lista .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kl-lista .chev { width: 20px; height: 20px; color: var(--muted); }
.kontakt { margin: -18px; }
.kontakt .setrow:first-child { border-top: 0; }
.kontakt .setrow a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; text-decoration: none; }
.card .kontakt + .note { margin-top: 14px; }
.bk-2 { grid-template-columns: minmax(0, 1fr) auto; }
.karnet-g { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.karnet .sub { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.karnet-stan { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.karnet-stan b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--ink); margin-right: 4px; }
.karnet.wygasly { background: var(--bg); }
.karnet .akcje-rzad { margin-top: 12px; }
details.ruchy { margin: 12px -18px -18px; border-top: 1px solid var(--line); }
details.ruchy summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 18px; font-weight: 600; font-size: 0.9rem; color: var(--accent); }
details.ruchy summary::-webkit-details-marker { display: none; }
details.ruchy .hist { padding: 0 18px 8px; }
.hist small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
/* Pole daty ma szerokość wewnętrzną przeglądarki — dwa obok siebie nie mieszczą się na 320 px. */
.field input { min-width: 0; }
@media (max-width: 399px) { .pair-daty { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Panel: karnety i powiadomienia ---------- */
.kl-lista a.wylaczony { background: var(--bg); }
.kl-lista .price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.kl-lista a:has(.price) { grid-template-columns: 40px minmax(0, 1fr) auto; }
.cena-kolko { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.pw-lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pw { padding: 12px 14px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pw.pw-blad { border-color: #EBC3BA; }
/* Chip stanu pod opisem, nie z boku — inaczej adres e-mail łamałby się w środku na 320 px. */
.pw-g { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; }
.pw-g .nm .chip { display: inline-flex; margin-top: 6px; }
.nw { white-space: nowrap; }
.pw-g .nm span { overflow-wrap: break-word; }
.pw-g .nm .adr { overflow-wrap: anywhere; }
.pw-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; }
.pw-ic svg { width: 18px; height: 18px; }
.pw-err { margin: 8px 0 0 42px; font-size: 0.84rem; font-weight: 600; color: var(--warn); }
.pw details.ruchy { margin: 10px -14px 0; }
.pw details.ruchy summary { padding: 0 14px; }
.pw-tresc { padding: 0 14px 12px; font-size: 0.88rem; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.pw .actions { margin: 0 -14px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.pw .actions .btn { width: auto; min-height: 44px; justify-self: start; }
/* Telefon studia: kto wysłał SMS (skrzynka) i odpowiedzi klientów — wcięte pod tekst, jak błąd. */
.pw-kto { margin: 6px 0 0 42px; font-size: 0.84rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.pw-kto a { min-height: 44px; display: inline-flex; align-items: center; margin: -12px 0; }
.pw > .pw-tresc { padding: 8px 0 12px 42px; }
.pw > .pw-kto:last-child { padding-bottom: 12px; }
.telefon-baner > div { display: grid; gap: 4px; }
.telefon-baner form { margin-top: 6px; }
.telefon-baner .btn { width: auto; min-height: 44px; }

/* ---------- Płatność: czekamy na potwierdzenie ---------- */
.tick.czekam { background: var(--accent-tint); }
.krecik { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--accent-soft); border-right-color: transparent; animation: krec 0.9s linear infinite; }
@keyframes krec { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .krecik { animation-duration: 3s; } }

/* ---------- Moje zajęcia: Twoje dane ---------- */
.dane-form { padding: 0 16px 14px; border-top: 1px solid var(--line); }
.dane-form .ro { min-height: 44px; display: flex; align-items: center; font-weight: 600; overflow-wrap: anywhere; }
.dane-form .hint a { font-weight: 600; overflow-wrap: anywhere; }
.dane-form + .setrow { border-top: 1px solid var(--line); }
.nw-adr { overflow-wrap: anywhere; }

/* Raporty: wpisy do sprawdzenia. */
.card.spr { border-color: #E2B65C; }
.card.spr h2 { display: flex; align-items: center; gap: 8px; }
.card.spr h2 svg { width: 22px; height: 22px; color: #7A4F00; flex: none; }
.card.spr .hist { padding: 0; margin: 10px 0 -6px; }
.card.spr .hist li { grid-template-columns: 78px minmax(0, 1fr); }
.card.spr .hist a { min-height: 0; }

/* ---------- Wiadomości do grup (panel/wiadomosci.html) ---------- */
/* Przełącznik „Do grup | Skrzynka systemu”: dwie równe połowy, bez przewijania w bok. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 10px; padding: 3px; border-radius: 14px; background: var(--bg-2); }
.seg a { display: grid; place-items: center; min-height: 44px; padding: 0 8px; border-radius: 11px; text-align: center; text-decoration: none; font-size: 0.88rem; font-weight: 500; line-height: 1.2; color: var(--ink-soft); }
.seg.trzy { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 399px) { .seg.trzy { grid-template-columns: repeat(3, auto); } }
.seg.trzy a { padding: 0 4px; }
.seg a[aria-current="page"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(29, 35, 64, .08); }
/* „Zajęcia jogi | Wizyty w gabinecie” (_oferta.html) — nad nagłówkiem strony klienta, jak zakładki. */
.seg.oferta { margin: 4px 0 16px; }
/* fieldset ma domyślnie min-width: min-content — długi znacznik rozepchnąłby stronę w bok. */
.grupa { border: 0; margin: 0; padding: 0; min-width: 0; }
.grupa legend { padding: 0; margin-bottom: 8px; }

.wiad .fchip svg { width: 18px; height: 18px; margin-right: 8px; }
.wiad .fchips + .err, .wiad .tip + .err { margin-top: 6px; }
.wiad .odb .fchip { max-width: 100%; }
/* .hint i .fchips mają własne display — bez tego atrybut hidden (pola zależne od kanału) nic by nie chował. */
.wiad [hidden] { display: none !important; }
.wiad .grupa { margin-top: 18px; }
.wiad .grupa:first-of-type { margin-top: 6px; }
/* Podgląd przed wysyłką: liczba odbiorców duża, wiadomość tak, jak ją zobaczy klient. */
.wiad-pv .pv-n { margin-top: 8px; font-size: 1.05rem; color: var(--ink-soft); }
.wiad-pv .pv-n b { color: var(--ink); font-weight: 600; }
.wiad-pv .h3 { margin-top: 20px; }
.pv-mail { margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.92rem; line-height: 1.5; }
.pv-mail > p { margin: 0; padding: 12px 14px; overflow-wrap: anywhere; }
.pv-temat { background: var(--bg); border-bottom: 1px solid var(--line); font-weight: 600; }
.pv-temat span { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-tresc { white-space: pre-wrap; }
.pv-stopka { border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.pv-sms { margin: 8px 0 0; max-width: 34ch; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--bg-2); font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.wiad-pv .actions form { display: grid; gap: 8px; }
.note.ok { background: var(--ok-tint); color: #145234; }
.wrap > .note:first-child { margin-top: 18px; }
/* Liczba odbiorców pod chipami (z /panel/wiadomosci/licz). */
.odb-suma { margin-top: 10px; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.odb-suma b { color: var(--ink); font-weight: 600; }
/* HTML maila z serwera ma własne tło i marginesy na szerokość 600 px — w karcie na telefonie zjadałyby
   połowę miejsca, więc je zmniejszamy (style w linii wymagają !important). */
.pv-html { overflow-wrap: anywhere; }
.pv-html > div { padding: 10px 8px !important; }
.pv-html > div > div { padding: 14px !important; font-size: 15px !important; }
.pv-html img { max-width: 100%; height: auto; }
.wiad-pv .actions form button[disabled] { opacity: .55; }
.hint.za-dlugi { color: var(--warn); font-weight: 600; }
/* Jedna wysyłka: liczby w kafelkach, które zawijają się w wiersze (2 na telefonie, wszystkie obok siebie na komputerze). */
.wiad-h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); overflow-wrap: anywhere; }
.wiad-liczby { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.wiad-liczby > div { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.wiad-liczby dt { font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wiad-liczby dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.wiad-liczby .ok dd { color: var(--ok); } .wiad-liczby .warn dd { color: var(--warn); } .wiad-liczby .maybe dd { color: var(--p3); }
.wiad-tagi { display: flex; flex-wrap: wrap; gap: 6px; }
.wrap > .pv-mail, .wrap > .pv-sms { margin-top: 0; }
.card > .tip { font-size: 0.82rem; color: var(--muted); }
/* Wiersz bez przycisku „Ponów” pod spodem — dolny margines daje sam wiersz. */
.pw.pw-sam { padding-bottom: 12px; }
/* Historia wysyłek: ikona kanału zamiast inicjałów (siatka .kl-lista zakłada 40 px). */
.wiad-hist a { grid-template-columns: 32px minmax(0, 1fr) 20px; align-items: start; }
.wiad-hist .chev { align-self: center; }
.wiad-hist .nm b { overflow-wrap: anywhere; }
/* Dotyk ≥ 44 px także dla małych przycisków. .btn-sm przychodzi z podstrony.css (wspólnego ze stroną
   studia, gdzie 40 px zostaje), więc w aplikacji zapisów nadpisujemy tylko wysokość — wygląd bez zmian. */
.btn-sm { min-height: 44px; }
/* Link 44 px w linii tekstu (Karta klienta, Sprawdź status) rozpychał wiersz — ujemny margines w pionie
   zostawia pole dotyku, a odstępy między liniami wracają do zwykłych. Przełącznik z trzema stronami:
   na wąskich ekranach kolumny według długości podpisu, bo „Odpowiedzi” w równej trzeciej części 320 px
   dotykało krawędzi. */
.odp-oznacz .btn { width: auto; min-height: 44px; font-size: 0.88rem; justify-self: start; }
.pw-tresc + .pw-kto { margin-top: 0; }
/* Gabinety, etap A: przełącznik firmy na liście klientów (4 pozycje) i znak firmy w wierszu.
   Na wąskich ekranach kolumny według długości podpisu — „COS i SPL” nie zmieściłby się w równej czwartej. */
.seg.cztery { grid-template-columns: repeat(4, 1fr); }
.seg.cztery a { padding: 0 4px; }
@media (max-width: 399px) { .seg.cztery { grid-template-columns: repeat(4, auto); } }
.firmy-seg { margin-bottom: 4px; }
.chip.firma-znak { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }
.hist .sprz { display: block; color: var(--muted); font-size: 0.82rem; }
/* Zgody na karcie klienta: znacznik Tak/Nie zostaje po prawej, nawet gdy pod nazwą jest zakres zgody. */
.zgody-box .setrow { flex-wrap: nowrap; }
.zgody-box .setrow > div { flex: 1 1 0; }
.zgody-box .setrow > .chip { flex: none; }
/* Sprzedaż według sprzedawcy pod wierszem „Sprzedaż” — każda firma w osobnej linii. */
.wg-spr { display: grid; gap: 2px; margin-top: 6px; }
.wg-spr b { display: inline; font-size: inherit; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Przełącznik PL/EN (decyzja 40): nazwa drugiego języka w nim samym („English” / „Polski”), cel dotyku
   44 px. W nagłówku stoi przed kontem, więc to on przejmuje odsunięcie w prawo (margin-left: auto). */
.top .jezyk-link { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; color: var(--ink-soft); font-weight: 500; font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.top .gab-link + .jezyk-link, .top .jezyk-link + .acc { margin-left: 0; }
.site-foot .jezyk-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* Logo nie ściska się, gdy w nagłówku robi się ciasno. Najciaśniej ma personel z gabinetami na stronie klienta
   (logo, „Gabinety”, przełącznik, konto): do 419 px przełącznik zostaje tam tylko w stopce — personel
   pracuje po polsku, a klient (bez „Gabinetów”) ma go w nagłówku zawsze. */
.top .brand { flex-shrink: 0; }
@media (max-width: 419px) { .top .gab-link + .jezyk-link { display: none; } }
