/* FJN System — D235 „Moje” / „Do wzięcia” (ModD235Zad): two columns from 1024 px (tablet in
   landscape, kiosk), tabs below (phone, tablet in portrait); the window „Zadanie już wzięte”;
   the kiosk bar with „Wyloguj”. Cards reuse .fjn-htask (fjn-hall-tasks.css). */

.fjn-pool { gap: 14px; padding: 16px; }
.fjn-pool__live { display: flex; flex-direction: column; gap: 14px; }
.fjn-pool__note {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: var(--fjn-brand-100); color: var(--fjn-brand-700); font-size: 15px; line-height: 1.35; font-weight: 700;
}
.fjn-pool__note > span { flex: 1; min-width: 0; }
.fjn-pool__note-x { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: inherit; }

/* Tabs (56 px) with counters */
.fjn-pool__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--fjn-border); }
.fjn-pool__tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px;
  font-size: 17px; color: var(--fjn-text-2); white-space: nowrap; text-decoration: none;
}
.fjn-pool__tab:hover { text-decoration: none; color: var(--fjn-text); }
.fjn-pool__tab.is-on { font-weight: 700; color: var(--fjn-text); box-shadow: inset 0 -3px 0 var(--fjn-brand-600); }
.fjn-pool__chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 8px;
  box-sizing: border-box; border-radius: 13px; background: #ECEEF1; color: var(--fjn-text);
  font: 700 14px var(--fjn-font-mono);
}
.fjn-pool__chip.is-zero { color: #626B77; }
.fjn-pool__chip.is-on { background: var(--fjn-brand-600); color: var(--fjn-text-inverse); }

/* Sections */
.fjn-pool__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.fjn-pool__sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fjn-pool__head { display: flex; flex-direction: column; gap: 2px; }
.fjn-pool__title { display: flex; align-items: center; gap: 10px; }
.fjn-pool__h2 { margin: 0; font-size: 22px; line-height: 1.25; white-space: nowrap; }
.fjn-pool__title .fjn-pool__chip { min-width: 32px; height: 30px; border-radius: 15px; padding: 0 10px; font-size: 16px; }
.fjn-pool__sub { font-size: 14px; line-height: 20px; color: var(--fjn-text-2); }
.fjn-pool--tabs .fjn-pool__sec.is-off { display: none; }
.fjn-pool--tabs .fjn-pool__title { display: none; }

.fjn-pool__empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 18px; text-align: center;
  background: var(--fjn-surface); border: 1px dashed var(--fjn-border-strong); border-radius: 12px; color: #626B77;
}
.fjn-pool__empty b { font-size: 18px; color: var(--fjn-text); }
.fjn-pool__empty span { max-width: 420px; font-size: 15px; line-height: 22px; color: var(--fjn-text-2); }
.fjn-pool__absent {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px; text-align: center;
  background: #FFFBF2; border: 2px solid var(--fjn-warning-700); border-radius: 12px; color: #5C3A00;
}
.fjn-pool__absent > svg { color: var(--fjn-warning-700); }
.fjn-pool__absent-title { display: block; font-size: 19px; line-height: 26px; }
.fjn-pool__absent span { max-width: 420px; font-size: 15px; line-height: 22px; }
.fjn-pool__absent form { display: contents; }
.fjn-pool__absent .fjn-hbtn { height: 60px; margin-top: 4px; padding: 0 24px; }

/* Cards: column with full-width buttons (phone, two columns), row on a tablet in portrait */
.fjn-pool .fjn-htask { position: relative; flex-direction: column; padding: 14px; }
.fjn-pool .fjn-htask--todo, .fjn-pool .fjn-htask--pool { border: 1px solid var(--fjn-border); }
.fjn-pool .fjn-htask--pool.fjn-htask--urgent { border: 2px solid var(--fjn-brand-600); }
.fjn-pool .fjn-htask--urgent { box-shadow: none; } /* D235: „Pilne” is the chip, no red bar */
.fjn-pool .fjn-htask__nr { font-size: 17px; }
.fjn-htask__link { color: inherit; text-decoration: none; }
.fjn-htask__link:hover { color: inherit; text-decoration: none; }
.fjn-htask__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.fjn-htask__actions { position: relative; z-index: 1; }
.fjn-htask__urgent {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--fjn-r-full);
  background: var(--fjn-brand-100); color: var(--fjn-brand-700); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.fjn-pool .fjn-htask__actions { align-items: stretch; }
