/* Panel trenera. Wygląd w duchu iOS: grupowane listy, duże tytuły, jeden akcent, kolor tylko tam, gdzie coś znaczy.
   Motyw: jasny domyślnie, ciemny z prefers-color-scheme. data-theme="jasny" / "ciemny" na <html> wymusza wybór.
   Wszystko lokalne: krój systemowy, ikony inline, zero zewnętrznych zasobów. */

/* ---------- kolory ---------- */
:root {
  color-scheme: light;
  --bg: #f2f2f7; --surface: #fff; --elev: #fff; --inset: #f2f2f7;
  --label: #000; --label-2: #6b6b70; --label-3: #a0a0a6; --label-4: #c7c7cc;
  --sep: rgba(60, 60, 67, .2); --fill: rgba(118, 118, 128, .12); --fill-2: rgba(118, 118, 128, .2);
  --tint: #007aff; --tint-soft: rgba(0, 122, 255, .1);
  --red: #ff3b30; --green: #34c759; --orange: #ff9500; --indigo: #5856d6; --yellow: #ffcc00; --gray: #8e8e93;
  --red-t: #d70015; --green-t: #1a7f37; --orange-t: #b25000;
  --bar: rgba(242, 242, 247, .8); --tabbar: rgba(250, 250, 252, .88); --sidebar: #e9e9ee;
  --shadow: 0 12px 40px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .1);
  --toast: rgba(44, 44, 46, .95); --seg-on: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="jasny"]) {
    color-scheme: dark;
    --bg: #000; --surface: #1c1c1e; --elev: #2c2c2e; --inset: #2c2c2e;
    --label: #fff; --label-2: #98989f; --label-3: #6a6a70; --label-4: #48484a;
    --sep: rgba(84, 84, 88, .65); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
    --tint: #0a84ff; --tint-soft: rgba(10, 132, 255, .2);
    --red: #ff453a; --green: #30d158; --orange: #ff9f0a; --indigo: #7d7aff; --yellow: #ffd60a; --gray: #8e8e93;
    --red-t: #ff6961; --green-t: #30d158; --orange-t: #ff9f0a;
    --bar: rgba(0, 0, 0, .72); --tabbar: rgba(22, 22, 24, .88); --sidebar: #161618;
    --shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .14);
    --toast: rgba(72, 72, 74, .96); --seg-on: #636366;
  }
}
:root[data-theme="ciemny"] {
  color-scheme: dark;
  --bg: #000; --surface: #1c1c1e; --elev: #2c2c2e; --inset: #2c2c2e;
  --label: #fff; --label-2: #98989f; --label-3: #6a6a70; --label-4: #48484a;
  --sep: rgba(84, 84, 88, .65); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
  --tint: #0a84ff; --tint-soft: rgba(10, 132, 255, .2);
  --red: #ff453a; --green: #30d158; --orange: #ff9f0a; --indigo: #7d7aff; --yellow: #ffd60a; --gray: #8e8e93;
  --red-t: #ff6961; --green-t: #30d158; --orange-t: #ff9f0a;
  --bar: rgba(0, 0, 0, .72); --tabbar: rgba(22, 22, 24, .88); --sidebar: #161618;
  --shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .14);
  --toast: rgba(72, 72, 74, .96); --seg-on: #636366;
}

/* ---------- podstawy ---------- */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs: 17px; --fs-sub: 15px; --fs-foot: 13px; --row-h: 44px; --r: 12px; --hair: 1px;
  --gut: 16px; --page-w: 720px; --side-w: 0px; --tab-h: 50px;
}
@media (min-resolution: 2dppx) { :root { --hair: .5px; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 60px; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 400 var(--fs)/1.3 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px);
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
small { font-size: var(--fs-foot); }
.ic { width: 22px; height: 22px; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--tint-soft); }
.pos { color: var(--green-t); } .neg { color: var(--red-t); } .warn { color: var(--orange-t); } .dim { color: var(--label-2); }
.link { color: var(--tint); }

/* ---------- szkielet: pasek boczny (komputer), pasek kart (telefon) ---------- */
.sidebar { display: none; }
.shell { margin-left: var(--side-w); min-width: 0; }
.page { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--gut); }
.shell:has(.page.wide) { --page-w: 720px; }

