/* Styl zeszytu: kartka w kratkę, karteczki, taśma, pieczątki; czego nie ma, jest narysowane linią. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kalam"; font-weight: 400; font-display: swap; src: url("fonts/kalam-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kalam"; font-weight: 400; font-display: swap; src: url("fonts/kalam-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kalam"; font-weight: 700; font-display: swap; src: url("fonts/kalam-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kalam"; font-weight: 700; font-display: swap; src: url("fonts/kalam-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("fonts/nunito-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-weight: 900; font-display: swap; src: url("fonts/nunito-latin-ext-900-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Kolory i pisma motywu. Opis: docs/motyw.md. */
:root {
  --sheet: #fbfaf4;
  --grid: #dde6ec;
  --margin: #e7a79c;
  --ink: #1b2a4a;
  --muted: #4f5c74;
  --line: #d4e0ea;
  --paper: #ffffff;
  --teal: #0e7c7b;
  --teal-dark: #0a5f5e;
  --coral: #f2664a;
  --red: #a1301b;
  --yellow: #ffe58a;
  --mint: #cdebe6;
  --peach: #ffd3c7;
  --on-dark: #ffffff;
  --lift: 2px 4px 0 rgb(27 42 74 / .16);
  --font: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --scribble: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }

/* Kartka w kratkę; na szerokim ekranie z czerwonym marginesem jak w zeszycie. */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
@media (min-width: 64rem) {
  body {
    background-image: linear-gradient(90deg, transparent 44px, var(--margin) 44px, var(--margin) 46px, transparent 46px),
      linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 100% 100%, 22px 22px, 22px 22px;
  }
}

h1, h2, p, ul { margin: 0; padding: 0; }
h1, h2 { font-family: var(--hand); font-weight: 700; line-height: 1.15; }
/* Nagłówek strony podkreślony zakreślaczem. */
h1 {
  font-size: 2.1rem;
  text-decoration: underline;
  text-decoration-color: rgb(242 102 74 / .45);
  text-decoration-thickness: .32em;
  text-underline-offset: -.12em;
  text-decoration-skip-ink: none;
}

.sheet {
  max-width: 72rem;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  justify-items: start;
}

/* Kartonik: papier z grubą kreską i twardym cieniem. */
.brick {
  --face: var(--paper);
  --text: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background-color: var(--face);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.brick--orange { --face: var(--teal); --text: var(--on-dark); }
.brick--black { --face: var(--ink); --text: var(--on-dark); }
.brick--paper { --face: var(--paper); }

.top {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

/* Logo: znak (dwie osoby tworzą literę m) i napis MyNGO. */
.logo { text-decoration: none; display: flex; align-items: center; gap: .3em; color: var(--ink); text-decoration: none; font: 900 2.6rem/1 "Nunito", var(--font); letter-spacing: -.02em; }
.logo__sign { height: 1.15em; width: auto; flex: none; }
.logo__my { color: var(--teal); }
.logo--small { font-size: 1.55rem; }

.version { margin-top: 10px; font: 600 1.3rem var(--scribble); color: var(--muted); }

.status { flex: 0 1 30rem; min-width: 0; }
.status__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--yellow);
  border: 0;
  border-radius: 0;
  box-shadow: var(--lift);
  transform: rotate(-1deg);
}