.fjn-pool .fjn-htask__actions > .fjn-hbtn, .fjn-pool .fjn-htask__actions form > .fjn-hbtn { flex: 1; width: 100%; height: 60px; }
.fjn-pool .fjn-htask__actions form { display: flex; flex: 1; }

@media (min-width: 768px) {
  .fjn-pool { padding: 20px 24px; }
  .fjn-pool .fjn-htask { padding: 16px 18px; }
  .fjn-pool .fjn-htask__nr { font-size: 19px; }
  .fjn-pool .fjn-htask__actions > .fjn-hbtn, .fjn-pool .fjn-htask__actions form > .fjn-hbtn { height: 64px; }
  .fjn-pool .fjn-htask__what, .fjn-pool .fjn-pool__note { font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fjn-pool .fjn-htask { flex-direction: row; }
  .fjn-pool .fjn-htask__actions { flex: none; }
}
@media (min-width: 1024px) {
  .fjn-pool__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fjn-pool--tabs .fjn-pool__tabs { display: none; }
  .fjn-pool--tabs .fjn-pool__sec.is-off { display: flex; }
  .fjn-pool--tabs .fjn-pool__title { display: flex; }
}
.fjn-kiosk__main .fjn-pool__h2 { font-size: 26px; }

/* „Zadanie już wzięte przez …” (phone: from the bottom, tablet: centred 520 px) */
.fjn-pool-modal {
  width: min(520px, calc(100vw - 48px)); padding: 22px; border: 0; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(21, 24, 28, .18);
}
.fjn-pool-modal::backdrop { background: rgba(21, 24, 28, .45); }
.fjn-pool-modal[open] { display: flex; flex-direction: column; gap: 14px; }
.fjn-pool-modal__body { display: flex; gap: 12px; align-items: flex-start; }
.fjn-pool-modal__body > svg { flex: none; color: var(--fjn-warning-700); }
.fjn-pool-modal__text { display: flex; flex-direction: column; gap: 6px; }
.fjn-pool-modal__text b { font-size: 21px; line-height: 1.3; }
.fjn-pool-modal__text span { font-size: 16px; line-height: 23px; color: var(--fjn-text-2); }
.fjn-pool-modal__ok { width: 100%; height: 64px; }
@media (max-width: 767px) {
  .fjn-pool-modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 14px 14px 0 0; box-sizing: border-box; }
  .fjn-pool-modal__ok { height: 60px; }
}