.navbar {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: calc(44px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  padding-left: max(8px, env(safe-area-inset-left), calc((100% - var(--page-w)) / 2 + 8px));
  padding-right: max(8px, env(safe-area-inset-right), calc((100% - var(--page-w)) / 2 + 8px));
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: var(--hair) solid var(--sep); opacity: 0; transition: opacity .2s; }
.navbar.scrolled::after { opacity: 1; }
.nav-l, .nav-r { display: flex; align-items: center; min-width: 0; }
.nav-l { justify-self: start; padding-left: 8px; }
.nav-r { justify-self: end; gap: 6px; padding-right: 8px; }
.nav-t { font-weight: 600; padding: 0 6px; max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .18s; }
.navbar.compact .nav-t { opacity: 1; }
.navbar { white-space: nowrap; }
.back, .navlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--tint); white-space: nowrap; }
.back { margin-left: -6px; padding-right: 8px; }
.back::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i-chevl) center / 22px no-repeat; mask: var(--i-chevl) center / 22px no-repeat; }
.navlink { padding: 0 4px; background: none; border: 0; }
.icb { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--tint); border-radius: 50%; }
.icb:active { background: var(--fill); }
.icb.undo { width: 44px; height: 44px; color: var(--label-3); margin: -11px -12px -11px -4px; }
.icb.undo .ic { width: 19px; height: 19px; }
.icb-gap { flex: none; width: 28px; }
.entry .val { margin-left: 8px; }
.nav-r .icb { margin: 0 -6px; }
:root {
  --i-chevl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 5-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.8 3.8 7.2-8.3'/%3E%3C/svg%3E");
  --i-updown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 7.5 3.5-4 3.5 4M2.5 12.5l3.5 4 3.5-4'/%3E%3C/svg%3E");
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: stretch;
  padding: 0 max(2px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(2px, env(safe-area-inset-left));
  background: var(--tabbar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: var(--hair) solid var(--sep);
}
.tabbar a { flex: 1 1 0; min-width: 0; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--gray); }
.tabbar a .ic { width: 25px; height: 25px; }
.tabbar a.on { color: var(--tint); }
.tabbar .tab-plus { flex: 0 0 56px; }
.tabbar .tab-plus .ic { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 50%; background: var(--tint); color: #fff; stroke-width: 2.4; }
.tabbar .tab-plus:active .ic { opacity: .7; }

/* ---------- typografia stron ---------- */
h1.lt { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; margin: 2px 0 16px; }
.eyebrow { font-size: var(--fs-foot); font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .3px; margin-top: 4px; }
.eyebrow + h1.lt { margin-top: 0; }
.hero { margin-bottom: 18px; }
.hero h1.lt { margin-bottom: 4px; font-size: 30px; }
.hero-sub { color: var(--label-2); font-size: var(--fs-sub); }
.lead { color: var(--label-2); font-size: var(--fs-sub); margin: -6px 0 18px; line-height: 1.4; }
.sect { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px var(--gut) 8px; min-height: 28px; }
.sect h2 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.sect .count, .sect h2 .count { font-size: var(--fs-sub); font-weight: 400; color: var(--label-2); letter-spacing: 0; }
.sect h2 .count { margin-left: 4px; }
.sect .more { color: var(--tint); font-size: var(--fs-sub); padding: 6px 0; margin: -6px 0; }
.sect .sum { font-weight: 600; font-size: var(--fs-sub); }
.sect.sm { min-height: 0; margin-bottom: 6px; }
.sect.sm h2 { font-size: var(--fs-foot); font-weight: 400; color: var(--label-2); text-transform: uppercase; letter-spacing: 0; }
.subh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 var(--gut) 6px; font-size: var(--fs-foot); color: var(--label-2); }
.subh h3 { font-size: inherit; font-weight: 400; text-transform: uppercase; }
.foot { font-size: var(--fs-foot); color: var(--label-2); margin: -14px var(--gut) 22px; line-height: 1.35; }
.foot.err { color: var(--red-t); }
.meta { font-size: var(--fs-foot); color: var(--label-2); }

/* ---------- grupy i wiersze ---------- */
.group { background: var(--surface); border-radius: var(--r); margin: 0 0 22px; }
.group.pad { padding: 12px var(--gut); }
.group.note { padding: 12px var(--gut); font-size: var(--fs-sub); color: var(--label-2); line-height: 1.4; }
.group.note a { color: var(--tint); }
.row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--row-h); padding: 11px var(--gut);
  background: none; border: 0; text-align: left; color: inherit;
}
.row::after { content: ""; position: absolute; left: var(--sep-l, var(--gut)); right: 0; bottom: 0; border-bottom: var(--hair) solid var(--sep); pointer-events: none; }
.group > .row:last-child::after, .group > :last-child > .row:last-child::after, ul.plain > .row:last-child::after,
details:not([open]) > summary.row::after { display: none; }
.group > :first-child, .group > :first-child > .row:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.group > :last-child, .group > :last-child > .row:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
a.row:active, button.row:active, summary.row:active { background: var(--fill); }
.row .grow { flex: 1 1 auto; min-width: 0; }
.row .ttl { display: block; }
.row .sub { display: block; font-size: var(--fs-sub); color: var(--label-2); margin-top: 1px; }
.row .sub a { color: inherit; text-decoration: underline; text-decoration-color: var(--label-4); text-underline-offset: 2px; }
.row .lbl { flex: 0 0 auto; max-width: 68%; }
.row .val { flex: 1 1 0; min-width: 0; margin-left: auto; color: var(--label-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .grow + .val { flex: 0 0 auto; overflow: visible; }
.row .val.wrap { white-space: normal; }
.row .val small { display: block; color: var(--label-2); }
.row .val.strong { color: var(--label); font-weight: 600; }
.row .val.pos { color: var(--green-t); } .row .val.neg { color: var(--red-t); } .row .val.warn { color: var(--orange-t); }
.row .val.link { color: var(--tint); display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row .val.link .ic { width: 16px; height: 16px; }
.row.chev::after { right: 0; }
.row.chev { padding-right: 34px; }
.row.chev::before { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--label-4); -webkit-mask: var(--i-chev) center / 16px no-repeat; mask: var(--i-chev) center / 16px no-repeat; }
.row.total .lbl { font-weight: 600; }
.row.empty { color: var(--label-2); font-size: var(--fs-sub); }
.row.danger, .danger { color: var(--red-t); }
.row.link { color: var(--tint); }
.row.center { justify-content: center; text-align: center; }
.row.off { opacity: .5; }
.row.void .ttl, .row.void .val { color: var(--label-3); text-decoration: line-through; }
.row.picked { background: var(--tint-soft); }
.row.picked .lbl { color: var(--tint); font-weight: 600; }
.row.add { color: var(--tint); }
.row.add > a, .row.add label, summary.row.add { display: flex; align-items: center; gap: 11px; flex: 1; cursor: pointer; }
.row.add > a, .row.add label { min-height: var(--row-h); margin: -11px 0; }
.row.add form { flex: 1; display: flex; align-items: center; gap: 12px; }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub .date { color: var(--label); }
.tag { color: var(--tint); }

/* status szkolenia: kropka + nazwa */
.s-uzgodnione { --c: var(--gray); --ct: var(--label-2); }
.s-potwierdzone { --c: var(--tint); --ct: var(--tint); }
.s-zrobione { --c: var(--indigo); --ct: var(--indigo); }
.s-czekam { --c: var(--orange); --ct: var(--orange-t); }
.s-oplacone { --c: var(--green); --ct: var(--green-t); }
.s-odwolane { --c: var(--red); --ct: var(--red-t); }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-foot); color: var(--ct); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }

/* wiersz szkolenia */
.trow { --sep-l: 72px; gap: 10px; }
.dateblk { flex: none; width: 46px; text-align: center; line-height: 1.15; }
.dateblk b { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; letter-spacing: -.4px; }
.dateblk small { display: block; font-size: 12px; color: var(--label-2); text-transform: uppercase; }
.trow .l1, .trow .l2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.trow .l2 { margin-top: 1px; align-items: center; }
.trow .ttl { flex: 1 1 auto; min-width: 0; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trow .sub { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .fee { flex: none; white-space: nowrap; font-size: var(--fs-sub); }

/* wiersz wydarzenia dnia */
.ev { --sep-l: 32px; align-items: stretch; }
.ev .ev-bar { flex: none; width: 4px; border-radius: 2px; background: var(--c); }
.ev .ttl { font-weight: 500; }
.ev .st { display: flex; margin-top: 3px; }
.ev-dojazd .ev-bar { background: none; border-left: 2px dotted var(--label-3); width: 4px; border-radius: 0; margin-left: 1px; }
.ev-dojazd .ttl { font-weight: 400; }

/* zadania i odhaczanie */
.tasks, .docs { --sep-l: 49px; }
.task, .doc { gap: 0; }
.task > form, .doc > form { display: flex; flex: none; }
.chk { flex: none; width: 44px; height: 44px; margin: -11px 0 -11px -11px; padding: 0; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.chk::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--label-3); transition: background-color .15s, border-color .15s; }
.done > form .chk::before { border-color: var(--tint); background: var(--tint) var(--i-check) center / 16px no-repeat; }
.task.done .ttl { color: var(--label-2); }
.task .when { flex: none; margin-left: 10px; font-size: var(--fs-sub); color: var(--label-2); white-space: nowrap; }
.task.overdue .when { color: var(--red-t); }
.row.add .ic { width: 22px; height: 22px; }

/* ---------- przyciski, kontrolki ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 50px; padding: 0 20px;
  border: 0; border-radius: 12px; background: var(--tint); color: #fff; font-weight: 600; text-align: center; cursor: pointer;
}
.btn:active { opacity: .75; }
.btn[disabled] { opacity: .5; }
.btn.tinted { background: var(--tint-soft); color: var(--tint); }
.btn.gray { background: var(--fill); color: var(--tint); }
.btn.sm { position: relative; display: inline-flex; width: auto; min-height: 32px; padding: 0 13px; border-radius: 16px; font-size: var(--fs-sub); gap: 3px; white-space: nowrap; }
.btn.sm::after { content: ""; position: absolute; inset: -6px -2px; }
.btn.sm .ic { width: 16px; height: 16px; stroke-width: 2.4; margin-left: -3px; }
.row .btn.sm, .group .btn.sm { background: var(--fill); color: var(--tint); }
.quiet { background: none; border: 0; padding: 8px 0; color: var(--label-2); font-size: var(--fs-sub); text-decoration: underline; text-decoration-color: var(--label-4); text-underline-offset: 3px; }
form > .btn:not(.sm) { margin-bottom: 22px; }
.pad > .btn { margin: 0; }

.seg { display: flex; padding: 2px; background: var(--fill); border-radius: 9px; margin: 0 0 22px; }
.seg > a, .seg > button { flex: 1 1 auto; min-width: 0; min-height: 32px; display: grid; place-items: center; padding: 0 6px; border: 0; background: none; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg > .on { background: var(--seg-on); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.seg.mini { margin: 0; display: inline-flex; }
.seg.mini > button { flex: none; min-height: 28px; padding: 0 12px; }
.pad > .seg { margin: 0; }

.stepper { position: relative; display: inline-flex; align-items: center; height: 32px; background: var(--fill); border-radius: 9px; color: var(--tint); }
.stepper a { display: grid; place-items: center; min-width: 38px; height: 100%; position: relative; }
.stepper a::after { content: ""; position: absolute; inset: -6px 0; }
.stepper a + a { border-left: var(--hair) solid var(--sep); }
.stepper .txt { white-space: nowrap; padding: 0 12px; font-size: var(--fs-sub); font-weight: 500; }
.stepper .ic { width: 18px; height: 18px; stroke-width: 2.4; }

/* menu „…” na natywnym <details> */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.menu { position: relative; flex: none; }
.row details.menu { margin: -11px -10px -11px 0; }
.row details.menu > summary { color: var(--label-2); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 2px); z-index: 60; min-width: 250px; max-width: min(320px, 86vw); overflow: hidden;
  background: var(--elev); border-radius: 13px; box-shadow: var(--shadow); color: var(--label); font-size: var(--fs); font-weight: 400;
  animation: pop .16s ease-out; transform-origin: top right;
}
.menu.up .menu-pop { top: auto; bottom: calc(100% + 2px); transform-origin: bottom right; }
.menu-pop > a, .menu-pop button, .menu-pop label {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 10px 16px;
  background: none; border: 0; text-align: left; cursor: pointer; white-space: nowrap;
}
.menu-pop > * + * { border-top: var(--hair) solid var(--sep); }
.menu-pop > a:active, .menu-pop button:active, .menu-pop label:active { background: var(--fill); }
.menu-pop .ic { width: 20px; height: 20px; }
.menu-h { padding: 8px 16px; font-size: 12px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }

/* ---------- formularze ---------- */
.form { --sep-l: var(--gut); }
.frow { position: relative; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; column-gap: 14px; min-height: var(--row-h); padding: 0 var(--gut); }
.frow::after { content: ""; position: absolute; left: var(--gut); right: 0; bottom: 0; border-bottom: var(--hair) solid var(--sep); pointer-events: none; }
.form > .frow:last-child::after, .form > .fwrap:last-child .frow::after,
.form > .frow:has(+ [hidden]:last-child)::after, .form > .fwrap:has(+ [hidden]:last-child) .frow::after { display: none; }
.fwrap { display: contents; }
.frow .lbl { padding: 11px 0; }
.frow .ctl { min-width: 0; display: flex; justify-content: flex-end; align-items: center; }
.frow .help, .frow .err { grid-column: 1 / -1; font-size: var(--fs-foot); line-height: 1.35; color: var(--label-2); padding-bottom: 10px; }
.frow .help ul { padding-left: 18px; list-style: disc; }
.frow .err { color: var(--red-t); font-weight: 500; }
.frow.has-err .lbl { color: var(--red-t); }
.frow:focus-within .lbl { color: var(--tint); }
.frow input, .frow select, .frow textarea, .note-title, .editor textarea {
  width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; outline: none; font-size: max(16px, var(--fs));
  -webkit-appearance: none; appearance: none; caret-color: var(--tint);
}
.frow input, .frow select { min-height: var(--row-h); padding: 0; }
.frow ::placeholder, .note-title::placeholder, .editor textarea::placeholder { color: var(--label-3); opacity: 1; }
.f-inline input, .f-inline select { text-align: right; text-align-last: right; }
.frow select { padding-right: 18px; background: var(--i-updown) right center / 10px 18px no-repeat; cursor: pointer; }
.frow select:disabled, .frow input:disabled { color: var(--label-2); }
.frow input[type="date"] { width: auto; min-width: 128px; min-height: 34px; padding: 4px 10px; border-radius: 8px; background: var(--fill); text-align: center; }
.frow input[type="date"]::-webkit-date-and-time-value { text-align: center; }
.f-stack, .f-area { grid-template-columns: minmax(0, 1fr); padding-top: 8px; padding-bottom: 6px; }
.f-stack .lbl, .f-area .lbl { padding: 0; font-size: var(--fs-foot); color: var(--label-2); }
.f-stack .ctl, .f-area .ctl { justify-content: stretch; }
.f-stack input { min-height: 32px; }
.f-area textarea { min-height: 96px; padding: 4px 0; resize: vertical; line-height: 1.4; display: block; }
.f-switch { grid-template-columns: minmax(0, 1fr) auto; }
.frow input[type="checkbox"] { width: 51px; min-height: 0; height: 31px; border-radius: 31px; background: var(--fill-2); position: relative; cursor: pointer; transition: background-color .2s; }
.frow input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transition: transform .2s; }
.frow input[type="checkbox"]:checked { background: var(--green); }
.frow input[type="checkbox"]:checked::after { transform: translateX(20px); }
.form.inner { background: var(--inset); border-radius: 10px; }
.errorlist { margin: 0 0 16px; padding: 12px var(--gut); border-radius: var(--r); background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red-t); font-size: var(--fs-sub); font-weight: 500; }
.frow .errorlist { all: unset; }