/* Przycisk: kartonik, który wciska się w kartkę. */
.brick--button {
  --face: var(--teal);
  --text: var(--on-dark);
  padding: 10px 18px;
  font: 700 1rem var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.brick--button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.brick--button:active { transform: translate(3px, 3px); box-shadow: none; }
.brick--button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Plan: moduły, których jeszcze nie ma, są tylko narysowane cienką linią. */
.plan { width: 100%; display: grid; gap: 12px; }
.plan h2 { font-size: 1.4rem; }
.ghosts { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 12px; }
.ghost { padding: 14px 16px; border: 1.5px dashed var(--muted); border-radius: 4px; color: var(--muted); }
.ghost--built { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-style: solid; box-shadow: 3px 3px 0 var(--ink); }

@media (max-width: 30rem) {
  .sheet { padding: 24px 16px; }
  .logo { font-size: 2rem; }
  .status { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .brick--button { transition: none; }
}

/* Ekrany aplikacji. */
a { color: var(--teal-dark); }
.brick--small { padding: 5px 12px; font-size: .9rem; }
.brick--light { --face: var(--paper); --text: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 18px; }

.bar { width: 100%; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.bar__who { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; font: 400 1.2rem var(--hand); }

/* Aplikacja: nagłówek na górze, menu z zakładek z boku, treść obok. */
.sheet--app { max-width: 92rem; padding: 18px 24px 56px 64px; grid-template-columns: auto minmax(0, 1fr); gap: 22px 32px; align-items: start; }
.sheet--app > .bar { grid-column: 1 / -1; }
.content { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; justify-items: start; }
.side { position: sticky; top: 12px; }
.side > summary, .user > summary { cursor: pointer; font-weight: 700; width: fit-content; padding: 5px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.side[open] > summary { margin-bottom: 14px; }
.user { position: relative; font-size: .92rem; }
.user > summary { overflow-wrap: anywhere; }
.user__menu { position: absolute; right: 0; z-index: 5; margin-top: 8px; min-width: 14rem; display: grid; gap: 10px; padding: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); }

/* Grupy menu to kolorowe zakładki segregatora. */
.menu { width: 13rem; display: grid; gap: 16px; }
.menu__group { display: grid; gap: 2px; justify-items: start; }
.menu__group h2 {
  margin-bottom: 4px;
  padding: 2px 16px 2px 12px;
  font-size: 1.05rem;
  background: var(--tab, var(--paper));
  color: var(--tab-text, var(--ink));
  border: 2px solid var(--ink);
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 3px 0 var(--ink);
}
.menu > .menu__group:nth-of-type(1) { --tab: var(--teal); --tab-text: var(--on-dark); }
.menu > .menu__group:nth-of-type(2) { --tab: var(--yellow); }
.menu > .menu__group:nth-of-type(3) { --tab: var(--peach); }
.menu > .menu__group:nth-of-type(4) { --tab: var(--mint); }
.menu__foundations summary { cursor: pointer; width: fit-content; padding: 2px 16px 2px 12px; font: 700 1.05rem var(--hand); border: 2px solid var(--ink); border-radius: 0 10px 10px 0; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.menu__foundations[open] summary { margin-bottom: 6px; }
.menu .tile { padding: 1px 6px; margin-left: 10px; font-weight: 400; color: var(--ink); background: none; border: 0; box-shadow: none; }
.menu .tile:hover { background: rgb(14 124 123 / .1); }
.menu .tile[aria-current="page"] { font-weight: 700; background: linear-gradient(transparent 55%, rgb(242 102 74 / .45) 55%, rgb(242 102 74 / .45) 92%, transparent 92%); }
@media (max-width: 48rem) {
  .sheet--app { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .side { position: static; width: 100%; }
  .user__menu { right: auto; left: 0; }
  .menu { width: 100%; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
}
.tile {
  padding: 8px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.tile:hover { background: var(--yellow); }
.tile:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Panel: kartka przyklejona taśmą. */
.panel {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
}
.panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 84px;
  height: 20px;
  background: rgb(242 102 74 / .35);
  transform: rotate(-3deg);
  pointer-events: none;
}
.panel:nth-of-type(even)::before { left: auto; right: 32px; background: rgb(14 124 123 / .3); transform: rotate(2deg); }
.panel--narrow { max-width: 30rem; }
.panel h1, .panel h2 { font-size: 1.45rem; }
.panel h1 { font-size: 1.8rem; }

.form { display: grid; gap: 6px; justify-items: start; max-width: 28rem; }
.form--wide { max-width: 40rem; }
.form label { font-weight: 700; font-size: .92rem; margin-top: 8px; }
/* Pole jak linia do wypełnienia w papierowym druku. */
.form input:not([type=checkbox]), .form select, .form textarea, .inline input {
  width: 100%;
  font: inherit;
  padding: 7px 4px;
  color: var(--ink);
  background: rgb(255 255 255 / .7);
  border: 0;
  border-bottom: 2px dotted var(--ink);
  border-radius: 0;
}
.form select, .form textarea { border: 1.5px solid var(--ink); border-radius: 4px; padding: 8px 10px; background: var(--paper); }
.form textarea { min-height: 5rem; resize: vertical; }
.form .brick--button { margin-top: 14px; }
:is(input, select, textarea):focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-bottom-style: solid; }
.plain { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; justify-items: start; width: 100%; }
.check { display: flex; gap: 8px; align-items: center; }
input[type=checkbox] { accent-color: var(--teal); width: 1.1rem; height: 1.1rem; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
[hidden] { display: none !important; }
.views { display: flex; gap: 8px; margin: 0; }
.views--days { flex-wrap: wrap; }
html[data-widok="dzien"] .planner__day:not(.planner__day--shown) { display: none; }
html[data-widok="dzien"] .planner__grid { grid-template-columns: 3.2rem minmax(0, 1fr); min-width: 0; }
.heading { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.inline input { width: auto; flex: 1 1 10rem; max-width: 22rem; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font: 700 1.05rem var(--hand); border-bottom: 2px solid var(--ink); }

.list { list-style: none; display: grid; gap: 8px; }
.facts { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: .92rem; }
/* Komunikaty to karteczki: łososiowa ostrzega, miętowa potwierdza. */
.alert { padding: 12px 14px; color: #6e1d0f; background: var(--peach); box-shadow: var(--lift); }
.ok { padding: 12px 14px; background: var(--mint); box-shadow: var(--lift); }
/* Znacznik to pieczątka. */
.mark { display: inline-block; padding: 0 6px; color: var(--red); border: 2px solid currentColor; border-radius: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); }
.qr { justify-self: start; padding: 8px; background: var(--paper); line-height: 0; }
.codes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
code { font-size: 1rem; overflow-wrap: anywhere; }

.form--full { max-width: none; justify-items: stretch; }
.form--full .brick--button { justify-self: start; }
legend { font-weight: 700; padding: 0; margin-bottom: 4px; }

.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline select { font: inherit; padding: 8px 10px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; }

.agenda { display: grid; gap: 8px; padding-left: 1.4rem; }
.agenda li { overflow-wrap: anywhere; }
.agenda .inline { display: inline-flex; margin-left: 10px; vertical-align: middle; }

.actions--tight { gap: 12px; }

/* Kalendarz planu pracy */
.jump { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.jump select, .jump input { font: inherit; padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); }
.planner { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: 16px; align-items: start; }
.planner__side { display: grid; gap: 6px; padding: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); position: sticky; top: 8px; }
.planner__side h2 { margin: 12px 0 0; font-size: 1.15rem; }
.planner__side input, .planner__side select { font: inherit; padding: 6px 8px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); }
.planner__tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Osoby do przeciągnięcia to karteczki samoprzylepne. */
.person-tile { padding: 6px 10px; cursor: grab; font-weight: 700; color: var(--ink); background: var(--yellow); box-shadow: var(--lift); user-select: none; }
.person-tile--volunteer { background: var(--mint); }
.person-tile:active { cursor: grabbing; transform: rotate(-3deg); box-shadow: 6px 10px 0 rgb(27 42 74 / .22); }
.planner__grid { display: grid; grid-template-columns: 3.2rem repeat(7, minmax(6.5rem, 1fr)); min-width: 52rem; }
.planner__head { height: 2rem; padding: 4px 6px; font: 700 1rem var(--hand); border-bottom: 2px solid var(--ink); }
.planner__column { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px); background-color: rgb(255 255 255 / .55); }
.planner__hours .planner__column { border-left: 0; background: none; }
.planner__hours span { position: absolute; right: 6px; font-size: .75rem; transform: translateY(-.5em); }
.planner__day--today .planner__head { background: linear-gradient(transparent 50%, rgb(242 102 74 / .45) 50%); }
.planner__column--over { outline: 2px dashed var(--teal); outline-offset: -3px; }
.shift { position: absolute; display: grid; align-content: start; overflow: hidden; padding: 3px 5px; font-size: .78rem; line-height: 1.2; color: var(--ink); text-decoration: none; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 2px 2px 0 var(--ink); }
.shift--substitute { background: var(--peach); }
.shift:hover, .shift:focus-visible { z-index: 2; outline: 2px solid var(--teal); }
.planner__status { min-height: 1.4em; font-weight: 700; }
.planner__status--error { color: var(--red); }
@media (max-width: 720px) {
  .planner { grid-template-columns: 1fr; }
  .planner__side { position: static; }
}

/* Plansza struktury działów */
.tree { list-style: none; margin: 0; padding: 0 0 0 28px; }
.tree--root { padding-left: 0; }
.tree li { position: relative; padding-top: 12px; }
.tree .tree > li::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; border-left: 1.5px solid var(--ink); }
.tree .tree > li:last-child::before { bottom: auto; height: 34px; }
.tree .tree > li::after { content: ""; position: absolute; left: -16px; top: 34px; width: 16px; border-top: 1.5px solid var(--ink); }
.dept { display: grid; gap: 6px; max-width: 34rem; padding: 10px 12px; cursor: grab; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.tree--root > li > .dept { color: var(--on-dark); background: var(--teal); }
.tree--root > li > .dept .note, .tree--root > li > .dept a, .tree--root > li > .dept summary { color: var(--on-dark); }
.dept p { margin: 0; }
.dept__name { font: 700 1.1rem var(--hand); }
.dept--root { cursor: default; max-width: none; font-size: .85rem; background: none; border: 1.5px dashed var(--muted); box-shadow: none; }
.dept--over { outline: 2px dashed var(--teal); outline-offset: 3px; }
.dept__people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; font-size: .85rem; color: var(--ink); background: var(--yellow); cursor: grab; }
.tree--root > li > .dept .chip a { color: var(--ink); }
.chip form { margin: 0; }
.chip button { font: inherit; line-height: 1; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.dept__more summary { cursor: pointer; font-size: .85rem; }
.shift__resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.shift--target { outline: 2px dashed var(--teal); outline-offset: 1px; z-index: 3; }
.shift-preview { position: absolute; left: 2px; right: 2px; z-index: 4; pointer-events: none; padding: 2px 5px; font-size: .78rem; font-weight: 700; border: 2px dashed var(--teal); background: rgb(14 124 123 / .12); }
.shift-preview--bad { border-color: var(--red); background: repeating-linear-gradient(45deg, rgb(161 48 27 / .12) 0 6px, transparent 6px 12px); }
.person-tile--account { font-weight: 400; font-size: .85rem; background: var(--paper); border: 1px solid var(--line); overflow-wrap: anywhere; }
.chip--konta { background: var(--paper); border: 1.5px dashed var(--muted); }
/* Czego jeszcze nie ma, jest tylko narysowane przerywaną linią. */
.person-tile--open, .shift--open { color: var(--ink); background: transparent; border: 1.5px dashed var(--muted); box-shadow: none; }
.shift--open { background: rgb(255 255 255 / .6); }

/* Plansza miesiąca: kalendarz obowiązków i zadania. */
.month { display: grid; grid-template-columns: repeat(7, minmax(6.5rem, 1fr)); min-width: 48rem; }
.month__day { display: flex; flex-direction: column; gap: 5px; min-height: 6.5rem; padding: 4px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .55); }
.month__day--other { background: transparent; opacity: .6; }
.month__day--today .month__date { background: rgb(242 102 74 / .45); padding: 0 4px; }
.month__date { align-self: flex-start; font: 700 1rem var(--hand); }
.month__tray, .month__done { display: flex; flex-direction: column; gap: 6px; min-height: 2.5rem; padding: 6px; border: 1.5px dashed var(--muted); border-radius: 4px; }
.month__done { justify-content: center; font: 600 1.3rem var(--scribble); color: var(--muted); }
.month--over { outline: 2px dashed var(--teal); outline-offset: -3px; }
/* Wpis w kalendarzu to mała karteczka. */
.item { display: grid; padding: 3px 6px; font-size: .78rem; line-height: 1.25; color: var(--ink); text-decoration: none; background: var(--yellow); box-shadow: 1px 2px 0 rgb(27 42 74 / .18); overflow-wrap: anywhere; }
.item[draggable="true"] { cursor: grab; }
.item small { font-size: .72rem; }
.item--late { background: var(--peach); box-shadow: inset 3px 0 0 var(--red), 1px 2px 0 rgb(27 42 74 / .18); }

/* Zwijane instrukcje i formularze zapasowe. */
.help summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.help[open] summary { margin-bottom: 4px; }
.fold > summary { cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { display: inline; margin: 0; }
.fold > summary h2::before { content: "+ "; }
.fold[open] > summary h2::before { content: "− "; }
.fold[open] > summary { margin-bottom: 12px; }
.mark--today { color: var(--teal-dark); }
.prewrap { white-space: pre-wrap; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-weight: 700; }

/* Formularze zgłoszeniowe. */
.copy { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); }
.qr { background: var(--paper); border: 1px solid var(--line); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.panel--danger { border: 2px dashed var(--red); }
.panel.fold:not([open]) { padding-block: 14px; }
.seats-board { display: grid; gap: 16px; align-items: start; }
.seats-board:has(.seats__people) { grid-template-columns: 1fr minmax(12rem, 16rem); }
.seats { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; }
.seat { display: grid; gap: 6px; min-width: 12rem; padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); }
.seat p { margin: 0; }
.seat--wide { min-width: 0; }
.seat--new { background: none; border: 1.5px dashed var(--muted); box-shadow: none; }
.seats__people { display: grid; gap: 8px; }
.seats__people .planner__tiles { max-height: 24rem; overflow-y: auto; }
@media (max-width: 48rem) { .seats-board:has(.seats__people) { grid-template-columns: 1fr; } }

/* Pulpit: sprawy na teraz jako karteczki samoprzylepne obok siebie. */
.notes { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 30px 26px; align-items: start; }
.panel--note { border: 0; background: var(--yellow); transform: rotate(-.8deg); }
.panel--note:nth-child(4n+2) { background: var(--mint); transform: rotate(.7deg); }
.panel--note:nth-child(4n+3) { background: var(--peach); transform: rotate(-.4deg); }
.panel--note:nth-child(4n+4) { background: var(--paper); transform: rotate(.9deg); }
.panel--note .note { color: #3d4a62; }
