/* Same font files and unicode ranges as the synaptio.pl theme (latin + Polish subset). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-800-pl.woff2") format("woff2"); unicode-range: U+0102-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0160-0161, U+0179-017C; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-700s-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-700s-pl.woff2") format("woff2"); unicode-range: U+0102-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0160-0161, U+0179-017C; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/nunito-sans-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/nunito-sans-normal-pl.woff2") format("woff2"); unicode-range: U+0102-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0160-0161, U+0179-017C; }

:root {
  --ink: #0F2419; --ink-soft: #45584A; --night-2: #194730; --sage: #D6E2D0; --sage-pale: #EEF3EB;
  --paper: #FFFFFF; --bg: #F5F6F4; --gold: #B69026; --bronze: #7A5E12; --sand: #F4E5C5;
  --line: #E1E6DE; --danger: #9B2C2C;
  --r-card: 18px; --r-block: 22px; --r-btn: 10px; --r-chip: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Nunito Sans", system-ui, sans-serif; }
h1, h2, h3, .btn, .brand, .stat b { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 14px; }
a { color: var(--night-2); text-underline-offset: 3px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #F4EFE0; padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { font-size: 22px; padding: 0 12px 22px; letter-spacing: -0.01em; }
.brand span { color: var(--gold); }
.side a { color: #DCE5D8; text-decoration: none; padding: 11px 12px; border-radius: var(--r-btn); font-weight: 600; }
.side a:hover { background: rgba(255,255,255,.07); }
.side a.on { background: var(--night-2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side form { margin-top: auto; }
.navlabel { font: 800 11px "Nunito", sans-serif; text-transform: uppercase; letter-spacing: .09em; color: #7F9484; padding: 14px 12px 4px; }
.side { overflow-y: auto; }
.side button { background: none; border: 0; color: #A9B8AC; font: inherit; padding: 11px 12px; cursor: pointer; }
.main { padding: 34px 40px 60px; max-width: 1180px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* blocks */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: 14px; }
.stat.gold { background: var(--ink); color: #F4EFE0; border-color: var(--ink); }
.stat.gold span { color: #C8D3C5; }
.stat.gold b { color: #E9C963; }

.chip { display: inline-block; padding: 3px 10px; border-radius: var(--r-chip); font-size: 13px; font-weight: 700; background: var(--sage-pale); color: var(--night-2); white-space: nowrap; }
.chip.klient { background: var(--sage); }
.chip.oczekuje { background: var(--sand); color: var(--bronze); }
.chip.zgloszenie { background: #ECEEEA; color: var(--ink-soft); }
.chip.off { background: #ECEEEA; color: var(--ink-soft); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: 0 12px 10px; font-weight: 700; }
td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.row { cursor: pointer; }
tr.row:hover td { background: var(--sage-pale); }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td a.name { font-weight: 700; color: var(--ink); text-decoration: none; }

/* forms */
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9D2C5; border-radius: var(--r-btn); padding: 11px 13px; min-height: 46px; }
textarea { min-height: 92px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); border: 0; background: var(--night-2); color: #fff; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--night-2); border: 1.5px solid var(--night-2); }
.btn.ghost:hover { background: var(--sage-pale); }
.link-danger { background: none; border: 0; color: var(--danger); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .wide { grid-column: 1 / -1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input { flex: 1 1 260px; }
.filters select { flex: 0 0 180px; }
.seg { display: inline-flex; background: var(--sage-pale); border-radius: var(--r-btn); padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 7px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-soft); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,36,25,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.error { background: #FBEAEA; color: var(--danger); border-radius: var(--r-btn); padding: 11px 14px; margin-bottom: 16px; font-weight: 600; }
details > summary { cursor: pointer; font-weight: 700; color: var(--night-2); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary { display: flex; align-items: center; min-height: 44px; }                 /* pole dotyku jak przyciski (zlecenie 13) */
details[open] > summary { margin-bottom: 16px; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 20px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tl li.payment::before { background: var(--gold); }
.tl li.note::before, .tl li.call::before { background: var(--night-2); }
.tl .top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl .kind { font-weight: 800; font-family: "Nunito", sans-serif; }
.tl .when { color: var(--ink-soft); font-size: 13px; }
.tl p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-soft); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.empty { color: var(--ink-soft); padding: 26px 0; text-align: center; }
.stack > * + * { margin-top: 18px; }
.bar { height: 8px; border-radius: 4px; background: var(--sage-pale); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--night-2); border-radius: 4px; }

.week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.week a { display: block; text-decoration: none; color: inherit; background: var(--sage-pale); border-radius: 14px; padding: 14px 16px; }
.week a:hover { background: var(--sage); }
.week b { display: block; font: 800 26px/1.15 "Nunito", sans-serif; font-variant-numeric: tabular-nums; }
.week span { font-size: 14px; color: var(--ink-soft); }
a.card.stat:hover { border-color: var(--night-2); }

.nabor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 10px 20px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.nabor-row:first-child { border-top: 0; padding-top: 0; }
.nabor-row .name { font-weight: 700; color: var(--ink); text-decoration: none; }
.nabor-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.calc { display: grid; gap: 0; max-width: 560px; }
.calc > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.calc > div:first-child { border-top: 0; }
.calc b { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: "Nunito Sans", sans-serif; font-weight: 700; }
.calc .sum { border-top: 2px solid var(--ink); font-size: 18px; }
.calc .sum b { font: 800 20px "Nunito", sans-serif; }
.addperson { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
details.rowd { border-top: 1px solid var(--line); padding: 14px 0; }
details.rowd:first-child { border-top: 0; padding-top: 0; }
details.rowd:last-child { padding-bottom: 0; }
details.rowd > summary { color: var(--ink); font-weight: 400; }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.spark > div { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.spark i { display: block; width: 100%; background: var(--night-2); border-radius: 3px 3px 0 0; }
.spark > div:hover i { background: var(--gold); }

.npstate { margin-top: 6px; display: grid; gap: 3px; }
.npstate .chip { justify-self: start; }

/* week calendar */
.cal { display: grid; grid-template-columns: 46px repeat(var(--days, 6), minmax(0, 1fr)); gap: 0; }
.calhead { height: 34px; font: 800 13px "Nunito", sans-serif; padding: 0 6px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.calhead .muted { font: 400 13px "Nunito Sans", sans-serif; }
.calbody { position: relative; height: 676px; border-left: 1px solid var(--line); background: #fff; }
.calhours .calbody { border-left: 0; background: none; }
.calhours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.calhours span:first-child { transform: none; }
.calline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.calday.today .calbody { background: var(--sage-pale); }
.calday.today .calhead { color: var(--night-2); }
.calnote { position: absolute; inset: 12px 6px auto; font-size: 12px; color: var(--ink-soft); text-align: center; }
.calev { position: absolute; box-sizing: border-box; border: 1px solid #fff; border-radius: 6px; padding: 2px 4px; color: #fff; font-size: 11px; line-height: 1.25; overflow: hidden; cursor: default; }
.calev b, .calev span, .calev em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.calev em { opacity: .85; }
.calev:hover, .calev:focus { z-index: 5; width: max-content !important; max-width: 260px; min-width: 100%; height: auto !important; min-height: 44px; box-shadow: 0 6px 18px rgba(15,36,25,.25); outline: 0; }
.calev:hover span, .calev:focus span, .calev:hover em, .calev:focus em { white-space: normal; }
.lane0 { background: #194730; } .lane1 { background: #8A6A12; } .lane2 { background: #2F6482; } .lane3 { background: #9A4A22; }
.laneblock { background: repeating-linear-gradient(45deg, #F4E5C5, #F4E5C5 6px, #EBD7A8 6px, #EBD7A8 12px); color: var(--ink) !important; }
.callegend { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.callegend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.caldays { display: none; }

/* dashboard: visits of the week (hour grid on desktop, day list on phones) */
.aghead { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.wknav { display: flex; border: 1px solid #C9D2C5; border-radius: var(--r-btn); overflow: hidden; }
.wknav a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 42px; padding: 0 14px; text-decoration: none; color: var(--ink); font: 800 15px "Nunito", sans-serif; border-left: 1px solid #C9D2C5; }
.wknav a:first-child { border-left: 0; }
.wknav a:hover { background: var(--sage-pale); }
.wknav a.on { color: var(--ink-soft); }
.sp0 { --c: #194730; } .sp1 { --c: #2F6482; } .sp2 { --c: #9A4A22; } .sp3 { --c: #6B4A7A; } .sp4 { --c: #8A6A12; } .sp5 { --c: #3F6F78; } .spg { --c: #B69026; }
.callegend i[class^="sp"] { background: var(--c); }
.wk .calhead { border-bottom: 1px solid var(--line); }
.wk .calday.today .calhead { color: var(--night-2); box-shadow: inset 0 -3px 0 var(--night-2); }
.wk .calday.today .calbody { background: #F7FAF5; }
.wk .calday:last-child .calbody { border-right: 1px solid var(--line); }
.wk .calbody { border-bottom: 1px solid var(--line); }
.wknow { position: absolute; left: 0; right: 0; border-top: 2px solid var(--danger); z-index: 3; }
.wknow::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.wkev { position: absolute; box-sizing: border-box; display: block; padding: 4px 7px 4px 9px; border-radius: 8px; border: 1px solid #fff; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--ink); text-decoration: none; font-size: 12px; line-height: 1.3; overflow: hidden; z-index: 1; }
.wkev b, .wkev strong, .wkev span, .wkev em { display: block; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkev b { color: var(--c); font-variant-numeric: tabular-nums; }
.wkev strong { font-size: 13px; }
.wkev span, .wkev em { color: var(--ink-soft); }
.wkev:hover, .wkev:focus-visible { z-index: 5; height: auto !important; min-height: 44px; min-width: 100%; width: max-content !important; max-width: 280px; box-shadow: 0 8px 22px rgba(15,36,25,.22); }
.wkev:hover span, .wkev:hover strong, .wkev:focus-visible span, .wkev:focus-visible strong { white-space: normal; }
.wkev.past { opacity: .6; }
.wkev.past:hover { opacity: 1; }
.wkev.off { background: #fff; border: 1px dashed #B9C2B6; border-left: 4px solid #B9C2B6; }
.wkev.off strong, .wkev.off span { text-decoration: line-through; }
.wkev.off b { color: var(--danger); }
.agenda { display: none; }
.agday { padding: 4px 0 10px; border-top: 1px solid var(--line); }
.agday:first-child { border-top: 0; }
.agday.today .agname { color: var(--night-2); }
.agday.today .agname::after { content: " · dziś"; font: 400 13px "Nunito Sans", sans-serif; }
.agname { font: 800 15px "Nunito", sans-serif; padding: 10px 0 2px; }
.agname span { font: 400 13px "Nunito Sans", sans-serif; color: var(--ink-soft); }
.agev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 10px; align-items: start; margin-top: 6px; padding: 9px 10px 9px 12px; border-radius: 10px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.agev b { color: var(--c); font-variant-numeric: tabular-nums; }
.agev strong, .agev span { display: block; }
.agev span { color: var(--ink-soft); font-size: 13px; }
.agev.past { opacity: .62; }
.agev.off { background: none; border: 1px dashed #B9C2B6; border-left: 4px solid #B9C2B6; }
.agev.off strong, .agev.off span { text-decoration: line-through; }
.agev.off b { color: var(--danger); }
.agnone { font-size: 13px; color: var(--ink-soft); padding: 4px 0; }

/* rooms */
.roomgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.roomname { font: 800 14px "Nunito", sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.slot { background: var(--sage-pale); border-left: 4px solid var(--night-2); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; font-size: 14px; overflow-wrap: anywhere; }
.slot b { font-variant-numeric: tabular-nums; }
.slot.block { background: var(--sand); border-left-color: var(--gold); }
.card.today { border-color: var(--night-2); box-shadow: 0 0 0 1px var(--night-2); }
input[type=date], input[type=time] { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9D2C5; border-radius: var(--r-btn); padding: 11px 13px; min-height: 46px; }

/* site posts */
.post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 14px 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post:last-child { padding-bottom: 0; }
.post-head .name { font-weight: 700; color: var(--ink); text-decoration: none; display: block; margin-bottom: 6px; }
.post-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.auth .card { width: 100%; max-width: 420px; border-radius: var(--r-block); padding: 30px; }
.auth .brand { color: var(--ink); padding: 0 0 6px; }
.auth form > * + * { margin-top: 14px; }
.auth .btn { width: 100%; }
.qr { display: flex; justify-content: center; margin: 14px 0 6px; }
.qr svg { max-width: 100%; height: auto; }
code { font-size: 14px; background: var(--sage-pale); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; gap: 2px; }
  .brand { padding: 0 10px 0 4px; font-size: 18px; white-space: nowrap; }
  .side a { white-space: nowrap; padding: 10px 11px; min-height: 44px; display: flex; align-items: center; }
  .side a.on { box-shadow: inset 0 -3px 0 var(--gold); }
  .side form { margin: 0 0 0 auto; }
  .side button { min-height: 44px; white-space: nowrap; }
  .main { padding: 22px 16px 48px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 24px; }
  .stat b { font-size: 23px; white-space: nowrap; }
  .card { padding: 18px; }
  .hide-m { display: none; }
  .side { flex-wrap: wrap; overflow-x: visible; row-gap: 0; }
  .brand { flex-basis: 100%; padding: 4px 6px 6px; }
  .side a { padding: 8px 9px; font-size: 15px; }
  .side form { margin: 0; }
  .navlabel { display: none; }
  .side { overflow-y: visible; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .nabor-row { grid-template-columns: minmax(0, 1fr); }
  .roomgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal { grid-template-columns: 40px minmax(0, 1fr); }
  .calday { display: none; }
  .calday.sel { display: block; }
  .caldays { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
  .caldays a { padding: 9px 10px; min-height: 44px; display: flex; align-items: center; border-radius: var(--r-btn); background: var(--sage-pale); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
  .caldays a.on { background: var(--night-2); color: #fff; }
  .calev { font-size: 12px; }
  .calwrap { padding: 14px; }
  .addperson { grid-template-columns: minmax(0, 1fr); }
  .g2[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-form { grid-template-columns: minmax(0, 1fr); }
  .wk.cal { display: none; }
  .agenda { display: block; }
  .agday.none:not(.today) { display: none; }
  .agev { grid-template-columns: minmax(0, 1fr); }
}

/* dashboard calendar: softer frame */
.wk.cal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.wk .calhead { height: 42px; padding: 0 10px; background: #FAFBF9; font-size: 14px; }
.wk .calhours .calhead { border-bottom: 1px solid var(--line); }
.wk .calhours .calbody { background: #FAFBF9; }
.wk .calhours span { color: #7C8B7F; font-size: 11px; }
.wk .calline { border-top-color: #EEF1EC; }
.wk .calbody { border-bottom: 0; border-left-color: #EEF1EC; }
.wk .calday:last-child .calbody { border-right: 0; }
.wk .calday.today .calbody { background: #F4F8F1; }
.wkev { border-radius: 10px; border-width: 2px 2px 2px 4px; border-color: #fff #fff #fff var(--c); padding: 5px 8px 5px 9px; transition: box-shadow .12s; }
.wkev.off { border-color: #B9C2B6; border-width: 1px 1px 1px 4px; }
@media (max-width: 900px) { .wk.cal { display: none; } }

/* therapy aids catalogue */
.aidnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.aidnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-btn); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.aidnav a:hover { border-color: var(--night-2); }
.aidnav span { color: var(--ink-soft); font-weight: 400; }
.aidlist { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 28px; }
.aidlist li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid #EEF1EC; font-size: 15px; }
.aidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.aidcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aidimg { display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.aidimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.aidnone { display: flex; align-items: center; justify-content: center; background: var(--sage-pale); color: var(--night-2); font: 800 34px "Nunito", sans-serif; }
.aidname { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 640px) { .aidgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* mail to an intake list */
.mailto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.mailto label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 44px; }
.mailto label:has(input:checked) { border-color: var(--night-2); background: var(--sage-pale); }
.mailto input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.mailto span span { display: block; }
textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9D2C5; border-radius: var(--r-btn); padding: 11px 13px; line-height: 1.5; }

/* ---------- phone first: bottom tab bar instead of the side menu ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .side { display: none; }
  .main { padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(15,36,25,.18); }
  .tabbar > a, .tabbar summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    color: #C8D3C5; text-decoration: none; font: 700 11px "Nunito Sans", sans-serif; border-radius: 12px; cursor: pointer; list-style: none; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on, .tabbar details[open] summary { color: #E9C963; background: rgba(255,255,255,.07); }
  .tabbar .sheet { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); max-height: 72vh; overflow-y: auto;
    background: var(--ink); border-radius: 22px 22px 0 0; padding: 10px 14px 18px; box-shadow: 0 -10px 30px rgba(15,36,25,.35); }
  .tabbar .sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: #EEF3EB; text-decoration: none; font: 700 16px "Nunito Sans", sans-serif; border-radius: 10px; }
  .tabbar .sheet a.on { background: rgba(255,255,255,.08); color: #E9C963; }
  .tabbar .sheet .navlabel { display: block; padding: 12px 12px 4px; color: #8FA394; font: 800 11px "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  .tabbar .sheet button { min-height: 48px; padding: 0 12px; background: none; border: 0; color: #C8D3C5; font: 700 16px "Nunito Sans", sans-serif; }
  .head { margin-bottom: 14px; }
  .head h1 { font-size: 26px; }
  .head .muted { font-size: 14px; }
  .grid { gap: 10px; }
  .card { padding: 16px; border-radius: 16px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13px; }
  .btn, select, input[type=text], input[type=search], input[type=email], input[type=password] { min-height: 46px; font-size: 16px; }
  .nabor-row { gap: 8px; padding: 14px 0; }
  .nabor-row > div[style*="text-align:right"], .nabor-row > form[style*="text-align:right"] { text-align: left !important; }
  .nabor-form { grid-template-columns: minmax(0, 1fr); }
  .link-danger { min-height: 40px; }
  .mailto { grid-template-columns: minmax(0, 1fr); }
  .aidlist { columns: 1; }
  .filters { width: 100%; }
  table { font-size: 14px; }
}

.only-m { display: none; }
.quick { display: none; }
.fun { padding: 8px 0; }
.funtop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.funtop b { font: 800 20px "Nunito", sans-serif; }
@media (max-width: 900px) {
  .only-m { display: block; }
  .quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 90px), 1fr)); gap: 8px; margin-bottom: 14px; width: 100%; max-width: 100%; }
  .quick .btn { justify-content: center; text-align: center; min-width: 0; width: 100%; padding: 0 10px; }
  .agev { grid-template-columns: 52px minmax(0, 1fr); }
}

.agev .chip { display: inline-block; font-size: 12px; color: var(--bronze); margin-left: 4px; }

/* messages */
.msgrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.msgrow:first-of-type { border-top: 0; }
.msgrow span span { display: block; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; margin: 0 0 10px; background: var(--sage-pale); }
.bubble.out { margin-left: auto; background: #E7EEF3; }
.bubble.wait { background: var(--sand); }
.btext { white-space: pre-wrap; overflow-wrap: anywhere; }

.dot { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E9C963; color: var(--ink); font: 800 11px "Nunito", sans-serif; }
.tabbar > a { position: relative; }
.tabbar .dot { position: absolute; top: 4px; left: 54%; }

/* parent panel */
.ptop { display: flex; justify-content: space-between; align-items: center; background: var(--ink); padding: 10px 16px; }
.ptop .brand { color: #fff; text-decoration: none; padding: 0; font-size: 20px; }
.ptop button { background: none; border: 0; color: #C8D3C5; font: 700 15px "Nunito Sans", sans-serif; min-height: 44px; cursor: pointer; }
.pmain { max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }

/* panel rodziny, etap 1 (17.11): najbliższa wizyta, cztery kafle, wiersze z datą w kwadracie, dolny pasek na telefonie */
.btn.gold { background: var(--gold); color: var(--ink); }
.pnext { background: var(--night-2); color: #fff; border-radius: var(--r-block); padding: 20px 20px 18px; margin: 0 0 14px; }
.pnext-k { font: 800 12px "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #C8D3C5; }
.pnext-t { font: 800 26px/1.2 "Nunito", sans-serif; margin-top: 6px; }
.pnext-s { margin-top: 4px; color: #E6EDE3; overflow-wrap: anywhere; }
.pnext-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pnext .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.ptiles a, .pnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--ink); }
.ptiles a { min-height: 92px; padding: 10px 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font: 800 12px "Nunito", sans-serif; text-align: center; }
.ptiles small { font: 600 11px/1.25 "Nunito Sans", sans-serif; color: var(--ink-soft); }
.pnext-a { margin-top: 2px; color: #C8D3C5; font-size: 14px; }
.pnext-b .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
.ptabs, .pright .pname { display: none; }
.pright { display: flex; align-items: center; gap: 14px; }
.pright .pname { color: #fff; font: 700 15px "Nunito Sans", sans-serif; }
.pgrid, .pcol { display: flex; flex-direction: column; gap: 14px; }
.pcol { display: contents; }
.pnext { order: 1; } .ptiles { order: 2; } .pc-group { order: 3; } .pc-later { order: 4; } .pc-past { order: 5; } .pc-sc1 { order: 6; } .pc-sc2 { order: 7; }
.pnext, .ptiles, .pc-later, .pc-past, .pc-group, .sc { margin: 0; }
.pc-group .grow { padding: 8px 0; border-top: 1px solid var(--line); }
.pc-group h2 + .grow { border-top: 0; padding-top: 0; }
.grow strong, .grow span { display: block; overflow-wrap: anywhere; }
.grow span { color: var(--ink-soft); font-size: 14px; }
.sc { display: block; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.sc h2 { margin: 0 0 8px; font-size: 16px; }
.sc b, .sc .small { display: block; overflow-wrap: anywhere; }
.sc:hover { border-color: var(--night-2); }
.slogos { display: flex; gap: 8px; }
.zc-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.zc-logo img { max-width: 44px; max-height: 44px; object-fit: contain; }
.zc-logo.zl { background: var(--sage-pale); border-color: var(--sage-pale); color: var(--night-2); font: 800 22px "Nunito", sans-serif; }
.zc-logo.dark { background: var(--ink); border-color: var(--ink); }
.slogos .zc-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.slogos .zc-logo img { max-width: 30px; max-height: 30px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.zbar input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); font: 16px "Nunito Sans", sans-serif; background: #fff; }
.zgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
.zc { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 6px 22px rgba(15, 36, 25, .06); min-width: 0; }
.zc[hidden] { display: none; }
.zc > summary { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; align-content: start; gap: 10px 12px; padding: 16px 16px 6px; list-style: none; cursor: default; }
.zc > summary::-webkit-details-marker { display: none; }
.zc-t { min-width: 0; }
.zc h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.zc .ck { display: block; font: 400 13px/1.3 "Nunito Sans", system-ui, sans-serif; color: var(--ink-soft); }
.zc-v { grid-column: 1 / -1; font: 800 28px/1.05 "Nunito", system-ui, sans-serif; color: var(--night-2); overflow-wrap: anywhere; }
.zc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.zc-sub { font: 600 13px/1.35 "Nunito Sans", system-ui, sans-serif; color: var(--ink-soft); overflow-wrap: anywhere; }
.zc .ccode { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--night-2); color: #FBFAF4; border-radius: 10px; padding: 6px 6px 6px 14px; }
.zc .ccode code { font: 800 17px "Nunito", monospace; letter-spacing: .06em; background: transparent; color: #FBFAF4; padding: 0; overflow-wrap: anywhere; }
.zc .ccode .btn { background: #F4EFE0; color: var(--ink); min-height: 38px; padding: 0 14px; flex: none; }
.zc-offer { font-size: 14px; color: var(--ink-soft); }
.zc-how { border-top: 1px solid var(--line); padding-top: 8px; }
.zc-how .chow { font-size: 14px; color: var(--ink-soft); }
.zc-how .cgo { display: inline-block; margin-top: 6px; font: 800 14px "Nunito", system-ui, sans-serif; color: var(--night-2); }
@media (min-width: 641px) { .zc-offer { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
@media (max-width: 640px) {
  .zgrid { gap: 8px; }
  .zc > summary { grid-template-columns: 44px minmax(0, 1fr) auto 12px; min-height: 72px; padding: 14px 16px; cursor: pointer; }
  .zc > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px; }
  .zc[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .zc .zc-logo { width: 44px; height: 44px; font-size: 18px; }
  .zc .zc-logo img { max-width: 34px; max-height: 34px; }
  .zc h3 { font-size: 16px; }
  .zc-v { grid-column: auto; font-size: 18px; text-align: right; max-width: 38vw; }
  .zc-body { padding: 0 16px 16px; }
}
.pnav a[aria-current="page"] { color: var(--gold); }
@media (min-width: 640px) { .zgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .zgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ptiles svg, .pnav svg { color: var(--night-2); }
.ptiles .ic-a, .pnav .ic-a { fill: var(--gold); stroke: none; }
.ptiles .ic-o, .pnav .ic-o { stroke: var(--gold); }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.vrow:first-of-type { border-top: 0; }
.dsq { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--sage-pale); color: var(--night-2); line-height: 1.1; }
.dsq b { font: 800 20px "Nunito", sans-serif; }
.dsq i { font: 800 12px "Nunito", sans-serif; font-style: normal; text-transform: uppercase; }
.vbody { flex: 1; min-width: 0; }
.vbody strong, .vbody span { display: block; overflow-wrap: anywhere; }
.vbody span { color: var(--ink-soft); font-size: 14px; }
.pnav { display: none; }
@media (max-width: 760px) {
  .pmain { padding-bottom: 96px; }
  .pnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .pnav a { min-height: 54px; color: #fff; font: 800 12px "Nunito", sans-serif; }
  .pnav svg { color: inherit; }
  .pnext-t { font-size: 24px; }
}
@media (min-width: 761px) {
  .ptabs { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
  .ptabs > div { display: flex; flex-wrap: wrap; gap: 8px; }
  .ptabs > div a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 800 15px "Nunito", sans-serif; text-decoration: none; }
  .ptabs > div a[aria-current="page"] { background: var(--night-2); border-color: var(--night-2); color: #fff; }
}
@media (min-width: 1000px) {
  .pmain { max-width: 1180px; padding: 26px 28px 60px; }
  .head-home, .ptiles { display: none; }
  .pgrid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 24px; align-items: start; }
  .pcol { display: flex; flex-direction: column; gap: 14px; }
  .pright .pname { display: inline; }
}

/* Korzyści dla rodzin w panelu rodzica: kupony (wariant B, 2026-11-16) */
.coupon { position: relative; display: flex; background: var(--paper); border-radius: var(--r-card); margin: 0 0 14px; box-shadow: 0 6px 22px rgba(15, 36, 25, .08); overflow: hidden; border: 1px solid var(--line); }
.coupon .cl { width: 96px; flex: none; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; padding: 10px; border-right: 2px dashed #C7D3C4; }
.coupon .cl img { max-width: 76px; max-height: 76px; object-fit: contain; }
.coupon:before, .coupon:after { content: ""; position: absolute; left: 84px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.coupon:before { top: -13px; } .coupon:after { bottom: -13px; }
.coupon .cr { padding: 16px 16px 16px 18px; flex: 1; min-width: 0; }
.coupon h3 { margin: 0; font-size: 19px; } .coupon .ck { font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.coupon .cbig { font: 800 32px/1.05 "Nunito", system-ui, sans-serif; color: var(--night-2); }
.coupon .cbig small { display: block; font: 600 14px/1.4 "Nunito Sans", system-ui, sans-serif; color: var(--ink-soft); margin-top: 3px; }
.coupon .ccode { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; background: var(--night-2); color: #FBFAF4; border-radius: 10px; padding: 6px 6px 6px 14px; }
.coupon .ccode code { font: 800 18px "Nunito", monospace; letter-spacing: .06em; background: transparent; color: #FBFAF4; padding: 0; }
.coupon .ccode .btn { background: #F4EFE0; color: var(--ink); min-height: 38px; padding: 0 14px; }
.coupon .chow { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.coupon .cgo { display: inline-block; margin-top: 10px; font: 800 14px "Nunito", system-ui, sans-serif; color: var(--night-2); }

/* kupon z logo „na ciemnym” (np. Balans): górny pas w kolorze marki, pełny napis */
.coupon.top { flex-direction: column; }
.coupon.top .cl { width: auto; height: 96px; border-right: 0; border-bottom: 2px dashed #C7D3C4; background: var(--ink); }
.coupon.top .cl img { max-width: 200px; max-height: 52px; }
.coupon.top:before, .coupon.top:after { left: auto; bottom: auto; top: 84px; }
.coupon.top:before { left: -13px; } .coupon.top:after { right: -13px; }

/* panel specjalisty (zlecenie 15): równe odstępy między kartami, przyciski w formularzach nie rozciągają się na cały komputer */
.staff > .card, .staff > section.card, .staff form > .card, .staff .stack > .card { margin-bottom: 14px; }
@media (min-width: 900px) { .staff form .btn, .staff form button.btn { max-width: 360px !important; } }

/* ---------- ekran główny specjalisty, makieta C „Kafle-przełączniki” (zlecenie 21) ---------- */
.hc-wrap { max-width: 1100px; }
.hc-hello { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.hc-hello h1 { margin: 0; font-size: 22px; }
.hc-hello span { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.hc-flash { margin-bottom: 10px; padding: 10px 14px; font-weight: 700; background: var(--sage-pale); border-color: var(--sage); }
.hc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.hc-tile { display: block; text-align: left; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 7px; min-height: 52px; }
.hc-tile b { display: block; font: 800 21px "Nunito", sans-serif; line-height: 1.1; }
.hc-tile span { display: block; font-size: 11px; color: var(--ink-soft); line-height: 1.2; }
.hc-tile.on { background: var(--night-2); border-color: var(--night-2); }
.hc-tile.on b { color: #E9C963; }
.hc-tile.on span { color: #D6E2D0; }
.hc-tile.warn { background: var(--sand); border-color: var(--gold); }
.hc-tile.warn.on { background: var(--night-2); border-color: var(--night-2); }
.hc-grid { display: block; }
.hc-panel { margin: 0; }
.js .hc-panel { display: none; }
.js .hc-panel.on { display: block; }
.hc-card { padding: 12px; margin-bottom: 10px; }
.hc-card.today { border-color: var(--night-2); }
.hc-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 2px; }
.hc-sec h2 { margin: 0; font-size: 17px; }
.hc-sec a { font-size: 13px; color: var(--night-2); font-weight: 700; text-decoration: none; }
.hc-none, .hc-emptyline { color: var(--ink-soft); font-size: 14px; padding: 8px 0; }
.hc-emptyline { padding: 2px 4px 10px; }
.hc-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 0 8px; align-items: center; min-height: 48px; padding: 5px 0; border-top: 1px solid var(--line); }
.hc-sec + .hc-row, .hc-sec + .hc-det > .hc-row { border-top: 0; }
.hc-det > summary.hc-row { cursor: pointer; list-style: none; }
.hc-det > summary.hc-row::-webkit-details-marker { display: none; }
.hc-det + .hc-row, .hc-det + .hc-det > .hc-row, .hc-row + .hc-det > .hc-row { border-top: 1px solid var(--line); }
.hc-det { border-top: 0; }
.hc-det > .hc-more { padding: 0 0 10px; }
.hc-det[open] > summary .hc-ic { background: var(--sage); }
.hc-t { font: 800 15px "Nunito", sans-serif; color: var(--night-2); font-variant-numeric: tabular-nums; }
.hc-b { min-width: 0; display: block; }
.hc-n { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.hc-n a { color: var(--ink); text-decoration: none; }
.hc-n .chip { margin-left: 4px; font-size: 11px; }
.hc-s { display: block; color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: #5E6B60; }
.hc-dot[data-sala="chmura"] { background: #2F6482; } .hc-dot[data-sala="mech"] { background: #194730; }
.hc-dot[data-sala="kropla"] { background: #3F6F78; } .hc-dot[data-sala="bursztyn"] { background: #8A6A12; }
.hc-i { display: flex; gap: 4px; }
.hc-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--night-2); text-decoration: none; }
.hc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc-row.past, .hc-det.past { opacity: .6; }
.hc-row.off .hc-t, .hc-row.off .hc-n a, .hc-row.off .hc-n, .hc-det.off .hc-t, .hc-det.off .hc-n a { text-decoration: line-through; }
.hc-more form { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.hc-more .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.hc-wknav { margin: 8px 0 2px; }
.hc-todo-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); }
.hc-todo-r .btn { min-height: 44px; padding: 0 16px; }
.hc-todocard { border-color: var(--gold); background: var(--sand); }
.hc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.hc-nums-rest { display: contents; }
.hc-num { display: block; min-width: 0; color: inherit; text-decoration: none; }
.hc-num b { display: block; font: 800 19px "Nunito", sans-serif; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-num span { display: block; color: var(--ink-soft); font-size: 11.5px; line-height: 1.25; }
a.hc-num b { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.hc-morenums { grid-column: 1 / -1; }
.hc-morenums > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--night-2); min-height: 36px; display: flex; align-items: center; }
.hc-nums-in { margin-top: 4px; }
.hc-numinfo { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.tabbar > a.on { background: transparent; }
@media (min-width: 1000px) {
  .hc-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .js .hc-panel.hc-todo { display: block; }
  .hc-tile[data-tab="todo"] { cursor: default; }
  .hc-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-morenums[open] > summary { margin-bottom: 4px; }
}
@media (max-width: 640px) {
  .main { padding-left: 10px; padding-right: 10px; padding-top: 12px; }
  .staff .card { padding: 12px; }
  .staff > .card, .staff > section.card, .staff form > .card { margin-bottom: 10px; }
  .staff .stack > * + * { margin-top: 10px; }
  .staff h1 { font-size: 22px; }
  .head { margin-bottom: 10px; }
}

/* ---------- komputer ≥1000 px: menu boczne z ikonami, Pulpit z podglądem wizyty (zlecenie 22) ---------- */
.hc-num-tile, .hc-prev, .hc-bars, .hc-restline, .hc-btns { display: none; }
.hc-restline { color: var(--ink-soft); font-size: 13px; padding: 0 4px 10px; }
.hc-restline a { color: var(--night-2); font-weight: 700; text-decoration: none; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
@media (min-width: 1000px) {
  .shell-staff { grid-template-columns: 216px minmax(0, 1fr); }
  .side-staff { padding: 22px 12px; gap: 2px; }
  .side-staff .brand { font-size: 19px; padding: 0 10px 16px; }
  .side-staff a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 14.5px; }
  .side-staff svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .side-staff .sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 6px; }
  .side-staff .dot { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font: 800 10.5px "Nunito", sans-serif; margin-left: auto; }
  .side-staff .foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: #8FA394; display: flex; flex-direction: column; gap: 3px; }
  .side-staff .foot b { color: #DCE5D8; font-size: 13px; }
  .side-staff .foot form { margin: 4px 0 0; }
  .side-staff .foot button { padding: 4px 0; color: #A9B8AC; min-height: 0; }
  .side-staff .foot a.old { padding: 6px 0 0; font-size: 11.5px; font-weight: 400; color: #6F8575; min-height: 0; }
  .main.staff { padding: 20px 26px 40px; max-width: 1180px; }
  .hc-hello h1, .staff .head h1 { font-size: 23px; }
  .hc-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .hc-num-tile { display: block; border-style: dashed; background: transparent; cursor: default; }
  a.hc-num-tile { cursor: pointer; }
  .hc-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 14px; }
  .hc-card { padding: 16px; margin-bottom: 14px; }
  .hc-btns { display: flex; gap: 6px; }
  .hc-i .hc-ic { display: none; }
  .hc-row { grid-template-columns: 56px minmax(0, 1fr) auto; min-height: 56px; cursor: default; }
  .hc-row.sel, .hc-det > summary.hc-row.sel { background: var(--sage-pale); border-radius: 10px; }
  .hc-prev:not([hidden]) { display: block; }
  .hc-bars, .hc-restline { display: block; }
  .hc-dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; margin: 10px 0; font-size: 14px; }
  .hc-dl dt { color: var(--ink-soft); } .hc-dl dd { margin: 0; font-weight: 600; }
  .hc-prev-btns { display: flex; gap: 6px; flex-wrap: wrap; }
  .hc-wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 96px; }
  .hc-wkb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; border: 0; background: none; font: inherit; font-size: 11px; color: var(--ink-soft); height: 100%; cursor: pointer; padding: 0; }
  .hc-wkb i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--sage); min-height: 4px; }
  .hc-wkb.today i { background: var(--night-2); }
  .hc-wkb em { font-style: normal; font-weight: 800; color: var(--ink); font-size: 12px; min-height: 14px; }
  .hc-card.flash { box-shadow: 0 0 0 2px var(--gold); }
  .hc-todo-r .btn, .hc-more .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
  .tabbar { display: none; }
}

/* ---------- wiadomości: trzy kolumny na komputerze (zlecenie 22) ---------- */
.msgl { display: none; }
.msgs3 { display: flex; flex-direction: column; }
.msgx { order: -1; }
.tpl { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tpl a { padding: 4px 9px; border-radius: 8px; background: var(--sage-pale); color: var(--night-2); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.msg-count { display: none; }
@media (min-width: 1000px) {
  .msgs3 { display: grid; grid-template-columns: 300px minmax(0, 1fr) 270px; gap: 14px; align-items: start; height: calc(100vh - 150px); min-height: 420px; }
  .msgs3 > * { min-height: 0; margin: 0 !important; max-height: 100%; }
  .msgl { display: block; overflow-y: auto; padding: 8px; }
  .msgl .it { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px; border-radius: 10px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .msgl .it:first-child { border-top: 0; }
  .msgl .it.on { background: var(--sage-pale); }
  .msgl .it time { font-size: 12px; color: var(--ink-soft); }
  .msgl .it p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .msgl .it.un b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 6px; }
  .msgx { order: 0; overflow-y: auto; }
  .msgc { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
  .msgb { flex: 1; overflow-y: auto; }
  .bubble { max-width: 74%; }
  .bubble.out { background: var(--night-2); color: #fff; }
  .bubble.out .muted { color: rgba(255,255,255,.75); }
  .bubble.out.wait { background: var(--sand); color: var(--ink); border: 1px dashed var(--gold); }
  .bubble.out.wait .muted { color: var(--ink-soft); }
  .msg-count { display: block; text-align: right; margin: -2px 0 6px; }
  .msgc textarea { min-height: 54px; }
}

/* ---------- kalendarz: kolumna boczna i miesiąc (zlecenie 22) ---------- */
.calside { display: none; }
.mini { width: 100%; border-collapse: collapse; text-align: center; font-size: 13px; margin: 6px 0; }
.mini th { color: var(--ink-soft); font-weight: 700; font-size: 11px; padding: 2px 0; }
.mini td { padding: 1px; }
.mini td a, .mini td span { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 30px; border-radius: 8px; color: var(--ink); text-decoration: none; position: relative; }
.mini td.o a, .mini td.o span { color: #9AA79C; }
.mini td.in a, .mini td.in span { background: var(--sage-pale); }
.mini td.today a, .mini td.today span { background: var(--night-2); color: #fff; }
.mini i { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.calsc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mgrid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mgrid th { font-size: 12px; color: var(--ink-soft); padding: 4px; text-align: left; }
.mgrid td { border: 1px solid var(--line); vertical-align: top; height: 84px; padding: 0; }
.mgrid td a { display: block; height: 100%; padding: 6px; color: var(--ink); text-decoration: none; }
.mgrid td.o { background: #F7F8F6; color: #9AA79C; }
.mgrid td.today b { display: inline-block; min-width: 24px; text-align: center; border-radius: 12px; background: var(--night-2); color: #fff; }
@media (max-width: 640px) { .mgrid td { height: 58px; } .mgrid td .chip { font-size: 10px; padding: 1px 4px; } }
@media (min-width: 1000px) {
  .calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 14px; align-items: start; }
  .card.calwrap { display: block; }   /* 18.11: /gabinety (rooms.html) używa .calwrap jako zwykłej karty, nie układu kalendarza specjalisty z panelem bocznym */
  .calside { display: flex; flex-direction: column; gap: 12px; }
  .calside .card { padding: 14px; }
  .tplmode .calside { display: none; }
  .tplmode .calwrap { display: block; }
  .cal-links { display: none; }
}

/* ---------- zlecenie 22b: poprawki komputera ---------- */
.only-desk { display: none; }
.pt-wrap { display: contents; }
.msg-actions { display: none; }
.cal-legend.lg-side { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; }
@media (min-width: 1000px) {
  .only-desk { display: inline-flex; }
  .no-desk { display: none !important; }
  .cal-root { position: relative; }
  .cal-root > .head .muted.only-view { display: none; }
  .pt-wrap { display: flex; position: absolute; top: 2px; right: 0; gap: 10px; align-items: center; z-index: 2; }
  .pt-wrap .cal-nav button { width: 32px; height: 32px; font-size: 16px; }
  .pt-wrap .seg2 button, .pt-wrap .seg-a { min-height: 32px; padding: 0 12px; font-size: 13px; }
  .seg-a { align-items: center; color: var(--ink); text-decoration: none; font: 700 13px 'Nunito Sans', sans-serif; border-left: 1px solid var(--line); }
  .calmain .cal-legend { display: none; }
  #cal .sch-cell, #cal .cal-axis div { height: var(--rowpx, 56px) !important; }
  .msg-actions { display: flex; gap: 8px; align-items: center; }
  .msg-act { display: flex; gap: 6px; margin: 0; }
  .msg-act select { min-height: 32px; border-radius: 10px; border: 1px solid var(--line); padding: 0 8px; background: #fff; font: inherit; font-size: 13px; max-width: 190px; }
  .calside .hc-prev:not([hidden]) { display: block; }
}
@media (min-width: 1000px) {
  .win-nav { display: none !important; }
  .cal-root .cal-links { display: none !important; }
  .calside .cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
  .calside .cal-legend span { display: inline-flex; gap: 6px; align-items: center; }
}
@media (min-width: 1000px) {
  .msgs3 > .msgl { grid-column: 1; grid-row: 1; }
  .msgs3 > .msgc { grid-column: 2; grid-row: 1; }
  .msgs3 > .msgx { grid-column: 3; grid-row: 1; }
}

/* ---------- zniżki (zlecenie 24): zwykła tabela i karty jak w Rozliczeniu ---------- */
.zn-wrap { display: flex; flex-direction: column; gap: 14px; }
.zn-side { display: flex; flex-direction: column; gap: 14px; }
.zn { width: 100%; border-collapse: collapse; }
.zn th { text-align: left; font-size: 12px; color: var(--ink-soft); font-weight: 700; padding: 4px 8px 8px; }
.zn td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.zn tr.zn-row { cursor: pointer; }
.zn tr.zn-row.sel td { background: var(--sage-pale); }
.zn-logo span { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.zn-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zn code { background: #F1F3EF; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 13px; }
.zn-act { text-align: right; white-space: nowrap; }
.zn-msg { background: #F7F8F6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-line; }
.zn-detail { display: none; }
.zn-msgcard { display: none; }
@media (max-width: 999px) {
  .zn thead { display: none; }
  .zn, .zn tbody, .zn tr, .zn td { display: block; }
  /* telefon (poprawka 17.11): jedna kolumna treści obok logo — nazwa, potem zniżka, kod, przycisk; wcześniej zniżka z długim opisem
     zabierała całą szerokość i nazwa partnera łamała się słowo po słowie */
  .zn tr.zn-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .zn tr.zn-row:first-child { border-top: 0; }
  .zn td { border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  .zn tr.zn-row.sel td { background: transparent; }
  .zn-logo { grid-column: 1; grid-row: 1 / span 3; }
  .zn td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .zn td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .zn td:nth-child(3) b { font-size: 17px; }
  .zn td:nth-child(4) { grid-column: 2; grid-row: 3; }
  .zn-act { grid-column: 1 / -1; grid-row: 4; text-align: left; white-space: normal; margin-top: 6px; }
  .zn-act .btn { min-height: 44px; width: 100%; }
  .zn-how { margin-top: 2px; }
}
@media (min-width: 1000px) {
  .zn-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .zn-detail, .zn-msgcard { display: block; }
  .zn-how { display: none; }
}
.zn-logo span.dark { background: var(--ink); }
.zn code { white-space: nowrap; }
@media (min-width: 1000px) {
  .zn { table-layout: auto; }
  .zn th:nth-child(1), .zn td:nth-child(1) { width: 52px; }
  .zn th:nth-child(4), .zn td:nth-child(4) { width: 150px; white-space: nowrap; }
  .zn th:nth-child(5), .zn td:nth-child(5) { width: 1%; white-space: nowrap; }
}
.zn td .muted { white-space: normal; }
.zn td:nth-child(4) .muted { white-space: nowrap; }
.zn-detail code { background: #F1F3EF; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 13px; white-space: nowrap; }

/* ---------- karta rodziny (zlecenie 23A) ---------- */
.fc-head { display: flex; flex-direction: column; gap: 10px; }
.fc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-grid { display: flex; flex-direction: column; gap: 14px; }
.fc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.fc-row:first-of-type { border-top: 0; }
.fc-row.sel { background: var(--sage-pale); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.fc-state { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-act { grid-column: 2; grid-row: 1; }
.fc-mark { grid-column: 1 / -1; display: none; }
.fc-mark:target { display: block; }
.fc-mark form { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-older summary { cursor: pointer; padding: 10px 0; color: var(--night-2); font-weight: 700; }
.fc-h { margin: 0 0 10px; font-size: 18px; }
.fc-right { display: flex; flex-direction: column; gap: 14px; }
.fc-change .grid.g2 { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .fc-head { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .fc-note { display: none; }
  .fc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .fc-row { grid-template-columns: 150px minmax(0, 1fr) auto 90px; }
  .fc-act { grid-column: 4; grid-row: 1; text-align: right; }
  .fc-mark { grid-column: 1 / -1; }
  .fc-mark:not(:target) { display: none; }
}
.fc-row.sep { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 14px; }

/* ---------- zapis godzin: karta po prawej, siatka w oknie (zlecenie 22c) ---------- */
.csv-tpl, .csv-n { display: none; }
@media (min-width: 1000px) {
  .calsave { position: sticky; top: 16px; z-index: 6; display: none; flex-direction: column; gap: 8px; }
  .calsave .csv-view { display: none; flex-direction: column; gap: 8px; }
  .editing .calsave .csv-view { display: flex; }
  .editing .calsave .csv-n { display: block; }
  .calsave .csv-row { display: flex; gap: 6px; flex-wrap: wrap; }
  .calsave .btn[disabled] { background: #C9D2C5; color: #fff; cursor: default; }
  .calsave.tpl .csv-view { display: none !important; }
  .calsave.tpl .csv-tpl { display: flex; flex-direction: column; gap: 8px; }
  .calsave.tpl .csv-n { display: block; }
  .editing .calsave, .tplmode .calsave { display: flex; }
  .sch-below, .sch-save { display: none !important; }
  .tplmode .calside { display: flex !important; }
  .tplmode .calside > :not(.calsave):not(.calextra), .editing.e2 .calside > :not(.calsave):not(.calextra) { display: none; }
  .tplmode .calwrap { display: grid !important; }
  .tplmode .calmain #sch { display: none !important; }
}
@media (max-width: 999px) {
  .editing.dirty #sch .sch-save { position: sticky; bottom: 70px; z-index: 6; box-shadow: 0 -6px 20px rgba(15,36,25,.18); }
}

@media (min-width: 1000px) {
  #tplcal .sch-cell, #tplcal .cal-axis div { height: var(--rowpx, 56px) !important; }
  .main.staff { padding-bottom: 12px; }
  .mini td a, .mini td span { height: 26px; }
  .calside { gap: 10px; }
  .calside .cal-legend.lg-side { flex-wrap: nowrap; gap: 8px; font-size: 11px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .cal-sentence { display: none; }
  .mini td a, .mini td span { height: 22px; font-size: 12px; }
  .calside .card { padding: 10px 12px; }
}

.calextra { display: none; }
@media (min-width: 1000px) {
  .editing.e2 .calextra, .tplmode .calextra { display: flex; flex-direction: column; gap: 10px; }
  .calextra .card { margin: 0 !important; }
  .cal-root > .head .muted { display: none; }
}

@media (min-width: 1000px) {
  .calside { overflow-y: auto; scrollbar-width: thin; }
  .calsave { top: 0; }
  #jak .small.muted { display: none; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .calsc { grid-template-columns: repeat(4, auto); }
  .calsc .btn { padding: 0 6px; font-size: 12px; }
}
@media (min-width: 1000px) {
  .cal-root > .head .muted { display: none !important; }
  #tpl-settings > div[style*="display:flex"] { display: none; }
  .calside .cal-legend.lg-side { flex-wrap: wrap; }
}
@media (min-width: 1000px) and (max-width: 1399px) {
  .cal-tools .seg2.tabs { left: 124px; }
  .cal-tools .seg2.tabs button { padding: 0 9px; font-size: 12.5px; }
  .pt-wrap { gap: 8px; }
  .pt-wrap .cal-nav b { min-width: 92px; font-size: 14px; }
  .pt-wrap .seg2 button, .pt-wrap .seg-a { padding: 0 9px; font-size: 12.5px; }
}
@media (min-width: 1000px) and (max-width: 1249px) {
  .cal-tools .seg2.tabs { position: static; margin: 0 0 8px; }
}

/* ---------- pacjenci (zlecenie 26 A) ---------- */
.pt-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pt-bar input[type=search] { flex: 1 1 240px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; font: inherit; background: #fff; }
.pt-bar .seg2 { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.pt-bar .seg2 button { border: 0; background: none; padding: 0 16px; font: 700 14px 'Nunito Sans', sans-serif; cursor: pointer; min-height: 44px; color: var(--ink); }
.pt-bar .seg2 button.on { background: var(--night-2); color: #fff; }
.pt { width: 100%; border-collapse: collapse; }
.pt th { text-align: left; font-size: 12px; color: var(--ink-soft); font-weight: 700; padding: 4px 8px 8px; }
.pt td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.pt tbody tr { cursor: pointer; }
.pt tbody tr:hover td { background: var(--sage-pale); }
.pt a { color: var(--ink); text-decoration: none; }
.pt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pt-go { text-align: right; }
@media (max-width: 999px) {
  .pt thead { display: none; }
  .pt, .pt tbody, .pt tr, .pt td { display: block; }
  .pt tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .pt tr:first-child { border-top: 0; }
  .pt td { border: 0; padding: 2px 0; }
  .pt td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-soft); font-size: 13px; }
  .pt-go { text-align: left; margin-top: 6px; }
  .pt-go .btn { min-height: 44px; }
}

/* ---------- Wiadomości jak komunikator (zlecenie 29/8) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { display: grid; grid-template-columns: 1fr; gap: 14px; }
.chat-list, .chat-main, .chat-ctx { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; min-height: 0; }
.chat-head h1 { font-size: 22px; padding: 14px 14px 6px; margin: 0; }
.chat-find { margin: 6px 12px 8px; width: calc(100% - 24px); min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
.chat-items { overflow-y: auto; padding: 0 6px 10px; }
.chat-sep { font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 12px 10px 4px; }
.chat-items .it { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.chat-items .it.on { background: var(--sage-pale); }
.chat-items .it:hover { background: var(--sage-pale); }
.chat-items .ini { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font: 800 13px Nunito, sans-serif; color: var(--night-2); }
.chat-items .it.on .ini { background: var(--sage); }
.chat-items .who { display: flex; flex-direction: column; min-width: 0; }
.chat-items .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-items .it.un .who b { font-weight: 800; }
.chat-items .it.un::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); grid-column: 3; grid-row: 1; justify-self: end; }
.chat-items .it.un time { display: none; }
.chat-items .pv { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-items time { font-size: 12px; color: var(--ink-soft); }
.chat-main { display: flex; flex-direction: column; overflow: hidden; }
/* profil: edycja i akceptacja (zlecenie 18) */
.pf-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.pf-top img { width: 96px; height: 128px; object-fit: cover; border-radius: 14px; background: var(--sage-pale); flex: none; }
.pf-wait { background: var(--sand); border: 1px solid var(--gold); border-radius: 10px; padding: 12px 14px; }
.pf-diff { margin-top: 10px; }
.pf-new > div, .pf-old > div, .pf-diff .pf-new { white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-req { padding: 12px 0; border-top: 1px solid var(--line); }
.pf-req:first-of-type { border-top: 0; }
.pf-cmp { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.pf-cmp .pf-lab { grid-column: 1 / -1; font-weight: 700; }
.pf-old, .pf-cmp .pf-new { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.pf-old { color: var(--ink-soft); }
@media (min-width: 800px) { .pf-cmp { grid-template-columns: 1fr 1fr; } }
/* pulpit operatora: kafle i „Do Twojej decyzji” (zlecenie 23 D) */
.op-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.op-tiles .stat { text-decoration: none; color: inherit; padding: 14px 16px; }
.op-tiles .stat b { font-size: 26px; }
.op-tiles .stat.warn { background: var(--sand); border-color: var(--gold); }
.op-tiles .stat.gold { color: #F4EFE0; }
.op-decide { margin-bottom: 18px; border-color: var(--gold); }
.op-decide #profile-box-pulpit section, .op-decide #polecenia-box-pulpit > * { border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none; }
.op-decide #profile-box-pulpit h2 { font-size: 15px; margin: 10px 0 0; }
.op-decide .pf-req { border-top: 1px solid var(--line); }
.op-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.op-row > div { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.op-act { display: flex; gap: 8px; flex: none; }
.op-none { margin: 10px 0 0; }
@media (min-width: 700px) { .op-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .op-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* rozliczenie specjalisty (zlecenie 23 C) */
.pay-nav { display: flex; gap: 8px; align-items: center; }
.pay-nav select { min-height: 40px; }
.pay-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pay-tiles .stat { padding: 14px 16px; }
.pay-tiles .stat b { font-size: 26px; }
.pay-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pay-row:first-of-type { border-top: 0; }
.pay-when { grid-column: 1; } .pay-sum { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.pay-what { grid-column: 1 / -1; } .pay-state { grid-column: 1 / -1; }
.rf-row { flex-wrap: wrap; } .rf-row > div { flex: 1 1 160px; } .rf-row .chip { white-space: normal; max-width: 100%; }
.rf-top { display: flex; gap: 12px; align-items: flex-start; }
.rf-top img { border: 1px solid var(--line); border-radius: 10px; flex: none; }
.rf-top > div { flex: 1; min-width: 0; }
.rf-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (min-width: 900px) {
  .pay-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pay-row { grid-template-columns: 110px minmax(0, 1fr) 170px 110px; align-items: center; }
  .pay-when, .pay-what, .pay-state, .pay-sum { grid-column: auto; grid-row: auto; }
}
/* pomoc: poradnik nowego panelu (zlecenie 25) */
.gd-find { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; margin-bottom: 14px; }
.gd-h { font-size: 17px; margin: 18px 0 10px; }
.gd > summary { cursor: pointer; }
.gd-body { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.gd-text { line-height: 1.6; min-width: 0; }
.gd-text ol { margin: 8px 0; padding-left: 20px; }
.gd-text li { margin-bottom: 6px; }
.gd-rule { background: var(--sand); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.gd-shot { align-self: center; flex: none; }
.gd-shot img { width: 240px; height: auto; border: 1px solid var(--line); border-radius: 18px; display: block; }
@media (min-width: 900px) { .gd-body { flex-direction: row; align-items: flex-start; } .gd-text { flex: 1; } .gd-shot { align-self: flex-start; } }
/* wypłaty: kwota i konto (17.11) */
.po-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.po-acc { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.po-acc code { font-size: 14px; background: var(--sage-pale); padding: 4px 8px; border-radius: 8px; }
.po-sum { text-align: right; white-space: nowrap; }
@media (min-width: 900px) { .po-row { grid-template-columns: 260px 130px 1fr; } .po-acc { grid-column: auto; } }
/* pierwsze kroki (zlecenie 25b) */
.pk-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pk-row:first-of-type { border-top: 0; }
.pk-ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #C9D3C6; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.pk-row.ok .pk-ic { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.pk-row.ok .pk-t { color: var(--ink-soft); text-decoration: line-through; }
.pk-t { flex: 1; min-width: 0; }
/* dokumenty (zlecenie 23 E) */
.dk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dk-row:first-of-type { border-top: 0; }
.dk-row > div { min-width: 0; overflow-wrap: anywhere; }
.dk-row .btn { flex: none; }
/* ankiety (zlecenie 26 F) */
.sv-row { padding: 12px 0; border-top: 1px solid var(--line); }
.sv-row:first-of-type { border-top: 0; }
.sv-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.sv-odp { margin-top: 10px; padding: 12px 14px; background: var(--sage-pale); border-radius: 10px; }
.sv-odp p { margin: 0 0 10px; white-space: pre-wrap; }
.sv-odp p:last-child { margin-bottom: 0; }
.sv-odp b { display: block; font-size: 13px; color: var(--ink-soft); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-back { font-size: 26px; line-height: 1; text-decoration: none; color: var(--ink); padding: 0 8px; min-width: 40px; min-height: 40px; display: flex; align-items: center; }
.chat-link { font-size: 13px; font-weight: 700; color: var(--night-2); text-decoration: none; white-space: nowrap; }
.chat-note { padding: 8px 14px; background: var(--sand); font-weight: 700; font-size: 14px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-empty { margin: auto; color: var(--ink-soft); text-align: center; padding: 20px; }
.cb-day { align-self: center; font-size: 12px; color: var(--ink-soft); margin: 8px 0 2px; }
.cb { max-width: 76%; padding: 8px 12px; border-radius: 14px; background: var(--sage-pale); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb.me { align-self: flex-end; background: var(--night-2); color: #fff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.cb.hold { background: var(--sand); color: var(--ink); border: 1px dashed var(--gold); }
.cb.err { border: 1.5px solid var(--danger); }
.cb-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.cb-m { font-size: 11.5px; opacity: .75; margin-top: 3px; }
.cb-retry { border: 0; background: none; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 0 0 0 6px; }
.chat-compose { border-top: 1px solid var(--line); padding: 10px 12px 8px; background: var(--paper); }
.cc-row { display: flex; align-items: flex-end; gap: 8px; }
.cc-row textarea { flex: 1; min-height: 40px; max-height: 126px; resize: none; border: 1px solid #C9D2C5; border-radius: 12px; padding: 9px 12px; font: inherit; line-height: 22px; }
.cc-plus { position: relative; }
.cc-plusbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #C9D2C5; background: #fff; font-size: 22px; cursor: pointer; color: var(--night-2); }
.cc-menu { position: absolute; bottom: 46px; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,36,25,.18); padding: 6px; display: flex; flex-direction: column; min-width: 230px; z-index: 5; }
.cc-menu button { text-align: left; background: none; border: 0; padding: 10px; border-radius: 8px; font: inherit; cursor: pointer; }
.cc-menu button:hover { background: var(--sage-pale); }
.cc-n { font-size: 12px; color: var(--ink-soft); align-self: center; }
.cc-row .btn { min-height: 40px; }
.cc-hint { margin: 6px 2px 0; }
.chat-ctx { display: none; padding: 14px; overflow-y: auto; }
/* telefon: lista albo rozmowa na cały ekran */
@media (max-width: 999px) {
  .chat.is-thread .chat-list, .chat.is-thread .chat-ctx { display: none; }
  .chat.is-list .chat-main { display: none; }
  .chat.is-list .chat-list { border: 0; background: transparent; }
  .chat.is-thread { margin: -10px; }
  .chat.is-thread .chat-main { border-radius: 0; border: 0; min-height: calc(100dvh - 24px); }
  .chat.is-thread .chat-msgs { min-height: 50vh; }
  .chat.is-thread .chat-compose { position: sticky; bottom: 0; }
  body.chat-open .tabbar { display: none; }
  .chat-items .it { padding: 12px 8px; min-height: 56px; }
}
@media (min-width: 1000px) {
  .chat { grid-template-columns: 320px minmax(0, 1fr); }
  .chat.is-thread { grid-template-columns: 320px minmax(0, 1fr); }
  .chat-list { display: flex; flex-direction: column; overflow: hidden; }
  .chat-items { flex: 1; }
  .chat-back { display: none; }
  .chat-blank { align-items: center; justify-content: center; }
}
@media (min-width: 1280px) {
  .chat.is-thread { grid-template-columns: 320px minmax(0, 1fr) 280px; }
  .chat-ctx { display: block; }
}
.cc-menu[hidden], .cc-n[hidden], .chat-none[hidden], .chat-items [hidden] { display: none !important; }
.chat-find { box-sizing: border-box; }
.chat-items .it { box-sizing: border-box; max-width: 100%; }
.chat-list, .chat-main { min-width: 0; }
.chat .chat-find { width: calc(100% - 24px) !important; min-width: 0; max-width: calc(100% - 24px); display: block; }

/* ---------- co dalej z tą rodziną (zlecenie 26 B) ---------- */
.ft { border-top: 1px solid var(--line); padding: 10px 0; }
.ft:first-child { border-top: 0; padding-top: 0; }
.ft > summary { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; list-style: none; padding-right: 22px; position: relative; }
.ft > summary::-webkit-details-marker { display: none; }
.ft > summary::after { content: "›"; position: absolute; right: 4px; top: 0; font-size: 20px; color: var(--ink-soft); transition: transform .15s; }
.ft[open] > summary::after { transform: rotate(90deg); }
.ft-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ft-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.ft-form select, .ft-form input[type=text], .ft-form input[type=date] { min-height: 44px; }
.ft-form .btn { align-self: flex-start; }
.ft-form p { margin: 0; }
.ft-two { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ft-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.ft-table th { text-align: left; font-size: 12px; color: var(--ink-soft); padding: 4px 6px; }
.ft-table td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.ho-files { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; max-height: 340px; overflow: auto; }
.ft-form .ho-file { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 400; cursor: pointer; }
.ho-file:first-child { border-top: 0; }
.ho-file input { width: 20px; height: 20px; flex: none; }
.ho-file span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .ft-two { grid-template-columns: 1.4fr 1fr 1fr; }
  .ft-line { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .ft-line label { flex: 1 1 200px; }
  .ft-line > div { flex: 1 1 100%; }
  .ft-line .btn { align-self: flex-end; }
}
@media (max-width: 699px) {
  .ft-table thead { display: none; }
  .ft-table tr { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
  .ft-table td { border: 0; padding: 0; }
  .ft-table td:first-child { flex: 1 1 100%; font-weight: 700; }
}

.hc-todo-r .btn { white-space: nowrap; }

/* ---------- telefon: poprawki po przeglądzie 17.11 ---------- */
.hc-dl { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 4px 12px; margin: 10px 0; font-size: 14px; }
.hc-dl dt { color: var(--ink-soft); }
.hc-dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hc-sec { flex-wrap: wrap; gap: 2px 12px; }
.zn-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }

/* ---------- jedna grupa na ekranie: osoby z mailami (17.11) ---------- */
.gb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gb-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 800 13.5px Nunito, sans-serif; color: var(--ink); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.gb-tabs a.on { background: var(--night-2); color: #fff; border-color: var(--night-2); }
.gb-tabs small { font-weight: 400; opacity: .8; }
.gb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.gb-tiles .stat { padding: 12px 14px; } .gb-tiles .stat b { font-size: 24px; }
.gb-tiles .stat.warn { background: var(--sand); border-color: var(--gold); }
.gb-grid { display: flex; flex-direction: column; gap: 14px; }
.gb-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 8px; border-top: 1px solid var(--line); border-radius: 10px; }
.gb-row:first-of-type { border-top: 0; }
.gb-row.sel { background: var(--sage-pale); }
.gb-who a { color: var(--ink); text-decoration: none; }
.gb-stage, .gb-mails { grid-column: 1 / -1; }
.gb-act { grid-column: 2; grid-row: 1; }
.gb-mails { display: flex; flex-direction: column; gap: 3px; }
.gb-mail { display: flex; gap: 8px; font-size: 13px; line-height: 1.35; }
.gb-mail i { font-style: normal; color: var(--ink-soft); flex: none; width: 40px; }
.gb-mail.new span { font-weight: 800; }
.gb-tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; }
.gb-tli { position: relative; padding-bottom: 12px; overflow-wrap: anywhere; }
.gb-tli:last-child { padding-bottom: 0; }
.gb-tli::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--night-2); }
.gb-tli.in::before { background: var(--gold); }
.gb-tli b { display: block; font-size: 14px; }
@media (min-width: 700px) { .gb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gb-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }   /* 6 kafli od 18.11 (doszło „po konsultacji, do decyzji”) */
@media (min-width: 1100px) {
  .gb-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
  .gb-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: start; }
  .gb-stage, .gb-mails, .gb-act { grid-column: auto; grid-row: auto; }
}

/* parent's address in intake lists: visible, tap opens the phone's mail app (17.11) */
.mailto { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--night-2); text-decoration: underline; overflow-wrap: anywhere; }

/* intake row: rare actions folded away so a person takes a few lines, not a screen (17.11) */
.nabor-more { margin-top: 6px; }
.nabor-more > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--night-2); min-height: 36px; display: inline-flex; align-items: center; }
.nabor-more[open] > summary { margin-bottom: 8px; }

/* receipts to the contract + checkbox in family tools (17.11) */
.rc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ft-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.ft-check input { width: auto; min-height: 0; }

/* survey rating row (17.11) */
.sv-rate { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.sv-rate select { width: auto; min-height: 40px; }
.sv-rate input[type=text] { flex: 1 1 180px; min-height: 40px; }

/* contract switch in Konta (17.11) */
.seg { display: inline-flex; align-items: center; gap: 0; margin-top: 8px; flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--night-2); background: #fff; color: var(--ink); font: 800 14px Nunito, sans-serif; cursor: pointer; }
.seg button:first-of-type { border-radius: 10px 0 0 10px; }
.seg button:nth-of-type(2) { border-radius: 0 10px 10px 0; border-left: 0; }
.seg button.on { background: var(--night-2); color: #fff; }
.seg .small { margin-left: 10px; }

/* guide, screen by screen (17.11): a chapter is a row of screens — phone screenshot + what to do there */
.gd-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--night-2); color: #fff; font: 800 13px Nunito, sans-serif; margin-right: 8px; flex: none; }
.gd > summary { display: flex; align-items: center; }
.gd-why { margin: 10px 0 4px; }
.gd-screen { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.gd-screen .gd-shot { display: block; width: 210px; max-width: 70%; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.gd-screen .gd-shot img { display: block; width: 100%; height: auto; }
.gd-screen h3 { font: 800 15px Nunito, sans-serif; margin: 0 0 6px; }
.gd-screen ol { margin: 0; padding-left: 20px; } .gd-screen li { margin-bottom: 6px; line-height: 1.5; }
@media (min-width: 760px) {
  .gd-screen { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
  .gd-screen.noshot { grid-template-columns: minmax(0, 1fr); }
  .gd-screen .gd-shot { max-width: none; margin: 0; }
}
/* 21.11: zrzuty poziome (Nextcloud) na całą szerokość, tekst pod spodem — w 210 px byłyby nieczytelne */
.gd-screen.wide { grid-template-columns: minmax(0, 1fr) !important; }
.gd-screen.wide .gd-shot { width: 100%; max-width: 680px; margin: 0; border-radius: 12px; }
.gd-screen .gd-shot img { border: 0; border-radius: 0; width: 100%; }

.ft-form .ft-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.ft-form .ft-check input { width: auto; min-height: 0; flex: none; margin: 0; }

/* the free talk held from the panel (17.11) */
.tk { max-width: 620px; }
.tk-big { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; }
.tk-big .btn { min-height: 52px; font-size: 16px; justify-content: center; text-align: center; }
.tk-num { font: 800 26px Nunito, sans-serif; letter-spacing: .02em; margin: 6px 0 10px; }

/* coupon code never breaks inside the code; on a narrow card the button goes under it (17.11) */
.coupon .ccode { flex-wrap: wrap; }
.coupon .ccode code { white-space: nowrap; font-size: 17px; letter-spacing: .04em; }
.coupon .ccode .btn { white-space: nowrap; flex: 1 1 auto; justify-content: center; }
@media (max-width: 480px) { .coupon .cl { width: 72px; padding: 8px; } .coupon .cl img { max-width: 56px; max-height: 56px; } }

/* partner logo upload in CRM > Partnerzy (17.11) */
.plogo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.plogo img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }
.plogo label { flex: 1 1 240px; margin: 0; }

/* panel rodziny, układ A „boczny pasek” (zlecenie 33, 18.11): powłoka, najbliższa wizyta jako biała karta, szyna */
.pshell { display: block; }
.pside { display: none; }
.pcontent { min-width: 0; }
.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 16px; }
.phead h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.phead .muted { margin-top: 2px; font-size: 14px; }
.pbook { flex: none; min-height: 42px; padding: 0 14px; font-size: 14px; gap: 8px; }
.pbook svg { width: 18px; height: 18px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin: 0; }
.pkl { font: 800 11px "Nunito", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.pgrid { display: flex; flex-direction: column; gap: 14px; }
.pstack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plist .vrow:first-of-type { border-top: 0; }
.pmore { border-top: 1px solid var(--line); margin-top: 4px; }
.pmore > summary { cursor: pointer; padding: 10px 0 2px; font: 800 14px "Nunito", sans-serif; color: var(--night-2); }
.chip.oczekuje { background: var(--sand); color: var(--bronze); }
.sm { font-size: 13px; }
/* najbliższa wizyta: komputer = biała karta z ciemnym kaflem daty, telefon = ciemny blok */
.pn-d { display: none; }
.pn-m { background: var(--night-2); color: #fff; border-radius: var(--r-block); padding: 18px 18px 16px; }
.pn-m .pkl { color: #C8D3C5; margin: 0; }
.pn-t { font: 800 24px/1.2 "Nunito", sans-serif; margin-top: 6px; }
.pn-s { margin-top: 4px; color: #E6EDE3; overflow-wrap: anywhere; }
.pn-w { margin-top: 2px; color: #C8D3C5; font-size: 14px; }   /* 23.11: specjalista na ciemnej karcie (telefon) */
.pn-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pn-b .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
.pn-b .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.pg-m { padding: 12px 16px; }
.pg-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.pg-row svg { flex: none; width: 22px; height: 22px; color: var(--night-2); }
.pg-row b, .pg-row span { display: block; overflow-wrap: anywhere; }
.pg-row span { color: var(--ink-soft); font-size: 14px; }
.pn-empty { display: flex; align-items: center; gap: 14px; }
.pn-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--sage-pale); color: var(--night-2); }
.pn-ico svg { width: 26px; height: 26px; }
.pn-txt { flex: 1; min-width: 0; }
.pn-txt b, .pn-txt span { display: block; overflow-wrap: anywhere; }
.pn-txt span { color: var(--ink-soft); font-size: 14px; }
.pn-empty .btn { flex: none; }
/* szyna */
.rail { padding: 4px 16px; }
.rail > section, .rail > a { display: block; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rail > :first-child { border-top: 0; }
.rail .grow { padding: 4px 0; }
.rail .grow b, .rail-a b { display: block; overflow-wrap: anywhere; }
.rail-a .btn { margin-top: 10px; min-height: 38px; padding: 0 14px; font-size: 14px; }
.rail-a:hover .pkl { color: var(--night-2); }
.rlogos { display: flex; gap: 6px; margin: 2px 0 6px; }
.rlogos .zc-logo { width: 36px; height: 36px; border-radius: 9px; font-size: 15px; }
.rlogos .zc-logo img { max-width: 26px; max-height: 26px; }
.zc-logo.more { background: var(--sage-pale); border-color: var(--sage-pale); color: var(--night-2); font: 800 12px "Nunito", sans-serif; }
@media (max-width: 999px) {
  .rail > .rail-grp { display: none; }
  .rail > .rail-grp + * { border-top: 0; }
  .rail { padding: 4px 16px; }
  .pmain { max-width: 720px; padding: 18px 16px 96px; }
  .pnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .pnav a { min-height: 54px; color: var(--ink-soft); font: 800 12px "Nunito", sans-serif; }
  .pnav svg { color: inherit; }
  .pnav a[aria-current="page"] { color: var(--night-2); }
  .pnav .ic-a { fill: var(--gold); stroke: none; }
  .pnav .ic-o { stroke: var(--gold); }
}
@media (max-width: 520px) {
  .phead h1 { font-size: 22px; }
  .pbook { padding: 0 12px; }
}
@media (min-width: 1000px) {
  .pshell { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; min-height: 100vh; }
  .pside { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; box-sizing: border-box; background: var(--ink); color: #fff; padding: 22px 14px; }
  .pside .brand { font: 800 20px "Nunito", sans-serif; color: #fff; text-decoration: none; padding: 0 10px 22px; }
  .pside nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 3px; border-radius: var(--r-btn); color: #C9D6CC; text-decoration: none; font: 700 15px "Nunito Sans", sans-serif; }
  .pside nav a:hover { color: #fff; }
  .pside nav a[aria-current="page"] { background: var(--night-2); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
  .pside nav svg { flex: none; }
  .pside nav .ic-a { fill: var(--gold); stroke: none; }
  .pside nav .ic-o { stroke: var(--gold); }
  .pside .foot { margin-top: auto; padding: 0 10px; }
  .pside .foot button, .pside .foot a { background: none; border: 0; padding: 8px 0; min-height: 40px; color: #9FB2A5; font: 700 14px "Nunito Sans", sans-serif; cursor: pointer; text-decoration: none; }
  .pside .foot button:hover, .pside .foot a:hover { color: #fff; }
  .ptop, .pnav { display: none; }
  .pmain { max-width: 1180px; margin: 0; padding: 26px 28px 60px; }
  .phead h1 { font-size: 26px; }
  .pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
  .pn-m, .pg-m { display: none; }
  .pn-d { display: flex; gap: 16px; align-items: center; padding: 16px; }
  .pn-date { flex: none; min-width: 96px; background: var(--night-2); color: #fff; border-radius: 14px; padding: 12px 14px; text-align: center; }
  .pn-date i { display: block; font: 800 10px "Nunito", sans-serif; font-style: normal; letter-spacing: .08em; margin-bottom: 5px; color: #C8D3C5; }
  .pn-date b { display: block; font: 800 28px/1 "Nunito", sans-serif; }
  .pn-date u { display: block; text-decoration: none; font: 700 13px "Nunito Sans", sans-serif; margin-top: 6px; }
  .pn-info { flex: 1; min-width: 0; }
  .pn-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
  .pn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .pn-actions .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .zgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .zgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* linia porównania na kaflach statystyk (wyniki): na jasnym tle kolor zależny od kierunku zmiany, na ciemnym kaflu jasny odcień z palety (kontrast ponad 10:1) */
.stat .dl { font-size: 13px; }
.stat .dl.up { color: var(--night-2); }
.stat .dl.dn { color: var(--danger); }
.stat.gold .dl, .stat.gold .dl.up { color: #C8D3C5; }
.stat.gold .dl.dn { color: var(--sand); }
.show-m { display: none; }
@media (max-width: 640px) { .show-m { display: block; } }

/* /grupy jako kafle (zlecenie 36, 18.11): siatka grup, szczegóły wybranej grupy pod spodem */
.gt-wrap { margin: 0 0 18px; }
.gt-h { margin: 18px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.gt-h:first-child { margin-top: 0; }
.gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gtile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); text-decoration: none; }
.gtile:hover { border-color: var(--night-2); }
.gtile.sel { border-color: var(--night-2); box-shadow: 0 0 0 1px var(--night-2); background: var(--sage-pale); }
.gtile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gt-name { font: 800 16px/1.25 "Nunito", system-ui, sans-serif; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gt-sub { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.gt-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 2px; }
.gt-chips .chip { font-size: 12px; padding: 2px 8px; }
.gtile.gt-new { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--night-2); background: transparent; min-height: 72px; }
.gt-pick { margin: 4px 2px 18px; }
.gdetail { margin: 18px 0; }
.gd-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; }
.gd-h { margin: 22px 0 8px; font-size: 16px; }
.gd-h:first-of-type { margin-top: 14px; }
.gd-list { margin: 0 0 14px; }
.gd-listhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.gd-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gref > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.gref > summary::-webkit-details-marker { display: none; }
@media (min-width: 700px) { .gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* etapy naboru (jedna mapa w db.STAGE_CLASS): każdy etap ma własny kolor z palety, kontrast tekstu min. 4,5:1 */
.chip.st-zgl { background: var(--gold); color: var(--ink); }                                  /* nikt jeszcze nie odpisał: najmocniejszy */
.chip.st-pisz { background: var(--sand); color: var(--bronze); }                              /* czekamy na rodzica: spokojny */
.chip.st-potw { background: var(--paper); color: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--night-2); }
.chip.st-kons { background: var(--sage); color: var(--ink); }
.chip.st-zapr { background: var(--night-2); color: #fff; }
.chip.st-opl { background: var(--ink); color: var(--sand); }
.gd-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gd-filter .pill { text-decoration: none; font-size: 13px; padding: 5px 11px; }
.gd-filter .pill.all { background: var(--sage-pale); color: var(--ink); }
.gd-filter .pill.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.gd-filter .pill:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gtiles + .gtiles { margin-top: 14px; }

/* wiersz osoby w naborze i karta zgłoszenia (zlecenie 35): akcje przy prawej krawędzi na wysokości nazwiska, bez pustej kolumny pośrodku */
.nabor-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.nabor-row > .nabor-more { justify-self: end; text-align: right; }
.nabor-row > .nabor-more[open] { grid-column: 1 / -1; width: min(100%, 420px); text-align: left; }
/* 18.11 (Łukasz, zrzuty z telefonu: Zadania i Konta): reguła wyżej stała po mobilnej i na telefonie dzieliła KAŻDY wiersz na dwie
   kolumny — prawa (opis albo przyciski konta) zabierała szerokość, lewa łamała się po jednym słowie i nachodziła na przyciski.
   Na telefonie jedna kolumna; dwie zostają tylko w wierszu naboru z „Przenieś lub usuń”. */
@media (max-width: 900px) {
  .nabor-row { grid-template-columns: minmax(0, 1fr); }
  .nabor-row:has(> .nabor-more) { grid-template-columns: minmax(0, 1fr) auto; }
  .nabor-row > form[style*="justify-content:flex-end"] { justify-content: flex-start !important; }
}
.inq-card { padding: 14px 0; border-top: 1px solid var(--line); }
.inq-card:first-of-type { border-top: 0; padding-top: 4px; }
.inq-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.inq-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.inq-act { flex: none; }
.inq-assign, .inq-close { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.inq-assign select { width: auto; flex: 1 1 260px; max-width: 420px; }
.inq-close input { flex: 1 1 200px; max-width: 320px; }
.inq-assign .btn, .inq-close .btn { min-height: 42px; }
.inq-reply { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--sage-pale); }
.inq-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.inq-done { padding: 8px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .inq-row { flex-direction: column; }
  .inq-act, .inq-act .btn, .inq-assign select, .inq-assign .btn, .inq-close input, .inq-close .btn, .inq-btns .btn { width: 100%; max-width: none; }
  .inq-assign select, .inq-close input { flex: 1 1 100%; }
}
.chip.st-po { background: var(--sand); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--night-2); }                                       /* po konsultacji: czeka na decyzję gabinetu, mocniejszy niż „przed” */
.chip.st-przyj { background: var(--sage-pale); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.nabor-decide { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.nabor-no > summary { cursor: pointer; font-size: 14px; color: var(--night-2); min-height: 36px; display: inline-flex; align-items: center; }
.nabor-no[open] { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nabor-no[open] > summary { flex-basis: 100%; min-height: 0; }
.nabor-no input { flex: 1 1 220px; max-width: 360px; }
.gb-compose { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--sage-pale); }
.gb-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.nabor-decide .btn { min-width: 112px; min-height: 40px; }

/* nabór grupy w trzech pasmach: kto ma teraz ruch (zlecenie 41, makieta 18.11) */
.gd-lacts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; }
.gd-lacts > span { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.band { margin-top: 18px; }
.band .gd-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; }
.band .bn { font: 800 13px "Nunito Sans", sans-serif; background: var(--sage); border-radius: 999px; padding: 1px 9px; }
.band-act .bn { background: var(--gold); color: #fff; }
.pcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pcards > .pcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }   /* 23.11: tylko w .pcards (ekran grup) — bez tego nadpisywało karty panelu rodzica (.pcard .pn-d: wizyta dublowana na telefonie, kafel daty nad tekstem) */
.pcards > .pcard.pc-act { border-left: 5px solid var(--gold); }
.pc-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.pc-name { font: 800 18px/1.2 "Nunito", system-ui, sans-serif; color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.pc-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pc-pills .chip, .dline .chip { white-space: nowrap; }
.pc-meta { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.pcards > .pcard .step { background: var(--sage-pale); border-radius: 10px; padding: 9px 12px; font-size: 15px; }
.pcards > .pcard.pc-act .step { background: #FBF3DC; }
.pcards > .pcard .hist { font-size: 14px; color: var(--ink-soft); }
.pcards > .pcard .hist > summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.pcards > .pcard .hist ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.pc-actions .nabor-decide { margin: 0; }
.pc-actions .nabor-more { margin: 0 0 0 auto; }
.pc-actions .nabor-more[open] { flex-basis: 100%; margin: 0; }
.dlist { display: grid; gap: 6px; }
.dline { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.dline.off { opacity: .72; }
.dline .pc-name { font-size: 16px; }
.dl-act { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.dline .nabor-more[open] { flex-basis: 100%; margin-top: 6px; }
@media (min-width: 820px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gt-name { display: block; overflow: visible; -webkit-line-clamp: unset; }
.pside .brand, .ptop .brand { display: inline-flex; align-items: center; gap: 9px; }
.bmark { display: block; width: 26px; height: auto; }

/* photo framing before upload (static/photo-crop.js, 2026-11-20) */
.phc-box { margin: 10px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--sand, #faf7f0); }
.phc-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.phc-frame { display: block; width: 240px; max-width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 14px; cursor: grab; touch-action: none; margin-top: 4px; background: #e9ece6; }
.phc-frame:active { cursor: grabbing; }
.phc-card { width: 180px; margin-top: 4px; background: #fff; border-radius: 18px; padding: 8px 8px 12px; box-shadow: 0 12px 28px -18px rgba(15, 36, 25, .45); display: flex; flex-direction: column; gap: 2px; }
.phc-card img { display: block; width: 100%; aspect-ratio: 260 / 285; object-fit: cover; object-position: 50% 20%; border-radius: 14px; background: #e9ece6; margin-bottom: 6px; }
.phc-zoom { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.phc-zoom input { flex: 1; max-width: 260px; }
.phc-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* guide v2 (2026-11-20): numbered steps like the PDF — red numbers match the markers on the screenshot */
.gd-steps { list-style: none; counter-reset: gs; padding-left: 0 !important; margin: 0; }
.gd-steps li { counter-increment: gs; position: relative; padding-left: 34px; margin-bottom: 10px; line-height: 1.5; }
.gd-steps li::before { content: counter(gs); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--night-2); color: #fff; font: 800 13px/24px Nunito, sans-serif; text-align: center; }
.gd-steps li.m::before { background: #E0532F; }
.gd-steps b, .gd-why b, .gd-rule b { color: var(--night, #0F2419); font-weight: 800; }
.gd-screen .gd-shot { width: 240px; }
@media (min-width: 700px) { .gd-screen { grid-template-columns: 240px minmax(0, 1fr); } .gd-screen.noshot { grid-template-columns: minmax(0, 1fr); } }
.gd-screen .gd-shot img[src$="poczta.png"] { object-fit: contain; }

/* intake board 20.11 (Łukasz: „na PC ściśnięte”, „łatwiej zaznaczać, że mail wysłany”) */
.gb-done { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 8px; background: #e3f0e6; color: #1d5a35; font-size: 13px; font-weight: 800; }
@media (min-width: 1100px) {
  .gb-grid { grid-template-columns: minmax(0, 2.6fr) minmax(300px, 1fr); }
  .gb-row { grid-template-columns: minmax(170px, 1.15fr) minmax(170px, 1fr) minmax(0, 1.7fr) 150px; }
  .gb-act { flex-direction: column; align-items: stretch; }
  .gb-act .btn, .gb-act form, .gb-act form .btn { width: 100%; text-align: center; }
  .gb-who .mailto { overflow-wrap: anywhere; font-size: 13px; }
}

/* 20.11: operator menu with icons; both panels use the width of a big screen */
.side-op a { display: flex; align-items: center; gap: 10px; }
.side-op svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .9; }
.side-op a.on svg { color: var(--gold); opacity: 1; }
@media (min-width: 901px) {
  .side-op { padding: 20px 12px; gap: 1px; }
  .side-op a { padding: 8px 10px; font-size: 14.5px; }
  .side-op .navlabel { padding: 12px 10px 3px; }
  .side-op .brand { padding-bottom: 12px; }
}
@media (min-width: 1000px) {
  .main, .main.staff { max-width: 1680px; }
  .hc-wrap { max-width: none; }
}

/* 20.11: payment status chips on /finanse/transakcje */
.chip.pay-ok { background: #e3f0e6; color: #1d5a35; }
.chip.pay-no { background: #f7e1dc; color: #8a2f1f; }
.chip.pay-back { background: #e3e9f5; color: #2c4a7c; }

/* 20.11: screen search in the menu, /mapa, phone sheet with icons and one-line descriptions */
.navfind { position: relative; margin: 0 0 8px; }
.navfind input { width: 100%; min-height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: 14px; padding: 0 12px; }
.navfind input::placeholder { color: #9FB2A5; }
.navfind input:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.12); }
.navfind-list { position: fixed; left: 12px; top: 104px; width: 330px; z-index: 40; background: #fff; border-radius: 12px; box-shadow: 0 12px 34px rgba(15,36,25,.3); padding: 6px; }
.side .navfind-list a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14.5px; }
.side .navfind-list a span { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.side .navfind-list a.cur, .side .navfind-list a:hover { background: var(--sage-pale); }
.side-op .navmap-link { margin-top: 10px; color: #A9B8AC; }
.side-op form { margin-top: 4px; }
.navmap { margin-bottom: 22px; }
.navmap h2 { margin: 0 0 10px; }
.navmap-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.navmap-card { padding: 16px 18px; }
.navmap-top { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; }
.navmap-top b { font-family: "Nunito", sans-serif; font-weight: 800; }
.navmap-top svg { width: 22px; height: 22px; fill: none; stroke: var(--night-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.navmap-card p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.navmap-subs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; font-weight: 700; }
@media (max-width: 900px) {
  .tabbar .sheet a { gap: 12px; padding: 8px 12px; align-items: flex-start; }
  .tabbar .sheet a svg { width: 20px; height: 20px; margin-top: 2px; flex: none; }
  .tabbar .sheet a small { display: block; font: 400 12.5px/1.35 "Nunito Sans", sans-serif; color: #A9B8AC; }
  .sheet-find input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font: inherit; padding: 0 12px; margin-bottom: 6px; }
  .sheet-find input::placeholder { color: #9FB2A5; }
  .side .navfind { display: none; }
}
@media (min-width: 901px) {
  .side-op { padding: 16px 12px 10px; gap: 0; }
  .side-op a { padding: 6px 10px; font-size: 14px; }
  .side-op .navlabel { padding: 9px 10px 2px; }
  .side-op .brand { padding-bottom: 10px; font-size: 20px; }
  .side-op .navmap-link { margin-top: 6px; }
  .side-op button { padding: 6px 10px; }
}

/* 20.11: family card: actions in the header */
.head-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* 20.11: family list: source and visits; contact, group and last date leave below 1250 px */
@media (max-width: 1249px) { .hide-t { display: none; } }
.fam-grp { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navfind input { font-size: 13.5px; }

/* 20.11: dashboard: where the families came from */
.came { display: grid; grid-template-columns: minmax(120px, 260px) minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 5px 0; }
.came .bar { margin: 0; }
.came b { text-align: right; font-variant-numeric: tabular-nums; }
.came-n { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 20.11: specialist dashboard: week bars and month numbers sit in the wide left column */
@media (min-width: 1000px) { .hc-left .hc-nums { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 16px; } .hc-left .hc-num b { font-size: 24px; } .hc-left .hc-num span { font-size: 12.5px; } }
@media (max-width: 999px) { .hc-grid { display: flex; flex-direction: column; } .hc-left, .hc-right { display: contents; } .hc-bars { order: 8; } .hc-numscard { order: 9; } }

/* 20.11: specialist messages: Odebrane / Nieprzeczytane / Zakończone */
.chat-tabs { display: flex; margin: 8px 0 6px; }
.chat-tabs button { flex: 1; border: 0; background: none; font: 700 13px "Nunito Sans", sans-serif; color: var(--ink-soft); padding: 7px 4px; border-radius: 7px; cursor: pointer; }
.chat-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,36,25,.12); }
.chat-tabs .dot { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font: 800 10.5px "Nunito", sans-serif; }
.box-inbox .it.closed, .box-closed .it:not(.closed), .box-closed .chat-sep, .box-unread .it:not(.un), .box-unread .chat-sep { display: none; }
.box-closed:not(:has(.it.closed))::after { content: "Nie ma zakończonych rozmów."; display: block; padding: 14px; color: var(--ink-soft); font-size: 14px; }
.box-unread:not(:has(.it.un))::after { content: "Wszystko przeczytane."; display: block; padding: 14px; color: var(--ink-soft); font-size: 14px; }
.chat-close { margin: 0 10px 0 auto; }

/* 20.11: settlement: the list takes the whole width when the right column has nothing to show */
@media (min-width: 1000px) { .fc-grid:not(:has(.fc-right > div > *)) { grid-template-columns: minmax(0, 1fr); } .fc-grid:not(:has(.fc-right > div > *)) .fc-right { display: none; } }

/* 20.11: contact data handed to one specialist */
.grant-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fc-contact { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--sand); font-weight: 700; display: inline-block; }

/* 20.11: marks on a visit block of the specialist calendar */
.ev .ev-ic { position: absolute; top: 3px; right: 4px; display: flex; gap: 3px; }
.ev .ev-ic em { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--ink); font: 800 10px/1 "Nunito", sans-serif; font-style: normal; }
.ev .ev-ic svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-ic { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-right: 5px; border-radius: 5px; background: var(--sage-pale); font: 800 10px/1 "Nunito", sans-serif; }
.ev:has(.ev-ic em) b { padding-right: 22px; }
.ev:has(.ev-ic em + em) b { padding-right: 42px; }

/* 20.11: specialist: sessions and notes */
.ses-day { margin-bottom: 12px; }
.ses-row { display: grid; grid-template-columns: 74px minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ses-row:first-of-type { border-top: 0; }
.ses-when b { display: block; font: 800 16px "Nunito", sans-serif; }
.ses-what a { color: var(--ink); text-decoration: none; }
.ses-state { display: flex; flex-wrap: wrap; gap: 6px; }
.ses-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .ses-row { grid-template-columns: 58px minmax(0, 1fr); }
  .ses-state, .ses-act { grid-column: 2; justify-content: flex-start; }
}

/* 20.11 (Łukasz): bigger logo in the family panel */
.pside .brand .bmark, .ptop .brand .bmark { width: 56px; height: auto; }
.pside .brand { font-size: 23px; }
.ptop .brand { font-size: 22px; }

/* 21.11: family panel: documents */
.pdoc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pdoc:first-child { border-top: 0; }
.pdoc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; color: var(--night-2); }
.pempty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px; text-align: center; }
@media (max-width: 520px) { .pdoc { grid-template-columns: 40px minmax(0, 1fr); } .pdoc-a { grid-column: 2; } }
@media (max-width: 999px) { .pnav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } .pnav a span { font-size: 11px; } }

/* 21.11: widok grupy — „kiedy, gdzie i kto” z edycją na miejscu, liczby, zakładki (Łukasz: „wybieram kafelek i zarządzam tą grupą”) */
.gv-when { margin: 12px 0 18px; }
.gv-when .kv { margin-top: 4px; }
.gv-edit { margin-top: 14px; }
.gv-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.gv-edit > summary::-webkit-details-marker { display: none; }
.gv-edit[open] > summary { margin-bottom: 12px; }
.gv-stats { margin-bottom: 18px; }
.gv-tabs { margin-top: 4px; }
@media (max-width: 700px) { .gv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 21.11: pomoc jako droga w trzech etapach */
.gd-road { margin: 10px 0 16px; }
.gd-road ol { margin: 8px 0 0; padding-left: 22px; }
.gd-road li { padding: 3px 0; }
#pierwsze-kroki > details > summary { list-style: none; cursor: pointer; }
#pierwsze-kroki > details > summary::-webkit-details-marker { display: none; }

/* 22.11 (Łukasz: „czemu nie mogę cofnąć na telefonie”): w aplikacji z ekranu głównego iPhone nie ma przycisku ani gestu „wstecz” */
.backbtn{display:none}
.pwa .backbtn{display:inline-flex;align-items:center;min-height:40px;margin:0 0 10px;padding:0 12px 0 6px;border:0;background:none;color:var(--night-2,#184030);font:700 16px Nunito,system-ui,sans-serif;cursor:pointer}

/* 23.11: zakładki grupy ekranów (menu zwężone do 12 pozycji, reszta to zakładki) */
.navtabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 14px;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.navtabs a{flex:0 0 auto;padding:8px 12px;border-radius:8px;border:1px solid #C9DCD1;color:var(--night-2,#184030);font:700 14px Nunito,system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.navtabs a.on{background:var(--night-2,#184030);border-color:var(--night-2,#184030);color:#FBFAF4}

/* 23.11 (Łukasz: „tak żebym mógł fajnie klikać”) — telefon: każdy klikany element min. 44 px wysokości (zalecenie Apple),
   pola formularzy 16 px (mniejsze iPhone przybliża przy dotknięciu), większe odstępy w tabelach i listach. */
@media (max-width: 760px) {
  .agenda-cur .agday.today, .agenda-cur .agday.pastday { display: none; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px; min-height: 44px; }
  .btn, button.btn, a.btn { min-height: 44px; }
  .btn.sm, .btn.ghost.sm { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  td a, .hc-sec a, .op-row a:not(.btn), .navmap a, .navmap-subs a, .muted > a, .small > a, .head .muted a {
    display: inline-flex; align-items: center; min-height: 44px; }
  td { padding-top: 10px; padding-bottom: 10px; }
  tr.row { cursor: pointer; }
  .navtabs a { min-height: 44px; display: inline-flex; align-items: center; }
  .wknav a { min-width: 48px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .small, .muted.small { font-size: 13.5px; }
  main a[href^="/rodziny/"]:not(.btn):not(.agev):not(.wkev):not(.stat), main a[href^="tel:"], main a[href^="mailto:"], main a[href^="/finanse"]:not(.btn):not(.stat), main a[href^="/wydatki"]:not(.btn):not(.stat) {
    display: inline-flex; align-items: center; min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
}

/* 23.11 (Łukasz: „przycisk cofania na dole”): Safari chowa swój pasek przy przewijaniu, aplikacja z ekranu głównego nie ma go wcale —
   własny okrągły przycisk „wstecz” nad paskiem CRM, zawsze widoczny na telefonie (poza pulpitem). Zastępuje górny „‹ Wstecz”. */
.fabback { display: none; }
@media (max-width: 900px) {
  .fabback { display: flex; align-items: center; justify-content: center; position: fixed; z-index: 41; left: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 0;
    background: var(--ink, #0F2419); color: #E9C963; box-shadow: 0 6px 18px rgba(15,36,25,.35); cursor: pointer; }
  .fabback svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
}
.navtabs { scrollbar-width: none; } .navtabs::-webkit-scrollbar { display: none; }

/* 23.11 (Łukasz: „panel rodzica, który ma grupę TUS”): karta grupy dla rodziny bez wizyt indywidualnych */
.pgc { display: flex; flex-direction: column; gap: 14px; }
.pgc-top { display: flex; gap: 14px; align-items: flex-start; }
.pgc-date { flex: none; min-width: 88px; background: var(--night-2); color: #fff; border-radius: 14px; padding: 10px 12px; text-align: center; }
.pgc-date i { display: block; font: 800 10px "Nunito", sans-serif; font-style: normal; letter-spacing: .08em; margin-bottom: 4px; color: #C8D3C5; }
.pgc-date b { display: block; font: 800 26px/1 "Nunito", sans-serif; }
.pgc-date u { display: block; text-decoration: none; font: 700 13px "Nunito Sans", sans-serif; margin-top: 5px; }
.pgc-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pgc-info .pkl { margin: 0 0 2px; }
.pgc-name { display: block; font: 800 19px/1.25 "Nunito", sans-serif; margin-bottom: 2px; }
.pgc-days { display: flex; flex-wrap: wrap; gap: 6px; }
.pgc-day { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: var(--sage-pale); font-size: 14px; color: var(--ink-soft); }
.pgc-day b { color: var(--ink); font-weight: 800; }
.pgc-day.off { background: #F6EEEE; color: #8A5A5A; }
.pgc-day.off s { color: #8A5A5A; }
.pgc .pn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pgc-paid { display: inline-block; margin: 4px 0 2px; background: var(--sage); color: var(--night-2); font-weight: 800; }
.pgc-prog { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.pgc-bar { flex: 1; max-width: 260px; height: 8px; border-radius: 8px; background: var(--sage-pale); overflow: hidden; }
.pgc-bar i { display: block; height: 100%; background: var(--night-2); border-radius: 8px; }
.pgc-notes { border-top: 1px solid var(--line); padding-top: 12px; }
.pgc-notes .pkl { margin: 0 0 6px; }
.pgc-note { display: flex; gap: 12px; padding: 6px 0; }
.pgc-note b { flex: none; width: 44px; font-variant-numeric: tabular-nums; }
.pgc-note p { margin: 0; overflow-wrap: anywhere; }

/* 23.11 (Łukasz: „pokaż specjaliście, że wizyta nieopłacona przez rodzica”) */
.chip.nieoplacona { background: #FBE9E4; color: #8A3B26; font-weight: 800; }
.chip.opl { background: var(--sage); color: var(--night-2); }
.ev.unpaid { box-shadow: inset 0 0 0 2px #E8A08A, 0 1px 2px rgba(15,36,25,.25); }
.ev.unpaid .tm::after { content: " · nieopł."; font-weight: 800; }

/* 23.11: zaległa sesja do zapłaty w panelu rodzica */
.ppay { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; border-left: 5px solid var(--gold); }
.ppay .pkl { margin: 0; }
.ppay-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ppay-row b, .ppay-row span { display: block; overflow-wrap: anywhere; }
.ppay-row span { color: var(--ink-soft); font-size: 14px; }
.ppay-row strong { flex: none; font: 800 18px "Nunito", sans-serif; }
.ppay-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* 23.11 (Łukasz: „ulepszenia feelingu” CRM): reakcja na dotyk i kliknięcie, łagodne wejście ekranu, stan „wysyłam” po kliknięciu
   przycisku formularza (base.html dodaje .busy). Bez ruchu, gdy system prosi o ograniczenie animacji. */
@media (prefers-reduced-motion: no-preference) {
  .btn, a.card, .side a, .tabbar > a { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .12s; }
  .btn:active { transform: scale(.97); }
  a.card:active { transform: scale(.985); }
  main { animation: crm-in .2s ease-out; }
  @keyframes crm-in { from { opacity: 0; } to { opacity: 1; } }
}
a.card:hover { box-shadow: 0 6px 18px rgba(15, 36, 25, .08); }
.btn.busy { opacity: .6; pointer-events: none; }
.btn.busy::after { content: "…"; margin-left: 2px; }

/* 23.11: Poczta (mailbox.html) */
.mlrow { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mlrow:last-child { border-bottom: 0; }
.mlrow:hover .mlsub { text-decoration: underline; }
.mltop { display: flex; justify-content: space-between; gap: 10px; }
.mltop b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlsub { margin-top: 2px; }
.mlsnip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlrow.unread .mltop b, .mlrow.unread .mlsub { font-weight: 800; }
.mlrow.unread { box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }

/* 23.11: Poczta — rozmowa jak czat */
.mlcount { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--sage-pale, #E6ECE3); font-size: 12px; text-align: center; }
.mlthread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mlmsg { max-width: 86%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.mlmsg.out { align-self: flex-end; background: var(--sand, #F4EBD3); border-color: var(--gold, #B69026); }
.mlbody { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
@media (max-width: 700px) { .mlmsg { max-width: 100%; } }

/* 23.11: pulpit „Do załatwienia” — nagłówek grupy i zwarte wiersze */
.op-group { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.op-compact { align-items: center; }
.op-compact .op-act { display: flex; gap: 6px; flex-wrap: wrap; }
.op-compact .op-act form { margin: 0; }

/* 23.11: Poczta — cytaty zwinięte, załączniki jako przyciski */
.mlatts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mlatts .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlquote { margin-top: 8px; }
.mlquote summary { cursor: pointer; min-height: 32px; }

/* 23.11: załączniki w odpowiedzi i nowym mailu */
.mlfile { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; }
.mlfile input[type=file] { min-height: 44px; }

/* 26.11: kafelek zniżek w głównej kolumnie panelu rodzica, pod najbliższą wizytą */
.pzn { display: block; color: var(--ink); text-decoration: none; padding: 14px 16px; }
.pzn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pzn .btn { margin-top: 10px; min-height: 38px; padding: 0 14px; font-size: 14px; }

/* 26.11 Treści — kalendarz publikacji (templates/tresci*.html) */
.tr-new { display: flex; gap: 10px; flex-wrap: wrap; }
.tr-state { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; }
.tr-warn { padding: 14px 18px; background: var(--sand); color: var(--ink); display: grid; gap: 4px; font-size: 14px; }
.tr-days { display: grid; gap: 14px; }
.tr-day { padding: 14px 18px; }
.tr-day.tr-today { box-shadow: inset 4px 0 0 var(--gold); }
.tr-date { margin: 0 0 10px; font-size: 16px; text-transform: capitalize; }
.tr-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #ECEEEA; }
.tr-item:first-of-type { border-top: 0; }
.tr-time { flex: 0 0 48px; font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 2px; }
.tr-thumb { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.tr-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tr-kind { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.tr-blog .tr-kind { color: #2c4a7c; } .tr-gbp .tr-kind { color: var(--bronze); } .tr-meta .tr-kind { color: var(--night-2); }
.tr-title { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.tr-err { color: #8A3B26; overflow-wrap: anywhere; }
.tr-more summary { cursor: pointer; font-size: 13px; color: var(--night-2); }
.tr-more form { margin-top: 8px; }
.tr-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tr-photos { display: grid; grid-template-columns: repeat(auto-fill, 180px); gap: 14px; margin-bottom: 12px; }
.tr-photos:empty { display: none; }
.tr-ph { margin: 0; display: grid; gap: 8px; min-width: 0; }
.tr-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid #E3E6E1; display: block; background: #F4F2EC; }
.tr-ph figcaption { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tr-no { min-width: 26px; height: 26px; border-radius: 8px; background: var(--night-2); color: #fff; font-weight: 800; font-size: 13px; display: inline-grid; place-items: center; }
.tr-ph-off img { opacity: .3; }
.tr-ph-new img { border-style: dashed; }
.tr-file { position: relative; overflow: hidden; cursor: pointer; }
.tr-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tr-del { display: inline-flex; gap: 4px; align-items: center; }
.tr-strip { display: flex; gap: 10px; margin-top: 8px; text-decoration: none; flex-wrap: nowrap; align-items: center; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.tr-strip img { flex: 0 0 auto; scroll-snap-align: start; width: 160px; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid #E3E6E1; }
.tr-plus { font-weight: 800; color: var(--night-2); }
.tr-nophoto { font-size: 13px; color: #8A3B26; }
.tr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tr-actions form { margin: 0; }
.tr-ph figcaption .btn.sm { padding: 4px 8px; min-height: 0; }
.tr-cover { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.tr-cover img, .tr-cover-empty { width: 280px; max-width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; border: 1px solid #E3E6E1; display: block; }
.tr-cover-empty { display: grid; place-items: center; padding: 14px; text-align: center; font-size: 13px; color: #8A3B26; background: #F4F2EC; border-style: dashed; }
.tr-cover-side { flex: 1; min-width: 200px; display: grid; gap: 8px; justify-items: start; }
.tr-bthumb { flex: 0 0 96px; width: 96px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; border: 1px solid #E3E6E1; }
.tr-bthumb-none { display: grid; place-items: center; font-size: 11px; color: #8A3B26; background: #F4F2EC; text-decoration: none; border-style: dashed; }
@media (max-width: 640px) { .tr-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-bthumb { flex-basis: 72px; width: 72px; } }
.art-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 8px; position: sticky; top: env(safe-area-inset-top, 0px); background: #fff; padding: 8px 0; z-index: 2; }
.art-body { border: 1px solid #DDE2DC; border-radius: 10px; padding: 18px 22px; max-width: 760px; line-height: 1.65; font-size: 16px; min-height: 300px; overflow-wrap: anywhere; }
.art-body[contenteditable="true"]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.art-body h2 { font-size: 21px; margin: 1.4em 0 .5em; } .art-body h3 { font-size: 17px; margin: 1.2em 0 .4em; }
.art-body table { border-collapse: collapse; display: block; overflow-x: auto; } .art-body td, .art-body th { border: 1px solid #DDE2DC; padding: 6px 8px; }
.art-body .art-tldr { background: var(--sand); border-radius: 10px; padding: 10px 16px; }
@media (max-width: 640px) { .art-body { padding: 12px 14px; font-size: 15px; } }

/* ===== KANON PRZYCISKÓW 2026-11-27 (Łukasz: „przyciski porozwalane”; makieta 02_PROJECTS_DOCS/Synaptio/CRM_zrzuty/przyciski_2026-11-27) =====
   1) jeden ciemny przycisk na ekran, pierwszy od lewej  2) dwa rozmiary: .btn 44 px, .btn.sm 36 px (telefon 40)
   3) akcje ekranu pod tytułem, akcja wiersza przy prawej krawędzi  4) jedna nazwa akcji  5) rzadkie = .btn.quiet, groźne = .btn.danger / .link-danger */
.btn, button.btn, a.btn { min-height: 44px; }
.btn.sm, .btn.ghost.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn.danger:hover { background: #FBEFEF; }
.btn.quiet { background: none; border: 0; color: var(--night-2); text-decoration: underline; padding: 0 4px; min-height: 40px; font-size: 14px; }
.btn.quiet:hover { background: none; color: var(--ink); }
.link-danger { min-height: 36px; }
.more-m { display: none; }
@media (max-width: 760px) {
  .btn.sm, .btn.ghost.sm { min-height: 40px; }
  .link-danger { min-height: 40px; }
  .quick { display: flex; gap: 8px; }
  .quick .btn { flex: 1 1 0; white-space: nowrap; }
  .quick .btn:first-child { flex: 1.5 1 0; }
  .more-m { display: flex; justify-content: space-between; gap: 8px; margin: -8px 0 12px; }
  .fc-actions { flex-wrap: nowrap; width: 100%; }
  .fc-actions .btn { flex: 1 1 auto; padding: 0 10px; white-space: nowrap; }
  .fc-row > .fc-when, .fc-row > .fc-what, .fc-row > .fc-state { grid-column: 1; }
  .fc-row > .fc-act { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
/* 27.11 Treści: wyniki postów i generator grafik */
.tr-wyniki { margin-bottom: 14px; }
.tr-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tr-stats span { background: #EEF3EC; border-radius: 8px; padding: 3px 8px; font-size: 13px; }
.tr-top { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: inherit; border-top: 1px solid rgba(15,36,25,.08); }
.tr-top img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.tr-top span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-top b { font-size: 13px; white-space: nowrap; }
.tr-gen { margin-top: 10px; }
.tr-gen > summary { list-style: none; display: inline-block; cursor: pointer; }
.tr-gen > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) { .tr-top { flex-wrap: wrap; } .tr-top b { width: 100%; padding-left: 54px; } }

/* 27.11: diagnoza krok po kroku (karta rodziny specjalisty) */
.dg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; background: var(--sage-pale); }
.dg-h { font-size: 16px; margin-bottom: 4px; }
.dg-s { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; }
.dg-s b { display: block; font: 800 15px "Nunito", sans-serif; }
.dg-s .small { display: block; }
.dg-d { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 800 13px "Nunito", sans-serif; color: var(--ink-soft); background: #fff; }
.dg-s.done .dg-d { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.dg-s.now .dg-d { border-color: var(--gold); background: #F6EBC8; color: var(--ink); }
.dg-s.todo b { color: var(--ink-soft); }
.dg-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.hc-after { margin-bottom: 12px; }

/* 27.11: Zadania operatora — trzy grupy według tego, czyj jest ruch */
.td-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.td-nav .chip { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; font-size: 14px; }
.td-g { font: 800 13px "Nunito", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin: 22px 2px 8px; }
.td-fold { margin-bottom: 10px; }
details.td-fold > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; list-style: none; font-size: 16px; }
details.td-fold > summary::-webkit-details-marker { display: none; }
details.td-fold[open] > summary { margin-bottom: 12px; }

/* 27.11: ekran grupy — menu „Więcej” przy osobie */
.gv-menu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gv-menu select { width: auto; min-height: 44px; }
.gv-act { display: flex; gap: 8px; align-items: flex-start; justify-content: flex-end; position: relative; }
.gv-more > summary { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; min-height: 48px; background: #fff; list-style: none; cursor: pointer; display: inline-flex; align-items: center; font: 800 15px "Nunito", sans-serif; color: var(--ink); }
.gv-more[open] > summary { background: var(--sage-pale); }
.gv-pop { position: absolute; right: 0; top: 54px; z-index: 5; width: min(300px, 84vw); flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.gv-pop form.gv-menu { flex-direction: column; align-items: stretch; }
.gv-pop .btn, .gv-pop select { width: 100%; }
@media (max-width: 900px) { .gv-act { justify-content: flex-start; margin-top: 2px; } .gv-pop { right: auto; left: 0; } }
.gv-more > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) { .tr-strip img { width: 128px; height: 160px; } }

/* 27.11: Zadania — zwarta lista „wiersz + jedna akcja” i zwinięte szczegóły */
.td-list { margin-bottom: 14px; padding-top: 6px; padding-bottom: 6px; }
.td-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.td-row:first-child { border-top: 0; }
.td-row .name { font-weight: 800; color: var(--ink); text-decoration: none; }
.td-row .btn { min-width: 92px; justify-content: center; }
.td-detail { margin-bottom: 8px; }
.td-detail > summary { cursor: pointer; font: 800 14px "Nunito", sans-serif; color: var(--night-2); min-height: 44px; display: flex; align-items: center; padding: 0 2px; }
.td-detail[open] > summary { margin-bottom: 8px; }

/* 27.11: „Na czym stoimy” na karcie rodziny — ścieżki obok siebie na komputerze */
.dg-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.dg-grid .dg { margin-bottom: 0; }

/* 27.11: podgląd wizyty u specjalisty także na telefonie — karta wysuwana od dołu po dotknięciu wizyty */
.hc-prev-x { display: none; }
@media (max-width: 999px) {
  .hc-prev.sheet:not([hidden]) { display: block; position: fixed; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; margin: 0; box-shadow: 0 10px 34px rgba(15, 36, 25, .28); max-height: 70vh; overflow: auto; }
  .hc-prev.sheet .hc-prev-x { display: inline-flex; }
  .hc-prev.sheet .hc-prev-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .hc-prev.sheet .hc-prev-btns .btn { min-height: 44px; }
}
.hc-prev [hidden] { display: none !important; }
.hc-sec a.btn:not(.ghost):not(.quiet) { color: #fff; }
.dg-ch { width: 100%; }
.dg-ch > summary { list-style: none; cursor: pointer; }
.dg-ch > summary::-webkit-details-marker { display: none; }
.dg-ch[open] > summary { margin-bottom: 10px; }
.dg-ch .dg-opt { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; }
@media (min-width: 700px) { .dg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); column-gap: 24px; } .dg-ch input[type=text] { max-width: 664px; } }
/* 27.11 rolki: film w poście wygląda jak grafika (pion 9:16) */
.tr-ph video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid #E3E6E1; display: block; background: #194730; }
.tr-strip video { flex: 0 0 auto; scroll-snap-align: start; width: 113px; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid #E3E6E1; background: #194730; }
@media (max-width: 640px) { .tr-strip video { width: 90px; height: 160px; } }
.tr-top video { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }

/* 27.11: Konta specjalistów — na telefonie zwinięte karty z sekcjami (makieta zatwierdzona), na komputerze układ bez zmian */
.ka + .ka > .nabor-row { border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 1000px) {
  .ka > summary, .ka .sec > summary { display: none; }
  .ka .sec, .ka .sec > .box { display: contents; }
}
@media (max-width: 999px) {
  .ka { border-top: 1px solid var(--line); }
  .ka:first-child { border-top: 0; }
  .ka > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 60px; padding: 8px 0; cursor: pointer; }
  .ka > summary::-webkit-details-marker, .ka .sec > summary::-webkit-details-marker { display: none; }
  .ka > summary .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .ka > summary::after { content: "›"; font-size: 22px; line-height: 1; transform: rotate(90deg); color: var(--night-2); }
  .ka[open] > summary::after { transform: rotate(-90deg); }
  .ka-todo { background: var(--sand); border-radius: 8px; padding: 1px 7px; font-weight: 700; color: var(--ink); }
  .ka .ka-dup { display: none; }
  .ka > .nabor-row { display: block; border: 0; padding: 0 0 14px; }
  .ka > .nabor-row > form { display: block !important; margin-top: 10px; }
  .ka .ka-main { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--r-btn); background: var(--night-2); color: #fff; text-decoration: none; font-weight: 800; margin-bottom: 6px; }
  .ka .sec { border-top: 1px solid var(--line); }
  .ka .sec > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 800; }
  .ka .sec > summary small { font-weight: 400; color: var(--muted, #5d6b63); text-align: right; }
  .ka .sec > .box { display: grid; gap: 8px; padding-bottom: 14px; }
  .ka .sec > .box > select, .ka .sec > .box > input, .ka .sec > .box > button { width: 100% !important; min-width: 0 !important; min-height: 46px; }
  .ka .sec > .box > form { margin-top: 0 !important; }
}
/* 27.11: na komputerze dane konta w pełnej szerokości, akcje pod spodem (wcześniej lewa kolumna ściskała się do ok. 130 px) */
@media (min-width: 1000px) { .ka > .nabor-row { grid-template-columns: minmax(0, 1fr); } .ka > .nabor-row > form { justify-content: flex-start !important; } }

/* 27.11: Mój profil specjalisty — lista braków + zwijane pola; „Pierwsze kroki” z jednym następnym krokiem (makieta zatwierdzona) */
.pf-bar { height: 10px; border-radius: 8px; background: var(--line); overflow: hidden; margin: 4px 0 6px; }
.pf-bar i { display: block; height: 100%; background: var(--night-2); }
.pf-ck { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.pf-ck .l { display: flex; gap: 10px; align-items: center; }
.pf-ck a.small { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.pf-ck a.btn { min-height: 44px; }
.pf-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.pf-dot.ok { background: var(--night-2); color: #fff; }
.pf-dot.no { border: 2px solid var(--gold); color: var(--ink); }
.card.pf-st { padding: 0; margin-bottom: 10px; scroll-margin-top: 12px; }
.pf-st > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; min-height: 52px; cursor: pointer; font-weight: 800; }
.pf-st > summary::-webkit-details-marker { display: none; }
.pf-st > summary small { font-weight: 400; color: var(--ink-soft); text-align: right; }
.pf-st > .in { padding: 0 16px 16px; display: grid; gap: 8px; }
.pf-st textarea { width: 100%; }
.pf-where { background: var(--sage-pale); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.pf-cnt { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.pf-cnt .low { color: #7a5e10; }
.pf-send { position: sticky; bottom: 12px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(15, 36, 25, .12); margin-bottom: 14px; }
.pf-send .btn { width: 100%; }
.pf-send .small { text-align: center; margin-top: 4px; }
@media (max-width: 999px) { .pf-send { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.pk-next { display: grid; gap: 6px; padding: 6px 0 12px; }
.pk-next b { font-size: 17px; }
.pk-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.pk-act form { display: flex; gap: 8px; }
.pk-all { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--night-2); border-top: 1px solid var(--line); }
/* 27.11: przegląd panelu specjalisty na telefonie — małe przyciski miały 40 px, pod palec potrzeba 44 */
@media (max-width: 999px) { .btn.sm, .pf-ck a.btn.sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } }

/* 27.11: generator linku do rezerwacji na Pulpicie */
.gl-card { margin-bottom: 14px; border: 2px solid var(--night-2); }
@media (min-width: 1000px) { .gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; } .gl-grid > #lout { grid-column: 1 / -1; } }

/* 27.11: „Dodaj osobę do grupy” na liście naboru bez grupy — spokojny przycisk i rozwijany panel */
.la-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.la-acts .btn.ghost { background: #fff; }
.la-form label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.la-form input, .la-form select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.la-panel { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0 14px; background: #fff; }
.la-panel > details + details { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.la-panel summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.la-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; margin-top: 6px; }
.la-form .la-wide { grid-column: 1 / -1; margin: 0; }
@media (max-width: 699px) { .la-acts { justify-content: stretch; width: 100%; } .la-acts > *, .la-acts .btn { flex: 1 1 100%; width: 100%; } }

/* 27.11: panel rodziny na telefonie — złoty „Umów wizytę” w nagłówku tylko na ekranie wizyt (na pozostałych jest „Umów” w dolnym menu), tytuł ma całą szerokość */
@media (max-width: 699px) { .phead:not([data-screen="home"]) .pbook { display: none; } }
/* 27.11: sesje specjalisty na telefonie — trzy liczby w jednym rzędzie zamiast dwóch i osieroconej trzeciej */
@media (max-width: 699px) { .ses-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ses-tiles .stat { padding: 12px 10px; margin: 0; } .ses-tiles .stat span { font-size: 12px; line-height: 1.3; } }
/* 27.11: pola bez typu, telefon i adres www wyglądały jak gołe pola przeglądarki (grupy, poczta, konta) — ten sam styl co pola tekstowe; :where = każda reguła szczegółowa wygrywa */
:where(input:not([type]), input[type=tel], input[type=url]) { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9D2C5; border-radius: var(--r-btn); padding: 11px 13px; min-height: 46px; }
/* 27.11: pulpit operatora — szybkie akcje; generator linku na telefonie zwinięty pod przyciskiem; objaśnienia (.hint) domyślnie schowane, przełącznik w menu */
.qa { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.qa .btn { background: #fff; min-height: 44px; padding: 0 14px; font-size: 14px; }
.qa-link { display: none; }
@media (max-width: 699px) { .qa { display: grid; grid-template-columns: 1fr 1fr; } .qa .qa-link { display: inline-flex; } .gl-fold:not(.is-open) { display: none; } }
body:not(.hints) .hint { display: none; }
.hint-tg { background: none; border: 0; padding: 8px 0; margin: 0; color: inherit; opacity: .75; font: inherit; font-size: 14px; cursor: pointer; text-align: left; min-height: 44px; }
.hint-tg::after { content: "Pokaż objaśnienia"; }
body.hints .hint-tg::after { content: "Ukryj objaśnienia"; }
/* 27.11: zakładki przewijane w bok — wyblakły brzeg po stronie, po której coś jeszcze jest */
.navtabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.navtabs.back { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.navtabs.more.back { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
/* 27.11: „Odpuść” obok „Napisz” w wierszach do załatwienia */
.td-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.td-acts form { margin: 0; }
@media (max-width: 699px) { .td-acts { flex-direction: column; align-items: stretch; } }