/* edytor markdown */
.editor .sect { margin-top: 0; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.editor .group { padding: 12px var(--gut); }
.editor textarea { display: block; min-height: 132px; resize: vertical; line-height: 1.45; padding: 0; }
.notepage .editor textarea { min-height: 46vh; }
.note-title { display: block; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; padding: 2px var(--gut) 12px; resize: none; overflow: hidden; }
.md-preview { min-height: 60px; }
.md-body { line-height: 1.5; }
.md-body > :first-child { margin-top: 0; } .md-body > :last-child { margin-bottom: 0; }
.md-body p, .md-body ul, .md-body ol, .md-body pre, .md-body blockquote, .md-body table { margin: 0 0 10px; }
.md-body h1, .md-body h2, .md-body h3 { margin: 16px 0 6px; font-size: 1.12em; font-weight: 700; }
.md-body h1 { font-size: 1.3em; }
.md-body ul { list-style: disc; padding-left: 22px; } .md-body ol { list-style: decimal; padding-left: 24px; }
.md-body li.task-list-item { list-style: none; margin-left: -22px; }
.md-body li.task-list-item input { margin: 0 8px 0 0; width: 16px; height: 16px; vertical-align: -2px; accent-color: var(--tint); }
.md-body a { color: var(--tint); }
.md-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.md-body pre { background: var(--fill); padding: 10px 12px; border-radius: 10px; overflow-x: auto; }
.md-body pre code { background: none; padding: 0; }
.md-body blockquote { padding-left: 12px; border-left: 3px solid var(--label-4); color: var(--label-2); }
.md-body table { border-collapse: collapse; font-size: var(--fs-sub); }
.md-body th, .md-body td { border: var(--hair) solid var(--sep); padding: 5px 9px; text-align: left; }
.journal { padding: 4px 0; }
.jsec { position: relative; padding: 10px var(--gut) 12px; }
.jsec + .jsec::before { content: ""; position: absolute; left: var(--gut); right: 0; top: 0; border-top: var(--hair) solid var(--sep); }
.jsec h3 { font-size: var(--fs-foot); font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .2px; margin-bottom: 4px; }

/* ---------- Dziś / Finanse: karta z najważniejszą liczbą ---------- */
.money-main { position: relative; display: block; padding: 16px var(--gut) 14px; }
.money-main::after { content: ""; position: absolute; left: var(--gut); right: 0; bottom: 0; border-bottom: var(--hair) solid var(--sep); }
.money-main:last-child::after { display: none; }
a.money-main:active { background: var(--fill); }
.money-main .k { display: block; font-size: var(--fs-sub); color: var(--label-2); }
.money-main .v { display: block; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.6px; margin-top: 2px; }
.money-main .v small { font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--label-2); }
.money-main.waiting .v, .money-main.waiting .v small { color: var(--orange-t); }
.money-main .v.neg { color: var(--red-t); }
.money-main .n { display: block; font-size: var(--fs-sub); color: var(--label-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.split { display: flex; flex-direction: column; }
.split > .col { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; } .o8 { order: 8; }

/* ---------- szkolenie: status jako proces ---------- */
.track { padding: 12px var(--gut) 2px; }
.track li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 32px; font-size: var(--fs-sub); color: var(--label-2); }
.track i { position: relative; z-index: 1; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--label-4); background: var(--surface); }
.track li + li::before { content: ""; position: absolute; left: 9.25px; top: -7px; width: 1.5px; height: 14px; background: var(--label-4); }
.track li.done { color: var(--label); }
.track li.done i { border-color: var(--green); background: var(--green) var(--i-check) center / 14px no-repeat; }
.track li.done + li::before { background: var(--green); }
.track li.current { color: var(--label); font-weight: 600; }
.track li.current i { border: 6px solid var(--c, var(--tint)); }
.track li.off { opacity: .45; }
.track .at { margin-left: auto; font-size: var(--fs-foot); font-weight: 400; color: var(--label-2); }
.track .at.now { color: var(--ct, var(--tint)); font-weight: 500; }
.proc-act { padding: 10px var(--gut) 16px; }
.proc-act:empty { padding: 0 0 8px; }
.proc-act form { margin: 0; }
.proc-act .btn { margin: 0; }
.proc-hint { margin-top: 10px; font-size: var(--fs-foot); color: var(--label-2); text-align: center; }
.proc-msg { font-size: var(--fs-sub); line-height: 1.4; }
.proc-msg + form { margin-top: 10px; }
.pay-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-sum .k { font-size: var(--fs-sub); color: var(--label-2); }
.pay-sum .v { font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--orange-t); }
.pay-sum .v small { font-size: 16px; font-weight: 600; }
.pay .form.inner { margin: 12px 0; }

