/* Rezerwacja pojazdu służbowego: wygląd (wariant A) */

:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #121722;
  --muted: #4A5160;
  --faint: #7A818D;
  --line: #DDE1E7;
  --line-2: #E4E7EC;
  --field: #CDD2DA;
  --hover: #F0F2F5;
  --accent: #2457D6;
  --accent-ink: #1B3F9E;
  --accent-soft: #E6EDFC;
  --ok-bg: #DDF3F0;
  --ok-fg: #0B5F57;
  --ok-line: #9BCFC8;
  --ok-dot: #0F8A7E;
  --warn-bg: #FDEEDF;
  --warn-fg: #8A4310;
  --warn-dot: #D2691A;
  --danger: #B42318;
  --radius: 20px;
  --font: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid rgba(36, 87, 214, 0.45); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.boot { padding: 48px 24px; text-align: center; color: var(--muted); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #C3C9D2; color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #FFFFFF; }
.btn-primary:disabled { background: var(--line-2); border-color: var(--line-2); color: var(--muted); opacity: 1; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: #912018; border-color: #912018; color: #FFFFFF; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--hover); border-color: transparent; }
.btn-block { width: 100%; min-height: 52px; font-size: 16px; }
.btn-small { min-height: 40px; padding: 0 12px; font-size: 14px; }
.icon-btn { width: 44px; min-width: 44px; padding: 0; }

/* ---------- pola formularzy ---------- */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="date"], input[type="time"],
input[type="url"], input[type="tel"], select, textarea {
  width: 100%; min-width: 0; height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field); border-radius: 12px;
  background: #FFFFFF; font-size: 16px;
}
textarea { height: auto; min-height: 76px; padding: 11px 14px; resize: vertical; line-height: 1.4; }
input:disabled { background: var(--hover); color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(36, 87, 214, 0.2); outline-offset: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.form-error:empty { display: none; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.notice svg { flex-shrink: 0; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice.info { background: var(--accent-soft); color: var(--accent-ink); }
.notice.ok { background: var(--ok-bg); color: var(--ok-fg); }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.card-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.card-lead { color: var(--muted); margin-bottom: 18px; }

/* ---------- górny pasek ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line-2); }
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 10px 12px 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.2; }
.brand-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 4px; }
.top-actions .label { display: none; }
.top-actions .btn { min-width: 44px; padding: 0 10px; }

.status-pill {
  order: 3; flex: 1 1 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 12px;
  background: var(--hover); color: var(--muted); font-size: 14px;
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.status-pill.busy { background: var(--warn-bg); color: var(--warn-fg); }
.status-pill.busy .dot { background: var(--warn-dot); }
.status-pill.free { background: var(--ok-bg); color: var(--ok-fg); }
.status-pill.free .dot { background: var(--ok-dot); }
.status-pill strong { font-weight: 700; }

/* ---------- układ kalendarza ---------- */
.layout {
  max-width: 1320px; margin: 0 auto;
  padding: 12px 12px 104px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.form-card { display: none; }
.layout.show-form .form-card { display: block; }
.layout.show-form .cal-card, .layout.show-form .day-card { display: none; }
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(244, 245, 247, 0.97); border-top: 1px solid var(--line-2);
}
#app.show-form .mobile-cta { display: none; }

.cal-card { padding: 12px 10px 10px; }
.cal-toolbar { display: flex; align-items: center; gap: 6px; padding: 0 2px 8px; }
.month-title { flex: 1; text-align: center; font-size: 19px; font-weight: 600; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span.wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0 6px; }
.cal-head .long { display: none; }
.cal-grid { gap: 2px; }
.day {
  height: 46px; margin: 0 1px; padding: 0;
  border: 2px solid transparent; border-radius: 12px; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink); cursor: pointer;
}
.day:hover { background: var(--hover); }
.day .num { font-size: 15px; font-weight: 600; line-height: 1; }
.day .dots { display: flex; gap: 3px; height: 5px; }
.day .dot { width: 5px; height: 5px; border-radius: 50%; }
.day .chips { display: none; }
.day.out { color: var(--faint); }
.day.today { border-color: var(--accent); color: var(--accent); }
.day.selected { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.day.selected .dot { background: #FFFFFF !important; }

.day-card { padding: 16px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.day-head h3 { font-size: 17px; font-weight: 600; }
.count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.bk { display: flex; align-items: center; gap: 12px; padding: 10px 4px 10px 12px; border-radius: 14px; background: var(--bg); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.bk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-time { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.bk-what { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bk .icon-btn { color: var(--muted); }
.bk .icon-btn:hover { color: var(--danger); background: #FFFFFF; }
.free {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 14px; border: 1.5px dashed var(--ok-line);
  color: var(--ok-fg); font-size: 14px; font-weight: 600;
}
.free svg { flex-shrink: 0; }

/* ---------- formularz rezerwacji ---------- */
.form-card { padding: 16px 18px 18px; }
.form-head { display: flex; align-items: center; gap: 4px; margin: -6px 0 12px -10px; }
.form-head h2 { font-size: 21px; font-weight: 700; }
.avail { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.avail svg { flex-shrink: 0; margin-top: 1px; }
.avail.ok { background: var(--ok-bg); color: var(--ok-fg); }
.avail.conflict { background: var(--warn-bg); color: var(--warn-fg); }
.avail.info { background: var(--hover); color: var(--muted); }
.timeline-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.timeline { position: relative; height: 36px; border-radius: 10px; background: var(--hover); overflow: hidden; }
.seg {
  position: absolute; top: 4px; bottom: 4px; border-radius: 7px;
  display: flex; align-items: center; padding: 0 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.seg.new { background: var(--accent); color: #FFFFFF; }
.seg.new.conflict { background: var(--warn-dot); color: #FFFFFF; }
.timeline.stale { opacity: 0.45; }
.timeline-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- ekran PIN ---------- */
.pin-screen {
  min-height: 100vh; min-height: 100dvh; max-width: 420px; margin: 0 auto;
  padding: 44px 24px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.big-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.pin-screen h1 { margin-top: 16px; font-size: 28px; font-weight: 700; }
.pin-sub { margin-top: 4px; font-size: 15px; color: var(--muted); }
.pin-prompt { margin-top: 30px; font-weight: 500; }
.pin-dots { margin-top: 18px; display: flex; gap: 16px; justify-content: center; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--faint); }
.pin-dot.filled { background: var(--accent); border-color: var(--accent); }
.pin-dots.shake { animation: shake 0.35s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.pin-msg { min-height: 22px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--danger); }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 18px; justify-content: center; }
.key {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--line); background: #FFFFFF;
  font-family: var(--font-head); font-size: 28px; font-weight: 500;
  cursor: pointer;
}
.key:hover { border-color: #C3C9D2; }
.key:active { background: var(--accent-soft); }
.key.back { border: none; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.key-blank { width: 72px; height: 72px; }
.pin-actions { width: 100%; margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.pin-actions .check { justify-content: center; }
.pin-foot { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- ekrany wąskie (konfiguracja, logowanie administratora) ---------- */
.narrow { max-width: 560px; margin: 0 auto; padding: 20px 12px 40px; }
.narrow .card { padding: 22px; }
.section-title { font-size: 15px; font-weight: 700; margin: 8px 0 -4px; font-family: var(--font); letter-spacing: 0; }

/* ---------- panel administratora ---------- */
.admin { max-width: 1320px; margin: 0 auto; padding: 16px 12px 40px; display: flex; flex-direction: column; gap: 14px; }
.page-title { font-size: 24px; font-weight: 700; padding: 4px 4px 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-nav a {
  padding: 9px 14px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
}
.admin-nav a:hover { background: var(--card); color: var(--ink); }
.admin-nav a.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 23, 34, 0.08); }
.admin-card { max-width: 640px; padding: 20px; }
.admin-card h2 { font-size: 20px; margin-bottom: 6px; }
.admin-card > .notice { margin-bottom: 18px; }
.share-rows { display: flex; flex-direction: column; }
.share-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.share-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.share-value { font-weight: 600; overflow-wrap: anywhere; }
.share-value.good { color: var(--ok-fg); }
.share-value.bad { color: var(--warn-fg); }
.pin-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.pin-current .pin-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: 0.18em; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- projektant wydruku ---------- */
.print-layout { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.print-controls { flex: 1 1 340px; max-width: 480px; padding: 18px; }
.print-preview { flex: 999 1 460px; min-width: 0; padding: 18px; }
.print-preview h2, .print-controls h2 { font-size: 18px; margin-bottom: 12px; }
.preview-box { position: relative; overflow: hidden; background: var(--hover); border-radius: 12px; }
.preview-box .sheet { transform-origin: top left; box-shadow: 0 2px 14px rgba(18, 23, 34, 0.14); }
.radio-group { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.radio-group legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.radio {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.radio .r-title { display: block; font-size: 15px; font-weight: 600; }
.radio .r-desc { display: block; font-size: 13px; color: var(--muted); }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.url-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Arkusz do druku (wymiary w milimetrach) */
.sheet { background: #FFFFFF; display: grid; padding: 6mm; overflow: hidden; }
.sheet-a4-1 { width: 210mm; height: 296.5mm; padding: 10mm; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.sheet-a5-2 { width: 297mm; height: 209.5mm; grid-template: minmax(0, 1fr) / repeat(2, minmax(0, 1fr)); }
.sheet-a6-4 { width: 210mm; height: 296.5mm; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); }
.sheet.cut .pcard { outline: 0.3mm dashed #9AA1AD; outline-offset: -0.15mm; }

/* Kartka: rozmiary w jednostkach cqw (procent szerokości kartki),
   dzięki czemu ten sam projekt pasuje do A4, A5 i A6. */
.pcard { position: relative; container-type: inline-size; overflow: hidden; background: #FFFFFF; color: #121722; font-family: var(--font); }
.pcard-in {
  position: absolute; inset: 0; padding: 6cqw;
  display: flex; flex-direction: column; align-items: center; gap: 3cqw; text-align: center;
}
.p-band {
  align-self: stretch; display: flex; align-items: center; gap: 3.5cqw;
  background: #2457D6; color: #FFFFFF; border-radius: 3.5cqw; padding: 4cqw 5cqw; text-align: left;
}
.p-logo {
  width: 11cqw; height: 11cqw; border-radius: 3cqw; flex-shrink: 0;
  background: #FFFFFF; color: #2457D6; display: flex; align-items: center; justify-content: center;
}
.p-logo svg { width: 7cqw; height: 7cqw; }
.p-titles { min-width: 0; }
.p-title { font-family: var(--font-head); font-size: 6.6cqw; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.p-sub { margin-top: 0.8cqw; font-size: 3.4cqw; line-height: 1.3; overflow-wrap: anywhere; }
.p-lead { font-size: 3.9cqw; line-height: 1.35; font-weight: 500; max-width: 84cqw; white-space: pre-line; overflow-wrap: anywhere; }
.p-qr { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.p-qr img { display: block; height: 100%; max-height: 50cqw; width: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.p-qr-missing {
  width: 40cqw; aspect-ratio: 1 / 1; padding: 3cqw;
  border: 0.5cqw dashed #9AA1AD; border-radius: 2cqw;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4cqw; color: #4A5160;
}
.p-pin { display: flex; align-items: baseline; gap: 3cqw; border: 0.5cqw solid #121722; border-radius: 2.5cqw; padding: 1.4cqw 5cqw; }
.p-pin-label { font-size: 3.2cqw; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5160; }
.p-pin-value { font-family: var(--font-head); font-size: 8cqw; font-weight: 700; letter-spacing: 0.18em; line-height: 1.1; }
.p-steps { align-self: stretch; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5cqw; }
.p-steps li { display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; font-size: 3.2cqw; font-weight: 600; line-height: 1.25; }
.p-step-n {
  width: 7cqw; height: 7cqw; border-radius: 50%;
  background: #E6EDFC; color: #1B3F9E;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4cqw; font-weight: 700;
}
.p-comment {
  align-self: stretch; background: #F4F5F7; border-radius: 2.5cqw; padding: 2.6cqw 3.5cqw;
  font-size: 3.4cqw; line-height: 1.4; white-space: pre-line; text-align: left; overflow-wrap: anywhere;
}
.p-foot {
  align-self: stretch; border-top: 0.3cqw solid #E4E7EC; padding-top: 2.4cqw;
  font-size: 2.9cqw; line-height: 1.45; color: #4A5160; overflow-wrap: anywhere;
}
.p-foot strong { color: #121722; font-weight: 600; }

/* ---------- komunikaty i okna ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--danger); }

dialog.confirm {
  width: calc(100% - 32px); max-width: 420px;
  border: none; border-radius: 20px; padding: 22px;
  color: var(--ink); box-shadow: 0 10px 40px rgba(18, 23, 34, 0.25);
}
dialog.confirm::backdrop { background: rgba(18, 23, 34, 0.45); }
dialog.confirm h2 { font-size: 20px; margin-bottom: 8px; }
dialog.confirm p { color: var(--muted); white-space: pre-line; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- komputer (szeroki ekran) ---------- */
@media (min-width: 900px) {
  .topbar-inner { padding: 12px 24px; gap: 12px 16px; }
  .status-pill { order: 0; flex: 0 1 auto; border-radius: 999px; }
  .top-actions .label { display: inline; }
  .top-actions .btn { padding: 0 14px; }

  .layout { grid-template-columns: minmax(0, 1fr) 360px; padding: 24px; gap: 24px; align-items: start; }
  .side { gap: 24px; }
  .form-card { display: block; }
  .layout.show-form .cal-card, .layout.show-form .day-card { display: block; }
  .mobile-cta, .form-back { display: none; }
  .form-head { margin: 0 0 14px; }

  .cal-card { padding: 20px; }
  .cal-toolbar { padding: 0 0 14px; gap: 8px; }
  .month-title { flex: 0 1 auto; order: -1; margin-right: auto; text-align: left; font-size: 22px; font-weight: 700; }
  .cal-head span.wd { text-align: left; padding: 0 0 8px 8px; }
  .cal-head .short { display: none; }
  .cal-head .long { display: inline; }
  .cal-grid { gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
  .day {
    height: auto; min-height: 108px; margin: 0; padding: 6px;
    border: 0; border-radius: 0; background: var(--card);
    align-items: stretch; justify-content: flex-start; gap: 4px; text-align: left;
  }
  .day:hover { background: #F8F9FB; }
  .day .num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
  .day .dots { display: none; }
  .day .chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .day.out { background: #F8F9FA; }
  .day.today { color: var(--ink); }
  .day.today .num { background: var(--accent); color: #FFFFFF; }
  .day.selected { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
  .day.selected:hover { background: var(--accent-soft); }
  .chip { display: flex; flex-direction: column; padding: 3px 6px; border-radius: 6px; min-width: 0; }
  .chip-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chip-time { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .more { font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 4px; }

  .day-card { padding: 18px; }
  .admin { padding: 24px; }
  .print-preview { position: sticky; top: 16px; }
  .toast { bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .pin-dots.shake { animation: none; }
  .toast { transition: none; }
}

/* ---------- drukowanie ---------- */
@media screen {
  #print-root { display: none; }
}
@media print {
  body.print-mode { background: #FFFFFF; }
  body.print-mode #app, body.print-mode .toast, body.print-mode dialog { display: none !important; }
  body.print-mode #print-root { display: block; }
  #print-root .sheet { transform: none !important; box-shadow: none; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- udostępnianie: kroki ---------- */
.share-steps { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.share-step { display: flex; gap: 14px; align-items: flex-start; }
.share-step-n {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; background: var(--hover); color: var(--faint);
}
.share-step.active .share-step-n { background: var(--accent); color: #FFFFFF; }
.share-step.done .share-step-n { background: var(--ok-bg); color: var(--ok-fg); }
.share-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.share-step-title { font-weight: 600; }
.share-step.todo .share-step-title { color: var(--faint); }
.share-step.done .share-step-title { color: var(--ok-fg); }