/* Kiosk bar of „Moje zadania” */
.fjn-kiosk__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }
.fjn-kiosk-page .fjn-kiosk__clock, .fjn-kiosk__logout-btn, .fjn-kiosk__place { flex: none; }
.fjn-kiosk__logout { display: contents; }
.fjn-kiosk__logout-btn {
  height: 44px; padding: 0 16px; border: 2px solid var(--fjn-text-inverse); border-radius: 8px; background: none;
  color: var(--fjn-text-inverse); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.fjn-kiosk__logout-btn:focus-visible { box-shadow: 0 0 0 3px var(--fjn-focus-ring); outline: none; }

/* D235 „Szczegóły zadania” — one column, two columns (data | photos) from 1024 px */
.fjn-tdet { gap: 0; padding: 0; min-height: calc(100dvh - var(--fjn-topbar-h, 64px)); }
.fjn-tdet__scroll { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.fjn-tdet__back {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 48px;
  font-size: 17px; font-weight: 700; color: var(--fjn-brand-600); white-space: nowrap; text-decoration: none;
}
.fjn-tdet__head { display: flex; flex-direction: column; gap: 8px; }
.fjn-tdet__nr { font: 700 20px var(--fjn-font-mono); white-space: nowrap; }
.fjn-tdet__badge {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: var(--fjn-r-full);
  font-size: 14px; font-weight: 700; white-space: nowrap; background: #ECEEF1; color: var(--fjn-text-2);
}
.fjn-tdet__badge--progress { background: var(--fjn-brand-100); color: var(--fjn-brand-700); }
.fjn-tdet__badge--progress .fjn-htask__marker { border-radius: 50%; }
.fjn-tdet__badge--paused { background: var(--fjn-warning-100); color: var(--fjn-warning-700); }
.fjn-tdet__badge--todo .fjn-htask__marker, .fjn-tdet__badge--pool .fjn-htask__marker { border-radius: 50%; border: 2px solid currentColor; background: none; box-sizing: border-box; }
.fjn-tdet__badge--pool { background: #FFFBF2; color: var(--fjn-warning-700); box-shadow: inset 0 0 0 1.5px var(--fjn-warning-700); }
.fjn-tdet__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.fjn-tdet__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fjn-tdet__facts, .fjn-tdet__box { margin: 0; padding: 16px 18px; background: var(--fjn-surface); border: 1px solid var(--fjn-border); border-radius: 12px; }
.fjn-tdet__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; align-items: baseline; }
.fjn-tdet__facts dt { font-size: 14px; color: var(--fjn-text-2); }
.fjn-tdet__facts dd { margin: 0; font-size: 18px; font-weight: 700; }
.fjn-tdet__facts .fjn-tdet__stage { font-size: 20px; }
.fjn-tdet__due { font-family: var(--fjn-font-mono); }
.fjn-tdet__due--urgent { color: var(--fjn-brand-700); }
.fjn-tdet__box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fjn-tdet__h { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fjn-text-2); }
.fjn-tdet__notes { margin: 0; font-size: 17px; line-height: 24px; }
.fjn-tdet__notes--none { color: #626B77; }
.fjn-tdet__wheels { gap: 12px; }
.fjn-tdet__wheads { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.fjn-tdet__hint { font-size: 13px; color: var(--fjn-text-2); white-space: nowrap; }
.fjn-tdet__wheel { display: flex; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--fjn-surface-2); }
.fjn-tdet__code {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 30px; border-radius: 6px;
  background: var(--fjn-text); color: var(--fjn-text-inverse); font: 700 15px var(--fjn-font-mono);
}
.fjn-tdet__wmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fjn-tdet__damage { font-size: 14px; color: var(--fjn-text-2); }
.fjn-tdet__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.fjn-tdet__thumb { display: block; width: 96px; height: 72px; overflow: hidden; border: 1px solid var(--fjn-border); border-radius: 8px; background: #ECEEF1; }
.fjn-tdet__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fjn-tdet__foot {
  position: sticky; bottom: 0; margin-top: auto; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px;
  background: var(--fjn-surface); border-top: 1px solid var(--fjn-border); box-shadow: 0 -2px 8px rgba(21, 24, 28, .06);
}
.fjn-tdet__foot:empty { display: none; }
.fjn-tdet__foot form { display: flex; flex: 1; }
.fjn-tdet__foot .fjn-hbtn { flex: 1; height: 60px; padding: 0 24px; }
@media (max-width: 767px) {
  .fjn-tdet { min-height: calc(100dvh - var(--fjn-topbar-h-m) - var(--fjn-bottomnav-h)); }
  .fjn-app-page .fjn-tdet__foot { bottom: var(--fjn-bottomnav-h); }
}
@media (min-width: 768px) {
  .fjn-tdet__scroll { padding: 20px 24px; }
  .fjn-tdet__nr { font-size: 24px; }
  .fjn-tdet__thumb { width: 120px; height: 90px; }
  .fjn-tdet__foot { padding: 12px 24px; }
  .fjn-tdet__foot form { flex: none; }
  .fjn-tdet__foot .fjn-hbtn { flex: none; height: 64px; }
}
@media (min-width: 1024px) {
  .fjn-tdet__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* Enlarged photo (✕ or a tap closes) */
.fjn-tdet-zoom {
  position: fixed; inset: 0; z-index: 60; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(10, 12, 14, .9); color: var(--fjn-text-inverse);
}
.fjn-tdet-zoom[open] { display: flex; flex-direction: column; }
.fjn-tdet-zoom__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 20px; }
.fjn-tdet-zoom__title { flex: 1; min-width: 0; font: 700 17px var(--fjn-font-mono); }
.fjn-tdet-zoom__x { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: inherit; }
.fjn-tdet-zoom__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fjn-tdet-zoom__stage img { max-width: min(90%, 720px); max-height: 100%; border-radius: 8px; object-fit: contain; }