.info .lbl { flex: 0 0 auto; color: var(--label-2); }
.info .val { color: var(--label); white-space: normal; }
.fin .cost { padding-top: 7px; padding-bottom: 7px; min-height: 0; padding-left: calc(var(--gut) + 16px); --sep-l: calc(var(--gut) + 16px); }
.fin .cost .ttl, .fin .cost .val { font-size: var(--fs-sub); }
.fin .cost .sub { font-size: var(--fs-foot); }
.expand > form { padding-bottom: 4px; }
.expand .form.inner { margin: 0 var(--gut) 12px; }
.expand .pad { padding: 0 var(--gut) 14px; }
.expand[open] > summary.row.add { color: var(--label-2); }
.hist > summary .val { margin-left: auto; }
.hist > summary { color: var(--label); }
.hist > summary::before { content: ""; order: 3; width: 16px; height: 16px; background: var(--label-4); -webkit-mask: var(--i-chev) center / 16px no-repeat; mask: var(--i-chev) center / 16px no-repeat; transition: transform .2s; }
.hist[open] > summary::before { transform: rotate(90deg); }
.hist .row .ttl { font-size: var(--fs-sub); }
.hist .row .val { font-size: var(--fs-foot); }

/* dokumenty */
.slot-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-right: 11px; color: var(--label-3); }
.slot-ic .ic { width: 22px; height: 22px; }
.slot-ic.has { border-radius: 50%; background: var(--green); color: #fff; }
.slot-ic.has .ic { width: 14px; height: 14px; stroke-width: 3; }
.slot-ic.ext { width: 34px; margin-right: 12px; border-radius: 5px; background: var(--fill); color: var(--label-2); font-size: 9.5px; font-weight: 700; letter-spacing: .2px; }
.docs:has(.slot-ic.ext) { --sep-l: 62px; }
.doc.missing .ttl { color: var(--label-2); }
.doc .state .s-done { display: none; color: var(--green-t); }
.doc.done .state .s-done { display: inline; }
.doc.done .state .s-todo { display: none; }
.doc .btn.sm { margin-left: 8px; }
.doc .btn.print .ic { margin: 0; width: 18px; height: 18px; stroke-width: 1.9; }
.doc .btn.print span { margin-left: 3px; }
.doc details.menu { margin-left: 2px; }
.docs .row.add .ic { margin-right: 0; }
/* „Od organizatora”: materiały do wglądu, zwinięte i w zwartych wierszach */
.ref > summary .sub { font-size: var(--fs-foot); }
.ref .doc { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.ref .doc .sub { font-size: var(--fs-foot); }
.ref .doc.missing .sub { display: none; }
.ref .doc .btn.sm { min-height: 28px; }

/* ---------- kalendarz ---------- */
.cal-title span { font-weight: 400; color: var(--label-2); }
.cal { --num-h: 30px; --bar-h: 15px; --tail: 9px; background: var(--surface); border-radius: var(--r); margin: 0 -8px 22px; }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px 0 6px; font-size: 11px; color: var(--label-2); text-align: center; text-transform: uppercase; }
.cal-wd span:nth-child(n+6) { color: var(--label-3); }
.week { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: var(--num-h) repeat(var(--lanes, 1), var(--bar-h)) minmax(var(--tail), 1fr); row-gap: 2px; border-top: var(--hair) solid var(--sep); }
.day { position: relative; grid-row: 1 / -1; display: flex; justify-content: center; padding-top: 3px; min-width: 0; }
.day .dn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 16px; }
.day.we .dn { color: var(--label-2); }
.day.out .dn { color: var(--label-4); }
.day.sel .dn { background: var(--label); color: var(--bg); font-weight: 600; }
.day.today .dn { background: var(--red); color: #fff; font-weight: 600; }
.day.today.sel .dn { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--red); }
.week:last-child .day:first-child { border-bottom-left-radius: var(--r); }
.week:last-child .day:last-of-type { border-bottom-right-radius: var(--r); }
.tk { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--label-2); line-height: 1; }
.tk i { width: 5px; height: 5px; border-radius: 50%; background: var(--label-3); }
.tk b { display: none; font-weight: 500; }
.tk.alldone i { background: none; box-shadow: inset 0 0 0 1px var(--label-3); }
.bar {
  position: relative; z-index: 1; min-width: 0; margin: 0 2px; padding: 0 4px; border-radius: 4px; overflow: hidden; white-space: nowrap;
  font-size: 10.5px; line-height: var(--bar-h); font-weight: 600; letter-spacing: -.1px; pointer-events: none;
  background: color-mix(in srgb, var(--c) 24%, var(--surface)); color: color-mix(in srgb, var(--c) 62%, var(--label));
}
.bar.cont-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar.s-uzgodnione { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, var(--surface)) 0 5px, color-mix(in srgb, var(--c) 13%, var(--surface)) 5px 10px); color: var(--label-2); }
.bar.dojazd { background: none; color: var(--label-2); font-weight: 500; padding: 0 2px; text-align: center; }
.bar .lg { display: none; }
.daypanel .sect { margin-top: 0; }
.daypanel .sect h2 .count { color: var(--red-t); font-weight: 600; margin-left: 6px; }
.daypanel .sect .icb { margin: -8px -10px -8px 0; }
.daypanel.loading { opacity: .5; transition: opacity .15s .1s; }

/* ---------- inne ekrany ---------- */
.searchbar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; margin: 0 0 22px; background: var(--fill); border-radius: 11px; color: var(--label-2); }
.searchbar .ic { width: 18px; height: 18px; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--label); font-size: max(16px, var(--fs)); -webkit-appearance: none; appearance: none; }
.searchbar ::placeholder { color: var(--label-2); opacity: 1; }
.blank { padding: 56px 24px; text-align: center; color: var(--label-2); }
.blank .ic { width: 44px; height: 44px; stroke-width: 1.3; color: var(--label-3); margin-bottom: 8px; }
.icons { --sep-l: 57px; }
.tile { flex: none; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: var(--gray); color: #fff; }
.tile .ic { width: 19px; height: 19px; }
.c-blue { background: var(--tint); } .c-green { background: var(--green); } .c-orange { background: var(--orange); } .c-red { background: var(--red); }
.c-indigo { background: var(--indigo); } .c-yellow { background: var(--yellow); } .c-gray { background: var(--gray); }
.qr { text-align: center; }
.qr-img { display: inline-block; padding: 10px; background: #fff; border-radius: 10px; line-height: 0; }
.qr .meta { margin: 10px 0 6px; }

/* komunikaty: toasty u góry, błędy zostają dłużej */
.msgs { position: fixed; z-index: 90; top: calc(env(safe-area-inset-top) + 8px); left: var(--side-w); right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px; pointer-events: none; }
.msgs li { pointer-events: auto; max-width: 480px; padding: 10px 18px; border-radius: 22px; background: var(--toast); color: #fff; font-size: var(--fs-sub); font-weight: 500; line-height: 1.3; text-align: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); cursor: pointer; animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.15) both, toast-out .4s ease-in 3.6s forwards; }
.msgs li.error { background: var(--red); animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.15) both, toast-out .4s ease-in 9s forwards; }
.msgs li.bye { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-16px); visibility: hidden; } }
body.bare .msgs { position: static; padding: 0; margin: 0 0 16px; }

/* ---------- szybki zapis: arkusz u góry (nad klawiaturą zawsze widoczny) ---------- */
.qsheet { position: fixed; inset: 0; z-index: 80; }
.qsheet[hidden]:target { display: block !important; }
.qsheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); animation: fade .2s ease-out; }
.quick { position: relative; margin: calc(env(safe-area-inset-top) + 8px) auto 0; width: min(640px, calc(100% - 16px)); max-height: calc(100dvh - env(safe-area-inset-top) - 24px); overflow-y: auto; background: var(--elev); border-radius: 18px; box-shadow: var(--shadow); animation: drop .22s cubic-bezier(.2, .9, .3, 1.1); }
.qbox { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 16px; }
.qbox textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 40vh; padding: 7px 0; border: 0; background: none; outline: none; resize: none; font-size: max(17px, var(--fs)); line-height: 1.3; caret-color: var(--tint); }
.qbox textarea::placeholder { color: var(--label-3); opacity: 1; }
.qsend { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--tint); color: #fff; }
.qsend .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.qsend[disabled] { opacity: .5; }
.preview { border-top: var(--hair) solid var(--sep); }
.pv { padding: 12px 16px 14px; font-size: var(--fs-sub); }
.pv-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pv .kind { font-weight: 700; font-size: var(--fs); text-transform: capitalize; }
.pv.ok .kind { color: var(--tint); }
.pv .kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; margin: 0; }
.pv .kv dt { color: var(--label-2); }
.pv .kv dd { margin: 0; }
.pv.hints .kv dd { color: var(--label); }
.pv .warn, .pv .errl, .pv .hint { margin-top: 8px; font-size: var(--fs-foot); line-height: 1.35; }
.pv .errl { color: var(--red-t); font-weight: 500; }
.pv .hint { color: var(--label-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.98); } }

/* ---------- logowanie ---------- */
.login { max-width: 380px; margin: 0 auto; padding: 12vh 20px 24px; }
.login-icon { display: block; margin: 0 auto 14px; border-radius: 16px; }
.login h1 { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 26px; }
.login .expand .form.inner { margin: 0 var(--gut) 12px; }
body.bare { padding-bottom: 0; }

/* ---------- telefon: drobne dopasowania ---------- */
@media (max-width: 899px) {
  .doc .btn.print { padding: 0 9px; }
  .doc .btn.print span { display: none; }
}
@media (max-width: 699px) { .doc .sub .wide { display: none; } }
@media (max-width: 380px) {
  h1.lt { font-size: 30px; }
}

/* ---------- tablet i komputer ---------- */
@media (min-width: 700px) {
  .track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 18px 8px 6px; }
  .track li { flex-direction: column; gap: 6px; min-height: 0; text-align: center; font-size: var(--fs-foot); line-height: 1.25; }
  .track li + li::before { left: calc(-50% + 14px); right: calc(50% + 14px); top: 9.25px; width: auto; height: 1.5px; }
  .track .at { margin: -3px 0 0; font-size: 12px; }
  .proc-act { max-width: 440px; margin: 0 auto; padding-top: 14px; }
  .proc-act:has(.proc-msg) { text-align: center; }
  .cal { --num-h: 32px; --bar-h: 19px; --tail: 20px; margin: 0 0 22px; }
  .cal-wd { text-align: right; padding: 10px 0 8px; }
  .cal-wd span { padding-right: 12px; }
  .week { min-height: 104px; }
  .day { justify-content: flex-end; padding: 4px 6px 0 0; }
  .day + .day { border-left: var(--hair) solid var(--sep); }
  .day .dn { font-size: 15px; }
  .day.out { background: color-mix(in srgb, var(--bg) 45%, var(--surface)); }
  .day.sel { background: var(--tint-soft); }
  .tk { left: 9px; top: 11px; bottom: auto; transform: none; }
  .tk b { display: block; }
  .tk i { width: 6px; height: 6px; }
  .bar { font-size: 12px; padding: 0 6px; margin: 0 4px; border-radius: 5px; pointer-events: auto; }
  .bar.dojazd { text-align: left; padding: 0 3px; margin: 0 2px; font-size: 11.5px; text-overflow: ellipsis; }
  .bar:hover { filter: brightness(.96); }
}
@media (min-width: 900px) {
  :root { --fs: 15px; --fs-sub: 13px; --fs-foot: 12px; --row-h: 40px; --side-w: 224px; --gut: 16px; }
  body { padding-bottom: 40px; }
  .tabbar { display: none; }
  .back.mob { display: none; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 35; width: var(--side-w); display: flex; flex-direction: column;
    padding: 18px 12px 14px; background: var(--sidebar); border-right: var(--hair) solid var(--sep); overflow-y: auto;
  }
  .brand { padding: 2px 10px 14px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
  .side-quick { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 9px; margin-bottom: 14px; border-radius: 9px; background: var(--surface); color: var(--label-2); box-shadow: 0 0 0 var(--hair) var(--sep), 0 1px 2px rgba(0, 0, 0, .04); }
  .side-quick .ic { width: 18px; height: 18px; color: var(--tint); stroke-width: 2.3; }
  .side-quick span { flex: 1; }
  .side-quick kbd { font: 500 12px var(--sans); padding: 2px 7px; border-radius: 5px; background: var(--fill); color: var(--label-2); }
  .sidebar nav { display: flex; flex-direction: column; gap: 1px; }
  .sidebar nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; }
  .sidebar nav a .ic { width: 20px; height: 20px; color: var(--tint); }
  .sidebar nav a:hover { background: var(--fill); }
  .sidebar nav a.on { background: var(--fill-2); font-weight: 600; }
  .sidebar hr { border: 0; height: 14px; margin: 0; }
  .side-foot { margin-top: auto; }
  .navbar { min-height: 52px; }
  .page { padding-top: 4px; }
  h1.lt { font-size: 30px; }
  .hero h1.lt { font-size: 28px; }
  .sect h2 { font-size: 17px; }
  .btn { min-height: 40px; border-radius: 10px; }
  .btn.sm { min-height: 30px; }
  .icb { width: 36px; height: 36px; }
  .icb:hover { background: var(--fill); }
  .nav-r .icb { margin: 0; }
  a.row:hover, button.row:hover, summary.row:hover, a.money-main:hover { background: color-mix(in srgb, var(--fill) 50%, transparent); }
  .menu-pop > a:hover, .menu-pop button:hover, .menu-pop label:hover { background: var(--fill); }
  .chk { width: 36px; height: 36px; margin: -9px 0 -9px -8px; }
  .chk::before { width: 20px; height: 20px; }
  .tasks, .docs { --sep-l: 44px; }
  .slot-ic { width: 20px; height: 20px; margin-right: 8px; }
  .slot-ic .ic { width: 20px; height: 20px; }
  .slot-ic.ext { width: 34px; margin-right: 10px; }
  .docs:has(.slot-ic.ext) { --sep-l: 60px; }
  .row details.menu { margin: -9px -8px -9px 0; }
  .row.add > a, .row.add label { margin: -11px 0; }
  .row.add .ic { width: 20px; height: 20px; }
  .money-main .v { font-size: 32px; }
  .msgs { top: 12px; }
  .quick { margin-top: 12vh; }
  .note-title { font-size: 26px; }
}
@media (min-width: 1100px) {
  .shell:has(.page.wide) { --page-w: 1040px; }
  .shell:has(.page.calpage) { --page-w: 1240px; }
  .split { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .split > .col { display: block; }
  .cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; column-gap: 24px; align-items: start; }
  .daypanel { position: sticky; top: 64px; }
  .week { min-height: 112px; }
}
@media (min-width: 1360px) { .bar .lg { display: inline; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .sidebar, .tabbar, .navbar, .qsheet, .msgs { display: none !important; } .shell { margin: 0; } }
